@powerhousedao/connect 4.1.0-dev.12 → 4.1.0-dev.121

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 (603) hide show
  1. package/{dist/.env → .env} +5 -7
  2. package/README.md +3 -4
  3. package/assets/icon.icns +0 -0
  4. package/assets/icon.ico +0 -0
  5. package/assets/icon.png +0 -0
  6. package/assets/icons/Atlas-Logomark.svg +24 -0
  7. package/assets/icons/BBP-logo-hover-dark.svg +14 -0
  8. package/assets/icons/BBP-logo-hover-light.svg +14 -0
  9. package/assets/icons/BBP-logo-main.svg +14 -0
  10. package/assets/icons/collapse.svg +7 -0
  11. package/assets/icons/connect-small.svg +3 -0
  12. package/assets/icons/connect.svg +16 -0
  13. package/assets/icons/cross.svg +4 -0
  14. package/assets/icons/dark.svg +5 -0
  15. package/assets/icons/draft.svg +3 -0
  16. package/assets/icons/file.svg +3 -0
  17. package/assets/icons/file2.svg +10 -0
  18. package/assets/icons/folder.svg +3 -0
  19. package/assets/icons/light.svg +20 -0
  20. package/assets/icons/logo.svg +11 -0
  21. package/assets/icons/plus-circle.svg +5 -0
  22. package/assets/icons/refresh.svg +4 -0
  23. package/assets/icons/renown.svg +27 -0
  24. package/assets/icons/settings.svg +6 -0
  25. package/assets/icons/template.svg +3 -0
  26. package/assets/info.plist +85 -0
  27. package/dist/assets/AddDriveModal-BGjSHEwA.js +1 -0
  28. package/dist/assets/ClearStorageModal-BF5lJm00.js +1 -0
  29. package/dist/assets/CookiesPolicyModal-ClJfoEFE.js +1 -0
  30. package/dist/assets/CreateDocumentModal-CINdPAWM.js +1 -0
  31. package/dist/assets/DebugSettingsModal-BSw4GAUY.js +1 -0
  32. package/dist/assets/DeleteDriveModal-CyrRSrU3.js +1 -0
  33. package/dist/assets/DeleteItemModal-DNgR8oR4.js +1 -0
  34. package/dist/assets/DisclaimerModal-C22l8p6B.js +1 -0
  35. package/dist/assets/DriveSettingsModal-Bu7mOsfl.js +1 -0
  36. package/dist/assets/ExportDocumentWithErrorsModal-C7_2noze.js +1 -0
  37. package/dist/assets/SettingsModal-D5_K3zgp.js +1 -0
  38. package/dist/assets/UpgradeDriveModal-FvbFnYDj.js +1 -0
  39. package/dist/assets/_virtual_ph_external-packages-CM1tCR4L.js +1 -0
  40. package/dist/assets/config-CU-aFfVJ.js +1 -0
  41. package/dist/assets/design_system-B5EYRfWk.js +45 -0
  42. package/dist/assets/design_system_connect-DQAs8BTp.js +45 -0
  43. package/dist/assets/design_system_ui-Du-J8JBV.js +1 -0
  44. package/dist/assets/document_drive-BEIKnuGM.js +305 -0
  45. package/dist/assets/document_engineering-DrnzMUM0.js +1 -0
  46. package/dist/assets/document_model-DXcLJEjZ.js +230 -0
  47. package/dist/assets/document_model_editor-BcXan_cV.js +23 -0
  48. package/dist/assets/drive_explorer-BzslFe1I.js +2 -0
  49. package/dist/assets/graphql-BS4Brs_E.js +75 -0
  50. package/dist/assets/graphql-editor-Das9y8pk.js +73 -0
  51. package/dist/assets/graphql_request-9RNJ00DB.js +3 -0
  52. package/dist/assets/hmr-LMNkvzP7.js +1 -0
  53. package/dist/assets/hooks-BD3XG6WA.js +12 -0
  54. package/dist/assets/index-Br7E7qjt.css +1 -0
  55. package/dist/assets/index-DV_EnTs_.js +18 -0
  56. package/dist/assets/json-editor-DaG0kFAq.js +1 -0
  57. package/dist/assets/react/jsx-runtime-DldvXD6N.js +1 -0
  58. package/dist/assets/react-DQSxOgtG.js +1 -0
  59. package/dist/assets/react-dom/client-BVPiT_FE.js +9 -0
  60. package/dist/assets/react-dom-D6zQJsh6.js +1 -0
  61. package/dist/assets/reactor_browser-AuZ2bhCI.js +25 -0
  62. package/dist/assets/sentry_browser-B4YoBIIG.js +498 -0
  63. package/dist/assets/sentry_react-cODD7zWc.js +3 -0
  64. package/dist/assets/state-schemas-CqgJ-aoJ.js +2 -0
  65. package/dist/assets/tailwind_merge-Dr4f9Rms.js +1 -0
  66. package/dist/assets/zod-C6yxFxyo.js +1 -0
  67. package/dist/index.html +51 -84
  68. package/heroku/Dockerfile +98 -0
  69. package/heroku/Procfile +1 -0
  70. package/heroku/config/nginx.conf.template +77 -0
  71. package/heroku/heroku-entrypoint.sh +38 -0
  72. package/lib/cypress/e2e/navigation.cy.d.ts +2 -0
  73. package/lib/cypress/e2e/navigation.cy.d.ts.map +1 -0
  74. package/lib/cypress/e2e/navigation.cy.js +221 -0
  75. package/lib/cypress/e2e/navigation.cy.js.map +1 -0
  76. package/lib/cypress/e2e/utils/index.d.ts +15 -0
  77. package/lib/cypress/e2e/utils/index.d.ts.map +1 -0
  78. package/lib/cypress/e2e/utils/index.js +121 -0
  79. package/lib/cypress/e2e/utils/index.js.map +1 -0
  80. package/lib/cypress/support/commands.d.ts +2 -0
  81. package/lib/cypress/support/commands.d.ts.map +1 -0
  82. package/lib/cypress/support/commands.js +29 -0
  83. package/lib/cypress/support/commands.js.map +1 -0
  84. package/lib/cypress/support/e2e.d.ts +2 -0
  85. package/lib/cypress/support/e2e.d.ts.map +1 -0
  86. package/lib/cypress/support/e2e.js +19 -0
  87. package/lib/cypress/support/e2e.js.map +1 -0
  88. package/lib/cypress.config.d.ts +3 -0
  89. package/lib/cypress.config.d.ts.map +1 -0
  90. package/lib/cypress.config.js +15 -0
  91. package/lib/cypress.config.js.map +1 -0
  92. package/lib/package.copy.json +168 -0
  93. package/lib/scripts/render-skeleton.d.ts +2 -0
  94. package/lib/scripts/render-skeleton.d.ts.map +1 -0
  95. package/lib/scripts/render-skeleton.js +11 -0
  96. package/lib/scripts/render-skeleton.js.map +1 -0
  97. package/lib/src/components/analytics.d.ts +8 -0
  98. package/lib/src/components/analytics.d.ts.map +1 -0
  99. package/lib/src/components/analytics.js +30 -0
  100. package/lib/src/components/analytics.js.map +1 -0
  101. package/lib/src/components/app-loader.d.ts +7 -0
  102. package/lib/src/components/app-loader.d.ts.map +1 -0
  103. package/lib/src/components/app-loader.js +20 -0
  104. package/lib/src/components/app-loader.js.map +1 -0
  105. package/lib/src/components/app-skeleton.d.ts +3 -0
  106. package/lib/src/components/app-skeleton.d.ts.map +1 -0
  107. package/lib/src/components/app-skeleton.js +38 -0
  108. package/lib/src/components/app-skeleton.js.map +1 -0
  109. package/lib/src/components/app.d.ts +2 -0
  110. package/lib/src/components/app.d.ts.map +1 -0
  111. package/lib/src/components/app.js +18 -0
  112. package/lib/src/components/app.js.map +1 -0
  113. package/lib/src/components/button.d.ts +3 -0
  114. package/lib/src/components/button.d.ts.map +1 -0
  115. package/lib/src/components/button.js +7 -0
  116. package/lib/src/components/button.js.map +1 -0
  117. package/lib/src/components/cookie-banner.d.ts +2 -0
  118. package/lib/src/components/cookie-banner.d.ts.map +1 -0
  119. package/lib/src/components/cookie-banner.js +48 -0
  120. package/lib/src/components/cookie-banner.js.map +1 -0
  121. package/lib/src/components/document-editor-container.d.ts +2 -0
  122. package/lib/src/components/document-editor-container.d.ts.map +1 -0
  123. package/lib/src/components/document-editor-container.js +62 -0
  124. package/lib/src/components/document-editor-container.js.map +1 -0
  125. package/lib/src/components/dots-loader.d.ts +2 -0
  126. package/lib/src/components/dots-loader.d.ts.map +1 -0
  127. package/lib/src/components/dots-loader.js +15 -0
  128. package/lib/src/components/dots-loader.js.map +1 -0
  129. package/lib/src/components/drive-editor-container.d.ts +2 -0
  130. package/lib/src/components/drive-editor-container.d.ts.map +1 -0
  131. package/lib/src/components/drive-editor-container.js +25 -0
  132. package/lib/src/components/drive-editor-container.js.map +1 -0
  133. package/lib/src/components/drive-icon.d.ts +5 -0
  134. package/lib/src/components/drive-icon.d.ts.map +1 -0
  135. package/lib/src/components/drive-icon.js +15 -0
  136. package/lib/src/components/drive-icon.js.map +1 -0
  137. package/lib/src/components/editor-loader.d.ts +9 -0
  138. package/lib/src/components/editor-loader.d.ts.map +1 -0
  139. package/lib/src/components/editor-loader.js +19 -0
  140. package/lib/src/components/editor-loader.js.map +1 -0
  141. package/lib/src/components/editors.d.ts +10 -0
  142. package/lib/src/components/editors.d.ts.map +1 -0
  143. package/lib/src/components/editors.js +93 -0
  144. package/lib/src/components/editors.js.map +1 -0
  145. package/lib/src/components/footer.d.ts +2 -0
  146. package/lib/src/components/footer.d.ts.map +1 -0
  147. package/lib/src/components/footer.js +16 -0
  148. package/lib/src/components/footer.js.map +1 -0
  149. package/lib/src/components/index.d.ts +22 -0
  150. package/lib/src/components/index.d.ts.map +1 -0
  151. package/lib/src/components/index.js +22 -0
  152. package/lib/src/components/index.js.map +1 -0
  153. package/lib/src/components/login.d.ts +2 -0
  154. package/lib/src/components/login.d.ts.map +1 -0
  155. package/lib/src/components/login.js +12 -0
  156. package/lib/src/components/login.js.map +1 -0
  157. package/lib/src/components/modal/index.d.ts +19 -0
  158. package/lib/src/components/modal/index.d.ts.map +1 -0
  159. package/lib/src/components/modal/index.js +19 -0
  160. package/lib/src/components/modal/index.js.map +1 -0
  161. package/lib/src/components/modal/modals/AddDriveModal.d.ts +2 -0
  162. package/lib/src/components/modal/modals/AddDriveModal.d.ts.map +1 -0
  163. package/lib/src/components/modal/modals/AddDriveModal.js +113 -0
  164. package/lib/src/components/modal/modals/AddDriveModal.js.map +1 -0
  165. package/lib/src/components/modal/modals/ClearStorageModal.d.ts +2 -0
  166. package/lib/src/components/modal/modals/ClearStorageModal.d.ts.map +1 -0
  167. package/lib/src/components/modal/modals/ClearStorageModal.js +35 -0
  168. package/lib/src/components/modal/modals/ClearStorageModal.js.map +1 -0
  169. package/lib/src/components/modal/modals/CookiesPolicyModal.d.ts +2 -0
  170. package/lib/src/components/modal/modals/CookiesPolicyModal.d.ts.map +1 -0
  171. package/lib/src/components/modal/modals/CookiesPolicyModal.js +16 -0
  172. package/lib/src/components/modal/modals/CookiesPolicyModal.js.map +1 -0
  173. package/lib/src/components/modal/modals/CreateDocumentModal.d.ts +2 -0
  174. package/lib/src/components/modal/modals/CreateDocumentModal.d.ts.map +1 -0
  175. package/lib/src/components/modal/modals/CreateDocumentModal.js +24 -0
  176. package/lib/src/components/modal/modals/CreateDocumentModal.js.map +1 -0
  177. package/lib/src/components/modal/modals/DebugSettingsModal.d.ts +2 -0
  178. package/lib/src/components/modal/modals/DebugSettingsModal.d.ts.map +1 -0
  179. package/lib/src/components/modal/modals/DebugSettingsModal.js +108 -0
  180. package/lib/src/components/modal/modals/DebugSettingsModal.js.map +1 -0
  181. package/lib/src/components/modal/modals/DeleteDriveModal.d.ts +2 -0
  182. package/lib/src/components/modal/modals/DeleteDriveModal.d.ts.map +1 -0
  183. package/lib/src/components/modal/modals/DeleteDriveModal.js +32 -0
  184. package/lib/src/components/modal/modals/DeleteDriveModal.js.map +1 -0
  185. package/lib/src/components/modal/modals/DeleteItemModal.d.ts +3 -0
  186. package/lib/src/components/modal/modals/DeleteItemModal.d.ts.map +1 -0
  187. package/lib/src/components/modal/modals/DeleteItemModal.js +33 -0
  188. package/lib/src/components/modal/modals/DeleteItemModal.js.map +1 -0
  189. package/lib/src/components/modal/modals/DisclaimerModal.d.ts +3 -0
  190. package/lib/src/components/modal/modals/DisclaimerModal.d.ts.map +1 -0
  191. package/lib/src/components/modal/modals/DisclaimerModal.js +12 -0
  192. package/lib/src/components/modal/modals/DisclaimerModal.js.map +1 -0
  193. package/lib/src/components/modal/modals/DriveSettingsModal.d.ts +2 -0
  194. package/lib/src/components/modal/modals/DriveSettingsModal.d.ts.map +1 -0
  195. package/lib/src/components/modal/modals/DriveSettingsModal.js +28 -0
  196. package/lib/src/components/modal/modals/DriveSettingsModal.js.map +1 -0
  197. package/lib/src/components/modal/modals/ExportDocumentWithErrorsModal.d.ts +2 -0
  198. package/lib/src/components/modal/modals/ExportDocumentWithErrorsModal.d.ts.map +1 -0
  199. package/lib/src/components/modal/modals/ExportDocumentWithErrorsModal.js +30 -0
  200. package/lib/src/components/modal/modals/ExportDocumentWithErrorsModal.js.map +1 -0
  201. package/lib/src/components/modal/modals/SettingsModal.d.ts +3 -0
  202. package/lib/src/components/modal/modals/SettingsModal.d.ts.map +1 -0
  203. package/lib/src/components/modal/modals/SettingsModal.js +45 -0
  204. package/lib/src/components/modal/modals/SettingsModal.js.map +1 -0
  205. package/lib/src/components/modal/modals/UpgradeDriveModal.d.ts +3 -0
  206. package/lib/src/components/modal/modals/UpgradeDriveModal.d.ts.map +1 -0
  207. package/lib/src/components/modal/modals/UpgradeDriveModal.js +21 -0
  208. package/lib/src/components/modal/modals/UpgradeDriveModal.js.map +1 -0
  209. package/lib/src/components/modal/modals/settings/about.d.ts +2 -0
  210. package/lib/src/components/modal/modals/settings/about.d.ts.map +1 -0
  211. package/lib/src/components/modal/modals/settings/about.js +10 -0
  212. package/lib/src/components/modal/modals/settings/about.js.map +1 -0
  213. package/lib/src/components/modal/modals/settings/danger-zone.d.ts +2 -0
  214. package/lib/src/components/modal/modals/settings/danger-zone.d.ts.map +1 -0
  215. package/lib/src/components/modal/modals/settings/danger-zone.js +15 -0
  216. package/lib/src/components/modal/modals/settings/danger-zone.js.map +1 -0
  217. package/lib/src/components/modal/modals/settings/default-editor.d.ts +2 -0
  218. package/lib/src/components/modal/modals/settings/default-editor.d.ts.map +1 -0
  219. package/lib/src/components/modal/modals/settings/default-editor.js +18 -0
  220. package/lib/src/components/modal/modals/settings/default-editor.js.map +1 -0
  221. package/lib/src/components/modal/modals/settings/package-manager.d.ts +3 -0
  222. package/lib/src/components/modal/modals/settings/package-manager.d.ts.map +1 -0
  223. package/lib/src/components/modal/modals/settings/package-manager.js +87 -0
  224. package/lib/src/components/modal/modals/settings/package-manager.js.map +1 -0
  225. package/lib/src/components/modal/modals-container.d.ts +2 -0
  226. package/lib/src/components/modal/modals-container.d.ts.map +1 -0
  227. package/lib/src/components/modal/modals-container.js +62 -0
  228. package/lib/src/components/modal/modals-container.js.map +1 -0
  229. package/lib/src/components/modal/modals-error-boundary.d.ts +18 -0
  230. package/lib/src/components/modal/modals-error-boundary.d.ts.map +1 -0
  231. package/lib/src/components/modal/modals-error-boundary.js +22 -0
  232. package/lib/src/components/modal/modals-error-boundary.js.map +1 -0
  233. package/lib/src/components/ph-logo.d.ts +2 -0
  234. package/lib/src/components/ph-logo.d.ts.map +1 -0
  235. package/lib/src/components/ph-logo.js +7 -0
  236. package/lib/src/components/ph-logo.js.map +1 -0
  237. package/lib/src/components/reload-connect-toast.d.ts +2 -0
  238. package/lib/src/components/reload-connect-toast.d.ts.map +1 -0
  239. package/lib/src/components/reload-connect-toast.js +7 -0
  240. package/lib/src/components/reload-connect-toast.js.map +1 -0
  241. package/lib/src/components/root.d.ts +2 -0
  242. package/lib/src/components/root.d.ts.map +1 -0
  243. package/lib/src/components/root.js +8 -0
  244. package/lib/src/components/root.js.map +1 -0
  245. package/lib/src/components/router.d.ts +2 -0
  246. package/lib/src/components/router.d.ts.map +1 -0
  247. package/lib/src/components/router.js +41 -0
  248. package/lib/src/components/router.js.map +1 -0
  249. package/lib/src/components/search-bar.d.ts +2 -0
  250. package/lib/src/components/search-bar.d.ts.map +1 -0
  251. package/lib/src/components/search-bar.js +36 -0
  252. package/lib/src/components/search-bar.js.map +1 -0
  253. package/lib/src/components/sidebar.d.ts +2 -0
  254. package/lib/src/components/sidebar.d.ts.map +1 -0
  255. package/lib/src/components/sidebar.js +27 -0
  256. package/lib/src/components/sidebar.js.map +1 -0
  257. package/lib/src/connect.config.d.ts +113 -0
  258. package/lib/src/connect.config.d.ts.map +1 -0
  259. package/lib/src/connect.config.js +147 -0
  260. package/lib/src/connect.config.js.map +1 -0
  261. package/lib/src/context/index.d.ts +4 -0
  262. package/lib/src/context/index.d.ts.map +1 -0
  263. package/lib/src/context/index.js +4 -0
  264. package/lib/src/context/index.js.map +1 -0
  265. package/lib/src/context/processor-manager.d.ts +3 -0
  266. package/lib/src/context/processor-manager.d.ts.map +1 -0
  267. package/lib/src/context/processor-manager.js +189 -0
  268. package/lib/src/context/processor-manager.js.map +1 -0
  269. package/lib/src/context/read-mode.d.ts +2 -0
  270. package/lib/src/context/read-mode.d.ts.map +1 -0
  271. package/lib/src/context/read-mode.js +219 -0
  272. package/lib/src/context/read-mode.js.map +1 -0
  273. package/lib/src/context/sentry-provider.d.ts +6 -0
  274. package/lib/src/context/sentry-provider.d.ts.map +1 -0
  275. package/lib/src/context/sentry-provider.js +6 -0
  276. package/lib/src/context/sentry-provider.js.map +1 -0
  277. package/lib/src/feature-flags.d.ts +34 -0
  278. package/lib/src/feature-flags.d.ts.map +1 -0
  279. package/lib/src/feature-flags.js +124 -0
  280. package/lib/src/feature-flags.js.map +1 -0
  281. package/lib/src/globals.d.ts +9 -0
  282. package/lib/src/globals.d.ts.map +1 -0
  283. package/lib/src/globals.js +2 -0
  284. package/lib/src/globals.js.map +1 -0
  285. package/lib/src/hmr.d.ts +3 -0
  286. package/lib/src/hmr.d.ts.map +1 -0
  287. package/lib/src/hmr.js +2 -0
  288. package/lib/src/hmr.js.map +1 -0
  289. package/lib/src/hooks/index.d.ts +10 -0
  290. package/lib/src/hooks/index.d.ts.map +1 -0
  291. package/lib/src/hooks/index.js +10 -0
  292. package/lib/src/hooks/index.js.map +1 -0
  293. package/lib/src/hooks/useAcceptedCookies.d.ts +9 -0
  294. package/lib/src/hooks/useAcceptedCookies.d.ts.map +1 -0
  295. package/lib/src/hooks/useAcceptedCookies.js +34 -0
  296. package/lib/src/hooks/useAcceptedCookies.js.map +1 -0
  297. package/lib/src/hooks/useCheckLatestVersion.d.ts +2 -0
  298. package/lib/src/hooks/useCheckLatestVersion.d.ts.map +1 -0
  299. package/lib/src/hooks/useCheckLatestVersion.js +33 -0
  300. package/lib/src/hooks/useCheckLatestVersion.js.map +1 -0
  301. package/lib/src/hooks/useClientErrorHandler.d.ts +6 -0
  302. package/lib/src/hooks/useClientErrorHandler.d.ts.map +1 -0
  303. package/lib/src/hooks/useClientErrorHandler.js +120 -0
  304. package/lib/src/hooks/useClientErrorHandler.js.map +1 -0
  305. package/lib/src/hooks/useCookieBanner.d.ts +5 -0
  306. package/lib/src/hooks/useCookieBanner.d.ts.map +1 -0
  307. package/lib/src/hooks/useCookieBanner.js +32 -0
  308. package/lib/src/hooks/useCookieBanner.js.map +1 -0
  309. package/lib/src/hooks/useInitSentry.d.ts +2 -0
  310. package/lib/src/hooks/useInitSentry.d.ts.map +1 -0
  311. package/lib/src/hooks/useInitSentry.js +80 -0
  312. package/lib/src/hooks/useInitSentry.js.map +1 -0
  313. package/lib/src/hooks/useNodeActions.d.ts +6 -0
  314. package/lib/src/hooks/useNodeActions.d.ts.map +1 -0
  315. package/lib/src/hooks/useNodeActions.js +35 -0
  316. package/lib/src/hooks/useNodeActions.js.map +1 -0
  317. package/lib/src/hooks/useUndoRedoShortcuts.d.ts +8 -0
  318. package/lib/src/hooks/useUndoRedoShortcuts.d.ts.map +1 -0
  319. package/lib/src/hooks/useUndoRedoShortcuts.js +26 -0
  320. package/lib/src/hooks/useUndoRedoShortcuts.js.map +1 -0
  321. package/lib/src/hooks/useWindowSize.d.ts +5 -0
  322. package/lib/src/hooks/useWindowSize.d.ts.map +1 -0
  323. package/lib/src/hooks/useWindowSize.js +21 -0
  324. package/lib/src/hooks/useWindowSize.js.map +1 -0
  325. package/lib/src/hooks/utils.d.ts +7 -0
  326. package/lib/src/hooks/utils.d.ts.map +1 -0
  327. package/lib/src/hooks/utils.js +46 -0
  328. package/lib/src/hooks/utils.js.map +1 -0
  329. package/lib/src/i18n/index.d.ts +4 -0
  330. package/lib/src/i18n/index.d.ts.map +1 -0
  331. package/lib/src/i18n/index.js +26 -0
  332. package/lib/src/i18n/index.js.map +1 -0
  333. package/lib/src/i18n/locales/en.json +114 -0
  334. package/lib/src/index.d.ts +2 -0
  335. package/lib/src/index.d.ts.map +1 -0
  336. package/lib/src/index.js +2 -0
  337. package/lib/src/index.js.map +1 -0
  338. package/lib/src/main.d.ts +2 -0
  339. package/lib/src/main.d.ts.map +1 -0
  340. package/lib/src/main.js +5 -0
  341. package/lib/src/main.js.map +1 -0
  342. package/lib/src/pages/content.d.ts +2 -0
  343. package/lib/src/pages/content.d.ts.map +1 -0
  344. package/lib/src/pages/content.js +39 -0
  345. package/lib/src/pages/content.js.map +1 -0
  346. package/lib/src/pages/demo/atlas-import.d.ts +2 -0
  347. package/lib/src/pages/demo/atlas-import.d.ts.map +1 -0
  348. package/lib/src/pages/demo/atlas-import.js +122 -0
  349. package/lib/src/pages/demo/atlas-import.js.map +1 -0
  350. package/lib/src/pages/index.d.ts +4 -0
  351. package/lib/src/pages/index.d.ts.map +1 -0
  352. package/lib/src/pages/index.js +4 -0
  353. package/lib/src/pages/index.js.map +1 -0
  354. package/lib/src/pages/settings.d.ts +4 -0
  355. package/lib/src/pages/settings.d.ts.map +1 -0
  356. package/lib/src/pages/settings.js +9 -0
  357. package/lib/src/pages/settings.js.map +1 -0
  358. package/lib/src/service-worker.d.ts +2 -0
  359. package/lib/src/service-worker.d.ts.map +1 -0
  360. package/lib/src/service-worker.js +58 -0
  361. package/lib/src/service-worker.js.map +1 -0
  362. package/lib/src/services/hmr.d.ts +13 -0
  363. package/lib/src/services/hmr.d.ts.map +1 -0
  364. package/lib/src/services/hmr.js +85 -0
  365. package/lib/src/services/hmr.js.map +1 -0
  366. package/lib/src/services/index.d.ts +10 -0
  367. package/lib/src/services/index.d.ts.map +1 -0
  368. package/lib/src/services/index.js +9 -0
  369. package/lib/src/services/index.js.map +1 -0
  370. package/lib/src/services/logger.d.ts +2 -0
  371. package/lib/src/services/logger.d.ts.map +1 -0
  372. package/lib/src/services/logger.js +28 -0
  373. package/lib/src/services/logger.js.map +1 -0
  374. package/lib/src/services/renown/browser.d.ts +2 -0
  375. package/lib/src/services/renown/browser.d.ts.map +1 -0
  376. package/lib/src/services/renown/browser.js +6 -0
  377. package/lib/src/services/renown/browser.js.map +1 -0
  378. package/lib/src/services/renown/constants.d.ts +130 -0
  379. package/lib/src/services/renown/constants.d.ts.map +1 -0
  380. package/lib/src/services/renown/constants.js +41 -0
  381. package/lib/src/services/renown/constants.js.map +1 -0
  382. package/lib/src/services/renown/utils.d.ts +7 -0
  383. package/lib/src/services/renown/utils.d.ts.map +1 -0
  384. package/lib/src/services/renown/utils.js +20 -0
  385. package/lib/src/services/renown/utils.js.map +1 -0
  386. package/lib/src/services/storage/base-storage.d.ts +9 -0
  387. package/lib/src/services/storage/base-storage.d.ts.map +1 -0
  388. package/lib/src/services/storage/base-storage.js +21 -0
  389. package/lib/src/services/storage/base-storage.js.map +1 -0
  390. package/lib/src/services/storage/browser.d.ts +5 -0
  391. package/lib/src/services/storage/browser.d.ts.map +1 -0
  392. package/lib/src/services/storage/browser.js +25 -0
  393. package/lib/src/services/storage/browser.js.map +1 -0
  394. package/lib/src/services/storage/types.d.ts +6 -0
  395. package/lib/src/services/storage/types.d.ts.map +1 -0
  396. package/lib/src/services/storage/types.js +2 -0
  397. package/lib/src/services/storage/types.js.map +1 -0
  398. package/lib/src/services/toast.d.ts +8 -0
  399. package/lib/src/services/toast.d.ts.map +1 -0
  400. package/lib/src/services/toast.js +11 -0
  401. package/lib/src/services/toast.js.map +1 -0
  402. package/lib/src/store/document-model.d.ts +3 -0
  403. package/lib/src/store/document-model.d.ts.map +1 -0
  404. package/lib/src/store/document-model.js +79 -0
  405. package/lib/src/store/document-model.js.map +1 -0
  406. package/lib/src/store/editor.d.ts +5 -0
  407. package/lib/src/store/editor.d.ts.map +1 -0
  408. package/lib/src/store/editor.js +31 -0
  409. package/lib/src/store/editor.js.map +1 -0
  410. package/lib/src/store/external-packages.d.ts +4 -0
  411. package/lib/src/store/external-packages.d.ts.map +1 -0
  412. package/lib/src/store/external-packages.js +36 -0
  413. package/lib/src/store/external-packages.js.map +1 -0
  414. package/lib/src/store/index.d.ts +7 -0
  415. package/lib/src/store/index.d.ts.map +1 -0
  416. package/lib/src/store/index.js +7 -0
  417. package/lib/src/store/index.js.map +1 -0
  418. package/lib/src/store/reactor.d.ts +3 -0
  419. package/lib/src/store/reactor.d.ts.map +1 -0
  420. package/lib/src/store/reactor.js +177 -0
  421. package/lib/src/store/reactor.js.map +1 -0
  422. package/lib/src/store/user.d.ts +2 -0
  423. package/lib/src/store/user.d.ts.map +1 -0
  424. package/lib/src/store/user.js +16 -0
  425. package/lib/src/store/user.js.map +1 -0
  426. package/lib/src/store/utils.d.ts +2 -0
  427. package/lib/src/store/utils.d.ts.map +1 -0
  428. package/lib/src/store/utils.js +59 -0
  429. package/lib/src/store/utils.js.map +1 -0
  430. package/lib/src/utils/browser.d.ts +2 -0
  431. package/lib/src/utils/browser.d.ts.map +1 -0
  432. package/lib/src/utils/browser.js +9 -0
  433. package/lib/src/utils/browser.js.map +1 -0
  434. package/lib/src/utils/document-editor-debug-tools.d.ts +17 -0
  435. package/lib/src/utils/document-editor-debug-tools.d.ts.map +1 -0
  436. package/lib/src/utils/document-editor-debug-tools.js +55 -0
  437. package/lib/src/utils/document-editor-debug-tools.js.map +1 -0
  438. package/lib/src/utils/drive-preservation.d.ts +19 -0
  439. package/lib/src/utils/drive-preservation.d.ts.map +1 -0
  440. package/lib/src/utils/drive-preservation.js +51 -0
  441. package/lib/src/utils/drive-preservation.js.map +1 -0
  442. package/lib/src/utils/drive-sections.d.ts +31 -0
  443. package/lib/src/utils/drive-sections.d.ts.map +1 -0
  444. package/lib/src/utils/drive-sections.js +63 -0
  445. package/lib/src/utils/drive-sections.js.map +1 -0
  446. package/lib/src/utils/index.d.ts +12 -0
  447. package/lib/src/utils/index.d.ts.map +1 -0
  448. package/lib/src/utils/index.js +12 -0
  449. package/lib/src/utils/index.js.map +1 -0
  450. package/lib/src/utils/join.d.ts +2 -0
  451. package/lib/src/utils/join.d.ts.map +1 -0
  452. package/lib/src/utils/join.js +11 -0
  453. package/lib/src/utils/join.js.map +1 -0
  454. package/lib/src/utils/openUrl.d.ts +2 -0
  455. package/lib/src/utils/openUrl.d.ts.map +1 -0
  456. package/lib/src/utils/openUrl.js +3 -0
  457. package/lib/src/utils/openUrl.js.map +1 -0
  458. package/lib/src/utils/path.d.ts +4 -0
  459. package/lib/src/utils/path.d.ts.map +1 -0
  460. package/lib/src/utils/path.js +17 -0
  461. package/lib/src/utils/path.js.map +1 -0
  462. package/lib/src/utils/reactor.d.ts +6 -0
  463. package/lib/src/utils/reactor.d.ts.map +1 -0
  464. package/lib/src/utils/reactor.js +57 -0
  465. package/lib/src/utils/reactor.js.map +1 -0
  466. package/lib/src/utils/registerServiceWorker.d.ts +12 -0
  467. package/lib/src/utils/registerServiceWorker.d.ts.map +1 -0
  468. package/lib/src/utils/registerServiceWorker.js +97 -0
  469. package/lib/src/utils/registerServiceWorker.js.map +1 -0
  470. package/lib/src/utils/signature.d.ts +4 -0
  471. package/lib/src/utils/signature.d.ts.map +1 -0
  472. package/lib/src/utils/signature.js +36 -0
  473. package/lib/src/utils/signature.js.map +1 -0
  474. package/lib/src/utils/slug.d.ts +2 -0
  475. package/lib/src/utils/slug.d.ts.map +1 -0
  476. package/lib/src/utils/slug.js +4 -0
  477. package/lib/src/utils/slug.js.map +1 -0
  478. package/lib/src/workers/pglite-worker.d.ts +2 -0
  479. package/lib/src/workers/pglite-worker.d.ts.map +1 -0
  480. package/lib/src/workers/pglite-worker.js +32 -0
  481. package/lib/src/workers/pglite-worker.js.map +1 -0
  482. package/lib/tsconfig.tsbuildinfo +1 -0
  483. package/lib/vite.config.d.ts +3 -0
  484. package/lib/vite.config.d.ts.map +1 -0
  485. package/lib/vite.config.js +55 -0
  486. package/lib/vite.config.js.map +1 -0
  487. package/package.copy.json +168 -0
  488. package/package.json +132 -96
  489. package/public/icon.ico +0 -0
  490. package/public/robots.txt +3 -0
  491. package/public/settings.png +0 -0
  492. package/scripts/render-skeleton.ts +8 -10
  493. package/src/index.css +4 -0
  494. package/dist/assets/AddDriveModal.DJ-dAFOA.js +0 -2
  495. package/dist/assets/AddDriveModal.DJ-dAFOA.js.map +0 -1
  496. package/dist/assets/AddLocalDriveModal.De9JCy3U.js +0 -2
  497. package/dist/assets/AddLocalDriveModal.De9JCy3U.js.map +0 -1
  498. package/dist/assets/AddRemoteDriveModal.Bbso9zlA.js +0 -2
  499. package/dist/assets/AddRemoteDriveModal.Bbso9zlA.js.map +0 -1
  500. package/dist/assets/ConfirmationModal.vrZxNEXg.js +0 -2
  501. package/dist/assets/ConfirmationModal.vrZxNEXg.js.map +0 -1
  502. package/dist/assets/CookiesPolicyModal._TIEDwTl.js +0 -2
  503. package/dist/assets/CookiesPolicyModal._TIEDwTl.js.map +0 -1
  504. package/dist/assets/CreateDocumentModal.6coMTZ5K.js +0 -2
  505. package/dist/assets/CreateDocumentModal.6coMTZ5K.js.map +0 -1
  506. package/dist/assets/DebugSettingsModal.CC8h7-01.js +0 -2
  507. package/dist/assets/DebugSettingsModal.CC8h7-01.js.map +0 -1
  508. package/dist/assets/DeleteDriveModal.MOCpt-lE.js +0 -2
  509. package/dist/assets/DeleteDriveModal.MOCpt-lE.js.map +0 -1
  510. package/dist/assets/DeleteItemModal.D1JNJ3SD.js +0 -2
  511. package/dist/assets/DeleteItemModal.D1JNJ3SD.js.map +0 -1
  512. package/dist/assets/DisclaimerModal.CpWL_8dJ.js +0 -2
  513. package/dist/assets/DisclaimerModal.CpWL_8dJ.js.map +0 -1
  514. package/dist/assets/DriveSettingsModal.Cq31PlSd.js +0 -2
  515. package/dist/assets/DriveSettingsModal.Cq31PlSd.js.map +0 -1
  516. package/dist/assets/SettingsModal.DXSp8FUL.js +0 -2
  517. package/dist/assets/SettingsModal.DXSp8FUL.js.map +0 -1
  518. package/dist/assets/Trans.B_Bse39z.js +0 -2
  519. package/dist/assets/Trans.B_Bse39z.js.map +0 -1
  520. package/dist/assets/UpgradeDriveModal.Bcaqra-T.js +0 -2
  521. package/dist/assets/UpgradeDriveModal.Bcaqra-T.js.map +0 -1
  522. package/dist/assets/app-skeleton.js +0 -11
  523. package/dist/assets/app-skeleton.js.map +0 -1
  524. package/dist/assets/atlas-import.CrAV29KX.js +0 -6
  525. package/dist/assets/atlas-import.CrAV29KX.js.map +0 -1
  526. package/dist/assets/browser.BkwNmV2Z.js +0 -2
  527. package/dist/assets/browser.BkwNmV2Z.js.map +0 -1
  528. package/dist/assets/content.BVfObTK-.js +0 -3
  529. package/dist/assets/content.BVfObTK-.js.map +0 -1
  530. package/dist/assets/cookie-banner.CqSpDuL2.js +0 -2
  531. package/dist/assets/cookie-banner.CqSpDuL2.js.map +0 -1
  532. package/dist/assets/i18next.CqOP20KE.js +0 -2
  533. package/dist/assets/i18next.CqOP20KE.js.map +0 -1
  534. package/dist/assets/index-B7k827uL.css +0 -1
  535. package/dist/assets/index.Be3reTUB.js +0 -114
  536. package/dist/assets/index.Be3reTUB.js.map +0 -1
  537. package/dist/assets/index.C0tp--nk.js +0 -387
  538. package/dist/assets/index.C0tp--nk.js.map +0 -1
  539. package/dist/assets/index.CTYq_dOR.js +0 -16
  540. package/dist/assets/index.CTYq_dOR.js.map +0 -1
  541. package/dist/assets/index.CW6hXWch.js +0 -333
  542. package/dist/assets/index.CW6hXWch.js.map +0 -1
  543. package/dist/assets/index.DNX0QOJs.js +0 -2
  544. package/dist/assets/index.DNX0QOJs.js.map +0 -1
  545. package/dist/assets/index.MXCURbo4.js +0 -361
  546. package/dist/assets/index.MXCURbo4.js.map +0 -1
  547. package/dist/assets/index.TIUvoczv.js +0 -2
  548. package/dist/assets/index.TIUvoczv.js.map +0 -1
  549. package/dist/assets/index.hUDcoha1.js +0 -2
  550. package/dist/assets/index.hUDcoha1.js.map +0 -1
  551. package/dist/assets/index.ycvKRDCc.js +0 -2
  552. package/dist/assets/index.ycvKRDCc.js.map +0 -1
  553. package/dist/assets/main-CT4nIKNi.css +0 -1
  554. package/dist/assets/main.CpBKbYrC.js +0 -3
  555. package/dist/assets/main.CpBKbYrC.js.map +0 -1
  556. package/dist/assets/modal.B6AxZ1yB.js +0 -3
  557. package/dist/assets/modal.B6AxZ1yB.js.map +0 -1
  558. package/dist/assets/modals.jKUpbvJU.js +0 -2
  559. package/dist/assets/modals.jKUpbvJU.js.map +0 -1
  560. package/dist/assets/nodefs-CbgXeDrX.js +0 -2
  561. package/dist/assets/nodefs-CbgXeDrX.js.map +0 -1
  562. package/dist/assets/nodefs.rxvmn5tR.js +0 -2
  563. package/dist/assets/nodefs.rxvmn5tR.js.map +0 -1
  564. package/dist/assets/nodes.CkHD8Mis.js +0 -2
  565. package/dist/assets/nodes.CkHD8Mis.js.map +0 -1
  566. package/dist/assets/opfs-ahp-CvqFFNTs.js +0 -4
  567. package/dist/assets/opfs-ahp-CvqFFNTs.js.map +0 -1
  568. package/dist/assets/opfs-ahp.BE5Mymun.js +0 -4
  569. package/dist/assets/opfs-ahp.BE5Mymun.js.map +0 -1
  570. package/dist/assets/pglite-worker-CBI3hEVN.js +0 -144
  571. package/dist/assets/pglite-worker-CBI3hEVN.js.map +0 -1
  572. package/dist/assets/pglite-worker.dssW4LQw.js +0 -2
  573. package/dist/assets/pglite-worker.dssW4LQw.js.map +0 -1
  574. package/dist/assets/postgres-CkP7QCDB.data +0 -0
  575. package/dist/assets/postgres-CyuUVpXN.wasm +0 -0
  576. package/dist/assets/registerServiceWorker.3WXSlUUt.js +0 -2
  577. package/dist/assets/registerServiceWorker.3WXSlUUt.js.map +0 -1
  578. package/dist/assets/root.20yJwNI0.js +0 -6
  579. package/dist/assets/root.20yJwNI0.js.map +0 -1
  580. package/dist/assets/style-BkLV0sfQ.css +0 -1
  581. package/dist/assets/useAcceptedCookies.BEC0OUzL.js +0 -2
  582. package/dist/assets/useAcceptedCookies.BEC0OUzL.js.map +0 -1
  583. package/dist/assets/useDefaultDocumentModelEditor.oOnI3BO7.js +0 -2
  584. package/dist/assets/useDefaultDocumentModelEditor.oOnI3BO7.js.map +0 -1
  585. package/dist/assets/useInitSentry.DX0S8ltZ.js +0 -368
  586. package/dist/assets/useInitSentry.DX0S8ltZ.js.map +0 -1
  587. package/dist/external-packages.js +0 -1
  588. package/dist/fonts/Inter-Black.ttf +0 -0
  589. package/dist/fonts/Inter-Bold.ttf +0 -0
  590. package/dist/fonts/Inter-ExtraBold.ttf +0 -0
  591. package/dist/fonts/Inter-ExtraLight.ttf +0 -0
  592. package/dist/fonts/Inter-Light.ttf +0 -0
  593. package/dist/fonts/Inter-Medium.ttf +0 -0
  594. package/dist/fonts/Inter-Regular.ttf +0 -0
  595. package/dist/fonts/Inter-SemiBold.ttf +0 -0
  596. package/dist/fonts/Inter-Thin.ttf +0 -0
  597. package/dist/fonts/Inter-VariableFont_slnt,wght.ttf +0 -0
  598. package/dist/hmr.js +0 -2
  599. package/dist/hmr.js.map +0 -1
  600. package/dist/service-worker.js +0 -2
  601. package/dist/service-worker.js.map +0 -1
  602. package/dist/swEnv.js +0 -70
  603. package/dist/vite-envs.sh +0 -494
@@ -1,333 +0,0 @@
1
- var Sv=Object.defineProperty;var jh=e=>{throw TypeError(e)};var Ev=(e,t,n)=>t in e?Sv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ni=(e,t,n)=>Ev(e,typeof t!="symbol"?t+"":t,n),I1=(e,t,n)=>t.has(e)||jh("Cannot "+n);var J=(e,t,n)=>(I1(e,t,"read from private field"),n?n.call(e):t.get(e)),_e=(e,t,n)=>t.has(e)?jh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ye=(e,t,n,r)=>(I1(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),ze=(e,t,n)=>(I1(e,t,"access private method"),n);var jc=(e,t,n,r)=>({set _(o){ye(e,t,o,n)},get _(){return J(e,t,r)}});import*as P from"react";import pe,{forwardRef as Co,useLayoutEffect as mi,useState as we,Suspense as Av,useRef as Je,useEffect as Ye,useCallback as Te,useMemo as bt,useId as I6,useContext as ku,createContext as A0,Fragment as Fl,Component as Ov,createElement as Rd,useSyncExternalStore as P6,memo as kv,isValidElement as Ds,cloneElement as Td}from"react";import{jsx as p,Fragment as Pr,jsxs as q}from"react/jsx-runtime";import*as M6 from"react-dom";import _v,{createPortal as Iv,flushSync as Pv}from"react-dom";const Mv="modulepreload",Rv=function(e,t){return new URL(e,t).href},$h={},O0=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let i=function(u){return Promise.all(u.map(d=>Promise.resolve(d).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};const a=document.getElementsByTagName("link"),c=document.querySelector("meta[property=csp-nonce]"),l=(c==null?void 0:c.nonce)||(c==null?void 0:c.getAttribute("nonce"));o=i(n.map(u=>{if(u=Rv(u,r),u in $h)return;$h[u]=!0;const d=u.endsWith(".css"),f=d?'[rel="stylesheet"]':"";if(!!r)for(let m=a.length-1;m>=0;m--){const b=a[m];if(b.href===u&&(!d||b.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${f}`))return;const g=document.createElement("link");if(g.rel=d?"stylesheet":Mv,d||(g.as="script"),g.crossOrigin="",g.href=u,l&&g.setAttribute("nonce",l),document.head.appendChild(g),d)return new Promise((m,b)=>{g.addEventListener("load",m),g.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${u}`)))})}))}function s(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return o.then(i=>{for(const a of i||[])a.status==="rejected"&&s(a.reason);return t().catch(s)})};function Uh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Mr(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Uh(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():Uh(e[o],null)}}}}function ht(...e){return P.useCallback(Mr(...e),e)}function qo(e){const t=Nv(e),n=P.forwardRef((r,o)=>{const{children:s,...i}=r,a=P.Children.toArray(s),c=a.find(Dv);if(c){const l=c.props.children,u=a.map(d=>d===c?P.Children.count(l)>1?P.Children.only(null):P.isValidElement(l)?l.props.children:null:d);return p(t,{...i,ref:o,children:P.isValidElement(l)?P.cloneElement(l,void 0,u):null})}return p(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var Tv=qo("Slot");function Nv(e){const t=P.forwardRef((n,r)=>{const{children:o,...s}=n;if(P.isValidElement(o)){const i=Bv(o),a=Fv(s,o.props);return o.type!==P.Fragment&&(a.ref=r?Mr(r,i):i),P.cloneElement(o,a)}return P.Children.count(o)>1?P.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var R6=Symbol("radix.slottable");function Lv(e){const t=({children:n})=>p(Pr,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=R6,t}function Dv(e){return P.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===R6}function Fv(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Bv(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function T6(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=T6(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function kn(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=T6(e))&&(r&&(r+=" "),r+=t);return r}const Zh=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Wh=kn,Vv=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Wh(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(l=>{const u=n==null?void 0:n[l],d=s==null?void 0:s[l];if(u===null)return null;const f=Zh(u)||Zh(d);return o[l][f]}),a=n&&Object.entries(n).reduce((l,u)=>{let[d,f]=u;return f===void 0||(l[d]=f),l},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((l,u)=>{let{class:d,className:f,...h}=u;return Object.entries(h).every(g=>{let[m,b]=g;return Array.isArray(b)?b.includes({...s,...a}[m]):{...s,...a}[m]===b})?[...l,d,f]:l},[]);return Wh(e,i,c,n==null?void 0:n.class,n==null?void 0:n.className)},k0="-",zv=e=>{const t=jv(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(k0);return a[0]===""&&a.length!==1&&a.shift(),N6(a,t)||Hv(i)},getConflictingClassGroupIds:(i,a)=>{const c=n[i]||[];return a&&r[i]?[...c,...r[i]]:c}}},N6=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?N6(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(k0);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId},Gh=/^\[(.+)\]$/,Hv=e=>{if(Gh.test(e)){const t=Gh.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},jv=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)Nd(n[o],r,o,t);return r},Nd=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:qh(t,o);s.classGroupId=n;return}if(typeof o=="function"){if($v(o)){Nd(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{Nd(i,qh(t,s),n,r)})})},qh=(e,t)=>{let n=e;return t.split(k0).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},$v=e=>e.isThemeGetter,Uv=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}},Ld="!",Dd=":",Zv=Dd.length,Wv=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let i=0,a=0,c=0,l;for(let g=0;g<o.length;g++){let m=o[g];if(i===0&&a===0){if(m===Dd){s.push(o.slice(c,g)),c=g+Zv;continue}if(m==="/"){l=g;continue}}m==="["?i++:m==="]"?i--:m==="("?a++:m===")"&&a--}const u=s.length===0?o:o.substring(c),d=Gv(u),f=d!==u,h=l&&l>c?l-c:void 0;return{modifiers:s,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:h}};if(t){const o=t+Dd,s=r;r=i=>i.startsWith(o)?s(i.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},Gv=e=>e.endsWith(Ld)?e.substring(0,e.length-1):e.startsWith(Ld)?e.substring(1):e,qv=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let s=[];return r.forEach(i=>{i[0]==="["||t[i]?(o.push(...s.sort(),i),s=[]):s.push(i)}),o.push(...s.sort()),o}},Jv=e=>({cache:Uv(e.cacheSize),parseClassName:Wv(e),sortModifiers:qv(e),...zv(e)}),Yv=/\s+/,Kv=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,i=[],a=e.trim().split(Yv);let c="";for(let l=a.length-1;l>=0;l-=1){const u=a[l],{isExternal:d,modifiers:f,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:m}=n(u);if(d){c=u+(c.length>0?" "+c:c);continue}let b=!!m,y=r(b?g.substring(0,m):g);if(!y){if(!b){c=u+(c.length>0?" "+c:c);continue}if(y=r(g),!y){c=u+(c.length>0?" "+c:c);continue}b=!1}const v=s(f).join(":"),w=h?v+Ld:v,x=w+y;if(i.includes(x))continue;i.push(x);const C=o(y,b);for(let S=0;S<C.length;++S){const A=C[S];i.push(w+A)}c=u+(c.length>0?" "+c:c)}return c};function ic(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=L6(t))&&(r&&(r+=" "),r+=n);return r}const L6=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=L6(e[r]))&&(n&&(n+=" "),n+=t);return n};function Xv(e,...t){let n,r,o,s=i;function i(c){const l=t.reduce((u,d)=>d(u),e());return n=Jv(l),r=n.cache.get,o=n.cache.set,s=a,a(c)}function a(c){const l=r(c);if(l)return l;const u=Kv(c,n);return o(c,u),u}return function(){return s(ic.apply(null,arguments))}}const Ct=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},D6=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,F6=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Qv=/^\d+\/\d+$/,ew=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,tw=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,nw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,rw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ow=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,bs=e=>Qv.test(e),$e=e=>!!e&&!Number.isNaN(Number(e)),Ur=e=>!!e&&Number.isInteger(Number(e)),P1=e=>e.endsWith("%")&&$e(e.slice(0,-1)),gr=e=>ew.test(e),sw=()=>!0,iw=e=>tw.test(e)&&!nw.test(e),B6=()=>!1,aw=e=>rw.test(e),cw=e=>ow.test(e),lw=e=>!Ce(e)&&!xe(e),uw=e=>gi(e,H6,B6),Ce=e=>D6.test(e),Ao=e=>gi(e,j6,iw),M1=e=>gi(e,mw,$e),Jh=e=>gi(e,V6,B6),dw=e=>gi(e,z6,cw),$c=e=>gi(e,$6,aw),xe=e=>F6.test(e),Li=e=>bi(e,j6),fw=e=>bi(e,gw),Yh=e=>bi(e,V6),hw=e=>bi(e,H6),pw=e=>bi(e,z6),Uc=e=>bi(e,$6,!0),gi=(e,t,n)=>{const r=D6.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},bi=(e,t,n=!1)=>{const r=F6.exec(e);return r?r[1]?t(r[1]):n:!1},V6=e=>e==="position"||e==="percentage",z6=e=>e==="image"||e==="url",H6=e=>e==="length"||e==="size"||e==="bg-size",j6=e=>e==="length",mw=e=>e==="number",gw=e=>e==="family-name",$6=e=>e==="shadow",bw=()=>{const e=Ct("color"),t=Ct("font"),n=Ct("text"),r=Ct("font-weight"),o=Ct("tracking"),s=Ct("leading"),i=Ct("breakpoint"),a=Ct("container"),c=Ct("spacing"),l=Ct("radius"),u=Ct("shadow"),d=Ct("inset-shadow"),f=Ct("text-shadow"),h=Ct("drop-shadow"),g=Ct("blur"),m=Ct("perspective"),b=Ct("aspect"),y=Ct("ease"),v=Ct("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...x(),xe,Ce],S=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],k=()=>[xe,Ce,c],O=()=>[bs,"full","auto",...k()],T=()=>[Ur,"none","subgrid",xe,Ce],B=()=>["auto",{span:["full",Ur,xe,Ce]},Ur,xe,Ce],_=()=>[Ur,"auto",xe,Ce],R=()=>["auto","min","max","fr",xe,Ce],E=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],V=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...k()],H=()=>[bs,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],N=()=>[e,xe,Ce],F=()=>[...x(),Yh,Jh,{position:[xe,Ce]}],X=()=>["no-repeat",{repeat:["","x","y","space","round"]}],j=()=>["auto","cover","contain",hw,uw,{size:[xe,Ce]}],M=()=>[P1,Li,Ao],Y=()=>["","none","full",l,xe,Ce],G=()=>["",$e,Li,Ao],W=()=>["solid","dashed","dotted","double"],re=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ee=()=>[$e,P1,Yh,Jh],ie=()=>["","none",g,xe,Ce],ce=()=>["none",$e,xe,Ce],be=()=>["none",$e,xe,Ce],Oe=()=>[$e,xe,Ce],He=()=>[bs,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[gr],breakpoint:[gr],color:[sw],container:[gr],"drop-shadow":[gr],ease:["in","out","in-out"],font:[lw],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[gr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[gr],shadow:[gr],spacing:["px",$e],text:[gr],"text-shadow":[gr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",bs,Ce,xe,b]}],container:["container"],columns:[{columns:[$e,Ce,xe,a]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:C()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:O()}],"inset-x":[{"inset-x":O()}],"inset-y":[{"inset-y":O()}],start:[{start:O()}],end:[{end:O()}],top:[{top:O()}],right:[{right:O()}],bottom:[{bottom:O()}],left:[{left:O()}],visibility:["visible","invisible","collapse"],z:[{z:[Ur,"auto",xe,Ce]}],basis:[{basis:[bs,"full","auto",a,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[$e,bs,"auto","initial","none",Ce]}],grow:[{grow:["",$e,xe,Ce]}],shrink:[{shrink:["",$e,xe,Ce]}],order:[{order:[Ur,"first","last","none",xe,Ce]}],"grid-cols":[{"grid-cols":T()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":T()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":R()}],"auto-rows":[{"auto-rows":R()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...E(),"normal"]}],"justify-items":[{"justify-items":[...V(),"normal"]}],"justify-self":[{"justify-self":["auto",...V()]}],"align-content":[{content:["normal",...E()]}],"align-items":[{items:[...V(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...V(),{baseline:["","last"]}]}],"place-content":[{"place-content":E()}],"place-items":[{"place-items":[...V(),"baseline"]}],"place-self":[{"place-self":["auto",...V()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:H()}],w:[{w:[a,"screen",...H()]}],"min-w":[{"min-w":[a,"screen","none",...H()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...H()]}],h:[{h:["screen","lh",...H()]}],"min-h":[{"min-h":["screen","lh","none",...H()]}],"max-h":[{"max-h":["screen","lh",...H()]}],"font-size":[{text:["base",n,Li,Ao]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,xe,M1]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",P1,Ce]}],"font-family":[{font:[fw,Ce,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,xe,Ce]}],"line-clamp":[{"line-clamp":[$e,"none",xe,M1]}],leading:[{leading:[s,...k()]}],"list-image":[{"list-image":["none",xe,Ce]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",xe,Ce]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:[$e,"from-font","auto",xe,Ao]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[$e,"auto",xe,Ce]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xe,Ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",xe,Ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:F()}],"bg-repeat":[{bg:X()}],"bg-size":[{bg:j()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ur,xe,Ce],radial:["",xe,Ce],conic:[Ur,xe,Ce]},pw,dw]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:M()}],"gradient-via-pos":[{via:M()}],"gradient-to-pos":[{to:M()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:Y()}],"rounded-s":[{"rounded-s":Y()}],"rounded-e":[{"rounded-e":Y()}],"rounded-t":[{"rounded-t":Y()}],"rounded-r":[{"rounded-r":Y()}],"rounded-b":[{"rounded-b":Y()}],"rounded-l":[{"rounded-l":Y()}],"rounded-ss":[{"rounded-ss":Y()}],"rounded-se":[{"rounded-se":Y()}],"rounded-ee":[{"rounded-ee":Y()}],"rounded-es":[{"rounded-es":Y()}],"rounded-tl":[{"rounded-tl":Y()}],"rounded-tr":[{"rounded-tr":Y()}],"rounded-br":[{"rounded-br":Y()}],"rounded-bl":[{"rounded-bl":Y()}],"border-w":[{border:G()}],"border-w-x":[{"border-x":G()}],"border-w-y":[{"border-y":G()}],"border-w-s":[{"border-s":G()}],"border-w-e":[{"border-e":G()}],"border-w-t":[{"border-t":G()}],"border-w-r":[{"border-r":G()}],"border-w-b":[{"border-b":G()}],"border-w-l":[{"border-l":G()}],"divide-x":[{"divide-x":G()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":G()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...W(),"hidden","none"]}],"divide-style":[{divide:[...W(),"hidden","none"]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:[...W(),"none","hidden"]}],"outline-offset":[{"outline-offset":[$e,xe,Ce]}],"outline-w":[{outline:["",$e,Li,Ao]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",u,Uc,$c]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",d,Uc,$c]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[$e,Ao]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":G()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",f,Uc,$c]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[$e,xe,Ce]}],"mix-blend":[{"mix-blend":[...re(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":re()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[$e]}],"mask-image-linear-from-pos":[{"mask-linear-from":ee()}],"mask-image-linear-to-pos":[{"mask-linear-to":ee()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":ee()}],"mask-image-t-to-pos":[{"mask-t-to":ee()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":ee()}],"mask-image-r-to-pos":[{"mask-r-to":ee()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":ee()}],"mask-image-b-to-pos":[{"mask-b-to":ee()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":ee()}],"mask-image-l-to-pos":[{"mask-l-to":ee()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":ee()}],"mask-image-x-to-pos":[{"mask-x-to":ee()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":ee()}],"mask-image-y-to-pos":[{"mask-y-to":ee()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[xe,Ce]}],"mask-image-radial-from-pos":[{"mask-radial-from":ee()}],"mask-image-radial-to-pos":[{"mask-radial-to":ee()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":x()}],"mask-image-conic-pos":[{"mask-conic":[$e]}],"mask-image-conic-from-pos":[{"mask-conic-from":ee()}],"mask-image-conic-to-pos":[{"mask-conic-to":ee()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:F()}],"mask-repeat":[{mask:X()}],"mask-size":[{mask:j()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",xe,Ce]}],filter:[{filter:["","none",xe,Ce]}],blur:[{blur:ie()}],brightness:[{brightness:[$e,xe,Ce]}],contrast:[{contrast:[$e,xe,Ce]}],"drop-shadow":[{"drop-shadow":["","none",h,Uc,$c]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",$e,xe,Ce]}],"hue-rotate":[{"hue-rotate":[$e,xe,Ce]}],invert:[{invert:["",$e,xe,Ce]}],saturate:[{saturate:[$e,xe,Ce]}],sepia:[{sepia:["",$e,xe,Ce]}],"backdrop-filter":[{"backdrop-filter":["","none",xe,Ce]}],"backdrop-blur":[{"backdrop-blur":ie()}],"backdrop-brightness":[{"backdrop-brightness":[$e,xe,Ce]}],"backdrop-contrast":[{"backdrop-contrast":[$e,xe,Ce]}],"backdrop-grayscale":[{"backdrop-grayscale":["",$e,xe,Ce]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[$e,xe,Ce]}],"backdrop-invert":[{"backdrop-invert":["",$e,xe,Ce]}],"backdrop-opacity":[{"backdrop-opacity":[$e,xe,Ce]}],"backdrop-saturate":[{"backdrop-saturate":[$e,xe,Ce]}],"backdrop-sepia":[{"backdrop-sepia":["",$e,xe,Ce]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",xe,Ce]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[$e,"initial",xe,Ce]}],ease:[{ease:["linear","initial",y,xe,Ce]}],delay:[{delay:[$e,xe,Ce]}],animate:[{animate:["none",v,xe,Ce]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,xe,Ce]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:ce()}],"rotate-x":[{"rotate-x":ce()}],"rotate-y":[{"rotate-y":ce()}],"rotate-z":[{"rotate-z":ce()}],scale:[{scale:be()}],"scale-x":[{"scale-x":be()}],"scale-y":[{"scale-y":be()}],"scale-z":[{"scale-z":be()}],"scale-3d":["scale-3d"],skew:[{skew:Oe()}],"skew-x":[{"skew-x":Oe()}],"skew-y":[{"skew-y":Oe()}],transform:[{transform:[xe,Ce,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:He()}],"translate-x":[{"translate-x":He()}],"translate-y":[{"translate-y":He()}],"translate-z":[{"translate-z":He()}],"translate-none":["translate-none"],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",xe,Ce]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",xe,Ce]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[$e,Li,Ao,M1]}],stroke:[{stroke:["none",...N()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},he=Xv(bw);function Pe(...e){return he(kn(e))}const yn=Co(function(t,n){const{color:r="dark",size:o="medium",className:s="",children:i,icon:a,iconPosition:c="left",...l}=t,u={small:"px-2 py-1.5 text-xs rounded-md font-medium",medium:"px-6 py-3 text-base rounded-xl font-semibold tracking-wide"},f=ic({light:"bg-gray-200 text-gray-600 hover:text-gray-700 hover:border-gray-300 active:border-slate-100 active:text-gray-600 disabled:text-gray-400",dark:"bg-gray-800 text-slate-50 hover:bg-slate-800 active:border-slate-700 disabled:bg-gray-300 disabled:text-slate-100",red:"bg-red-900 text-slate-50 hover:opacity-80 active:border-red-800 disabled:text-red-400 disabled:opacity-100",blue:"bg-blue-900 text-slate-50 hover:opacity-80 active:border-blue-800 disabled:text-blue-400 disabled:opacity-100"}[r],u[o]),h=he("flex items-center justify-center gap-2 border border-none outline-none transition disabled:cursor-not-allowed",f,s);return q("button",{className:h,ref:n,...l,children:[c==="left"&&a,i,c==="right"&&a]})});function Me(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function yw(e,t){const n=P.createContext(t),r=s=>{const{children:i,...a}=s,c=P.useMemo(()=>a,Object.values(a));return p(n.Provider,{value:c,children:i})};r.displayName=e+"Provider";function o(s){const i=P.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function Br(e,t=[]){let n=[];function r(s,i){const a=P.createContext(i),c=n.length;n=[...n,i];const l=d=>{var y;const{scope:f,children:h,...g}=d,m=((y=f==null?void 0:f[e])==null?void 0:y[c])||a,b=P.useMemo(()=>g,Object.values(g));return p(m.Provider,{value:b,children:h})};l.displayName=s+"Provider";function u(d,f){var m;const h=((m=f==null?void 0:f[e])==null?void 0:m[c])||a,g=P.useContext(h);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[l,u]}const o=()=>{const s=n.map(i=>P.createContext(i));return function(a){const c=(a==null?void 0:a[e])||s;return P.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,vw(o,...t)]}function vw(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:c,scopeName:l})=>{const d=c(s)[`__scope${l}`];return{...a,...d}},{});return P.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var go=globalThis!=null&&globalThis.document?P.useLayoutEffect:()=>{},ww=P[" useInsertionEffect ".trim().toString()]||go;function yi({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=Cw({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:o;{const u=P.useRef(e!==void 0);P.useEffect(()=>{const d=u.current;d!==a&&console.warn(`${r} 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,r])}const l=P.useCallback(u=>{var d;if(a){const f=xw(u)?u(e):u;f!==e&&((d=i.current)==null||d.call(i,f))}else s(u)},[a,e,s,i]);return[c,l]}function Cw({defaultProp:e,onChange:t}){const[n,r]=P.useState(e),o=P.useRef(n),s=P.useRef(t);return ww(()=>{s.current=t},[t]),P.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function xw(e){return typeof e=="function"}var Sw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ze=Sw.reduce((e,t)=>{const n=qo(`Primitive.${t}`),r=P.forwardRef((o,s)=>{const{asChild:i,...a}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p(c,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function U6(e,t){e&&M6.flushSync(()=>e.dispatchEvent(t))}function Z6(e){const t=e+"CollectionProvider",[n,r]=Br(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=m=>{const{scope:b,children:y}=m,v=pe.useRef(null),w=pe.useRef(new Map).current;return p(o,{scope:b,itemMap:w,collectionRef:v,children:y})};i.displayName=t;const a=e+"CollectionSlot",c=qo(a),l=pe.forwardRef((m,b)=>{const{scope:y,children:v}=m,w=s(a,y),x=ht(b,w.collectionRef);return p(c,{ref:x,children:v})});l.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",f=qo(u),h=pe.forwardRef((m,b)=>{const{scope:y,children:v,...w}=m,x=pe.useRef(null),C=ht(b,x),S=s(u,y);return pe.useEffect(()=>(S.itemMap.set(x,{ref:x,...w}),()=>void S.itemMap.delete(x))),p(f,{[d]:"",ref:C,children:v})});h.displayName=u;function g(m){const b=s(e+"CollectionConsumer",m);return pe.useCallback(()=>{const v=b.collectionRef.current;if(!v)return[];const w=Array.from(v.querySelectorAll(`[${d}]`));return Array.from(b.itemMap.values()).sort((S,A)=>w.indexOf(S.ref.current)-w.indexOf(A.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:i,Slot:l,ItemSlot:h},g,r]}var Ew=P.createContext(void 0);function _0(e){const t=P.useContext(Ew);return e||t||"ltr"}function Rr(e){const t=P.useRef(e);return P.useEffect(()=>{t.current=e}),P.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Aw(e,t=globalThis==null?void 0:globalThis.document){const n=Rr(e);P.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Ow="DismissableLayer",Fd="dismissableLayer.update",kw="dismissableLayer.pointerDownOutside",_w="dismissableLayer.focusOutside",Kh,W6=P.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ac=P.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...c}=e,l=P.useContext(W6),[u,d]=P.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=P.useState({}),g=ht(t,A=>d(A)),m=Array.from(l.layers),[b]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(b),v=u?m.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,x=v>=y,C=Mw(A=>{const k=A.target,O=[...l.branches].some(T=>T.contains(k));!x||O||(o==null||o(A),i==null||i(A),A.defaultPrevented||a==null||a())},f),S=Rw(A=>{const k=A.target;[...l.branches].some(T=>T.contains(k))||(s==null||s(A),i==null||i(A),A.defaultPrevented||a==null||a())},f);return Aw(A=>{v===l.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},f),P.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Kh=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Xh(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Kh)}},[u,f,n,l]),P.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Xh())},[u,l]),P.useEffect(()=>{const A=()=>h({});return document.addEventListener(Fd,A),()=>document.removeEventListener(Fd,A)},[]),p(Ze.div,{...c,ref:g,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:Me(e.onFocusCapture,S.onFocusCapture),onBlurCapture:Me(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:Me(e.onPointerDownCapture,C.onPointerDownCapture)})});ac.displayName=Ow;var Iw="DismissableLayerBranch",Pw=P.forwardRef((e,t)=>{const n=P.useContext(W6),r=P.useRef(null),o=ht(t,r);return P.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),p(Ze.div,{...e,ref:o})});Pw.displayName=Iw;function Mw(e,t=globalThis==null?void 0:globalThis.document){const n=Rr(e),r=P.useRef(!1),o=P.useRef(()=>{});return P.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let c=function(){G6(kw,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Rw(e,t=globalThis==null?void 0:globalThis.document){const n=Rr(e),r=P.useRef(!1);return P.useEffect(()=>{const o=s=>{s.target&&!r.current&&G6(_w,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Xh(){const e=new CustomEvent(Fd);document.dispatchEvent(e)}function G6(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?U6(o,s):o.dispatchEvent(s)}var R1=0;function I0(){P.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Qh()),document.body.insertAdjacentElement("beforeend",e[1]??Qh()),R1++,()=>{R1===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),R1--}},[])}function Qh(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var T1="focusScope.autoFocusOnMount",N1="focusScope.autoFocusOnUnmount",ep={bubbles:!1,cancelable:!0},Tw="FocusScope",_u=P.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,c]=P.useState(null),l=Rr(o),u=Rr(s),d=P.useRef(null),f=ht(t,m=>c(m)),h=P.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;P.useEffect(()=>{if(r){let m=function(w){if(h.paused||!a)return;const x=w.target;a.contains(x)?d.current=x:Jr(d.current,{select:!0})},b=function(w){if(h.paused||!a)return;const x=w.relatedTarget;x!==null&&(a.contains(x)||Jr(d.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const C of w)C.removedNodes.length>0&&Jr(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",b);const v=new MutationObserver(y);return a&&v.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",b),v.disconnect()}}},[r,a,h.paused]),P.useEffect(()=>{if(a){np.add(h);const m=document.activeElement;if(!a.contains(m)){const y=new CustomEvent(T1,ep);a.addEventListener(T1,l),a.dispatchEvent(y),y.defaultPrevented||(Nw(Vw(q6(a)),{select:!0}),document.activeElement===m&&Jr(a))}return()=>{a.removeEventListener(T1,l),setTimeout(()=>{const y=new CustomEvent(N1,ep);a.addEventListener(N1,u),a.dispatchEvent(y),y.defaultPrevented||Jr(m??document.body,{select:!0}),a.removeEventListener(N1,u),np.remove(h)},0)}}},[a,l,u,h]);const g=P.useCallback(m=>{if(!n&&!r||h.paused)return;const b=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,y=document.activeElement;if(b&&y){const v=m.currentTarget,[w,x]=Lw(v);w&&x?!m.shiftKey&&y===x?(m.preventDefault(),n&&Jr(w,{select:!0})):m.shiftKey&&y===w&&(m.preventDefault(),n&&Jr(x,{select:!0})):y===v&&m.preventDefault()}},[n,r,h.paused]);return p(Ze.div,{tabIndex:-1,...i,ref:f,onKeyDown:g})});_u.displayName=Tw;function Nw(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Jr(r,{select:t}),document.activeElement!==n)return}function Lw(e){const t=q6(e),n=tp(t,e),r=tp(t.reverse(),e);return[n,r]}function q6(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function tp(e,t){for(const n of e)if(!Dw(n,{upTo:t}))return n}function Dw(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Fw(e){return e instanceof HTMLInputElement&&"select"in e}function Jr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Fw(e)&&t&&e.select()}}var np=Bw();function Bw(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=rp(e,t),e.unshift(t)},remove(t){var n;e=rp(e,t),(n=e[0])==null||n.resume()}}}function rp(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Vw(e){return e.filter(t=>t.tagName!=="A")}var zw=P[" useId ".trim().toString()]||(()=>{}),Hw=0;function zt(e){const[t,n]=P.useState(zw());return go(()=>{n(r=>r??String(Hw++))},[e]),e||(t?`radix-${t}`:"")}const jw=["top","right","bottom","left"],bo=Math.min,nn=Math.max,Bl=Math.round,Zc=Math.floor,tr=e=>({x:e,y:e}),$w={left:"right",right:"left",bottom:"top",top:"bottom"},Uw={start:"end",end:"start"};function Bd(e,t,n){return nn(e,bo(t,n))}function Tr(e,t){return typeof e=="function"?e(t):e}function Nr(e){return e.split("-")[0]}function vi(e){return e.split("-")[1]}function P0(e){return e==="x"?"y":"x"}function M0(e){return e==="y"?"height":"width"}function Xn(e){return["top","bottom"].includes(Nr(e))?"y":"x"}function R0(e){return P0(Xn(e))}function Zw(e,t,n){n===void 0&&(n=!1);const r=vi(e),o=R0(e),s=M0(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Vl(i)),[i,Vl(i)]}function Ww(e){const t=Vl(e);return[Vd(e),t,Vd(t)]}function Vd(e){return e.replace(/start|end/g,t=>Uw[t])}function Gw(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:i;default:return[]}}function qw(e,t,n,r){const o=vi(e);let s=Gw(Nr(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Vd)))),s}function Vl(e){return e.replace(/left|right|bottom|top/g,t=>$w[t])}function Jw(e){return{top:0,right:0,bottom:0,left:0,...e}}function J6(e){return typeof e!="number"?Jw(e):{top:e,right:e,bottom:e,left:e}}function zl(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function op(e,t,n){let{reference:r,floating:o}=e;const s=Xn(t),i=R0(t),a=M0(i),c=Nr(t),l=s==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[a]/2-o[a]/2;let h;switch(c){case"top":h={x:u,y:r.y-o.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(vi(t)){case"start":h[i]-=f*(n&&l?-1:1);break;case"end":h[i]+=f*(n&&l?-1:1);break}return h}const Yw=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=op(l,r,c),f=r,h={},g=0;for(let m=0;m<a.length;m++){const{name:b,fn:y}=a[m],{x:v,y:w,data:x,reset:C}=await y({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:h,rects:l,platform:i,elements:{reference:e,floating:t}});u=v??u,d=w??d,h={...h,[b]:{...h[b],...x}},C&&g<=50&&(g++,typeof C=="object"&&(C.placement&&(f=C.placement),C.rects&&(l=C.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:u,y:d}=op(l,f,c)),m=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:h}};async function ma(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=Tr(t,e),g=J6(h),b=a[f?d==="floating"?"reference":"floating":d],y=zl(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(b)))==null||n?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:l,rootBoundary:u,strategy:c})),v=d==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),x=await(s.isElement==null?void 0:s.isElement(w))?await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1}:{x:1,y:1},C=zl(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:w,strategy:c}):v);return{top:(y.top-C.top+g.top)/x.y,bottom:(C.bottom-y.bottom+g.bottom)/x.y,left:(y.left-C.left+g.left)/x.x,right:(C.right-y.right+g.right)/x.x}}const Kw=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=Tr(e,t)||{};if(l==null)return{};const d=J6(u),f={x:n,y:r},h=R0(o),g=M0(h),m=await i.getDimensions(l),b=h==="y",y=b?"top":"left",v=b?"bottom":"right",w=b?"clientHeight":"clientWidth",x=s.reference[g]+s.reference[h]-f[h]-s.floating[g],C=f[h]-s.reference[h],S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let A=S?S[w]:0;(!A||!await(i.isElement==null?void 0:i.isElement(S)))&&(A=a.floating[w]||s.floating[g]);const k=x/2-C/2,O=A/2-m[g]/2-1,T=bo(d[y],O),B=bo(d[v],O),_=T,R=A-m[g]-B,E=A/2-m[g]/2+k,V=Bd(_,E,R),D=!c.arrow&&vi(o)!=null&&E!==V&&s.reference[g]/2-(E<_?T:B)-m[g]/2<0,H=D?E<_?E-_:E-R:0;return{[h]:f[h]+H,data:{[h]:V,centerOffset:E-V-H,...D&&{alignmentOffset:H}},reset:D}}}),Xw=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...b}=Tr(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=Nr(o),v=Xn(a),w=Nr(a)===a,x=await(c.isRTL==null?void 0:c.isRTL(l.floating)),C=f||(w||!m?[Vl(a)]:Ww(a)),S=g!=="none";!f&&S&&C.push(...qw(a,m,g,x));const A=[a,...C],k=await ma(t,b),O=[];let T=((r=s.flip)==null?void 0:r.overflows)||[];if(u&&O.push(k[y]),d){const E=Zw(o,i,x);O.push(k[E[0]],k[E[1]])}if(T=[...T,{placement:o,overflows:O}],!O.every(E=>E<=0)){var B,_;const E=(((B=s.flip)==null?void 0:B.index)||0)+1,V=A[E];if(V&&(!(d==="alignment"?v!==Xn(V):!1)||T.every(N=>N.overflows[0]>0&&Xn(N.placement)===v)))return{data:{index:E,overflows:T},reset:{placement:V}};let D=(_=T.filter(H=>H.overflows[0]<=0).sort((H,N)=>H.overflows[1]-N.overflows[1])[0])==null?void 0:_.placement;if(!D)switch(h){case"bestFit":{var R;const H=(R=T.filter(N=>{if(S){const F=Xn(N.placement);return F===v||F==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(F=>F>0).reduce((F,X)=>F+X,0)]).sort((N,F)=>N[1]-F[1])[0])==null?void 0:R[0];H&&(D=H);break}case"initialPlacement":D=a;break}if(o!==D)return{reset:{placement:D}}}return{}}}};function sp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ip(e){return jw.some(t=>e[t]>=0)}const Qw=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Tr(e,t);switch(r){case"referenceHidden":{const s=await ma(t,{...o,elementContext:"reference"}),i=sp(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:ip(i)}}}case"escaped":{const s=await ma(t,{...o,altBoundary:!0}),i=sp(s,n.floating);return{data:{escapedOffsets:i,escaped:ip(i)}}}default:return{}}}}};async function eC(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Nr(n),a=vi(n),c=Xn(n)==="y",l=["left","top"].includes(i)?-1:1,u=s&&c?-1:1,d=Tr(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof g=="number"&&(h=a==="end"?g*-1:g),c?{x:h*u,y:f*l}:{x:f*l,y:h*u}}const tC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,c=await eC(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},nC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:b=>{let{x:y,y:v}=b;return{x:y,y:v}}},...c}=Tr(e,t),l={x:n,y:r},u=await ma(t,c),d=Xn(Nr(o)),f=P0(d);let h=l[f],g=l[d];if(s){const b=f==="y"?"top":"left",y=f==="y"?"bottom":"right",v=h+u[b],w=h-u[y];h=Bd(v,h,w)}if(i){const b=d==="y"?"top":"left",y=d==="y"?"bottom":"right",v=g+u[b],w=g-u[y];g=Bd(v,g,w)}const m=a.fn({...t,[f]:h,[d]:g});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:s,[d]:i}}}}}},rC=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=Tr(e,t),u={x:n,y:r},d=Xn(o),f=P0(d);let h=u[f],g=u[d];const m=Tr(a,t),b=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const w=f==="y"?"height":"width",x=s.reference[f]-s.floating[w]+b.mainAxis,C=s.reference[f]+s.reference[w]-b.mainAxis;h<x?h=x:h>C&&(h=C)}if(l){var y,v;const w=f==="y"?"width":"height",x=["top","left"].includes(Nr(o)),C=s.reference[d]-s.floating[w]+(x&&((y=i.offset)==null?void 0:y[d])||0)+(x?0:b.crossAxis),S=s.reference[d]+s.reference[w]+(x?0:((v=i.offset)==null?void 0:v[d])||0)-(x?b.crossAxis:0);g<C?g=C:g>S&&(g=S)}return{[f]:h,[d]:g}}}},oC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:c=()=>{},...l}=Tr(e,t),u=await ma(t,l),d=Nr(o),f=vi(o),h=Xn(o)==="y",{width:g,height:m}=s.floating;let b,y;d==="top"||d==="bottom"?(b=d,y=f===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(y=d,b=f==="end"?"top":"bottom");const v=m-u.top-u.bottom,w=g-u.left-u.right,x=bo(m-u[b],v),C=bo(g-u[y],w),S=!t.middlewareData.shift;let A=x,k=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(k=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=v),S&&!f){const T=nn(u.left,0),B=nn(u.right,0),_=nn(u.top,0),R=nn(u.bottom,0);h?k=g-2*(T!==0||B!==0?T+B:nn(u.left,u.right)):A=m-2*(_!==0||R!==0?_+R:nn(u.top,u.bottom))}await c({...t,availableWidth:k,availableHeight:A});const O=await i.getDimensions(a.floating);return g!==O.width||m!==O.height?{reset:{rects:!0}}:{}}}};function Iu(){return typeof window<"u"}function wi(e){return Y6(e)?(e.nodeName||"").toLowerCase():"#document"}function sn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function pr(e){var t;return(t=(Y6(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Y6(e){return Iu()?e instanceof Node||e instanceof sn(e).Node:!1}function Pn(e){return Iu()?e instanceof Element||e instanceof sn(e).Element:!1}function ir(e){return Iu()?e instanceof HTMLElement||e instanceof sn(e).HTMLElement:!1}function ap(e){return!Iu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof sn(e).ShadowRoot}function cc(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Mn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function sC(e){return["table","td","th"].includes(wi(e))}function Pu(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function T0(e){const t=N0(),n=Pn(e)?Mn(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function iC(e){let t=yo(e);for(;ir(t)&&!ei(t);){if(T0(t))return t;if(Pu(t))return null;t=yo(t)}return null}function N0(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ei(e){return["html","body","#document"].includes(wi(e))}function Mn(e){return sn(e).getComputedStyle(e)}function Mu(e){return Pn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function yo(e){if(wi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ap(e)&&e.host||pr(e);return ap(t)?t.host:t}function K6(e){const t=yo(e);return ei(t)?e.ownerDocument?e.ownerDocument.body:e.body:ir(t)&&cc(t)?t:K6(t)}function ga(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=K6(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=sn(o);if(s){const a=zd(i);return t.concat(i,i.visualViewport||[],cc(o)?o:[],a&&n?ga(a):[])}return t.concat(o,ga(o,[],n))}function zd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function X6(e){const t=Mn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ir(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=Bl(n)!==s||Bl(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function L0(e){return Pn(e)?e:e.contextElement}function Fs(e){const t=L0(e);if(!ir(t))return tr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=X6(t);let i=(s?Bl(n.width):n.width)/r,a=(s?Bl(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const aC=tr(0);function Q6(e){const t=sn(e);return!N0()||!t.visualViewport?aC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function cC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==sn(e)?!1:t}function Jo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=L0(e);let i=tr(1);t&&(r?Pn(r)&&(i=Fs(r)):i=Fs(e));const a=cC(s,n,r)?Q6(s):tr(0);let c=(o.left+a.x)/i.x,l=(o.top+a.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(s){const f=sn(s),h=r&&Pn(r)?sn(r):r;let g=f,m=zd(g);for(;m&&r&&h!==g;){const b=Fs(m),y=m.getBoundingClientRect(),v=Mn(m),w=y.left+(m.clientLeft+parseFloat(v.paddingLeft))*b.x,x=y.top+(m.clientTop+parseFloat(v.paddingTop))*b.y;c*=b.x,l*=b.y,u*=b.x,d*=b.y,c+=w,l+=x,g=sn(m),m=zd(g)}}return zl({width:u,height:d,x:c,y:l})}function D0(e,t){const n=Mu(e).scrollLeft;return t?t.left+n:Jo(pr(e)).left+n}function em(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:D0(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function lC(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=pr(r),a=t?Pu(t.floating):!1;if(r===i||a&&s)return n;let c={scrollLeft:0,scrollTop:0},l=tr(1);const u=tr(0),d=ir(r);if((d||!d&&!s)&&((wi(r)!=="body"||cc(i))&&(c=Mu(r)),ir(r))){const h=Jo(r);l=Fs(r),u.x=h.x+r.clientLeft,u.y=h.y+r.clientTop}const f=i&&!d&&!s?em(i,c,!0):tr(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function uC(e){return Array.from(e.getClientRects())}function dC(e){const t=pr(e),n=Mu(e),r=e.ownerDocument.body,o=nn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=nn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+D0(e);const a=-n.scrollTop;return Mn(r).direction==="rtl"&&(i+=nn(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}function fC(e,t){const n=sn(e),r=pr(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,c=0;if(o){s=o.width,i=o.height;const l=N0();(!l||l&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:s,height:i,x:a,y:c}}function hC(e,t){const n=Jo(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=ir(e)?Fs(e):tr(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,c=o*s.x,l=r*s.y;return{width:i,height:a,x:c,y:l}}function cp(e,t,n){let r;if(t==="viewport")r=fC(e,n);else if(t==="document")r=dC(pr(e));else if(Pn(t))r=hC(t,n);else{const o=Q6(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return zl(r)}function tm(e,t){const n=yo(e);return n===t||!Pn(n)||ei(n)?!1:Mn(n).position==="fixed"||tm(n,t)}function pC(e,t){const n=t.get(e);if(n)return n;let r=ga(e,[],!1).filter(a=>Pn(a)&&wi(a)!=="body"),o=null;const s=Mn(e).position==="fixed";let i=s?yo(e):e;for(;Pn(i)&&!ei(i);){const a=Mn(i),c=T0(i);!c&&a.position==="fixed"&&(o=null),(s?!c&&!o:!c&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||cc(i)&&!c&&tm(e,i))?r=r.filter(u=>u!==i):o=a,i=yo(i)}return t.set(e,r),r}function mC(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Pu(t)?[]:pC(t,this._c):[].concat(n),r],a=i[0],c=i.reduce((l,u)=>{const d=cp(t,u,o);return l.top=nn(d.top,l.top),l.right=bo(d.right,l.right),l.bottom=bo(d.bottom,l.bottom),l.left=nn(d.left,l.left),l},cp(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function gC(e){const{width:t,height:n}=X6(e);return{width:t,height:n}}function bC(e,t,n){const r=ir(t),o=pr(t),s=n==="fixed",i=Jo(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const c=tr(0);function l(){c.x=D0(o)}if(r||!r&&!s)if((wi(t)!=="body"||cc(o))&&(a=Mu(t)),r){const h=Jo(t,!0,s,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else o&&l();s&&!r&&o&&l();const u=o&&!r&&!s?em(o,a):tr(0),d=i.left+a.scrollLeft-c.x-u.x,f=i.top+a.scrollTop-c.y-u.y;return{x:d,y:f,width:i.width,height:i.height}}function L1(e){return Mn(e).position==="static"}function lp(e,t){if(!ir(e)||Mn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return pr(e)===n&&(n=n.ownerDocument.body),n}function nm(e,t){const n=sn(e);if(Pu(e))return n;if(!ir(e)){let o=yo(e);for(;o&&!ei(o);){if(Pn(o)&&!L1(o))return o;o=yo(o)}return n}let r=lp(e,t);for(;r&&sC(r)&&L1(r);)r=lp(r,t);return r&&ei(r)&&L1(r)&&!T0(r)?n:r||iC(e)||n}const yC=async function(e){const t=this.getOffsetParent||nm,n=this.getDimensions,r=await n(e.floating);return{reference:bC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function vC(e){return Mn(e).direction==="rtl"}const wC={convertOffsetParentRelativeRectToViewportRelativeRect:lC,getDocumentElement:pr,getClippingRect:mC,getOffsetParent:nm,getElementRects:yC,getClientRects:uC,getDimensions:gC,getScale:Fs,isElement:Pn,isRTL:vC};function rm(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function CC(e,t){let n=null,r;const o=pr(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),s();const l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:h}=l;if(a||t(),!f||!h)return;const g=Zc(d),m=Zc(o.clientWidth-(u+f)),b=Zc(o.clientHeight-(d+h)),y=Zc(u),w={rootMargin:-g+"px "+-m+"px "+-b+"px "+-y+"px",threshold:nn(0,bo(1,c))||1};let x=!0;function C(S){const A=S[0].intersectionRatio;if(A!==c){if(!x)return i();A?i(!1,A):r=setTimeout(()=>{i(!1,1e-7)},1e3)}A===1&&!rm(l,e.getBoundingClientRect())&&i(),x=!1}try{n=new IntersectionObserver(C,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,w)}n.observe(e)}return i(!0),s}function om(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=L0(e),u=o||s?[...l?ga(l):[],...ga(t)]:[];u.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const d=l&&a?CC(l,n):null;let f=-1,h=null;i&&(h=new ResizeObserver(y=>{let[v]=y;v&&v.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),n()}),l&&!c&&h.observe(l),h.observe(t));let g,m=c?Jo(e):null;c&&b();function b(){const y=Jo(e);m&&!rm(m,y)&&n(),m=y,g=requestAnimationFrame(b)}return n(),()=>{var y;u.forEach(v=>{o&&v.removeEventListener("scroll",n),s&&v.removeEventListener("resize",n)}),d==null||d(),(y=h)==null||y.disconnect(),h=null,c&&cancelAnimationFrame(g)}}const xC=tC,SC=nC,EC=Xw,AC=oC,OC=Qw,up=Kw,kC=rC,_C=(e,t,n)=>{const r=new Map,o={platform:wC,...n},s={...o.platform,_c:r};return Yw(e,t,{...o,platform:s})};var IC=typeof document<"u",PC=function(){},wl=IC?mi:PC;function Hl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Hl(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Hl(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function sm(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function dp(e,t){const n=sm(e);return Math.round(t*n)/n}function D1(e){const t=P.useRef(e);return wl(()=>{t.current=e}),t}function MC(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[u,d]=P.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=P.useState(r);Hl(f,r)||h(r);const[g,m]=P.useState(null),[b,y]=P.useState(null),v=P.useCallback(N=>{N!==S.current&&(S.current=N,m(N))},[]),w=P.useCallback(N=>{N!==A.current&&(A.current=N,y(N))},[]),x=s||g,C=i||b,S=P.useRef(null),A=P.useRef(null),k=P.useRef(u),O=c!=null,T=D1(c),B=D1(o),_=D1(l),R=P.useCallback(()=>{if(!S.current||!A.current)return;const N={placement:t,strategy:n,middleware:f};B.current&&(N.platform=B.current),_C(S.current,A.current,N).then(F=>{const X={...F,isPositioned:_.current!==!1};E.current&&!Hl(k.current,X)&&(k.current=X,M6.flushSync(()=>{d(X)}))})},[f,t,n,B,_]);wl(()=>{l===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,d(N=>({...N,isPositioned:!1})))},[l]);const E=P.useRef(!1);wl(()=>(E.current=!0,()=>{E.current=!1}),[]),wl(()=>{if(x&&(S.current=x),C&&(A.current=C),x&&C){if(T.current)return T.current(x,C,R);R()}},[x,C,R,T,O]);const V=P.useMemo(()=>({reference:S,floating:A,setReference:v,setFloating:w}),[v,w]),D=P.useMemo(()=>({reference:x,floating:C}),[x,C]),H=P.useMemo(()=>{const N={position:n,left:0,top:0};if(!D.floating)return N;const F=dp(D.floating,u.x),X=dp(D.floating,u.y);return a?{...N,transform:"translate("+F+"px, "+X+"px)",...sm(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:F,top:X}},[n,a,D.floating,u.x,u.y]);return P.useMemo(()=>({...u,update:R,refs:V,elements:D,floatingStyles:H}),[u,R,V,D,H])}const RC=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?up({element:r.current,padding:o}).fn(n):{}:r?up({element:r,padding:o}).fn(n):{}}}},TC=(e,t)=>({...xC(e),options:[e,t]}),NC=(e,t)=>({...SC(e),options:[e,t]}),LC=(e,t)=>({...kC(e),options:[e,t]}),DC=(e,t)=>({...EC(e),options:[e,t]}),FC=(e,t)=>({...AC(e),options:[e,t]}),BC=(e,t)=>({...OC(e),options:[e,t]}),VC=(e,t)=>({...RC(e),options:[e,t]});var zC="Arrow",im=P.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return p(Ze.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p("polygon",{points:"0,0 30,0 15,10"})})});im.displayName=zC;var HC=im;function jC(e){const[t,n]=P.useState(void 0);return go(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const c=s.borderBoxSize,l=Array.isArray(c)?c[0]:c;i=l.inlineSize,a=l.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var F0="Popper",[am,Ci]=Br(F0),[$C,cm]=am(F0),lm=e=>{const{__scopePopper:t,children:n}=e,[r,o]=P.useState(null);return p($C,{scope:t,anchor:r,onAnchorChange:o,children:n})};lm.displayName=F0;var um="PopperAnchor",dm=P.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=cm(um,n),i=P.useRef(null),a=ht(t,i);return P.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:p(Ze.div,{...o,ref:a})});dm.displayName=um;var B0="PopperContent",[UC,ZC]=am(B0),fm=P.forwardRef((e,t)=>{var ee,ie,ce,be,Oe,He;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:h="optimized",onPlaced:g,...m}=e,b=cm(B0,n),[y,v]=P.useState(null),w=ht(t,tt=>v(tt)),[x,C]=P.useState(null),S=jC(x),A=(S==null?void 0:S.width)??0,k=(S==null?void 0:S.height)??0,O=r+(s!=="center"?"-"+s:""),T=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},B=Array.isArray(l)?l:[l],_=B.length>0,R={padding:T,boundary:B.filter(GC),altBoundary:_},{refs:E,floatingStyles:V,placement:D,isPositioned:H,middlewareData:N}=MC({strategy:"fixed",placement:O,whileElementsMounted:(...tt)=>om(...tt,{animationFrame:h==="always"}),elements:{reference:b.anchor},middleware:[TC({mainAxis:o+k,alignmentAxis:i}),c&&NC({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?LC():void 0,...R}),c&&DC({...R}),FC({...R,apply:({elements:tt,rects:I,availableWidth:se,availableHeight:oe})=>{const{width:U,height:z}=I.reference,K=tt.floating.style;K.setProperty("--radix-popper-available-width",`${se}px`),K.setProperty("--radix-popper-available-height",`${oe}px`),K.setProperty("--radix-popper-anchor-width",`${U}px`),K.setProperty("--radix-popper-anchor-height",`${z}px`)}}),x&&VC({element:x,padding:a}),qC({arrowWidth:A,arrowHeight:k}),f&&BC({strategy:"referenceHidden",...R})]}),[F,X]=mm(D),j=Rr(g);go(()=>{H&&(j==null||j())},[H,j]);const M=(ee=N.arrow)==null?void 0:ee.x,Y=(ie=N.arrow)==null?void 0:ie.y,G=((ce=N.arrow)==null?void 0:ce.centerOffset)!==0,[W,re]=P.useState();return go(()=>{y&&re(window.getComputedStyle(y).zIndex)},[y]),p("div",{ref:E.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:H?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:W,"--radix-popper-transform-origin":[(be=N.transformOrigin)==null?void 0:be.x,(Oe=N.transformOrigin)==null?void 0:Oe.y].join(" "),...((He=N.hide)==null?void 0:He.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p(UC,{scope:n,placedSide:F,onArrowChange:C,arrowX:M,arrowY:Y,shouldHideArrow:G,children:p(Ze.div,{"data-side":F,"data-align":X,...m,ref:w,style:{...m.style,animation:H?void 0:"none"}})})})});fm.displayName=B0;var hm="PopperArrow",WC={top:"bottom",right:"left",bottom:"top",left:"right"},pm=P.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=ZC(hm,r),i=WC[s.placedSide];return p("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:p(HC,{...o,ref:n,style:{...o.style,display:"block"}})})});pm.displayName=hm;function GC(e){return e!==null}var qC=e=>({name:"transformOrigin",options:e,fn(t){var b,y,v;const{placement:n,rects:r,middlewareData:o}=t,i=((b=o.arrow)==null?void 0:b.centerOffset)!==0,a=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[l,u]=mm(n),d={start:"0%",center:"50%",end:"100%"}[u],f=(((y=o.arrow)==null?void 0:y.x)??0)+a/2,h=(((v=o.arrow)==null?void 0:v.y)??0)+c/2;let g="",m="";return l==="bottom"?(g=i?d:`${f}px`,m=`${-c}px`):l==="top"?(g=i?d:`${f}px`,m=`${r.floating.height+c}px`):l==="right"?(g=`${-c}px`,m=i?d:`${h}px`):l==="left"&&(g=`${r.floating.width+c}px`,m=i?d:`${h}px`),{data:{x:g,y:m}}}});function mm(e){const[t,n="center"]=e.split("-");return[t,n]}var V0=lm,Ru=dm,z0=fm,H0=pm,JC="Portal",lc=P.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=P.useState(!1);go(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?_v.createPortal(p(Ze.div,{...r,ref:t}),i):null});lc.displayName=JC;function YC(e,t){return P.useReducer((n,r)=>t[n][r]??n,e)}var ln=e=>{const{present:t,children:n}=e,r=KC(t),o=typeof n=="function"?n({present:r.isPresent}):P.Children.only(n),s=ht(r.ref,XC(o));return typeof n=="function"||r.isPresent?P.cloneElement(o,{ref:s}):null};ln.displayName="Presence";function KC(e){const[t,n]=P.useState(),r=P.useRef(null),o=P.useRef(e),s=P.useRef("none"),i=e?"mounted":"unmounted",[a,c]=YC(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return P.useEffect(()=>{const l=Wc(r.current);s.current=a==="mounted"?l:"none"},[a]),go(()=>{const l=r.current,u=o.current;if(u!==e){const f=s.current,h=Wc(l);e?c("MOUNT"):h==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&f!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),go(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=h=>{const m=Wc(r.current).includes(h.animationName);if(h.target===t&&m&&(c("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},f=h=>{h.target===t&&(s.current=Wc(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:P.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function Wc(e){return(e==null?void 0:e.animationName)||"none"}function XC(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var F1="rovingFocusGroup.onEntryFocus",QC={bubbles:!1,cancelable:!0},uc="RovingFocusGroup",[Hd,gm,ex]=Z6(uc),[tx,Tu]=Br(uc,[ex]),[nx,rx]=tx(uc),bm=P.forwardRef((e,t)=>p(Hd.Provider,{scope:e.__scopeRovingFocusGroup,children:p(Hd.Slot,{scope:e.__scopeRovingFocusGroup,children:p(ox,{...e,ref:t})})}));bm.displayName=uc;var ox=P.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...d}=e,f=P.useRef(null),h=ht(t,f),g=_0(s),[m,b]=yi({prop:i,defaultProp:a??null,onChange:c,caller:uc}),[y,v]=P.useState(!1),w=Rr(l),x=gm(n),C=P.useRef(!1),[S,A]=P.useState(0);return P.useEffect(()=>{const k=f.current;if(k)return k.addEventListener(F1,w),()=>k.removeEventListener(F1,w)},[w]),p(nx,{scope:n,orientation:r,dir:g,loop:o,currentTabStopId:m,onItemFocus:P.useCallback(k=>b(k),[b]),onItemShiftTab:P.useCallback(()=>v(!0),[]),onFocusableItemAdd:P.useCallback(()=>A(k=>k+1),[]),onFocusableItemRemove:P.useCallback(()=>A(k=>k-1),[]),children:p(Ze.div,{tabIndex:y||S===0?-1:0,"data-orientation":r,...d,ref:h,style:{outline:"none",...e.style},onMouseDown:Me(e.onMouseDown,()=>{C.current=!0}),onFocus:Me(e.onFocus,k=>{const O=!C.current;if(k.target===k.currentTarget&&O&&!y){const T=new CustomEvent(F1,QC);if(k.currentTarget.dispatchEvent(T),!T.defaultPrevented){const B=x().filter(D=>D.focusable),_=B.find(D=>D.active),R=B.find(D=>D.id===m),V=[_,R,...B].filter(Boolean).map(D=>D.ref.current);wm(V,u)}}C.current=!1}),onBlur:Me(e.onBlur,()=>v(!1))})})}),ym="RovingFocusGroupItem",vm=P.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:i,...a}=e,c=zt(),l=s||c,u=rx(ym,n),d=u.currentTabStopId===l,f=gm(n),{onFocusableItemAdd:h,onFocusableItemRemove:g,currentTabStopId:m}=u;return P.useEffect(()=>{if(r)return h(),()=>g()},[r,h,g]),p(Hd.ItemSlot,{scope:n,id:l,focusable:r,active:o,children:p(Ze.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...a,ref:t,onMouseDown:Me(e.onMouseDown,b=>{r?u.onItemFocus(l):b.preventDefault()}),onFocus:Me(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:Me(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){u.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const y=ax(b,u.orientation,u.dir);if(y!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let w=f().filter(x=>x.focusable).map(x=>x.ref.current);if(y==="last")w.reverse();else if(y==="prev"||y==="next"){y==="prev"&&w.reverse();const x=w.indexOf(b.currentTarget);w=u.loop?cx(w,x+1):w.slice(x+1)}setTimeout(()=>wm(w))}}),children:typeof i=="function"?i({isCurrentTabStop:d,hasTabStop:m!=null}):i})})});vm.displayName=ym;var sx={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ix(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function ax(e,t,n){const r=ix(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return sx[r]}function wm(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function cx(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Cm=bm,xm=vm,lx=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ys=new WeakMap,Gc=new WeakMap,qc={},B1=0,Sm=function(e){return e&&(e.host||Sm(e.parentNode))},ux=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Sm(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},dx=function(e,t,n,r){var o=ux(t,Array.isArray(e)?e:[e]);qc[n]||(qc[n]=new WeakMap);var s=qc[n],i=[],a=new Set,c=new Set(o),l=function(d){!d||a.has(d)||(a.add(d),l(d.parentNode))};o.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 h=f.getAttribute(r),g=h!==null&&h!=="false",m=(ys.get(f)||0)+1,b=(s.get(f)||0)+1;ys.set(f,m),s.set(f,b),i.push(f),m===1&&g&&Gc.set(f,!0),b===1&&f.setAttribute(n,"true"),g||f.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",f,y)}})};return u(t),a.clear(),B1++,function(){i.forEach(function(d){var f=ys.get(d)-1,h=s.get(d)-1;ys.set(d,f),s.set(d,h),f||(Gc.has(d)||d.removeAttribute(r),Gc.delete(d)),h||d.removeAttribute(n)}),B1--,B1||(ys=new WeakMap,ys=new WeakMap,Gc=new WeakMap,qc={})}},j0=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=lx(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),dx(r,o,n,"aria-hidden")):function(){return null}},Kn=function(){return Kn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Kn.apply(this,arguments)};function Em(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function fx(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var Cl="right-scroll-bar-position",xl="width-before-scroll-bar",hx="with-scroll-bars-hidden",px="--removed-body-scroll-bar-size";function V1(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function mx(e,t){var n=we(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var gx=typeof window<"u"?P.useLayoutEffect:P.useEffect,fp=new WeakMap;function bx(e,t){var n=mx(null,function(r){return e.forEach(function(o){return V1(o,r)})});return gx(function(){var r=fp.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||V1(a,null)}),s.forEach(function(a){o.has(a)||V1(a,i)})}fp.set(n,e)},[e]),n}function yx(e){return e}function vx(e,t){t===void 0&&(t=yx);var n=[],r=!1,o={read:function(){if(r)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]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var c=function(){var u=i;i=[],u.forEach(s)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(u){i.push(u),l()},filter:function(u){return i=i.filter(u),n}}}};return o}function wx(e){e===void 0&&(e={});var t=vx(null);return t.options=Kn({async:!0,ssr:!1},e),t}var Am=function(e){var t=e.sideCar,n=Em(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return P.createElement(r,Kn({},n))};Am.isSideCarExport=!0;function Cx(e,t){return e.useMedium(t),Am}var Om=wx(),z1=function(){},Nu=P.forwardRef(function(e,t){var n=P.useRef(null),r=P.useState({onScrollCapture:z1,onWheelCapture:z1,onTouchMoveCapture:z1}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,h=e.noRelative,g=e.noIsolation,m=e.inert,b=e.allowPinchZoom,y=e.as,v=y===void 0?"div":y,w=e.gapMode,x=Em(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=f,S=bx([n,t]),A=Kn(Kn({},x),o);return P.createElement(P.Fragment,null,u&&P.createElement(C,{sideCar:Om,removeScrollBar:l,shards:d,noRelative:h,noIsolation:g,inert:m,setCallbacks:s,allowPinchZoom:!!b,lockRef:n,gapMode:w}),i?P.cloneElement(P.Children.only(a),Kn(Kn({},A),{ref:S})):P.createElement(v,Kn({},A,{className:c,ref:S}),a))});Nu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Nu.classNames={fullWidth:xl,zeroRight:Cl};var xx=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Sx(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=xx();return t&&e.setAttribute("nonce",t),e}function Ex(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ax(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ox=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Sx())&&(Ex(t,n),Ax(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},kx=function(){var e=Ox();return function(t,n){P.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},km=function(){var e=kx(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},_x={left:0,top:0,right:0,gap:0},H1=function(e){return parseInt(e||"",10)||0},Ix=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[H1(n),H1(r),H1(o)]},Px=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return _x;var t=Ix(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Mx=km(),Bs="data-scroll-locked",Rx=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
2
- .`.concat(hx,` {
3
- overflow: hidden `).concat(r,`;
4
- padding-right: `).concat(a,"px ").concat(r,`;
5
- }
6
- body[`).concat(Bs,`] {
7
- overflow: hidden `).concat(r,`;
8
- overscroll-behavior: contain;
9
- `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
10
- padding-left: `.concat(o,`px;
11
- padding-top: `).concat(s,`px;
12
- padding-right: `).concat(i,`px;
13
- margin-left:0;
14
- margin-top:0;
15
- margin-right: `).concat(a,"px ").concat(r,`;
16
- `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
17
- }
18
-
19
- .`).concat(Cl,` {
20
- right: `).concat(a,"px ").concat(r,`;
21
- }
22
-
23
- .`).concat(xl,` {
24
- margin-right: `).concat(a,"px ").concat(r,`;
25
- }
26
-
27
- .`).concat(Cl," .").concat(Cl,` {
28
- right: 0 `).concat(r,`;
29
- }
30
-
31
- .`).concat(xl," .").concat(xl,` {
32
- margin-right: 0 `).concat(r,`;
33
- }
34
-
35
- body[`).concat(Bs,`] {
36
- `).concat(px,": ").concat(a,`px;
37
- }
38
- `)},hp=function(){var e=parseInt(document.body.getAttribute(Bs)||"0",10);return isFinite(e)?e:0},Tx=function(){P.useEffect(function(){return document.body.setAttribute(Bs,(hp()+1).toString()),function(){var e=hp()-1;e<=0?document.body.removeAttribute(Bs):document.body.setAttribute(Bs,e.toString())}},[])},Nx=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Tx();var s=P.useMemo(function(){return Px(o)},[o]);return P.createElement(Mx,{styles:Rx(s,!t,o,n?"":"!important")})},jd=!1;if(typeof window<"u")try{var Jc=Object.defineProperty({},"passive",{get:function(){return jd=!0,!0}});window.addEventListener("test",Jc,Jc),window.removeEventListener("test",Jc,Jc)}catch{jd=!1}var vs=jd?{passive:!1}:!1,Lx=function(e){return e.tagName==="TEXTAREA"},_m=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Lx(e)&&n[t]==="visible")},Dx=function(e){return _m(e,"overflowY")},Fx=function(e){return _m(e,"overflowX")},pp=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Im(e,r);if(o){var s=Pm(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Bx=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Vx=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Im=function(e,t){return e==="v"?Dx(t):Fx(t)},Pm=function(e,t){return e==="v"?Bx(t):Vx(t)},zx=function(e,t){return e==="h"&&t==="rtl"?-1:1},Hx=function(e,t,n,r,o){var s=zx(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,c=t.contains(a),l=!1,u=i>0,d=0,f=0;do{if(!a)break;var h=Pm(e,a),g=h[0],m=h[1],b=h[2],y=m-b-s*g;(g||y)&&Im(e,a)&&(d+=y,f+=g);var v=a.parentNode;a=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(u&&Math.abs(d)<1||!u&&Math.abs(f)<1)&&(l=!0),l},Yc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},mp=function(e){return[e.deltaX,e.deltaY]},gp=function(e){return e&&"current"in e?e.current:e},jx=function(e,t){return e[0]===t[0]&&e[1]===t[1]},$x=function(e){return`
39
- .block-interactivity-`.concat(e,` {pointer-events: none;}
40
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
41
- `)},Ux=0,ws=[];function Zx(e){var t=P.useRef([]),n=P.useRef([0,0]),r=P.useRef(),o=P.useState(Ux++)[0],s=P.useState(km)[0],i=P.useRef(e);P.useEffect(function(){i.current=e},[e]),P.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=fx([e.lockRef.current],(e.shards||[]).map(gp),!0).filter(Boolean);return m.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=P.useCallback(function(m,b){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!i.current.allowPinchZoom;var y=Yc(m),v=n.current,w="deltaX"in m?m.deltaX:v[0]-y[0],x="deltaY"in m?m.deltaY:v[1]-y[1],C,S=m.target,A=Math.abs(w)>Math.abs(x)?"h":"v";if("touches"in m&&A==="h"&&S.type==="range")return!1;var k=pp(A,S);if(!k)return!0;if(k?C=A:(C=A==="v"?"h":"v",k=pp(A,S)),!k)return!1;if(!r.current&&"changedTouches"in m&&(w||x)&&(r.current=C),!C)return!0;var O=r.current||C;return Hx(O,b,m,O==="h"?w:x)},[]),c=P.useCallback(function(m){var b=m;if(!(!ws.length||ws[ws.length-1]!==s)){var y="deltaY"in b?mp(b):Yc(b),v=t.current.filter(function(C){return C.name===b.type&&(C.target===b.target||b.target===C.shadowParent)&&jx(C.delta,y)})[0];if(v&&v.should){b.cancelable&&b.preventDefault();return}if(!v){var w=(i.current.shards||[]).map(gp).filter(Boolean).filter(function(C){return C.contains(b.target)}),x=w.length>0?a(b,w[0]):!i.current.noIsolation;x&&b.cancelable&&b.preventDefault()}}},[]),l=P.useCallback(function(m,b,y,v){var w={name:m,delta:b,target:y,should:v,shadowParent:Wx(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(x){return x!==w})},1)},[]),u=P.useCallback(function(m){n.current=Yc(m),r.current=void 0},[]),d=P.useCallback(function(m){l(m.type,mp(m),m.target,a(m,e.lockRef.current))},[]),f=P.useCallback(function(m){l(m.type,Yc(m),m.target,a(m,e.lockRef.current))},[]);P.useEffect(function(){return ws.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",c,vs),document.addEventListener("touchmove",c,vs),document.addEventListener("touchstart",u,vs),function(){ws=ws.filter(function(m){return m!==s}),document.removeEventListener("wheel",c,vs),document.removeEventListener("touchmove",c,vs),document.removeEventListener("touchstart",u,vs)}},[]);var h=e.removeScrollBar,g=e.inert;return P.createElement(P.Fragment,null,g?P.createElement(s,{styles:$x(o)}):null,h?P.createElement(Nx,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Wx(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Gx=Cx(Om,Zx);var Lu=P.forwardRef(function(e,t){return P.createElement(Nu,Kn({},e,{ref:t,sideCar:Gx}))});Lu.classNames=Nu.classNames;var $d=["Enter"," "],qx=["ArrowDown","PageUp","Home"],Mm=["ArrowUp","PageDown","End"],Jx=[...qx,...Mm],Yx={ltr:[...$d,"ArrowRight"],rtl:[...$d,"ArrowLeft"]},Kx={ltr:["ArrowLeft"],rtl:["ArrowRight"]},dc="Menu",[ba,Xx,Qx]=Z6(dc),[ds,Rm]=Br(dc,[Qx,Ci,Tu]),Du=Ci(),Tm=Tu(),[eS,fs]=ds(dc),[tS,fc]=ds(dc),Nm=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:i=!0}=e,a=Du(t),[c,l]=P.useState(null),u=P.useRef(!1),d=Rr(s),f=_0(o);return P.useEffect(()=>{const h=()=>{u.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>u.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),p(V0,{...a,children:p(eS,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:p(tS,{scope:t,onClose:P.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:i,children:r})})})};Nm.displayName=dc;var nS="MenuAnchor",$0=P.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Du(n);return p(Ru,{...o,...r,ref:t})});$0.displayName=nS;var U0="MenuPortal",[rS,Lm]=ds(U0,{forceMount:void 0}),Dm=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=fs(U0,t);return p(rS,{scope:t,forceMount:n,children:p(ln,{present:n||s.open,children:p(lc,{asChild:!0,container:o,children:r})})})};Dm.displayName=U0;var bn="MenuContent",[oS,Z0]=ds(bn),Fm=P.forwardRef((e,t)=>{const n=Lm(bn,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=fs(bn,e.__scopeMenu),i=fc(bn,e.__scopeMenu);return p(ba.Provider,{scope:e.__scopeMenu,children:p(ln,{present:r||s.open,children:p(ba.Slot,{scope:e.__scopeMenu,children:i.modal?p(sS,{...o,ref:t}):p(iS,{...o,ref:t})})})})}),sS=P.forwardRef((e,t)=>{const n=fs(bn,e.__scopeMenu),r=P.useRef(null),o=ht(t,r);return P.useEffect(()=>{const s=r.current;if(s)return j0(s)},[]),p(W0,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Me(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),iS=P.forwardRef((e,t)=>{const n=fs(bn,e.__scopeMenu);return p(W0,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),aS=qo("MenuContent.ScrollLock"),W0=P.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:h,disableOutsideScroll:g,...m}=e,b=fs(bn,n),y=fc(bn,n),v=Du(n),w=Tm(n),x=Xx(n),[C,S]=P.useState(null),A=P.useRef(null),k=ht(t,A,b.onContentChange),O=P.useRef(0),T=P.useRef(""),B=P.useRef(0),_=P.useRef(null),R=P.useRef("right"),E=P.useRef(0),V=g?Lu:P.Fragment,D=g?{as:aS,allowPinchZoom:!0}:void 0,H=F=>{var ee,ie;const X=T.current+F,j=x().filter(ce=>!ce.disabled),M=document.activeElement,Y=(ee=j.find(ce=>ce.ref.current===M))==null?void 0:ee.textValue,G=j.map(ce=>ce.textValue),W=vS(G,X,Y),re=(ie=j.find(ce=>ce.textValue===W))==null?void 0:ie.ref.current;(function ce(be){T.current=be,window.clearTimeout(O.current),be!==""&&(O.current=window.setTimeout(()=>ce(""),1e3))})(X),re&&setTimeout(()=>re.focus())};P.useEffect(()=>()=>window.clearTimeout(O.current),[]),I0();const N=P.useCallback(F=>{var j,M;return R.current===((j=_.current)==null?void 0:j.side)&&CS(F,(M=_.current)==null?void 0:M.area)},[]);return p(oS,{scope:n,searchRef:T,onItemEnter:P.useCallback(F=>{N(F)&&F.preventDefault()},[N]),onItemLeave:P.useCallback(F=>{var X;N(F)||((X=A.current)==null||X.focus(),S(null))},[N]),onTriggerLeave:P.useCallback(F=>{N(F)&&F.preventDefault()},[N]),pointerGraceTimerRef:B,onPointerGraceIntentChange:P.useCallback(F=>{_.current=F},[]),children:p(V,{...D,children:p(_u,{asChild:!0,trapped:o,onMountAutoFocus:Me(s,F=>{var X;F.preventDefault(),(X=A.current)==null||X.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:p(ac,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:h,children:p(Cm,{asChild:!0,...w,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:C,onCurrentTabStopIdChange:S,onEntryFocus:Me(c,F=>{y.isUsingKeyboardRef.current||F.preventDefault()}),preventScrollOnEntryFocus:!0,children:p(z0,{role:"menu","aria-orientation":"vertical","data-state":Qm(b.open),"data-radix-menu-content":"",dir:y.dir,...v,...m,ref:k,style:{outline:"none",...m.style},onKeyDown:Me(m.onKeyDown,F=>{const j=F.target.closest("[data-radix-menu-content]")===F.currentTarget,M=F.ctrlKey||F.altKey||F.metaKey,Y=F.key.length===1;j&&(F.key==="Tab"&&F.preventDefault(),!M&&Y&&H(F.key));const G=A.current;if(F.target!==G||!Jx.includes(F.key))return;F.preventDefault();const re=x().filter(ee=>!ee.disabled).map(ee=>ee.ref.current);Mm.includes(F.key)&&re.reverse(),bS(re)}),onBlur:Me(e.onBlur,F=>{F.currentTarget.contains(F.target)||(window.clearTimeout(O.current),T.current="")}),onPointerMove:Me(e.onPointerMove,ya(F=>{const X=F.target,j=E.current!==F.clientX;if(F.currentTarget.contains(X)&&j){const M=F.clientX>E.current?"right":"left";R.current=M,E.current=F.clientX}}))})})})})})})});Fm.displayName=bn;var cS="MenuGroup",G0=P.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p(Ze.div,{role:"group",...r,ref:t})});G0.displayName=cS;var lS="MenuLabel",Bm=P.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p(Ze.div,{...r,ref:t})});Bm.displayName=lS;var jl="MenuItem",bp="menu.itemSelect",Fu=P.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=P.useRef(null),i=fc(jl,e.__scopeMenu),a=Z0(jl,e.__scopeMenu),c=ht(t,s),l=P.useRef(!1),u=()=>{const d=s.current;if(!n&&d){const f=new CustomEvent(bp,{bubbles:!0,cancelable:!0});d.addEventListener(bp,h=>r==null?void 0:r(h),{once:!0}),U6(d,f),f.defaultPrevented?l.current=!1:i.onClose()}};return p(Vm,{...o,ref:c,disabled:n,onClick:Me(e.onClick,u),onPointerDown:d=>{var f;(f=e.onPointerDown)==null||f.call(e,d),l.current=!0},onPointerUp:Me(e.onPointerUp,d=>{var f;l.current||(f=d.currentTarget)==null||f.click()}),onKeyDown:Me(e.onKeyDown,d=>{const f=a.searchRef.current!=="";n||f&&d.key===" "||$d.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});Fu.displayName=jl;var Vm=P.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,i=Z0(jl,n),a=Tm(n),c=P.useRef(null),l=ht(t,c),[u,d]=P.useState(!1),[f,h]=P.useState("");return P.useEffect(()=>{const g=c.current;g&&h((g.textContent??"").trim())},[s.children]),p(ba.ItemSlot,{scope:n,disabled:r,textValue:o??f,children:p(xm,{asChild:!0,...a,focusable:!r,children:p(Ze.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:l,onPointerMove:Me(e.onPointerMove,ya(g=>{r?i.onItemLeave(g):(i.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Me(e.onPointerLeave,ya(g=>i.onItemLeave(g))),onFocus:Me(e.onFocus,()=>d(!0)),onBlur:Me(e.onBlur,()=>d(!1))})})})}),uS="MenuCheckboxItem",zm=P.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return p(Zm,{scope:e.__scopeMenu,checked:n,children:p(Fu,{role:"menuitemcheckbox","aria-checked":$l(n)?"mixed":n,...o,ref:t,"data-state":J0(n),onSelect:Me(o.onSelect,()=>r==null?void 0:r($l(n)?!0:!n),{checkForDefaultPrevented:!1})})})});zm.displayName=uS;var Hm="MenuRadioGroup",[dS,fS]=ds(Hm,{value:void 0,onValueChange:()=>{}}),jm=P.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,s=Rr(r);return p(dS,{scope:e.__scopeMenu,value:n,onValueChange:s,children:p(G0,{...o,ref:t})})});jm.displayName=Hm;var $m="MenuRadioItem",Um=P.forwardRef((e,t)=>{const{value:n,...r}=e,o=fS($m,e.__scopeMenu),s=n===o.value;return p(Zm,{scope:e.__scopeMenu,checked:s,children:p(Fu,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":J0(s),onSelect:Me(r.onSelect,()=>{var i;return(i=o.onValueChange)==null?void 0:i.call(o,n)},{checkForDefaultPrevented:!1})})})});Um.displayName=$m;var q0="MenuItemIndicator",[Zm,hS]=ds(q0,{checked:!1}),Wm=P.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,s=hS(q0,n);return p(ln,{present:r||$l(s.checked)||s.checked===!0,children:p(Ze.span,{...o,ref:t,"data-state":J0(s.checked)})})});Wm.displayName=q0;var pS="MenuSeparator",Gm=P.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p(Ze.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Gm.displayName=pS;var mS="MenuArrow",qm=P.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Du(n);return p(H0,{...o,...r,ref:t})});qm.displayName=mS;var gS="MenuSub",[KG,Jm]=ds(gS),ta="MenuSubTrigger",Ym=P.forwardRef((e,t)=>{const n=fs(ta,e.__scopeMenu),r=fc(ta,e.__scopeMenu),o=Jm(ta,e.__scopeMenu),s=Z0(ta,e.__scopeMenu),i=P.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:c}=s,l={__scopeMenu:e.__scopeMenu},u=P.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return P.useEffect(()=>u,[u]),P.useEffect(()=>{const d=a.current;return()=>{window.clearTimeout(d),c(null)}},[a,c]),p($0,{asChild:!0,...l,children:p(Vm,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Qm(n.open),...e,ref:Mr(t,o.onTriggerChange),onClick:d=>{var f;(f=e.onClick)==null||f.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Me(e.onPointerMove,ya(d=>{s.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(s.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:Me(e.onPointerLeave,ya(d=>{var h,g;u();const f=(h=n.content)==null?void 0:h.getBoundingClientRect();if(f){const m=(g=n.content)==null?void 0:g.dataset.side,b=m==="right",y=b?-5:5,v=f[b?"left":"right"],w=f[b?"right":"left"];s.onPointerGraceIntentChange({area:[{x:d.clientX+y,y:d.clientY},{x:v,y:f.top},{x:w,y:f.top},{x:w,y:f.bottom},{x:v,y:f.bottom}],side:m}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(d),d.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:Me(e.onKeyDown,d=>{var h;const f=s.searchRef.current!=="";e.disabled||f&&d.key===" "||Yx[r.dir].includes(d.key)&&(n.onOpenChange(!0),(h=n.content)==null||h.focus(),d.preventDefault())})})})});Ym.displayName=ta;var Km="MenuSubContent",Xm=P.forwardRef((e,t)=>{const n=Lm(bn,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=fs(bn,e.__scopeMenu),i=fc(bn,e.__scopeMenu),a=Jm(Km,e.__scopeMenu),c=P.useRef(null),l=ht(t,c);return p(ba.Provider,{scope:e.__scopeMenu,children:p(ln,{present:r||s.open,children:p(ba.Slot,{scope:e.__scopeMenu,children:p(W0,{id:a.contentId,"aria-labelledby":a.triggerId,...o,ref:l,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{var d;i.isUsingKeyboardRef.current&&((d=c.current)==null||d.focus()),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:Me(e.onFocusOutside,u=>{u.target!==a.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:Me(e.onEscapeKeyDown,u=>{i.onClose(),u.preventDefault()}),onKeyDown:Me(e.onKeyDown,u=>{var h;const d=u.currentTarget.contains(u.target),f=Kx[i.dir].includes(u.key);d&&f&&(s.onOpenChange(!1),(h=a.trigger)==null||h.focus(),u.preventDefault())})})})})})});Xm.displayName=Km;function Qm(e){return e?"open":"closed"}function $l(e){return e==="indeterminate"}function J0(e){return $l(e)?"indeterminate":e?"checked":"unchecked"}function bS(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function yS(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function vS(e,t,n){const o=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=yS(e,Math.max(s,0));o.length===1&&(i=i.filter(l=>l!==n));const c=i.find(l=>l.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function wS(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],c=t[i],l=a.x,u=a.y,d=c.x,f=c.y;u>r!=f>r&&n<(d-l)*(r-u)/(f-u)+l&&(o=!o)}return o}function CS(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return wS(n,t)}function ya(e){return t=>t.pointerType==="mouse"?e(t):void 0}var xS=Nm,SS=$0,ES=Dm,AS=Fm,OS=G0,kS=Bm,_S=Fu,IS=zm,PS=jm,MS=Um,RS=Wm,TS=Gm,NS=qm,LS=Ym,DS=Xm,Bu="DropdownMenu",[FS,XG]=Br(Bu,[Rm]),Ut=Rm(),[BS,e5]=FS(Bu),t5=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:i,modal:a=!0}=e,c=Ut(t),l=P.useRef(null),[u,d]=yi({prop:o,defaultProp:s??!1,onChange:i,caller:Bu});return p(BS,{scope:t,triggerId:zt(),triggerRef:l,contentId:zt(),open:u,onOpenChange:d,onOpenToggle:P.useCallback(()=>d(f=>!f),[d]),modal:a,children:p(xS,{...c,open:u,onOpenChange:d,dir:r,modal:a,children:n})})};t5.displayName=Bu;var n5="DropdownMenuTrigger",r5=P.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=e5(n5,n),i=Ut(n);return p(SS,{asChild:!0,...i,children:p(Ze.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Mr(t,s.triggerRef),onPointerDown:Me(e.onPointerDown,a=>{!r&&a.button===0&&a.ctrlKey===!1&&(s.onOpenToggle(),s.open||a.preventDefault())}),onKeyDown:Me(e.onKeyDown,a=>{r||(["Enter"," "].includes(a.key)&&s.onOpenToggle(),a.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});r5.displayName=n5;var VS="DropdownMenuPortal",o5=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Ut(t);return p(ES,{...r,...n})};o5.displayName=VS;var s5="DropdownMenuContent",i5=P.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=e5(s5,n),s=Ut(n),i=P.useRef(!1);return p(AS,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...r,ref:t,onCloseAutoFocus:Me(e.onCloseAutoFocus,a=>{var c;i.current||(c=o.triggerRef.current)==null||c.focus(),i.current=!1,a.preventDefault()}),onInteractOutside:Me(e.onInteractOutside,a=>{const c=a.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0,u=c.button===2||l;(!o.modal||u)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});i5.displayName=s5;var zS="DropdownMenuGroup",HS=P.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ut(n);return p(OS,{...o,...r,ref:t})});HS.displayName=zS;var jS="DropdownMenuLabel",$S=P.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ut(n);return p(kS,{...o,...r,ref:t})});$S.displayName=jS;var US="DropdownMenuItem",a5=P.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ut(n);return p(_S,{...o,...r,ref:t})});a5.displayName=US;var ZS="DropdownMenuCheckboxItem",WS=P.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ut(n);return p(IS,{...o,...r,ref:t})});WS.displayName=ZS;var GS="DropdownMenuRadioGroup",qS=P.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ut(n);return p(PS,{...o,...r,ref:t})});qS.displayName=GS;var JS="DropdownMenuRadioItem",YS=P.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ut(n);return p(MS,{...o,...r,ref:t})});YS.displayName=JS;var KS="DropdownMenuItemIndicator",XS=P.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ut(n);return p(RS,{...o,...r,ref:t})});XS.displayName=KS;var QS="DropdownMenuSeparator",eE=P.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ut(n);return p(TS,{...o,...r,ref:t})});eE.displayName=QS;var tE="DropdownMenuArrow",nE=P.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ut(n);return p(NS,{...o,...r,ref:t})});nE.displayName=tE;var rE="DropdownMenuSubTrigger",oE=P.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ut(n);return p(LS,{...o,...r,ref:t})});oE.displayName=rE;var sE="DropdownMenuSubContent",iE=P.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ut(n);return p(DS,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});iE.displayName=sE;var aE=t5,cE=r5,lE=o5,uE=i5,dE=a5;const c5=aE,l5=cE,u5=Co(function({children:t,...n},r){return p(lE,{children:p(uE,{...n,ref:r,children:t})})}),d5=dE;function fE(e){return p("svg",{...e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("g",{id:"Calendar",children:p("path",{id:"Shape",fillRule:"evenodd",clipRule:"evenodd",d:"M4.79998 1.06665C5.09454 1.06665 5.33332 1.30543 5.33332 1.59998V2.13332H10.6667V1.59998C10.6667 1.30543 10.9054 1.06665 11.2 1.06665C11.4945 1.06665 11.7333 1.30543 11.7333 1.59998V2.13332H13.3333C14.217 2.13332 14.9333 2.84966 14.9333 3.73332V13.3333C14.9333 14.217 14.217 14.9333 13.3333 14.9333H2.66665C1.783 14.9333 1.06665 14.217 1.06665 13.3333V3.73332C1.06665 2.84966 1.78299 2.13332 2.66665 2.13332H4.26665V1.59998C4.26665 1.30543 4.50543 1.06665 4.79998 1.06665ZM10.6667 3.19998V3.73332C10.6667 4.02787 10.9054 4.26665 11.2 4.26665C11.4945 4.26665 11.7333 4.02787 11.7333 3.73332V3.19998H13.3333C13.6279 3.19998 13.8667 3.43877 13.8667 3.73332V5.33332H2.13332V3.73332C2.13332 3.43877 2.3721 3.19998 2.66665 3.19998H4.26665V3.73332C4.26665 4.02787 4.50543 4.26665 4.79998 4.26665C5.09454 4.26665 5.33332 4.02787 5.33332 3.73332V3.19998H10.6667ZM2.13332 6.39998V13.3333C2.13332 13.6279 2.3721 13.8667 2.66665 13.8667H13.3333C13.6279 13.8667 13.8667 13.6279 13.8667 13.3333V6.39998H2.13332ZM7.46665 7.99998C7.46665 7.70543 7.70543 7.46665 7.99999 7.46665C8.29454 7.46665 8.53332 7.70543 8.53332 7.99998C8.53332 8.29454 8.29454 8.53332 7.99999 8.53332C7.70543 8.53332 7.46665 8.29454 7.46665 7.99998ZM10.1333 7.46665C9.83877 7.46665 9.59999 7.70543 9.59999 7.99998C9.59999 8.29454 9.83877 8.53332 10.1333 8.53332C10.4279 8.53332 10.6667 8.29454 10.6667 7.99998C10.6667 7.70543 10.4279 7.46665 10.1333 7.46665ZM11.7333 7.99998C11.7333 7.70543 11.9721 7.46665 12.2667 7.46665C12.5612 7.46665 12.8 7.70543 12.8 7.99998C12.8 8.29454 12.5612 8.53332 12.2667 8.53332C11.9721 8.53332 11.7333 8.29454 11.7333 7.99998ZM12.2667 9.59998C11.9721 9.59998 11.7333 9.83877 11.7333 10.1333C11.7333 10.4279 11.9721 10.6667 12.2667 10.6667C12.5612 10.6667 12.8 10.4279 12.8 10.1333C12.8 9.83877 12.5612 9.59998 12.2667 9.59998ZM9.59999 10.1333C9.59999 9.83877 9.83877 9.59998 10.1333 9.59998C10.4279 9.59998 10.6667 9.83877 10.6667 10.1333C10.6667 10.4279 10.4279 10.6667 10.1333 10.6667C9.83877 10.6667 9.59999 10.4279 9.59999 10.1333ZM7.99999 9.59998C7.70543 9.59998 7.46665 9.83877 7.46665 10.1333C7.46665 10.4279 7.70543 10.6667 7.99999 10.6667C8.29454 10.6667 8.53332 10.4279 8.53332 10.1333C8.53332 9.83877 8.29454 9.59998 7.99999 9.59998ZM5.33332 10.1333C5.33332 9.83877 5.5721 9.59998 5.86665 9.59998C6.1612 9.59998 6.39998 9.83877 6.39998 10.1333C6.39998 10.4279 6.1612 10.6667 5.86665 10.6667C5.5721 10.6667 5.33332 10.4279 5.33332 10.1333ZM3.73332 9.59998C3.43877 9.59998 3.19999 9.83877 3.19999 10.1333C3.19999 10.4279 3.43877 10.6667 3.73332 10.6667C4.02787 10.6667 4.26665 10.4279 4.26665 10.1333C4.26665 9.83877 4.02787 9.59998 3.73332 9.59998ZM3.19999 12.2667C3.19999 11.9721 3.43877 11.7333 3.73332 11.7333C4.02787 11.7333 4.26665 11.9721 4.26665 12.2667C4.26665 12.5612 4.02787 12.8 3.73332 12.8C3.43877 12.8 3.19999 12.5612 3.19999 12.2667ZM5.86665 11.7333C5.5721 11.7333 5.33332 11.9721 5.33332 12.2667C5.33332 12.5612 5.5721 12.8 5.86665 12.8C6.1612 12.8 6.39998 12.5612 6.39998 12.2667C6.39998 11.9721 6.1612 11.7333 5.86665 11.7333ZM7.46665 12.2667C7.46665 11.9721 7.70543 11.7333 7.99999 11.7333C8.29454 11.7333 8.53332 11.9721 8.53332 12.2667C8.53332 12.5612 8.29454 12.8 7.99999 12.8C7.70543 12.8 7.46665 12.5612 7.46665 12.2667ZM10.1333 11.7333C9.83877 11.7333 9.59999 11.9721 9.59999 12.2667C9.59999 12.5612 9.83877 12.8 10.1333 12.8C10.4279 12.8 10.6667 12.5612 10.6667 12.2667C10.6667 11.9721 10.4279 11.7333 10.1333 11.7333Z",fill:"currentcolor"})})})}function hE(e){return p("svg",{...e,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("g",{id:"Caret Left",children:p("path",{id:"Shape",fillRule:"evenodd",clipRule:"evenodd",d:"M10.5819 5.01815C10.7928 5.22903 10.7928 5.57094 10.5819 5.78182L7.36373 8.99999L10.5819 12.2181C10.7928 12.429 10.7928 12.7709 10.5819 12.9818C10.371 13.1927 10.0291 13.1927 9.81822 12.9818L6.21822 9.38182C6.11695 9.28055 6.06006 9.1432 6.06006 8.99999C6.06006 8.85677 6.11695 8.71942 6.21822 8.61815L9.81822 5.01815C10.0291 4.80726 10.371 4.80726 10.5819 5.01815Z",fill:"currentColor"})})})}function pE(e){return p("svg",{...e,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("g",{id:"Caret Right",children:p("path",{id:"Shape",fillRule:"evenodd",clipRule:"evenodd",d:"M7.4181 5.01821C7.62899 4.80733 7.9709 4.80733 8.18178 5.01821L11.7818 8.61821C11.883 8.71948 11.9399 8.85683 11.9399 9.00005C11.9399 9.14326 11.883 9.28061 11.7818 9.38188L8.18178 12.9819C7.9709 13.1928 7.62899 13.1928 7.4181 12.9819C7.20722 12.771 7.20722 12.4291 7.4181 12.2182L10.6363 9.00005L7.4181 5.78188C7.20722 5.571 7.20722 5.22909 7.4181 5.01821Z",fill:"currentColor"})})})}function mE(e){return p("svg",{...e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",children:p("path",{d:"M7.99384 0V2C11.3076 2 13.9938 4.68626 13.9938 8C13.9938 11.314 11.3076 14 7.99384 14C4.6801 14 1.99384 11.314 1.99384 8C1.99384 6.928 2.27897 5.88653 2.8063 4.9792C2.99137 4.66087 3.4047 4.565 3.72297 4.75C4.0413 4.935 4.13724 5.34833 3.95217 5.66666C3.5423 6.3718 3.32717 7.16533 3.32717 8C3.32717 10.5773 5.4165 12.6667 7.99384 12.6667C10.5712 12.6667 12.6605 10.5773 12.6605 8C12.6605 5.42266 10.5712 3.33333 7.99384 3.33333V5.33333L5.32717 2.66667L7.99384 0Z"})})}function gE(e){return p("svg",{...e,viewBox:"0 0 9 12",fill:"currentcolor",children:p("path",{d:"M8.31744 6.36794C8.56085 6.17515 8.56085 5.82482 8.31744 5.63203L1.3527 0.115704C1.01647 -0.150574 0.499999 0.072258 0.499999 0.483647L0.5 11.5163C0.5 11.9277 1.01647 12.1506 1.3527 11.8843L8.31744 6.36794Z"})})}function bE(e){return p("svg",{...e,viewBox:"0 0 16 16",fill:"none",stroke:"currentcolor",children:p("path",{d:"M8 1L0.999998 8M0.999998 8L8 15M0.999998 8L15 8",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function yE(e){return p("svg",{...e,viewBox:"0 0 20 21",fill:"currentcolor",children:p("path",{d:"M9.98893 18.8223C14.5914 18.8223 18.3223 15.0913 18.3223 10.4889C18.3223 5.88642 14.5914 2.15559 9.98893 2.15559C5.38643 2.15559 1.6556 5.88642 1.6556 10.4889C1.6556 15.0913 5.38643 18.8223 9.98893 18.8223ZM9.98893 14.6556C9.52893 14.6556 9.1556 14.2825 9.1556 13.8223L9.1556 9.65559L6.6556 9.65559L9.98893 6.32226L13.3223 9.65559L10.8223 9.65559L10.8223 13.8223C10.8223 14.2825 10.4489 14.6556 9.98893 14.6556Z"})})}function vE(e){return p("svg",{...e,viewBox:"0 0 16 16",fill:"currentcolor",children:p("path",{d:"M12.0104 2.66602C11.2738 2.66602 10.6771 3.26268 10.6771 3.99935V11.9993C10.6771 12.736 11.2738 13.3327 12.0104 13.3327H13.3438C14.0804 13.3327 14.6771 12.736 14.6771 11.9993V3.99935C14.6771 3.26268 14.0804 2.66602 13.3438 2.66602H12.0104ZM7.34375 5.33268C6.60708 5.33268 6.01042 5.92935 6.01042 6.66602V11.9993C6.01042 12.736 6.60708 13.3327 7.34375 13.3327H8.67708C9.41375 13.3327 10.0104 12.736 10.0104 11.9993V6.66602C10.0104 5.92935 9.41375 5.33268 8.67708 5.33268H7.34375ZM2.67708 7.99935C1.94042 7.99935 1.34375 8.59602 1.34375 9.33268V11.9993C1.34375 12.736 1.94042 13.3327 2.67708 13.3327H4.01042C4.74708 13.3327 5.34375 12.736 5.34375 11.9993V9.33268C5.34375 8.59602 4.74708 7.99935 4.01042 7.99935H2.67708Z"})})}function wE(e){return p("svg",{...e,viewBox:"0 0 24 24",fill:"currentcolor",children:p("path",{d:"M16.1557 6.42331C16.6148 5.98332 16.6148 5.26997 16.1557 4.82999C15.6967 4.39 14.9525 4.39 14.4935 4.82999L7.84438 11.2033C7.83003 11.217 7.81614 11.231 7.80268 11.2453C7.79259 11.256 7.78275 11.2669 7.77314 11.2779C7.38661 11.7205 7.41032 12.3808 7.84427 12.7967L14.4933 19.17C14.9524 19.61 15.6966 19.61 16.1556 19.17C16.6146 18.7301 16.6146 18.0167 16.1556 17.5767L10.3377 12.0001L16.1557 6.42331Z"})})}function CE(e){return p("svg",{...e,viewBox:"0 0 24 24",fill:"currentcolor",children:p("path",{d:"M7.84427 17.5767C7.38524 18.0167 7.38524 18.73 7.84427 19.17C8.30329 19.61 9.04752 19.61 9.50653 19.17L16.1556 12.7967C16.17 12.783 16.1839 12.769 16.1973 12.7547C16.2074 12.744 16.2173 12.7331 16.2269 12.7221C16.6134 12.2795 16.5897 11.6192 16.1557 11.2033L9.50665 4.82997C9.04762 4.39001 8.3034 4.39001 7.84438 4.82997C7.38535 5.26992 7.38535 5.98332 7.84438 6.42328L13.6623 11.9999L7.84427 17.5767Z"})})}function xE(e){return p("svg",{...e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentcolor",children:p("path",{d:"M4.67064 1.99414C3.19797 1.99414 2.00397 3.18814 2.00397 4.66081V11.3275C2.00397 12.8001 3.19797 13.9941 4.67064 13.9941H11.3373C12.81 13.9941 14.004 12.8001 14.004 11.3275V4.66081C14.004 3.18814 12.81 1.99414 11.3373 1.99414H4.67064ZM6.64997 3.32747C7.01797 3.32147 7.33131 3.60547 7.33731 3.97347C7.34331 4.34147 7.05931 4.65481 6.69131 4.66081C6.30331 4.66747 6.00864 4.94547 6.00397 5.32747C6.00264 5.42081 6.0053 5.42681 6.00397 5.51481C5.99464 6.23681 5.98063 6.49414 5.89997 6.82747C5.82863 7.11947 5.6493 7.48214 5.39997 7.99414C5.65197 8.51147 5.82797 8.87081 5.89997 9.16081C5.98663 9.51147 5.9993 9.77014 6.00397 10.5775C6.00397 10.6215 6.00397 10.6155 6.00397 10.6608C6.00664 11.0635 6.2673 11.3275 6.67064 11.3275C7.03864 11.3275 7.33731 11.6261 7.33731 11.9941C7.33731 12.3621 7.03864 12.6608 6.67064 12.6608C5.52464 12.6601 4.6773 11.7881 4.67064 10.6608C4.67064 10.6155 4.67064 10.6215 4.67064 10.5775C4.66664 9.88414 4.65997 9.70281 4.60797 9.49414C4.55197 9.26814 4.44797 9.0488 4.06663 8.28613C3.97263 8.09813 3.97263 7.89015 4.06663 7.70215C4.4393 6.95748 4.55264 6.72281 4.60797 6.49414C4.65664 6.29481 4.66264 6.11081 4.67064 5.49414C4.67197 5.40681 4.6693 5.42147 4.67064 5.32747C4.68464 4.22481 5.53997 3.34614 6.64997 3.32747ZM9.33731 3.32747C10.4606 3.33747 11.3466 4.21947 11.3373 5.32747C11.3306 6.07347 11.3446 6.27614 11.4 6.49414C11.456 6.71481 11.5366 6.89282 11.9413 7.70215C12.0353 7.89015 12.0353 8.09813 11.9413 8.28613C11.5466 9.07547 11.456 9.27147 11.4 9.49414C11.3453 9.71147 11.3353 9.89814 11.3373 10.6608C11.3406 11.7935 10.4746 12.6655 9.33731 12.6608C8.96931 12.6595 8.66931 12.3621 8.67064 11.9941C8.67197 11.6261 8.96931 11.3261 9.33731 11.3275C9.73264 11.3288 10.0053 11.0555 10.004 10.6608C10.0013 9.77481 10.0153 9.52881 10.108 9.16081C10.18 8.87414 10.3513 8.51947 10.608 7.99414C10.3473 7.46281 10.1806 7.11214 10.108 6.82747C10.0133 6.45547 9.99664 6.19747 10.004 5.32747C10.0073 4.95814 9.72731 4.66414 9.33731 4.66081C8.96931 4.65747 8.66731 4.36214 8.67064 3.99414C8.67397 3.62614 8.96931 3.32414 9.33731 3.32747Z"})})}function SE(e){return p("svg",{...e,viewBox:"0 0 24 24",fill:"currentcolor",children:p("path",{d:"M12.0283 1.99805C10.3713 1.99805 9.02832 3.34105 9.02832 4.99805C9.02832 6.26605 9.86732 7.40607 11.0263 7.82507L11.0283 10.998H7.02832C6.47632 10.998 6.02832 11.446 6.02832 11.998L6.02731 16.173C4.87631 16.569 4.02832 17.73 4.02832 18.998C4.02832 20.655 5.37132 21.998 7.02832 21.998C8.68532 21.998 10.0283 20.655 10.0283 18.998C10.0283 17.73 9.23332 16.612 8.03932 16.16L8.02832 12.998H12.0283H16.0283L16.0353 16.175C14.8343 16.592 14.0283 17.73 14.0283 18.998C14.0283 20.655 15.3713 21.998 17.0283 21.998C18.6853 21.998 20.0283 20.655 20.0283 18.998C20.0283 17.73 19.2093 16.614 18.0363 16.17L18.0283 11.998C18.0283 11.446 17.5803 10.998 17.0283 10.998H13.0283L13.0253 7.82104C14.1893 7.41004 15.0283 6.26605 15.0283 4.99805C15.0283 3.34105 13.6853 1.99805 12.0283 1.99805Z"})})}function EE(e){return p("svg",{...e,viewBox:"0 0 18 19",fill:"currentcolor",children:p("path",{d:"M8.27293 3.26461C8.46408 3.26461 8.61903 3.10949 8.61904 2.91815L8.6191 0.500008C6.2185 0.599662 4.06088 1.64036 2.50446 3.26475L8.27293 3.26461ZM10.6957 6.82116C10.6957 7.0125 10.5407 7.16762 10.3496 7.16762L0.304562 7.16782C0.613333 6.01248 1.14583 4.94828 1.85198 4.02532L10.3496 4.02518C10.5408 4.02518 10.6957 4.1803 10.6957 4.37166L10.6957 6.82116ZM15.4943 15.7353C13.9385 17.3591 11.7809 18.3997 9.37968 18.5L9.37974 16.0819C9.37974 15.8905 9.5347 15.7354 9.72585 15.7354L15.4943 15.7353ZM8.61928 18.4994C6.21868 18.3999 4.06051 17.3587 2.50477 15.735L8.2732 15.7348C8.46437 15.7348 8.61934 15.89 8.61933 16.0813L8.61928 18.4994ZM13.196 12.1777C13.196 11.9864 13.3509 11.8313 13.5421 11.8312L17.6942 11.831C17.3854 12.9863 16.8536 14.0499 16.1468 14.9735L13.5421 14.9737C13.3509 14.9737 13.1959 14.8186 13.1959 14.6272L13.196 12.1777ZM6.63574 8.26583C6.64045 8.07793 6.79397 7.92806 6.98174 7.92805L17.8631 7.92797C17.953 8.43803 18 8.96317 18 9.49919C18 10.0352 17.9529 10.5604 17.8631 11.0704L6.98317 11.07C6.79504 11.0699 6.64138 10.9195 6.63718 10.7312L6.6074 9.39625L6.63574 8.26583ZM12.5542 14.6279C12.5542 14.8192 12.3992 14.9743 12.2081 14.9743L1.85233 14.9744C1.14562 14.0509 0.613778 12.9873 0.305062 11.832L12.2081 11.8319C12.3993 11.8319 12.5543 11.987 12.5543 12.1784L12.5542 14.6279ZM0.136912 7.92839L5.5227 7.92809C5.71386 7.92809 5.86883 8.08321 5.86883 8.27457L5.86877 10.7241C5.86877 10.9154 5.71381 11.0705 5.52266 11.0706L0.136834 11.0708C0.046996 10.5608 -1.44252e-05 10.0356 -1.12058e-06 9.49961C1.02767e-05 8.9636 0.0470512 8.43845 0.136912 7.92839ZM11.4567 4.3716C11.4567 4.18026 11.6117 4.02515 11.8028 4.02514L16.1471 4.02498C16.8538 4.94851 17.3856 6.01207 17.6943 7.1674L11.8028 7.1676C11.6116 7.1676 11.4567 7.01248 11.4567 6.82112L11.4567 4.3716ZM9.3801 0.500001C11.7807 0.599542 13.9389 1.64073 15.4946 3.26444L9.72617 3.26457C9.53501 3.26458 9.38004 3.10945 9.38004 2.9181L9.3801 0.500001Z"})})}function AE(e){return p("svg",{...e,viewBox:"0 0 16 16",fill:"currentcolor",children:p("path",{d:"M7.33203 1.99414C5.85936 1.99414 4.66536 3.18814 4.66536 4.66081H3.9987C2.61203 4.66081 1.50204 5.72481 1.37337 7.07747C1.71071 7.19281 6.22803 8.70282 6.22803 8.70215C7.18469 9.02148 8.8127 9.02148 9.76937 8.70215C9.76937 8.70215 13.224 7.54881 14.6447 7.07747C14.5214 5.71947 13.3887 4.66081 11.9987 4.66081H11.332C11.332 3.18814 10.138 1.99414 8.66536 1.99414H7.33203ZM7.33203 3.32747H8.66536C9.40203 3.32747 9.9987 3.92414 9.9987 4.66081H5.9987C5.9987 3.92414 6.59536 3.32747 7.33203 3.32747ZM1.33203 8.47347V11.3275C1.33203 12.8001 2.52603 13.9941 3.9987 13.9941H11.9987C13.4714 13.9941 14.6654 12.8001 14.6654 11.3275V8.47347L10.186 9.97347C8.95603 10.3835 7.04136 10.3835 5.81136 9.97347L1.33203 8.47347Z"})})}function OE(e){return p("svg",{...e,viewBox:"0 0 24 24",fill:"currentcolor",children:p("path",{d:"M8.00586 2.01367C7.45356 2.01367 7.00586 2.46167 7.00586 3.01367C4.79676 3.01367 3.00576 4.80467 3.00586 7.01367V8.07568L21.0059 8.01367V7.01367C21.0059 4.80467 19.215 3.01367 17.0059 3.01367C17.0059 2.46167 16.5582 2.01367 16.0059 2.01367C15.4536 2.01367 15.0059 2.46167 15.0059 3.01367H9.00586C9.00586 2.46167 8.55816 2.01367 8.00586 2.01367ZM3.00586 10.0137V17.0137C3.00586 19.2227 4.79676 21.0137 7.00586 21.0137H17.0059C19.215 21.0137 21.006 19.2227 21.0059 17.0137V10.0137H3.00586ZM8.00586 12.0137C8.55816 12.0137 9.00586 12.4617 9.00586 13.0137C9.00586 13.5657 8.55816 14.0137 8.00586 14.0137C7.45356 14.0137 7.00586 13.5657 7.00586 13.0137C7.00586 12.4617 7.45356 12.0137 8.00586 12.0137ZM12.0059 12.0137C12.5582 12.0137 13.0059 12.4617 13.0059 13.0137C13.0059 13.5657 12.5582 14.0137 12.0059 14.0137C11.4536 14.0137 11.0059 13.5657 11.0059 13.0137C11.0059 12.4617 11.4536 12.0137 12.0059 12.0137ZM16.0059 12.0137C16.5582 12.0137 17.0059 12.4617 17.0059 13.0137C17.0059 13.5657 16.5582 14.0137 16.0059 14.0137C15.4536 14.0137 15.0059 13.5657 15.0059 13.0137C15.0059 12.4617 15.4536 12.0137 16.0059 12.0137ZM8.00586 15.0137C8.55816 15.0137 9.00586 15.4617 9.00586 16.0137C9.00586 16.5657 8.55816 17.0137 8.00586 17.0137C7.45356 17.0137 7.00586 16.5657 7.00586 16.0137C7.00586 15.4617 7.45356 15.0137 8.00586 15.0137ZM12.0059 15.0137C12.5582 15.0137 13.0059 15.4617 13.0059 16.0137C13.0059 16.5657 12.5582 17.0137 12.0059 17.0137C11.4536 17.0137 11.0059 16.5657 11.0059 16.0137C11.0059 15.4617 11.4536 15.0137 12.0059 15.0137ZM16.0059 15.0137C16.5582 15.0137 17.0059 15.4617 17.0059 16.0137C17.0059 16.5657 16.5582 17.0137 16.0059 17.0137C15.4536 17.0137 15.0059 16.5657 15.0059 16.0137C15.0059 15.4617 15.4536 15.0137 16.0059 15.0137Z"})})}function kE(e){return p("svg",{...e,viewBox:"0 0 16 16",fill:"currentcolor",children:p("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.28221 5.22951C3.98888 4.9235 3.51331 4.9235 3.21999 5.22951C2.92667 5.53552 2.92667 6.03168 3.21999 6.33769L7.46885 10.7704C7.47802 10.78 7.48736 10.7892 7.49688 10.7982C7.50402 10.8049 7.51125 10.8115 7.51858 10.8179C7.81368 11.0756 8.25385 11.0598 8.53115 10.7705L12.78 6.33777C13.0733 6.03175 13.0733 5.5356 12.78 5.22958C12.4867 4.92357 12.0111 4.92357 11.7178 5.22958L8.00004 9.10822L4.28221 5.22951Z"})})}function _E(e){return p("svg",{...e,viewBox:"0 0 15 16",fill:"currentcolor",children:p("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.93185 5.93185C4.75611 6.10759 4.75611 6.39251 4.93185 6.56825C5.10759 6.74398 5.39251 6.74398 5.56825 6.56825L7.50005 4.63644L9.43185 6.56825C9.60759 6.74398 9.89251 6.74398 10.0682 6.56825C10.244 6.39251 10.244 6.10759 10.0682 5.93185L7.81825 3.68185C7.73386 3.59746 7.6194 3.55005 7.50005 3.55005C7.3807 3.55005 7.26624 3.59746 7.18185 3.68185L4.93185 5.93185ZM10.0682 10.0682C10.244 9.89251 10.244 9.60759 10.0682 9.43185C9.89251 9.25612 9.60759 9.25612 9.43185 9.43185L7.50005 11.3637L5.56825 9.43185C5.39251 9.25612 5.10759 9.25612 4.93185 9.43185C4.75612 9.60759 4.75612 9.89251 4.93185 10.0682L7.18185 12.3182C7.35759 12.494 7.64251 12.494 7.81825 12.3182L10.0682 10.0682Z"})})}function IE(e){return p("svg",{...e,viewBox:"0 0 24 24",fill:"currentcolor",children:p("path",{d:"M10 16L10 12.8L10 11.2L10 8L14 12L10 16Z"})})}function PE(e){return p("svg",{...e,viewBox:"0 0 24 24",fill:"currentcolor",children:p("path",{d:"M12 3C7.0293 3 3 7.0293 3 12C3 16.9707 7.0293 21 12 21C16.9707 21 21 16.9707 21 12C21 7.0293 16.9707 3 12 3ZM15.6 9.3C15.8304 9.3 16.0707 9.37741 16.2471 9.55291C16.5981 9.90481 16.5981 10.4952 16.2471 10.8471L12.8721 14.1942C11.8362 15.2292 10.2531 15.0744 9.4404 13.8558L8.54041 12.5058C8.26501 12.0927 8.38019 11.5167 8.79419 11.2404C9.20729 10.965 9.78329 11.0802 10.0596 11.4942L10.9596 12.8442C11.1414 13.1169 11.3745 13.1601 11.6058 12.9279L14.9529 9.55291C15.1293 9.37741 15.3696 9.3 15.6 9.3Z"})})}function ME(e){return q("svg",{...e,viewBox:"0 0 24 24",fill:"none",children:[p("circle",{cx:"12",cy:"12",r:"10",fill:"none"}),p("path",{d:"M10.1575 16.8849C10.5032 16.8849 10.8257 16.7467 11.0562 16.5162L18.3142 9.25817L16.517 7.46094L10.1575 13.8204L7.48473 11.1476L5.6875 12.9448L9.25893 16.5162C9.48934 16.7467 9.81192 16.8849 10.1575 16.8849Z",fill:"currentcolor"}),p("path",{d:"M2.51367 12C2.51367 6.75314 6.76701 2.5 12.0137 2.5C17.2603 2.5 21.5137 6.75314 21.5137 12C21.5137 17.2468 17.2603 21.5 12.0137 21.5C6.76701 21.5 2.51367 17.2468 2.51367 12Z",stroke:"currentcolor"})]})}function RE(e){return p("svg",{...e,viewBox:"0 0 24 24",fill:"currentcolor",children:p("path",{d:"M10.1575 16.8849C10.5032 16.8849 10.8257 16.7467 11.0562 16.5162L18.3142 9.25817L16.517 7.46094L10.1575 13.8204L7.48473 11.1476L5.6875 12.9448L9.25893 16.5162C9.48934 16.7467 9.81192 16.8849 10.1575 16.8849Z"})})}function TE(e){return p("svg",{...e,viewBox:"0 0 16 16",fill:"currentcolor",children:p("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.2086 4.01018C12.4975 4.19908 12.5786 4.58642 12.3897 4.87532L7.85635 11.8087C7.75619 11.9618 7.59392 12.0634 7.41237 12.0866C7.23083 12.1098 7.04824 12.0522 6.91282 11.9291L3.97949 9.26242C3.72408 9.03023 3.70525 8.63495 3.93744 8.37954C4.16964 8.12413 4.56492 8.1053 4.82033 8.33749L7.21128 10.5111L11.3435 4.19126C11.5324 3.90236 11.9197 3.82129 12.2086 4.01018Z"})})}function NE(e){return p("svg",{...e,viewBox:"0 0 24 24",fill:"none",stroke:"currentcolor",children:p("path",{d:"M6 9L12 15L18 9",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function LE(e){return q("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none",children:[p("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 2C4.8934 2 2 4.8934 2 8C2 11.1066 4.8934 14 8 14C11.1066 14 14 11.1066 14 8C14 4.8934 11.1066 2 8 2ZM0.5 8C0.5 3.85786 3.85786 0.5 8 0.5C12.1422 0.5 15.5 3.85786 15.5 8C15.5 12.1422 12.1422 15.5 8 15.5C3.85786 15.5 0.5 12.1422 0.5 8Z",fill:"currentcolor"}),p("path",{d:"M8 12.5C7.58579 12.5 7.25 12.1642 7.25 11.75V8C7.25 7.58579 7.58579 7.25 8 7.25C8.41421 7.25 8.75 7.58579 8.75 8V11.75C8.75 12.1642 8.41421 12.5 8 12.5Z",fill:"currentcolor"}),p("path",{d:"M8 5.75C7.58579 5.75 7.25 5.41421 7.25 5C7.25 4.58579 7.58579 4.25 8 4.25C8.41421 4.25 8.75 4.58579 8.75 5C8.75 5.41421 8.41421 5.75 8 5.75Z",fill:"currentcolor"})]})}function DE(e){return p("svg",{...e,viewBox:"0 0 16 16",fill:"currentcolor",children:p("circle",{cx:"8",cy:"8",r:"6.665"})})}function FE(e){return p("svg",{...e,viewBox:"0 0 24 24",fill:"currentcolor",children:p("path",{d:"M12 3C7.02948 3 3 7.0293 3 12C3 16.9707 7.02948 21 12 21C16.9705 21 21 16.9707 21 12C21 7.0293 16.9705 3 12 3ZM12 6.6C12.4971 6.6 12.9 7.0032 12.9 7.5V11.6058L15.3469 14.0529C15.6984 14.4048 15.6984 14.9952 15.3469 15.3471C14.9954 15.6981 14.4046 15.6981 14.0531 15.3471L11.3531 12.6471C11.1843 12.4779 11.1 12.2385 11.1 12V7.5C11.1 7.0032 11.5029 6.6 12 6.6Z"})})}function BE(e){return p("svg",{...e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",children:p("path",{d:"M8.02812 1.33264C4.33612 1.33264 1.34277 4.31663 1.34277 7.99797C1.34277 11.6793 4.33612 14.664 8.02812 14.664C9.83012 14.664 11.5248 13.9533 12.7708 12.706C13.0314 12.4446 13.0328 12.028 12.7708 11.7686C12.5094 11.5086 12.0914 11.5073 11.8308 11.7686C10.8334 12.7673 9.47078 13.3306 8.02812 13.3306C5.07478 13.3306 2.68011 10.9433 2.68011 7.99797C2.68011 5.0533 5.07478 2.66597 8.02812 2.66597C8.39745 2.66597 8.69678 2.36731 8.69678 1.99931C8.69678 1.63131 8.39745 1.33264 8.02812 1.33264ZM10.4728 1.93665C10.3108 1.98998 10.1781 2.10465 10.0968 2.26998C9.93412 2.60065 10.0581 3.00331 10.3894 3.16597C10.5674 3.25264 10.7241 3.35065 10.8908 3.45732C11.2014 3.65532 11.6321 3.55931 11.8308 3.24931C12.0294 2.93864 11.9328 2.53064 11.6221 2.33264C11.4128 2.19931 11.1968 2.0873 10.9741 1.97864C10.8088 1.8973 10.6354 1.88398 10.4728 1.93665ZM12.8334 3.58199C12.6641 3.56199 12.4774 3.61465 12.3321 3.72799C12.0421 3.95532 11.9994 4.37599 12.2281 4.66532C12.3501 4.82066 12.4781 4.97665 12.5828 5.14465C12.7774 5.45732 13.1888 5.54666 13.5021 5.35266C13.8161 5.15866 13.9054 4.76998 13.7114 4.45732C13.5808 4.24732 13.4254 4.02666 13.2721 3.83199C13.1581 3.68732 13.0034 3.60266 12.8334 3.58199ZM8.02812 3.99866C7.65945 3.99866 7.36011 4.29732 7.36011 4.66532V7.99797C7.36011 8.1753 7.44343 8.35196 7.56877 8.47729L9.5741 10.4766C9.83543 10.7373 10.2534 10.7373 10.5148 10.4766C10.7754 10.2166 10.7754 9.7793 10.5148 9.51864L8.69678 7.70662V4.66532C8.69678 4.29732 8.39745 3.99866 8.02812 3.99866ZM13.7528 6.01933C13.3921 6.09866 13.1714 6.45129 13.2514 6.81063C13.2941 7.00329 13.3354 7.19729 13.3561 7.39396C13.3948 7.75996 13.7201 8.01596 14.0874 7.97729C14.4541 7.93863 14.7114 7.61466 14.6721 7.24866C14.6461 7.00199 14.6214 6.75999 14.5674 6.51933C14.4881 6.15999 14.1134 5.93999 13.7528 6.01933ZM14.0454 8.72729C13.6868 8.64063 13.3174 8.86929 13.2308 9.22729C13.1841 9.41996 13.1101 9.60464 13.0428 9.78931C12.9161 10.1353 13.1134 10.4966 13.4608 10.6226C13.8074 10.7486 14.1701 10.594 14.2961 10.248C14.3808 10.016 14.4674 9.78064 14.5261 9.53931C14.6128 9.18197 14.4041 8.81396 14.0454 8.72729Z"})})}function VE(e){return p("svg",{...e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.00022 0.967133C4.11618 0.967133 0.967529 4.11578 0.967529 7.99982C0.967529 11.8838 4.11617 15.0325 8.00022 15.0325C11.8842 15.0325 15.0329 11.8838 15.0329 7.99982C15.0329 4.11578 11.8842 0.967133 8.00022 0.967133ZM1.91753 7.99982C1.91753 4.64045 4.64085 1.91713 8.00022 1.91713C11.3596 1.91713 14.0829 4.64045 14.0829 7.99982C14.0829 11.3592 11.3596 14.0825 8.00022 14.0825C4.64085 14.0825 1.91753 11.3592 1.91753 7.99982ZM8.50012 4.8C8.50012 4.52386 8.27626 4.3 8.00012 4.3C7.72398 4.3 7.50012 4.52386 7.50012 4.8V8C7.50012 8.13261 7.5528 8.25979 7.64657 8.35355L9.7799 10.4869C9.97516 10.6821 10.2917 10.6821 10.487 10.4869C10.6823 10.2916 10.6823 9.97504 10.487 9.77978L8.50012 7.79289V4.8Z",fill:"currentColor"})})}function zE(e){return p("svg",{...e,viewBox:"0 0 24 24",fill:"currentcolor",children:p("path",{d:"M12.0137 3.99043C10.8277 4.00043 9.59167 4.33942 8.51367 4.95942C8.03467 5.23442 7.86367 5.85542 8.13867 6.33442C8.41367 6.81342 9.03467 6.95347 9.51367 6.67847C10.2927 6.23047 11.1717 5.99742 12.0137 5.99042C14.6947 5.96942 17.0347 8.27742 17.0137 10.9904C17.0137 11.0504 17.0137 11.8534 17.0137 12.0844C17.0137 12.5504 17.3097 12.9794 17.7637 13.0844C19.0797 13.3884 20.0137 14.3904 20.0137 15.4904C20.0137 15.8464 19.9357 16.2034 19.7637 16.5224C19.5017 17.0074 19.6837 17.6034 20.1697 17.8654C20.6557 18.1284 21.2517 17.9454 21.5137 17.4594C21.8417 16.8524 22.0137 16.1824 22.0137 15.4904C22.0137 13.6764 20.8217 12.1095 19.0097 11.3765C19.0117 11.1985 19.0137 11.0174 19.0137 10.9904C19.0437 7.15542 15.8047 3.96143 12.0137 3.99043ZM5.01367 5.99042C4.75767 5.99042 4.48968 6.07647 4.29468 6.27247C3.90468 6.66247 3.90468 7.31941 4.29468 7.70941L5.40268 8.80542C5.29468 9.03042 5.24667 9.28445 5.19067 9.54345C3.28667 10.3735 2.01367 12.2084 2.01367 14.3654C2.01367 17.3754 4.38968 19.9904 7.32568 19.9904H16.5757L17.2947 20.7094C17.6857 21.1004 18.3417 21.1004 18.7327 20.7094C19.1227 20.3194 19.1227 19.6624 18.7327 19.2724L17.7327 18.2724L5.73267 6.27247C5.53667 6.07647 5.26967 5.99042 5.01367 5.99042ZM7.04169 10.4495L14.5757 17.9904H7.32568C5.53868 17.9904 4.01367 16.3124 4.01367 14.3654C4.01367 12.8734 4.94767 11.6624 6.35767 11.2404C6.71567 11.1334 6.99369 10.8025 7.04169 10.4495Z"})})}function HE(e){return p("svg",{...e,viewBox:"0 0 16 16",fill:"currentcolor",children:p("path",{d:"M13.3351 1.99414C13.1645 1.99414 12.9858 2.05148 12.8558 2.18148L10.1891 4.84814L8.66847 3.32747V7.32747H12.6685L11.1478 5.8068L13.8145 3.14014C14.0745 2.87947 14.0745 2.44214 13.8145 2.18148C13.6845 2.05148 13.5058 1.99414 13.3351 1.99414ZM3.33514 8.66081L4.85581 10.1815L2.18914 12.8481C1.92914 13.1088 1.92914 13.5461 2.18914 13.8068C2.31914 13.9368 2.4978 13.9941 2.66847 13.9941C2.83914 13.9941 3.0178 13.9368 3.1478 13.8068L5.81446 11.1401L7.33513 12.6608V8.66081H3.33514Z"})})}function jE(e){return q("svg",{...e,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p("g",{clipPath:"url(#clip0_1808_6629)",children:p("path",{d:"M16 14.2563C15.0125 14.2563 14.2563 15.0688 14.2563 16C14.2563 16.9312 15.0688 17.7437 16 17.7437C16.9312 17.7437 17.7437 16.9312 17.7437 16C17.7437 15.0688 16.9875 14.2563 16 14.2563ZM16 0C7.2125 0 0 7.2125 0 16C0 24.7875 7.2125 32 16 32C24.7875 32 32 24.7875 32 16C32 7.2125 24.7875 0 16 0ZM20.4774 17.5343C19.8789 18.8351 18.8351 19.8789 17.5343 20.4774L8.86286 24.4669C8.0186 24.8553 7.14732 23.9826 7.53712 23.139L11.5267 14.5045C12.1228 13.2144 13.1575 12.1777 14.4464 11.5792L23.134 7.54512C23.9777 7.15332 24.8524 8.02495 24.4636 8.87006L20.4774 17.5343Z",fill:"currentcolor"})}),p("defs",{children:p("clipPath",{id:"clip0_1808_6629",children:p("rect",{width:"32",height:"32",fill:"white"})})})]})}function $E(e){return p("svg",{...e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{d:"M11.0306 3.68615C11.2854 3.68614 11.492 3.47932 11.4921 3.2242L11.4921 9.03413e-06C8.29133 0.132881 5.41451 1.52048 3.33928 3.68633L11.0306 3.68615ZM14.2609 8.42821C14.2609 8.68334 14.0543 8.89016 13.7994 8.89016L0.406086 8.89043C0.81778 7.34998 1.52777 5.93103 2.46931 4.70043L13.7995 4.70024C14.0544 4.70023 14.261 4.90707 14.261 5.16221L14.2609 8.42821ZM20.6591 20.3137C18.5847 22.4787 15.7079 23.8663 12.5062 24L12.5063 20.7758C12.5063 20.5207 12.7129 20.3139 12.9678 20.3139L20.6591 20.3137ZM11.4924 23.9992C8.29157 23.8665 5.41401 22.4782 3.33969 20.3133L11.0309 20.3131C11.2858 20.3131 11.4924 20.52 11.4924 20.7751L11.4924 23.9992ZM17.5946 15.5703C17.5947 15.3152 17.8013 15.1083 18.0561 15.1083L23.5923 15.108C23.1806 16.6484 22.4714 18.0666 21.5291 19.298L18.0561 19.2983C17.8012 19.2983 17.5946 19.0914 17.5946 18.8363L17.5946 15.5703ZM8.84765 10.3544C8.85393 10.1039 9.05863 9.90407 9.30899 9.90407L23.8175 9.90396C23.9373 10.584 24 11.2842 24 11.9989C24 12.7136 23.9372 13.4138 23.8174 14.0939L9.31089 14.0933C9.06005 14.0932 8.85517 13.8927 8.84957 13.6416L8.80986 11.8617L8.84765 10.3544ZM16.7389 18.8372C16.7389 19.0923 16.5323 19.2991 16.2774 19.2991L2.46978 19.2992C1.52749 18.0679 0.818373 16.6498 0.406752 15.1093L16.2775 15.1092C16.5324 15.1092 16.739 15.316 16.739 15.5712L16.7389 18.8372ZM0.182552 9.90452L7.3636 9.90412C7.61849 9.90411 7.82511 10.1109 7.82511 10.3661L7.82503 13.6321C7.82503 13.8872 7.61842 14.0941 7.36355 14.0941L0.182447 14.0945C0.062664 13.4144 -1.71661e-05 12.7142 0 11.9995C1.71661e-05 11.2848 0.0627384 10.5846 0.182552 9.90452ZM15.2756 5.16214C15.2757 4.90701 15.4823 4.70019 15.7371 4.70019L21.5294 4.69998C22.4717 5.93135 23.1808 7.34943 23.5924 8.88987L15.7371 8.89013C15.4822 8.89014 15.2756 8.6833 15.2756 8.42816L15.2756 5.16214ZM12.5068 0C15.7076 0.132721 18.5852 1.52098 20.6595 3.68592L12.9682 3.6861C12.7133 3.6861 12.5067 3.47927 12.5067 3.22413L12.5068 0Z",fill:"#9EA0A1"})})}function UE(e){return q("svg",{...e,viewBox:"0 0 242 62",fill:"currentcolor",children:[p("path",{d:"M29.2499 16.0724C29.526 16.0724 29.7499 15.8485 29.7499 15.5724L29.75 9.45358C23.9969 9.69217 18.8261 12.1837 15.0961 16.0727L29.2499 16.0724ZM21.6271 24.9167C21.6271 25.1928 21.4033 25.4167 21.1271 25.4167L9.82394 25.4172C10.5639 22.6511 11.8401 20.1033 13.5324 17.8936L21.1272 17.8933C21.4034 17.8933 21.6272 18.1171 21.6272 18.3933L21.6271 24.9167ZM46.2267 45.9287C42.4981 49.8163 37.3274 52.3078 31.5728 52.5478L31.5729 46.4291C31.5729 46.1529 31.7968 45.9291 32.0729 45.9291L46.2267 45.9287ZM29.7504 52.5464C23.9973 52.3081 18.8252 49.8154 15.0968 45.928L29.2506 45.9277C29.5267 45.9277 29.7506 46.1516 29.7506 46.4277L29.7504 52.5464ZM24.1289 37.082C24.1289 36.8059 24.3527 36.582 24.6289 36.582L51.4988 36.5814C50.7589 39.3474 49.4842 41.8938 47.7904 44.1049L24.6287 44.1055C24.3526 44.1055 24.1287 43.8816 24.1287 43.6054L24.1289 37.082ZM41.5947 27.7247C41.6015 27.4536 41.8233 27.2373 42.0945 27.2373L51.9037 27.2371C52.119 28.4582 52.2317 29.7155 52.2317 30.9988C52.2316 32.282 52.1189 33.5393 51.9035 34.7605L42.0971 34.7593C41.8253 34.7593 41.6033 34.5422 41.5973 34.2705L41.5187 30.7523L41.5947 27.7247ZM22.5908 43.607C22.5908 43.8831 22.3669 44.107 22.0908 44.107L13.5332 44.1071C11.8396 41.8961 10.565 39.3498 9.82514 36.5838L22.0909 36.5835C22.3671 36.5835 22.591 36.8074 22.5909 37.0835L22.5908 43.607ZM9.42216 27.2381L39.2487 27.2373C39.5249 27.2373 39.7487 27.4612 39.7487 27.7374L39.7486 34.2608C39.7486 34.5369 39.5247 34.7608 39.2486 34.7608L9.42197 34.7615C9.20667 33.5404 9.094 32.2831 9.09403 30.9998C9.09406 29.7165 9.2068 28.4592 9.42216 27.2381ZM23.451 18.3932C23.451 18.1171 23.6749 17.8932 23.951 17.8932L47.791 17.8928C49.4847 20.1039 50.7593 22.6502 51.4991 25.4162L23.9509 25.4166C23.6747 25.4167 23.4509 25.1928 23.4509 24.9166L23.451 18.3932ZM31.5738 9.45357C37.3269 9.69188 42.499 12.1846 46.2274 16.072L32.0737 16.0723C31.7975 16.0723 31.5736 15.8484 31.5736 15.5723L31.5738 9.45357Z"}),p("path",{d:"M66.6074 31.1806C66.6074 28.1869 67.2536 25.5242 68.5459 23.1925C69.8382 20.8321 71.6331 19.0042 73.9306 17.7089C76.2568 16.3847 78.8845 15.7227 81.8138 15.7227C85.4036 15.7227 88.4765 16.6726 91.0324 18.5724C93.5884 20.4723 95.2971 23.063 96.1587 26.3446H88.0601C87.457 25.078 86.5954 24.1137 85.4754 23.4516C84.3841 22.7895 83.1349 22.4585 81.7277 22.4585C79.4589 22.4585 77.6209 23.2501 76.2137 24.8333C74.8065 26.4165 74.1029 28.5323 74.1029 31.1806C74.1029 33.8289 74.8065 35.9446 76.2137 37.5278C77.6209 39.111 79.4589 39.9027 81.7277 39.9027C83.1349 39.9027 84.3841 39.5716 85.4754 38.9095C86.5954 38.2475 87.457 37.2832 88.0601 36.0166H96.1587C95.2971 39.2982 93.5884 41.8889 91.0324 43.7887C88.4765 45.6598 85.4036 46.5953 81.8138 46.5953C78.8845 46.5953 76.2568 45.9477 73.9306 44.6523C71.6331 43.3282 69.8382 41.5003 68.5459 39.1686C67.2536 36.837 66.6074 34.1743 66.6074 31.1806Z"}),p("path",{d:"M109.888 46.7249C107.533 46.7249 105.408 46.2211 103.513 45.2136C101.646 44.2061 100.167 42.7668 99.0758 40.8958C98.0132 39.0247 97.4819 36.837 97.4819 34.3326C97.4819 31.857 98.0276 29.6837 99.1189 27.8127C100.21 25.9128 101.704 24.4591 103.599 23.4516C105.494 22.4441 107.62 21.9404 109.974 21.9404C112.329 21.9404 114.455 22.4441 116.35 23.4516C118.245 24.4591 119.739 25.9128 120.83 27.8127C121.921 29.6837 122.467 31.857 122.467 34.3326C122.467 36.8082 121.907 38.9959 120.787 40.8958C119.696 42.7668 118.188 44.2061 116.264 45.2136C114.368 46.2211 112.243 46.7249 109.888 46.7249ZM109.888 40.3344C111.295 40.3344 112.487 39.8163 113.464 38.78C114.469 37.7437 114.971 36.2613 114.971 34.3326C114.971 32.404 114.483 30.9215 113.507 29.8852C112.559 28.8489 111.382 28.3308 109.974 28.3308C108.539 28.3308 107.347 28.8489 106.399 29.8852C105.451 30.8927 104.977 32.3752 104.977 34.3326C104.977 36.2613 105.437 37.7437 106.356 38.78C107.304 39.8163 108.481 40.3344 109.888 40.3344Z"}),p("path",{d:"M139.298 22.0267C142.113 22.0267 144.353 22.9479 146.018 24.7902C147.713 26.6037 148.56 29.108 148.56 32.3032V46.3794H141.237V33.2963C141.237 31.6843 140.82 30.4322 139.987 29.5398C139.155 28.6474 138.035 28.2013 136.627 28.2013C135.22 28.2013 134.1 28.6474 133.267 29.5398C132.434 30.4322 132.018 31.6843 132.018 33.2963V46.3794H124.652V22.2858H132.018V25.481C132.765 24.4159 133.77 23.5812 135.033 22.9767C136.297 22.3434 137.719 22.0267 139.298 22.0267Z"}),p("path",{d:"M166.602 22.0267C169.416 22.0267 171.656 22.9479 173.322 24.7902C175.016 26.6037 175.864 29.108 175.864 32.3032V46.3794H168.54V33.2963C168.54 31.6843 168.124 30.4322 167.291 29.5398C166.458 28.6474 165.338 28.2013 163.931 28.2013C162.524 28.2013 161.404 28.6474 160.571 29.5398C159.738 30.4322 159.322 31.6843 159.322 33.2963V46.3794H151.956V22.2858H159.322V25.481C160.069 24.4159 161.074 23.5812 162.337 22.9767C163.601 22.3434 165.022 22.0267 166.602 22.0267Z"}),p("path",{d:"M201.918 33.944C201.918 34.6349 201.875 35.3545 201.789 36.1029H185.118C185.233 37.5998 185.707 38.7512 186.539 39.5572C187.401 40.3344 188.449 40.723 189.684 40.723C191.522 40.723 192.8 39.9458 193.518 38.3914H201.358C200.956 39.9746 200.224 41.3995 199.161 42.6661C198.127 43.9327 196.821 44.9258 195.241 45.6454C193.662 46.365 191.895 46.7249 189.943 46.7249C187.588 46.7249 185.491 46.2211 183.653 45.2136C181.815 44.2061 180.379 42.7668 179.346 40.8958C178.312 39.0247 177.795 36.837 177.795 34.3326C177.795 31.8283 178.297 29.6405 179.302 27.7695C180.336 25.8984 181.772 24.4591 183.61 23.4516C185.448 22.4441 187.559 21.9404 189.943 21.9404C192.269 21.9404 194.337 22.4297 196.146 23.4084C197.955 24.3872 199.362 25.7833 200.367 27.5968C201.401 29.4103 201.918 31.526 201.918 33.944ZM194.38 32.001C194.38 30.7344 193.949 29.7269 193.087 28.9785C192.226 28.23 191.149 27.8558 189.856 27.8558C188.622 27.8558 187.573 28.2157 186.712 28.9353C185.879 29.6549 185.362 30.6768 185.161 32.001H194.38Z"}),p("path",{d:"M202.617 34.3326C202.617 31.8283 203.119 29.6405 204.124 27.7695C205.158 25.8984 206.58 24.4591 208.389 23.4516C210.227 22.4441 212.323 21.9404 214.678 21.9404C217.694 21.9404 220.207 22.732 222.217 24.3152C224.256 25.8984 225.591 28.1293 226.223 31.0079H218.383C217.722 29.1656 216.444 28.2444 214.549 28.2444C213.199 28.2444 212.122 28.777 211.318 29.842C210.514 30.8783 210.112 32.3752 210.112 34.3326C210.112 36.29 210.514 37.8013 211.318 38.8664C212.122 39.9027 213.199 40.4208 214.549 40.4208C216.444 40.4208 217.722 39.4997 218.383 37.6574H226.223C225.591 40.4784 224.256 42.6949 222.217 44.3069C220.178 45.9189 217.665 46.7249 214.678 46.7249C212.323 46.7249 210.227 46.2211 208.389 45.2136C206.58 44.2061 205.158 42.7668 204.124 40.8958C203.119 39.0247 202.617 36.837 202.617 34.3326Z"}),p("path",{d:"M241.837 40.1185V46.3794H238.09C235.419 46.3794 233.337 45.7318 231.843 44.4364C230.35 43.1123 229.603 40.9677 229.603 38.0028V28.4172H226.674V22.2858H229.603V16.4135H236.97V22.2858H241.794V28.4172H236.97V38.0892C236.97 38.8088 237.142 39.3269 237.486 39.6436C237.831 39.9602 238.405 40.1185 239.21 40.1185H241.837Z"})]})}function ZE(e){return p("svg",{...e,viewBox:"0 0 16 16",fill:"currentcolor",children:p("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.09998 10.2001C1.09998 11.0285 1.77155 11.7001 2.59998 11.7001H4.26664V10.7001H2.59998C2.32383 10.7001 2.09998 10.4762 2.09998 10.2001L2.09998 2.6001C2.09998 2.32396 2.32383 2.1001 2.59998 2.1001L10.2 2.1001C10.4761 2.1001 10.7 2.32395 10.7 2.6001V4.26676H11.7V2.6001C11.7 1.77167 11.0284 1.1001 10.2 1.1001L2.59998 1.1001C1.77155 1.1001 1.09998 1.77167 1.09998 2.6001L1.09998 10.2001ZM5.79998 4.30006C4.97155 4.30006 4.29998 4.97163 4.29998 5.80005V13.4001C4.29998 14.2285 4.97155 14.9001 5.79998 14.9001H13.4C14.2284 14.9001 14.9 14.2285 14.9 13.4001V5.80006C14.9 4.97163 14.2284 4.30006 13.4 4.30006H5.79998ZM5.29998 5.80005C5.29998 5.52391 5.52384 5.30006 5.79998 5.30006H13.4C13.6761 5.30006 13.9 5.52391 13.9 5.80006V13.4001C13.9 13.6762 13.6761 13.9001 13.4 13.9001H5.79998C5.52384 13.9001 5.29998 13.6762 5.29998 13.4001V5.80005Z"})})}function WE(e){return q("svg",{...e,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p("rect",{x:"1.5",y:"1.5",width:"13",height:"13",rx:"3.5",stroke:"currentcolor"}),p("path",{d:"M4 8H12",stroke:"currentcolor",strokeLinecap:"round"}),p("path",{d:"M8 12V4",stroke:"currentcolor",strokeLinecap:"round"})]})}function GE(e){return q("svg",{...e,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p("g",{clipPath:"url(#clip0_14287_3626)",children:p("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.935547 7.9999C0.935547 4.09837 4.09837 0.935547 7.9999 0.935547C11.9014 0.935547 15.0643 4.09837 15.0643 7.9999C15.0643 11.9014 11.9014 15.0643 7.9999 15.0643C4.09837 15.0643 0.935547 11.9014 0.935547 7.9999ZM7.9999 1.94888C4.65802 1.94888 1.94888 4.65802 1.94888 7.9999C1.94888 11.3418 4.65802 14.0509 7.9999 14.0509C11.3418 14.0509 14.0509 11.3418 14.0509 7.9999C14.0509 4.65802 11.3418 1.94888 7.9999 1.94888ZM10.5105 5.48957C10.7188 5.69785 10.7188 6.03554 10.5105 6.24382L8.75427 8.00003L10.5105 9.75624C10.7188 9.96451 10.7188 10.3022 10.5105 10.5105C10.3022 10.7188 9.96451 10.7188 9.75624 10.5105L8.00003 8.75427L6.24382 10.5105C6.03554 10.7188 5.69785 10.7188 5.48957 10.5105C5.28129 10.3022 5.28129 9.96451 5.48957 9.75624L7.24578 8.00003L5.48957 6.24382C5.28129 6.03554 5.28129 5.69785 5.48957 5.48957C5.69785 5.28129 6.03554 5.28129 6.24382 5.48957L8.00003 7.24578L9.75624 5.48957C9.96451 5.28129 10.3022 5.28129 10.5105 5.48957Z",fill:"currentcolor"})}),p("defs",{children:p("clipPath",{id:"clip0_14287_3626",children:p("rect",{width:"16",height:"16",fill:"white"})})})]})}function qE(e){return p("svg",{...e,width:"14",height:"13",viewBox:"0 0 14 13",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",children:p("path",{d:"M7.00951 0.332642C5.90244 0.333309 5.06924 0.911309 4.40531 2.08264L1.09284 8.1453C0.580175 9.0393 0.338108 9.66798 0.342842 10.3326C0.353442 11.8206 1.54977 12.994 3.00951 12.9993H11.0095C12.471 12.9993 13.6706 11.8433 13.6762 10.3326C13.6786 9.66998 13.4178 9.0013 12.9053 8.1453L9.63451 2.12463C9.02057 0.951968 8.13171 0.331975 7.00951 0.332642ZM7.00951 4.33264C7.37771 4.33264 7.67617 4.63131 7.67617 4.99931V7.66598C7.67617 8.03398 7.37771 8.33264 7.00951 8.33264C6.64131 8.33264 6.34284 8.03398 6.34284 7.66598V4.99931C6.34284 4.63131 6.64131 4.33264 7.00951 4.33264ZM7.00951 8.99931C7.37771 8.99931 7.67617 9.29797 7.67617 9.66597C7.67617 10.034 7.37771 10.3326 7.00951 10.3326C6.64131 10.3326 6.34284 10.034 6.34284 9.66597C6.34284 9.29797 6.64131 8.99931 7.00951 8.99931Z"})})}function JE(e){return q("svg",{...e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p("rect",{x:"1.5",y:"1.5",width:"13",height:"13",rx:"3.5",stroke:"currentcolor"}),p("rect",{x:"4",y:"7",width:"2",height:"2",rx:"1",fill:"currentcolor"}),p("rect",{x:"7",y:"7",width:"2",height:"2",rx:"1",fill:"currentcolor"}),p("rect",{x:"10",y:"7",width:"2",height:"2",rx:"1",fill:"currentcolor"})]})}function YE(e){return p("svg",{...e,viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{d:"M12.6604 5.9939C12.6604 5.6259 12.3618 5.32723 11.9938 5.32723H5.99377V3.32723L3.32711 5.9939L5.99377 8.66056V6.66056H11.9938C12.3618 6.66056 12.6604 6.3619 12.6604 5.9939ZM10.6604 2.66056C10.6604 1.1879 9.46644 -0.00610352 7.99377 -0.00610352H2.66044C1.18777 -0.00610352 -0.00622559 1.1879 -0.00622559 2.66056V9.32723C-0.00622559 10.7999 1.18777 11.9939 2.66044 11.9939H7.99377C9.46644 11.9939 10.6604 10.7999 10.6604 9.32723C10.6604 8.95923 10.3618 8.66056 9.99377 8.66056C9.62577 8.66056 9.32711 8.95923 9.32711 9.32723C9.32711 10.0639 8.73044 10.6606 7.99377 10.6606H2.66044C1.92377 10.6606 1.32711 10.0639 1.32711 9.32723V2.66056C1.32711 1.9239 1.92377 1.32723 2.66044 1.32723H7.99377C8.73044 1.32723 9.32711 1.9239 9.32711 2.66056C9.32711 3.02856 9.62577 3.32723 9.99377 3.32723C10.3618 3.32723 10.6604 3.02856 10.6604 2.66056Z",fill:"currentcolor"})})}function KE(e){return q("svg",{...e,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p("path",{d:"M6.646 7.31348C6.28467 7.31348 6 7.63014 6 8.01681C6 8.40214 6.29133 8.72014 6.646 8.72014C7.00667 8.72014 7.29133 8.40214 7.29133 8.01681C7.29867 7.62948 7.00667 7.31348 6.646 7.31348ZM8.958 7.31348C8.59667 7.31348 8.312 7.63014 8.312 8.01681C8.312 8.40214 8.60333 8.72014 8.958 8.72014C9.31867 8.72014 9.60333 8.40214 9.60333 8.01681C9.60267 7.62948 9.31867 7.31348 8.958 7.31348Z",fill:"currentcolor"}),p("path",{d:"M11.4978 2.99902H4.12721C3.97881 2.9994 3.83193 3.02901 3.69496 3.08615C3.558 3.1433 3.43363 3.22686 3.32896 3.33207C3.22428 3.43728 3.14136 3.56207 3.08492 3.69933C3.02848 3.83659 2.99962 3.98362 3 4.13202V11.568C3 12.195 3.506 12.701 4.12721 12.701H10.3642L10.0718 11.6827L10.7764 12.3374L11.4416 12.9534L12.625 13.999V4.13202C12.6254 3.98362 12.5965 3.83659 12.5401 3.69933C12.4836 3.56207 12.4007 3.43728 12.2961 3.33207C12.1914 3.22686 12.067 3.1433 11.93 3.08615C11.7931 3.02901 11.6462 2.9994 11.4978 2.99902ZM9.37421 10.182C9.37421 10.182 9.17621 9.94581 9.01179 9.73565C9.732 9.53187 10.007 9.08144 10.007 9.08144C9.78121 9.22965 9.567 9.33502 9.37421 9.40681C8.67235 9.70055 7.89942 9.78071 7.15221 9.63723C6.87612 9.583 6.60558 9.50354 6.344 9.39987C6.20605 9.34746 6.07198 9.28536 5.94279 9.21402C5.926 9.20187 5.90979 9.19723 5.89358 9.18623C5.88491 9.18211 5.87721 9.17619 5.871 9.16887C5.772 9.11444 5.717 9.07623 5.717 9.07623C5.717 9.07623 5.981 9.51623 6.67979 9.72523C6.51479 9.93365 6.311 10.182 6.311 10.182C5.09579 10.1432 4.63437 9.34602 4.63437 9.34602C4.63437 7.57502 5.42637 6.13981 5.42637 6.13981C6.21837 5.54523 6.97158 5.56202 6.97158 5.56202L7.02658 5.62802C6.03658 5.9146 5.57979 6.34881 5.57979 6.34881C5.57979 6.34881 5.70137 6.28281 5.90458 6.1896C6.49279 5.93139 6.96 5.8596 7.15279 5.84281C7.18579 5.8376 7.21358 5.83181 7.24658 5.83181C8.20023 5.7033 9.16994 5.88453 10.0128 6.34881C10.0128 6.34881 9.578 5.9366 8.643 5.6506L8.72 5.5626C8.72 5.5626 9.47379 5.54581 10.2652 6.14039C10.2652 6.14039 11.0572 7.5756 11.0572 9.3466C11.0572 9.34602 10.59 10.1432 9.37421 10.182Z",fill:"currentcolor"})]})}function XE(e){return q("svg",{...e,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p("mask",{id:"mask0_4381_5452",maskUnits:"userSpaceOnUse",x:"1",y:"0",width:"30",height:"32",children:p("path",{d:"M31 0H1V32H31V0Z",fill:"white"})}),q("g",{mask:"url(#mask0_4381_5452)",children:[p("path",{d:"M19.5149 2.99247C19.2102 2.65617 18.8406 2.3869 18.4289 2.20135C18.0173 2.01581 17.5724 1.91796 17.1219 1.91388H7.95228C7.31271 1.93183 6.70624 2.20591 6.26573 2.67607C5.82522 3.14624 5.58659 3.77415 5.60212 4.42224V29.4916C5.58659 30.1397 5.82522 30.7676 6.26573 31.2378C6.70624 31.708 7.31271 31.982 7.95228 32H24.8201C25.4597 31.982 26.0662 31.708 26.5067 31.2378C26.9472 30.7676 27.1858 30.1397 27.1703 29.4916V12.837C27.1765 11.8989 26.8315 10.9932 26.2048 10.3027L19.5149 2.99247ZM18.9455 4.5811L24.1302 10.245H20.265C20.0916 10.245 19.92 10.2104 19.7598 10.1431C19.5996 10.0759 19.454 9.97738 19.3314 9.85315C19.2088 9.72893 19.1116 9.58145 19.0452 9.41914C18.9789 9.25683 18.9447 9.08287 18.9447 8.90719L18.9455 4.5811ZM25.6857 29.4916C25.7007 29.7406 25.6183 29.9856 25.4562 30.1734C25.2942 30.3612 25.0657 30.4767 24.8201 30.495H7.95228C7.70689 30.4765 7.47855 30.3609 7.31669 30.1731C7.15483 29.9853 7.07248 29.7405 7.08748 29.4916V4.42224C7.07249 4.17325 7.15495 3.9283 7.31698 3.74049C7.47902 3.55268 7.70757 3.43713 7.95311 3.4189H17.1186C17.2337 3.41924 17.3484 3.43156 17.461 3.45569V8.91137C17.461 9.66533 17.7566 10.3884 18.2828 10.9215C18.8089 11.4547 19.5226 11.7542 20.2667 11.7542H25.014C25.1371 11.7532 25.258 11.721 25.3656 11.6605C25.5768 12.0165 25.6884 12.4241 25.6882 12.8395L25.6857 29.4916Z",fill:"#343839"}),p("path",{d:"M18.9455 4.5811L24.1302 10.245H20.265C20.0916 10.245 19.9199 10.2104 19.7598 10.1432C19.5996 10.0759 19.454 9.97738 19.3314 9.85315C19.2088 9.72893 19.1116 9.58145 19.0452 9.41914C18.9789 9.25683 18.9447 9.08287 18.9447 8.90719L18.9455 4.5811Z",fill:"#343839"})]}),p("path",{d:"M21 19.7L16 26L11 19.7L14.3333 19.7L14.3333 14.1C14.3333 12.9408 15.0795 12 16 12C16.9205 12 17.6667 12.9408 17.6667 14.1L17.6667 19.7L21 19.7Z",fill:"#343839"})]})}function QE(e){return p("svg",{...e,viewBox:"0 0 20 16",fill:"currentcolor",children:p("path",{d:"M20 1.84472C20 1.46377 19.7836 1.11591 19.4418 0.94761L18.088 0.28089C17.7399 0.109485 17.3242 0.154861 17.0213 0.397305L10.9046 5.29345L13.3938 7.26606L16.9338 4.43246V11.5763L2.94616 0.468456C2.64307 0.227771 2.22832 0.183587 1.88133 0.355019L0.557054 1.00929C0.215927 1.17782 0 1.52534 0 1.90583V14.1546C0 14.5354 0.216328 14.8832 0.557941 15.0516L1.9119 15.7189C2.26 15.8904 2.67592 15.8451 2.97888 15.6026L9.05159 10.7415L6.56234 8.76886L3.06621 11.5675V4.48484L17.0477 15.5957C17.3508 15.8366 17.7658 15.8809 18.1129 15.7093L19.4431 15.0519C19.7841 14.8833 20 14.5358 20 14.1554V1.84472Z"})})}function eA(e){return q("svg",{...e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 2H11C12.6569 2 14 3.34315 14 5V12H15V5C15 2.79086 13.2091 1 11 1H4V2Z",fill:"currentcolor"}),p("rect",{x:"1.5",y:"3.5",width:"11",height:"11",rx:"2.5",stroke:"currentcolor"})]})}function tA(e){return p("svg",{...e,width:"13",height:"13",viewBox:"0 0 13 13",fill:"currentcolor",children:p("path",{d:"M10.0763 0.308773C9.86968 0.279439 9.66236 0.34811 9.51436 0.49611C9.36169 0.648776 3.5177 6.49277 3.5177 6.49277C3.39303 6.61743 3.33036 6.79478 3.33036 6.97144V8.9701C3.33036 9.3381 3.62903 9.63676 3.99703 9.63676C4.24636 9.63676 5.74568 9.63676 5.99568 9.63676C6.17235 9.63676 6.34969 9.57409 6.47436 9.44943C6.47436 9.44943 12.3197 3.6041 12.471 3.45277C12.6204 3.30344 12.689 3.0781 12.6584 2.86944C12.5557 2.17411 12.2617 1.65011 11.805 1.18345C11.3464 0.71478 10.7863 0.408773 10.0763 0.308773ZM2.66435 0.974788C1.19235 0.974788 -0.000976562 2.16811 -0.000976562 3.64011V10.3028C-0.000976562 11.7748 0.52569 12.9681 1.99769 12.9681H9.32702C10.799 12.9681 11.9923 11.7748 11.9923 10.3028V5.80543L7.41168 10.3861C7.03034 10.7674 6.51968 10.9694 5.99568 10.9694C5.65235 10.9694 4.34036 10.9694 3.99703 10.9694C2.89303 10.9694 1.99769 10.0741 1.99769 8.9701V6.97144C1.99769 6.44744 2.17903 5.93676 2.56036 5.55543L7.14103 0.974788H2.66435ZM10.199 1.69879C10.4537 1.77879 10.657 1.90546 10.847 2.09946C11.043 2.29946 11.179 2.50347 11.2603 2.75547C10.971 3.04213 10.651 3.35345 10.315 3.68678L9.25903 2.6301C9.59769 2.2961 9.90701 1.98679 10.199 1.69879Z"})})}function nA(e){return p("svg",{...e,viewBox:"0 0 10 2",fill:"currentcolor",children:p("path",{d:"M1 0C1.552 0 2 0.448 2 1C2 1.552 1.552 2 1 2C0.448 2 0 1.552 0 1C0 0.448 0.448 0 1 0ZM5 0C5.552 0 6 0.448 6 1C6 1.552 5.552 2 5 2C4.448 2 4 1.552 4 1C4 0.448 4.448 0 5 0ZM9 0C9.552 0 10 0.448 10 1C10 1.552 9.552 2 9 2C8.448 2 8 1.552 8 1C8 0.448 8.448 0 9 0Z"})})}function rA(e){return p("svg",{...e,viewBox:"0 0 16 16",fill:"currentcolor",children:p("path",{d:"M8.00846 1.33203C4.32646 1.33203 1.3418 4.3167 1.3418 7.9987C1.3418 11.6807 4.32646 14.6654 8.00846 14.6654C11.6905 14.6654 14.6751 11.6807 14.6751 7.9987C14.6751 4.3167 11.6905 1.33203 8.00846 1.33203ZM8.00846 4.66536C8.37646 4.66536 8.67513 4.96403 8.67513 5.33203V8.66536C8.67513 9.03336 8.37646 9.33203 8.00846 9.33203C7.64046 9.33203 7.3418 9.03336 7.3418 8.66536V5.33203C7.3418 4.96403 7.64046 4.66536 8.00846 4.66536ZM8.00846 9.9987C8.37646 9.9987 8.67513 10.2974 8.67513 10.6654C8.67513 11.0334 8.37646 11.332 8.00846 11.332C7.64046 11.332 7.3418 11.0334 7.3418 10.6654C7.3418 10.2974 7.64046 9.9987 8.00846 9.9987Z"})})}function oA(e){return q("svg",{...e,viewBox:"0 0 14 14",fill:"none",children:[p("path",{d:"M2.95373 6.63309C2.95374 6.55555 2.96907 6.47878 2.99884 6.40718C3.02861 6.33558 3.07222 6.27056 3.12719 6.21587C3.18215 6.16117 3.24737 6.11787 3.31912 6.08845C3.39086 6.05903 3.46771 6.04407 3.54525 6.04444L4.52593 6.04764C4.68229 6.04764 4.83225 6.10975 4.94282 6.22032C5.05338 6.33089 5.1155 6.48085 5.1155 6.63721V10.3457C5.22595 10.3129 5.36731 10.278 5.52286 10.2414C5.63062 10.216 5.72667 10.155 5.79541 10.0682C5.86416 9.98147 5.90158 9.87401 5.9016 9.7633V5.16356C5.9016 5.00719 5.96371 4.85721 6.07428 4.74663C6.18484 4.63605 6.3348 4.5739 6.49118 4.57387H7.47483C7.63121 4.5739 7.78117 4.63605 7.89173 4.74663C8.00229 4.85721 8.0644 5.00719 8.0644 5.16356V9.43286C8.0644 9.43286 8.31049 9.33328 8.55005 9.2321C8.63907 9.19445 8.71504 9.13142 8.76847 9.05088C8.8219 8.97033 8.85043 8.87584 8.8505 8.77919V3.68957C8.8505 3.53322 8.91261 3.38328 9.02315 3.27272C9.13369 3.16215 9.28362 3.10002 9.43997 3.09999H10.4226C10.5789 3.10015 10.7287 3.16233 10.8391 3.27288C10.9496 3.38343 11.0116 3.5333 11.0116 3.68957V7.88069C11.8635 7.2633 12.7269 6.52069 13.412 5.62781C13.5114 5.4982 13.5772 5.346 13.6035 5.18479C13.6298 5.02358 13.6157 4.85837 13.5626 4.7039C13.2455 3.79145 12.7413 2.95526 12.0825 2.24883C11.4236 1.5424 10.6245 0.981296 9.73636 0.601415C8.84819 0.221534 7.8905 0.0312452 6.92458 0.0427266C5.95865 0.054208 5.00576 0.267206 4.12687 0.668091C3.24799 1.06898 2.46247 1.64892 1.82058 2.37081C1.17869 3.0927 0.694563 3.94064 0.399186 4.86037C0.103809 5.78009 0.00368315 6.75136 0.105216 7.712C0.206748 8.67265 0.507703 9.60152 0.988822 10.4392C1.07264 10.5837 1.19596 10.7013 1.3443 10.7781C1.49263 10.8549 1.65981 10.8879 1.8262 10.873C2.01208 10.8566 2.24351 10.8335 2.51867 10.8012C2.63843 10.7876 2.74899 10.7304 2.8293 10.6405C2.90961 10.5506 2.95406 10.4344 2.95419 10.3138V6.63309",fill:"currentcolor"}),p("path",{d:"M2.93274 12.5804C3.9685 13.3339 5.19251 13.7862 6.46936 13.8872C7.74621 13.9882 9.02612 13.7341 10.1675 13.1528C11.3088 12.5716 12.2672 11.6859 12.9364 10.5938C13.6057 9.50176 13.9598 8.24582 13.9595 6.96498C13.9595 6.80474 13.9521 6.64701 13.9415 6.48975C11.4047 10.2732 6.72085 12.0419 2.93274 12.5804Z",fill:"currentcolor"})]})}function sA(e){return q("svg",{...e,viewBox:"0 0 16 16",fill:"currentcolor",children:[p("path",{d:"M9 4C9 3.448 8.552 3 8 3C7.448 3 7 3.448 7 4V9C7 9.552 7.448 10 8 10C8.552 10 9 9.552 9 9V4Z"}),p("path",{d:"M9 12C9 11.448 8.552 11 8 11C7.448 11 7 11.448 7 12C7 12.552 7.448 13 8 13C8.552 13 9 12.552 9 12Z"})]})}function iA(e){return q("svg",{...e,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p("mask",{id:"mask0_4379_5249",maskUnits:"userSpaceOnUse",x:"2",y:"0",width:"30",height:"32",children:p("path",{d:"M32 0H2V32H32V0Z",fill:"white"})}),q("g",{mask:"url(#mask0_4379_5249)",children:[p("path",{d:"M20.5149 2.99247C20.2102 2.65617 19.8406 2.3869 19.4289 2.20135C19.0173 2.01581 18.5724 1.91796 18.1219 1.91388H8.95228C8.31271 1.93183 7.70624 2.20591 7.26573 2.67607C6.82522 3.14624 6.58659 3.77415 6.60212 4.42224V29.4916C6.58659 30.1397 6.82522 30.7676 7.26573 31.2378C7.70624 31.708 8.31271 31.982 8.95228 32H25.8201C26.4597 31.982 27.0662 31.708 27.5067 31.2378C27.9472 30.7676 28.1858 30.1397 28.1703 29.4916V12.837C28.1765 11.8989 27.8315 10.9932 27.2048 10.3027L20.5149 2.99247ZM19.9455 4.5811L25.1302 10.245H21.265C21.0916 10.245 20.92 10.2104 20.7598 10.1431C20.5996 10.0759 20.454 9.97738 20.3314 9.85315C20.2088 9.72893 20.1116 9.58145 20.0452 9.41914C19.9789 9.25683 19.9447 9.08287 19.9447 8.90719L19.9455 4.5811ZM26.6857 29.4916C26.7007 29.7406 26.6183 29.9856 26.4562 30.1734C26.2942 30.3612 26.0657 30.4767 25.8201 30.495H8.95228C8.70689 30.4765 8.47855 30.3609 8.31669 30.1731C8.15483 29.9853 8.07248 29.7405 8.08748 29.4916V4.42224C8.07249 4.17325 8.15495 3.9283 8.31698 3.74049C8.47902 3.55268 8.70757 3.43713 8.95311 3.4189H18.1186C18.2337 3.41924 18.3484 3.43156 18.461 3.45569V8.91137C18.461 9.66533 18.7566 10.3884 19.2828 10.9215C19.8089 11.4547 20.5226 11.7542 21.2667 11.7542H26.014C26.1371 11.7532 26.258 11.721 26.3656 11.6605C26.5768 12.0165 26.6884 12.4241 26.6882 12.8395L26.6857 29.4916Z",fill:"#343839"}),p("path",{d:"M19.9455 4.5811L25.1302 10.245H21.265C21.0916 10.245 20.9199 10.2104 20.7598 10.1432C20.5996 10.0759 20.454 9.97738 20.3314 9.85315C20.2088 9.72893 20.1116 9.58145 20.0452 9.41914C19.9789 9.25683 19.9447 9.08287 19.9447 8.90719L19.9455 4.5811Z",fill:"#343839"}),p("path",{d:"M23.973 28.0326H3.13249C2.83206 28.0324 2.54401 27.9079 2.33165 27.6866C2.11929 27.4653 2 27.1653 2 26.8525V19.1801C2 18.8673 2.11929 18.5672 2.33165 18.3459C2.54401 18.1247 2.83206 18.0002 3.13249 18H23.973C24.2734 18.0002 24.5615 18.1247 24.7738 18.3459C24.9862 18.5672 25.1055 18.8673 25.1055 19.1801V26.8533C25.1055 27.1662 24.9862 27.4662 24.7738 27.6875C24.5615 27.9088 24.2734 28.0324 23.973 28.0326Z",fill:"#34A853"}),p("path",{d:"M17.4466 20.0798L18.8568 24.5128H18.911L20.3241 20.0798H21.6916L19.6802 25.9145H18.0904L16.0762 20.0798H17.4466Z",fill:"#FCFCFC"}),p("path",{d:"M14.3006 21.7578C14.2778 21.528 14.18 21.3495 14.0071 21.2222C13.8343 21.095 13.5997 21.0313 13.3034 21.0313C13.1021 21.0313 12.9321 21.0598 12.7934 21.1168C12.6548 21.1719 12.5484 21.2488 12.4744 21.3476C12.4022 21.4463 12.3661 21.5584 12.3661 21.6838C12.3623 21.7882 12.3841 21.8794 12.4316 21.9573C12.481 22.0351 12.5484 22.1026 12.6339 22.1595C12.7194 22.2146 12.8181 22.2631 12.9302 22.3048C13.0423 22.3447 13.1619 22.3789 13.2892 22.4074L13.8134 22.5328C14.0679 22.5897 14.3015 22.6657 14.5142 22.7607C14.727 22.8556 14.9112 22.9725 15.067 23.1111C15.2227 23.2498 15.3433 23.4131 15.4288 23.6011C15.5161 23.7892 15.5608 24.0047 15.5627 24.2479C15.5608 24.6049 15.4696 24.9145 15.2892 25.1766C15.1106 25.4368 14.8523 25.6391 14.5142 25.7835C14.1781 25.9259 13.7726 25.9971 13.2977 25.9971C12.8267 25.9971 12.4164 25.925 12.067 25.7806C11.7194 25.6363 11.4478 25.4226 11.2521 25.1396C11.0584 24.8547 10.9568 24.5024 10.9473 24.0826H12.141C12.1543 24.2782 12.2104 24.4416 12.3091 24.5726C12.4098 24.7018 12.5437 24.7996 12.7108 24.8661C12.8799 24.9307 13.0708 24.963 13.2835 24.963C13.4924 24.963 13.6738 24.9326 13.8276 24.8718C13.9834 24.811 14.104 24.7265 14.1895 24.6182C14.2749 24.51 14.3177 24.3856 14.3177 24.245C14.3177 24.114 14.2787 24.0038 14.2009 23.9145C14.1249 23.8253 14.0128 23.7493 13.8647 23.6866C13.7184 23.6239 13.5389 23.5669 13.3262 23.5157L12.6909 23.3561C12.199 23.2365 11.8105 23.0494 11.5256 22.7949C11.2407 22.5404 11.0992 22.1975 11.1011 21.7664C11.0992 21.4131 11.1933 21.1045 11.3832 20.8405C11.575 20.5764 11.8381 20.3704 12.1724 20.2222C12.5066 20.0741 12.8865 20 13.312 20C13.745 20 14.123 20.0741 14.4459 20.2222C14.7707 20.3704 15.0233 20.5764 15.2037 20.8405C15.3841 21.1045 15.4772 21.4103 15.4829 21.7578H14.3006Z",fill:"#FCFCFC"}),p("path",{d:"M10.2507 22.1225H9.00285C8.98005 21.9611 8.93352 21.8177 8.86324 21.6923C8.79297 21.5651 8.70275 21.4568 8.59259 21.3675C8.48243 21.2783 8.35517 21.2099 8.21082 21.1624C8.06837 21.1149 7.91358 21.0912 7.74644 21.0912C7.44444 21.0912 7.18138 21.1662 6.95726 21.3162C6.73314 21.4644 6.55935 21.6809 6.4359 21.9658C6.31244 22.2488 6.25071 22.5926 6.25071 22.9971C6.25071 23.4131 6.31244 23.7626 6.4359 24.0456C6.56125 24.3286 6.73599 24.5423 6.96011 24.6866C7.18423 24.831 7.44349 24.9031 7.73789 24.9031C7.90313 24.9031 8.05603 24.8813 8.19658 24.8376C8.33903 24.7939 8.46533 24.7303 8.5755 24.6467C8.68566 24.5612 8.77683 24.4577 8.849 24.3362C8.92307 24.2146 8.97436 24.076 9.00285 23.9202L10.2507 23.9259C10.2184 24.1937 10.1377 24.452 10.0085 24.7009C9.88129 24.9478 9.7094 25.169 9.49287 25.3647C9.27825 25.5584 9.02184 25.7122 8.72364 25.8262C8.42735 25.9383 8.09212 25.9943 7.71795 25.9943C7.19753 25.9943 6.73219 25.8765 6.32194 25.641C5.91358 25.4055 5.59069 25.0646 5.35328 24.6182C5.11776 24.1719 5 23.6315 5 22.9971C5 22.3609 5.11966 21.8196 5.35897 21.3732C5.59829 20.9269 5.92308 20.5869 6.33333 20.3533C6.74359 20.1178 7.20513 20 7.71795 20C8.05603 20 8.36942 20.0475 8.65812 20.1425C8.94871 20.2374 9.20607 20.3761 9.4302 20.5584C9.65432 20.7388 9.83665 20.9601 9.9772 21.2222C10.1197 21.4843 10.2108 21.7844 10.2507 22.1225Z",fill:"#FCFCFC"})]}),p("path",{d:"M30.8819 5.43478L27.9937 9.19732L25.1055 5.43478L27.031 5.43478L27.031 2.0903C27.031 1.39799 27.462 0.836119 27.9937 0.836119C28.5254 0.836119 28.9564 1.39799 28.9564 2.0903L28.9564 5.43478L30.8819 5.43478Z",fill:"#343839"})]})}function aA(e){return q("svg",{...e,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p("mask",{id:"mask0_4379_5175",maskUnits:"userSpaceOnUse",x:"2",y:"0",width:"30",height:"32",children:p("path",{d:"M32 0H2V32H32V0Z",fill:"white"})}),q("g",{mask:"url(#mask0_4379_5175)",children:[p("path",{d:"M20.5149 2.99247C20.2102 2.65617 19.8406 2.3869 19.4289 2.20135C19.0173 2.01581 18.5724 1.91796 18.1219 1.91388H8.95228C8.31271 1.93183 7.70624 2.20591 7.26573 2.67607C6.82522 3.14624 6.58659 3.77415 6.60212 4.42224V29.4916C6.58659 30.1397 6.82522 30.7676 7.26573 31.2378C7.70624 31.708 8.31271 31.982 8.95228 32H25.8201C26.4597 31.982 27.0662 31.708 27.5067 31.2378C27.9472 30.7676 28.1858 30.1397 28.1703 29.4916V12.837C28.1765 11.8989 27.8315 10.9932 27.2048 10.3027L20.5149 2.99247ZM19.9455 4.5811L25.1302 10.245H21.265C21.0916 10.245 20.92 10.2104 20.7598 10.1431C20.5996 10.0759 20.454 9.97738 20.3314 9.85315C20.2088 9.72893 20.1116 9.58145 20.0452 9.41914C19.9789 9.25683 19.9447 9.08287 19.9447 8.90719L19.9455 4.5811ZM26.6857 29.4916C26.7007 29.7406 26.6183 29.9856 26.4562 30.1734C26.2942 30.3612 26.0657 30.4767 25.8201 30.495H8.95228C8.70689 30.4765 8.47855 30.3609 8.31669 30.1731C8.15483 29.9853 8.07248 29.7405 8.08748 29.4916V4.42224C8.07249 4.17325 8.15495 3.9283 8.31698 3.74049C8.47902 3.55268 8.70757 3.43713 8.95311 3.4189H18.1186C18.2337 3.41924 18.3484 3.43156 18.461 3.45569V8.91137C18.461 9.66533 18.7566 10.3884 19.2828 10.9215C19.8089 11.4547 20.5226 11.7542 21.2667 11.7542H26.014C26.1371 11.7532 26.258 11.721 26.3656 11.6605C26.5768 12.0165 26.6884 12.4241 26.6882 12.8395L26.6857 29.4916Z",fill:"#343839"}),p("path",{d:"M19.9455 4.5811L25.1302 10.245H21.265C21.0916 10.245 20.9199 10.2104 20.7598 10.1432C20.5996 10.0759 20.454 9.97738 20.3314 9.85315C20.2088 9.72893 20.1116 9.58145 20.0452 9.41914C19.9789 9.25683 19.9447 9.08287 19.9447 8.90719L19.9455 4.5811Z",fill:"#343839"}),p("path",{d:"M23.973 28.0326H3.13249C2.83206 28.0324 2.54401 27.9079 2.33165 27.6866C2.11929 27.4653 2 27.1653 2 26.8525V19.1801C2 18.8673 2.11929 18.5672 2.33165 18.3459C2.54401 18.1247 2.83206 18.0002 3.13249 18H23.973C24.2734 18.0002 24.5615 18.1247 24.7738 18.3459C24.9862 18.5672 25.1055 18.8673 25.1055 19.1801V26.8533C25.1055 27.1662 24.9862 27.4662 24.7738 27.6875C24.5615 27.9088 24.2734 28.0324 23.973 28.0326Z",fill:"#EA4335"}),p("path",{d:"M23.7256 20.0798V25.9173H22.6892L20.2201 22.2432H20.1785V25.9173H18.9786V20.0798H20.0316L22.4814 23.7511H22.5312V20.0798H23.7256Z",fill:"#FCFCFC"}),p("path",{d:"M18.0897 22.9986C18.0897 23.6352 17.9724 24.1767 17.7378 24.6233C17.505 25.0698 17.1873 25.4109 16.7845 25.6466C16.3836 25.8803 15.9328 25.9971 15.4322 25.9971C14.9278 25.9971 14.4752 25.8793 14.0743 25.6437C13.6734 25.4081 13.3566 25.067 13.1238 24.6204C12.891 24.1739 12.7746 23.6333 12.7746 22.9986C12.7746 22.362 12.891 21.8204 13.1238 21.3739C13.3566 20.9273 13.6734 20.5872 14.0743 20.3534C14.4752 20.1178 14.9278 20 15.4322 20C15.9328 20 16.3836 20.1178 16.7845 20.3534C17.1873 20.5872 17.505 20.9273 17.7378 21.3739C17.9724 21.8204 18.0897 22.362 18.0897 22.9986ZM16.8732 22.9986C16.8732 22.5862 16.8132 22.2385 16.6931 21.9553C16.5748 21.6722 16.4076 21.4575 16.1915 21.3112C15.9753 21.1648 15.7222 21.0917 15.4322 21.0917C15.1421 21.0917 14.889 21.1648 14.6729 21.3112C14.4567 21.4575 14.2886 21.6722 14.1685 21.9553C14.0503 22.2385 13.9912 22.5862 13.9912 22.9986C13.9912 23.4109 14.0503 23.7587 14.1685 24.0418C14.2886 24.3249 14.4567 24.5397 14.6729 24.686C14.889 24.8323 15.1421 24.9055 15.4322 24.9055C15.7222 24.9055 15.9753 24.8323 16.1915 24.686C16.4076 24.5397 16.5748 24.3249 16.6931 24.0418C16.8132 23.7587 16.8732 23.4109 16.8732 22.9986Z",fill:"#FCFCFC"}),p("path",{d:"M10.8397 21.7587C10.8175 21.5287 10.7224 21.3501 10.5542 21.2228C10.3861 21.0955 10.158 21.0318 9.86976 21.0318C9.67393 21.0318 9.50859 21.0603 9.37372 21.1173C9.23886 21.1724 9.1354 21.2494 9.06335 21.3482C8.99315 21.447 8.95805 21.5591 8.95805 21.6846C8.95435 21.7891 8.9756 21.8803 9.02178 21.9582C9.06982 22.0361 9.1354 22.1036 9.21854 22.1606C9.30167 22.2157 9.39774 22.2641 9.50674 22.3059C9.61574 22.3458 9.73213 22.38 9.85591 22.4086L10.3658 22.534C10.6134 22.591 10.8406 22.667 11.0475 22.762C11.2544 22.857 11.4336 22.9739 11.5851 23.1126C11.7366 23.2513 11.8539 23.4147 11.9371 23.6029C12.022 23.791 12.0655 24.0067 12.0673 24.2499C12.0655 24.6071 11.9768 24.9169 11.8013 25.1791C11.6276 25.4394 11.3764 25.6418 11.0475 25.7862C10.7205 25.9287 10.3261 26 9.86422 26C9.40605 26 9.007 25.9278 8.66707 25.7834C8.32899 25.639 8.06481 25.4252 7.87452 25.142C7.68608 24.857 7.58724 24.5045 7.578 24.0846H8.73912C8.75206 24.2803 8.80656 24.4437 8.90262 24.5748C9.00054 24.704 9.13078 24.8019 9.29336 24.8684C9.45778 24.933 9.64345 24.9653 9.85036 24.9653C10.0536 24.9653 10.23 24.9349 10.3797 24.8741C10.5311 24.8133 10.6485 24.7287 10.7316 24.6204C10.8147 24.5121 10.8563 24.3876 10.8563 24.247C10.8563 24.1159 10.8184 24.0057 10.7427 23.9164C10.6688 23.8271 10.5598 23.7511 10.4157 23.6884C10.2734 23.6257 10.0988 23.5686 9.89193 23.5173L9.27396 23.3577C8.79547 23.238 8.41767 23.0508 8.14055 22.7962C7.86343 22.5416 7.7258 22.1986 7.72765 21.7672C7.7258 21.4138 7.81725 21.105 8.00199 20.8409C8.18858 20.5767 8.44446 20.3705 8.76961 20.2223C9.09476 20.0741 9.46425 20 9.87808 20C10.2993 20 10.6669 20.0741 10.981 20.2223C11.2969 20.3705 11.5426 20.5767 11.7181 20.8409C11.8936 21.105 11.9842 21.4109 11.9897 21.7587H10.8397Z",fill:"#FCFCFC"}),p("path",{d:"M5.58276 20.0798H6.76883V24.1501C6.76883 24.5264 6.68661 24.8532 6.52219 25.1306C6.35962 25.4081 6.1333 25.6219 5.84325 25.772C5.5532 25.9221 5.21605 25.9972 4.83178 25.9972C4.49 25.9972 4.17963 25.9354 3.90066 25.8119C3.62354 25.6865 3.4037 25.4964 3.24112 25.2418C3.07855 24.9853 2.99818 24.6632 3.00003 24.2755H4.19441C4.1981 24.4295 4.22858 24.5615 4.28586 24.6717C4.34497 24.78 4.42534 24.8637 4.52695 24.9226C4.6304 24.9796 4.75234 25.0081 4.89274 25.0081C5.04054 25.0081 5.16524 24.9758 5.26685 24.9112C5.37031 24.8447 5.44882 24.7477 5.5024 24.6204C5.55598 24.4931 5.58276 24.3363 5.58276 24.1501V20.0798Z",fill:"#FCFCFC"})]}),p("path",{d:"M30.8819 5.43478L27.9937 9.19732L25.1055 5.43478L27.031 5.43478L27.031 2.0903C27.031 1.39799 27.462 0.836119 27.9937 0.836119C28.5254 0.836119 28.9564 1.39799 28.9564 2.0903L28.9564 5.43478L30.8819 5.43478Z",fill:"#343839"})]})}function cA(e){return q("svg",{...e,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p("mask",{id:"mask0_4379_5235",maskUnits:"userSpaceOnUse",x:"2",y:"0",width:"30",height:"32",children:p("path",{d:"M32 0H2V32H32V0Z",fill:"white"})}),q("g",{mask:"url(#mask0_4379_5235)",children:[p("path",{d:"M20.5149 2.99247C20.2102 2.65617 19.8406 2.3869 19.4289 2.20135C19.0173 2.01581 18.5724 1.91796 18.1219 1.91388H8.95228C8.31271 1.93183 7.70624 2.20591 7.26573 2.67607C6.82522 3.14624 6.58659 3.77415 6.60212 4.42224V29.4916C6.58659 30.1397 6.82522 30.7676 7.26573 31.2378C7.70624 31.708 8.31271 31.982 8.95228 32H25.8201C26.4597 31.982 27.0662 31.708 27.5067 31.2378C27.9472 30.7676 28.1858 30.1397 28.1703 29.4916V12.837C28.1765 11.8989 27.8315 10.9932 27.2048 10.3027L20.5149 2.99247ZM19.9455 4.5811L25.1302 10.245H21.265C21.0916 10.245 20.92 10.2104 20.7598 10.1431C20.5996 10.0759 20.454 9.97738 20.3314 9.85315C20.2088 9.72893 20.1116 9.58145 20.0452 9.41914C19.9789 9.25683 19.9447 9.08287 19.9447 8.90719L19.9455 4.5811ZM26.6857 29.4916C26.7007 29.7406 26.6183 29.9856 26.4562 30.1734C26.2942 30.3612 26.0657 30.4767 25.8201 30.495H8.95228C8.70689 30.4765 8.47855 30.3609 8.31669 30.1731C8.15483 29.9853 8.07248 29.7405 8.08748 29.4916V4.42224C8.07249 4.17325 8.15495 3.9283 8.31698 3.74049C8.47902 3.55268 8.70757 3.43713 8.95311 3.4189H18.1186C18.2337 3.41924 18.3484 3.43156 18.461 3.45569V8.91137C18.461 9.66533 18.7566 10.3884 19.2828 10.9215C19.8089 11.4547 20.5226 11.7542 21.2667 11.7542H26.014C26.1371 11.7532 26.258 11.721 26.3656 11.6605C26.5768 12.0165 26.6884 12.4241 26.6882 12.8395L26.6857 29.4916Z",fill:"#343839"}),p("path",{d:"M19.9455 4.5811L25.1302 10.245H21.265C21.0916 10.245 20.9199 10.2104 20.7598 10.1432C20.5996 10.0759 20.454 9.97738 20.3314 9.85315C20.2088 9.72893 20.1116 9.58145 20.0452 9.41914C19.9789 9.25683 19.9447 9.08287 19.9447 8.90719L19.9455 4.5811Z",fill:"#343839"}),p("path",{d:"M23.973 28.0326H3.13249C2.83206 28.0324 2.54401 27.9079 2.33165 27.6866C2.11929 27.4653 2 27.1653 2 26.8525V19.1801C2 18.8673 2.11929 18.5672 2.33165 18.3459C2.54401 18.1247 2.83206 18.0002 3.13249 18H23.973C24.2734 18.0002 24.5615 18.1247 24.7738 18.3459C24.9862 18.5672 25.1055 18.8673 25.1055 19.1801V26.8533C25.1055 27.1662 24.9862 27.4662 24.7738 27.6875C24.5615 27.9088 24.2734 28.0324 23.973 28.0326Z",fill:"#EA4335"})]}),p("path",{d:"M30.8819 5.43478L27.9937 9.19732L25.1055 5.43478L27.031 5.43478L27.031 2.0903C27.031 1.39799 27.462 0.836119 27.9937 0.836119C28.5254 0.836119 28.9564 1.39799 28.9564 2.0903L28.9564 5.43478L30.8819 5.43478Z",fill:"#343839"}),p("path",{d:"M17.3438 26V20H21.3164V21.0459H18.6123V22.4756H21.0527V23.5215H18.6123V26H17.3438Z",fill:"#FCFCFC"}),p("path",{d:"M13.4685 26H11.3416V20H13.4861C14.0896 20 14.6091 20.1201 15.0447 20.3604C15.4802 20.5986 15.8152 20.9414 16.0496 21.3887C16.2859 21.8359 16.4041 22.3711 16.4041 22.9941C16.4041 23.6191 16.2859 24.1563 16.0496 24.6055C15.8152 25.0547 15.4783 25.3994 15.0388 25.6396C14.6013 25.8799 14.0779 26 13.4685 26ZM12.6101 24.9131H13.4158C13.7908 24.9131 14.1062 24.8467 14.3621 24.7139C14.6199 24.5791 14.8132 24.3711 14.9421 24.0898C15.073 23.8066 15.1384 23.4414 15.1384 22.9941C15.1384 22.5508 15.073 22.1885 14.9421 21.9072C14.8132 21.626 14.6209 21.4189 14.365 21.2861C14.1091 21.1533 13.7937 21.0869 13.4187 21.0869H12.6101V24.9131Z",fill:"#FCFCFC"}),p("path",{d:"M6 26V20H8.36719C8.82227 20 9.20996 20.0869 9.53027 20.2607C9.85059 20.4326 10.0947 20.6719 10.2627 20.9785C10.4326 21.2832 10.5176 21.6348 10.5176 22.0332C10.5176 22.4316 10.4316 22.7832 10.2598 23.0879C10.0879 23.3926 9.83887 23.6299 9.5127 23.7998C9.18848 23.9697 8.7959 24.0547 8.33496 24.0547H6.82617V23.0381H8.12988C8.37402 23.0381 8.5752 22.9961 8.7334 22.9121C8.89355 22.8262 9.0127 22.708 9.09082 22.5576C9.1709 22.4053 9.21094 22.2305 9.21094 22.0332C9.21094 21.834 9.1709 21.6602 9.09082 21.5117C9.0127 21.3613 8.89355 21.2451 8.7334 21.1631C8.57324 21.0791 8.37012 21.0371 8.12402 21.0371H7.26855V26H6Z",fill:"#FCFCFC"})]})}function lA(e){return q("svg",{...e,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p("mask",{id:"mask0_4381_5338",maskUnits:"userSpaceOnUse",x:"2",y:"0",width:"30",height:"32",children:p("path",{d:"M32 0H2V32H32V0Z",fill:"white"})}),q("g",{mask:"url(#mask0_4381_5338)",children:[p("path",{d:"M20.5149 2.99247C20.2102 2.65617 19.8406 2.3869 19.4289 2.20135C19.0173 2.01581 18.5724 1.91796 18.1219 1.91388H8.95227C8.3127 1.93183 7.70623 2.20591 7.26572 2.67607C6.82521 3.14624 6.58658 3.77415 6.60212 4.42224V29.4916C6.58658 30.1397 6.82521 30.7676 7.26572 31.2378C7.70623 31.708 8.3127 31.982 8.95227 32H25.8201C26.4597 31.982 27.0661 31.708 27.5067 31.2378C27.9472 30.7676 28.1858 30.1397 28.1703 29.4916V12.837C28.1765 11.8989 27.8315 10.9932 27.2048 10.3027L20.5149 2.99247ZM19.9455 4.5811L25.1302 10.245H21.265C21.0916 10.245 20.9199 10.2104 20.7598 10.1431C20.5996 10.0759 20.454 9.97738 20.3314 9.85315C20.2088 9.72893 20.1116 9.58145 20.0452 9.41914C19.9789 9.25683 19.9447 9.08287 19.9447 8.90719L19.9455 4.5811ZM26.6857 29.4916C26.7007 29.7406 26.6183 29.9856 26.4562 30.1734C26.2942 30.3612 26.0656 30.4767 25.8201 30.495H8.95227C8.70688 30.4765 8.47854 30.3609 8.31668 30.1731C8.15482 29.9853 8.07247 29.7405 8.08747 29.4916V4.42224C8.07248 4.17325 8.15494 3.9283 8.31697 3.74049C8.47901 3.55268 8.70756 3.43713 8.9531 3.4189H18.1186C18.2336 3.41924 18.3484 3.43156 18.461 3.45569V8.91137C18.461 9.66533 18.7566 10.3884 19.2828 10.9215C19.8089 11.4547 20.5226 11.7542 21.2667 11.7542H26.014C26.1371 11.7532 26.2579 11.721 26.3656 11.6605C26.5768 12.0165 26.6884 12.4241 26.6882 12.8395L26.6857 29.4916Z",fill:"#343839"}),p("path",{d:"M19.9455 4.5811L25.1302 10.245H21.265C21.0916 10.245 20.9199 10.2104 20.7598 10.1432C20.5996 10.0759 20.454 9.97738 20.3314 9.85315C20.2088 9.72893 20.1116 9.58145 20.0452 9.41914C19.9789 9.25683 19.9447 9.08287 19.9447 8.90719L19.9455 4.5811Z",fill:"#343839"})]}),p("path",{d:"M30.8819 5.43478L27.9937 9.19732L25.1055 5.43478L27.0309 5.43478L27.0309 2.0903C27.0309 1.39799 27.462 0.836119 27.9937 0.836119C28.5254 0.836119 28.9564 1.39799 28.9564 2.0903L28.9564 5.43478L30.8819 5.43478Z",fill:"#343839"}),p("path",{d:"M23.973 28.0326H3.13249C2.83206 28.0324 2.54401 27.9079 2.33165 27.6866C2.11929 27.4653 2 27.1653 2 26.8525V19.1801C2 18.8673 2.11929 18.5672 2.33165 18.3459C2.54401 18.1247 2.83206 18.0002 3.13249 18H23.973C24.2734 18.0002 24.5615 18.1247 24.7738 18.3459C24.9862 18.5672 25.1055 18.8673 25.1055 19.1801V26.8533C25.1055 27.1662 24.9862 27.4662 24.7738 27.6875C24.5615 27.9088 24.2734 28.0324 23.973 28.0326Z",fill:"#1990FF"}),p("path",{d:"M17.6553 25.9162V20H18.944V24.8849H21.5572V25.9162H17.6553Z",fill:"#FCFCFC"}),p("path",{d:"M12.1141 25.9162V20H14.5547C15.0031 20 15.3771 20.0645 15.6768 20.1935C15.9764 20.3226 16.2016 20.5017 16.3524 20.7309C16.5032 20.9581 16.5786 21.22 16.5786 21.5166C16.5786 21.7477 16.531 21.9509 16.4357 22.1261C16.3405 22.2995 16.2095 22.442 16.0428 22.5537C15.8782 22.6635 15.6897 22.7415 15.4773 22.7877V22.8455C15.7095 22.8551 15.9268 22.9186 16.1292 23.0361C16.3335 23.1536 16.4992 23.3182 16.6262 23.5301C16.7532 23.74 16.8167 23.9904 16.8167 24.2812C16.8167 24.5951 16.7363 24.8753 16.5756 25.1218C16.4169 25.3664 16.1817 25.5599 15.8702 25.7025C15.5587 25.845 15.1748 25.9162 14.7184 25.9162H12.1141ZM13.4029 24.8936H14.4535C14.8126 24.8936 15.0746 24.8272 15.2392 24.6943C15.4039 24.5595 15.4863 24.3804 15.4863 24.157C15.4863 23.9933 15.4456 23.8488 15.3642 23.7236C15.2829 23.5985 15.1668 23.5002 15.016 23.429C14.8672 23.3577 14.6896 23.3221 14.4833 23.3221H13.4029V24.8936ZM13.4029 22.4757H14.3583C14.5348 22.4757 14.6916 22.4458 14.8285 22.3861C14.9674 22.3245 15.0765 22.2378 15.1559 22.1261C15.2373 22.0144 15.2779 21.8806 15.2779 21.7246C15.2779 21.5108 15.1996 21.3385 15.0428 21.2075C14.888 21.0766 14.6678 21.0111 14.3821 21.0111H13.4029V22.4757Z",fill:"#FCFCFC"}),p("path",{d:"M9.76505 20H11.0538V23.8421C11.0538 24.2735 10.9476 24.6509 10.7353 24.9745C10.525 25.298 10.2303 25.5503 9.85136 25.7313C9.47237 25.9104 9.03089 26 8.5269 26C8.02092 26 7.57844 25.9104 7.19946 25.7313C6.82047 25.5503 6.52582 25.298 6.31549 24.9745C6.10516 24.6509 6 24.2735 6 23.8421V20H7.28875V23.7352C7.28875 23.9605 7.33934 24.1608 7.44054 24.3361C7.54372 24.5113 7.68857 24.649 7.87508 24.7492C8.0616 24.8493 8.27887 24.8994 8.5269 24.8994C8.77691 24.8994 8.99418 24.8493 9.17871 24.7492C9.36523 24.649 9.50908 24.5113 9.61028 24.3361C9.71346 24.1608 9.76505 23.9605 9.76505 23.7352V20Z",fill:"#FCFCFC"})]})}function uA(e){return q("svg",{...e,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p("mask",{id:"mask0_4381_5398",maskUnits:"userSpaceOnUse",x:"2",y:"0",width:"30",height:"32",children:p("path",{d:"M32 0H2V32H32V0Z",fill:"white"})}),q("g",{mask:"url(#mask0_4381_5398)",children:[p("path",{d:"M20.5149 2.99247C20.2102 2.65617 19.8406 2.3869 19.4289 2.20135C19.0173 2.01581 18.5724 1.91796 18.1219 1.91388H8.95227C8.3127 1.93183 7.70623 2.20591 7.26572 2.67607C6.82521 3.14624 6.58658 3.77415 6.60212 4.42224V29.4916C6.58658 30.1397 6.82521 30.7676 7.26572 31.2378C7.70623 31.708 8.3127 31.982 8.95227 32H25.8201C26.4597 31.982 27.0661 31.708 27.5067 31.2378C27.9472 30.7676 28.1858 30.1397 28.1703 29.4916V12.837C28.1765 11.8989 27.8315 10.9932 27.2048 10.3027L20.5149 2.99247ZM19.9455 4.5811L25.1302 10.245H21.265C21.0916 10.245 20.9199 10.2104 20.7598 10.1431C20.5996 10.0759 20.454 9.97738 20.3314 9.85315C20.2088 9.72893 20.1116 9.58145 20.0452 9.41914C19.9789 9.25683 19.9447 9.08287 19.9447 8.90719L19.9455 4.5811ZM26.6857 29.4916C26.7007 29.7406 26.6183 29.9856 26.4562 30.1734C26.2942 30.3612 26.0656 30.4767 25.8201 30.495H8.95227C8.70688 30.4765 8.47854 30.3609 8.31668 30.1731C8.15482 29.9853 8.07247 29.7405 8.08747 29.4916V4.42224C8.07248 4.17325 8.15494 3.9283 8.31697 3.74049C8.47901 3.55268 8.70756 3.43713 8.9531 3.4189H18.1186C18.2336 3.41924 18.3484 3.43156 18.461 3.45569V8.91137C18.461 9.66533 18.7566 10.3884 19.2828 10.9215C19.8089 11.4547 20.5226 11.7542 21.2667 11.7542H26.014C26.1371 11.7532 26.2579 11.721 26.3656 11.6605C26.5768 12.0165 26.6884 12.4241 26.6882 12.8395L26.6857 29.4916Z",fill:"#343839"}),p("path",{d:"M19.9455 4.5811L25.1302 10.245H21.265C21.0916 10.245 20.9199 10.2104 20.7598 10.1432C20.5996 10.0759 20.454 9.97738 20.3314 9.85315C20.2088 9.72893 20.1116 9.58145 20.0452 9.41914C19.9789 9.25683 19.9447 9.08287 19.9447 8.90719L19.9455 4.5811Z",fill:"#343839"})]}),p("path",{d:"M30.8819 5.43478L27.9937 9.19732L25.1055 5.43478L27.0309 5.43478L27.0309 2.0903C27.0309 1.39799 27.462 0.836119 27.9937 0.836119C28.5254 0.836119 28.9564 1.39799 28.9564 2.0903L28.9564 5.43478L30.8819 5.43478Z",fill:"#343839"}),p("path",{d:"M23.973 28.0326H3.13249C2.83206 28.0324 2.54401 27.9079 2.33165 27.6866C2.11929 27.4653 2 27.1653 2 26.8525V19.1801C2 18.8673 2.11929 18.5672 2.33165 18.3459C2.54401 18.1247 2.83206 18.0002 3.13249 18H23.973C24.2734 18.0002 24.5615 18.1247 24.7738 18.3459C24.9862 18.5672 25.1055 18.8673 25.1055 19.1801V26.8533C25.1055 27.1662 24.9862 27.4662 24.7738 27.6875C24.5615 27.9088 24.2734 28.0324 23.973 28.0326Z",fill:"#343839"}),p("path",{d:"M15.8853 26V20H18.2524C18.7075 20 19.0952 20.0869 19.4155 20.2607C19.7358 20.4326 19.98 20.6719 20.148 20.9785C20.3179 21.2832 20.4028 21.6348 20.4028 22.0332C20.4028 22.4316 20.3169 22.7832 20.145 23.0879C19.9731 23.3926 19.7241 23.6299 19.398 23.7998C19.0737 23.9697 18.6812 24.0547 18.2202 24.0547H16.7114V23.0381H18.0151C18.2593 23.0381 18.4605 22.9961 18.6187 22.9121C18.7788 22.8262 18.898 22.708 18.9761 22.5576C19.0562 22.4053 19.0962 22.2305 19.0962 22.0332C19.0962 21.834 19.0562 21.6602 18.9761 21.5117C18.898 21.3613 18.7788 21.2451 18.6187 21.1631C18.4585 21.0791 18.2554 21.0371 18.0093 21.0371H17.1538V26H15.8853Z",fill:"#FCFCFC"}),p("path",{d:"M14.8416 20V26H13.573V20H14.8416Z",fill:"#FCFCFC"}),p("path",{d:"M8.00586 26V25.2471L11 21.0459H8V20H12.5938V20.7529L9.59668 24.9541H12.5996V26H8.00586Z",fill:"#FCFCFC"})]})}function dA(e){return p("svg",{...e,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.7333 2.13332C3.43875 2.13332 3.19997 2.3721 3.19997 2.66665V13.3333C3.19997 13.6279 3.43875 13.8667 3.7333 13.8667H12.2666C12.5612 13.8667 12.8 13.6279 12.8 13.3333V6.39998H9.06663C8.77208 6.39998 8.5333 6.1612 8.5333 5.86665V2.13332H3.7333ZM9.59997 2.88756L12.0457 5.33332H9.59997V2.88756ZM2.1333 2.66665C2.1333 1.78299 2.84965 1.06665 3.7333 1.06665H9.06663C9.20808 1.06665 9.34374 1.12284 9.44376 1.22286L13.7104 5.48953C13.8104 5.58955 13.8666 5.7252 13.8666 5.86665V13.3333C13.8666 14.217 13.1503 14.9333 12.2666 14.9333H3.7333C2.84964 14.9333 2.1333 14.217 2.1333 13.3333V2.66665Z",fill:"currentcolor"})})}function fA(e){return p("svg",{...e,viewBox:"0 0 20 20",fill:"currentcolor",children:p("path",{d:"M8.33139 1.67773C5.36388 1.67773 2.49805 4.5159 2.49805 7.48507C2.49805 7.49365 2.49805 7.5024 2.49805 7.51107C2.49805 9.56107 2.49805 12.008 2.49805 12.2246C2.49805 13.7777 3.84056 15.0111 5.46639 15.0111H5.83139V15.5579C5.83139 17.1111 7.1739 18.3444 8.79973 18.3444H14.5297C16.1556 18.3444 17.4981 17.1111 17.4981 15.5579V7.79757C17.4981 6.2444 16.1556 5.01107 14.5297 5.01107H14.1647V4.46423C14.1647 2.91107 12.8222 1.67773 11.1964 1.67773C11.0181 1.67773 11.0097 1.67773 8.33139 1.67773ZM7.49805 3.55273V5.5579C7.49805 6.15257 6.93638 6.67773 6.19638 6.67773H4.34721C4.72971 5.20507 6.02139 3.94473 7.49805 3.55273ZM14.1647 6.67773H14.5297C15.2697 6.67773 15.8314 7.2029 15.8314 7.79757V15.5579C15.8314 16.1526 15.2697 16.6777 14.5297 16.6777H8.79973C8.05973 16.6777 7.49805 16.1526 7.49805 15.5579V15.0111H11.1964C12.8222 15.0111 14.1647 13.7777 14.1647 12.2246V6.67773Z"})})}function hA(e){return p("svg",{...e,viewBox:"0 0 18 19",fill:"currentcolor",children:p("path",{d:"M2.99829 0.682129C1.24429 0.683129 0.008291 1.90913 -0.00170898 3.68213V5.68213C-0.000708986 5.72213 -0.00170898 14.6821 -0.00170898 14.6821C-0.00170898 16.8911 1.78929 18.6821 3.99828 18.6821H13.9983C16.2073 18.6821 17.9983 16.8911 17.9983 14.6821V8.68213C17.9973 8.59713 17.9983 6.84013 17.9983 6.71313C18.0053 4.97213 16.7203 3.68913 14.9983 3.68213C14.7263 3.68113 14.0513 3.68113 14.0613 3.68213C13.1383 3.67913 12.9253 3.49513 12.3423 2.62013C11.4253 1.24513 10.6533 0.682129 8.99828 0.682129H2.99829ZM2.99829 2.68213H8.99828C9.84328 2.68213 10.0713 2.86913 10.6543 3.74413C11.5713 5.11913 12.3433 5.68213 13.9983 5.68213C13.9723 5.68313 14.7223 5.68113 14.9983 5.68213C15.6223 5.68513 16.0013 6.08313 15.9983 6.71313C15.9983 6.77713 15.9973 7.21813 15.9983 7.68213C15.3583 7.68213 15.1983 7.68213 11.9983 7.68213C11.1533 7.68213 10.9253 7.49513 10.3423 6.62013C9.42527 5.24513 8.65328 4.68213 6.99828 4.68213C6.11328 4.68213 3.43429 4.68213 1.99829 4.68213V3.68213C2.00229 3.01813 2.34029 2.68213 2.99829 2.68213Z",fill:"#6C7275"})})}function pA(e){return p("svg",{...e,viewBox:"0 0 20 19",fill:"currentcolor",children:p("path",{d:"M2.99829 0.68213C1.38729 0.68213 0.0122901 1.96913 -0.00170994 3.68213V14.6821C-0.00170994 15.7961 0.45129 16.8001 1.18629 17.5261C1.54429 17.8791 1.96529 18.1711 2.43629 18.3701C2.91929 18.5731 3.45429 18.6821 3.99829 18.6821H5.99829H12.9983C14.0523 18.6821 15.0383 18.2771 15.7793 17.5571C16.1773 17.1711 16.6333 16.0351 17.4363 13.6821C17.5003 13.4921 18.9473 9.0291 18.9673 8.9631C19.1653 8.3201 18.6713 7.6821 17.9983 7.6821C17.8733 7.6821 17.2123 7.6821 16.9983 7.6821V6.68213C16.9983 5.02513 15.6553 3.68213 13.9983 3.68213H11.9983C11.1533 3.68213 10.9253 3.49513 10.3423 2.62013C9.4253 1.24513 8.6533 0.68213 6.99829 0.68213C6.12329 0.68213 3.87329 0.68213 2.99829 0.68213ZM2.99829 2.68213C3.87329 2.68213 6.12329 2.68213 6.99829 2.68213C7.8433 2.68213 8.0713 2.86913 8.6543 3.74413C9.5713 5.11913 10.3433 5.68213 11.9983 5.68213H13.9983C14.5503 5.68213 14.9983 6.13013 14.9983 6.68213V7.6821C11.5293 7.6821 6.24829 7.6821 4.99829 7.6821C4.58429 7.6821 4.20929 7.9511 4.06029 8.3381C4.06029 8.3381 2.90229 11.3631 1.99829 13.7131V3.68213C2.00329 3.10513 2.45829 2.68213 2.99829 2.68213Z"})})}function mA(e){return p("svg",{...e,viewBox:"0 0 24 24",fill:"currentcolor",children:p("path",{d:"M5.99804 2.99023C4.34104 2.99023 2.99805 4.33333 2.99805 5.99023V7.99023V16.9902C2.99805 19.1992 4.78904 20.9902 6.99804 20.9902H16.998C19.207 20.9902 20.998 19.1992 20.998 16.9902V7.99023C20.998 7.43793 20.55 6.99023 19.998 6.99023C19.998 6.99023 17.095 6.99023 14.998 6.99023C14.243 6.99023 14 6.74533 13.404 5.55273C12.501 3.74533 11.743 2.99023 9.99804 2.99023H5.99804ZM5.99804 4.99023H9.99804C10.753 4.99023 10.996 5.23513 11.592 6.42773C11.722 6.68883 11.776 6.77213 11.904 6.99023C8.45804 6.99023 5.98304 6.99023 4.99804 6.99023V5.99023C4.99804 5.43793 5.44604 4.99023 5.99804 4.99023ZM11.998 10.9902C12.55 10.9902 12.998 11.4382 12.998 11.9902V12.9902H13.998C14.55 12.9902 14.998 13.4382 14.998 13.9902C14.998 14.5422 14.55 14.9902 13.998 14.9902H12.998V15.9902C12.998 16.5422 12.55 16.9902 11.998 16.9902C11.446 16.9902 10.998 16.5422 10.998 15.9902V14.9902H9.99804C9.44604 14.9902 8.99804 14.5422 8.99804 13.9902C8.99804 13.4382 9.44604 12.9902 9.99804 12.9902H10.998V11.9902C10.998 11.4382 11.446 10.9902 11.998 10.9902Z"})})}function gA(e){return p("svg",{...e,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{d:"M12.5 4.99902H11.5V9.49902H5V10.499C5 10.6316 5.05268 10.7588 5.14645 10.8526C5.24021 10.9463 5.36739 10.999 5.5 10.999H11L13 12.999V5.49902C13 5.36642 12.9473 5.23924 12.8536 5.14547C12.7598 5.0517 12.6326 4.99902 12.5 4.99902ZM10.5 7.99902V3.49902C10.5 3.36642 10.4473 3.23924 10.3536 3.14547C10.2598 3.0517 10.1326 2.99902 10 2.99902H3.5C3.36739 2.99902 3.24021 3.0517 3.14645 3.14547C3.05268 3.23924 3 3.36642 3 3.49902V10.499L5 8.49902H10C10.1326 8.49902 10.2598 8.44634 10.3536 8.35258C10.4473 8.25881 10.5 8.13163 10.5 7.99902Z",fill:"currentcolor"})})}function bA(e){return p("svg",{...e,viewBox:"0 0 16 16",fill:"currentcolor",children:p("path",{d:"M5.97803 1.63718C5.03269 1.93652 4.21736 2.42652 3.4987 3.09519C3.2767 3.30252 3.2087 3.64052 3.3527 3.90785C3.8867 4.89519 3.32802 5.95119 2.12402 6.01186C1.82869 6.02719 1.56803 6.24518 1.4987 6.53252C1.37936 7.02918 1.33203 7.44519 1.33203 7.99118C1.33203 8.44918 1.38136 8.96719 1.47803 9.42852C1.53803 9.71652 1.7887 9.92385 2.08203 9.94985C3.29403 10.0545 3.89404 10.9785 3.3527 12.1578C3.2327 12.4198 3.28736 12.7332 3.4987 12.9285C4.2067 13.5839 5.02003 14.0452 5.97803 14.3452C6.25136 14.4312 6.56003 14.3279 6.72803 14.0952C7.46936 13.0699 8.5447 13.0659 9.2487 14.0952C9.4147 14.3379 9.7187 14.4545 9.9987 14.3658C10.9234 14.0752 11.7847 13.5799 12.4987 12.9285C12.7187 12.7285 12.7767 12.4038 12.6447 12.1372C12.09 11.0178 12.728 9.98985 13.8734 9.97051C14.1774 9.96518 14.448 9.76518 14.5194 9.47051C14.6347 8.99251 14.6654 8.57585 14.6654 7.99118C14.6654 7.48852 14.606 6.99319 14.4987 6.51186C14.4307 6.20786 14.1647 5.99185 13.8527 5.99119C12.7254 5.98919 12.0934 4.88119 12.6447 3.90785C12.798 3.63652 12.75 3.30452 12.5194 3.09519C11.7927 2.43519 10.9067 1.91985 9.97803 1.63718C9.69269 1.55052 9.38936 1.65719 9.22803 1.90785C8.58403 2.90785 7.38136 2.92586 6.7487 1.92853C6.5867 1.67319 6.26603 1.54518 5.97803 1.63718ZM7.9987 5.32452C9.47136 5.32452 10.6654 6.51852 10.6654 7.99118C10.6654 9.46385 9.47136 10.6579 7.9987 10.6579C6.52603 10.6579 5.33203 9.46385 5.33203 7.99118C5.33203 6.51852 6.52603 5.32452 7.9987 5.32452Z"})})}function yA(e){return p("svg",{...e,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 2.99902C5.23757 2.99902 3 5.29288 3 8.12481C3 10.3903 4.43339 12.3098 6.41928 12.9894C6.66789 13.0366 6.75997 12.8793 6.75997 12.7408C6.75997 12.6181 6.75691 12.2972 6.75384 11.8692C5.36341 12.1776 5.06875 11.1833 5.06875 11.1833C4.84162 10.5917 4.5132 10.4312 4.5132 10.4312C4.05893 10.1134 4.54696 10.1197 4.54696 10.1197C5.04727 10.1575 5.3143 10.6484 5.3143 10.6484C5.75936 11.4319 6.48373 11.2053 6.76918 11.0732C6.81522 10.7428 6.94414 10.5162 7.08533 10.3872C5.97729 10.2613 4.81093 9.82081 4.81093 7.85735C4.81093 7.29725 5.0043 6.841 5.32658 6.48229C5.2744 6.35013 5.10252 5.83095 5.37262 5.12611C5.37262 5.12611 5.79312 4.98766 6.7477 5.65159C7.14672 5.53831 7.57336 5.48168 8 5.47853C8.42357 5.48168 8.85328 5.53831 9.2523 5.65159C10.2069 4.98766 10.6274 5.12611 10.6274 5.12611C10.9006 5.83095 10.7287 6.35328 10.6765 6.48229C10.9957 6.841 11.1891 7.29725 11.1891 7.85735C11.1891 9.82711 10.0196 10.2582 8.90546 10.3872C9.08349 10.5445 9.24616 10.8592 9.24616 11.3375C9.24616 12.0234 9.24002 12.5741 9.24002 12.744C9.24002 12.8824 9.32904 13.0398 9.58379 12.9894C11.5697 12.3098 13 10.3903 13 8.12795C13 5.29288 10.7624 2.99902 8 2.99902Z",fill:"currentcolor"})})}function vA(e){return p("svg",{...e,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{d:"M8.00456 2.5C5.4791 2.5 3.32848 4.12626 2.61283 6.36754H3.41185C3.49486 6.14602 3.59411 5.93256 3.70897 5.72798H5.24658C5.17952 5.93719 5.12439 6.15117 5.07872 6.36754H5.8576C5.91202 6.14949 5.97688 5.93537 6.054 5.72798H7.5379V6.36754H8.28992V5.72798H9.893C9.97926 5.93555 10.0517 6.14931 10.1129 6.36754H10.8918C10.8395 6.15094 10.7785 5.93737 10.7038 5.72798H12.3001C12.415 5.9326 12.5142 6.14597 12.5973 6.36754H13.3946C12.679 4.12626 10.53 2.5 8.00456 2.5ZM9.1393 3.38463C10.1919 3.62667 11.1112 4.19428 11.7764 4.97596H10.3815C10.0699 4.37324 9.65717 3.82927 9.1393 3.38463ZM6.64991 3.44002C6.18372 3.87275 5.81602 4.3967 5.54202 4.97596H4.2327C4.8512 4.24914 5.68921 3.70748 6.64991 3.44002ZM8.28992 3.68175C8.78573 4.02114 9.1858 4.46871 9.50356 4.97596H8.28992V3.68175ZM7.5379 3.68678V4.97596H6.40483C6.69593 4.46755 7.06755 4.0211 7.5379 3.68678ZM2.83776 7.09438C2.76293 7.09438 2.70042 7.11127 2.64976 7.14642C2.59909 7.18157 2.57422 7.22536 2.57422 7.27567C2.57422 7.31332 2.58506 7.36549 2.60947 7.43346L3.00898 8.58164C3.02115 8.61597 3.03516 8.65467 3.05095 8.69578C3.06673 8.73689 3.08879 8.77346 3.11473 8.8049C3.14067 8.83633 3.17598 8.86047 3.22049 8.87875C3.265 8.89703 3.32089 8.90561 3.38835 8.90561C3.47201 8.90561 3.53772 8.89044 3.58811 8.86029C3.63849 8.83014 3.67445 8.79771 3.69386 8.76125C3.71326 8.72479 3.73739 8.66864 3.76772 8.59171L4.12526 7.58454L4.48113 8.59674C4.51076 8.67174 4.53436 8.72709 4.55331 8.76293C4.57226 8.79877 4.607 8.83224 4.65739 8.86197C4.70777 8.8917 4.77481 8.90561 4.85882 8.90561C4.94714 8.90561 5.01636 8.89111 5.06529 8.86029C5.11421 8.82947 5.14846 8.79478 5.16769 8.75621C5.18691 8.71765 5.20946 8.65886 5.23651 8.58164L5.63602 7.43346C5.66078 7.36138 5.67295 7.30921 5.67295 7.27567C5.67295 7.22447 5.64702 7.18112 5.59574 7.14642C5.54444 7.11172 5.48292 7.09438 5.40941 7.09438C5.33569 7.09438 5.27881 7.10744 5.23987 7.13467C5.20092 7.1619 5.17417 7.1915 5.15929 7.22363C5.14441 7.25577 5.12906 7.29823 5.11397 7.34953L4.83196 8.32649L4.51638 7.41164C4.48689 7.33481 4.46294 7.27962 4.4442 7.24378C4.42546 7.20794 4.38925 7.17317 4.33845 7.14138C4.28764 7.1096 4.21678 7.09438 4.12526 7.09438C4.03527 7.09438 3.96497 7.10908 3.91208 7.1397C3.85919 7.17033 3.82141 7.20623 3.79961 7.24546C3.77781 7.28469 3.754 7.33927 3.72743 7.41164L3.41353 8.32649L3.12984 7.34282C3.10766 7.26822 3.07887 7.20887 3.04423 7.1632C3.0096 7.11754 2.94111 7.09438 2.83776 7.09438ZM6.70362 7.09438C6.62879 7.09438 6.56628 7.11127 6.51562 7.14642C6.46496 7.18157 6.44008 7.22536 6.44008 7.27567C6.44008 7.31332 6.4526 7.36549 6.47701 7.43346L6.87652 8.58164C6.88869 8.61597 6.9027 8.65467 6.91849 8.69578C6.93427 8.73689 6.95466 8.77346 6.9806 8.8049C7.00654 8.83633 7.04184 8.86047 7.08635 8.87875C7.13086 8.89703 7.18675 8.90561 7.25421 8.90561C7.33787 8.90561 7.40526 8.89044 7.45565 8.86029C7.50603 8.83014 7.54032 8.79771 7.55972 8.76125C7.57912 8.72479 7.60326 8.66864 7.63358 8.59171L7.99113 7.58454L8.34699 8.59674C8.37662 8.67174 8.40022 8.72709 8.41918 8.76293C8.43812 8.79877 8.47286 8.83224 8.52325 8.86197C8.57363 8.8917 8.64067 8.90561 8.72468 8.90561C8.813 8.90561 8.88223 8.89111 8.93115 8.86029C8.98008 8.82947 9.01432 8.79478 9.03355 8.75621C9.05278 8.71765 9.07532 8.65886 9.10237 8.58164L9.50188 7.43346C9.52664 7.36138 9.53881 7.30921 9.53881 7.27567C9.53881 7.22447 9.51288 7.18112 9.4616 7.14642C9.41031 7.11172 9.34878 7.09438 9.27527 7.09438C9.20155 7.09438 9.14467 7.10744 9.10573 7.13467C9.06678 7.1619 9.04004 7.1915 9.02516 7.22363C9.01027 7.25577 8.99492 7.29823 8.97983 7.34953L8.69783 8.32649L8.38225 7.41164C8.35276 7.33481 8.32881 7.27962 8.31006 7.24378C8.29132 7.20794 8.25679 7.17317 8.20599 7.14138C8.15519 7.1096 8.08432 7.09438 7.99281 7.09438C7.90281 7.09438 7.83083 7.10908 7.77794 7.1397C7.72505 7.17033 7.68728 7.20623 7.66547 7.24546C7.64367 7.28469 7.61986 7.33927 7.59329 7.41164L7.27939 8.32649L6.99571 7.34282C6.97352 7.26822 6.94641 7.20887 6.91177 7.1632C6.87714 7.11754 6.80697 7.09438 6.70362 7.09438ZM10.5695 7.09438C10.4947 7.09438 10.4321 7.11127 10.3815 7.14642C10.3308 7.18157 10.3059 7.22536 10.3059 7.27567C10.3059 7.31332 10.3185 7.36549 10.3429 7.43346L10.7424 8.58164C10.7546 8.61597 10.7686 8.65467 10.7844 8.69578C10.8001 8.73689 10.8205 8.77346 10.8465 8.8049C10.8724 8.83633 10.9077 8.86047 10.9522 8.87875C10.9967 8.89703 11.0526 8.90561 11.1201 8.90561C11.2037 8.90561 11.2711 8.89044 11.3215 8.86029C11.3719 8.83014 11.4062 8.79771 11.4256 8.76125C11.445 8.72479 11.4708 8.66864 11.5011 8.59171L11.857 7.58454L12.2129 8.59674C12.2425 8.67174 12.2661 8.72709 12.285 8.76293C12.304 8.79877 12.3387 8.83224 12.3891 8.86197C12.4395 8.8917 12.5065 8.90561 12.5905 8.90561C12.6789 8.90561 12.7481 8.89111 12.797 8.86029C12.8459 8.82947 12.8802 8.79478 12.8994 8.75621C12.9186 8.71765 12.9412 8.65886 12.9682 8.58164L13.3677 7.43346C13.3925 7.36138 13.4047 7.30921 13.4047 7.27567C13.4047 7.22447 13.3804 7.18112 13.3291 7.14642C13.2778 7.11172 13.2146 7.09438 13.1411 7.09438C13.0674 7.09438 13.0105 7.10744 12.9716 7.13467C12.9326 7.1619 12.9059 7.1915 12.891 7.22363C12.8761 7.25577 12.8608 7.29823 12.8457 7.34953L12.5654 8.32649L12.2481 7.41164C12.2186 7.33481 12.1947 7.27962 12.1759 7.24378C12.1572 7.20794 12.1227 7.17317 12.0719 7.14138C12.021 7.1096 11.9502 7.09438 11.8587 7.09438C11.7687 7.09438 11.6967 7.10908 11.6438 7.1397C11.5909 7.17033 11.5531 7.20623 11.5313 7.24546C11.5095 7.28469 11.4857 7.33927 11.4592 7.41164L11.1453 8.32649L10.8632 7.34282C10.8411 7.26822 10.8123 7.20887 10.7776 7.1632C10.743 7.11754 10.6728 7.09438 10.5695 7.09438ZM2.58429 9.53342C3.26749 11.8253 5.442 13.5 8.00456 13.5C10.5671 13.5 12.7417 11.8254 13.4248 9.53342H12.6308C12.5551 9.74957 12.4646 9.95855 12.3589 10.1595H10.7474C10.816 9.95462 10.8727 9.74514 10.9203 9.53342H10.1532C10.0996 9.74751 10.0355 9.95668 9.95679 10.1595H8.28992V9.53342H7.5379V10.1595H6.01539C5.94636 9.95743 5.88696 9.74804 5.83746 9.53342H5.06529C5.10855 9.74538 5.16135 9.95463 5.2214 10.1595H3.65021C3.54448 9.95855 3.45231 9.74957 3.3766 9.53342H2.58429ZM4.14373 10.9116H5.49166C5.76677 11.5479 6.13152 12.1163 6.60123 12.5482C5.61231 12.2622 4.76 11.6817 4.14373 10.9116ZM6.32929 10.9116H7.5379V12.3166C7.04951 12.007 6.64102 11.5134 6.32929 10.9116ZM8.28992 10.9116H9.58246C9.2543 11.4601 8.82755 11.9347 8.28992 12.2813V10.9116ZM10.4469 10.9116H11.8654C11.1866 11.7598 10.2201 12.3774 9.10237 12.6254C9.67591 12.1617 10.1215 11.5712 10.4469 10.9116Z",fill:"currentcolor"})})}function wA(e){return p("svg",{...e,viewBox:"0 0 16 16",fill:"currentcolor",children:p("path",{d:"M7.9987 1.34375C4.31683 1.34375 1.33203 4.32842 1.33203 8.01042C1.33203 9.08775 1.5899 10.1018 2.04343 11.0024C3.14036 13.1804 5.32943 14.6764 7.9987 14.6771C11.6806 14.6777 14.6654 11.6924 14.6654 8.01042C14.6654 4.32842 11.6806 1.34375 7.9987 1.34375ZM7.9987 2.67708C8.61997 2.67708 9.33403 3.73641 9.68937 5.29441C9.14997 5.32908 8.5851 5.34375 7.9987 5.34375C7.40983 5.34375 6.8449 5.32175 6.30477 5.28575C6.65983 3.78575 7.37743 2.67708 7.9987 2.67708ZM5.6419 3.22575C5.33797 3.78508 5.11463 4.49575 4.96296 5.16575C4.46976 5.09908 4.0233 5.00242 3.64763 4.90708C4.16463 4.19975 4.85216 3.60308 5.6419 3.22575ZM10.365 3.22174C11.0894 3.59641 11.82 4.19109 12.3484 4.91909C11.9732 5.01309 11.5143 5.09643 11.0237 5.16109C10.872 4.49109 10.6166 3.74641 10.365 3.22174ZM3.01483 6.11041C3.52043 6.26441 4.04203 6.37908 4.74337 6.47308C4.68583 6.98042 4.66536 7.46708 4.66536 8.01042C4.66536 8.55375 4.6907 9.04908 4.74823 9.55642C4.03343 9.65242 3.5151 9.74575 3.00183 9.90175C2.7663 9.29975 2.66536 8.69575 2.66536 8.01042C2.66536 7.32508 2.7793 6.71241 3.01483 6.11041ZM12.9766 6.11375C13.2122 6.71575 13.332 7.32508 13.332 8.01042C13.332 8.69575 13.2171 9.30175 12.9816 9.90375C12.4697 9.74775 11.9517 9.64308 11.2396 9.54775C11.2957 9.04575 11.332 8.54642 11.332 8.01042C11.332 7.46708 11.2956 6.97107 11.238 6.46307C11.9378 6.36641 12.4709 6.26708 12.9766 6.11375ZM6.08396 6.60175C6.7019 6.64641 7.3245 6.67708 7.9987 6.67708C8.6691 6.67708 9.30243 6.64642 9.9175 6.59975C9.97377 7.06842 9.9987 7.49575 9.9987 8.01042C9.9987 8.52508 9.98077 8.94108 9.92457 9.40908C9.30743 9.36374 8.67077 9.34375 7.9987 9.34375C7.3249 9.34375 6.69417 9.36776 6.07457 9.41376C6.01677 8.93976 5.9987 8.53308 5.9987 8.01042C5.9987 7.49575 6.0277 7.06975 6.08396 6.60175ZM7.9987 10.6771C8.58423 10.6771 9.1457 10.6991 9.6849 10.7337C9.30983 12.2944 8.62263 13.3437 7.9987 13.3437C7.37743 13.3437 6.67576 12.2438 6.2909 10.7324C6.83176 10.6964 7.4089 10.6771 7.9987 10.6771ZM4.96603 10.8624C5.11763 11.5324 5.3815 12.2678 5.6331 12.7931C4.89496 12.4424 4.18623 11.8384 3.6459 11.1144C4.0279 11.0178 4.46037 10.9298 4.96603 10.8624ZM11.0257 10.8611C11.5274 10.9264 11.9618 11.0211 12.3431 11.1164C11.86 11.7657 11.1508 12.4084 10.3716 12.7844C10.6558 12.2044 10.874 11.5311 11.0257 10.8611Z"})})}function CA(e){return p("svg",{...e,viewBox:"0 0 24 25",fill:"currentcolor",children:p("path",{d:"M7.24956 4.68945C5.17156 4.68945 3.27058 6.40045 2.93758 8.53345L1.99956 15.5645C1.98756 15.6545 2.05058 15.7285 2.06258 15.8145C2.04858 15.9415 1.99956 16.0585 1.99956 16.1895V17.1895C1.99956 19.1225 3.56656 20.6895 5.49956 20.6895H18.4996C20.4326 20.6895 21.9996 19.1225 21.9996 17.1895V16.1895C21.9996 16.0585 21.9516 15.9415 21.9376 15.8145C21.9496 15.7285 22.0126 15.6545 21.9996 15.5645L20.9996 8.56445C20.6646 6.41545 18.7966 4.68945 16.7186 4.68945H7.24956ZM5.49956 14.6895H18.4996C19.3286 14.6895 19.9996 15.3615 19.9996 16.1895V17.1895C19.9996 18.0175 19.3286 18.6895 18.4996 18.6895H5.49956C4.67156 18.6895 3.99956 18.0175 3.99956 17.1895V16.1895C3.99956 15.3615 4.67156 14.6895 5.49956 14.6895ZM5.99956 15.6895C5.44756 15.6895 4.99956 16.1375 4.99956 16.6895C4.99956 17.2415 5.44756 17.6895 5.99956 17.6895C6.55256 17.6895 6.99956 17.2415 6.99956 16.6895C6.99956 16.1375 6.55256 15.6895 5.99956 15.6895ZM8.99956 15.6895C8.44756 15.6895 7.99956 16.1375 7.99956 16.6895C7.99956 17.2415 8.44756 17.6895 8.99956 17.6895C9.55256 17.6895 9.99956 17.2415 9.99956 16.6895C9.99956 16.1375 9.55256 15.6895 8.99956 15.6895Z"})})}function xA(e){return p("svg",{...e,viewBox:"0 0 16 16",fill:"currentcolor",children:p("path",{d:"M8.02812 1.33301C4.33612 1.33301 1.34277 4.317 1.34277 7.99833C1.34277 11.6797 4.33612 14.6643 8.02812 14.6643C9.83012 14.6643 11.5248 13.9537 12.7708 12.7063C13.0314 12.445 13.0328 12.0283 12.7708 11.769C12.5094 11.509 12.0914 11.5077 11.8308 11.769C10.8334 12.7677 9.47078 13.331 8.02812 13.331C5.07478 13.331 2.68011 10.9437 2.68011 7.99833C2.68011 5.05366 5.07478 2.66634 8.02812 2.66634C8.39745 2.66634 8.69678 2.36767 8.69678 1.99967C8.69678 1.63167 8.39745 1.33301 8.02812 1.33301ZM10.4728 1.93701C10.3108 1.99035 10.1781 2.10501 10.0968 2.27034C9.93412 2.60101 10.0581 3.00367 10.3894 3.16634C10.5674 3.25301 10.7241 3.35102 10.8908 3.45768C11.2014 3.65568 11.6321 3.55967 11.8308 3.24967C12.0294 2.93901 11.9328 2.53101 11.6221 2.33301C11.4128 2.19967 11.1968 2.08767 10.9741 1.979C10.8088 1.89767 10.6354 1.88434 10.4728 1.93701ZM12.8334 3.58236C12.6641 3.56236 12.4774 3.61502 12.3321 3.72835C12.0421 3.95569 11.9994 4.37636 12.2281 4.66569C12.3501 4.82102 12.4781 4.97702 12.5828 5.14502C12.7774 5.45769 13.1888 5.54703 13.5021 5.35303C13.8161 5.15903 13.9054 4.77035 13.7114 4.45768C13.5808 4.24768 13.4254 4.02702 13.2721 3.83236C13.1581 3.68769 13.0034 3.60302 12.8334 3.58236ZM8.02812 3.99902C7.65945 3.99902 7.36011 4.29769 7.36011 4.66569V7.99833C7.36011 8.17566 7.44343 8.35233 7.56877 8.47766L9.5741 10.477C9.83543 10.7377 10.2534 10.7377 10.5148 10.477C10.7754 10.217 10.7754 9.77967 10.5148 9.519L8.69678 7.70699V4.66569C8.69678 4.29769 8.39745 3.99902 8.02812 3.99902ZM13.7528 6.01969C13.3921 6.09903 13.1714 6.45166 13.2514 6.81099C13.2941 7.00366 13.3354 7.19766 13.3561 7.39433C13.3948 7.76033 13.7201 8.01633 14.0874 7.97766C14.4541 7.93899 14.7114 7.61502 14.6721 7.24902C14.6461 7.00236 14.6214 6.76036 14.5674 6.51969C14.4881 6.16036 14.1134 5.94036 13.7528 6.01969ZM14.0454 8.72766C13.6868 8.64099 13.3174 8.86966 13.2308 9.22766C13.1841 9.42033 13.1101 9.60501 13.0428 9.78967C12.9161 10.1357 13.1134 10.497 13.4608 10.623C13.8074 10.749 14.1701 10.5943 14.2961 10.2483C14.3808 10.0163 14.4674 9.78101 14.5261 9.53967C14.6128 9.18234 14.4041 8.81433 14.0454 8.72766Z"})})}function SA(e){return p("svg",{...e,viewBox:"0 0 16 16",fill:"currentcolor",children:p("path",{d:"M4.66557 1.99414C3.1929 1.99414 1.9989 3.18815 1.9989 4.66082V11.3275C1.9989 12.8002 3.1929 13.9942 4.66557 13.9942H11.3322C12.8049 13.9942 13.9989 12.8002 13.9989 11.3275V4.66082C13.9989 3.18815 12.8049 1.99414 11.3322 1.99414H4.66557ZM7.9989 4.66082C8.3669 4.66082 8.66556 4.95949 8.66556 5.32749C8.66556 5.6955 8.3669 5.99416 7.9989 5.99416C7.6309 5.99416 7.33223 5.6955 7.33223 5.32749C7.33223 4.95949 7.6309 4.66082 7.9989 4.66082ZM7.9989 6.66083C8.3669 6.66083 8.66556 6.9595 8.66556 7.32751V10.6609C8.66556 11.0289 8.3669 11.3275 7.9989 11.3275C7.6309 11.3275 7.33223 11.0289 7.33223 10.6609V7.32751C7.33223 6.9595 7.6309 6.66083 7.9989 6.66083Z"})})}function EA(e){return p("svg",{...e,viewBox:"0 0 24 24",fill:"currentcolor",children:p("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7562 4.74381C17.0977 3.0854 14.4088 3.0854 12.7503 4.74381L9.74749 7.74664C8.08906 9.40505 8.08941 12.0937 9.74786 13.7521C10.1625 14.1667 10.8347 14.1667 11.2493 13.7521C11.6639 13.3375 11.6639 12.6653 11.2493 12.2507L11.2322 12.2339C10.4197 11.4035 10.4253 10.0716 11.2489 9.24805L14.2518 6.24522C15.0811 5.41601 16.4255 5.41603 17.2547 6.24522C18.0839 7.07443 18.0839 8.41884 17.2547 9.24805L16.1917 10.3111C16.5282 11.17 16.6325 12.099 16.5043 13.0012L18.7562 10.7495C20.4146 9.09106 20.4146 6.40223 18.7562 4.74381ZM5.24383 18.2562C6.90228 19.9146 9.59115 19.9146 11.2496 18.2562L14.2525 15.2534C15.911 13.595 15.911 10.9061 14.2525 9.24768C13.8378 8.83308 13.1657 8.83308 12.7511 9.24768C12.3364 9.66229 12.3364 10.3345 12.7511 10.7491C13.5803 11.5783 13.5803 12.9227 12.7511 13.7519L9.74815 16.7548C8.91894 17.5839 7.5745 17.5839 6.74528 16.7548C5.91605 15.9255 5.91605 14.5811 6.74528 13.7519L7.80833 12.6888C7.47174 11.83 7.36751 10.901 7.49563 9.99875L5.24383 12.2505C3.58539 13.9089 3.58539 16.5978 5.24383 18.2562Z"})})}function AA(e){return p("svg",{...e,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{d:"M4.95963 2.99902C3.88199 2.99902 3 3.88099 3 4.95865V11.0397C3 12.1174 3.88197 12.999 4.95963 12.999H11.0407C12.1183 12.999 13 12.1174 13 11.0397V4.95865C13 3.88101 12.1183 2.99902 11.0407 2.99902H4.95963ZM5.4525 4.64922C5.96921 4.64922 6.28748 4.98843 6.2973 5.43432C6.2973 5.87036 5.96919 6.2191 5.44251 6.2191H5.43281C4.92594 6.2191 4.59833 5.87038 4.59833 5.43432C4.59833 4.98844 4.93587 4.64922 5.4525 4.64922ZM9.90525 6.73324C10.899 6.73324 11.6439 7.38274 11.6439 8.77849V11.3841H10.1337V8.95319C10.1337 8.34232 9.91515 7.92556 9.36862 7.92556C8.9514 7.92556 8.70271 8.20646 8.59352 8.47782C8.55364 8.5749 8.54383 8.71049 8.54383 8.8463V11.3841H7.03364C7.03364 11.3841 7.05346 7.26619 7.03364 6.8398H8.54414V7.48332C8.74483 7.17369 9.10381 6.73324 9.90525 6.73324ZM4.68741 6.84013H6.1976V11.3841H4.68741V6.84013Z",fill:"currentcolor"})})}function OA(e){return p("svg",{...e,viewBox:"0 0 24 24",fill:"currentcolor",children:p("path",{d:"M11.998 1.95312C9.23705 1.95312 6.99805 4.19213 6.99805 6.95312V8.95312C5.34105 8.95312 3.99805 10.2961 3.99805 11.9531V18.9531C3.99805 20.6101 5.34105 21.9531 6.99805 21.9531H16.998C18.655 21.9531 19.998 20.6101 19.998 18.9531V11.9531C19.998 10.2961 18.655 8.95312 16.998 8.95312V6.95312C16.998 4.19213 14.759 1.95312 11.998 1.95312ZM11.998 3.95312C13.655 3.95312 14.998 5.29612 14.998 6.95312V8.95312H8.99805V6.95312C8.99805 5.29612 10.341 3.95312 11.998 3.95312ZM11.998 11.9531C13.103 11.9531 13.998 12.8481 13.998 13.9531C13.998 14.6631 13.555 15.1611 12.998 15.5151V17.9531C12.998 18.5051 12.55 18.9531 11.998 18.9531C11.446 18.9531 10.998 18.5051 10.998 17.9531V15.5151C10.441 15.1601 9.99805 14.6631 9.99805 13.9531C9.99805 12.8481 10.893 11.9531 11.998 11.9531Z"})})}function kA(e){return q("svg",{...e,viewBox:"0 0 24 24",fill:"none",children:[p("path",{d:"M1.88134 8.65644V18.3251H0V7.09336C0 6.19326 1.03474 5.68003 1.75748 6.22134L10.6938 12.912C10.9698 13.1179 11.1313 13.4409 11.1313 13.784V18.3235H9.24992V14.174L1.88134 8.65644Z",fill:"currentcolor"}),p("path",{d:"M22.0605 18.3251V8.65599L14.4616 14.1738V18.3251H12.5215V13.7854C12.5215 13.4422 12.688 13.1193 12.9726 12.9133L22.1882 6.22233C22.9335 5.67944 24.0006 6.19269 24.0006 7.09283V18.3251H22.0605Z",fill:"currentcolor"})]})}function _A(e){return q("svg",{...e,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p("rect",{x:"1.5",y:"1.5",width:"13",height:"13",rx:"3.5",stroke:"currentcolor"}),p("circle",{cx:"8",cy:"8",r:"3",fill:"currentcolor"})]})}function IA(e){return q("svg",{...e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p("path",{d:"M7.07143 1.96429C7.07143 2.2207 6.86356 2.42857 6.60714 2.42857H5.21429C3.67578 2.42857 2.42857 3.67578 2.42857 5.21429V10.7857C2.42857 12.3242 3.67578 13.5714 5.21429 13.5714H10.7857C12.3242 13.5714 13.5714 12.3242 13.5714 10.7857V9.39286C13.5714 9.13644 13.7793 8.92857 14.0357 8.92857C14.2921 8.92857 14.5 9.13644 14.5 9.39286V10.7857C14.5 12.8371 12.8371 14.5 10.7857 14.5H5.21429C3.16294 14.5 1.5 12.8371 1.5 10.7857V5.21429C1.5 3.16294 3.16294 1.5 5.21429 1.5H6.60714C6.86356 1.5 7.07143 1.70787 7.07143 1.96429Z",fill:"currentcolor"}),p("path",{d:"M14 6.5V2.5C14 2.22386 13.7761 2 13.5 2H9.5",stroke:"currentcolor",strokeLinecap:"round"}),p("path",{d:"M7 10L7.28346 9.29136C8.39378 6.51556 10.4269 4.20728 13.0403 2.75539L13.5 2.5",stroke:"currentcolor",strokeLinecap:"round"})]})}function PA(e){return p("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",children:p("path",{fill:"#cb3837",d:"M2 38.5h124v43.71H64v7.29H36.44v-7.29H2zm6.89 36.43h13.78V53.07h6.89v21.86h6.89V45.79H8.89zm34.44-29.14v36.42h13.78v-7.28h13.78V45.79zm13.78 7.29H64v14.56h-6.89zm20.67-7.29v29.14h13.78V53.07h6.89v21.86h6.89V53.07h6.89v21.86h6.89V45.79z"})})}function MA(e){return p("svg",{...e,width:"12",height:"12",viewBox:"0 0 12 12",fill:"currentcolor",children:p("path",{d:"M1.22323 -0.00109863C0.549226 -0.00109863 -0.00610352 0.533576 -0.00610352 1.20691V2.79089C-0.00610352 3.46423 0.549226 3.9989 1.22323 3.9989H4.0979C4.7719 3.9989 5.32723 3.46423 5.32723 2.79089V1.20691C5.32723 0.533576 4.7719 -0.00109863 4.0979 -0.00109863H1.22323ZM7.9939 -0.00109863C7.25723 -0.00109863 6.66056 0.595568 6.66056 1.33223V5.33223C6.66056 6.0689 7.25723 6.66557 7.9939 6.66557H10.6606C11.3972 6.66557 11.9939 6.0689 11.9939 5.33223V1.33223C11.9939 0.595568 11.3972 -0.00109863 10.6606 -0.00109863H7.9939ZM1.32723 5.33223C0.590563 5.33223 -0.00610352 5.9289 -0.00610352 6.66557V10.6656C-0.00610352 11.4022 0.590563 11.9989 1.32723 11.9989H3.9939C4.73056 11.9989 5.32723 11.4022 5.32723 10.6656V6.66557C5.32723 5.9289 4.73056 5.33223 3.9939 5.33223H1.32723ZM7.88989 7.9989C7.21589 7.9989 6.66056 8.53358 6.66056 9.20691V10.7909C6.66056 11.4642 7.21589 11.9989 7.88989 11.9989H10.7646C11.4386 11.9989 11.9939 11.4642 11.9939 10.7909V9.20691C11.9939 8.53358 11.4386 7.9989 10.7646 7.9989H7.88989Z"})})}function RA(e){return p("svg",{...e,viewBox:"0 0 24 24",fill:"currentcolor",children:p("path",{d:"M16.9951 1.95312C16.7301 1.95312 16.4641 2.04713 16.2761 2.23413C15.7201 2.79013 13.7191 4.79115 13.2751 5.23615L4.26978 14.2412L3.26928 15.2412C3.12958 15.3812 3.05788 15.5792 3.01918 15.7732L2.01858 20.7762C1.87858 21.4762 2.47538 22.0721 3.17548 21.9331C3.80078 21.8071 7.55288 21.0572 8.17818 20.9322C8.37188 20.8932 8.57008 20.8212 8.70968 20.6822L9.71027 19.6812L18.7151 10.6762C19.1601 10.2322 21.1611 8.23012 21.7171 7.67512C21.9041 7.48712 21.9981 7.22113 21.9981 6.95613C21.9981 5.31912 21.5811 4.14912 20.7161 3.26612C19.8431 2.37511 18.6771 1.95312 16.9951 1.95312ZM17.3891 3.97211C18.2921 4.02511 18.8771 4.23216 19.2781 4.64216C19.6881 5.06016 19.9471 5.64015 20.0031 6.52516C19.4551 7.07216 18.6531 7.86212 17.9961 8.51912C17.2031 7.72612 16.2251 6.74815 15.4321 5.95515C16.0901 5.29815 16.8421 4.51911 17.3891 3.97211ZM4.98898 16.3982L7.55288 18.9621L7.45908 19.0562C6.79908 19.1882 5.46628 19.4672 4.23858 19.7132L4.89518 16.4922L4.98898 16.3982Z"})})}function TA(e){return p("svg",{...e,...e,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{d:"M7.74939 1.46484C6.50674 1.46484 5.49939 2.47234 5.49939 3.71484C5.49939 4.95734 6.50674 5.96484 7.74939 5.96484C8.99204 5.96484 9.99939 4.95734 9.99939 3.71484C9.99939 2.47234 8.99204 1.46484 7.74939 1.46484ZM3.99939 1.96484C2.89484 1.96484 1.99939 2.86034 1.99939 3.96484C1.99939 5.06934 2.89484 5.96484 3.99939 5.96484C4.41409 5.96484 4.79264 5.85086 5.12579 5.61786C4.27139 4.34786 4.39249 3.13184 4.85814 2.15234C4.59219 2.02634 4.30009 1.96484 3.99939 1.96484ZM2.53064 6.63684C1.61359 7.01534 0.99939 7.94284 0.99939 8.96484V9.96484C0.99939 10.2408 1.22324 10.4648 1.49939 10.4648L3.57579 10.4659C3.45879 10.0859 3.49319 9.46984 3.50089 8.97134C3.51714 7.91284 3.95489 7.15783 4.12634 6.95883C3.81124 6.95633 3.43309 6.87984 3.15564 6.76184C3.08864 6.73334 3.04974 6.71084 2.92129 6.65234C2.79534 6.59484 2.65854 6.58384 2.53064 6.63684ZM6.03064 6.63684C5.11359 7.01534 4.49939 7.94284 4.49939 8.96484V9.96484C4.49939 10.2408 4.72324 10.4648 4.99939 10.4648H10.4994C10.7755 10.4648 10.9994 10.2408 10.9994 9.96484V8.96484C10.9994 7.96684 10.3818 7.06185 9.46814 6.66785C9.33954 6.61235 9.18969 6.61085 9.06189 6.66785C8.61949 6.86635 8.18849 6.96484 7.74939 6.96484C7.31179 6.96484 6.87929 6.86084 6.42129 6.65234C6.29534 6.59484 6.15854 6.58384 6.03064 6.63684Z",fill:"#343839"})})}function NA(e){return p("svg",{...e,viewBox:"0 0 24 24",fill:"currentcolor",children:p("path",{d:"M15.498 2.92969C13.0127 2.92969 10.998 4.94469 10.998 7.42969C10.998 9.91469 13.0127 11.9297 15.498 11.9297C17.9833 11.9297 19.998 9.91469 19.998 7.42969C19.998 4.94469 17.9833 2.92969 15.498 2.92969ZM7.99805 3.92969C5.78895 3.92969 3.99805 5.72069 3.99805 7.92969C3.99805 10.1387 5.78895 11.9297 7.99805 11.9297C8.82745 11.9297 9.58455 11.7017 10.2508 11.2357C8.54205 8.69572 8.78425 6.26369 9.71555 4.30469C9.18365 4.05269 8.59945 3.92969 7.99805 3.92969ZM5.06055 13.2737C3.22645 14.0307 1.99805 15.8857 1.99805 17.9297V19.9297C1.99805 20.4817 2.44575 20.9297 2.99805 20.9297L7.15085 20.9317C6.91685 20.1717 6.98565 18.9397 7.00105 17.9427C7.03355 15.8257 7.90905 14.3157 8.25195 13.9177C7.62175 13.9127 6.86545 13.7597 6.31055 13.5237C6.17655 13.4667 6.09875 13.4217 5.84185 13.3047C5.58995 13.1897 5.31635 13.1677 5.06055 13.2737ZM12.0605 13.2737C10.2264 14.0307 8.99805 15.8857 8.99805 17.9297V19.9297C8.99805 20.4817 9.44575 20.9297 9.99805 20.9297H20.998C21.5503 20.9297 21.998 20.4817 21.998 19.9297V17.9297C21.998 15.9337 20.7628 14.1237 18.9355 13.3357C18.6783 13.2247 18.3786 13.2217 18.123 13.3357C17.2382 13.7327 16.3762 13.9297 15.498 13.9297C14.6228 13.9297 13.7578 13.7217 12.8418 13.3047C12.5899 13.1897 12.3163 13.1677 12.0605 13.2737Z"})})}function LA(e){return p("svg",{...e,viewBox:"0 0 16 16",fill:"currentcolor",children:p("path",{d:"M7.9974 1.30273C6.15646 1.30273 4.66406 2.79513 4.66406 4.63607C4.66406 6.477 6.15646 7.9694 7.9974 7.9694C9.83833 7.9694 11.3307 6.477 11.3307 4.63607C11.3307 2.79513 9.83833 1.30273 7.9974 1.30273ZM5.64326 8.8444C3.9004 9.32073 2.66406 10.8362 2.66406 12.6361V13.9694C2.66406 14.3376 2.96253 14.6361 3.33073 14.6361H12.6641C13.0323 14.6361 13.3307 14.3376 13.3307 13.9694V12.6361C13.3307 10.8362 12.0944 9.32073 10.3515 8.8444C10.2021 8.80353 10.0553 8.8224 9.91406 8.88607C9.30373 9.16113 8.654 9.30273 7.9974 9.30273C7.3408 9.30273 6.69106 9.16113 6.08073 8.88607C5.93946 8.8224 5.79266 8.80353 5.64326 8.8444Z"})})}function DA(e){return q("svg",{...e,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2627 1.21187C10.471 1.00359 10.8087 1.00359 11.017 1.21187L12.1484 2.34324L13.6569 3.85174L14.7882 4.98311C14.9965 5.19139 14.9965 5.52908 14.7882 5.73736C14.5799 5.94564 14.2423 5.94564 14.034 5.73736L13.3374 5.04081L9.45845 10.2128L10.6399 11.3942C10.8481 11.6025 10.8481 11.9402 10.6399 12.1485C10.4316 12.3567 10.0939 12.3567 9.88562 12.1485L8.37712 10.64L7.24582 9.50866C7.24581 9.50868 7.24579 9.50869 7.24577 9.50871L3.75738 12.9971C3.5491 13.2054 3.21141 13.2054 3.00313 12.9971C2.79485 12.7888 2.79485 12.4511 3.00313 12.2429L6.49153 8.75446C6.49154 8.75445 6.49156 8.75443 6.49157 8.75441L5.36014 7.62298L3.85164 6.11448C3.64336 5.9062 3.64336 5.56851 3.85164 5.36023C4.05992 5.15195 4.39761 5.15195 4.60589 5.36023L5.7873 6.54165L10.9593 2.66266L10.2627 1.96612C10.0545 1.75784 10.0545 1.42015 10.2627 1.21187Z",fill:"currentcolor"}),p("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2627 1.21187C10.471 1.00359 10.8087 1.00359 11.017 1.21187L12.1484 2.34324L13.6569 3.85174L14.7882 4.98311C14.9965 5.19139 14.9965 5.52908 14.7882 5.73736C14.5799 5.94564 14.2423 5.94564 14.034 5.73736L13.3374 5.04081L9.45845 10.2128L10.6399 11.3942C10.8481 11.6025 10.8481 11.9402 10.6399 12.1485C10.4316 12.3567 10.0939 12.3567 9.88562 12.1485L8.37712 10.64L7.24582 9.50866C7.24581 9.50868 7.24579 9.50869 7.24577 9.50871L3.75738 12.9971C3.5491 13.2054 3.21141 13.2054 3.00313 12.9971C2.79485 12.7888 2.79485 12.4511 3.00313 12.2429L6.49153 8.75446C6.49154 8.75445 6.49156 8.75443 6.49157 8.75441L5.36014 7.62298L3.85164 6.11448C3.64336 5.9062 3.64336 5.56851 3.85164 5.36023C4.05992 5.15195 4.39761 5.15195 4.60589 5.36023L5.7873 6.54165L10.9593 2.66266L10.2627 1.96612C10.0545 1.75784 10.0545 1.42015 10.2627 1.21187Z",fill:"currentcolor"})]})}function FA(e){return p("svg",{...e,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.017 1.212C10.8087 1.00372 10.471 1.00372 10.2627 1.212C10.0545 1.42028 10.0545 1.75796 10.2627 1.96624L10.9593 2.66279L5.7873 6.54177L4.60589 5.36036C4.39761 5.15208 4.05992 5.15208 3.85164 5.36036C3.64336 5.56864 3.64336 5.90632 3.85164 6.1146L5.36014 7.6231L6.49157 8.75454C6.49156 8.75455 6.49154 8.75457 6.49153 8.75458L3.00313 12.243C2.79485 12.4513 2.79485 12.7889 3.00313 12.9972C3.21141 13.2055 3.5491 13.2055 3.75738 12.9972L7.24577 9.50883C7.24579 9.50882 7.24581 9.5088 7.24582 9.50878L8.37712 10.6401L9.88562 12.1486C10.0939 12.3569 10.4316 12.3569 10.6399 12.1486C10.8481 11.9403 10.8481 11.6026 10.6399 11.3943L9.45845 10.2129L13.3374 5.04094L14.034 5.73748C14.2423 5.94576 14.5799 5.94576 14.7882 5.73748C14.9965 5.5292 14.9965 5.19151 14.7882 4.98323L13.6569 3.85186L12.1484 2.34337L11.017 1.212ZM6.54921 7.30368L11.7212 3.42469L12.5755 4.27903L8.69654 9.45101L6.54921 7.30368Z",fill:"currentcolor"})})}function BA(e){return p("svg",{...e,viewBox:"0 0 16 16",fill:"currentcolor",children:p("path",{d:"M8.00846 1.30273C4.3266 1.30273 1.3418 4.2874 1.3418 7.9694C1.3418 11.6514 4.3266 14.6361 8.00846 14.6361C11.6903 14.6361 14.6751 11.6514 14.6751 7.9694C14.6751 4.2874 11.6903 1.30273 8.00846 1.30273ZM8.00846 4.63607C8.37667 4.63607 8.67513 4.93473 8.67513 5.30273V7.30273H10.6751C11.0433 7.30273 11.3418 7.6014 11.3418 7.9694C11.3418 8.3374 11.0433 8.63606 10.6751 8.63606H8.67513V10.6361C8.67513 11.0041 8.37667 11.3027 8.00846 11.3027C7.64026 11.3027 7.3418 11.0041 7.3418 10.6361V8.63606H5.3418C4.9736 8.63606 4.67513 8.3374 4.67513 7.9694C4.67513 7.6014 4.9736 7.30273 5.3418 7.30273H7.3418V5.30273C7.3418 4.93473 7.64026 4.63607 8.00846 4.63607Z"})})}function VA(e){return p("svg",{...e,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{d:"M9.32113 3.90637C6.3758 3.90637 3.98779 6.29437 3.98779 9.2397L3.98779 22.573C3.98779 25.5184 6.3758 27.9064 9.32113 27.9064L22.6545 27.9064C25.5998 27.9064 27.9878 25.5184 27.9878 22.573L27.9878 9.2397C27.9878 6.29437 25.5998 3.90637 22.6545 3.90637L9.32113 3.90637ZM9.32113 6.57304L22.6545 6.57304C24.1278 6.57304 25.3212 7.76637 25.3212 9.2397L25.3212 22.573C25.3212 24.0464 24.1278 25.2397 22.6545 25.2397L9.32113 25.2397C7.8478 25.2397 6.65446 24.0464 6.65446 22.573L6.65446 9.2397C6.65446 7.76637 7.8478 6.57304 9.32113 6.57304ZM15.9878 9.2397C15.2518 9.2397 14.6545 9.83704 14.6545 10.573L14.6545 14.573L10.6545 14.573C9.91847 14.573 9.32113 15.1704 9.32113 15.9064C9.32113 16.6424 9.91847 17.2397 10.6545 17.2397L14.6545 17.2397L14.6545 21.2397C14.6545 21.9757 15.2518 22.573 15.9878 22.573C16.7238 22.573 17.3211 21.9757 17.3211 21.2397L17.3211 17.2397L21.3212 17.2397C22.0572 17.2397 22.6545 16.6424 22.6545 15.9064C22.6545 15.1704 22.0572 14.573 21.3212 14.573L17.3211 14.573L17.3211 10.573C17.3211 9.83704 16.7238 9.2397 15.9878 9.2397Z",fill:"#32373B"})})}function zA(e){return p("svg",{...e,viewBox:"0 0 18 19",fill:"currentcolor",children:p("path",{d:"M8.99072 0.929749C8.43872 0.929749 7.99072 1.37775 7.99072 1.92975V8.92975H0.990723C0.438723 8.92975 -0.00927734 9.37775 -0.00927734 9.92975C-0.00927734 10.4817 0.438723 10.9297 0.990723 10.9297H7.99072V17.9297C7.99072 18.4817 8.43872 18.9297 8.99072 18.9297C9.54272 18.9297 9.99072 18.4817 9.99072 17.9297V10.9297H16.9907C17.5427 10.9297 17.9907 10.4817 17.9907 9.92975C17.9907 9.37775 17.5427 8.92975 16.9907 8.92975H9.99072V1.92975C9.99072 1.37775 9.54272 0.929749 8.99072 0.929749Z"})})}function HA(e){return p("svg",{...e,viewBox:"0 0 16 16",fill:"currentcolor",children:p("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.0059 0L3.41636 5.45646C2.44979 6.25682 2.3795 7.71452 3.26456 8.60418L5.54425 10.8957C6.21311 11.568 6.35783 12.6012 5.89944 13.4314L4.48126 16H2.13333C0.955126 16 0 15.0449 0 13.8667V2.13333C0 0.955126 0.955126 0 2.13333 0H10.0059ZM11.2436 0L10.0128 2.24221C9.55899 3.06891 9.70183 4.09549 10.3641 4.7669L12.7825 7.21868C13.6656 8.11402 13.5866 9.57512 12.612 10.37L5.70922 16H13.8667C15.0449 16 16 15.0449 16 13.8667V2.13333C16 0.955126 15.0449 0 13.8667 0H11.2436Z"})})}function jA(e){return p("svg",{...e,viewBox:"0 0 16 16",fill:"currentcolor",children:p("path",{d:"M11.4561 1.95312C12.8734 1.95312 13.998 3.15579 13.998 4.61979V11.2865C13.998 12.7505 12.8734 13.9531 11.4561 13.9531H11.3314V1.95312H11.4561ZM9.99805 1.95312V13.9531H4.53939C3.12272 13.9531 1.99805 12.7505 1.99805 11.2865V4.61979C1.99805 3.15579 3.12272 1.95312 4.53939 1.95312H9.99805ZM7.33138 4.61979H4.66471C4.29671 4.61979 3.99805 4.91846 3.99805 5.28646C3.99805 5.65446 4.29671 5.95312 4.66471 5.95312H7.33138C7.69938 5.95312 7.99805 5.65446 7.99805 5.28646C7.99805 4.91846 7.69938 4.61979 7.33138 4.61979ZM7.33138 7.28646H4.66471C4.29671 7.28646 3.99805 7.58512 3.99805 7.95312C3.99805 8.32112 4.29671 8.61979 4.66471 8.61979H7.33138C7.69938 8.61979 7.99805 8.32112 7.99805 7.95312C7.99805 7.58512 7.69938 7.28646 7.33138 7.28646ZM7.33138 9.95312H4.66471C4.29671 9.95312 3.99805 10.2518 3.99805 10.6198C3.99805 10.9878 4.29671 11.2865 4.66471 11.2865H7.33138C7.69938 11.2865 7.99805 10.9878 7.99805 10.6198C7.99805 10.2518 7.69938 9.95312 7.33138 9.95312Z"})})}function $A(e){return p("svg",{...e,width:"12",height:"13",viewBox:"0 0 12 13",fill:"currentcolor",children:p("path",{d:"M2.66056 0.953125C1.18783 0.953125 -0.00610352 2.14713 -0.00610352 3.61979V10.2865C-0.00610352 11.7591 1.18783 12.9531 2.66056 12.9531H9.32723C10.8 12.9531 11.9939 11.7591 11.9939 10.2865V3.61979C11.9939 2.14713 10.8 0.953125 9.32723 0.953125H2.66056ZM5.95223 3.61979C7.0557 3.61979 7.9483 4.51579 7.95223 5.61979C7.9549 6.35913 7.60796 6.98246 7.03556 7.55713C6.91576 7.6778 6.8001 7.79378 6.66056 7.91178C6.59396 7.96778 6.40963 8.10313 6.38976 8.11979C6.10823 8.35713 5.68956 8.33913 5.45223 8.05713C5.2149 7.7758 5.25403 7.33645 5.53556 7.09912C5.56636 7.07312 5.72963 6.9378 5.78556 6.89046C5.8975 6.79646 6.00883 6.70913 6.09803 6.61979C6.44443 6.27179 6.62003 5.93846 6.6189 5.61979C6.61756 5.24913 6.3197 4.95312 5.95223 4.95312C5.64783 4.95312 5.3829 5.16379 5.30643 5.45312C5.21236 5.80912 4.8499 6.02645 4.4939 5.93245C4.1379 5.83845 3.9207 5.45512 4.0147 5.09912C4.2449 4.22779 5.03896 3.61979 5.95223 3.61979ZM5.95223 8.95312C6.32043 8.95312 6.6189 9.25179 6.6189 9.61979C6.6189 9.98779 6.32043 10.2865 5.95223 10.2865C5.58403 10.2865 5.28556 9.98779 5.28556 9.61979C5.28556 9.25179 5.58403 8.95312 5.95223 8.95312Z"})})}function UA(e){return p("svg",{...e,viewBox:"0 0 21 17",fill:"currentcolor",children:p("path",{d:"M10.9863 4.90607C10.6036 4.90607 8.3471 4.87807 7.9863 4.90607C2.04289 5.36307 0.986294 9.90607 0.986294 14.9061V15.9061C2.85309 13.9911 3.9863 12.9061 7.9863 12.9061C8.7319 12.9061 10.0809 12.9061 10.9863 12.9061L11.0166 15.4801C11.0166 16.9001 11.8933 17.3321 12.9747 16.4451L20.1554 10.5521C21.2633 9.64306 21.2633 8.16907 20.1554 7.26007L12.9747 1.36707C11.8933 0.480072 11.0166 0.912068 11.0166 2.33207L10.9863 4.90607Z"})})}function ZA(e){return p("svg",{...e,viewBox:"0 0 16 16",fill:"currentcolor",children:p("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.93994 7.99994C1.93994 4.95954 4.30966 1.93994 7.99994 1.93994C11.0251 1.93994 12.4976 4.2113 13.1079 5.36663H11.2C10.9238 5.36663 10.7 5.59049 10.7 5.86663C10.7 6.14278 10.9238 6.36663 11.2 6.36663H14.4C14.6761 6.36663 14.9 6.14278 14.9 5.86663V2.66663C14.9 2.39049 14.6761 2.16663 14.4 2.16663C14.1238 2.16663 13.9 2.39049 13.9 2.66663V4.72863C13.1867 3.43408 11.4556 0.939941 7.99994 0.939941C3.68702 0.939941 0.939941 4.48034 0.939941 7.99994C0.939941 11.5195 3.68702 15.0599 7.99994 15.0599C10.0641 15.0599 11.7819 14.2434 13.005 12.9989C13.66 12.3324 14.1716 11.545 14.5204 10.6974C14.6255 10.442 14.5037 10.1498 14.2484 10.0447C13.993 9.93963 13.7008 10.0614 13.5957 10.3168C13.2945 11.0485 12.8536 11.7263 12.2918 12.2979C11.2492 13.3588 9.7853 14.0599 7.99994 14.0599C4.30966 14.0599 1.93994 11.0403 1.93994 7.99994Z"})})}function WA(e){return q("svg",{...e,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p("rect",{x:"1.5",y:"1.5",width:"13",height:"13",rx:"3.5",stroke:"currentcolor"}),p("path",{d:"M4 8H12",stroke:"currentcolor",strokeLinecap:"round"})]})}function GA(e){return q("svg",{...e,viewBox:"0 0 71 19",fill:"currentcolor",children:[p("path",{d:"M53.6211 18.4887V9.0342H56.435V10.8096H56.4923C56.7377 10.181 57.1085 9.70244 57.6047 9.37398C58.101 9.03986 58.6981 8.8728 59.3962 8.8728C60.4105 8.8728 61.2039 9.1871 61.7765 9.8157C62.3546 10.4443 62.6436 11.3164 62.6436 12.432V18.4887H59.7397V13.0776C59.7397 12.5283 59.6007 12.1007 59.3225 11.7949C59.0499 11.4835 58.6654 11.3277 58.1692 11.3277C57.6784 11.3277 57.2803 11.4976 56.9749 11.8374C56.6695 12.1772 56.5168 12.6161 56.5168 13.1541V18.4887H53.6211Z"}),p("path",{d:"M53.097 9.03394L50.7412 18.4884H47.6164L46.1522 12.075H46.0949L44.6389 18.4884H41.5632L39.1992 9.03394H42.1195L43.3056 15.7532H43.3628L44.7861 9.03394H47.551L48.9906 15.7532H49.0479L50.234 9.03394H53.097Z"}),p("path",{d:"M37.8661 17.3926C37.0427 18.2591 35.9084 18.6923 34.4632 18.6923C33.0181 18.6923 31.8838 18.2591 31.0604 17.3926C30.2369 16.5205 29.8252 15.3086 29.8252 13.7569C29.8252 12.2336 30.2424 11.033 31.0767 10.1552C31.9111 9.2718 33.0399 8.83008 34.4632 8.83008C35.892 8.83008 37.0208 9.26896 37.8497 10.1467C38.6841 11.0188 39.1013 12.2222 39.1013 13.7569C39.1013 15.3143 38.6896 16.5262 37.8661 17.3926ZM33.2117 15.7702C33.5116 16.2402 33.9288 16.4752 34.4632 16.4752C34.9977 16.4752 35.4148 16.2402 35.7148 15.7702C36.0147 15.2945 36.1647 14.6234 36.1647 13.7569C36.1647 12.9131 36.012 12.2506 35.7066 11.7692C35.4012 11.2878 34.9868 11.0472 34.4632 11.0472C33.9343 11.0472 33.5171 11.2878 33.2117 11.7692C32.9118 12.2449 32.7618 12.9075 32.7618 13.7569C32.7618 14.6234 32.9118 15.2945 33.2117 15.7702Z"}),p("path",{d:"M20.0088 18.4887V9.0342H22.8227V10.8096H22.88C23.1254 10.181 23.4962 9.70244 23.9924 9.37398C24.4887 9.03986 25.0858 8.8728 25.7838 8.8728C26.7982 8.8728 27.5916 9.1871 28.1642 9.8157C28.7423 10.4443 29.0313 11.3164 29.0313 12.432V18.4887H26.1274V13.0776C26.1274 12.5283 25.9883 12.1007 25.7102 11.7949C25.4376 11.4835 25.0531 11.3277 24.5569 11.3277C24.0661 11.3277 23.668 11.4976 23.3626 11.8374C23.0572 12.1772 22.9045 12.6161 22.9045 13.1541V18.4887H20.0088Z"}),p("path",{d:"M14.7486 10.9707C14.2851 10.9707 13.8952 11.1321 13.5789 11.4549C13.2626 11.7777 13.0854 12.1911 13.0472 12.6951H16.4337C16.4064 12.1741 16.2374 11.7579 15.9265 11.4464C15.6212 11.1293 15.2285 10.9707 14.7486 10.9707ZM16.4991 15.5153H19.1167C18.9749 16.4837 18.5141 17.2567 17.7343 17.8343C16.9599 18.4063 15.9838 18.6923 14.8059 18.6923C13.3662 18.6923 12.2374 18.2591 11.4194 17.3926C10.6014 16.5262 10.1924 15.3313 10.1924 13.8079C10.1924 12.2845 10.5987 11.0755 11.4112 10.1807C12.2237 9.28029 13.3226 8.83008 14.7077 8.83008C16.0656 8.83008 17.1481 9.26047 17.9552 10.1213C18.7677 10.9764 19.174 12.1231 19.174 13.5616V14.4195H13.0145V14.6064C13.0145 15.184 13.1835 15.6541 13.5216 16.0165C13.8597 16.3733 14.3015 16.5517 14.8468 16.5517C15.2503 16.5517 15.5993 16.461 15.8938 16.2798C16.1883 16.0929 16.3901 15.8381 16.4991 15.5153Z"}),p("path",{d:"M3.00205 8.58396V12.0667H4.7771C5.32789 12.0667 5.7587 11.911 6.06954 11.5995C6.38038 11.2881 6.5358 10.8662 6.5358 10.3338C6.5358 9.80718 6.37492 9.38528 6.05318 9.06815C5.73143 8.74535 5.30335 8.58396 4.76892 8.58396H3.00205ZM3.00205 14.1989V18.4886H0V6.23096H5.07158C6.53307 6.23096 7.65373 6.5849 8.43355 7.29278C9.21337 8.00066 9.60328 8.99453 9.60328 10.2744C9.60328 11.0446 9.42605 11.7439 9.07159 12.3725C8.71712 12.9955 8.2236 13.4514 7.59101 13.7402L9.94684 18.4886H6.5767L4.55624 14.1989H3.00205Z"}),p("path",{d:"M65.7255 0.211478C65.0841 2.46724 63.3737 4.2455 61.2041 4.90969C60.932 4.99366 60.932 5.39096 61.2041 5.47492C63.3725 6.13912 65.0841 7.91738 65.7255 10.1731C65.8056 10.4551 66.1932 10.4551 66.2745 10.1731C66.9159 7.91738 68.6263 6.13912 70.7959 5.47492C71.068 5.39096 71.068 4.99366 70.7959 4.90969C68.6276 4.2455 66.9159 2.46724 66.2745 0.211478C66.1944 -0.0704925 65.8068 -0.0704925 65.7255 0.211478Z",fill:"#21FFB4"})]})}function qA(e){return q("svg",{...e,width:"83",height:"22",viewBox:"0 0 83 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p("path",{d:"M62.6841 21.7601V10.6326H65.9736V12.7221H66.0405C66.3274 11.9823 66.7609 11.4191 67.341 11.0325C67.9212 10.6393 68.6192 10.4426 69.4352 10.4426C70.621 10.4426 71.5486 10.8125 72.2179 11.5524C72.8937 12.2922 73.2316 13.3187 73.2316 14.6317V21.7601H69.8369V15.3915C69.8369 14.745 69.6743 14.2418 69.3492 13.8819C69.0304 13.5153 68.581 13.332 68.0009 13.332C67.4271 13.332 66.9617 13.5319 66.6047 13.9319C66.2477 14.3318 66.0692 14.8483 66.0692 15.4815V21.7601H62.6841Z",fill:"currentcolor"}),p("path",{d:"M62.0713 10.6328L59.3173 21.7603H55.6644L53.9527 14.212H53.8858L52.1837 21.7603H48.5882L45.8246 10.6328H49.2384L50.625 18.5411H50.6919L52.3558 10.6328H55.5879L57.2709 18.5411H57.3379L58.7245 10.6328H62.0713Z",fill:"currentcolor"}),p("path",{d:"M44.2662 20.4703C43.3036 21.4901 41.9775 22 40.2882 22C38.5988 22 37.2728 21.4901 36.3102 20.4703C35.3475 19.4439 34.8662 18.0176 34.8662 16.1913C34.8662 14.3984 35.3539 12.9853 36.3293 11.9522C37.3047 10.9125 38.6243 10.3926 40.2882 10.3926C41.9584 10.3926 43.2781 10.9091 44.2471 11.9422C45.2224 12.9687 45.7101 14.385 45.7101 16.1913C45.7101 18.0242 45.2288 19.4506 44.2662 20.4703ZM38.8251 18.5608C39.1757 19.114 39.6634 19.3906 40.2882 19.3906C40.9129 19.3906 41.4006 19.114 41.7512 18.5608C42.1019 18.0009 42.2772 17.2111 42.2772 16.1913C42.2772 15.1982 42.0987 14.4184 41.7417 13.8518C41.3847 13.2853 40.9002 13.002 40.2882 13.002C39.6698 13.002 39.1821 13.2853 38.8251 13.8518C38.4745 14.4117 38.2992 15.1915 38.2992 16.1913C38.2992 17.2111 38.4745 18.0009 38.8251 18.5608Z",fill:"currentcolor"}),p("path",{d:"M23.3906 21.7601V10.6326H26.6801V12.7221H26.7471C27.034 11.9823 27.4675 11.4191 28.0476 11.0325C28.6277 10.6393 29.3258 10.4426 30.1418 10.4426C31.3275 10.4426 32.2551 10.8125 32.9245 11.5524C33.6002 12.2922 33.9381 13.3187 33.9381 14.6317V21.7601H30.5434V15.3915C30.5434 14.745 30.3808 14.2418 30.0557 13.8819C29.737 13.5153 29.2875 13.332 28.7074 13.332C28.1336 13.332 27.6683 13.5319 27.3113 13.9319C26.9543 14.3318 26.7758 14.8483 26.7758 15.4815V21.7601H23.3906Z",fill:"currentcolor"}),p("path",{d:"M17.2414 12.912C16.6995 12.912 16.2437 13.102 15.8739 13.4819C15.5042 13.8618 15.297 14.3484 15.2524 14.9416H19.2113C19.1794 14.3284 18.9818 13.8385 18.6184 13.4719C18.2614 13.0986 17.8024 12.912 17.2414 12.912ZM19.2878 18.2608H22.3478C22.182 19.4006 21.6433 20.3104 20.7317 20.9902C19.8264 21.6634 18.6853 22 17.3083 22C15.6253 22 14.3057 21.4901 13.3494 20.4703C12.3932 19.4506 11.915 18.0442 11.915 16.2513C11.915 14.4583 12.39 13.0353 13.3399 11.9822C14.2897 10.9225 15.5743 10.3926 17.1936 10.3926C18.7809 10.3926 20.0464 10.8991 20.9899 11.9122C21.9398 12.9187 22.4147 14.2684 22.4147 15.9613V16.9711H15.2141V17.1911C15.2141 17.8709 15.4117 18.4241 15.807 18.8507C16.2022 19.2706 16.7186 19.4806 17.3561 19.4806C17.8279 19.4806 18.2359 19.3739 18.5801 19.1606C18.9244 18.9407 19.1603 18.6408 19.2878 18.2608Z",fill:"currentcolor"}),p("path",{d:"M3.50945 10.1029V14.202H5.58452C6.2284 14.202 6.73202 14.0187 7.0954 13.6521C7.45878 13.2855 7.64047 12.789 7.64047 12.1624C7.64047 11.5426 7.4524 11.046 7.07628 10.6728C6.70015 10.2928 6.19971 10.1029 5.57496 10.1029H3.50945ZM3.50945 16.7114V21.7603H0V7.3335H5.92877C7.63728 7.3335 8.94735 7.75007 9.85897 8.58322C10.7706 9.41637 11.2264 10.5861 11.2264 12.0924C11.2264 12.9989 11.0192 13.8221 10.6049 14.5619C10.1905 15.2951 9.61354 15.8316 8.87403 16.1715L11.628 21.7603H7.68828L5.32633 16.7114H3.50945Z",fill:"currentcolor"}),p("path",{d:"M76.834 0.248901C76.0842 2.90384 74.0847 4.99678 71.5484 5.77851C71.2303 5.87734 71.2303 6.34494 71.5484 6.44376C74.0833 7.22549 76.0842 9.31844 76.834 11.9734C76.9277 12.3052 77.3807 12.3052 77.4758 11.9734C78.2257 9.31844 80.2251 7.22549 82.7614 6.44376C83.0795 6.34494 83.0795 5.87734 82.7614 5.77851C80.2266 4.99678 78.2257 2.90384 77.4758 0.248901C77.3821 -0.0829669 76.9291 -0.0829669 76.834 0.248901Z",fill:"url(#paint0_linear_2120_7894)"}),p("defs",{children:q("linearGradient",{id:"paint0_linear_2120_7894",x1:"77.1549",y1:"-0.768932",x2:"72.2552",y2:"11.3783",gradientUnits:"userSpaceOnUse",children:[p("stop",{stopColor:"#21FFB4"}),p("stop",{offset:"1",stopColor:"#0080FF"})]})})]})}function JA(e){return q("svg",{...e,viewBox:"0 0 71 19",fill:"currentcolor",children:[p("path",{d:"M53.6211 18.4887V9.0342H56.435V10.8096H56.4923C56.7377 10.181 57.1085 9.70244 57.6047 9.37398C58.101 9.03986 58.6981 8.8728 59.3962 8.8728C60.4105 8.8728 61.2039 9.1871 61.7765 9.8157C62.3546 10.4443 62.6436 11.3164 62.6436 12.432V18.4887H59.7397V13.0776C59.7397 12.5283 59.6007 12.1007 59.3225 11.7949C59.0499 11.4835 58.6654 11.3277 58.1692 11.3277C57.6784 11.3277 57.2803 11.4976 56.9749 11.8374C56.6695 12.1772 56.5168 12.6161 56.5168 13.1541V18.4887H53.6211Z"}),p("path",{d:"M53.097 9.03394L50.7412 18.4884H47.6164L46.1522 12.075H46.0949L44.6389 18.4884H41.5632L39.1992 9.03394H42.1195L43.3056 15.7532H43.3628L44.7861 9.03394H47.551L48.9906 15.7532H49.0479L50.234 9.03394H53.097Z"}),p("path",{d:"M37.8661 17.3926C37.0427 18.2591 35.9084 18.6923 34.4632 18.6923C33.0181 18.6923 31.8838 18.2591 31.0604 17.3926C30.2369 16.5205 29.8252 15.3086 29.8252 13.7569C29.8252 12.2336 30.2424 11.033 31.0767 10.1552C31.9111 9.2718 33.0399 8.83008 34.4632 8.83008C35.892 8.83008 37.0208 9.26896 37.8497 10.1467C38.6841 11.0188 39.1013 12.2222 39.1013 13.7569C39.1013 15.3143 38.6896 16.5262 37.8661 17.3926ZM33.2117 15.7702C33.5116 16.2402 33.9288 16.4752 34.4632 16.4752C34.9977 16.4752 35.4148 16.2402 35.7148 15.7702C36.0147 15.2945 36.1647 14.6234 36.1647 13.7569C36.1647 12.9131 36.012 12.2506 35.7066 11.7692C35.4012 11.2878 34.9868 11.0472 34.4632 11.0472C33.9343 11.0472 33.5171 11.2878 33.2117 11.7692C32.9118 12.2449 32.7618 12.9075 32.7618 13.7569C32.7618 14.6234 32.9118 15.2945 33.2117 15.7702Z"}),p("path",{d:"M20.0088 18.4887V9.0342H22.8227V10.8096H22.88C23.1254 10.181 23.4962 9.70244 23.9924 9.37398C24.4887 9.03986 25.0858 8.8728 25.7838 8.8728C26.7982 8.8728 27.5916 9.1871 28.1642 9.8157C28.7423 10.4443 29.0313 11.3164 29.0313 12.432V18.4887H26.1274V13.0776C26.1274 12.5283 25.9883 12.1007 25.7102 11.7949C25.4376 11.4835 25.0531 11.3277 24.5569 11.3277C24.0661 11.3277 23.668 11.4976 23.3626 11.8374C23.0572 12.1772 22.9045 12.6161 22.9045 13.1541V18.4887H20.0088Z"}),p("path",{d:"M14.7486 10.9707C14.2851 10.9707 13.8952 11.1321 13.5789 11.4549C13.2626 11.7777 13.0854 12.1911 13.0472 12.6951H16.4337C16.4064 12.1741 16.2374 11.7579 15.9265 11.4464C15.6212 11.1293 15.2285 10.9707 14.7486 10.9707ZM16.4991 15.5153H19.1167C18.9749 16.4837 18.5141 17.2567 17.7343 17.8343C16.9599 18.4063 15.9838 18.6923 14.8059 18.6923C13.3662 18.6923 12.2374 18.2591 11.4194 17.3926C10.6014 16.5262 10.1924 15.3313 10.1924 13.8079C10.1924 12.2845 10.5987 11.0755 11.4112 10.1807C12.2237 9.28029 13.3226 8.83008 14.7077 8.83008C16.0656 8.83008 17.1481 9.26047 17.9552 10.1213C18.7677 10.9764 19.174 12.1231 19.174 13.5616V14.4195H13.0145V14.6064C13.0145 15.184 13.1835 15.6541 13.5216 16.0165C13.8597 16.3733 14.3015 16.5517 14.8468 16.5517C15.2503 16.5517 15.5993 16.461 15.8938 16.2798C16.1883 16.0929 16.3901 15.8381 16.4991 15.5153Z"}),p("path",{d:"M3.00205 8.58396V12.0667H4.7771C5.32789 12.0667 5.7587 11.911 6.06954 11.5995C6.38038 11.2881 6.5358 10.8662 6.5358 10.3338C6.5358 9.80718 6.37492 9.38528 6.05318 9.06815C5.73143 8.74535 5.30335 8.58396 4.76892 8.58396H3.00205ZM3.00205 14.1989V18.4886H0V6.23096H5.07158C6.53307 6.23096 7.65373 6.5849 8.43355 7.29278C9.21337 8.00066 9.60328 8.99453 9.60328 10.2744C9.60328 11.0446 9.42605 11.7439 9.07159 12.3725C8.71712 12.9955 8.2236 13.4514 7.59101 13.7402L9.94684 18.4886H6.5767L4.55624 14.1989H3.00205Z"}),p("path",{d:"M65.7255 0.211478C65.0841 2.46724 63.3737 4.2455 61.2041 4.90969C60.932 4.99366 60.932 5.39096 61.2041 5.47492C63.3725 6.13912 65.0841 7.91738 65.7255 10.1731C65.8056 10.4551 66.1932 10.4551 66.2745 10.1731C66.9159 7.91738 68.6263 6.13912 70.7959 5.47492C71.068 5.39096 71.068 4.99366 70.7959 4.90969C68.6276 4.2455 66.9159 2.46724 66.2745 0.211478C66.1944 -0.0704925 65.8068 -0.0704925 65.7255 0.211478Z"})]})}function YA(e){return p("svg",{...e,viewBox:"0 0 16 16",fill:"currentcolor",children:p("path",{d:"M7.99853 2.60352C5.0532 2.60352 2.66519 4.99152 2.66519 7.93685C2.66519 10.8822 5.0532 13.2702 7.99853 13.2702C10.9439 13.2702 13.3319 10.8822 13.3319 7.93685C13.3319 4.99152 10.9439 2.60352 7.99853 2.60352ZM7.99853 3.93685C10.2079 3.93685 11.9985 5.72752 11.9985 7.93685C11.9985 10.1462 10.2079 11.9368 7.99853 11.9368C5.7892 11.9368 3.99853 10.1462 3.99853 7.93685C3.99853 5.72752 5.7892 3.93685 7.99853 3.93685Z"})})}function KA(e){return p("svg",{...e,viewBox:"0 0 16 16",fill:"currentcolor",children:p("path",{d:"M2 4.66667C2 3.194 3.194 2 4.66667 2H8.08333C7.64666 2.564 7.33333 3.23133 7.33333 4V8.66667H5.33333L8 11.3333L10.6667 8.66667H8.66666V4C8.66666 2.89533 9.562 2 10.6667 2H11.3333C12.806 2 14 3.194 14 4.66667V11.3333C14 12.806 12.806 14 11.3333 14H4.66667C3.194 14 2 12.806 2 11.3333V4.66667Z"})})}function XA(e){return p("svg",{...e,viewBox:"0 0 24 24",fill:"currentcolor",children:p("path",{d:"M10.0137 1.95312C5.59537 1.95312 2.01367 5.53513 2.01367 9.95314C2.01367 14.3712 5.59537 17.9532 10.0137 17.9532C11.8504 17.9532 13.5913 17.3222 14.9416 16.2822L19.2949 20.6722C19.6855 21.0622 20.3419 21.0622 20.7325 20.6722C21.123 20.2812 21.123 19.6252 20.7325 19.2342L16.349 14.8741C17.3898 13.5241 18.0137 11.7901 18.0137 9.95314C18.0137 5.53513 14.432 1.95312 10.0137 1.95312ZM10.0137 3.95313C13.3274 3.95313 16.0137 6.63914 16.0137 9.95314C16.0137 13.2672 13.3274 15.9532 10.0137 15.9532C6.69997 15.9532 4.01367 13.2672 4.01367 9.95314C4.01367 6.63914 6.69997 3.95313 10.0137 3.95313Z"})})}function QA(e){return p("svg",{...e,viewBox:"0 0 24 24",fill:"currentcolor",children:p("path",{d:"M11.998 1.95312C7.63605 1.95312 3.99805 3.51213 3.99805 5.95312C3.99805 8.39412 7.63605 9.95312 11.998 9.95312C16.36 9.95312 19.998 8.39412 19.998 5.95312C19.998 3.51213 16.36 1.95312 11.998 1.95312ZM3.99805 9.57812V11.9531C3.99805 14.3941 7.63605 15.9531 11.998 15.9531C16.36 15.9531 19.998 14.3941 19.998 11.9531V9.57812C18.184 11.0681 15.356 11.9531 11.998 11.9531C8.64005 11.9531 5.81205 11.0681 3.99805 9.57812ZM3.99805 15.5781V17.9531C3.99805 20.3941 7.63605 21.9531 11.998 21.9531C16.36 21.9531 19.998 20.3941 19.998 17.9531V15.5781C18.184 17.0681 15.356 17.9531 11.998 17.9531C8.64005 17.9531 5.81205 17.0681 3.99805 15.5781Z"})})}function eO(e){return q("svg",{...e,viewBox:"0 0 24 24",fill:"currentcolor",children:[p("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5 2C13.1894 2 13.8136 2.27905 14.2659 2.73036C14.2834 2.74784 14.3007 2.76559 14.3177 2.78358C14.7174 3.20678 14.971 3.76953 14.9977 4.39107L14.9985 4.41205C14.9995 4.44124 15 4.47056 15 4.5L15 4.51426C15 4.55491 15.0247 4.59145 15.0623 4.60702C15.0998 4.62261 15.1431 4.61423 15.1719 4.58546L15.182 4.57538C15.2028 4.55456 15.2239 4.53419 15.2452 4.51426L15.2607 4.5C15.719 4.07934 16.2962 3.86073 16.8782 3.84417C16.9029 3.84346 16.9277 3.84312 16.9524 3.84315C17.5913 3.84382 18.23 4.0879 18.7175 4.57538L19.4246 5.28249C19.9121 5.76997 20.1562 6.40868 20.1569 7.0476C20.1569 7.07234 20.1565 7.09709 20.1558 7.12182C20.1393 7.70375 19.9207 8.281 19.5 8.73935L19.4857 8.75476C19.4658 8.77611 19.4454 8.7972 19.4246 8.81802L19.4145 8.82811C19.3858 8.85687 19.3774 8.90017 19.393 8.93775C19.4085 8.97529 19.4451 9 19.4857 9L19.5 9C19.5294 9 19.5588 9.00051 19.5879 9.00152L19.6089 9.00233C20.2305 9.02898 20.7932 9.28257 21.2164 9.68233C21.2344 9.69933 21.2522 9.71659 21.2696 9.73411C21.721 10.1864 22 10.8106 22 11.5L22 12.5C22 13.1894 21.721 13.8136 21.2696 14.2659C21.2522 14.2834 21.2344 14.3007 21.2164 14.3177C20.7932 14.7174 20.2305 14.971 19.6089 14.9977L19.5879 14.9985C19.5588 14.9995 19.5294 15 19.5 15L19.4857 15C19.4451 15 19.4085 15.0247 19.393 15.0623C19.3774 15.0998 19.3858 15.1431 19.4145 15.1719L19.4246 15.182C19.4454 15.2028 19.4658 15.2239 19.4857 15.2452L19.5 15.2607C19.9207 15.719 20.1393 16.2962 20.1558 16.8782C20.1565 16.9029 20.1569 16.9277 20.1569 16.9524C20.1562 17.5913 19.9121 18.23 19.4246 18.7175L18.7175 19.4246C18.23 19.9121 17.5913 20.1562 16.9524 20.1568C16.9277 20.1569 16.9029 20.1565 16.8782 20.1558C16.2963 20.1393 15.719 19.9207 15.2607 19.5L15.2452 19.4857C15.2239 19.4658 15.2028 19.4454 15.182 19.4246L15.1719 19.4145C15.1431 19.3858 15.0998 19.3774 15.0623 19.393C15.0247 19.4085 15 19.4451 15 19.4857L15 19.5C15 19.5294 14.9995 19.5588 14.9985 19.5879L14.9977 19.6089C14.971 20.2305 14.7174 20.7932 14.3177 21.2164C14.3007 21.2344 14.2834 21.2522 14.2659 21.2696C13.8136 21.7209 13.1894 22 12.5 22L11.5 22C10.8106 22 10.1864 21.7209 9.73411 21.2696C9.71659 21.2522 9.69933 21.2344 9.68233 21.2164C9.28257 20.7932 9.02898 20.2305 9.00233 19.6089L9.00152 19.5879C9.00051 19.5588 9 19.5294 9 19.5L9 19.4857C9 19.4451 8.97529 19.4085 8.93774 19.393C8.90017 19.3774 8.85687 19.3858 8.8281 19.4145L8.81802 19.4246C8.7972 19.4454 8.77611 19.4658 8.75475 19.4857L8.73934 19.5C8.281 19.9207 7.70375 20.1393 7.12182 20.1558C7.09708 20.1565 7.07234 20.1569 7.0476 20.1568C6.40868 20.1562 5.76997 19.9121 5.28249 19.4246L4.57538 18.7175C4.0879 18.23 3.84382 17.5913 3.84315 16.9524C3.84312 16.9277 3.84346 16.9029 3.84417 16.8782C3.86073 16.2962 4.07934 15.719 4.5 15.2607L4.51426 15.2452C4.53419 15.2239 4.55456 15.2028 4.57538 15.182L4.58546 15.1719C4.61423 15.1431 4.62261 15.0998 4.60702 15.0623C4.59145 15.0247 4.55491 15 4.51426 15L4.5 15C4.47056 15 4.44125 14.9995 4.41205 14.9985L4.39107 14.9977C3.76953 14.971 3.20678 14.7174 2.78358 14.3177C2.76558 14.3007 2.74784 14.2834 2.73036 14.2659C2.27905 13.8136 2 13.1894 2 12.5L2 11.5C2 10.8106 2.27905 10.1864 2.73036 9.73411C2.74784 9.71659 2.76558 9.69933 2.78358 9.68233C3.20678 9.28257 3.76953 9.02898 4.39107 9.00233L4.41205 9.00152C4.44125 9.00051 4.47056 9 4.5 9L4.51426 9C4.55491 9 4.59145 8.97529 4.60702 8.93775C4.62261 8.90017 4.61423 8.85687 4.58546 8.82811L4.57538 8.81802C4.55456 8.7972 4.53419 8.77611 4.51426 8.75476L4.5 8.73935C4.07934 8.281 3.86073 7.70375 3.84417 7.12182C3.84346 7.09709 3.84312 7.07234 3.84315 7.0476C3.84382 6.40868 4.0879 5.76997 4.57538 5.28249L5.28249 4.57538C5.76997 4.0879 6.40868 3.84382 7.0476 3.84315C7.07234 3.84312 7.09709 3.84346 7.12182 3.84417C7.70375 3.86073 8.281 4.07934 8.73934 4.5L8.75476 4.51426C8.77611 4.53419 8.7972 4.55456 8.81802 4.57538L8.8281 4.58546C8.85687 4.61423 8.90017 4.62261 8.93775 4.60702C8.97529 4.59145 9 4.55491 9 4.51426L9 4.5C9 4.47056 9.00051 4.44124 9.00152 4.41205L9.00233 4.39107C9.02898 3.76953 9.28257 3.20678 9.68233 2.78358C9.69933 2.76559 9.71659 2.74784 9.73411 2.73036C10.1864 2.27905 10.8106 2 11.5 2L12.5 2ZM11 19.5C11 19.7761 11.2239 20 11.5 20L12.5 20C12.7761 20 13 19.7761 13 19.5L13 19.4857C13 18.6262 13.5212 17.8669 14.2962 17.5455C15.0727 17.2235 15.9787 17.3929 16.5861 18.0003L16.5962 18.0104C16.7915 18.2057 17.108 18.2057 17.3033 18.0104L18.0104 17.3033C18.2057 17.108 18.2057 16.7915 18.0104 16.5962L18.0003 16.5861C17.3929 15.9787 17.2235 15.0727 17.5455 14.2961C17.8669 13.5212 18.6262 13 19.4857 13L19.5 13C19.7761 13 20 12.7761 20 12.5L20 11.5C20 11.2239 19.7761 11 19.5 11L19.4857 11C18.6262 11 17.8669 10.4788 17.5455 9.70385C17.2235 8.92727 17.3929 8.02132 18.0003 7.41389L18.0104 7.40381C18.2057 7.20854 18.2057 6.89196 18.0104 6.6967L17.3033 5.98959C17.108 5.79433 16.7915 5.79433 16.5962 5.98959L16.5861 5.99968C15.9787 6.60711 15.0727 6.77651 14.2962 6.45448C13.5212 6.13311 13 5.37381 13 4.51426L13 4.5C13 4.22386 12.7761 4 12.5 4L11.5 4C11.2239 4 11 4.22386 11 4.5L11 4.51426C11 5.37381 10.4788 6.13311 9.70384 6.45448C8.92725 6.77651 8.02132 6.60711 7.41389 5.99968L7.40381 5.98959C7.20854 5.79433 6.89196 5.79433 6.6967 5.98959L5.98959 6.6967C5.79433 6.89196 5.79433 7.20854 5.98959 7.40381L5.99967 7.41389C6.60711 8.02132 6.77651 8.92727 6.45448 9.70385C6.13311 10.4788 5.37382 11 4.51426 11L4.5 11C4.22386 11 4 11.2239 4 11.5L4 12.5C4 12.7761 4.22386 13 4.5 13L4.51426 13C5.37382 13 6.13311 13.5212 6.45447 14.2961C6.77651 15.0727 6.60711 15.9787 5.99968 16.5861L5.98959 16.5962C5.79433 16.7915 5.79433 17.108 5.98959 17.3033L6.6967 18.0104C6.89196 18.2057 7.20854 18.2057 7.4038 18.0104L7.41389 18.0003C8.02132 17.3929 8.92726 17.2235 9.70384 17.5455C10.4788 17.8669 11 18.6262 11 19.4857L11 19.5Z"}),p("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 14C13.1046 14 14 13.1046 14 12C14 10.8954 13.1046 10 12 10C10.8954 10 10 10.8954 10 12C10 13.1046 10.8954 14 12 14ZM12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16Z"})]})}function tO(e){return p("svg",{...e,viewBox:"0 0 16 16",fill:"currentcolor",children:p("path",{d:"M8.01042 1.3418C4.32842 1.3418 1.34375 4.3266 1.34375 8.00847C1.34375 11.6905 4.32842 14.6751 8.01042 14.6751C11.6924 14.6751 14.6771 11.6905 14.6771 8.00847C14.6771 4.3266 11.6924 1.3418 8.01042 1.3418ZM8.01042 4.67513C8.37842 4.67513 8.67708 4.9736 8.67708 5.3418V8.67514H10.6771L8.01042 11.3418L5.34375 8.67514H7.34375V5.3418C7.34375 4.9736 7.64242 4.67513 8.01042 4.67513Z"})})}function nO(e){return p("svg",{...e,viewBox:"0 0 16 16",fill:"currentcolor",children:p("path",{d:"M7.81333 1.33662C6.07787 1.38545 4.42992 2.10935 3.21991 3.35437C2.0099 4.59939 1.3333 6.26732 1.33398 8.00346C1.33478 9.7711 2.03752 11.4661 3.28771 12.7157C4.5379 13.9653 6.23319 14.6673 8.00083 14.6673C9.76847 14.6673 11.4638 13.9653 12.714 12.7157C13.9641 11.4661 14.6669 9.7711 14.6677 8.00346C14.668 7.11195 14.4896 6.22943 14.1429 5.4081C13.7962 4.58678 13.2883 3.84332 12.6492 3.22173C12.0101 2.60015 11.2529 2.11306 10.4222 1.78926C9.59161 1.46547 8.70448 1.31155 7.81333 1.33662ZM8.00083 4.67003C8.92086 4.67003 9.75038 5.00753 10.3551 5.60755L11.3343 4.67003V7.33679H11.2718H10.2093H8.66755L9.62591 6.33676C9.21457 5.93674 8.64705 5.67005 8.0217 5.67005C6.98901 5.67005 6.13082 6.4034 5.83414 7.33679H4.72995C5.04062 5.80341 6.39012 4.67003 8.00083 4.67003ZM4.66741 8.67016H4.72988H5.79241H7.33412L6.37576 9.60768C6.7871 10.0077 7.35461 10.2744 7.97997 10.2744C9.01266 10.2744 9.87085 9.60351 10.1675 8.67016H11.2717C10.961 10.1368 9.61151 11.3369 8.0008 11.3369C7.08078 11.3369 6.25125 10.9369 5.64657 10.3369L4.66738 11.3369L4.66741 8.67016Z"})})}function rO(e){return q("svg",{...e,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p("path",{d:"M4.5 9V7.5C4.5 6.30653 4.97411 5.16193 5.81802 4.31802C6.66193 3.47411 7.80653 3 9 3C10.1935 3 11.3381 3.47411 12.182 4.31802C13.0259 5.16193 13.5 6.30653 13.5 7.5V9M3 13.5C3 13.8978 3.15804 14.2794 3.43934 14.5607C3.72064 14.842 4.10218 15 4.5 15C4.89782 15 5.27936 14.842 5.56066 14.5607C5.84196 14.2794 6 13.8978 6 13.5C6 13.1022 5.84196 12.7206 5.56066 12.4393C5.27936 12.158 4.89782 12 4.5 12C4.10218 12 3.72064 12.158 3.43934 12.4393C3.15804 12.7206 3 13.1022 3 13.5ZM12 13.5C12 13.8978 12.158 14.2794 12.4393 14.5607C12.7206 14.842 13.1022 15 13.5 15C13.8978 15 14.2794 14.842 14.5607 14.5607C14.842 14.2794 15 13.8978 15 13.5C15 13.1022 14.842 12.7206 14.5607 12.4393C14.2794 12.158 13.8978 12 13.5 12C13.1022 12 12.7206 12.158 12.4393 12.4393C12.158 12.7206 12 13.1022 12 13.5Z",stroke:"currentcolor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),p("path",{d:"M11.25 6.75L13.5 9L15.75 6.75",stroke:"currentcolor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}function oO(e){return p("svg",{...e,width:"10",height:"7",viewBox:"0 0 10 7",fill:"currentcolor",children:p("path",{d:"M0.539174 0.830403L0.539396 0.830693L4.81717 6.41675L0.539174 0.830403ZM0.539174 0.830403C0.492941 0.770121 0.486776 0.69618 0.524599 0.622069C0.562768 0.547277 0.632849 0.5 0.721373 0.5L9.27711 0.5C9.36895 0.5 9.44336 0.552912 9.47789 0.620069C9.51177 0.686686 9.50789 0.767089 9.45938 0.830307L9.45889 0.83095M0.539174 0.830403L9.45889 0.83095M9.45889 0.83095C9.05222 1.36269 7.09357 3.91999 5.94678 5.41729C5.588 5.88573 5.30868 6.25042 5.18122 6.41687M9.45889 0.83095L5.18122 6.41687M5.18122 6.41687C5.1428 6.46691 5.07824 6.5 4.99924 6.5M5.18122 6.41687L4.99924 6.5M4.99924 6.5C4.92023 6.5 4.85567 6.46691 4.81726 6.41687L4.99924 6.5Z",fill:"currentcolor",stroke:"currentcolor"})})}function sO(e){return q("svg",{...e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentcolor",children:[p("rect",{width:"16",height:"16",fill:"url(#pattern0_1256_1508)"}),q("defs",{children:[p("pattern",{id:"pattern0_1256_1508",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:p("use",{href:"#image0_1256_1508",transform:"scale(0.00195312)"})}),p("image",{id:"image0_1256_1508",width:"512",height:"512",preserveAspectRatio:"none",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAIABJREFUeJzt3Xm0XmV96PHvyUASCEmYQsIcJpkhzJOASLWK89KrtS6r7RLtba1Xl73qte1VOzm2asVeUMTSah3QAgoqk6gI4gACgowSCFMgCRAyD+fcP573lMPhnOS8797P+9vD97PWb53U1cV+ht9+9vPu/exngyRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiSpFwPRBZDUs62BPYDdgF2BHYAdgbkj/j0DmAVs1fk7A5g+zn/vSWBo1N+ngOUjYimwBFgMPNL5u7r0mknKzgmAVG07APsDB3T+7g/syzMX/Cp4EvgdcE8n7u78vZ00aZBUQU4ApGqYDOwHHNGJhZ2/cyMLVYLFwC2duBm4CbgrtESSACcAUpRZwAnAiZ04Dtg2tET9swy4Afh55+/1pEcNkvrICYDUH9sApwJnAKcDh5B+9Qs2ATcCP+zET4BVoSWSWsAJgJTPQuBM0kX/BNJCPG3ZBtJdgUs7cVtscSRJ2rypwAuBzwKLSCvpjeJxH3A28CJgykQ7Q5KknCaTLkznk1a8R18smx5LgXOB38PJgCSpzwZIt/Q/CzxK/EWxrfEY6c7AsZvvLkmSitkOOAu4lfiLn/Hs+C3wIWDP8TpPkqRuTAJeDHwTWEf8hc7YfGwELun02aQx+lOSpM3alvRr/3biL2pGb3EP8D6qs2OiJKnC9gE+TdqYJvoCZpQTq0hrBfZBkqRRFgIXkjalib5gGXliI/B14CgkSa13ImmzmUHiL1BG/+JK4BQkSa3zfOBq4i9ERmxcQZoESpIa7gjSL/7oC49RrfgecAySpMbZEziH9Bw4+mJjVDe+g4sFJakR5gAfBdYSf3Ex6hHrSZPFnZAk1c5k4O2k7WKjLyhGPWMZ8Of42WZJqo1TgJuIv4AYzYgbgeORJFXWHOAz+C6/UX4MAhcAc5EkVcqbgCXEXyiMZsdSUq5JkoLtBVxO/IXBaFd8B9gVSVKINwMriL8YGO2Mp0gfjBpAktQXOwMXE38BMIwh0h2oXZAkZfU60utZ0YO+YYyMJcDLkCSVbjpphX/0QG8Ym4sLgG2QasBnV6qDg0ifcT0kuiDSBNwGvBa4I7og0uZMii6AtAVvBX6BF3/Vx8GknH1DdEEkqY6mkPbwj76laxhF4hxgK6QK8hGAqmg+cCF+p13NcAPwGuDh6IJIIzkBUNWcSLr4z48uSI2sBhYB93X+LiW9KbGs8+/HSe+sD3b+Qvri3arOvycBszv/ngrM6vzfczr/3oW0Be68TiwA9sbFbt14CHgV8MvogkjDnACoSt4EfBGYFl2QinoEuBW4GbgFuJt00X8sqDxzSROBA0kLNQ/t/N09qDxVt4a0puXr0QWRpKoYAD5E+oUa/cy2KvEEcBnwV8ALgR17bdwAOwEvBf4v8F1gOfHtWZUYBD6CP74kiWnAfxA/MEfHctIvw7eT3nho0hs6k4AjgHcB/0Wa3ES3d3T8O+lxiyS10hzgx8QPxhExSHoe/HfAScDkgm1ZJ1OAU4B/BH5NfF9ExeXAtgXbUpJqZ2fgJuIH4X7HbcD7cO/4kfYk3R24lvY9BroFvyooqUX2Bu4hfvDtV9wAvBsXx03E7qQJ0m3E91u/4l7SOSFJjXYo6X3o6EE3dywHPtupr3pzDPA52vHJ5weB55XTbJJUPQtp/pf8fkx6nXF6SW2mtBfBu0ivPUb3b854FCeMkhpoIWlTmuhBNkdsAr4DHF9aa2ksk4AzSG3d1LUCy4Fjy2owSYp2NM18F/wp4FOkRWzqrwOBfyXtZhidB2XHE8CR5TWVJMU4mua9970C+FvSa4yKNZ+0TmAd8XlRZizFxwGSamx/YAnxg2lZsQr4DOkVRlXLHqQv720gPk/KiiWkrZUlqVYWkFY2Rw+iZcR60op+L/zVdwBpR8WmrBF4EF8RlFQj82nOe/7fIz1vVr0cQdppLzp/yoh7SV9hlKRKm0Pa3Sx60Cwad5A+aKN6ewPN2HfiV7htsKQK2wq4ivjBskisBt5P8z7UMgv4A+ALwM9JnxBe34nHOv/buaQLZtMuNLOBfwE2Ep9fReIHNC8vJTXAAHAB8YNkkfghsF/ZDRNsf+A8untdbhXwRZrXFkeTPsAUnWdF4gL8lLCkivkI8YNjr/EE8DaaNbDOAD5JsVXx64GP06xdDScD7yTt4RCdd73GR0pvFUnq0R8RPyj2GlfQvK+x7QfcSnltdD1pYWeT7AVcQ3z+9RKDwOvLbhBJ6tZxwFriB8VuYy3wHpr1qx/SlsuPUX57LQYO62M9+mES8F7qmb+rgaPKbxJJmpj5wEPED4bdxm+AwzO0R7T9yHPxHzkJaOLraIeT3vqIzstu40Gad2dGUg1MA64jfhDsNs4jPR9vmhmUe9t/vLie1PdNsy3wFeLzs5f+2CpDe0jSuM4lfvDrJtYCZ2VpiWr4JP1ryw/3qU4RzqJ+jwQ+m6UlJGkMbyJ+0OsmFpPWKjTV/vR3D/ynaeajgGEnk/dRSo5wUaCk7A4gXQCiB7yJxo+BuVlaojrOo//t+vm+1CzOAtJakej8nWisIJ2bkpTFDOq1ze9/0Mzn1SPNortNfsqKlcDMPtQv0izgMuLzeKLxG2DrLC0hqfW+QPwgN9H4W5r3it9Y/oC4Nm7DbefJwKeJz+eJxtl5mkFSm72K+MFtIrEeeGumNqiiyEnZOX2oX1W8nf6us+g1BoGXZWoDSS20M/VYFLUaeEmmNqiqnxPX3j/rQ/2q5NXAOuLzfEuxhHTOSlJhlxA/qG0pngZekKsBKuxxYi80bXMmsIb4fN9SXEo7HoFJyuhtxA9mW4ongBNzNUDFRf4iXduH+lXRqdTjTZg/ydUAkppvd6r/1bTHgSNzNUANRLd/W51G9ScBT9C8D11J6pOLiB/ENhdPkr7x3mbRfdBmxwDLiO+DzcV3s9VeUmNFvl42kXgaOCFb7esjuh/a7hjSRDS6HzYXb8xWe0mNswNpgVf0wDVerKadC/7GEt0XSmsCqrww8HHSOS1JW3Q+8YPWeLGe9r3qtznR/aHkFVR7n4A27dkgqUcnkjYTiR6wxos2bfIzEdH9oWe8heqeO5uAY7PVXFLtTSJ2Y5ktxUfyVb22ovtEz/Zh4vtkvPglaWtjSXqOdxA/SI0X/4Ebm4wlul/0bAPAV4jvl/HiT/NVXVJd7QAsJX6AGit+RPO/6ter6L7Rc00DfkJ834wVjwNz8lVdUh19hvjBaax4GJifsd51F90/GtvOwGLi+2es+HjGekuqmQWkbV2jB6bRsR44KWO9myC6jzS+46jmebUO2CdjvSXVyH8SPyiNFWflrHRDRPeRNq+q39L4as5KS6qHo6nmq0tfzFnpBonuJ23ZBcT30+gYxG20pda7kvjBaHT8BpiRs9INEt1X2rKZwJ3E99XouCxnpSVV20nED0KjYy1wRM5KN0x0f2liDiVtYR3dX6Pj5JyVllRdVfz1/56sNW6e6P7SxL2b+P4aHT/IWmNJlXQi8YPP6LiCtBuhJi66zzRxk4AfEt9no+OUnJWWVD2XEz/wjIwngF2z1riZovtN3dmb9Cnr6H4bGd4FkFrkOOIHndHxtqw1bq7oflP3qrjltutupJb4JvEDzsi4Bvf571V036l7A8DVxPfdyPhK1hpLqoQFwEbiB5zhWAsckLXGzRbdf+rN86jWLoEbcXfA1nHBVfu8h2p9EvRDwB3RhZD67E7gY9GFGGEy8K7oQkjKZwdgJfG/NobjDmBq1ho3X3QfqnfTgXuJ78PheBqYnbXGqhTvALTLnwDbRBdihHcDG6ILIQVZC7w3uhAjzATeHF0ISeUbAO4i/lfGcFyRt7qtEd2PKu4HxPfjcNyFC3Klxnkx8YPLcKwHDsxb3daI7ksVdyjVWph7Rt7qSuq3/yJ+YBmOz2aua5tE96XKcT7xfTkc385cV0l9tBvpWXv0wDJEWoS4c97qtkp0f6oce1Kd1wLX4znaCi4CbIc3A1OiC9FxNrAkuhBSxdwP/Gt0ITqmAn8YXQhJ5fgt8b8qhoAVwI6Z69o20X2q8sylOq/p3pq5rpL6oEr7/n8kc13bKLpPVa5/Ir5Ph+OozHWVlNnZxA8kQ8BTwJzMdW2j6H5VuXYB1hDfr0PAv2Suq6SMtgKWEj+QDAGfylzXtoruV5Xv88T36xBprU6Vtg2X1IWXEj+IDJHeQNgzc13bKrpvVb69qc6+AKdnrqsC+RZAs702ugAd3yCtcpa0Zb8DLokuRMfrogsgqXtTgMeJ/wUxBBybua5tFt23yuNU4vt2iDSGVOUVYkkTdAbxg8cQ8OPcFW256P5VPjcS379DwAtzV1QxfATQXK+JLkDHudEFkGrq7OgCdLwiugCSunM/8b8cngC2zl3RlovuY+WzDen12eg+vjd3RRXDOwDNdBiwR3QhgAuA1dGFkGpqFfD16EKQ3ko4ILoQKp8TgGZ6aXQBOr4UXQCp5r4YXYCOM6MLIGlifkT8bcMbstdSEN/Pyu824vv56uy1VN95B6B5ZgMnRhcC+Fp0AaSGqMK5dCKu52kcJwDNcyrx7+0OAd8KLoPUFF8l/m7LNKrxw0IlcgLQPKdGFwD4KfBAdCGkhrgX+GV0IYAXRBdA5XIC0DxVmAB8M7oAUsNU4ZxyQyCpwmYT/xGRQdInTdUf0YvD1B/PI76vNwCzcldU/eMdgGY5ifjPd94IPBxcBqlp7gTuCC7DFOC44DKoRE4AmuWk6AIA34sugNRQVfhC4PHRBVB5nAA0y9HRBQC+H10AqaEuiy4A3gFolIHoAqg0A8BSYPvAMjwBzCWtQ1B/RD+Hdwzpn62AZcDMwDIsA3YiPu9UAu8ANMe+xF78Aa7Ai7+Uy3riP6+9A7BPcBlUEicAzXFsdAGAq6ILIDXcldEFAI6MLoDK4QSgORZGFwC4ProAUsP9MLoApK+NqgGcADTHIcHHf5L00RJJ+dwKrAgugxOAhnAC0BwHBx//OtImQJLy2QT8PLgMTgAawglAM8wGdg0uw3XBx5faIvpc2wOYE1wGlcAJQDMcTPzrWD8LPr7UFtF3AAaAA4LLoBI4AWiGA6MLANwSXQCpJW6KLgCwX3QBVJwTgGaIfi/3YeDx4DJIbfEwsCS4DNFjjkrgBKAZ9g4+vr/+pf66Ofj43gFoACcAzRA9Abg1+PhS20Sfc04AGsAJQDM4AZDa5c7g4y8IPr5K4ASg/maR9ueOFD0YSW0Tfc7tAEwPLoMKcgJQf7tFFwC4L7oAUsvcFXz8AWCX4DKoICcA9bdz8PFXkT5DLKl/HgWeDi5D9OZjKsgJQP3NDz7+Ivw2uBRhcfDxnQDUnBOA+psbfPxFwceX2uqB4OP7CKDmnADU37zg498ffHypraLvAEQvPlZBTgDqb8fg47sDoBTjoeDjbx98fBXkBKD+or/K5QJAKUb0ubdd8PFVkBOA+psVfPzoQUhqq+hzzzsANecEoP6iJwDLg48vtdWy4OM7Aag5JwD1Nzv4+NG/QhTL78LHiZ58bx18fBXkBKD+tg0+/lPBx1esHwIHRheipVYFH9+tgGvOCUD9TQs+/trg4yvWPOAa4JDgcrTR6uDjOwGoOScA9Tc1+Pjrg4+veHOBq3AS0G9OAFSIE4D6mxJ8/A3Bx1c1DE8CDo4uSIusCT7+jODjqyAnAPUXfQdgXfDxVR1zSWsCDo0uSEtEj9/Rx1dBdmD9Rd8B8BGARtqJdCfgsOiCtED0ua+acwJQf9Ff4os+fttV8RHMTqSFgUcFl6PpJgcf33O/5pwA1F/0L/DoRxBttzK6AOPYDvg+cHh0QRos+g6AE4CacwJQf9ETgOhfIW23KLoAm7EjaU3A0dEFaSgnACrECUD9RS/C2yr4+G13c3QBtmD4TsDC6II0UPTke2Pw8VWQE4D6i74DEL0RUdtdE12ACdgBuBI4MrogDRM9AYjeh0AFOQGov+g7ANEfI2q7S4ifBE7E9sAVuDCwTNHrb5wA1JwTgPqLHvyjP0bUdk8AF0YXYoKGJwGuCShH9Nf4nADUnBOA+oveDcw7APE+BgxGF2KCtiNNAo6JLkgDzA0+vhOAmnMCUH/RnwSdE3x8wS3AF6IL0YU5wOXAsdEFqbmdg49f1VdQNUFOAOpvWfDx5wUfX8l7gbuiC9GF4UnA8dEFqbHoCcDS4OOrICcA9Rd9EkYPQkpWAv8DWBFdkC7MJr0i6CSgN9GPAKLvPqogJwD15x0ADbsZeCX1ejY7G/gBcEJ0QWooegIQPfaoICcA9Rd9Es4PPr6e7Rrg5dRrEjCLdCfgxOiC1Ez03bfou48qyAlA/UWfhHsFH1/PdTX1nQScFF2QGom+AxA99qggJwD1F30SLgg+vsZWx0nAtsD3gJOjC1IDA8CewWV4KPj4UusdRPooR2RE/xLR+J4PPE18jnQTK4EX5GiMBtmV+H7aN3stJW3W1qRNYCIHAldxV9vpwCriLxjdxNPAKTkaoyFOI7Z/BoHpuSupvHwEUH+rgceCy3Bg8PG1eXV8HDATuAwnAeOJ/vX9OLA2uAwqyAlAM9wXfPyDg4+vLavjJGAb0iTgtOByVNFBwcdfHHx8lcAJQDMsCj6+E4B6uBr4feq1hes2wKXAC6MLUjGHBx//nuDjqwROAJphUfDxnQDUx0+o32ZBW5M+e3xacDmq5NDg498dfHyVwAlAM0Q/Atgd2Cm4DJq4Oj4O2Bq4GDgyuiAVMI/48+3O4OOrBE4AmuGO6ALg513rpo6PA2YBFwE7RBckWBXeunEC0ABOAJrh1ugC4ASgjur4OGB34FPRhQhWhY2SfAQgVcgDxL4X/N38VVQmddsnYBA4NktL1MPPiG1/dwCUKua7xA4Ky/GOUp3VbRJwSZ5mqLxtgPXEtr2T/YZwwG6OW4KPvx3xK5PVu7qtCTgT2C26EAGOB6YGl+Gm4OOrJE4AmqMK6wBOiy6ACqnTmoBJwGuiCxGgCs//b44ugMrhBKA5ou8AAJwaXQAVVqdXBE+PLkCA50cXAO8ASJUzhfivvj3RKYfqrw5rAu7LVvtqmkp6RBN9jg/krqj6wzsAzbERuCG4DHOAE4PLoHLU4U7AHrRrwnkqaRFgpOE3ENQATgCa5afRBSAtJFMzVH1h4CRg2+hC9FEV1jxUYYyRNIYXE39b1gVCzVPlxwHbZax3lQwADxLf3m1cdyHVwmzSo4DoQWLv3BVV31VxErCJ9jwCOJb49t4AzMxdUfWPjwCa5SngN9GFoBq3KlWuKq4JeIA04W2DV0cXgHR3r6qPg9QDJwDNc110AYDXRhdAWVRtEvDr6AL00auiCwBcFV0ASZv3WuJvFQ6SPtqiZqrK44B35q5oRRxIfFsPAb+Xu6KSiplDelYXPVi8L3dFFSp6ErAJ2DV7Lavhg8Sfz2uAGbkrKqm4HxM/YNyWvZaKFjkJuLgP9auCAeAe4s/nK3JXVFI5PkD8gDEEHJO7ogoXMQkYpD25dQbx5/EQ8L9zV1RSOY4gfsAYAj6Xu6KqhH5PAr7Un2pVwteJP4+HgINzV1RSOQaAh4gfNFaQ9iZQ8z2f/nyL4n5g+z7VKdqOwFriz+N7cldUMXwNsJmGgB9EF4K0TetboguhvujHp4RXdI6xPOMxquStwLToQtCe9RZSY7yM+F8OQ8DdONFsk9NIG1KVnUdP0a7PTQ8AdxJ//g7RrnaXGmEr0qc7owePIdJkRO1xJLCI8vLnd6R1LW1yGvHn7RCwFJict6qScjif+AFkCLg8d0VVOdsBXyat2O81bwZJC/7m9LfolfBt4s/bIeALuSsqKY+XED+ADA/kB2auq6rpWOAS0sY9E82XTaTnzm151W+0Qyg2cSoz/PqfVFNTSbfwogeRIeDzmeuqatsV+AvgIuA+nj0h2NT53y4ibe/blh3+xvNV4s/XIdKbRK7fkWrsC8QPJEOk98TnZ66r6mMy6THBdviMeaT9qMYnvYeAf8pcV0mZvZD4gWQ43BhI2rwvEX+eDkdbH8FIjVGVvcSHgPXA3nmrK9XWHsA64s/TIeAO0tihBvP5TvMNkd4GqIKpwF9FF0KqqPeTXt+tgnNJY4ekmtuFanwieIj0fPOAvNWVamc30id3o8/PIdJdiJ3yVldSP11M/MAyHF/PXFepbr5M/Hnp+Sk1VFW2Bh4iveO8MG91pdo4nO72ScgdL8pbXUn9NhlYTPzgMhzuDiglVxJ/Pg6H3+6QGuqDxA8wI+P1easrVd6riD8PR8Y781ZXUpTt6c832ycaj9DOfd4lgBmkDx1Fn4fD8RQwK2uNJYX6HPEDzcj4bN7qSpX1D8SffyPjE3mrKynaPlRnq9GhTlmOzlpjqXoOoDqb/gyfh3vlrLCkariQ+AFnZPwS94NXe0wCriX+vBsZX8taY0mVcQzxA87ocPGR2uJdxJ9vI2MQOCxrjSVVyk+IH3hGxlN4C1LNtwBYSfz5NjIuzlpjSZXzAuIHntFxDb6DrOaaBPyI+PNsdByXs9KSqulq4gef0fHerDWW4ryf+PNrdFyRtcaSKusk4geg0bGWtDWq1CRHUa1V/8NxYs5KS6q27xE/CI2OO4Btc1Za6qOZpJyOPq9Gh8/+pZY7irQKOHowGh2+lqSmuID482l0bMI7bZKAi4gfkMaKs3JWWuqDPyP+PBorLshZaUn1sT/VfD65Fjg5Y72lnI6jmufVOtLriJIEwKeIH5jGiqXAvhnrLeUwn2p9fntkfDRjvSXV0CzS1/miB6ex4nb8aqDqYzrwM+LPm7FiCTA7X9Ul1dVZxA9Q48X3gSn5qi6VYgD4CvHny3jxx/mqLqnOJpE+zBM9SI0X/5yv6lIp/o7482S8uBF32pS0GadSzdcCh+Pt+aouFfIO4s+P8WITbvojaQK+RPyANV6sB16dr+pST14JbCT+/Bgv/l++qktqku2BR4kftMaLdcCZ2Wovdec0YDXx58V48TAuopXUhdcTP3BtaRLw0my1lybmeGAF8efD5uK12WovqbEuJn7w2lysIv36kiIcCTxB/HmwufhOttpLarTdgKeIH8Q2F0/j4ib131GkTaqi839zsRzYNVcDSGq+txM/kG0pngSOzdUA0ignUP1f/kPAm3I1gKT2uIT4wWxL8TRwRq4GkDpOofrP/IdIH/iSpMLmUt1tgkfGGuAVmdpAeiXVXu0/HEtI56wkleIlVHuDoOHYALwlTxOoxd5Btd/zH45BnARLyuCzxA9wEx0EP0zal10qYgD4W+JzeqLxmTzNIKntpgE3Ez/ITTS+AczI0hJqg2nAvxGfxxONm0lfIpSkLA4mLbiLHuwmGj8B5mVpCTXZLsDPic/ficYKYL8sLSFJI1R9l8DR8SBwXJaWUBMdBzxEfN52E2/M0hKSNIZPET/odRNrgbdlaQk1yZ+TtpmOztduwuf+kvpqCvBD4ge/buObwOwM7aF6mwl8lfj87DZ+CmyVoT0kabN2Jt1ejx4Eu407gYUZ2kP1dBRwB/F52W0sJp2DkhTieNIGPNGDYbexFngPMKn8JlFNTALeD6wnPh+7jTW4rkVSBbyeemwSNFb8CNi7/CZRxS0g9X10/vUSg8Abym8SSerN+4kfGHuNp0k7vblxUPNNAv4CWEl83vUaHyy9VSSpoHOJHxyLxI+BA0tvFVXFAcC1xOdZkTi/9FaRpBJMAb5P/CBZJNaRthF2R7Xm2Br4e+r3et/ouApX/EuqsFnAr4kfLIvGvcCrS24b9d+rgEXE51PR+CXp3JKkSpsL3E78oFlGXA0cXm7zqA8OAi4lPn/KiLvxdT9JNbI7zfjlNUT6DOz5wJ5lNpCy2A34MrCJ+LwpIxYDe5TZQJLUD/tQvz3VNxdrgU8DO5XZSCrFnsDZ1HNPivHiMVyUKqnG9gceJX4wLTNWkvZf363EdlJvFpD6Yi3xeVH2xf/QEttJkkIsBJ4gflAtO9YCnyddhNRfhwBfIT2eic6DsuNx4LDymkqSYi0k/aqJHlxzxEbgW8CppbWWxjIAnAZ8m+Y84x/r4u+iU0mNcxDNWhMwVtwI/Anp63Iqx07Ae0kfcYru35zxKP7yl9RgewH3ED/Y5o4VwAXAGaW0WvsMACcD5wCrie/P3HE/ab2MJDXa7jT/19zIuA34a2DfMhqv4Q4k7XXfhknicNxBOickqRXm0YwdA7uNG4C/xF97wwaAY4F/BH5LfP/0O24kbZwlSa2yLfX/dkCRuAP4GGnxYJv2eJ9KejRyNvAg8f0QFd8nnQOS1EpTSM95owfj6FhJ2rr23cARwOQijVox2wCnA/8XuJJ6f4q3rDiXlPuS1HrvAwaJH5irEiuAK0hfJjwT2KX3pu27ecArgU8CPwM2EN+eVYlB4AO9N61UnoHoAkgjvJ60j7uf4h3bY6R1E7cAd3XiDmBJUHl2BfYjLW48iPQK22G4VfJ4VgNvBb4RXRAJnACoeo4DLsRtdruxEnigE4tJz9WXdWIpaRfGFcD6zt9NPPcRwzY8sw5hEukivhNpgdq8Ef+e3/n3XsDWmerTRPeTPi99U3RBpGFOAFRFOwL/ie/QqxmuBV5L3J0aaUxNWmik5lhNmgBsA5yAE1XV1+eAN5LuvEiSuvBK4EniF28ZRjexAngDkqRCDiItfIse1A1jIvEr3PVRNeAjANXB48D5pE1TjsNHAqqmIdLnoV9PyllJUonOoPlfFDTqF0uAVyBJympH4CLiB33DGAIuI70qKUnqk7NwgaARF0+SNvaRJAWYT9o4KPpiYLQrvoOf8JWkSng57f6ynNGfeBR4M5KkStkOOA8/KmSUH5tIX/BSbQqmAAAQ9ElEQVTbDklSZZ0C3Ej8RcNoRvwMOAZJUi1MIt2qfYT4C4hRz1gGvAv3S5GkWpoFfBxYR/wFxahHrCHlzBwkSbW3L/AtXB9gjB+bgC8DeyBJapyjgO8Sf7ExqhXfBQ5DktR4x5He5Y6+8BixcQUpFyRJLXMKcA3xFyKjv3EpcCySpNY7FvgGsJH4i5ORJ9YDXwGORJKkUfYCPorfGGhSrAA+g4v7JEkTsD3wf4AHiL+AGb3F7cBfkF4FlSSpK5OAM0iPB9YTf1EzNh8bSYs7zwAGxuhPSZK6Nh/4AHAP8Rc649lxC/BeYN64vSdJUkEDwGnAOcDjxF/82hqPAv8MLNxsb0mSlMFk4GTSIrMlxF8Umx5LgQtIn3+eOoH+kSQpu62AM4EvAg8Sf7FsSiwCPke66+KHeaSSuEhGymdv0i/VlwHPB6bFFqc2NgI3kBbzXckzn3aWVCInAFJ/bAu8EDgdOIm07/yU0BJVxwbgl8CPOnEtsDK0RFILOAGQYswEjidNBk7q/Hvb0BL1z+PALzrxU+A6YFVoiaQWcgIgVcNk4HnAoaS7A4d2Yq/AMhU1/Pz+tk78inTRXxRXJEnDnABI1TabNBE4gDQZ2AtY0In5YaV6tkeB+zrxu87f3wC/BZ4OLJekzXACINXXdNKEYDdgJ2CHcWJGJyBNKCaRXqGb2fnfNvDsZ+4rSLfkn+r8ewXwBOnW/WPAI6SL/hJgMbAmQ90kSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZJUAQPRBdAWzQAWALt3Ymdg287/Pr3z/7MWWAM8DSwBFgMPAIs6/7vay/xRr2YBh5PyZy9gD2AXYCtgDjAVmEzKnxXABuBRUt48ANwP/BpY2t9ia6KcAFTLZOAY4GRgIXAksD8wqcf/3iBwF3BjJ34K/ALYVLikqiLzR0XsC7wYeD4pd/alnGvEA6T8uR74AXALMFTCf1eqvTnAW4GvA8tIJ0bOWNY51ls6x1a9mT/q1QBwIvAvwD3kz53heBj4EvD7pEmr1CpTgVcBF5JusfbrxBsda4BvAK/olEn1YP6oiD2AD9Pfi/548Qjwz8DBWWssVcC2wLtIt8SiT7yxTsQPAdvlqrwKM39UxOHABcB64vNlrLgWeDk+mlbDbAd8jLRQJvok21I8Bfwj3t6tEvNHRRwOfI/43Jho/Bw4PUtLSH00HXgv/Xk2W3YsBd4DTCu9VTRR5o+K2B34N9Kizeh86CUuBQ4pvVWkPjgDuJf4k6ho3IOz8Qjmj3o1ifSoaCXx/V80NpDuKA2/sipV2nbAeaRXqKJPnrJiEPgi3tbtB/NHRRxIel0zus/LjjtIr7dKlXUyaROV6JMlVywmvTakPMwfFfFWYBXx/ZwrNgJ/Q+/7WkhZDJBuuVV1dW2ZsYG02tuTsDzmj4qYDpxDfN/2K64G5pXSclJBM4BvE39S9Du+ic/lymD+qIh5wK+I789+xyLgoOLNJ/Vue+AnxJ8MUXE9sFPhVmwv88f8KWIf4G7i+zEqlgOnFG5FqQd7AXcSfxJEx29JO4upO3th/pg/vTuG9KpldP9FxxrSTpRS3+xGM17RKivuBnYt1KLtYv6YP0Uchhf/kbEOeFmhFpUmaGfgduKTvmpxFzC/QLu2hflj/hTxPNInd6P7q2qxDnhJgXaVtmgW8Bvik72qcTNpv3qNzfwxf4rYFXiI+H6qaqwEjui5daXNmAR8h/gkr3pchp/4HIv5Y/4UMR24gfj+qXo8BOzSYxtL4/oU8cldl/hEj23cZOaP+dOrAeCrxPdLXeI6/AaFSvQ64pO6bvGanlq6mcwf86eI/0l8f9QtPtNTS0uj7EY9v8YWHcvx9S4wf8yfYg6k2dv75opB4KU9tLf03yYB1xCfzHWNq2j3lq/mj/lTxFbAjcT3Q13jYWDHrltd6vhz4pO47vGOrlu9Ocwf86eIDxLf/nWP87tudQmYS7oNGZ3AdY/ltHO7V/PH/Clid9JrbdHtX/cYxO2C1YPziU/epsQXu2z7JjB/zJ8iLiS+3ZsStwBTumt+tdmRpJljdOI2JTbRrg06zB/zp4iTiG/zpsUfd9UDarVLiE/YpsW3u+qBejN/zJ8iriC+vZsW9+JdAE2Av97yxCBwdBf9UFfmj/lTxAnEt3VT4y0T7wa11UXEJ2pT41td9ENdmT/mTxGXEt/OTY27aPdrpc8xEF2AitkduA/3Is9lE7APcH90QTIxf/Jqev7sAfwO8yenF5EesQhnQ6OdhSdfTpNp9mIc8yevpufP2zF/cnt7dAGqxDsAz5hC+mXhl6TyegTYE9gQXZCSmT/9Yf6oiI2k/Hk4uiBVUKcJwCzgTOB04HBgL2AOMDWwTP20grQ16uWk91oXAY8Cs0lt8DzgYNItrt8HZoSUUlVl/qgI82dsG4AnSe3xa+Bq0jqOpwPL1Cj7A+fR3g9i3A38GbBNF202E/hT4IEKlN8wf4z6hvnTfawibV61XxdtplFmAJ8kzbCiOzQi1gB/TfogSK+mAR8A1lWgPob5Y9QnzJ/isR74ODC9QBu20n7ArcR3YFTcDxxauBWfcSRwTwXqZZg/RvXD/Ck3rgfmF27FllgIPEZ8p0XFzeRZCDQfuK0C9TPMH6O6Yf7kicXAYYVbseH2o90X/9yrgOeSFqtE19Mwf4zqhfmTNxYD84o2YlPNoN23/ddQ7m238RzdOVZ0fQ3zx6hOmD/9ietJayMqoUqbTnwUeFV0IQJ9BPhmH47zMGlf9Rf24VjqH/NHRZg//bEbqf7XBJcDqM4+APuTng+19WtN95DeoV3fp+NNB35L2ktB9Wf+qAjzp79Wkh53PxpdkKpsBfw+2nvxB/g0/Tv5ANaSXk9RM5g/KsL86a+ZwN9EFwKqcQdgFml7z62jCxJkBWnhzao+H3c26XZcW9u9KcwfFWH+xFhFWhC4MrIQVbgDcCbtTQJI22v2++QDeAq4LOC4Kpf5oyLMnxjbkK59oaowATg9ugDBLg889rWBx1Y5zB8VYf7ECb/2VWECcHh0AYLdEnjsGwKPrXKYPyrC/IkTfu2rwgRgQXQBgi0KPPZDgcdWORYFHtv8qb9Fgcdue/6EX/uqsAhwHcU+OFF300ltEGFrYp7/qTzmj4owf+KsI/hDQVW4A9B2ka8/bgo8tsph/qgI86fFqjABWBFdgGDdfGe7bLMDj61ymD8qwvyJ81R0AaowAbgvugDB9g889t6Bx1Y5zB8VYf7E+V10AaowAfh1dAGCHRJ47PBVqCrM/FER5k+cm6MLUIUJwNXRBQj2osBjt/WDHE1i/qgI8yfOVdEFqMJbADNJH0WIfBYVaS2wM/1fC7ENqd1n9vm4Kpf5oyLMnxhuBdyxEvhadCECTQf+MOC4b6S9J1+TmD8qwvyJ8VWCL/5QjTsAkD6NeBswNbogQRaT2qBf7+NuRfocZ9sX4TSF+aMizJ/+Wg8cSAUWAU6OLkDHcmBb4KToggSZDaymf3tj/yXwuj4dS/mZPyrC/OmvTwAXRheiaqYD1wNDLY31wDGFW3HLTiA994uur2H+GNUJ86c/cR0wrXArNtR80u2o6E6KintI3+bOZXfgkQrU0zB/jOqF+ZM3HiAt/NNmHEa7JwG3AXMLt+Jz7U768ld0/Qzzx6humD954gHg0MKt2BI7AT8ivtOiYjFwXOFWfMYJtHvm3bYwfwzzpzpxHf7y79o04MOkVyWiOzAi1gAfoNjXorbq/Dfa/MytrWH+GOZPbKwD/gGf+RcyD/g87Z0ILAL+lO4+nLENcBZwbwXKb5g/Rn1jEeZPt7ESOIcavOZYlX0AJmImcCbwAuAIYAEwhzTLbIPVwGWkV3VuAB4ClgEbSe2wAFhIap+X0u5NNvRc5o+KMH/Gth54kvRRu5uAH5LaKXyTn4mo0wQgtymk2e6uweVoukeAPYEN0QUpmfnTH03On/vJuwpfacKyJ/BwdEGqoApbAVfFRuBL0YVogS/QvMEbzJ9+aXL+fDm6EC1wMV78/5t3AJ5td9KtnKrskNg0m4B9SL90msj8yavp+bMHaXtY8yefFwFXRBeiKrwD8GyLgUuiC9FgF9HcwRvMn9yanj8PAN+LLkSD3QVcGV0IVdtCYJD4laRNi0Hg8C76oa7MH/OniOOJb+umxpu76Ae12MXEJ2vT4ltd9UC9mT/mTxE/IL69mxb3kBZaSlvkr7hyYxPt+PU2zPwxf4o4kfg2b1q8pZsOkM4jPmmbEud22fZNYP6YP0V8g/h2b0rciAsr1aUdgKXEJ2/dYxnp2w5tY/6YP0XsBjxNfPvXPQZJ3yLQGJwVjW8NaTenM6MLUnP/C/hJdCECmD/laGv+rCBdwM6ILkjNfRk4O7oQqqdJwFXEz2LrGlfQ7ldNzR/zp4ippG13o/uhrvEQ6U6c1LNd8VZuL7GctDFO25k/5k8R++KjgF5iEHhJD+0tPcdriU/ousWre2rpZjJ/zJ8i3kF8f9Qt/qmnlpbG8Unik7ou8bEe27jJzB/zp4h/J75f6hI/Bab11szS2CaRtnmNTu6qx2W4uHQs5o/5U8R04Hri+6fqsQiY21sTS5s3C7iF+CSvatxEe74D3gvzx/wpYj7pexPR/VTVWAEc1nPrShMwF7id+GSvWtwJzCvQrm1h/pg/RewPPEJ8f1UtVgMvKNCu0oTtStpbOjrpqxJ3A7sUatF2MX/MnyIOxTdLRsY63G9DfbYncAfxyR8dt+PrWr0wf8yfIo4CHiO+/6JjNfCygm0p9WQ74MfEnwRRcR2wY+FWbC/zx/wpYm/SN+6j+zEqlgPPL9yKUgEzgG8SfzL0O75GWpmsYswfFbEz8Avi+7PfcR9wQAntJxU2ALyL9Cwq+sTIHRuA93XqrHKYPypiOvAZ4vu2X3EVaeIjVcqJNPs1nQfwy1o5mT8q4o+AVcT3c67YCPw17f4+hCpuDvAF0l7U0SdMWTFI+ib7nBLbSWMzf1TEAcC1xPd52fFb4KQS20nK6nTS603RJ07RuAs4rdym0QSYP+rVJOCdNOMjQuuBv8f1IqqhacC7qec7u4+TnktvVXqraKLMHxWxG/Al0q3z6HzoJS4BDiq9VaQ+mwP8A/Ak8SfVluJJ4O+A2VlaQr0wf1TEocClxOfGRONnwKlZWkIKNJP0q2gR8SfZ6LiPtDrb57TVZf6oiMOAc4A1xOfL6BgErgBenq32UkVMIe1e9XXSTlZRJ91q4D9J22j6Bbb6MH9UxK7A31CNTYQeAj6B7/SrpWYDbyYNpI+T/4R7HPhq55iz+lA/5WX+qIjjSXsI9HMy8CBwHvAinDiGcjOOaplE2uP7JODIzr+fR+8nySbSfvM3Ar8Cftr592DhkqqKzB8VsTfwYuBkUu7sRznv3C8i5c/1wOXArSX8N1UCJwDVN5304Zg9SB9N2Zn0q286aRtZSLdi15EWYD1G2nBlMXA/sLbP5VW1mD/q1bbA4aSJwR6d2IX0dsoc0hsek3gmd9YDS0h580Dn76+BZf0uuCRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJOf1/TBeQ5OE/WfQAAAAASUVORK5CYII="})]})]})}function iO(e){return p("svg",{...e,viewBox:"0 0 24 24",fill:"currentcolor",children:p("path",{d:"M11.9981 4.46484C11.1693 4.46484 10.4981 5.13609 10.4981 5.96484H6.74805C6.33405 5.96484 5.99805 6.30084 5.99805 6.71484C5.99805 7.12884 6.33405 7.46483 6.74805 7.46483H17.2481C17.6621 7.46483 17.9981 7.12884 17.9981 6.71484C17.9981 6.30084 17.6621 5.96484 17.2481 5.96484H13.4981C13.4981 5.13609 12.8268 4.46484 11.9981 4.46484ZM6.74805 8.96483V16.4648C6.74805 18.1073 8.1018 19.4415 9.74805 19.4415L14.2713 19.4648C15.9176 19.4648 17.2481 18.1111 17.2481 16.4648V8.96483H6.74805ZM10.4981 11.2148C10.9121 11.2148 11.2481 11.5508 11.2481 11.9648V16.4648C11.2481 16.8788 10.9121 17.2148 10.4981 17.2148C10.0841 17.2148 9.74805 16.8788 9.74805 16.4648V11.9648C9.74805 11.5508 10.0841 11.2148 10.4981 11.2148ZM13.4981 11.2148C13.9121 11.2148 14.2481 11.5508 14.2481 11.9648V16.4648C14.2481 16.8788 13.9121 17.2148 13.4981 17.2148C13.0841 17.2148 12.7481 16.8788 12.7481 16.4648V11.9648C12.7481 11.5508 13.0841 11.2148 13.4981 11.2148Z"})})}function aO(e){return p("svg",{...e,viewBox:"0 0 16 16",fill:"currentcolor",children:p("path",{d:"M7.99935 1.30273C7.26269 1.30273 6.66602 1.8994 6.66602 2.63606H3.33268C2.96468 2.63606 2.66602 2.93473 2.66602 3.30273C2.66602 3.67073 2.96468 3.96939 3.33268 3.96939H12.666C13.034 3.96939 13.3327 3.67073 13.3327 3.30273C13.3327 2.93473 13.034 2.63606 12.666 2.63606H9.33269C9.33269 1.8994 8.73602 1.30273 7.99935 1.30273ZM3.33268 5.30272V11.9694C3.33268 13.4294 4.53602 14.6154 5.99935 14.6154L10.02 14.636C11.4834 14.636 12.666 13.4327 12.666 11.9694V5.30272H3.33268ZM6.66602 7.30272C7.03402 7.30272 7.33269 7.60138 7.33269 7.96938V11.9694C7.33269 12.3374 7.03402 12.636 6.66602 12.636C6.29802 12.636 5.99935 12.3374 5.99935 11.9694V7.96938C5.99935 7.60138 6.29802 7.30272 6.66602 7.30272ZM9.33269 7.30272C9.70069 7.30272 9.99936 7.60138 9.99936 7.96938V11.9694C9.99936 12.3374 9.70069 12.636 9.33269 12.636C8.96469 12.636 8.66602 12.3374 8.66602 11.9694V7.96938C8.66602 7.60138 8.96469 7.30272 9.33269 7.30272Z"})})}function cO(e){return q("svg",{...e,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p("path",{d:"M10 8.5V8H5.5V12C5.5 12.1326 5.55268 12.2598 5.64645 12.3536C5.74021 12.4473 5.86739 12.5 6 12.5H10V12C10 11.7348 10.1054 11.4804 10.2929 11.2929C10.4804 11.1054 10.7348 11 11 11H13C13.2652 11 13.5196 11.1054 13.7071 11.2929C13.8946 11.4804 14 11.7348 14 12V14C14 14.2652 13.8946 14.5196 13.7071 14.7071C13.5196 14.8946 13.2652 15 13 15H11C10.7348 15 10.4804 14.8946 10.2929 14.7071C10.1054 14.5196 10 14.2652 10 14V13.5H6C5.60218 13.5 5.22064 13.342 4.93934 13.0607C4.65804 12.7794 4.5 12.3978 4.5 12V5H4C3.73478 5 3.48043 4.89464 3.29289 4.70711C3.10536 4.51957 3 4.26522 3 4V2C3 1.73478 3.10536 1.48043 3.29289 1.29289C3.48043 1.10536 3.73478 1 4 1H6C6.26522 1 6.51957 1.10536 6.70711 1.29289C6.89464 1.48043 7 1.73478 7 2V4C7 4.26522 6.89464 4.51957 6.70711 4.70711C6.51957 4.89464 6.26522 5 6 5H5.5V7H10V6.5C10 6.23478 10.1054 5.98043 10.2929 5.79289C10.4804 5.60536 10.7348 5.5 11 5.5H13C13.2652 5.5 13.5196 5.60536 13.7071 5.79289C13.8946 5.98043 14 6.23478 14 6.5V8.5C14 8.76522 13.8946 9.01957 13.7071 9.20711C13.5196 9.39464 13.2652 9.5 13 9.5H11C10.7348 9.5 10.4804 9.39464 10.2929 9.20711C10.1054 9.01957 10 8.76522 10 8.5Z",fill:"currentcolor"}),p("line",{x1:"1.93934",y1:"13.5858",x2:"14.2946",y2:"1.23053",stroke:"#FCFCFC",strokeWidth:"3"}),p("path",{d:"M2.04419 13.5317L13.5758 2.00013",stroke:"currentcolor",strokeLinecap:"round"})]})}function lO(e){return p("svg",{...e,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("g",{id:"Triangle Down",children:p("path",{id:"Shape",d:"M4.7998 7.20001H13.1998L8.9998 12.6L4.7998 7.20001Z",fill:"currentColor"})})})}function uO(e){return q("svg",{...e,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p("path",{d:"M21.2247 30H10.7906C5.09802 30 3.97038 26.6304 5.81808 22.5283L7.77448 18.1731C7.77448 18.1731 11.9318 18.0133 16.0076 19.3452C20.0834 20.677 23.9283 18.1598 23.9283 18.1598L24.1864 18L26.2108 22.5416C28.0313 26.6437 26.8357 30 21.2247 30Z",fill:"currentcolor"}),p("path",{d:"M20.6368 8.58926H20.421L23.2936 15.3453L22.7407 15.7068C22.7137 15.7207 19.6658 17.7364 16.6313 16.7077C13.462 15.6095 10.2792 15.4148 8.71478 15.387L11.6009 8.58926H11.1963C10.3197 8.58926 9.51048 8.22783 8.93056 7.63007C8.35065 7.03231 8 6.19822 8 5.29463C8 3.48745 9.42956 2 11.1963 2H20.7851C21.6752 2 22.4709 2.37534 23.0508 2.9731C23.8061 3.75158 24.1972 4.89149 23.9005 6.10091C23.5498 7.60226 22.1472 8.58926 20.6368 8.58926Z",fill:"currentcolor"})]})}function dO(e){return p("svg",{...e,viewBox:"0 0 24 24",fill:"currentcolor",children:p("path",{d:"M4.09245 12.0893L4 11.9998L4.09245 11.9103L4.66414 11.3568L4.66493 11.356L9.81374 6.37154C10.1808 6.01623 10.7758 6.01623 11.1428 6.37154C11.5098 6.72685 11.5098 7.30291 11.1428 7.65822L7.59798 11.09L19.0602 11.09C19.5792 11.09 20 11.4973 20 11.9998C20 12.5023 19.5792 12.9096 19.0602 12.9096L7.59798 12.9096L11.1428 16.3413C11.5098 16.6967 11.5098 17.2727 11.1428 17.628C10.7758 17.9834 10.1808 17.9834 9.81375 17.628L4.66493 12.6435L4.66414 12.6427L4.09245 12.0893Z"})})}function fO(e){return p("svg",{...e,viewBox:"0 0 24 24",fill:"currentcolor",children:p("path",{d:"M14.0098 3.95312C14.0098 2.84812 13.1144 1.95312 12.0098 1.95312C10.9052 1.95312 10.0098 2.84812 10.0098 3.95312C10.0098 5.05812 10.9052 5.95311 12.0098 5.95311C13.1144 5.95311 14.0098 5.05812 14.0098 3.95312ZM14.0098 11.9531C14.0098 10.8481 13.1144 9.9531 12.0098 9.9531C10.9052 9.9531 10.0098 10.8481 10.0098 11.9531C10.0098 13.0581 10.9052 13.9531 12.0098 13.9531C13.1144 13.9531 14.0098 13.0581 14.0098 11.9531ZM14.0098 19.9531C14.0098 18.8481 13.1144 17.9531 12.0098 17.9531C10.9052 17.9531 10.0098 18.8481 10.0098 19.9531C10.0098 21.0581 10.9052 21.9531 12.0098 21.9531C13.1144 21.9531 14.0098 21.0581 14.0098 19.9531Z"})})}function hO(e){return p("svg",{...e,viewBox:"0 0 24 24",fill:"currentcolor",children:p("path",{d:"M12 3C7.0293 3 3 7.0293 3 12C3 16.9707 7.0293 21 12 21C16.9707 21 21 16.9707 21 12C21 7.0293 16.9707 3 12 3ZM12 7.5C12.4968 7.5 12.9 7.9032 12.9 8.4V12.9C12.9 13.3968 12.4968 13.8 12 13.8C11.5032 13.8 11.1 13.3968 11.1 12.9V8.4C11.1 7.9032 11.5032 7.5 12 7.5ZM12 14.7C12.4968 14.7 12.9 15.1032 12.9 15.6C12.9 16.0968 12.4968 16.5 12 16.5C11.5032 16.5 11.1 16.0968 11.1 15.6C11.1 15.1032 11.5032 14.7 12 14.7Z"})})}function pO(e){return p("svg",{...e,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{d:"M11.1823 2.99902H12.8787L9.17256 7.23492L13.5326 12.999H10.1182L7.44435 9.50313L4.38487 12.999H2.68743L6.65153 8.46825L2.46948 2.99902H5.96948L8.38641 6.19441L11.1823 2.99902ZM10.5869 11.9836H11.5269L5.45923 3.96107H4.45051L10.5869 11.9836Z",fill:"currentcolor"})})}function mO(e){return p("svg",{...e,viewBox:"0 0 16 16",fill:"currentcolor",children:p("path",{d:"M3.32875 2.60352C3.15815 2.60352 2.97975 2.66085 2.84955 2.79085C2.58921 3.05152 2.58921 3.48884 2.84955 3.74951L7.03708 7.93685L2.84955 12.1242C2.58921 12.3849 2.58921 12.8222 2.84955 13.0828C3.10995 13.3428 3.54755 13.3428 3.80795 13.0828L7.99541 8.89552L12.1829 13.0828C12.4433 13.3428 12.8809 13.3428 13.1413 13.0828C13.4016 12.8222 13.4016 12.3849 13.1413 12.1242L8.95375 7.93685L13.1413 3.74951C13.4016 3.48884 13.4016 3.05152 13.1413 2.79085C13.0111 2.66085 12.8326 2.60352 12.6621 2.60352C12.4915 2.60352 12.3131 2.66085 12.1829 2.79085L7.99541 6.97818L3.80795 2.79085C3.67775 2.66085 3.49935 2.60352 3.32875 2.60352Z"})})}function gO(e){return p("svg",{...e,viewBox:"0 0 24 24",fill:"currentcolor",children:p("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.9993 8.51506L15.4844 7L11.9994 10.4852L8.51497 7.00057L7 8.51562L10.4844 12.0003L7.00056 15.4843L8.51552 16.9994L11.9994 13.5153L15.4838 17L16.9988 15.4849L13.5144 12.0003L16.9993 8.51506Z"})})}function bO(e){return p("svg",{...e,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9069 4.70801C12.3372 4.823 12.676 5.16182 12.791 5.5921C13 6.37194 13 7.99903 13 7.99903C13 7.99903 13 9.62613 12.791 10.406C12.676 10.8362 12.3372 11.1751 11.9069 11.2901C11.1271 11.499 8 11.499 8 11.499C8 11.499 4.87291 11.499 4.09306 11.2901C3.66282 11.1751 3.32395 10.8362 3.20896 10.406C3 9.62613 3 7.99903 3 7.99903C3 7.99903 3 6.37194 3.20896 5.5921C3.32395 5.16182 3.66282 4.823 4.09306 4.70801C4.87291 4.49902 8 4.49902 8 4.49902C8 4.49902 11.1271 4.49902 11.9069 4.70801ZM9.59094 7.99912L6.97729 9.47629V6.52177L9.59094 7.99912Z",fill:"currentcolor"})})}const yO={CalendarTime:fE,CaretLeft:hE,CaretRight:pE,ArrowCouterclockwise:mE,ArrowFilledRight:gE,ArrowLeft:bE,ArrowUp:yE,BarChart:vE,BaseArrowLeft:wE,BaseArrowRight:CE,Braces:xE,Branch:SE,BrickGlobe:EE,Briefcase:AE,Calendar:OE,CaretDown:kE,CaretSort:_E,Caret:IE,CheckCircleFill:PE,CheckCircle:ME,Check:RE,Checkmark:TE,ChevronDown:NE,CircleInfo:LE,Circle:DE,ClockFill:FE,ClockHistory:BE,Clock:VE,CloudSlash:zE,Collapse:HE,Compass:jE,ConnectSmall:$E,Connect:UE,Copy:ZE,Created:WE,CrossCircle:GE,Danger:qE,DescendenceModified:JE,Disconnect:YE,Discord:KE,DownloadFile:XE,Drive:QE,Duplicated:eA,Edit:tA,Ellipsis:nA,Error:rA,Ethscan:oA,Exclamation:sA,ExportCsv:iA,ExportJson:aA,ExportPdf:cA,ExportUbl:lA,ExportZip:uA,File:dA,FilesEarmark:fA,FolderClose:hA,FolderOpen:pA,FolderPlus:mA,Forum:gA,Gear:bA,Github:yA,GlobeWww:vA,Globe:wA,Hdd:CA,History:xA,InfoSquare:SA,Link:EA,Linkedin:AA,Lock:OA,M:kA,Modified:_A,Moved:IA,Npm:PA,PackageManager:MA,Pencil:RA,PeopleFill:TA,People:NA,Person:LA,PinFilled:DA,Pin:FA,PlusCircle:BA,PlusSquare:VA,Plus:zA,PowerhouseLogoSmall:HA,Project:jA,QuestionSquare:$A,RedoArrow:UA,Reload:ZA,Removed:WA,RenownHover:GA,RenownLight:qA,Renown:JA,Ring:YA,Save:KA,Search:XA,Server:QA,Settings:eO,Synced:tO,Syncing:nO,Tabler:rO,TimelineCaret:oO,Timeline:sO,TrashFill:iO,Trash:aO,TreeViewSlash:cO,TriangleDown:lO,Tube:uO,VariantArrowLeft:dO,VerticalDots:fO,WarningFill:hO,XTwitter:pO,XmarkLight:mO,Xmark:gO,Youtube:bO};function ue({name:e,size:t=24,color:n,style:r,...o}){const s=R5(t),i={color:n,...s,style:r},a=yO[e];return p(Av,{fallback:p("div",{"data-testid":"icon-fallback",style:s}),name:"icon-component",children:p(a,{...o,style:i})})}var Vu="Dialog",[f5,QG]=Br(Vu),[vO,Bn]=f5(Vu),h5=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!0}=e,a=P.useRef(null),c=P.useRef(null),[l,u]=yi({prop:r,defaultProp:o??!1,onChange:s,caller:Vu});return p(vO,{scope:t,triggerRef:a,contentRef:c,contentId:zt(),titleId:zt(),descriptionId:zt(),open:l,onOpenChange:u,onOpenToggle:P.useCallback(()=>u(d=>!d),[u]),modal:i,children:n})};h5.displayName=Vu;var p5="DialogTrigger",wO=P.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Bn(p5,n),s=ht(t,o.triggerRef);return p(Ze.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":X0(o.open),...r,ref:s,onClick:Me(e.onClick,o.onOpenToggle)})});wO.displayName=p5;var Y0="DialogPortal",[CO,m5]=f5(Y0,{forceMount:void 0}),g5=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Bn(Y0,t);return p(CO,{scope:t,forceMount:n,children:P.Children.map(r,i=>p(ln,{present:n||s.open,children:p(lc,{asChild:!0,container:o,children:i})}))})};g5.displayName=Y0;var Ul="DialogOverlay",b5=P.forwardRef((e,t)=>{const n=m5(Ul,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Bn(Ul,e.__scopeDialog);return s.modal?p(ln,{present:r||s.open,children:p(SO,{...o,ref:t})}):null});b5.displayName=Ul;var xO=qo("DialogOverlay.RemoveScroll"),SO=P.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Bn(Ul,n);return p(Lu,{as:xO,allowPinchZoom:!0,shards:[o.contentRef],children:p(Ze.div,{"data-state":X0(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Yo="DialogContent",y5=P.forwardRef((e,t)=>{const n=m5(Yo,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Bn(Yo,e.__scopeDialog);return p(ln,{present:r||s.open,children:s.modal?p(EO,{...o,ref:t}):p(AO,{...o,ref:t})})});y5.displayName=Yo;var EO=P.forwardRef((e,t)=>{const n=Bn(Yo,e.__scopeDialog),r=P.useRef(null),o=ht(t,n.contentRef,r);return P.useEffect(()=>{const s=r.current;if(s)return j0(s)},[]),p(v5,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Me(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:Me(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&s.preventDefault()}),onFocusOutside:Me(e.onFocusOutside,s=>s.preventDefault())})}),AO=P.forwardRef((e,t)=>{const n=Bn(Yo,e.__scopeDialog),r=P.useRef(!1),o=P.useRef(!1);return p(v5,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;((l=n.triggerRef.current)==null?void 0:l.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),v5=P.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...i}=e,a=Bn(Yo,n),c=P.useRef(null),l=ht(t,c);return I0(),q(Pr,{children:[p(_u,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:p(ac,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":X0(a.open),...i,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),q(Pr,{children:[p(kO,{titleId:a.titleId}),p(IO,{contentRef:c,descriptionId:a.descriptionId})]})]})}),K0="DialogTitle",w5=P.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Bn(K0,n);return p(Ze.h2,{id:o.titleId,...r,ref:t})});w5.displayName=K0;var C5="DialogDescription",x5=P.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Bn(C5,n);return p(Ze.p,{id:o.descriptionId,...r,ref:t})});x5.displayName=C5;var S5="DialogClose",OO=P.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Bn(S5,n);return p(Ze.button,{type:"button",...r,ref:t,onClick:Me(e.onClick,()=>o.onOpenChange(!1))})});OO.displayName=S5;function X0(e){return e?"open":"closed"}var E5="DialogTitleWarning",[eq,A5]=yw(E5,{contentName:Yo,titleName:K0,docsSlug:"dialog"}),kO=({titleId:e})=>{const t=A5(E5),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
42
-
43
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
44
-
45
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return P.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},_O="DialogDescriptionWarning",IO=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${A5(_O).contentName}}.`;return P.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},O5=h5,k5=g5,_5=b5,I5=y5,PO=w5,MO=x5,RO=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),TO="VisuallyHidden",P5=P.forwardRef((e,t)=>p(Ze.span,{...e,ref:t,style:{...RO,...e.style}}));P5.displayName=TO;var M5=P5;function Vr(e){const{title:t,open:n,onOpenChange:r,contentProps:o,overlayProps:s,children:i,...a}=e;return p(O5,{defaultOpen:n,onOpenChange:r,open:n,children:p(k5,{children:p(_5,{...s,className:he("data-[state=closed]:animate-fade-out data-[state=open]:animate-fade-in fixed inset-0 grid place-items-center overflow-y-auto bg-slate-900/50",s==null?void 0:s.className),children:q(I5,{...a,...o,className:he("data-[state=closed]:animate-zoom-out data-[state=open]:animate-zoom-in bg-white",o==null?void 0:o.className),children:[q(M5,{children:[p(PO,{children:t||"Modal"}),p(MO,{children:t||"Modal"})]}),i]})})})})}const Di=({active:e=!1,...t})=>{const n=he("h-8 min-w-8 border border-solid border-gray-300 bg-white px-3 py-1 text-xs text-gray-900 hover:bg-gray-100",!e&&"border-0");return p(yn,{color:"light",size:"small",...Jt(t,n),children:t.children})},NO=e=>{const{pages:t=[],goToFirstPage:n,goToLastPage:r,goToNextPage:o,goToPreviousPage:s,goToPage:i,isNextPageAvailable:a,isPreviousPageAvailable:c,hiddenNextPages:l,firstPageLabel:u="First",lastPageLabel:d="Last",nextPageLabel:f="Next",previousPageLabel:h="Previous"}=e;return q("div",{className:"flex gap-x-1",children:[u?p(Di,{disabled:!c,onClick:()=>n(),children:u}):null,h?q(Di,{disabled:!c,onClick:()=>s(),children:[p(ue,{className:"rotate-90",name:"ChevronDown",size:16}),h]}):null,t.map(g=>p(Di,{active:g.active,onClick:()=>i(g.index),children:g.number},g.index)),l?p("span",{className:"flex items-center justify-center px-2",children:"..."}):null,f?q(Di,{disabled:!a,onClick:()=>o(),children:[f,p(ue,{className:"-rotate-90",name:"ChevronDown",size:16})]}):null,d?p(Di,{disabled:!a,onClick:()=>r(),children:d}):null]})};function LO({className:e,...t}){return p("div",{className:he("shrink-0",e),...t})}function DO({className:e,...t}){return p("div",{className:he("shrink-0",e),...t})}const FO=({maxWidth:e="304px",minWidth:t="80px",className:n,children:r,...o})=>{const s=Je(null);return p("div",{...o,className:he("group flex h-full flex-col bg-slate-50",n),ref:s,style:{width:t},children:r})};function BO({className:e,children:t,...n}){const[r,o]=we(!1);function s(a){o(a.scrollHeight-a.scrollTop-a.clientHeight>1)}const i=Je(null);return Ye(()=>{if(!i.current)return;const a=new ResizeObserver(c=>{const l=c.pop();if(!l)return;const{target:u}=l;s(u)});return a.observe(i.current),()=>{a.disconnect()}},[i.current]),q(Pr,{children:[p("div",{className:he("no-scrollbar flex-1 overflow-auto text-gray-900 transition-shadow",e),onScroll:a=>s(a.currentTarget),ref:i,...n,children:t}),r?p("div",{className:"pointer-events-none z-10 -mt-12 h-12 w-full",style:{boxShadow:"inset 0px -33px 32px -16px rgba(0,0,0,0.1)"}}):null]})}function VO(e,t){const{itemsPerPage:n=20,initialPage:r=0,pageRange:o=3}=t||{},[s,i]=we(r),a=Math.ceil(e.length/n),c=s<a-1,l=s>0,u=Te(()=>{c&&i(S=>S+1)},[c,i]),d=Te(()=>{l&&i(S=>S-1)},[l,i]),f=Te(()=>{i(a-1)},[a]),h=Te(()=>{i(0)},[]),g=Te(S=>{S>=0&&S<a&&i(S)},[a]),m=Math.floor((o-1)/2),b=Math.min(o,a),y=Math.max(a-b),v=Math.min(y,Math.max(s-m,0)),w=bt(()=>{const S=[];for(let A=v;A<b+v;A++)S.push({index:A,active:A===s,number:A+1});return S},[b,v,s]),x=e.slice(s*n,(s+1)*n),C=w.length>0&&w.slice(-1)[0].index<a-1;return{pages:w,goToPage:g,pageItems:x,pageCount:a,currentPage:s,goToLastPage:f,goToFirstPage:h,goToNextPage:u,hiddenNextPages:C,goToPreviousPage:d,isNextPageAvailable:c,isPreviousPageAvailable:l}}const tq=()=>{const[e,t]=we({innerWidth:window.innerWidth,innerHeight:window.innerHeight});return Ye(()=>{const n=()=>{t({innerWidth:window.innerWidth,innerHeight:window.innerHeight})};return window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[]),e};function zO(e){return pe.forwardRef(e)}function R5(e){return e?typeof e=="number"?{width:e.toString()+"px",height:e.toString()+"px"}:{width:e,height:e}:{}}function Jt(e,t){const{className:n,...r}=e;return{className:he(t,typeof n=="string"&&n),...r}}function Kt(...e){return he(kn(e))}const T5=6048e5,HO=864e5,N5=6e4,L5=36e5,Kc=43200,yp=1440,vp=Symbol.for("constructDateFrom");function ar(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&vp in e?e[vp](t):e instanceof Date?new e.constructor(t):new Date(t)}function yt(e,t){return ar(t||e,e)}let jO={};function hc(){return jO}function va(e,t){var a,c,l,u;const n=hc(),r=(t==null?void 0:t.weekStartsOn)??((c=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((u=(l=n.locale)==null?void 0:l.options)==null?void 0:u.weekStartsOn)??0,o=yt(e,t==null?void 0:t.in),s=o.getDay(),i=(s<r?7:0)+s-r;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function Zl(e,t){return va(e,{...t,weekStartsOn:1})}function D5(e,t){const n=yt(e,t==null?void 0:t.in),r=n.getFullYear(),o=ar(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const s=Zl(o),i=ar(n,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const a=Zl(i);return n.getTime()>=s.getTime()?r+1:n.getTime()>=a.getTime()?r:r-1}function Wl(e){const t=yt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function zu(e,...t){const n=ar.bind(null,e||t.find(r=>typeof r=="object"));return t.map(n)}function wp(e,t){const n=yt(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function $O(e,t,n){const[r,o]=zu(n==null?void 0:n.in,e,t),s=wp(r),i=wp(o),a=+s-Wl(s),c=+i-Wl(i);return Math.round((a-c)/HO)}function UO(e,t){const n=D5(e,t),r=ar(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Zl(r)}function Sl(e,t){const n=+yt(e)-+yt(t);return n<0?-1:n>0?1:n}function ZO(e){return ar(e,Date.now())}function WO(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function GO(e){return!(!WO(e)&&typeof e!="number"||isNaN(+yt(e)))}function qO(e,t,n){const[r,o]=zu(n==null?void 0:n.in,e,t),s=r.getFullYear()-o.getFullYear(),i=r.getMonth()-o.getMonth();return s*12+i}function JO(e){return t=>{const r=(e?Math[e]:Math.trunc)(t);return r===0?0:r}}function YO(e,t){return+yt(e)-+yt(t)}function KO(e,t){const n=yt(e,t==null?void 0:t.in);return n.setHours(23,59,59,999),n}function XO(e,t){const n=yt(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function QO(e,t){const n=yt(e,t==null?void 0:t.in);return+KO(n,t)==+XO(n,t)}function ek(e,t,n){const[r,o,s]=zu(n==null?void 0:n.in,e,e,t),i=Sl(o,s),a=Math.abs(qO(o,s));if(a<1)return 0;o.getMonth()===1&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-i*a);let c=Sl(o,s)===-i;QO(r)&&a===1&&Sl(r,s)===1&&(c=!1);const l=i*(a-+c);return l===0?0:l}function tk(e,t,n){const r=YO(e,t)/1e3;return JO(n==null?void 0:n.roundingMethod)(r)}function nk(e,t){const n=yt(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const rk={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},ok=(e,t,n)=>{let r;const o=rk[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function j1(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const sk={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ik={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ak={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ck={date:j1({formats:sk,defaultWidth:"full"}),time:j1({formats:ik,defaultWidth:"full"}),dateTime:j1({formats:ak,defaultWidth:"full"})},lk={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},uk=(e,t,n,r)=>lk[e];function Fi(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):i;o=e.formattingValues[a]||e.formattingValues[i]}else{const i=e.defaultWidth,a=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[a]||e.values[i]}const s=e.argumentCallback?e.argumentCallback(t):t;return o[s]}}const dk={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},fk={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},hk={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},pk={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},mk={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},gk={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},bk=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},yk={ordinalNumber:bk,era:Fi({values:dk,defaultWidth:"wide"}),quarter:Fi({values:fk,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Fi({values:hk,defaultWidth:"wide"}),day:Fi({values:pk,defaultWidth:"wide"}),dayPeriod:Fi({values:mk,defaultWidth:"wide",formattingValues:gk,defaultFormattingWidth:"wide"})};function Bi(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],s=t.match(o);if(!s)return null;const i=s[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(a)?wk(a,d=>d.test(i)):vk(a,d=>d.test(i));let l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;const u=t.slice(i.length);return{value:l,rest:u}}}function vk(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function wk(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Ck(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],s=t.match(e.parsePattern);if(!s)return null;let i=e.valueCallback?e.valueCallback(s[0]):s[0];i=n.valueCallback?n.valueCallback(i):i;const a=t.slice(o.length);return{value:i,rest:a}}}const xk=/^(\d+)(th|st|nd|rd)?/i,Sk=/\d+/i,Ek={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Ak={any:[/^b/i,/^(a|c)/i]},Ok={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},kk={any:[/1/i,/2/i,/3/i,/4/i]},_k={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Ik={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Pk={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Mk={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Rk={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Tk={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Nk={ordinalNumber:Ck({matchPattern:xk,parsePattern:Sk,valueCallback:e=>parseInt(e,10)}),era:Bi({matchPatterns:Ek,defaultMatchWidth:"wide",parsePatterns:Ak,defaultParseWidth:"any"}),quarter:Bi({matchPatterns:Ok,defaultMatchWidth:"wide",parsePatterns:kk,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Bi({matchPatterns:_k,defaultMatchWidth:"wide",parsePatterns:Ik,defaultParseWidth:"any"}),day:Bi({matchPatterns:Pk,defaultMatchWidth:"wide",parsePatterns:Mk,defaultParseWidth:"any"}),dayPeriod:Bi({matchPatterns:Rk,defaultMatchWidth:"any",parsePatterns:Tk,defaultParseWidth:"any"})},F5={code:"en-US",formatDistance:ok,formatLong:ck,formatRelative:uk,localize:yk,match:Nk,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Lk(e,t){const n=yt(e,t==null?void 0:t.in);return $O(n,nk(n))+1}function Dk(e,t){const n=yt(e,t==null?void 0:t.in),r=+Zl(n)-+UO(n);return Math.round(r/T5)+1}function B5(e,t){var u,d,f,h;const n=yt(e,t==null?void 0:t.in),r=n.getFullYear(),o=hc(),s=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??o.firstWeekContainsDate??((h=(f=o.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,i=ar((t==null?void 0:t.in)||e,0);i.setFullYear(r+1,0,s),i.setHours(0,0,0,0);const a=va(i,t),c=ar((t==null?void 0:t.in)||e,0);c.setFullYear(r,0,s),c.setHours(0,0,0,0);const l=va(c,t);return+n>=+a?r+1:+n>=+l?r:r-1}function Fk(e,t){var a,c,l,u;const n=hc(),r=(t==null?void 0:t.firstWeekContainsDate)??((c=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((u=(l=n.locale)==null?void 0:l.options)==null?void 0:u.firstWeekContainsDate)??1,o=B5(e,t),s=ar((t==null?void 0:t.in)||e,0);return s.setFullYear(o,0,r),s.setHours(0,0,0,0),va(s,t)}function Bk(e,t){const n=yt(e,t==null?void 0:t.in),r=+va(n,t)-+Fk(n,t);return Math.round(r/T5)+1}function nt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Zr={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return nt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):nt(n+1,2)},d(e,t){return nt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return nt(e.getHours()%12||12,t.length)},H(e,t){return nt(e.getHours(),t.length)},m(e,t){return nt(e.getMinutes(),t.length)},s(e,t){return nt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return nt(o,t.length)}},Cs={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Cp={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return Zr.y(e,t)},Y:function(e,t,n,r){const o=B5(e,r),s=o>0?o:1-o;if(t==="YY"){const i=s%100;return nt(i,2)}return t==="Yo"?n.ordinalNumber(s,{unit:"year"}):nt(s,t.length)},R:function(e,t){const n=D5(e);return nt(n,t.length)},u:function(e,t){const n=e.getFullYear();return nt(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return nt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return nt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Zr.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return nt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=Bk(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):nt(o,t.length)},I:function(e,t,n){const r=Dk(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):nt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Zr.d(e,t)},D:function(e,t,n){const r=Lk(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):nt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return nt(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return nt(s,t.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return nt(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=Cs.noon:r===0?o=Cs.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=Cs.evening:r>=12?o=Cs.afternoon:r>=4?o=Cs.morning:o=Cs.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Zr.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Zr.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):nt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):nt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Zr.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Zr.s(e,t)},S:function(e,t){return Zr.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Sp(r);case"XXXX":case"XX":return _o(r);case"XXXXX":case"XXX":default:return _o(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Sp(r);case"xxxx":case"xx":return _o(r);case"xxxxx":case"xxx":default:return _o(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+xp(r,":");case"OOOO":default:return"GMT"+_o(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+xp(r,":");case"zzzz":default:return"GMT"+_o(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return nt(r,t.length)},T:function(e,t,n){return nt(+e,t.length)}};function xp(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),s=r%60;return s===0?n+String(o):n+String(o)+t+nt(s,2)}function Sp(e,t){return e%60===0?(e>0?"-":"+")+nt(Math.abs(e)/60,2):_o(e,t)}function _o(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=nt(Math.trunc(r/60),2),s=nt(r%60,2);return n+o+t+s}const Ep=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},V5=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Vk=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return Ep(e,t);let s;switch(r){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",Ep(r,t)).replace("{{time}}",V5(o,t))},zk={p:V5,P:Vk},Hk=/^D+$/,jk=/^Y+$/,$k=["D","DD","YY","YYYY"];function Uk(e){return Hk.test(e)}function Zk(e){return jk.test(e)}function Wk(e,t,n){const r=Gk(e,t,n);if(console.warn(r),$k.includes(e))throw new RangeError(r)}function Gk(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const qk=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Jk=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Yk=/^'([^]*?)'?$/,Kk=/''/g,Xk=/[a-zA-Z]/;function Gl(e,t,n){var u,d,f,h;const r=hc(),o=r.locale??F5,s=r.firstWeekContainsDate??((d=(u=r.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,i=r.weekStartsOn??((h=(f=r.locale)==null?void 0:f.options)==null?void 0:h.weekStartsOn)??0,a=yt(e,n==null?void 0:n.in);if(!GO(a))throw new RangeError("Invalid time value");let c=t.match(Jk).map(g=>{const m=g[0];if(m==="p"||m==="P"){const b=zk[m];return b(g,o.formatLong)}return g}).join("").match(qk).map(g=>{if(g==="''")return{isToken:!1,value:"'"};const m=g[0];if(m==="'")return{isToken:!1,value:Qk(g)};if(Cp[m])return{isToken:!0,value:g};if(m.match(Xk))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:g}});o.localize.preprocessor&&(c=o.localize.preprocessor(a,c));const l={firstWeekContainsDate:s,weekStartsOn:i,locale:o};return c.map(g=>{if(!g.isToken)return g.value;const m=g.value;(Zk(m)||Uk(m))&&Wk(m,t,String(e));const b=Cp[m[0]];return b(a,m,o.localize,l)}).join("")}function Qk(e){const t=e.match(Yk);return t?t[1].replace(Kk,"'"):e}function e_(e,t,n){const r=hc(),o=(n==null?void 0:n.locale)??r.locale??F5,s=2520,i=Sl(e,t);if(isNaN(i))throw new RangeError("Invalid time value");const a=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:i}),[c,l]=zu(n==null?void 0:n.in,...i>0?[t,e]:[e,t]),u=tk(l,c),d=(Wl(l)-Wl(c))/1e3,f=Math.round((u-d)/60);let h;if(f<2)return n!=null&&n.includeSeconds?u<5?o.formatDistance("lessThanXSeconds",5,a):u<10?o.formatDistance("lessThanXSeconds",10,a):u<20?o.formatDistance("lessThanXSeconds",20,a):u<40?o.formatDistance("halfAMinute",0,a):u<60?o.formatDistance("lessThanXMinutes",1,a):o.formatDistance("xMinutes",1,a):f===0?o.formatDistance("lessThanXMinutes",1,a):o.formatDistance("xMinutes",f,a);if(f<45)return o.formatDistance("xMinutes",f,a);if(f<90)return o.formatDistance("aboutXHours",1,a);if(f<yp){const g=Math.round(f/60);return o.formatDistance("aboutXHours",g,a)}else{if(f<s)return o.formatDistance("xDays",1,a);if(f<Kc){const g=Math.round(f/yp);return o.formatDistance("xDays",g,a)}else if(f<Kc*2)return h=Math.round(f/Kc),o.formatDistance("aboutXMonths",h,a)}if(h=ek(l,c),h<12){const g=Math.round(f/Kc);return o.formatDistance("xMonths",g,a)}else{const g=h%12,m=Math.trunc(h/12);return g<3?o.formatDistance("aboutXYears",m,a):g<9?o.formatDistance("overXYears",m,a):o.formatDistance("almostXYears",m+1,a)}}function t_(e,t){return e_(e,ZO(e),t)}function n_(e,t){const n=()=>ar(t==null?void 0:t.in,NaN),o=i_(e);let s;if(o.date){const l=a_(o.date,2);s=c_(l.restDateString,l.year)}if(!s||isNaN(+s))return n();const i=+s;let a=0,c;if(o.time&&(a=l_(o.time),isNaN(a)))return n();if(o.timezone){if(c=u_(o.timezone),isNaN(c))return n()}else{const l=new Date(i+a),u=yt(0,t==null?void 0:t.in);return u.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),u.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),u}return yt(i+a+c,t==null?void 0:t.in)}const Xc={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},r_=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,o_=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,s_=/^([+-])(\d{2})(?::?(\d{2}))?$/;function i_(e){const t={},n=e.split(Xc.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Xc.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Xc.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const o=Xc.timezone.exec(r);o?(t.time=r.replace(o[1],""),t.timezone=o[1]):t.time=r}return t}function a_(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,s=r[2]?parseInt(r[2]):null;return{year:s===null?o:s*100,restDateString:e.slice((r[1]||r[2]).length)}}function c_(e,t){if(t===null)return new Date(NaN);const n=e.match(r_);if(!n)return new Date(NaN);const r=!!n[4],o=Vi(n[1]),s=Vi(n[2])-1,i=Vi(n[3]),a=Vi(n[4]),c=Vi(n[5])-1;if(r)return m_(t,a,c)?d_(t,a,c):new Date(NaN);{const l=new Date(0);return!h_(t,s,i)||!p_(t,o)?new Date(NaN):(l.setUTCFullYear(t,s,Math.max(o,i)),l)}}function Vi(e){return e?parseInt(e):1}function l_(e){const t=e.match(o_);if(!t)return NaN;const n=$1(t[1]),r=$1(t[2]),o=$1(t[3]);return g_(n,r,o)?n*L5+r*N5+o*1e3:NaN}function $1(e){return e&&parseFloat(e.replace(",","."))||0}function u_(e){if(e==="Z")return 0;const t=e.match(s_);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return b_(r,o)?n*(r*L5+o*N5):NaN}function d_(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,s=(t-1)*7+n+1-o;return r.setUTCDate(r.getUTCDate()+s),r}const f_=[31,null,31,30,31,30,31,31,30,31,30,31];function z5(e){return e%400===0||e%4===0&&e%100!==0}function h_(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(f_[t]||(z5(e)?29:28))}function p_(e,t){return t>=1&&t<=(z5(e)?366:365)}function m_(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function g_(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function b_(e,t){return t>=0&&t<=59}var[Hu,nq]=Br("Tooltip",[Ci]),ju=Ci(),H5="TooltipProvider",y_=700,Ud="tooltip.open",[v_,Q0]=Hu(H5),j5=e=>{const{__scopeTooltip:t,delayDuration:n=y_,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=P.useRef(!0),a=P.useRef(!1),c=P.useRef(0);return P.useEffect(()=>{const l=c.current;return()=>window.clearTimeout(l)},[]),p(v_,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:P.useCallback(()=>{window.clearTimeout(c.current),i.current=!1},[]),onClose:P.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:P.useCallback(l=>{a.current=l},[]),disableHoverableContent:o,children:s})};j5.displayName=H5;var wa="Tooltip",[w_,pc]=Hu(wa),$5=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:i,delayDuration:a}=e,c=Q0(wa,e.__scopeTooltip),l=ju(t),[u,d]=P.useState(null),f=zt(),h=P.useRef(0),g=i??c.disableHoverableContent,m=a??c.delayDuration,b=P.useRef(!1),[y,v]=yi({prop:r,defaultProp:o??!1,onChange:A=>{A?(c.onOpen(),document.dispatchEvent(new CustomEvent(Ud))):c.onClose(),s==null||s(A)},caller:wa}),w=P.useMemo(()=>y?b.current?"delayed-open":"instant-open":"closed",[y]),x=P.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b.current=!1,v(!0)},[v]),C=P.useCallback(()=>{window.clearTimeout(h.current),h.current=0,v(!1)},[v]),S=P.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{b.current=!0,v(!0),h.current=0},m)},[m,v]);return P.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),p(V0,{...l,children:p(w_,{scope:t,contentId:f,open:y,stateAttribute:w,trigger:u,onTriggerChange:d,onTriggerEnter:P.useCallback(()=>{c.isOpenDelayedRef.current?S():x()},[c.isOpenDelayedRef,S,x]),onTriggerLeave:P.useCallback(()=>{g?C():(window.clearTimeout(h.current),h.current=0)},[C,g]),onOpen:x,onClose:C,disableHoverableContent:g,children:n})})};$5.displayName=wa;var Zd="TooltipTrigger",U5=P.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=pc(Zd,n),s=Q0(Zd,n),i=ju(n),a=P.useRef(null),c=ht(t,a,o.onTriggerChange),l=P.useRef(!1),u=P.useRef(!1),d=P.useCallback(()=>l.current=!1,[]);return P.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),p(Ru,{asChild:!0,...i,children:p(Ze.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:Me(e.onPointerMove,f=>{f.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:Me(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:Me(e.onPointerDown,()=>{o.open&&o.onClose(),l.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:Me(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:Me(e.onBlur,o.onClose),onClick:Me(e.onClick,o.onClose)})})});U5.displayName=Zd;var e2="TooltipPortal",[C_,x_]=Hu(e2,{forceMount:void 0}),Z5=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=pc(e2,t);return p(C_,{scope:t,forceMount:n,children:p(ln,{present:n||s.open,children:p(lc,{asChild:!0,container:o,children:r})})})};Z5.displayName=e2;var ti="TooltipContent",W5=P.forwardRef((e,t)=>{const n=x_(ti,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=pc(ti,e.__scopeTooltip);return p(ln,{present:r||i.open,children:i.disableHoverableContent?p(G5,{side:o,...s,ref:t}):p(S_,{side:o,...s,ref:t})})}),S_=P.forwardRef((e,t)=>{const n=pc(ti,e.__scopeTooltip),r=Q0(ti,e.__scopeTooltip),o=P.useRef(null),s=ht(t,o),[i,a]=P.useState(null),{trigger:c,onClose:l}=n,u=o.current,{onPointerInTransitChange:d}=r,f=P.useCallback(()=>{a(null),d(!1)},[d]),h=P.useCallback((g,m)=>{const b=g.currentTarget,y={x:g.clientX,y:g.clientY},v=__(y,b.getBoundingClientRect()),w=I_(y,v),x=P_(m.getBoundingClientRect()),C=R_([...w,...x]);a(C),d(!0)},[d]);return P.useEffect(()=>()=>f(),[f]),P.useEffect(()=>{if(c&&u){const g=b=>h(b,u),m=b=>h(b,c);return c.addEventListener("pointerleave",g),u.addEventListener("pointerleave",m),()=>{c.removeEventListener("pointerleave",g),u.removeEventListener("pointerleave",m)}}},[c,u,h,f]),P.useEffect(()=>{if(i){const g=m=>{const b=m.target,y={x:m.clientX,y:m.clientY},v=(c==null?void 0:c.contains(b))||(u==null?void 0:u.contains(b)),w=!M_(y,i);v?f():w&&(f(),l())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[c,u,i,l,f]),p(G5,{...e,ref:s})}),[E_,A_]=Hu(wa,{isInside:!1}),O_=Lv("TooltipContent"),G5=P.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,c=pc(ti,n),l=ju(n),{onClose:u}=c;return P.useEffect(()=>(document.addEventListener(Ud,u),()=>document.removeEventListener(Ud,u)),[u]),P.useEffect(()=>{if(c.trigger){const d=f=>{const h=f.target;h!=null&&h.contains(c.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,u]),p(ac,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:q(z0,{"data-state":c.stateAttribute,...l,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[p(O_,{children:r}),p(E_,{scope:n,isInside:!0,children:p(M5,{id:c.contentId,role:"tooltip",children:o||r})})]})})});W5.displayName=ti;var q5="TooltipArrow",k_=P.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=ju(n);return A_(q5,n).isInside?null:p(H0,{...o,...r,ref:t})});k_.displayName=q5;function __(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function I_(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function P_(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function M_(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],c=t[i],l=a.x,u=a.y,d=c.x,f=c.y;u>r!=f>r&&n<(d-l)*(r-u)/(f-u)+l&&(o=!o)}return o}function R_(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),T_(t)}function T_(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var ql=j5,J5=$5,Y5=U5,K5=Z5,X5=W5;const N_=P.forwardRef(({children:e,className:t,...n},r)=>p(X5,{ref:r,...n,className:Kt("z-50 overflow-hidden rounded-md text-sm","border border-gray-200 bg-white text-gray-900 dark:border-gray-900 dark:bg-slate-900 dark:text-gray-200","px-3 py-1.5 shadow-md","data-[state=open]:animate-fade-in data-[state=open]:animate-zoom-in","data-[state=closed]:animate-fade-out data-[state=closed]:animate-zoom-out","data-[side=bottom]:animate-slide-in-from-top","data-[side=left]:animate-slide-in-from-right","data-[side=right]:animate-slide-in-from-left","data-[side=top]:animate-slide-in-from-bottom",t),children:e})),Wd=({content:e,children:t,triggerAsChild:n=!1,delayDuration:r=0,...o})=>{const{open:s,defaultOpen:i,onOpenChange:a,...c}=o;return q(J5,{defaultOpen:i,delayDuration:r,onOpenChange:a,open:s,children:[p(Y5,{asChild:n,type:n?void 0:"button",children:t}),p(K5,{children:p(N_,{sideOffset:3,...c,children:e})})]})},Q5=({children:e,required:t,disabled:n,description:r,hasError:o,inline:s,className:i,...a})=>{const c=Kt("inline-flex items-center text-sm font-medium",s?"leading-[22px]":"leading-4",`text-gray-900 ${s?"dark:text-gray-400":"dark:text-gray-50"}`,o&&"group-hover:!text-red-900 dark:group-hover:!text-red-900",o&&s&&"text-red-800 dark:text-red-800",o&&!s&&"text-red-900 dark:text-red-900",n&&`cursor-not-allowed text-gray-700 ${s?"dark:text-gray-600":"dark:text-gray-300"}`,s?!n&&"group-hover:text-gray-900 dark:group-hover:text-slate-50":"mb-[3px]",i);if(!e)return null;const l={...a};return q("label",{className:c,...l,children:[e,t&&p("span",{className:Kt("ml-1 text-gray-800 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-slate-50",o&&`${s?"!text-red-800":"!text-red-900"} group-hover:!text-red-900`),children:"*"}),r&&p(ql,{children:p(Wd,{content:r,children:p(ue,{name:"CircleInfo",size:16,className:Kt("ml-1 cursor-pointer text-gray-600 hover:text-gray-500 dark:text-gray-500 dark:hover:text-gray-500",n&&"text-gray-500")})})})]})},L_="p",Ap=({children:e,type:t="info",as:n,className:r,...o})=>{const s=n||L_,a=Pe("mb-0 inline-flex items-center text-xs font-medium",{error:"text-red-900 dark:text-red-900",info:"text-blue-900 dark:text-blue-900",warning:"text-yellow-900 dark:text-yellow-900"}[t],r);return p(s,{"data-type":t,className:a,...o,children:e})};var mc=e=>e.type==="checkbox",Io=e=>e instanceof Date,Nt=e=>e==null;const e4=e=>typeof e=="object";var ft=e=>!Nt(e)&&!Array.isArray(e)&&e4(e)&&!Io(e),t4=e=>ft(e)&&e.target?mc(e.target)?e.target.checked:e.target.value:e,D_=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,n4=(e,t)=>e.has(D_(t)),F_=e=>{const t=e.constructor&&e.constructor.prototype;return ft(t)&&t.hasOwnProperty("isPrototypeOf")},t2=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Ot(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(t2&&(e instanceof Blob||r))&&(n||ft(e)))if(t=n?[]:{},!n&&!F_(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=Ot(e[o]));else return e;return t}var $u=e=>/^\w*$/.test(e),dt=e=>e===void 0,n2=e=>Array.isArray(e)?e.filter(Boolean):[],r2=e=>n2(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ge=(e,t,n)=>{if(!t||!ft(e))return n;const r=($u(t)?[t]:r2(t)).reduce((o,s)=>Nt(o)?o:o[s],e);return dt(r)||r===e?dt(e[t])?n:e[t]:r},tn=e=>typeof e=="boolean",rt=(e,t,n)=>{let r=-1;const o=$u(t)?[t]:r2(t),s=o.length,i=s-1;for(;++r<s;){const a=o[r];let c=n;if(r!==i){const l=e[a];c=ft(l)||Array.isArray(l)?l:isNaN(+o[r+1])?{}:[]}if(a==="__proto__"||a==="constructor"||a==="prototype")return;e[a]=c,e=e[a]}};const Jl={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},En={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},br={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},o2=pe.createContext(null);o2.displayName="HookFormContext";const gc=()=>pe.useContext(o2),rq=e=>{const{children:t,...n}=e;return pe.createElement(o2.Provider,{value:n},t)};var r4=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const s in e)Object.defineProperty(o,s,{get:()=>{const i=s;return t._proxyFormState[i]!==En.all&&(t._proxyFormState[i]=!r||En.all),n&&(n[i]=!0),e[i]}});return o};const s2=typeof window<"u"?P.useLayoutEffect:P.useEffect;function o4(e){const t=gc(),{control:n=t.control,disabled:r,name:o,exact:s}=e||{},[i,a]=pe.useState(n._formState),c=pe.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return s2(()=>n._subscribe({name:o,formState:c.current,exact:s,callback:l=>{!r&&a({...n._formState,...l})}}),[o,r,s]),pe.useEffect(()=>{c.current.isValid&&n._setValid(!0)},[n]),pe.useMemo(()=>r4(i,n,c.current,!1),[i,n])}var Qn=e=>typeof e=="string",s4=(e,t,n,r,o)=>Qn(e)?(r&&t.watch.add(e),ge(n,e,o)):Array.isArray(e)?e.map(s=>(r&&t.watch.add(s),ge(n,s))):(r&&(t.watchAll=!0),n);function B_(e){const t=gc(),{control:n=t.control,name:r,defaultValue:o,disabled:s,exact:i}=e||{},a=pe.useRef(o),[c,l]=pe.useState(n._getWatch(r,a.current));return s2(()=>n._subscribe({name:r,formState:{values:!0},exact:i,callback:u=>!s&&l(s4(r,n._names,u.values||n._formValues,!1,a.current))}),[r,n,s,i]),pe.useEffect(()=>n._removeUnmounted()),c}function V_(e){const t=gc(),{name:n,disabled:r,control:o=t.control,shouldUnregister:s}=e,i=n4(o._names.array,n),a=B_({control:o,name:n,defaultValue:ge(o._formValues,n,ge(o._defaultValues,n,e.defaultValue)),exact:!0}),c=o4({control:o,name:n,exact:!0}),l=pe.useRef(e),u=pe.useRef(o.register(n,{...e.rules,value:a,...tn(e.disabled)?{disabled:e.disabled}:{}})),d=pe.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ge(c.errors,n)},isDirty:{enumerable:!0,get:()=>!!ge(c.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!ge(c.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!ge(c.validatingFields,n)},error:{enumerable:!0,get:()=>ge(c.errors,n)}}),[c,n]),f=pe.useCallback(b=>u.current.onChange({target:{value:t4(b),name:n},type:Jl.CHANGE}),[n]),h=pe.useCallback(()=>u.current.onBlur({target:{value:ge(o._formValues,n),name:n},type:Jl.BLUR}),[n,o._formValues]),g=pe.useCallback(b=>{const y=ge(o._fields,n);y&&b&&(y._f.ref={focus:()=>b.focus&&b.focus(),select:()=>b.select&&b.select(),setCustomValidity:v=>b.setCustomValidity(v),reportValidity:()=>b.reportValidity()})},[o._fields,n]),m=pe.useMemo(()=>({name:n,value:a,...tn(r)||c.disabled?{disabled:c.disabled||r}:{},onChange:f,onBlur:h,ref:g}),[n,r,c.disabled,f,h,g,a]);return pe.useEffect(()=>{const b=o._options.shouldUnregister||s;o.register(n,{...l.current.rules,...tn(l.current.disabled)?{disabled:l.current.disabled}:{}});const y=(v,w)=>{const x=ge(o._fields,v);x&&x._f&&(x._f.mount=w)};if(y(n,!0),b){const v=Ot(ge(o._options.defaultValues,n));rt(o._defaultValues,n,v),dt(ge(o._formValues,n))&&rt(o._formValues,n,v)}return!i&&o.register(n),()=>{(i?b&&!o._state.action:b)?o.unregister(n):y(n,!1)}},[n,o,i,s]),pe.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),pe.useMemo(()=>({field:m,formState:c,fieldState:d}),[m,c,d])}const i2=e=>e.render(V_(e));var z_=(e,t,n,r,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:o||!0}}:{},aa=e=>Array.isArray(e)?e:[e],Op=()=>{let e=[];return{get observers(){return e},next:o=>{for(const s of e)s.next&&s.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(s=>s!==o)}}),unsubscribe:()=>{e=[]}}},Gd=e=>Nt(e)||!e4(e);function Xr(e,t){if(Gd(e)||Gd(t))return e===t;if(Io(e)&&Io(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n){const s=e[o];if(!r.includes(o))return!1;if(o!=="ref"){const i=t[o];if(Io(s)&&Io(i)||ft(s)&&ft(i)||Array.isArray(s)&&Array.isArray(i)?!Xr(s,i):s!==i)return!1}}return!0}var qt=e=>ft(e)&&!Object.keys(e).length,a2=e=>e.type==="file",An=e=>typeof e=="function",Yl=e=>{if(!t2)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},i4=e=>e.type==="select-multiple",c2=e=>e.type==="radio",H_=e=>c2(e)||mc(e),U1=e=>Yl(e)&&e.isConnected;function j_(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=dt(e)?r++:e[t[r++]];return e}function $_(e){for(const t in e)if(e.hasOwnProperty(t)&&!dt(e[t]))return!1;return!0}function xt(e,t){const n=Array.isArray(t)?t:$u(t)?[t]:r2(t),r=n.length===1?e:j_(e,n),o=n.length-1,s=n[o];return r&&delete r[s],o!==0&&(ft(r)&&qt(r)||Array.isArray(r)&&$_(r))&&xt(e,n.slice(0,-1)),e}var a4=e=>{for(const t in e)if(An(e[t]))return!0;return!1};function Kl(e,t={}){const n=Array.isArray(e);if(ft(e)||n)for(const r in e)Array.isArray(e[r])||ft(e[r])&&!a4(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Kl(e[r],t[r])):Nt(e[r])||(t[r]=!0);return t}function c4(e,t,n){const r=Array.isArray(e);if(ft(e)||r)for(const o in e)Array.isArray(e[o])||ft(e[o])&&!a4(e[o])?dt(t)||Gd(n[o])?n[o]=Array.isArray(e[o])?Kl(e[o],[]):{...Kl(e[o])}:c4(e[o],Nt(t)?{}:t[o],n[o]):n[o]=!Xr(e[o],t[o]);return n}var zi=(e,t)=>c4(e,t,Kl(t));const kp={value:!1,isValid:!1},_p={value:!0,isValid:!0};var l4=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!dt(e[0].attributes.value)?dt(e[0].value)||e[0].value===""?_p:{value:e[0].value,isValid:!0}:_p:kp}return kp},u4=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>dt(e)?e:t?e===""?NaN:e&&+e:n&&Qn(e)?new Date(e):r?r(e):e;const Ip={isValid:!1,value:null};var d4=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Ip):Ip;function Pp(e){const t=e.ref;return a2(t)?t.files:c2(t)?d4(e.refs).value:i4(t)?[...t.selectedOptions].map(({value:n})=>n):mc(t)?l4(e.refs).value:u4(dt(t.value)?e.ref.value:t.value,e)}var U_=(e,t,n,r)=>{const o={};for(const s of e){const i=ge(t,s);i&&rt(o,s,i._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}},Xl=e=>e instanceof RegExp,Hi=e=>dt(e)?e:Xl(e)?e.source:ft(e)?Xl(e.value)?e.value.source:e.value:e,Mp=e=>({isOnSubmit:!e||e===En.onSubmit,isOnBlur:e===En.onBlur,isOnChange:e===En.onChange,isOnAll:e===En.all,isOnTouch:e===En.onTouched});const Rp="AsyncFunction";var Z_=e=>!!e&&!!e.validate&&!!(An(e.validate)&&e.validate.constructor.name===Rp||ft(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===Rp)),W_=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),Tp=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const ca=(e,t,n,r)=>{for(const o of n||Object.keys(e)){const s=ge(e,o);if(s){const{_f:i,...a}=s;if(i){if(i.refs&&i.refs[0]&&t(i.refs[0],o)&&!r)return!0;if(i.ref&&t(i.ref,i.name)&&!r)return!0;if(ca(a,t))break}else if(ft(a)&&ca(a,t))break}}};function Np(e,t,n){const r=ge(e,n);if(r||$u(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const s=o.join("."),i=ge(t,s),a=ge(e,s);if(i&&!Array.isArray(i)&&n!==s)return{name:n};if(a&&a.type)return{name:s,error:a};if(a&&a.root&&a.root.type)return{name:`${s}.root`,error:a.root};o.pop()}return{name:n}}var G_=(e,t,n,r)=>{n(e);const{name:o,...s}=e;return qt(s)||Object.keys(s).length>=Object.keys(t).length||Object.keys(s).find(i=>t[i]===(!r||En.all))},q_=(e,t,n)=>!e||!t||e===t||aa(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),J_=(e,t,n,r,o)=>o.isOnAll?!1:!n&&o.isOnTouch?!(t||e):(n?r.isOnBlur:o.isOnBlur)?!e:(n?r.isOnChange:o.isOnChange)?e:!0,Y_=(e,t)=>!n2(ge(e,t)).length&&xt(e,t),K_=(e,t,n)=>{const r=aa(ge(e,n));return rt(r,"root",t[n]),rt(e,n,r),e},El=e=>Qn(e);function Lp(e,t,n="validate"){if(El(e)||Array.isArray(e)&&e.every(El)||tn(e)&&!e)return{type:n,message:El(e)?e:"",ref:t}}var xs=e=>ft(e)&&!Xl(e)?e:{value:e,message:""},Dp=async(e,t,n,r,o,s)=>{const{ref:i,refs:a,required:c,maxLength:l,minLength:u,min:d,max:f,pattern:h,validate:g,name:m,valueAsNumber:b,mount:y}=e._f,v=ge(n,m);if(!y||t.has(m))return{};const w=a?a[0]:i,x=_=>{o&&w.reportValidity&&(w.setCustomValidity(tn(_)?"":_||""),w.reportValidity())},C={},S=c2(i),A=mc(i),k=S||A,O=(b||a2(i))&&dt(i.value)&&dt(v)||Yl(i)&&i.value===""||v===""||Array.isArray(v)&&!v.length,T=z_.bind(null,m,r,C),B=(_,R,E,V=br.maxLength,D=br.minLength)=>{const H=_?R:E;C[m]={type:_?V:D,message:H,ref:i,...T(_?V:D,H)}};if(s?!Array.isArray(v)||!v.length:c&&(!k&&(O||Nt(v))||tn(v)&&!v||A&&!l4(a).isValid||S&&!d4(a).isValid)){const{value:_,message:R}=El(c)?{value:!!c,message:c}:xs(c);if(_&&(C[m]={type:br.required,message:R,ref:w,...T(br.required,R)},!r))return x(R),C}if(!O&&(!Nt(d)||!Nt(f))){let _,R;const E=xs(f),V=xs(d);if(!Nt(v)&&!isNaN(v)){const D=i.valueAsNumber||v&&+v;Nt(E.value)||(_=D>E.value),Nt(V.value)||(R=D<V.value)}else{const D=i.valueAsDate||new Date(v),H=X=>new Date(new Date().toDateString()+" "+X),N=i.type=="time",F=i.type=="week";Qn(E.value)&&v&&(_=N?H(v)>H(E.value):F?v>E.value:D>new Date(E.value)),Qn(V.value)&&v&&(R=N?H(v)<H(V.value):F?v<V.value:D<new Date(V.value))}if((_||R)&&(B(!!_,E.message,V.message,br.max,br.min),!r))return x(C[m].message),C}if((l||u)&&!O&&(Qn(v)||s&&Array.isArray(v))){const _=xs(l),R=xs(u),E=!Nt(_.value)&&v.length>+_.value,V=!Nt(R.value)&&v.length<+R.value;if((E||V)&&(B(E,_.message,R.message),!r))return x(C[m].message),C}if(h&&!O&&Qn(v)){const{value:_,message:R}=xs(h);if(Xl(_)&&!v.match(_)&&(C[m]={type:br.pattern,message:R,ref:i,...T(br.pattern,R)},!r))return x(R),C}if(g){if(An(g)){const _=await g(v,n),R=Lp(_,w);if(R&&(C[m]={...R,...T(br.validate,R.message)},!r))return x(R.message),C}else if(ft(g)){let _={};for(const R in g){if(!qt(_)&&!r)break;const E=Lp(await g[R](v,n),w,R);E&&(_={...E,...T(R,E.message)},x(E.message),r&&(C[m]=_))}if(!qt(_)&&(C[m]={ref:w,..._},!r))return C}}return x(!0),C};const X_={mode:En.onSubmit,reValidateMode:En.onChange,shouldFocusError:!0};function Q_(e={}){let t={...X_,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:An(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1};const r={};let o=ft(t.defaultValues)||ft(t.values)?Ot(t.defaultValues||t.values)||{}:{},s=t.shouldUnregister?{}:Ot(o),i={action:!1,mount:!1,watch:!1},a={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,l=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let d={...u};const f={array:Op(),state:Op()},h=t.criteriaMode===En.all,g=L=>Z=>{clearTimeout(l),l=setTimeout(L,Z)},m=async L=>{if(!t.disabled&&(u.isValid||d.isValid||L)){const Z=t.resolver?qt((await A()).errors):await O(r,!0);Z!==n.isValid&&f.state.next({isValid:Z})}},b=(L,Z)=>{!t.disabled&&(u.isValidating||u.validatingFields||d.isValidating||d.validatingFields)&&((L||Array.from(a.mount)).forEach($=>{$&&(Z?rt(n.validatingFields,$,Z):xt(n.validatingFields,$))}),f.state.next({validatingFields:n.validatingFields,isValidating:!qt(n.validatingFields)}))},y=(L,Z=[],$,te,ne=!0,Q=!0)=>{if(te&&$&&!t.disabled){if(i.action=!0,Q&&Array.isArray(ge(r,L))){const le=$(ge(r,L),te.argA,te.argB);ne&&rt(r,L,le)}if(Q&&Array.isArray(ge(n.errors,L))){const le=$(ge(n.errors,L),te.argA,te.argB);ne&&rt(n.errors,L,le),Y_(n.errors,L)}if((u.touchedFields||d.touchedFields)&&Q&&Array.isArray(ge(n.touchedFields,L))){const le=$(ge(n.touchedFields,L),te.argA,te.argB);ne&&rt(n.touchedFields,L,le)}(u.dirtyFields||d.dirtyFields)&&(n.dirtyFields=zi(o,s)),f.state.next({name:L,isDirty:B(L,Z),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else rt(s,L,Z)},v=(L,Z)=>{rt(n.errors,L,Z),f.state.next({errors:n.errors})},w=L=>{n.errors=L,f.state.next({errors:n.errors,isValid:!1})},x=(L,Z,$,te)=>{const ne=ge(r,L);if(ne){const Q=ge(s,L,dt($)?ge(o,L):$);dt(Q)||te&&te.defaultChecked||Z?rt(s,L,Z?Q:Pp(ne._f)):E(L,Q),i.mount&&m()}},C=(L,Z,$,te,ne)=>{let Q=!1,le=!1;const ke={name:L};if(!t.disabled){if(!$||te){(u.isDirty||d.isDirty)&&(le=n.isDirty,n.isDirty=ke.isDirty=B(),Q=le!==ke.isDirty);const Ee=Xr(ge(o,L),Z);le=!!ge(n.dirtyFields,L),Ee?xt(n.dirtyFields,L):rt(n.dirtyFields,L,!0),ke.dirtyFields=n.dirtyFields,Q=Q||(u.dirtyFields||d.dirtyFields)&&le!==!Ee}if($){const Ee=ge(n.touchedFields,L);Ee||(rt(n.touchedFields,L,$),ke.touchedFields=n.touchedFields,Q=Q||(u.touchedFields||d.touchedFields)&&Ee!==$)}Q&&ne&&f.state.next(ke)}return Q?ke:{}},S=(L,Z,$,te)=>{const ne=ge(n.errors,L),Q=(u.isValid||d.isValid)&&tn(Z)&&n.isValid!==Z;if(t.delayError&&$?(c=g(()=>v(L,$)),c(t.delayError)):(clearTimeout(l),c=null,$?rt(n.errors,L,$):xt(n.errors,L)),($?!Xr(ne,$):ne)||!qt(te)||Q){const le={...te,...Q&&tn(Z)?{isValid:Z}:{},errors:n.errors,name:L};n={...n,...le},f.state.next(le)}},A=async L=>{b(L,!0);const Z=await t.resolver(s,t.context,U_(L||a.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return b(L),Z},k=async L=>{const{errors:Z}=await A(L);if(L)for(const $ of L){const te=ge(Z,$);te?rt(n.errors,$,te):xt(n.errors,$)}else n.errors=Z;return Z},O=async(L,Z,$={valid:!0})=>{for(const te in L){const ne=L[te];if(ne){const{_f:Q,...le}=ne;if(Q){const ke=a.array.has(Q.name),Ee=ne._f&&Z_(ne._f);Ee&&u.validatingFields&&b([te],!0);const st=await Dp(ne,a.disabled,s,h,t.shouldUseNativeValidation&&!Z,ke);if(Ee&&u.validatingFields&&b([te]),st[Q.name]&&($.valid=!1,Z))break;!Z&&(ge(st,Q.name)?ke?K_(n.errors,st,Q.name):rt(n.errors,Q.name,st[Q.name]):xt(n.errors,Q.name))}!qt(le)&&await O(le,Z,$)}}return $.valid},T=()=>{for(const L of a.unMount){const Z=ge(r,L);Z&&(Z._f.refs?Z._f.refs.every($=>!U1($)):!U1(Z._f.ref))&&ee(L)}a.unMount=new Set},B=(L,Z)=>!t.disabled&&(L&&Z&&rt(s,L,Z),!Xr(X(),o)),_=(L,Z,$)=>s4(L,a,{...i.mount?s:dt(Z)?o:Qn(L)?{[L]:Z}:Z},$,Z),R=L=>n2(ge(i.mount?s:o,L,t.shouldUnregister?ge(o,L,[]):[])),E=(L,Z,$={})=>{const te=ge(r,L);let ne=Z;if(te){const Q=te._f;Q&&(!Q.disabled&&rt(s,L,u4(Z,Q)),ne=Yl(Q.ref)&&Nt(Z)?"":Z,i4(Q.ref)?[...Q.ref.options].forEach(le=>le.selected=ne.includes(le.value)):Q.refs?mc(Q.ref)?Q.refs.forEach(le=>{(!le.defaultChecked||!le.disabled)&&(Array.isArray(ne)?le.checked=!!ne.find(ke=>ke===le.value):le.checked=ne===le.value||!!ne)}):Q.refs.forEach(le=>le.checked=le.value===ne):a2(Q.ref)?Q.ref.value="":(Q.ref.value=ne,Q.ref.type||f.state.next({name:L,values:Ot(s)})))}($.shouldDirty||$.shouldTouch)&&C(L,ne,$.shouldTouch,$.shouldDirty,!0),$.shouldValidate&&F(L)},V=(L,Z,$)=>{for(const te in Z){if(!Z.hasOwnProperty(te))return;const ne=Z[te],Q=L+"."+te,le=ge(r,Q);(a.array.has(L)||ft(ne)||le&&!le._f)&&!Io(ne)?V(Q,ne,$):E(Q,ne,$)}},D=(L,Z,$={})=>{const te=ge(r,L),ne=a.array.has(L),Q=Ot(Z);rt(s,L,Q),ne?(f.array.next({name:L,values:Ot(s)}),(u.isDirty||u.dirtyFields||d.isDirty||d.dirtyFields)&&$.shouldDirty&&f.state.next({name:L,dirtyFields:zi(o,s),isDirty:B(L,Q)})):te&&!te._f&&!Nt(Q)?V(L,Q,$):E(L,Q,$),Tp(L,a)&&f.state.next({...n}),f.state.next({name:i.mount?L:void 0,values:Ot(s)})},H=async L=>{i.mount=!0;const Z=L.target;let $=Z.name,te=!0;const ne=ge(r,$),Q=Ee=>{te=Number.isNaN(Ee)||Io(Ee)&&isNaN(Ee.getTime())||Xr(Ee,ge(s,$,Ee))},le=Mp(t.mode),ke=Mp(t.reValidateMode);if(ne){let Ee,st;const jn=Z.type?Pp(ne._f):t4(L),wt=L.type===Jl.BLUR||L.type===Jl.FOCUS_OUT,Eo=!W_(ne._f)&&!t.resolver&&!ge(n.errors,$)&&!ne._f.deps||J_(wt,ge(n.touchedFields,$),n.isSubmitted,ke,le),it=Tp($,a,wt);rt(s,$,jn),wt?(ne._f.onBlur&&ne._f.onBlur(L),c&&c(0)):ne._f.onChange&&ne._f.onChange(L);const $r=C($,jn,wt),Ri=!qt($r)||it;if(!wt&&f.state.next({name:$,type:L.type,values:Ot(s)}),Eo)return(u.isValid||d.isValid)&&(t.mode==="onBlur"?wt&&m():wt||m()),Ri&&f.state.next({name:$,...it?{}:$r});if(!wt&&it&&f.state.next({...n}),t.resolver){const{errors:fn}=await A([$]);if(Q(jn),te){const Vc=Np(n.errors,r,$),zc=Np(fn,r,Vc.name||$);Ee=zc.error,$=zc.name,st=qt(fn)}}else b([$],!0),Ee=(await Dp(ne,a.disabled,s,h,t.shouldUseNativeValidation))[$],b([$]),Q(jn),te&&(Ee?st=!1:(u.isValid||d.isValid)&&(st=await O(r,!0)));te&&(ne._f.deps&&F(ne._f.deps),S($,st,Ee,$r))}},N=(L,Z)=>{if(ge(n.errors,Z)&&L.focus)return L.focus(),1},F=async(L,Z={})=>{let $,te;const ne=aa(L);if(t.resolver){const Q=await k(dt(L)?L:ne);$=qt(Q),te=L?!ne.some(le=>ge(Q,le)):$}else L?(te=(await Promise.all(ne.map(async Q=>{const le=ge(r,Q);return await O(le&&le._f?{[Q]:le}:le)}))).every(Boolean),!(!te&&!n.isValid)&&m()):te=$=await O(r);return f.state.next({...!Qn(L)||(u.isValid||d.isValid)&&$!==n.isValid?{}:{name:L},...t.resolver||!L?{isValid:$}:{},errors:n.errors}),Z.shouldFocus&&!te&&ca(r,N,L?ne:a.mount),te},X=L=>{const Z={...i.mount?s:o};return dt(L)?Z:Qn(L)?ge(Z,L):L.map($=>ge(Z,$))},j=(L,Z)=>({invalid:!!ge((Z||n).errors,L),isDirty:!!ge((Z||n).dirtyFields,L),error:ge((Z||n).errors,L),isValidating:!!ge(n.validatingFields,L),isTouched:!!ge((Z||n).touchedFields,L)}),M=L=>{L&&aa(L).forEach(Z=>xt(n.errors,Z)),f.state.next({errors:L?n.errors:{}})},Y=(L,Z,$)=>{const te=(ge(r,L,{_f:{}})._f||{}).ref,ne=ge(n.errors,L)||{},{ref:Q,message:le,type:ke,...Ee}=ne;rt(n.errors,L,{...Ee,...Z,ref:te}),f.state.next({name:L,errors:n.errors,isValid:!1}),$&&$.shouldFocus&&te&&te.focus&&te.focus()},G=(L,Z)=>An(L)?f.state.subscribe({next:$=>L(_(void 0,Z),$)}):_(L,Z,!0),W=L=>f.state.subscribe({next:Z=>{q_(L.name,Z.name,L.exact)&&G_(Z,L.formState||u,U,L.reRenderRoot)&&L.callback({values:{...s},...n,...Z})}}).unsubscribe,re=L=>(i.mount=!0,d={...d,...L.formState},W({...L,formState:d})),ee=(L,Z={})=>{for(const $ of L?aa(L):a.mount)a.mount.delete($),a.array.delete($),Z.keepValue||(xt(r,$),xt(s,$)),!Z.keepError&&xt(n.errors,$),!Z.keepDirty&&xt(n.dirtyFields,$),!Z.keepTouched&&xt(n.touchedFields,$),!Z.keepIsValidating&&xt(n.validatingFields,$),!t.shouldUnregister&&!Z.keepDefaultValue&&xt(o,$);f.state.next({values:Ot(s)}),f.state.next({...n,...Z.keepDirty?{isDirty:B()}:{}}),!Z.keepIsValid&&m()},ie=({disabled:L,name:Z})=>{(tn(L)&&i.mount||L||a.disabled.has(Z))&&(L?a.disabled.add(Z):a.disabled.delete(Z))},ce=(L,Z={})=>{let $=ge(r,L);const te=tn(Z.disabled)||tn(t.disabled);return rt(r,L,{...$||{},_f:{...$&&$._f?$._f:{ref:{name:L}},name:L,mount:!0,...Z}}),a.mount.add(L),$?ie({disabled:tn(Z.disabled)?Z.disabled:t.disabled,name:L}):x(L,!0,Z.value),{...te?{disabled:Z.disabled||t.disabled}:{},...t.progressive?{required:!!Z.required,min:Hi(Z.min),max:Hi(Z.max),minLength:Hi(Z.minLength),maxLength:Hi(Z.maxLength),pattern:Hi(Z.pattern)}:{},name:L,onChange:H,onBlur:H,ref:ne=>{if(ne){ce(L,Z),$=ge(r,L);const Q=dt(ne.value)&&ne.querySelectorAll&&ne.querySelectorAll("input,select,textarea")[0]||ne,le=H_(Q),ke=$._f.refs||[];if(le?ke.find(Ee=>Ee===Q):Q===$._f.ref)return;rt(r,L,{_f:{...$._f,...le?{refs:[...ke.filter(U1),Q,...Array.isArray(ge(o,L))?[{}]:[]],ref:{type:Q.type,name:L}}:{ref:Q}}}),x(L,!1,void 0,Q)}else $=ge(r,L,{}),$._f&&($._f.mount=!1),(t.shouldUnregister||Z.shouldUnregister)&&!(n4(a.array,L)&&i.action)&&a.unMount.add(L)}}},be=()=>t.shouldFocusError&&ca(r,N,a.mount),Oe=L=>{tn(L)&&(f.state.next({disabled:L}),ca(r,(Z,$)=>{const te=ge(r,$);te&&(Z.disabled=te._f.disabled||L,Array.isArray(te._f.refs)&&te._f.refs.forEach(ne=>{ne.disabled=te._f.disabled||L}))},0,!1))},He=(L,Z)=>async $=>{let te;$&&($.preventDefault&&$.preventDefault(),$.persist&&$.persist());let ne=Ot(s);if(f.state.next({isSubmitting:!0}),t.resolver){const{errors:Q,values:le}=await A();n.errors=Q,ne=le}else await O(r);if(a.disabled.size)for(const Q of a.disabled)rt(ne,Q,void 0);if(xt(n.errors,"root"),qt(n.errors)){f.state.next({errors:{}});try{await L(ne,$)}catch(Q){te=Q}}else Z&&await Z({...n.errors},$),be(),setTimeout(be);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:qt(n.errors)&&!te,submitCount:n.submitCount+1,errors:n.errors}),te)throw te},tt=(L,Z={})=>{ge(r,L)&&(dt(Z.defaultValue)?D(L,Ot(ge(o,L))):(D(L,Z.defaultValue),rt(o,L,Ot(Z.defaultValue))),Z.keepTouched||xt(n.touchedFields,L),Z.keepDirty||(xt(n.dirtyFields,L),n.isDirty=Z.defaultValue?B(L,Ot(ge(o,L))):B()),Z.keepError||(xt(n.errors,L),u.isValid&&m()),f.state.next({...n}))},I=(L,Z={})=>{const $=L?Ot(L):o,te=Ot($),ne=qt(L),Q=ne?o:te;if(Z.keepDefaultValues||(o=$),!Z.keepValues){if(Z.keepDirtyValues){const le=new Set([...a.mount,...Object.keys(zi(o,s))]);for(const ke of Array.from(le))ge(n.dirtyFields,ke)?rt(Q,ke,ge(s,ke)):D(ke,ge(Q,ke))}else{if(t2&&dt(L))for(const le of a.mount){const ke=ge(r,le);if(ke&&ke._f){const Ee=Array.isArray(ke._f.refs)?ke._f.refs[0]:ke._f.ref;if(Yl(Ee)){const st=Ee.closest("form");if(st){st.reset();break}}}}for(const le of a.mount)D(le,ge(Q,le))}s=Ot(Q),f.array.next({values:{...Q}}),f.state.next({values:{...Q}})}a={mount:Z.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!u.isValid||!!Z.keepIsValid||!!Z.keepDirtyValues,i.watch=!!t.shouldUnregister,f.state.next({submitCount:Z.keepSubmitCount?n.submitCount:0,isDirty:ne?!1:Z.keepDirty?n.isDirty:!!(Z.keepDefaultValues&&!Xr(L,o)),isSubmitted:Z.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:ne?{}:Z.keepDirtyValues?Z.keepDefaultValues&&s?zi(o,s):n.dirtyFields:Z.keepDefaultValues&&L?zi(o,L):Z.keepDirty?n.dirtyFields:{},touchedFields:Z.keepTouched?n.touchedFields:{},errors:Z.keepErrors?n.errors:{},isSubmitSuccessful:Z.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},se=(L,Z)=>I(An(L)?L(s):L,Z),oe=(L,Z={})=>{const $=ge(r,L),te=$&&$._f;if(te){const ne=te.refs?te.refs[0]:te.ref;ne.focus&&(ne.focus(),Z.shouldSelect&&An(ne.select)&&ne.select())}},U=L=>{n={...n,...L}},K={control:{register:ce,unregister:ee,getFieldState:j,handleSubmit:He,setError:Y,_subscribe:W,_runSchema:A,_focusError:be,_getWatch:_,_getDirty:B,_setValid:m,_setFieldArray:y,_setDisabledField:ie,_setErrors:w,_getFieldArray:R,_reset:I,_resetDefaultValues:()=>An(t.defaultValues)&&t.defaultValues().then(L=>{se(L,t.resetOptions),f.state.next({isLoading:!1})}),_removeUnmounted:T,_disableForm:Oe,_subjects:f,_proxyFormState:u,get _fields(){return r},get _formValues(){return s},get _state(){return i},set _state(L){i=L},get _defaultValues(){return o},get _names(){return a},set _names(L){a=L},get _formState(){return n},get _options(){return t},set _options(L){t={...t,...L}}},subscribe:re,trigger:F,register:ce,handleSubmit:He,watch:G,setValue:D,getValues:X,reset:se,resetField:tt,clearErrors:M,unregister:ee,setError:Y,setFocus:oe,getFieldState:j};return{...K,formControl:K}}function l2(e={}){const t=pe.useRef(void 0),n=pe.useRef(void 0),[r,o]=pe.useState({isDirty:!1,isValidating:!1,isLoading:An(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:An(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!An(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:i,...a}=Q_(e);t.current={...a,formState:r}}const s=t.current.control;return s._options=e,s2(()=>{const i=s._subscribe({formState:s._proxyFormState,callback:()=>o({...s._formState}),reRenderRoot:!0});return o(a=>({...a,isReady:!0})),s._formState.isReady=!0,i},[s]),pe.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),pe.useEffect(()=>{e.mode&&(s._options.mode=e.mode),e.reValidateMode&&(s._options.reValidateMode=e.reValidateMode)},[s,e.mode,e.reValidateMode]),pe.useEffect(()=>{e.errors&&(s._setErrors(e.errors),s._focusError())},[s,e.errors]),pe.useEffect(()=>{e.shouldUnregister&&s._subjects.state.next({values:s._getWatch()})},[s,e.shouldUnregister]),pe.useEffect(()=>{if(s._proxyFormState.isDirty){const i=s._getDirty();i!==r.isDirty&&s._subjects.state.next({isDirty:i})}},[s,r.isDirty]),pe.useEffect(()=>{e.values&&!Xr(e.values,n.current)?(s._reset(e.values,s._options.resetOptions),n.current=e.values,o(i=>({...i}))):s._resetDefaultValues()},[s,e.values]),pe.useEffect(()=>{s._state.mount||(s._setValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),t.current.formState=r4(r,s),t.current}const Ql=({messages:e,type:t="info",className:n,...r})=>{if(e.length===0)return null;if(e.length===1)return p(Ap,{type:t,...r,children:e[0]});const o={error:"before:bg-red-900 dark:before:bg-red-900",info:"before:bg-blue-900 dark:before:bg-blue-900",warning:"before:bg-orange-900 dark:before:bg-orange-900"};return p("ul",{className:Pe("flex flex-col gap-1",n),...r,children:e.map(s=>p(Ap,{as:"li",type:t,className:Pe("relative pl-4","before:absolute before:left-0 before:top-[0.4em] before:size-2 before:rounded-full",o[t]),children:s},s))})};function la(e,t,n=new Map){if(e===t)return!0;if(e===null||t===null||e===void 0||t===void 0||typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t))return n.get(e)===t?!0:(n.set(e,t),e.length===t.length&&e.every((r,o)=>la(r,t[o],n)));if(typeof e=="object"&&typeof t=="object"&&!Array.isArray(e)&&!Array.isArray(t)){if(n.get(e)===t)return!0;n.set(e,t);const r=Object.keys(e),o=Object.keys(t);return r.length===o.length&&r.every(s=>s in t&&la(e[s],t[s],n))}return!1}const eu={trimOnBlur:(e=!0)=>({transformer:t=>t==null?void 0:t.trim(),options:{trigger:"blur",if:e}}),lowercaseOnChange:(e=!0)=>({transformer:t=>t==null?void 0:t.toLowerCase(),options:{trigger:"change",if:e}}),uppercaseOnChange:(e=!0)=>({transformer:t=>t==null?void 0:t.toUpperCase(),options:{trigger:"change",if:e}}),trimOnEnter:(e=!0)=>({transformer:t=>t==null?void 0:t.trim(),options:{trigger:"keyDown",if:e}})};var lo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function eI(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Z1={},Fp;function tI(){return Fp||(Fp=1,function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function t(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}var n={exports:{}},r=n.exports={},o,s;function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?o=setTimeout:o=i}catch{o=i}try{typeof clearTimeout=="function"?s=clearTimeout:s=a}catch{s=a}})();function c(x){if(o===setTimeout)return setTimeout(x,0);if((o===i||!o)&&setTimeout)return o=setTimeout,setTimeout(x,0);try{return o(x,0)}catch{try{return o.call(null,x,0)}catch{return o.call(this,x,0)}}}function l(x){if(s===clearTimeout)return clearTimeout(x);if((s===a||!s)&&clearTimeout)return s=clearTimeout,clearTimeout(x);try{return s(x)}catch{try{return s.call(null,x)}catch{return s.call(this,x)}}}var u=[],d=!1,f,h=-1;function g(){!d||!f||(d=!1,f.length?u=f.concat(u):h=-1,u.length&&m())}function m(){if(!d){var x=c(g);d=!0;for(var C=u.length;C;){for(f=u,u=[];++h<C;)f&&f[h].run();h=-1,C=u.length}f=null,d=!1,l(x)}}r.nextTick=function(x){var C=new Array(arguments.length-1);if(arguments.length>1)for(var S=1;S<arguments.length;S++)C[S-1]=arguments[S];u.push(new b(x,C)),u.length===1&&!d&&c(m)};function b(x,C){this.fun=x,this.array=C}b.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={};function y(){}r.on=y,r.addListener=y,r.once=y,r.off=y,r.removeListener=y,r.removeAllListeners=y,r.emit=y,r.prependListener=y,r.prependOnceListener=y,r.listeners=function(x){return[]},r.binding=function(x){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(x){throw new Error("process.chdir is not supported")},r.umask=function(){return 0};var v=n.exports;const w=t(v);e.default=w,e.process=w}(Z1)),Z1}var nI=tI();const rI=xi(nI);var W1={exports:{}},Bp;function oI(){return Bp||(Bp=1,function(e){var t=function(){var n=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",s={};function i(c,l){if(!s[c]){s[c]={};for(var u=0;u<c.length;u++)s[c][c.charAt(u)]=u}return s[c][l]}var a={compressToBase64:function(c){if(c==null)return"";var l=a._compress(c,6,function(u){return r.charAt(u)});switch(l.length%4){default:case 0:return l;case 1:return l+"===";case 2:return l+"==";case 3:return l+"="}},decompressFromBase64:function(c){return c==null?"":c==""?null:a._decompress(c.length,32,function(l){return i(r,c.charAt(l))})},compressToUTF16:function(c){return c==null?"":a._compress(c,15,function(l){return n(l+32)})+" "},decompressFromUTF16:function(c){return c==null?"":c==""?null:a._decompress(c.length,16384,function(l){return c.charCodeAt(l)-32})},compressToUint8Array:function(c){for(var l=a.compress(c),u=new Uint8Array(l.length*2),d=0,f=l.length;d<f;d++){var h=l.charCodeAt(d);u[d*2]=h>>>8,u[d*2+1]=h%256}return u},decompressFromUint8Array:function(c){if(c==null)return a.decompress(c);for(var l=new Array(c.length/2),u=0,d=l.length;u<d;u++)l[u]=c[u*2]*256+c[u*2+1];var f=[];return l.forEach(function(h){f.push(n(h))}),a.decompress(f.join(""))},compressToEncodedURIComponent:function(c){return c==null?"":a._compress(c,6,function(l){return o.charAt(l)})},decompressFromEncodedURIComponent:function(c){return c==null?"":c==""?null:(c=c.replace(/ /g,"+"),a._decompress(c.length,32,function(l){return i(o,c.charAt(l))}))},compress:function(c){return a._compress(c,16,function(l){return n(l)})},_compress:function(c,l,u){if(c==null)return"";var d,f,h={},g={},m="",b="",y="",v=2,w=3,x=2,C=[],S=0,A=0,k;for(k=0;k<c.length;k+=1)if(m=c.charAt(k),Object.prototype.hasOwnProperty.call(h,m)||(h[m]=w++,g[m]=!0),b=y+m,Object.prototype.hasOwnProperty.call(h,b))y=b;else{if(Object.prototype.hasOwnProperty.call(g,y)){if(y.charCodeAt(0)<256){for(d=0;d<x;d++)S=S<<1,A==l-1?(A=0,C.push(u(S)),S=0):A++;for(f=y.charCodeAt(0),d=0;d<8;d++)S=S<<1|f&1,A==l-1?(A=0,C.push(u(S)),S=0):A++,f=f>>1}else{for(f=1,d=0;d<x;d++)S=S<<1|f,A==l-1?(A=0,C.push(u(S)),S=0):A++,f=0;for(f=y.charCodeAt(0),d=0;d<16;d++)S=S<<1|f&1,A==l-1?(A=0,C.push(u(S)),S=0):A++,f=f>>1}v--,v==0&&(v=Math.pow(2,x),x++),delete g[y]}else for(f=h[y],d=0;d<x;d++)S=S<<1|f&1,A==l-1?(A=0,C.push(u(S)),S=0):A++,f=f>>1;v--,v==0&&(v=Math.pow(2,x),x++),h[b]=w++,y=String(m)}if(y!==""){if(Object.prototype.hasOwnProperty.call(g,y)){if(y.charCodeAt(0)<256){for(d=0;d<x;d++)S=S<<1,A==l-1?(A=0,C.push(u(S)),S=0):A++;for(f=y.charCodeAt(0),d=0;d<8;d++)S=S<<1|f&1,A==l-1?(A=0,C.push(u(S)),S=0):A++,f=f>>1}else{for(f=1,d=0;d<x;d++)S=S<<1|f,A==l-1?(A=0,C.push(u(S)),S=0):A++,f=0;for(f=y.charCodeAt(0),d=0;d<16;d++)S=S<<1|f&1,A==l-1?(A=0,C.push(u(S)),S=0):A++,f=f>>1}v--,v==0&&(v=Math.pow(2,x),x++),delete g[y]}else for(f=h[y],d=0;d<x;d++)S=S<<1|f&1,A==l-1?(A=0,C.push(u(S)),S=0):A++,f=f>>1;v--,v==0&&(v=Math.pow(2,x),x++)}for(f=2,d=0;d<x;d++)S=S<<1|f&1,A==l-1?(A=0,C.push(u(S)),S=0):A++,f=f>>1;for(;;)if(S=S<<1,A==l-1){C.push(u(S));break}else A++;return C.join("")},decompress:function(c){return c==null?"":c==""?null:a._decompress(c.length,32768,function(l){return c.charCodeAt(l)})},_decompress:function(c,l,u){var d=[],f=4,h=4,g=3,m="",b=[],y,v,w,x,C,S,A,k={val:u(0),position:l,index:1};for(y=0;y<3;y+=1)d[y]=y;for(w=0,C=Math.pow(2,2),S=1;S!=C;)x=k.val&k.position,k.position>>=1,k.position==0&&(k.position=l,k.val=u(k.index++)),w|=(x>0?1:0)*S,S<<=1;switch(w){case 0:for(w=0,C=Math.pow(2,8),S=1;S!=C;)x=k.val&k.position,k.position>>=1,k.position==0&&(k.position=l,k.val=u(k.index++)),w|=(x>0?1:0)*S,S<<=1;A=n(w);break;case 1:for(w=0,C=Math.pow(2,16),S=1;S!=C;)x=k.val&k.position,k.position>>=1,k.position==0&&(k.position=l,k.val=u(k.index++)),w|=(x>0?1:0)*S,S<<=1;A=n(w);break;case 2:return""}for(d[3]=A,v=A,b.push(A);;){if(k.index>c)return"";for(w=0,C=Math.pow(2,g),S=1;S!=C;)x=k.val&k.position,k.position>>=1,k.position==0&&(k.position=l,k.val=u(k.index++)),w|=(x>0?1:0)*S,S<<=1;switch(A=w){case 0:for(w=0,C=Math.pow(2,8),S=1;S!=C;)x=k.val&k.position,k.position>>=1,k.position==0&&(k.position=l,k.val=u(k.index++)),w|=(x>0?1:0)*S,S<<=1;d[h++]=n(w),A=h-1,f--;break;case 1:for(w=0,C=Math.pow(2,16),S=1;S!=C;)x=k.val&k.position,k.position>>=1,k.position==0&&(k.position=l,k.val=u(k.index++)),w|=(x>0?1:0)*S,S<<=1;d[h++]=n(w),A=h-1,f--;break;case 2:return b.join("")}if(f==0&&(f=Math.pow(2,g),g++),d[A])m=d[A];else if(A===h)m=v+v.charAt(0);else return null;b.push(m),d[h++]=v+m.charAt(0),f--,v=m,f==0&&(f=Math.pow(2,g),g++)}}};return a}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})}(W1)),W1.exports}var oq=oI();const sI=Vv(Pe("inline-flex items-center justify-center gap-2","whitespace-nowrap rounded-md text-sm font-medium","transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:pointer-events-none","[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0"),{variants:{variant:{default:"",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent hover:text-accent-foreground"}},defaultVariants:{variant:"default"}}),iI=pe.forwardRef(({variant:e,className:t,asChild:n=!1,...r},o)=>p(n?Tv:"button",{className:Pe(sI({variant:e,className:t})),ref:o,...r}));var Vp=1,aI=.9,cI=.8,lI=.17,G1=.1,q1=.999,uI=.9999,dI=.99,fI=/[\\\/_+.#"@\[\(\{&]/,hI=/[\\\/_+.#"@\[\(\{&]/g,pI=/[\s-]/,f4=/[\s-]/g;function qd(e,t,n,r,o,s,i){if(s===t.length)return o===e.length?Vp:dI;var a=`${o},${s}`;if(i[a]!==void 0)return i[a];for(var c=r.charAt(s),l=n.indexOf(c,o),u=0,d,f,h,g;l>=0;)d=qd(e,t,n,r,l+1,s+1,i),d>u&&(l===o?d*=Vp:fI.test(e.charAt(l-1))?(d*=cI,h=e.slice(o,l-1).match(hI),h&&o>0&&(d*=Math.pow(q1,h.length))):pI.test(e.charAt(l-1))?(d*=aI,g=e.slice(o,l-1).match(f4),g&&o>0&&(d*=Math.pow(q1,g.length))):(d*=lI,o>0&&(d*=Math.pow(q1,l-o))),e.charAt(l)!==t.charAt(s)&&(d*=uI)),(d<G1&&n.charAt(l-1)===r.charAt(s+1)||r.charAt(s+1)===r.charAt(s)&&n.charAt(l-1)!==r.charAt(s))&&(f=qd(e,t,n,r,l+1,s+2,i),f*G1>d&&(d=f*G1)),d>u&&(u=d),l=n.indexOf(c,l+1);return i[a]=u,u}function zp(e){return e.toLowerCase().replace(f4," ")}function mI(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,qd(e,t,zp(e),zp(t),0,0,{})}var ji='[cmdk-group=""]',J1='[cmdk-group-items=""]',gI='[cmdk-group-heading=""]',h4='[cmdk-item=""]',Hp=`${h4}:not([aria-disabled="true"])`,Jd="cmdk-item-select",Ps="data-value",bI=(e,t,n)=>mI(e,t,n),p4=P.createContext(void 0),bc=()=>P.useContext(p4),m4=P.createContext(void 0),u2=()=>P.useContext(m4),g4=P.createContext(void 0),b4=P.forwardRef((e,t)=>{let n=Ms(()=>{var M,Y;return{search:"",value:(Y=(M=e.value)!=null?M:e.defaultValue)!=null?Y:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=Ms(()=>new Set),o=Ms(()=>new Map),s=Ms(()=>new Map),i=Ms(()=>new Set),a=y4(e),{label:c,children:l,value:u,onValueChange:d,filter:f,shouldFilter:h,loop:g,disablePointerSelection:m=!1,vimBindings:b=!0,...y}=e,v=zt(),w=zt(),x=zt(),C=P.useRef(null),S=_I();Ko(()=>{if(u!==void 0){let M=u.trim();n.current.value=M,A.emit()}},[u]),Ko(()=>{S(6,R)},[]);let A=P.useMemo(()=>({subscribe:M=>(i.current.add(M),()=>i.current.delete(M)),snapshot:()=>n.current,setState:(M,Y,G)=>{var W,re,ee,ie;if(!Object.is(n.current[M],Y)){if(n.current[M]=Y,M==="search")_(),T(),S(1,B);else if(M==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let ce=document.getElementById(x);ce?ce.focus():(W=document.getElementById(v))==null||W.focus()}if(S(7,()=>{var ce;n.current.selectedItemId=(ce=E())==null?void 0:ce.id,A.emit()}),G||S(5,R),((re=a.current)==null?void 0:re.value)!==void 0){let ce=Y??"";(ie=(ee=a.current).onValueChange)==null||ie.call(ee,ce);return}}A.emit()}},emit:()=>{i.current.forEach(M=>M())}}),[]),k=P.useMemo(()=>({value:(M,Y,G)=>{var W;Y!==((W=s.current.get(M))==null?void 0:W.value)&&(s.current.set(M,{value:Y,keywords:G}),n.current.filtered.items.set(M,O(Y,G)),S(2,()=>{T(),A.emit()}))},item:(M,Y)=>(r.current.add(M),Y&&(o.current.has(Y)?o.current.get(Y).add(M):o.current.set(Y,new Set([M]))),S(3,()=>{_(),T(),n.current.value||B(),A.emit()}),()=>{s.current.delete(M),r.current.delete(M),n.current.filtered.items.delete(M);let G=E();S(4,()=>{_(),(G==null?void 0:G.getAttribute("id"))===M&&B(),A.emit()})}),group:M=>(o.current.has(M)||o.current.set(M,new Set),()=>{s.current.delete(M),o.current.delete(M)}),filter:()=>a.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>a.current.disablePointerSelection,listId:v,inputId:x,labelId:w,listInnerRef:C}),[]);function O(M,Y){var G,W;let re=(W=(G=a.current)==null?void 0:G.filter)!=null?W:bI;return M?re(M,n.current.search,Y):0}function T(){if(!n.current.search||a.current.shouldFilter===!1)return;let M=n.current.filtered.items,Y=[];n.current.filtered.groups.forEach(W=>{let re=o.current.get(W),ee=0;re.forEach(ie=>{let ce=M.get(ie);ee=Math.max(ce,ee)}),Y.push([W,ee])});let G=C.current;V().sort((W,re)=>{var ee,ie;let ce=W.getAttribute("id"),be=re.getAttribute("id");return((ee=M.get(be))!=null?ee:0)-((ie=M.get(ce))!=null?ie:0)}).forEach(W=>{let re=W.closest(J1);re?re.appendChild(W.parentElement===re?W:W.closest(`${J1} > *`)):G.appendChild(W.parentElement===G?W:W.closest(`${J1} > *`))}),Y.sort((W,re)=>re[1]-W[1]).forEach(W=>{var re;let ee=(re=C.current)==null?void 0:re.querySelector(`${ji}[${Ps}="${encodeURIComponent(W[0])}"]`);ee==null||ee.parentElement.appendChild(ee)})}function B(){let M=V().find(G=>G.getAttribute("aria-disabled")!=="true"),Y=M==null?void 0:M.getAttribute(Ps);A.setState("value",Y||void 0)}function _(){var M,Y,G,W;if(!n.current.search||a.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let re=0;for(let ee of r.current){let ie=(Y=(M=s.current.get(ee))==null?void 0:M.value)!=null?Y:"",ce=(W=(G=s.current.get(ee))==null?void 0:G.keywords)!=null?W:[],be=O(ie,ce);n.current.filtered.items.set(ee,be),be>0&&re++}for(let[ee,ie]of o.current)for(let ce of ie)if(n.current.filtered.items.get(ce)>0){n.current.filtered.groups.add(ee);break}n.current.filtered.count=re}function R(){var M,Y,G;let W=E();W&&(((M=W.parentElement)==null?void 0:M.firstChild)===W&&((G=(Y=W.closest(ji))==null?void 0:Y.querySelector(gI))==null||G.scrollIntoView({block:"nearest"})),W.scrollIntoView({block:"nearest"}))}function E(){var M;return(M=C.current)==null?void 0:M.querySelector(`${h4}[aria-selected="true"]`)}function V(){var M;return Array.from(((M=C.current)==null?void 0:M.querySelectorAll(Hp))||[])}function D(M){let Y=V()[M];Y&&A.setState("value",Y.getAttribute(Ps))}function H(M){var Y;let G=E(),W=V(),re=W.findIndex(ie=>ie===G),ee=W[re+M];(Y=a.current)!=null&&Y.loop&&(ee=re+M<0?W[W.length-1]:re+M===W.length?W[0]:W[re+M]),ee&&A.setState("value",ee.getAttribute(Ps))}function N(M){let Y=E(),G=Y==null?void 0:Y.closest(ji),W;for(;G&&!W;)G=M>0?OI(G,ji):kI(G,ji),W=G==null?void 0:G.querySelector(Hp);W?A.setState("value",W.getAttribute(Ps)):H(M)}let F=()=>D(V().length-1),X=M=>{M.preventDefault(),M.metaKey?F():M.altKey?N(1):H(1)},j=M=>{M.preventDefault(),M.metaKey?D(0):M.altKey?N(-1):H(-1)};return P.createElement(Ze.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:M=>{var Y;(Y=y.onKeyDown)==null||Y.call(y,M);let G=M.nativeEvent.isComposing||M.keyCode===229;if(!(M.defaultPrevented||G))switch(M.key){case"n":case"j":{b&&M.ctrlKey&&X(M);break}case"ArrowDown":{X(M);break}case"p":case"k":{b&&M.ctrlKey&&j(M);break}case"ArrowUp":{j(M);break}case"Home":{M.preventDefault(),D(0);break}case"End":{M.preventDefault(),F();break}case"Enter":{M.preventDefault();let W=E();if(W){let re=new Event(Jd);W.dispatchEvent(re)}}}}},P.createElement("label",{"cmdk-label":"",htmlFor:k.inputId,id:k.labelId,style:PI},c),Uu(e,M=>P.createElement(m4.Provider,{value:A},P.createElement(p4.Provider,{value:k},M))))}),yI=P.forwardRef((e,t)=>{var n,r;let o=zt(),s=P.useRef(null),i=P.useContext(g4),a=bc(),c=y4(e),l=(r=(n=c.current)==null?void 0:n.forceMount)!=null?r:i==null?void 0:i.forceMount;Ko(()=>{if(!l)return a.item(o,i==null?void 0:i.id)},[l]);let u=v4(o,s,[e.value,e.children,s],e.keywords),d=u2(),f=cr(S=>S.value&&S.value===u.current),h=cr(S=>l||a.filter()===!1?!0:S.search?S.filtered.items.get(o)>0:!0);P.useEffect(()=>{let S=s.current;if(!(!S||e.disabled))return S.addEventListener(Jd,g),()=>S.removeEventListener(Jd,g)},[h,e.onSelect,e.disabled]);function g(){var S,A;m(),(A=(S=c.current).onSelect)==null||A.call(S,u.current)}function m(){d.setState("value",u.current,!0)}if(!h)return null;let{disabled:b,value:y,onSelect:v,forceMount:w,keywords:x,...C}=e;return P.createElement(Ze.div,{ref:Mr(s,t),...C,id:o,"cmdk-item":"",role:"option","aria-disabled":!!b,"aria-selected":!!f,"data-disabled":!!b,"data-selected":!!f,onPointerMove:b||a.getDisablePointerSelection()?void 0:m,onClick:b?void 0:g},e.children)}),vI=P.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...s}=e,i=zt(),a=P.useRef(null),c=P.useRef(null),l=zt(),u=bc(),d=cr(h=>o||u.filter()===!1?!0:h.search?h.filtered.groups.has(i):!0);Ko(()=>u.group(i),[]),v4(i,a,[e.value,e.heading,c]);let f=P.useMemo(()=>({id:i,forceMount:o}),[o]);return P.createElement(Ze.div,{ref:Mr(a,t),...s,"cmdk-group":"",role:"presentation",hidden:d?void 0:!0},n&&P.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:l},n),Uu(e,h=>P.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?l:void 0},P.createElement(g4.Provider,{value:f},h))))}),wI=P.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=P.useRef(null),s=cr(i=>!i.search);return!n&&!s?null:P.createElement(Ze.div,{ref:Mr(o,t),...r,"cmdk-separator":"",role:"separator"})}),CI=P.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,s=u2(),i=cr(l=>l.search),a=cr(l=>l.selectedItemId),c=bc();return P.useEffect(()=>{e.value!=null&&s.setState("search",e.value)},[e.value]),P.createElement(Ze.input,{ref:t,...r,"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:o?e.value:i,onChange:l=>{o||s.setState("search",l.target.value),n==null||n(l.target.value)}})}),xI=P.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,s=P.useRef(null),i=P.useRef(null),a=cr(l=>l.selectedItemId),c=bc();return P.useEffect(()=>{if(i.current&&s.current){let l=i.current,u=s.current,d,f=new ResizeObserver(()=>{d=requestAnimationFrame(()=>{let h=l.offsetHeight;u.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return f.observe(l),()=>{cancelAnimationFrame(d),f.unobserve(l)}}},[]),P.createElement(Ze.div,{ref:Mr(s,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":a,"aria-label":r,id:c.listId},Uu(e,l=>P.createElement("div",{ref:Mr(i,c.listInnerRef),"cmdk-list-sizer":""},l)))}),SI=P.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:s,container:i,...a}=e;return P.createElement(O5,{open:n,onOpenChange:r},P.createElement(k5,{container:i},P.createElement(_5,{"cmdk-overlay":"",className:o}),P.createElement(I5,{"aria-label":e.label,"cmdk-dialog":"",className:s},P.createElement(b4,{ref:t,...a}))))}),EI=P.forwardRef((e,t)=>cr(n=>n.filtered.count===0)?P.createElement(Ze.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),AI=P.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...s}=e;return P.createElement(Ze.div,{ref:t,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},Uu(e,i=>P.createElement("div",{"aria-hidden":!0},i)))}),Zt=Object.assign(b4,{List:xI,Item:yI,Input:CI,Group:vI,Separator:wI,Dialog:SI,Empty:EI,Loading:AI});function OI(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function kI(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function y4(e){let t=P.useRef(e);return Ko(()=>{t.current=e}),t}var Ko=typeof window>"u"?P.useEffect:P.useLayoutEffect;function Ms(e){let t=P.useRef();return t.current===void 0&&(t.current=e()),t}function cr(e){let t=u2(),n=()=>e(t.snapshot());return P.useSyncExternalStore(t.subscribe,n,n)}function v4(e,t,n,r=[]){let o=P.useRef(),s=bc();return Ko(()=>{var i;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():o.current}})(),c=r.map(l=>l.trim());s.value(e,a,c),(i=t.current)==null||i.setAttribute(Ps,a),o.current=a}),o}var _I=()=>{let[e,t]=P.useState(),n=Ms(()=>new Map);return Ko(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function II(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Uu({asChild:e,children:t},n){return e&&P.isValidElement(t)?P.cloneElement(II(t),{ref:t.ref},n(t.props.children)):n(t)}var PI={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const d2=pe.forwardRef(({className:e,...t},n)=>p(Zt,{ref:n,className:Kt("flex size-full flex-col rounded-md [&_[cmdk-label]]:hidden",e),...t}));d2.displayName=Zt.displayName;const w4=pe.forwardRef(({wrapperClassName:e,className:t,...n},r)=>q("div",{className:Kt("group relative flex items-center border-b","border-b-gray-300 dark:border-b-gray-900","hover:border-b-gray-300 dark:hover:border-b-gray-800","hover:bg-gray-100 dark:hover:bg-gray-900","focus-within:border-b-gray-300 dark:focus-within:border-b-gray-800","focus-within:bg-gray-100 dark:focus-within:bg-gray-900",e),"cmdk-input-wrapper":"",children:[p(ue,{name:"Search",size:16,className:Kt("pointer-events-none absolute left-2 top-3.5 text-gray-500 dark:text-gray-700","group-hover:text-gray-700 dark:group-hover:text-gray-500","group-focus-within:!text-gray-900 dark:group-focus-within:!text-gray-50")}),p(Zt.Input,{ref:r,className:Kt("flex w-full bg-transparent pb-2 pl-8 pr-3 pt-3 text-[14px] font-normal leading-5 outline-none","placeholder:text-gray-500 dark:placeholder:text-gray-700","group-hover:placeholder:text-gray-700 dark:group-hover:placeholder:text-gray-500","group-focus-within:placeholder:!text-gray-700 dark:group-focus-within:placeholder:!text-gray-300","disabled:cursor-not-allowed",t),...n})]}));w4.displayName=Zt.Input.displayName;const f2=pe.forwardRef(({className:e,...t},n)=>p(Zt.List,{ref:n,className:Kt("max-h-[300px] overflow-y-auto overflow-x-hidden","focus:outline-none","scrollbar-thin scrollbar-gutter-stable","scrollbar-track-transparent","scrollbar-thumb-gray-300 hover:scrollbar-thumb-gray-300","dark:scrollbar-thumb-charcoal-700 dark:hover:scrollbar-thumb-charcoal-700","scrollbar-thumb-rounded-md",e),...t}));f2.displayName=Zt.List.displayName;const MI=pe.forwardRef((e,t)=>p(Zt.Loading,{ref:t,...e}));MI.displayName=Zt.Loading.displayName;const h2=pe.forwardRef((e,t)=>p(Zt.Empty,{ref:t,...e}));h2.displayName=Zt.Empty.displayName;const tu=pe.forwardRef(({className:e,...t},n)=>p(Zt.Group,{ref:n,className:Kt("overflow-hidden px-0.5 py-1","[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t}));tu.displayName=Zt.Group.displayName;const Zu=pe.forwardRef(({className:e,...t},n)=>p(Zt.Item,{ref:n,className:Kt("relative flex select-none items-center justify-between","h-8 gap-2 rounded-md py-1.5 pl-1.5 pr-2.5","text-[14px] leading-4 outline-none","border-y-2 border-white dark:border-slate-600","data-[disabled=true]:pointer-events-none","[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));Zu.displayName=Zt.Item.displayName;const RI=(e,t)=>pe.forwardRef(({value:n,name:r,showErrorOnBlur:o,showErrorOnChange:s,validators:i,...a},c)=>{var w;const{onChange:l,onBlur:u}=a,{control:d,formState:{errors:f},trigger:h,setValue:g}=gc(),{submitCount:m}=o4();if(!r)throw new Error(`[Field: ${e.displayName}] The name prop is required.`);const b=[...(w=f[r])!=null&&w.types?Object.values(f[r].types??[]):[]];b.length===0&&f[r]&&b.push("Invalid value"),Ye(()=>{m>0&&h(r)},[a.required]),Ye(()=>{a.errors&&a.errors.length>0&&h(r)},[r,a.errors,h]);const[y,v]=we(!1);return Ye(()=>{y&&g(r,n),v(!0)},[r,n]),n!==void 0&&!l&&console.warn(`[Field: ${r}] Value prop provided without onChange so it will be ignored. Use disabled/readOnly if you want to prevent changes.`),p(i2,{control:d,name:r,defaultValue:n??a.defaultValue,disabled:a.disabled,render:({field:{onChange:x,onBlur:C,value:S,...A}})=>{const k=Te(_=>{o?h(r):C(),u&&u(_)},[C,o]),O=Te(_=>{if(l)Object.hasOwn(_,"target")?g(r,_.target.value):g(r,_),l(_);else{let R=_;(_ instanceof Event||_.target instanceof HTMLElement)&&(R=_.target.value),g(r,R)}s===void 0&&o===void 0?m>0&&h(r):s&&h(r)},[S,s,o,m]),{ref:T}=A;return p(e,{...a,...A,value:S,onBlur:k,onChange:O,errors:b,ref:_=>{typeof c=="function"?c(_):c&&(c.current=_),T(_)}})},rules:{...a.required?{required:{value:a.required,message:"This field is required"}}:{required:void 0},...a.pattern&&{pattern:{value:new RegExp(a.pattern),message:"This field does not match the required pattern"}},...a.maxLength!==void 0&&a.maxLength>=0?{maxLength:{value:a.maxLength,message:`This field must be at most ${a.maxLength} characters`}}:{maxLength:void 0},...a.minLength!==void 0&&a.minLength>=0?{minLength:{value:a.minLength,message:`This field must be at least ${a.minLength} characters`}}:{minLength:void 0},...a.minValue&&{min:{value:a.minValue,message:`This field must be greater than or equal to ${a.minValue}`}},...a.maxValue&&{max:{value:a.maxValue,message:`This field must be less than or equal to ${a.maxValue}`}},validate:{...a.errors?Object.fromEntries(Array.isArray(a.errors)?a.errors.map((x,C)=>[`_propError${C}`,()=>x]):[]):{},...i!==void 0?Object.fromEntries((Array.isArray(i)?i:[i]).map((x,C)=>[`customValidation${C}`,x])):{}}}})}),C4=({children:e,as:t,className:n})=>p(t??"p",{className:Pe("font-sans text-sm font-normal leading-5 text-gray-600 dark:text-gray-500",n),children:e}),x4=({children:e})=>p("div",{className:"flex flex-col gap-2",children:e});var Wu="Popover",[S4,sq]=Br(Wu,[Ci]),yc=Ci(),[TI,xo]=S4(Wu),E4=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!1}=e,a=yc(t),c=P.useRef(null),[l,u]=P.useState(!1),[d,f]=yi({prop:r,defaultProp:o??!1,onChange:s,caller:Wu});return p(V0,{...a,children:p(TI,{scope:t,contentId:zt(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:P.useCallback(()=>f(h=>!h),[f]),hasCustomAnchor:l,onCustomAnchorAdd:P.useCallback(()=>u(!0),[]),onCustomAnchorRemove:P.useCallback(()=>u(!1),[]),modal:i,children:n})})};E4.displayName=Wu;var A4="PopoverAnchor",O4=P.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=xo(A4,n),s=yc(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:a}=o;return P.useEffect(()=>(i(),()=>a()),[i,a]),p(Ru,{...s,...r,ref:t})});O4.displayName=A4;var k4="PopoverTrigger",_4=P.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=xo(k4,n),s=yc(n),i=ht(t,o.triggerRef),a=p(Ze.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":T4(o.open),...r,ref:i,onClick:Me(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?a:p(Ru,{asChild:!0,...s,children:a})});_4.displayName=k4;var p2="PopoverPortal",[NI,LI]=S4(p2,{forceMount:void 0}),I4=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,s=xo(p2,t);return p(NI,{scope:t,forceMount:n,children:p(ln,{present:n||s.open,children:p(lc,{asChild:!0,container:o,children:r})})})};I4.displayName=p2;var ni="PopoverContent",P4=P.forwardRef((e,t)=>{const n=LI(ni,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,s=xo(ni,e.__scopePopover);return p(ln,{present:r||s.open,children:s.modal?p(FI,{...o,ref:t}):p(BI,{...o,ref:t})})});P4.displayName=ni;var DI=qo("PopoverContent.RemoveScroll"),FI=P.forwardRef((e,t)=>{const n=xo(ni,e.__scopePopover),r=P.useRef(null),o=ht(t,r),s=P.useRef(!1);return P.useEffect(()=>{const i=r.current;if(i)return j0(i)},[]),p(Lu,{as:DI,allowPinchZoom:!0,children:p(M4,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Me(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),s.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Me(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,c=a.button===0&&a.ctrlKey===!0,l=a.button===2||c;s.current=l},{checkForDefaultPrevented:!1}),onFocusOutside:Me(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),BI=P.forwardRef((e,t)=>{const n=xo(ni,e.__scopePopover),r=P.useRef(!1),o=P.useRef(!1);return p(M4,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;((l=n.triggerRef.current)==null?void 0:l.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),M4=P.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=xo(ni,n),h=yc(n);return I0(),p(_u,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:p(ac,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),children:p(z0,{"data-state":T4(f.open),role:"dialog",id:f.contentId,...h,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),R4="PopoverClose",VI=P.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=xo(R4,n);return p(Ze.button,{type:"button",...r,ref:t,onClick:Me(e.onClick,()=>o.onOpenChange(!1))})});VI.displayName=R4;var zI="PopoverArrow",HI=P.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=yc(n);return p(H0,{...o,...r,ref:t})});HI.displayName=zI;function T4(e){return e?"open":"closed"}var jI=E4,$I=O4,UI=_4,ZI=I4,WI=P4;const m2=jI,GI=$I,N4=UI,g2=pe.forwardRef(({align:e="center",sideOffset:t=4,className:n,...r},o)=>p(ZI,{children:p(WI,{align:e,sideOffset:t,className:Kt(["data-[state=closed]:animate-fade-out data-[state=open]:animate-fade-in","data-[state=closed]:animate-zoom-out data-[state=open]:animate-zoom-in","data-[side=bottom]:animate-slide-in-from-top data-[side=left]:animate-slide-in-from-right","data-[side=right]:animate-slide-in-from-left data-[side=top]:animate-slide-in-from-bottom","w-(--radix-popover-trigger-width) z-50 border p-0 outline-none","border-gray-300 bg-white dark:border-slate-500 dark:bg-slate-600","rounded-md shadow-[1px_4px_15px_0px_rgba(74,88,115,0.25)] dark:shadow-[1px_4px_15.3px_0px_#141921]"],n),ref:o,...r})})),qI=e=>typeof e=="string"?p(ue,{name:e,size:16,className:Pe("text-gray-700 dark:text-gray-400")}):e&&p(e,{className:Pe("size-4","text-gray-700 dark:text-gray-400")}),jp=({options:e=[],selectedValues:t,multiple:n,selectionIcon:r,selectionIconPosition:o,hasAnyIcon:s,toggleOption:i,tabIndex:a})=>p(Pr,{children:e.map(c=>{const l=t.includes(c.value);return q(Zu,{tabIndex:a,value:c.label,onSelect:()=>!c.disabled&&i(c.value),disabled:c.disabled,className:Pe("cursor-pointer","data-[selected=true]:bg-gray-100 dark:data-[selected=true]:bg-gray-900",c.disabled&&"!pointer-events-auto cursor-not-allowed hover:bg-transparent dark:hover:bg-transparent"),role:"option","aria-selected":l,children:[r==="auto"&&(n?p("div",{className:Pe("flex size-4 items-center justify-center rounded-md border","border-gray-700 dark:border-gray-400",l&&"bg-gray-900 text-slate-50 dark:bg-gray-400 dark:text-black"),children:l&&p(ue,{name:"Checkmark",size:16})}):p("div",{className:Pe("relative size-4 rounded-full border",l?"border-gray-900 dark:border-gray-400":"border-gray-800 dark:border-gray-400","bg-transparent dark:bg-transparent"),children:l&&p("div",{className:"absolute left-1/2 top-1/2 size-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full bg-gray-900 dark:bg-gray-400"})})),r==="checkmark"&&!(o==="right"&&s)&&p("div",{className:"size-4",children:o==="left"&&l&&p(ue,{name:"Checkmark",size:16,className:"text-gray-900 dark:text-gray-50"})}),qI(c.icon),p("span",{className:Pe("flex-1 truncate text-[14px] font-normal leading-4","text-gray-700 dark:text-gray-500",c.disabled&&"text-gray-600 dark:text-gray-600"),children:c.label}),r==="checkmark"&&o==="right"&&p("div",{className:"size-4",children:l&&p(ue,{name:"Checkmark",size:16,className:"text-gray-900 dark:text-gray-50"})})]},`favorite-${c.value}`)})}),JI=({searchable:e,commandListRef:t,multiple:n,selectedValues:r,selectionIcon:o,selectionIconPosition:s,options:i=[],toggleAll:a,toggleOption:c,favoriteOptions:l=[]})=>{const u=i.filter(h=>!h.disabled),d=i.some(h=>h.icon),f=cr(h=>h.search);return Ye(()=>{var h;(h=t.current)==null||h.scrollTo({top:0,behavior:"instant"})},[t,f]),q(Pr,{children:[e&&p(w4,{placeholder:"Search...",onKeyDown:h=>{["ArrowUp","ArrowDown","Enter"].includes(h.key)&&u.length>0||h.stopPropagation()},wrapperClassName:"rounded-t",className:"text-gray-900 dark:text-gray-50"}),q(f2,{ref:t,tabIndex:e?void 0:0,children:[p(h2,{className:"p-4 text-center text-[14px] font-normal leading-5 text-gray-700 dark:text-gray-400",children:"No results found."}),n&&f===""&&p(tu,{className:"pb-0",children:p(Zu,{value:"select-all",onSelect:a,disabled:!1,className:Pe("cursor-pointer","data-[selected=true]:bg-gray-100 dark:data-[selected=true]:bg-gray-900"),role:"option","aria-selected":r.length===u.length,children:q("div",{className:"flex w-full items-center gap-2",children:[o==="auto"&&p("div",{className:Pe("flex size-4 items-center justify-center rounded-md border","border-gray-700 dark:border-gray-400",r.length===u.length&&"bg-gray-900 text-slate-50 dark:bg-gray-400 dark:text-black"),children:r.length===u.length&&p(ue,{name:"Checkmark",size:16})}),o==="checkmark"&&!(s==="right"&&d)&&p("div",{className:"size-4",children:s==="left"&&r.length===u.length&&p(ue,{name:"Checkmark",size:16,className:"text-gray-900 dark:text-gray-50"})}),p("span",{className:"text-[14px] font-semibold leading-4 text-gray-900 dark:text-gray-50",children:r.length===u.length?"Deselect All":"Select All"}),o==="checkmark"&&s==="right"&&p("div",{className:"ml-auto size-4",children:r.length===u.length&&p(ue,{name:"Checkmark",size:16,className:"text-gray-900 dark:text-gray-50"})})]})})}),q(tu,{className:n&&f===""?"pt-0":void 0,children:[p(jp,{options:l,selectedValues:r,multiple:n,selectionIcon:o,selectionIconPosition:s,hasAnyIcon:d,toggleOption:c,tabIndex:e?void 0:0}),l.length>0&&p("div",{className:"my-1 border-b border-gray-300 dark:border-gray-600"}),p(jp,{options:i,selectedValues:r,multiple:n,selectionIcon:o,selectionIconPosition:s,hasAnyIcon:d,toggleOption:c,tabIndex:e?void 0:0})]})]})]})},YI=({selectedValues:e,options:t=[],multiple:n,searchable:r,placeholder:o,handleClear:s})=>{const i=a=>typeof a=="string"?p(ue,{name:a,size:16}):a&&p(a,{className:"size-4"});return e.length===0?q("div",{className:Pe("mx-auto flex w-full items-center",o?"justify-between":"justify-end"),children:[o&&p("span",{className:"text-[14px] font-normal leading-5 text-gray-600 dark:text-gray-500",children:o}),r?p(ue,{name:"CaretSort",size:16,className:"cursor-pointer text-gray-700 dark:text-gray-400"}):p(ue,{name:"ChevronDown",size:16,className:"cursor-pointer text-gray-700 dark:text-gray-400"})]}):q("div",{className:"flex w-full items-center justify-between gap-2",children:[p("div",{className:Pe("max-w-full truncate text-gray-900 dark:text-gray-50",!n&&"flex items-center gap-2"),children:e.map((a,c)=>{const l=t.find(u=>u.value===a);return n?p("span",{className:Pe("text-[14px] font-normal leading-5",c!==e.length-1&&"mr-1"),children:c!==e.length-1?`${l==null?void 0:l.label},`:l==null?void 0:l.label},a):q(pe.Fragment,{children:[i(l==null?void 0:l.icon),p("span",{className:"truncate text-[14px] font-normal leading-5",children:l==null?void 0:l.label})]},a)})}),q("div",{className:"flex items-center justify-between gap-2",children:[n&&e.length>0&&p("div",{onClick:a=>{a.preventDefault(),a.stopPropagation(),s()},className:"size-4 p-0",children:p(ue,{name:"XmarkLight",size:16,className:"cursor-pointer text-gray-700 dark:text-gray-400"})}),r?p(ue,{name:"CaretSort",size:16,className:"cursor-pointer text-gray-700 dark:text-gray-400"}):p(ue,{name:"ChevronDown",size:16,className:"cursor-pointer text-gray-700 dark:text-gray-400"})]})]})};function KI({options:e=[],multiple:t=!1,defaultValue:n,value:r,onChange:o}){const s=Je(!1),i=Je(null),[a,c]=we(!1),[l,u]=we(()=>{const b=r??n??[];return b===""?[]:Array.isArray(b)?b:[b]});Ye(()=>{if(s.current){s.current=!1;return}const b=r??n??[];u(b===""?[]:Array.isArray(b)?b:[b])},[r]);const d=Te(b=>{c(b)},[]),f=Te(b=>{s.current=!0;let y;t?y=l.includes(b)?l.filter(v=>v!==b):[...l,b]:(y=l[0]===b?[]:[b],c(!1)),u(y),o==null||o(t?y:y[0]??"")},[t,l,e,o]),h=Te(()=>{s.current=!0,u([]),o==null||o(t?[]:"")},[t,o]),g=Te(()=>{s.current=!0;const b=e.filter(v=>!v.disabled).map(v=>v.value),y=l.length===b.length?[]:b;u(y),o==null||o(t?y:y[0])},[e,l,t,o]),m=Je(t);return Ye(()=>{if(m.current!==t){if(m.current=t,!t&&l.length>1){s.current=!0,u([l[0]]),o==null||o(l[0]);return}l.length>0&&(s.current=!0,o==null||o(t?[l[0]]:l[0]))}},[t]),{selectedValues:l,isPopoverOpen:a,commandListRef:i,toggleOption:f,handleClear:h,toggleAll:g,handleOpenChange:d}}const b2=pe.forwardRef(({options:e=[],favoriteOptions:t=[],defaultValue:n,value:r,onChange:o,onBlur:s,id:i,name:a,label:c,required:l,disabled:u,errors:d=[],warnings:f=[],multiple:h,selectionIcon:g="auto",selectionIconPosition:m="left",searchable:b,description:y,placeholder:v,className:w,contentClassName:x,contentAlign:C="start",...S},A)=>{var N;const k=I6(),O=i??`${k}-select`,{selectedValues:T,isPopoverOpen:B,commandListRef:_,toggleOption:R,handleClear:E,toggleAll:V,handleOpenChange:D}=KI({options:e,multiple:h,defaultValue:n,value:r,onChange:o}),H=Te(F=>{B||s==null||s(F)},[s,B]);return q(x4,{children:[c&&p(Q5,{htmlFor:O,required:l,disabled:u,hasError:d.length>0,inline:!1,onClick:F=>{var X;F.preventDefault(),(X=F.target.control)==null||X.focus()},children:c}),q(m2,{open:B,onOpenChange:F=>{var X;D(F),!F&&((X=document.activeElement)==null?void 0:X.id)!==O&&(s==null||s({target:{}}))},children:[p(N4,{asChild:!0,children:p(iI,{id:O,name:a,type:"button",role:"combobox",onBlur:H,disabled:u,"aria-invalid":d.length>0,"aria-label":c?void 0:h?"Multi select":"Select","aria-required":l,"aria-expanded":B,className:Pe("flex h-9 w-full items-center justify-between px-3 py-2","dark:border-charcoal-700 dark:bg-charcoal-900 rounded-md border border-gray-300 bg-white","hover:border-gray-300 hover:bg-gray-100","dark:hover:border-charcoal-700 dark:hover:bg-charcoal-800","dark:focus:ring-charcoal-300 focus:outline-none focus:ring-1 focus:ring-gray-900 focus:ring-offset-0","dark:focus-visible:ring-charcoal-300 focus-visible:ring-1 focus-visible:ring-gray-900 focus-visible:ring-offset-0",u&&["!pointer-events-auto cursor-not-allowed bg-gray-50","dark:hover:border-charcoal-700 dark:hover:bg-charcoal-900 hover:border-gray-300 hover:bg-gray-50"],w),...S,ref:A,children:p(YI,{selectedValues:T,options:[...t,...e],multiple:h,searchable:b,placeholder:v,handleClear:E})})}),p(g2,{align:C,onEscapeKeyDown:F=>{F.preventDefault(),D(!1)},className:x,children:p(d2,{defaultValue:!h&&T[0]?(N=e.find(F=>F.value===T[0]))==null?void 0:N.label:void 0,children:p(JI,{favoriteOptions:t,searchable:b,commandListRef:_,multiple:h,selectedValues:T,selectionIcon:g,selectionIconPosition:m,options:e,toggleAll:V,toggleOption:R})})})]}),y&&p(C4,{children:y}),f.length>0&&p(Ql,{messages:f,type:"warning"}),d.length>0&&p(Ql,{messages:d,type:"error"})]})}),XI=RI(b2);XI.displayName="SelectField";const QI=Kt("flex h-9 w-full rounded-md text-sm font-normal leading-5 text-gray-900 dark:text-gray-50","dark:border-charcoal-700 dark:bg-charcoal-900 border border-gray-300 bg-white","px-3 py-2","font-sans placeholder:text-gray-500 dark:placeholder:text-gray-600","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gray-900 focus-visible:ring-offset-0 focus-visible:ring-offset-white","dark:focus-visible:ring-charcoal-300 dark:focus-visible:ring-offset-charcoal-900 dark:focus:bg-charcoal-900 focus:bg-gray-50","disabled:cursor-not-allowed","disabled:border-gray-300 disabled:bg-gray-50 disabled:text-gray-700","disabled:dark:border-charcoal-800 disabled:dark:bg-charcoal-900 disabled:dark:text-gray-300"),Gu=P.forwardRef(({className:e,type:t,...n},r)=>p("input",{type:t,className:Kt(QI,e),ref:r,...n}));Gu.displayName="Input";function Y1(e,t){var s,i;const n=(s=Object.getOwnPropertyDescriptor(e,"value"))==null?void 0:s.set,r=Object.getPrototypeOf(e),o=(i=Object.getOwnPropertyDescriptor(r,"value"))==null?void 0:i.set;n&&n!==o?o==null||o.call(e,t):n==null||n.call(e,t)}function Qc(e,t,n="blur"){return e.reduce((r,o)=>{var s,i;return typeof o=="function"?n==="blur"||n==="all"?o(r):r:(((s=o.options)==null?void 0:s.trigger)??"blur")!==n&&n!=="all"?r:((i=o.options)==null?void 0:i.if)===void 0||o.options.if?o.transformer(r):r},t)}function L4({transformers:e,children:t}){const n=gc(),r=n==null?void 0:n.setValue;return Ye(()=>{var i,a;const o=t.props.value,s=Qc(e,o,"all");la(s,o)||(typeof r=="function"?r(t.props.name,s):(a=(i=t.props).onChange)==null||a.call(i,{target:{value:s}}))},[e,r]),pe.cloneElement(t,{...t.props,onChange:o=>{var i,a;const s=Qc(e,o.target.value,"change");s!==o.target.value&&r&&(r(t.props.name,s),Y1(o.target,s)),(a=(i=t.props).onChange)==null||a.call(i,o)},onBlur:o=>{var a,c;(c=(a=t.props).onBlur)==null||c.call(a,o);const s=o.target,i=Qc(e,s.value,"blur");if(!la(i,s.value)){Y1(s,i);const l=new Event("change",{bubbles:!0});s.dispatchEvent(l)}},onKeyDown:o=>{var s,i;if((i=(s=t.props).onKeyDown)==null||i.call(s,o),o.key==="Enter"){const a=o.target,c=Qc(e,a.value,"keyDown");if(!la(c,a.value)){Y1(a,c);const l=new Event("change",{bubbles:!0});a.dispatchEvent(l)}}}})}var K1,$p;function eP(){if($p)return K1;$p=1;var e="Expected a function",t=NaN,n="[object Symbol]",r=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,i=/^0o[0-7]+$/i,a=parseInt,c=typeof lo=="object"&&lo&&lo.Object===Object&&lo,l=typeof self=="object"&&self&&self.Object===Object&&self,u=c||l||Function("return this")(),d=Object.prototype,f=d.toString,h=Math.max,g=Math.min,m=function(){return u.Date.now()};function b(C,S,A){var k,O,T,B,_,R,E=0,V=!1,D=!1,H=!0;if(typeof C!="function")throw new TypeError(e);S=x(S)||0,y(A)&&(V=!!A.leading,D="maxWait"in A,T=D?h(x(A.maxWait)||0,S):T,H="trailing"in A?!!A.trailing:H);function N(ee){var ie=k,ce=O;return k=O=void 0,E=ee,B=C.apply(ce,ie),B}function F(ee){return E=ee,_=setTimeout(M,S),V?N(ee):B}function X(ee){var ie=ee-R,ce=ee-E,be=S-ie;return D?g(be,T-ce):be}function j(ee){var ie=ee-R,ce=ee-E;return R===void 0||ie>=S||ie<0||D&&ce>=T}function M(){var ee=m();if(j(ee))return Y(ee);_=setTimeout(M,X(ee))}function Y(ee){return _=void 0,H&&k?N(ee):(k=O=void 0,B)}function G(){_!==void 0&&clearTimeout(_),E=0,k=R=O=_=void 0}function W(){return _===void 0?B:Y(m())}function re(){var ee=m(),ie=j(ee);if(k=arguments,O=this,R=ee,ie){if(_===void 0)return F(R);if(D)return _=setTimeout(M,S),N(R)}return _===void 0&&(_=setTimeout(M,S)),B}return re.cancel=G,re.flush=W,re}function y(C){var S=typeof C;return!!C&&(S=="object"||S=="function")}function v(C){return!!C&&typeof C=="object"}function w(C){return typeof C=="symbol"||v(C)&&f.call(C)==n}function x(C){if(typeof C=="number")return C;if(w(C))return t;if(y(C)){var S=typeof C.valueOf=="function"?C.valueOf():C;C=y(S)?S+"":S}if(typeof C!="string")return C===0?C:+C;C=C.replace(r,"");var A=s.test(C);return A||i.test(C)?a(C.slice(2),A?2:8):o.test(C)?t:+C}return K1=b,K1}var tP=eP();const Up=xi(tP);var D4=typeof window<"u"?mi:Ye;function F4(e,t,n,r){const o=Je(t);D4(()=>{o.current=t},[t]),Ye(()=>{const s=window;if(!(s&&s.addEventListener))return;const i=a=>{o.current(a)};return s.addEventListener(e,i,r),()=>{s.removeEventListener(e,i,r)}},[e,n,r])}function y2(){const[e,t]=we(null),n=Te(async r=>{if(!(navigator!=null&&navigator.clipboard))return console.warn("Clipboard not supported"),!1;try{return await navigator.clipboard.writeText(r),t(r),!0}catch(o){return console.warn("Copy failed",o),t(null),!1}},[]);return[e,n]}var nP=typeof window>"u";function rP(e,{defaultValue:t=!1,initializeWithValue:n=!0}={}){const r=a=>nP?t:window.matchMedia(a).matches,[o,s]=we(()=>n?r(e):t);function i(){s(r(e))}return D4(()=>{const a=window.matchMedia(e);return i(),a.addListener?a.addListener(i):a.addEventListener("change",i),()=>{a.removeListener?a.removeListener(i):a.removeEventListener("change",i)}},[e]),o}function oP(e){const t=Je(e);t.current=e,Ye(()=>()=>{t.current()},[])}function B4(e,t=500,n){const r=Je();oP(()=>{r.current&&r.current.cancel()});const o=bt(()=>{const s=Up(e,t,n),i=(...a)=>s(...a);return i.cancel=()=>{s.cancel()},i.isPending=()=>!!r.current,i.flush=()=>s.flush(),i},[e,t,n]);return Ye(()=>{r.current=Up(e,t,n)},[e,t,n]),o}function sP(e,t,n){const r=(l,u)=>l===u,o=e instanceof Function?e():e,[s,i]=we(o),a=Je(o),c=B4(i,t,n);return r(a.current,o)||(c(o),a.current=o),[s,c]}function iP(e,t,n="mousedown",r={}){F4(n,o=>{const s=o.target;if(!s||!s.isConnected)return;(Array.isArray(e)?e.filter(a=>!!a.current).every(a=>a.current&&!a.current.contains(s)):e.current&&!e.current.contains(s))&&t(o)},void 0,r)}const aP=pe.forwardRef(({id:e,name:t,value:n,className:r,isLoading:o,haveFetchError:s,disabled:i,onChange:a,onBlur:c,onClick:l,selectedOption:u,optionsLength:d,handleOpenChange:f,onKeyDown:h,onMouseDown:g,placeholder:m,hasError:b,label:y,required:v,isPopoverOpen:w,maxLength:x,handlePaste:C,onPaste:S,...A},k)=>{const[O,T]=we(!1),B=rP("(hover: hover) and (pointer: fine)"),_=bt(()=>[eu.trimOnBlur(),eu.trimOnEnter()],[]);return q("div",{className:Pe("group relative"),children:[p(L4,{transformers:_,children:p(Zt.Input,{asChild:!0,children:p(Gu,{id:e,name:t,value:n,className:Pe("pr-9",r),disabled:i,onChange:a,onBlur:c,onClick:R=>{const E=R.target;!(o||s)&&!u&&E.value!==""&&(f==null||f(!0)),l==null||l(R)},onKeyDown:R=>{h==null||h(R);const E=["ArrowUp","ArrowDown","Enter"].includes(R.key);if(R.key==="Enter"&&w&&d===0){f==null||f(!1),R.preventDefault();return}E&&w&&d>0||R.stopPropagation()},onMouseDown:R=>{const E=R.target;E.contains(document.activeElement)||requestAnimationFrame(()=>{E.select()}),g==null||g(R)},onPaste:R=>{C==null||C(R),S==null||S(R)},placeholder:m,"aria-invalid":b,"aria-label":y?void 0:"Id Autocomplete","aria-required":v,"aria-expanded":w,maxLength:x,...A,ref:k})})}),q("div",{className:Pe("absolute right-3 top-1/2 flex size-4 -translate-y-1/2 items-center",!o&&!s&&!u&&"pointer-events-none"),children:[o&&p(ue,{name:"Reload",size:16,className:Pe("animate-spin text-gray-500 dark:text-gray-600")}),s&&p(ql,{children:p(Wd,{content:"Network error!",children:p(ue,{name:"Error",size:16,className:Pe("text-red-900")})})}),u&&!o&&!s&&p(ql,{children:p(Wd,{content:"Copied!",open:O,triggerAsChild:!0,children:p("button",{type:"button",onClick:()=>{navigator.clipboard.writeText(u.value).then(()=>{T(!0),setTimeout(()=>T(!1),2e3)}).catch(R=>{console.error("Failed to copy value: ",R)})},className:Pe("focus-visible:outline-none [&_svg]:pointer-events-none",B&&"opacity-0 transition-opacity duration-500 group-hover:opacity-100"),children:p(ue,{name:"Copy",size:16,className:Pe("text-gray-500 dark:text-gray-600")})})})})]})]})}),cP=({customIcon:e,asPlaceholder:t})=>typeof e=="string"?p(ue,{name:e,size:24,className:Pe("shrink-0",t?"text-gray-400 dark:text-gray-700":"text-gray-900 dark:text-gray-300")}):pe.isValidElement(e)?p("div",{className:"size-6 shrink-0 overflow-hidden",children:e}):null,lP=({isLoadingSelectedOption:e,handleFetchSelectedOption:t,isFetchSelectedOptionSync:n,value:r})=>p("div",{children:p("button",{type:"button",disabled:e||n,onClick:()=>{!e&&!n&&t(r)},className:Pe("mt-0.5 focus-visible:outline-none","disabled:pointer-events-none [&_svg]:pointer-events-none"),"aria-label":e?"Loading":n?"Success":"Reload",children:p(ue,{name:n?"Checkmark":"Reload",size:16,className:Pe("text-gray-500 dark:text-gray-600",e&&"animate-spin",n&&"animate-in fade-in duration-500")})})}),Yd=({variant:e="withValue",icon:t,title:n="Title not available",path:r="Path not available",value:o,description:s="Description not available",asPlaceholder:i,showValue:a=!0,isLoadingSelectedOption:c,handleFetchSelectedOption:l,isFetchSelectedOptionSync:u,className:d,placeholderIcon:f="PowerhouseLogoSmall",...h})=>{const g=()=>p("div",{className:Pe("flex w-full items-center"),children:p("span",{className:Pe("truncate text-xs leading-5",i?"text-gray-400 dark:text-gray-700":"text-gray-500 dark:text-gray-600"),children:o})}),m=(b=!0)=>q("div",{className:Pe("flex w-full flex-col gap-1"),children:[q("div",{className:Pe("flex gap-2"),children:[p(cP,{customIcon:i?f:t,asPlaceholder:i}),q("div",{className:Pe("flex min-w-0 grow flex-col gap-[-2px]"),children:[p("span",{className:Pe("truncate text-sm font-bold leading-5",i?"text-gray-400 dark:text-gray-700":"text-gray-900 dark:text-gray-300"),children:n}),!a&&typeof r=="object"?p("a",{href:r.url,target:"_blank",rel:"noopener noreferrer",className:Pe("truncate text-xs leading-5 text-blue-900 hover:underline focus-visible:outline-none"),children:r.text}):p("span",{className:Pe("truncate text-xs leading-5",i?"text-gray-400 dark:text-gray-700":"text-gray-500 dark:text-gray-600"),children:typeof r=="object"?r.text:r})]}),i===!1&&l&&p(lP,{isLoadingSelectedOption:c,handleFetchSelectedOption:l,isFetchSelectedOptionSync:u,value:o})]}),a&&p("div",{className:Pe("flex max-w-full items-center"),children:p("span",{className:Pe("truncate text-xs leading-5",i?"text-gray-400 dark:text-gray-700":"text-gray-500 dark:text-gray-600"),children:o})}),b&&p("div",{className:Pe("flex flex-col"),children:p("p",{className:Pe("line-clamp-2 text-xs leading-5",i?"text-gray-400 dark:text-gray-700":"text-gray-900 dark:text-gray-300"),children:s})}),b&&"agentType"in h&&typeof h.agentType=="string"&&p("div",{className:Pe("flex max-w-full items-center justify-end"),children:p("span",{className:Pe("truncate text-xs leading-5",i?"text-gray-400 dark:text-gray-700":"text-gray-500 dark:text-gray-600"),children:h.agentType})})]});return q("div",{className:Pe("w-full max-w-full rounded-md bg-transparent px-3 pb-2",e==="withValue"?"pt-2":"pt-3",d),children:[e==="withValue"&&g(),e==="withValueAndTitle"&&m(!1),e==="withValueTitleAndDescription"&&m()]})},uP=({variant:e,commandListRef:t,selectedValue:n,options:r=[],toggleOption:o,renderOption:s,previewPlaceholder:i})=>{const a=cr(l=>l.search),c=i||{value:"value not available",title:"Title not available",path:"Path not available",description:"Description not available"};return Ye(()=>{var l;(l=t==null?void 0:t.current)==null||l.scrollTo({top:0,behavior:"instant"})},[t,a]),q(f2,{ref:t,children:[p(h2,{className:Pe("h-full p-1"),children:s?s(c,{asPlaceholder:!0,showValue:!0,className:Pe("pb-0")}):p(Yd,{variant:e,icon:c.icon,title:c.title,path:c.path,value:c.value,description:c.description,asPlaceholder:!0,className:Pe("pb-0")})}),p(tu,{className:Pe("px-1"),children:r.map(l=>{const u=n===l.value;return p(Zu,{value:l.value,onSelect:()=>o==null?void 0:o(l.value),className:Pe("h-full cursor-pointer border-y-0 p-0","data-[selected=true]:bg-gray-100 dark:data-[selected=true]:bg-gray-900"),role:"option","aria-selected":u,children:s?s(l,{asPlaceholder:!1,showValue:!0}):p(Yd,{variant:e,...l})},l.value)})})]})},dP=A0({}),fP=()=>ku(dP);function hP({autoComplete:e,defaultValue:t,value:n,isOpenByDefault:r,initialOptions:o,onChange:s,onBlur:i,fetchOptions:a,fetchSelectedOption:c}){const l=fP(),u=Je(!1),d=Je(!1),f=Je(null),[h,g]=we(r??!1),[m,b]=we(o??[]),[y,v]=we(!1),[w,x]=we(!1),[C,S]=we(!1),[A,k]=we(n??t??""),[O,T]=we(void 0),[B,_]=we(""),[R,E]=we(!1),V=Te(()=>{S(!1),v(!1),x(!1),g(!1)},[]),D=B4(Te(G=>{if(!(!e||!a)){if(G===""){V(),b([]),k(""),T(void 0);return}S(!1),v(!0);try{const W=a(G,l);Promise.resolve(W).then(re=>{b(re);const ee=re.find(ie=>ie.value===G);ee?(T(ee),g(!1)):(T(void 0),g(!0)),v(!1)}).catch(()=>{S(!0),v(!1)})}catch{S(!0),v(!1)}}},[V,e,a,l])),H=Te(G=>{if(!(!e||!c)){x(!0);try{const W=c(G),re=W instanceof Promise;Promise.resolve(W).then(ee=>{ee?(T(ee),b(ie=>{const ce=ie.findIndex(be=>be.value===G);if(ce!==-1){const be=[...ie];return be[ce]=ee,be}return ie})):(V(),b([]),k(""),T(void 0)),x(!1),re||(E(!0),setTimeout(()=>{E(!1)},1500))}).catch(()=>{x(!1)})}catch{x(!1)}}},[V,e,c]),N=Te(G=>{var W;G||_(((W=m[0])==null?void 0:W.value)??""),g(G)},[m]),F=Te(G=>{u.current=!1,d.current=!0,k(G),T(m.find(W=>W.value===G)),V(),s==null||s(G)},[s,V,m]),X=Te(G=>{const W=G.target.value;u.current=!0,k(W),T(void 0),s==null||s(W)},[s]),j=Te(G=>{_(G)},[]),M=Te(G=>{h||i==null||i(G)},[i,h]),Y=Te(G=>{const W=G.clipboardData.getData("text"),re=W.trim();if(W!==re){G.preventDefault();const ee=G.currentTarget,ie=ee.selectionStart||0,ce=ee.selectionEnd||0,be=ee.value,Oe=be.substring(0,ie)+re+be.substring(ce);s==null||s(Oe),requestAnimationFrame(()=>{const He=ie+re.length;ee.setSelectionRange(He,He),D(Oe)})}else W===A&&D(A)},[A,D,s]);return Ye(()=>{e?u.current&&D(A):(V(),b([]),k(""),T(void 0))},[e,A,D,V]),Ye(()=>{d.current||(u.current=!1,k(n??t??""),T(void 0)),d.current=!1},[n]),Ye(()=>{if(o!=null&&o.length&&A){const G=o.find(W=>W.value===A);G&&T(G)}},[]),{selectedValue:A,selectedOption:O,isPopoverOpen:h,commandListRef:f,options:m,isLoading:y,isLoadingSelectedOption:w,haveFetchError:C,commandValue:B,isFetchSelectedOptionSync:R,toggleOption:F,handleOpenChange:N,onTriggerBlur:M,handleChange:X,handleCommandValue:j,handleFetchSelectedOption:H,handlePaste:Y}}const V4=pe.forwardRef(({id:e,name:t,className:n,label:r,description:o,value:s,defaultValue:i,disabled:a,placeholder:c,required:l,errors:u,warnings:d,onChange:f,onBlur:h,onClick:g,onKeyDown:m,onMouseDown:b,autoComplete:y=!0,variant:v="withValue",maxLength:w,fetchOptionsCallback:x,fetchSelectedOptionCallback:C,isOpenByDefault:S,initialOptions:A,renderOption:k,previewPlaceholder:O,...T},B)=>{const _=I6(),R=e??`${_}-id-autocomplete`,E=Je(null),V=z=>{E.current=z,typeof B=="function"?B(z):B&&(B.current=z)},D=Array.isArray(d)&&d.length>0,H=Array.isArray(u)&&u.length>0,{selectedValue:N,selectedOption:F,isPopoverOpen:X,commandListRef:j,options:M,isLoading:Y,isLoadingSelectedOption:G,haveFetchError:W,commandValue:re,isFetchSelectedOptionSync:ee,toggleOption:ie,handleOpenChange:ce,onTriggerBlur:be,handleChange:Oe,handleCommandValue:He,handleFetchSelectedOption:tt,handlePaste:I}=hP({autoComplete:y,defaultValue:i,value:s,isOpenByDefault:S,initialOptions:A,onChange:f,onBlur:h,fetchOptions:x,fetchSelectedOption:C}),se=z=>{var K;ie(z),(K=E.current)==null||K.focus()},oe=v==="withValueAndTitle"||v==="withValueTitleAndDescription",U=bt(()=>[eu.trimOnBlur(),eu.trimOnEnter()],[]);return q(x4,{children:[!!r&&p(Q5,{htmlFor:R,disabled:a,hasError:H,required:l,onClick:z=>{var K;z.preventDefault(),(K=z.target.control)==null||K.focus()},children:r}),y&&x?p(m2,{open:X,onOpenChange:ce,children:q(d2,{shouldFilter:!1,value:re,onValueChange:He,className:Pe("dark:bg-charcoal-900 bg-gray-100"),children:[p(GI,{asChild:!0,children:p(aP,{id:R,name:t,value:N,className:n,isLoading:Y,haveFetchError:W,disabled:a,onChange:Oe,onBlur:be,onClick:g,selectedOption:F,optionsLength:M.length,handleOpenChange:ce,onKeyDown:m,onMouseDown:b,placeholder:c,hasError:H,label:r,required:l,isPopoverOpen:X,maxLength:w,handlePaste:I,...T,ref:V})}),oe&&(k?k(F===void 0&&O?{...O}:{...F,value:(F==null?void 0:F.value)??""},{asPlaceholder:F===void 0,showValue:!1,isLoadingSelectedOption:G,handleFetchSelectedOption:C?tt:void 0,isFetchSelectedOptionSync:ee,className:Pe("rounded-t-none pt-2")}):p(Yd,{variant:v,icon:(F==null?void 0:F.icon)??(O==null?void 0:O.icon),title:(F==null?void 0:F.title)??(O==null?void 0:O.title),path:(F==null?void 0:F.path)??(O==null?void 0:O.path),value:(F==null?void 0:F.value)??(O==null?void 0:O.value)??"",description:(F==null?void 0:F.description)??(O==null?void 0:O.description),asPlaceholder:F===void 0,showValue:!1,isLoadingSelectedOption:G,handleFetchSelectedOption:C?tt:void 0,isFetchSelectedOptionSync:ee,className:Pe("rounded-t-none pt-2")})),p(g2,{align:"start",onOpenAutoFocus:z=>z.preventDefault(),onInteractOutside:z=>{z.target instanceof Element&&z.target.id===R&&z.preventDefault()},children:p(uP,{variant:v,commandListRef:j,selectedValue:N,options:M,toggleOption:se,renderOption:k,previewPlaceholder:O})})]})}):p(L4,{transformers:U,children:p(Gu,{id:R,name:t,value:N,className:n,disabled:a,onChange:Oe,onBlur:h,onClick:g,onMouseDown:b,placeholder:c,"aria-invalid":H,"aria-label":r?void 0:"Id Autocomplete","aria-required":l,maxLength:w,...T,ref:V})}),!!o&&p(C4,{children:o}),D&&p(Ql,{messages:d,type:"warning"}),H&&p(Ql,{messages:u,type:"error"})]})});V4.displayName="IdAutocomplete";const z4=({children:e,content:t})=>q(m2,{children:[p(N4,{asChild:!0,children:p("button",{type:"button","aria-label":"Open Account",className:"cursor-pointer",children:e})}),p(g2,{className:"w-52 p-0",align:"start",children:t})]}),pP=({onLogin:e})=>{const[t,n]=we(!1),r=!t&&!!e,o=t?p(ue,{name:"Reload",size:14,className:"animate-spin"}):p("span",{children:"Connect"}),s=()=>{e&&(n(!0),e())};return q("div",{className:"p-4",children:[p("div",{className:"mb-4 flex justify-center",children:p("div",{className:"flex h-[22px] w-[83px] items-center justify-center overflow-hidden",children:p(ue,{name:"RenownLight",size:83})})}),p("button",{onClick:r?s:void 0,className:he("mt-4 flex h-7 w-full cursor-pointer items-center justify-center rounded-lg border border-gray-300 bg-transparent text-sm active:opacity-70",r?"cursor-pointer":"cursor-wait"),type:"button",children:o})]})},mP=e=>`${e.slice(0,7)}...${e.slice(-5)}`,gP=({address:e,onDisconnect:t,etherscanUrl:n,username:r=""})=>{const[o,s]=we(!1),i=Te(async a=>{try{await navigator.clipboard.writeText(a),s(!0),setTimeout(()=>s(!1),2e3)}catch(c){console.error("Failed to copy address:",c)}},[]);return q("div",{className:"flex flex-col divide-y divide-gray-200 text-gray-900",children:[q("div",{className:"px-3 py-2",children:[r&&p("div",{className:"text-sm font-medium",children:r}),p("div",{className:"mt-1 flex items-center gap-2",children:p(yn,{size:"small",color:"light",onClick:i.bind(null,e),className:"w-full cursor-pointer bg-transparent p-0 active:opacity-70",type:"button",children:q("div",{className:"relative flex w-full items-center gap-1",children:[q("div",{className:`flex items-center gap-1 transition-opacity duration-150 ${o?"opacity-0":"opacity-100"}`,children:[p("span",{className:"text-xs",children:mP(e)}),p(ue,{name:"FilesEarmark",color:"#9EA0A1",size:14})]}),p("div",{className:`absolute left-0 text-xs transition-opacity duration-150 ${o?"opacity-100":"opacity-0"}`,children:"Copied to clipboard!"})]})})})]}),n&&p("div",{className:"px-3 py-2",children:q("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-sm text-gray-900 hover:text-gray-600",children:[p(ue,{name:"Ethscan",size:14}),"View on Etherscan"]})}),p("div",{className:"px-3 py-2",children:q("button",{onClick:t,className:he("flex w-full items-center gap-2 text-sm text-red-900",t?"cursor-pointer hover:text-red-700":"pointer-events-none cursor-wait"),type:"button",children:[p(ue,{name:"Disconnect",size:14,color:"#EA4335"}),"Disconnect"]})})]})},bP=""+new URL("connect-loader-CvOC68Ih.mp4",import.meta.url).href;function yP(e){var c,l;const{style:t,size:n=100,...r}=e,o=R5(n),s={objectFit:"contain",pointerEvents:"none",...o,...t},i=(c=o.width)==null?void 0:c.replace("px",""),a=(l=o.height)==null?void 0:l.replace("px","");return p("video",{autoPlay:!0,height:a,loop:!0,muted:!0,playsInline:!0,width:i,...r,style:s,children:p("source",{src:bP,type:"video/mp4"})})}function iq(e){const{breadcrumbs:t,createEnabled:n,onBreadcrumbSelected:r}=e,[o,s]=we(!1),i=e.createEnabled?e.onCreate:void 0;function a(){s(!0)}const c=Te(u=>{var d;!n||!i||(i(u,(d=t.at(-1))==null?void 0:d.id),s(!1))},[t,n,i]),l=Te(()=>{s(!1)},[]);return q("div",{className:"flex h-9 flex-row items-center gap-2 p-6 text-gray-500",children:[t.map(u=>q(Fl,{children:[p(vP,{node:u,onClick:r}),p("span",{children:"/"})]},u.id)),n&&(o?p(Ah,{className:"text-gray-800",defaultValue:"New Folder",onCancel:l,onSubmit:c,placeholder:"New Folder"}):q("button",{type:"button",className:"ml-1 flex items-center justify-center gap-2 rounded-md bg-gray-50 px-2 py-1.5 transition-colors hover:bg-gray-200 hover:text-gray-800",onClick:a,children:[p(ue,{name:"Plus",size:14}),"Add new"]}))]})}function vP(e){const{node:t,onClick:n}=e;return p("div",{className:"transition-colors last-of-type:text-gray-800 hover:text-gray-800",onClick:()=>n(t),role:"button",children:t.name})}function aq({selectedNodePath:e,setSelectedNode:t}){const n=Te(r=>{t(r.id)},[t]);return{breadcrumbs:e,onBreadcrumbSelected:n}}function Xo(e){"@babel/helpers - typeof";return Xo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xo(e)}function wP(e,t){if(Xo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function H4(e){var t=wP(e,"string");return Xo(t)=="symbol"?t:t+""}function na(e,t,n){return(t=H4(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Re(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zp(Object(n),!0).forEach(function(r){na(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function CP(e){if(Array.isArray(e))return e}function xP(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,i,a=[],c=!0,l=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=s.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(u){l=!0,o=u}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return a}}function Kd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function j4(e,t){if(e){if(typeof e=="string")return Kd(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Kd(e,t):void 0}}function SP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
46
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Or(e,t){return CP(e)||xP(e,t)||j4(e,t)||SP()}function EP(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function zr(e,t){if(e==null)return{};var n,r,o=EP(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var AP=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function OP(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,o=r===void 0?!1:r,s=e.defaultValue,i=s===void 0?null:s,a=e.inputValue,c=e.menuIsOpen,l=e.onChange,u=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,h=e.value,g=zr(e,AP),m=we(a!==void 0?a:n),b=Or(m,2),y=b[0],v=b[1],w=we(c!==void 0?c:o),x=Or(w,2),C=x[0],S=x[1],A=we(h!==void 0?h:i),k=Or(A,2),O=k[0],T=k[1],B=Te(function(N,F){typeof l=="function"&&l(N,F),T(N)},[l]),_=Te(function(N,F){var X;typeof u=="function"&&(X=u(N,F)),v(X!==void 0?X:N)},[u]),R=Te(function(){typeof f=="function"&&f(),S(!0)},[f]),E=Te(function(){typeof d=="function"&&d(),S(!1)},[d]),V=a!==void 0?a:y,D=c!==void 0?c:C,H=h!==void 0?h:O;return Re(Re({},g),{},{inputValue:V,menuIsOpen:D,onChange:B,onInputChange:_,onMenuClose:E,onMenuOpen:R,value:H})}function Le(){return Le=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Le.apply(null,arguments)}function kP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,H4(r.key),r)}}function _P(e,t,n){return t&&Wp(e.prototype,t),n&&Wp(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xd(e,t){return Xd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Xd(e,t)}function IP(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xd(e,t)}function nu(e){return nu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},nu(e)}function $4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($4=function(){return!!e})()}function PP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MP(e,t){if(t&&(Xo(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return PP(e)}function RP(e){var t=$4();return function(){var n,r=nu(e);if(t){var o=nu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return MP(this,n)}}function TP(e){if(Array.isArray(e))return Kd(e)}function NP(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function LP(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
47
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v2(e){return TP(e)||NP(e)||j4(e)||LP()}function DP(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function FP(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var BP=function(){function e(n){var r=this;this._insertTag=function(o){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,s),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(FP(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=DP(o);try{s.insertRule(r,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),It="-ms-",ru="-moz-",Ke="-webkit-",U4="comm",w2="rule",C2="decl",VP="@import",Z4="@keyframes",zP="@layer",HP=Math.abs,qu=String.fromCharCode,jP=Object.assign;function $P(e,t){return kt(e,0)^45?(((t<<2^kt(e,0))<<2^kt(e,1))<<2^kt(e,2))<<2^kt(e,3):0}function W4(e){return e.trim()}function UP(e,t){return(e=t.exec(e))?e[0]:e}function Xe(e,t,n){return e.replace(t,n)}function Qd(e,t){return e.indexOf(t)}function kt(e,t){return e.charCodeAt(t)|0}function Ca(e,t,n){return e.slice(t,n)}function Jn(e){return e.length}function x2(e){return e.length}function el(e,t){return t.push(e),e}function ZP(e,t){return e.map(t).join("")}var Ju=1,ri=1,G4=0,Qt=0,gt=0,Si="";function Yu(e,t,n,r,o,s,i){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:Ju,column:ri,length:i,return:""}}function $i(e,t){return jP(Yu("",null,null,"",null,null,0),e,{length:-e.length},t)}function WP(){return gt}function GP(){return gt=Qt>0?kt(Si,--Qt):0,ri--,gt===10&&(ri=1,Ju--),gt}function an(){return gt=Qt<G4?kt(Si,Qt++):0,ri++,gt===10&&(ri=1,Ju++),gt}function nr(){return kt(Si,Qt)}function Al(){return Qt}function vc(e,t){return Ca(Si,e,t)}function xa(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function q4(e){return Ju=ri=1,G4=Jn(Si=e),Qt=0,[]}function J4(e){return Si="",e}function Ol(e){return W4(vc(Qt-1,ef(e===91?e+2:e===40?e+1:e)))}function qP(e){for(;(gt=nr())&&gt<33;)an();return xa(e)>2||xa(gt)>3?"":" "}function JP(e,t){for(;--t&&an()&&!(gt<48||gt>102||gt>57&&gt<65||gt>70&&gt<97););return vc(e,Al()+(t<6&&nr()==32&&an()==32))}function ef(e){for(;an();)switch(gt){case e:return Qt;case 34:case 39:e!==34&&e!==39&&ef(gt);break;case 40:e===41&&ef(e);break;case 92:an();break}return Qt}function YP(e,t){for(;an()&&e+gt!==57;)if(e+gt===84&&nr()===47)break;return"/*"+vc(t,Qt-1)+"*"+qu(e===47?e:an())}function KP(e){for(;!xa(nr());)an();return vc(e,Qt)}function XP(e){return J4(kl("",null,null,null,[""],e=q4(e),0,[0],e))}function kl(e,t,n,r,o,s,i,a,c){for(var l=0,u=0,d=i,f=0,h=0,g=0,m=1,b=1,y=1,v=0,w="",x=o,C=s,S=r,A=w;b;)switch(g=v,v=an()){case 40:if(g!=108&&kt(A,d-1)==58){Qd(A+=Xe(Ol(v),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:A+=Ol(v);break;case 9:case 10:case 13:case 32:A+=qP(g);break;case 92:A+=JP(Al()-1,7);continue;case 47:switch(nr()){case 42:case 47:el(QP(YP(an(),Al()),t,n),c);break;default:A+="/"}break;case 123*m:a[l++]=Jn(A)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:b=0;case 59+u:y==-1&&(A=Xe(A,/\f/g,"")),h>0&&Jn(A)-d&&el(h>32?qp(A+";",r,n,d-1):qp(Xe(A," ","")+";",r,n,d-2),c);break;case 59:A+=";";default:if(el(S=Gp(A,t,n,l,u,o,a,w,x=[],C=[],d),s),v===123)if(u===0)kl(A,t,S,S,x,s,d,a,C);else switch(f===99&&kt(A,3)===110?100:f){case 100:case 108:case 109:case 115:kl(e,S,S,r&&el(Gp(e,S,S,0,0,o,a,w,o,x=[],d),C),o,C,d,a,r?x:C);break;default:kl(A,S,S,S,[""],C,0,a,C)}}l=u=h=0,m=y=1,w=A="",d=i;break;case 58:d=1+Jn(A),h=g;default:if(m<1){if(v==123)--m;else if(v==125&&m++==0&&GP()==125)continue}switch(A+=qu(v),v*m){case 38:y=u>0?1:(A+="\f",-1);break;case 44:a[l++]=(Jn(A)-1)*y,y=1;break;case 64:nr()===45&&(A+=Ol(an())),f=nr(),u=d=Jn(w=A+=KP(Al())),v++;break;case 45:g===45&&Jn(A)==2&&(m=0)}}return s}function Gp(e,t,n,r,o,s,i,a,c,l,u){for(var d=o-1,f=o===0?s:[""],h=x2(f),g=0,m=0,b=0;g<r;++g)for(var y=0,v=Ca(e,d+1,d=HP(m=i[g])),w=e;y<h;++y)(w=W4(m>0?f[y]+" "+v:Xe(v,/&\f/g,f[y])))&&(c[b++]=w);return Yu(e,t,n,o===0?w2:a,c,l,u)}function QP(e,t,n){return Yu(e,t,n,U4,qu(WP()),Ca(e,2,-2),0)}function qp(e,t,n,r){return Yu(e,t,n,C2,Ca(e,0,r),Ca(e,r+1,-1),r)}function Vs(e,t){for(var n="",r=x2(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function eM(e,t,n,r){switch(e.type){case zP:if(e.children.length)break;case VP:case C2:return e.return=e.return||e.value;case U4:return"";case Z4:return e.return=e.value+"{"+Vs(e.children,r)+"}";case w2:e.value=e.props.join(",")}return Jn(n=Vs(e.children,r))?e.return=e.value+"{"+n+"}":""}function tM(e){var t=x2(e);return function(n,r,o,s){for(var i="",a=0;a<t;a++)i+=e[a](n,r,o,s)||"";return i}}function nM(e){return function(t){t.root||(t=t.return)&&e(t)}}function rM(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var oM=function(t,n,r){for(var o=0,s=0;o=s,s=nr(),o===38&&s===12&&(n[r]=1),!xa(s);)an();return vc(t,Qt)},sM=function(t,n){var r=-1,o=44;do switch(xa(o)){case 0:o===38&&nr()===12&&(n[r]=1),t[r]+=oM(Qt-1,n,r);break;case 2:t[r]+=Ol(o);break;case 4:if(o===44){t[++r]=nr()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=qu(o)}while(o=an());return t},iM=function(t,n){return J4(sM(q4(t),n))},Jp=new WeakMap,aM=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Jp.get(r))&&!o){Jp.set(t,!0);for(var s=[],i=iM(n,s),a=r.props,c=0,l=0;c<i.length;c++)for(var u=0;u<a.length;u++,l++)t.props[l]=s[c]?i[c].replace(/&\f/g,a[u]):a[u]+" "+i[c]}}},cM=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Y4(e,t){switch($P(e,t)){case 5103:return Ke+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ke+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ke+e+ru+e+It+e+e;case 6828:case 4268:return Ke+e+It+e+e;case 6165:return Ke+e+It+"flex-"+e+e;case 5187:return Ke+e+Xe(e,/(\w+).+(:[^]+)/,Ke+"box-$1$2"+It+"flex-$1$2")+e;case 5443:return Ke+e+It+"flex-item-"+Xe(e,/flex-|-self/,"")+e;case 4675:return Ke+e+It+"flex-line-pack"+Xe(e,/align-content|flex-|-self/,"")+e;case 5548:return Ke+e+It+Xe(e,"shrink","negative")+e;case 5292:return Ke+e+It+Xe(e,"basis","preferred-size")+e;case 6060:return Ke+"box-"+Xe(e,"-grow","")+Ke+e+It+Xe(e,"grow","positive")+e;case 4554:return Ke+Xe(e,/([^-])(transform)/g,"$1"+Ke+"$2")+e;case 6187:return Xe(Xe(Xe(e,/(zoom-|grab)/,Ke+"$1"),/(image-set)/,Ke+"$1"),e,"")+e;case 5495:case 3959:return Xe(e,/(image-set\([^]*)/,Ke+"$1$`$1");case 4968:return Xe(Xe(e,/(.+:)(flex-)?(.*)/,Ke+"box-pack:$3"+It+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ke+e+e;case 4095:case 3583:case 4068:case 2532:return Xe(e,/(.+)-inline(.+)/,Ke+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Jn(e)-1-t>6)switch(kt(e,t+1)){case 109:if(kt(e,t+4)!==45)break;case 102:return Xe(e,/(.+:)(.+)-([^]+)/,"$1"+Ke+"$2-$3$1"+ru+(kt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Qd(e,"stretch")?Y4(Xe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(kt(e,t+1)!==115)break;case 6444:switch(kt(e,Jn(e)-3-(~Qd(e,"!important")&&10))){case 107:return Xe(e,":",":"+Ke)+e;case 101:return Xe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ke+(kt(e,14)===45?"inline-":"")+"box$3$1"+Ke+"$2$3$1"+It+"$2box$3")+e}break;case 5936:switch(kt(e,t+11)){case 114:return Ke+e+It+Xe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ke+e+It+Xe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ke+e+It+Xe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ke+e+It+e+e}return e}var lM=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case C2:t.return=Y4(t.value,t.length);break;case Z4:return Vs([$i(t,{value:Xe(t.value,"@","@"+Ke)})],o);case w2:if(t.length)return ZP(t.props,function(s){switch(UP(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Vs([$i(t,{props:[Xe(s,/:(read-\w+)/,":"+ru+"$1")]})],o);case"::placeholder":return Vs([$i(t,{props:[Xe(s,/:(plac\w+)/,":"+Ke+"input-$1")]}),$i(t,{props:[Xe(s,/:(plac\w+)/,":"+ru+"$1")]}),$i(t,{props:[Xe(s,/:(plac\w+)/,It+"input-$1")]})],o)}return""})}},uM=[lM],dM=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var b=m.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=t.stylisPlugins||uM,s={},i,a=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var b=m.getAttribute("data-emotion").split(" "),y=1;y<b.length;y++)s[b[y]]=!0;a.push(m)});var c,l=[aM,cM];{var u,d=[eM,nM(function(m){u.insert(m)})],f=tM(l.concat(o,d)),h=function(b){return Vs(XP(b),f)};c=function(b,y,v,w){u=v,h(b?b+"{"+y.styles+"}":y.styles),w&&(g.inserted[y.name]=!0)}}var g={key:n,sheet:new BP({key:n,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:c};return g.sheet.hydrate(a),g},X1={exports:{}},Qe={};/** @license React v16.13.1
48
- * react-is.production.min.js
49
- *
50
- * Copyright (c) Facebook, Inc. and its affiliates.
51
- *
52
- * This source code is licensed under the MIT license found in the
53
- * LICENSE file in the root directory of this source tree.
54
- */var Yp;function fM(){if(Yp)return Qe;Yp=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function w(C){if(typeof C=="object"&&C!==null){var S=C.$$typeof;switch(S){case t:switch(C=C.type,C){case c:case l:case r:case s:case o:case d:return C;default:switch(C=C&&C.$$typeof,C){case a:case u:case g:case h:case i:return C;default:return S}}case n:return S}}}function x(C){return w(C)===l}return Qe.AsyncMode=c,Qe.ConcurrentMode=l,Qe.ContextConsumer=a,Qe.ContextProvider=i,Qe.Element=t,Qe.ForwardRef=u,Qe.Fragment=r,Qe.Lazy=g,Qe.Memo=h,Qe.Portal=n,Qe.Profiler=s,Qe.StrictMode=o,Qe.Suspense=d,Qe.isAsyncMode=function(C){return x(C)||w(C)===c},Qe.isConcurrentMode=x,Qe.isContextConsumer=function(C){return w(C)===a},Qe.isContextProvider=function(C){return w(C)===i},Qe.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},Qe.isForwardRef=function(C){return w(C)===u},Qe.isFragment=function(C){return w(C)===r},Qe.isLazy=function(C){return w(C)===g},Qe.isMemo=function(C){return w(C)===h},Qe.isPortal=function(C){return w(C)===n},Qe.isProfiler=function(C){return w(C)===s},Qe.isStrictMode=function(C){return w(C)===o},Qe.isSuspense=function(C){return w(C)===d},Qe.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===l||C===s||C===o||C===d||C===f||typeof C=="object"&&C!==null&&(C.$$typeof===g||C.$$typeof===h||C.$$typeof===i||C.$$typeof===a||C.$$typeof===u||C.$$typeof===b||C.$$typeof===y||C.$$typeof===v||C.$$typeof===m)},Qe.typeOf=w,Qe}var Kp;function hM(){return Kp||(Kp=1,X1.exports=fM()),X1.exports}var Q1,Xp;function pM(){if(Xp)return Q1;Xp=1;var e=hM(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=r,s[e.Memo]=o;function i(g){return e.isMemo(g)?o:s[g.$$typeof]||t}var a=Object.defineProperty,c=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;function h(g,m,b){if(typeof m!="string"){if(f){var y=d(m);y&&y!==f&&h(g,y,b)}var v=c(m);l&&(v=v.concat(l(m)));for(var w=i(g),x=i(m),C=0;C<v.length;++C){var S=v[C];if(!n[S]&&!(b&&b[S])&&!(x&&x[S])&&!(w&&w[S])){var A=u(m,S);try{a(g,S,A)}catch{}}}}return g}return Q1=h,Q1}var mM=pM();const cq=xi(mM);var gM=!0;function bM(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var K4=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||gM===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},yM=function(t,n,r){K4(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function vM(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var wM={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},CM=/[A-Z]|^ms/g,xM=/_EMO_([^_]+?)_([^]*?)_EMO_/g,X4=function(t){return t.charCodeAt(1)===45},Qp=function(t){return t!=null&&typeof t!="boolean"},ed=rM(function(e){return X4(e)?e:e.replace(CM,"-$&").toLowerCase()}),e3=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(xM,function(r,o,s){return Yn={name:o,styles:s,next:Yn},o})}return wM[t]!==1&&!X4(t)&&typeof n=="number"&&n!==0?n+"px":n};function Sa(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Yn={name:o.name,styles:o.styles,next:Yn},o.name;var s=n;if(s.styles!==void 0){var i=s.next;if(i!==void 0)for(;i!==void 0;)Yn={name:i.name,styles:i.styles,next:Yn},i=i.next;var a=s.styles+";";return a}return SM(e,t,n)}case"function":{if(e!==void 0){var c=Yn,l=n(e);return Yn=c,Sa(e,t,l)}break}}var u=n;return u}function SM(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Sa(e,t,n[o])+";";else for(var s in n){var i=n[s];if(typeof i!="object"){var a=i;Qp(a)&&(r+=ed(s)+":"+e3(s,a)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&t==null)for(var c=0;c<i.length;c++)Qp(i[c])&&(r+=ed(s)+":"+e3(s,i[c])+";");else{var l=Sa(e,t,i);switch(s){case"animation":case"animationName":{r+=ed(s)+":"+l+";";break}default:r+=s+"{"+l+"}"}}}return r}var t3=/label:\s*([^\s;{]+)\s*(;|$)/g,Yn;function Q4(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";Yn=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,o+=Sa(n,t,s);else{var i=s;o+=i[0]}for(var a=1;a<e.length;a++)if(o+=Sa(n,t,e[a]),r){var c=s;o+=c[a]}t3.lastIndex=0;for(var l="",u;(u=t3.exec(o))!==null;)l+="-"+u[1];var d=vM(o)+l;return{name:d,styles:o,next:Yn}}var EM=function(t){return t()},AM=P.useInsertionEffect?P.useInsertionEffect:!1,OM=AM||EM,kM=P.createContext(typeof HTMLElement<"u"?dM({key:"css"}):null),_M=function(t){return Co(function(n,r){var o=ku(kM);return t(n,o,r)})},IM=P.createContext({}),S2={}.hasOwnProperty,tf="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",PM=function(t,n){var r={};for(var o in n)S2.call(n,o)&&(r[o]=n[o]);return r[tf]=t,r},MM=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return K4(n,r,o),OM(function(){return yM(n,r,o)}),null},RM=_M(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[tf],s=[r],i="";typeof e.className=="string"?i=bM(t.registered,s,e.className):e.className!=null&&(i=e.className+" ");var a=Q4(s,void 0,P.useContext(IM));i+=t.key+"-"+a.name;var c={};for(var l in e)S2.call(e,l)&&l!=="css"&&l!==tf&&(c[l]=e[l]);return c.className=i,n&&(c.ref=n),P.createElement(P.Fragment,null,P.createElement(MM,{cache:t,serialized:a,isStringTag:typeof o=="string"}),P.createElement(o,c))}),TM=RM,Ie=function(t,n){var r=arguments;if(n==null||!S2.call(n,"css"))return P.createElement.apply(void 0,r);var o=r.length,s=new Array(o);s[0]=TM,s[1]=PM(t,n);for(var i=2;i<o;i++)s[i]=r[i];return P.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Ie||(Ie={}));function E2(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Q4(t)}function NM(){var e=E2.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function LM(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var nf=mi,DM=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],ou=function(){};function FM(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function BM(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var s=[].concat(r);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&s.push("".concat(FM(e,i)));return s.filter(function(a){return a}).map(function(a){return String(a).trim()}).join(" ")}var n3=function(t){return GM(t)?t.filter(Boolean):Xo(t)==="object"&&t!==null?[t]:[]},e8=function(t){var n=zr(t,DM);return Re({},n)},lt=function(t,n,r){var o=t.cx,s=t.getStyles,i=t.getClassNames,a=t.className;return{css:s(n,t),className:o(r??{},i(n,t),a)}};function Ku(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function VM(e){return Ku(e)?window.innerHeight:e.clientHeight}function t8(e){return Ku(e)?window.pageYOffset:e.scrollTop}function su(e,t){if(Ku(e)){window.scrollTo(0,t);return}e.scrollTop=t}function zM(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}function HM(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function tl(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:ou,o=t8(e),s=t-o,i=10,a=0;function c(){a+=i;var l=HM(a,o,s,n);su(e,l),a<n?window.requestAnimationFrame(c):r(e)}c()}function r3(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?su(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&su(e,Math.max(t.offsetTop-o,0))}function jM(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function o3(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function $M(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var n8=!1,UM={get passive(){return n8=!0}},nl=typeof window<"u"?window:{};nl.addEventListener&&nl.removeEventListener&&(nl.addEventListener("p",ou,UM),nl.removeEventListener("p",ou,!1));var ZM=n8;function WM(e){return e!=null}function GM(e){return Array.isArray(e)}function rl(e,t,n){return e?t:n}var qM=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var s=Object.entries(t).filter(function(i){var a=Or(i,1),c=a[0];return!r.includes(c)});return s.reduce(function(i,a){var c=Or(a,2),l=c[0],u=c[1];return i[l]=u,i},{})},JM=["children","innerProps"],YM=["children","innerProps"];function KM(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,s=e.shouldScroll,i=e.isFixedPosition,a=e.controlHeight,c=zM(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var u=c.getBoundingClientRect(),d=u.height,f=n.getBoundingClientRect(),h=f.bottom,g=f.height,m=f.top,b=n.offsetParent.getBoundingClientRect(),y=b.top,v=i?window.innerHeight:VM(c),w=t8(c),x=parseInt(getComputedStyle(n).marginBottom,10),C=parseInt(getComputedStyle(n).marginTop,10),S=y-C,A=v-m,k=S+w,O=d-w-m,T=h-v+w+x,B=w+m-C,_=160;switch(o){case"auto":case"bottom":if(A>=g)return{placement:"bottom",maxHeight:t};if(O>=g&&!i)return s&&tl(c,T,_),{placement:"bottom",maxHeight:t};if(!i&&O>=r||i&&A>=r){s&&tl(c,T,_);var R=i?A-x:O-x;return{placement:"bottom",maxHeight:R}}if(o==="auto"||i){var E=t,V=i?S:k;return V>=r&&(E=Math.min(V-x-a,t)),{placement:"top",maxHeight:E}}if(o==="bottom")return s&&su(c,T),{placement:"bottom",maxHeight:t};break;case"top":if(S>=g)return{placement:"top",maxHeight:t};if(k>=g&&!i)return s&&tl(c,B,_),{placement:"top",maxHeight:t};if(!i&&k>=r||i&&S>=r){var D=t;return(!i&&k>=r||i&&S>=r)&&(D=i?S-C:k-C),s&&tl(c,B,_),{placement:"top",maxHeight:D}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return l}function XM(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var r8=function(t){return t==="auto"?"bottom":t},QM=function(t,n){var r,o=t.placement,s=t.theme,i=s.borderRadius,a=s.spacing,c=s.colors;return Re((r={label:"menu"},na(r,XM(o),"100%"),na(r,"position","absolute"),na(r,"width","100%"),na(r,"zIndex",1),r),n?{}:{backgroundColor:c.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},o8=A0(null),eR=function(t){var n=t.children,r=t.minMenuHeight,o=t.maxMenuHeight,s=t.menuPlacement,i=t.menuPosition,a=t.menuShouldScrollIntoView,c=t.theme,l=ku(o8)||{},u=l.setPortalPlacement,d=Je(null),f=we(o),h=Or(f,2),g=h[0],m=h[1],b=we(null),y=Or(b,2),v=y[0],w=y[1],x=c.spacing.controlHeight;return nf(function(){var C=d.current;if(C){var S=i==="fixed",A=a&&!S,k=KM({maxHeight:o,menuEl:C,minHeight:r,placement:s,shouldScroll:A,isFixedPosition:S,controlHeight:x});m(k.maxHeight),w(k.placement),u==null||u(k.placement)}},[o,s,i,a,r,u,x]),n({ref:d,placerProps:Re(Re({},t),{},{placement:v||r8(s),maxHeight:g})})},tR=function(t){var n=t.children,r=t.innerRef,o=t.innerProps;return Ie("div",Le({},lt(t,"menu",{menu:!0}),{ref:r},o),n)},nR=tR,rR=function(t,n){var r=t.maxHeight,o=t.theme.spacing.baseUnit;return Re({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:o,paddingTop:o})},oR=function(t){var n=t.children,r=t.innerProps,o=t.innerRef,s=t.isMulti;return Ie("div",Le({},lt(t,"menuList",{"menu-list":!0,"menu-list--is-multi":s}),{ref:o},r),n)},s8=function(t,n){var r=t.theme,o=r.spacing.baseUnit,s=r.colors;return Re({textAlign:"center"},n?{}:{color:s.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},sR=s8,iR=s8,aR=function(t){var n=t.children,r=n===void 0?"No options":n,o=t.innerProps,s=zr(t,JM);return Ie("div",Le({},lt(Re(Re({},s),{},{children:r,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),r)},cR=function(t){var n=t.children,r=n===void 0?"Loading...":n,o=t.innerProps,s=zr(t,YM);return Ie("div",Le({},lt(Re(Re({},s),{},{children:r,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),r)},lR=function(t){var n=t.rect,r=t.offset,o=t.position;return{left:n.left,position:o,top:r,width:n.width,zIndex:1}},uR=function(t){var n=t.appendTo,r=t.children,o=t.controlElement,s=t.innerProps,i=t.menuPlacement,a=t.menuPosition,c=Je(null),l=Je(null),u=we(r8(i)),d=Or(u,2),f=d[0],h=d[1],g=bt(function(){return{setPortalPlacement:h}},[]),m=we(null),b=Or(m,2),y=b[0],v=b[1],w=Te(function(){if(o){var A=jM(o),k=a==="fixed"?0:window.pageYOffset,O=A[f]+k;(O!==(y==null?void 0:y.offset)||A.left!==(y==null?void 0:y.rect.left)||A.width!==(y==null?void 0:y.rect.width))&&v({offset:O,rect:A})}},[o,a,f,y==null?void 0:y.offset,y==null?void 0:y.rect.left,y==null?void 0:y.rect.width]);nf(function(){w()},[w]);var x=Te(function(){typeof l.current=="function"&&(l.current(),l.current=null),o&&c.current&&(l.current=om(o,c.current,w,{elementResize:"ResizeObserver"in window}))},[o,w]);nf(function(){x()},[x]);var C=Te(function(A){c.current=A,x()},[x]);if(!n&&a!=="fixed"||!y)return null;var S=Ie("div",Le({ref:C},lt(Re(Re({},t),{},{offset:y.offset,position:a,rect:y.rect}),"menuPortal",{"menu-portal":!0}),s),r);return Ie(o8.Provider,{value:g},n?Iv(S,n):S)},dR=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},fR=function(t){var n=t.children,r=t.innerProps,o=t.isDisabled,s=t.isRtl;return Ie("div",Le({},lt(t,"container",{"--is-disabled":o,"--is-rtl":s}),r),n)},hR=function(t,n){var r=t.theme.spacing,o=t.isMulti,s=t.hasValue,i=t.selectProps.controlShouldRenderValue;return Re({alignItems:"center",display:o&&s&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},pR=function(t){var n=t.children,r=t.innerProps,o=t.isMulti,s=t.hasValue;return Ie("div",Le({},lt(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":s}),r),n)},mR=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},gR=function(t){var n=t.children,r=t.innerProps;return Ie("div",Le({},lt(t,"indicatorsContainer",{indicators:!0}),r),n)},s3,bR=["size"],yR=["innerProps","isRtl","size"],vR={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},i8=function(t){var n=t.size,r=zr(t,bR);return Ie("svg",Le({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:vR},r))},A2=function(t){return Ie(i8,Le({size:20},t),Ie("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},a8=function(t){return Ie(i8,Le({size:20},t),Ie("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},c8=function(t,n){var r=t.isFocused,o=t.theme,s=o.spacing.baseUnit,i=o.colors;return Re({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?i.neutral60:i.neutral20,padding:s*2,":hover":{color:r?i.neutral80:i.neutral40}})},wR=c8,CR=function(t){var n=t.children,r=t.innerProps;return Ie("div",Le({},lt(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||Ie(a8,null))},xR=c8,SR=function(t){var n=t.children,r=t.innerProps;return Ie("div",Le({},lt(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||Ie(A2,null))},ER=function(t,n){var r=t.isDisabled,o=t.theme,s=o.spacing.baseUnit,i=o.colors;return Re({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?i.neutral10:i.neutral20,marginBottom:s*2,marginTop:s*2})},AR=function(t){var n=t.innerProps;return Ie("span",Le({},n,lt(t,"indicatorSeparator",{"indicator-separator":!0})))},OR=NM(s3||(s3=LM([`
55
- 0%, 80%, 100% { opacity: 0; }
56
- 40% { opacity: 1; }
57
- `]))),kR=function(t,n){var r=t.isFocused,o=t.size,s=t.theme,i=s.colors,a=s.spacing.baseUnit;return Re({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?i.neutral60:i.neutral20,padding:a*2})},td=function(t){var n=t.delay,r=t.offset;return Ie("span",{css:E2({animation:"".concat(OR," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},_R=function(t){var n=t.innerProps,r=t.isRtl,o=t.size,s=o===void 0?4:o,i=zr(t,yR);return Ie("div",Le({},lt(Re(Re({},i),{},{innerProps:n,isRtl:r,size:s}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),Ie(td,{delay:0,offset:r}),Ie(td,{delay:160,offset:!0}),Ie(td,{delay:320,offset:!r}))},IR=function(t,n){var r=t.isDisabled,o=t.isFocused,s=t.theme,i=s.colors,a=s.borderRadius,c=s.spacing;return Re({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:c.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?i.neutral5:i.neutral0,borderColor:r?i.neutral10:o?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:o?i.primary:i.neutral30}})},PR=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,s=t.innerRef,i=t.innerProps,a=t.menuIsOpen;return Ie("div",Le({ref:s},lt(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":o,"control--menu-is-open":a}),i,{"aria-disabled":r||void 0}),n)},MR=PR,RR=["data"],TR=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},NR=function(t){var n=t.children,r=t.cx,o=t.getStyles,s=t.getClassNames,i=t.Heading,a=t.headingProps,c=t.innerProps,l=t.label,u=t.theme,d=t.selectProps;return Ie("div",Le({},lt(t,"group",{group:!0}),c),Ie(i,Le({},a,{selectProps:d,theme:u,getStyles:o,getClassNames:s,cx:r}),l),Ie("div",null,n))},LR=function(t,n){var r=t.theme,o=r.colors,s=r.spacing;return Re({label:"group",cursor:"default",display:"block"},n?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:s.baseUnit*3,paddingRight:s.baseUnit*3,textTransform:"uppercase"})},DR=function(t){var n=e8(t),r=zr(n,RR);return Ie("div",Le({},lt(t,"groupHeading",{"group-heading":!0}),r))},FR=NR,BR=["innerRef","isDisabled","isHidden","inputClassName"],VR=function(t,n){var r=t.isDisabled,o=t.value,s=t.theme,i=s.spacing,a=s.colors;return Re(Re({visibility:r?"hidden":"visible",transform:o?"translateZ(0)":""},zR),n?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},l8={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},zR={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Re({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},l8)},HR=function(t){return Re({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},l8)},jR=function(t){var n=t.cx,r=t.value,o=e8(t),s=o.innerRef,i=o.isDisabled,a=o.isHidden,c=o.inputClassName,l=zr(o,BR);return Ie("div",Le({},lt(t,"input",{"input-container":!0}),{"data-value":r||""}),Ie("input",Le({className:n({input:!0},c),ref:s,style:HR(a),disabled:i},l)))},$R=jR,UR=function(t,n){var r=t.theme,o=r.spacing,s=r.borderRadius,i=r.colors;return Re({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:i.neutral10,borderRadius:s/2,margin:o.baseUnit/2})},ZR=function(t,n){var r=t.theme,o=r.borderRadius,s=r.colors,i=t.cropWithEllipsis;return Re({overflow:"hidden",textOverflow:i||i===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:o/2,color:s.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},WR=function(t,n){var r=t.theme,o=r.spacing,s=r.borderRadius,i=r.colors,a=t.isFocused;return Re({alignItems:"center",display:"flex"},n?{}:{borderRadius:s/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},u8=function(t){var n=t.children,r=t.innerProps;return Ie("div",r,n)},GR=u8,qR=u8;function JR(e){var t=e.children,n=e.innerProps;return Ie("div",Le({role:"button"},n),t||Ie(A2,{size:14}))}var YR=function(t){var n=t.children,r=t.components,o=t.data,s=t.innerProps,i=t.isDisabled,a=t.removeProps,c=t.selectProps,l=r.Container,u=r.Label,d=r.Remove;return Ie(l,{data:o,innerProps:Re(Re({},lt(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),s),selectProps:c},Ie(u,{data:o,innerProps:Re({},lt(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:c},n),Ie(d,{data:o,innerProps:Re(Re({},lt(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},a),selectProps:c}))},KR=YR,XR=function(t,n){var r=t.isDisabled,o=t.isFocused,s=t.isSelected,i=t.theme,a=i.spacing,c=i.colors;return Re({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:s?c.primary:o?c.primary25:"transparent",color:r?c.neutral20:s?c.neutral0:"inherit",padding:"".concat(a.baseUnit*2,"px ").concat(a.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:s?c.primary:c.primary50}})},QR=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,s=t.isSelected,i=t.innerRef,a=t.innerProps;return Ie("div",Le({},lt(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":o,"option--is-selected":s}),{ref:i,"aria-disabled":r},a),n)},eT=QR,tT=function(t,n){var r=t.theme,o=r.spacing,s=r.colors;return Re({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:s.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},nT=function(t){var n=t.children,r=t.innerProps;return Ie("div",Le({},lt(t,"placeholder",{placeholder:!0}),r),n)},rT=nT,oT=function(t,n){var r=t.isDisabled,o=t.theme,s=o.spacing,i=o.colors;return Re({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?i.neutral40:i.neutral80,marginLeft:s.baseUnit/2,marginRight:s.baseUnit/2})},sT=function(t){var n=t.children,r=t.isDisabled,o=t.innerProps;return Ie("div",Le({},lt(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),o),n)},iT=sT,Xu={ClearIndicator:SR,Control:MR,DropdownIndicator:CR,DownChevron:a8,CrossIcon:A2,Group:FR,GroupHeading:DR,IndicatorsContainer:gR,IndicatorSeparator:AR,Input:$R,LoadingIndicator:_R,Menu:nR,MenuList:oR,MenuPortal:uR,LoadingMessage:cR,NoOptionsMessage:aR,MultiValue:KR,MultiValueContainer:GR,MultiValueLabel:qR,MultiValueRemove:JR,Option:eT,Placeholder:rT,SelectContainer:fR,SingleValue:iT,ValueContainer:pR},aT=function(t){return Re(Re({},Xu),t.components)},i3=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function cT(e,t){return!!(e===t||i3(e)&&i3(t))}function lT(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!cT(e[n],t[n]))return!1;return!0}function uT(e,t){t===void 0&&(t=lT);var n=null;function r(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var i=e.apply(this,o);return n={lastResult:i,lastArgs:o,lastThis:this},i}return r.clear=function(){n=null},r}var dT={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},fT=function(t){return Ie("span",Le({css:dT},t))},a3=fT,hT={guidance:function(t){var n=t.isSearchable,r=t.isMulti,o=t.tabSelectsValue,s=t.context,i=t.isInitialFocus;switch(s){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,r=t.label,o=r===void 0?"":r,s=t.labels,i=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(s.length>1?"s":""," ").concat(s.join(","),", selected.");case"select-option":return i?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,o=t.options,s=t.label,i=s===void 0?"":s,a=t.selectValue,c=t.isDisabled,l=t.isSelected,u=t.isAppleDevice,d=function(m,b){return m&&m.length?"".concat(m.indexOf(b)+1," of ").concat(m.length):""};if(n==="value"&&a)return"value ".concat(i," focused, ").concat(d(a,r),".");if(n==="menu"&&u){var f=c?" disabled":"",h="".concat(l?" selected":"").concat(f);return"".concat(i).concat(h,", ").concat(d(o,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},pT=function(t){var n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,s=t.focusableOptions,i=t.isFocused,a=t.selectValue,c=t.selectProps,l=t.id,u=t.isAppleDevice,d=c.ariaLiveMessages,f=c.getOptionLabel,h=c.inputValue,g=c.isMulti,m=c.isOptionDisabled,b=c.isSearchable,y=c.menuIsOpen,v=c.options,w=c.screenReaderStatus,x=c.tabSelectsValue,C=c.isLoading,S=c["aria-label"],A=c["aria-live"],k=bt(function(){return Re(Re({},hT),d||{})},[d]),O=bt(function(){var V="";if(n&&k.onChange){var D=n.option,H=n.options,N=n.removedValue,F=n.removedValues,X=n.value,j=function(ie){return Array.isArray(ie)?null:ie},M=N||D||j(X),Y=M?f(M):"",G=H||F||void 0,W=G?G.map(f):[],re=Re({isDisabled:M&&m(M,a),label:Y,labels:W},n);V=k.onChange(re)}return V},[n,k,m,a,f]),T=bt(function(){var V="",D=r||o,H=!!(r&&a&&a.includes(r));if(D&&k.onFocus){var N={focused:D,label:f(D),isDisabled:m(D,a),isSelected:H,options:s,context:D===r?"menu":"value",selectValue:a,isAppleDevice:u};V=k.onFocus(N)}return V},[r,o,f,m,k,s,a,u]),B=bt(function(){var V="";if(y&&v.length&&!C&&k.onFilter){var D=w({count:s.length});V=k.onFilter({inputValue:h,resultsMessage:D})}return V},[s,h,y,k,v,w,C]),_=(n==null?void 0:n.action)==="initial-input-focus",R=bt(function(){var V="";if(k.guidance){var D=o?"value":y?"menu":"input";V=k.guidance({"aria-label":S,context:D,isDisabled:r&&m(r,a),isMulti:g,isSearchable:b,tabSelectsValue:x,isInitialFocus:_})}return V},[S,r,o,g,m,b,y,k,a,x,_]),E=Ie(Fl,null,Ie("span",{id:"aria-selection"},O),Ie("span",{id:"aria-focused"},T),Ie("span",{id:"aria-results"},B),Ie("span",{id:"aria-guidance"},R));return Ie(Fl,null,Ie(a3,{id:l},_&&E),Ie(a3,{"aria-live":A,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!_&&E))},mT=pT,rf=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],gT=new RegExp("["+rf.map(function(e){return e.letters}).join("")+"]","g"),d8={};for(var nd=0;nd<rf.length;nd++)for(var rd=rf[nd],od=0;od<rd.letters.length;od++)d8[rd.letters[od]]=rd.base;var f8=function(t){return t.replace(gT,function(n){return d8[n]})},bT=uT(f8),c3=function(t){return t.replace(/^\s+|\s+$/g,"")},yT=function(t){return"".concat(t.label," ").concat(t.value)},vT=function(t){return function(n,r){if(n.data.__isNew__)return!0;var o=Re({ignoreCase:!0,ignoreAccents:!0,stringify:yT,trim:!0,matchFrom:"any"},t),s=o.ignoreCase,i=o.ignoreAccents,a=o.stringify,c=o.trim,l=o.matchFrom,u=c?c3(r):r,d=c?c3(a(n)):a(n);return s&&(u=u.toLowerCase(),d=d.toLowerCase()),i&&(u=bT(u),d=f8(d)),l==="start"?d.substr(0,u.length)===u:d.indexOf(u)>-1}},wT=["innerRef"];function CT(e){var t=e.innerRef,n=zr(e,wT),r=qM(n,"onExited","in","enter","exit","appear");return Ie("input",Le({ref:t},r,{css:E2({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var xT=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function ST(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,s=e.onTopLeave,i=Je(!1),a=Je(!1),c=Je(0),l=Je(null),u=Te(function(b,y){if(l.current!==null){var v=l.current,w=v.scrollTop,x=v.scrollHeight,C=v.clientHeight,S=l.current,A=y>0,k=x-C-w,O=!1;k>y&&i.current&&(r&&r(b),i.current=!1),A&&a.current&&(s&&s(b),a.current=!1),A&&y>k?(n&&!i.current&&n(b),S.scrollTop=x,O=!0,i.current=!0):!A&&-y>w&&(o&&!a.current&&o(b),S.scrollTop=0,O=!0,a.current=!0),O&&xT(b)}},[n,r,o,s]),d=Te(function(b){u(b,b.deltaY)},[u]),f=Te(function(b){c.current=b.changedTouches[0].clientY},[]),h=Te(function(b){var y=c.current-b.changedTouches[0].clientY;u(b,y)},[u]),g=Te(function(b){if(b){var y=ZM?{passive:!1}:!1;b.addEventListener("wheel",d,y),b.addEventListener("touchstart",f,y),b.addEventListener("touchmove",h,y)}},[h,f,d]),m=Te(function(b){b&&(b.removeEventListener("wheel",d,!1),b.removeEventListener("touchstart",f,!1),b.removeEventListener("touchmove",h,!1))},[h,f,d]);return Ye(function(){if(t){var b=l.current;return g(b),function(){m(b)}}},[t,g,m]),function(b){l.current=b}}var l3=["boxSizing","height","overflow","paddingRight","position"],u3={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function d3(e){e.cancelable&&e.preventDefault()}function f3(e){e.stopPropagation()}function h3(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function p3(){return"ontouchstart"in window||navigator.maxTouchPoints}var m3=!!(typeof window<"u"&&window.document&&window.document.createElement),Ui=0,Ss={capture:!1,passive:!1};function ET(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,o=Je({}),s=Je(null),i=Te(function(c){if(m3){var l=document.body,u=l&&l.style;if(r&&l3.forEach(function(g){var m=u&&u[g];o.current[g]=m}),r&&Ui<1){var d=parseInt(o.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,h=window.innerWidth-f+d||0;Object.keys(u3).forEach(function(g){var m=u3[g];u&&(u[g]=m)}),u&&(u.paddingRight="".concat(h,"px"))}l&&p3()&&(l.addEventListener("touchmove",d3,Ss),c&&(c.addEventListener("touchstart",h3,Ss),c.addEventListener("touchmove",f3,Ss))),Ui+=1}},[r]),a=Te(function(c){if(m3){var l=document.body,u=l&&l.style;Ui=Math.max(Ui-1,0),r&&Ui<1&&l3.forEach(function(d){var f=o.current[d];u&&(u[d]=f)}),l&&p3()&&(l.removeEventListener("touchmove",d3,Ss),c&&(c.removeEventListener("touchstart",h3,Ss),c.removeEventListener("touchmove",f3,Ss)))}},[r]);return Ye(function(){if(t){var c=s.current;return i(c),function(){a(c)}}},[t,i,a]),function(c){s.current=c}}var AT=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},OT={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function kT(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=r===void 0?!0:r,s=e.onBottomArrive,i=e.onBottomLeave,a=e.onTopArrive,c=e.onTopLeave,l=ST({isEnabled:o,onBottomArrive:s,onBottomLeave:i,onTopArrive:a,onTopLeave:c}),u=ET({isEnabled:n}),d=function(h){l(h),u(h)};return Ie(Fl,null,n&&Ie("div",{onClick:AT,css:OT}),t(d))}var _T={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},IT=function(t){var n=t.name,r=t.onFocus;return Ie("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:_T,value:"",onChange:function(){}})},PT=IT;function O2(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function MT(){return O2(/^iPhone/i)}function h8(){return O2(/^Mac/i)}function RT(){return O2(/^iPad/i)||h8()&&navigator.maxTouchPoints>1}function TT(){return MT()||RT()}function NT(){return h8()||TT()}var LT=function(t){return t.label},DT=function(t){return t.label},FT=function(t){return t.value},BT=function(t){return!!t.isDisabled},VT={clearIndicator:xR,container:dR,control:IR,dropdownIndicator:wR,group:TR,groupHeading:LR,indicatorsContainer:mR,indicatorSeparator:ER,input:VR,loadingIndicator:kR,loadingMessage:iR,menu:QM,menuList:rR,menuPortal:lR,multiValue:UR,multiValueLabel:ZR,multiValueRemove:WR,noOptionsMessage:sR,option:XR,placeholder:tT,singleValue:oT,valueContainer:hR},zT={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},HT=4,p8=4,jT=38,$T=p8*2,UT={baseUnit:p8,controlHeight:jT,menuGutter:$T},sd={borderRadius:HT,colors:zT,spacing:UT},ZT={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:o3(),captureMenuScroll:!o3(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:vT(),formatGroupLabel:LT,getOptionLabel:DT,getOptionValue:FT,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:BT,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!$M(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function g3(e,t,n,r){var o=b8(e,t,n),s=y8(e,t,n),i=g8(e,t),a=iu(e,t);return{type:"option",data:t,isDisabled:o,isSelected:s,label:i,value:a,index:r}}function _l(e,t){return e.options.map(function(n,r){if("options"in n){var o=n.options.map(function(i,a){return g3(e,i,t,a)}).filter(function(i){return y3(e,i)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var s=g3(e,n,t,r);return y3(e,s)?s:void 0}).filter(WM)}function m8(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,v2(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function b3(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,v2(r.options.map(function(o){return{data:o.data,id:"".concat(t,"-").concat(r.index,"-").concat(o.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function WT(e,t){return m8(_l(e,t))}function y3(e,t){var n=e.inputValue,r=n===void 0?"":n,o=t.data,s=t.isSelected,i=t.label,a=t.value;return(!w8(e)||!s)&&v8(e,{label:i,value:a,data:o},r)}function GT(e,t){var n=e.focusedValue,r=e.selectValue,o=r.indexOf(n);if(o>-1){var s=t.indexOf(n);if(s>-1)return n;if(o<t.length)return t[o]}return null}function qT(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var id=function(t,n){var r,o=(r=t.find(function(s){return s.data===n}))===null||r===void 0?void 0:r.id;return o||null},g8=function(t,n){return t.getOptionLabel(n)},iu=function(t,n){return t.getOptionValue(n)};function b8(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function y8(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=iu(e,t);return n.some(function(o){return iu(e,o)===r})}function v8(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var w8=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},JT=1,C8=function(e){IP(n,e);var t=RP(n);function n(r){var o;if(kP(this,n),o=t.call(this,r),o.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.isAppleDevice=NT(),o.controlRef=null,o.getControlRef=function(c){o.controlRef=c},o.focusedOptionRef=null,o.getFocusedOptionRef=function(c){o.focusedOptionRef=c},o.menuListRef=null,o.getMenuListRef=function(c){o.menuListRef=c},o.inputRef=null,o.getInputRef=function(c){o.inputRef=c},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(c,l){var u=o.props,d=u.onChange,f=u.name;l.name=f,o.ariaOnChange(c,l),d(c,l)},o.setValue=function(c,l,u){var d=o.props,f=d.closeMenuOnSelect,h=d.isMulti,g=d.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:g}),f&&(o.setState({inputIsHiddenAfterUpdate:!h}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(c,{action:l,option:u})},o.selectOption=function(c){var l=o.props,u=l.blurInputOnSelect,d=l.isMulti,f=l.name,h=o.state.selectValue,g=d&&o.isOptionSelected(c,h),m=o.isOptionDisabled(c,h);if(g){var b=o.getOptionValue(c);o.setValue(h.filter(function(y){return o.getOptionValue(y)!==b}),"deselect-option",c)}else if(!m)d?o.setValue([].concat(v2(h),[c]),"select-option",c):o.setValue(c,"select-option");else{o.ariaOnChange(c,{action:"select-option",option:c,name:f});return}u&&o.blurInput()},o.removeValue=function(c){var l=o.props.isMulti,u=o.state.selectValue,d=o.getOptionValue(c),f=u.filter(function(g){return o.getOptionValue(g)!==d}),h=rl(l,f,f[0]||null);o.onChange(h,{action:"remove-value",removedValue:c}),o.focusInput()},o.clearValue=function(){var c=o.state.selectValue;o.onChange(rl(o.props.isMulti,[],null),{action:"clear",removedValues:c})},o.popValue=function(){var c=o.props.isMulti,l=o.state.selectValue,u=l[l.length-1],d=l.slice(0,l.length-1),f=rl(c,d,d[0]||null);u&&o.onChange(f,{action:"pop-value",removedValue:u})},o.getFocusedOptionId=function(c){return id(o.state.focusableOptionsWithIds,c)},o.getFocusableOptionsWithIds=function(){return b3(_l(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var c=arguments.length,l=new Array(c),u=0;u<c;u++)l[u]=arguments[u];return BM.apply(void 0,[o.props.classNamePrefix].concat(l))},o.getOptionLabel=function(c){return g8(o.props,c)},o.getOptionValue=function(c){return iu(o.props,c)},o.getStyles=function(c,l){var u=o.props.unstyled,d=VT[c](l,u);d.boxSizing="border-box";var f=o.props.styles[c];return f?f(d,l):d},o.getClassNames=function(c,l){var u,d;return(u=(d=o.props.classNames)[c])===null||u===void 0?void 0:u.call(d,l)},o.getElementId=function(c){return"".concat(o.state.instancePrefix,"-").concat(c)},o.getComponents=function(){return aT(o.props)},o.buildCategorizedOptions=function(){return _l(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return m8(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(c,l){o.setState({ariaSelection:Re({value:c},l)})},o.onMenuMouseDown=function(c){c.button===0&&(c.stopPropagation(),c.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(c){o.blockOptionHover=!1},o.onControlMouseDown=function(c){if(!c.defaultPrevented){var l=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?c.target.tagName!=="INPUT"&&c.target.tagName!=="TEXTAREA"&&o.onMenuClose():l&&o.openMenu("first"):(l&&(o.openAfterFocus=!0),o.focusInput()),c.target.tagName!=="INPUT"&&c.target.tagName!=="TEXTAREA"&&c.preventDefault()}},o.onDropdownIndicatorMouseDown=function(c){if(!(c&&c.type==="mousedown"&&c.button!==0)&&!o.props.isDisabled){var l=o.props,u=l.isMulti,d=l.menuIsOpen;o.focusInput(),d?(o.setState({inputIsHiddenAfterUpdate:!u}),o.onMenuClose()):o.openMenu("first"),c.preventDefault()}},o.onClearIndicatorMouseDown=function(c){c&&c.type==="mousedown"&&c.button!==0||(o.clearValue(),c.preventDefault(),o.openAfterFocus=!1,c.type==="touchend"?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(c){typeof o.props.closeMenuOnScroll=="boolean"?c.target instanceof HTMLElement&&Ku(c.target)&&o.props.onMenuClose():typeof o.props.closeMenuOnScroll=="function"&&o.props.closeMenuOnScroll(c)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(c){var l=c.touches,u=l&&l.item(0);u&&(o.initialTouchX=u.clientX,o.initialTouchY=u.clientY,o.userIsDragging=!1)},o.onTouchMove=function(c){var l=c.touches,u=l&&l.item(0);if(u){var d=Math.abs(u.clientX-o.initialTouchX),f=Math.abs(u.clientY-o.initialTouchY),h=5;o.userIsDragging=d>h||f>h}},o.onTouchEnd=function(c){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(c.target)&&o.menuListRef&&!o.menuListRef.contains(c.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(c){o.userIsDragging||o.onControlMouseDown(c)},o.onClearIndicatorTouchEnd=function(c){o.userIsDragging||o.onClearIndicatorMouseDown(c)},o.onDropdownIndicatorTouchEnd=function(c){o.userIsDragging||o.onDropdownIndicatorMouseDown(c)},o.handleInputChange=function(c){var l=o.props.inputValue,u=c.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(u,{action:"input-change",prevInputValue:l}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(c){o.props.onFocus&&o.props.onFocus(c),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(c){var l=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(c),o.onInputChange("",{action:"input-blur",prevInputValue:l}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(c){if(!(o.blockOptionHover||o.state.focusedOption===c)){var l=o.getFocusableOptions(),u=l.indexOf(c);o.setState({focusedOption:c,focusedOptionId:u>-1?o.getFocusedOptionId(c):null})}},o.shouldHideSelectedOptions=function(){return w8(o.props)},o.onValueInputFocus=function(c){c.preventDefault(),c.stopPropagation(),o.focus()},o.onKeyDown=function(c){var l=o.props,u=l.isMulti,d=l.backspaceRemovesValue,f=l.escapeClearsValue,h=l.inputValue,g=l.isClearable,m=l.isDisabled,b=l.menuIsOpen,y=l.onKeyDown,v=l.tabSelectsValue,w=l.openMenuOnFocus,x=o.state,C=x.focusedOption,S=x.focusedValue,A=x.selectValue;if(!m&&!(typeof y=="function"&&(y(c),c.defaultPrevented))){switch(o.blockOptionHover=!0,c.key){case"ArrowLeft":if(!u||h)return;o.focusValue("previous");break;case"ArrowRight":if(!u||h)return;o.focusValue("next");break;case"Delete":case"Backspace":if(h)return;if(S)o.removeValue(S);else{if(!d)return;u?o.popValue():g&&o.clearValue()}break;case"Tab":if(o.isComposing||c.shiftKey||!b||!v||!C||w&&o.isOptionSelected(C,A))return;o.selectOption(C);break;case"Enter":if(c.keyCode===229)break;if(b){if(!C||o.isComposing)return;o.selectOption(C);break}return;case"Escape":b?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:h}),o.onMenuClose()):g&&f&&o.clearValue();break;case" ":if(h)return;if(!b){o.openMenu("first");break}if(!C)return;o.selectOption(C);break;case"ArrowUp":b?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":b?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!b)return;o.focusOption("pageup");break;case"PageDown":if(!b)return;o.focusOption("pagedown");break;case"Home":if(!b)return;o.focusOption("first");break;case"End":if(!b)return;o.focusOption("last");break;default:return}c.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++JT),o.state.selectValue=n3(r.value),r.menuIsOpen&&o.state.selectValue.length){var s=o.getFocusableOptionsWithIds(),i=o.buildFocusableOptions(),a=i.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=s,o.state.focusedOption=i[a],o.state.focusedOptionId=id(s,i[a])}return o}return _P(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&r3(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(o){var s=this.props,i=s.isDisabled,a=s.menuIsOpen,c=this.state.isFocused;(c&&!i&&o.isDisabled||c&&a&&!o.menuIsOpen)&&this.focusInput(),c&&i&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!c&&!i&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(r3(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,s){this.props.onInputChange(o,s)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var s=this,i=this.state,a=i.selectValue,c=i.isFocused,l=this.buildFocusableOptions(),u=o==="first"?0:l.length-1;if(!this.props.isMulti){var d=l.indexOf(a[0]);d>-1&&(u=d)}this.scrollToFocusedOptionOnUpdate=!(c&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:l[u],focusedOptionId:this.getFocusedOptionId(l[u])},function(){return s.onMenuOpen()})}},{key:"focusValue",value:function(o){var s=this.state,i=s.selectValue,a=s.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var c=i.indexOf(a);a||(c=-1);var l=i.length-1,u=-1;if(i.length){switch(o){case"previous":c===0?u=0:c===-1?u=l:u=c-1;break;case"next":c>-1&&c<l&&(u=c+1);break}this.setState({inputIsHidden:u!==-1,focusedValue:i[u]})}}}},{key:"focusOption",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",s=this.props.pageSize,i=this.state.focusedOption,a=this.getFocusableOptions();if(a.length){var c=0,l=a.indexOf(i);i||(l=-1),o==="up"?c=l>0?l-1:a.length-1:o==="down"?c=(l+1)%a.length:o==="pageup"?(c=l-s,c<0&&(c=0)):o==="pagedown"?(c=l+s,c>a.length-1&&(c=a.length-1)):o==="last"&&(c=a.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:a[c],focusedValue:null,focusedOptionId:this.getFocusedOptionId(a[c])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(sd):Re(Re({},sd),this.props.theme):sd}},{key:"getCommonProps",value:function(){var o=this.clearValue,s=this.cx,i=this.getStyles,a=this.getClassNames,c=this.getValue,l=this.selectOption,u=this.setValue,d=this.props,f=d.isMulti,h=d.isRtl,g=d.options,m=this.hasValue();return{clearValue:o,cx:s,getStyles:i,getClassNames:a,getValue:c,hasValue:m,isMulti:f,isRtl:h,options:g,selectOption:l,selectProps:d,setValue:u,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,s=o.isClearable,i=o.isMulti;return s===void 0?i:s}},{key:"isOptionDisabled",value:function(o,s){return b8(this.props,o,s)}},{key:"isOptionSelected",value:function(o,s){return y8(this.props,o,s)}},{key:"filterOption",value:function(o,s){return v8(this.props,o,s)}},{key:"formatOptionLabel",value:function(o,s){if(typeof this.props.formatOptionLabel=="function"){var i=this.props.inputValue,a=this.state.selectValue;return this.props.formatOptionLabel(o,{context:s,inputValue:i,selectValue:a})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var o=this.props,s=o.isDisabled,i=o.isSearchable,a=o.inputId,c=o.inputValue,l=o.tabIndex,u=o.form,d=o.menuIsOpen,f=o.required,h=this.getComponents(),g=h.Input,m=this.state,b=m.inputIsHidden,y=m.ariaSelection,v=this.commonProps,w=a||this.getElementId("input"),x=Re(Re(Re({"aria-autocomplete":"list","aria-expanded":d,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":f,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!i&&{"aria-readonly":!0}),this.hasValue()?(y==null?void 0:y.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return i?P.createElement(g,Le({},v,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:w,innerRef:this.getInputRef,isDisabled:s,isHidden:b,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:l,form:u,type:"text",value:c},x)):P.createElement(CT,Le({id:w,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:ou,onFocus:this.onInputFocus,disabled:s,tabIndex:l,inputMode:"none",form:u,value:""},x))}},{key:"renderPlaceholderOrValue",value:function(){var o=this,s=this.getComponents(),i=s.MultiValue,a=s.MultiValueContainer,c=s.MultiValueLabel,l=s.MultiValueRemove,u=s.SingleValue,d=s.Placeholder,f=this.commonProps,h=this.props,g=h.controlShouldRenderValue,m=h.isDisabled,b=h.isMulti,y=h.inputValue,v=h.placeholder,w=this.state,x=w.selectValue,C=w.focusedValue,S=w.isFocused;if(!this.hasValue()||!g)return y?null:P.createElement(d,Le({},f,{key:"placeholder",isDisabled:m,isFocused:S,innerProps:{id:this.getElementId("placeholder")}}),v);if(b)return x.map(function(k,O){var T=k===C,B="".concat(o.getOptionLabel(k),"-").concat(o.getOptionValue(k));return P.createElement(i,Le({},f,{components:{Container:a,Label:c,Remove:l},isFocused:T,isDisabled:m,key:B,index:O,removeProps:{onClick:function(){return o.removeValue(k)},onTouchEnd:function(){return o.removeValue(k)},onMouseDown:function(R){R.preventDefault()}},data:k}),o.formatOptionLabel(k,"value"))});if(y)return null;var A=x[0];return P.createElement(u,Le({},f,{data:A,isDisabled:m}),this.formatOptionLabel(A,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),s=o.ClearIndicator,i=this.commonProps,a=this.props,c=a.isDisabled,l=a.isLoading,u=this.state.isFocused;if(!this.isClearable()||!s||c||!this.hasValue()||l)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return P.createElement(s,Le({},i,{innerProps:d,isFocused:u}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),s=o.LoadingIndicator,i=this.commonProps,a=this.props,c=a.isDisabled,l=a.isLoading,u=this.state.isFocused;if(!s||!l)return null;var d={"aria-hidden":"true"};return P.createElement(s,Le({},i,{innerProps:d,isDisabled:c,isFocused:u}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),s=o.DropdownIndicator,i=o.IndicatorSeparator;if(!s||!i)return null;var a=this.commonProps,c=this.props.isDisabled,l=this.state.isFocused;return P.createElement(i,Le({},a,{isDisabled:c,isFocused:l}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),s=o.DropdownIndicator;if(!s)return null;var i=this.commonProps,a=this.props.isDisabled,c=this.state.isFocused,l={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return P.createElement(s,Le({},i,{innerProps:l,isDisabled:a,isFocused:c}))}},{key:"renderMenu",value:function(){var o=this,s=this.getComponents(),i=s.Group,a=s.GroupHeading,c=s.Menu,l=s.MenuList,u=s.MenuPortal,d=s.LoadingMessage,f=s.NoOptionsMessage,h=s.Option,g=this.commonProps,m=this.state.focusedOption,b=this.props,y=b.captureMenuScroll,v=b.inputValue,w=b.isLoading,x=b.loadingMessage,C=b.minMenuHeight,S=b.maxMenuHeight,A=b.menuIsOpen,k=b.menuPlacement,O=b.menuPosition,T=b.menuPortalTarget,B=b.menuShouldBlockScroll,_=b.menuShouldScrollIntoView,R=b.noOptionsMessage,E=b.onMenuScrollToTop,V=b.onMenuScrollToBottom;if(!A)return null;var D=function(Y,G){var W=Y.type,re=Y.data,ee=Y.isDisabled,ie=Y.isSelected,ce=Y.label,be=Y.value,Oe=m===re,He=ee?void 0:function(){return o.onOptionHover(re)},tt=ee?void 0:function(){return o.selectOption(re)},I="".concat(o.getElementId("option"),"-").concat(G),se={id:I,onClick:tt,onMouseMove:He,onMouseOver:He,tabIndex:-1,role:"option","aria-selected":o.isAppleDevice?void 0:ie};return P.createElement(h,Le({},g,{innerProps:se,data:re,isDisabled:ee,isSelected:ie,key:I,label:ce,type:W,value:be,isFocused:Oe,innerRef:Oe?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(Y.data,"menu"))},H;if(this.hasOptions())H=this.getCategorizedOptions().map(function(M){if(M.type==="group"){var Y=M.data,G=M.options,W=M.index,re="".concat(o.getElementId("group"),"-").concat(W),ee="".concat(re,"-heading");return P.createElement(i,Le({},g,{key:re,data:Y,options:G,Heading:a,headingProps:{id:ee,data:M.data},label:o.formatGroupLabel(M.data)}),M.options.map(function(ie){return D(ie,"".concat(W,"-").concat(ie.index))}))}else if(M.type==="option")return D(M,"".concat(M.index))});else if(w){var N=x({inputValue:v});if(N===null)return null;H=P.createElement(d,g,N)}else{var F=R({inputValue:v});if(F===null)return null;H=P.createElement(f,g,F)}var X={minMenuHeight:C,maxMenuHeight:S,menuPlacement:k,menuPosition:O,menuShouldScrollIntoView:_},j=P.createElement(eR,Le({},g,X),function(M){var Y=M.ref,G=M.placerProps,W=G.placement,re=G.maxHeight;return P.createElement(c,Le({},g,X,{innerRef:Y,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:w,placement:W}),P.createElement(kT,{captureEnabled:y,onTopArrive:E,onBottomArrive:V,lockEnabled:B},function(ee){return P.createElement(l,Le({},g,{innerRef:function(ce){o.getMenuListRef(ce),ee(ce)},innerProps:{role:"listbox","aria-multiselectable":g.isMulti,id:o.getElementId("listbox")},isLoading:w,maxHeight:re,focusedOption:m}),H)}))});return T||O==="fixed"?P.createElement(u,Le({},g,{appendTo:T,controlElement:this.controlRef,menuPlacement:k,menuPosition:O}),j):j}},{key:"renderFormField",value:function(){var o=this,s=this.props,i=s.delimiter,a=s.isDisabled,c=s.isMulti,l=s.name,u=s.required,d=this.state.selectValue;if(u&&!this.hasValue()&&!a)return P.createElement(PT,{name:l,onFocus:this.onValueInputFocus});if(!(!l||a))if(c)if(i){var f=d.map(function(m){return o.getOptionValue(m)}).join(i);return P.createElement("input",{name:l,type:"hidden",value:f})}else{var h=d.length>0?d.map(function(m,b){return P.createElement("input",{key:"i-".concat(b),name:l,type:"hidden",value:o.getOptionValue(m)})}):P.createElement("input",{name:l,type:"hidden",value:""});return P.createElement("div",null,h)}else{var g=d[0]?this.getOptionValue(d[0]):"";return P.createElement("input",{name:l,type:"hidden",value:g})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,s=this.state,i=s.ariaSelection,a=s.focusedOption,c=s.focusedValue,l=s.isFocused,u=s.selectValue,d=this.getFocusableOptions();return P.createElement(mT,Le({},o,{id:this.getElementId("live-region"),ariaSelection:i,focusedOption:a,focusedValue:c,isFocused:l,selectValue:u,focusableOptions:d,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),s=o.Control,i=o.IndicatorsContainer,a=o.SelectContainer,c=o.ValueContainer,l=this.props,u=l.className,d=l.id,f=l.isDisabled,h=l.menuIsOpen,g=this.state.isFocused,m=this.commonProps=this.getCommonProps();return P.createElement(a,Le({},m,{className:u,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:g}),this.renderLiveRegion(),P.createElement(s,Le({},m,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:g,menuIsOpen:h}),P.createElement(c,Le({},m,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),P.createElement(i,Le({},m,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,s){var i=s.prevProps,a=s.clearFocusValueOnUpdate,c=s.inputIsHiddenAfterUpdate,l=s.ariaSelection,u=s.isFocused,d=s.prevWasFocused,f=s.instancePrefix,h=o.options,g=o.value,m=o.menuIsOpen,b=o.inputValue,y=o.isMulti,v=n3(g),w={};if(i&&(g!==i.value||h!==i.options||m!==i.menuIsOpen||b!==i.inputValue)){var x=m?WT(o,v):[],C=m?b3(_l(o,v),"".concat(f,"-option")):[],S=a?GT(s,v):null,A=qT(s,x),k=id(C,A);w={selectValue:v,focusedOption:A,focusedOptionId:k,focusableOptionsWithIds:C,focusedValue:S,clearFocusValueOnUpdate:!1}}var O=c!=null&&o!==i?{inputIsHidden:c,inputIsHiddenAfterUpdate:void 0}:{},T=l,B=u&&d;return u&&!B&&(T={value:rl(y,v,v[0]||null),options:v,action:"initial-input-focus"},B=!d),(l==null?void 0:l.action)==="initial-input-focus"&&(T=null),Re(Re(Re({},w),O),{},{prevProps:o,ariaSelection:T,prevWasFocused:B})}}]),n}(Ov);C8.defaultProps=ZT;var YT=Co(function(e,t){var n=OP(e);return P.createElement(C8,Le({ref:t},n))}),KT=YT;function XT(e){return p(Xu.DropdownIndicator,{...e,children:p(ue,{name:"ChevronDown",size:16})})}function QT(e){return p(Xu.ClearIndicator,{...e,children:p(ue,{name:"Xmark",size:16})})}function eN(e){const{label:t,onClick:n,...r}=e,o=!!t&&!!n;return q(Xu.MenuList,{...r,children:[e.children,o?p("button",{className:"w-full px-2 py-3 hover:bg-slate-50",onClick:n,children:t}):null]})}function lq(e){const t=e["aria-invalid"]==="true",{addItemButtonProps:n,...r}=e;return p(KT,{...r,components:{DropdownIndicator:XT,ClearIndicator:QT,MenuList:o=>eN({...o,...n})},styles:{dropdownIndicator:()=>({label:"indicatorContainer",display:"flex",transition:"color 150ms",color:"var(color-gray-900)",padding:8,boxSizing:"border-box"}),clearIndicator:o=>({...o,color:"var(color-gray-900)"}),container:o=>({...o,borderColor:"var(color-gray-200)",fontSize:12}),placeholder:o=>({...o,color:t?"var(color-red-800)":"var(color-gray-500)"}),control:()=>({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:32,outline:"0 !important",position:"relative",transition:"all 100ms",backgroundColor:"var(--color-white)",borderColor:t?"var(--color-red-900)":"var(--color-gray-200)",borderStyle:"solid",borderWidth:1,borderRadius:"6px",boxSizing:"border-box"}),option:(o,s)=>({...o,backgroundColor:s.isSelected?"var(--color-slate-50)":"var(--color-white)",color:"var(--color-gray-800)",":hover":{backgroundColor:"var(--color-slate-50)"}}),menuList:o=>({...o,padding:0,borderRadius:"6px"})},theme:o=>({...o,colors:{...o.colors,primary:"var(--color-slate-100)",primary25:"var(--color-slate-50)",primary50:"var(--color-slate-100)",primary75:"var(--color-slate-100)",danger:"var(--color-red-900)",dangerLight:"var(--color-red-100)",neutral0:"var(--color-white)",neutral5:"var(--color-gray-50)",neutral10:"var(--color-gray-100)",neutral20:"var(--color-gray-200)",neutral30:"var(--color-gray-300)",neutral40:"var(--color-gray-400)",neutral50:"var(--color-gray-500)",neutral60:"var(--color-gray-600)",neutral70:"var(--color-gray-700)",neutral80:"var(--color-gray-800)",neutral90:"var(--color-gray-900)"}})})}const uq=e=>{const{children:t,cookies:n,submitLabel:r,rejectLabel:o,onSubmit:s=()=>{},onReject:i=()=>{},...a}=e,[c,l]=we(n),u=f=>{const{id:h,checked:g}=f.target;l(m=>m.map(b=>b.id===h?{...b,value:g}:b))},d="min-w-64 h-8 text-base";return q("div",{...Jt(a,"flex flex-col items-center"),children:[p("div",{className:"text-center",children:t}),p("div",{className:"my-8 flex gap-x-16 text-sm font-medium",children:c.map((f,h)=>q("div",{className:"cursor-pointer",children:[p("input",{checked:f.value,className:"mr-1 size-3 cursor-pointer rounded-sm border-2 border-gray-900 accent-gray-900 focus:outline-none",id:f.id,onChange:u,type:"checkbox"}),p("label",{className:"cursor-pointer select-none",htmlFor:f.id,children:f.label})]},h))}),q("div",{className:"flex gap-x-8",children:[p(yn,{className:d,color:"light",onClick:()=>i(),size:"small",children:o},"button-reject"),p(yn,{className:d,onClick:()=>s(c),size:"small",children:r},"button-submit")]})]})};function dq(e){const{message:t="Loading editor",...n}=e;return p("div",{className:"grid h-full place-items-center",...n,children:q("div",{className:"-mt-20 grid place-items-center",children:[p("h3",{className:"mb-4 text-xl",children:t}),p(yP,{})]})})}function au(e){const{title:t,isOpen:n,onOpenChange:r,children:o,containerClassName:s,toggleClassName:i,contentClassName:a}=e;return q("div",{className:he(s),children:[q("div",{className:he("flex cursor-pointer justify-between text-gray-500",i),onClick:r,children:[p("h2",{className:"font-semibold text-inherit",children:t}),p(ue,{className:ic("transition",n?"":"-rotate-90"),size:16,name:"ChevronDown"})]}),p("div",{className:he("max-h-0 overflow-hidden transition-[max-height] duration-300 ease-in-out",n&&"max-h-screen",a),children:o})]})}function uo(e){return p("div",{...e,className:he("h-px bg-gray-200",e.className)})}const tN=e=>{const{className:t,timestamp:n,title:r,subtitle:o,onClick:s,isSelected:i=!1}=e,[a,c]=we(!1),l=!!r||!!o||!!n;Ye(()=>{a&&(c(!1),setTimeout(()=>l&&c(!0),50))},[r,o,n,l]);const u=g=>{if(!g)return"";try{return t_(new Date(g),{addSuffix:!0})}catch{return g}},d=q("div",{className:"flex flex-col text-xs",children:[!!r&&p("div",{children:r}),!!o&&p("div",{className:"text-gray-300",children:o}),!!n&&p("div",{children:u(n)})]});return q("div",{className:"relative",onMouseEnter:()=>{l&&c(!0)},onMouseLeave:()=>{c(!1)},children:[i&&p(ue,{name:"TimelineCaret",color:"#4EA9FF",size:10,className:"absolute top-[-11px] z-40"}),p(So,{className:"rounded-md bg-gray-900 text-white",content:d,open:a&&l,onOpenChange:c,delayDuration:0,side:"bottom",sideOffset:5,children:p("div",{className:he("mx-0.5 flex h-[25px] w-1.5 cursor-pointer flex-col items-center justify-center rounded-[2px] hover:bg-blue-300",i&&"bg-blue-300",t),onClick:s,"data-title":r,"data-subtitle":o,"data-timestamp":n,children:p("div",{className:"h-0.5 w-1 rounded-full bg-gray-500"})})})]})},v3=(e=0)=>{switch(!0){case e<=0:return"h-[1px]";case e===1:return"h-[3px]";case e===2:return"h-[6px]";case e===3:return"h-[9px]";case e>=4:return"h-[12px]";default:return"h-[1px]"}},nN=e=>{if(!e)return"";try{const t=n_(e);return Gl(t,"HH:mm, dd, MMMM")}catch{return e}},rN=({onClick:e,className:t,timestamp:n,additions:r,deletions:o,addSize:s=0,delSize:i=0,isSelected:a=!1})=>{const[c,l]=we(!1),u=s===0&&i===0,d=v3(s),f=v3(i),h=q("div",{className:"flex flex-col text-xs",children:[p("div",{children:nN(n)}),p("div",{className:"text-green-900",children:`${r} additions +`}),p("div",{className:"text-red-700",children:`${o} deletions -`})]});return q("div",{className:"relative",onMouseEnter:()=>{u||l(!0)},onMouseLeave:()=>{l(!1)},children:[a&&p(ue,{name:"TimelineCaret",color:"#4EA9FF",size:10,className:"absolute left-[-2px] top-[-11px] z-40"}),u?p("div",{className:he("flex h-[25px] w-1.5 cursor-pointer flex-col items-center justify-center rounded-[2px] hover:bg-blue-300",t),"data-timestamp":n,onClick:e,children:p("div",{className:"size-[3px] rounded-full bg-gray-500"})}):p(So,{className:"rounded-md bg-gray-900 text-white",content:h,open:c,onOpenChange:l,delayDuration:0,side:"bottom",sideOffset:5,children:q("div",{className:he("flex h-[25px] w-1.5 cursor-pointer flex-col items-center justify-center rounded-[2px] hover:bg-blue-300",t,a&&"bg-blue-300"),"data-timestamp":n,onClick:e,children:[p("div",{className:"flex h-3 w-0.5 items-end",children:p("div",{className:he("h-3 w-0.5 rounded-t-full bg-green-600",d)})}),p("div",{className:"flex h-3 w-0.5 items-start",children:p("div",{className:he("h-3 w-0.5 rounded-b-full bg-red-600",f)})})]})})]})},w3={id:"default",type:"bar",addSize:0,delSize:0},oN=e=>{const{timeline:t=[],onItemClick:n}=e,[r,o]=we(null),s=Je(null),i=h=>{h.id===r||h.id===w3.id?(n==null||n(null),o(null)):(n==null||n(h),o(h.id))},a=[...t,w3],[c,l]=bt(()=>{const h=a.findIndex(g=>g.id===r);return h===-1?[a,[]]:[a.slice(0,h),a.slice(h)]},[a,r]),u=Te(h=>h.map(g=>{if(g.type==="divider"){const{timestamp:m,title:b,subtitle:y}=g;return p(tN,{timestamp:m,title:b,subtitle:y,onClick:()=>i(g),isSelected:g.id===r},g.id)}return p(rN,{timestamp:g.timestamp,addSize:g.addSize,delSize:g.delSize,additions:g.additions,deletions:g.deletions,isSelected:g.id===r,onClick:()=>i(g)},g.id)}),[i,r]),d=bt(()=>u(c),[c,u]),f=bt(()=>u(l),[l,u]);return Ye(()=>{s.current&&(s.current.scrollLeft=s.current.scrollWidth)},[]),p(fv,{delayDuration:0,skipDelayDuration:0,children:q("div",{className:"relative h-[36px] w-full",children:[p("div",{className:"absolute left-[0px] z-[20] h-[17px] w-[6px] bg-white",children:p("div",{className:"mt-[11px] h-[6px] w-[6px] rounded-tl-md bg-slate-50"})}),p("div",{className:"absolute right-[0px] top-[11px] z-[20] h-[6px] w-[6px] bg-white",children:p("div",{className:"h-[6px] w-[6px] rounded-tr-md bg-slate-50"})}),p("div",{className:"absolute inset-x-0 bottom-0 h-[25px] rounded-md bg-slate-50"}),p("div",{className:"absolute inset-x-0 bottom-0 h-[36px]",children:p("div",{ref:s,className:"h-full overflow-x-auto rounded-md",children:q("div",{className:"ml-auto flex h-[36px] w-max items-end px-2 pb-0",children:[p("div",{className:"flex",children:d}),p("div",{className:"flex rounded-sm bg-blue-200",children:f})]})})}),p("div",{className:"pointer-events-none absolute bottom-0 left-0 z-10 h-[25px] w-2 rounded-l-md bg-slate-50"}),p("div",{className:"pointer-events-none absolute bottom-0 right-0 z-10 h-[25px] w-2 rounded-r-md bg-slate-50"})]})})},fq=e=>{const{undo:t,canUndo:n,redo:r,canRedo:o,title:s,onClose:i,onExport:a,className:c,onShowRevisionHistory:l,onSwitchboardLinkClick:u,timelineItems:d=[],onTimelineItemClick:f,initialTimelineVisible:h=!1,timelineButtonVisible:g=!1}=e,[m,b]=we(h),y=!n||!t,v=!o||!r,w=!a,x=!u,C=!l,S=d.length===0;Ye(()=>{h&&b(!0)},[h]);const A=()=>{S||b(!m)};return q("div",{className:"flex w-full flex-col",children:[q("div",{className:he("flex h-12 w-full items-center justify-between rounded-xl border border-gray-200 bg-slate-50 px-4",c),children:[q("div",{className:"flex items-center gap-x-2",children:[p("button",{className:he("grid size-8 place-items-center rounded-lg border border-gray-200 bg-white",y?"cursor-not-allowed":"cursor-pointer active:opacity-70"),onClick:t,disabled:y,children:p(ue,{name:"ArrowCouterclockwise",size:16,className:y?"text-gray-500":"text-gray-900"})}),p("button",{className:he("grid size-8 place-items-center rounded-lg border border-gray-200 bg-white",v?"cursor-not-allowed":"cursor-pointer active:opacity-70"),onClick:r,disabled:v,children:p("div",{className:"-scale-x-100",children:p(ue,{name:"ArrowCouterclockwise",size:16,className:v?"text-gray-500":"text-gray-900"})})}),p("button",{className:he("flex h-8 items-center rounded-lg border border-gray-200 bg-white px-3 text-sm",w?"cursor-not-allowed":"cursor-pointer active:opacity-70"),onClick:a,disabled:w,children:p("span",{className:w?"text-gray-500":"text-gray-900",children:"Export"})})]}),p("div",{className:"flex items-center",children:p("h1",{className:"text-sm font-medium text-gray-500",children:s})}),q("div",{className:"flex items-center gap-x-2",children:[x?null:p("button",{className:he("grid size-8 place-items-center rounded-lg border border-gray-200 bg-white","cursor-pointer active:opacity-70"),onClick:u,disabled:x,children:p(ue,{name:"Drive",size:16,className:"text-gray-900"})}),p("button",{className:he("grid size-8 place-items-center rounded-lg border border-gray-200 bg-white",C?"cursor-not-allowed":"cursor-pointer active:opacity-70"),onClick:l,disabled:C,children:p(ue,{name:"History",size:16,className:C?"text-gray-500":"text-gray-900"})}),g&&p("button",{className:he("grid size-8 place-items-center rounded-lg border border-gray-200 bg-white",S?"cursor-not-allowed":"cursor-pointer active:opacity-70"),onClick:A,disabled:S,"aria-pressed":m,children:p(ue,{name:"Timeline",size:16,className:he("text-gray-900",S&&"opacity-50",m&&"text-blue-600")})}),p("button",{className:"grid size-8 cursor-pointer place-items-center rounded-lg border border-gray-200 bg-white active:opacity-70",onClick:i,children:p(ue,{name:"XmarkLight",size:16,className:"text-gray-900"})})]})]}),m&&p("div",{className:"mt-2 w-full",children:p(oN,{timeline:d,onItemClick:f})})]})};function Qu(e){const{children:t,items:n,open:r,onItemClick:o,onOpenChange:s}=e;return q(c5,{onOpenChange:s,open:r,children:[p(l5,{asChild:!0,className:"outline-none",children:t}),p(u5,{className:"modal-shadow cursor-pointer rounded-2xl bg-white text-sm font-medium text-slate-500",children:n.map(({id:i,label:a,icon:c,className:l})=>q(d5,{className:he("flex items-center px-5 py-2 outline-none first-of-type:rounded-t-2xl first-of-type:pt-3 last-of-type:rounded-b-2xl last-of-type:pb-3 hover:bg-slate-50",l),onClick:u=>u.stopPropagation(),onSelect:()=>o(i),children:[c?p("span",{className:"mr-2 inline-block",children:c}):null,a]},i))})]})}const sN=""+new URL("powerhouse-rounded-CeKGGUG4.png",import.meta.url).href,x8="2.31.4";let Zi={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:n})=>t?`${e??"https://viem.sh"}${t}${n?`#${n}`:""}`:void 0,version:`viem@${x8}`},ae=class of extends Error{constructor(t,n={}){var a;const r=(()=>{var c;return n.cause instanceof of?n.cause.details:(c=n.cause)!=null&&c.message?n.cause.message:n.details})(),o=n.cause instanceof of&&n.cause.docsPath||n.docsPath,s=(a=Zi.getDocsUrl)==null?void 0:a.call(Zi,{...n,docsPath:o}),i=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...s?[`Docs: ${s}`]:[],...r?[`Details: ${r}`]:[],...Zi.version?[`Version: ${Zi.version}`]:[]].join(`
58
- `);super(i,n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=r,this.docsPath=o,this.metaMessages=n.metaMessages,this.name=n.name??this.name,this.shortMessage=t,this.version=x8}walk(t){return S8(this,t)}};function S8(e,t){return t!=null&&t(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause!==void 0?S8(e.cause,t):t?null:e}let E8=class extends ae{constructor({max:t,min:n,signed:r,size:o,value:s}){super(`Number "${s}" is not in safe ${o?`${o*8}-bit ${r?"signed":"unsigned"} `:""}integer range ${t?`(${n} to ${t})`:`(above ${n})`}`,{name:"IntegerOutOfRangeError"})}};class iN extends ae{constructor(t){super(`Bytes value "${t}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class aN extends ae{constructor(t){super(`Hex value "${t}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}let cN=class extends ae{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed ${n} bytes. Given size: ${t} bytes.`,{name:"SizeOverflowError"})}},A8=class extends ae{constructor({offset:t,position:n,size:r}){super(`Slice ${n==="start"?"starting":"ending"} at offset "${t}" is out-of-bounds (size: ${r}).`,{name:"SliceOffsetOutOfBoundsError"})}},O8=class extends ae{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${t}) exceeds padding size (${n}).`,{name:"SizeExceedsPaddingSizeError"})}};class C3 extends ae{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} is expected to be ${n} ${r} long, but is ${t} ${r} long.`,{name:"InvalidBytesLengthError"})}}function Ei(e,{dir:t,size:n=32}={}){return typeof e=="string"?ho(e,{dir:t,size:n}):lN(e,{dir:t,size:n})}function ho(e,{dir:t,size:n=32}={}){if(n===null)return e;const r=e.replace("0x","");if(r.length>n*2)throw new O8({size:Math.ceil(r.length/2),targetSize:n,type:"hex"});return`0x${r[t==="right"?"padEnd":"padStart"](n*2,"0")}`}function lN(e,{dir:t,size:n=32}={}){if(n===null)return e;if(e.length>n)throw new O8({size:e.length,targetSize:n,type:"bytes"});const r=new Uint8Array(n);for(let o=0;o<n;o++){const s=t==="right";r[s?o:n-o-1]=e[s?o:e.length-o-1]}return r}function Rn(e,{strict:t=!0}={}){return!e||typeof e!="string"?!1:t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}function at(e){return Rn(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}function _n(e,{dir:t="left"}={}){let n=typeof e=="string"?e.replace("0x",""):e,r=0;for(let o=0;o<n.length-1&&n[t==="left"?o:n.length-o-1].toString()==="0";o++)r++;return n=t==="left"?n.slice(r):n.slice(0,n.length-r),typeof e=="string"?(n.length===1&&t==="right"&&(n=`${n}0`),`0x${n.length%2===1?`0${n}`:n}`):n}const uN=new TextEncoder;function Ai(e,t={}){return typeof e=="number"||typeof e=="bigint"?fN(e,t):typeof e=="boolean"?dN(e,t):Rn(e)?Tn(e,t):Uo(e,t)}function dN(e,t={}){const n=new Uint8Array(1);return n[0]=Number(e),typeof t.size=="number"?(Vn(n,{size:t.size}),Ei(n,{size:t.size})):n}const yr={zero:48,nine:57,A:65,F:70,a:97,f:102};function x3(e){if(e>=yr.zero&&e<=yr.nine)return e-yr.zero;if(e>=yr.A&&e<=yr.F)return e-(yr.A-10);if(e>=yr.a&&e<=yr.f)return e-(yr.a-10)}function Tn(e,t={}){let n=e;t.size&&(Vn(n,{size:t.size}),n=Ei(n,{dir:"right",size:t.size}));let r=n.slice(2);r.length%2&&(r=`0${r}`);const o=r.length/2,s=new Uint8Array(o);for(let i=0,a=0;i<o;i++){const c=x3(r.charCodeAt(a++)),l=x3(r.charCodeAt(a++));if(c===void 0||l===void 0)throw new ae(`Invalid byte sequence ("${r[a-2]}${r[a-1]}" in "${r}").`);s[i]=c*16+l}return s}function fN(e,t){const n=me(e,t);return Tn(n)}function Uo(e,t={}){const n=uN.encode(e);return typeof t.size=="number"?(Vn(n,{size:t.size}),Ei(n,{dir:"right",size:t.size})):n}function Vn(e,{size:t}){if(at(e)>t)throw new cN({givenSize:at(e),maxSize:t})}function Bt(e,t={}){const{signed:n}=t;t.size&&Vn(e,{size:t.size});const r=BigInt(e);if(!n)return r;const o=(e.length-2)/2,s=(1n<<BigInt(o)*8n-1n)-1n;return r<=s?r:r-BigInt(`0x${"f".padStart(o*2,"f")}`)-1n}function hN(e,t={}){let n=e;if(t.size&&(Vn(n,{size:t.size}),n=_n(n)),_n(n)==="0x00")return!1;if(_n(n)==="0x01")return!0;throw new aN(n)}function lr(e,t={}){return Number(Bt(e,t))}const pN=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Xt(e,t={}){return typeof e=="number"||typeof e=="bigint"?me(e,t):typeof e=="string"?Ea(e,t):typeof e=="boolean"?k8(e,t):vt(e,t)}function k8(e,t={}){const n=`0x${Number(e)}`;return typeof t.size=="number"?(Vn(n,{size:t.size}),Ei(n,{size:t.size})):n}function vt(e,t={}){let n="";for(let o=0;o<e.length;o++)n+=pN[e[o]];const r=`0x${n}`;return typeof t.size=="number"?(Vn(r,{size:t.size}),Ei(r,{dir:"right",size:t.size})):r}function me(e,t={}){const{signed:n,size:r}=t,o=BigInt(e);let s;r?n?s=(1n<<BigInt(r)*8n-1n)-1n:s=2n**(BigInt(r)*8n)-1n:typeof e=="number"&&(s=BigInt(Number.MAX_SAFE_INTEGER));const i=typeof s=="bigint"&&n?-s-1n:0;if(s&&o>s||o<i){const c=typeof e=="bigint"?"n":"";throw new E8({max:s?`${s}${c}`:void 0,min:`${i}${c}`,signed:n,size:r,value:`${e}${c}`})}const a=`0x${(n&&o<0?(1n<<BigInt(r*8))+BigInt(o):o).toString(16)}`;return r?Ei(a,{size:r}):a}const mN=new TextEncoder;function Ea(e,t={}){const n=mN.encode(e);return vt(n,t)}function Nn(e,{includeName:t=!1}={}){if(e.type!=="function"&&e.type!=="event"&&e.type!=="error")throw new _N(e.type);return`${e.name}(${e1(e.inputs,{includeName:t})})`}function e1(e,{includeName:t=!1}={}){return e?e.map(n=>gN(n,{includeName:t})).join(t?", ":","):""}function gN(e,{includeName:t}){return e.type.startsWith("tuple")?`(${e1(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")}class bN extends ae{constructor({docsPath:t}){super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join(`
59
- `),{docsPath:t,name:"AbiConstructorNotFoundError"})}}class S3 extends ae{constructor({docsPath:t}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join(`
60
- `),{docsPath:t,name:"AbiConstructorParamsNotFoundError"})}}class _8 extends ae{constructor({data:t,params:n,size:r}){super([`Data size of ${r} bytes is too small for given parameters.`].join(`
61
- `),{metaMessages:[`Params: (${e1(n,{includeName:!0})})`,`Data: ${t} (${r} bytes)`],name:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t,this.params=n,this.size=r}}class wc extends ae{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}class yN extends ae{constructor({expectedLength:t,givenLength:n,type:r}){super([`ABI encoding array length mismatch for type ${r}.`,`Expected length: ${t}`,`Given length: ${n}`].join(`
62
- `),{name:"AbiEncodingArrayLengthMismatchError"})}}class vN extends ae{constructor({expectedSize:t,value:n}){super(`Size of bytes "${n}" (bytes${at(n)}) does not match expected size (bytes${t}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class wN extends ae{constructor({expectedLength:t,givenLength:n}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${t}`,`Given length (values): ${n}`].join(`
63
- `),{name:"AbiEncodingLengthMismatchError"})}}class CN extends ae{constructor(t,{docsPath:n}){super([`Arguments (\`args\`) were provided to "${t}", but "${t}" on the ABI does not contain any parameters (\`inputs\`).`,"Cannot encode error result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the inputs exist on it."].join(`
64
- `),{docsPath:n,name:"AbiErrorInputsNotFoundError"})}}class E3 extends ae{constructor(t,{docsPath:n}={}){super([`Error ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it."].join(`
65
- `),{docsPath:n,name:"AbiErrorNotFoundError"})}}class I8 extends ae{constructor(t,{docsPath:n}){super([`Encoded error signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${t}.`].join(`
66
- `),{docsPath:n,name:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=t}}class xN extends ae{constructor({docsPath:t}){super("Cannot extract event signature from empty topics.",{docsPath:t,name:"AbiEventSignatureEmptyTopicsError"})}}class P8 extends ae{constructor(t,{docsPath:n}){super([`Encoded event signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${t}.`].join(`
67
- `),{docsPath:n,name:"AbiEventSignatureNotFoundError"})}}class A3 extends ae{constructor(t,{docsPath:n}={}){super([`Event ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it."].join(`
68
- `),{docsPath:n,name:"AbiEventNotFoundError"})}}class oi extends ae{constructor(t,{docsPath:n}={}){super([`Function ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join(`
69
- `),{docsPath:n,name:"AbiFunctionNotFoundError"})}}class M8 extends ae{constructor(t,{docsPath:n}){super([`Function "${t}" does not contain any \`outputs\` on ABI.`,"Cannot decode function result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the function exists on it."].join(`
70
- `),{docsPath:n,name:"AbiFunctionOutputsNotFoundError"})}}class SN extends ae{constructor(t,{docsPath:n}){super([`Encoded function signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${t}.`].join(`
71
- `),{docsPath:n,name:"AbiFunctionSignatureNotFoundError"})}}class EN extends ae{constructor(t,n){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${t.type}\` in \`${Nn(t.abiItem)}\`, and`,`\`${n.type}\` in \`${Nn(n.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}let AN=class extends ae{constructor({expectedSize:t,givenSize:n}){super(`Expected bytes${t}, got bytes${n}.`,{name:"BytesSizeMismatchError"})}};class Aa extends ae{constructor({abiItem:t,data:n,params:r,size:o}){super([`Data size of ${o} bytes is too small for non-indexed event parameters.`].join(`
72
- `),{metaMessages:[`Params: (${e1(r,{includeName:!0})})`,`Data: ${n} (${o} bytes)`],name:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t,this.data=n,this.params=r,this.size=o}}class t1 extends ae{constructor({abiItem:t,param:n}){super([`Expected a topic for indexed event parameter${n.name?` "${n.name}"`:""} on event "${Nn(t,{includeName:!0})}".`].join(`
73
- `),{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t}}class ON extends ae{constructor(t,{docsPath:n}){super([`Type "${t}" is not a valid encoding type.`,"Please provide a valid ABI type."].join(`
74
- `),{docsPath:n,name:"InvalidAbiEncodingType"})}}class kN extends ae{constructor(t,{docsPath:n}){super([`Type "${t}" is not a valid decoding type.`,"Please provide a valid ABI type."].join(`
75
- `),{docsPath:n,name:"InvalidAbiDecodingType"})}}let R8=class extends ae{constructor(t){super([`Value "${t}" is not a valid array.`].join(`
76
- `),{name:"InvalidArrayError"})}};class _N extends ae{constructor(t){super([`"${t}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join(`
77
- `),{name:"InvalidDefinitionTypeError"})}}function Ln(e){return typeof e[0]=="string"?zn(e):IN(e)}function IN(e){let t=0;for(const o of e)t+=o.length;const n=new Uint8Array(t);let r=0;for(const o of e)n.set(o,r),r+=o.length;return n}function zn(e){return`0x${e.reduce((t,n)=>t+n.replace("0x",""),"")}`}let jt=class extends ae{constructor({address:t}){super(`Address "${t}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}},k2=class extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const n=super.get(t);return super.has(t)&&n!==void 0&&(this.delete(t),super.set(t,n)),n}set(t,n){if(super.set(t,n),this.maxSize&&this.size>this.maxSize){const r=this.keys().next().value;r&&this.delete(r)}return this}};const ol=BigInt(2**32-1),O3=BigInt(32);function PN(e,t=!1){return t?{h:Number(e&ol),l:Number(e>>O3&ol)}:{h:Number(e>>O3&ol)|0,l:Number(e&ol)|0}}function MN(e,t=!1){const n=e.length;let r=new Uint32Array(n),o=new Uint32Array(n);for(let s=0;s<n;s++){const{h:i,l:a}=PN(e[s],t);[r[s],o[s]]=[i,a]}return[r,o]}const RN=(e,t,n)=>e<<n|t>>>32-n,TN=(e,t,n)=>t<<n|e>>>32-n,NN=(e,t,n)=>t<<n-32|e>>>64-n,LN=(e,t,n)=>e<<n-32|t>>>64-n,Es=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function _2(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Oa(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function Dn(e,...t){if(!_2(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function DN(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");Oa(e.outputLen),Oa(e.blockLen)}function si(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function T8(e,t){Dn(e);const n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}function FN(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function ii(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function ad(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function $n(e,t){return e<<32-t|e>>>t}const BN=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function VN(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function zN(e){for(let t=0;t<e.length;t++)e[t]=VN(e[t]);return e}const k3=BN?e=>e:zN,N8=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",HN=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function ka(e){if(Dn(e),N8)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=HN[e[n]];return t}const vr={_0:48,_9:57,A:65,F:70,a:97,f:102};function _3(e){if(e>=vr._0&&e<=vr._9)return e-vr._0;if(e>=vr.A&&e<=vr.F)return e-(vr.A-10);if(e>=vr.a&&e<=vr.f)return e-(vr.a-10)}function I2(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(N8)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(n);for(let o=0,s=0;o<n;o++,s+=2){const i=_3(e.charCodeAt(s)),a=_3(e.charCodeAt(s+1));if(i===void 0||a===void 0){const c=e[s]+e[s+1];throw new Error('hex string expected, got non-hex character "'+c+'" at index '+s)}r[o]=i*16+a}return r}function jN(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function n1(e){return typeof e=="string"&&(e=jN(e)),Dn(e),e}function Po(...e){let t=0;for(let r=0;r<e.length;r++){const o=e[r];Dn(o),t+=o.length}const n=new Uint8Array(t);for(let r=0,o=0;r<e.length;r++){const s=e[r];n.set(s,o),o+=s.length}return n}let P2=class{};function L8(e){const t=r=>e().update(n1(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function $N(e=32){if(Es&&typeof Es.getRandomValues=="function")return Es.getRandomValues(new Uint8Array(e));if(Es&&typeof Es.randomBytes=="function")return Uint8Array.from(Es.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}const UN=BigInt(0),Wi=BigInt(1),ZN=BigInt(2),WN=BigInt(7),GN=BigInt(256),qN=BigInt(113),D8=[],F8=[],B8=[];for(let e=0,t=Wi,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],D8.push(2*(5*r+n)),F8.push((e+1)*(e+2)/2%64);let o=UN;for(let s=0;s<7;s++)t=(t<<Wi^(t>>WN)*qN)%GN,t&ZN&&(o^=Wi<<(Wi<<BigInt(s))-Wi);B8.push(o)}const V8=MN(B8,!0),JN=V8[0],YN=V8[1],I3=(e,t,n)=>n>32?NN(e,t,n):RN(e,t,n),P3=(e,t,n)=>n>32?LN(e,t,n):TN(e,t,n);function KN(e,t=24){const n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let i=0;i<10;i++)n[i]=e[i]^e[i+10]^e[i+20]^e[i+30]^e[i+40];for(let i=0;i<10;i+=2){const a=(i+8)%10,c=(i+2)%10,l=n[c],u=n[c+1],d=I3(l,u,1)^n[a],f=P3(l,u,1)^n[a+1];for(let h=0;h<50;h+=10)e[i+h]^=d,e[i+h+1]^=f}let o=e[2],s=e[3];for(let i=0;i<24;i++){const a=F8[i],c=I3(o,s,a),l=P3(o,s,a),u=D8[i];o=e[u],s=e[u+1],e[u]=c,e[u+1]=l}for(let i=0;i<50;i+=10){for(let a=0;a<10;a++)n[a]=e[i+a];for(let a=0;a<10;a++)e[i+a]^=~n[(a+2)%10]&n[(a+4)%10]}e[0]^=JN[r],e[1]^=YN[r]}ii(n)}class M2 extends P2{constructor(t,n,r,o=!1,s=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=t,this.suffix=n,this.outputLen=r,this.enableXOF=o,this.rounds=s,Oa(r),!(0<t&&t<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=FN(this.state)}clone(){return this._cloneInto()}keccak(){k3(this.state32),KN(this.state32,this.rounds),k3(this.state32),this.posOut=0,this.pos=0}update(t){si(this),t=n1(t),Dn(t);const{blockLen:n,state:r}=this,o=t.length;for(let s=0;s<o;){const i=Math.min(n-this.pos,o-s);for(let a=0;a<i;a++)r[this.pos++]^=t[s++];this.pos===n&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:n,pos:r,blockLen:o}=this;t[r]^=n,(n&128)!==0&&r===o-1&&this.keccak(),t[o-1]^=128,this.keccak()}writeInto(t){si(this,!1),Dn(t),this.finish();const n=this.state,{blockLen:r}=this;for(let o=0,s=t.length;o<s;){this.posOut>=r&&this.keccak();const i=Math.min(r-this.posOut,s-o);t.set(n.subarray(this.posOut,this.posOut+i),o),this.posOut+=i,o+=i}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return Oa(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(T8(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,ii(this.state)}_cloneInto(t){const{blockLen:n,suffix:r,outputLen:o,rounds:s,enableXOF:i}=this;return t||(t=new M2(n,r,o,i,s)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=s,t.suffix=r,t.outputLen=o,t.enableXOF=i,t.destroyed=this.destroyed,t}}const XN=(e,t,n)=>L8(()=>new M2(t,e,n)),z8=XN(1,136,256/8);function _t(e,t){const n=t||"hex",r=z8(Rn(e,{strict:!1})?Ai(e):e);return n==="bytes"?r:Xt(r)}const cd=new k2(8192);function r1(e,t){if(cd.has(`${e}.${t}`))return cd.get(`${e}.${t}`);const n=e.substring(2).toLowerCase(),r=_t(Uo(n),"bytes"),o=n.split("");for(let i=0;i<40;i+=2)r[i>>1]>>4>=8&&o[i]&&(o[i]=o[i].toUpperCase()),(r[i>>1]&15)>=8&&o[i+1]&&(o[i+1]=o[i+1].toUpperCase());const s=`0x${o.join("")}`;return cd.set(`${e}.${t}`,s),s}function ra(e,t){if(!At(e,{strict:!1}))throw new jt({address:e});return r1(e,t)}const QN=/^0x[a-fA-F0-9]{40}$/,ld=new k2(8192);function At(e,t){const{strict:n=!0}=t??{},r=`${e}.${n}`;if(ld.has(r))return ld.get(r);const o=QN.test(e)?e.toLowerCase()===e?!0:n?r1(e)===e:!0:!1;return ld.set(r,o),o}function Qo(e,t,n,{strict:r}={}){return Rn(e,{strict:!1})?U8(e,t,n,{strict:r}):$8(e,t,n,{strict:r})}function H8(e,t){if(typeof t=="number"&&t>0&&t>at(e)-1)throw new A8({offset:t,position:"start",size:at(e)})}function j8(e,t,n){if(typeof t=="number"&&typeof n=="number"&&at(e)!==n-t)throw new A8({offset:n,position:"end",size:at(e)})}function $8(e,t,n,{strict:r}={}){H8(e,t);const o=e.slice(t,n);return r&&j8(o,t,n),o}function U8(e,t,n,{strict:r}={}){H8(e,t);const o=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return r&&j8(o,t,n),o}const eL=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Z8=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function Hr(e,t){if(e.length!==t.length)throw new wN({expectedLength:e.length,givenLength:t.length});const n=tL({params:e,values:t}),r=T2(n);return r.length===0?"0x":r}function tL({params:e,values:t}){const n=[];for(let r=0;r<e.length;r++)n.push(R2({param:e[r],value:t[r]}));return n}function R2({param:e,value:t}){const n=N2(e.type);if(n){const[r,o]=n;return rL(t,{length:r,param:{...e,type:o}})}if(e.type==="tuple")return cL(t,{param:e});if(e.type==="address")return nL(t);if(e.type==="bool")return sL(t);if(e.type.startsWith("uint")||e.type.startsWith("int")){const r=e.type.startsWith("int"),[,,o="256"]=Z8.exec(e.type)??[];return iL(t,{signed:r,size:Number(o)})}if(e.type.startsWith("bytes"))return oL(t,{param:e});if(e.type==="string")return aL(t);throw new ON(e.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function T2(e){let t=0;for(let s=0;s<e.length;s++){const{dynamic:i,encoded:a}=e[s];i?t+=32:t+=at(a)}const n=[],r=[];let o=0;for(let s=0;s<e.length;s++){const{dynamic:i,encoded:a}=e[s];i?(n.push(me(t+o,{size:32})),r.push(a),o+=at(a)):n.push(a)}return Ln([...n,...r])}function nL(e){if(!At(e))throw new jt({address:e});return{dynamic:!1,encoded:ho(e.toLowerCase())}}function rL(e,{length:t,param:n}){const r=t===null;if(!Array.isArray(e))throw new R8(e);if(!r&&e.length!==t)throw new yN({expectedLength:t,givenLength:e.length,type:`${n.type}[${t}]`});let o=!1;const s=[];for(let i=0;i<e.length;i++){const a=R2({param:n,value:e[i]});a.dynamic&&(o=!0),s.push(a)}if(r||o){const i=T2(s);if(r){const a=me(s.length,{size:32});return{dynamic:!0,encoded:s.length>0?Ln([a,i]):a}}if(o)return{dynamic:!0,encoded:i}}return{dynamic:!1,encoded:Ln(s.map(({encoded:i})=>i))}}function oL(e,{param:t}){const[,n]=t.type.split("bytes"),r=at(e);if(!n){let o=e;return r%32!==0&&(o=ho(o,{dir:"right",size:Math.ceil((e.length-2)/2/32)*32})),{dynamic:!0,encoded:Ln([ho(me(r,{size:32})),o])}}if(r!==Number.parseInt(n))throw new vN({expectedSize:Number.parseInt(n),value:e});return{dynamic:!1,encoded:ho(e,{dir:"right"})}}function sL(e){if(typeof e!="boolean")throw new ae(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:ho(k8(e))}}function iL(e,{signed:t,size:n=256}){if(typeof n=="number"){const r=2n**(BigInt(n)-(t?1n:0n))-1n,o=t?-r-1n:0n;if(e>r||e<o)throw new E8({max:r.toString(),min:o.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:me(e,{size:32,signed:t})}}function aL(e){const t=Ea(e),n=Math.ceil(at(t)/32),r=[];for(let o=0;o<n;o++)r.push(ho(Qo(t,o*32,(o+1)*32),{dir:"right"}));return{dynamic:!0,encoded:Ln([ho(me(at(t),{size:32})),...r])}}function cL(e,{param:t}){let n=!1;const r=[];for(let o=0;o<t.components.length;o++){const s=t.components[o],i=Array.isArray(e)?o:s.name,a=R2({param:s,value:e[i]});r.push(a),a.dynamic&&(n=!0)}return{dynamic:n,encoded:n?T2(r):Ln(r.map(({encoded:o})=>o))}}function N2(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}const ud="/docs/contract/encodeDeployData";function L2(e){const{abi:t,args:n,bytecode:r}=e;if(!n||n.length===0)return r;const o=t.find(i=>"type"in i&&i.type==="constructor");if(!o)throw new bN({docsPath:ud});if(!("inputs"in o))throw new S3({docsPath:ud});if(!o.inputs||o.inputs.length===0)throw new S3({docsPath:ud});const s=Hr(o.inputs,n);return zn([r,s])}function Hn(e){return typeof e=="string"?{address:e,type:"json-rpc"}:e}function lL(e){const t=_t(`0x${e.substring(4)}`).substring(26);return r1(`0x${t}`)}async function uL({hash:e,signature:t}){const n=Rn(e)?e:Xt(e),{secp256k1:r}=await O0(async()=>{const{secp256k1:i}=await Promise.resolve().then(()=>Pz);return{secp256k1:i}},void 0,import.meta.url);return`0x${(()=>{if(typeof t=="object"&&"r"in t&&"s"in t){const{r:l,s:u,v:d,yParity:f}=t,h=Number(f??d),g=M3(h);return new r.Signature(Bt(l),Bt(u)).addRecoveryBit(g)}const i=Rn(t)?t:Xt(t);if(at(i)!==65)throw new Error("invalid signature length");const a=lr(`0x${i.slice(130)}`),c=M3(a);return r.Signature.fromCompact(i.substring(2,130)).addRecoveryBit(c)})().recoverPublicKey(n.substring(2)).toHex(!1)}`}function M3(e){if(e===0||e===1)return e;if(e===27)return 0;if(e===28)return 1;throw new Error("Invalid yParityOrV value")}async function W8({hash:e,signature:t}){return lL(await uL({hash:e,signature:t}))}class R3 extends ae{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class G8 extends ae{constructor({length:t,position:n}){super(`Position \`${n}\` is out of bounds (\`0 < position < ${t}\`).`,{name:"PositionOutOfBoundsError"})}}class dL extends ae{constructor({count:t,limit:n}){super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${t}\`).`,{name:"RecursiveReadLimitExceededError"})}}const fL={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new dL({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new G8({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new R3({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new R3({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function D2(e,{recursiveReadLimit:t=8192}={}){const n=Object.create(fL);return n.bytes=e,n.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}function vo(e,t="hex"){const n=q8(e),r=D2(new Uint8Array(n.length));return n.encode(r),t==="hex"?vt(r.bytes):r.bytes}function q8(e){return Array.isArray(e)?hL(e.map(t=>q8(t))):pL(e)}function hL(e){const t=e.reduce((o,s)=>o+s.length,0),n=J8(t);return{length:t<=55?1+t:1+n+t,encode(o){t<=55?o.pushByte(192+t):(o.pushByte(247+n),n===1?o.pushUint8(t):n===2?o.pushUint16(t):n===3?o.pushUint24(t):o.pushUint32(t));for(const{encode:s}of e)s(o)}}}function pL(e){const t=typeof e=="string"?Tn(e):e,n=J8(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length,encode(o){t.length===1&&t[0]<128?o.pushBytes(t):t.length<=55?(o.pushByte(128+t.length),o.pushBytes(t)):(o.pushByte(183+n),n===1?o.pushUint8(t.length):n===2?o.pushUint16(t.length):n===3?o.pushUint24(t.length):o.pushUint32(t.length),o.pushBytes(t))}}}function J8(e){if(e<2**8)return 1;if(e<2**16)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new ae("Length is too large.")}function mL(e){const{chainId:t,nonce:n,to:r}=e,o=e.contractAddress??e.address,s=_t(zn(["0x05",vo([t?me(t):"0x",o,n?me(n):"0x"])]));return r==="bytes"?Tn(s):s}async function gL(e){const{authorization:t,signature:n}=e;return W8({hash:mL(t),signature:n??t})}class sf extends ae{constructor({blockNumber:t,chain:n,contract:r}){super(`Chain "${n.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...t&&r.blockCreated&&r.blockCreated>t?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${t}).`]:[`- The chain does not have the contract "${r.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}class Y8 extends ae{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}class o1 extends ae{constructor({chainId:t}){super(typeof t=="number"?`Chain ID "${t}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}const bL={gwei:9,wei:18},yL={ether:-9,wei:9};function K8(e,t){let n=e.toString();const r=n.startsWith("-");r&&(n=n.slice(1)),n=n.padStart(t,"0");let[o,s]=[n.slice(0,n.length-t),n.slice(n.length-t)];return s=s.replace(/(0+)$/,""),`${r?"-":""}${o||"0"}${s?`.${s}`:""}`}function In(e,t="wei"){return K8(e,yL[t])}class Ns extends ae{constructor({cause:t,message:n}={}){var o;const r=(o=n==null?void 0:n.replace("execution reverted: ",""))==null?void 0:o.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:t,name:"ExecutionRevertedError"})}}Object.defineProperty(Ns,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(Ns,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class es extends ae{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${In(n)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:t,name:"FeeCapTooHighError"})}}Object.defineProperty(es,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class af extends ae{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${In(n)}`:""} gwei) cannot be lower than the block base fee.`,{cause:t,name:"FeeCapTooLowError"})}}Object.defineProperty(af,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class cf extends ae{constructor({cause:t,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:""}is higher than the next one expected.`,{cause:t,name:"NonceTooHighError"})}}Object.defineProperty(cf,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class lf extends ae{constructor({cause:t,nonce:n}={}){super([`Nonce provided for the transaction ${n?`(${n}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join(`
78
- `),{cause:t,name:"NonceTooLowError"})}}Object.defineProperty(lf,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class uf extends ae{constructor({cause:t,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:""}exceeds the maximum allowed nonce.`,{cause:t,name:"NonceMaxValueError"})}}Object.defineProperty(uf,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class df extends ae{constructor({cause:t}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(`
79
- `),{cause:t,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(df,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class ff extends ae{constructor({cause:t,gas:n}={}){super(`The amount of gas ${n?`(${n}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:t,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(ff,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class hf extends ae{constructor({cause:t,gas:n}={}){super(`The amount of gas ${n?`(${n}) `:""}provided for the transaction is too low.`,{cause:t,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(hf,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class pf extends ae{constructor({cause:t}){super("The transaction type is not supported for this chain.",{cause:t,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(pf,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class _a extends ae{constructor({cause:t,maxPriorityFeePerGas:n,maxFeePerGas:r}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${n?` = ${In(n)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${In(r)} gwei`:""}).`].join(`
80
- `),{cause:t,name:"TipAboveFeeCapError"})}}Object.defineProperty(_a,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class s1 extends ae{constructor({cause:t}){super(`An error occurred while executing: ${t==null?void 0:t.shortMessage}`,{cause:t,name:"UnknownNodeError"})}}function X8(e,t="wei"){return K8(e,bL[t])}function i1(e){const t=Object.entries(e).map(([r,o])=>o===void 0||o===!1?null:[r,o]).filter(Boolean),n=t.reduce((r,[o])=>Math.max(r,o.length),0);return t.map(([r,o])=>` ${`${r}:`.padEnd(n+1)} ${o}`).join(`
81
- `)}class vL extends ae{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join(`
82
- `),{name:"FeeConflictError"})}}class wL extends ae{constructor({v:t}){super(`Invalid \`v\` value "${t}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class CL extends ae{constructor({transaction:t}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",i1(t),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}class xL extends ae{constructor({storageKey:t}){super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Math.floor((t.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}class Q8 extends ae{constructor({blockHash:t,blockNumber:n,blockTag:r,hash:o,index:s}){let i="Transaction";r&&s!==void 0&&(i=`Transaction at block time "${r}" at index "${s}"`),t&&s!==void 0&&(i=`Transaction at block hash "${t}" at index "${s}"`),n&&s!==void 0&&(i=`Transaction at block number "${n}" at index "${s}"`),o&&(i=`Transaction with hash "${o}"`),super(`${i} could not be found.`,{name:"TransactionNotFoundError"})}}class e7 extends ae{constructor({hash:t}){super(`Transaction receipt with hash "${t}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}}class SL extends ae{constructor({hash:t}){super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}const Et=(e,t,n)=>JSON.stringify(e,(r,o)=>typeof o=="bigint"?o.toString():o,n),EL=e=>e,Cc=e=>e;class Zo extends ae{constructor({body:t,cause:n,details:r,headers:o,status:s,url:i}){super("HTTP request failed.",{cause:n,details:r,metaMessages:[s&&`Status: ${s}`,`URL: ${Cc(i)}`,t&&`Request body: ${Et(t)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=t,this.headers=o,this.status=s,this.url=i}}class F2 extends ae{constructor({body:t,error:n,url:r}){super("RPC Request failed.",{cause:n,details:n.message,metaMessages:[`URL: ${Cc(r)}`,`Request body: ${Et(t)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=n.code,this.data=n.data}}class T3 extends ae{constructor({body:t,url:n}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${Cc(n)}`,`Request body: ${Et(t)}`],name:"TimeoutError"})}}const AL=-1;class en extends ae{constructor(t,{code:n,docsPath:r,metaMessages:o,name:s,shortMessage:i}){super(i,{cause:t,docsPath:r,metaMessages:o||(t==null?void 0:t.metaMessages),name:s||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=s||t.name,this.code=t instanceof F2?t.code:n??AL}}class un extends en{constructor(t,n){super(t,n),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=n.data}}class Ia extends en{constructor(t){super(t,{code:Ia.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(Ia,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class Pa extends en{constructor(t){super(t,{code:Pa.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(Pa,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class Ma extends en{constructor(t,{method:n}={}){super(t,{code:Ma.code,name:"MethodNotFoundRpcError",shortMessage:`The method${n?` "${n}"`:""} does not exist / is not available.`})}}Object.defineProperty(Ma,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class Ra extends en{constructor(t){super(t,{code:Ra.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(`
83
- `)})}}Object.defineProperty(Ra,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class ts extends en{constructor(t){super(t,{code:ts.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(ts,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class ns extends en{constructor(t){super(t,{code:ns.code,name:"InvalidInputRpcError",shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(`
84
- `)})}}Object.defineProperty(ns,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class Ta extends en{constructor(t){super(t,{code:Ta.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(Ta,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class po extends en{constructor(t){super(t,{code:po.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(po,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class Na extends en{constructor(t){super(t,{code:Na.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(Na,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class Mo extends en{constructor(t,{method:n}={}){super(t,{code:Mo.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${n?` "${n}"`:""} is not supported.`})}}Object.defineProperty(Mo,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class ai extends en{constructor(t){super(t,{code:ai.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(ai,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class La extends en{constructor(t){super(t,{code:La.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(La,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class Tt extends un{constructor(t){super(t,{code:Tt.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(Tt,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class Da extends un{constructor(t){super(t,{code:Da.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(Da,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class Fa extends un{constructor(t,{method:n}={}){super(t,{code:Fa.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${n?` " ${n}"`:""}.`})}}Object.defineProperty(Fa,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class Ba extends un{constructor(t){super(t,{code:Ba.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(Ba,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class Va extends un{constructor(t){super(t,{code:Va.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(Va,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class rs extends un{constructor(t){super(t,{code:rs.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(rs,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class za extends un{constructor(t){super(t,{code:za.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(za,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class Ha extends un{constructor(t){super(t,{code:Ha.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(Ha,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class ja extends un{constructor(t){super(t,{code:ja.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(ja,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class $a extends un{constructor(t){super(t,{code:$a.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty($a,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class Ua extends un{constructor(t){super(t,{code:Ua.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(Ua,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class Za extends un{constructor(t){super(t,{code:Za.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(Za,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});class Wa extends un{constructor(t){super(t,{code:Wa.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(Wa,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class OL extends en{constructor(t){super(t,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}function B2(e,t){const n=(e.details||"").toLowerCase(),r=e instanceof ae?e.walk(o=>(o==null?void 0:o.code)===Ns.code):e;return r instanceof ae?new Ns({cause:e,message:r.details}):Ns.nodeMessage.test(n)?new Ns({cause:e,message:e.details}):es.nodeMessage.test(n)?new es({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):af.nodeMessage.test(n)?new af({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):cf.nodeMessage.test(n)?new cf({cause:e,nonce:t==null?void 0:t.nonce}):lf.nodeMessage.test(n)?new lf({cause:e,nonce:t==null?void 0:t.nonce}):uf.nodeMessage.test(n)?new uf({cause:e,nonce:t==null?void 0:t.nonce}):df.nodeMessage.test(n)?new df({cause:e}):ff.nodeMessage.test(n)?new ff({cause:e,gas:t==null?void 0:t.gas}):hf.nodeMessage.test(n)?new hf({cause:e,gas:t==null?void 0:t.gas}):pf.nodeMessage.test(n)?new pf({cause:e}):_a.nodeMessage.test(n)?new _a({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas,maxPriorityFeePerGas:t==null?void 0:t.maxPriorityFeePerGas}):new s1({cause:e})}function V2(e,{format:t}){if(!t)return{};const n={};function r(s){const i=Object.keys(s);for(const a of i)a in e&&(n[a]=e[a]),s[a]&&typeof s[a]=="object"&&!Array.isArray(s[a])&&r(s[a])}const o=t(e||{});return r(o),n}function z2(e,t){return({exclude:n,format:r})=>({exclude:n,format:o=>{const s=t(o);if(n)for(const i of n)delete s[i];return{...s,...r(o)}},type:e})}const kL={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function a1(e){const t={};return typeof e.authorizationList<"u"&&(t.authorizationList=_L(e.authorizationList)),typeof e.accessList<"u"&&(t.accessList=e.accessList),typeof e.blobVersionedHashes<"u"&&(t.blobVersionedHashes=e.blobVersionedHashes),typeof e.blobs<"u"&&(typeof e.blobs[0]!="string"?t.blobs=e.blobs.map(n=>vt(n)):t.blobs=e.blobs),typeof e.data<"u"&&(t.data=e.data),typeof e.from<"u"&&(t.from=e.from),typeof e.gas<"u"&&(t.gas=me(e.gas)),typeof e.gasPrice<"u"&&(t.gasPrice=me(e.gasPrice)),typeof e.maxFeePerBlobGas<"u"&&(t.maxFeePerBlobGas=me(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<"u"&&(t.maxFeePerGas=me(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<"u"&&(t.maxPriorityFeePerGas=me(e.maxPriorityFeePerGas)),typeof e.nonce<"u"&&(t.nonce=me(e.nonce)),typeof e.to<"u"&&(t.to=e.to),typeof e.type<"u"&&(t.type=kL[e.type]),typeof e.value<"u"&&(t.value=me(e.value)),t}function _L(e){return e.map(t=>({address:t.address,r:t.r?me(BigInt(t.r)):t.r,s:t.s?me(BigInt(t.s)):t.s,chainId:me(t.chainId),nonce:me(t.nonce),...typeof t.yParity<"u"?{yParity:me(t.yParity)}:{},...typeof t.v<"u"&&typeof t.yParity>"u"?{v:me(t.v)}:{}}))}function Fe(e,t,n){const r=e[t.name];if(typeof r=="function")return r;const o=e[n];return typeof o=="function"?o:s=>t(e,s)}const c1=2n**256n-1n;function xc(e){const{account:t,gasPrice:n,maxFeePerGas:r,maxPriorityFeePerGas:o,to:s}=e,i=t?Hn(t):void 0;if(i&&!At(i.address))throw new jt({address:i.address});if(s&&!At(s))throw new jt({address:s});if(typeof n<"u"&&(typeof r<"u"||typeof o<"u"))throw new vL;if(r&&r>c1)throw new es({maxFeePerGas:r});if(o&&r&&o>r)throw new _a({maxFeePerGas:r,maxPriorityFeePerGas:o})}async function t7(e){const t=await e.request({method:"eth_chainId"},{dedupe:!0});return lr(t)}class IL extends ae{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class H2 extends ae{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class PL extends ae{constructor({maxPriorityFeePerGas:t}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${In(t)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}class n7 extends ae{constructor({blockHash:t,blockNumber:n}){let r="Block";t&&(r=`Block at hash "${t}"`),n&&(r=`Block at number "${n}"`),super(`${r} could not be found.`,{name:"BlockNotFoundError"})}}const r7={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function l1(e){const t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?lr(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?lr(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?r7[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(t.authorizationList=RL(e.authorizationList)),t.yParity=(()=>{if(e.yParity)return Number(e.yParity);if(typeof t.v=="bigint"){if(t.v===0n||t.v===27n)return 0;if(t.v===1n||t.v===28n)return 1;if(t.v>=35n)return t.v%2n===0n?1:0}})(),t.type==="legacy"&&(delete t.accessList,delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas,delete t.yParity),t.type==="eip2930"&&(delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),t.type==="eip1559"&&delete t.maxFeePerBlobGas,t}const ML=z2("transaction",l1);function RL(e){return e.map(t=>({address:t.address,chainId:Number(t.chainId),nonce:Number(t.nonce),r:t.r,s:t.s,yParity:Number(t.yParity)}))}function j2(e){const t=(e.transactions??[]).map(n=>typeof n=="string"?n:l1(n));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}const TL=z2("block",j2);async function er(e,{blockHash:t,blockNumber:n,blockTag:r,includeTransactions:o}={}){var u,d,f;const s=r??"latest",i=o??!1,a=n!==void 0?me(n):void 0;let c=null;if(t?c=await e.request({method:"eth_getBlockByHash",params:[t,i]},{dedupe:!0}):c=await e.request({method:"eth_getBlockByNumber",params:[a||s,i]},{dedupe:!!a}),!c)throw new n7({blockHash:t,blockNumber:n});return(((f=(d=(u=e.chain)==null?void 0:u.formatters)==null?void 0:d.block)==null?void 0:f.format)||j2)(c)}async function $2(e){const t=await e.request({method:"eth_gasPrice"});return BigInt(t)}async function NL(e,t){return o7(e,t)}async function o7(e,t){var s,i;const{block:n,chain:r=e.chain,request:o}=t||{};try{const a=((s=r==null?void 0:r.fees)==null?void 0:s.maxPriorityFeePerGas)??((i=r==null?void 0:r.fees)==null?void 0:i.defaultPriorityFee);if(typeof a=="function"){const l=n||await Fe(e,er,"getBlock")({}),u=await a({block:l,client:e,request:o});if(u===null)throw new Error;return u}if(typeof a<"u")return a;const c=await e.request({method:"eth_maxPriorityFeePerGas"});return Bt(c)}catch{const[a,c]=await Promise.all([n?Promise.resolve(n):Fe(e,er,"getBlock")({}),Fe(e,$2,"getGasPrice")({})]);if(typeof a.baseFeePerGas!="bigint")throw new H2;const l=c-a.baseFeePerGas;return l<0n?0n:l}}async function LL(e,t){return mf(e,t)}async function mf(e,t){var f,h;const{block:n,chain:r=e.chain,request:o,type:s="eip1559"}=t||{},i=await(async()=>{var g,m;return typeof((g=r==null?void 0:r.fees)==null?void 0:g.baseFeeMultiplier)=="function"?r.fees.baseFeeMultiplier({block:n,client:e,request:o}):((m=r==null?void 0:r.fees)==null?void 0:m.baseFeeMultiplier)??1.2})();if(i<1)throw new IL;const c=10**(((f=i.toString().split(".")[1])==null?void 0:f.length)??0),l=g=>g*BigInt(Math.ceil(i*c))/BigInt(c),u=n||await Fe(e,er,"getBlock")({});if(typeof((h=r==null?void 0:r.fees)==null?void 0:h.estimateFeesPerGas)=="function"){const g=await r.fees.estimateFeesPerGas({block:n,client:e,multiply:l,request:o,type:s});if(g!==null)return g}if(s==="eip1559"){if(typeof u.baseFeePerGas!="bigint")throw new H2;const g=typeof(o==null?void 0:o.maxPriorityFeePerGas)=="bigint"?o.maxPriorityFeePerGas:await o7(e,{block:u,chain:r,request:o}),m=l(u.baseFeePerGas);return{maxFeePerGas:(o==null?void 0:o.maxFeePerGas)??m+g,maxPriorityFeePerGas:g}}return{gasPrice:(o==null?void 0:o.gasPrice)??l(await Fe(e,$2,"getGasPrice")({}))}}class DL extends ae{constructor(t,{account:n,docsPath:r,chain:o,data:s,gas:i,gasPrice:a,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f}){var g;const h=i1({from:n==null?void 0:n.address,to:d,value:typeof f<"u"&&`${X8(f)} ${((g=o==null?void 0:o.nativeCurrency)==null?void 0:g.symbol)||"ETH"}`,data:s,gas:i,gasPrice:typeof a<"u"&&`${In(a)} gwei`,maxFeePerGas:typeof c<"u"&&`${In(c)} gwei`,maxPriorityFeePerGas:typeof l<"u"&&`${In(l)} gwei`,nonce:u});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Estimate Gas Arguments:",h].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}function FL(e,{docsPath:t,...n}){const r=(()=>{const o=B2(e,n);return o instanceof s1?e:o})();return new DL(r,{docsPath:t,...n})}class BL extends ae{constructor({address:t}){super(`State for account "${t}" is set multiple times.`,{name:"AccountStateConflictError"})}}class VL extends ae{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function N3(e){return e.reduce((t,{slot:n,value:r})=>`${t} ${n}: ${r}
85
- `,"")}function zL(e){return e.reduce((t,{address:n,...r})=>{let o=`${t} ${n}:
86
- `;return r.nonce&&(o+=` nonce: ${r.nonce}
87
- `),r.balance&&(o+=` balance: ${r.balance}
88
- `),r.code&&(o+=` code: ${r.code}
89
- `),r.state&&(o+=` state:
90
- `,o+=N3(r.state)),r.stateDiff&&(o+=` stateDiff:
91
- `,o+=N3(r.stateDiff)),o},` State Override:
92
- `).slice(0,-1)}function L3(e){if(!(!e||e.length===0))return e.reduce((t,{slot:n,value:r})=>{if(n.length!==66)throw new C3({size:n.length,targetSize:66,type:"hex"});if(r.length!==66)throw new C3({size:r.length,targetSize:66,type:"hex"});return t[n]=r,t},{})}function HL(e){const{balance:t,nonce:n,state:r,stateDiff:o,code:s}=e,i={};if(s!==void 0&&(i.code=s),t!==void 0&&(i.balance=me(t)),n!==void 0&&(i.nonce=me(n)),r!==void 0&&(i.state=L3(r)),o!==void 0){if(i.state)throw new VL;i.stateDiff=L3(o)}return i}function U2(e){if(!e)return;const t={};for(const{address:n,...r}of e){if(!At(n,{strict:!1}))throw new jt({address:n});if(t[n])throw new BL({address:n});t[n]=HL(r)}return t}async function s7(e,{address:t,blockNumber:n,blockTag:r="latest"}){const o=typeof n=="bigint"?me(n):void 0,s=await e.request({method:"eth_getBalance",params:[t,o||r]});return BigInt(s)}async function Z2(e,t){var o,s,i;const{account:n=e.account}=t,r=n?Hn(n):void 0;try{let E=function(D){const{block:H,request:N,rpcStateOverride:F}=D;return e.request({method:"eth_estimateGas",params:F?[N,H??"latest",F]:H?[N,H]:[N]})};const{accessList:a,authorizationList:c,blobs:l,blobVersionedHashes:u,blockNumber:d,blockTag:f,data:h,gas:g,gasPrice:m,maxFeePerBlobGas:b,maxFeePerGas:y,maxPriorityFeePerGas:v,nonce:w,value:x,stateOverride:C,...S}=await m7(e,{...t,parameters:(r==null?void 0:r.type)==="local"?void 0:["blobVersionedHashes"]}),k=(typeof d=="bigint"?me(d):void 0)||f,O=U2(C),T=await(async()=>{if(S.to)return S.to;if(c&&c.length>0)return await gL({authorization:c[0]}).catch(()=>{throw new ae("`to` is required. Could not infer from `authorizationList`")})})();xc(t);const B=(i=(s=(o=e.chain)==null?void 0:o.formatters)==null?void 0:s.transactionRequest)==null?void 0:i.format,R=(B||a1)({...V2(S,{format:B}),from:r==null?void 0:r.address,accessList:a,authorizationList:c,blobs:l,blobVersionedHashes:u,data:h,gas:g,gasPrice:m,maxFeePerBlobGas:b,maxFeePerGas:y,maxPriorityFeePerGas:v,nonce:w,to:T,value:x});let V=BigInt(await E({block:k,request:R,rpcStateOverride:O}));if(c){const D=await s7(e,{address:R.from}),H=await Promise.all(c.map(async N=>{const{address:F}=N,X=await E({block:k,request:{authorizationList:void 0,data:h,from:r==null?void 0:r.address,to:F,value:me(D)},rpcStateOverride:O}).catch(()=>100000n);return 2n*BigInt(X)}));V+=H.reduce((N,F)=>N+F,0n)}return V}catch(a){throw FL(a,{...t,account:r,chain:e.chain})}}async function i7(e,{address:t,blockTag:n="latest",blockNumber:r}){const o=await e.request({method:"eth_getTransactionCount",params:[t,typeof r=="bigint"?me(r):n]},{dedupe:!!r});return lr(o)}function W2(e){const{kzg:t}=e,n=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),r=typeof e.blobs[0]=="string"?e.blobs.map(s=>Tn(s)):e.blobs,o=[];for(const s of r)o.push(Uint8Array.from(t.blobToKzgCommitment(s)));return n==="bytes"?o:o.map(s=>vt(s))}function G2(e){const{kzg:t}=e,n=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),r=typeof e.blobs[0]=="string"?e.blobs.map(i=>Tn(i)):e.blobs,o=typeof e.commitments[0]=="string"?e.commitments.map(i=>Tn(i)):e.commitments,s=[];for(let i=0;i<r.length;i++){const a=r[i],c=o[i];s.push(Uint8Array.from(t.computeBlobKzgProof(a,c)))}return n==="bytes"?s:s.map(i=>vt(i))}function jL(e,t,n,r){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,n,r);const o=BigInt(32),s=BigInt(4294967295),i=Number(n>>o&s),a=Number(n&s),c=r?4:0,l=r?0:4;e.setUint32(t+c,i,r),e.setUint32(t+l,a,r)}function $L(e,t,n){return e&t^~e&n}function UL(e,t,n){return e&t^e&n^t&n}class ZL extends P2{constructor(t,n,r,o){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=o,this.buffer=new Uint8Array(t),this.view=ad(this.buffer)}update(t){si(this),t=n1(t),Dn(t);const{view:n,buffer:r,blockLen:o}=this,s=t.length;for(let i=0;i<s;){const a=Math.min(o-this.pos,s-i);if(a===o){const c=ad(t);for(;o<=s-i;i+=o)this.process(c,i);continue}r.set(t.subarray(i,i+a),this.pos),this.pos+=a,i+=a,this.pos===o&&(this.process(n,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){si(this),T8(t,this),this.finished=!0;const{buffer:n,view:r,blockLen:o,isLE:s}=this;let{pos:i}=this;n[i++]=128,ii(this.buffer.subarray(i)),this.padOffset>o-i&&(this.process(r,0),i=0);for(let d=i;d<o;d++)n[d]=0;jL(r,o-8,BigInt(this.length*8),s),this.process(r,0);const a=ad(t),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=c/4,u=this.get();if(l>u.length)throw new Error("_sha2: outputLen bigger than state");for(let d=0;d<l;d++)a.setUint32(4*d,u[d],s)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const r=t.slice(0,n);return this.destroy(),r}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:n,buffer:r,length:o,finished:s,destroyed:i,pos:a}=this;return t.destroyed=i,t.finished=s,t.length=o,t.pos=a,o%n&&t.buffer.set(r),t}clone(){return this._cloneInto()}}const Wr=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),WL=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Gr=new Uint32Array(64);class GL extends ZL{constructor(t=32){super(64,t,8,!1),this.A=Wr[0]|0,this.B=Wr[1]|0,this.C=Wr[2]|0,this.D=Wr[3]|0,this.E=Wr[4]|0,this.F=Wr[5]|0,this.G=Wr[6]|0,this.H=Wr[7]|0}get(){const{A:t,B:n,C:r,D:o,E:s,F:i,G:a,H:c}=this;return[t,n,r,o,s,i,a,c]}set(t,n,r,o,s,i,a,c){this.A=t|0,this.B=n|0,this.C=r|0,this.D=o|0,this.E=s|0,this.F=i|0,this.G=a|0,this.H=c|0}process(t,n){for(let d=0;d<16;d++,n+=4)Gr[d]=t.getUint32(n,!1);for(let d=16;d<64;d++){const f=Gr[d-15],h=Gr[d-2],g=$n(f,7)^$n(f,18)^f>>>3,m=$n(h,17)^$n(h,19)^h>>>10;Gr[d]=m+Gr[d-7]+g+Gr[d-16]|0}let{A:r,B:o,C:s,D:i,E:a,F:c,G:l,H:u}=this;for(let d=0;d<64;d++){const f=$n(a,6)^$n(a,11)^$n(a,25),h=u+f+$L(a,c,l)+WL[d]+Gr[d]|0,m=($n(r,2)^$n(r,13)^$n(r,22))+UL(r,o,s)|0;u=l,l=c,c=a,a=i+h|0,i=s,s=o,o=r,r=h+m|0}r=r+this.A|0,o=o+this.B|0,s=s+this.C|0,i=i+this.D|0,a=a+this.E|0,c=c+this.F|0,l=l+this.G|0,u=u+this.H|0,this.set(r,o,s,i,a,c,l,u)}roundClean(){ii(Gr)}destroy(){this.set(0,0,0,0,0,0,0,0),ii(this.buffer)}}const a7=L8(()=>new GL),qL=a7;function JL(e,t){return qL(Rn(e,{strict:!1})?Ai(e):e)}function YL(e){const{commitment:t,version:n=1}=e,r=e.to??(typeof t=="string"?"hex":"bytes"),o=JL(t);return o.set([n],0),r==="bytes"?o:vt(o)}function c7(e){const{commitments:t,version:n}=e,r=e.to??(typeof t[0]=="string"?"hex":"bytes"),o=[];for(const s of t)o.push(YL({commitment:s,to:r,version:n}));return o}const D3=6,l7=32,q2=4096,u7=l7*q2,F3=u7*D3-1-1*q2*D3,d7=1;class KL extends ae{constructor({maxSize:t,size:n}){super("Blob size is too large.",{metaMessages:[`Max: ${t} bytes`,`Given: ${n} bytes`],name:"BlobSizeTooLargeError"})}}class f7 extends ae{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class XL extends ae{constructor({hash:t,size:n}){super(`Versioned hash "${t}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${n}`],name:"InvalidVersionedHashSizeError"})}}class QL extends ae{constructor({hash:t,version:n}){super(`Versioned hash "${t}" version is invalid.`,{metaMessages:[`Expected: ${d7}`,`Received: ${n}`],name:"InvalidVersionedHashVersionError"})}}function eD(e){const t=e.to??(typeof e.data=="string"?"hex":"bytes"),n=typeof e.data=="string"?Tn(e.data):e.data,r=at(n);if(!r)throw new f7;if(r>F3)throw new KL({maxSize:F3,size:r});const o=[];let s=!0,i=0;for(;s;){const a=D2(new Uint8Array(u7));let c=0;for(;c<q2;){const l=n.slice(i,i+(l7-1));if(a.pushByte(0),a.pushBytes(l),l.length<31){a.pushByte(128),s=!1;break}c++,i+=31}o.push(a)}return t==="bytes"?o.map(a=>a.bytes):o.map(a=>vt(a.bytes))}function h7(e){const{data:t,kzg:n,to:r}=e,o=e.blobs??eD({data:t,to:r}),s=e.commitments??W2({blobs:o,kzg:n,to:r}),i=e.proofs??G2({blobs:o,commitments:s,kzg:n,to:r}),a=[];for(let c=0;c<o.length;c++)a.push({blob:o[c],commitment:s[c],proof:i[c]});return a}function p7(e){if(e.type)return e.type;if(typeof e.authorizationList<"u")return"eip7702";if(typeof e.blobs<"u"||typeof e.blobVersionedHashes<"u"||typeof e.maxFeePerBlobGas<"u"||typeof e.sidecars<"u")return"eip4844";if(typeof e.maxFeePerGas<"u"||typeof e.maxPriorityFeePerGas<"u")return"eip1559";if(typeof e.gasPrice<"u")return typeof e.accessList<"u"?"eip2930":"legacy";throw new CL({transaction:e})}const tD=["blobVersionedHashes","chainId","fees","gas","nonce","type"],B3=new Map;async function m7(e,t){const{account:n=e.account,blobs:r,chain:o,gas:s,kzg:i,nonce:a,nonceManager:c,parameters:l=tD,type:u}=t,d=n&&Hn(n),f={...t,...d?{from:d==null?void 0:d.address}:{}};let h;async function g(){return h||(h=await Fe(e,er,"getBlock")({blockTag:"latest"}),h)}let m;async function b(){return m||(o?o.id:typeof t.chainId<"u"?t.chainId:(m=await Fe(e,t7,"getChainId")({}),m))}if(l.includes("nonce")&&typeof a>"u"&&d)if(c){const y=await b();f.nonce=await c.consume({address:d.address,chainId:y,client:e})}else f.nonce=await Fe(e,i7,"getTransactionCount")({address:d.address,blockTag:"pending"});if((l.includes("blobVersionedHashes")||l.includes("sidecars"))&&r&&i){const y=W2({blobs:r,kzg:i});if(l.includes("blobVersionedHashes")){const v=c7({commitments:y,to:"hex"});f.blobVersionedHashes=v}if(l.includes("sidecars")){const v=G2({blobs:r,commitments:y,kzg:i}),w=h7({blobs:r,commitments:y,proofs:v,to:"hex"});f.sidecars=w}}if(l.includes("chainId")&&(f.chainId=await b()),(l.includes("fees")||l.includes("type"))&&typeof u>"u")try{f.type=p7(f)}catch{let y=B3.get(e.uid);if(typeof y>"u"){const v=await g();y=typeof(v==null?void 0:v.baseFeePerGas)=="bigint",B3.set(e.uid,y)}f.type=y?"eip1559":"legacy"}if(l.includes("fees"))if(f.type!=="legacy"&&f.type!=="eip2930"){if(typeof f.maxFeePerGas>"u"||typeof f.maxPriorityFeePerGas>"u"){const y=await g(),{maxFeePerGas:v,maxPriorityFeePerGas:w}=await mf(e,{block:y,chain:o,request:f});if(typeof t.maxPriorityFeePerGas>"u"&&t.maxFeePerGas&&t.maxFeePerGas<w)throw new PL({maxPriorityFeePerGas:w});f.maxPriorityFeePerGas=w,f.maxFeePerGas=v}}else{if(typeof t.maxFeePerGas<"u"||typeof t.maxPriorityFeePerGas<"u")throw new H2;if(typeof t.gasPrice>"u"){const y=await g(),{gasPrice:v}=await mf(e,{block:y,chain:o,request:f,type:"legacy"});f.gasPrice=v}}return l.includes("gas")&&typeof s>"u"&&(f.gas=await Fe(e,Z2,"estimateGas")({...f,account:d&&{address:d.address,type:"json-rpc"}})),xc(f),delete f.parameters,f}async function nD(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}const gf=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"}],bf=[{name:"query",type:"function",stateMutability:"view",inputs:[{type:"tuple[]",name:"queries",components:[{type:"address",name:"sender"},{type:"string[]",name:"urls"},{type:"bytes",name:"data"}]}],outputs:[{type:"bool[]",name:"failures"},{type:"bytes[]",name:"responses"}]},{name:"HttpError",type:"error",inputs:[{type:"uint16",name:"status"},{type:"string",name:"message"}]}],g7=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"},{inputs:[],name:"ResolverNotContract",type:"error"},{inputs:[{name:"returnData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{components:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"errors",type:"tuple[]"}],name:"HttpError",type:"error"}],b7=[...g7,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]},{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],rD=[...g7,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]},{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],V3=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],z3=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],H3=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}];function oD(e,t={}){typeof t.size<"u"&&Vn(e,{size:t.size});const n=vt(e,t);return Bt(n,t)}function sD(e,t={}){let n=e;if(typeof t.size<"u"&&(Vn(n,{size:t.size}),n=_n(n)),n.length>1||n[0]>1)throw new iN(n);return!!n[0]}function kr(e,t={}){typeof t.size<"u"&&Vn(e,{size:t.size});const n=vt(e,t);return lr(n,t)}function iD(e,t={}){let n=e;return typeof t.size<"u"&&(Vn(n,{size:t.size}),n=_n(n,{dir:"right"})),new TextDecoder().decode(n)}function Sc(e,t){const n=typeof t=="string"?Tn(t):t,r=D2(n);if(at(n)===0&&e.length>0)throw new wc;if(at(t)&&at(t)<32)throw new _8({data:typeof t=="string"?t:vt(t),params:e,size:at(t)});let o=0;const s=[];for(let i=0;i<e.length;++i){const a=e[i];r.setPosition(o);const[c,l]=zs(r,a,{staticPosition:0});o+=l,s.push(c)}return s}function zs(e,t,{staticPosition:n}){const r=N2(t.type);if(r){const[o,s]=r;return cD(e,{...t,type:s},{length:o,staticPosition:n})}if(t.type==="tuple")return fD(e,t,{staticPosition:n});if(t.type==="address")return aD(e);if(t.type==="bool")return lD(e);if(t.type.startsWith("bytes"))return uD(e,t,{staticPosition:n});if(t.type.startsWith("uint")||t.type.startsWith("int"))return dD(e,t);if(t.type==="string")return hD(e,{staticPosition:n});throw new kN(t.type,{docsPath:"/docs/contract/decodeAbiParameters"})}const j3=32,yf=32;function aD(e){const t=e.readBytes(32);return[r1(vt($8(t,-20))),32]}function cD(e,t,{length:n,staticPosition:r}){if(!n){const i=kr(e.readBytes(yf)),a=r+i,c=a+j3;e.setPosition(a);const l=kr(e.readBytes(j3)),u=Ga(t);let d=0;const f=[];for(let h=0;h<l;++h){e.setPosition(c+(u?h*32:d));const[g,m]=zs(e,t,{staticPosition:c});d+=m,f.push(g)}return e.setPosition(r+32),[f,32]}if(Ga(t)){const i=kr(e.readBytes(yf)),a=r+i,c=[];for(let l=0;l<n;++l){e.setPosition(a+l*32);const[u]=zs(e,t,{staticPosition:a});c.push(u)}return e.setPosition(r+32),[c,32]}let o=0;const s=[];for(let i=0;i<n;++i){const[a,c]=zs(e,t,{staticPosition:r+o});o+=c,s.push(a)}return[s,o]}function lD(e){return[sD(e.readBytes(32),{size:32}),32]}function uD(e,t,{staticPosition:n}){const[r,o]=t.type.split("bytes");if(!o){const i=kr(e.readBytes(32));e.setPosition(n+i);const a=kr(e.readBytes(32));if(a===0)return e.setPosition(n+32),["0x",32];const c=e.readBytes(a);return e.setPosition(n+32),[vt(c),32]}return[vt(e.readBytes(Number.parseInt(o),32)),32]}function dD(e,t){const n=t.type.startsWith("int"),r=Number.parseInt(t.type.split("int")[1]||"256"),o=e.readBytes(32);return[r>48?oD(o,{signed:n}):kr(o,{signed:n}),32]}function fD(e,t,{staticPosition:n}){const r=t.components.length===0||t.components.some(({name:i})=>!i),o=r?[]:{};let s=0;if(Ga(t)){const i=kr(e.readBytes(yf)),a=n+i;for(let c=0;c<t.components.length;++c){const l=t.components[c];e.setPosition(a+s);const[u,d]=zs(e,l,{staticPosition:a});s+=d,o[r?c:l==null?void 0:l.name]=u}return e.setPosition(n+32),[o,32]}for(let i=0;i<t.components.length;++i){const a=t.components[i],[c,l]=zs(e,a,{staticPosition:n});o[r?i:a==null?void 0:a.name]=c,s+=l}return[o,s]}function hD(e,{staticPosition:t}){const n=kr(e.readBytes(32)),r=t+n;e.setPosition(r);const o=kr(e.readBytes(32));if(o===0)return e.setPosition(t+32),["",32];const s=e.readBytes(o,32),i=iD(_n(s));return e.setPosition(t+32),[i,32]}function Ga(e){var r;const{type:t}=e;if(t==="string"||t==="bytes"||t.endsWith("[]"))return!0;if(t==="tuple")return(r=e.components)==null?void 0:r.some(Ga);const n=N2(e.type);return!!(n&&Ga({...e,type:n[1]}))}const pD=e=>_t(Ai(e));function mD(e){return pD(e)}const gD="1.0.8";let dn=class vf extends Error{constructor(t,n={}){var i;const r=n.cause instanceof vf?n.cause.details:(i=n.cause)!=null&&i.message?n.cause.message:n.details,o=n.cause instanceof vf&&n.cause.docsPath||n.docsPath,s=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...o?[`Docs: https://abitype.dev${o}`]:[],...r?[`Details: ${r}`]:[],`Version: abitype@${gD}`].join(`
93
- `);super(s),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=o,this.metaMessages=n.metaMessages,this.shortMessage=t}};function jr(e,t){const n=e.exec(t);return n==null?void 0:n.groups}const y7=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,v7=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,w7=/^\(.+?\).*?$/,$3=/^tuple(?<array>(\[(\d*)\])*)$/;function wf(e){let t=e.type;if($3.test(e.type)&&"components"in e){t="(";const n=e.components.length;for(let o=0;o<n;o++){const s=e.components[o];t+=wf(s),o<n-1&&(t+=", ")}const r=jr($3,e.type);return t+=`)${(r==null?void 0:r.array)??""}`,wf({...e,type:t})}return"indexed"in e&&e.indexed&&(t=`${t} indexed`),e.name?`${t} ${e.name}`:t}function Gi(e){let t="";const n=e.length;for(let r=0;r<n;r++){const o=e[r];t+=wf(o),r!==n-1&&(t+=", ")}return t}function cu(e){var t;return e.type==="function"?`function ${e.name}(${Gi(e.inputs)})${e.stateMutability&&e.stateMutability!=="nonpayable"?` ${e.stateMutability}`:""}${(t=e.outputs)!=null&&t.length?` returns (${Gi(e.outputs)})`:""}`:e.type==="event"?`event ${e.name}(${Gi(e.inputs)})`:e.type==="error"?`error ${e.name}(${Gi(e.inputs)})`:e.type==="constructor"?`constructor(${Gi(e.inputs)})${e.stateMutability==="payable"?" payable":""}`:e.type==="fallback"?`fallback() external${e.stateMutability==="payable"?" payable":""}`:"receive() external payable"}const C7=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function bD(e){return C7.test(e)}function yD(e){return jr(C7,e)}const x7=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function vD(e){return x7.test(e)}function wD(e){return jr(x7,e)}const S7=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function CD(e){return S7.test(e)}function xD(e){return jr(S7,e)}const E7=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function J2(e){return E7.test(e)}function SD(e){return jr(E7,e)}const A7=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function ED(e){return A7.test(e)}function AD(e){return jr(A7,e)}const O7=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function OD(e){return O7.test(e)}function kD(e){return jr(O7,e)}const _D=/^receive\(\) external payable$/;function ID(e){return _D.test(e)}const PD=new Set(["indexed"]),Cf=new Set(["calldata","memory","storage"]);class MD extends dn{constructor({signature:t}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(t,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}class RD extends dn{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class TD extends dn{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}class ND extends dn{constructor({param:t}){super("Invalid ABI parameter.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class LD extends dn{constructor({param:t,name:n}){super("Invalid ABI parameter.",{details:t,metaMessages:[`"${n}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class DD extends dn{constructor({param:t,type:n,modifier:r}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${r}" not allowed${n?` in "${n}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class FD extends dn{constructor({param:t,type:n,modifier:r}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${r}" not allowed${n?` in "${n}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class BD extends dn{constructor({abiParameter:t}){super("Invalid ABI parameter.",{details:JSON.stringify(t,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}class Oi extends dn{constructor({signature:t,type:n}){super(`Invalid ${n} signature.`,{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class VD extends dn{constructor({signature:t}){super("Unknown signature.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class zD extends dn{constructor({signature:t}){super("Invalid struct signature.",{details:t,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}class HD extends dn{constructor({type:t}){super("Circular reference detected.",{metaMessages:[`Struct "${t}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}class jD extends dn{constructor({current:t,depth:n}){super("Unbalanced parentheses.",{metaMessages:[`"${t.trim()}" has too many ${n>0?"opening":"closing"} parentheses.`],details:`Depth "${n}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}function $D(e,t,n){let r="";if(n)for(const o of Object.entries(n)){if(!o)continue;let s="";for(const i of o[1])s+=`[${i.type}${i.name?`:${i.name}`:""}]`;r+=`(${o[0]}{${s}})`}return t?`${t}:${e}${r}`:e}const dd=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);function xf(e,t={}){if(CD(e))return UD(e,t);if(vD(e))return ZD(e,t);if(bD(e))return WD(e,t);if(ED(e))return GD(e,t);if(OD(e))return qD(e);if(ID(e))return{type:"receive",stateMutability:"payable"};throw new VD({signature:e})}function UD(e,t={}){const n=xD(e);if(!n)throw new Oi({signature:e,type:"function"});const r=On(n.parameters),o=[],s=r.length;for(let a=0;a<s;a++)o.push(os(r[a],{modifiers:Cf,structs:t,type:"function"}));const i=[];if(n.returns){const a=On(n.returns),c=a.length;for(let l=0;l<c;l++)i.push(os(a[l],{modifiers:Cf,structs:t,type:"function"}))}return{name:n.name,type:"function",stateMutability:n.stateMutability??"nonpayable",inputs:o,outputs:i}}function ZD(e,t={}){const n=wD(e);if(!n)throw new Oi({signature:e,type:"event"});const r=On(n.parameters),o=[],s=r.length;for(let i=0;i<s;i++)o.push(os(r[i],{modifiers:PD,structs:t,type:"event"}));return{name:n.name,type:"event",inputs:o}}function WD(e,t={}){const n=yD(e);if(!n)throw new Oi({signature:e,type:"error"});const r=On(n.parameters),o=[],s=r.length;for(let i=0;i<s;i++)o.push(os(r[i],{structs:t,type:"error"}));return{name:n.name,type:"error",inputs:o}}function GD(e,t={}){const n=AD(e);if(!n)throw new Oi({signature:e,type:"constructor"});const r=On(n.parameters),o=[],s=r.length;for(let i=0;i<s;i++)o.push(os(r[i],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:n.stateMutability??"nonpayable",inputs:o}}function qD(e){const t=kD(e);if(!t)throw new Oi({signature:e,type:"fallback"});return{type:"fallback",stateMutability:t.stateMutability??"nonpayable"}}const JD=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,YD=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,KD=/^u?int$/;function os(e,t){var d,f;const n=$D(e,t==null?void 0:t.type,t==null?void 0:t.structs);if(dd.has(n))return dd.get(n);const r=w7.test(e),o=jr(r?YD:JD,e);if(!o)throw new ND({param:e});if(o.name&&QD(o.name))throw new LD({param:e,name:o.name});const s=o.name?{name:o.name}:{},i=o.modifier==="indexed"?{indexed:!0}:{},a=(t==null?void 0:t.structs)??{};let c,l={};if(r){c="tuple";const h=On(o.type),g=[],m=h.length;for(let b=0;b<m;b++)g.push(os(h[b],{structs:a}));l={components:g}}else if(o.type in a)c="tuple",l={components:a[o.type]};else if(KD.test(o.type))c=`${o.type}256`;else if(c=o.type,(t==null?void 0:t.type)!=="struct"&&!k7(c))throw new TD({type:c});if(o.modifier){if(!((f=(d=t==null?void 0:t.modifiers)==null?void 0:d.has)!=null&&f.call(d,o.modifier)))throw new DD({param:e,type:t==null?void 0:t.type,modifier:o.modifier});if(Cf.has(o.modifier)&&!eF(c,!!o.array))throw new FD({param:e,type:t==null?void 0:t.type,modifier:o.modifier})}const u={type:`${c}${o.array??""}`,...s,...i,...l};return dd.set(n,u),u}function On(e,t=[],n="",r=0){const o=e.trim().length;for(let s=0;s<o;s++){const i=e[s],a=e.slice(s+1);switch(i){case",":return r===0?On(a,[...t,n.trim()]):On(a,t,`${n}${i}`,r);case"(":return On(a,t,`${n}${i}`,r+1);case")":return On(a,t,`${n}${i}`,r-1);default:return On(a,t,`${n}${i}`,r)}}if(n==="")return t;if(r!==0)throw new jD({current:n,depth:r});return t.push(n.trim()),t}function k7(e){return e==="address"||e==="bool"||e==="function"||e==="string"||y7.test(e)||v7.test(e)}const XD=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;function QD(e){return e==="address"||e==="bool"||e==="function"||e==="string"||e==="tuple"||y7.test(e)||v7.test(e)||XD.test(e)}function eF(e,t){return t||e==="bytes"||e==="string"||e==="tuple"}function _7(e){const t={},n=e.length;for(let i=0;i<n;i++){const a=e[i];if(!J2(a))continue;const c=SD(a);if(!c)throw new Oi({signature:a,type:"struct"});const l=c.properties.split(";"),u=[],d=l.length;for(let f=0;f<d;f++){const g=l[f].trim();if(!g)continue;const m=os(g,{type:"struct"});u.push(m)}if(!u.length)throw new zD({signature:a});t[c.name]=u}const r={},o=Object.entries(t),s=o.length;for(let i=0;i<s;i++){const[a,c]=o[i];r[a]=I7(c,t)}return r}const tF=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function I7(e,t,n=new Set){const r=[],o=e.length;for(let s=0;s<o;s++){const i=e[s];if(w7.test(i.type))r.push(i);else{const c=jr(tF,i.type);if(!(c!=null&&c.type))throw new BD({abiParameter:i});const{array:l,type:u}=c;if(u in t){if(n.has(u))throw new HD({type:u});r.push({...i,type:`tuple${l??""}`,components:I7(t[u]??[],t,new Set([...n,u]))})}else if(k7(u))r.push(i);else throw new RD({type:u})}}return r}function P7(e){const t=_7(e),n=[],r=e.length;for(let o=0;o<r;o++){const s=e[o];J2(s)||n.push(xf(s,t))}return n}function U3(e){let t;if(typeof e=="string")t=xf(e);else{const n=_7(e),r=e.length;for(let o=0;o<r;o++){const s=e[o];if(!J2(s)){t=xf(s,n);break}}}if(!t)throw new MD({signature:e});return t}function nF(e){let t=!0,n="",r=0,o="",s=!1;for(let i=0;i<e.length;i++){const a=e[i];if(["(",")",","].includes(a)&&(t=!0),a==="("&&r++,a===")"&&r--,!!t){if(r===0){if(a===" "&&["event","function",""].includes(o))o="";else if(o+=a,a===")"){s=!0;break}continue}if(a===" "){e[i-1]!==","&&n!==","&&n!==",("&&(n="",t=!1);continue}o+=a,n+=a}}if(!s)throw new ae("Unable to normalize signature.");return o}const rF=e=>{const t=typeof e=="string"?e:cu(e);return nF(t)};function M7(e){return mD(rF(e))}const u1=M7,Ec=e=>Qo(M7(e),0,4);function hs(e){const{abi:t,args:n=[],name:r}=e,o=Rn(r,{strict:!1}),s=t.filter(a=>o?a.type==="function"?Ec(a)===r:a.type==="event"?u1(a)===r:!1:"name"in a&&a.name===r);if(s.length===0)return;if(s.length===1)return s[0];let i;for(const a of s){if(!("inputs"in a))continue;if(!n||n.length===0){if(!a.inputs||a.inputs.length===0)return a;continue}if(!a.inputs||a.inputs.length===0||a.inputs.length!==n.length)continue;if(n.every((l,u)=>{const d="inputs"in a&&a.inputs[u];return d?Sf(l,d):!1})){if(i&&"inputs"in i&&i.inputs){const l=R7(a.inputs,i.inputs,n);if(l)throw new EN({abiItem:a,type:l[0]},{abiItem:i,type:l[1]})}i=a}}return i||s[0]}function Sf(e,t){const n=typeof e,r=t.type;switch(r){case"address":return At(e,{strict:!1});case"bool":return n==="boolean";case"function":return n==="string";case"string":return n==="string";default:return r==="tuple"&&"components"in t?Object.values(t.components).every((o,s)=>Sf(Object.values(e)[s],o)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(r)?n==="number"||n==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?n==="string"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r)?Array.isArray(e)&&e.every(o=>Sf(o,{...t,type:r.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function R7(e,t,n){for(const r in e){const o=e[r],s=t[r];if(o.type==="tuple"&&s.type==="tuple"&&"components"in o&&"components"in s)return R7(o.components,s.components,n[r]);const i=[o.type,s.type];if(i.includes("address")&&i.includes("bytes20")?!0:i.includes("address")&&i.includes("string")?At(n[r],{strict:!1}):i.includes("address")&&i.includes("bytes")?At(n[r],{strict:!1}):!1)return i}}const fd="/docs/contract/decodeFunctionResult";function ps(e){const{abi:t,args:n,functionName:r,data:o}=e;let s=t[0];if(r){const a=hs({abi:t,args:n,name:r});if(!a)throw new oi(r,{docsPath:fd});s=a}if(s.type!=="function")throw new oi(void 0,{docsPath:fd});if(!s.outputs)throw new M8(s.name,{docsPath:fd});const i=Sc(s.outputs,o);if(i&&i.length>1)return i;if(i&&i.length===1)return i[0]}const Z3="/docs/contract/encodeFunctionData";function oF(e){const{abi:t,args:n,functionName:r}=e;let o=t[0];if(r){const s=hs({abi:t,args:n,name:r});if(!s)throw new oi(r,{docsPath:Z3});o=s}if(o.type!=="function")throw new oi(void 0,{docsPath:Z3});return{abi:[o],functionName:Ec(Nn(o))}}function mr(e){const{args:t}=e,{abi:n,functionName:r}=(()=>{var a;return e.abi.length===1&&((a=e.functionName)!=null&&a.startsWith("0x"))?e:oF(e)})(),o=n[0],s=r,i="inputs"in o&&o.inputs?Hr(o.inputs,t??[]):void 0;return zn([s,i??"0x"])}function ki({blockNumber:e,chain:t,contract:n}){var o;const r=(o=t==null?void 0:t.contracts)==null?void 0:o[n];if(!r)throw new sf({chain:t,contract:{name:n}});if(e&&r.blockCreated&&r.blockCreated>e)throw new sf({blockNumber:e,chain:t,contract:{name:n,blockCreated:r.blockCreated}});return r.address}const T7={1:"An `assert` condition failed.",17:"Arithmetic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},N7={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},sF={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};function L7(e){const{abi:t,data:n}=e,r=Qo(n,0,4);if(r==="0x")throw new wc;const s=[...t||[],N7,sF].find(i=>i.type==="error"&&r===Ec(Nn(i)));if(!s)throw new I8(r,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:s,args:"inputs"in s&&s.inputs&&s.inputs.length>0?Sc(s.inputs,Qo(n,4)):void 0,errorName:s.name}}function D7({abiItem:e,args:t,includeFunctionName:n=!0,includeName:r=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${n?e.name:""}(${e.inputs.map((o,s)=>`${r&&o.name?`${o.name}: `:""}${typeof t[s]=="object"?Et(t[s]):t[s]}`).join(", ")})`}class F7 extends ae{constructor(t,{account:n,docsPath:r,chain:o,data:s,gas:i,gasPrice:a,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f,stateOverride:h}){var b;const g=n?Hn(n):void 0;let m=i1({from:g==null?void 0:g.address,to:d,value:typeof f<"u"&&`${X8(f)} ${((b=o==null?void 0:o.nativeCurrency)==null?void 0:b.symbol)||"ETH"}`,data:s,gas:i,gasPrice:typeof a<"u"&&`${In(a)} gwei`,maxFeePerGas:typeof c<"u"&&`${In(c)} gwei`,maxPriorityFeePerGas:typeof l<"u"&&`${In(l)} gwei`,nonce:u});h&&(m+=`
94
- ${zL(h)}`),super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Raw Call Arguments:",m].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class iF extends ae{constructor(t,{abi:n,args:r,contractAddress:o,docsPath:s,functionName:i,sender:a}){const c=hs({abi:n,args:r,name:i}),l=c?D7({abiItem:c,args:r,includeFunctionName:!1,includeName:!1}):void 0,u=c?Nn(c,{includeName:!0}):void 0,d=i1({address:o&&EL(o),function:u,args:l&&l!=="()"&&`${[...Array((i==null?void 0:i.length)??0).keys()].map(()=>" ").join("")}${l}`,sender:a});super(t.shortMessage||`An unknown error occurred while executing the contract function "${i}".`,{cause:t,docsPath:s,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],d&&"Contract Call:",d].filter(Boolean),name:"ContractFunctionExecutionError"}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=n,this.args=r,this.cause=t,this.contractAddress=o,this.functionName=i,this.sender=a}}class Ef extends ae{constructor({abi:t,data:n,functionName:r,message:o}){let s,i,a,c;if(n&&n!=="0x")try{i=L7({abi:t,data:n});const{abiItem:u,errorName:d,args:f}=i;if(d==="Error")c=f[0];else if(d==="Panic"){const[h]=f;c=T7[h]}else{const h=u?Nn(u,{includeName:!0}):void 0,g=u&&f?D7({abiItem:u,args:f,includeFunctionName:!1,includeName:!1}):void 0;a=[h?`Error: ${h}`:"",g&&g!=="()"?` ${[...Array((d==null?void 0:d.length)??0).keys()].map(()=>" ").join("")}${g}`:""]}}catch(u){s=u}else o&&(c=o);let l;s instanceof I8&&(l=s.signature,a=[`Unable to decode signature "${l}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${l}.`]),super(c&&c!=="execution reverted"||l?[`The contract function "${r}" reverted with the following ${l?"signature":"reason"}:`,c||l].join(`
95
- `):`The contract function "${r}" reverted.`,{cause:s,metaMessages:a,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=i,this.raw=n,this.reason=c,this.signature=l}}class aF extends ae{constructor({functionName:t}){super(`The contract function "${t}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${t}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError"})}}class cF extends ae{constructor({factory:t}){super(`Deployment for counterfactual contract call failed${t?` for factory "${t}".`:""}`,{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class d1 extends ae{constructor({data:t,message:n}){super(n||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t}}function Y2(e,t){var r,o,s,i,a,c;if(!(e instanceof ae))return!1;const n=e.walk(l=>l instanceof Ef);return n instanceof Ef?!!(((r=n.data)==null?void 0:r.errorName)==="ResolverNotFound"||((o=n.data)==null?void 0:o.errorName)==="ResolverWildcardNotSupported"||((s=n.data)==null?void 0:s.errorName)==="ResolverNotContract"||((i=n.data)==null?void 0:i.errorName)==="ResolverError"||((a=n.data)==null?void 0:a.errorName)==="HttpError"||(c=n.reason)!=null&&c.includes("Wildcard on non-extended resolvers is not supported")||t==="reverse"&&n.reason===T7[50]):!1}function lF(e){const{abi:t,data:n}=e,r=Qo(n,0,4),o=t.find(s=>s.type==="function"&&r===Ec(Nn(s)));if(!o)throw new SN(r,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:o.name,args:"inputs"in o&&o.inputs&&o.inputs.length>0?Sc(o.inputs,Qo(n,4)):void 0}}const hd="/docs/contract/encodeErrorResult";function W3(e){const{abi:t,errorName:n,args:r}=e;let o=t[0];if(n){const c=hs({abi:t,args:r,name:n});if(!c)throw new E3(n,{docsPath:hd});o=c}if(o.type!=="error")throw new E3(void 0,{docsPath:hd});const s=Nn(o),i=Ec(s);let a="0x";if(r&&r.length>0){if(!o.inputs)throw new CN(o.name,{docsPath:hd});a=Hr(o.inputs,r)}return zn([i,a])}const pd="/docs/contract/encodeFunctionResult";function uF(e){const{abi:t,functionName:n,result:r}=e;let o=t[0];if(n){const i=hs({abi:t,name:n});if(!i)throw new oi(n,{docsPath:pd});o=i}if(o.type!=="function")throw new oi(void 0,{docsPath:pd});if(!o.outputs)throw new M8(o.name,{docsPath:pd});const s=(()=>{if(o.outputs.length===0)return[];if(o.outputs.length===1)return[r];if(Array.isArray(r))return r;throw new R8(r)})();return Hr(o.outputs,s)}const K2="x-batch-gateway:true";async function dF(e){const{data:t,ccipRequest:n}=e,{args:[r]}=lF({abi:bf,data:t}),o=[],s=[];return await Promise.all(r.map(async(i,a)=>{try{s[a]=await n(i),o[a]=!1}catch(c){o[a]=!0,s[a]=fF(c)}})),uF({abi:bf,functionName:"query",result:[o,s]})}function fF(e){return e.name==="HttpRequestError"&&e.status?W3({abi:bf,errorName:"HttpError",args:[e.status,e.shortMessage]}):W3({abi:[N7],errorName:"Error",args:["shortMessage"in e?e.shortMessage:e.message]})}function B7(e){if(e.length!==66||e.indexOf("[")!==0||e.indexOf("]")!==65)return null;const t=`0x${e.slice(1,65)}`;return Rn(t)?t:null}function Il(e){let t=new Uint8Array(32).fill(0);if(!e)return vt(t);const n=e.split(".");for(let r=n.length-1;r>=0;r-=1){const o=B7(n[r]),s=o?Ai(o):_t(Uo(n[r]),"bytes");t=_t(Ln([t,s]),"bytes")}return vt(t)}function hF(e){return`[${e.slice(2)}]`}function pF(e){const t=new Uint8Array(32).fill(0);return e?B7(e)||_t(Uo(e)):vt(t)}function f1(e){const t=e.replace(/^\.|\.$/gm,"");if(t.length===0)return new Uint8Array(1);const n=new Uint8Array(Uo(t).byteLength+2);let r=0;const o=t.split(".");for(let s=0;s<o.length;s++){let i=Uo(o[s]);i.byteLength>255&&(i=Uo(hF(pF(o[s])))),n[r]=i.length,n.set(i,r+1),r+=i.length+1}return n.byteLength!==r+1?n.slice(0,r+1):n}const mF=3;function ci(e,{abi:t,address:n,args:r,docsPath:o,functionName:s,sender:i}){const a=e instanceof d1?e:e instanceof ae?e.walk(g=>"data"in g)||e.walk():{},{code:c,data:l,details:u,message:d,shortMessage:f}=a,h=e instanceof wc?new aF({functionName:s}):[mF,ts.code].includes(c)&&(l||u||d||f)?new Ef({abi:t,data:typeof l=="object"?l.data:l,functionName:s,message:a instanceof F2?u:f??d}):e;return new iF(h,{abi:t,args:r,contractAddress:n,docsPath:o,functionName:s,sender:i})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const X2=BigInt(0),Af=BigInt(1);function lu(e,t){if(typeof t!="boolean")throw new Error(e+" boolean expected, got "+t)}function sl(e){const t=e.toString(16);return t.length&1?"0"+t:t}function V7(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?X2:BigInt("0x"+e)}function h1(e){return V7(ka(e))}function z7(e){return Dn(e),V7(ka(Uint8Array.from(e).reverse()))}function Q2(e,t){return I2(e.toString(16).padStart(t*2,"0"))}function H7(e,t){return Q2(e,t).reverse()}function pn(e,t,n){let r;if(typeof t=="string")try{r=I2(t)}catch(s){throw new Error(e+" must be hex string or Uint8Array, cause: "+s)}else if(_2(t))r=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");const o=r.length;if(typeof n=="number"&&o!==n)throw new Error(e+" of length "+n+" expected, got "+o);return r}const md=e=>typeof e=="bigint"&&X2<=e;function gF(e,t,n){return md(e)&&md(t)&&md(n)&&t<=e&&e<n}function bF(e,t,n,r){if(!gF(t,n,r))throw new Error("expected valid "+e+": "+n+" <= n < "+r+", got "+t)}function yF(e){let t;for(t=0;e>X2;e>>=Af,t+=1);return t}const p1=e=>(Af<<BigInt(e))-Af;function vF(e,t,n){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof t!="number"||t<2)throw new Error("qByteLen must be a number");if(typeof n!="function")throw new Error("hmacFn must be a function");const r=h=>new Uint8Array(h),o=h=>Uint8Array.of(h);let s=r(e),i=r(e),a=0;const c=()=>{s.fill(1),i.fill(0),a=0},l=(...h)=>n(i,s,...h),u=(h=r(0))=>{i=l(o(0),h),s=l(),h.length!==0&&(i=l(o(1),h),s=l())},d=()=>{if(a++>=1e3)throw new Error("drbg: tried 1000 values");let h=0;const g=[];for(;h<t;){s=l();const m=s.slice();g.push(m),h+=s.length}return Po(...g)};return(h,g)=>{c(),u(h);let m;for(;!(m=g(d()));)u();return c(),m}}function eh(e,t,n={}){if(!e||typeof e!="object")throw new Error("expected valid options object");function r(o,s,i){const a=e[o];if(i&&a===void 0)return;const c=typeof a;if(c!==s||a===null)throw new Error(`param "${o}" is invalid: expected ${s}, got ${c}`)}Object.entries(t).forEach(([o,s])=>r(o,s,!1)),Object.entries(n).forEach(([o,s])=>r(o,s,!0))}function G3(e){const t=new WeakMap;return(n,...r)=>{const o=t.get(n);if(o!==void 0)return o;const s=e(n,...r);return t.set(n,s),s}}const wF="0.1.1";function CF(){return wF}let pt=class Of extends Error{constructor(t,n={}){const r=(()=>{var c;if(n.cause instanceof Of){if(n.cause.details)return n.cause.details;if(n.cause.shortMessage)return n.cause.shortMessage}return n.cause&&"details"in n.cause&&typeof n.cause.details=="string"?n.cause.details:(c=n.cause)!=null&&c.message?n.cause.message:n.details})(),o=n.cause instanceof Of&&n.cause.docsPath||n.docsPath,i=`https://oxlib.sh${o??""}`,a=[t||"An error occurred.",...n.metaMessages?["",...n.metaMessages]:[],...r||o?["",r?`Details: ${r}`:void 0,o?`See: ${i}`:void 0]:[]].filter(c=>typeof c=="string").join(`
96
- `);super(a,n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:`ox@${CF()}`}),this.cause=n.cause,this.details=r,this.docs=i,this.docsPath=o,this.shortMessage=t}walk(t){return j7(this,t)}};function j7(e,t){return t!=null&&t(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause?j7(e.cause,t):t?null:e}const xF="#__bigint";function SF(e,t,n){return JSON.stringify(e,(r,o)=>typeof o=="bigint"?o.toString()+xF:o,n)}function EF(e,t){if(J3(e)>t)throw new NF({givenSize:J3(e),maxSize:t})}const wr={zero:48,nine:57,A:65,F:70,a:97,f:102};function q3(e){if(e>=wr.zero&&e<=wr.nine)return e-wr.zero;if(e>=wr.A&&e<=wr.F)return e-(wr.A-10);if(e>=wr.a&&e<=wr.f)return e-(wr.a-10)}function AF(e,t={}){const{dir:n,size:r=32}=t;if(r===0)return e;if(e.length>r)throw new LF({size:e.length,targetSize:r,type:"Bytes"});const o=new Uint8Array(r);for(let s=0;s<r;s++){const i=n==="right";o[i?s:r-s-1]=e[i?s:e.length-s-1]}return o}function th(e,t){if(vn(e)>t)throw new zF({givenSize:vn(e),maxSize:t})}function OF(e,t){if(typeof t=="number"&&t>0&&t>vn(e)-1)throw new G7({offset:t,position:"start",size:vn(e)})}function kF(e,t,n){if(typeof t=="number"&&typeof n=="number"&&vn(e)!==n-t)throw new G7({offset:n,position:"end",size:vn(e)})}function $7(e,t={}){const{dir:n,size:r=32}=t;if(r===0)return e;const o=e.replace("0x","");if(o.length>r*2)throw new HF({size:Math.ceil(o.length/2),targetSize:r,type:"Hex"});return`0x${o[n==="right"?"padEnd":"padStart"](r*2,"0")}`}const _F=new TextEncoder;function IF(e){return e instanceof Uint8Array?e:typeof e=="string"?MF(e):PF(e)}function PF(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function MF(e,t={}){const{size:n}=t;let r=e;n&&(th(e,n),r=is(e,n));let o=r.slice(2);o.length%2&&(o=`0${o}`);const s=o.length/2,i=new Uint8Array(s);for(let a=0,c=0;a<s;a++){const l=q3(o.charCodeAt(c++)),u=q3(o.charCodeAt(c++));if(l===void 0||u===void 0)throw new pt(`Invalid byte sequence ("${o[c-2]}${o[c-1]}" in "${o}").`);i[a]=l*16+u}return i}function RF(e,t={}){const{size:n}=t,r=_F.encode(e);return typeof n=="number"?(EF(r,n),TF(r,n)):r}function TF(e,t){return AF(e,{dir:"right",size:t})}function J3(e){return e.length}let NF=class extends pt{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed \`${n}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}},LF=class extends pt{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}};const DF=new TextEncoder,FF=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function BF(e,t={}){const{strict:n=!1}=t;if(!e)throw new Y3(e);if(typeof e!="string")throw new Y3(e);if(n&&!/^0x[0-9a-fA-F]*$/.test(e))throw new K3(e);if(!e.startsWith("0x"))throw new K3(e)}function ur(...e){return`0x${e.reduce((t,n)=>t+n.replace("0x",""),"")}`}function U7(e,t={}){const n=`0x${Number(e)}`;return typeof t.size=="number"?(th(n,t.size),ss(n,t.size)):n}function Z7(e,t={}){let n="";for(let o=0;o<e.length;o++)n+=FF[e[o]];const r=`0x${n}`;return typeof t.size=="number"?(th(r,t.size),is(r,t.size)):r}function Dt(e,t={}){const{signed:n,size:r}=t,o=BigInt(e);let s;r?n?s=(1n<<BigInt(r)*8n-1n)-1n:s=2n**(BigInt(r)*8n)-1n:typeof e=="number"&&(s=BigInt(Number.MAX_SAFE_INTEGER));const i=typeof s=="bigint"&&n?-s-1n:0;if(s&&o>s||o<i){const l=typeof e=="bigint"?"n":"";throw new W7({max:s?`${s}${l}`:void 0,min:`${i}${l}`,signed:n,size:r,value:`${e}${l}`})}const c=`0x${(n&&o<0?(1n<<BigInt(r*8))+BigInt(o):o).toString(16)}`;return r?ss(c,r):c}function nh(e,t={}){return Z7(DF.encode(e),t)}function ss(e,t){return $7(e,{dir:"left",size:t})}function is(e,t){return $7(e,{dir:"right",size:t})}function rh(e,t,n,r={}){const{strict:o}=r;OF(e,t);const s=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return o&&kF(s,t,n),s}function vn(e){return Math.ceil((e.length-2)/2)}function VF(e,t={}){const{strict:n=!1}=t;try{return BF(e,{strict:n}),!0}catch{return!1}}class W7 extends pt{constructor({max:t,min:n,signed:r,size:o,value:s}){super(`Number \`${s}\` is not in safe${o?` ${o*8}-bit`:""}${r?" signed":" unsigned"} integer range ${t?`(\`${n}\` to \`${t}\`)`:`(above \`${n}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}class Y3 extends pt{constructor(t){super(`Value \`${typeof t=="object"?SF(t):t}\` of type \`${typeof t}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}class K3 extends pt{constructor(t){super(`Value \`${t}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}class zF extends pt{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed \`${n}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}}class G7 extends pt{constructor({offset:t,position:n,size:r}){super(`Slice ${n==="start"?"starting":"ending"} at offset \`${t}\` is out-of-bounds (size: \`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}}class HF extends pt{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}function jF(e){return{address:e.address,amount:Dt(e.amount),index:Dt(e.index),validatorIndex:Dt(e.validatorIndex)}}function q7(e){return{...typeof e.baseFeePerGas=="bigint"&&{baseFeePerGas:Dt(e.baseFeePerGas)},...typeof e.blobBaseFee=="bigint"&&{blobBaseFee:Dt(e.blobBaseFee)},...typeof e.feeRecipient=="string"&&{feeRecipient:e.feeRecipient},...typeof e.gasLimit=="bigint"&&{gasLimit:Dt(e.gasLimit)},...typeof e.number=="bigint"&&{number:Dt(e.number)},...typeof e.prevRandao=="bigint"&&{prevRandao:Dt(e.prevRandao)},...typeof e.time=="bigint"&&{time:Dt(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(jF)}}}const $F="0x82ad56cb",J7="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",UF="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",ZF="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572";function Y7(e,{docsPath:t,...n}){const r=(()=>{const o=B2(e,n);return o instanceof s1?e:o})();return new F7(r,{docsPath:t,...n})}function K7(){let e=()=>{},t=()=>{};return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}const gd=new Map;function X7({fn:e,id:t,shouldSplitBatch:n,wait:r=0,sort:o}){const s=async()=>{const u=c();i();const d=u.map(({args:f})=>f);d.length!==0&&e(d).then(f=>{o&&Array.isArray(f)&&f.sort(o);for(let h=0;h<u.length;h++){const{resolve:g}=u[h];g==null||g([f[h],f])}}).catch(f=>{for(let h=0;h<u.length;h++){const{reject:g}=u[h];g==null||g(f)}})},i=()=>gd.delete(t),a=()=>c().map(({args:u})=>u),c=()=>gd.get(t)||[],l=u=>gd.set(t,[...c(),u]);return{flush:i,async schedule(u){const{promise:d,resolve:f,reject:h}=K7();return(n==null?void 0:n([...a(),u]))&&s(),c().length>0?(l({args:u,resolve:f,reject:h}),d):(l({args:u,resolve:f,reject:h}),setTimeout(s,r),d)}}}async function Ac(e,t){var R,E,V,D;const{account:n=e.account,authorizationList:r,batch:o=!!((R=e.batch)!=null&&R.multicall),blockNumber:s,blockTag:i="latest",accessList:a,blobs:c,blockOverrides:l,code:u,data:d,factory:f,factoryData:h,gas:g,gasPrice:m,maxFeePerBlobGas:b,maxFeePerGas:y,maxPriorityFeePerGas:v,nonce:w,to:x,value:C,stateOverride:S,...A}=t,k=n?Hn(n):void 0;if(u&&(f||h))throw new ae("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(u&&x)throw new ae("Cannot provide both `code` & `to` as parameters.");const O=u&&d,T=f&&h&&x&&d,B=O||T,_=O?qF({code:u,data:d}):T?JF({data:d,factory:f,factoryData:h,to:x}):d;try{xc(t);const N=(typeof s=="bigint"?me(s):void 0)||i,F=l?q7(l):void 0,X=U2(S),j=(D=(V=(E=e.chain)==null?void 0:E.formatters)==null?void 0:V.transactionRequest)==null?void 0:D.format,Y=(j||a1)({...V2(A,{format:j}),from:k==null?void 0:k.address,accessList:a,authorizationList:r,blobs:c,data:_,gas:g,gasPrice:m,maxFeePerBlobGas:b,maxFeePerGas:y,maxPriorityFeePerGas:v,nonce:w,to:B?void 0:x,value:C});if(o&&WF({request:Y})&&!X&&!F)try{return await GF(e,{...Y,blockNumber:s,blockTag:i})}catch(re){if(!(re instanceof Y8)&&!(re instanceof sf))throw re}const G=(()=>{const re=[Y,N];return X&&F?[...re,X,F]:X?[...re,X]:F?[...re,{},F]:re})(),W=await e.request({method:"eth_call",params:G});return W==="0x"?{data:void 0}:{data:W}}catch(H){const N=YF(H),{offchainLookup:F,offchainLookupSignature:X}=await O0(async()=>{const{offchainLookup:j,offchainLookupSignature:M}=await Promise.resolve().then(()=>gV);return{offchainLookup:j,offchainLookupSignature:M}},void 0,import.meta.url);if(e.ccipRead!==!1&&(N==null?void 0:N.slice(0,10))===X&&x)return{data:await F(e,{data:N,to:x})};throw B&&(N==null?void 0:N.slice(0,10))==="0x101bb98d"?new cF({factory:f}):Y7(H,{...t,account:k,chain:e.chain})}}function WF({request:e}){const{data:t,to:n,...r}=e;return!(!t||t.startsWith($F)||!n||Object.values(r).filter(o=>typeof o<"u").length>0)}async function GF(e,t){var m;const{batchSize:n=1024,wait:r=0}=typeof((m=e.batch)==null?void 0:m.multicall)=="object"?e.batch.multicall:{},{blockNumber:o,blockTag:s="latest",data:i,multicallAddress:a,to:c}=t;let l=a;if(!l){if(!e.chain)throw new Y8;l=ki({blockNumber:o,chain:e.chain,contract:"multicall3"})}const d=(typeof o=="bigint"?me(o):void 0)||s,{schedule:f}=X7({id:`${e.uid}.${d}`,wait:r,shouldSplitBatch(b){return b.reduce((v,{data:w})=>v+(w.length-2),0)>n*2},fn:async b=>{const y=b.map(x=>({allowFailure:!0,callData:x.data,target:x.to})),v=mr({abi:gf,args:[y],functionName:"aggregate3"}),w=await e.request({method:"eth_call",params:[{data:v,to:l},d]});return ps({abi:gf,args:[y],functionName:"aggregate3",data:w||"0x"})}}),[{returnData:h,success:g}]=await f({data:i,to:c});if(!g)throw new d1({data:h});return h==="0x"?{data:void 0}:{data:h}}function qF(e){const{code:t,data:n}=e;return L2({abi:P7(["constructor(bytes, bytes)"]),bytecode:J7,args:[t,n]})}function JF(e){const{data:t,factory:n,factoryData:r,to:o}=e;return L2({abi:P7(["constructor(address, bytes, address, bytes)"]),bytecode:UF,args:[o,t,n,r]})}function YF(e){var n;if(!(e instanceof ae))return;const t=e.walk();return typeof(t==null?void 0:t.data)=="object"?(n=t.data)==null?void 0:n.data:t.data}async function Lr(e,t){const{abi:n,address:r,args:o,functionName:s,...i}=t,a=mr({abi:n,args:o,functionName:s});try{const{data:c}=await Fe(e,Ac,"call")({...i,data:a,to:r});return ps({abi:n,args:o,functionName:s,data:c||"0x"})}catch(c){throw ci(c,{abi:n,address:r,args:o,docsPath:"/docs/contract/readContract",functionName:s})}}async function KF(e,t){const{blockNumber:n,blockTag:r,coinType:o,name:s,gatewayUrls:i,strict:a}=t,{chain:c}=e,l=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!c)throw new Error("client chain not configured. universalResolverAddress is required.");return ki({blockNumber:n,chain:c,contract:"ensUniversalResolver"})})(),u=c==null?void 0:c.ensTlds;if(u&&!u.some(d=>s.endsWith(d)))return null;try{const d=mr({abi:z3,functionName:"addr",...o!=null?{args:[Il(s),BigInt(o)]}:{args:[Il(s)]}}),f={address:l,abi:b7,functionName:"resolve",args:[Xt(f1(s)),d,i??[K2]],blockNumber:n,blockTag:r},g=await Fe(e,Lr,"readContract")(f);if(g[0]==="0x")return null;const m=ps({abi:z3,args:o!=null?[Il(s),BigInt(o)]:void 0,functionName:"addr",data:g[0]});return m==="0x"||_n(m)==="0x00"?null:m}catch(d){if(a)throw d;if(Y2(d,"resolve"))return null;throw d}}class XF extends ae{constructor({data:t}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(t)}`],name:"EnsAvatarInvalidMetadataError"})}}class qi extends ae{constructor({reason:t}){super(`ENS NFT avatar URI is invalid. ${t}`,{name:"EnsAvatarInvalidNftUriError"})}}class oh extends ae{constructor({uri:t}){super(`Unable to resolve ENS avatar URI "${t}". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:"EnsAvatarUriResolutionError"})}}class QF extends ae{constructor({namespace:t}){super(`ENS NFT avatar namespace "${t}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}}const eB=/(?<protocol>https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,tB=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/,nB=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,rB=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function oB(e){try{const t=await fetch(e,{method:"HEAD"});if(t.status===200){const n=t.headers.get("content-type");return n==null?void 0:n.startsWith("image/")}return!1}catch(t){return typeof t=="object"&&typeof t.response<"u"||!globalThis.hasOwnProperty("Image")?!1:new Promise(n=>{const r=new Image;r.onload=()=>{n(!0)},r.onerror=()=>{n(!1)},r.src=e})}}function X3(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function Q7({uri:e,gatewayUrls:t}){const n=nB.test(e);if(n)return{uri:e,isOnChain:!0,isEncoded:n};const r=X3(t==null?void 0:t.ipfs,"https://ipfs.io"),o=X3(t==null?void 0:t.arweave,"https://arweave.net"),s=e.match(eB),{protocol:i,subpath:a,target:c,subtarget:l=""}=(s==null?void 0:s.groups)||{},u=i==="ipns:/"||a==="ipns/",d=i==="ipfs:/"||a==="ipfs/"||tB.test(e);if(e.startsWith("http")&&!u&&!d){let h=e;return t!=null&&t.arweave&&(h=e.replace(/https:\/\/arweave.net/g,t==null?void 0:t.arweave)),{uri:h,isOnChain:!1,isEncoded:!1}}if((u||d)&&c)return{uri:`${r}/${u?"ipns":"ipfs"}/${c}${l}`,isOnChain:!1,isEncoded:!1};if(i==="ar:/"&&c)return{uri:`${o}/${c}${l||""}`,isOnChain:!1,isEncoded:!1};let f=e.replace(rB,"");if(f.startsWith("<svg")&&(f=`data:image/svg+xml;base64,${btoa(f)}`),f.startsWith("data:")||f.startsWith("{"))return{uri:f,isOnChain:!0,isEncoded:!1};throw new oh({uri:e})}function eg(e){if(typeof e!="object"||!("image"in e)&&!("image_url"in e)&&!("image_data"in e))throw new XF({data:e});return e.image||e.image_url||e.image_data}async function sB({gatewayUrls:e,uri:t}){try{const n=await fetch(t).then(o=>o.json());return await sh({gatewayUrls:e,uri:eg(n)})}catch{throw new oh({uri:t})}}async function sh({gatewayUrls:e,uri:t}){const{uri:n,isOnChain:r}=Q7({uri:t,gatewayUrls:e});if(r||await oB(n))return n;throw new oh({uri:t})}function iB(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));const[n,r,o]=t.split("/"),[s,i]=n.split(":"),[a,c]=r.split(":");if(!s||s.toLowerCase()!=="eip155")throw new qi({reason:"Only EIP-155 supported"});if(!i)throw new qi({reason:"Chain ID not found"});if(!c)throw new qi({reason:"Contract address not found"});if(!o)throw new qi({reason:"Token ID not found"});if(!a)throw new qi({reason:"ERC namespace not found"});return{chainID:Number.parseInt(i),namespace:a.toLowerCase(),contractAddress:c,tokenID:o}}async function aB(e,{nft:t}){if(t.namespace==="erc721")return Lr(e,{address:t.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(t.tokenID)]});if(t.namespace==="erc1155")return Lr(e,{address:t.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(t.tokenID)]});throw new QF({namespace:t.namespace})}async function cB(e,{gatewayUrls:t,record:n}){return/eip155:/i.test(n)?lB(e,{gatewayUrls:t,record:n}):sh({uri:n,gatewayUrls:t})}async function lB(e,{gatewayUrls:t,record:n}){const r=iB(n),o=await aB(e,{nft:r}),{uri:s,isOnChain:i,isEncoded:a}=Q7({uri:o,gatewayUrls:t});if(i&&(s.includes("data:application/json;base64,")||s.startsWith("{"))){const l=a?atob(s.replace("data:application/json;base64,","")):s,u=JSON.parse(l);return sh({uri:eg(u),gatewayUrls:t})}let c=r.tokenID;return r.namespace==="erc1155"&&(c=c.replace("0x","").padStart(64,"0")),sB({gatewayUrls:t,uri:s.replace(/(?:0x)?{id}/,c)})}async function tg(e,t){const{blockNumber:n,blockTag:r,key:o,name:s,gatewayUrls:i,strict:a}=t,{chain:c}=e,l=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!c)throw new Error("client chain not configured. universalResolverAddress is required.");return ki({blockNumber:n,chain:c,contract:"ensUniversalResolver"})})(),u=c==null?void 0:c.ensTlds;if(u&&!u.some(d=>s.endsWith(d)))return null;try{const d={address:l,abi:b7,functionName:"resolve",args:[Xt(f1(s)),mr({abi:V3,functionName:"text",args:[Il(s),o]}),i??[K2]],blockNumber:n,blockTag:r},h=await Fe(e,Lr,"readContract")(d);if(h[0]==="0x")return null;const g=ps({abi:V3,functionName:"text",data:h[0]});return g===""?null:g}catch(d){if(a)throw d;if(Y2(d,"resolve"))return null;throw d}}async function ng(e,{blockNumber:t,blockTag:n,assetGatewayUrls:r,name:o,gatewayUrls:s,strict:i,universalResolverAddress:a}){const c=await Fe(e,tg,"getEnsText")({blockNumber:t,blockTag:n,key:"avatar",name:o,universalResolverAddress:a,gatewayUrls:s,strict:i});if(!c)return null;try{return await cB(e,{record:c,gatewayUrls:r})}catch{return null}}async function rg(e,{address:t,blockNumber:n,blockTag:r,gatewayUrls:o,strict:s,universalResolverAddress:i}){let a=i;if(!a){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");a=ki({blockNumber:n,chain:e.chain,contract:"ensUniversalResolver"})}const c=`${t.toLowerCase().substring(2)}.addr.reverse`;try{const l={address:a,abi:rD,functionName:"reverse",args:[Xt(f1(c))],blockNumber:n,blockTag:r},u=Fe(e,Lr,"readContract"),[d,f]=o?await u({...l,args:[...l.args,o]}):await u(l);return t.toLowerCase()!==f.toLowerCase()?null:d}catch(l){if(s)throw l;if(Y2(l,"reverse"))return null;throw l}}async function uB(e,t){const{blockNumber:n,blockTag:r,name:o}=t,{chain:s}=e,i=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!s)throw new Error("client chain not configured. universalResolverAddress is required.");return ki({blockNumber:n,chain:s,contract:"ensUniversalResolver"})})(),a=s==null?void 0:s.ensTlds;if(a&&!a.some(l=>o.endsWith(l)))throw new Error(`${o} is not a valid ENS TLD (${a==null?void 0:a.join(", ")}) for chain "${s.name}" (id: ${s.id}).`);const[c]=await Fe(e,Lr,"readContract")({address:i,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[Xt(f1(o))],blockNumber:n,blockTag:r});return c}async function og(e,t){var b,y,v;const{account:n=e.account,blockNumber:r,blockTag:o="latest",blobs:s,data:i,gas:a,gasPrice:c,maxFeePerBlobGas:l,maxFeePerGas:u,maxPriorityFeePerGas:d,to:f,value:h,...g}=t,m=n?Hn(n):void 0;try{xc(t);const x=(typeof r=="bigint"?me(r):void 0)||o,C=(v=(y=(b=e.chain)==null?void 0:b.formatters)==null?void 0:y.transactionRequest)==null?void 0:v.format,A=(C||a1)({...V2(g,{format:C}),from:m==null?void 0:m.address,blobs:s,data:i,gas:a,gasPrice:c,maxFeePerBlobGas:l,maxFeePerGas:u,maxPriorityFeePerGas:d,to:f,value:h}),k=await e.request({method:"eth_createAccessList",params:[A,x]});return{accessList:k.accessList,gasUsed:BigInt(k.gasUsed)}}catch(w){throw Y7(w,{...t,account:m,chain:e.chain})}}function m1(e,{method:t}){var r,o;const n={};return e.transport.type==="fallback"&&((o=(r=e.transport).onResponse)==null||o.call(r,({method:s,response:i,status:a,transport:c})=>{a==="success"&&t===s&&(n[i]=c.request)})),s=>n[s]||e.request}async function dB(e){const t=m1(e,{method:"eth_newBlockFilter"}),n=await e.request({method:"eth_newBlockFilter"});return{id:n,request:t(n),type:"block"}}class fB extends ae{constructor(t){super(`Filter type "${t}" is not supported.`,{name:"FilterTypeNotSupportedError"})}}const Q3="/docs/contract/encodeEventTopics";function Oc(e){var c;const{abi:t,eventName:n,args:r}=e;let o=t[0];if(n){const l=hs({abi:t,name:n});if(!l)throw new A3(n,{docsPath:Q3});o=l}if(o.type!=="event")throw new A3(void 0,{docsPath:Q3});const s=Nn(o),i=u1(s);let a=[];if(r&&"inputs"in o){const l=(c=o.inputs)==null?void 0:c.filter(d=>"indexed"in d&&d.indexed),u=Array.isArray(r)?r:Object.values(r).length>0?(l==null?void 0:l.map(d=>r[d.name]))??[]:[];u.length>0&&(a=(l==null?void 0:l.map((d,f)=>Array.isArray(u[f])?u[f].map((h,g)=>e9({param:d,value:u[f][g]})):typeof u[f]<"u"&&u[f]!==null?e9({param:d,value:u[f]}):null))??[])}return[i,...a]}function e9({param:e,value:t}){if(e.type==="string"||e.type==="bytes")return _t(Ai(t));if(e.type==="tuple"||e.type.match(/^(.*)\[(\d+)?\]$/))throw new fB(e.type);return Hr([e],[t])}async function sg(e,t){const{address:n,abi:r,args:o,eventName:s,fromBlock:i,strict:a,toBlock:c}=t,l=m1(e,{method:"eth_newFilter"}),u=s?Oc({abi:r,args:o,eventName:s}):void 0,d=await e.request({method:"eth_newFilter",params:[{address:n,fromBlock:typeof i=="bigint"?me(i):i,toBlock:typeof c=="bigint"?me(c):c,topics:u}]});return{abi:r,args:o,eventName:s,id:d,request:l(d),strict:!!a,type:"event"}}async function ig(e,{address:t,args:n,event:r,events:o,fromBlock:s,strict:i,toBlock:a}={}){const c=o??(r?[r]:void 0),l=m1(e,{method:"eth_newFilter"});let u=[];c&&(u=[c.flatMap(h=>Oc({abi:[h],eventName:h.name,args:n}))],r&&(u=u[0]));const d=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:typeof s=="bigint"?me(s):s,toBlock:typeof a=="bigint"?me(a):a,...u.length?{topics:u}:{}}]});return{abi:c,args:n,eventName:r?r.name:void 0,fromBlock:s,id:d,request:l(d),strict:!!i,toBlock:a,type:"event"}}async function ag(e){const t=m1(e,{method:"eth_newPendingTransactionFilter"}),n=await e.request({method:"eth_newPendingTransactionFilter"});return{id:n,request:t(n),type:"transaction"}}async function hB(e,t){const{abi:n,address:r,args:o,functionName:s,dataSuffix:i,...a}=t,c=mr({abi:n,args:o,functionName:s});try{return await Fe(e,Z2,"estimateGas")({data:`${c}${i?i.replace("0x",""):""}`,to:r,...a})}catch(l){const u=a.account?Hn(a.account):void 0;throw ci(l,{abi:n,address:r,args:o,docsPath:"/docs/contract/estimateContractGas",functionName:s,sender:u==null?void 0:u.address})}}async function pB(e){const t=await e.request({method:"eth_blobBaseFee"});return BigInt(t)}const mB=new Map,gB=new Map;function bB(e){const t=(o,s)=>({clear:()=>s.delete(o),get:()=>s.get(o),set:i=>s.set(o,i)}),n=t(e,mB),r=t(e,gB);return{clear:()=>{n.clear(),r.clear()},promise:n,response:r}}async function yB(e,{cacheKey:t,cacheTime:n=Number.POSITIVE_INFINITY}){const r=bB(t),o=r.response.get();if(o&&n>0&&new Date().getTime()-o.created.getTime()<n)return o.data;let s=r.promise.get();s||(s=e(),r.promise.set(s));try{const i=await s;return r.response.set({created:new Date,data:i}),i}finally{r.promise.clear()}}const vB=e=>`blockNumber.${e}`;async function kc(e,{cacheTime:t=e.cacheTime}={}){const n=await yB(()=>e.request({method:"eth_blockNumber"}),{cacheKey:vB(e.uid),cacheTime:t});return BigInt(n)}async function wB(e,{blockHash:t,blockNumber:n,blockTag:r="latest"}={}){const o=n!==void 0?me(n):void 0;let s;return t?s=await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]},{dedupe:!0}):s=await e.request({method:"eth_getBlockTransactionCountByNumber",params:[o||r]},{dedupe:!!o}),lr(s)}async function t9(e,{address:t,blockNumber:n,blockTag:r="latest"}){const o=n!==void 0?me(n):void 0,s=await e.request({method:"eth_getCode",params:[t,o||r]},{dedupe:!!o});if(s!=="0x")return s}function g1(e,t){if(!At(e,{strict:!1}))throw new jt({address:e});if(!At(t,{strict:!1}))throw new jt({address:t});return e.toLowerCase()===t.toLowerCase()}const n9="/docs/contract/decodeEventLog";function ih(e){const{abi:t,data:n,strict:r,topics:o}=e,s=r??!0,[i,...a]=o;if(!i)throw new xN({docsPath:n9});const c=t.find(m=>m.type==="event"&&i===u1(Nn(m)));if(!(c&&"name"in c)||c.type!=="event")throw new P8(i,{docsPath:n9});const{name:l,inputs:u}=c,d=u==null?void 0:u.some(m=>!("name"in m&&m.name)),f=d?[]:{},h=u.map((m,b)=>[m,b]).filter(([m])=>"indexed"in m&&m.indexed);for(let m=0;m<h.length;m++){const[b,y]=h[m],v=a[m];if(!v)throw new t1({abiItem:c,param:b});f[d?y:b.name||y]=CB({param:b,value:v})}const g=u.filter(m=>!("indexed"in m&&m.indexed));if(g.length>0){if(n&&n!=="0x")try{const m=Sc(g,n);if(m)if(d)for(let b=0;b<u.length;b++)f[b]=f[b]??m.shift();else for(let b=0;b<g.length;b++)f[g[b].name]=m[b]}catch(m){if(s)throw m instanceof _8||m instanceof G8?new Aa({abiItem:c,data:n,params:g,size:at(n)}):m}else if(s)throw new Aa({abiItem:c,data:"0x",params:g,size:0})}return{eventName:l,args:Object.values(f).length>0?f:void 0}}function CB({param:e,value:t}){return e.type==="string"||e.type==="bytes"||e.type==="tuple"||e.type.match(/^(.*)\[(\d+)?\]$/)?t:(Sc([e],t)||[])[0]}function ah(e){const{abi:t,args:n,logs:r,strict:o=!0}=e,s=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})();return r.map(i=>{var a;try{const c=t.find(u=>u.type==="event"&&i.topics[0]===u1(u));if(!c)return null;const l=ih({...i,abi:[c],strict:o});return s&&!s.includes(l.eventName)||!xB({args:l.args,inputs:c.inputs,matchArgs:n})?null:{...l,...i}}catch(c){let l,u;if(c instanceof P8)return null;if(c instanceof Aa||c instanceof t1){if(o)return null;l=c.abiItem.name,u=(a=c.abiItem.inputs)==null?void 0:a.some(d=>!("name"in d&&d.name))}return{...i,args:u?[]:{},eventName:l}}}).filter(Boolean)}function xB(e){const{args:t,inputs:n,matchArgs:r}=e;if(!r)return!0;if(!t)return!1;function o(s,i,a){try{return s.type==="address"?g1(i,a):s.type==="string"||s.type==="bytes"?_t(Ai(i))===a:i===a}catch{return!1}}return Array.isArray(t)&&Array.isArray(r)?r.every((s,i)=>{if(s==null)return!0;const a=n[i];return a?(Array.isArray(s)?s:[s]).some(l=>o(a,l,t[i])):!1}):typeof t=="object"&&!Array.isArray(t)&&typeof r=="object"&&!Array.isArray(r)?Object.entries(r).every(([s,i])=>{if(i==null)return!0;const a=n.find(l=>l.name===s);return a?(Array.isArray(i)?i:[i]).some(l=>o(a,l,t[s])):!1}):!1}function Dr(e,{args:t,eventName:n}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...n?{args:t,eventName:n}:{}}}async function ch(e,{address:t,blockHash:n,fromBlock:r,toBlock:o,event:s,events:i,args:a,strict:c}={}){const l=c??!1,u=i??(s?[s]:void 0);let d=[];u&&(d=[u.flatMap(m=>Oc({abi:[m],eventName:m.name,args:i?void 0:a}))],s&&(d=d[0]));let f;n?f=await e.request({method:"eth_getLogs",params:[{address:t,topics:d,blockHash:n}]}):f=await e.request({method:"eth_getLogs",params:[{address:t,topics:d,fromBlock:typeof r=="bigint"?me(r):r,toBlock:typeof o=="bigint"?me(o):o}]});const h=f.map(g=>Dr(g));return u?ah({abi:u,args:a,logs:h,strict:l}):h}async function cg(e,t){const{abi:n,address:r,args:o,blockHash:s,eventName:i,fromBlock:a,toBlock:c,strict:l}=t,u=i?hs({abi:n,name:i}):void 0,d=u?void 0:n.filter(f=>f.type==="event");return Fe(e,ch,"getLogs")({address:r,args:o,blockHash:s,event:u,events:d,fromBlock:a,toBlock:c,strict:l})}class SB extends ae{constructor({address:t}){super(`No EIP-712 domain found on contract "${t}".`,{metaMessages:["Ensure that:",`- The contract is deployed at the address "${t}".`,"- `eip712Domain()` function exists on the contract.","- `eip712Domain()` function matches signature to ERC-5267 specification."],name:"Eip712DomainNotFoundError"})}}async function EB(e,t){const{address:n,factory:r,factoryData:o}=t;try{const[s,i,a,c,l,u,d]=await Fe(e,Lr,"readContract")({abi:AB,address:n,functionName:"eip712Domain",factory:r,factoryData:o});return{domain:{name:i,version:a,chainId:Number(c),verifyingContract:l,salt:u},extensions:d,fields:s}}catch(s){const i=s;throw i.name==="ContractFunctionExecutionError"&&i.cause.name==="ContractFunctionZeroDataError"?new SB({address:n}):i}}const AB=[{inputs:[],name:"eip712Domain",outputs:[{name:"fields",type:"bytes1"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"},{name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"}];function OB(e){var t;return{baseFeePerGas:e.baseFeePerGas.map(n=>BigInt(n)),gasUsedRatio:e.gasUsedRatio,oldestBlock:BigInt(e.oldestBlock),reward:(t=e.reward)==null?void 0:t.map(n=>n.map(r=>BigInt(r)))}}async function kB(e,{blockCount:t,blockNumber:n,blockTag:r="latest",rewardPercentiles:o}){const s=typeof n=="bigint"?me(n):void 0,i=await e.request({method:"eth_feeHistory",params:[me(t),s||r,o]},{dedupe:!!s});return OB(i)}async function b1(e,{filter:t}){const n="strict"in t&&t.strict,r=await t.request({method:"eth_getFilterChanges",params:[t.id]});if(typeof r[0]=="string")return r;const o=r.map(s=>Dr(s));return!("abi"in t)||!t.abi?o:ah({abi:t.abi,logs:o,strict:n})}async function _B(e,{filter:t}){const n=t.strict??!1,o=(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map(s=>Dr(s));return t.abi?ah({abi:t.abi,logs:o,strict:n}):o}async function IB(e,{address:t,blockNumber:n,blockTag:r="latest",slot:o}){const s=n!==void 0?me(n):void 0;return await e.request({method:"eth_getStorageAt",params:[t,o,s||r]})}async function lh(e,{blockHash:t,blockNumber:n,blockTag:r,hash:o,index:s}){var u,d,f;const i=r||"latest",a=n!==void 0?me(n):void 0;let c=null;if(o?c=await e.request({method:"eth_getTransactionByHash",params:[o]},{dedupe:!0}):t?c=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,me(s)]},{dedupe:!0}):c=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[a||i,me(s)]},{dedupe:!!a}),!c)throw new Q8({blockHash:t,blockNumber:n,blockTag:i,hash:o,index:s});return(((f=(d=(u=e.chain)==null?void 0:u.formatters)==null?void 0:d.transaction)==null?void 0:f.format)||l1)(c)}async function PB(e,{hash:t,transactionReceipt:n}){const[r,o]=await Promise.all([Fe(e,kc,"getBlockNumber")({}),t?Fe(e,lh,"getTransaction")({hash:t}):void 0]),s=(n==null?void 0:n.blockNumber)||(o==null?void 0:o.blockNumber);return s?r-s+1n:0n}const MB={"0x0":"reverted","0x1":"success"};function lg(e){const t={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(n=>Dr(n)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?lr(e.transactionIndex):null,status:e.status?MB[e.status]:null,type:e.type?r7[e.type]||e.type:null};return e.blobGasPrice&&(t.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(t.blobGasUsed=BigInt(e.blobGasUsed)),t}const RB=z2("transactionReceipt",lg);async function kf(e,{hash:t}){var o,s,i;const n=await e.request({method:"eth_getTransactionReceipt",params:[t]},{dedupe:!0});if(!n)throw new e7({hash:t});return(((i=(s=(o=e.chain)==null?void 0:o.formatters)==null?void 0:s.transactionReceipt)==null?void 0:i.format)||lg)(n)}async function TB(e,t){var y;const{account:n,allowFailure:r=!0,batchSize:o,blockNumber:s,blockTag:i,multicallAddress:a,stateOverride:c}=t,l=t.contracts,u=o??(typeof((y=e.batch)==null?void 0:y.multicall)=="object"&&e.batch.multicall.batchSize||1024);let d=a;if(!d){if(!e.chain)throw new Error("client chain not configured. multicallAddress is required.");d=ki({blockNumber:s,chain:e.chain,contract:"multicall3"})}const f=[[]];let h=0,g=0;for(let v=0;v<l.length;v++){const{abi:w,address:x,args:C,functionName:S}=l[v];try{const A=mr({abi:w,args:C,functionName:S});g+=(A.length-2)/2,u>0&&g>u&&f[h].length>0&&(h++,g=(A.length-2)/2,f[h]=[]),f[h]=[...f[h],{allowFailure:!0,callData:A,target:x}]}catch(A){const k=ci(A,{abi:w,address:x,args:C,docsPath:"/docs/contract/multicall",functionName:S,sender:n});if(!r)throw k;f[h]=[...f[h],{allowFailure:!0,callData:"0x",target:x}]}}const m=await Promise.allSettled(f.map(v=>Fe(e,Lr,"readContract")({abi:gf,account:n,address:d,args:[v],blockNumber:s,blockTag:i,functionName:"aggregate3",stateOverride:c}))),b=[];for(let v=0;v<m.length;v++){const w=m[v];if(w.status==="rejected"){if(!r)throw w.reason;for(let C=0;C<f[v].length;C++)b.push({status:"failure",error:w.reason,result:void 0});continue}const x=w.value;for(let C=0;C<x.length;C++){const{returnData:S,success:A}=x[C],{callData:k}=f[v][C],{abi:O,address:T,functionName:B,args:_}=l[b.length];try{if(k==="0x")throw new wc;if(!A)throw new d1({data:S});const R=ps({abi:O,args:_,data:S,functionName:B});b.push(r?{result:R,status:"success"}:R)}catch(R){const E=ci(R,{abi:O,address:T,args:_,docsPath:"/docs/contract/multicall",functionName:B});if(!r)throw E;b.push({error:E,result:void 0,status:"failure"})}}}if(b.length!==l.length)throw new ae("multicall results mismatch");return b}async function _f(e,t){const{blockNumber:n,blockTag:r="latest",blocks:o,returnFullTransactions:s,traceTransfers:i,validation:a}=t;try{const c=[];for(const f of o){const h=f.blockOverrides?q7(f.blockOverrides):void 0,g=f.calls.map(b=>{const y=b,v=y.account?Hn(y.account):void 0,w=y.abi?mr(y):y.data,x={...y,data:y.dataSuffix?Ln([w||"0x",y.dataSuffix]):w,from:y.from??(v==null?void 0:v.address)};return xc(x),a1(x)}),m=f.stateOverrides?U2(f.stateOverrides):void 0;c.push({blockOverrides:h,calls:g,stateOverrides:m})}const u=(typeof n=="bigint"?me(n):void 0)||r;return(await e.request({method:"eth_simulateV1",params:[{blockStateCalls:c,returnFullTransactions:s,traceTransfers:i,validation:a},u]})).map((f,h)=>({...j2(f),calls:f.calls.map((g,m)=>{var T,B;const{abi:b,args:y,functionName:v,to:w}=o[h].calls[m],x=((T=g.error)==null?void 0:T.data)??g.returnData,C=BigInt(g.gasUsed),S=(B=g.logs)==null?void 0:B.map(_=>Dr(_)),A=g.status==="0x1"?"success":"failure",k=b&&A==="success"&&x!=="0x"?ps({abi:b,data:x,functionName:v}):null,O=(()=>{var R;if(A==="success")return;let _;if(((R=g.error)==null?void 0:R.data)==="0x"?_=new wc:g.error&&(_=new d1(g.error)),!!_)return ci(_,{abi:b??[],address:w??"0x",args:y,functionName:v??"<unknown>"})})();return{data:x,gasUsed:C,logs:S,status:A,...A==="success"?{result:k}:{error:O}}})}))}catch(c){const l=c,u=B2(l,{});throw u instanceof s1?l:u}}function ug(e,t={}){const{as:n=typeof e=="string"?"Hex":"Bytes"}=t,r=z8(IF(e));return n==="Bytes"?r:Z7(r)}class NB extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const n=super.get(t);return super.has(t)&&n!==void 0&&(this.delete(t),super.set(t,n)),n}set(t,n){if(super.set(t,n),this.maxSize&&this.size>this.maxSize){const r=this.keys().next().value;r&&this.delete(r)}return this}}const LB={checksum:new NB(8192)},bd=LB.checksum,DB=/^0x[a-fA-F0-9]{40}$/;function y1(e,t={}){const{strict:n=!0}=t;if(!DB.test(e))throw new r9({address:e,cause:new BB});if(n){if(e.toLowerCase()===e)return;if(FB(e)!==e)throw new r9({address:e,cause:new VB})}}function FB(e){if(bd.has(e))return bd.get(e);y1(e,{strict:!1});const t=e.substring(2).toLowerCase(),n=ug(RF(t),{as:"Bytes"}),r=t.split("");for(let s=0;s<40;s+=2)n[s>>1]>>4>=8&&r[s]&&(r[s]=r[s].toUpperCase()),(n[s>>1]&15)>=8&&r[s+1]&&(r[s+1]=r[s+1].toUpperCase());const o=`0x${r.join("")}`;return bd.set(e,o),o}function If(e,t={}){const{strict:n=!0}=t??{};try{return y1(e,{strict:n}),!0}catch{return!1}}class r9 extends pt{constructor({address:t,cause:n}){super(`Address "${t}" is invalid.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}}class BB extends pt{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}}class VB extends pt{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}function Pf(e){let t=!0,n="",r=0,o="",s=!1;for(let i=0;i<e.length;i++){const a=e[i];if(["(",")",","].includes(a)&&(t=!0),a==="("&&r++,a===")"&&r--,!!t){if(r===0){if(a===" "&&["event","function","error",""].includes(o))o="";else if(o+=a,a===")"){s=!0;break}continue}if(a===" "){e[i-1]!==","&&n!==","&&n!==",("&&(n="",t=!1);continue}o+=a,n+=a}}if(!s)throw new pt("Unable to normalize signature.");return o}function Mf(e,t){const n=typeof e,r=t.type;switch(r){case"address":return If(e,{strict:!1});case"bool":return n==="boolean";case"function":return n==="string";case"string":return n==="string";default:return r==="tuple"&&"components"in t?Object.values(t.components).every((o,s)=>Mf(Object.values(e)[s],o)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(r)?n==="number"||n==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?n==="string"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r)?Array.isArray(e)&&e.every(o=>Mf(o,{...t,type:r.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function dg(e,t,n){for(const r in e){const o=e[r],s=t[r];if(o.type==="tuple"&&s.type==="tuple"&&"components"in o&&"components"in s)return dg(o.components,s.components,n[r]);const i=[o.type,s.type];if(i.includes("address")&&i.includes("bytes20")?!0:i.includes("address")&&i.includes("string")?If(n[r],{strict:!1}):i.includes("address")&&i.includes("bytes")?If(n[r],{strict:!1}):!1)return i}}function fg(e,t={}){const{prepare:n=!0}=t,r=Array.isArray(e)||typeof e=="string"?U3(e):e;return{...r,...n?{hash:Ls(r)}:{}}}function zB(e,t,n){const{args:r=[],prepare:o=!0}=n??{},s=VF(t,{strict:!1}),i=e.filter(l=>s?l.type==="function"||l.type==="error"?hg(l)===rh(t,0,4):l.type==="event"?Ls(l)===t:!1:"name"in l&&l.name===t);if(i.length===0)throw new Rf({name:t});if(i.length===1)return{...i[0],...o?{hash:Ls(i[0])}:{}};let a;for(const l of i){if(!("inputs"in l))continue;if(!r||r.length===0){if(!l.inputs||l.inputs.length===0)return{...l,...o?{hash:Ls(l)}:{}};continue}if(!l.inputs||l.inputs.length===0||l.inputs.length!==r.length)continue;if(r.every((d,f)=>{const h="inputs"in l&&l.inputs[f];return h?Mf(d,h):!1})){if(a&&"inputs"in a&&a.inputs){const d=dg(l.inputs,a.inputs,r);if(d)throw new jB({abiItem:l,type:d[0]},{abiItem:a,type:d[1]})}a=l}}const c=(()=>{if(a)return a;const[l,...u]=i;return{...l,overloads:u}})();if(!c)throw new Rf({name:t});return{...c,...o?{hash:Ls(c)}:{}}}function hg(e){return rh(Ls(e),0,4)}function HB(e){const t=typeof e=="string"?e:cu(e);return Pf(t)}function Ls(e){return typeof e!="string"&&"hash"in e&&e.hash?e.hash:ug(nh(HB(e)))}class jB extends pt{constructor(t,n){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${t.type}\` in \`${Pf(cu(t.abiItem))}\`, and`,`\`${n.type}\` in \`${Pf(cu(n.abiItem))}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.AmbiguityError"})}}class Rf extends pt{constructor({name:t,data:n,type:r="item"}){const o=t?` with name "${t}"`:n?` with data "${n}"`:"";super(`ABI ${r}${o} not found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}}const $B=/^(.*)\[([0-9]*)\]$/,UB=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,pg=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function ZB({checksumAddress:e,parameters:t,values:n}){const r=[];for(let o=0;o<t.length;o++)r.push(uh({checksumAddress:e,parameter:t[o],value:n[o]}));return r}function uh({checksumAddress:e=!1,parameter:t,value:n}){const r=t,o=QB(r.type);if(o){const[s,i]=o;return GB(n,{checksumAddress:e,length:s,parameter:{...r,type:i}})}if(r.type==="tuple")return XB(n,{checksumAddress:e,parameter:r});if(r.type==="address")return WB(n,{checksum:e});if(r.type==="bool")return JB(n);if(r.type.startsWith("uint")||r.type.startsWith("int")){const s=r.type.startsWith("int"),[,,i="256"]=pg.exec(r.type)??[];return YB(n,{signed:s,size:Number(i)})}if(r.type.startsWith("bytes"))return qB(n,{type:r.type});if(r.type==="string")return KB(n);throw new yg(r.type)}function dh(e){let t=0;for(let s=0;s<e.length;s++){const{dynamic:i,encoded:a}=e[s];i?t+=32:t+=vn(a)}const n=[],r=[];let o=0;for(let s=0;s<e.length;s++){const{dynamic:i,encoded:a}=e[s];i?(n.push(Dt(t+o,{size:32})),r.push(a),o+=vn(a)):n.push(a)}return ur(...n,...r)}function WB(e,t){const{checksum:n=!1}=t;return y1(e,{strict:n}),{dynamic:!1,encoded:ss(e.toLowerCase())}}function GB(e,t){const{checksumAddress:n,length:r,parameter:o}=t,s=r===null;if(!Array.isArray(e))throw new tV(e);if(!s&&e.length!==r)throw new eV({expectedLength:r,givenLength:e.length,type:`${o.type}[${r}]`});let i=!1;const a=[];for(let c=0;c<e.length;c++){const l=uh({checksumAddress:n,parameter:o,value:e[c]});l.dynamic&&(i=!0),a.push(l)}if(s||i){const c=dh(a);if(s){const l=Dt(a.length,{size:32});return{dynamic:!0,encoded:a.length>0?ur(l,c):l}}if(i)return{dynamic:!0,encoded:c}}return{dynamic:!1,encoded:ur(...a.map(({encoded:c})=>c))}}function qB(e,{type:t}){const[,n]=t.split("bytes"),r=vn(e);if(!n){let o=e;return r%32!==0&&(o=is(o,Math.ceil((e.length-2)/2/32)*32)),{dynamic:!0,encoded:ur(ss(Dt(r,{size:32})),o)}}if(r!==Number.parseInt(n))throw new gg({expectedSize:Number.parseInt(n),value:e});return{dynamic:!1,encoded:is(e)}}function JB(e){if(typeof e!="boolean")throw new pt(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:ss(U7(e))}}function YB(e,{signed:t,size:n}){if(typeof n=="number"){const r=2n**(BigInt(n)-(t?1n:0n))-1n,o=t?-r-1n:0n;if(e>r||e<o)throw new W7({max:r.toString(),min:o.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:Dt(e,{size:32,signed:t})}}function KB(e){const t=nh(e),n=Math.ceil(vn(t)/32),r=[];for(let o=0;o<n;o++)r.push(is(rh(t,o*32,(o+1)*32)));return{dynamic:!0,encoded:ur(is(Dt(vn(t),{size:32})),...r)}}function XB(e,t){const{checksumAddress:n,parameter:r}=t;let o=!1;const s=[];for(let i=0;i<r.components.length;i++){const a=r.components[i],c=Array.isArray(e)?i:a.name,l=uh({checksumAddress:n,parameter:a,value:e[c]});s.push(l),l.dynamic&&(o=!0)}return{dynamic:o,encoded:o?dh(s):ur(...s.map(({encoded:i})=>i))}}function QB(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function mg(e,t,n){const{checksumAddress:r=!1}={};if(e.length!==t.length)throw new bg({expectedLength:e.length,givenLength:t.length});const o=ZB({checksumAddress:r,parameters:e,values:t}),s=dh(o);return s.length===0?"0x":s}function Tf(e,t){if(e.length!==t.length)throw new bg({expectedLength:e.length,givenLength:t.length});const n=[];for(let r=0;r<e.length;r++){const o=e[r],s=t[r];n.push(Tf.encode(o,s))}return ur(...n)}(function(e){function t(n,r,o=!1){if(n==="address"){const c=r;return y1(c),ss(c.toLowerCase(),o?32:0)}if(n==="string")return nh(r);if(n==="bytes")return r;if(n==="bool")return ss(U7(r),o?32:1);const s=n.match(pg);if(s){const[c,l,u="256"]=s,d=Number.parseInt(u)/8;return Dt(r,{size:o?32:d,signed:l==="int"})}const i=n.match(UB);if(i){const[c,l]=i;if(Number.parseInt(l)!==(r.length-2)/2)throw new gg({expectedSize:Number.parseInt(l),value:r});return is(r,o?32:0)}const a=n.match($B);if(a&&Array.isArray(r)){const[c,l]=a,u=[];for(let d=0;d<r.length;d++)u.push(t(l,r[d],!0));return u.length===0?"0x":ur(...u)}throw new yg(n)}e.encode=t})(Tf||(Tf={}));class eV extends pt{constructor({expectedLength:t,givenLength:n,type:r}){super(`Array length mismatch for type \`${r}\`. Expected: \`${t}\`. Given: \`${n}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ArrayLengthMismatchError"})}}class gg extends pt{constructor({expectedSize:t,value:n}){super(`Size of bytes "${n}" (bytes${vn(n)}) does not match expected size (bytes${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}}class bg extends pt{constructor({expectedLength:t,givenLength:n}){super(["ABI encoding parameters/values length mismatch.",`Expected length (parameters): ${t}`,`Given length (values): ${n}`].join(`
97
- `)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}class tV extends pt{constructor(t){super(`Value \`${t}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}}class yg extends pt{constructor(t){super(`Type \`${t}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}}function nV(e,t){var o;const{bytecode:n,args:r}=t;return ur(n,(o=e.inputs)!=null&&o.length&&(r!=null&&r.length)?mg(e.inputs,r):"0x")}function rV(e){return fg(e)}function oV(e,...t){const{overloads:n}=e,r=n?sV([e,...n],e.name,{args:t[0]}):e,o=iV(r),s=t.length>0?mg(r.inputs,t[0]):void 0;return s?ur(o,s):o}function As(e,t={}){return fg(e,t)}function sV(e,t,n){const r=zB(e,t,n);if(r.type!=="function")throw new Rf({name:t,type:"function"});return r}function iV(e){return hg(e)}const aV="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",Un="0x0000000000000000000000000000000000000000",il=new k2(8192);function cV(e,{enabled:t=!0,id:n}){if(!t||!n)return e();if(il.get(n))return il.get(n);const r=e().finally(()=>il.delete(n));return il.set(n,r),r}async function Nf(e){return new Promise(t=>setTimeout(t,e))}function uu(e,{delay:t=100,retryCount:n=2,shouldRetry:r=()=>!0}={}){return new Promise((o,s)=>{const i=async({count:a=0}={})=>{const c=async({error:l})=>{const u=typeof t=="function"?t({count:a,error:l}):t;u&&await Nf(u),i({count:a+1})};try{const l=await e();o(l)}catch(l){if(a<n&&await r({count:a,error:l}))return c({error:l});s(l)}};i()})}function lV(e,t={}){return async(n,r={})=>{var d;const{dedupe:o=!1,methods:s,retryDelay:i=150,retryCount:a=3,uid:c}={...t,...r},{method:l}=n;if((d=s==null?void 0:s.exclude)!=null&&d.includes(l))throw new Mo(new Error("method not supported"),{method:l});if(s!=null&&s.include&&!s.include.includes(l))throw new Mo(new Error("method not supported"),{method:l});const u=o?Ea(`${c}.${Et(n)}`):void 0;return cV(()=>uu(async()=>{try{return await e(n)}catch(f){const h=f;switch(h.code){case Ia.code:throw new Ia(h);case Pa.code:throw new Pa(h);case Ma.code:throw new Ma(h,{method:n.method});case Ra.code:throw new Ra(h);case ts.code:throw new ts(h);case ns.code:throw new ns(h);case Ta.code:throw new Ta(h);case po.code:throw new po(h);case Na.code:throw new Na(h);case Mo.code:throw new Mo(h,{method:n.method});case ai.code:throw new ai(h);case La.code:throw new La(h);case Tt.code:throw new Tt(h);case Da.code:throw new Da(h);case Fa.code:throw new Fa(h);case Ba.code:throw new Ba(h);case Va.code:throw new Va(h);case rs.code:throw new rs(h);case za.code:throw new za(h);case Ha.code:throw new Ha(h);case ja.code:throw new ja(h);case $a.code:throw new $a(h);case Ua.code:throw new Ua(h);case Za.code:throw new Za(h);case Wa.code:throw new Wa(h);case 5e3:throw new Tt(h);default:throw f instanceof ae?f:new OL(h)}}},{delay:({count:f,error:h})=>{var g;if(h&&h instanceof Zo){const m=(g=h==null?void 0:h.headers)==null?void 0:g.get("Retry-After");if(m!=null&&m.match(/\d/))return Number.parseInt(m)*1e3}return~~(1<<f)*i},retryCount:a,shouldRetry:({error:f})=>uV(f)}),{enabled:o,id:u})}}function uV(e){return"code"in e&&typeof e.code=="number"?e.code===-1||e.code===ai.code||e.code===ts.code:e instanceof Zo&&e.status?e.status===403||e.status===408||e.status===413||e.status===429||e.status===500||e.status===502||e.status===503||e.status===504:!0}class dV extends ae{constructor({callbackSelector:t,cause:n,data:r,extraData:o,sender:s,urls:i}){var a;super(n.shortMessage||"An error occurred while fetching for an offchain result.",{cause:n,metaMessages:[...n.metaMessages||[],(a=n.metaMessages)!=null&&a.length?"":[],"Offchain Gateway Call:",i&&[" Gateway URL(s):",...i.map(c=>` ${Cc(c)}`)],` Sender: ${s}`,` Data: ${r}`,` Callback selector: ${t}`,` Extra data: ${o}`].flat(),name:"OffchainLookupError"})}}class fV extends ae{constructor({result:t,url:n}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${Cc(n)}`,`Response: ${Et(t)}`],name:"OffchainLookupResponseMalformedError"})}}class hV extends ae{constructor({sender:t,to:n}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${n}`,`OffchainLookup sender address: ${t}`],name:"OffchainLookupSenderMismatchError"})}}const pV="0x556f1830",vg={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function mV(e,{blockNumber:t,blockTag:n,data:r,to:o}){const{args:s}=L7({data:r,abi:[vg]}),[i,a,c,l,u]=s,{ccipRead:d}=e,f=d&&typeof(d==null?void 0:d.request)=="function"?d.request:wg;try{if(!g1(o,i))throw new hV({sender:i,to:o});const h=a.includes(K2)?await dF({data:c,ccipRequest:f}):await f({data:c,sender:i,urls:a}),{data:g}=await Ac(e,{blockNumber:t,blockTag:n,data:Ln([l,Hr([{type:"bytes"},{type:"bytes"}],[h,u])]),to:o});return g}catch(h){throw new dV({callbackSelector:l,cause:h,data:r,extraData:u,sender:i,urls:a})}}async function wg({data:e,sender:t,urls:n}){var o;let r=new Error("An unknown error occurred.");for(let s=0;s<n.length;s++){const i=n[s],a=i.includes("{data}")?"GET":"POST",c=a==="POST"?{data:e,sender:t}:void 0,l=a==="POST"?{"Content-Type":"application/json"}:{};try{const u=await fetch(i.replace("{sender}",t.toLowerCase()).replace("{data}",e),{body:JSON.stringify(c),headers:l,method:a});let d;if((o=u.headers.get("Content-Type"))!=null&&o.startsWith("application/json")?d=(await u.json()).data:d=await u.text(),!u.ok){r=new Zo({body:c,details:d!=null&&d.error?Et(d.error):u.statusText,headers:u.headers,status:u.status,url:i});continue}if(!Rn(d)){r=new fV({result:d,url:i});continue}return d}catch(u){r=new Zo({body:c,details:u.message,url:i})}}throw r}const gV=Object.freeze(Object.defineProperty({__proto__:null,ccipRequest:wg,offchainLookup:mV,offchainLookupAbiItem:vg,offchainLookupSignature:pV},Symbol.toStringTag,{value:"Module"}));function _i(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}function Cg(e,{errorInstance:t=new Error("timed out"),timeout:n,signal:r}){return new Promise((o,s)=>{(async()=>{let i;try{const a=new AbortController;n>0&&(i=setTimeout(()=>{r?a.abort():s(t)},n)),o(await e({signal:(a==null?void 0:a.signal)||null}))}catch(a){(a==null?void 0:a.name)==="AbortError"&&s(t),s(a)}finally{clearTimeout(i)}})()})}function bV(){return{current:0,take(){return this.current++},reset(){this.current=0}}}const o9=bV();function yV(e,t={}){return{async request(n){var d;const{body:r,onRequest:o=t.onRequest,onResponse:s=t.onResponse,timeout:i=t.timeout??1e4}=n,a={...t.fetchOptions??{},...n.fetchOptions??{}},{headers:c,method:l,signal:u}=a;try{const f=await Cg(async({signal:g})=>{const m={...a,body:Array.isArray(r)?Et(r.map(w=>({jsonrpc:"2.0",id:w.id??o9.take(),...w}))):Et({jsonrpc:"2.0",id:r.id??o9.take(),...r}),headers:{"Content-Type":"application/json",...c},method:l||"POST",signal:u||(i>0?g:null)},b=new Request(e,m),y=await(o==null?void 0:o(b,m))??{...m,url:e};return await fetch(y.url??e,y)},{errorInstance:new T3({body:r,url:e}),timeout:i,signal:!0});s&&await s(f);let h;if((d=f.headers.get("Content-Type"))!=null&&d.startsWith("application/json"))h=await f.json();else{h=await f.text();try{h=JSON.parse(h||"{}")}catch(g){if(f.ok)throw g;h={error:h}}}if(!f.ok)throw new Zo({body:r,details:Et(h.error)||f.statusText,headers:f.headers,status:f.status,url:e});return h}catch(f){throw f instanceof Zo||f instanceof T3?f:new Zo({body:r,cause:f,url:e})}}}}class vV extends ae{constructor({domain:t}){super(`Invalid domain "${Et(t)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}class wV extends ae{constructor({primaryType:t,types:n}){super(`Invalid primary type \`${t}\` must be one of \`${JSON.stringify(Object.keys(n))}\`.`,{docsPath:"/api/glossary/Errors#typeddatainvalidprimarytypeerror",metaMessages:["Check that the primary type is a key in `types`."]})}}class CV extends ae{constructor({type:t}){super(`Struct type "${t}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}function xV(e){const{domain:t={},message:n,primaryType:r}=e,o={EIP712Domain:kV({domain:t}),...e.types};OV({domain:t,message:n,primaryType:r,types:o});const s=["0x1901"];return t&&s.push(SV({domain:t,types:o})),r!=="EIP712Domain"&&s.push(xg({data:n,primaryType:r,types:o})),_t(Ln(s))}function SV({domain:e,types:t}){return xg({data:e,primaryType:"EIP712Domain",types:t})}function xg({data:e,primaryType:t,types:n}){const r=Sg({data:e,primaryType:t,types:n});return _t(r)}function Sg({data:e,primaryType:t,types:n}){const r=[{type:"bytes32"}],o=[EV({primaryType:t,types:n})];for(const s of n[t]){const[i,a]=Ag({types:n,name:s.name,type:s.type,value:e[s.name]});r.push(i),o.push(a)}return Hr(r,o)}function EV({primaryType:e,types:t}){const n=Xt(AV({primaryType:e,types:t}));return _t(n)}function AV({primaryType:e,types:t}){let n="";const r=Eg({primaryType:e,types:t});r.delete(e);const o=[e,...Array.from(r).sort()];for(const s of o)n+=`${s}(${t[s].map(({name:i,type:a})=>`${a} ${i}`).join(",")})`;return n}function Eg({primaryType:e,types:t},n=new Set){const r=e.match(/^\w*/u),o=r==null?void 0:r[0];if(n.has(o)||t[o]===void 0)return n;n.add(o);for(const s of t[o])Eg({primaryType:s.type,types:t},n);return n}function Ag({types:e,name:t,type:n,value:r}){if(e[n]!==void 0)return[{type:"bytes32"},_t(Sg({data:r,primaryType:n,types:e}))];if(n==="bytes")return r=`0x${(r.length%2?"0":"")+r.slice(2)}`,[{type:"bytes32"},_t(r)];if(n==="string")return[{type:"bytes32"},_t(Xt(r))];if(n.lastIndexOf("]")===n.length-1){const o=n.slice(0,n.lastIndexOf("[")),s=r.map(i=>Ag({name:t,type:o,types:e,value:i}));return[{type:"bytes32"},_t(Hr(s.map(([i])=>i),s.map(([,i])=>i)))]}return[{type:n},r]}function OV(e){const{domain:t,message:n,primaryType:r,types:o}=e,s=(i,a)=>{for(const c of i){const{name:l,type:u}=c,d=a[l],f=u.match(Z8);if(f&&(typeof d=="number"||typeof d=="bigint")){const[m,b,y]=f;me(d,{signed:b==="int",size:Number.parseInt(y)/8})}if(u==="address"&&typeof d=="string"&&!At(d))throw new jt({address:d});const h=u.match(eL);if(h){const[m,b]=h;if(b&&at(d)!==Number.parseInt(b))throw new AN({expectedSize:Number.parseInt(b),givenSize:at(d)})}const g=o[u];g&&(_V(u),s(g,d))}};if(o.EIP712Domain&&t){if(typeof t!="object")throw new vV({domain:t});s(o.EIP712Domain,t)}if(r!=="EIP712Domain")if(o[r])s(o[r],n);else throw new wV({primaryType:r,types:o})}function kV({domain:e}){return[typeof(e==null?void 0:e.name)=="string"&&{name:"name",type:"string"},(e==null?void 0:e.version)&&{name:"version",type:"string"},(typeof(e==null?void 0:e.chainId)=="number"||typeof(e==null?void 0:e.chainId)=="bigint")&&{name:"chainId",type:"uint256"},(e==null?void 0:e.verifyingContract)&&{name:"verifyingContract",type:"address"},(e==null?void 0:e.salt)&&{name:"salt",type:"bytes32"}].filter(Boolean)}function _V(e){if(e==="address"||e==="bool"||e==="string"||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new CV({type:e})}function IV(e){const{authorizationList:t}=e;if(t)for(const n of t){const{chainId:r}=n,o=n.address;if(!At(o))throw new jt({address:o});if(r<0)throw new o1({chainId:r})}fh(e)}function PV(e){const{blobVersionedHashes:t}=e;if(t){if(t.length===0)throw new f7;for(const n of t){const r=at(n),o=lr(Qo(n,0,1));if(r!==32)throw new XL({hash:n,size:r});if(o!==d7)throw new QL({hash:n,version:o})}}fh(e)}function fh(e){const{chainId:t,maxPriorityFeePerGas:n,maxFeePerGas:r,to:o}=e;if(t<=0)throw new o1({chainId:t});if(o&&!At(o))throw new jt({address:o});if(r&&r>c1)throw new es({maxFeePerGas:r});if(n&&r&&n>r)throw new _a({maxFeePerGas:r,maxPriorityFeePerGas:n})}function MV(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:o,to:s}=e;if(t<=0)throw new o1({chainId:t});if(s&&!At(s))throw new jt({address:s});if(n||o)throw new ae("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(r&&r>c1)throw new es({maxFeePerGas:r})}function RV(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:o,to:s}=e;if(s&&!At(s))throw new jt({address:s});if(typeof t<"u"&&t<=0)throw new o1({chainId:t});if(n||o)throw new ae("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(r&&r>c1)throw new es({maxFeePerGas:r})}function v1(e){if(!e||e.length===0)return[];const t=[];for(let n=0;n<e.length;n++){const{address:r,storageKeys:o}=e[n];for(let s=0;s<o.length;s++)if(o[s].length-2!==64)throw new xL({storageKey:o[s]});if(!At(r,{strict:!1}))throw new jt({address:r});t.push([r,o])}return t}function TV(e,t){const n=p7(e);return n==="eip1559"?DV(e,t):n==="eip2930"?FV(e,t):n==="eip4844"?LV(e,t):n==="eip7702"?NV(e,t):BV(e,t)}function NV(e,t){const{authorizationList:n,chainId:r,gas:o,nonce:s,to:i,value:a,maxFeePerGas:c,maxPriorityFeePerGas:l,accessList:u,data:d}=e;IV(e);const f=v1(u),h=VV(n);return zn(["0x04",vo([me(r),s?me(s):"0x",l?me(l):"0x",c?me(c):"0x",o?me(o):"0x",i??"0x",a?me(a):"0x",d??"0x",f,h,..._c(e,t)])])}function LV(e,t){const{chainId:n,gas:r,nonce:o,to:s,value:i,maxFeePerBlobGas:a,maxFeePerGas:c,maxPriorityFeePerGas:l,accessList:u,data:d}=e;PV(e);let f=e.blobVersionedHashes,h=e.sidecars;if(e.blobs&&(typeof f>"u"||typeof h>"u")){const w=typeof e.blobs[0]=="string"?e.blobs:e.blobs.map(S=>vt(S)),x=e.kzg,C=W2({blobs:w,kzg:x});if(typeof f>"u"&&(f=c7({commitments:C})),typeof h>"u"){const S=G2({blobs:w,commitments:C,kzg:x});h=h7({blobs:w,commitments:C,proofs:S})}}const g=v1(u),m=[me(n),o?me(o):"0x",l?me(l):"0x",c?me(c):"0x",r?me(r):"0x",s??"0x",i?me(i):"0x",d??"0x",g,a?me(a):"0x",f??[],..._c(e,t)],b=[],y=[],v=[];if(h)for(let w=0;w<h.length;w++){const{blob:x,commitment:C,proof:S}=h[w];b.push(x),y.push(C),v.push(S)}return zn(["0x03",vo(h?[m,b,y,v]:m)])}function DV(e,t){const{chainId:n,gas:r,nonce:o,to:s,value:i,maxFeePerGas:a,maxPriorityFeePerGas:c,accessList:l,data:u}=e;fh(e);const d=v1(l),f=[me(n),o?me(o):"0x",c?me(c):"0x",a?me(a):"0x",r?me(r):"0x",s??"0x",i?me(i):"0x",u??"0x",d,..._c(e,t)];return zn(["0x02",vo(f)])}function FV(e,t){const{chainId:n,gas:r,data:o,nonce:s,to:i,value:a,accessList:c,gasPrice:l}=e;MV(e);const u=v1(c),d=[me(n),s?me(s):"0x",l?me(l):"0x",r?me(r):"0x",i??"0x",a?me(a):"0x",o??"0x",u,..._c(e,t)];return zn(["0x01",vo(d)])}function BV(e,t){const{chainId:n=0,gas:r,data:o,nonce:s,to:i,value:a,gasPrice:c}=e;RV(e);let l=[s?me(s):"0x",c?me(c):"0x",r?me(r):"0x",i??"0x",a?me(a):"0x",o??"0x"];if(t){const u=(()=>{if(t.v>=35n)return(t.v-35n)/2n>0?t.v:27n+(t.v===35n?0n:1n);if(n>0)return BigInt(n*2)+BigInt(35n+t.v-27n);const h=27n+(t.v===27n?0n:1n);if(t.v!==h)throw new wL({v:t.v});return h})(),d=_n(t.r),f=_n(t.s);l=[...l,me(u),d==="0x00"?"0x":d,f==="0x00"?"0x":f]}else n>0&&(l=[...l,me(n),"0x","0x"]);return vo(l)}function _c(e,t){const n=t??e,{v:r,yParity:o}=n;if(typeof n.r>"u")return[];if(typeof n.s>"u")return[];if(typeof r>"u"&&typeof o>"u")return[];const s=_n(n.r),i=_n(n.s);return[typeof o=="number"?o?me(1):"0x":r===0n?"0x":r===1n?me(1):r===27n?"0x":me(1),s==="0x00"?"0x":s,i==="0x00"?"0x":i]}function VV(e){if(!e||e.length===0)return[];const t=[];for(const n of e){const{chainId:r,nonce:o,...s}=n,i=n.address;t.push([r?Xt(r):"0x",i,o?Xt(o):"0x",..._c({},s)])}return t}const zV=`Ethereum Signed Message:
98
- `;function HV(e){const t=typeof e=="string"?Ea(e):typeof e.raw=="string"?e.raw:vt(e.raw),n=Ea(`${zV}${at(t)}`);return Ln([n,t])}function Og(e,t){return _t(HV(e),t)}const kg="0x6492649264926492649264926492649264926492649264926492649264926492";function jV(e){return U8(e,-32)===kg}function $V(e){const{address:t,data:n,signature:r,to:o="hex"}=e,s=zn([Hr([{type:"address"},{type:"bytes"},{type:"bytes"}],[t,n,r]),kg]);return o==="hex"?s:Tn(s)}const UV="0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033";async function ZV(e,t){const{blockNumber:n,blockTag:r,calls:o,stateOverrides:s,traceAssetChanges:i,traceTransfers:a,validation:c}=t,l=t.account?Hn(t.account):void 0;if(i&&!l)throw new ae("`account` is required when `traceAssetChanges` is true");const u=l?nV(rV("constructor(bytes, bytes)"),{bytecode:J7,args:[UV,oV(As("function getBalance(address)"),[l.address])]}):void 0,d=i?await Promise.all(t.calls.map(async N=>{if(!N.data&&!N.abi)return;const{accessList:F}=await og(e,{account:l.address,...N,data:N.abi?mr(N):N.data});return F.map(({address:X,storageKeys:j})=>j.length>0?X:null)})).then(N=>N.flat().filter(Boolean)):[],f=await _f(e,{blockNumber:n,blockTag:r,blocks:[...i?[{calls:[{data:u}],stateOverrides:s},{calls:d.map((N,F)=>({abi:[As("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[l.address],to:N,from:Un,nonce:F})),stateOverrides:[{address:Un,nonce:0}]}]:[],{calls:[...o,{}].map(N=>({...N,from:l==null?void 0:l.address})),stateOverrides:s},...i?[{calls:[{data:u}]},{calls:d.map((N,F)=>({abi:[As("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[l.address],to:N,from:Un,nonce:F})),stateOverrides:[{address:Un,nonce:0}]},{calls:d.map((N,F)=>({to:N,abi:[As("function decimals() returns (uint256)")],functionName:"decimals",from:Un,nonce:F})),stateOverrides:[{address:Un,nonce:0}]},{calls:d.map((N,F)=>({to:N,abi:[As("function tokenURI(uint256) returns (string)")],functionName:"tokenURI",args:[0n],from:Un,nonce:F})),stateOverrides:[{address:Un,nonce:0}]},{calls:d.map((N,F)=>({to:N,abi:[As("function symbol() returns (string)")],functionName:"symbol",from:Un,nonce:F})),stateOverrides:[{address:Un,nonce:0}]}]:[]],traceTransfers:a,validation:c}),h=i?f[2]:f[0],[g,m,,b,y,v,w,x]=i?f:[],{calls:C,...S}=h,A=C.slice(0,-1)??[],k=(g==null?void 0:g.calls)??[],O=(m==null?void 0:m.calls)??[],T=[...k,...O].map(N=>N.status==="success"?Bt(N.data):null),B=(b==null?void 0:b.calls)??[],_=(y==null?void 0:y.calls)??[],R=[...B,..._].map(N=>N.status==="success"?Bt(N.data):null),E=((v==null?void 0:v.calls)??[]).map(N=>N.status==="success"?N.result:null),V=((x==null?void 0:x.calls)??[]).map(N=>N.status==="success"?N.result:null),D=((w==null?void 0:w.calls)??[]).map(N=>N.status==="success"?N.result:null),H=[];for(const[N,F]of R.entries()){const X=T[N];if(typeof F!="bigint"||typeof X!="bigint")continue;const j=E[N-1],M=V[N-1],Y=D[N-1],G=N===0?{address:aV,decimals:18,symbol:"ETH"}:{address:d[N-1],decimals:Y||j?Number(j??1):void 0,symbol:M??void 0};H.some(W=>W.token.address===G.address)||H.push({token:G,value:{pre:X,post:F,diff:F-X}})}return{assetChanges:H,block:S,results:A}}const yd=new Map,s9=new Map;let WV=0;function wo(e,t,n){const r=++WV,o=()=>yd.get(e)||[],s=()=>{const u=o();yd.set(e,u.filter(d=>d.id!==r))},i=()=>{const u=o();if(!u.some(f=>f.id===r))return;const d=s9.get(e);if(u.length===1&&d){const f=d();f instanceof Promise&&f.catch(()=>{})}s()},a=o();if(yd.set(e,[...a,{id:r,fns:t}]),a&&a.length>0)return i;const c={};for(const u in t)c[u]=(...d)=>{var h,g;const f=o();if(f.length!==0)for(const m of f)(g=(h=m.fns)[u])==null||g.call(h,...d)};const l=n(c);return typeof l=="function"&&s9.set(e,l),i}function Ic(e,{emitOnBegin:t,initialWaitTime:n,interval:r}){let o=!0;const s=()=>o=!1;return(async()=>{let a;t&&(a=await e({unpoll:s}));const c=await(n==null?void 0:n(a))??r;await Nf(c);const l=async()=>{o&&(await e({unpoll:s}),await Nf(r),l())};l()})(),s}function GV(e,{blockTag:t="latest",emitMissed:n=!1,emitOnBegin:r=!1,onBlock:o,onError:s,includeTransactions:i,poll:a,pollingInterval:c=e.pollingInterval}){const l=typeof a<"u"?a:!(e.transport.type==="webSocket"||e.transport.type==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].config.type==="webSocket"||e.transport.transports[0].config.type==="ipc")),u=i??!1;let d;return l?(()=>{const g=Et(["watchBlocks",e.uid,t,n,r,u,c]);return wo(g,{onBlock:o,onError:s},m=>Ic(async()=>{var b;try{const y=await Fe(e,er,"getBlock")({blockTag:t,includeTransactions:u});if(y.number!==null&&(d==null?void 0:d.number)!=null){if(y.number===d.number)return;if(y.number-d.number>1&&n)for(let v=(d==null?void 0:d.number)+1n;v<y.number;v++){const w=await Fe(e,er,"getBlock")({blockNumber:v,includeTransactions:u});m.onBlock(w,d),d=w}}((d==null?void 0:d.number)==null||t==="pending"&&(y==null?void 0:y.number)==null||y.number!==null&&y.number>d.number)&&(m.onBlock(y,d),d=y)}catch(y){(b=m.onError)==null||b.call(m,y)}},{emitOnBegin:r,interval:c}))})():(()=>{let g=!0,m=!0,b=()=>g=!1;return(async()=>{try{r&&Fe(e,er,"getBlock")({blockTag:t,includeTransactions:u}).then(w=>{g&&m&&(o(w,void 0),m=!1)}).catch(s);const y=(()=>{if(e.transport.type==="fallback"){const w=e.transport.transports.find(x=>x.config.type==="webSocket"||x.config.type==="ipc");return w?w.value:e.transport}return e.transport})(),{unsubscribe:v}=await y.subscribe({params:["newHeads"],async onData(w){var C;if(!g)return;const x=await Fe(e,er,"getBlock")({blockNumber:(C=w.result)==null?void 0:C.number,includeTransactions:u}).catch(()=>{});g&&(o(x,d),m=!1,d=x)},onError(w){s==null||s(w)}});b=v,g||b()}catch(y){s==null||s(y)}})(),()=>b()})()}function _g(e,{emitOnBegin:t=!1,emitMissed:n=!1,onBlockNumber:r,onError:o,poll:s,pollingInterval:i=e.pollingInterval}){const a=typeof s<"u"?s:!(e.transport.type==="webSocket"||e.transport.type==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].config.type==="webSocket"||e.transport.transports[0].config.type==="ipc"));let c;return a?(()=>{const d=Et(["watchBlockNumber",e.uid,t,n,i]);return wo(d,{onBlockNumber:r,onError:o},f=>Ic(async()=>{var h;try{const g=await Fe(e,kc,"getBlockNumber")({cacheTime:0});if(c){if(g===c)return;if(g-c>1&&n)for(let m=c+1n;m<g;m++)f.onBlockNumber(m,c),c=m}(!c||g>c)&&(f.onBlockNumber(g,c),c=g)}catch(g){(h=f.onError)==null||h.call(f,g)}},{emitOnBegin:t,interval:i}))})():(()=>{const d=Et(["watchBlockNumber",e.uid,t,n]);return wo(d,{onBlockNumber:r,onError:o},f=>{let h=!0,g=()=>h=!1;return(async()=>{try{const m=(()=>{if(e.transport.type==="fallback"){const y=e.transport.transports.find(v=>v.config.type==="webSocket"||v.config.type==="ipc");return y?y.value:e.transport}return e.transport})(),{unsubscribe:b}=await m.subscribe({params:["newHeads"],onData(y){var w;if(!h)return;const v=Bt((w=y.result)==null?void 0:w.number);f.onBlockNumber(v,c),c=v},onError(y){var v;(v=f.onError)==null||v.call(f,y)}});g=b,h||g()}catch(m){o==null||o(m)}})(),()=>g()})})()}async function w1(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}function qV(e,{address:t,args:n,batch:r=!0,event:o,events:s,fromBlock:i,onError:a,onLogs:c,poll:l,pollingInterval:u=e.pollingInterval,strict:d}){const f=typeof l<"u"?l:typeof i=="bigint"?!0:!(e.transport.type==="webSocket"||e.transport.type==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].config.type==="webSocket"||e.transport.transports[0].config.type==="ipc")),h=d??!1;return f?(()=>{const b=Et(["watchEvent",t,n,r,e.uid,o,u,i]);return wo(b,{onLogs:c,onError:a},y=>{let v;i!==void 0&&(v=i-1n);let w,x=!1;const C=Ic(async()=>{var S;if(!x){try{w=await Fe(e,ig,"createEventFilter")({address:t,args:n,event:o,events:s,strict:h,fromBlock:i})}catch{}x=!0;return}try{let A;if(w)A=await Fe(e,b1,"getFilterChanges")({filter:w});else{const k=await Fe(e,kc,"getBlockNumber")({});v&&v!==k?A=await Fe(e,ch,"getLogs")({address:t,args:n,event:o,events:s,fromBlock:v+1n,toBlock:k}):A=[],v=k}if(A.length===0)return;if(r)y.onLogs(A);else for(const k of A)y.onLogs([k])}catch(A){w&&A instanceof ns&&(x=!1),(S=y.onError)==null||S.call(y,A)}},{emitOnBegin:!0,interval:u});return async()=>{w&&await Fe(e,w1,"uninstallFilter")({filter:w}),C()}})})():(()=>{let b=!0,y=()=>b=!1;return(async()=>{try{const v=(()=>{if(e.transport.type==="fallback"){const S=e.transport.transports.find(A=>A.config.type==="webSocket"||A.config.type==="ipc");return S?S.value:e.transport}return e.transport})(),w=s??(o?[o]:void 0);let x=[];w&&(x=[w.flatMap(A=>Oc({abi:[A],eventName:A.name,args:n}))],o&&(x=x[0]));const{unsubscribe:C}=await v.subscribe({params:["logs",{address:t,topics:x}],onData(S){var k;if(!b)return;const A=S.result;try{const{eventName:O,args:T}=ih({abi:w??[],data:A.data,topics:A.topics,strict:h}),B=Dr(A,{args:T,eventName:O});c([B])}catch(O){let T,B;if(O instanceof Aa||O instanceof t1){if(d)return;T=O.abiItem.name,B=(k=O.abiItem.inputs)==null?void 0:k.some(R=>!("name"in R&&R.name))}const _=Dr(A,{args:B?[]:{},eventName:T});c([_])}},onError(S){a==null||a(S)}});y=C,b||y()}catch(v){a==null||a(v)}})(),()=>y()})()}function JV(e,{batch:t=!0,onError:n,onTransactions:r,poll:o,pollingInterval:s=e.pollingInterval}){return(typeof o<"u"?o:e.transport.type!=="webSocket"&&e.transport.type!=="ipc")?(()=>{const l=Et(["watchPendingTransactions",e.uid,t,s]);return wo(l,{onTransactions:r,onError:n},u=>{let d;const f=Ic(async()=>{var h;try{if(!d)try{d=await Fe(e,ag,"createPendingTransactionFilter")({});return}catch(m){throw f(),m}const g=await Fe(e,b1,"getFilterChanges")({filter:d});if(g.length===0)return;if(t)u.onTransactions(g);else for(const m of g)u.onTransactions([m])}catch(g){(h=u.onError)==null||h.call(u,g)}},{emitOnBegin:!0,interval:s});return async()=>{d&&await Fe(e,w1,"uninstallFilter")({filter:d}),f()}})})():(()=>{let l=!0,u=()=>l=!1;return(async()=>{try{const{unsubscribe:d}=await e.transport.subscribe({params:["newPendingTransactions"],onData(f){if(!l)return;const h=f.result;r([h])},onError(f){n==null||n(f)}});u=d,l||u()}catch(d){n==null||n(d)}})(),()=>u()})()}function YV(e){return e.map(t=>({...t,value:BigInt(t.value)}))}function KV(e){return{...e,balance:e.balance?BigInt(e.balance):void 0,nonce:e.nonce?lr(e.nonce):void 0,storageProof:e.storageProof?YV(e.storageProof):void 0}}async function XV(e,{address:t,blockNumber:n,blockTag:r,storageKeys:o}){const s=r??"latest",i=n!==void 0?me(n):void 0,a=await e.request({method:"eth_getProof",params:[t,o,i||s]});return KV(a)}async function QV(e,{confirmations:t=1,hash:n,onReplaced:r,pollingInterval:o=e.pollingInterval,retryCount:s=6,retryDelay:i=({count:c})=>~~(1<<c)*200,timeout:a=18e4}){const c=Et(["waitForTransactionReceipt",e.uid,n]);let l,u,d,f=!1,h,g;const{promise:m,resolve:b,reject:y}=K7(),v=a?setTimeout(()=>{g(),h(),y(new SL({hash:n}))},a):void 0;return h=wo(c,{onReplaced:r,resolve:b,reject:y},w=>{g=Fe(e,_g,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:o,async onBlockNumber(x){const C=A=>{clearTimeout(v),g(),A(),h()};let S=x;if(!f)try{if(d){if(t>1&&(!d.blockNumber||S-d.blockNumber+1n<t))return;C(()=>w.resolve(d));return}if(l||(f=!0,await uu(async()=>{l=await Fe(e,lh,"getTransaction")({hash:n}),l.blockNumber&&(S=l.blockNumber)},{delay:i,retryCount:s}),f=!1),d=await Fe(e,kf,"getTransactionReceipt")({hash:n}),t>1&&(!d.blockNumber||S-d.blockNumber+1n<t))return;C(()=>w.resolve(d))}catch(A){if(A instanceof Q8||A instanceof e7){if(!l){f=!1;return}try{u=l,f=!0;const k=await uu(()=>Fe(e,er,"getBlock")({blockNumber:S,includeTransactions:!0}),{delay:i,retryCount:s,shouldRetry:({error:B})=>B instanceof n7});f=!1;const O=k.transactions.find(({from:B,nonce:_})=>B===u.from&&_===u.nonce);if(!O||(d=await Fe(e,kf,"getTransactionReceipt")({hash:O.hash}),t>1&&(!d.blockNumber||S-d.blockNumber+1n<t)))return;let T="replaced";O.to===u.to&&O.value===u.value&&O.input===u.input?T="repriced":O.from===O.to&&O.value===0n&&(T="cancelled"),C(()=>{var B;(B=w.onReplaced)==null||B.call(w,{reason:T,replacedTransaction:u,transaction:O,transactionReceipt:d}),w.resolve(d)})}catch(k){C(()=>w.reject(k))}}else C(()=>w.reject(A))}}})}),m}async function ez(e,t){const{abi:n,address:r,args:o,dataSuffix:s,functionName:i,...a}=t,c=a.account?Hn(a.account):e.account,l=mr({abi:n,args:o,functionName:i});try{const{data:u}=await Fe(e,Ac,"call")({batch:!1,data:`${l}${s?s.replace("0x",""):""}`,to:r,...a,account:c}),d=ps({abi:n,args:o,functionName:i,data:u||"0x"}),f=n.filter(h=>"name"in h&&h.name===t.functionName);return{result:d,request:{abi:f,address:r,args:o,dataSuffix:s,functionName:i,...a,account:c}}}catch(u){throw ci(u,{abi:n,address:r,args:o,docsPath:"/docs/contract/simulateContract",functionName:i,sender:c==null?void 0:c.address})}}class Ig extends P2{constructor(t,n){super(),this.finished=!1,this.destroyed=!1,DN(t);const r=n1(n);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const o=this.blockLen,s=new Uint8Array(o);s.set(r.length>o?t.create().update(r).digest():r);for(let i=0;i<s.length;i++)s[i]^=54;this.iHash.update(s),this.oHash=t.create();for(let i=0;i<s.length;i++)s[i]^=106;this.oHash.update(s),ii(s)}update(t){return si(this),this.iHash.update(t),this}digestInto(t){si(this),Dn(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:n,iHash:r,finished:o,destroyed:s,blockLen:i,outputLen:a}=this;return t=t,t.finished=o,t.destroyed=s,t.blockLen=i,t.outputLen=a,t.oHash=n._cloneInto(t.oHash),t.iHash=r._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const Pg=(e,t,n)=>new Ig(e,t).update(n).digest();Pg.create=(e,t)=>new Ig(e,t);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Yt=BigInt(0),Ht=BigInt(1),Ro=BigInt(2),tz=BigInt(3),Mg=BigInt(4),Rg=BigInt(5),Tg=BigInt(8);function gn(e,t){const n=e%t;return n>=Yt?n:t+n}function hn(e,t,n){let r=e;for(;t-- >Yt;)r*=r,r%=n;return r}function i9(e,t){if(e===Yt)throw new Error("invert: expected non-zero number");if(t<=Yt)throw new Error("invert: expected positive modulus, got "+t);let n=gn(e,t),r=t,o=Yt,s=Ht;for(;n!==Yt;){const a=r/n,c=r%n,l=o-s*a;r=n,n=c,o=s,s=l}if(r!==Ht)throw new Error("invert: does not exist");return gn(o,t)}function Ng(e,t){const n=(e.ORDER+Ht)/Mg,r=e.pow(t,n);if(!e.eql(e.sqr(r),t))throw new Error("Cannot find square root");return r}function nz(e,t){const n=(e.ORDER-Rg)/Tg,r=e.mul(t,Ro),o=e.pow(r,n),s=e.mul(t,o),i=e.mul(e.mul(s,Ro),o),a=e.mul(s,e.sub(i,e.ONE));if(!e.eql(e.sqr(a),t))throw new Error("Cannot find square root");return a}function rz(e){if(e<BigInt(3))throw new Error("sqrt is not defined for small field");let t=e-Ht,n=0;for(;t%Ro===Yt;)t/=Ro,n++;let r=Ro;const o=C1(e);for(;a9(o,r)===1;)if(r++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(n===1)return Ng;let s=o.pow(r,t);const i=(t+Ht)/Ro;return function(c,l){if(c.is0(l))return l;if(a9(c,l)!==1)throw new Error("Cannot find square root");let u=n,d=c.mul(c.ONE,s),f=c.pow(l,t),h=c.pow(l,i);for(;!c.eql(f,c.ONE);){if(c.is0(f))return c.ZERO;let g=1,m=c.sqr(f);for(;!c.eql(m,c.ONE);)if(g++,m=c.sqr(m),g===u)throw new Error("Cannot find square root");const b=Ht<<BigInt(u-g-1),y=c.pow(d,b);u=g,d=c.sqr(y),f=c.mul(f,d),h=c.mul(h,y)}return h}}function oz(e){return e%Mg===tz?Ng:e%Tg===Rg?nz:rz(e)}const sz=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function iz(e){const t={ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"},n=sz.reduce((r,o)=>(r[o]="function",r),t);return eh(e,n),e}function az(e,t,n){if(n<Yt)throw new Error("invalid exponent, negatives unsupported");if(n===Yt)return e.ONE;if(n===Ht)return t;let r=e.ONE,o=t;for(;n>Yt;)n&Ht&&(r=e.mul(r,o)),o=e.sqr(o),n>>=Ht;return r}function Lg(e,t,n=!1){const r=new Array(t.length).fill(n?e.ZERO:void 0),o=t.reduce((i,a,c)=>e.is0(a)?i:(r[c]=i,e.mul(i,a)),e.ONE),s=e.inv(o);return t.reduceRight((i,a,c)=>e.is0(a)?i:(r[c]=e.mul(i,r[c]),e.mul(i,a)),s),r}function a9(e,t){const n=(e.ORDER-Ht)/Ro,r=e.pow(t,n),o=e.eql(r,e.ONE),s=e.eql(r,e.ZERO),i=e.eql(r,e.neg(e.ONE));if(!o&&!s&&!i)throw new Error("invalid Legendre symbol result");return o?1:s?0:-1}function cz(e,t){t!==void 0&&Oa(t);const n=t!==void 0?t:e.toString(2).length,r=Math.ceil(n/8);return{nBitLength:n,nByteLength:r}}function C1(e,t,n=!1,r={}){if(e<=Yt)throw new Error("invalid field: expected ORDER > 0, got "+e);let o,s;if(typeof t=="object"&&t!=null){if(r.sqrt||n)throw new Error("cannot specify opts in two arguments");const u=t;u.BITS&&(o=u.BITS),u.sqrt&&(s=u.sqrt),typeof u.isLE=="boolean"&&(n=u.isLE)}else typeof t=="number"&&(o=t),r.sqrt&&(s=r.sqrt);const{nBitLength:i,nByteLength:a}=cz(e,o);if(a>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let c;const l=Object.freeze({ORDER:e,isLE:n,BITS:i,BYTES:a,MASK:p1(i),ZERO:Yt,ONE:Ht,create:u=>gn(u,e),isValid:u=>{if(typeof u!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof u);return Yt<=u&&u<e},is0:u=>u===Yt,isValidNot0:u=>!l.is0(u)&&l.isValid(u),isOdd:u=>(u&Ht)===Ht,neg:u=>gn(-u,e),eql:(u,d)=>u===d,sqr:u=>gn(u*u,e),add:(u,d)=>gn(u+d,e),sub:(u,d)=>gn(u-d,e),mul:(u,d)=>gn(u*d,e),pow:(u,d)=>az(l,u,d),div:(u,d)=>gn(u*i9(d,e),e),sqrN:u=>u*u,addN:(u,d)=>u+d,subN:(u,d)=>u-d,mulN:(u,d)=>u*d,inv:u=>i9(u,e),sqrt:s||(u=>(c||(c=oz(e)),c(l,u))),toBytes:u=>n?H7(u,a):Q2(u,a),fromBytes:u=>{if(u.length!==a)throw new Error("Field.fromBytes: expected "+a+" bytes, got "+u.length);return n?z7(u):h1(u)},invertBatch:u=>Lg(l,u),cmov:(u,d,f)=>f?d:u});return Object.freeze(l)}function Dg(e){if(typeof e!="bigint")throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function Fg(e){const t=Dg(e);return t+Math.ceil(t/2)}function lz(e,t,n=!1){const r=e.length,o=Dg(t),s=Fg(t);if(r<16||r<s||r>1024)throw new Error("expected "+s+"-1024 bytes of input, got "+r);const i=n?z7(e):h1(e),a=gn(i,t-Ht)+Ht;return n?H7(a,o):Q2(a,o)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const li=BigInt(0),To=BigInt(1);function ua(e,t){const n=t.negate();return e?n:t}function uz(e,t,n){const r=i=>i.pz,o=Lg(e.Fp,n.map(r));return n.map((i,a)=>i.toAffine(o[a])).map(e.fromAffine)}function Bg(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function vd(e,t){Bg(e,t);const n=Math.ceil(t/e)+1,r=2**(e-1),o=2**e,s=p1(e),i=BigInt(e);return{windows:n,windowSize:r,mask:s,maxNumber:o,shiftBy:i}}function c9(e,t,n){const{windowSize:r,mask:o,maxNumber:s,shiftBy:i}=n;let a=Number(e&o),c=e>>i;a>r&&(a-=s,c+=To);const l=t*r,u=l+Math.abs(a)-1,d=a===0,f=a<0,h=t%2!==0;return{nextN:c,offset:u,isZero:d,isNeg:f,isNegF:h,offsetF:l}}function dz(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((n,r)=>{if(!(n instanceof t))throw new Error("invalid point at index "+r)})}function fz(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((n,r)=>{if(!t.isValid(n))throw new Error("invalid scalar at index "+r)})}const wd=new WeakMap,Vg=new WeakMap;function Cd(e){return Vg.get(e)||1}function l9(e){if(e!==li)throw new Error("invalid wNAF")}function hz(e,t){return{constTimeNegate:ua,hasPrecomputes(n){return Cd(n)!==1},unsafeLadder(n,r,o=e.ZERO){let s=n;for(;r>li;)r&To&&(o=o.add(s)),s=s.double(),r>>=To;return o},precomputeWindow(n,r){const{windows:o,windowSize:s}=vd(r,t),i=[];let a=n,c=a;for(let l=0;l<o;l++){c=a,i.push(c);for(let u=1;u<s;u++)c=c.add(a),i.push(c);a=c.double()}return i},wNAF(n,r,o){let s=e.ZERO,i=e.BASE;const a=vd(n,t);for(let c=0;c<a.windows;c++){const{nextN:l,offset:u,isZero:d,isNeg:f,isNegF:h,offsetF:g}=c9(o,c,a);o=l,d?i=i.add(ua(h,r[g])):s=s.add(ua(f,r[u]))}return l9(o),{p:s,f:i}},wNAFUnsafe(n,r,o,s=e.ZERO){const i=vd(n,t);for(let a=0;a<i.windows&&o!==li;a++){const{nextN:c,offset:l,isZero:u,isNeg:d}=c9(o,a,i);if(o=c,!u){const f=r[l];s=s.add(d?f.negate():f)}}return l9(o),s},getPrecomputes(n,r,o){let s=wd.get(r);return s||(s=this.precomputeWindow(r,n),n!==1&&(typeof o=="function"&&(s=o(s)),wd.set(r,s))),s},wNAFCached(n,r,o){const s=Cd(n);return this.wNAF(s,this.getPrecomputes(s,n,o),r)},wNAFCachedUnsafe(n,r,o,s){const i=Cd(n);return i===1?this.unsafeLadder(n,r,s):this.wNAFUnsafe(i,this.getPrecomputes(i,n,o),r,s)},setWindowSize(n,r){Bg(r,t),Vg.set(n,r),wd.delete(n)}}}function pz(e,t,n,r){let o=t,s=e.ZERO,i=e.ZERO;for(;n>li||r>li;)n&To&&(s=s.add(o)),r&To&&(i=i.add(o)),o=o.double(),n>>=To,r>>=To;return{p1:s,p2:i}}function mz(e,t,n,r){dz(n,e),fz(r,t);const o=n.length,s=r.length;if(o!==s)throw new Error("arrays of points and scalars must have equal length");const i=e.ZERO,a=yF(BigInt(o));let c=1;a>12?c=a-3:a>4?c=a-2:a>0&&(c=2);const l=p1(c),u=new Array(Number(l)+1).fill(i),d=Math.floor((t.BITS-1)/c)*c;let f=i;for(let h=d;h>=0;h-=c){u.fill(i);for(let m=0;m<s;m++){const b=r[m],y=Number(b>>BigInt(h)&l);u[y]=u[y].add(n[m])}let g=i;for(let m=u.length-1,b=i;m>0;m--)b=b.add(u[m]),g=g.add(b);if(f=f.add(g),h!==0)for(let m=0;m<c;m++)f=f.double()}return f}function u9(e,t){if(t){if(t.ORDER!==e)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return iz(t),t}else return C1(e)}function gz(e,t,n={}){if(!t||typeof t!="object")throw new Error(`expected valid ${e} CURVE object`);for(const a of["p","n","h"]){const c=t[a];if(!(typeof c=="bigint"&&c>li))throw new Error(`CURVE.${a} must be positive bigint`)}const r=u9(t.p,n.Fp),o=u9(t.n,n.Fn),i=["Gx","Gy","a","b"];for(const a of i)if(!r.isValid(t[a]))throw new Error(`CURVE.${a} must be valid field element of CURVE.Fp`);return{Fp:r,Fn:o}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function d9(e){e.lowS!==void 0&&lu("lowS",e.lowS),e.prehash!==void 0&&lu("prehash",e.prehash)}class bz extends Error{constructor(t=""){super(t)}}const xr={Err:bz,_tlv:{encode:(e,t)=>{const{Err:n}=xr;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length&1)throw new n("tlv.encode: unpadded data");const r=t.length/2,o=sl(r);if(o.length/2&128)throw new n("tlv.encode: long form length too big");const s=r>127?sl(o.length/2|128):"";return sl(e)+s+o+t},decode(e,t){const{Err:n}=xr;let r=0;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length<2||t[r++]!==e)throw new n("tlv.decode: wrong tlv");const o=t[r++],s=!!(o&128);let i=0;if(!s)i=o;else{const c=o&127;if(!c)throw new n("tlv.decode(long): indefinite length not supported");if(c>4)throw new n("tlv.decode(long): byte length is too big");const l=t.subarray(r,r+c);if(l.length!==c)throw new n("tlv.decode: length bytes not complete");if(l[0]===0)throw new n("tlv.decode(long): zero leftmost byte");for(const u of l)i=i<<8|u;if(r+=c,i<128)throw new n("tlv.decode(long): not minimal encoding")}const a=t.subarray(r,r+i);if(a.length!==i)throw new n("tlv.decode: wrong value length");return{v:a,l:t.subarray(r+i)}}},_int:{encode(e){const{Err:t}=xr;if(e<da)throw new t("integer: negative integers are not allowed");let n=sl(e);if(Number.parseInt(n[0],16)&8&&(n="00"+n),n.length&1)throw new t("unexpected DER parsing assertion: unpadded hex");return n},decode(e){const{Err:t}=xr;if(e[0]&128)throw new t("invalid signature integer: negative");if(e[0]===0&&!(e[1]&128))throw new t("invalid signature integer: unnecessary leading zero");return h1(e)}},toSig(e){const{Err:t,_int:n,_tlv:r}=xr,o=pn("signature",e),{v:s,l:i}=r.decode(48,o);if(i.length)throw new t("invalid signature: left bytes after parsing");const{v:a,l:c}=r.decode(2,s),{v:l,l:u}=r.decode(2,c);if(u.length)throw new t("invalid signature: left bytes after parsing");return{r:n.decode(a),s:n.decode(l)}},hexFromSig(e){const{_tlv:t,_int:n}=xr,r=t.encode(2,n.encode(e.r)),o=t.encode(2,n.encode(e.s)),s=r+o;return t.encode(48,s)}},da=BigInt(0),fa=BigInt(1),yz=BigInt(2),al=BigInt(3),vz=BigInt(4);function wz(e,t,n){function r(o){const s=e.sqr(o),i=e.mul(s,o);return e.add(e.add(i,e.mul(o,t)),n)}return r}function zg(e,t,n){const{BYTES:r}=e;function o(s){let i;if(typeof s=="bigint")i=s;else{let a=pn("private key",s);if(t){if(!t.includes(a.length*2))throw new Error("invalid private key");const c=new Uint8Array(r);c.set(a,c.length-a.length),a=c}try{i=e.fromBytes(a)}catch{throw new Error(`invalid private key: expected ui8a of size ${r}, got ${typeof s}`)}}if(n&&(i=e.create(i)),!e.isValidNot0(i))throw new Error("invalid private key: out of range [1..N-1]");return i}return o}function Cz(e,t={}){const{Fp:n,Fn:r}=gz("weierstrass",e,t),{h:o,n:s}=e;eh(t,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});const{endo:i}=t;if(i&&(!n.is0(e.a)||typeof i.beta!="bigint"||typeof i.splitScalar!="function"))throw new Error('invalid endo: expected "beta": bigint and "splitScalar": function');function a(){if(!n.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}function c(k,O,T){const{x:B,y:_}=O.toAffine(),R=n.toBytes(B);if(lu("isCompressed",T),T){a();const E=!n.isOdd(_);return Po(Hg(E),R)}else return Po(Uint8Array.of(4),R,n.toBytes(_))}function l(k){Dn(k);const O=n.BYTES,T=O+1,B=2*O+1,_=k.length,R=k[0],E=k.subarray(1);if(_===T&&(R===2||R===3)){const V=n.fromBytes(E);if(!n.isValid(V))throw new Error("bad point: is not on curve, wrong x");const D=f(V);let H;try{H=n.sqrt(D)}catch(X){const j=X instanceof Error?": "+X.message:"";throw new Error("bad point: is not on curve, sqrt error"+j)}a();const N=n.isOdd(H);return(R&1)===1!==N&&(H=n.neg(H)),{x:V,y:H}}else if(_===B&&R===4){const V=n.fromBytes(E.subarray(O*0,O*1)),D=n.fromBytes(E.subarray(O*1,O*2));if(!h(V,D))throw new Error("bad point: is not on curve");return{x:V,y:D}}else throw new Error(`bad point: got length ${_}, expected compressed=${T} or uncompressed=${B}`)}const u=t.toBytes||c,d=t.fromBytes||l,f=wz(n,e.a,e.b);function h(k,O){const T=n.sqr(O),B=f(k);return n.eql(T,B)}if(!h(e.Gx,e.Gy))throw new Error("bad curve params: generator point");const g=n.mul(n.pow(e.a,al),vz),m=n.mul(n.sqr(e.b),BigInt(27));if(n.is0(n.add(g,m)))throw new Error("bad curve params: a or b");function b(k,O,T=!1){if(!n.isValid(O)||T&&n.is0(O))throw new Error(`bad point coordinate ${k}`);return O}function y(k){if(!(k instanceof C))throw new Error("ProjectivePoint expected")}const v=G3((k,O)=>{const{px:T,py:B,pz:_}=k;if(n.eql(_,n.ONE))return{x:T,y:B};const R=k.is0();O==null&&(O=R?n.ONE:n.inv(_));const E=n.mul(T,O),V=n.mul(B,O),D=n.mul(_,O);if(R)return{x:n.ZERO,y:n.ZERO};if(!n.eql(D,n.ONE))throw new Error("invZ was invalid");return{x:E,y:V}}),w=G3(k=>{if(k.is0()){if(t.allowInfinityPoint&&!n.is0(k.py))return;throw new Error("bad point: ZERO")}const{x:O,y:T}=k.toAffine();if(!n.isValid(O)||!n.isValid(T))throw new Error("bad point: x or y not field elements");if(!h(O,T))throw new Error("bad point: equation left != right");if(!k.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function x(k,O,T,B,_){return T=new C(n.mul(T.px,k),T.py,T.pz),O=ua(B,O),T=ua(_,T),O.add(T)}class C{constructor(O,T,B){this.px=b("x",O),this.py=b("y",T,!0),this.pz=b("z",B),Object.freeze(this)}static fromAffine(O){const{x:T,y:B}=O||{};if(!O||!n.isValid(T)||!n.isValid(B))throw new Error("invalid affine point");if(O instanceof C)throw new Error("projective point not allowed");return n.is0(T)&&n.is0(B)?C.ZERO:new C(T,B,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(O){return uz(C,"pz",O)}static fromBytes(O){return Dn(O),C.fromHex(O)}static fromHex(O){const T=C.fromAffine(d(pn("pointHex",O)));return T.assertValidity(),T}static fromPrivateKey(O){const T=zg(r,t.allowedPrivateKeyLengths,t.wrapPrivateKey);return C.BASE.multiply(T(O))}static msm(O,T){return mz(C,r,O,T)}precompute(O=8,T=!0){return A.setWindowSize(this,O),T||this.multiply(al),this}_setWindowSize(O){this.precompute(O)}assertValidity(){w(this)}hasEvenY(){const{y:O}=this.toAffine();if(!n.isOdd)throw new Error("Field doesn't support isOdd");return!n.isOdd(O)}equals(O){y(O);const{px:T,py:B,pz:_}=this,{px:R,py:E,pz:V}=O,D=n.eql(n.mul(T,V),n.mul(R,_)),H=n.eql(n.mul(B,V),n.mul(E,_));return D&&H}negate(){return new C(this.px,n.neg(this.py),this.pz)}double(){const{a:O,b:T}=e,B=n.mul(T,al),{px:_,py:R,pz:E}=this;let V=n.ZERO,D=n.ZERO,H=n.ZERO,N=n.mul(_,_),F=n.mul(R,R),X=n.mul(E,E),j=n.mul(_,R);return j=n.add(j,j),H=n.mul(_,E),H=n.add(H,H),V=n.mul(O,H),D=n.mul(B,X),D=n.add(V,D),V=n.sub(F,D),D=n.add(F,D),D=n.mul(V,D),V=n.mul(j,V),H=n.mul(B,H),X=n.mul(O,X),j=n.sub(N,X),j=n.mul(O,j),j=n.add(j,H),H=n.add(N,N),N=n.add(H,N),N=n.add(N,X),N=n.mul(N,j),D=n.add(D,N),X=n.mul(R,E),X=n.add(X,X),N=n.mul(X,j),V=n.sub(V,N),H=n.mul(X,F),H=n.add(H,H),H=n.add(H,H),new C(V,D,H)}add(O){y(O);const{px:T,py:B,pz:_}=this,{px:R,py:E,pz:V}=O;let D=n.ZERO,H=n.ZERO,N=n.ZERO;const F=e.a,X=n.mul(e.b,al);let j=n.mul(T,R),M=n.mul(B,E),Y=n.mul(_,V),G=n.add(T,B),W=n.add(R,E);G=n.mul(G,W),W=n.add(j,M),G=n.sub(G,W),W=n.add(T,_);let re=n.add(R,V);return W=n.mul(W,re),re=n.add(j,Y),W=n.sub(W,re),re=n.add(B,_),D=n.add(E,V),re=n.mul(re,D),D=n.add(M,Y),re=n.sub(re,D),N=n.mul(F,W),D=n.mul(X,Y),N=n.add(D,N),D=n.sub(M,N),N=n.add(M,N),H=n.mul(D,N),M=n.add(j,j),M=n.add(M,j),Y=n.mul(F,Y),W=n.mul(X,W),M=n.add(M,Y),Y=n.sub(j,Y),Y=n.mul(F,Y),W=n.add(W,Y),j=n.mul(M,W),H=n.add(H,j),j=n.mul(re,W),D=n.mul(G,D),D=n.sub(D,j),j=n.mul(G,M),N=n.mul(re,N),N=n.add(N,j),new C(D,H,N)}subtract(O){return this.add(O.negate())}is0(){return this.equals(C.ZERO)}multiply(O){const{endo:T}=t;if(!r.isValidNot0(O))throw new Error("invalid scalar: out of range");let B,_;const R=E=>A.wNAFCached(this,E,C.normalizeZ);if(T){const{k1neg:E,k1:V,k2neg:D,k2:H}=T.splitScalar(O),{p:N,f:F}=R(V),{p:X,f:j}=R(H);_=F.add(j),B=x(T.beta,N,X,E,D)}else{const{p:E,f:V}=R(O);B=E,_=V}return C.normalizeZ([B,_])[0]}multiplyUnsafe(O){const{endo:T}=t,B=this;if(!r.isValid(O))throw new Error("invalid scalar: out of range");if(O===da||B.is0())return C.ZERO;if(O===fa)return B;if(A.hasPrecomputes(this))return this.multiply(O);if(T){const{k1neg:_,k1:R,k2neg:E,k2:V}=T.splitScalar(O),{p1:D,p2:H}=pz(C,B,R,V);return x(T.beta,D,H,_,E)}else return A.wNAFCachedUnsafe(B,O)}multiplyAndAddUnsafe(O,T,B){const _=this.multiplyUnsafe(T).add(O.multiplyUnsafe(B));return _.is0()?void 0:_}toAffine(O){return v(this,O)}isTorsionFree(){const{isTorsionFree:O}=t;return o===fa?!0:O?O(C,this):A.wNAFCachedUnsafe(this,s).is0()}clearCofactor(){const{clearCofactor:O}=t;return o===fa?this:O?O(C,this):this.multiplyUnsafe(o)}toBytes(O=!0){return lu("isCompressed",O),this.assertValidity(),u(C,this,O)}toRawBytes(O=!0){return this.toBytes(O)}toHex(O=!0){return ka(this.toBytes(O))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}}C.BASE=new C(e.Gx,e.Gy,n.ONE),C.ZERO=new C(n.ZERO,n.ONE,n.ZERO),C.Fp=n,C.Fn=r;const S=r.BITS,A=hz(C,t.endo?Math.ceil(S/2):S);return C}function Hg(e){return Uint8Array.of(e?2:3)}function xz(e,t,n={}){eh(t,{hash:"function"},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});const r=t.randomBytes||$N,o=t.hmac||((B,..._)=>Pg(t.hash,B,Po(..._))),{Fp:s,Fn:i}=e,{ORDER:a,BITS:c}=i;function l(B){const _=a>>fa;return B>_}function u(B){return l(B)?i.neg(B):B}function d(B,_){if(!i.isValidNot0(_))throw new Error(`invalid signature ${B}: out of range 1..CURVE.n`)}class f{constructor(_,R,E){d("r",_),d("s",R),this.r=_,this.s=R,E!=null&&(this.recovery=E),Object.freeze(this)}static fromCompact(_){const R=i.BYTES,E=pn("compactSignature",_,R*2);return new f(i.fromBytes(E.subarray(0,R)),i.fromBytes(E.subarray(R,R*2)))}static fromDER(_){const{r:R,s:E}=xr.toSig(pn("DER",_));return new f(R,E)}assertValidity(){}addRecoveryBit(_){return new f(this.r,this.s,_)}recoverPublicKey(_){const R=s.ORDER,{r:E,s:V,recovery:D}=this;if(D==null||![0,1,2,3].includes(D))throw new Error("recovery id invalid");if(a*yz<R&&D>1)throw new Error("recovery id is ambiguous for h>1 curve");const N=D===2||D===3?E+a:E;if(!s.isValid(N))throw new Error("recovery id 2 or 3 invalid");const F=s.toBytes(N),X=e.fromHex(Po(Hg((D&1)===0),F)),j=i.inv(N),M=w(pn("msgHash",_)),Y=i.create(-M*j),G=i.create(V*j),W=e.BASE.multiplyUnsafe(Y).add(X.multiplyUnsafe(G));if(W.is0())throw new Error("point at infinify");return W.assertValidity(),W}hasHighS(){return l(this.s)}normalizeS(){return this.hasHighS()?new f(this.r,i.neg(this.s),this.recovery):this}toBytes(_){if(_==="compact")return Po(i.toBytes(this.r),i.toBytes(this.s));if(_==="der")return I2(xr.hexFromSig(this));throw new Error("invalid format")}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return ka(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return ka(this.toBytes("compact"))}}const h=zg(i,n.allowedPrivateKeyLengths,n.wrapPrivateKey),g={isValidPrivateKey(B){try{return h(B),!0}catch{return!1}},normPrivateKeyToScalar:h,randomPrivateKey:()=>{const B=a;return lz(r(Fg(B)),B)},precompute(B=8,_=e.BASE){return _.precompute(B,!1)}};function m(B,_=!0){return e.fromPrivateKey(B).toBytes(_)}function b(B){if(typeof B=="bigint")return!1;if(B instanceof e)return!0;const R=pn("key",B).length,E=s.BYTES,V=E+1,D=2*E+1;if(!(n.allowedPrivateKeyLengths||i.BYTES===V))return R===V||R===D}function y(B,_,R=!0){if(b(B)===!0)throw new Error("first arg must be private key");if(b(_)===!1)throw new Error("second arg must be public key");return e.fromHex(_).multiply(h(B)).toBytes(R)}const v=t.bits2int||function(B){if(B.length>8192)throw new Error("input is too large");const _=h1(B),R=B.length*8-c;return R>0?_>>BigInt(R):_},w=t.bits2int_modN||function(B){return i.create(v(B))},x=p1(c);function C(B){return bF("num < 2^"+c,B,da,x),i.toBytes(B)}function S(B,_,R=A){if(["recovered","canonical"].some(G=>G in R))throw new Error("sign() legacy options not supported");const{hash:E}=t;let{lowS:V,prehash:D,extraEntropy:H}=R;V==null&&(V=!0),B=pn("msgHash",B),d9(R),D&&(B=pn("prehashed msgHash",E(B)));const N=w(B),F=h(_),X=[C(F),C(N)];if(H!=null&&H!==!1){const G=H===!0?r(s.BYTES):H;X.push(pn("extraEntropy",G))}const j=Po(...X),M=N;function Y(G){const W=v(G);if(!i.isValidNot0(W))return;const re=i.inv(W),ee=e.BASE.multiply(W).toAffine(),ie=i.create(ee.x);if(ie===da)return;const ce=i.create(re*i.create(M+ie*F));if(ce===da)return;let be=(ee.x===ie?0:2)|Number(ee.y&fa),Oe=ce;return V&&l(ce)&&(Oe=u(ce),be^=1),new f(ie,Oe,be)}return{seed:j,k2sig:Y}}const A={lowS:t.lowS,prehash:!1},k={lowS:t.lowS,prehash:!1};function O(B,_,R=A){const{seed:E,k2sig:V}=S(B,_,R);return vF(t.hash.outputLen,i.BYTES,o)(E,V)}e.BASE.precompute(8);function T(B,_,R,E=k){const V=B;_=pn("msgHash",_),R=pn("publicKey",R),d9(E);const{lowS:D,prehash:H,format:N}=E;if("strict"in E)throw new Error("options.strict was renamed to lowS");if(N!==void 0&&!["compact","der","js"].includes(N))throw new Error('format must be "compact", "der" or "js"');const F=typeof V=="string"||_2(V),X=!F&&!N&&typeof V=="object"&&V!==null&&typeof V.r=="bigint"&&typeof V.s=="bigint";if(!F&&!X)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let j,M;try{if(X)if(N===void 0||N==="js")j=new f(V.r,V.s);else throw new Error("invalid format");if(F){try{N!=="compact"&&(j=f.fromDER(V))}catch(Oe){if(!(Oe instanceof xr.Err))throw Oe}!j&&N!=="der"&&(j=f.fromCompact(V))}M=e.fromHex(R)}catch{return!1}if(!j||D&&j.hasHighS())return!1;H&&(_=t.hash(_));const{r:Y,s:G}=j,W=w(_),re=i.inv(G),ee=i.create(W*re),ie=i.create(Y*re),ce=e.BASE.multiplyUnsafe(ee).add(M.multiplyUnsafe(ie));return ce.is0()?!1:i.create(ce.x)===Y}return Object.freeze({getPublicKey:m,getSharedSecret:y,sign:O,verify:T,utils:g,Point:e,Signature:f})}function Sz(e){const t={a:e.a,b:e.b,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},n=e.Fp,r=C1(t.n,e.nBitLength),o={Fp:n,Fn:r,allowedPrivateKeyLengths:e.allowedPrivateKeyLengths,allowInfinityPoint:e.allowInfinityPoint,endo:e.endo,wrapPrivateKey:e.wrapPrivateKey,isTorsionFree:e.isTorsionFree,clearCofactor:e.clearCofactor,fromBytes:e.fromBytes,toBytes:e.toBytes};return{CURVE:t,curveOpts:o}}function Ez(e){const{CURVE:t,curveOpts:n}=Sz(e),r={hash:e.hash,hmac:e.hmac,randomBytes:e.randomBytes,lowS:e.lowS,bits2int:e.bits2int,bits2int_modN:e.bits2int_modN};return{CURVE:t,curveOpts:n,ecdsaOpts:r}}function Az(e,t){return Object.assign({},t,{ProjectivePoint:t.Point,CURVE:e})}function Oz(e){const{CURVE:t,curveOpts:n,ecdsaOpts:r}=Ez(e),o=Cz(t,n),s=xz(o,r,n);return Az(e,s)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function kz(e,t){const n=r=>Oz({...e,hash:r});return{...n(t),create:n}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const du={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")};BigInt(0);const _z=BigInt(1),Lf=BigInt(2),f9=(e,t)=>(e+t/Lf)/t;function Iz(e){const t=du.p,n=BigInt(3),r=BigInt(6),o=BigInt(11),s=BigInt(22),i=BigInt(23),a=BigInt(44),c=BigInt(88),l=e*e*e%t,u=l*l*e%t,d=hn(u,n,t)*u%t,f=hn(d,n,t)*u%t,h=hn(f,Lf,t)*l%t,g=hn(h,o,t)*h%t,m=hn(g,s,t)*g%t,b=hn(m,a,t)*m%t,y=hn(b,c,t)*b%t,v=hn(y,a,t)*m%t,w=hn(v,n,t)*u%t,x=hn(w,i,t)*g%t,C=hn(x,r,t)*l%t,S=hn(C,Lf,t);if(!Df.eql(Df.sqr(S),e))throw new Error("Cannot find square root");return S}const Df=C1(du.p,void 0,void 0,{sqrt:Iz}),jg=kz({...du,Fp:Df,lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=du.n,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-_z*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),o=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),s=n,i=BigInt("0x100000000000000000000000000000000"),a=f9(s*e,t),c=f9(-r*e,t);let l=gn(e-a*n-c*o,t),u=gn(-a*r-c*s,t);const d=l>i,f=u>i;if(d&&(l=t-l),f&&(u=t-u),l>i||u>i)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:d,k1:l,k2neg:f,k2:u}}}},a7),Pz=Object.freeze(Object.defineProperty({__proto__:null,secp256k1:jg},Symbol.toStringTag,{value:"Module"}));function Mz({r:e,s:t,to:n="hex",v:r,yParity:o}){const s=(()=>{if(o===0||o===1)return o;if(r&&(r===27n||r===28n||r>=35n))return r%2n===0n?1:0;throw new Error("Invalid `v` or `yParity` value")})(),i=`0x${new jg.Signature(Bt(e),Bt(t)).toCompactHex()}${s===0?"1b":"1c"}`;return n==="hex"?i:Tn(i)}async function hh(e,t){var d,f,h;const{address:n,factory:r,factoryData:o,hash:s,signature:i,universalSignatureVerifierAddress:a=(h=(f=(d=e.chain)==null?void 0:d.contracts)==null?void 0:f.universalSignatureVerifier)==null?void 0:h.address,...c}=t,l=Rn(i)?i:typeof i=="object"&&"r"in i&&"s"in i?Mz(i):vt(i),u=await(async()=>!r&&!o||jV(l)?l:$V({address:r,data:o,signature:l}))();try{const g=a?{to:a,data:mr({abi:H3,functionName:"isValidSig",args:[n,s,u]}),...c}:{data:L2({abi:H3,args:[n,s,u],bytecode:ZF}),...c},{data:m}=await Fe(e,Ac,"call")(g);return hN(m??"0x0")}catch(g){try{if(g1(ra(n),await W8({hash:s,signature:i})))return!0}catch{}if(g instanceof F7)return!1;throw g}}async function Rz(e,{address:t,message:n,factory:r,factoryData:o,signature:s,...i}){const a=Og(n);return hh(e,{address:t,factory:r,factoryData:o,hash:a,signature:s,...i})}async function Tz(e,t){const{address:n,factory:r,factoryData:o,signature:s,message:i,primaryType:a,types:c,domain:l,...u}=t,d=xV({message:i,primaryType:a,types:c,domain:l});return hh(e,{address:n,factory:r,factoryData:o,hash:d,signature:s,...u})}function Nz(e,t){const{abi:n,address:r,args:o,batch:s=!0,eventName:i,fromBlock:a,onError:c,onLogs:l,poll:u,pollingInterval:d=e.pollingInterval,strict:f}=t;return(typeof u<"u"?u:typeof a=="bigint"?!0:!(e.transport.type==="webSocket"||e.transport.type==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].config.type==="webSocket"||e.transport.transports[0].config.type==="ipc")))?(()=>{const b=f??!1,y=Et(["watchContractEvent",r,o,s,e.uid,i,d,b,a]);return wo(y,{onLogs:l,onError:c},v=>{let w;a!==void 0&&(w=a-1n);let x,C=!1;const S=Ic(async()=>{var A;if(!C){try{x=await Fe(e,sg,"createContractEventFilter")({abi:n,address:r,args:o,eventName:i,strict:b,fromBlock:a})}catch{}C=!0;return}try{let k;if(x)k=await Fe(e,b1,"getFilterChanges")({filter:x});else{const O=await Fe(e,kc,"getBlockNumber")({});w&&w<O?k=await Fe(e,cg,"getContractEvents")({abi:n,address:r,args:o,eventName:i,fromBlock:w+1n,toBlock:O,strict:b}):k=[],w=O}if(k.length===0)return;if(s)v.onLogs(k);else for(const O of k)v.onLogs([O])}catch(k){x&&k instanceof ns&&(C=!1),(A=v.onError)==null||A.call(v,k)}},{emitOnBegin:!0,interval:d});return async()=>{x&&await Fe(e,w1,"uninstallFilter")({filter:x}),S()}})})():(()=>{const b=f??!1,y=Et(["watchContractEvent",r,o,s,e.uid,i,d,b]);let v=!0,w=()=>v=!1;return wo(y,{onLogs:l,onError:c},x=>((async()=>{try{const C=(()=>{if(e.transport.type==="fallback"){const k=e.transport.transports.find(O=>O.config.type==="webSocket"||O.config.type==="ipc");return k?k.value:e.transport}return e.transport})(),S=i?Oc({abi:n,eventName:i,args:o}):[],{unsubscribe:A}=await C.subscribe({params:["logs",{address:r,topics:S}],onData(k){var T;if(!v)return;const O=k.result;try{const{eventName:B,args:_}=ih({abi:n,data:O.data,topics:O.topics,strict:f}),R=Dr(O,{args:_,eventName:B});x.onLogs([R])}catch(B){let _,R;if(B instanceof Aa||B instanceof t1){if(f)return;_=B.abiItem.name,R=(T=B.abiItem.inputs)==null?void 0:T.some(V=>!("name"in V&&V.name))}const E=Dr(O,{args:R?[]:{},eventName:_});x.onLogs([E])}},onError(k){var O;(O=x.onError)==null||O.call(x,k)}});w=A,v||w()}catch(C){c==null||c(C)}})(),()=>w()))})()}function $g(e,t,n){const r=e[t.name];if(typeof r=="function")return r;const o=e[n];return typeof o=="function"?o:s=>t(e,s)}const Pl="2.17.3",Lz=()=>`@wagmi/core@${Pl}`;var Ug=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},fu,Zg;let ph=class Ff extends Error{get docsBaseUrl(){return"https://wagmi.sh/core"}get version(){return Lz()}constructor(t,n={}){var s;super(),fu.add(this),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiCoreError"});const r=n.cause instanceof Ff?n.cause.details:(s=n.cause)!=null&&s.message?n.cause.message:n.details,o=n.cause instanceof Ff&&n.cause.docsPath||n.docsPath;this.message=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...o?[`Docs: ${this.docsBaseUrl}${o}.html${n.docsSlug?`#${n.docsSlug}`:""}`]:[],...r?[`Details: ${r}`]:[],`Version: ${this.version}`].join(`
99
- `),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=o,this.metaMessages=n.metaMessages,this.shortMessage=t}walk(t){return Ug(this,fu,"m",Zg).call(this,this,t)}};fu=new WeakSet,Zg=function e(t,n){return n!=null&&n(t)?t:t.cause?Ug(this,fu,"m",e).call(this,t.cause,n):t};class Bf extends ph{constructor(){super("Chain not configured."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotConfiguredError"})}}const Vf=256;let cl=Vf,ll;function Wg(e=11){if(!ll||cl+e>Vf*2){ll="",cl=0;for(let t=0;t<Vf;t++)ll+=(256+Math.random()*256|0).toString(16).substring(1)}return ll.substring(cl,cl+++e)}function Gg(e){const{batch:t,chain:n,ccipRead:r,key:o="base",name:s="Base Client",type:i="base"}=e,a=(n==null?void 0:n.blockTime)??12e3,c=Math.min(Math.max(Math.floor(a/2),500),4e3),l=e.pollingInterval??c,u=e.cacheTime??l,d=e.account?Hn(e.account):void 0,{config:f,request:h,value:g}=e.transport({chain:n,pollingInterval:l}),m={...f,...g},b={account:d,batch:t,cacheTime:u,ccipRead:r,chain:n,key:o,name:s,pollingInterval:l,request:h,transport:m,type:i,uid:Wg()};function y(v){return w=>{const x=w(v);for(const S in b)delete x[S];const C={...v,...x};return Object.assign(C,{extend:y(C)})}}return Object.assign(b,{extend:y(b)})}function Dz({key:e,methods:t,name:n,request:r,retryCount:o=3,retryDelay:s=150,timeout:i,type:a},c){const l=Wg();return{config:{key:e,methods:t,name:n,request:r,retryCount:o,retryDelay:s,timeout:i,type:a},request:lV(r,{methods:t,retryCount:o,retryDelay:s,uid:l}),value:c}}class Fz extends ae{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}function Bz(e,t={}){const{batch:n,fetchOptions:r,key:o="http",methods:s,name:i="HTTP JSON-RPC",onFetchRequest:a,onFetchResponse:c,retryDelay:l,raw:u}=t;return({chain:d,retryCount:f,timeout:h})=>{const{batchSize:g=1e3,wait:m=0}=typeof n=="object"?n:{},b=t.retryCount??f,y=h??t.timeout??1e4,v=d==null?void 0:d.rpcUrls.default.http[0];if(!v)throw new Fz;const w=yV(v,{fetchOptions:r,onRequest:a,onResponse:c,timeout:y});return Dz({key:o,methods:s,name:i,async request({method:x,params:C}){const S={method:x,params:C},{schedule:A}=X7({id:v,wait:m,shouldSplitBatch(B){return B.length>g},fn:B=>w.request({body:B}),sort:(B,_)=>B.id-_.id}),k=async B=>n?A(B):[await w.request({body:B})],[{error:O,result:T}]=await k(S);if(u)return{error:O,result:T};if(O)throw new F2({body:S,error:O,url:v});return T},retryCount:b,retryDelay:l,timeout:y,type:"http"},{fetchOptions:r,url:v})}}function Vz(e){var d,f,h;const{scheme:t,statement:n,...r}=((d=e.match(zz))==null?void 0:d.groups)??{},{chainId:o,expirationTime:s,issuedAt:i,notBefore:a,requestId:c,...l}=((f=e.match(Hz))==null?void 0:f.groups)??{},u=(h=e.split("Resources:")[1])==null?void 0:h.split(`
100
- - `).slice(1);return{...r,...l,...o?{chainId:Number(o)}:{},...s?{expirationTime:new Date(s)}:{},...i?{issuedAt:new Date(i)}:{},...a?{notBefore:new Date(a)}:{},...c?{requestId:c}:{},...u?{resources:u}:{},...t?{scheme:t}:{},...n?{statement:n}:{}}}const zz=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/,Hz=/(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/;function jz(e){const{address:t,domain:n,message:r,nonce:o,scheme:s,time:i=new Date}=e;if(n&&r.domain!==n||o&&r.nonce!==o||s&&r.scheme!==s||r.expirationTime&&i>=r.expirationTime||r.notBefore&&i<r.notBefore)return!1;try{if(!r.address||!At(r.address,{strict:!1})||t&&!g1(r.address,t))return!1}catch{return!1}return!0}async function $z(e,t){const{address:n,domain:r,message:o,nonce:s,scheme:i,signature:a,time:c=new Date,...l}=t,u=Vz(o);if(!u.address||!jz({address:n,domain:r,message:u,nonce:s,scheme:i,time:c}))return!1;const f=Og(o);return hh(e,{address:u.address,hash:f,signature:a,...l})}function Uz(e){return{call:t=>Ac(e,t),createAccessList:t=>og(e,t),createBlockFilter:()=>dB(e),createContractEventFilter:t=>sg(e,t),createEventFilter:t=>ig(e,t),createPendingTransactionFilter:()=>ag(e),estimateContractGas:t=>hB(e,t),estimateGas:t=>Z2(e,t),getBalance:t=>s7(e,t),getBlobBaseFee:()=>pB(e),getBlock:t=>er(e,t),getBlockNumber:t=>kc(e,t),getBlockTransactionCount:t=>wB(e,t),getBytecode:t=>t9(e,t),getChainId:()=>t7(e),getCode:t=>t9(e,t),getContractEvents:t=>cg(e,t),getEip712Domain:t=>EB(e,t),getEnsAddress:t=>KF(e,t),getEnsAvatar:t=>ng(e,t),getEnsName:t=>rg(e,t),getEnsResolver:t=>uB(e,t),getEnsText:t=>tg(e,t),getFeeHistory:t=>kB(e,t),estimateFeesPerGas:t=>LL(e,t),getFilterChanges:t=>b1(e,t),getFilterLogs:t=>_B(e,t),getGasPrice:()=>$2(e),getLogs:t=>ch(e,t),getProof:t=>XV(e,t),estimateMaxPriorityFeePerGas:t=>NL(e,t),getStorageAt:t=>IB(e,t),getTransaction:t=>lh(e,t),getTransactionConfirmations:t=>PB(e,t),getTransactionCount:t=>i7(e,t),getTransactionReceipt:t=>kf(e,t),multicall:t=>TB(e,t),prepareTransactionRequest:t=>m7(e,t),readContract:t=>Lr(e,t),sendRawTransaction:t=>nD(e,t),simulate:t=>_f(e,t),simulateBlocks:t=>_f(e,t),simulateCalls:t=>ZV(e,t),simulateContract:t=>ez(e,t),verifyMessage:t=>Rz(e,t),verifySiweMessage:t=>$z(e,t),verifyTypedData:t=>Tz(e,t),uninstallFilter:t=>w1(e,t),waitForTransactionReceipt:t=>QV(e,t),watchBlocks:t=>GV(e,t),watchBlockNumber:t=>_g(e,t),watchContractEvent:t=>Nz(e,t),watchEvent:t=>qV(e,t),watchPendingTransactions:t=>JV(e,t)}}function Eq(e){const{key:t="public",name:n="Public Client"}=e;return Gg({...e,key:t,name:n,type:"publicClient"}).extend(Uz)}function h9(e){return e.state.chainId}function Zz(e,t){const{chainId:n,...r}=t,o=e.getClient({chainId:n});return $g(o,ng,"getEnsAvatar")(r)}function Wz(e,t){const{chainId:n,...r}=t,o=e.getClient({chainId:n});return $g(o,rg,"getEnsName")(r)}let xd=!1;async function Gz(e,t={}){var l,u;if(xd)return[];xd=!0,e.setState(d=>({...d,status:d.current?"reconnecting":"connecting"}));const n=[];if((l=t.connectors)!=null&&l.length)for(const d of t.connectors){let f;typeof d=="function"?f=e._internal.connectors.setup(d):f=d,n.push(f)}else n.push(...e.connectors);let r;try{r=await((u=e.storage)==null?void 0:u.getItem("recentConnectorId"))}catch{}const o={};for(const[,d]of e.state.connections)o[d.connector.id]=1;r&&(o[r]=0);const s=Object.keys(o).length>0?[...n].sort((d,f)=>(o[d.id]??10)-(o[f.id]??10)):n;let i=!1;const a=[],c=[];for(const d of s){const f=await d.getProvider().catch(()=>{});if(!f||c.some(m=>m===f)||!await d.isAuthorized())continue;const g=await d.connect({isReconnecting:!0}).catch(()=>null);g&&(d.emitter.off("connect",e._internal.events.connect),d.emitter.on("change",e._internal.events.change),d.emitter.on("disconnect",e._internal.events.disconnect),e.setState(m=>{const b=new Map(i?m.connections:new Map).set(d.uid,{accounts:g.accounts,chainId:g.chainId,connector:d});return{...m,current:i?m.current:d.uid,connections:b}}),a.push({accounts:g.accounts,chainId:g.chainId,connector:d}),c.push(f),i=!0)}return(e.state.status==="reconnecting"||e.state.status==="connecting")&&(i?e.setState(d=>({...d,status:"connected"})):e.setState(d=>({...d,connections:new Map,current:null,status:"disconnected"}))),xd=!1,a}class Os extends ph{constructor(){super("Provider not found."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderNotFoundError"})}}function qz(e,t){const{onChange:n}=t;return e.subscribe(r=>r.chainId,n)}mh.type="injected";function mh(e={}){const{shimDisconnect:t=!0,unstable_shimAsyncInject:n}=e;function r(){const c=e.target;if(typeof c=="function"){const l=c();if(l)return l}return typeof c=="object"?c:typeof c=="string"?{...Jz[c]??{id:c,name:`${c[0].toUpperCase()}${c.slice(1)}`,provider:`is${c[0].toUpperCase()}${c.slice(1)}`}}:{id:"injected",name:"Injected",provider(l){return l==null?void 0:l.ethereum}}}let o,s,i,a;return c=>({get icon(){return r().icon},get id(){return r().id},get name(){return r().name},get supportsSimulation(){return!0},type:mh.type,async setup(){const l=await this.getProvider();l!=null&&l.on&&e.target&&(i||(i=this.onConnect.bind(this),l.on("connect",i)),o||(o=this.onAccountsChanged.bind(this),l.on("accountsChanged",o)))},async connect({chainId:l,isReconnecting:u}={}){var h,g,m,b,y,v;const d=await this.getProvider();if(!d)throw new Os;let f=[];if(u)f=await this.getAccounts().catch(()=>[]);else if(t)try{f=(b=(m=(g=(h=(await d.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]}))[0])==null?void 0:h.caveats)==null?void 0:g[0])==null?void 0:m.value)==null?void 0:b.map(x=>ra(x)),f.length>0&&(f=await this.getAccounts())}catch(w){const x=w;if(x.code===Tt.code)throw new Tt(x);if(x.code===po.code)throw x}try{!(f!=null&&f.length)&&!u&&(f=(await d.request({method:"eth_requestAccounts"})).map(C=>ra(C))),i&&(d.removeListener("connect",i),i=void 0),o||(o=this.onAccountsChanged.bind(this),d.on("accountsChanged",o)),s||(s=this.onChainChanged.bind(this),d.on("chainChanged",s)),a||(a=this.onDisconnect.bind(this),d.on("disconnect",a));let w=await this.getChainId();if(l&&w!==l){const x=await this.switchChain({chainId:l}).catch(C=>{if(C.code===Tt.code)throw C;return{id:w}});w=(x==null?void 0:x.id)??w}return t&&await((y=c.storage)==null?void 0:y.removeItem(`${this.id}.disconnected`)),e.target||await((v=c.storage)==null?void 0:v.setItem("injected.connected",!0)),{accounts:f,chainId:w}}catch(w){const x=w;throw x.code===Tt.code?new Tt(x):x.code===po.code?new po(x):x}},async disconnect(){var u,d;const l=await this.getProvider();if(!l)throw new Os;s&&(l.removeListener("chainChanged",s),s=void 0),a&&(l.removeListener("disconnect",a),a=void 0),i||(i=this.onConnect.bind(this),l.on("connect",i));try{await Cg(()=>l.request({method:"wallet_revokePermissions",params:[{eth_accounts:{}}]}),{timeout:100})}catch{}t&&await((u=c.storage)==null?void 0:u.setItem(`${this.id}.disconnected`,!0)),e.target||await((d=c.storage)==null?void 0:d.removeItem("injected.connected"))},async getAccounts(){const l=await this.getProvider();if(!l)throw new Os;return(await l.request({method:"eth_accounts"})).map(d=>ra(d))},async getChainId(){const l=await this.getProvider();if(!l)throw new Os;const u=await l.request({method:"eth_chainId"});return Number(u)},async getProvider(){if(typeof window>"u")return;let l;const u=r();return typeof u.provider=="function"?l=u.provider(window):typeof u.provider=="string"?l=Ml(window,u.provider):l=u.provider,l&&!l.removeListener&&("off"in l&&typeof l.off=="function"?l.removeListener=l.off:l.removeListener=()=>{}),l},async isAuthorized(){var l,u;try{if(t&&await((l=c.storage)==null?void 0:l.getItem(`${this.id}.disconnected`))||!e.target&&!await((u=c.storage)==null?void 0:u.getItem("injected.connected")))return!1;if(!await this.getProvider()){if(n!==void 0&&n!==!1){const g=async()=>(typeof window<"u"&&window.removeEventListener("ethereum#initialized",g),!!await this.getProvider()),m=typeof n=="number"?n:1e3;if(await Promise.race([...typeof window<"u"?[new Promise(y=>window.addEventListener("ethereum#initialized",()=>y(g()),{once:!0}))]:[],new Promise(y=>setTimeout(()=>y(g()),m))]))return!0}throw new Os}return!!(await uu(()=>this.getAccounts())).length}catch{return!1}},async switchChain({addEthereumChainParameter:l,chainId:u}){var g,m,b,y;const d=await this.getProvider();if(!d)throw new Os;const f=c.chains.find(v=>v.id===u);if(!f)throw new rs(new Bf);const h=new Promise(v=>{const w=x=>{"chainId"in x&&x.chainId===u&&(c.emitter.off("change",w),v())};c.emitter.on("change",w)});try{return await Promise.all([d.request({method:"wallet_switchEthereumChain",params:[{chainId:me(u)}]}).then(async()=>{await this.getChainId()===u&&c.emitter.emit("change",{chainId:u})}),h]),f}catch(v){const w=v;if(w.code===4902||((m=(g=w==null?void 0:w.data)==null?void 0:g.originalError)==null?void 0:m.code)===4902)try{const{default:x,...C}=f.blockExplorers??{};let S;l!=null&&l.blockExplorerUrls?S=l.blockExplorerUrls:x&&(S=[x.url,...Object.values(C).map(O=>O.url)]);let A;(b=l==null?void 0:l.rpcUrls)!=null&&b.length?A=l.rpcUrls:A=[((y=f.rpcUrls.default)==null?void 0:y.http[0])??""];const k={blockExplorerUrls:S,chainId:me(u),chainName:(l==null?void 0:l.chainName)??f.name,iconUrls:l==null?void 0:l.iconUrls,nativeCurrency:(l==null?void 0:l.nativeCurrency)??f.nativeCurrency,rpcUrls:A};return await Promise.all([d.request({method:"wallet_addEthereumChain",params:[k]}).then(async()=>{if(await this.getChainId()===u)c.emitter.emit("change",{chainId:u});else throw new Tt(new Error("User rejected switch after adding network."))}),h]),f}catch(x){throw new Tt(x)}throw w.code===Tt.code?new Tt(w):new rs(w)}},async onAccountsChanged(l){var u;if(l.length===0)this.onDisconnect();else if(c.emitter.listenerCount("connect")){const d=(await this.getChainId()).toString();this.onConnect({chainId:d}),t&&await((u=c.storage)==null?void 0:u.removeItem(`${this.id}.disconnected`))}else c.emitter.emit("change",{accounts:l.map(d=>ra(d))})},onChainChanged(l){const u=Number(l);c.emitter.emit("change",{chainId:u})},async onConnect(l){const u=await this.getAccounts();if(u.length===0)return;const d=Number(l.chainId);c.emitter.emit("connect",{accounts:u,chainId:d});const f=await this.getProvider();f&&(i&&(f.removeListener("connect",i),i=void 0),o||(o=this.onAccountsChanged.bind(this),f.on("accountsChanged",o)),s||(s=this.onChainChanged.bind(this),f.on("chainChanged",s)),a||(a=this.onDisconnect.bind(this),f.on("disconnect",a)))},async onDisconnect(l){const u=await this.getProvider();l&&l.code===1013&&u&&(await this.getAccounts()).length||(c.emitter.emit("disconnect"),u&&(s&&(u.removeListener("chainChanged",s),s=void 0),a&&(u.removeListener("disconnect",a),a=void 0),i||(i=this.onConnect.bind(this),u.on("connect",i))))}})}const Jz={coinbaseWallet:{id:"coinbaseWallet",name:"Coinbase Wallet",provider(e){return e!=null&&e.coinbaseWalletExtension?e.coinbaseWalletExtension:Ml(e,"isCoinbaseWallet")}},metaMask:{id:"metaMask",name:"MetaMask",provider(e){return Ml(e,t=>{if(!t.isMetaMask||t.isBraveWallet&&!t._events&&!t._state)return!1;const n=["isApexWallet","isAvalanche","isBitKeep","isBlockWallet","isKuCoinWallet","isMathWallet","isOkxWallet","isOKExWallet","isOneInchIOSWallet","isOneInchAndroidWallet","isOpera","isPhantom","isPortal","isRabby","isTokenPocket","isTokenary","isUniswapWallet","isZerion"];for(const r of n)if(t[r])return!1;return!0})}},phantom:{id:"phantom",name:"Phantom",provider(e){var t,n;return(t=e==null?void 0:e.phantom)!=null&&t.ethereum?(n=e.phantom)==null?void 0:n.ethereum:Ml(e,"isPhantom")}}};function Ml(e,t){function n(o){return typeof t=="function"?t(o):typeof t=="string"?o[t]:!0}const r=e.ethereum;if(r!=null&&r.providers)return r.providers.find(o=>n(o));if(r&&n(r))return r}function Yz(e){if(typeof window>"u")return;const t=n=>e(n.detail);return window.addEventListener("eip6963:announceProvider",t),window.dispatchEvent(new CustomEvent("eip6963:requestProvider")),()=>window.removeEventListener("eip6963:announceProvider",t)}function Kz(){const e=new Set;let t=[];const n=()=>Yz(o=>{t.some(({info:s})=>s.uuid===o.info.uuid)||(t=[...t,o],e.forEach(s=>s(t,{added:[o]})))});let r=n();return{_listeners(){return e},clear(){e.forEach(o=>o([],{removed:[...t]})),t=[]},destroy(){this.clear(),e.clear(),r==null||r()},findProvider({rdns:o}){return t.find(s=>s.info.rdns===o)},getProviders(){return t},reset(){this.clear(),r==null||r(),r=n()},subscribe(o,{emitImmediately:s}={}){return e.add(o),s&&o(t,{added:t}),()=>e.delete(o)}}}const Xz=e=>(t,n,r)=>{const o=r.subscribe;return r.subscribe=(i,a,c)=>{let l=i;if(a){const u=(c==null?void 0:c.equalityFn)||Object.is;let d=i(r.getState());l=f=>{const h=i(f);if(!u(d,h)){const g=d;a(d=h,g)}},c!=null&&c.fireImmediately&&a(d,d)}return o(l)},e(t,n,r)},Qz=Xz;function eH(e,t){let n;try{n=e()}catch{return}return{getItem:o=>{var s;const i=c=>c===null?null:JSON.parse(c,void 0),a=(s=n.getItem(o))!=null?s:null;return a instanceof Promise?a.then(i):i(a)},setItem:(o,s)=>n.setItem(o,JSON.stringify(s,void 0)),removeItem:o=>n.removeItem(o)}}const zf=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return zf(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return zf(r)(n)}}}},tH=(e,t)=>(n,r,o)=>{let s={storage:eH(()=>localStorage),partialize:m=>m,version:0,merge:(m,b)=>({...b,...m}),...t},i=!1;const a=new Set,c=new Set;let l=s.storage;if(!l)return e((...m)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),n(...m)},r,o);const u=()=>{const m=s.partialize({...r()});return l.setItem(s.name,{state:m,version:s.version})},d=o.setState;o.setState=(m,b)=>{d(m,b),u()};const f=e((...m)=>{n(...m),u()},r,o);o.getInitialState=()=>f;let h;const g=()=>{var m,b;if(!l)return;i=!1,a.forEach(v=>{var w;return v((w=r())!=null?w:f)});const y=((b=s.onRehydrateStorage)==null?void 0:b.call(s,(m=r())!=null?m:f))||void 0;return zf(l.getItem.bind(l))(s.name).then(v=>{if(v)if(typeof v.version=="number"&&v.version!==s.version){if(s.migrate)return[!0,s.migrate(v.state,v.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,v.state];return[!1,void 0]}).then(v=>{var w;const[x,C]=v;if(h=s.merge(C,(w=r())!=null?w:f),n(h,!0),x)return u()}).then(()=>{y==null||y(h,void 0),h=r(),i=!0,c.forEach(v=>v(h))}).catch(v=>{y==null||y(void 0,v)})};return o.persist={setOptions:m=>{s={...s,...m},m.storage&&(l=m.storage)},clearStorage:()=>{l==null||l.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>g(),hasHydrated:()=>i,onHydrate:m=>(a.add(m),()=>{a.delete(m)}),onFinishHydration:m=>(c.add(m),()=>{c.delete(m)})},s.skipHydration||g(),h||f},nH=tH,p9=e=>{let t;const n=new Set,r=(l,u)=>{const d=typeof l=="function"?l(t):l;if(!Object.is(d,t)){const f=t;t=u??(typeof d!="object"||d===null)?d:Object.assign({},t,d),n.forEach(h=>h(t,f))}},o=()=>t,a={setState:r,getState:o,getInitialState:()=>c,subscribe:l=>(n.add(l),()=>n.delete(l))},c=t=e(r,o,a);return a},Sd=e=>e?p9(e):p9;var Ed={exports:{}},m9;function rH(){return m9||(m9=1,function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function o(c,l,u){this.fn=c,this.context=l,this.once=u||!1}function s(c,l,u,d,f){if(typeof u!="function")throw new TypeError("The listener must be a function");var h=new o(u,d||c,f),g=n?n+l:l;return c._events[g]?c._events[g].fn?c._events[g]=[c._events[g],h]:c._events[g].push(h):(c._events[g]=h,c._eventsCount++),c}function i(c,l){--c._eventsCount===0?c._events=new r:delete c._events[l]}function a(){this._events=new r,this._eventsCount=0}a.prototype.eventNames=function(){var l=[],u,d;if(this._eventsCount===0)return l;for(d in u=this._events)t.call(u,d)&&l.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(u)):l},a.prototype.listeners=function(l){var u=n?n+l:l,d=this._events[u];if(!d)return[];if(d.fn)return[d.fn];for(var f=0,h=d.length,g=new Array(h);f<h;f++)g[f]=d[f].fn;return g},a.prototype.listenerCount=function(l){var u=n?n+l:l,d=this._events[u];return d?d.fn?1:d.length:0},a.prototype.emit=function(l,u,d,f,h,g){var m=n?n+l:l;if(!this._events[m])return!1;var b=this._events[m],y=arguments.length,v,w;if(b.fn){switch(b.once&&this.removeListener(l,b.fn,void 0,!0),y){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,u),!0;case 3:return b.fn.call(b.context,u,d),!0;case 4:return b.fn.call(b.context,u,d,f),!0;case 5:return b.fn.call(b.context,u,d,f,h),!0;case 6:return b.fn.call(b.context,u,d,f,h,g),!0}for(w=1,v=new Array(y-1);w<y;w++)v[w-1]=arguments[w];b.fn.apply(b.context,v)}else{var x=b.length,C;for(w=0;w<x;w++)switch(b[w].once&&this.removeListener(l,b[w].fn,void 0,!0),y){case 1:b[w].fn.call(b[w].context);break;case 2:b[w].fn.call(b[w].context,u);break;case 3:b[w].fn.call(b[w].context,u,d);break;case 4:b[w].fn.call(b[w].context,u,d,f);break;default:if(!v)for(C=1,v=new Array(y-1);C<y;C++)v[C-1]=arguments[C];b[w].fn.apply(b[w].context,v)}}return!0},a.prototype.on=function(l,u,d){return s(this,l,u,d,!1)},a.prototype.once=function(l,u,d){return s(this,l,u,d,!0)},a.prototype.removeListener=function(l,u,d,f){var h=n?n+l:l;if(!this._events[h])return this;if(!u)return i(this,h),this;var g=this._events[h];if(g.fn)g.fn===u&&(!f||g.once)&&(!d||g.context===d)&&i(this,h);else{for(var m=0,b=[],y=g.length;m<y;m++)(g[m].fn!==u||f&&!g[m].once||d&&g[m].context!==d)&&b.push(g[m]);b.length?this._events[h]=b.length===1?b[0]:b:i(this,h)}return this},a.prototype.removeAllListeners=function(l){var u;return l?(u=n?n+l:l,this._events[u]&&i(this,u)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a}(Ed)),Ed.exports}var oH=rH();const sH=xi(oH);class iH{constructor(t){Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"_emitter",{enumerable:!0,configurable:!0,writable:!0,value:new sH})}on(t,n){this._emitter.on(t,n)}once(t,n){this._emitter.once(t,n)}off(t,n){this._emitter.off(t,n)}emit(t,...n){const r=n[0];this._emitter.emit(t,{uid:this.uid,...r})}listenerCount(t){return this._emitter.listenerCount(t)}}function aH(e){return new iH(e)}function cH(e,t){return JSON.parse(e,(n,r)=>{let o=r;return(o==null?void 0:o.__type)==="bigint"&&(o=BigInt(o.value)),(o==null?void 0:o.__type)==="Map"&&(o=new Map(o.value)),(t==null?void 0:t(n,o))??o})}function g9(e,t){return e.slice(0,t).join(".")||"."}function b9(e,t){const{length:n}=e;for(let r=0;r<n;++r)if(e[r]===t)return r+1;return 0}function lH(e,t){const n=typeof e=="function",r=typeof t=="function",o=[],s=[];return function(a,c){if(typeof c=="object")if(o.length){const l=b9(o,this);l===0?o[o.length]=this:(o.splice(l),s.splice(l)),s[s.length]=a;const u=b9(o,c);if(u!==0)return r?t.call(this,a,c,g9(s,u)):`[ref=${g9(s,u)}]`}else o[0]=c,s[0]=a;return n?e.call(this,a,c):c}}function uH(e,t,n,r){return JSON.stringify(e,lH((o,s)=>{let i=s;return typeof i=="bigint"&&(i={__type:"bigint",value:s.toString()}),i instanceof Map&&(i={__type:"Map",value:Array.from(s.entries())}),(t==null?void 0:t(o,i))??i},r),n??void 0)}function dH(e){const{deserialize:t=cH,key:n="wagmi",serialize:r=uH,storage:o=qg}=e;function s(i){return i instanceof Promise?i.then(a=>a).catch(()=>null):i}return{...o,key:n,async getItem(i,a){const c=o.getItem(`${n}.${i}`),l=await s(c);return l?t(l)??null:a??null},async setItem(i,a){const c=`${n}.${i}`;a===null?await s(o.removeItem(c)):await s(o.setItem(c,r(a)))},async removeItem(i){await s(o.removeItem(`${n}.${i}`))}}}const qg={getItem:()=>null,setItem:()=>{},removeItem:()=>{}};function fH(){const e=typeof window<"u"&&window.localStorage?window.localStorage:qg;return{getItem(t){return e.getItem(t)},removeItem(t){e.removeItem(t)},setItem(t,n){try{e.setItem(t,n)}catch{}}}}const Hf=256;let ul=Hf,dl;function hH(e=11){if(!dl||ul+e>Hf*2){dl="",ul=0;for(let t=0;t<Hf;t++)dl+=(256+Math.random()*256|0).toString(16).substring(1)}return dl.substring(ul,ul+++e)}function pH(e){const{multiInjectedProviderDiscovery:t=!0,storage:n=dH({storage:fH()}),syncConnectedChain:r=!0,ssr:o=!1,...s}=e,i=typeof window<"u"&&t?Kz():void 0,a=Sd(()=>s.chains),c=Sd(()=>{const C=[],S=new Set;for(const A of s.connectors??[]){const k=l(A);if(C.push(k),!o&&k.rdns){const O=typeof k.rdns=="string"?[k.rdns]:k.rdns;for(const T of O)S.add(T)}}if(!o&&i){const A=i.getProviders();for(const k of A)S.has(k.info.rdns)||C.push(l(u(k)))}return C});function l(C){var k;const S=aH(hH()),A={...C({emitter:S,chains:a.getState(),storage:n,transports:s.transports}),emitter:S,uid:S.uid};return S.on("connect",w),(k=A.setup)==null||k.call(A),A}function u(C){const{info:S}=C,A=C.provider;return mh({target:{...S,id:S.rdns,provider:A}})}const d=new Map;function f(C={}){const S=C.chainId??b.getState().chainId,A=a.getState().find(O=>O.id===S);if(C.chainId&&!A)throw new Bf;{const O=d.get(b.getState().chainId);if(O&&!A)return O;if(!A)throw new Bf}{const O=d.get(S);if(O)return O}let k;if(s.client)k=s.client({chain:A});else{const O=A.id,T=a.getState().map(R=>R.id),B={},_=Object.entries(s);for(const[R,E]of _)if(!(R==="chains"||R==="client"||R==="connectors"||R==="transports"))if(typeof E=="object")if(O in E)B[R]=E[O];else{if(T.some(D=>D in E))continue;B[R]=E}else B[R]=E;k=Gg({...B,chain:A,batch:B.batch??{multicall:!0},transport:R=>s.transports[O]({...R,connectors:c})})}return d.set(S,k),k}function h(){return{chainId:a.getState()[0].id,connections:new Map,current:null,status:"disconnected"}}let g;const m="0.0.0-canary-";Pl.startsWith(m)?g=Number.parseInt(Pl.replace(m,"")):g=Number.parseInt(Pl.split(".")[0]??"0");const b=Sd(Qz(n?nH(h,{migrate(C,S){if(S===g)return C;const A=h(),k=y(C,A.chainId);return{...A,chainId:k}},name:"store",partialize(C){return{connections:{__type:"Map",value:Array.from(C.connections.entries()).map(([S,A])=>{const{id:k,name:O,type:T,uid:B}=A.connector;return[S,{...A,connector:{id:k,name:O,type:T,uid:B}}]})},chainId:C.chainId,current:C.current}},merge(C,S){typeof C=="object"&&C&&"status"in C&&delete C.status;const A=y(C,S.chainId);return{...S,...C,chainId:A}},skipHydration:o,storage:n,version:g}):h));b.setState(h());function y(C,S){return C&&typeof C=="object"&&"chainId"in C&&typeof C.chainId=="number"&&a.getState().some(A=>A.id===C.chainId)?C.chainId:S}r&&b.subscribe(({connections:C,current:S})=>{var A;return S?(A=C.get(S))==null?void 0:A.chainId:void 0},C=>{if(a.getState().some(A=>A.id===C))return b.setState(A=>({...A,chainId:C??A.chainId}))}),i==null||i.subscribe(C=>{const S=new Set,A=new Set;for(const O of c.getState())if(S.add(O.id),O.rdns){const T=typeof O.rdns=="string"?[O.rdns]:O.rdns;for(const B of T)A.add(B)}const k=[];for(const O of C){if(A.has(O.info.rdns))continue;const T=l(u(O));S.has(T.id)||k.push(T)}n&&!b.persist.hasHydrated()||c.setState(O=>[...O,...k],!0)});function v(C){b.setState(S=>{const A=S.connections.get(C.uid);return A?{...S,connections:new Map(S.connections).set(C.uid,{accounts:C.accounts??A.accounts,chainId:C.chainId??A.chainId,connector:A.connector})}:S})}function w(C){b.getState().status==="connecting"||b.getState().status==="reconnecting"||b.setState(S=>{const A=c.getState().find(k=>k.uid===C.uid);return A?(A.emitter.listenerCount("connect")&&A.emitter.off("connect",v),A.emitter.listenerCount("change")||A.emitter.on("change",v),A.emitter.listenerCount("disconnect")||A.emitter.on("disconnect",x),{...S,connections:new Map(S.connections).set(C.uid,{accounts:C.accounts,chainId:C.chainId,connector:A}),current:C.uid,status:"connected"}):S})}function x(C){b.setState(S=>{const A=S.connections.get(C.uid);if(A){const O=A.connector;O.emitter.listenerCount("change")&&A.connector.emitter.off("change",v),O.emitter.listenerCount("disconnect")&&A.connector.emitter.off("disconnect",x),O.emitter.listenerCount("connect")||A.connector.emitter.on("connect",w)}if(S.connections.delete(C.uid),S.connections.size===0)return{...S,connections:new Map,current:null,status:"disconnected"};const k=S.connections.values().next().value;return{...S,connections:new Map(S.connections),current:k.connector.uid}})}return{get chains(){return a.getState()},get connectors(){return c.getState()},storage:n,getClient:f,get state(){return b.getState()},setState(C){let S;typeof C=="function"?S=C(b.getState()):S=C;const A=h();typeof S!="object"&&(S=A),Object.keys(A).some(O=>!(O in S))&&(S=A),b.setState(S,!0)},subscribe(C,S,A){return b.subscribe(C,S,A?{...A,fireImmediately:A.emitImmediately}:void 0)},_internal:{mipd:i,store:b,ssr:!!o,syncConnectedChain:r,transports:s.transports,chains:{setState(C){const S=typeof C=="function"?C(a.getState()):C;if(S.length!==0)return a.setState(S,!0)},subscribe(C){return a.subscribe(C)}},connectors:{providerDetailToConnector:u,setup:l,setState(C){return c.setState(typeof C=="function"?C(c.getState()):C,!0)},subscribe(C){return c.subscribe(C)}},events:{change:v,connect:w,disconnect:x}}}}function mH(e,t){const{initialState:n,reconnectOnMount:r}=t;return n&&!e._internal.store.persist.hasHydrated()&&e.setState({...n,chainId:e.chains.some(o=>o.id===n.chainId)?n.chainId:e.chains[0].id,connections:r?n.connections:new Map,status:r?"reconnecting":"disconnected"}),{async onMount(){e._internal.ssr&&(await e._internal.store.persist.rehydrate(),e._internal.mipd&&e._internal.connectors.setState(o=>{var c;const s=new Set;for(const l of o??[])if(l.rdns){const u=Array.isArray(l.rdns)?l.rdns:[l.rdns];for(const d of u)s.add(d)}const i=[],a=((c=e._internal.mipd)==null?void 0:c.getProviders())??[];for(const l of a){if(s.has(l.info.rdns))continue;const u=e._internal.connectors.providerDetailToConnector(l),d=e._internal.connectors.setup(u);i.push(d)}return[...o,...i]})),r?Gz(e):e.storage&&e.setState(o=>({...o,connections:new Map}))}}}function gH(e){const{children:t,config:n,initialState:r,reconnectOnMount:o=!0}=e,{onMount:s}=mH(n,{initialState:r,reconnectOnMount:o});n._internal.ssr||s();const i=Je(!0);return Ye(()=>{if(i.current&&n._internal.ssr)return s(),()=>{i.current=!1}},[]),t}const Jg=A0(void 0);function bH(e){const{children:t,config:n}=e,r={value:n};return Rd(gH,e,Rd(Jg.Provider,r,t))}const yH="2.15.6",vH=()=>`wagmi@${yH}`;class wH extends ph{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiError"})}get docsBaseUrl(){return"https://wagmi.sh/react"}get version(){return vH()}}class CH extends wH{constructor(){super("`useConfig` must be used within `WagmiProvider`.",{docsPath:"/api/WagmiProvider"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiProviderNotFoundError"})}}function gh(e={}){const t=e.config??ku(Jg);if(!t)throw new CH;return t}var Ii=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},as=typeof window>"u"||"Deno"in globalThis;function Lt(){}function xH(e,t){return typeof e=="function"?e(t):e}function jf(e){return typeof e=="number"&&e>=0&&e!==1/0}function Yg(e,t){return Math.max(e+(t||0)-Date.now(),0)}function mo(e,t){return typeof e=="function"?e(t):e}function Sn(e,t){return typeof e=="function"?e(t):e}function y9(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==bh(i,t.options))return!1}else if(!qa(t.queryKey,i))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||s&&!s(t))}function v9(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(cs(t.options.mutationKey)!==cs(s))return!1}else if(!qa(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function bh(e,t){return((t==null?void 0:t.queryKeyHashFn)||cs)(e)}function cs(e){return JSON.stringify(e,(t,n)=>$f(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function qa(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>qa(e[n],t[n])):!1}function Kg(e,t){if(e===t)return e;const n=w9(e)&&w9(t);if(n||$f(e)&&$f(t)){const r=n?e:Object.keys(e),o=r.length,s=n?t:Object.keys(t),i=s.length,a=n?[]:{},c=new Set(r);let l=0;for(let u=0;u<i;u++){const d=n?u:s[u];(!n&&c.has(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,l++):(a[d]=Kg(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&l++)}return o===i&&l===o?e:a}return t}function hu(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function w9(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function $f(e){if(!C9(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!C9(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function C9(e){return Object.prototype.toString.call(e)==="[object Object]"}function SH(e){return new Promise(t=>{setTimeout(t,e)})}function Uf(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Kg(e,t):t}function EH(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function AH(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var yh=Symbol();function Xg(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===yh?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Qg(e,t){return typeof e=="function"?e(...t):!!e}var Lo,Qr,Hs,v6,OH=(v6=class extends Ii{constructor(){super();_e(this,Lo);_e(this,Qr);_e(this,Hs);ye(this,Hs,t=>{if(!as&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){J(this,Qr)||this.setEventListener(J(this,Hs))}onUnsubscribe(){var t;this.hasListeners()||((t=J(this,Qr))==null||t.call(this),ye(this,Qr,void 0))}setEventListener(t){var n;ye(this,Hs,t),(n=J(this,Qr))==null||n.call(this),ye(this,Qr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){J(this,Lo)!==t&&(ye(this,Lo,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof J(this,Lo)=="boolean"?J(this,Lo):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Lo=new WeakMap,Qr=new WeakMap,Hs=new WeakMap,v6),vh=new OH,js,eo,$s,w6,kH=(w6=class extends Ii{constructor(){super();_e(this,js,!0);_e(this,eo);_e(this,$s);ye(this,$s,t=>{if(!as&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){J(this,eo)||this.setEventListener(J(this,$s))}onUnsubscribe(){var t;this.hasListeners()||((t=J(this,eo))==null||t.call(this),ye(this,eo,void 0))}setEventListener(t){var n;ye(this,$s,t),(n=J(this,eo))==null||n.call(this),ye(this,eo,t(this.setOnline.bind(this)))}setOnline(t){J(this,js)!==t&&(ye(this,js,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return J(this,js)}},js=new WeakMap,eo=new WeakMap,$s=new WeakMap,w6),pu=new kH;function Zf(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function _H(e){return Math.min(1e3*2**e,3e4)}function eb(e){return(e??"online")==="online"?pu.isOnline():!0}var tb=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Ad(e){return e instanceof tb}function nb(e){let t=!1,n=0,r=!1,o;const s=Zf(),i=m=>{var b;r||(f(new tb(m)),(b=e.abort)==null||b.call(e))},a=()=>{t=!0},c=()=>{t=!1},l=()=>vh.isFocused()&&(e.networkMode==="always"||pu.isOnline())&&e.canRun(),u=()=>eb(e.networkMode)&&e.canRun(),d=m=>{var b;r||(r=!0,(b=e.onSuccess)==null||b.call(e,m),o==null||o(),s.resolve(m))},f=m=>{var b;r||(r=!0,(b=e.onError)==null||b.call(e,m),o==null||o(),s.reject(m))},h=()=>new Promise(m=>{var b;o=y=>{(r||l())&&m(y)},(b=e.onPause)==null||b.call(e)}).then(()=>{var m;o=void 0,r||(m=e.onContinue)==null||m.call(e)}),g=()=>{if(r)return;let m;const b=n===0?e.initialPromise:void 0;try{m=b??e.fn()}catch(y){m=Promise.reject(y)}Promise.resolve(m).then(d).catch(y=>{var S;if(r)return;const v=e.retry??(as?0:3),w=e.retryDelay??_H,x=typeof w=="function"?w(n,y):w,C=v===!0||typeof v=="number"&&n<v||typeof v=="function"&&v(n,y);if(t||!C){f(y);return}n++,(S=e.onFail)==null||S.call(e,n,y),SH(x).then(()=>l()?void 0:h()).then(()=>{t?f(y):g()})})};return{promise:s,cancel:i,continue:()=>(o==null||o(),s),cancelRetry:a,continueRetry:c,canStart:u,start:()=>(u()?g():h().then(g),s)}}var IH=e=>setTimeout(e,0);function PH(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=IH;const s=a=>{t?e.push(a):o(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(c=>{n(c)})})})};return{batch:a=>{let c;t++;try{c=a()}finally{t--,t||i()}return c},batchCalls:a=>(...c)=>{s(()=>{a(...c)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var St=PH(),Do,C6,rb=(C6=class{constructor(){_e(this,Do)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),jf(this.gcTime)&&ye(this,Do,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(as?1/0:5*60*1e3))}clearGcTimeout(){J(this,Do)&&(clearTimeout(J(this,Do)),ye(this,Do,void 0))}},Do=new WeakMap,C6),Us,Fo,mn,Bo,Pt,nc,Vo,Cn,Cr,x6,MH=(x6=class extends rb{constructor(t){super();_e(this,Cn);_e(this,Us);_e(this,Fo);_e(this,mn);_e(this,Bo);_e(this,Pt);_e(this,nc);_e(this,Vo);ye(this,Vo,!1),ye(this,nc,t.defaultOptions),this.setOptions(t.options),this.observers=[],ye(this,Bo,t.client),ye(this,mn,J(this,Bo).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ye(this,Us,RH(this.options)),this.state=t.state??J(this,Us),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=J(this,Pt))==null?void 0:t.promise}setOptions(t){this.options={...J(this,nc),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&J(this,mn).remove(this)}setData(t,n){const r=Uf(this.state.data,t,this.options);return ze(this,Cn,Cr).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){ze(this,Cn,Cr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=J(this,Pt))==null?void 0:r.promise;return(o=J(this,Pt))==null||o.cancel(t),n?n.then(Lt).catch(Lt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(J(this,Us))}isActive(){return this.observers.some(t=>Sn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===yh||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>mo(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Yg(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=J(this,Pt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=J(this,Pt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),J(this,mn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(J(this,Pt)&&(J(this,Vo)?J(this,Pt).cancel({revert:!0}):J(this,Pt).cancelRetry()),this.scheduleGc()),J(this,mn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ze(this,Cn,Cr).call(this,{type:"invalidate"})}fetch(t,n){var l,u,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(J(this,Pt))return J(this,Pt).continueRetry(),J(this,Pt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(h=>h.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,o=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(ye(this,Vo,!0),r.signal)})},s=()=>{const f=Xg(this.options,n),g=(()=>{const m={client:J(this,Bo),queryKey:this.queryKey,meta:this.meta};return o(m),m})();return ye(this,Vo,!1),this.options.persister?this.options.persister(f,g,this):f(g)},a=(()=>{const f={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:J(this,Bo),state:this.state,fetchFn:s};return o(f),f})();(l=this.options.behavior)==null||l.onFetch(a,this),ye(this,Fo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&&ze(this,Cn,Cr).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta});const c=f=>{var h,g,m,b;Ad(f)&&f.silent||ze(this,Cn,Cr).call(this,{type:"error",error:f}),Ad(f)||((g=(h=J(this,mn).config).onError)==null||g.call(h,f,this),(b=(m=J(this,mn).config).onSettled)==null||b.call(m,this.state.data,f,this)),this.scheduleGc()};return ye(this,Pt,nb({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var h,g,m,b;if(f===void 0){c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(y){c(y);return}(g=(h=J(this,mn).config).onSuccess)==null||g.call(h,f,this),(b=(m=J(this,mn).config).onSettled)==null||b.call(m,f,this.state.error,this),this.scheduleGc()},onError:c,onFail:(f,h)=>{ze(this,Cn,Cr).call(this,{type:"failed",failureCount:f,error:h})},onPause:()=>{ze(this,Cn,Cr).call(this,{type:"pause"})},onContinue:()=>{ze(this,Cn,Cr).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),J(this,Pt).start()}},Us=new WeakMap,Fo=new WeakMap,mn=new WeakMap,Bo=new WeakMap,Pt=new WeakMap,nc=new WeakMap,Vo=new WeakMap,Cn=new WeakSet,Cr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...ob(r.data,this.options),fetchMeta:t.meta??null};case"success":return ye(this,Fo,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return Ad(o)&&o.revert&&J(this,Fo)?{...J(this,Fo),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),St.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),J(this,mn).notify({query:this,type:"updated",action:t})})},x6);function ob(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:eb(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function RH(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Wn,S6,TH=(S6=class extends Ii{constructor(t={}){super();_e(this,Wn);this.config=t,ye(this,Wn,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??bh(o,n);let i=this.get(s);return i||(i=new MH({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){J(this,Wn).has(t.queryHash)||(J(this,Wn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=J(this,Wn).get(t.queryHash);n&&(t.destroy(),n===t&&J(this,Wn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){St.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return J(this,Wn).get(t)}getAll(){return[...J(this,Wn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>y9(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>y9(t,r)):n}notify(t){St.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){St.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){St.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Wn=new WeakMap,S6),Gn,Mt,zo,qn,Yr,E6,NH=(E6=class extends rb{constructor(t){super();_e(this,qn);_e(this,Gn);_e(this,Mt);_e(this,zo);this.mutationId=t.mutationId,ye(this,Mt,t.mutationCache),ye(this,Gn,[]),this.state=t.state||sb(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){J(this,Gn).includes(t)||(J(this,Gn).push(t),this.clearGcTimeout(),J(this,Mt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ye(this,Gn,J(this,Gn).filter(n=>n!==t)),this.scheduleGc(),J(this,Mt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){J(this,Gn).length||(this.state.status==="pending"?this.scheduleGc():J(this,Mt).remove(this))}continue(){var t;return((t=J(this,zo))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,i,a,c,l,u,d,f,h,g,m,b,y,v,w,x,C,S,A,k;const n=()=>{ze(this,qn,Yr).call(this,{type:"continue"})};ye(this,zo,nb({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(O,T)=>{ze(this,qn,Yr).call(this,{type:"failed",failureCount:O,error:T})},onPause:()=>{ze(this,qn,Yr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>J(this,Mt).canRun(this)}));const r=this.state.status==="pending",o=!J(this,zo).canStart();try{if(r)n();else{ze(this,qn,Yr).call(this,{type:"pending",variables:t,isPaused:o}),await((i=(s=J(this,Mt).config).onMutate)==null?void 0:i.call(s,t,this));const T=await((c=(a=this.options).onMutate)==null?void 0:c.call(a,t));T!==this.state.context&&ze(this,qn,Yr).call(this,{type:"pending",context:T,variables:t,isPaused:o})}const O=await J(this,zo).start();return await((u=(l=J(this,Mt).config).onSuccess)==null?void 0:u.call(l,O,t,this.state.context,this)),await((f=(d=this.options).onSuccess)==null?void 0:f.call(d,O,t,this.state.context)),await((g=(h=J(this,Mt).config).onSettled)==null?void 0:g.call(h,O,null,this.state.variables,this.state.context,this)),await((b=(m=this.options).onSettled)==null?void 0:b.call(m,O,null,t,this.state.context)),ze(this,qn,Yr).call(this,{type:"success",data:O}),O}catch(O){try{throw await((v=(y=J(this,Mt).config).onError)==null?void 0:v.call(y,O,t,this.state.context,this)),await((x=(w=this.options).onError)==null?void 0:x.call(w,O,t,this.state.context)),await((S=(C=J(this,Mt).config).onSettled)==null?void 0:S.call(C,void 0,O,this.state.variables,this.state.context,this)),await((k=(A=this.options).onSettled)==null?void 0:k.call(A,void 0,O,t,this.state.context)),O}finally{ze(this,qn,Yr).call(this,{type:"error",error:O})}}finally{J(this,Mt).runNext(this)}}},Gn=new WeakMap,Mt=new WeakMap,zo=new WeakMap,qn=new WeakSet,Yr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),St.batch(()=>{J(this,Gn).forEach(r=>{r.onMutationUpdate(t)}),J(this,Mt).notify({mutation:this,type:"updated",action:t})})},E6);function sb(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Sr,xn,rc,A6,LH=(A6=class extends Ii{constructor(t={}){super();_e(this,Sr);_e(this,xn);_e(this,rc);this.config=t,ye(this,Sr,new Set),ye(this,xn,new Map),ye(this,rc,0)}build(t,n,r){const o=new NH({mutationCache:this,mutationId:++jc(this,rc)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){J(this,Sr).add(t);const n=fl(t);if(typeof n=="string"){const r=J(this,xn).get(n);r?r.push(t):J(this,xn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(J(this,Sr).delete(t)){const n=fl(t);if(typeof n=="string"){const r=J(this,xn).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&J(this,xn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=fl(t);if(typeof n=="string"){const r=J(this,xn).get(n),o=r==null?void 0:r.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=fl(t);if(typeof n=="string"){const o=(r=J(this,xn).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){St.batch(()=>{J(this,Sr).forEach(t=>{this.notify({type:"removed",mutation:t})}),J(this,Sr).clear(),J(this,xn).clear()})}getAll(){return Array.from(J(this,Sr))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>v9(n,r))}findAll(t={}){return this.getAll().filter(n=>v9(t,n))}notify(t){St.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return St.batch(()=>Promise.all(t.map(n=>n.continue().catch(Lt))))}},Sr=new WeakMap,xn=new WeakMap,rc=new WeakMap,A6);function fl(e){var t;return(t=e.options.scope)==null?void 0:t.id}function x9(e){return{onFetch:(t,n)=>{var u,d,f,h,g;const r=t.options,o=(f=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,s=((h=t.state.data)==null?void 0:h.pages)||[],i=((g=t.state.data)==null?void 0:g.pageParams)||[];let a={pages:[],pageParams:[]},c=0;const l=async()=>{let m=!1;const b=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},y=Xg(t.options,t.fetchOptions),v=async(w,x,C)=>{if(m)return Promise.reject();if(x==null&&w.pages.length)return Promise.resolve(w);const A=(()=>{const B={client:t.client,queryKey:t.queryKey,pageParam:x,direction:C?"backward":"forward",meta:t.options.meta};return b(B),B})(),k=await y(A),{maxPages:O}=t.options,T=C?AH:EH;return{pages:T(w.pages,k,O),pageParams:T(w.pageParams,x,O)}};if(o&&s.length){const w=o==="backward",x=w?DH:S9,C={pages:s,pageParams:i},S=x(r,C);a=await v(C,S,w)}else{const w=e??s.length;do{const x=c===0?i[0]??r.initialPageParam:S9(r,a);if(c>0&&x==null)break;a=await v(a,x),c++}while(c<w)}return a};t.options.persister?t.fetchFn=()=>{var m,b;return(b=(m=t.options).persister)==null?void 0:b.call(m,l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=l}}}function S9(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function DH(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var ct,to,no,Zs,Ws,ro,Gs,qs,O6,FH=(O6=class{constructor(e={}){_e(this,ct);_e(this,to);_e(this,no);_e(this,Zs);_e(this,Ws);_e(this,ro);_e(this,Gs);_e(this,qs);ye(this,ct,e.queryCache||new TH),ye(this,to,e.mutationCache||new LH),ye(this,no,e.defaultOptions||{}),ye(this,Zs,new Map),ye(this,Ws,new Map),ye(this,ro,0)}mount(){jc(this,ro)._++,J(this,ro)===1&&(ye(this,Gs,vh.subscribe(async e=>{e&&(await this.resumePausedMutations(),J(this,ct).onFocus())})),ye(this,qs,pu.subscribe(async e=>{e&&(await this.resumePausedMutations(),J(this,ct).onOnline())})))}unmount(){var e,t;jc(this,ro)._--,J(this,ro)===0&&((e=J(this,Gs))==null||e.call(this),ye(this,Gs,void 0),(t=J(this,qs))==null||t.call(this),ye(this,qs,void 0))}isFetching(e){return J(this,ct).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return J(this,to).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=J(this,ct).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=J(this,ct).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(mo(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return J(this,ct).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=J(this,ct).get(r.queryHash),s=o==null?void 0:o.state.data,i=xH(t,s);if(i!==void 0)return J(this,ct).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return St.batch(()=>J(this,ct).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=J(this,ct).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=J(this,ct);St.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=J(this,ct);return St.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=St.batch(()=>J(this,ct).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Lt).catch(Lt)}invalidateQueries(e,t={}){return St.batch(()=>(J(this,ct).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=St.batch(()=>J(this,ct).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(Lt)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Lt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=J(this,ct).build(this,t);return n.isStaleByTime(mo(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Lt).catch(Lt)}fetchInfiniteQuery(e){return e.behavior=x9(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Lt).catch(Lt)}ensureInfiniteQueryData(e){return e.behavior=x9(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return pu.isOnline()?J(this,to).resumePausedMutations():Promise.resolve()}getQueryCache(){return J(this,ct)}getMutationCache(){return J(this,to)}getDefaultOptions(){return J(this,no)}setDefaultOptions(e){ye(this,no,e)}setQueryDefaults(e,t){J(this,Zs).set(cs(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...J(this,Zs).values()],n={};return t.forEach(r=>{qa(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){J(this,Ws).set(cs(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...J(this,Ws).values()],n={};return t.forEach(r=>{qa(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...J(this,no).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=bh(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===yh&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...J(this,no).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){J(this,ct).clear(),J(this,to).clear()}},ct=new WeakMap,to=new WeakMap,no=new WeakMap,Zs=new WeakMap,Ws=new WeakMap,ro=new WeakMap,Gs=new WeakMap,qs=new WeakMap,O6),Wt,We,oc,Rt,Ho,Js,oo,so,sc,Ys,Ks,jo,$o,io,Xs,et,oa,Wf,Gf,qf,Jf,Yf,Kf,Xf,ib,k6,BH=(k6=class extends Ii{constructor(t,n){super();_e(this,et);_e(this,Wt);_e(this,We);_e(this,oc);_e(this,Rt);_e(this,Ho);_e(this,Js);_e(this,oo);_e(this,so);_e(this,sc);_e(this,Ys);_e(this,Ks);_e(this,jo);_e(this,$o);_e(this,io);_e(this,Xs,new Set);this.options=n,ye(this,Wt,t),ye(this,so,null),ye(this,oo,Zf()),this.options.experimental_prefetchInRender||J(this,oo).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(J(this,We).addObserver(this),E9(J(this,We),this.options)?ze(this,et,oa).call(this):this.updateResult(),ze(this,et,Jf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Qf(J(this,We),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Qf(J(this,We),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ze(this,et,Yf).call(this),ze(this,et,Kf).call(this),J(this,We).removeObserver(this)}setOptions(t){const n=this.options,r=J(this,We);if(this.options=J(this,Wt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Sn(this.options.enabled,J(this,We))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ze(this,et,Xf).call(this),J(this,We).setOptions(this.options),n._defaulted&&!hu(this.options,n)&&J(this,Wt).getQueryCache().notify({type:"observerOptionsUpdated",query:J(this,We),observer:this});const o=this.hasListeners();o&&A9(J(this,We),r,this.options,n)&&ze(this,et,oa).call(this),this.updateResult(),o&&(J(this,We)!==r||Sn(this.options.enabled,J(this,We))!==Sn(n.enabled,J(this,We))||mo(this.options.staleTime,J(this,We))!==mo(n.staleTime,J(this,We)))&&ze(this,et,Wf).call(this);const s=ze(this,et,Gf).call(this);o&&(J(this,We)!==r||Sn(this.options.enabled,J(this,We))!==Sn(n.enabled,J(this,We))||s!==J(this,io))&&ze(this,et,qf).call(this,s)}getOptimisticResult(t){const n=J(this,Wt).getQueryCache().build(J(this,Wt),t),r=this.createResult(n,t);return zH(this,r)&&(ye(this,Rt,r),ye(this,Js,this.options),ye(this,Ho,J(this,We).state)),r}getCurrentResult(){return J(this,Rt)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),Reflect.get(r,o))})}trackProp(t){J(this,Xs).add(t)}getCurrentQuery(){return J(this,We)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=J(this,Wt).defaultQueryOptions(t),r=J(this,Wt).getQueryCache().build(J(this,Wt),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return ze(this,et,oa).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),J(this,Rt)))}createResult(t,n){var O;const r=J(this,We),o=this.options,s=J(this,Rt),i=J(this,Ho),a=J(this,Js),l=t!==r?t.state:J(this,oc),{state:u}=t;let d={...u},f=!1,h;if(n._optimisticResults){const T=this.hasListeners(),B=!T&&E9(t,n),_=T&&A9(t,r,n,o);(B||_)&&(d={...d,...ob(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:g,errorUpdatedAt:m,status:b}=d;h=d.data;let y=!1;if(n.placeholderData!==void 0&&h===void 0&&b==="pending"){let T;s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(T=s.data,y=!0):T=typeof n.placeholderData=="function"?n.placeholderData((O=J(this,Ks))==null?void 0:O.state.data,J(this,Ks)):n.placeholderData,T!==void 0&&(b="success",h=Uf(s==null?void 0:s.data,T,n),f=!0)}if(n.select&&h!==void 0&&!y)if(s&&h===(i==null?void 0:i.data)&&n.select===J(this,sc))h=J(this,Ys);else try{ye(this,sc,n.select),h=n.select(h),h=Uf(s==null?void 0:s.data,h,n),ye(this,Ys,h),ye(this,so,null)}catch(T){ye(this,so,T)}J(this,so)&&(g=J(this,so),h=J(this,Ys),m=Date.now(),b="error");const v=d.fetchStatus==="fetching",w=b==="pending",x=b==="error",C=w&&v,S=h!==void 0,k={status:b,fetchStatus:d.fetchStatus,isPending:w,isSuccess:b==="success",isError:x,isInitialLoading:C,isLoading:C,data:h,dataUpdatedAt:d.dataUpdatedAt,error:g,errorUpdatedAt:m,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:v,isRefetching:v&&!w,isLoadingError:x&&!S,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:x&&S,isStale:wh(t,n),refetch:this.refetch,promise:J(this,oo)};if(this.options.experimental_prefetchInRender){const T=R=>{k.status==="error"?R.reject(k.error):k.data!==void 0&&R.resolve(k.data)},B=()=>{const R=ye(this,oo,k.promise=Zf());T(R)},_=J(this,oo);switch(_.status){case"pending":t.queryHash===r.queryHash&&T(_);break;case"fulfilled":(k.status==="error"||k.data!==_.value)&&B();break;case"rejected":(k.status!=="error"||k.error!==_.reason)&&B();break}}return k}updateResult(){const t=J(this,Rt),n=this.createResult(J(this,We),this.options);if(ye(this,Ho,J(this,We).state),ye(this,Js,this.options),J(this,Ho).data!==void 0&&ye(this,Ks,J(this,We)),hu(n,t))return;ye(this,Rt,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!J(this,Xs).size)return!0;const i=new Set(s??J(this,Xs));return this.options.throwOnError&&i.add("error"),Object.keys(J(this,Rt)).some(a=>{const c=a;return J(this,Rt)[c]!==t[c]&&i.has(c)})};ze(this,et,ib).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ze(this,et,Jf).call(this)}},Wt=new WeakMap,We=new WeakMap,oc=new WeakMap,Rt=new WeakMap,Ho=new WeakMap,Js=new WeakMap,oo=new WeakMap,so=new WeakMap,sc=new WeakMap,Ys=new WeakMap,Ks=new WeakMap,jo=new WeakMap,$o=new WeakMap,io=new WeakMap,Xs=new WeakMap,et=new WeakSet,oa=function(t){ze(this,et,Xf).call(this);let n=J(this,We).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Lt)),n},Wf=function(){ze(this,et,Yf).call(this);const t=mo(this.options.staleTime,J(this,We));if(as||J(this,Rt).isStale||!jf(t))return;const r=Yg(J(this,Rt).dataUpdatedAt,t)+1;ye(this,jo,setTimeout(()=>{J(this,Rt).isStale||this.updateResult()},r))},Gf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(J(this,We)):this.options.refetchInterval)??!1},qf=function(t){ze(this,et,Kf).call(this),ye(this,io,t),!(as||Sn(this.options.enabled,J(this,We))===!1||!jf(J(this,io))||J(this,io)===0)&&ye(this,$o,setInterval(()=>{(this.options.refetchIntervalInBackground||vh.isFocused())&&ze(this,et,oa).call(this)},J(this,io)))},Jf=function(){ze(this,et,Wf).call(this),ze(this,et,qf).call(this,ze(this,et,Gf).call(this))},Yf=function(){J(this,jo)&&(clearTimeout(J(this,jo)),ye(this,jo,void 0))},Kf=function(){J(this,$o)&&(clearInterval(J(this,$o)),ye(this,$o,void 0))},Xf=function(){const t=J(this,Wt).getQueryCache().build(J(this,Wt),this.options);if(t===J(this,We))return;const n=J(this,We);ye(this,We,t),ye(this,oc,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},ib=function(t){St.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(J(this,Rt))}),J(this,Wt).getQueryCache().notify({query:J(this,We),type:"observerResultsUpdated"})})},k6);function VH(e,t){return Sn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function E9(e,t){return VH(e,t)||e.state.data!==void 0&&Qf(e,t,t.refetchOnMount)}function Qf(e,t,n){if(Sn(t.enabled,e)!==!1&&mo(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&wh(e,t)}return!1}function A9(e,t,n,r){return(e!==t||Sn(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&wh(e,n)}function wh(e,t){return Sn(t.enabled,e)!==!1&&e.isStaleByTime(mo(t.staleTime,e))}function zH(e,t){return!hu(e.getCurrentResult(),t)}var ao,co,Gt,Er,Ir,Rl,e0,_6,HH=(_6=class extends Ii{constructor(n,r){super();_e(this,Ir);_e(this,ao);_e(this,co);_e(this,Gt);_e(this,Er);ye(this,ao,n),this.setOptions(r),this.bindMethods(),ze(this,Ir,Rl).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=J(this,ao).defaultMutationOptions(n),hu(this.options,r)||J(this,ao).getMutationCache().notify({type:"observerOptionsUpdated",mutation:J(this,Gt),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&cs(r.mutationKey)!==cs(this.options.mutationKey)?this.reset():((o=J(this,Gt))==null?void 0:o.state.status)==="pending"&&J(this,Gt).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=J(this,Gt))==null||n.removeObserver(this)}onMutationUpdate(n){ze(this,Ir,Rl).call(this),ze(this,Ir,e0).call(this,n)}getCurrentResult(){return J(this,co)}reset(){var n;(n=J(this,Gt))==null||n.removeObserver(this),ye(this,Gt,void 0),ze(this,Ir,Rl).call(this),ze(this,Ir,e0).call(this)}mutate(n,r){var o;return ye(this,Er,r),(o=J(this,Gt))==null||o.removeObserver(this),ye(this,Gt,J(this,ao).getMutationCache().build(J(this,ao),this.options)),J(this,Gt).addObserver(this),J(this,Gt).execute(n)}},ao=new WeakMap,co=new WeakMap,Gt=new WeakMap,Er=new WeakMap,Ir=new WeakSet,Rl=function(){var r;const n=((r=J(this,Gt))==null?void 0:r.state)??sb();ye(this,co,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},e0=function(n){St.batch(()=>{var r,o,s,i,a,c,l,u;if(J(this,Er)&&this.hasListeners()){const d=J(this,co).variables,f=J(this,co).context;(n==null?void 0:n.type)==="success"?((o=(r=J(this,Er)).onSuccess)==null||o.call(r,n.data,d,f),(i=(s=J(this,Er)).onSettled)==null||i.call(s,n.data,null,d,f)):(n==null?void 0:n.type)==="error"&&((c=(a=J(this,Er)).onError)==null||c.call(a,n.error,d,f),(u=(l=J(this,Er)).onSettled)==null||u.call(l,void 0,n.error,d,f))}this.listeners.forEach(d=>{d(J(this,co))})})},_6);function jH(e){return JSON.stringify(e,(t,n)=>$H(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):typeof n=="bigint"?n.toString():n)}function $H(e){if(!O9(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!O9(n)||!n.hasOwnProperty("isPrototypeOf"))}function O9(e){return Object.prototype.toString.call(e)==="[object Object]"}function ab(e){const{_defaulted:t,behavior:n,gcTime:r,initialData:o,initialDataUpdatedAt:s,maxPages:i,meta:a,networkMode:c,queryFn:l,queryHash:u,queryKey:d,queryKeyHashFn:f,retry:h,retryDelay:g,structuralSharing:m,getPreviousPageParam:b,getNextPageParam:y,initialPageParam:v,_optimisticResults:w,enabled:x,notifyOnChangeProps:C,placeholderData:S,refetchInterval:A,refetchIntervalInBackground:k,refetchOnMount:O,refetchOnReconnect:T,refetchOnWindowFocus:B,retryOnMount:_,select:R,staleTime:E,suspense:V,throwOnError:D,config:H,connector:N,query:F,...X}=e;return X}function UH(e,t={}){return{async queryFn({queryKey:n}){const{name:r,scopeKey:o,...s}=n[1];if(!r)throw new Error("name is required");return Zz(e,{...s,name:r})},queryKey:ZH(t)}}function ZH(e={}){return["ensAvatar",ab(e)]}function WH(e,t={}){return{async queryFn({queryKey:n}){const{address:r,scopeKey:o,...s}=n[1];if(!r)throw new Error("address is required");return Wz(e,{...s,address:r})},queryKey:GH(t)}}function GH(e={}){return["ensName",ab(e)]}var cb=P.createContext(void 0),lb=e=>{const t=P.useContext(cb);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},qH=({client:e,children:t})=>(P.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),p(cb.Provider,{value:e,children:t})),JH=P.createContext(!1),YH=()=>P.useContext(JH);function KH(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var XH=P.createContext(KH()),QH=()=>P.useContext(XH),ej=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},tj=e=>{P.useEffect(()=>{e.clearReset()},[e])},nj=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||Qg(n,[e.error,r])),rj=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},oj=(e,t)=>e.isLoading&&e.isFetching&&!t,sj=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,k9=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function ij(e,t,n){var d,f,h,g,m;const r=YH(),o=QH(),s=lb(),i=s.defaultQueryOptions(e);(f=(d=s.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||f.call(d,i),i._optimisticResults=r?"isRestoring":"optimistic",rj(i),ej(i,o),tj(o);const a=!s.getQueryCache().get(i.queryHash),[c]=P.useState(()=>new t(s,i)),l=c.getOptimisticResult(i),u=!r&&e.subscribed!==!1;if(P.useSyncExternalStore(P.useCallback(b=>{const y=u?c.subscribe(St.batchCalls(b)):Lt;return c.updateResult(),y},[c,u]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),P.useEffect(()=>{c.setOptions(i)},[i,c]),sj(i,l))throw k9(i,c,o);if(nj({result:l,errorResetBoundary:o,throwOnError:i.throwOnError,query:s.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw l.error;if((g=(h=s.getDefaultOptions().queries)==null?void 0:h._experimental_afterQuery)==null||g.call(h,i,l),i.experimental_prefetchInRender&&!as&&oj(l,r)){const b=a?k9(i,c,o):(m=s.getQueryCache().get(i.queryHash))==null?void 0:m.promise;b==null||b.catch(Lt).finally(()=>{c.updateResult()})}return i.notifyOnChangeProps?l:c.trackResult(l)}function aj(e,t){return ij(e,BH)}function Oq(e,t){const n=lb(),[r]=P.useState(()=>new HH(n,e));P.useEffect(()=>{r.setOptions(e)},[r,e]);const o=P.useSyncExternalStore(P.useCallback(i=>r.subscribe(St.batchCalls(i)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=P.useCallback((i,a)=>{r.mutate(i,a).catch(Lt)},[r]);if(o.error&&Qg(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}function ub(e){const t=aj({...e,queryKeyHashFn:jH});return t.queryKey=e.queryKey,t}function db(e={}){const t=gh(e);return P6(n=>qz(t,{onChange:n}),()=>h9(t),()=>h9(t))}function cj(e={}){const{name:t,query:n={}}=e,r=gh(e),o=db({config:r}),s=UH(r,{...e,chainId:e.chainId??o}),i=!!(t&&(n.enabled??!0));return ub({...n,...s,enabled:i})}function fb(e={}){const{address:t,query:n={}}=e,r=gh(e),o=db({config:r}),s=WH(r,{...e,chainId:e.chainId??o}),i=!!(t&&(n.enabled??!0));return ub({...n,...s,enabled:i})}function hb(e){const{address:t,chainId:n=1,size:r="14px"}=e,o={width:r,height:r},s=fb({address:t,chainId:n}),i=s.data??void 0,a=cj({name:i}),c=a.data??sN;return s.isLoading||a.isLoading?p("div",{className:"fade-out flex-none animate-pulse rounded-full bg-gray-400",style:o}):p("img",{alt:"ENS Avatar",className:"flex-none rounded-full object-contain",src:c,style:o})}const lj={SYNCING:"Syncing",SUCCESS:"Synced",CONFLICT:"Error",MISSING:"Circle",ERROR:"Error",INITIAL_SYNC:"Syncing"};function pb(e){const{syncStatus:t,className:n,overrideSyncIcons:r={},...o}=e,s={...lj,...r};return{[b6]:p(ue,{size:16,...o,className:he("text-blue-900",n),name:s[b6]}),[f6]:p(ue,{size:16,...o,className:he("text-blue-900",n),name:s[f6]}),[h6]:p(ue,{size:16,...o,className:he("text-green-900",n),name:s[h6]}),[p6]:p(ue,{size:16,...o,className:he("text-orange-900",n),name:s[p6]}),[m6]:p(ue,{size:16,...o,className:he("text-red-900",n),name:s[m6]}),[g6]:p(ue,{size:16,...o,className:he("text-red-900",n),name:s[g6]})}[t]}function kq(e){const{fileNode:t,sharingType:n,className:r,customDocumentIconSrc:o,isAllowedToCreateDocuments:s,getSyncStatusSync:i,setSelectedNode:a,onRenameNode:c,onDuplicateNode:l,showDeleteNodeModal:u}=e,[d,f]=we(fo),[h,g]=we(!1),{dragProps:m}=wv({node:t}),b=d===fo,y=i(t.id,n),v={[Dc]:()=>l(t),[Fc]:()=>f(bv),[Bc]:()=>u(t)},w=Object.entries(vv).map(([_,R])=>({...R,id:_})).filter(_=>OG.includes(_.id));function x(_){c(_,t),f(fo)}function C(){f(fo)}function S(){a(t.id)}function A(_){const R=v[_];if(!R){console.error(`No handler found for dropdown menu item: ${_}`);return}R(),g(!1)}const k=UG(t.documentType,o),O=q("div",{className:"relative",children:[p("img",{alt:"file icon",className:"max-w-none",height:34,src:k,width:32}),b&&y&&p("div",{className:"absolute bottom-[-2px] right-0 size-3 rounded-full bg-white",children:p("div",{className:"absolute left-[-2px] top-[-2px]",children:p(pb,{overrideSyncIcons:{SUCCESS:"CheckCircleFill"},syncStatus:y})})})]}),T=he("group flex h-12 cursor-pointer select-none items-center rounded-lg bg-gray-200 px-2 text-gray-600 hover:text-gray-800",r),B=b?q("div",{className:"flex w-52 items-center justify-between",children:[q("div",{className:"mr-2 truncate group-hover:mr-0",children:[p("div",{className:"max-h-6 truncate text-sm font-medium group-hover:text-gray-800",children:t.name}),p("div",{className:"max-h-6 truncate text-xs font-medium text-gray-600 group-hover:text-gray-800",children:t.documentType})]}),s?p(Qu,{items:w,onItemClick:A,onOpenChange:g,open:h,children:p("button",{className:he("hidden group-hover:block",h&&"block"),onClick:_=>{_.stopPropagation(),g(!0)},children:p(ue,{className:"text-gray-600",name:"VerticalDots"})})}):null]}):p(Ah,{className:"ml-3 flex-1 font-medium",defaultValue:t.name,onCancel:C,onSubmit:x});return p("div",{className:"relative w-64",onClick:S,children:p("div",{...m,className:T,children:q("div",{className:"flex items-center",children:[p("div",{className:"mr-1.5",children:O}),B]})})})}function _q(e){const{folderNode:t,sharingType:n,isAllowedToCreateDocuments:r,className:o,setSelectedNode:s,getSyncStatusSync:i,onRenameNode:a,onDuplicateNode:c,showDeleteNodeModal:l,onAddFile:u,onCopyNode:d,onMoveNode:f}=e,[h,g]=we(fo),[m,b]=we(!1),{dragProps:y}=wv({node:t}),{isDropTarget:v,dropProps:w}=HG({node:t,onAddFile:u,onCopyNode:d,onMoveNode:f}),x=h===fo,C=i(t.id,n);function S(){g(fo)}function A(E){a(E,t),g(fo)}function k(){s(t.id)}const O={[Dc]:()=>c(t),[Fc]:()=>g(bv),[Bc]:()=>l(t)},T=Object.entries(vv).map(([E,V])=>({...V,id:E})).filter(E=>kG.includes(E.id));function B(E){const V=O[E];if(!V){console.error(`No handler found for dropdown menu item: ${E}`);return}V(),b(!1)}const _=x||!r?p("div",{className:"ml-3 max-h-6 truncate font-medium text-gray-600 group-hover:text-gray-800",children:t.name}):p(Ah,{className:"ml-3 font-medium",defaultValue:t.name,onCancel:S,onSubmit:A}),R=he("group flex h-12 cursor-pointer select-none items-center rounded-lg bg-gray-200 px-2",o,v&&"bg-blue-100");return p("div",{className:"relative w-64",onClick:k,children:q("div",{...y,...w,className:R,children:[q("div",{className:"flex items-center overflow-hidden",children:[p("div",{className:"p-1",children:q("div",{className:"relative",children:[p(ue,{name:"FolderClose",size:24}),x&&C?p("div",{className:"absolute bottom-[-3px] right-[-2px] size-3 rounded-full bg-white",children:p("div",{className:"absolute left-[-2px] top-[-2px]",children:p(pb,{overrideSyncIcons:{SUCCESS:"CheckCircleFill"},syncStatus:C})})}):null]})}),_]}),x&&r?p(Qu,{items:T,onItemClick:B,onOpenChange:b,open:m,children:p("button",{className:he("ml-auto hidden group-hover:block",m&&"block"),onClick:E=>{E.stopPropagation(),b(!0)},children:p(ue,{className:"text-gray-600",name:"VerticalDots"})})}):null]})})}const Pc=Co(function(t,n){const{icon:r,errorMessage:o,isDirty:s,containerClassName:i,inputClassName:a,errorMessageClassName:c,hideErrors:l=!1,...u}=t,d=t.type??"text",f=!!o;return q("div",{children:[q("div",{className:he("mb-1 flex gap-2 rounded-md border border-gray-200 bg-gray-50 p-3 text-black placeholder:text-gray-50",f&&"border-red-900",i),children:[r&&p("span",{className:ic((!s||f)&&"text-slate-200"),children:r}),p("input",{...u,className:he("w-full bg-transparent font-semibold outline-none",a),ref:n,type:d})]}),p("p",{className:he("hidden min-h-4 text-xs text-red-900",f&&"block",l&&"hidden",c),children:o})]})});function mb(e){var s;const{register:t,handleSubmit:n,control:r,formState:{errors:o}}=l2({defaultValues:{name:"",sharingType:mv,availableOffline:!1,appId:e.appOptions[0].id}});return p("form",{onSubmit:n(e.onSubmit),className:"flex flex-col gap-4",children:q("div",{className:"flex flex-col gap-4",children:[q("div",{children:[p(Tl,{htmlFor:"driveName",className:"text-sm font-medium text-gray-800",children:"Drive Name"}),p(Pc,{...t("name",{required:"Drive name is required"}),errorMessage:(s=o.name)==null?void 0:s.message,placeholder:"Drive name"})]}),q("div",{children:[p(Tl,{htmlFor:"driveApp",className:"text-sm font-medium text-gray-800",children:"Drive App"}),p(fj,{control:r,appOptions:e.appOptions})]}),q("div",{children:[p(Tl,{htmlFor:"sharingType",className:"text-sm font-medium text-gray-800",children:"Location"}),p(vb,{control:r})]}),p("div",{children:p(Ch,{...t("availableOffline")})}),p(yn,{className:"mt-2 w-full",type:"submit",children:"Create new drive"})]})})}function gb(e){const{sharingType:t=_1,requestPublicDrive:n}=e,[r,o]=we(),[s,i]=we(!1),[a,c]=we(!0),[l,u]=we(!1),[d,f]=we(""),[h,g]=we(""),[m,b]=sP(h,500),{register:y,handleSubmit:v,setValue:w}=l2({mode:"onBlur",defaultValues:{availableOffline:(r==null?void 0:r.availableOffline)??!1}});Ye(()=>{b(h)},[h]),Ye(()=>{if(u(!1),m==="")return;C().catch(console.error);async function C(){try{const{id:S,name:A}=await n(m);o({id:S,name:A,sharingType:t,location:E0,availableOffline:!0}),w("availableOffline",!0),c(!0),f("")}catch(S){o(void 0),c(!1),f(S.message)}}},[m,w,t]);function x({availableOffline:C}){r&&e.onSubmit({...r,availableOffline:C,url:m})}return p("form",{onSubmit:v(x),children:l?q(Pr,{children:[p(pj,{driveName:(r==null?void 0:r.name)??"New drive"}),p(uo,{className:"my-3"}),q(au,{isOpen:s,onOpenChange:()=>i(!s),title:"Location",children:[p(yb,{location:E0}),p(Ch,{...y("availableOffline")})]}),p(yn,{className:"mt-4 w-full",color:"dark",type:"submit",children:"Add new drive"})]}):q(Pr,{children:[p(Pc,{errorMessage:d,onChange:C=>g(C.target.value),placeholder:"Drive URL",required:!0,type:"url",value:h}),p(yn,{className:"mt-4 w-full py-2 text-base",color:"dark",size:"small",disabled:!a||h==="",onClick:C=>{C.preventDefault(),u(!0)},type:"button",children:"Add drive"})]})})}function uj(e){const{drive:t,sharingType:n,availableOffline:r,onSubmit:o,handleDeleteDrive:s}=e,i=t.header.name,[a,c]=we(!1),[l,u]=we(!1),[d,f]=we(!1),{register:h,handleSubmit:g,control:m}=l2({mode:"onBlur",defaultValues:{name:i,sharingType:n,availableOffline:r}}),b=n===_1?E0:n;return q("form",{onSubmit:g(o),children:[p(bb,{...h("name")}),p(uo,{className:"my-4"}),p(Tl,{htmlFor:"sharingType",children:"Sharing settings"}),p(vb,{control:m}),p(uo,{className:"my-3"}),q(au,{isOpen:a,onOpenChange:()=>c(!a),title:"Location",children:[p(yb,{location:b}),p(Ch,{...h("availableOffline")})]}),p(uo,{className:"my-3"}),p(au,{isOpen:l,onOpenChange:()=>u(!l),title:"Danger zone",children:q("button",{className:"flex gap-2 py-3 font-semibold text-red-900 transition hover:brightness-125",onClick:()=>f(!0),type:"button",children:[p(ue,{name:"Trash"}),"Delete drive"]})}),d&&l?p(hj,{drive:t,handleDeleteDrive:s,onCancel:()=>f(!1)}):q(Pr,{children:[p(uo,{className:"my-3"}),p(yn,{className:"mb-4 w-full",type:"submit",children:"Confirm"})]})]})}function dj(e){return{value:e.id,displayValue:e.name,icon:p(ue,{name:"PowerhouseLogoSmall"}),description:"Built by Powerhouse"}}function fj(e){const{control:t,appOptions:n,...r}=e,o=n.map(dj);return p(i2,{control:t,name:"appId",render:({field:s})=>p(Bh,{...r,...s,id:"appId",items:o})})}const Ch=Co(function(t,n){return q("div",{className:"flex items-center rounded-md border border-gray-200 bg-gray-50 p-3 text-gray-900",children:[q("div",{className:"flex-1",children:[p("label",{className:"font-medium text-gray-900",htmlFor:"availableOffline",children:"Make available offline"}),q("p",{className:"text-xs text-gray-600",children:["Check this options if you keep a local backup",p("br",{}),"available at all times."]})]}),p(bG,{id:"availableOffline",ref:n,...t})]})});function hj(e){const{drive:t,handleDeleteDrive:n,onCancel:r}=e,[o,s]=we(""),i=o===t.header.name;function a(){i&&n()}return q("div",{children:[p("p",{className:"mb-2 rounded-md bg-slate-50 p-4 text-center text-slate-200",children:"Are you sure you want to delete this drive? All files and subfolders within it will be removed. Do you want to proceed?"}),p(bb,{icon:p(ue,{name:"Lock"}),onChange:c=>s(c.target.value),placeholder:"Enter drive name...",value:o}),q("div",{className:"flex gap-3",children:[p(yn,{className:"w-full",color:"light",onClick:r,children:"Cancel"}),p(yn,{className:"w-full",color:"red",disabled:!i,onClick:a,children:"Delete"})]})]})}function pj(e){return q("div",{className:"flex gap-2 rounded-xl bg-gray-100 p-3 font-semibold text-gray-500",children:[p(ue,{className:"text-gray-600",name:"Drive"}),e.driveName]})}const bb=Co(function(t,n){return p(Pc,{...t,icon:t.icon??p(ue,{name:"Drive"}),id:"driveName",placeholder:"Drive name",ref:n})});function Tl(e){const{children:t,className:n,...r}=e;return p("label",{...r,className:he("block font-semibold text-gray-500",n),children:t})}function yb(e){const{location:t,className:n,...r}=e,o=IG[t];return q("div",{...r,className:he("my-3 flex items-center gap-2 rounded-xl border border-gray-100 p-3 text-gray-800 shadow",n),children:[o.icon,q("div",{children:[p("p",{children:o.title}),p("p",{className:"text-xs text-slate-200",children:o.description})]})]})}function vb(e){const{control:t,...n}=e;return p(i2,{control:t,name:"sharingType",render:({field:r})=>p(Bh,{...n,...r,id:"sharingType",items:_G})})}const mj=""+new URL("home-bg-BRYzhkhi.avif",import.meta.url).href,gj=""+new URL("home-bg-BEhF9NuW.png",import.meta.url).href;function bj(){return q("picture",{className:"pointer-events-none absolute inset-8 z-0 size-[calc(100%-32px)] object-contain",children:[p("source",{srcSet:mj,type:"image/avif"}),p("img",{src:gj,alt:"background",className:"object-contain"})]})}const yj=function(t){const{icon:n,title:r,description:o,containerClassName:s,shareable:i,onClick:a}=t;return q("div",{className:he("relative flex h-24 cursor-pointer flex-col items-center justify-center text-center text-sm text-black",s,a&&"cursor-pointer"),onClick:a,children:[p("div",{className:"mx-auto pb-2",children:n||p("div",{className:"size-8 items-center justify-center rounded-lg bg-black pt-1",children:p("span",{className:"text-6 w-6 text-white",children:r.slice(0,1).toUpperCase()})})}),q("div",{children:[p("h3",{children:r}),o&&p("p",{className:"text-gray-500",children:o})]}),i&&p("div",{className:"absolute left-2 top-0 mb-2",children:p(ue,{name:"PeopleFill",width:12,height:12})})]})},Iq=function(t){const{containerClassName:n,onClick:r}=t;return p(yj,{title:"Create New Drive",icon:p(ue,{name:"PlusSquare",size:32}),onClick:r,containerClassName:n})},Pq=function(t){const{children:n,containerClassName:r}=t;return p("div",{className:he("container relative mx-auto flex h-full flex-col",r),children:q("div",{className:"m-8 flex flex-wrap justify-center gap-4 pt-12",children:[p(bj,{}),n]})})};function Mq(e){function t(){r(!1)}const{open:n,onOpenChange:r,onAddRemoteDrive:o,onAddLocalDrive:s,requestPublicDrive:i,modalProps:a,containerProps:c}=e;return p(Vr,{...a,contentProps:{className:"rounded-2xl"},onOpenChange:r,open:n,children:p("div",{...c,className:he("w-[408px] rounded-2xl p-6",c==null?void 0:c.className),children:q(tG,{defaultValue:"Create Drive",children:[p(Pd,{label:"Create Drive",description:"Create a new drive",children:p(mb,{onCancel:t,onSubmit:s,appOptions:e.appOptions})}),p(Pd,{label:"Add Drive",description:"Add a drive",children:p(gb,{sharingType:"PUBLIC",onSubmit:o,onCancel:t,requestPublicDrive:i})}),p(Pd,{label:"New Shortcut",description:"Create a new shortcut",disabled:!0,children:"test"})]})})})}function Rq(e){const{open:t,onOpenChange:n,onSubmit:r,modalProps:o,containerProps:s,appOptions:i}=e;function a(){n(!1)}return p(Vr,{...o,contentProps:{className:"rounded-2xl"},onOpenChange:n,open:t,children:q("div",{...s,className:he("max-w-[408px] rounded-2xl p-6",s==null?void 0:s.className),children:[q("div",{className:"flex justify-between",children:[p("h1",{className:"text-xl font-bold",children:"Create new drive "}),p("button",{className:"flex size-8 items-center justify-center rounded-md bg-gray-100 text-gray-500 outline-none hover:text-gray-900",onClick:a,tabIndex:-1,children:p(ue,{name:"XmarkLight",size:24})})]}),p(uo,{className:"my-4"}),p(mb,{onCancel:a,onSubmit:r,appOptions:i})]})})}function Tq(e){const{open:t,onOpenChange:n,onSubmit:r,sharingType:o,modalProps:s,containerProps:i,requestPublicDrive:a}=e;function c(){n(!1)}return p(Vr,{...s,contentProps:{className:"rounded-2xl"},onOpenChange:n,open:t,children:q("div",{...i,className:he("min-w-[408px] max-w-[408px] rounded-2xl p-6",i==null?void 0:i.className),children:[q("div",{className:"flex justify-between",children:[p("h1",{className:"text-xl font-bold",children:"Add drive"}),p("button",{className:"flex size-8 items-center justify-center rounded-md bg-gray-100 text-gray-500 outline-none hover:text-gray-900",onClick:c,tabIndex:-1,children:p(ue,{name:"XmarkLight",size:24})})]}),p(uo,{className:"my-4"}),p(gb,{onCancel:c,onSubmit:r,requestPublicDrive:a,sharingType:o})]})})}const _9="min-h-[48px] min-w-[142px] text-base font-semibold py-3 px-6 rounded-xl outline-none active:opacity-75 hover:scale-105 transform transition-all";function wb(e){const{body:t,header:n,children:r,onCancel:o,onOpenChange:s,onContinue:i,cancelLabel:a,continueLabel:c,overlayProps:l,contentProps:u,bodyProps:d={},headerProps:f={},containerProps:h={},cancelButtonProps:g={},continueButtonProps:m={},buttonContainerProps:b={},...y}=e;return p(Vr,{contentProps:{...u,className:he("rounded-3xl",u==null?void 0:u.className)},onOpenChange:s,overlayProps:{...l,className:l==null?void 0:l.className},...y,children:q("div",{...Jt(h,"w-[400px] p-6 text-slate-300"),children:[p("div",{...Jt(f,"border-b border-slate-50 pb-2 text-2xl font-bold text-gray-800"),children:n}),q("div",{...Jt(d,"my-6 rounded-md bg-slate-50 p-4 text-center"),children:[t,r]}),q("div",{...Jt(b,"mt-8 flex justify-between gap-3"),children:[p("button",{onClick:o,...Jt(g,he(_9,"flex-1 bg-slate-50 text-slate-800")),children:a}),p("button",{onClick:i,...Jt(m,he(_9,"flex-1 bg-gray-800 text-gray-50")),children:c})]})]})})}const I9="min-h-[48px] min-w-[142px] text-base font-semibold py-3 px-6 rounded-xl outline-none active:opacity-75 hover:scale-105 transform transition-all",P9=300;function Nq(e){const{onOpenChange:t,onContinue:n,overlayProps:r,contentProps:o,...s}=e,[i,a]=we(""),c=()=>{t==null||t(!1),setTimeout(()=>a(""),P9)},l=()=>{n(i),setTimeout(()=>a(""),P9)};return p(Vr,{contentProps:{...o,className:he("rounded-3xl",o==null?void 0:o.className)},onOpenChange:t,overlayProps:{...r,className:r==null?void 0:r.className},...s,children:q("div",{className:"w-[400px] p-6 text-slate-300",children:[p("div",{className:"border-b border-slate-50 pb-2 text-2xl font-bold text-gray-800",children:"Create a new document"}),p("div",{className:"my-6",children:p(Pc,{icon:p(ue,{name:"BrickGlobe"}),onChange:u=>a(u.target.value),placeholder:"Document name",required:!0,value:i})}),q("div",{className:"mt-8 flex justify-between gap-3",children:[p("button",{className:he(I9,"flex-1 bg-slate-50 text-slate-800"),onClick:c,children:"Cancel"}),p(yn,{className:he(I9,"flex-1 bg-gray-800 text-gray-50"),onClick:l,children:"Create"})]})]})})}const Lq=e=>{const{inputPlaceholder:t,body:n,driveName:r,...o}=e,[s,i]=we("");return p(wb,{bodyProps:{className:"p-0 bg-white my-0"},containerProps:{className:"w-[450px]"},continueButtonProps:{disabled:s!==r,className:s!==r?"bg-red-600 hover:scale-100 cursor-not-allowed active:opacity-100":"bg-red-900"},...o,children:q("div",{children:[p("div",{className:"my-6 rounded-md bg-slate-50 p-4 text-center",children:n}),p("div",{children:p(Pc,{hideErrors:!0,icon:p(ue,{name:"Lock"}),onChange:a=>i(a.target.value),placeholder:t,value:s})})]})})};function Dq(e){const{onDelete:t,deleteLabel:n,...r}=e;return p(wb,{...r,containerProps:{className:"w-[450px]"},continueButtonProps:{className:"bg-red-900"},continueLabel:n,onContinue:t})}function Fq(e){const{drive:t,open:n,sharingType:r,availableOffline:o,onOpenChange:s,onDeleteDrive:i,onRenameDrive:a,onChangeSharingType:c,onChangeAvailableOffline:l,modalProps:u,containerProps:d}=e,f=m=>{m.name!==t.header.name&&a(t,m.name),m.sharingType!==r&&c(t,m.sharingType),m.availableOffline!==o&&l(t,m.availableOffline),s(!1)};function h(){i(t),s(!1)}function g(){s(!1)}return p(Vr,{...u,contentProps:{className:"rounded-2xl"},onOpenChange:s,open:n,children:q("div",{...d,className:he("max-w-[408px] rounded-2xl p-6",d==null?void 0:d.className),children:[q("div",{className:"flex justify-between",children:[p("h1",{className:"text-xl font-bold",children:"Drive settings"}),p("button",{className:"flex size-8 items-center justify-center rounded-md bg-gray-100 text-gray-500 outline-none hover:text-gray-900",onClick:g,tabIndex:-1,children:p(ue,{name:"XmarkLight",size:24})})]}),p(uo,{className:"my-4"}),p(uj,{handleCancel:g,handleDeleteDrive:h,onSubmit:f,drive:t,sharingType:r,availableOffline:o})]})})}const vj="min-h-[48px] min-w-[142px] text-base font-semibold py-3 px-6 rounded-xl outline-none active:opacity-75 hover:scale-105 transform transition-all";function Bq(e){const{body:t,header:n,children:r,onOpenChange:o,onContinue:s,closeLabel:i,overlayProps:a,contentProps:c,bodyProps:l={},headerProps:u={},containerProps:d={},continueButtonProps:f={},buttonContainerProps:h={},...g}=e,[m,b]=we(!0),y=Je(null);return Ye(()=>{const v=()=>{const x=y.current;x&&(x.scrollHeight>x.clientHeight?(b(!0),x.addEventListener("scroll",w)):b(!1))},w=()=>{const x=y.current;x&&x.scrollHeight-Math.ceil(x.scrollTop)===x.clientHeight&&b(!1)};return requestAnimationFrame(v),()=>{const x=y.current;x&&x.removeEventListener("scroll",w)}},[]),p(Vr,{contentProps:{...c,className:he("rounded-3xl outline-none",c==null?void 0:c.className)},onOpenChange:o,overlayProps:{...a,className:a==null?void 0:a.className},...g,children:q("div",{...Jt(d,"w-[500px] p-6 text-slate-300"),children:[p("div",{...Jt(u,"border-b border-slate-50 pb-2 text-2xl font-bold text-gray-800"),children:n}),q("div",{ref:y,...Jt(l,"my-6 max-h-[245px] overflow-scroll rounded-md bg-slate-50 p-4 text-center"),children:[t,r]}),p("div",{...Jt(h,"mt-8 flex justify-between gap-3"),children:p("button",{disabled:m,onClick:s,...Jt(f,he(vj,"flex-1 bg-gray-800 text-gray-50",m&&"cursor-not-allowed bg-gray-300 hover:scale-100")),children:i})})]})})}var qe;(function(e){e.assertEqual=o=>{};function t(o){}e.assertIs=t;function n(o){throw new Error}e.assertNever=n,e.arrayToEnum=o=>{const s={};for(const i of o)s[i]=i;return s},e.getValidEnumValues=o=>{const s=e.objectKeys(o).filter(a=>typeof o[o[a]]!="number"),i={};for(const a of s)i[a]=o[a];return e.objectValues(i)},e.objectValues=o=>e.objectKeys(o).map(function(s){return o[s]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const s=[];for(const i in o)Object.prototype.hasOwnProperty.call(o,i)&&s.push(i);return s},e.find=(o,s)=>{for(const i of o)if(s(i))return i},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function r(o,s=" | "){return o.map(i=>typeof i=="string"?`'${i}'`:i).join(s)}e.joinValues=r,e.jsonStringifyReplacer=(o,s)=>typeof s=="bigint"?s.toString():s})(qe||(qe={}));var M9;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(M9||(M9={}));const Se=qe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Kr=e=>{switch(typeof e){case"undefined":return Se.undefined;case"string":return Se.string;case"number":return Number.isNaN(e)?Se.nan:Se.number;case"boolean":return Se.boolean;case"function":return Se.function;case"bigint":return Se.bigint;case"symbol":return Se.symbol;case"object":return Array.isArray(e)?Se.array:e===null?Se.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Se.promise:typeof Map<"u"&&e instanceof Map?Se.map:typeof Set<"u"&&e instanceof Set?Se.set:typeof Date<"u"&&e instanceof Date?Se.date:Se.object;default:return Se.unknown}},fe=qe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class dr extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(s){return s.message},r={_errors:[]},o=s=>{for(const i of s.issues)if(i.code==="invalid_union")i.unionErrors.map(o);else if(i.code==="invalid_return_type")o(i.returnTypeError);else if(i.code==="invalid_arguments")o(i.argumentsError);else if(i.path.length===0)r._errors.push(n(i));else{let a=r,c=0;for(;c<i.path.length;){const l=i.path[c];c===i.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(n(i))):a[l]=a[l]||{_errors:[]},a=a[l],c++}}};return o(this),r}static assert(t){if(!(t instanceof dr))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,qe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const o of this.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}dr.create=e=>new dr(e);const t0=(e,t)=>{let n;switch(e.code){case fe.invalid_type:e.received===Se.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case fe.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,qe.jsonStringifyReplacer)}`;break;case fe.unrecognized_keys:n=`Unrecognized key(s) in object: ${qe.joinValues(e.keys,", ")}`;break;case fe.invalid_union:n="Invalid input";break;case fe.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${qe.joinValues(e.options)}`;break;case fe.invalid_enum_value:n=`Invalid enum value. Expected ${qe.joinValues(e.options)}, received '${e.received}'`;break;case fe.invalid_arguments:n="Invalid function arguments";break;case fe.invalid_return_type:n="Invalid function return type";break;case fe.invalid_date:n="Invalid date";break;case fe.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:qe.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case fe.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case fe.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case fe.custom:n="Invalid input";break;case fe.invalid_intersection_types:n="Intersection results could not be merged";break;case fe.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case fe.not_finite:n="Number must be finite";break;default:n=t.defaultError,qe.assertNever(e)}return{message:n}};let wj=t0;function Cj(){return wj}const xj=e=>{const{data:t,path:n,errorMaps:r,issueData:o}=e,s=[...n,...o.path||[]],i={...o,path:s};if(o.message!==void 0)return{...o,path:s,message:o.message};let a="";const c=r.filter(l=>!!l).slice().reverse();for(const l of c)a=l(i,{data:t,defaultError:a}).message;return{...o,path:s,message:a}};function ve(e,t){const n=Cj(),r=xj({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===t0?void 0:t0].filter(o=>!!o)});e.common.issues.push(r)}class $t{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const o of n){if(o.status==="aborted")return Ve;o.status==="dirty"&&t.dirty(),r.push(o.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const o of n){const s=await o.key,i=await o.value;r.push({key:s,value:i})}return $t.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const o of n){const{key:s,value:i}=o;if(s.status==="aborted"||i.status==="aborted")return Ve;s.status==="dirty"&&t.dirty(),i.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof i.value<"u"||o.alwaysSet)&&(r[s.value]=i.value)}return{status:t.value,value:r}}}const Ve=Object.freeze({status:"aborted"}),sa=e=>({status:"dirty",value:e}),wn=e=>({status:"valid",value:e}),R9=e=>e.status==="aborted",T9=e=>e.status==="dirty",ui=e=>e.status==="valid",mu=e=>typeof Promise<"u"&&e instanceof Promise;var Ae;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Ae||(Ae={}));class fr{constructor(t,n,r,o){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const N9=(e,t)=>{if(ui(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new dr(e.common.issues);return this._error=n,this._error}}};function je(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(i,a)=>{const{message:c}=e;return i.code==="invalid_enum_value"?{message:c??a.defaultError}:typeof a.data>"u"?{message:c??r??a.defaultError}:i.code!=="invalid_type"?{message:a.defaultError}:{message:c??n??a.defaultError}},description:o}}class Ge{get description(){return this._def.description}_getType(t){return Kr(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Kr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new $t,ctx:{common:t.parent.common,data:t.data,parsedType:Kr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(mu(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){const r={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Kr(t)},o=this._parseSync({data:t,path:r.path,parent:r});return N9(r,o)}"~validate"(t){var r,o;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Kr(t)};if(!this["~standard"].async)try{const s=this._parseSync({data:t,path:[],parent:n});return ui(s)?{value:s.value}:{issues:n.common.issues}}catch(s){(o=(r=s==null?void 0:s.message)==null?void 0:r.toLowerCase())!=null&&o.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(s=>ui(s)?{value:s.value}:{issues:n.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Kr(t)},o=this._parse({data:t,path:r.path,parent:r}),s=await(mu(o)?o:Promise.resolve(o));return N9(r,s)}refine(t,n){const r=o=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(o):n;return this._refinement((o,s)=>{const i=t(o),a=()=>s.addIssue({code:fe.custom,...r(o)});return typeof Promise<"u"&&i instanceof Promise?i.then(c=>c?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,o)=>t(r)?!0:(o.addIssue(typeof n=="function"?n(r,o):n),!1))}_refinement(t){return new pi({schema:this,typeName:Be.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Wo.create(this,this._def)}nullable(){return Ka.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return rr.create(this)}promise(){return u0.create(this,this._def)}or(t){return bu.create([this,t],this._def)}and(t){return a0.create(this,t,this._def)}transform(t){return new pi({...je(this._def),schema:this,typeName:Be.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new d0({...je(this._def),innerType:this,defaultValue:n,typeName:Be.ZodDefault})}brand(){return new Zj({typeName:Be.ZodBranded,type:this,...je(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new f0({...je(this._def),innerType:this,catchValue:n,typeName:Be.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return xh.create(this,t)}readonly(){return h0.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Sj=/^c[^\s-]{8,}$/i,Ej=/^[0-9a-z]+$/,Aj=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Oj=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,kj=/^[a-z0-9_-]{21}$/i,_j=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Ij=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Pj=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Mj="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Od;const Rj=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Tj=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Nj=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Lj=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Dj=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Fj=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Cb="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Bj=new RegExp(`^${Cb}$`);function xb(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function Vj(e){return new RegExp(`^${xb(e)}$`)}function zj(e){let t=`${Cb}T${xb(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function Hj(e,t){return!!((t==="v4"||!t)&&Rj.test(e)||(t==="v6"||!t)&&Nj.test(e))}function jj(e,t){if(!_j.test(e))return!1;try{const[n]=e.split("."),r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),o=JSON.parse(atob(r));return!(typeof o!="object"||o===null||"typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||t&&o.alg!==t)}catch{return!1}}function $j(e,t){return!!((t==="v4"||!t)&&Tj.test(e)||(t==="v6"||!t)&&Lj.test(e))}class Ar extends Ge{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Se.string){const s=this._getOrReturnCtx(t);return ve(s,{code:fe.invalid_type,expected:Se.string,received:s.parsedType}),Ve}const r=new $t;let o;for(const s of this._def.checks)if(s.kind==="min")t.data.length<s.value&&(o=this._getOrReturnCtx(t,o),ve(o,{code:fe.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="max")t.data.length>s.value&&(o=this._getOrReturnCtx(t,o),ve(o,{code:fe.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="length"){const i=t.data.length>s.value,a=t.data.length<s.value;(i||a)&&(o=this._getOrReturnCtx(t,o),i?ve(o,{code:fe.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):a&&ve(o,{code:fe.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),r.dirty())}else if(s.kind==="email")Pj.test(t.data)||(o=this._getOrReturnCtx(t,o),ve(o,{validation:"email",code:fe.invalid_string,message:s.message}),r.dirty());else if(s.kind==="emoji")Od||(Od=new RegExp(Mj,"u")),Od.test(t.data)||(o=this._getOrReturnCtx(t,o),ve(o,{validation:"emoji",code:fe.invalid_string,message:s.message}),r.dirty());else if(s.kind==="uuid")Oj.test(t.data)||(o=this._getOrReturnCtx(t,o),ve(o,{validation:"uuid",code:fe.invalid_string,message:s.message}),r.dirty());else if(s.kind==="nanoid")kj.test(t.data)||(o=this._getOrReturnCtx(t,o),ve(o,{validation:"nanoid",code:fe.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid")Sj.test(t.data)||(o=this._getOrReturnCtx(t,o),ve(o,{validation:"cuid",code:fe.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid2")Ej.test(t.data)||(o=this._getOrReturnCtx(t,o),ve(o,{validation:"cuid2",code:fe.invalid_string,message:s.message}),r.dirty());else if(s.kind==="ulid")Aj.test(t.data)||(o=this._getOrReturnCtx(t,o),ve(o,{validation:"ulid",code:fe.invalid_string,message:s.message}),r.dirty());else if(s.kind==="url")try{new URL(t.data)}catch{o=this._getOrReturnCtx(t,o),ve(o,{validation:"url",code:fe.invalid_string,message:s.message}),r.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(t.data)||(o=this._getOrReturnCtx(t,o),ve(o,{validation:"regex",code:fe.invalid_string,message:s.message}),r.dirty())):s.kind==="trim"?t.data=t.data.trim():s.kind==="includes"?t.data.includes(s.value,s.position)||(o=this._getOrReturnCtx(t,o),ve(o,{code:fe.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),r.dirty()):s.kind==="toLowerCase"?t.data=t.data.toLowerCase():s.kind==="toUpperCase"?t.data=t.data.toUpperCase():s.kind==="startsWith"?t.data.startsWith(s.value)||(o=this._getOrReturnCtx(t,o),ve(o,{code:fe.invalid_string,validation:{startsWith:s.value},message:s.message}),r.dirty()):s.kind==="endsWith"?t.data.endsWith(s.value)||(o=this._getOrReturnCtx(t,o),ve(o,{code:fe.invalid_string,validation:{endsWith:s.value},message:s.message}),r.dirty()):s.kind==="datetime"?zj(s).test(t.data)||(o=this._getOrReturnCtx(t,o),ve(o,{code:fe.invalid_string,validation:"datetime",message:s.message}),r.dirty()):s.kind==="date"?Bj.test(t.data)||(o=this._getOrReturnCtx(t,o),ve(o,{code:fe.invalid_string,validation:"date",message:s.message}),r.dirty()):s.kind==="time"?Vj(s).test(t.data)||(o=this._getOrReturnCtx(t,o),ve(o,{code:fe.invalid_string,validation:"time",message:s.message}),r.dirty()):s.kind==="duration"?Ij.test(t.data)||(o=this._getOrReturnCtx(t,o),ve(o,{validation:"duration",code:fe.invalid_string,message:s.message}),r.dirty()):s.kind==="ip"?Hj(t.data,s.version)||(o=this._getOrReturnCtx(t,o),ve(o,{validation:"ip",code:fe.invalid_string,message:s.message}),r.dirty()):s.kind==="jwt"?jj(t.data,s.alg)||(o=this._getOrReturnCtx(t,o),ve(o,{validation:"jwt",code:fe.invalid_string,message:s.message}),r.dirty()):s.kind==="cidr"?$j(t.data,s.version)||(o=this._getOrReturnCtx(t,o),ve(o,{validation:"cidr",code:fe.invalid_string,message:s.message}),r.dirty()):s.kind==="base64"?Dj.test(t.data)||(o=this._getOrReturnCtx(t,o),ve(o,{validation:"base64",code:fe.invalid_string,message:s.message}),r.dirty()):s.kind==="base64url"?Fj.test(t.data)||(o=this._getOrReturnCtx(t,o),ve(o,{validation:"base64url",code:fe.invalid_string,message:s.message}),r.dirty()):qe.assertNever(s);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(o=>t.test(o),{validation:n,code:fe.invalid_string,...Ae.errToObj(r)})}_addCheck(t){return new Ar({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Ae.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Ae.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Ae.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Ae.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Ae.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Ae.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Ae.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Ae.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Ae.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Ae.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Ae.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Ae.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Ae.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...Ae.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...Ae.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Ae.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Ae.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Ae.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Ae.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Ae.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Ae.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Ae.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Ae.errToObj(n)})}nonempty(t){return this.min(1,Ae.errToObj(t))}trim(){return new Ar({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Ar({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Ar({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Ar.create=e=>new Ar({checks:[],typeName:Be.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...je(e)});function Uj(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=n>r?n:r,s=Number.parseInt(e.toFixed(o).replace(".","")),i=Number.parseInt(t.toFixed(o).replace(".",""));return s%i/10**o}class di extends Ge{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Se.number){const s=this._getOrReturnCtx(t);return ve(s,{code:fe.invalid_type,expected:Se.number,received:s.parsedType}),Ve}let r;const o=new $t;for(const s of this._def.checks)s.kind==="int"?qe.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),ve(r,{code:fe.invalid_type,expected:"integer",received:"float",message:s.message}),o.dirty()):s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(r=this._getOrReturnCtx(t,r),ve(r,{code:fe.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(r=this._getOrReturnCtx(t,r),ve(r,{code:fe.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="multipleOf"?Uj(t.data,s.value)!==0&&(r=this._getOrReturnCtx(t,r),ve(r,{code:fe.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),ve(r,{code:fe.not_finite,message:s.message}),o.dirty()):qe.assertNever(s);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Ae.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Ae.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Ae.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Ae.toString(n))}setLimit(t,n,r,o){return new di({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Ae.toString(o)}]})}_addCheck(t){return new di({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Ae.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Ae.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Ae.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Ae.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Ae.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Ae.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Ae.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Ae.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Ae.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&qe.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}di.create=e=>new di({checks:[],typeName:Be.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...je(e)});class Ja extends Ge{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Se.bigint)return this._getInvalidInput(t);let r;const o=new $t;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(r=this._getOrReturnCtx(t,r),ve(r,{code:fe.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(r=this._getOrReturnCtx(t,r),ve(r,{code:fe.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),ve(r,{code:fe.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):qe.assertNever(s);return{status:o.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return ve(n,{code:fe.invalid_type,expected:Se.bigint,received:n.parsedType}),Ve}gte(t,n){return this.setLimit("min",t,!0,Ae.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Ae.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Ae.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Ae.toString(n))}setLimit(t,n,r,o){return new Ja({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Ae.toString(o)}]})}_addCheck(t){return new Ja({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Ae.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Ae.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Ae.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Ae.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Ae.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Ja.create=e=>new Ja({checks:[],typeName:Be.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...je(e)});class n0 extends Ge{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Se.boolean){const r=this._getOrReturnCtx(t);return ve(r,{code:fe.invalid_type,expected:Se.boolean,received:r.parsedType}),Ve}return wn(t.data)}}n0.create=e=>new n0({typeName:Be.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...je(e)});class gu extends Ge{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Se.date){const s=this._getOrReturnCtx(t);return ve(s,{code:fe.invalid_type,expected:Se.date,received:s.parsedType}),Ve}if(Number.isNaN(t.data.getTime())){const s=this._getOrReturnCtx(t);return ve(s,{code:fe.invalid_date}),Ve}const r=new $t;let o;for(const s of this._def.checks)s.kind==="min"?t.data.getTime()<s.value&&(o=this._getOrReturnCtx(t,o),ve(o,{code:fe.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),r.dirty()):s.kind==="max"?t.data.getTime()>s.value&&(o=this._getOrReturnCtx(t,o),ve(o,{code:fe.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),r.dirty()):qe.assertNever(s);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new gu({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Ae.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Ae.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}gu.create=e=>new gu({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Be.ZodDate,...je(e)});class L9 extends Ge{_parse(t){if(this._getType(t)!==Se.symbol){const r=this._getOrReturnCtx(t);return ve(r,{code:fe.invalid_type,expected:Se.symbol,received:r.parsedType}),Ve}return wn(t.data)}}L9.create=e=>new L9({typeName:Be.ZodSymbol,...je(e)});class D9 extends Ge{_parse(t){if(this._getType(t)!==Se.undefined){const r=this._getOrReturnCtx(t);return ve(r,{code:fe.invalid_type,expected:Se.undefined,received:r.parsedType}),Ve}return wn(t.data)}}D9.create=e=>new D9({typeName:Be.ZodUndefined,...je(e)});class r0 extends Ge{_parse(t){if(this._getType(t)!==Se.null){const r=this._getOrReturnCtx(t);return ve(r,{code:fe.invalid_type,expected:Se.null,received:r.parsedType}),Ve}return wn(t.data)}}r0.create=e=>new r0({typeName:Be.ZodNull,...je(e)});class o0 extends Ge{constructor(){super(...arguments),this._any=!0}_parse(t){return wn(t.data)}}o0.create=e=>new o0({typeName:Be.ZodAny,...je(e)});class s0 extends Ge{constructor(){super(...arguments),this._unknown=!0}_parse(t){return wn(t.data)}}s0.create=e=>new s0({typeName:Be.ZodUnknown,...je(e)});class ls extends Ge{_parse(t){const n=this._getOrReturnCtx(t);return ve(n,{code:fe.invalid_type,expected:Se.never,received:n.parsedType}),Ve}}ls.create=e=>new ls({typeName:Be.ZodNever,...je(e)});class F9 extends Ge{_parse(t){if(this._getType(t)!==Se.undefined){const r=this._getOrReturnCtx(t);return ve(r,{code:fe.invalid_type,expected:Se.void,received:r.parsedType}),Ve}return wn(t.data)}}F9.create=e=>new F9({typeName:Be.ZodVoid,...je(e)});class rr extends Ge{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),o=this._def;if(n.parsedType!==Se.array)return ve(n,{code:fe.invalid_type,expected:Se.array,received:n.parsedType}),Ve;if(o.exactLength!==null){const i=n.data.length>o.exactLength.value,a=n.data.length<o.exactLength.value;(i||a)&&(ve(n,{code:i?fe.too_big:fe.too_small,minimum:a?o.exactLength.value:void 0,maximum:i?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),r.dirty())}if(o.minLength!==null&&n.data.length<o.minLength.value&&(ve(n,{code:fe.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),r.dirty()),o.maxLength!==null&&n.data.length>o.maxLength.value&&(ve(n,{code:fe.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((i,a)=>o.type._parseAsync(new fr(n,i,n.path,a)))).then(i=>$t.mergeArray(r,i));const s=[...n.data].map((i,a)=>o.type._parseSync(new fr(n,i,n.path,a)));return $t.mergeArray(r,s)}get element(){return this._def.type}min(t,n){return new rr({...this._def,minLength:{value:t,message:Ae.toString(n)}})}max(t,n){return new rr({...this._def,maxLength:{value:t,message:Ae.toString(n)}})}length(t,n){return new rr({...this._def,exactLength:{value:t,message:Ae.toString(n)}})}nonempty(t){return this.min(1,t)}}rr.create=(e,t)=>new rr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Be.ZodArray,...je(t)});function Rs(e){if(e instanceof mt){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Wo.create(Rs(r))}return new mt({...e._def,shape:()=>t})}else return e instanceof rr?new rr({...e._def,type:Rs(e.element)}):e instanceof Wo?Wo.create(Rs(e.unwrap())):e instanceof Ka?Ka.create(Rs(e.unwrap())):e instanceof fi?fi.create(e.items.map(t=>Rs(t))):e}class mt extends Ge{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=qe.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==Se.object){const l=this._getOrReturnCtx(t);return ve(l,{code:fe.invalid_type,expected:Se.object,received:l.parsedType}),Ve}const{status:r,ctx:o}=this._processInputParams(t),{shape:s,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof ls&&this._def.unknownKeys==="strip"))for(const l in o.data)i.includes(l)||a.push(l);const c=[];for(const l of i){const u=s[l],d=o.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new fr(o,d,o.path,l)),alwaysSet:l in o.data})}if(this._def.catchall instanceof ls){const l=this._def.unknownKeys;if(l==="passthrough")for(const u of a)c.push({key:{status:"valid",value:u},value:{status:"valid",value:o.data[u]}});else if(l==="strict")a.length>0&&(ve(o,{code:fe.unrecognized_keys,keys:a}),r.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const l=this._def.catchall;for(const u of a){const d=o.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new fr(o,d,o.path,u)),alwaysSet:u in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const l=[];for(const u of c){const d=await u.key,f=await u.value;l.push({key:d,value:f,alwaysSet:u.alwaysSet})}return l}).then(l=>$t.mergeObjectSync(r,l)):$t.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(t){return new mt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var s,i;const o=((i=(s=this._def).errorMap)==null?void 0:i.call(s,n,r).message)??r.defaultError;return n.code==="unrecognized_keys"?{message:Ae.errToObj(t).message??o}:{message:o}}}:{}})}strip(){return new mt({...this._def,unknownKeys:"strip"})}passthrough(){return new mt({...this._def,unknownKeys:"passthrough"})}extend(t){return new mt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new mt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Be.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new mt({...this._def,catchall:t})}pick(t){const n={};for(const r of qe.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new mt({...this._def,shape:()=>n})}omit(t){const n={};for(const r of qe.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new mt({...this._def,shape:()=>n})}deepPartial(){return Rs(this)}partial(t){const n={};for(const r of qe.objectKeys(this.shape)){const o=this.shape[r];t&&!t[r]?n[r]=o:n[r]=o.optional()}return new mt({...this._def,shape:()=>n})}required(t){const n={};for(const r of qe.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let s=this.shape[r];for(;s instanceof Wo;)s=s._def.innerType;n[r]=s}return new mt({...this._def,shape:()=>n})}keyof(){return Sb(qe.objectKeys(this.shape))}}mt.create=(e,t)=>new mt({shape:()=>e,unknownKeys:"strip",catchall:ls.create(),typeName:Be.ZodObject,...je(t)});mt.strictCreate=(e,t)=>new mt({shape:()=>e,unknownKeys:"strict",catchall:ls.create(),typeName:Be.ZodObject,...je(t)});mt.lazycreate=(e,t)=>new mt({shape:e,unknownKeys:"strip",catchall:ls.create(),typeName:Be.ZodObject,...je(t)});class bu extends Ge{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function o(s){for(const a of s)if(a.result.status==="valid")return a.result;for(const a of s)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const i=s.map(a=>new dr(a.ctx.common.issues));return ve(n,{code:fe.invalid_union,unionErrors:i}),Ve}if(n.common.async)return Promise.all(r.map(async s=>{const i={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:i}),ctx:i}})).then(o);{let s;const i=[];for(const c of r){const l={...n,common:{...n.common,issues:[]},parent:null},u=c._parseSync({data:n.data,path:n.path,parent:l});if(u.status==="valid")return u;u.status==="dirty"&&!s&&(s={result:u,ctx:l}),l.common.issues.length&&i.push(l.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;const a=i.map(c=>new dr(c));return ve(n,{code:fe.invalid_union,unionErrors:a}),Ve}}get options(){return this._def.options}}bu.create=(e,t)=>new bu({options:e,typeName:Be.ZodUnion,...je(t)});function i0(e,t){const n=Kr(e),r=Kr(t);if(e===t)return{valid:!0,data:e};if(n===Se.object&&r===Se.object){const o=qe.objectKeys(t),s=qe.objectKeys(e).filter(a=>o.indexOf(a)!==-1),i={...e,...t};for(const a of s){const c=i0(e[a],t[a]);if(!c.valid)return{valid:!1};i[a]=c.data}return{valid:!0,data:i}}else if(n===Se.array&&r===Se.array){if(e.length!==t.length)return{valid:!1};const o=[];for(let s=0;s<e.length;s++){const i=e[s],a=t[s],c=i0(i,a);if(!c.valid)return{valid:!1};o.push(c.data)}return{valid:!0,data:o}}else return n===Se.date&&r===Se.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class a0 extends Ge{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),o=(s,i)=>{if(R9(s)||R9(i))return Ve;const a=i0(s.value,i.value);return a.valid?((T9(s)||T9(i))&&n.dirty(),{status:n.value,value:a.data}):(ve(r,{code:fe.invalid_intersection_types}),Ve)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([s,i])=>o(s,i)):o(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}a0.create=(e,t,n)=>new a0({left:e,right:t,typeName:Be.ZodIntersection,...je(n)});class fi extends Ge{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Se.array)return ve(r,{code:fe.invalid_type,expected:Se.array,received:r.parsedType}),Ve;if(r.data.length<this._def.items.length)return ve(r,{code:fe.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ve;!this._def.rest&&r.data.length>this._def.items.length&&(ve(r,{code:fe.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const s=[...r.data].map((i,a)=>{const c=this._def.items[a]||this._def.rest;return c?c._parse(new fr(r,i,r.path,a)):null}).filter(i=>!!i);return r.common.async?Promise.all(s).then(i=>$t.mergeArray(n,i)):$t.mergeArray(n,s)}get items(){return this._def.items}rest(t){return new fi({...this._def,rest:t})}}fi.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new fi({items:e,typeName:Be.ZodTuple,rest:null,...je(t)})};class yu extends Ge{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Se.object)return ve(r,{code:fe.invalid_type,expected:Se.object,received:r.parsedType}),Ve;const o=[],s=this._def.keyType,i=this._def.valueType;for(const a in r.data)o.push({key:s._parse(new fr(r,a,r.path,a)),value:i._parse(new fr(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?$t.mergeObjectAsync(n,o):$t.mergeObjectSync(n,o)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof Ge?new yu({keyType:t,valueType:n,typeName:Be.ZodRecord,...je(r)}):new yu({keyType:Ar.create(),valueType:t,typeName:Be.ZodRecord,...je(n)})}}class B9 extends Ge{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Se.map)return ve(r,{code:fe.invalid_type,expected:Se.map,received:r.parsedType}),Ve;const o=this._def.keyType,s=this._def.valueType,i=[...r.data.entries()].map(([a,c],l)=>({key:o._parse(new fr(r,a,r.path,[l,"key"])),value:s._parse(new fr(r,c,r.path,[l,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const c of i){const l=await c.key,u=await c.value;if(l.status==="aborted"||u.status==="aborted")return Ve;(l.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(l.value,u.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const c of i){const l=c.key,u=c.value;if(l.status==="aborted"||u.status==="aborted")return Ve;(l.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(l.value,u.value)}return{status:n.value,value:a}}}}B9.create=(e,t,n)=>new B9({valueType:t,keyType:e,typeName:Be.ZodMap,...je(n)});class Ya extends Ge{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Se.set)return ve(r,{code:fe.invalid_type,expected:Se.set,received:r.parsedType}),Ve;const o=this._def;o.minSize!==null&&r.data.size<o.minSize.value&&(ve(r,{code:fe.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),n.dirty()),o.maxSize!==null&&r.data.size>o.maxSize.value&&(ve(r,{code:fe.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());const s=this._def.valueType;function i(c){const l=new Set;for(const u of c){if(u.status==="aborted")return Ve;u.status==="dirty"&&n.dirty(),l.add(u.value)}return{status:n.value,value:l}}const a=[...r.data.values()].map((c,l)=>s._parse(new fr(r,c,r.path,l)));return r.common.async?Promise.all(a).then(c=>i(c)):i(a)}min(t,n){return new Ya({...this._def,minSize:{value:t,message:Ae.toString(n)}})}max(t,n){return new Ya({...this._def,maxSize:{value:t,message:Ae.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Ya.create=(e,t)=>new Ya({valueType:e,minSize:null,maxSize:null,typeName:Be.ZodSet,...je(t)});class c0 extends Ge{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}c0.create=(e,t)=>new c0({getter:e,typeName:Be.ZodLazy,...je(t)});class l0 extends Ge{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return ve(n,{received:n.data,code:fe.invalid_literal,expected:this._def.value}),Ve}return{status:"valid",value:t.data}}get value(){return this._def.value}}l0.create=(e,t)=>new l0({value:e,typeName:Be.ZodLiteral,...je(t)});function Sb(e,t){return new hi({values:e,typeName:Be.ZodEnum,...je(t)})}class hi extends Ge{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return ve(n,{expected:qe.joinValues(r),received:n.parsedType,code:fe.invalid_type}),Ve}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return ve(n,{received:n.data,code:fe.invalid_enum_value,options:r}),Ve}return wn(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return hi.create(t,{...this._def,...n})}exclude(t,n=this._def){return hi.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}hi.create=Sb;class V9 extends Ge{_parse(t){const n=qe.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Se.string&&r.parsedType!==Se.number){const o=qe.objectValues(n);return ve(r,{expected:qe.joinValues(o),received:r.parsedType,code:fe.invalid_type}),Ve}if(this._cache||(this._cache=new Set(qe.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const o=qe.objectValues(n);return ve(r,{received:r.data,code:fe.invalid_enum_value,options:o}),Ve}return wn(t.data)}get enum(){return this._def.values}}V9.create=(e,t)=>new V9({values:e,typeName:Be.ZodNativeEnum,...je(t)});class u0 extends Ge{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Se.promise&&n.common.async===!1)return ve(n,{code:fe.invalid_type,expected:Se.promise,received:n.parsedType}),Ve;const r=n.parsedType===Se.promise?n.data:Promise.resolve(n.data);return wn(r.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}}u0.create=(e,t)=>new u0({type:e,typeName:Be.ZodPromise,...je(t)});class pi extends Ge{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Be.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),o=this._def.effect||null,s={addIssue:i=>{ve(r,i),i.fatal?n.abort():n.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),o.type==="preprocess"){const i=o.transform(r.data,s);if(r.common.async)return Promise.resolve(i).then(async a=>{if(n.value==="aborted")return Ve;const c=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return c.status==="aborted"?Ve:c.status==="dirty"||n.value==="dirty"?sa(c.value):c});{if(n.value==="aborted")return Ve;const a=this._def.schema._parseSync({data:i,path:r.path,parent:r});return a.status==="aborted"?Ve:a.status==="dirty"||n.value==="dirty"?sa(a.value):a}}if(o.type==="refinement"){const i=a=>{const c=o.refinement(a,s);if(r.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?Ve:(a.status==="dirty"&&n.dirty(),i(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?Ve:(a.status==="dirty"&&n.dirty(),i(a.value).then(()=>({status:n.value,value:a.value}))))}if(o.type==="transform")if(r.common.async===!1){const i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!ui(i))return Ve;const a=o.transform(i.value,s);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(i=>ui(i)?Promise.resolve(o.transform(i.value,s)).then(a=>({status:n.value,value:a})):Ve);qe.assertNever(o)}}pi.create=(e,t,n)=>new pi({schema:e,typeName:Be.ZodEffects,effect:t,...je(n)});pi.createWithPreprocess=(e,t,n)=>new pi({schema:t,effect:{type:"preprocess",transform:e},typeName:Be.ZodEffects,...je(n)});class Wo extends Ge{_parse(t){return this._getType(t)===Se.undefined?wn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Wo.create=(e,t)=>new Wo({innerType:e,typeName:Be.ZodOptional,...je(t)});class Ka extends Ge{_parse(t){return this._getType(t)===Se.null?wn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ka.create=(e,t)=>new Ka({innerType:e,typeName:Be.ZodNullable,...je(t)});class d0 extends Ge{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Se.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}d0.create=(e,t)=>new d0({innerType:e,typeName:Be.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...je(t)});class f0 extends Ge{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return mu(o)?o.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new dr(r.common.issues)},input:r.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new dr(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}f0.create=(e,t)=>new f0({innerType:e,typeName:Be.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...je(t)});class z9 extends Ge{_parse(t){if(this._getType(t)!==Se.nan){const r=this._getOrReturnCtx(t);return ve(r,{code:fe.invalid_type,expected:Se.nan,received:r.parsedType}),Ve}return{status:"valid",value:t.data}}}z9.create=e=>new z9({typeName:Be.ZodNaN,...je(e)});class Zj extends Ge{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class xh extends Ge{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?Ve:s.status==="dirty"?(n.dirty(),sa(s.value)):this._def.out._parseAsync({data:s.value,path:r.path,parent:r})})();{const o=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?Ve:o.status==="dirty"?(n.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:r.path,parent:r})}}static create(t,n){return new xh({in:t,out:n,typeName:Be.ZodPipeline})}}class h0 extends Ge{_parse(t){const n=this._def.innerType._parse(t),r=o=>(ui(o)&&(o.value=Object.freeze(o.value)),o);return mu(n)?n.then(o=>r(o)):r(n)}unwrap(){return this._def.innerType}}h0.create=(e,t)=>new h0({innerType:e,typeName:Be.ZodReadonly,...je(t)});var Be;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Be||(Be={}));const de=Ar.create,Xa=di.create,Vq=n0.create,zq=r0.create,Eb=o0.create,Wj=s0.create,Pi=rr.create,Ne=mt.create,Gj=bu.create,H9=yu.create,Sh=c0.create,Mc=l0.create,Rc=hi.create,p0=["@powerhousedao/design-system","document-drive","document-model"],qj=Ne({version:de({message:"Missing version field in package.json"}),dependencies:H9(de(),de()).nullable(),devDependencies:H9(de(),de()).nullable()}).refine(e=>e.dependencies!=null||e.devDependencies!=null,"package.json must have either dependencies or devDependencies").transform(e=>{const t={...e.dependencies,...e.devDependencies},n=p0.filter(r=>!t[r]||typeof t[r]!="string");return n.length>0?(console.error("Missing or invalid dependencies:",n,"Available dependencies:",Object.keys(t)),!1):{version:e.version,dependencies:Object.fromEntries(p0.map(r=>[r,t[r]]))}});function Jj(e){const t=qj.safeParse(e);return t.success?t.data:(console.error("Package.json validation failed:",t.error.format()),!1)}function Yj(e){const[t,n]=we(!1),{packageJson:r,phCliVersion:o}=e,s=Jj(r);return s?p(au,{isOpen:t,onOpenChange:()=>n(!t),title:`App version: ${s.version}`,toggleClassName:"text-gray-900 text-sm",children:q("ul",{className:"text-sm text-gray-600",children:[p0.map(i=>q("li",{className:"my-1 flex justify-between pr-1",children:[q("span",{children:[i.replace("@powerhousedao/",""),":"]}),p("span",{className:"font-normal",children:s.dependencies[i]})]},i)),o&&q("li",{className:"my-1 flex justify-between pr-1",children:[p("span",{children:"@powerhousedao/ph-cli:"}),p("span",{className:"font-normal",children:o})]},"ph-cli")]})}):(console.error("Failed to validate package.json data"),null)}function Hq(e){const{packageJson:t,phCliVersion:n}=e;return q("div",{className:"bg-white p-3",children:[p("h2",{className:"font-semibold",children:"About"}),p("p",{className:"text-sm font-normal text-gray-600",children:"Connect is the hub for your most important documents and processes translated into software. Easily capture data in a structured way with Connect."}),p("div",{className:"my-4",children:p(Yj,{packageJson:t,phCliVersion:n})})]})}const Kj=new RegExp("([\\p{Ll}\\d])(\\p{Lu})","gu"),Xj=new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])","gu"),Qj=new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d","u"),e$=/[^\p{L}\d]+/giu,j9="$1\0$2",$9="";function Ab(e){let t=e.trim();t=t.replace(Kj,j9).replace(Xj,j9),t=t.replace(e$,"\0");let n=0,r=t.length;for(;t.charAt(n)==="\0";)n++;if(n===r)return[];for(;t.charAt(r-1)==="\0";)r--;return t.slice(n,r).split(/\0/g)}function t$(e){const t=Ab(e);for(let n=0;n<t.length;n++){const r=t[n],o=Qj.exec(r);if(o){const s=o.index+(o[1]??o[2]).length;t.splice(n,1,r.slice(0,s),r.slice(s))}}return t}function Ob(e,t){const[n,r,o]=Tc(e,t);return n+r.map(x1(t==null?void 0:t.locale)).join((t==null?void 0:t.delimiter)??" ")+o}function U9(e,t){const[n,r,o]=Tc(e,t),s=x1(t==null?void 0:t.locale),i=S1(t==null?void 0:t.locale),a=t!=null&&t.mergeAmbiguousCharacters?Eh(s,i):n$(s,i);return n+r.map(a).join((t==null?void 0:t.delimiter)??"")+o}function Z9(e,t){const[n,r,o]=Tc(e,t),s=x1(t==null?void 0:t.locale),i=S1(t==null?void 0:t.locale);return n+r.map(Eh(s,i)).join(" ")+o}function jq(e,t){const[n,r,o]=Tc(e,t);return n+r.map(S1(t==null?void 0:t.locale)).join("_")+o}function $q(e,t){return Ob(e,{delimiter:"-",...t})}function Uq(e,t){const[n,r,o]=Tc(e,t),s=x1(t==null?void 0:t.locale),i=S1(t==null?void 0:t.locale),a=Eh(s,i);return n+r.map((c,l)=>l===0?a(c):s(c)).join(" ")+o}function Zq(e,t){return Ob(e,{delimiter:"_",...t})}function x1(e){return e===!1?t=>t.toLowerCase():t=>t.toLocaleLowerCase(e)}function S1(e){return e===!1?t=>t.toUpperCase():t=>t.toLocaleUpperCase(e)}function Eh(e,t){return n=>`${t(n[0])}${e(n.slice(1))}`}function n$(e,t){return(n,r)=>{const o=n[0];return(r>0&&o>="0"&&o<="9"?"_"+o:t(o))+e(n.slice(1))}}function Tc(e,t={}){const n=t.split??(t.separateNumbers?t$:Ab),r=t.prefixCharacters??$9,o=t.suffixCharacters??$9;let s=0,i=e.length;for(;s<e.length;){const a=e.charAt(s);if(!r.includes(a))break;s++}for(;i>s;){const a=i-1,c=e.charAt(a);if(!o.includes(c))break;i=a}return[e.slice(0,s),n(e.slice(s,i)),e.slice(i)]}function Wq(e){const{className:t,...n}=e;return q("div",{className:Pe("h-full rounded-lg bg-white p-3",t),children:[p("h2",{className:"mb-4 font-semibold",children:"Modify Drives"}),p(r$,{...n}),p("h2",{className:"my-4 font-semibold",children:"Local Storage"}),p(i$,{...n})]})}function r$(e){const{className:t,...n}=e;return p("div",{className:t,children:p(o$,{...n})})}function o$(e){const{className:t,...n}=e;return p("div",{className:t,children:e.drives.map(r=>p(s$,{drive:r,...n},r.header.id))})}function s$(e){const{drive:t,className:n,onDeleteDrive:r}=e,[o,s]=we(!1),i=p(ue,{name:"Hdd",size:16,className:"flex-none"}),a=p(ue,{name:"Server",size:16,className:"flex-none"}),c=t.state.global.icon?p("img",{alt:"drive icon",className:"size-4 flex-none object-contain",src:t.state.global.icon}):p(ue,{name:"M",size:16,className:"flex-none"});function l(f){if(!f)return"PUBLIC";const h="readContext"in f,{sharingType:g}=h?{sharingType:"PUBLIC"}:f.state.local,m=g==null?void 0:g.toUpperCase();return m==="PRIVATE"?"LOCAL":m}function u(){const f=l(t);return f===_1?c:f===gv?a:i}const d=u();return q("div",{className:Pe("mb-4 flex w-96 items-center gap-2 rounded-md border border-gray-200 bg-gray-50 px-3 py-2 shadow-sm last-of-type:mb-0",n),children:[d,q("div",{children:[p("span",{className:"block text-sm font-medium leading-[18px]",children:Z9(t.header.name)}),q("div",{className:"flex items-baseline gap-x-2 leading-[18px]",children:[q("span",{className:"text-sm text-gray-600",children:[Z9(l(t))," App"]}),q("a",{className:"group flex items-center gap-x-2 text-sm text-slate-500 transition-colors hover:text-[#9896FF]",children:["By Powerhouse",p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",className:"size-4 text-gray-400 transition-colors group-hover:text-inherit",children:p("path",{d:"M7.99365 11.9939C9.46632 11.9939 10.6603 10.7999 10.6603 9.32722V7.32722C10.6603 6.95922 10.3617 6.66056 9.99365 6.66056C9.62565 6.66056 9.32699 6.95922 9.32699 7.32722V9.32722C9.32699 10.0639 8.73032 10.6606 7.99365 10.6606H2.66032C1.92365 10.6606 1.32699 10.0639 1.32699 9.32722V3.99389C1.32699 3.25723 1.92365 2.66056 2.66032 2.66056H4.66032C5.02832 2.66056 5.32699 2.36189 5.32699 1.99389C5.32699 1.6259 5.02832 1.32723 4.66032 1.32723H2.66032C1.18765 1.32723 -0.00634766 2.52123 -0.00634766 3.99389V9.32722C-0.00634766 10.7999 1.18765 11.9939 2.66032 11.9939H7.99365ZM5.32699 7.32722C5.49765 7.32722 5.67565 7.26989 5.80632 7.13989L10.1396 2.80656L11.9937 4.66056V-0.00610352H7.32699L9.18099 1.8479L4.84766 6.18123C4.58766 6.4419 4.58766 6.87922 4.84766 7.13989C4.97832 7.26989 5.15632 7.32722 5.32699 7.32722Z",fill:"currentColor"})})]})]})]}),p(Qu,{items:[{id:"delete-drive",label:"Delete",icon:p(ue,{name:"Trash"}),className:"text-red-900"}],onItemClick:f=>{f==="delete-drive"&&r(t)},onOpenChange:s,open:o,children:p("button",{className:"group ml-auto flex-none",onClick:f=>{f.stopPropagation(),s(!0)},children:p(ue,{className:"text-gray-600 group-hover:text-gray-900",name:"VerticalDots",size:16})})})]})}function i$(e){const{onClearStorage:t}=e;return p("div",{children:q("button",{className:"flex items-center gap-x-2 rounded-md border border-gray-300 bg-transparent px-3 py-1 text-sm font-medium text-red-900 transition-colors hover:bg-gray-100",onClick:t,children:["Clear Storage ",p(ue,{name:"Trash",size:16})]})})}function Gq(e){const{className:t,...n}=e;return p("div",{className:he("rounded-lg p-3",t),children:p(a$,{...n})})}function a$(e){const{documentModelEditor:t,setDocumentModelEditor:n,documentModelEditorOptions:r,className:o}=e;return q("div",{children:[p("h3",{className:"mb-4 font-semibold text-gray-900",children:"Default Editor Selection"}),p(b2,{className:he("min-w-36 max-w-fit",o),name:"default-editor",required:!0,value:t,options:r,multiple:!1,onChange:s=>n(s)})]})}const c$={npm:{icon:"Npm"},github:{icon:"Github",size:28},local:{icon:"Hdd"}},l$=({packageName:e,provider:t})=>{const n=t&&c$[t];return q("div",{className:"flex w-full items-center justify-between px-2 py-1",children:[p("p",{className:"font-medium",children:e}),n&&p(ue,{name:n.icon,size:n.size})]})},u$=e=>{const{onInstall:t,packageOptions:n,className:r}=e,[o,s]=we(""),[i,a]=we(!1),[c,l]=we(),u=Te(()=>{const g=t(o);g?(a(!0),g.then(()=>s("")).catch(l).finally(()=>a(!1))):(s(""),l(void 0))},[t,o]),d=Te(g=>{s(g.target.value)},[]),f=c?typeof c=="string"?c:c instanceof Error?c.message:c:" ",h=bt(()=>{const g=n==null?void 0:n.map(m=>({...m,value:m.packageName}));return n!=null&&n.length?{autoComplete:!0,initialOptions:g,fetchOptionsCallback:m=>(g==null?void 0:g.filter(b=>b.packageName.toLowerCase().includes(m.toLowerCase())))??[],renderOption:m=>p(l$,{...m})}:{autoComplete:!1}},[n]);return q("div",{className:r,children:[p("h3",{className:"mb-4 font-semibold text-gray-900",children:"Install Package"}),q("div",{className:"flex items-center gap-4",children:[n!=null&&n.length?p(V4,{...h,onChange:s}):p(Gu,{name:"package",className:"max-w-xs text-gray-700",value:o,onChange:d,onSubmit:u,disabled:i}),p(yn,{className:"h-9 rounded-md text-sm",onClick:u,disabled:i,children:"Install"})]}),p("p",{className:"mb-3 ml-2 h-3 text-sm text-red-800",children:f})]})},hl=({label:e,value:t})=>q("div",{className:"flex items-start gap-2 text-sm",children:[q("p",{className:"text-gray-600",children:[e,":"]}),p("p",{className:"text-gray-600",children:t})]}),d$=e=>{const{package:{name:t,description:n,category:r,publisher:o,publisherUrl:s,modules:i,id:a,removable:c},mutable:l,onUninstall:u,className:d}=e,[f,h]=we(!1);return q("li",{className:he("relative flex flex-col items-start rounded-md border border-gray-200 p-3 text-sm leading-5 shadow-sm",d),children:[p("h3",{className:"font-semibold text-gray-900",children:t}),p(hl,{label:"Description",value:n}),p(hl,{label:"Category",value:r}),p(hl,{label:"Publisher",value:o}),p(hl,{label:"Publisher URL",value:p("a",{className:"underline",href:s,children:s})}),p("p",{className:"text-sm text-gray-600",children:"Modules included:"}),p("ul",{className:"list-disc pl-5",children:i.map(g=>p("li",{children:p("span",{className:"text-gray-600",children:g})},g))}),l&&c&&p(Qu,{items:[{id:"uninstall",label:"Uninstall",icon:p(ue,{name:"Trash"}),className:"text-red-900"}],onItemClick:g=>{g==="uninstall"&&u(a)},onOpenChange:h,open:f,children:p("button",{className:"group absolute right-3 top-3",onClick:g=>{g.stopPropagation(),h(!0)},children:p(ue,{className:"text-gray-600 group-hover:text-gray-900",name:"VerticalDots"})})})]})},f$=e=>{const{className:t,packages:n,onUninstall:r,mutable:o,...s}=e,i=Te(a=>{r(a)},[r]);return q("div",{...s,className:he("flex max-h-[370px] flex-col items-stretch overflow-hidden",t),children:[p("h3",{className:"mb-4 font-semibold text-gray-900",children:"Installed Packages"}),p("div",{className:"flex-1 overflow-y-auto pr-2",children:p("ul",{className:"flex flex-col items-stretch gap-4 pr-2",children:n.map(a=>p(d$,{package:a,onUninstall:i,mutable:o},a.id))})})]})},h$=e=>{const{reactorOptions:t,reactor:n,onReactorChange:r,...o}=e,s=Te(i=>{r(Array.isArray(i)?i.at(-1):i)},[r]);return q("div",{...o,children:[p("h3",{className:"mb-4 font-semibold text-gray-900",children:"Select Reactor"}),p(b2,{className:"min-w-36 max-w-fit",name:"reactor",required:!0,value:n,options:t,multiple:!1,onChange:s})]})},qq=e=>{const{className:t,reactorOptions:n,reactor:r,onReactorChange:o,onInstall:s,packages:i,onUninstall:a,mutable:c,packageOptions:l,...u}=e,d=bt(()=>l==null?void 0:l.filter(f=>!i.find(h=>h.name===f.packageName)),[i,l]);return q("div",{...u,className:he("flex h-full flex-1 flex-col rounded-lg p-3",t),children:[p(h$,{reactor:r,reactorOptions:n,onReactorChange:o,className:"mb-4"}),c&&p(u$,{onInstall:s,packageOptions:d}),p(f$,{packages:i,onUninstall:a,mutable:c})]})};function Jq(e){var h,g;const{title:t,overlayProps:n,contentProps:r,onOpenChange:o,tabs:s,defaultTab:i,...a}=e,[c,l]=we(i??((h=s.at(0))==null?void 0:h.id)),u=s.map(m=>p("button",{type:"button",onClick:()=>l(m.id),children:q("div",{className:he("flex h-9 w-48 cursor-pointer items-center gap-x-2 rounded-md pl-3 hover:bg-slate-50",c===m.id?"bg-slate-50":"bg-transparent"),children:[m.icon,p("span",{children:m.label})]})},m.id)),f=(g=s.find(m=>m.id===c))==null?void 0:g.content;return q(Vr,{contentProps:{...r,className:he("min-h-full w-full max-w-4xl rounded-xl",r==null?void 0:r.className),style:{...r==null?void 0:r.style,boxShadow:"0px 0px 16px 4px rgba(0, 0, 0, 0.04), 0px 33px 32px -16px rgba(0, 0, 0, 0.10)"}},onOpenChange:o,overlayProps:{...n,className:he("py-28",n==null?void 0:n.className)},...a,children:[q("div",{className:"flex justify-between border-b border-slate-50 p-4",children:[p("h1",{className:"text-center text-xl font-semibold",children:t}),p("button",{type:"button",className:"flex size-6 items-center justify-center rounded-md outline-none",onClick:()=>o==null?void 0:o(!1),children:p(ue,{name:"XmarkLight",size:24})})]}),q("div",{className:"flex flex-1",children:[p("div",{className:"flex flex-col gap-y-1 p-3 pt-6",children:u}),p("div",{className:"m-6 flex h-full flex-1 flex-col overflow-hidden rounded-lg border border-slate-50",children:typeof f=="function"?p(f,{}):f})]})]})}const W9="min-h-[48px] min-w-[142px] text-base font-semibold py-3 px-6 rounded-xl outline-none active:opacity-75 hover:scale-105 transform transition-all";function Yq(e){const{body:t,header:n,onOpenChange:r,onContinue:o,cancelLabel:s,continueLabel:i,overlayProps:a,contentProps:c,...l}=e;return p(Vr,{contentProps:{...c,className:he("rounded-3xl",c==null?void 0:c.className)},onOpenChange:r,overlayProps:{...a,className:a==null?void 0:a.className},...l,children:q("div",{className:"w-[400px] p-6 text-slate-300",children:[p("div",{className:"border-b border-slate-50 pb-2 text-2xl font-bold text-gray-800",children:n}),p("div",{className:"my-6 rounded-md bg-slate-50 p-4 text-center",children:t}),q("div",{className:"mt-8 flex justify-between gap-3",children:[p("button",{className:he(W9,"flex-1 bg-slate-50 text-slate-800"),onClick:()=>r==null?void 0:r(!1),children:s}),p("button",{className:he(W9,"flex-1 bg-gray-800 text-gray-50"),onClick:o,children:i})]})]})})}function Ah(e){const{onSubmit:t,onCancel:n,defaultValue:r,className:o,minLength:s=1,...i}=e,[a,c]=we(r??""),l=Je(null);iP(l,u),F4("keyup",d=>{d.key==="Enter"&&u(),d.key==="Escape"&&n()}),mi(()=>{setTimeout(()=>{var d,f,h;(d=l.current)==null||d.focus(),(f=l.current)==null||f.select(),(h=l.current)==null||h.scroll({left:9999})},100)},[]);function u(){a.length>=s&&t(a)}return p("input",{...i,autoFocus:!0,className:he("bg-inherit text-inherit outline-none",o),minLength:s,onChange:d=>c(d.target.value),ref:l,required:!0,type:"text",value:a})}const p$=[1518500249,1859775393,-1894007588,-899497514];function m$(e){return new g$}class g${constructor(){this.A=1732584193,this.B=-271733879,this.C=-1732584194,this.D=271733878,this.E=-1009589776,this._size=0,this._sp=0,(!pl||Ji>=8e3)&&(pl=new ArrayBuffer(8e3),Ji=0),this._byte=new Uint8Array(pl,Ji,80),this._word=new Int32Array(pl,Ji,20),Ji+=80}update(t){if(typeof t=="string")return this._utf8(t);if(t==null)throw new TypeError("Invalid type: "+typeof t);const n=t.byteOffset,r=t.byteLength;let o=r/64|0,s=0;if(o&&!(n&3)&&!(this._size%64)){const a=new Int32Array(t.buffer,n,o*16);for(;o--;)this._int32(a,s>>2),s+=64;this._size+=s}if(t.BYTES_PER_ELEMENT!==1&&t.buffer){const a=new Uint8Array(t.buffer,n+s,r-s);return this._uint8(a)}return s===r?this:this._uint8(t,s)}_uint8(t,n){const{_byte:r,_word:o}=this,s=t.length;for(n=n|0;n<s;){const i=this._size%64;let a=i;for(;n<s&&a<64;)r[a++]=t[n++];a>=64&&this._int32(o),this._size+=a-i}return this}_utf8(t){const{_byte:n,_word:r}=this,o=t.length;let s=this._sp;for(let i=0;i<o;){const a=this._size%64;let c=a;for(;i<o&&c<64;){let l=t.charCodeAt(i++)|0;l<128?n[c++]=l:l<2048?(n[c++]=192|l>>>6,n[c++]=128|l&63):l<55296||l>57343?(n[c++]=224|l>>>12,n[c++]=128|l>>>6&63,n[c++]=128|l&63):s?(l=((s&1023)<<10)+(l&1023)+65536,n[c++]=240|l>>>18,n[c++]=128|l>>>12&63,n[c++]=128|l>>>6&63,n[c++]=128|l&63,s=0):s=l}c>=64&&(this._int32(r),r[0]=r[16]),this._size+=c-a}return this._sp=s,this}_int32(t,n){let{A:r,B:o,C:s,D:i,E:a}=this,c=0;for(n=n|0;c<16;)Oo[c++]=qr(t[n++]);for(c=16;c<80;c++)Oo[c]=v$(Oo[c-3]^Oo[c-8]^Oo[c-14]^Oo[c-16]);for(c=0;c<80;c++){const l=c/20|0,u=w$(r)+x$(l,o,s,i)+a+Oo[c]+p$[l]|0;a=i,i=s,s=C$(o),o=r,r=u}this.A=r+this.A|0,this.B=o+this.B|0,this.C=s+this.C|0,this.D=i+this.D|0,this.E=a+this.E|0}digest(t){const{_byte:n,_word:r}=this;let o=this._size%64|0;for(n[o++]=128;o&3;)n[o++]=0;if(o>>=2,o>14){for(;o<16;)r[o++]=0;o=0,this._int32(r)}for(;o<16;)r[o++]=0;const s=this._size*8,i=(s&4294967295)>>>0,a=(s-i)/4294967296;return a&&(r[14]=qr(a)),i&&(r[15]=qr(i)),this._int32(r),t==="hex"?this._hex():this._bin()}_hex(){const{A:t,B:n,C:r,D:o,E:s}=this;return Yi(t)+Yi(n)+Yi(r)+Yi(o)+Yi(s)}_bin(){const{A:t,B:n,C:r,D:o,E:s,_byte:i,_word:a}=this;return a[0]=qr(t),a[1]=qr(n),a[2]=qr(r),a[3]=qr(o),a[4]=qr(s),i.slice(0,20)}}const Oo=new Int32Array(80);let pl,Ji=0;const Yi=e=>(e+4294967296).toString(16).substr(-8),b$=e=>e<<24&4278190080|e<<8&16711680|e>>8&65280|e>>24&255,y$=e=>e,qr=S$()?y$:b$,v$=e=>e<<1|e>>>31,w$=e=>e<<5|e>>>27,C$=e=>e<<30|e>>>2;function x$(e,t,n,r){return e===0?t&n|~t&r:e===2?t&n|t&r|n&r:t^n^r}function S$(){return new Uint8Array(new Uint16Array([65279]).buffer)[0]===254}const kb=new Error("File system not available.");function _b(){if(typeof crypto>"u"||!crypto.randomUUID)throw new Error("generateUUID is not available in unsecure contexts.");return crypto.randomUUID()}function E$(e,t,n){throw kb}function A$(e){throw kb}const Ib=(e,t="sha1")=>{if(!["sha1"].includes(t))throw new Error("Hashing algorithm not supported: Available: sha1");const n=k$(e);return O$(n)};function O$(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function k$(e,t="sha1"){if(!["sha1"].includes(t))throw new Error("Hashing algorithm not supported: Available: sha1");return m$().update(e).digest()}var ml={exports:{}},G9;function _$(){return G9||(G9=1,function(e,t){const{hasOwnProperty:n}=Object.prototype,r=y();r.configure=y,r.stringify=r,r.default=r,t.stringify=r,t.configure=y,e.exports=r;const o=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function s(v){return v.length<5e3&&!o.test(v)?`"${v}"`:JSON.stringify(v)}function i(v,w){if(v.length>200||w)return v.sort(w);for(let x=1;x<v.length;x++){const C=v[x];let S=x;for(;S!==0&&v[S-1]>C;)v[S]=v[S-1],S--;v[S]=C}return v}const a=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function c(v){return a.call(v)!==void 0&&v.length!==0}function l(v,w,x){v.length<x&&(x=v.length);const C=w===","?"":" ";let S=`"0":${C}${v[0]}`;for(let A=1;A<x;A++)S+=`${w}"${A}":${C}${v[A]}`;return S}function u(v){if(n.call(v,"circularValue")){const w=v.circularValue;if(typeof w=="string")return`"${w}"`;if(w==null)return w;if(w===Error||w===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}function d(v){let w;if(n.call(v,"deterministic")&&(w=v.deterministic,typeof w!="boolean"&&typeof w!="function"))throw new TypeError('The "deterministic" argument must be of type boolean or comparator function');return w===void 0?!0:w}function f(v,w){let x;if(n.call(v,w)&&(x=v[w],typeof x!="boolean"))throw new TypeError(`The "${w}" argument must be of type boolean`);return x===void 0?!0:x}function h(v,w){let x;if(n.call(v,w)){if(x=v[w],typeof x!="number")throw new TypeError(`The "${w}" argument must be of type number`);if(!Number.isInteger(x))throw new TypeError(`The "${w}" argument must be an integer`);if(x<1)throw new RangeError(`The "${w}" argument must be >= 1`)}return x===void 0?1/0:x}function g(v){return v===1?"1 item":`${v} items`}function m(v){const w=new Set;for(const x of v)(typeof x=="string"||typeof x=="number")&&w.add(String(x));return w}function b(v){if(n.call(v,"strict")){const w=v.strict;if(typeof w!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(w)return x=>{let C=`Object can not safely be stringified. Received type ${typeof x}`;throw typeof x!="function"&&(C+=` (${x.toString()})`),new Error(C)}}}function y(v){v={...v};const w=b(v);w&&(v.bigint===void 0&&(v.bigint=!1),"circularValue"in v||(v.circularValue=Error));const x=u(v),C=f(v,"bigint"),S=d(v),A=typeof S=="function"?S:void 0,k=h(v,"maximumDepth"),O=h(v,"maximumBreadth");function T(V,D,H,N,F,X){let j=D[V];switch(typeof j=="object"&&j!==null&&typeof j.toJSON=="function"&&(j=j.toJSON(V)),j=N.call(D,V,j),typeof j){case"string":return s(j);case"object":{if(j===null)return"null";if(H.indexOf(j)!==-1)return x;let M="",Y=",";const G=X;if(Array.isArray(j)){if(j.length===0)return"[]";if(k<H.length+1)return'"[Array]"';H.push(j),F!==""&&(X+=F,M+=`
101
- ${X}`,Y=`,
102
- ${X}`);const be=Math.min(j.length,O);let Oe=0;for(;Oe<be-1;Oe++){const tt=T(String(Oe),j,H,N,F,X);M+=tt!==void 0?tt:"null",M+=Y}const He=T(String(Oe),j,H,N,F,X);if(M+=He!==void 0?He:"null",j.length-1>O){const tt=j.length-O-1;M+=`${Y}"... ${g(tt)} not stringified"`}return F!==""&&(M+=`
103
- ${G}`),H.pop(),`[${M}]`}let W=Object.keys(j);const re=W.length;if(re===0)return"{}";if(k<H.length+1)return'"[Object]"';let ee="",ie="";F!==""&&(X+=F,Y=`,
104
- ${X}`,ee=" ");const ce=Math.min(re,O);S&&!c(j)&&(W=i(W,A)),H.push(j);for(let be=0;be<ce;be++){const Oe=W[be],He=T(Oe,j,H,N,F,X);He!==void 0&&(M+=`${ie}${s(Oe)}:${ee}${He}`,ie=Y)}if(re>O){const be=re-O;M+=`${ie}"...":${ee}"${g(be)} not stringified"`,ie=Y}return F!==""&&ie.length>1&&(M=`
105
- ${X}${M}
106
- ${G}`),H.pop(),`{${M}}`}case"number":return isFinite(j)?String(j):w?w(j):"null";case"boolean":return j===!0?"true":"false";case"undefined":return;case"bigint":if(C)return String(j);default:return w?w(j):void 0}}function B(V,D,H,N,F,X){switch(typeof D=="object"&&D!==null&&typeof D.toJSON=="function"&&(D=D.toJSON(V)),typeof D){case"string":return s(D);case"object":{if(D===null)return"null";if(H.indexOf(D)!==-1)return x;const j=X;let M="",Y=",";if(Array.isArray(D)){if(D.length===0)return"[]";if(k<H.length+1)return'"[Array]"';H.push(D),F!==""&&(X+=F,M+=`
107
- ${X}`,Y=`,
108
- ${X}`);const re=Math.min(D.length,O);let ee=0;for(;ee<re-1;ee++){const ce=B(String(ee),D[ee],H,N,F,X);M+=ce!==void 0?ce:"null",M+=Y}const ie=B(String(ee),D[ee],H,N,F,X);if(M+=ie!==void 0?ie:"null",D.length-1>O){const ce=D.length-O-1;M+=`${Y}"... ${g(ce)} not stringified"`}return F!==""&&(M+=`
109
- ${j}`),H.pop(),`[${M}]`}H.push(D);let G="";F!==""&&(X+=F,Y=`,
110
- ${X}`,G=" ");let W="";for(const re of N){const ee=B(re,D[re],H,N,F,X);ee!==void 0&&(M+=`${W}${s(re)}:${G}${ee}`,W=Y)}return F!==""&&W.length>1&&(M=`
111
- ${X}${M}
112
- ${j}`),H.pop(),`{${M}}`}case"number":return isFinite(D)?String(D):w?w(D):"null";case"boolean":return D===!0?"true":"false";case"undefined":return;case"bigint":if(C)return String(D);default:return w?w(D):void 0}}function _(V,D,H,N,F){switch(typeof D){case"string":return s(D);case"object":{if(D===null)return"null";if(typeof D.toJSON=="function"){if(D=D.toJSON(V),typeof D!="object")return _(V,D,H,N,F);if(D===null)return"null"}if(H.indexOf(D)!==-1)return x;const X=F;if(Array.isArray(D)){if(D.length===0)return"[]";if(k<H.length+1)return'"[Array]"';H.push(D),F+=N;let ee=`
113
- ${F}`;const ie=`,
114
- ${F}`,ce=Math.min(D.length,O);let be=0;for(;be<ce-1;be++){const He=_(String(be),D[be],H,N,F);ee+=He!==void 0?He:"null",ee+=ie}const Oe=_(String(be),D[be],H,N,F);if(ee+=Oe!==void 0?Oe:"null",D.length-1>O){const He=D.length-O-1;ee+=`${ie}"... ${g(He)} not stringified"`}return ee+=`
115
- ${X}`,H.pop(),`[${ee}]`}let j=Object.keys(D);const M=j.length;if(M===0)return"{}";if(k<H.length+1)return'"[Object]"';F+=N;const Y=`,
116
- ${F}`;let G="",W="",re=Math.min(M,O);c(D)&&(G+=l(D,Y,O),j=j.slice(D.length),re-=D.length,W=Y),S&&(j=i(j,A)),H.push(D);for(let ee=0;ee<re;ee++){const ie=j[ee],ce=_(ie,D[ie],H,N,F);ce!==void 0&&(G+=`${W}${s(ie)}: ${ce}`,W=Y)}if(M>O){const ee=M-O;G+=`${W}"...": "${g(ee)} not stringified"`,W=Y}return W!==""&&(G=`
117
- ${F}${G}
118
- ${X}`),H.pop(),`{${G}}`}case"number":return isFinite(D)?String(D):w?w(D):"null";case"boolean":return D===!0?"true":"false";case"undefined":return;case"bigint":if(C)return String(D);default:return w?w(D):void 0}}function R(V,D,H){switch(typeof D){case"string":return s(D);case"object":{if(D===null)return"null";if(typeof D.toJSON=="function"){if(D=D.toJSON(V),typeof D!="object")return R(V,D,H);if(D===null)return"null"}if(H.indexOf(D)!==-1)return x;let N="";const F=D.length!==void 0;if(F&&Array.isArray(D)){if(D.length===0)return"[]";if(k<H.length+1)return'"[Array]"';H.push(D);const G=Math.min(D.length,O);let W=0;for(;W<G-1;W++){const ee=R(String(W),D[W],H);N+=ee!==void 0?ee:"null",N+=","}const re=R(String(W),D[W],H);if(N+=re!==void 0?re:"null",D.length-1>O){const ee=D.length-O-1;N+=`,"... ${g(ee)} not stringified"`}return H.pop(),`[${N}]`}let X=Object.keys(D);const j=X.length;if(j===0)return"{}";if(k<H.length+1)return'"[Object]"';let M="",Y=Math.min(j,O);F&&c(D)&&(N+=l(D,",",O),X=X.slice(D.length),Y-=D.length,M=","),S&&(X=i(X,A)),H.push(D);for(let G=0;G<Y;G++){const W=X[G],re=R(W,D[W],H);re!==void 0&&(N+=`${M}${s(W)}:${re}`,M=",")}if(j>O){const G=j-O;N+=`${M}"...":"${g(G)} not stringified"`}return H.pop(),`{${N}}`}case"number":return isFinite(D)?String(D):w?w(D):"null";case"boolean":return D===!0?"true":"false";case"undefined":return;case"bigint":if(C)return String(D);default:return w?w(D):void 0}}function E(V,D,H){if(arguments.length>1){let N="";if(typeof H=="number"?N=" ".repeat(Math.min(H,10)):typeof H=="string"&&(N=H.slice(0,10)),D!=null){if(typeof D=="function")return T("",{"":V},[],D,N,"");if(Array.isArray(D))return B("",V,[],m(D),N,"")}if(N.length!==0)return _("",V,[],N,"")}return R("",V,[])}return E}}(ml,ml.exports)),ml.exports}var I$=_$();const vu=xi(I$),Pb="SET_NAME",ms="UNDO",Mi="REDO",Nc="PRUNE",Mb="LOAD_STATE",ut={Remove:"remove",Replace:"replace",Add:"add"},Rb=Symbol.for("__MUTATIVE_PROXY_DRAFT__"),P$=Symbol("__MUTATIVE_RAW_RETURN_SYMBOL__"),Nl=Symbol.iterator,cn={mutable:"mutable",immutable:"immutable"},Oh={};function ha(e,t){return e instanceof Map?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function q9(e,t){if(t in e){let n=Reflect.getPrototypeOf(e);for(;n;){const r=Reflect.getOwnPropertyDescriptor(n,t);if(r)return r;n=Reflect.getPrototypeOf(n)}}}function kh(e){return Object.getPrototypeOf(e)===Set.prototype}function _h(e){return Object.getPrototypeOf(e)===Map.prototype}function rn(e){var t;return(t=e.copy)!==null&&t!==void 0?t:e.original}function us(e){return!!Ue(e)}function Ue(e){return typeof e!="object"?null:e==null?void 0:e[Rb]}function Ih(e){var t;const n=Ue(e);return n?(t=n.copy)!==null&&t!==void 0?t:n.original:e}function Fn(e,t){if(!e||typeof e!="object")return!1;let n;return Object.getPrototypeOf(e)===Object.prototype||Array.isArray(e)||e instanceof Map||e instanceof Set||!!(t!=null&&t.mark)&&((n=t.mark(e,cn))===cn.immutable||typeof n=="function")}function Tb(e,t=[]){if(Object.hasOwnProperty.call(e,"key")){const n=e.parent.copy,r=Ue(Fr(n,e.key));if(r!==null&&(r==null?void 0:r.original)!==e.original)return null;const o=e.parent.type===3,s=o?Array.from(e.parent.setMap.keys()).indexOf(e.key):e.key;if(!(o&&n.size>s||ha(n,s)))return null;t.push(s)}if(e.parent)return Tb(e.parent,t);t.reverse();try{M$(e.copy,t)}catch{return null}return t}function gs(e){return Array.isArray(e)?1:e instanceof Map?2:e instanceof Set?3:0}function Fr(e,t){return gs(e)===2?e.get(t):e[t]}function Lc(e,t,n){gs(e)===2?e.set(t,n):e[t]=n}function kd(e,t){const n=Ue(e);return(n?rn(n):e)[t]}function _r(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function m0(e){if(e)for(;e.finalities.revoke.length>0;)e.finalities.revoke.pop()()}function No(e,t){return t?e:[""].concat(e).map(n=>{const r=`${n}`;return r.indexOf("/")===-1&&r.indexOf("~")===-1?r:r.replace(/~/g,"~0").replace(/\//g,"~1")}).join("/")}function M$(e,t){for(let n=0;n<t.length-1;n+=1){const r=t[n];if(e=Fr(gs(e)===3?Array.from(e):e,r),typeof e!="object")throw new Error(`Cannot resolve patch at '${t.join("/")}'.`)}return e}function R$(e){const t=Object.create(Object.getPrototypeOf(e));return Reflect.ownKeys(e).forEach(n=>{let r=Reflect.getOwnPropertyDescriptor(e,n);if(r.enumerable&&r.configurable&&r.writable){t[n]=e[n];return}r.writable||(r.writable=!0,r.configurable=!0),(r.get||r.set)&&(r={configurable:!0,writable:!0,enumerable:r.enumerable,value:e[n]}),Reflect.defineProperty(t,n,r)}),t}const T$=Object.prototype.propertyIsEnumerable;function Nb(e,t){let n;if(Array.isArray(e))return Array.prototype.concat.call(e);if(e instanceof Set){if(!kh(e)){const r=Object.getPrototypeOf(e).constructor;return new r(e.values())}return Set.prototype.difference?Set.prototype.difference.call(e,new Set):new Set(e.values())}else if(e instanceof Map){if(!_h(e)){const r=Object.getPrototypeOf(e).constructor;return new r(e)}return new Map(e)}else if(t!=null&&t.mark&&(n=t.mark(e,cn),n!==void 0)&&n!==cn.mutable){if(n===cn.immutable)return R$(e);if(typeof n=="function"){if(t.enablePatches||t.enableAutoFreeze)throw new Error("You can't use mark and patches or auto freeze together.");return n()}throw new Error(`Unsupported mark result: ${n}`)}else if(typeof e=="object"&&Object.getPrototypeOf(e)===Object.prototype){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o]}),Object.getOwnPropertySymbols(e).forEach(o=>{T$.call(e,o)&&(r[o]=e[o])}),r}else throw new Error("Please check mark() to ensure that it is a stable marker draftable function.")}function Ft(e){e.copy||(e.copy=Nb(e.original,e.options))}function ia(e){if(!Fn(e))return Ih(e);if(Array.isArray(e))return e.map(ia);if(e instanceof Map){const n=Array.from(e.entries()).map(([r,o])=>[r,ia(o)]);if(!_h(e)){const r=Object.getPrototypeOf(e).constructor;return new r(n)}return new Map(n)}if(e instanceof Set){const n=Array.from(e).map(ia);if(!kh(e)){const r=Object.getPrototypeOf(e).constructor;return new r(n)}return new Set(n)}const t=Object.create(Object.getPrototypeOf(e));for(const n in e)t[n]=ia(e[n]);return t}function Ll(e){return us(e)?ia(e):e}function or(e){var t;e.assignedMap=(t=e.assignedMap)!==null&&t!==void 0?t:new Map,e.operated||(e.operated=!0,e.parent&&or(e.parent))}function J9(){throw new Error("Cannot modify frozen object")}function Ts(e,t,n,r,o){{n=n??new WeakMap,r=r??[],o=o??[];const i=n.has(e)?n.get(e):e;if(r.length>0){const a=r.indexOf(i);if(i&&typeof i=="object"&&a!==-1)throw r[0]===i?new Error("Forbids circular reference"):new Error(`Forbids circular reference: ~/${o.slice(0,a).map((c,l)=>{if(typeof c=="symbol")return`[${c.toString()}]`;const u=r[l];return typeof c=="object"&&(u instanceof Map||u instanceof Set)?Array.from(u.keys()).indexOf(c):c}).join("/")}`);r.push(i),o.push(t)}else r.push(i)}if(Object.isFrozen(e)||us(e)){r.pop(),o.pop();return}switch(gs(e)){case 2:for(const[a,c]of e)Ts(a,a,n,r,o),Ts(c,a,n,r,o);e.set=e.clear=e.delete=J9;break;case 3:for(const a of e)Ts(a,a,n,r,o);e.add=e.clear=e.delete=J9;break;case 1:Object.freeze(e);let i=0;for(const a of e)Ts(a,i,n,r,o),i+=1;break;default:Object.freeze(e),Object.keys(e).forEach(a=>{const c=e[a];Ts(c,a,n,r,o)})}r.pop(),o.pop()}function Ph(e,t){const n=gs(e);if(n===0)Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)});else if(n===1){let r=0;for(const o of e)t(r,o,e),r+=1}else e.forEach((r,o)=>t(o,r,e))}function Lb(e,t,n){if(us(e)||!Fn(e,n)||t.has(e)||Object.isFrozen(e))return;const r=e instanceof Set,o=r?new Map:void 0;if(t.add(e),Ph(e,(s,i)=>{var a;if(us(i)){const c=Ue(i);Ft(c);const l=!((a=c.assignedMap)===null||a===void 0)&&a.size||c.operated?c.copy:c.original;Lc(r?o:e,s,l)}else Lb(i,t,n)}),o){const s=e,i=Array.from(s);s.clear(),i.forEach(a=>{s.add(o.has(a)?o.get(a):a)})}}function N$(e,t){const n=e.type===3?e.setMap:e.copy;e.finalities.revoke.length>1&&e.assignedMap.get(t)&&n&&Lb(Fr(n,t),e.finalities.handledSet,e.options)}function g0(e){e.type===3&&e.copy&&(e.copy.clear(),e.setMap.forEach(t=>{e.copy.add(Ih(t))}))}function b0(e,t,n,r){if(e.operated&&e.assignedMap&&e.assignedMap.size>0&&!e.finalized){if(n&&r){const s=Tb(e);s&&t(e,s,n,r)}e.finalized=!0}}function Mh(e,t,n,r){const o=Ue(n);o&&(o.callbacks||(o.callbacks=[]),o.callbacks.push((s,i)=>{var a;const c=e.type===3?e.setMap:e.copy;if(_r(Fr(c,t),n)){let l=o.original;o.copy&&(l=o.copy),g0(e),b0(e,r,s,i),e.options.enableAutoFreeze&&(e.options.updatedValues=(a=e.options.updatedValues)!==null&&a!==void 0?a:new WeakMap,e.options.updatedValues.set(l,o.original)),Lc(c,t,l)}}),e.options.enableAutoFreeze&&o.finalities!==e.finalities&&(e.options.enableAutoFreeze=!1)),Fn(n,e.options)&&e.finalities.draft.push(()=>{const s=e.type===3?e.setMap:e.copy;_r(Fr(s,t),n)&&N$(e,t)})}function L$(e,t,n,r,o){let{original:s,assignedMap:i,options:a}=e,c=e.copy;c.length<s.length&&([s,c]=[c,s],[n,r]=[r,n]);for(let l=0;l<s.length;l+=1)if(i.get(l.toString())&&c[l]!==s[l]){const u=t.concat([l]),d=No(u,o);n.push({op:ut.Replace,path:d,value:Ll(c[l])}),r.push({op:ut.Replace,path:d,value:Ll(s[l])})}for(let l=s.length;l<c.length;l+=1){const u=t.concat([l]),d=No(u,o);n.push({op:ut.Add,path:d,value:Ll(c[l])})}if(s.length<c.length){const{arrayLengthAssignment:l=!0}=a.enablePatches;if(l){const u=t.concat(["length"]),d=No(u,o);r.push({op:ut.Replace,path:d,value:s.length})}else for(let u=c.length;s.length<u;u-=1){const d=t.concat([u-1]),f=No(d,o);r.push({op:ut.Remove,path:f})}}}function D$({original:e,copy:t,assignedMap:n},r,o,s,i){n.forEach((a,c)=>{const l=Fr(e,c),u=Ll(Fr(t,c)),d=a?ha(e,c)?ut.Replace:ut.Add:ut.Remove;if(_r(l,u)&&d===ut.Replace)return;const f=r.concat(c),h=No(f,i);o.push(d===ut.Remove?{op:d,path:h}:{op:d,path:h,value:u}),s.push(d===ut.Add?{op:ut.Remove,path:h}:d===ut.Remove?{op:ut.Add,path:h,value:l}:{op:ut.Replace,path:h,value:l})})}function F$({original:e,copy:t},n,r,o,s){let i=0;e.forEach(a=>{if(!t.has(a)){const c=n.concat([i]),l=No(c,s);r.push({op:ut.Remove,path:l,value:a}),o.unshift({op:ut.Add,path:l,value:a})}i+=1}),i=0,t.forEach(a=>{if(!e.has(a)){const c=n.concat([i]),l=No(c,s);r.push({op:ut.Add,path:l,value:a}),o.unshift({op:ut.Remove,path:l,value:a})}i+=1})}function Qa(e,t,n,r){const{pathAsArray:o=!0}=e.options.enablePatches;switch(e.type){case 0:case 2:return D$(e,t,n,r,o);case 1:return L$(e,t,n,r,o);case 3:return F$(e,t,n,r,o)}}let y0=!1;const wu=(e,t,n=!1)=>{if(typeof e=="object"&&e!==null&&(!Fn(e,t)||n)&&!y0)throw new Error("Strict mode: Mutable data cannot be accessed directly, please use 'unsafe(callback)' wrap.")};function B$(e){y0=!0;let t;try{t=e()}finally{y0=!1}return t}const v0={get size(){return rn(Ue(this)).size},has(e){return rn(Ue(this)).has(e)},set(e,t){const n=Ue(this),r=rn(n);return(!r.has(e)||!_r(r.get(e),t))&&(Ft(n),or(n),n.assignedMap.set(e,!0),n.copy.set(e,t),Mh(n,e,t,Qa)),this},delete(e){if(!this.has(e))return!1;const t=Ue(this);return Ft(t),or(t),t.original.has(e)?t.assignedMap.set(e,!1):t.assignedMap.delete(e),t.copy.delete(e),!0},clear(){const e=Ue(this);if(this.size){Ft(e),or(e),e.assignedMap=new Map;for(const[t]of e.original)e.assignedMap.set(t,!1);e.copy.clear()}},forEach(e,t){const n=Ue(this);rn(n).forEach((r,o)=>{e.call(t,this.get(o),o,this)})},get(e){var t,n;const r=Ue(this),o=rn(r).get(e),s=((n=(t=r.options).mark)===null||n===void 0?void 0:n.call(t,o,cn))===cn.mutable;if(r.options.strict&&wu(o,r.options,s),s||r.finalized||!Fn(o,r.options)||o!==r.original.get(e))return o;const i=Oh.createDraft({original:o,parentDraft:r,key:e,finalities:r.finalities,options:r.options});return Ft(r),r.copy.set(e,i),i},keys(){return rn(Ue(this)).keys()},values(){const e=this.keys();return{[Nl]:()=>this.values(),next:()=>{const t=e.next();return t.done?t:{done:!1,value:this.get(t.value)}}}},entries(){const e=this.keys();return{[Nl]:()=>this.entries(),next:()=>{const t=e.next();if(t.done)return t;const n=this.get(t.value);return{done:!1,value:[t.value,n]}}}},[Nl](){return this.entries()}},V$=Reflect.ownKeys(v0),Y9=(e,t,{isValuesIterator:n})=>()=>{var r,o;const s=t.next();if(s.done)return s;const i=s.value;let a=e.setMap.get(i);const c=Ue(a),l=((o=(r=e.options).mark)===null||o===void 0?void 0:o.call(r,a,cn))===cn.mutable;if(e.options.strict&&wu(i,e.options,l),!l&&!c&&Fn(i,e.options)&&!e.finalized&&e.original.has(i)){const u=Oh.createDraft({original:i,parentDraft:e,key:i,finalities:e.finalities,options:e.options});e.setMap.set(i,u),a=u}else c&&(a=c.proxy);return{done:!1,value:n?a:[a,a]}},Cu={get size(){return Ue(this).setMap.size},has(e){const t=Ue(this);if(t.setMap.has(e))return!0;Ft(t);const n=Ue(e);return!!(n&&t.setMap.has(n.original))},add(e){const t=Ue(this);return this.has(e)||(Ft(t),or(t),t.assignedMap.set(e,!0),t.setMap.set(e,e),Mh(t,e,e,Qa)),this},delete(e){if(!this.has(e))return!1;const t=Ue(this);Ft(t),or(t);const n=Ue(e);return n&&t.setMap.has(n.original)?(t.assignedMap.set(n.original,!1),t.setMap.delete(n.original)):(!n&&t.setMap.has(e)?t.assignedMap.set(e,!1):t.assignedMap.delete(e),t.setMap.delete(e))},clear(){if(!this.size)return;const e=Ue(this);Ft(e),or(e);for(const t of e.original)e.assignedMap.set(t,!1);e.setMap.clear()},values(){const e=Ue(this);Ft(e);const t=e.setMap.keys();return{[Symbol.iterator]:()=>this.values(),next:Y9(e,t,{isValuesIterator:!0})}},entries(){const e=Ue(this);Ft(e);const t=e.setMap.keys();return{[Symbol.iterator]:()=>this.entries(),next:Y9(e,t,{isValuesIterator:!1})}},keys(){return this.values()},[Nl](){return this.values()},forEach(e,t){const n=this.values();let r=n.next();for(;!r.done;)e.call(t,r.value,r.value,this),r=n.next()}};Set.prototype.difference&&Object.assign(Cu,{intersection(e){return Set.prototype.intersection.call(new Set(this.values()),e)},union(e){return Set.prototype.union.call(new Set(this.values()),e)},difference(e){return Set.prototype.difference.call(new Set(this.values()),e)},symmetricDifference(e){return Set.prototype.symmetricDifference.call(new Set(this.values()),e)},isSubsetOf(e){return Set.prototype.isSubsetOf.call(new Set(this.values()),e)},isSupersetOf(e){return Set.prototype.isSupersetOf.call(new Set(this.values()),e)},isDisjointFrom(e){return Set.prototype.isDisjointFrom.call(new Set(this.values()),e)}});const z$=Reflect.ownKeys(Cu),Db=new WeakSet,Fb={get(e,t,n){var r,o;const s=(r=e.copy)===null||r===void 0?void 0:r[t];if(s&&Db.has(s))return s;if(t===Rb)return e;let i;if(e.options.mark){const l=t==="size"&&(e.original instanceof Map||e.original instanceof Set)?Reflect.get(e.original,t):Reflect.get(e.original,t,n);if(i=e.options.mark(l,cn),i===cn.mutable)return e.options.strict&&wu(l,e.options,!0),l}const a=rn(e);if(a instanceof Map&&V$.includes(t)){if(t==="size")return Object.getOwnPropertyDescriptor(v0,"size").get.call(e.proxy);const l=v0[t];if(l)return l.bind(e.proxy)}if(a instanceof Set&&z$.includes(t)){if(t==="size")return Object.getOwnPropertyDescriptor(Cu,"size").get.call(e.proxy);const l=Cu[t];if(l)return l.bind(e.proxy)}if(!ha(a,t)){const l=q9(a,t);return l?"value"in l?l.value:(o=l.get)===null||o===void 0?void 0:o.call(e.proxy):void 0}const c=a[t];if(e.options.strict&&wu(c,e.options),e.finalized||!Fn(c,e.options))return c;if(c===kd(e.original,t)){if(Ft(e),e.copy[t]=Rh({original:e.original[t],parentDraft:e,key:e.type===1?Number(t):t,finalities:e.finalities,options:e.options}),typeof i=="function"){const l=Ue(e.copy[t]);return Ft(l),or(l),l.copy}return e.copy[t]}return c},set(e,t,n){var r;if(e.type===3||e.type===2)throw new Error("Map/Set draft does not support any property assignment.");let o;if(e.type===1&&t!=="length"&&!(Number.isInteger(o=Number(t))&&o>=0&&(t===0||o===0||String(o)===String(t))))throw new Error("Only supports setting array indices and the 'length' property.");const s=q9(rn(e),t);if(s!=null&&s.set)return s.set.call(e.proxy,n),!0;const i=kd(rn(e),t),a=Ue(i);return a&&_r(a.original,n)?(e.copy[t]=n,e.assignedMap=(r=e.assignedMap)!==null&&r!==void 0?r:new Map,e.assignedMap.set(t,!1),!0):(_r(n,i)&&(n!==void 0||ha(e.original,t))||(Ft(e),or(e),ha(e.original,t)&&_r(n,e.original[t])?e.assignedMap.delete(t):e.assignedMap.set(t,!0),e.copy[t]=n,Mh(e,t,n,Qa)),!0)},has(e,t){return t in rn(e)},ownKeys(e){return Reflect.ownKeys(rn(e))},getOwnPropertyDescriptor(e,t){const n=rn(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},getPrototypeOf(e){return Reflect.getPrototypeOf(e.original)},setPrototypeOf(){throw new Error("Cannot call 'setPrototypeOf()' on drafts")},defineProperty(){throw new Error("Cannot call 'defineProperty()' on drafts")},deleteProperty(e,t){var n;return e.type===1?Fb.set.call(this,e,t,void 0,e.proxy):(kd(e.original,t)!==void 0||t in e.original?(Ft(e),or(e),e.assignedMap.set(t,!1)):(e.assignedMap=(n=e.assignedMap)!==null&&n!==void 0?n:new Map,e.assignedMap.delete(t)),e.copy&&delete e.copy[t],!0)}};function Rh(e){const{original:t,parentDraft:n,key:r,finalities:o,options:s}=e,i=gs(t),a={type:i,finalized:!1,parent:n,original:t,copy:null,proxy:null,finalities:o,options:s,setMap:i===3?new Map(t.entries()):void 0};(r||"key"in e)&&(a.key=r);const{proxy:c,revoke:l}=Proxy.revocable(i===1?Object.assign([],a):a,Fb);if(o.revoke.push(l),Db.add(c),a.proxy=c,n){const u=n;u.finalities.draft.push((d,f)=>{var h,g;const m=Ue(c);let b=u.type===3?u.setMap:u.copy;const y=Fr(b,r),v=Ue(y);if(v){let w=v.original;v.operated&&(w=Ih(y)),g0(v),b0(v,Qa,d,f),u.options.enableAutoFreeze&&(u.options.updatedValues=(h=u.options.updatedValues)!==null&&h!==void 0?h:new WeakMap,u.options.updatedValues.set(w,v.original)),Lc(b,r,w)}(g=m.callbacks)===null||g===void 0||g.forEach(w=>{w(d,f)})})}else{const u=Ue(c);u.finalities.draft.push((d,f)=>{g0(u),b0(u,Qa,d,f)})}return c}Oh.createDraft=Rh;function H$(e,t,n,r,o){var s;const i=Ue(e),a=(s=i==null?void 0:i.original)!==null&&s!==void 0?s:e,c=!!t.length;if(i!=null&&i.operated)for(;i.finalities.draft.length>0;)i.finalities.draft.pop()(n,r);const l=c?t[0]:i?i.operated?i.copy:i.original:e;return i&&m0(i),o&&Ts(l,l,i==null?void 0:i.options.updatedValues),[l,n&&c?[{op:ut.Replace,path:[],value:t[0]}]:n,r&&c?[{op:ut.Replace,path:[],value:a}]:r]}function j$(e,t){var n;const r={draft:[],revoke:[],handledSet:new WeakSet};let o,s;t.enablePatches&&(o=[],s=[]);const a=((n=t.mark)===null||n===void 0?void 0:n.call(t,e,cn))===cn.mutable||!Fn(e,t)?e:Rh({original:e,parentDraft:null,finalities:r,options:t});return[a,(c=[])=>{const[l,u,d]=H$(a,c,o,s,t.enableAutoFreeze);return t.enablePatches?[l,u,d]:l}]}function w0(e){const{rootDraft:t,value:n,useRawReturn:r=!1,isRoot:o=!0}=e;Ph(n,(s,i,a)=>{const c=Ue(i);if(c&&t&&c.finalities===t.finalities){e.isContainDraft=!0;const l=c.original;if(a instanceof Set){const u=Array.from(a);a.clear(),u.forEach(d=>a.add(s===d?l:d))}else Lc(a,s,l)}else typeof i=="object"&&i!==null&&(e.value=i,e.isRoot=!1,w0(e))}),o&&(e.isContainDraft||console.warn("The return value does not contain any draft, please use 'rawReturn()' to wrap the return value to improve performance."),r&&console.warn("The return value contains drafts, please don't use 'rawReturn()' to wrap the return value."))}function Bb(e){var t;const n=Ue(e);if(!Fn(e,n==null?void 0:n.options))return e;const r=gs(e);if(n&&!n.operated)return n.original;let o;function s(){o=r===2?_h(e)?new Map(e):new(Object.getPrototypeOf(e)).constructor(e):r===3?Array.from(n.setMap.values()):Nb(e,n==null?void 0:n.options)}if(n){n.finalized=!0;try{s()}finally{n.finalized=!1}}else o=e;if(Ph(o,(i,a)=>{if(n&&_r(Fr(n.original,i),a))return;const c=Bb(a);c!==a&&(o===e&&s(),Lc(o,i,c))}),r===3){const i=(t=n==null?void 0:n.original)!==null&&t!==void 0?t:o;return kh(i)?new Set(o):new(Object.getPrototypeOf(i)).constructor(o)}return o}function K9(e){if(!us(e))throw new Error(`current() is only used for Draft, parameter: ${e}`);return Bb(e)}const $$=e=>function t(n,r,o){var s,i,a;if(typeof n=="function"&&typeof r!="function")return function(C,...S){return t(C,A=>n.call(this,A,...S),r)};const c=n,l=r;let u=o;if(typeof r!="function"&&(u=r),u!==void 0&&Object.prototype.toString.call(u)!=="[object Object]")throw new Error(`Invalid options: ${u}, 'options' should be an object.`);u=Object.assign(Object.assign({},e),u);const d=us(c)?K9(c):c,f=Array.isArray(u.mark)?(C,S)=>{for(const A of u.mark){if(typeof A!="function")throw new Error(`Invalid mark: ${A}, 'mark' should be a function.`);const k=A(C,S);if(k)return k}}:u.mark,h=(s=u.enablePatches)!==null&&s!==void 0?s:!1,g=(i=u.strict)!==null&&i!==void 0?i:!1,b={enableAutoFreeze:(a=u.enableAutoFreeze)!==null&&a!==void 0?a:!1,mark:f,strict:g,enablePatches:h};if(!Fn(d,b)&&typeof d=="object"&&d!==null)throw new Error("Invalid base state: create() only supports plain objects, arrays, Set, Map or using mark() to mark the state as immutable.");const[y,v]=j$(d,b);if(typeof r!="function"){if(!Fn(d,b))throw new Error("Invalid base state: create() only supports plain objects, arrays, Set, Map or using mark() to mark the state as immutable.");return[y,v]}let w;try{w=l(y)}catch(C){throw m0(Ue(y)),C}const x=C=>{const S=Ue(y);if(!us(C)){if(C!==void 0&&!_r(C,y)&&(S!=null&&S.operated))throw new Error("Either the value is returned as a new non-draft value, or only the draft is modified without returning any value.");const k=C==null?void 0:C[P$];if(k){const O=k[0];return b.strict&&typeof C=="object"&&C!==null&&w0({rootDraft:S,value:C,useRawReturn:!0}),v([O])}if(C!==void 0)return typeof C=="object"&&C!==null&&w0({rootDraft:S,value:C}),v([C])}if(C===y||C===void 0)return v([]);const A=Ue(C);if(b===A.options){if(A.operated)throw new Error("Cannot return a modified child draft.");return v([K9(C)])}return v([C])};return w instanceof Promise?w.then(x,C=>{throw m0(Ue(y)),C}):x(w)},Th=$$();Object.prototype.constructor.toString();var X9;(function(e){e.UNEXPECTED_INDEX="UNEXPECTED_INDEX"})(X9||(X9={}));var Q9;(function(e){e.DUPLICATED_INDEX="DUPLICATED_INDEX",e.MISSING_INDEX="MISSING_INDEX"})(Q9||(Q9={}));function sr(e){var r,o,s;const t=[];let n=e.length-1;for(;n>-1;){t.unshift(e[n]);const i=(((r=e[n])==null?void 0:r.index)||0)-(((o=e[n])==null?void 0:o.skip)||0)-1;let a=n-1;for(;a>-1&&(((s=e[a])==null?void 0:s.index)||0)>i;)a--;n=a}return t}function hr(e){return e.slice().sort((t,n)=>t.skip-n.skip).sort((t,n)=>t.index-n.index)}function Kq(e,t,n){return[...t,...n].sort((r,o)=>new Date(r.timestamp||"").getTime()-new Date(o.timestamp||"").getTime()).map((r,o)=>({...r,index:e.index+o,skip:o===0?e.skip:0}))}function Vb(e,t){return vu(e)===vu(t)}function Xq(e,t){const n=sr(hr(e.slice())),r=sr(hr(t.slice()));if(n.length<1)return[r,[]];const o=[];let s=!1;for(;r.length>0;){const i=r[0];let a=n.shift();for(;a&&U$(a,i);)o.push(a),a=n.shift();if(a?s||(Vb(a,i)?(r.shift(),o.push(a)):(n.unshift(a),s=!0)):s=!0,s){let c=r.shift();for(;c;)o.push(c),c=r.shift()}}if(!s){let i=n.shift();for(;i;)o.push(i),i=n.shift()}return[sr(o),n]}function U$(e,t){return e.index<t.index||e.index===t.index&&e.id===t.id&&e.skip<t.skip}function Z$(e,t){const n=[],r=[],o=[],s=Math.max(e.length,t.length);let i=!1;for(let a=0;a<s;a++){const c=e[a],l=t[a];c&&l?!i&&Vb(c,l)?n.push(c):(i=!0,r.push(c),o.push(l)):c?r.push(c):l&&o.push(l)}return[n,r,o]}function Qq(e,t,n){const[r,o,s]=Z$(sr(e),sr(t)),i=_d(r),a=1+Math.max(i,_d(o),_d(s)),c=q$(s,o),l=n({index:a,skip:a-(i+1)},o,c);return r.concat(l)}function _d(e){const t=e[e.length-1];return t?t.index:-1}function W$(e){var r,o,s;if(e.length<1)return-1;const t=sr(e);let n=(((r=t[t.length-1])==null?void 0:r.skip)||0)+1;return t.length>1&&(n+=((o=t[t.length-2])==null?void 0:o.skip)||0),(((s=t[t.length-1])==null?void 0:s.index)||-1)<n?-1:n}function eJ(e){return e.reduce((n,r)=>{var o;return n[r.scope]||(n[r.scope]=[]),(o=n[r.scope])==null||o.push(r),n},{})}function tJ(e,t){return e.filter(n=>!t.some(r=>n.type==="NOOP"&&n.skip===0&&n.index===r.index||n.index===r.index&&n.skip===r.skip&&n.scope===r.scope&&n.hash===r.hash&&n.type===r.type))}function G$(e,t){const n=hr(e).at(-1),r=(n==null?void 0:n.index)??-1,o=r+1,s={...t,index:t.index??o};if(s.index<r)throw new Error(`The skip header operation index must be greater than or equal to ${r}`);return sr(hr([...e,s])).slice(0,-1)}function xu(e){return Object.entries(e).reduce((n,r)=>{const[o,s]=r;return{...n,[o]:sr(hr(s))}},{})}function q$(e,t){return e.filter(n=>n.id?!t.some(r=>r.id===n.id):!0)}function J$(e){return e?Object.entries(e).reduce((n,[r,o])=>({...n,[r]:o.map(s=>{const{resultingState:i,...a}=s;return a})}),{}):{}}function Y$(e,t){return e.filter(n=>!t.some(r=>n.index===r.index))}const K$=e=>e!=null;Eb().refine(e=>K$(e));const X$=Rc(["LOAD_STATE"]),Q$=Rc(["PRUNE"]),eU=Rc(["REDO"]),tU=Rc(["SET_NAME"]),nU=Rc(["UNDO"]);function E1(){return de()}function rU(){return Gj([oU(),iU(),aU(),cU(),lU()])}function oU(){return Ne({input:Sh(()=>zb()),type:X$,scope:E1()})}function zb(){return Ne({operations:Xa(),state:Sh(()=>sU())})}function sU(){return Ne({data:Wj().nullish(),name:de()})}function iU(){return Ne({input:Sh(()=>Hb()),type:Q$,scope:E1()})}function Hb(){return Ne({end:Xa().nullish(),start:Xa().nullish()})}const jb=Xa;function aU(){return Ne({input:jb(),type:eU,scope:E1()})}const $b=de;function cU(){return Ne({input:$b(),type:tU,scope:Mc("global")})}const Ub=Xa;function lU(){return Ne({input:Ub(),type:nU,scope:E1()})}const uU=e=>De("SET_NAME",e,void 0,$b,"global"),dU=(e=1,t="global")=>De("UNDO",e,void 0,Ub,t),fU=(e=1,t="global")=>De("REDO",e,void 0,jb,t),hU=(e,t,n="global")=>De("PRUNE",{start:e,end:t},void 0,Hb,n),Zb=(e,t)=>De("LOAD_STATE",{state:{name:e.name,...e.state},operations:t},void 0,zb),Wb=(e="global")=>De("NOOP",void 0,void 0,void 0,e),nJ={setName:uU,undo:dU,redo:fU,prune:hU,loadState:Zb,noop:Wb};function pU(e,t){return{...e,header:{...e.header,name:t}}}function mU(e,t,n){const{scope:r}=t;return Th({document:e,action:t,skip:n,reuseLastOperationIndex:!1},s=>{const i=[...e.operations[r]],a=hr(i);s.action=Wb(r);const c=a.at(-1);let l=(c==null?void 0:c.index)??-1;const u=(c==null?void 0:c.type)!=="NOOP";u?l=l+1:s.reuseLastOperationIndex=!0;const d=u?[...a,{index:l,skip:0}]:a;if(s.skip=W$(d),c&&s.skip>c.skip+1&&(s.skip=s.skip+1),s.skip<0)throw new Error("Cannot undo: you can't undo more operations than the ones in the scope history")})}function gU(e,t,n){const{scope:r,input:o}=t;return Th({document:e,action:t,skip:n,reuseLastOperationIndex:!1},i=>{if(i.skip>0)throw new Error("Cannot redo: skip value from reducer cannot be used with REDO action");if(typeof o!="number"||o>1)throw new Error("Cannot redo: you can only redo one operation at a time");if(typeof o!="number"||o<1)throw new Error("Invalid REDO action: invalid redo input value");if(i.document.clipboard.length<1)throw new Error("Cannot redo: no operations in the clipboard");const a=i.document.clipboard.findLastIndex(l=>l.scope===r);if(a<0)throw new Error(`Cannot redo: no operations in clipboard for scope "${r}"`);const c=i.document.clipboard.splice(a,1)[0];i.action={type:c.type,scope:c.scope,input:c.input}})}function bU(e,t,n){const r=e.operations.global;let{start:o,end:s}=t;o=o||0,s=s||r.length;const i=r.slice(o,s),a=r.slice(0,o),c=r.slice(s),l=Su(e.initialState,{...e.operations,global:a.concat(i)},n),u=l.state,d=l.header.name,f=a.length,h=a.length?a[a.length-1].timestamp:c.length?c[0].timestamp:new Date().toISOString();return Su(e.initialState,{...e.operations,global:[...a,{skip:0,...Zb({name:d,state:u},i.length),timestamp:h,index:f,hash:Nh({state:u},"global")},...c.map((g,m)=>({...g,index:f+m+1}))]},n)}function yU(e,t){return{...e,name:t.name,state:t.state??{global:{},local:{}}}}function vU(e){return _b()}function wU(e){return(new Date(e).getTime()/1e3).toFixed(0)}function CU({documentId:e,signer:t,operation:n,previousStateHash:r}){const{timestamp:o,scope:s,id:i,type:a}=n;return[wU(o),t.app.key,Ib([e,s,i,a,vu(n.input)].join("")),r]}const xU=new TextEncoder;function SU(e){const t=e.join(""),n=`Signed Operation:
119
- `+t.length.toString();return xU.encode(n+t)}function EU(e){const t=ArrayBuffer.isView(e)?e:new Uint8Array(e);return Array.prototype.map.call(t,n=>("00"+n.toString(16)).slice(-2)).join("")}async function AU(e,t){const n=CU(e),r=SU(n),o=await t(r);return[...n,`0x${EU(o)}`]}async function rJ(e,t,n,r,o){var u;const s=t(n,e,void 0,{reuseHash:!0,reuseOperationResultingState:!0}),i=s.operations[e.scope].at(-1);if(!i)throw new Error("Action was not applied");const a=((u=s.operations[e.scope].at(-2))==null?void 0:u.hash)??"",c=await AU({documentId:n.header.id,signer:r,operation:i,previousStateHash:a},o),l={signer:IU(r.user,r.app,[...r.signatures,c])};return _U(i,l)}const OU=(e,t,n)=>({...e,action:e,id:vU(),timestamp:new Date().toISOString(),hash:"",error:void 0,index:t,skip:n}),kU=(e,t)=>({...e,hash:"",error:void 0,skip:t}),_U=(e,t)=>{if(!e.action)throw new Error("Operation has no action");return{...e,action:{...e.action,context:t}}},IU=(e,t,n=[])=>({user:e,app:t,signatures:n});function PU(e,t){var r;return(((r=e.operations[t].at(-1))==null?void 0:r.index)??-1??-1)+1}function Gb(e,t){const n={...e.header,revision:{...e.header.revision,[t]:PU(e,t)},lastModifiedAtUtcIso:WU(e)};return{...e,header:n}}function MU(e,t,n=!1,r=0){if([ms,Mi,Nc].includes(t.type))return e;const o=t.scope,s=e.operations[o].slice(),i=s.sort((u,d)=>u.index-d.index).at(-1),a=(i==null?void 0:i.index)??-1,c=n?a:a+1,l=OU(t,c,r);return s.push(l),{...e,operations:{...e.operations,[o]:s}}}function RU(e,t,n=!1,r=0){if([ms,Mi,Nc].includes(t.type))return e;const o=t.scope,s=e.operations[o].slice(),i=s.sort((u,d)=>u.index-d.index).at(-1),a=(i==null?void 0:i.index)??-1,c=n?a:a+1;if(t.index-r>c)throw new Error(`Missing operations: expected ${c} with skip 0 or equivalent, got index ${t.index} with skip ${r}`);const l=kU(t,r);return s.push(l),{...e,operations:{...e.operations,[o]:s}}}function TU(e,t,n=0,r=!1){let o;return"index"in t?o=RU(e,t,r,n):o=MU(e,t,r,n),o=Gb(o,t.scope),o}function NU(e,t,n){const r=rU().parse(t);switch(r.type){case Pb:return pU(e,r.input);case Nc:return bU(e,r.input,n);case Mb:return yU(e,r.input.state);default:return e}}function LU(e,t,n){switch(t.type){case ms:return mU(e,t,n);case Mi:return gU(e,t,n);default:return{document:e,action:t,skip:n,reuseLastOperationIndex:!1}}}function DU(e,t,n,r,o=!1,s=Lh){const i=t.scope,a=e.operations[i].at(-1);if(!a)return e;const c=xu({...e.operations,[i]:G$(e.operations[i],a)});let l;const u=c[i].at(-1);if(o&&(u!=null&&u.resultingState))l=s(u.resultingState);else{const{state:d}=Su(e.initialState,c,n,void 0,void 0,void 0,void 0,{reuseOperationResultingState:o,operationResultingStateParser:s});l=d[i]}return{...e,state:{...e.state,[i]:l},operations:xu({...e.operations})}}function FU(e,t,n,r=!1,o=Lh){const s=[...e.operations[t]],i=hr(s);i.pop();const a=xu({...e.operations}),c=[...a[t]],l=Y$(sr(i),c),u=Su(e.initialState,a,n,void 0,void 0,void 0,void 0,{reuseOperationResultingState:r,operationResultingStateParser:o}),d=hr([...e.clipboard,...l].filter(f=>f.type!=="NOOP")).reverse();return{...u,clipboard:d}}function qb(e,t,n,r,o={}){const{skip:s,ignoreSkipOperations:i=!1,reuseHash:a=!1,reuseOperationResultingState:c=!1,operationResultingStateParser:l}=o;let u={...t},d=s||0,f={...e},h=!1;const g=!i&&(d>0||"index"in u&&"skip"in u&&typeof u.skip=="number"&&u.skip>0);if(UU(u)){const{skip:w,action:x,document:C,reuseLastOperationIndex:S}=LU(e,u,d);u=x,d=w,f=C,h=S}else f={...f,clipboard:[]};if(C0(u)&&(f=NU(f,u,n)),f=TU(f,u,d,h),ZU(t))return FU(f,t.scope,n);if(g&&(f=DU(f,u,n,d,c,l)),f=Th(f,w=>{try{const x=n(w.state,u,r);x&&B$(()=>{w.state=x})}catch(x){const C=f.operations[u.scope].length-1;w.operations[u.scope][C].error=x.message,w.operations[u.scope][C].skip=0,g&&(w.state={...e.state},w.operations={...e.operations,[u.scope]:[...e.operations[u.scope],{...w.operations[u.scope][C]}]})}}),[ms,Mi,Nc].includes(u.type))return f;const b=u.scope||"global",y=a&&Object.prototype.hasOwnProperty.call(u,"hash")?u.hash:Nh(f,b),v=f.operations[b].at(-1);return v&&(v.hash=y,c&&(v.resultingState=JSON.stringify(f.state[b])),!C0(u)&&u.attachments&&u.attachments.forEach(w=>{const{hash:x,...C}=w;f.attachments||(f.attachments={}),f.attachments[x]={...C}})),f}class Jb extends Error{constructor(n){super();Ni(this,"data");this.name="InvalidActionInputError",this.data=n,this.message=this.message||`Invalid action input: ${JSON.stringify(n,null,2)}`}}class BU extends Jb{constructor(n){super(n);Ni(this,"issues");this.issues=n,this.name="InvalidActionInputZodError"}}const VU=e=>`${e.documentType}:${e.createdAtUtcIso}:${e.nonce}`;var Qs,Ou,Yb;class zU{constructor(t){_e(this,Ou);_e(this,Qs);Ni(this,"subtleCrypto");Ni(this,"publicCryptoKey");ye(this,Qs,t),this.subtleCrypto=ze(this,Ou,Yb).call(this)}async publicKey(){return J(this,Qs)}async sign(t){throw new Error("PublicKeySigner only supports verification")}async verify(t,n){const r=await this.subtleCrypto;this.publicCryptoKey||(this.publicCryptoKey=await r.importKey("jwk",J(this,Qs),{name:"Ed25519",namedCurve:"Ed25519"},!0,["verify"]));let o;try{o=await r.verify("Ed25519",this.publicCryptoKey,n,t)}catch{throw new Error("invalid signature")}if(!o)throw new Error("invalid signature")}}Qs=new WeakMap,Ou=new WeakSet,Yb=function(){return new Promise((t,n)=>{var r;typeof window>"u"?O0(()=>import("node:crypto"),[],import.meta.url).then(o=>{t(o.webcrypto.subtle)}).catch(n):((r=window.crypto)!=null&&r.subtle||n(new Error("Crypto module not available")),t(window.crypto.subtle))})};const HU=async e=>new zU(e.sig.publicKey),jU=async(e,t,n)=>{const r=VU(e),s=new TextEncoder().encode(r),i=Uint8Array.from(atob(t),a=>a.charCodeAt(0));await n.verify(s,i)},oJ=async e=>{const t=await HU(e);return await jU({documentType:e.documentType,createdAtUtcIso:e.createdAtUtcIso,nonce:e.sig.nonce},e.id,t)},$U=(e=_b(),t="")=>({id:e,sig:{publicKey:{},nonce:""},documentType:t,createdAtUtcIso:new Date().toISOString(),slug:"",name:"",branch:"main",revision:{document:0},lastModifiedAtUtcIso:new Date().toISOString(),meta:{}});function UU(e){return[ms,Mi].includes(e.type)}function ZU(e){return e.type===ms}function C0(e){return[Pb,ms,Mi,Nc,Mb].includes(e.type)}function De(e,t,n,r,o="global"){if(!e)throw new Error("Empty action type");if(typeof e!="string")throw new Error(`Invalid action type: ${JSON.stringify(e)}`);const s={type:e,input:t,scope:o};try{r==null||r().parse(s.input)}catch(i){throw i instanceof dr?new BU(i.issues):new Jb(i)}return s}function Kb(e,t=qb){return(r,o,s,i)=>t(r,o,e,s,i)}function Xb(e,t){return{state:(t==null?void 0:t(e==null?void 0:e.state))??(e==null?void 0:e.state)??{global:{},local:{}}}}function Qb(e,t){const n=Xb(e,t),r=$U();return{...n,header:r,initialState:n,operations:{global:[],local:[]},clipboard:[],attachments:{}}}function Nh(e,t="global"){const n=vu(e.state[t]||"");return Ib(n)}function WU(e){return hr(Object.values(e.operations).flat()).at(-1).timestamp||e.header.lastModifiedAtUtcIso}function Su(e,t,n,r,o,s=qb,i={},a){const c=Kb(n,s);return ey(e,t,c,r,o,i,a)}function ey(e,t,n,r,o,s={},i){const{checkHashes:a=!0,reuseOperationResultingState:c,operationResultingStateParser:l=Lh}=i||{};let u=e;const d=[],f={global:[],local:[]};if(c)for(const[y,v]of Object.entries(t)){const w=v.findLastIndex(C=>!!C.resultingState);if(w<0){d.push(...v);continue}const x=v[w];if(x.resultingState)try{const C=l(x.resultingState);u={...u,state:{...u.state,[y]:C}},f[y].push(...v.slice(0,w+1)),d.push(...v.slice(w+1))}catch{d.push(...v)}}else d.push(...Object.values(t).flat());const h=Qb(u);o!=null&&o.slug&&(h.header.slug=o.slug),h.initialState=e,h.operations=f;let g=h;if(d.length)g=d.reduce((y,v)=>n(y,v,r,{skip:v.skip,ignoreSkipOperations:!0,reuseHash:!a}),h);else for(const y of Object.values(f)){const v=y.at(-1);v&&(g=Gb(g,v.scope))}if(!a)for(const y of Object.keys(g.state))for(let v=d.length-1;v>=0;v--){const w=d[v];if(w.scope===y){if(w.hash!==Nh(g,y))throw new Error(`Hash mismatch for scope ${y}`);break}}const m=Object.keys(g.operations).reduce((y,v)=>{const w=v;return{...y,[w]:[...g.operations[w].map((x,C)=>{var S;return{...x,timestamp:((S=t[w][C])==null?void 0:S.timestamp)??x.timestamp}})]}},{global:[],local:[]}),b=o?o.lastModifiedAtUtcIso:Object.values(m).reduce((y,v)=>{const w=v.at(-1);return w&&w.timestamp>y?w.timestamp:y},h.header.lastModifiedAtUtcIso);return o&&(g.header={...o,revision:g.header.revision,lastModifiedAtUtcIso:b}),{...g,operations:m}}function Lh(e){const t=typeof e;if(t==="string")return JSON.parse(e);if(t==="object")return e;throw new Error(`Providing resulting state is of type: ${t}`)}const GU=e=>e!=null;Eb().refine(e=>GU(e));function ty(){return Ne({__typename:Mc("AddChangeLogItemInput").optional(),content:de(),id:de(),insertBefore:de().nullable()})}function ny(){return Ne({description:de().nullish(),id:de(),name:de()})}function ry(){return Ne({errorCode:de().nullish(),errorDescription:de().nullish(),errorName:de().nullish(),errorTemplate:de().nullish(),id:de(),operationId:de()})}function oy(){return Ne({example:de(),id:de(),operationId:de()})}function sy(){return Ne({description:de().nullish(),id:de(),moduleId:de(),name:de(),reducer:de().nullish(),schema:de().nullish(),template:de().nullish(),scope:hy().nullish()})}function iy(){return Ne({scope:de(),example:de(),id:de(),insertBefore:de().nullish()})}function ay(){return Ne({__typename:Mc("DeleteChangeLogItemInput").optional(),id:de()})}function cy(){return Ne({id:de()})}function ly(){return Ne({id:de()})}function uy(){return Ne({id:de()})}function dy(){return Ne({id:de()})}function fy(){return Ne({scope:de(),id:de()})}function hy(){return de()}function py(){return Ne({newModuleId:de(),operationId:de()})}function my(){return Ne({__typename:Mc("ReorderChangeLogItemsInput").optional(),order:Pi(de())})}function gy(){return Ne({moduleId:de(),order:Pi(de())})}function by(){return Ne({order:Pi(de())})}function yy(){return Ne({operationId:de(),order:Pi(de())})}function vy(){return Ne({operationId:de(),order:Pi(de())})}function wy(){return Ne({scope:de(),order:Pi(de())})}function Cy(){return Ne({authorName:de()})}function xy(){return Ne({authorWebsite:de()})}function Sy(){return Ne({scope:de(),initialValue:de()})}function Ey(){return Ne({description:de()})}function Ay(){return Ne({extension:de()})}function Oy(){return Ne({id:de()})}function ky(){return Ne({name:de()})}function _y(){return Ne({description:de().nullish(),id:de()})}function Iy(){return Ne({id:de(),name:de().nullish()})}function Py(){return Ne({description:de().nullish(),id:de()})}function My(){return Ne({errorCode:de().nullish(),id:de()})}function Ry(){return Ne({errorDescription:de().nullish(),id:de()})}function Ty(){return Ne({errorName:de().nullish(),id:de()})}function Ny(){return Ne({errorTemplate:de().nullish(),id:de()})}function Ly(){return Ne({id:de(),name:de().nullish()})}function Dy(){return Ne({id:de(),scope:hy()})}function Fy(){return Ne({id:de(),reducer:de().nullish()})}function By(){return Ne({id:de(),schema:de().nullish()})}function Vy(){return Ne({id:de(),template:de().nullish()})}function zy(){return Ne({scope:de(),schema:de()})}function Hy(){return Ne({__typename:Mc("UpdateChangeLogItemInput").optional(),id:de(),newContent:de()})}function jy(){return Ne({example:de(),id:de()})}function $y(){return Ne({scope:de(),id:de(),newExample:de()})}const qU=e=>De("SET_MODEL_NAME",{...e},void 0,ky,"global"),JU=e=>De("SET_MODEL_ID",{...e},void 0,Oy,"global"),YU=e=>De("SET_MODEL_EXTENSION",{...e},void 0,Ay,"global"),KU=e=>De("SET_MODEL_DESCRIPTION",{...e},void 0,Ey,"global"),XU=e=>De("SET_AUTHOR_NAME",{...e},void 0,Cy,"global"),QU=e=>De("SET_AUTHOR_WEBSITE",{...e},void 0,xy,"global"),eZ=e=>De("ADD_CHANGE_LOG_ITEM",{...e},void 0,ty,"global"),tZ=e=>De("UPDATE_CHANGE_LOG_ITEM",{...e},void 0,Hy,"global"),nZ=e=>De("DELETE_CHANGE_LOG_ITEM",{...e},void 0,ay,"global"),rZ=e=>De("REORDER_CHANGE_LOG_ITEMS",{...e},void 0,my,"global"),oZ=()=>De("RELEASE_NEW_VERSION",{},void 0,void 0,"global"),sZ=e=>De("ADD_MODULE",{...e},void 0,ny,"global"),iZ=e=>De("SET_MODULE_NAME",{...e},void 0,Iy,"global"),aZ=e=>De("SET_MODULE_DESCRIPTION",{...e},void 0,_y,"global"),cZ=e=>De("DELETE_MODULE",{...e},void 0,cy,"global"),lZ=e=>De("REORDER_MODULES",{...e},void 0,by,"global"),uZ=e=>De("ADD_OPERATION_ERROR",{...e},void 0,ry,"global"),dZ=e=>De("SET_OPERATION_ERROR_CODE",{...e},void 0,My,"global"),fZ=e=>De("SET_OPERATION_ERROR_NAME",{...e},void 0,Ty,"global"),hZ=e=>De("SET_OPERATION_ERROR_DESCRIPTION",{...e},void 0,Ry,"global"),pZ=e=>De("SET_OPERATION_ERROR_TEMPLATE",{...e},void 0,Ny,"global"),mZ=e=>De("DELETE_OPERATION_ERROR",{...e},void 0,ly,"global"),gZ=e=>De("REORDER_OPERATION_ERRORS",{...e},void 0,yy,"global"),bZ=e=>De("ADD_OPERATION_EXAMPLE",{...e},void 0,oy,"global"),yZ=e=>De("UPDATE_OPERATION_EXAMPLE",{...e},void 0,jy,"global"),vZ=e=>De("DELETE_OPERATION_EXAMPLE",{...e},void 0,uy,"global"),wZ=e=>De("REORDER_OPERATION_EXAMPLES",{...e},void 0,vy,"global"),CZ=e=>De("ADD_OPERATION",{...e},void 0,sy,"global"),xZ=e=>De("SET_OPERATION_NAME",{...e},void 0,Ly,"global"),SZ=e=>De("SET_OPERATION_SCOPE",{...e},void 0,Dy,"global"),EZ=e=>De("SET_OPERATION_SCHEMA",{...e},void 0,By,"global"),AZ=e=>De("SET_OPERATION_DESCRIPTION",{...e},void 0,Py,"global"),OZ=e=>De("SET_OPERATION_TEMPLATE",{...e},void 0,Vy,"global"),kZ=e=>De("SET_OPERATION_REDUCER",{...e},void 0,Fy,"global"),_Z=e=>De("MOVE_OPERATION",{...e},void 0,py,"global"),IZ=e=>De("DELETE_OPERATION",{...e},void 0,dy,"global"),PZ=e=>De("REORDER_MODULE_OPERATIONS",{...e},void 0,gy,"global"),MZ=e=>De("SET_STATE_SCHEMA",{...e},void 0,zy,"global"),RZ=e=>De("SET_INITIAL_STATE",{...e},void 0,Sy,"global"),TZ=e=>De("ADD_STATE_EXAMPLE",{...e},void 0,iy,"global"),NZ=e=>De("UPDATE_STATE_EXAMPLE",{...e},void 0,$y,"global"),LZ=e=>De("DELETE_STATE_EXAMPLE",{...e},void 0,fy,"global"),DZ=e=>De("REORDER_STATE_EXAMPLES",{...e},void 0,wy,"global"),FZ=Object.freeze(Object.defineProperty({__proto__:null,addChangeLogItem:eZ,addModule:sZ,addOperation:CZ,addOperationError:uZ,addOperationExample:bZ,addStateExample:TZ,deleteChangeLogItem:nZ,deleteModule:cZ,deleteOperation:IZ,deleteOperationError:mZ,deleteOperationExample:vZ,deleteStateExample:LZ,moveOperation:_Z,releaseNewVersion:oZ,reorderChangeLogItems:rZ,reorderModuleOperations:PZ,reorderModules:lZ,reorderOperationErrors:gZ,reorderOperationExamples:wZ,reorderStateExamples:DZ,setAuthorName:XU,setAuthorWebsite:QU,setInitialState:RZ,setModelDescription:KU,setModelExtension:YU,setModelId:JU,setModelName:qU,setModuleDescription:aZ,setModuleName:iZ,setOperationDescription:AZ,setOperationErrorCode:dZ,setOperationErrorDescription:hZ,setOperationErrorName:fZ,setOperationErrorTemplate:pZ,setOperationName:xZ,setOperationReducer:kZ,setOperationSchema:EZ,setOperationScope:SZ,setOperationTemplate:OZ,setStateSchema:MZ,updateChangeLogItem:tZ,updateOperationExample:yZ,updateStateExample:NZ},Symbol.toStringTag,{value:"Module"})),ks={setModelNameOperation(e,t){e.name=t.input.name},setModelIdOperation(e,t){e.id=t.input.id},setModelExtensionOperation(e,t){e.extension=t.input.extension},setModelDescriptionOperation(e,t){e.description=t.input.description},setAuthorNameOperation(e,t){e.author=e.author||{name:"",website:null},e.author.name=t.input.authorName},setAuthorWebsiteOperation(e,t){e.author=e.author||{name:"",website:null},e.author.website=t.input.authorWebsite}},BZ=e=>{const t={};return e.forEach((n,r)=>t[n]=r),(n,r)=>(t[r.id]||999999)-(t[n.id]||999999)},Ki={addModuleOperation(e,t){e.specifications[e.specifications.length-1].modules.push({id:t.input.id,name:t.input.name,description:t.input.description||"",operations:[]})},setModuleNameOperation(e,t){const n=e.specifications[e.specifications.length-1];for(let r=0;r<n.modules.length;r++)n.modules[r].id===t.input.id&&(n.modules[r].name=t.input.name||"")},setModuleDescriptionOperation(e,t){const n=e.specifications[e.specifications.length-1];for(let r=0;r<n.modules.length;r++)n.modules[r].id===t.input.id&&(n.modules[r].description=t.input.description||"")},deleteModuleOperation(e,t){const n=e.specifications[e.specifications.length-1];n.modules=n.modules.filter(r=>r.id!=t.input.id)},reorderModulesOperation(e,t){e.specifications[e.specifications.length-1].modules.sort(BZ(t.input.order))}},VZ=e=>{const t={};return e.forEach((n,r)=>t[n]=r),(n,r)=>(t[r.id]||999999)-(t[n.id]||999999)},ko={addOperationErrorOperation(e,t){const n=e.specifications[e.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let o=0;o<n.modules[r].operations.length;o++)n.modules[r].operations[o].id==t.input.operationId&&n.modules[r].operations[o].errors.push({id:t.input.id,name:t.input.errorName||"",code:t.input.errorCode||"",description:t.input.errorDescription||"",template:t.input.errorTemplate||""})},setOperationErrorCodeOperation(e,t){const n=e.specifications[e.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let o=0;o<n.modules[r].operations.length;o++)for(let s=0;s<n.modules[r].operations[o].errors.length;s++)n.modules[r].operations[o].errors[s].id==t.input.id&&(n.modules[r].operations[o].errors[s].code=t.input.errorCode||"")},setOperationErrorNameOperation(e,t){const n=e.specifications[e.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let o=0;o<n.modules[r].operations.length;o++)for(let s=0;s<n.modules[r].operations[o].errors.length;s++)n.modules[r].operations[o].errors[s].id==t.input.id&&(n.modules[r].operations[o].errors[s].name=t.input.errorName||"")},setOperationErrorDescriptionOperation(e,t){const n=e.specifications[e.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let o=0;o<n.modules[r].operations.length;o++)for(let s=0;s<n.modules[r].operations[o].errors.length;s++)n.modules[r].operations[o].errors[s].id==t.input.id&&(n.modules[r].operations[o].errors[s].description=t.input.errorDescription||"")},setOperationErrorTemplateOperation(e,t){const n=e.specifications[e.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let o=0;o<n.modules[r].operations.length;o++)for(let s=0;s<n.modules[r].operations[o].errors.length;s++)n.modules[r].operations[o].errors[s].id==t.input.id&&(n.modules[r].operations[o].errors[s].template=t.input.errorTemplate||"")},deleteOperationErrorOperation(e,t){const n=e.specifications[e.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let o=0;o<n.modules[r].operations.length;o++)n.modules[r].operations[o].errors=n.modules[r].operations[o].errors.filter(s=>s.id!=t.input.id)},reorderOperationErrorsOperation(e,t){const n=e.specifications[e.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let o=0;o<n.modules[r].operations.length;o++)n.modules[r].operations[o].id==t.input.operationId&&n.modules[r].operations[o].errors.sort(VZ(t.input.order))}},zZ=e=>{const t={};return e.forEach((n,r)=>t[n]=r),(n,r)=>(t[r.id]||999999)-(t[n.id]||999999)},gl={addOperationExampleOperation(e,t){const n=e.specifications[e.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let o=0;o<n.modules[r].operations.length;o++)n.modules[r].operations[o].id==t.input.operationId&&n.modules[r].operations[o].examples.push({id:t.input.id,value:t.input.example})},updateOperationExampleOperation(e,t){const n=e.specifications[e.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let o=0;o<n.modules[r].operations.length;o++)for(let s=0;s<n.modules[r].operations[o].examples.length;s++)n.modules[r].operations[o].examples[s].id==t.input.id&&(n.modules[r].operations[o].examples[s].value=t.input.example)},deleteOperationExampleOperation(e,t){const n=e.specifications[e.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let o=0;o<n.modules[r].operations.length;o++)n.modules[r].operations[o].examples=n.modules[r].operations[o].examples.filter(s=>s.id!=t.input.id)},reorderOperationExamplesOperation(e,t){const n=e.specifications[e.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let o=0;o<n.modules[r].operations.length;o++)n.modules[r].operations[o].id==t.input.operationId&&n.modules[r].operations[o].examples.sort(zZ(t.input.order))}},HZ=e=>{const t={};return e.forEach((n,r)=>t[n]=r),(n,r)=>(t[r.id]||999999)-(t[n.id]||999999)},Zn={addOperationOperation(e,t){const n=e.specifications[e.specifications.length-1];for(let r=0;r<n.modules.length;r++)n.modules[r].id==t.input.moduleId&&n.modules[r].operations.push({id:t.input.id,name:t.input.name,description:t.input.description||"",schema:t.input.schema||"",template:t.input.template||t.input.description||"",reducer:t.input.reducer||"",errors:[],examples:[],scope:t.input.scope||"global"})},setOperationNameOperation(e,t){const n=e.specifications[e.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let o=0;o<n.modules[r].operations.length;o++)n.modules[r].operations[o].id==t.input.id&&(n.modules[r].operations[o].name=t.input.name||"")},setOperationScopeOperation(e,t){const n=e.specifications[e.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let o=0;o<n.modules[r].operations.length;o++)n.modules[r].operations[o].id==t.input.id&&(n.modules[r].operations[o].scope=t.input.scope||"global")},setOperationSchemaOperation(e,t){const n=e.specifications[e.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let o=0;o<n.modules[r].operations.length;o++)n.modules[r].operations[o].id==t.input.id&&(n.modules[r].operations[o].schema=t.input.schema||"")},setOperationDescriptionOperation(e,t){const n=e.specifications[e.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let o=0;o<n.modules[r].operations.length;o++)n.modules[r].operations[o].id==t.input.id&&(n.modules[r].operations[o].description=t.input.description||"")},setOperationTemplateOperation(e,t){const n=e.specifications[e.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let o=0;o<n.modules[r].operations.length;o++)n.modules[r].operations[o].id==t.input.id&&(n.modules[r].operations[o].template=t.input.template||"")},setOperationReducerOperation(e,t){const n=e.specifications[e.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let o=0;o<n.modules[r].operations.length;o++)n.modules[r].operations[o].id==t.input.id&&(n.modules[r].operations[o].reducer=t.input.reducer||"")},moveOperationOperation(e,t){const n=[],r=e.specifications[e.specifications.length-1];for(let o=0;o<r.modules.length;o++)r.modules[o].operations=r.modules[o].operations.filter(s=>s.id==t.input.operationId?(n.push(s),!1):!0);for(let o=0;o<r.modules.length;o++)r.modules[o].id==t.input.newModuleId&&r.modules[o].operations.push(...n)},deleteOperationOperation(e,t){const n=e.specifications[e.specifications.length-1];for(let r=0;r<n.modules.length;r++)n.modules[r].operations=n.modules[r].operations.filter(o=>o.id!=t.input.id)},reorderModuleOperationsOperation(e,t){const n=e.specifications[e.specifications.length-1];for(let r=0;r<n.modules.length;r++)n.modules[r].id==t.input.moduleId&&n.modules[r].operations.sort(HZ(t.input.order))}},jZ=e=>{const t={};return e.forEach((n,r)=>t[n]=r),(n,r)=>(t[r.id]||999999)-(t[n.id]||999999)},_s={setStateSchemaOperation(e,t){const n=e.specifications[e.specifications.length-1];if(Object.keys(n.state).includes(t.input.scope))n.state[t.input.scope].schema=t.input.schema;else throw new Error(`Invalid scope: ${t.input.scope}`)},setInitialStateOperation(e,t){const n=e.specifications[e.specifications.length-1];if(Object.keys(n.state).includes(t.input.scope))n.state[t.input.scope].initialValue=t.input.initialValue;else throw new Error(`Invalid scope: ${t.input.scope}`)},addStateExampleOperation(e,t){const n=e.specifications[e.specifications.length-1];if(Object.keys(n.state).includes(t.input.scope))n.state[t.input.scope].examples.push({id:t.input.id,value:t.input.example});else throw new Error(`Invalid scope: ${t.input.scope}`)},updateStateExampleOperation(e,t){const n=e.specifications[e.specifications.length-1];if(!Object.keys(n.state).includes(t.input.scope))throw new Error(`Invalid scope: ${t.input.scope}`);const r=n.state[t.input.scope].examples;for(let o=0;o<r.length;o++)r[o].id==t.input.id&&(r[o].value=t.input.newExample)},deleteStateExampleOperation(e,t){const n=e.specifications[e.specifications.length-1];if(Object.keys(n.state).includes(t.input.scope))n.state[t.input.scope].examples=n.state[t.input.scope].examples.filter(r=>r.id!=t.input.id);else throw new Error(`Invalid scope: ${t.input.scope}`)},reorderStateExamplesOperation(e,t){const n=e.specifications[e.specifications.length-1];if(Object.keys(n.state).includes(t.input.scope))n.state[t.input.scope].examples.sort(jZ(t.input.order));else throw new Error(`Invalid scope: ${t.input.scope}`)}},Xi={addChangeLogItemOperation(e,t){throw new Error('Reducer "addChangeLogItemOperation" not yet implemented')},updateChangeLogItemOperation(e,t){throw new Error('Reducer "updateChangeLogItemOperation" not yet implemented')},deleteChangeLogItemOperation(e,t){throw new Error('Reducer "deleteChangeLogItemOperation" not yet implemented')},reorderChangeLogItemsOperation(e,t){throw new Error('Reducer "reorderChangeLogItemsOperation" not yet implemented')},releaseNewVersionOperation(e,t){throw new Error('Reducer "releaseNewVersionOperation" not yet implemented')}},$Z=(e,t)=>{if(C0(t))return e;switch(t.type){case"SET_MODEL_NAME":ky().parse(t.input),ks.setModelNameOperation(e.global,t);break;case"SET_MODEL_ID":Oy().parse(t.input),ks.setModelIdOperation(e.global,t);break;case"SET_MODEL_EXTENSION":Ay().parse(t.input),ks.setModelExtensionOperation(e.global,t);break;case"SET_MODEL_DESCRIPTION":Ey().parse(t.input),ks.setModelDescriptionOperation(e.global,t);break;case"SET_AUTHOR_NAME":Cy().parse(t.input),ks.setAuthorNameOperation(e.global,t);break;case"SET_AUTHOR_WEBSITE":xy().parse(t.input),ks.setAuthorWebsiteOperation(e.global,t);break;case"ADD_CHANGE_LOG_ITEM":ty().parse(t.input),Xi.addChangeLogItemOperation(e.global,t);break;case"UPDATE_CHANGE_LOG_ITEM":Hy().parse(t.input),Xi.updateChangeLogItemOperation(e.global,t);break;case"DELETE_CHANGE_LOG_ITEM":ay().parse(t.input),Xi.deleteChangeLogItemOperation(e.global,t);break;case"REORDER_CHANGE_LOG_ITEMS":my().parse(t.input),Xi.reorderChangeLogItemsOperation(e.global,t);break;case"RELEASE_NEW_VERSION":if(Object.keys(t.input).length>0)throw new Error("Expected empty input for action RELEASE_NEW_VERSION");Xi.releaseNewVersionOperation(e.global,t);break;case"ADD_MODULE":ny().parse(t.input),Ki.addModuleOperation(e.global,t);break;case"SET_MODULE_NAME":Iy().parse(t.input),Ki.setModuleNameOperation(e.global,t);break;case"SET_MODULE_DESCRIPTION":_y().parse(t.input),Ki.setModuleDescriptionOperation(e.global,t);break;case"DELETE_MODULE":cy().parse(t.input),Ki.deleteModuleOperation(e.global,t);break;case"REORDER_MODULES":by().parse(t.input),Ki.reorderModulesOperation(e.global,t);break;case"ADD_OPERATION_ERROR":ry().parse(t.input),ko.addOperationErrorOperation(e.global,t);break;case"SET_OPERATION_ERROR_CODE":My().parse(t.input),ko.setOperationErrorCodeOperation(e.global,t);break;case"SET_OPERATION_ERROR_NAME":Ty().parse(t.input),ko.setOperationErrorNameOperation(e.global,t);break;case"SET_OPERATION_ERROR_DESCRIPTION":Ry().parse(t.input),ko.setOperationErrorDescriptionOperation(e.global,t);break;case"SET_OPERATION_ERROR_TEMPLATE":Ny().parse(t.input),ko.setOperationErrorTemplateOperation(e.global,t);break;case"DELETE_OPERATION_ERROR":ly().parse(t.input),ko.deleteOperationErrorOperation(e.global,t);break;case"REORDER_OPERATION_ERRORS":yy().parse(t.input),ko.reorderOperationErrorsOperation(e.global,t);break;case"ADD_OPERATION_EXAMPLE":oy().parse(t.input),gl.addOperationExampleOperation(e.global,t);break;case"UPDATE_OPERATION_EXAMPLE":jy().parse(t.input),gl.updateOperationExampleOperation(e.global,t);break;case"DELETE_OPERATION_EXAMPLE":uy().parse(t.input),gl.deleteOperationExampleOperation(e.global,t);break;case"REORDER_OPERATION_EXAMPLES":vy().parse(t.input),gl.reorderOperationExamplesOperation(e.global,t);break;case"ADD_OPERATION":sy().parse(t.input),Zn.addOperationOperation(e.global,t);break;case"SET_OPERATION_NAME":Ly().parse(t.input),Zn.setOperationNameOperation(e.global,t);break;case"SET_OPERATION_SCOPE":Dy().parse(t.input),Zn.setOperationScopeOperation(e.global,t);break;case"SET_OPERATION_SCHEMA":By().parse(t.input),Zn.setOperationSchemaOperation(e.global,t);break;case"SET_OPERATION_DESCRIPTION":Py().parse(t.input),Zn.setOperationDescriptionOperation(e.global,t);break;case"SET_OPERATION_TEMPLATE":Vy().parse(t.input),Zn.setOperationTemplateOperation(e.global,t);break;case"SET_OPERATION_REDUCER":Fy().parse(t.input),Zn.setOperationReducerOperation(e.global,t);break;case"MOVE_OPERATION":py().parse(t.input),Zn.moveOperationOperation(e.global,t);break;case"DELETE_OPERATION":dy().parse(t.input),Zn.deleteOperationOperation(e.global,t);break;case"REORDER_MODULE_OPERATIONS":gy().parse(t.input),Zn.reorderModuleOperationsOperation(e.global,t);break;case"SET_STATE_SCHEMA":zy().parse(t.input),_s.setStateSchemaOperation(e.global,t);break;case"SET_INITIAL_STATE":Sy().parse(t.input),_s.setInitialStateOperation(e.global,t);break;case"ADD_STATE_EXAMPLE":iy().parse(t.input),_s.addStateExampleOperation(e.global,t);break;case"UPDATE_STATE_EXAMPLE":$y().parse(t.input),_s.updateStateExampleOperation(e.global,t);break;case"DELETE_STATE_EXAMPLE":fy().parse(t.input),_s.deleteStateExampleOperation(e.global,t);break;case"REORDER_STATE_EXAMPLES":wy().parse(t.input),_s.reorderStateExamplesOperation(e.global,t);break;default:return e}},Dh=Kb($Z);function bl(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Id={exports:{}},e6;function UZ(){return e6||(e6=1,function(e,t){(function(n){e.exports=n()})(function(){return function n(r,o,s){function i(l,u){if(!o[l]){if(!r[l]){var d=typeof bl=="function"&&bl;if(!u&&d)return d(l,!0);if(a)return a(l,!0);var f=new Error("Cannot find module '"+l+"'");throw f.code="MODULE_NOT_FOUND",f}var h=o[l]={exports:{}};r[l][0].call(h.exports,function(g){var m=r[l][1][g];return i(m||g)},h,h.exports,n,r,o,s)}return o[l].exports}for(var a=typeof bl=="function"&&bl,c=0;c<s.length;c++)i(s[c]);return i}({1:[function(n,r,o){var s=n("./utils"),i=n("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";o.encode=function(c){for(var l,u,d,f,h,g,m,b=[],y=0,v=c.length,w=v,x=s.getTypeOf(c)!=="string";y<c.length;)w=v-y,d=x?(l=c[y++],u=y<v?c[y++]:0,y<v?c[y++]:0):(l=c.charCodeAt(y++),u=y<v?c.charCodeAt(y++):0,y<v?c.charCodeAt(y++):0),f=l>>2,h=(3&l)<<4|u>>4,g=1<w?(15&u)<<2|d>>6:64,m=2<w?63&d:64,b.push(a.charAt(f)+a.charAt(h)+a.charAt(g)+a.charAt(m));return b.join("")},o.decode=function(c){var l,u,d,f,h,g,m=0,b=0,y="data:";if(c.substr(0,y.length)===y)throw new Error("Invalid base64 input, it looks like a data url.");var v,w=3*(c=c.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(c.charAt(c.length-1)===a.charAt(64)&&w--,c.charAt(c.length-2)===a.charAt(64)&&w--,w%1!=0)throw new Error("Invalid base64 input, bad content length.");for(v=i.uint8array?new Uint8Array(0|w):new Array(0|w);m<c.length;)l=a.indexOf(c.charAt(m++))<<2|(f=a.indexOf(c.charAt(m++)))>>4,u=(15&f)<<4|(h=a.indexOf(c.charAt(m++)))>>2,d=(3&h)<<6|(g=a.indexOf(c.charAt(m++))),v[b++]=l,h!==64&&(v[b++]=u),g!==64&&(v[b++]=d);return v}},{"./support":30,"./utils":32}],2:[function(n,r,o){var s=n("./external"),i=n("./stream/DataWorker"),a=n("./stream/Crc32Probe"),c=n("./stream/DataLengthProbe");function l(u,d,f,h,g){this.compressedSize=u,this.uncompressedSize=d,this.crc32=f,this.compression=h,this.compressedContent=g}l.prototype={getContentWorker:function(){var u=new i(s.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new c("data_length")),d=this;return u.on("end",function(){if(this.streamInfo.data_length!==d.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),u},getCompressedWorker:function(){return new i(s.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},l.createWorkerFrom=function(u,d,f){return u.pipe(new a).pipe(new c("uncompressedSize")).pipe(d.compressWorker(f)).pipe(new c("compressedSize")).withStreamInfo("compression",d)},r.exports=l},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(n,r,o){var s=n("./stream/GenericWorker");o.STORE={magic:"\0\0",compressWorker:function(){return new s("STORE compression")},uncompressWorker:function(){return new s("STORE decompression")}},o.DEFLATE=n("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(n,r,o){var s=n("./utils"),i=function(){for(var a,c=[],l=0;l<256;l++){a=l;for(var u=0;u<8;u++)a=1&a?3988292384^a>>>1:a>>>1;c[l]=a}return c}();r.exports=function(a,c){return a!==void 0&&a.length?s.getTypeOf(a)!=="string"?function(l,u,d,f){var h=i,g=f+d;l^=-1;for(var m=f;m<g;m++)l=l>>>8^h[255&(l^u[m])];return-1^l}(0|c,a,a.length,0):function(l,u,d,f){var h=i,g=f+d;l^=-1;for(var m=f;m<g;m++)l=l>>>8^h[255&(l^u.charCodeAt(m))];return-1^l}(0|c,a,a.length,0):0}},{"./utils":32}],5:[function(n,r,o){o.base64=!1,o.binary=!1,o.dir=!1,o.createFolders=!0,o.date=null,o.compression=null,o.compressionOptions=null,o.comment=null,o.unixPermissions=null,o.dosPermissions=null},{}],6:[function(n,r,o){var s=null;s=typeof Promise<"u"?Promise:n("lie"),r.exports={Promise:s}},{lie:37}],7:[function(n,r,o){var s=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",i=n("pako"),a=n("./utils"),c=n("./stream/GenericWorker"),l=s?"uint8array":"array";function u(d,f){c.call(this,"FlateWorker/"+d),this._pako=null,this._pakoAction=d,this._pakoOptions=f,this.meta={}}o.magic="\b\0",a.inherits(u,c),u.prototype.processChunk=function(d){this.meta=d.meta,this._pako===null&&this._createPako(),this._pako.push(a.transformTo(l,d.data),!1)},u.prototype.flush=function(){c.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},u.prototype.cleanUp=function(){c.prototype.cleanUp.call(this),this._pako=null},u.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var d=this;this._pako.onData=function(f){d.push({data:f,meta:d.meta})}},o.compressWorker=function(d){return new u("Deflate",d)},o.uncompressWorker=function(){return new u("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(n,r,o){function s(h,g){var m,b="";for(m=0;m<g;m++)b+=String.fromCharCode(255&h),h>>>=8;return b}function i(h,g,m,b,y,v){var w,x,C=h.file,S=h.compression,A=v!==l.utf8encode,k=a.transformTo("string",v(C.name)),O=a.transformTo("string",l.utf8encode(C.name)),T=C.comment,B=a.transformTo("string",v(T)),_=a.transformTo("string",l.utf8encode(T)),R=O.length!==C.name.length,E=_.length!==T.length,V="",D="",H="",N=C.dir,F=C.date,X={crc32:0,compressedSize:0,uncompressedSize:0};g&&!m||(X.crc32=h.crc32,X.compressedSize=h.compressedSize,X.uncompressedSize=h.uncompressedSize);var j=0;g&&(j|=8),A||!R&&!E||(j|=2048);var M=0,Y=0;N&&(M|=16),y==="UNIX"?(Y=798,M|=function(W,re){var ee=W;return W||(ee=re?16893:33204),(65535&ee)<<16}(C.unixPermissions,N)):(Y=20,M|=function(W){return 63&(W||0)}(C.dosPermissions)),w=F.getUTCHours(),w<<=6,w|=F.getUTCMinutes(),w<<=5,w|=F.getUTCSeconds()/2,x=F.getUTCFullYear()-1980,x<<=4,x|=F.getUTCMonth()+1,x<<=5,x|=F.getUTCDate(),R&&(D=s(1,1)+s(u(k),4)+O,V+="up"+s(D.length,2)+D),E&&(H=s(1,1)+s(u(B),4)+_,V+="uc"+s(H.length,2)+H);var G="";return G+=`
120
- \0`,G+=s(j,2),G+=S.magic,G+=s(w,2),G+=s(x,2),G+=s(X.crc32,4),G+=s(X.compressedSize,4),G+=s(X.uncompressedSize,4),G+=s(k.length,2),G+=s(V.length,2),{fileRecord:d.LOCAL_FILE_HEADER+G+k+V,dirRecord:d.CENTRAL_FILE_HEADER+s(Y,2)+G+s(B.length,2)+"\0\0\0\0"+s(M,4)+s(b,4)+k+V+B}}var a=n("../utils"),c=n("../stream/GenericWorker"),l=n("../utf8"),u=n("../crc32"),d=n("../signature");function f(h,g,m,b){c.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=g,this.zipPlatform=m,this.encodeFileName=b,this.streamFiles=h,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(f,c),f.prototype.push=function(h){var g=h.meta.percent||0,m=this.entriesCount,b=this._sources.length;this.accumulate?this.contentBuffer.push(h):(this.bytesWritten+=h.data.length,c.prototype.push.call(this,{data:h.data,meta:{currentFile:this.currentFile,percent:m?(g+100*(m-b-1))/m:100}}))},f.prototype.openedSource=function(h){this.currentSourceOffset=this.bytesWritten,this.currentFile=h.file.name;var g=this.streamFiles&&!h.file.dir;if(g){var m=i(h,g,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:m.fileRecord,meta:{percent:0}})}else this.accumulate=!0},f.prototype.closedSource=function(h){this.accumulate=!1;var g=this.streamFiles&&!h.file.dir,m=i(h,g,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(m.dirRecord),g)this.push({data:function(b){return d.DATA_DESCRIPTOR+s(b.crc32,4)+s(b.compressedSize,4)+s(b.uncompressedSize,4)}(h),meta:{percent:100}});else for(this.push({data:m.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},f.prototype.flush=function(){for(var h=this.bytesWritten,g=0;g<this.dirRecords.length;g++)this.push({data:this.dirRecords[g],meta:{percent:100}});var m=this.bytesWritten-h,b=function(y,v,w,x,C){var S=a.transformTo("string",C(x));return d.CENTRAL_DIRECTORY_END+"\0\0\0\0"+s(y,2)+s(y,2)+s(v,4)+s(w,4)+s(S.length,2)+S}(this.dirRecords.length,m,h,this.zipComment,this.encodeFileName);this.push({data:b,meta:{percent:100}})},f.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},f.prototype.registerPrevious=function(h){this._sources.push(h);var g=this;return h.on("data",function(m){g.processChunk(m)}),h.on("end",function(){g.closedSource(g.previous.streamInfo),g._sources.length?g.prepareNextSource():g.end()}),h.on("error",function(m){g.error(m)}),this},f.prototype.resume=function(){return!!c.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},f.prototype.error=function(h){var g=this._sources;if(!c.prototype.error.call(this,h))return!1;for(var m=0;m<g.length;m++)try{g[m].error(h)}catch{}return!0},f.prototype.lock=function(){c.prototype.lock.call(this);for(var h=this._sources,g=0;g<h.length;g++)h[g].lock()},r.exports=f},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,r,o){var s=n("../compressions"),i=n("./ZipFileWorker");o.generateWorker=function(a,c,l){var u=new i(c.streamFiles,l,c.platform,c.encodeFileName),d=0;try{a.forEach(function(f,h){d++;var g=function(v,w){var x=v||w,C=s[x];if(!C)throw new Error(x+" is not a valid compression method !");return C}(h.options.compression,c.compression),m=h.options.compressionOptions||c.compressionOptions||{},b=h.dir,y=h.date;h._compressWorker(g,m).withStreamInfo("file",{name:f,dir:b,date:y,comment:h.comment||"",unixPermissions:h.unixPermissions,dosPermissions:h.dosPermissions}).pipe(u)}),u.entriesCount=d}catch(f){u.error(f)}return u}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(n,r,o){function s(){if(!(this instanceof s))return new s;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var i=new s;for(var a in this)typeof this[a]!="function"&&(i[a]=this[a]);return i}}(s.prototype=n("./object")).loadAsync=n("./load"),s.support=n("./support"),s.defaults=n("./defaults"),s.version="3.10.1",s.loadAsync=function(i,a){return new s().loadAsync(i,a)},s.external=n("./external"),r.exports=s},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(n,r,o){var s=n("./utils"),i=n("./external"),a=n("./utf8"),c=n("./zipEntries"),l=n("./stream/Crc32Probe"),u=n("./nodejsUtils");function d(f){return new i.Promise(function(h,g){var m=f.decompressed.getContentWorker().pipe(new l);m.on("error",function(b){g(b)}).on("end",function(){m.streamInfo.crc32!==f.decompressed.crc32?g(new Error("Corrupted zip : CRC32 mismatch")):h()}).resume()})}r.exports=function(f,h){var g=this;return h=s.extend(h||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),u.isNode&&u.isStream(f)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):s.prepareContent("the loaded zip file",f,!0,h.optimizedBinaryString,h.base64).then(function(m){var b=new c(h);return b.load(m),b}).then(function(m){var b=[i.Promise.resolve(m)],y=m.files;if(h.checkCRC32)for(var v=0;v<y.length;v++)b.push(d(y[v]));return i.Promise.all(b)}).then(function(m){for(var b=m.shift(),y=b.files,v=0;v<y.length;v++){var w=y[v],x=w.fileNameStr,C=s.resolve(w.fileNameStr);g.file(C,w.decompressed,{binary:!0,optimizedBinaryString:!0,date:w.date,dir:w.dir,comment:w.fileCommentStr.length?w.fileCommentStr:null,unixPermissions:w.unixPermissions,dosPermissions:w.dosPermissions,createFolders:h.createFolders}),w.dir||(g.file(C).unsafeOriginalName=x)}return b.zipComment.length&&(g.comment=b.zipComment),g})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(n,r,o){var s=n("../utils"),i=n("../stream/GenericWorker");function a(c,l){i.call(this,"Nodejs stream input adapter for "+c),this._upstreamEnded=!1,this._bindStream(l)}s.inherits(a,i),a.prototype._bindStream=function(c){var l=this;(this._stream=c).pause(),c.on("data",function(u){l.push({data:u,meta:{percent:0}})}).on("error",function(u){l.isPaused?this.generatedError=u:l.error(u)}).on("end",function(){l.isPaused?l._upstreamEnded=!0:l.end()})},a.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},r.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(n,r,o){var s=n("readable-stream").Readable;function i(a,c,l){s.call(this,c),this._helper=a;var u=this;a.on("data",function(d,f){u.push(d)||u._helper.pause(),l&&l(f)}).on("error",function(d){u.emit("error",d)}).on("end",function(){u.push(null)})}n("../utils").inherits(i,s),i.prototype._read=function(){this._helper.resume()},r.exports=i},{"../utils":32,"readable-stream":16}],14:[function(n,r,o){r.exports={isNode:typeof Buffer<"u",newBufferFrom:function(s,i){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(s,i);if(typeof s=="number")throw new Error('The "data" argument must not be a number');return new Buffer(s,i)},allocBuffer:function(s){if(Buffer.alloc)return Buffer.alloc(s);var i=new Buffer(s);return i.fill(0),i},isBuffer:function(s){return Buffer.isBuffer(s)},isStream:function(s){return s&&typeof s.on=="function"&&typeof s.pause=="function"&&typeof s.resume=="function"}}},{}],15:[function(n,r,o){function s(C,S,A){var k,O=a.getTypeOf(S),T=a.extend(A||{},u);T.date=T.date||new Date,T.compression!==null&&(T.compression=T.compression.toUpperCase()),typeof T.unixPermissions=="string"&&(T.unixPermissions=parseInt(T.unixPermissions,8)),T.unixPermissions&&16384&T.unixPermissions&&(T.dir=!0),T.dosPermissions&&16&T.dosPermissions&&(T.dir=!0),T.dir&&(C=y(C)),T.createFolders&&(k=b(C))&&v.call(this,k,!0);var B=O==="string"&&T.binary===!1&&T.base64===!1;A&&A.binary!==void 0||(T.binary=!B),(S instanceof d&&S.uncompressedSize===0||T.dir||!S||S.length===0)&&(T.base64=!1,T.binary=!0,S="",T.compression="STORE",O="string");var _=null;_=S instanceof d||S instanceof c?S:g.isNode&&g.isStream(S)?new m(C,S):a.prepareContent(C,S,T.binary,T.optimizedBinaryString,T.base64);var R=new f(C,_,T);this.files[C]=R}var i=n("./utf8"),a=n("./utils"),c=n("./stream/GenericWorker"),l=n("./stream/StreamHelper"),u=n("./defaults"),d=n("./compressedObject"),f=n("./zipObject"),h=n("./generate"),g=n("./nodejsUtils"),m=n("./nodejs/NodejsStreamInputAdapter"),b=function(C){C.slice(-1)==="/"&&(C=C.substring(0,C.length-1));var S=C.lastIndexOf("/");return 0<S?C.substring(0,S):""},y=function(C){return C.slice(-1)!=="/"&&(C+="/"),C},v=function(C,S){return S=S!==void 0?S:u.createFolders,C=y(C),this.files[C]||s.call(this,C,null,{dir:!0,createFolders:S}),this.files[C]};function w(C){return Object.prototype.toString.call(C)==="[object RegExp]"}var x={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(C){var S,A,k;for(S in this.files)k=this.files[S],(A=S.slice(this.root.length,S.length))&&S.slice(0,this.root.length)===this.root&&C(A,k)},filter:function(C){var S=[];return this.forEach(function(A,k){C(A,k)&&S.push(k)}),S},file:function(C,S,A){if(arguments.length!==1)return C=this.root+C,s.call(this,C,S,A),this;if(w(C)){var k=C;return this.filter(function(T,B){return!B.dir&&k.test(T)})}var O=this.files[this.root+C];return O&&!O.dir?O:null},folder:function(C){if(!C)return this;if(w(C))return this.filter(function(O,T){return T.dir&&C.test(O)});var S=this.root+C,A=v.call(this,S),k=this.clone();return k.root=A.name,k},remove:function(C){C=this.root+C;var S=this.files[C];if(S||(C.slice(-1)!=="/"&&(C+="/"),S=this.files[C]),S&&!S.dir)delete this.files[C];else for(var A=this.filter(function(O,T){return T.name.slice(0,C.length)===C}),k=0;k<A.length;k++)delete this.files[A[k].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(C){var S,A={};try{if((A=a.extend(C||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=A.type.toLowerCase(),A.compression=A.compression.toUpperCase(),A.type==="binarystring"&&(A.type="string"),!A.type)throw new Error("No output type specified.");a.checkSupport(A.type),A.platform!=="darwin"&&A.platform!=="freebsd"&&A.platform!=="linux"&&A.platform!=="sunos"||(A.platform="UNIX"),A.platform==="win32"&&(A.platform="DOS");var k=A.comment||this.comment||"";S=h.generateWorker(this,A,k)}catch(O){(S=new c("error")).error(O)}return new l(S,A.type||"string",A.mimeType)},generateAsync:function(C,S){return this.generateInternalStream(C).accumulate(S)},generateNodeStream:function(C,S){return(C=C||{}).type||(C.type="nodebuffer"),this.generateInternalStream(C).toNodejsStream(S)}};r.exports=x},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(n,r,o){r.exports=n("stream")},{stream:void 0}],17:[function(n,r,o){var s=n("./DataReader");function i(a){s.call(this,a);for(var c=0;c<this.data.length;c++)a[c]=255&a[c]}n("../utils").inherits(i,s),i.prototype.byteAt=function(a){return this.data[this.zero+a]},i.prototype.lastIndexOfSignature=function(a){for(var c=a.charCodeAt(0),l=a.charCodeAt(1),u=a.charCodeAt(2),d=a.charCodeAt(3),f=this.length-4;0<=f;--f)if(this.data[f]===c&&this.data[f+1]===l&&this.data[f+2]===u&&this.data[f+3]===d)return f-this.zero;return-1},i.prototype.readAndCheckSignature=function(a){var c=a.charCodeAt(0),l=a.charCodeAt(1),u=a.charCodeAt(2),d=a.charCodeAt(3),f=this.readData(4);return c===f[0]&&l===f[1]&&u===f[2]&&d===f[3]},i.prototype.readData=function(a){if(this.checkOffset(a),a===0)return[];var c=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,c},r.exports=i},{"../utils":32,"./DataReader":18}],18:[function(n,r,o){var s=n("../utils");function i(a){this.data=a,this.length=a.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(a){this.checkIndex(this.index+a)},checkIndex:function(a){if(this.length<this.zero+a||a<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+a+"). Corrupted zip ?")},setIndex:function(a){this.checkIndex(a),this.index=a},skip:function(a){this.setIndex(this.index+a)},byteAt:function(){},readInt:function(a){var c,l=0;for(this.checkOffset(a),c=this.index+a-1;c>=this.index;c--)l=(l<<8)+this.byteAt(c);return this.index+=a,l},readString:function(a){return s.transformTo("string",this.readData(a))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var a=this.readInt(4);return new Date(Date.UTC(1980+(a>>25&127),(a>>21&15)-1,a>>16&31,a>>11&31,a>>5&63,(31&a)<<1))}},r.exports=i},{"../utils":32}],19:[function(n,r,o){var s=n("./Uint8ArrayReader");function i(a){s.call(this,a)}n("../utils").inherits(i,s),i.prototype.readData=function(a){this.checkOffset(a);var c=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,c},r.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,r,o){var s=n("./DataReader");function i(a){s.call(this,a)}n("../utils").inherits(i,s),i.prototype.byteAt=function(a){return this.data.charCodeAt(this.zero+a)},i.prototype.lastIndexOfSignature=function(a){return this.data.lastIndexOf(a)-this.zero},i.prototype.readAndCheckSignature=function(a){return a===this.readData(4)},i.prototype.readData=function(a){this.checkOffset(a);var c=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,c},r.exports=i},{"../utils":32,"./DataReader":18}],21:[function(n,r,o){var s=n("./ArrayReader");function i(a){s.call(this,a)}n("../utils").inherits(i,s),i.prototype.readData=function(a){if(this.checkOffset(a),a===0)return new Uint8Array(0);var c=this.data.subarray(this.zero+this.index,this.zero+this.index+a);return this.index+=a,c},r.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(n,r,o){var s=n("../utils"),i=n("../support"),a=n("./ArrayReader"),c=n("./StringReader"),l=n("./NodeBufferReader"),u=n("./Uint8ArrayReader");r.exports=function(d){var f=s.getTypeOf(d);return s.checkSupport(f),f!=="string"||i.uint8array?f==="nodebuffer"?new l(d):i.uint8array?new u(s.transformTo("uint8array",d)):new a(s.transformTo("array",d)):new c(d)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(n,r,o){o.LOCAL_FILE_HEADER="PK",o.CENTRAL_FILE_HEADER="PK",o.CENTRAL_DIRECTORY_END="PK",o.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",o.ZIP64_CENTRAL_DIRECTORY_END="PK",o.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(n,r,o){var s=n("./GenericWorker"),i=n("../utils");function a(c){s.call(this,"ConvertWorker to "+c),this.destType=c}i.inherits(a,s),a.prototype.processChunk=function(c){this.push({data:i.transformTo(this.destType,c.data),meta:c.meta})},r.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(n,r,o){var s=n("./GenericWorker"),i=n("../crc32");function a(){s.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(a,s),a.prototype.processChunk=function(c){this.streamInfo.crc32=i(c.data,this.streamInfo.crc32||0),this.push(c)},r.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,r,o){var s=n("../utils"),i=n("./GenericWorker");function a(c){i.call(this,"DataLengthProbe for "+c),this.propName=c,this.withStreamInfo(c,0)}s.inherits(a,i),a.prototype.processChunk=function(c){if(c){var l=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=l+c.data.length}i.prototype.processChunk.call(this,c)},r.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(n,r,o){var s=n("../utils"),i=n("./GenericWorker");function a(c){i.call(this,"DataWorker");var l=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,c.then(function(u){l.dataIsReady=!0,l.data=u,l.max=u&&u.length||0,l.type=s.getTypeOf(u),l.isPaused||l._tickAndRepeat()},function(u){l.error(u)})}s.inherits(a,i),a.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,s.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(s.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var c=null,l=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":c=this.data.substring(this.index,l);break;case"uint8array":c=this.data.subarray(this.index,l);break;case"array":case"nodebuffer":c=this.data.slice(this.index,l)}return this.index=l,this.push({data:c,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(n,r,o){function s(i){this.name=i||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}s.prototype={push:function(i){this.emit("data",i)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(i){this.emit("error",i)}return!0},error:function(i){return!this.isFinished&&(this.isPaused?this.generatedError=i:(this.isFinished=!0,this.emit("error",i),this.previous&&this.previous.error(i),this.cleanUp()),!0)},on:function(i,a){return this._listeners[i].push(a),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(i,a){if(this._listeners[i])for(var c=0;c<this._listeners[i].length;c++)this._listeners[i][c].call(this,a)},pipe:function(i){return i.registerPrevious(this)},registerPrevious:function(i){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=i.streamInfo,this.mergeStreamInfo(),this.previous=i;var a=this;return i.on("data",function(c){a.processChunk(c)}),i.on("end",function(){a.end()}),i.on("error",function(c){a.error(c)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var i=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),i=!0),this.previous&&this.previous.resume(),!i},flush:function(){},processChunk:function(i){this.push(i)},withStreamInfo:function(i,a){return this.extraStreamInfo[i]=a,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var i in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,i)&&(this.streamInfo[i]=this.extraStreamInfo[i])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var i="Worker "+this.name;return this.previous?this.previous+" -> "+i:i}},r.exports=s},{}],29:[function(n,r,o){var s=n("../utils"),i=n("./ConvertWorker"),a=n("./GenericWorker"),c=n("../base64"),l=n("../support"),u=n("../external"),d=null;if(l.nodestream)try{d=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function f(g,m){return new u.Promise(function(b,y){var v=[],w=g._internalType,x=g._outputType,C=g._mimeType;g.on("data",function(S,A){v.push(S),m&&m(A)}).on("error",function(S){v=[],y(S)}).on("end",function(){try{var S=function(A,k,O){switch(A){case"blob":return s.newBlob(s.transformTo("arraybuffer",k),O);case"base64":return c.encode(k);default:return s.transformTo(A,k)}}(x,function(A,k){var O,T=0,B=null,_=0;for(O=0;O<k.length;O++)_+=k[O].length;switch(A){case"string":return k.join("");case"array":return Array.prototype.concat.apply([],k);case"uint8array":for(B=new Uint8Array(_),O=0;O<k.length;O++)B.set(k[O],T),T+=k[O].length;return B;case"nodebuffer":return Buffer.concat(k);default:throw new Error("concat : unsupported type '"+A+"'")}}(w,v),C);b(S)}catch(A){y(A)}v=[]}).resume()})}function h(g,m,b){var y=m;switch(m){case"blob":case"arraybuffer":y="uint8array";break;case"base64":y="string"}try{this._internalType=y,this._outputType=m,this._mimeType=b,s.checkSupport(y),this._worker=g.pipe(new i(y)),g.lock()}catch(v){this._worker=new a("error"),this._worker.error(v)}}h.prototype={accumulate:function(g){return f(this,g)},on:function(g,m){var b=this;return g==="data"?this._worker.on(g,function(y){m.call(b,y.data,y.meta)}):this._worker.on(g,function(){s.delay(m,arguments,b)}),this},resume:function(){return s.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(g){if(s.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new d(this,{objectMode:this._outputType!=="nodebuffer"},g)}},r.exports=h},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(n,r,o){if(o.base64=!0,o.array=!0,o.string=!0,o.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",o.nodebuffer=typeof Buffer<"u",o.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")o.blob=!1;else{var s=new ArrayBuffer(0);try{o.blob=new Blob([s],{type:"application/zip"}).size===0}catch{try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(s),o.blob=i.getBlob("application/zip").size===0}catch{o.blob=!1}}}try{o.nodestream=!!n("readable-stream").Readable}catch{o.nodestream=!1}},{"readable-stream":16}],31:[function(n,r,o){for(var s=n("./utils"),i=n("./support"),a=n("./nodejsUtils"),c=n("./stream/GenericWorker"),l=new Array(256),u=0;u<256;u++)l[u]=252<=u?6:248<=u?5:240<=u?4:224<=u?3:192<=u?2:1;l[254]=l[254]=1;function d(){c.call(this,"utf-8 decode"),this.leftOver=null}function f(){c.call(this,"utf-8 encode")}o.utf8encode=function(h){return i.nodebuffer?a.newBufferFrom(h,"utf-8"):function(g){var m,b,y,v,w,x=g.length,C=0;for(v=0;v<x;v++)(64512&(b=g.charCodeAt(v)))==55296&&v+1<x&&(64512&(y=g.charCodeAt(v+1)))==56320&&(b=65536+(b-55296<<10)+(y-56320),v++),C+=b<128?1:b<2048?2:b<65536?3:4;for(m=i.uint8array?new Uint8Array(C):new Array(C),v=w=0;w<C;v++)(64512&(b=g.charCodeAt(v)))==55296&&v+1<x&&(64512&(y=g.charCodeAt(v+1)))==56320&&(b=65536+(b-55296<<10)+(y-56320),v++),b<128?m[w++]=b:(b<2048?m[w++]=192|b>>>6:(b<65536?m[w++]=224|b>>>12:(m[w++]=240|b>>>18,m[w++]=128|b>>>12&63),m[w++]=128|b>>>6&63),m[w++]=128|63&b);return m}(h)},o.utf8decode=function(h){return i.nodebuffer?s.transformTo("nodebuffer",h).toString("utf-8"):function(g){var m,b,y,v,w=g.length,x=new Array(2*w);for(m=b=0;m<w;)if((y=g[m++])<128)x[b++]=y;else if(4<(v=l[y]))x[b++]=65533,m+=v-1;else{for(y&=v===2?31:v===3?15:7;1<v&&m<w;)y=y<<6|63&g[m++],v--;1<v?x[b++]=65533:y<65536?x[b++]=y:(y-=65536,x[b++]=55296|y>>10&1023,x[b++]=56320|1023&y)}return x.length!==b&&(x.subarray?x=x.subarray(0,b):x.length=b),s.applyFromCharCode(x)}(h=s.transformTo(i.uint8array?"uint8array":"array",h))},s.inherits(d,c),d.prototype.processChunk=function(h){var g=s.transformTo(i.uint8array?"uint8array":"array",h.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var m=g;(g=new Uint8Array(m.length+this.leftOver.length)).set(this.leftOver,0),g.set(m,this.leftOver.length)}else g=this.leftOver.concat(g);this.leftOver=null}var b=function(v,w){var x;for((w=w||v.length)>v.length&&(w=v.length),x=w-1;0<=x&&(192&v[x])==128;)x--;return x<0||x===0?w:x+l[v[x]]>w?x:w}(g),y=g;b!==g.length&&(i.uint8array?(y=g.subarray(0,b),this.leftOver=g.subarray(b,g.length)):(y=g.slice(0,b),this.leftOver=g.slice(b,g.length))),this.push({data:o.utf8decode(y),meta:h.meta})},d.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:o.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},o.Utf8DecodeWorker=d,s.inherits(f,c),f.prototype.processChunk=function(h){this.push({data:o.utf8encode(h.data),meta:h.meta})},o.Utf8EncodeWorker=f},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,r,o){var s=n("./support"),i=n("./base64"),a=n("./nodejsUtils"),c=n("./external");function l(m){return m}function u(m,b){for(var y=0;y<m.length;++y)b[y]=255&m.charCodeAt(y);return b}n("setimmediate"),o.newBlob=function(m,b){o.checkSupport("blob");try{return new Blob([m],{type:b})}catch{try{var y=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return y.append(m),y.getBlob(b)}catch{throw new Error("Bug : can't construct the Blob.")}}};var d={stringifyByChunk:function(m,b,y){var v=[],w=0,x=m.length;if(x<=y)return String.fromCharCode.apply(null,m);for(;w<x;)b==="array"||b==="nodebuffer"?v.push(String.fromCharCode.apply(null,m.slice(w,Math.min(w+y,x)))):v.push(String.fromCharCode.apply(null,m.subarray(w,Math.min(w+y,x)))),w+=y;return v.join("")},stringifyByChar:function(m){for(var b="",y=0;y<m.length;y++)b+=String.fromCharCode(m[y]);return b},applyCanBeUsed:{uint8array:function(){try{return s.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return s.nodebuffer&&String.fromCharCode.apply(null,a.allocBuffer(1)).length===1}catch{return!1}}()}};function f(m){var b=65536,y=o.getTypeOf(m),v=!0;if(y==="uint8array"?v=d.applyCanBeUsed.uint8array:y==="nodebuffer"&&(v=d.applyCanBeUsed.nodebuffer),v)for(;1<b;)try{return d.stringifyByChunk(m,y,b)}catch{b=Math.floor(b/2)}return d.stringifyByChar(m)}function h(m,b){for(var y=0;y<m.length;y++)b[y]=m[y];return b}o.applyFromCharCode=f;var g={};g.string={string:l,array:function(m){return u(m,new Array(m.length))},arraybuffer:function(m){return g.string.uint8array(m).buffer},uint8array:function(m){return u(m,new Uint8Array(m.length))},nodebuffer:function(m){return u(m,a.allocBuffer(m.length))}},g.array={string:f,array:l,arraybuffer:function(m){return new Uint8Array(m).buffer},uint8array:function(m){return new Uint8Array(m)},nodebuffer:function(m){return a.newBufferFrom(m)}},g.arraybuffer={string:function(m){return f(new Uint8Array(m))},array:function(m){return h(new Uint8Array(m),new Array(m.byteLength))},arraybuffer:l,uint8array:function(m){return new Uint8Array(m)},nodebuffer:function(m){return a.newBufferFrom(new Uint8Array(m))}},g.uint8array={string:f,array:function(m){return h(m,new Array(m.length))},arraybuffer:function(m){return m.buffer},uint8array:l,nodebuffer:function(m){return a.newBufferFrom(m)}},g.nodebuffer={string:f,array:function(m){return h(m,new Array(m.length))},arraybuffer:function(m){return g.nodebuffer.uint8array(m).buffer},uint8array:function(m){return h(m,new Uint8Array(m.length))},nodebuffer:l},o.transformTo=function(m,b){if(b=b||"",!m)return b;o.checkSupport(m);var y=o.getTypeOf(b);return g[y][m](b)},o.resolve=function(m){for(var b=m.split("/"),y=[],v=0;v<b.length;v++){var w=b[v];w==="."||w===""&&v!==0&&v!==b.length-1||(w===".."?y.pop():y.push(w))}return y.join("/")},o.getTypeOf=function(m){return typeof m=="string"?"string":Object.prototype.toString.call(m)==="[object Array]"?"array":s.nodebuffer&&a.isBuffer(m)?"nodebuffer":s.uint8array&&m instanceof Uint8Array?"uint8array":s.arraybuffer&&m instanceof ArrayBuffer?"arraybuffer":void 0},o.checkSupport=function(m){if(!s[m.toLowerCase()])throw new Error(m+" is not supported by this platform")},o.MAX_VALUE_16BITS=65535,o.MAX_VALUE_32BITS=-1,o.pretty=function(m){var b,y,v="";for(y=0;y<(m||"").length;y++)v+="\\x"+((b=m.charCodeAt(y))<16?"0":"")+b.toString(16).toUpperCase();return v},o.delay=function(m,b,y){setImmediate(function(){m.apply(y||null,b||[])})},o.inherits=function(m,b){function y(){}y.prototype=b.prototype,m.prototype=new y},o.extend=function(){var m,b,y={};for(m=0;m<arguments.length;m++)for(b in arguments[m])Object.prototype.hasOwnProperty.call(arguments[m],b)&&y[b]===void 0&&(y[b]=arguments[m][b]);return y},o.prepareContent=function(m,b,y,v,w){return c.Promise.resolve(b).then(function(x){return s.blob&&(x instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(x))!==-1)&&typeof FileReader<"u"?new c.Promise(function(C,S){var A=new FileReader;A.onload=function(k){C(k.target.result)},A.onerror=function(k){S(k.target.error)},A.readAsArrayBuffer(x)}):x}).then(function(x){var C=o.getTypeOf(x);return C?(C==="arraybuffer"?x=o.transformTo("uint8array",x):C==="string"&&(w?x=i.decode(x):y&&v!==!0&&(x=function(S){return u(S,s.uint8array?new Uint8Array(S.length):new Array(S.length))}(x))),x):c.Promise.reject(new Error("Can't read the data of '"+m+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(n,r,o){var s=n("./reader/readerFor"),i=n("./utils"),a=n("./signature"),c=n("./zipEntry"),l=n("./support");function u(d){this.files=[],this.loadOptions=d}u.prototype={checkSignature:function(d){if(!this.reader.readAndCheckSignature(d)){this.reader.index-=4;var f=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(f)+", expected "+i.pretty(d)+")")}},isSignature:function(d,f){var h=this.reader.index;this.reader.setIndex(d);var g=this.reader.readString(4)===f;return this.reader.setIndex(h),g},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var d=this.reader.readData(this.zipCommentLength),f=l.uint8array?"uint8array":"array",h=i.transformTo(f,d);this.zipComment=this.loadOptions.decodeFileName(h)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var d,f,h,g=this.zip64EndOfCentralSize-44;0<g;)d=this.reader.readInt(2),f=this.reader.readInt(4),h=this.reader.readData(f),this.zip64ExtensibleData[d]={id:d,length:f,value:h}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var d,f;for(d=0;d<this.files.length;d++)f=this.files[d],this.reader.setIndex(f.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),f.readLocalPart(this.reader),f.handleUTF8(),f.processAttributes()},readCentralDir:function(){var d;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(d=new c({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(d);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var d=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(d<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(d);var f=d;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(d=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(d),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var h=this.centralDirOffset+this.centralDirSize;this.zip64&&(h+=20,h+=12+this.zip64EndOfCentralSize);var g=f-h;if(0<g)this.isSignature(f,a.CENTRAL_FILE_HEADER)||(this.reader.zero=g);else if(g<0)throw new Error("Corrupted zip: missing "+Math.abs(g)+" bytes.")},prepareReader:function(d){this.reader=s(d)},load:function(d){this.prepareReader(d),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=u},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(n,r,o){var s=n("./reader/readerFor"),i=n("./utils"),a=n("./compressedObject"),c=n("./crc32"),l=n("./utf8"),u=n("./compressions"),d=n("./support");function f(h,g){this.options=h,this.loadOptions=g}f.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(h){var g,m;if(h.skip(22),this.fileNameLength=h.readInt(2),m=h.readInt(2),this.fileName=h.readData(this.fileNameLength),h.skip(m),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((g=function(b){for(var y in u)if(Object.prototype.hasOwnProperty.call(u,y)&&u[y].magic===b)return u[y];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,g,h.readData(this.compressedSize))},readCentralPart:function(h){this.versionMadeBy=h.readInt(2),h.skip(2),this.bitFlag=h.readInt(2),this.compressionMethod=h.readString(2),this.date=h.readDate(),this.crc32=h.readInt(4),this.compressedSize=h.readInt(4),this.uncompressedSize=h.readInt(4);var g=h.readInt(2);if(this.extraFieldsLength=h.readInt(2),this.fileCommentLength=h.readInt(2),this.diskNumberStart=h.readInt(2),this.internalFileAttributes=h.readInt(2),this.externalFileAttributes=h.readInt(4),this.localHeaderOffset=h.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");h.skip(g),this.readExtraFields(h),this.parseZIP64ExtraField(h),this.fileComment=h.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var h=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),h==0&&(this.dosPermissions=63&this.externalFileAttributes),h==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var h=s(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=h.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=h.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=h.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=h.readInt(4))}},readExtraFields:function(h){var g,m,b,y=h.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});h.index+4<y;)g=h.readInt(2),m=h.readInt(2),b=h.readData(m),this.extraFields[g]={id:g,length:m,value:b};h.setIndex(y)},handleUTF8:function(){var h=d.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=l.utf8decode(this.fileName),this.fileCommentStr=l.utf8decode(this.fileComment);else{var g=this.findExtraFieldUnicodePath();if(g!==null)this.fileNameStr=g;else{var m=i.transformTo(h,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(m)}var b=this.findExtraFieldUnicodeComment();if(b!==null)this.fileCommentStr=b;else{var y=i.transformTo(h,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(y)}}},findExtraFieldUnicodePath:function(){var h=this.extraFields[28789];if(h){var g=s(h.value);return g.readInt(1)!==1||c(this.fileName)!==g.readInt(4)?null:l.utf8decode(g.readData(h.length-5))}return null},findExtraFieldUnicodeComment:function(){var h=this.extraFields[25461];if(h){var g=s(h.value);return g.readInt(1)!==1||c(this.fileComment)!==g.readInt(4)?null:l.utf8decode(g.readData(h.length-5))}return null}},r.exports=f},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(n,r,o){function s(g,m,b){this.name=g,this.dir=b.dir,this.date=b.date,this.comment=b.comment,this.unixPermissions=b.unixPermissions,this.dosPermissions=b.dosPermissions,this._data=m,this._dataBinary=b.binary,this.options={compression:b.compression,compressionOptions:b.compressionOptions}}var i=n("./stream/StreamHelper"),a=n("./stream/DataWorker"),c=n("./utf8"),l=n("./compressedObject"),u=n("./stream/GenericWorker");s.prototype={internalStream:function(g){var m=null,b="string";try{if(!g)throw new Error("No output type specified.");var y=(b=g.toLowerCase())==="string"||b==="text";b!=="binarystring"&&b!=="text"||(b="string"),m=this._decompressWorker();var v=!this._dataBinary;v&&!y&&(m=m.pipe(new c.Utf8EncodeWorker)),!v&&y&&(m=m.pipe(new c.Utf8DecodeWorker))}catch(w){(m=new u("error")).error(w)}return new i(m,b,"")},async:function(g,m){return this.internalStream(g).accumulate(m)},nodeStream:function(g,m){return this.internalStream(g||"nodebuffer").toNodejsStream(m)},_compressWorker:function(g,m){if(this._data instanceof l&&this._data.compression.magic===g.magic)return this._data.getCompressedWorker();var b=this._decompressWorker();return this._dataBinary||(b=b.pipe(new c.Utf8EncodeWorker)),l.createWorkerFrom(b,g,m)},_decompressWorker:function(){return this._data instanceof l?this._data.getContentWorker():this._data instanceof u?this._data:new a(this._data)}};for(var d=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],f=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<d.length;h++)s.prototype[d[h]]=f;r.exports=s},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(n,r,o){(function(s){var i,a,c=s.MutationObserver||s.WebKitMutationObserver;if(c){var l=0,u=new c(g),d=s.document.createTextNode("");u.observe(d,{characterData:!0}),i=function(){d.data=l=++l%2}}else if(s.setImmediate||s.MessageChannel===void 0)i="document"in s&&"onreadystatechange"in s.document.createElement("script")?function(){var m=s.document.createElement("script");m.onreadystatechange=function(){g(),m.onreadystatechange=null,m.parentNode.removeChild(m),m=null},s.document.documentElement.appendChild(m)}:function(){setTimeout(g,0)};else{var f=new s.MessageChannel;f.port1.onmessage=g,i=function(){f.port2.postMessage(0)}}var h=[];function g(){var m,b;a=!0;for(var y=h.length;y;){for(b=h,h=[],m=-1;++m<y;)b[m]();y=h.length}a=!1}r.exports=function(m){h.push(m)!==1||a||i()}}).call(this,typeof lo<"u"?lo:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(n,r,o){var s=n("immediate");function i(){}var a={},c=["REJECTED"],l=["FULFILLED"],u=["PENDING"];function d(y){if(typeof y!="function")throw new TypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void 0,y!==i&&m(this,y)}function f(y,v,w){this.promise=y,typeof v=="function"&&(this.onFulfilled=v,this.callFulfilled=this.otherCallFulfilled),typeof w=="function"&&(this.onRejected=w,this.callRejected=this.otherCallRejected)}function h(y,v,w){s(function(){var x;try{x=v(w)}catch(C){return a.reject(y,C)}x===y?a.reject(y,new TypeError("Cannot resolve promise with itself")):a.resolve(y,x)})}function g(y){var v=y&&y.then;if(y&&(typeof y=="object"||typeof y=="function")&&typeof v=="function")return function(){v.apply(y,arguments)}}function m(y,v){var w=!1;function x(A){w||(w=!0,a.reject(y,A))}function C(A){w||(w=!0,a.resolve(y,A))}var S=b(function(){v(C,x)});S.status==="error"&&x(S.value)}function b(y,v){var w={};try{w.value=y(v),w.status="success"}catch(x){w.status="error",w.value=x}return w}(r.exports=d).prototype.finally=function(y){if(typeof y!="function")return this;var v=this.constructor;return this.then(function(w){return v.resolve(y()).then(function(){return w})},function(w){return v.resolve(y()).then(function(){throw w})})},d.prototype.catch=function(y){return this.then(null,y)},d.prototype.then=function(y,v){if(typeof y!="function"&&this.state===l||typeof v!="function"&&this.state===c)return this;var w=new this.constructor(i);return this.state!==u?h(w,this.state===l?y:v,this.outcome):this.queue.push(new f(w,y,v)),w},f.prototype.callFulfilled=function(y){a.resolve(this.promise,y)},f.prototype.otherCallFulfilled=function(y){h(this.promise,this.onFulfilled,y)},f.prototype.callRejected=function(y){a.reject(this.promise,y)},f.prototype.otherCallRejected=function(y){h(this.promise,this.onRejected,y)},a.resolve=function(y,v){var w=b(g,v);if(w.status==="error")return a.reject(y,w.value);var x=w.value;if(x)m(y,x);else{y.state=l,y.outcome=v;for(var C=-1,S=y.queue.length;++C<S;)y.queue[C].callFulfilled(v)}return y},a.reject=function(y,v){y.state=c,y.outcome=v;for(var w=-1,x=y.queue.length;++w<x;)y.queue[w].callRejected(v);return y},d.resolve=function(y){return y instanceof this?y:a.resolve(new this(i),y)},d.reject=function(y){var v=new this(i);return a.reject(v,y)},d.all=function(y){var v=this;if(Object.prototype.toString.call(y)!=="[object Array]")return this.reject(new TypeError("must be an array"));var w=y.length,x=!1;if(!w)return this.resolve([]);for(var C=new Array(w),S=0,A=-1,k=new this(i);++A<w;)O(y[A],A);return k;function O(T,B){v.resolve(T).then(function(_){C[B]=_,++S!==w||x||(x=!0,a.resolve(k,C))},function(_){x||(x=!0,a.reject(k,_))})}},d.race=function(y){var v=this;if(Object.prototype.toString.call(y)!=="[object Array]")return this.reject(new TypeError("must be an array"));var w=y.length,x=!1;if(!w)return this.resolve([]);for(var C=-1,S=new this(i);++C<w;)A=y[C],v.resolve(A).then(function(k){x||(x=!0,a.resolve(S,k))},function(k){x||(x=!0,a.reject(S,k))});var A;return S}},{immediate:36}],38:[function(n,r,o){var s={};(0,n("./lib/utils/common").assign)(s,n("./lib/deflate"),n("./lib/inflate"),n("./lib/zlib/constants")),r.exports=s},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(n,r,o){var s=n("./zlib/deflate"),i=n("./utils/common"),a=n("./utils/strings"),c=n("./zlib/messages"),l=n("./zlib/zstream"),u=Object.prototype.toString,d=0,f=-1,h=0,g=8;function m(y){if(!(this instanceof m))return new m(y);this.options=i.assign({level:f,method:g,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:""},y||{});var v=this.options;v.raw&&0<v.windowBits?v.windowBits=-v.windowBits:v.gzip&&0<v.windowBits&&v.windowBits<16&&(v.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var w=s.deflateInit2(this.strm,v.level,v.method,v.windowBits,v.memLevel,v.strategy);if(w!==d)throw new Error(c[w]);if(v.header&&s.deflateSetHeader(this.strm,v.header),v.dictionary){var x;if(x=typeof v.dictionary=="string"?a.string2buf(v.dictionary):u.call(v.dictionary)==="[object ArrayBuffer]"?new Uint8Array(v.dictionary):v.dictionary,(w=s.deflateSetDictionary(this.strm,x))!==d)throw new Error(c[w]);this._dict_set=!0}}function b(y,v){var w=new m(v);if(w.push(y,!0),w.err)throw w.msg||c[w.err];return w.result}m.prototype.push=function(y,v){var w,x,C=this.strm,S=this.options.chunkSize;if(this.ended)return!1;x=v===~~v?v:v===!0?4:0,typeof y=="string"?C.input=a.string2buf(y):u.call(y)==="[object ArrayBuffer]"?C.input=new Uint8Array(y):C.input=y,C.next_in=0,C.avail_in=C.input.length;do{if(C.avail_out===0&&(C.output=new i.Buf8(S),C.next_out=0,C.avail_out=S),(w=s.deflate(C,x))!==1&&w!==d)return this.onEnd(w),!(this.ended=!0);C.avail_out!==0&&(C.avail_in!==0||x!==4&&x!==2)||(this.options.to==="string"?this.onData(a.buf2binstring(i.shrinkBuf(C.output,C.next_out))):this.onData(i.shrinkBuf(C.output,C.next_out)))}while((0<C.avail_in||C.avail_out===0)&&w!==1);return x===4?(w=s.deflateEnd(this.strm),this.onEnd(w),this.ended=!0,w===d):x!==2||(this.onEnd(d),!(C.avail_out=0))},m.prototype.onData=function(y){this.chunks.push(y)},m.prototype.onEnd=function(y){y===d&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=y,this.msg=this.strm.msg},o.Deflate=m,o.deflate=b,o.deflateRaw=function(y,v){return(v=v||{}).raw=!0,b(y,v)},o.gzip=function(y,v){return(v=v||{}).gzip=!0,b(y,v)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(n,r,o){var s=n("./zlib/inflate"),i=n("./utils/common"),a=n("./utils/strings"),c=n("./zlib/constants"),l=n("./zlib/messages"),u=n("./zlib/zstream"),d=n("./zlib/gzheader"),f=Object.prototype.toString;function h(m){if(!(this instanceof h))return new h(m);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},m||{});var b=this.options;b.raw&&0<=b.windowBits&&b.windowBits<16&&(b.windowBits=-b.windowBits,b.windowBits===0&&(b.windowBits=-15)),!(0<=b.windowBits&&b.windowBits<16)||m&&m.windowBits||(b.windowBits+=32),15<b.windowBits&&b.windowBits<48&&(15&b.windowBits)==0&&(b.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var y=s.inflateInit2(this.strm,b.windowBits);if(y!==c.Z_OK)throw new Error(l[y]);this.header=new d,s.inflateGetHeader(this.strm,this.header)}function g(m,b){var y=new h(b);if(y.push(m,!0),y.err)throw y.msg||l[y.err];return y.result}h.prototype.push=function(m,b){var y,v,w,x,C,S,A=this.strm,k=this.options.chunkSize,O=this.options.dictionary,T=!1;if(this.ended)return!1;v=b===~~b?b:b===!0?c.Z_FINISH:c.Z_NO_FLUSH,typeof m=="string"?A.input=a.binstring2buf(m):f.call(m)==="[object ArrayBuffer]"?A.input=new Uint8Array(m):A.input=m,A.next_in=0,A.avail_in=A.input.length;do{if(A.avail_out===0&&(A.output=new i.Buf8(k),A.next_out=0,A.avail_out=k),(y=s.inflate(A,c.Z_NO_FLUSH))===c.Z_NEED_DICT&&O&&(S=typeof O=="string"?a.string2buf(O):f.call(O)==="[object ArrayBuffer]"?new Uint8Array(O):O,y=s.inflateSetDictionary(this.strm,S)),y===c.Z_BUF_ERROR&&T===!0&&(y=c.Z_OK,T=!1),y!==c.Z_STREAM_END&&y!==c.Z_OK)return this.onEnd(y),!(this.ended=!0);A.next_out&&(A.avail_out!==0&&y!==c.Z_STREAM_END&&(A.avail_in!==0||v!==c.Z_FINISH&&v!==c.Z_SYNC_FLUSH)||(this.options.to==="string"?(w=a.utf8border(A.output,A.next_out),x=A.next_out-w,C=a.buf2string(A.output,w),A.next_out=x,A.avail_out=k-x,x&&i.arraySet(A.output,A.output,w,x,0),this.onData(C)):this.onData(i.shrinkBuf(A.output,A.next_out)))),A.avail_in===0&&A.avail_out===0&&(T=!0)}while((0<A.avail_in||A.avail_out===0)&&y!==c.Z_STREAM_END);return y===c.Z_STREAM_END&&(v=c.Z_FINISH),v===c.Z_FINISH?(y=s.inflateEnd(this.strm),this.onEnd(y),this.ended=!0,y===c.Z_OK):v!==c.Z_SYNC_FLUSH||(this.onEnd(c.Z_OK),!(A.avail_out=0))},h.prototype.onData=function(m){this.chunks.push(m)},h.prototype.onEnd=function(m){m===c.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=m,this.msg=this.strm.msg},o.Inflate=h,o.inflate=g,o.inflateRaw=function(m,b){return(b=b||{}).raw=!0,g(m,b)},o.ungzip=g},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(n,r,o){var s=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";o.assign=function(c){for(var l=Array.prototype.slice.call(arguments,1);l.length;){var u=l.shift();if(u){if(typeof u!="object")throw new TypeError(u+"must be non-object");for(var d in u)u.hasOwnProperty(d)&&(c[d]=u[d])}}return c},o.shrinkBuf=function(c,l){return c.length===l?c:c.subarray?c.subarray(0,l):(c.length=l,c)};var i={arraySet:function(c,l,u,d,f){if(l.subarray&&c.subarray)c.set(l.subarray(u,u+d),f);else for(var h=0;h<d;h++)c[f+h]=l[u+h]},flattenChunks:function(c){var l,u,d,f,h,g;for(l=d=0,u=c.length;l<u;l++)d+=c[l].length;for(g=new Uint8Array(d),l=f=0,u=c.length;l<u;l++)h=c[l],g.set(h,f),f+=h.length;return g}},a={arraySet:function(c,l,u,d,f){for(var h=0;h<d;h++)c[f+h]=l[u+h]},flattenChunks:function(c){return[].concat.apply([],c)}};o.setTyped=function(c){c?(o.Buf8=Uint8Array,o.Buf16=Uint16Array,o.Buf32=Int32Array,o.assign(o,i)):(o.Buf8=Array,o.Buf16=Array,o.Buf32=Array,o.assign(o,a))},o.setTyped(s)},{}],42:[function(n,r,o){var s=n("./common"),i=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch{i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{a=!1}for(var c=new s.Buf8(256),l=0;l<256;l++)c[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function u(d,f){if(f<65537&&(d.subarray&&a||!d.subarray&&i))return String.fromCharCode.apply(null,s.shrinkBuf(d,f));for(var h="",g=0;g<f;g++)h+=String.fromCharCode(d[g]);return h}c[254]=c[254]=1,o.string2buf=function(d){var f,h,g,m,b,y=d.length,v=0;for(m=0;m<y;m++)(64512&(h=d.charCodeAt(m)))==55296&&m+1<y&&(64512&(g=d.charCodeAt(m+1)))==56320&&(h=65536+(h-55296<<10)+(g-56320),m++),v+=h<128?1:h<2048?2:h<65536?3:4;for(f=new s.Buf8(v),m=b=0;b<v;m++)(64512&(h=d.charCodeAt(m)))==55296&&m+1<y&&(64512&(g=d.charCodeAt(m+1)))==56320&&(h=65536+(h-55296<<10)+(g-56320),m++),h<128?f[b++]=h:(h<2048?f[b++]=192|h>>>6:(h<65536?f[b++]=224|h>>>12:(f[b++]=240|h>>>18,f[b++]=128|h>>>12&63),f[b++]=128|h>>>6&63),f[b++]=128|63&h);return f},o.buf2binstring=function(d){return u(d,d.length)},o.binstring2buf=function(d){for(var f=new s.Buf8(d.length),h=0,g=f.length;h<g;h++)f[h]=d.charCodeAt(h);return f},o.buf2string=function(d,f){var h,g,m,b,y=f||d.length,v=new Array(2*y);for(h=g=0;h<y;)if((m=d[h++])<128)v[g++]=m;else if(4<(b=c[m]))v[g++]=65533,h+=b-1;else{for(m&=b===2?31:b===3?15:7;1<b&&h<y;)m=m<<6|63&d[h++],b--;1<b?v[g++]=65533:m<65536?v[g++]=m:(m-=65536,v[g++]=55296|m>>10&1023,v[g++]=56320|1023&m)}return u(v,g)},o.utf8border=function(d,f){var h;for((f=f||d.length)>d.length&&(f=d.length),h=f-1;0<=h&&(192&d[h])==128;)h--;return h<0||h===0?f:h+c[d[h]]>f?h:f}},{"./common":41}],43:[function(n,r,o){r.exports=function(s,i,a,c){for(var l=65535&s|0,u=s>>>16&65535|0,d=0;a!==0;){for(a-=d=2e3<a?2e3:a;u=u+(l=l+i[c++]|0)|0,--d;);l%=65521,u%=65521}return l|u<<16|0}},{}],44:[function(n,r,o){r.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(n,r,o){var s=function(){for(var i,a=[],c=0;c<256;c++){i=c;for(var l=0;l<8;l++)i=1&i?3988292384^i>>>1:i>>>1;a[c]=i}return a}();r.exports=function(i,a,c,l){var u=s,d=l+c;i^=-1;for(var f=l;f<d;f++)i=i>>>8^u[255&(i^a[f])];return-1^i}},{}],46:[function(n,r,o){var s,i=n("../utils/common"),a=n("./trees"),c=n("./adler32"),l=n("./crc32"),u=n("./messages"),d=0,f=4,h=0,g=-2,m=-1,b=4,y=2,v=8,w=9,x=286,C=30,S=19,A=2*x+1,k=15,O=3,T=258,B=T+O+1,_=42,R=113,E=1,V=2,D=3,H=4;function N(I,se){return I.msg=u[se],se}function F(I){return(I<<1)-(4<I?9:0)}function X(I){for(var se=I.length;0<=--se;)I[se]=0}function j(I){var se=I.state,oe=se.pending;oe>I.avail_out&&(oe=I.avail_out),oe!==0&&(i.arraySet(I.output,se.pending_buf,se.pending_out,oe,I.next_out),I.next_out+=oe,se.pending_out+=oe,I.total_out+=oe,I.avail_out-=oe,se.pending-=oe,se.pending===0&&(se.pending_out=0))}function M(I,se){a._tr_flush_block(I,0<=I.block_start?I.block_start:-1,I.strstart-I.block_start,se),I.block_start=I.strstart,j(I.strm)}function Y(I,se){I.pending_buf[I.pending++]=se}function G(I,se){I.pending_buf[I.pending++]=se>>>8&255,I.pending_buf[I.pending++]=255&se}function W(I,se){var oe,U,z=I.max_chain_length,K=I.strstart,L=I.prev_length,Z=I.nice_match,$=I.strstart>I.w_size-B?I.strstart-(I.w_size-B):0,te=I.window,ne=I.w_mask,Q=I.prev,le=I.strstart+T,ke=te[K+L-1],Ee=te[K+L];I.prev_length>=I.good_match&&(z>>=2),Z>I.lookahead&&(Z=I.lookahead);do if(te[(oe=se)+L]===Ee&&te[oe+L-1]===ke&&te[oe]===te[K]&&te[++oe]===te[K+1]){K+=2,oe++;do;while(te[++K]===te[++oe]&&te[++K]===te[++oe]&&te[++K]===te[++oe]&&te[++K]===te[++oe]&&te[++K]===te[++oe]&&te[++K]===te[++oe]&&te[++K]===te[++oe]&&te[++K]===te[++oe]&&K<le);if(U=T-(le-K),K=le-T,L<U){if(I.match_start=se,Z<=(L=U))break;ke=te[K+L-1],Ee=te[K+L]}}while((se=Q[se&ne])>$&&--z!=0);return L<=I.lookahead?L:I.lookahead}function re(I){var se,oe,U,z,K,L,Z,$,te,ne,Q=I.w_size;do{if(z=I.window_size-I.lookahead-I.strstart,I.strstart>=Q+(Q-B)){for(i.arraySet(I.window,I.window,Q,Q,0),I.match_start-=Q,I.strstart-=Q,I.block_start-=Q,se=oe=I.hash_size;U=I.head[--se],I.head[se]=Q<=U?U-Q:0,--oe;);for(se=oe=Q;U=I.prev[--se],I.prev[se]=Q<=U?U-Q:0,--oe;);z+=Q}if(I.strm.avail_in===0)break;if(L=I.strm,Z=I.window,$=I.strstart+I.lookahead,te=z,ne=void 0,ne=L.avail_in,te<ne&&(ne=te),oe=ne===0?0:(L.avail_in-=ne,i.arraySet(Z,L.input,L.next_in,ne,$),L.state.wrap===1?L.adler=c(L.adler,Z,ne,$):L.state.wrap===2&&(L.adler=l(L.adler,Z,ne,$)),L.next_in+=ne,L.total_in+=ne,ne),I.lookahead+=oe,I.lookahead+I.insert>=O)for(K=I.strstart-I.insert,I.ins_h=I.window[K],I.ins_h=(I.ins_h<<I.hash_shift^I.window[K+1])&I.hash_mask;I.insert&&(I.ins_h=(I.ins_h<<I.hash_shift^I.window[K+O-1])&I.hash_mask,I.prev[K&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=K,K++,I.insert--,!(I.lookahead+I.insert<O)););}while(I.lookahead<B&&I.strm.avail_in!==0)}function ee(I,se){for(var oe,U;;){if(I.lookahead<B){if(re(I),I.lookahead<B&&se===d)return E;if(I.lookahead===0)break}if(oe=0,I.lookahead>=O&&(I.ins_h=(I.ins_h<<I.hash_shift^I.window[I.strstart+O-1])&I.hash_mask,oe=I.prev[I.strstart&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=I.strstart),oe!==0&&I.strstart-oe<=I.w_size-B&&(I.match_length=W(I,oe)),I.match_length>=O)if(U=a._tr_tally(I,I.strstart-I.match_start,I.match_length-O),I.lookahead-=I.match_length,I.match_length<=I.max_lazy_match&&I.lookahead>=O){for(I.match_length--;I.strstart++,I.ins_h=(I.ins_h<<I.hash_shift^I.window[I.strstart+O-1])&I.hash_mask,oe=I.prev[I.strstart&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=I.strstart,--I.match_length!=0;);I.strstart++}else I.strstart+=I.match_length,I.match_length=0,I.ins_h=I.window[I.strstart],I.ins_h=(I.ins_h<<I.hash_shift^I.window[I.strstart+1])&I.hash_mask;else U=a._tr_tally(I,0,I.window[I.strstart]),I.lookahead--,I.strstart++;if(U&&(M(I,!1),I.strm.avail_out===0))return E}return I.insert=I.strstart<O-1?I.strstart:O-1,se===f?(M(I,!0),I.strm.avail_out===0?D:H):I.last_lit&&(M(I,!1),I.strm.avail_out===0)?E:V}function ie(I,se){for(var oe,U,z;;){if(I.lookahead<B){if(re(I),I.lookahead<B&&se===d)return E;if(I.lookahead===0)break}if(oe=0,I.lookahead>=O&&(I.ins_h=(I.ins_h<<I.hash_shift^I.window[I.strstart+O-1])&I.hash_mask,oe=I.prev[I.strstart&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=I.strstart),I.prev_length=I.match_length,I.prev_match=I.match_start,I.match_length=O-1,oe!==0&&I.prev_length<I.max_lazy_match&&I.strstart-oe<=I.w_size-B&&(I.match_length=W(I,oe),I.match_length<=5&&(I.strategy===1||I.match_length===O&&4096<I.strstart-I.match_start)&&(I.match_length=O-1)),I.prev_length>=O&&I.match_length<=I.prev_length){for(z=I.strstart+I.lookahead-O,U=a._tr_tally(I,I.strstart-1-I.prev_match,I.prev_length-O),I.lookahead-=I.prev_length-1,I.prev_length-=2;++I.strstart<=z&&(I.ins_h=(I.ins_h<<I.hash_shift^I.window[I.strstart+O-1])&I.hash_mask,oe=I.prev[I.strstart&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=I.strstart),--I.prev_length!=0;);if(I.match_available=0,I.match_length=O-1,I.strstart++,U&&(M(I,!1),I.strm.avail_out===0))return E}else if(I.match_available){if((U=a._tr_tally(I,0,I.window[I.strstart-1]))&&M(I,!1),I.strstart++,I.lookahead--,I.strm.avail_out===0)return E}else I.match_available=1,I.strstart++,I.lookahead--}return I.match_available&&(U=a._tr_tally(I,0,I.window[I.strstart-1]),I.match_available=0),I.insert=I.strstart<O-1?I.strstart:O-1,se===f?(M(I,!0),I.strm.avail_out===0?D:H):I.last_lit&&(M(I,!1),I.strm.avail_out===0)?E:V}function ce(I,se,oe,U,z){this.good_length=I,this.max_lazy=se,this.nice_length=oe,this.max_chain=U,this.func=z}function be(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=v,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*A),this.dyn_dtree=new i.Buf16(2*(2*C+1)),this.bl_tree=new i.Buf16(2*(2*S+1)),X(this.dyn_ltree),X(this.dyn_dtree),X(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(k+1),this.heap=new i.Buf16(2*x+1),X(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*x+1),X(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Oe(I){var se;return I&&I.state?(I.total_in=I.total_out=0,I.data_type=y,(se=I.state).pending=0,se.pending_out=0,se.wrap<0&&(se.wrap=-se.wrap),se.status=se.wrap?_:R,I.adler=se.wrap===2?0:1,se.last_flush=d,a._tr_init(se),h):N(I,g)}function He(I){var se=Oe(I);return se===h&&function(oe){oe.window_size=2*oe.w_size,X(oe.head),oe.max_lazy_match=s[oe.level].max_lazy,oe.good_match=s[oe.level].good_length,oe.nice_match=s[oe.level].nice_length,oe.max_chain_length=s[oe.level].max_chain,oe.strstart=0,oe.block_start=0,oe.lookahead=0,oe.insert=0,oe.match_length=oe.prev_length=O-1,oe.match_available=0,oe.ins_h=0}(I.state),se}function tt(I,se,oe,U,z,K){if(!I)return g;var L=1;if(se===m&&(se=6),U<0?(L=0,U=-U):15<U&&(L=2,U-=16),z<1||w<z||oe!==v||U<8||15<U||se<0||9<se||K<0||b<K)return N(I,g);U===8&&(U=9);var Z=new be;return(I.state=Z).strm=I,Z.wrap=L,Z.gzhead=null,Z.w_bits=U,Z.w_size=1<<Z.w_bits,Z.w_mask=Z.w_size-1,Z.hash_bits=z+7,Z.hash_size=1<<Z.hash_bits,Z.hash_mask=Z.hash_size-1,Z.hash_shift=~~((Z.hash_bits+O-1)/O),Z.window=new i.Buf8(2*Z.w_size),Z.head=new i.Buf16(Z.hash_size),Z.prev=new i.Buf16(Z.w_size),Z.lit_bufsize=1<<z+6,Z.pending_buf_size=4*Z.lit_bufsize,Z.pending_buf=new i.Buf8(Z.pending_buf_size),Z.d_buf=1*Z.lit_bufsize,Z.l_buf=3*Z.lit_bufsize,Z.level=se,Z.strategy=K,Z.method=oe,He(I)}s=[new ce(0,0,0,0,function(I,se){var oe=65535;for(oe>I.pending_buf_size-5&&(oe=I.pending_buf_size-5);;){if(I.lookahead<=1){if(re(I),I.lookahead===0&&se===d)return E;if(I.lookahead===0)break}I.strstart+=I.lookahead,I.lookahead=0;var U=I.block_start+oe;if((I.strstart===0||I.strstart>=U)&&(I.lookahead=I.strstart-U,I.strstart=U,M(I,!1),I.strm.avail_out===0)||I.strstart-I.block_start>=I.w_size-B&&(M(I,!1),I.strm.avail_out===0))return E}return I.insert=0,se===f?(M(I,!0),I.strm.avail_out===0?D:H):(I.strstart>I.block_start&&(M(I,!1),I.strm.avail_out),E)}),new ce(4,4,8,4,ee),new ce(4,5,16,8,ee),new ce(4,6,32,32,ee),new ce(4,4,16,16,ie),new ce(8,16,32,32,ie),new ce(8,16,128,128,ie),new ce(8,32,128,256,ie),new ce(32,128,258,1024,ie),new ce(32,258,258,4096,ie)],o.deflateInit=function(I,se){return tt(I,se,v,15,8,0)},o.deflateInit2=tt,o.deflateReset=He,o.deflateResetKeep=Oe,o.deflateSetHeader=function(I,se){return I&&I.state?I.state.wrap!==2?g:(I.state.gzhead=se,h):g},o.deflate=function(I,se){var oe,U,z,K;if(!I||!I.state||5<se||se<0)return I?N(I,g):g;if(U=I.state,!I.output||!I.input&&I.avail_in!==0||U.status===666&&se!==f)return N(I,I.avail_out===0?-5:g);if(U.strm=I,oe=U.last_flush,U.last_flush=se,U.status===_)if(U.wrap===2)I.adler=0,Y(U,31),Y(U,139),Y(U,8),U.gzhead?(Y(U,(U.gzhead.text?1:0)+(U.gzhead.hcrc?2:0)+(U.gzhead.extra?4:0)+(U.gzhead.name?8:0)+(U.gzhead.comment?16:0)),Y(U,255&U.gzhead.time),Y(U,U.gzhead.time>>8&255),Y(U,U.gzhead.time>>16&255),Y(U,U.gzhead.time>>24&255),Y(U,U.level===9?2:2<=U.strategy||U.level<2?4:0),Y(U,255&U.gzhead.os),U.gzhead.extra&&U.gzhead.extra.length&&(Y(U,255&U.gzhead.extra.length),Y(U,U.gzhead.extra.length>>8&255)),U.gzhead.hcrc&&(I.adler=l(I.adler,U.pending_buf,U.pending,0)),U.gzindex=0,U.status=69):(Y(U,0),Y(U,0),Y(U,0),Y(U,0),Y(U,0),Y(U,U.level===9?2:2<=U.strategy||U.level<2?4:0),Y(U,3),U.status=R);else{var L=v+(U.w_bits-8<<4)<<8;L|=(2<=U.strategy||U.level<2?0:U.level<6?1:U.level===6?2:3)<<6,U.strstart!==0&&(L|=32),L+=31-L%31,U.status=R,G(U,L),U.strstart!==0&&(G(U,I.adler>>>16),G(U,65535&I.adler)),I.adler=1}if(U.status===69)if(U.gzhead.extra){for(z=U.pending;U.gzindex<(65535&U.gzhead.extra.length)&&(U.pending!==U.pending_buf_size||(U.gzhead.hcrc&&U.pending>z&&(I.adler=l(I.adler,U.pending_buf,U.pending-z,z)),j(I),z=U.pending,U.pending!==U.pending_buf_size));)Y(U,255&U.gzhead.extra[U.gzindex]),U.gzindex++;U.gzhead.hcrc&&U.pending>z&&(I.adler=l(I.adler,U.pending_buf,U.pending-z,z)),U.gzindex===U.gzhead.extra.length&&(U.gzindex=0,U.status=73)}else U.status=73;if(U.status===73)if(U.gzhead.name){z=U.pending;do{if(U.pending===U.pending_buf_size&&(U.gzhead.hcrc&&U.pending>z&&(I.adler=l(I.adler,U.pending_buf,U.pending-z,z)),j(I),z=U.pending,U.pending===U.pending_buf_size)){K=1;break}K=U.gzindex<U.gzhead.name.length?255&U.gzhead.name.charCodeAt(U.gzindex++):0,Y(U,K)}while(K!==0);U.gzhead.hcrc&&U.pending>z&&(I.adler=l(I.adler,U.pending_buf,U.pending-z,z)),K===0&&(U.gzindex=0,U.status=91)}else U.status=91;if(U.status===91)if(U.gzhead.comment){z=U.pending;do{if(U.pending===U.pending_buf_size&&(U.gzhead.hcrc&&U.pending>z&&(I.adler=l(I.adler,U.pending_buf,U.pending-z,z)),j(I),z=U.pending,U.pending===U.pending_buf_size)){K=1;break}K=U.gzindex<U.gzhead.comment.length?255&U.gzhead.comment.charCodeAt(U.gzindex++):0,Y(U,K)}while(K!==0);U.gzhead.hcrc&&U.pending>z&&(I.adler=l(I.adler,U.pending_buf,U.pending-z,z)),K===0&&(U.status=103)}else U.status=103;if(U.status===103&&(U.gzhead.hcrc?(U.pending+2>U.pending_buf_size&&j(I),U.pending+2<=U.pending_buf_size&&(Y(U,255&I.adler),Y(U,I.adler>>8&255),I.adler=0,U.status=R)):U.status=R),U.pending!==0){if(j(I),I.avail_out===0)return U.last_flush=-1,h}else if(I.avail_in===0&&F(se)<=F(oe)&&se!==f)return N(I,-5);if(U.status===666&&I.avail_in!==0)return N(I,-5);if(I.avail_in!==0||U.lookahead!==0||se!==d&&U.status!==666){var Z=U.strategy===2?function($,te){for(var ne;;){if($.lookahead===0&&(re($),$.lookahead===0)){if(te===d)return E;break}if($.match_length=0,ne=a._tr_tally($,0,$.window[$.strstart]),$.lookahead--,$.strstart++,ne&&(M($,!1),$.strm.avail_out===0))return E}return $.insert=0,te===f?(M($,!0),$.strm.avail_out===0?D:H):$.last_lit&&(M($,!1),$.strm.avail_out===0)?E:V}(U,se):U.strategy===3?function($,te){for(var ne,Q,le,ke,Ee=$.window;;){if($.lookahead<=T){if(re($),$.lookahead<=T&&te===d)return E;if($.lookahead===0)break}if($.match_length=0,$.lookahead>=O&&0<$.strstart&&(Q=Ee[le=$.strstart-1])===Ee[++le]&&Q===Ee[++le]&&Q===Ee[++le]){ke=$.strstart+T;do;while(Q===Ee[++le]&&Q===Ee[++le]&&Q===Ee[++le]&&Q===Ee[++le]&&Q===Ee[++le]&&Q===Ee[++le]&&Q===Ee[++le]&&Q===Ee[++le]&&le<ke);$.match_length=T-(ke-le),$.match_length>$.lookahead&&($.match_length=$.lookahead)}if($.match_length>=O?(ne=a._tr_tally($,1,$.match_length-O),$.lookahead-=$.match_length,$.strstart+=$.match_length,$.match_length=0):(ne=a._tr_tally($,0,$.window[$.strstart]),$.lookahead--,$.strstart++),ne&&(M($,!1),$.strm.avail_out===0))return E}return $.insert=0,te===f?(M($,!0),$.strm.avail_out===0?D:H):$.last_lit&&(M($,!1),$.strm.avail_out===0)?E:V}(U,se):s[U.level].func(U,se);if(Z!==D&&Z!==H||(U.status=666),Z===E||Z===D)return I.avail_out===0&&(U.last_flush=-1),h;if(Z===V&&(se===1?a._tr_align(U):se!==5&&(a._tr_stored_block(U,0,0,!1),se===3&&(X(U.head),U.lookahead===0&&(U.strstart=0,U.block_start=0,U.insert=0))),j(I),I.avail_out===0))return U.last_flush=-1,h}return se!==f?h:U.wrap<=0?1:(U.wrap===2?(Y(U,255&I.adler),Y(U,I.adler>>8&255),Y(U,I.adler>>16&255),Y(U,I.adler>>24&255),Y(U,255&I.total_in),Y(U,I.total_in>>8&255),Y(U,I.total_in>>16&255),Y(U,I.total_in>>24&255)):(G(U,I.adler>>>16),G(U,65535&I.adler)),j(I),0<U.wrap&&(U.wrap=-U.wrap),U.pending!==0?h:1)},o.deflateEnd=function(I){var se;return I&&I.state?(se=I.state.status)!==_&&se!==69&&se!==73&&se!==91&&se!==103&&se!==R&&se!==666?N(I,g):(I.state=null,se===R?N(I,-3):h):g},o.deflateSetDictionary=function(I,se){var oe,U,z,K,L,Z,$,te,ne=se.length;if(!I||!I.state||(K=(oe=I.state).wrap)===2||K===1&&oe.status!==_||oe.lookahead)return g;for(K===1&&(I.adler=c(I.adler,se,ne,0)),oe.wrap=0,ne>=oe.w_size&&(K===0&&(X(oe.head),oe.strstart=0,oe.block_start=0,oe.insert=0),te=new i.Buf8(oe.w_size),i.arraySet(te,se,ne-oe.w_size,oe.w_size,0),se=te,ne=oe.w_size),L=I.avail_in,Z=I.next_in,$=I.input,I.avail_in=ne,I.next_in=0,I.input=se,re(oe);oe.lookahead>=O;){for(U=oe.strstart,z=oe.lookahead-(O-1);oe.ins_h=(oe.ins_h<<oe.hash_shift^oe.window[U+O-1])&oe.hash_mask,oe.prev[U&oe.w_mask]=oe.head[oe.ins_h],oe.head[oe.ins_h]=U,U++,--z;);oe.strstart=U,oe.lookahead=O-1,re(oe)}return oe.strstart+=oe.lookahead,oe.block_start=oe.strstart,oe.insert=oe.lookahead,oe.lookahead=0,oe.match_length=oe.prev_length=O-1,oe.match_available=0,I.next_in=Z,I.input=$,I.avail_in=L,oe.wrap=K,h},o.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(n,r,o){r.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(n,r,o){r.exports=function(s,i){var a,c,l,u,d,f,h,g,m,b,y,v,w,x,C,S,A,k,O,T,B,_,R,E,V;a=s.state,c=s.next_in,E=s.input,l=c+(s.avail_in-5),u=s.next_out,V=s.output,d=u-(i-s.avail_out),f=u+(s.avail_out-257),h=a.dmax,g=a.wsize,m=a.whave,b=a.wnext,y=a.window,v=a.hold,w=a.bits,x=a.lencode,C=a.distcode,S=(1<<a.lenbits)-1,A=(1<<a.distbits)-1;e:do{w<15&&(v+=E[c++]<<w,w+=8,v+=E[c++]<<w,w+=8),k=x[v&S];t:for(;;){if(v>>>=O=k>>>24,w-=O,(O=k>>>16&255)===0)V[u++]=65535&k;else{if(!(16&O)){if((64&O)==0){k=x[(65535&k)+(v&(1<<O)-1)];continue t}if(32&O){a.mode=12;break e}s.msg="invalid literal/length code",a.mode=30;break e}T=65535&k,(O&=15)&&(w<O&&(v+=E[c++]<<w,w+=8),T+=v&(1<<O)-1,v>>>=O,w-=O),w<15&&(v+=E[c++]<<w,w+=8,v+=E[c++]<<w,w+=8),k=C[v&A];n:for(;;){if(v>>>=O=k>>>24,w-=O,!(16&(O=k>>>16&255))){if((64&O)==0){k=C[(65535&k)+(v&(1<<O)-1)];continue n}s.msg="invalid distance code",a.mode=30;break e}if(B=65535&k,w<(O&=15)&&(v+=E[c++]<<w,(w+=8)<O&&(v+=E[c++]<<w,w+=8)),h<(B+=v&(1<<O)-1)){s.msg="invalid distance too far back",a.mode=30;break e}if(v>>>=O,w-=O,(O=u-d)<B){if(m<(O=B-O)&&a.sane){s.msg="invalid distance too far back",a.mode=30;break e}if(R=y,(_=0)===b){if(_+=g-O,O<T){for(T-=O;V[u++]=y[_++],--O;);_=u-B,R=V}}else if(b<O){if(_+=g+b-O,(O-=b)<T){for(T-=O;V[u++]=y[_++],--O;);if(_=0,b<T){for(T-=O=b;V[u++]=y[_++],--O;);_=u-B,R=V}}}else if(_+=b-O,O<T){for(T-=O;V[u++]=y[_++],--O;);_=u-B,R=V}for(;2<T;)V[u++]=R[_++],V[u++]=R[_++],V[u++]=R[_++],T-=3;T&&(V[u++]=R[_++],1<T&&(V[u++]=R[_++]))}else{for(_=u-B;V[u++]=V[_++],V[u++]=V[_++],V[u++]=V[_++],2<(T-=3););T&&(V[u++]=V[_++],1<T&&(V[u++]=V[_++]))}break}}break}}while(c<l&&u<f);c-=T=w>>3,v&=(1<<(w-=T<<3))-1,s.next_in=c,s.next_out=u,s.avail_in=c<l?l-c+5:5-(c-l),s.avail_out=u<f?f-u+257:257-(u-f),a.hold=v,a.bits=w}},{}],49:[function(n,r,o){var s=n("../utils/common"),i=n("./adler32"),a=n("./crc32"),c=n("./inffast"),l=n("./inftrees"),u=1,d=2,f=0,h=-2,g=1,m=852,b=592;function y(_){return(_>>>24&255)+(_>>>8&65280)+((65280&_)<<8)+((255&_)<<24)}function v(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new s.Buf16(320),this.work=new s.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function w(_){var R;return _&&_.state?(R=_.state,_.total_in=_.total_out=R.total=0,_.msg="",R.wrap&&(_.adler=1&R.wrap),R.mode=g,R.last=0,R.havedict=0,R.dmax=32768,R.head=null,R.hold=0,R.bits=0,R.lencode=R.lendyn=new s.Buf32(m),R.distcode=R.distdyn=new s.Buf32(b),R.sane=1,R.back=-1,f):h}function x(_){var R;return _&&_.state?((R=_.state).wsize=0,R.whave=0,R.wnext=0,w(_)):h}function C(_,R){var E,V;return _&&_.state?(V=_.state,R<0?(E=0,R=-R):(E=1+(R>>4),R<48&&(R&=15)),R&&(R<8||15<R)?h:(V.window!==null&&V.wbits!==R&&(V.window=null),V.wrap=E,V.wbits=R,x(_))):h}function S(_,R){var E,V;return _?(V=new v,(_.state=V).window=null,(E=C(_,R))!==f&&(_.state=null),E):h}var A,k,O=!0;function T(_){if(O){var R;for(A=new s.Buf32(512),k=new s.Buf32(32),R=0;R<144;)_.lens[R++]=8;for(;R<256;)_.lens[R++]=9;for(;R<280;)_.lens[R++]=7;for(;R<288;)_.lens[R++]=8;for(l(u,_.lens,0,288,A,0,_.work,{bits:9}),R=0;R<32;)_.lens[R++]=5;l(d,_.lens,0,32,k,0,_.work,{bits:5}),O=!1}_.lencode=A,_.lenbits=9,_.distcode=k,_.distbits=5}function B(_,R,E,V){var D,H=_.state;return H.window===null&&(H.wsize=1<<H.wbits,H.wnext=0,H.whave=0,H.window=new s.Buf8(H.wsize)),V>=H.wsize?(s.arraySet(H.window,R,E-H.wsize,H.wsize,0),H.wnext=0,H.whave=H.wsize):(V<(D=H.wsize-H.wnext)&&(D=V),s.arraySet(H.window,R,E-V,D,H.wnext),(V-=D)?(s.arraySet(H.window,R,E-V,V,0),H.wnext=V,H.whave=H.wsize):(H.wnext+=D,H.wnext===H.wsize&&(H.wnext=0),H.whave<H.wsize&&(H.whave+=D))),0}o.inflateReset=x,o.inflateReset2=C,o.inflateResetKeep=w,o.inflateInit=function(_){return S(_,15)},o.inflateInit2=S,o.inflate=function(_,R){var E,V,D,H,N,F,X,j,M,Y,G,W,re,ee,ie,ce,be,Oe,He,tt,I,se,oe,U,z=0,K=new s.Buf8(4),L=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!_||!_.state||!_.output||!_.input&&_.avail_in!==0)return h;(E=_.state).mode===12&&(E.mode=13),N=_.next_out,D=_.output,X=_.avail_out,H=_.next_in,V=_.input,F=_.avail_in,j=E.hold,M=E.bits,Y=F,G=X,se=f;e:for(;;)switch(E.mode){case g:if(E.wrap===0){E.mode=13;break}for(;M<16;){if(F===0)break e;F--,j+=V[H++]<<M,M+=8}if(2&E.wrap&&j===35615){K[E.check=0]=255&j,K[1]=j>>>8&255,E.check=a(E.check,K,2,0),M=j=0,E.mode=2;break}if(E.flags=0,E.head&&(E.head.done=!1),!(1&E.wrap)||(((255&j)<<8)+(j>>8))%31){_.msg="incorrect header check",E.mode=30;break}if((15&j)!=8){_.msg="unknown compression method",E.mode=30;break}if(M-=4,I=8+(15&(j>>>=4)),E.wbits===0)E.wbits=I;else if(I>E.wbits){_.msg="invalid window size",E.mode=30;break}E.dmax=1<<I,_.adler=E.check=1,E.mode=512&j?10:12,M=j=0;break;case 2:for(;M<16;){if(F===0)break e;F--,j+=V[H++]<<M,M+=8}if(E.flags=j,(255&E.flags)!=8){_.msg="unknown compression method",E.mode=30;break}if(57344&E.flags){_.msg="unknown header flags set",E.mode=30;break}E.head&&(E.head.text=j>>8&1),512&E.flags&&(K[0]=255&j,K[1]=j>>>8&255,E.check=a(E.check,K,2,0)),M=j=0,E.mode=3;case 3:for(;M<32;){if(F===0)break e;F--,j+=V[H++]<<M,M+=8}E.head&&(E.head.time=j),512&E.flags&&(K[0]=255&j,K[1]=j>>>8&255,K[2]=j>>>16&255,K[3]=j>>>24&255,E.check=a(E.check,K,4,0)),M=j=0,E.mode=4;case 4:for(;M<16;){if(F===0)break e;F--,j+=V[H++]<<M,M+=8}E.head&&(E.head.xflags=255&j,E.head.os=j>>8),512&E.flags&&(K[0]=255&j,K[1]=j>>>8&255,E.check=a(E.check,K,2,0)),M=j=0,E.mode=5;case 5:if(1024&E.flags){for(;M<16;){if(F===0)break e;F--,j+=V[H++]<<M,M+=8}E.length=j,E.head&&(E.head.extra_len=j),512&E.flags&&(K[0]=255&j,K[1]=j>>>8&255,E.check=a(E.check,K,2,0)),M=j=0}else E.head&&(E.head.extra=null);E.mode=6;case 6:if(1024&E.flags&&(F<(W=E.length)&&(W=F),W&&(E.head&&(I=E.head.extra_len-E.length,E.head.extra||(E.head.extra=new Array(E.head.extra_len)),s.arraySet(E.head.extra,V,H,W,I)),512&E.flags&&(E.check=a(E.check,V,W,H)),F-=W,H+=W,E.length-=W),E.length))break e;E.length=0,E.mode=7;case 7:if(2048&E.flags){if(F===0)break e;for(W=0;I=V[H+W++],E.head&&I&&E.length<65536&&(E.head.name+=String.fromCharCode(I)),I&&W<F;);if(512&E.flags&&(E.check=a(E.check,V,W,H)),F-=W,H+=W,I)break e}else E.head&&(E.head.name=null);E.length=0,E.mode=8;case 8:if(4096&E.flags){if(F===0)break e;for(W=0;I=V[H+W++],E.head&&I&&E.length<65536&&(E.head.comment+=String.fromCharCode(I)),I&&W<F;);if(512&E.flags&&(E.check=a(E.check,V,W,H)),F-=W,H+=W,I)break e}else E.head&&(E.head.comment=null);E.mode=9;case 9:if(512&E.flags){for(;M<16;){if(F===0)break e;F--,j+=V[H++]<<M,M+=8}if(j!==(65535&E.check)){_.msg="header crc mismatch",E.mode=30;break}M=j=0}E.head&&(E.head.hcrc=E.flags>>9&1,E.head.done=!0),_.adler=E.check=0,E.mode=12;break;case 10:for(;M<32;){if(F===0)break e;F--,j+=V[H++]<<M,M+=8}_.adler=E.check=y(j),M=j=0,E.mode=11;case 11:if(E.havedict===0)return _.next_out=N,_.avail_out=X,_.next_in=H,_.avail_in=F,E.hold=j,E.bits=M,2;_.adler=E.check=1,E.mode=12;case 12:if(R===5||R===6)break e;case 13:if(E.last){j>>>=7&M,M-=7&M,E.mode=27;break}for(;M<3;){if(F===0)break e;F--,j+=V[H++]<<M,M+=8}switch(E.last=1&j,M-=1,3&(j>>>=1)){case 0:E.mode=14;break;case 1:if(T(E),E.mode=20,R!==6)break;j>>>=2,M-=2;break e;case 2:E.mode=17;break;case 3:_.msg="invalid block type",E.mode=30}j>>>=2,M-=2;break;case 14:for(j>>>=7&M,M-=7&M;M<32;){if(F===0)break e;F--,j+=V[H++]<<M,M+=8}if((65535&j)!=(j>>>16^65535)){_.msg="invalid stored block lengths",E.mode=30;break}if(E.length=65535&j,M=j=0,E.mode=15,R===6)break e;case 15:E.mode=16;case 16:if(W=E.length){if(F<W&&(W=F),X<W&&(W=X),W===0)break e;s.arraySet(D,V,H,W,N),F-=W,H+=W,X-=W,N+=W,E.length-=W;break}E.mode=12;break;case 17:for(;M<14;){if(F===0)break e;F--,j+=V[H++]<<M,M+=8}if(E.nlen=257+(31&j),j>>>=5,M-=5,E.ndist=1+(31&j),j>>>=5,M-=5,E.ncode=4+(15&j),j>>>=4,M-=4,286<E.nlen||30<E.ndist){_.msg="too many length or distance symbols",E.mode=30;break}E.have=0,E.mode=18;case 18:for(;E.have<E.ncode;){for(;M<3;){if(F===0)break e;F--,j+=V[H++]<<M,M+=8}E.lens[L[E.have++]]=7&j,j>>>=3,M-=3}for(;E.have<19;)E.lens[L[E.have++]]=0;if(E.lencode=E.lendyn,E.lenbits=7,oe={bits:E.lenbits},se=l(0,E.lens,0,19,E.lencode,0,E.work,oe),E.lenbits=oe.bits,se){_.msg="invalid code lengths set",E.mode=30;break}E.have=0,E.mode=19;case 19:for(;E.have<E.nlen+E.ndist;){for(;ce=(z=E.lencode[j&(1<<E.lenbits)-1])>>>16&255,be=65535&z,!((ie=z>>>24)<=M);){if(F===0)break e;F--,j+=V[H++]<<M,M+=8}if(be<16)j>>>=ie,M-=ie,E.lens[E.have++]=be;else{if(be===16){for(U=ie+2;M<U;){if(F===0)break e;F--,j+=V[H++]<<M,M+=8}if(j>>>=ie,M-=ie,E.have===0){_.msg="invalid bit length repeat",E.mode=30;break}I=E.lens[E.have-1],W=3+(3&j),j>>>=2,M-=2}else if(be===17){for(U=ie+3;M<U;){if(F===0)break e;F--,j+=V[H++]<<M,M+=8}M-=ie,I=0,W=3+(7&(j>>>=ie)),j>>>=3,M-=3}else{for(U=ie+7;M<U;){if(F===0)break e;F--,j+=V[H++]<<M,M+=8}M-=ie,I=0,W=11+(127&(j>>>=ie)),j>>>=7,M-=7}if(E.have+W>E.nlen+E.ndist){_.msg="invalid bit length repeat",E.mode=30;break}for(;W--;)E.lens[E.have++]=I}}if(E.mode===30)break;if(E.lens[256]===0){_.msg="invalid code -- missing end-of-block",E.mode=30;break}if(E.lenbits=9,oe={bits:E.lenbits},se=l(u,E.lens,0,E.nlen,E.lencode,0,E.work,oe),E.lenbits=oe.bits,se){_.msg="invalid literal/lengths set",E.mode=30;break}if(E.distbits=6,E.distcode=E.distdyn,oe={bits:E.distbits},se=l(d,E.lens,E.nlen,E.ndist,E.distcode,0,E.work,oe),E.distbits=oe.bits,se){_.msg="invalid distances set",E.mode=30;break}if(E.mode=20,R===6)break e;case 20:E.mode=21;case 21:if(6<=F&&258<=X){_.next_out=N,_.avail_out=X,_.next_in=H,_.avail_in=F,E.hold=j,E.bits=M,c(_,G),N=_.next_out,D=_.output,X=_.avail_out,H=_.next_in,V=_.input,F=_.avail_in,j=E.hold,M=E.bits,E.mode===12&&(E.back=-1);break}for(E.back=0;ce=(z=E.lencode[j&(1<<E.lenbits)-1])>>>16&255,be=65535&z,!((ie=z>>>24)<=M);){if(F===0)break e;F--,j+=V[H++]<<M,M+=8}if(ce&&(240&ce)==0){for(Oe=ie,He=ce,tt=be;ce=(z=E.lencode[tt+((j&(1<<Oe+He)-1)>>Oe)])>>>16&255,be=65535&z,!(Oe+(ie=z>>>24)<=M);){if(F===0)break e;F--,j+=V[H++]<<M,M+=8}j>>>=Oe,M-=Oe,E.back+=Oe}if(j>>>=ie,M-=ie,E.back+=ie,E.length=be,ce===0){E.mode=26;break}if(32&ce){E.back=-1,E.mode=12;break}if(64&ce){_.msg="invalid literal/length code",E.mode=30;break}E.extra=15&ce,E.mode=22;case 22:if(E.extra){for(U=E.extra;M<U;){if(F===0)break e;F--,j+=V[H++]<<M,M+=8}E.length+=j&(1<<E.extra)-1,j>>>=E.extra,M-=E.extra,E.back+=E.extra}E.was=E.length,E.mode=23;case 23:for(;ce=(z=E.distcode[j&(1<<E.distbits)-1])>>>16&255,be=65535&z,!((ie=z>>>24)<=M);){if(F===0)break e;F--,j+=V[H++]<<M,M+=8}if((240&ce)==0){for(Oe=ie,He=ce,tt=be;ce=(z=E.distcode[tt+((j&(1<<Oe+He)-1)>>Oe)])>>>16&255,be=65535&z,!(Oe+(ie=z>>>24)<=M);){if(F===0)break e;F--,j+=V[H++]<<M,M+=8}j>>>=Oe,M-=Oe,E.back+=Oe}if(j>>>=ie,M-=ie,E.back+=ie,64&ce){_.msg="invalid distance code",E.mode=30;break}E.offset=be,E.extra=15&ce,E.mode=24;case 24:if(E.extra){for(U=E.extra;M<U;){if(F===0)break e;F--,j+=V[H++]<<M,M+=8}E.offset+=j&(1<<E.extra)-1,j>>>=E.extra,M-=E.extra,E.back+=E.extra}if(E.offset>E.dmax){_.msg="invalid distance too far back",E.mode=30;break}E.mode=25;case 25:if(X===0)break e;if(W=G-X,E.offset>W){if((W=E.offset-W)>E.whave&&E.sane){_.msg="invalid distance too far back",E.mode=30;break}re=W>E.wnext?(W-=E.wnext,E.wsize-W):E.wnext-W,W>E.length&&(W=E.length),ee=E.window}else ee=D,re=N-E.offset,W=E.length;for(X<W&&(W=X),X-=W,E.length-=W;D[N++]=ee[re++],--W;);E.length===0&&(E.mode=21);break;case 26:if(X===0)break e;D[N++]=E.length,X--,E.mode=21;break;case 27:if(E.wrap){for(;M<32;){if(F===0)break e;F--,j|=V[H++]<<M,M+=8}if(G-=X,_.total_out+=G,E.total+=G,G&&(_.adler=E.check=E.flags?a(E.check,D,G,N-G):i(E.check,D,G,N-G)),G=X,(E.flags?j:y(j))!==E.check){_.msg="incorrect data check",E.mode=30;break}M=j=0}E.mode=28;case 28:if(E.wrap&&E.flags){for(;M<32;){if(F===0)break e;F--,j+=V[H++]<<M,M+=8}if(j!==(4294967295&E.total)){_.msg="incorrect length check",E.mode=30;break}M=j=0}E.mode=29;case 29:se=1;break e;case 30:se=-3;break e;case 31:return-4;case 32:default:return h}return _.next_out=N,_.avail_out=X,_.next_in=H,_.avail_in=F,E.hold=j,E.bits=M,(E.wsize||G!==_.avail_out&&E.mode<30&&(E.mode<27||R!==4))&&B(_,_.output,_.next_out,G-_.avail_out)?(E.mode=31,-4):(Y-=_.avail_in,G-=_.avail_out,_.total_in+=Y,_.total_out+=G,E.total+=G,E.wrap&&G&&(_.adler=E.check=E.flags?a(E.check,D,G,_.next_out-G):i(E.check,D,G,_.next_out-G)),_.data_type=E.bits+(E.last?64:0)+(E.mode===12?128:0)+(E.mode===20||E.mode===15?256:0),(Y==0&&G===0||R===4)&&se===f&&(se=-5),se)},o.inflateEnd=function(_){if(!_||!_.state)return h;var R=_.state;return R.window&&(R.window=null),_.state=null,f},o.inflateGetHeader=function(_,R){var E;return _&&_.state?(2&(E=_.state).wrap)==0?h:((E.head=R).done=!1,f):h},o.inflateSetDictionary=function(_,R){var E,V=R.length;return _&&_.state?(E=_.state).wrap!==0&&E.mode!==11?h:E.mode===11&&i(1,R,V,0)!==E.check?-3:B(_,R,V,V)?(E.mode=31,-4):(E.havedict=1,f):h},o.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(n,r,o){var s=n("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],c=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],l=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];r.exports=function(u,d,f,h,g,m,b,y){var v,w,x,C,S,A,k,O,T,B=y.bits,_=0,R=0,E=0,V=0,D=0,H=0,N=0,F=0,X=0,j=0,M=null,Y=0,G=new s.Buf16(16),W=new s.Buf16(16),re=null,ee=0;for(_=0;_<=15;_++)G[_]=0;for(R=0;R<h;R++)G[d[f+R]]++;for(D=B,V=15;1<=V&&G[V]===0;V--);if(V<D&&(D=V),V===0)return g[m++]=20971520,g[m++]=20971520,y.bits=1,0;for(E=1;E<V&&G[E]===0;E++);for(D<E&&(D=E),_=F=1;_<=15;_++)if(F<<=1,(F-=G[_])<0)return-1;if(0<F&&(u===0||V!==1))return-1;for(W[1]=0,_=1;_<15;_++)W[_+1]=W[_]+G[_];for(R=0;R<h;R++)d[f+R]!==0&&(b[W[d[f+R]]++]=R);if(A=u===0?(M=re=b,19):u===1?(M=i,Y-=257,re=a,ee-=257,256):(M=c,re=l,-1),_=E,S=m,N=R=j=0,x=-1,C=(X=1<<(H=D))-1,u===1&&852<X||u===2&&592<X)return 1;for(;;){for(k=_-N,T=b[R]<A?(O=0,b[R]):b[R]>A?(O=re[ee+b[R]],M[Y+b[R]]):(O=96,0),v=1<<_-N,E=w=1<<H;g[S+(j>>N)+(w-=v)]=k<<24|O<<16|T|0,w!==0;);for(v=1<<_-1;j&v;)v>>=1;if(v!==0?(j&=v-1,j+=v):j=0,R++,--G[_]==0){if(_===V)break;_=d[f+b[R]]}if(D<_&&(j&C)!==x){for(N===0&&(N=D),S+=E,F=1<<(H=_-N);H+N<V&&!((F-=G[H+N])<=0);)H++,F<<=1;if(X+=1<<H,u===1&&852<X||u===2&&592<X)return 1;g[x=j&C]=D<<24|H<<16|S-m|0}}return j!==0&&(g[S+j]=_-N<<24|64<<16|0),y.bits=D,0}},{"../utils/common":41}],51:[function(n,r,o){r.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(n,r,o){var s=n("../utils/common"),i=0,a=1;function c(z){for(var K=z.length;0<=--K;)z[K]=0}var l=0,u=29,d=256,f=d+1+u,h=30,g=19,m=2*f+1,b=15,y=16,v=7,w=256,x=16,C=17,S=18,A=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],k=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],O=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],T=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],B=new Array(2*(f+2));c(B);var _=new Array(2*h);c(_);var R=new Array(512);c(R);var E=new Array(256);c(E);var V=new Array(u);c(V);var D,H,N,F=new Array(h);function X(z,K,L,Z,$){this.static_tree=z,this.extra_bits=K,this.extra_base=L,this.elems=Z,this.max_length=$,this.has_stree=z&&z.length}function j(z,K){this.dyn_tree=z,this.max_code=0,this.stat_desc=K}function M(z){return z<256?R[z]:R[256+(z>>>7)]}function Y(z,K){z.pending_buf[z.pending++]=255&K,z.pending_buf[z.pending++]=K>>>8&255}function G(z,K,L){z.bi_valid>y-L?(z.bi_buf|=K<<z.bi_valid&65535,Y(z,z.bi_buf),z.bi_buf=K>>y-z.bi_valid,z.bi_valid+=L-y):(z.bi_buf|=K<<z.bi_valid&65535,z.bi_valid+=L)}function W(z,K,L){G(z,L[2*K],L[2*K+1])}function re(z,K){for(var L=0;L|=1&z,z>>>=1,L<<=1,0<--K;);return L>>>1}function ee(z,K,L){var Z,$,te=new Array(b+1),ne=0;for(Z=1;Z<=b;Z++)te[Z]=ne=ne+L[Z-1]<<1;for($=0;$<=K;$++){var Q=z[2*$+1];Q!==0&&(z[2*$]=re(te[Q]++,Q))}}function ie(z){var K;for(K=0;K<f;K++)z.dyn_ltree[2*K]=0;for(K=0;K<h;K++)z.dyn_dtree[2*K]=0;for(K=0;K<g;K++)z.bl_tree[2*K]=0;z.dyn_ltree[2*w]=1,z.opt_len=z.static_len=0,z.last_lit=z.matches=0}function ce(z){8<z.bi_valid?Y(z,z.bi_buf):0<z.bi_valid&&(z.pending_buf[z.pending++]=z.bi_buf),z.bi_buf=0,z.bi_valid=0}function be(z,K,L,Z){var $=2*K,te=2*L;return z[$]<z[te]||z[$]===z[te]&&Z[K]<=Z[L]}function Oe(z,K,L){for(var Z=z.heap[L],$=L<<1;$<=z.heap_len&&($<z.heap_len&&be(K,z.heap[$+1],z.heap[$],z.depth)&&$++,!be(K,Z,z.heap[$],z.depth));)z.heap[L]=z.heap[$],L=$,$<<=1;z.heap[L]=Z}function He(z,K,L){var Z,$,te,ne,Q=0;if(z.last_lit!==0)for(;Z=z.pending_buf[z.d_buf+2*Q]<<8|z.pending_buf[z.d_buf+2*Q+1],$=z.pending_buf[z.l_buf+Q],Q++,Z===0?W(z,$,K):(W(z,(te=E[$])+d+1,K),(ne=A[te])!==0&&G(z,$-=V[te],ne),W(z,te=M(--Z),L),(ne=k[te])!==0&&G(z,Z-=F[te],ne)),Q<z.last_lit;);W(z,w,K)}function tt(z,K){var L,Z,$,te=K.dyn_tree,ne=K.stat_desc.static_tree,Q=K.stat_desc.has_stree,le=K.stat_desc.elems,ke=-1;for(z.heap_len=0,z.heap_max=m,L=0;L<le;L++)te[2*L]!==0?(z.heap[++z.heap_len]=ke=L,z.depth[L]=0):te[2*L+1]=0;for(;z.heap_len<2;)te[2*($=z.heap[++z.heap_len]=ke<2?++ke:0)]=1,z.depth[$]=0,z.opt_len--,Q&&(z.static_len-=ne[2*$+1]);for(K.max_code=ke,L=z.heap_len>>1;1<=L;L--)Oe(z,te,L);for($=le;L=z.heap[1],z.heap[1]=z.heap[z.heap_len--],Oe(z,te,1),Z=z.heap[1],z.heap[--z.heap_max]=L,z.heap[--z.heap_max]=Z,te[2*$]=te[2*L]+te[2*Z],z.depth[$]=(z.depth[L]>=z.depth[Z]?z.depth[L]:z.depth[Z])+1,te[2*L+1]=te[2*Z+1]=$,z.heap[1]=$++,Oe(z,te,1),2<=z.heap_len;);z.heap[--z.heap_max]=z.heap[1],function(Ee,st){var jn,wt,Eo,it,$r,Ri,fn=st.dyn_tree,Vc=st.max_code,zc=st.stat_desc.static_tree,Cv=st.stat_desc.has_stree,xv=st.stat_desc.extra_bits,Hh=st.stat_desc.extra_base,Ti=st.stat_desc.max_length,Hc=0;for(it=0;it<=b;it++)Ee.bl_count[it]=0;for(fn[2*Ee.heap[Ee.heap_max]+1]=0,jn=Ee.heap_max+1;jn<m;jn++)Ti<(it=fn[2*fn[2*(wt=Ee.heap[jn])+1]+1]+1)&&(it=Ti,Hc++),fn[2*wt+1]=it,Vc<wt||(Ee.bl_count[it]++,$r=0,Hh<=wt&&($r=xv[wt-Hh]),Ri=fn[2*wt],Ee.opt_len+=Ri*(it+$r),Cv&&(Ee.static_len+=Ri*(zc[2*wt+1]+$r)));if(Hc!==0){do{for(it=Ti-1;Ee.bl_count[it]===0;)it--;Ee.bl_count[it]--,Ee.bl_count[it+1]+=2,Ee.bl_count[Ti]--,Hc-=2}while(0<Hc);for(it=Ti;it!==0;it--)for(wt=Ee.bl_count[it];wt!==0;)Vc<(Eo=Ee.heap[--jn])||(fn[2*Eo+1]!==it&&(Ee.opt_len+=(it-fn[2*Eo+1])*fn[2*Eo],fn[2*Eo+1]=it),wt--)}}(z,K),ee(te,ke,z.bl_count)}function I(z,K,L){var Z,$,te=-1,ne=K[1],Q=0,le=7,ke=4;for(ne===0&&(le=138,ke=3),K[2*(L+1)+1]=65535,Z=0;Z<=L;Z++)$=ne,ne=K[2*(Z+1)+1],++Q<le&&$===ne||(Q<ke?z.bl_tree[2*$]+=Q:$!==0?($!==te&&z.bl_tree[2*$]++,z.bl_tree[2*x]++):Q<=10?z.bl_tree[2*C]++:z.bl_tree[2*S]++,te=$,ke=(Q=0)===ne?(le=138,3):$===ne?(le=6,3):(le=7,4))}function se(z,K,L){var Z,$,te=-1,ne=K[1],Q=0,le=7,ke=4;for(ne===0&&(le=138,ke=3),Z=0;Z<=L;Z++)if($=ne,ne=K[2*(Z+1)+1],!(++Q<le&&$===ne)){if(Q<ke)for(;W(z,$,z.bl_tree),--Q!=0;);else $!==0?($!==te&&(W(z,$,z.bl_tree),Q--),W(z,x,z.bl_tree),G(z,Q-3,2)):Q<=10?(W(z,C,z.bl_tree),G(z,Q-3,3)):(W(z,S,z.bl_tree),G(z,Q-11,7));te=$,ke=(Q=0)===ne?(le=138,3):$===ne?(le=6,3):(le=7,4)}}c(F);var oe=!1;function U(z,K,L,Z){G(z,(l<<1)+(Z?1:0),3),function($,te,ne,Q){ce($),Y($,ne),Y($,~ne),s.arraySet($.pending_buf,$.window,te,ne,$.pending),$.pending+=ne}(z,K,L)}o._tr_init=function(z){oe||(function(){var K,L,Z,$,te,ne=new Array(b+1);for($=Z=0;$<u-1;$++)for(V[$]=Z,K=0;K<1<<A[$];K++)E[Z++]=$;for(E[Z-1]=$,$=te=0;$<16;$++)for(F[$]=te,K=0;K<1<<k[$];K++)R[te++]=$;for(te>>=7;$<h;$++)for(F[$]=te<<7,K=0;K<1<<k[$]-7;K++)R[256+te++]=$;for(L=0;L<=b;L++)ne[L]=0;for(K=0;K<=143;)B[2*K+1]=8,K++,ne[8]++;for(;K<=255;)B[2*K+1]=9,K++,ne[9]++;for(;K<=279;)B[2*K+1]=7,K++,ne[7]++;for(;K<=287;)B[2*K+1]=8,K++,ne[8]++;for(ee(B,f+1,ne),K=0;K<h;K++)_[2*K+1]=5,_[2*K]=re(K,5);D=new X(B,A,d+1,f,b),H=new X(_,k,0,h,b),N=new X(new Array(0),O,0,g,v)}(),oe=!0),z.l_desc=new j(z.dyn_ltree,D),z.d_desc=new j(z.dyn_dtree,H),z.bl_desc=new j(z.bl_tree,N),z.bi_buf=0,z.bi_valid=0,ie(z)},o._tr_stored_block=U,o._tr_flush_block=function(z,K,L,Z){var $,te,ne=0;0<z.level?(z.strm.data_type===2&&(z.strm.data_type=function(Q){var le,ke=4093624447;for(le=0;le<=31;le++,ke>>>=1)if(1&ke&&Q.dyn_ltree[2*le]!==0)return i;if(Q.dyn_ltree[18]!==0||Q.dyn_ltree[20]!==0||Q.dyn_ltree[26]!==0)return a;for(le=32;le<d;le++)if(Q.dyn_ltree[2*le]!==0)return a;return i}(z)),tt(z,z.l_desc),tt(z,z.d_desc),ne=function(Q){var le;for(I(Q,Q.dyn_ltree,Q.l_desc.max_code),I(Q,Q.dyn_dtree,Q.d_desc.max_code),tt(Q,Q.bl_desc),le=g-1;3<=le&&Q.bl_tree[2*T[le]+1]===0;le--);return Q.opt_len+=3*(le+1)+5+5+4,le}(z),$=z.opt_len+3+7>>>3,(te=z.static_len+3+7>>>3)<=$&&($=te)):$=te=L+5,L+4<=$&&K!==-1?U(z,K,L,Z):z.strategy===4||te===$?(G(z,2+(Z?1:0),3),He(z,B,_)):(G(z,4+(Z?1:0),3),function(Q,le,ke,Ee){var st;for(G(Q,le-257,5),G(Q,ke-1,5),G(Q,Ee-4,4),st=0;st<Ee;st++)G(Q,Q.bl_tree[2*T[st]+1],3);se(Q,Q.dyn_ltree,le-1),se(Q,Q.dyn_dtree,ke-1)}(z,z.l_desc.max_code+1,z.d_desc.max_code+1,ne+1),He(z,z.dyn_ltree,z.dyn_dtree)),ie(z),Z&&ce(z)},o._tr_tally=function(z,K,L){return z.pending_buf[z.d_buf+2*z.last_lit]=K>>>8&255,z.pending_buf[z.d_buf+2*z.last_lit+1]=255&K,z.pending_buf[z.l_buf+z.last_lit]=255&L,z.last_lit++,K===0?z.dyn_ltree[2*L]++:(z.matches++,K--,z.dyn_ltree[2*(E[L]+d+1)]++,z.dyn_dtree[2*M(K)]++),z.last_lit===z.lit_bufsize-1},o._tr_align=function(z){G(z,2,3),W(z,w,B),function(K){K.bi_valid===16?(Y(K,K.bi_buf),K.bi_buf=0,K.bi_valid=0):8<=K.bi_valid&&(K.pending_buf[K.pending++]=255&K.bi_buf,K.bi_buf>>=8,K.bi_valid-=8)}(z)}},{"../utils/common":41}],53:[function(n,r,o){r.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(n,r,o){(function(s){(function(i,a){if(!i.setImmediate){var c,l,u,d,f=1,h={},g=!1,m=i.document,b=Object.getPrototypeOf&&Object.getPrototypeOf(i);b=b&&b.setTimeout?b:i,c={}.toString.call(i.process)==="[object process]"?function(x){rI.nextTick(function(){v(x)})}:function(){if(i.postMessage&&!i.importScripts){var x=!0,C=i.onmessage;return i.onmessage=function(){x=!1},i.postMessage("","*"),i.onmessage=C,x}}()?(d="setImmediate$"+Math.random()+"$",i.addEventListener?i.addEventListener("message",w,!1):i.attachEvent("onmessage",w),function(x){i.postMessage(d+x,"*")}):i.MessageChannel?((u=new MessageChannel).port1.onmessage=function(x){v(x.data)},function(x){u.port2.postMessage(x)}):m&&"onreadystatechange"in m.createElement("script")?(l=m.documentElement,function(x){var C=m.createElement("script");C.onreadystatechange=function(){v(x),C.onreadystatechange=null,l.removeChild(C),C=null},l.appendChild(C)}):function(x){setTimeout(v,0,x)},b.setImmediate=function(x){typeof x!="function"&&(x=new Function(""+x));for(var C=new Array(arguments.length-1),S=0;S<C.length;S++)C[S]=arguments[S+1];var A={callback:x,args:C};return h[f]=A,c(f),f++},b.clearImmediate=y}function y(x){delete h[x]}function v(x){if(g)setTimeout(v,0,x);else{var C=h[x];if(C){g=!0;try{(function(S){var A=S.callback,k=S.args;switch(k.length){case 0:A();break;case 1:A(k[0]);break;case 2:A(k[0],k[1]);break;case 3:A(k[0],k[1],k[2]);break;default:A.apply(a,k)}})(C)}finally{y(x),g=!1}}}}function w(x){x.source===i&&typeof x.data=="string"&&x.data.indexOf(d)===0&&v(+x.data.slice(d.length))}})(typeof self>"u"?s===void 0?this:s:self)}).call(this,typeof lo<"u"?lo:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})}(Id)),Id.exports}var ZZ=UZ();const Uy=xi(ZZ);function WZ(e){const t=[],n=Object.keys(e);for(const r of n){const o=e[r].sort((i,a)=>i.index-a.index);let s=-1;for(let i=0;i<o.length;i++)s=s+1+o[i].skip,o[i].index!==s&&t.push({message:`Invalid operation index ${o[i].index} at position ${i}`,details:{position:i,operation:o[i],scope:o[i].scope}})}return t}function Zy(e){const t=new Uy,n=e.header;return t.file("header.json",JSON.stringify(n,null,2)),t.file("state.json",JSON.stringify(e.initialState||{},null,2)),t.file("current-state.json",JSON.stringify(e.state||{},null,2)),t.file("operations.json",JSON.stringify(J$(e.operations),null,2)),e.attachments&&Object.keys(e.attachments).forEach(o=>{var a;const{data:s,...i}=((a=e.attachments)==null?void 0:a[o])??{};s&&t.file(o,s,{base64:!0,createFolders:!0,comment:JSON.stringify(i)})}),t}async function GZ(e,t,n,r){await Zy(e).generateAsync({type:"uint8array",streamFiles:!0});const s=r??e.header.name,i=`.${n}.zip`;return E$(t,s.endsWith(i)?s:`${s}${i}`)}async function qZ(e,t){const r=await Zy(e).generateAsync({type:"blob"}),o=await t.createWritable();await o.write(r),await o.close()}async function JZ(e,t,n){const r=A$();return Wy(r,t,n)}async function Wy(e,t,n){const r=new Uy;return await r.loadAsync(e),YZ(r,t,n)}async function YZ(e,t,n){const r=e.file("state.json");if(!r)throw new Error("Initial state not found");const o=await r.async("string"),s=JSON.parse(o),i=e.file("header.json");let a;i&&(a=JSON.parse(await i.async("string")));const c=e.file("operations.json");if(!c)throw new Error("Operations history not found");const l=JSON.parse(await c.async("string")),u=xu(l),d=WZ(u);if(d.length){const h=d.map(g=>g.message);throw new Error(h.join(`
121
- `))}let f=ey(s,u,t,void 0,a,{},n);return a&&(f={...f,header:a}),f}const t6={id:"",name:"",extension:"",description:"",author:{name:"",website:""},specifications:[{version:1,changeLog:[],state:{global:{schema:"",initialValue:"",examples:[]},local:{schema:"",initialValue:"",examples:[]}},modules:[]}]},KZ={},Gy="phdm",XZ="powerhouse/document-model",Fh=e=>({document:{...t6,...e==null?void 0:e.document},global:{...t6,...e==null?void 0:e.global},local:{...KZ,...e==null?void 0:e.local}}),qy=e=>Xb({...e},Fh),QZ=e=>{const t=Qb(qy(e),Fh);return t.header.documentType=XZ,t},eW=(e,t,n)=>GZ(e,t,Gy,n),tW=(e,t)=>qZ(e,t),nW=e=>JZ(e,Dh),rW=e=>Wy(e,Dh),oW=Object.freeze(Object.defineProperty({__proto__:null,createDocument:QZ,createExtendedState:qy,createState:Fh,fileExtension:Gy,loadFromFile:nW,loadFromInput:rW,saveToFile:eW,saveToFileHandle:tW},Symbol.toStringTag,{value:"Module"}));function sW(e,t=!1){const n=[];if(t&&e==="")return n;try{const r=JSON.parse(e);!t&&!Object.keys(r).length&&n.push({message:"Initial state cannot be empty",details:{initialState:e}})}catch{n.push({message:"Invalid initial state",details:{initialState:e}})}return n}function iW(e,t,n="",r=!0){const o=[];if(!r&&!e)return o.push({message:"State schema is required",details:{schema:e}}),o;if(r&&!e)return o;const s=`type ${U9(t)}${U9(n)}State`;return e.includes(s)||o.push({message:`Invalid state schema name. Expected ${s}`,details:{schema:e}}),o}function aW(e){const t=[];e.length||t.push({message:"Modules are required",details:{modules:e}});const n=e.reduce((r,o)=>[...r,...Jy(o)],[]);return[...t,...n]}function Jy(e){const t=[];e.name||t.push({message:"Module name is required",details:{module:e}}),e.operations.length||t.push({message:"Module operations are required",details:{module:e}});const n=e.operations.reduce((r,o)=>[...r,...Yy(o)],[]);return[...t,...n]}function Yy(e){const t=[];return e.name||t.push({message:"Operation name is required",details:{operation:e}}),e.schema||t.push({message:"Operation schema is required",details:{operation:e}}),t}const cW=Object.freeze(Object.defineProperty({__proto__:null,validateInitialState:sW,validateModule:Jy,validateModuleOperation:Yy,validateModules:aW,validateStateSchemaName:iW},Symbol.toStringTag,{value:"Module"})),lW=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),uW={id:"powerhouse/document-model",name:"DocumentModel",extension:"phdm",description:"The Powerhouse Document Model describes the state and operations of a document type.",author:{name:"Powerhouse",website:"https://www.powerhouse.inc/"},specifications:[{version:1,changeLog:[],state:{global:{schema:`type CodeExample {
122
- id: ID!
123
- value: String!
124
- }
125
-
126
- type OperationError {
127
- id: ID!
128
- code: String
129
- name: String
130
- description: String
131
- template: String
132
- }
133
-
134
- type Operation {
135
- id: ID!
136
- name: String
137
- schema: String
138
- description: String
139
- template: String
140
- errors: [OperationError!]!
141
- examples: [CodeExample!]!
142
- reducer: String
143
- scope: String
144
- }
145
-
146
- type Module {
147
- id: ID!
148
- name: String!
149
- description: String
150
- operations: [Operation!]!
151
- }
152
-
153
- type State {
154
- schema: String!
155
- initialValue: String!
156
- examples: [CodeExample!]!
157
- }
158
-
159
- type ScopeState {
160
- global: State!
161
- local: State!
162
- }
163
-
164
- type Author {
165
- name: String!
166
- website: String
167
- }
168
-
169
- type DocumentSpecification {
170
- version: Int!
171
- state: ScopeState!
172
- modules: [Module!]!
173
- changeLog: [String!]!
174
- }
175
-
176
- type DocumentModelState {
177
- name: String!
178
- id: String!
179
- extension: String!
180
- description: String!
181
- author: Author!
182
- specifications: [DocumentSpecification!]!
183
- }`,initialValue:`{
184
- "id": "",
185
- "name": "",
186
- "extension": "",
187
- "description": "",
188
- "author": {
189
- "name": "",
190
- "website": ""
191
- },
192
- "specifications": [
193
- {
194
- "version": 1,
195
- "changeLog": [],
196
- "state": {
197
- "schema": "",
198
- "initialValue": "",
199
- "examples": []
200
- },
201
- "modules": []
202
- }
203
- ]
204
- }`,examples:[]},local:{schema:"",initialValue:"",examples:[]}},modules:[{name:"header",operations:[{name:"SET_MODEL_NAME",id:"",description:"Sets the name of the document model",schema:`input SetModelNameInput {
205
- name: String!
206
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"SET_MODEL_ID",id:"",description:"Sets the unique identifier for the document model",schema:`input SetModelIdInput {
207
- id: String!
208
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"SET_MODEL_EXTENSION",id:"",description:"Sets the file extension associated with this document model",schema:`input SetModelExtensionInput {
209
- extension: String!
210
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"SET_MODEL_DESCRIPTION",id:"",description:"Sets the description text for the document model",schema:`input SetModelDescriptionInput {
211
- description: String!
212
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"SET_AUTHOR_NAME",id:"",description:"Sets the name of the document model author",schema:`input SetAuthorNameInput {
213
- authorName: String!
214
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"SET_AUTHOR_WEBSITE",id:"",description:"Sets the website URL of the document model author",schema:`input SetAuthorWebsiteInput {
215
- authorWebsite: String!
216
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"}],id:"",description:""},{name:"versioning",operations:[{name:"ADD_CHANGE_LOG_ITEM",id:"",description:"Adds a new item to the document model changelog",schema:`input AddChangeLogItemInput {
217
- id: ID!
218
- insertBefore: ID
219
- content: String!
220
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"UPDATE_CHANGE_LOG_ITEM",id:"",description:"Updates an existing changelog item",schema:`input UpdateChangeLogItemInput {
221
- id: ID!
222
- newContent: String!
223
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"DELETE_CHANGE_LOG_ITEM",id:"",description:"Removes an item from the document model changelog",schema:`input DeleteChangeLogItemInput {
224
- id: ID!
225
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"REORDER_CHANGE_LOG_ITEMS",id:"",description:"Changes the order of changelog items",schema:`input ReorderChangeLogItemsInput {
226
- order: [ID!]!
227
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"RELEASE_NEW_VERSION",schema:null,id:"",description:"Creates a new version of the document model specification",template:"",reducer:"",examples:[],errors:[],scope:"global"}],id:"",description:""},{name:"module",operations:[{name:"ADD_MODULE",id:"",description:"Adds a new module to the document model specification",schema:`input AddModuleInput {
228
- id: ID!
229
- name: String!
230
- description: String
231
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"SET_MODULE_NAME",id:"",description:"Sets the name of an existing module",schema:`input SetModuleNameInput {
232
- id: ID!
233
- name: String
234
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"SET_MODULE_DESCRIPTION",id:"",description:"Sets the description of an existing module",schema:`input SetModuleDescriptionInput {
235
- id: ID!
236
- description: String
237
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"DELETE_MODULE",id:"",description:"Removes a module from the document model specification",schema:`input DeleteModuleInput {
238
- id: ID!
239
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"REORDER_MODULES",id:"",description:"Changes the order of modules in the document model specification",schema:`input ReorderModulesInput {
240
- order: [ID!]!
241
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"}],id:"",description:""},{name:"operation-error",operations:[{name:"ADD_OPERATION_ERROR",id:"",description:"Adds a new error definition to an operation",schema:`input AddOperationErrorInput {
242
- operationId: ID!
243
- id: ID!
244
- errorCode: String
245
- errorName: String
246
- errorDescription: String
247
- errorTemplate: String
248
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"SET_OPERATION_ERROR_CODE",id:"",description:"Sets the error code for an operation error",schema:`input SetOperationErrorCodeInput {
249
- id: ID!
250
- errorCode: String
251
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"SET_OPERATION_ERROR_NAME",id:"",description:"Sets the name of an operation error",schema:`input SetOperationErrorNameInput {
252
- id: ID!
253
- errorName: String
254
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"SET_OPERATION_ERROR_DESCRIPTION",id:"",description:"Sets the description of an operation error",schema:`input SetOperationErrorDescriptionInput {
255
- id: ID!
256
- errorDescription: String
257
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"SET_OPERATION_ERROR_TEMPLATE",id:"",description:"Sets the template for an operation error",schema:`input SetOperationErrorTemplateInput {
258
- id: ID!
259
- errorTemplate: String
260
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"DELETE_OPERATION_ERROR",id:"",description:"Removes an error definition from an operation",schema:`input DeleteOperationErrorInput {
261
- id: ID!
262
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"REORDER_OPERATION_ERRORS",id:"",description:"Changes the order of error definitions for an operation",schema:`input ReorderOperationErrorsInput {
263
- operationId: ID!
264
- order: [ID!]!
265
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"}],id:"",description:""},{name:"operation-example",operations:[{name:"ADD_OPERATION_EXAMPLE",id:"",description:"Adds a new code example to an operation",schema:`input AddOperationExampleInput {
266
- operationId: ID!
267
- id: ID!
268
- example: String!
269
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"UPDATE_OPERATION_EXAMPLE",id:"",description:"Updates an existing code example for an operation",schema:`input UpdateOperationExampleInput {
270
- id: ID!
271
- example: String!
272
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"DELETE_OPERATION_EXAMPLE",id:"",description:"Removes a code example from an operation",schema:`input DeleteOperationExampleInput {
273
- id: ID!
274
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"REORDER_OPERATION_EXAMPLES",id:"",description:"Changes the order of code examples for an operation",schema:`input ReorderOperationExamplesInput {
275
- operationId: ID!
276
- order: [ID!]!
277
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"}],id:"",description:""},{name:"operation",operations:[{name:"ADD_OPERATION",id:"",description:"Adds a new operation to a module",schema:`input AddOperationInput {
278
- moduleId: ID!
279
- id: ID!
280
- name: String!
281
- schema: String
282
- description: String
283
- template: String
284
- reducer: String
285
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"SET_OPERATION_NAME",id:"",description:"Sets the name of an operation",schema:`input SetOperationNameInput {
286
- id: ID!
287
- name: String
288
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"SET_OPERATION_SCHEMA",id:"",description:"Sets the GraphQL schema definition for an operation's input",schema:`input SetOperationSchemaInput {
289
- id: ID!
290
- schema: String
291
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"SET_OPERATION_DESCRIPTION",id:"",description:"Sets the description of an operation",schema:`input SetOperationDescriptionInput {
292
- id: ID!
293
- description: String
294
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"SET_OPERATION_TEMPLATE",id:"",description:"Sets the template code for an operation",schema:`input SetOperationTemplateInput {
295
- id: ID!
296
- template: String
297
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"SET_OPERATION_REDUCER",id:"",description:"Sets the reducer function code for an operation",schema:`input SetOperationReducerInput {
298
- id: ID!
299
- reducer: String
300
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"MOVE_OPERATION",id:"",description:"Moves an operation from one module to another",schema:`input MoveOperationInput {
301
- operationId: ID!
302
- newModuleId: ID!
303
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"DELETE_OPERATION",id:"",description:"Removes an operation from a module",schema:`input DeleteOperationInput {
304
- id: ID!
305
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"REORDER_MODULE_OPERATIONS",id:"",description:"Changes the order of operations within a module",schema:`input ReorderModuleOperationsInput {
306
- moduleId: ID!
307
- order: [ID!]!
308
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"}],id:"",description:""},{name:"state",operations:[{name:"SET_STATE_SCHEMA",id:"",description:"Sets the GraphQL schema definition for document state",schema:`input SetStateSchemaInput {
309
- scope: String!
310
- schema: String!
311
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"SET_INITIAL_STATE",id:"",description:"Sets the initial state value for a document scope",schema:`input SetInitialStateInput {
312
- scope: String!
313
- initialValue: String!
314
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"ADD_STATE_EXAMPLE",id:"",description:"Adds a new state example to a document scope",schema:`input AddStateExampleInput {
315
- scope: String!
316
- id: ID!
317
- insertBefore: ID
318
- example: String!
319
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"UPDATE_STATE_EXAMPLE",id:"",description:"Updates an existing state example for a document scope",schema:`input UpdateStateExampleInput {
320
- scope: String!
321
- id: ID!
322
- newExample: String!
323
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"DELETE_STATE_EXAMPLE",id:"",description:"Removes a state example from a document scope",schema:`input DeleteStateExampleInput {
324
- scope: String!
325
- id: ID!
326
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"REORDER_STATE_EXAMPLES",id:"",description:"Changes the order of state examples for a document scope",schema:`input ReorderStateExamplesInput {
327
- scope: String!
328
- order: [ID!]!
329
- }`,template:"",reducer:"",examples:[],errors:[],scope:"global"}],id:"",description:""}]}]},sJ={reducer:Dh,documentModel:uW,actions:{...FZ,...lW},utils:{...oW,...cW}};function dW(e){const{branch:t="main"}=e;return q("button",{className:"flex h-8 items-center gap-1 rounded-lg bg-slate-50 pl-1 pr-2 text-xs text-slate-100",children:[p(ue,{name:"Branch"}),p("span",{children:"BRANCH"}),p("span",{className:"text-gray-900",children:t})]})}function fW(e){const{docId:t}=e,[,n]=y2();function r(o){return()=>{n(o).catch(s=>{console.error("Failed to copy!",s)})}}return q("button",{className:"flex h-8 items-center gap-1 rounded-lg bg-slate-50 pl-1 pr-2 text-xs text-slate-100",onClick:r(t),children:[p(ue,{name:"Link"}),"DOC ID",p("span",{className:"text-gray-900",children:t})]})}const Bh=zO(function(t,n){const{items:r,value:o,id:s,onChange:i,containerClassName:a,menuClassName:c,itemClassName:l,absolutePositionMenu:u=!1,borderRadius:d="6px"}=t,[f,h]=we(!1),g=b(o)??r[0];function m(v){v.disabled||(i(v.value),h(!1))}function b(v){return r.find(w=>w.value===v)}const y=r.filter(v=>v.value!==o);return q("div",{className:he("border border-gray-200 bg-gray-50 text-gray-800 transition-[border-radius]",u&&"relative",a),"data-open":f,ref:n,style:{borderRadius:d},children:[q("div",{className:he("flex min-w-[360px] cursor-pointer items-center justify-between pr-3 text-gray-800 outline-none",c),id:s,onClick:()=>h(!f),children:[p(n6,{...g,className:l}),p(ue,{className:ic("transition",f?"":"-rotate-90"),name:"ChevronDown"})]}),p("div",{className:he("max-h-0 w-full overflow-hidden bg-inherit transition-[max-height] ease-in-out",f&&"max-h-screen",u&&"absolute"),style:{borderRadius:`0 0 ${d} ${d}`},children:y.map(v=>p(n6,{...v,className:l,onItemClick:()=>m(v)},v.value))})]})});function n6(e){const{className:t,disabled:n,onItemClick:r,icon:o,displayValue:s,value:i,description:a}=e;return q("div",{className:he(n?"cursor-not-allowed text-gray-500":"text-gray-800","flex size-full cursor-pointer items-center gap-2 bg-inherit py-3 pl-3 text-start outline-none",t),onClick:r,children:[o,q("div",{children:[p("p",{className:"capitalize text-inherit",children:s??i.toLowerCase()}),p("p",{className:"text-xs text-gray-600",children:a})]})]})}function hW(e){const{value:t,onChange:n}=e;return p(Bh,{absolutePositionMenu:!0,containerClassName:"bg-slate-50 text-gray-500 rounded-lg w-fit text-xs z-10",id:"scope select",itemClassName:"py-2 text-gray-500 grid grid-cols-[auto,auto] gap-1",items:[{displayValue:"Global scope",value:"global"},{displayValue:"Local scope",value:"local"}],menuClassName:"min-w-0 text-gray-500",onChange:n,value:t})}function pW(e){const{title:t,docId:n,scope:r,onChangeScope:o,onClose:s,className:i,...a}=e;return q("header",{className:he("flex items-center justify-between bg-transparent",i),...a,children:[q("div",{className:"flex items-center gap-3",children:[p("button",{className:"shadow-button rounded-lg bg-gray-50 p-1 text-slate-100",onClick:s,children:p(ue,{name:"VariantArrowLeft"})}),p("h1",{className:"text-xs",children:t})]}),q("div",{className:"flex items-center gap-2",children:[p(fW,{docId:n}),p(dW,{}),p(hW,{onChange:o,value:r})]})]})}function Is(e,t,n){let r=n.initialDeps??[],o;function s(){var i,a,c,l;let u;n.key&&((i=n.debug)!=null&&i.call(n))&&(u=Date.now());const d=e();if(!(d.length!==r.length||d.some((g,m)=>r[m]!==g)))return o;r=d;let h;if(n.key&&((a=n.debug)!=null&&a.call(n))&&(h=Date.now()),o=t(...d),n.key&&((c=n.debug)!=null&&c.call(n))){const g=Math.round((Date.now()-u)*100)/100,m=Math.round((Date.now()-h)*100)/100,b=m/16,y=(v,w)=>{for(v=String(v);v.length<w;)v=" "+v;return v};console.info(`%c⏱ ${y(m,5)} /${y(g,5)} ms`,`
330
- font-size: .6rem;
331
- font-weight: bold;
332
- color: hsl(${Math.max(0,Math.min(120-120*b,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(l=n==null?void 0:n.onChange)==null||l.call(n,o),o}return s.updateDeps=i=>{r=i},s}function r6(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const mW=(e,t)=>Math.abs(e-t)<=1,gW=(e,t,n)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,o),n)}},o6=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},bW=e=>e,yW=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let o=t;o<=n;o++)r.push(o);return r},vW=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const o=i=>{const{width:a,height:c}=i;t({width:Math.round(a),height:Math.round(c)})};if(o(o6(n)),!r.ResizeObserver)return()=>{};const s=new r.ResizeObserver(i=>{const a=()=>{const c=i[0];if(c!=null&&c.borderBoxSize){const l=c.borderBoxSize[0];if(l){o({width:l.inlineSize,height:l.blockSize});return}}o(o6(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(a):a()});return s.observe(n,{box:"border-box"}),()=>{s.unobserve(n)}},s6={passive:!0},i6=typeof window>"u"?!0:"onscrollend"in window,wW=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let o=0;const s=e.options.useScrollendEvent&&i6?()=>{}:gW(r,()=>{t(o,!1)},e.options.isScrollingResetDelay),i=u=>()=>{const{horizontal:d,isRtl:f}=e.options;o=d?n.scrollLeft*(f&&-1||1):n.scrollTop,s(),t(o,u)},a=i(!0),c=i(!1);c(),n.addEventListener("scroll",a,s6);const l=e.options.useScrollendEvent&&i6;return l&&n.addEventListener("scrollend",c,s6),()=>{n.removeEventListener("scroll",a),l&&n.removeEventListener("scrollend",c)}},CW=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},xW=(e,{adjustments:t=0,behavior:n},r)=>{var o,s;const i=e+t;(s=(o=r.scrollElement)==null?void 0:o.scrollTo)==null||s.call(o,{[r.options.horizontal?"left":"top"]:i,behavior:n})};class SW{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(o=>{o.forEach(s=>{const i=()=>{this._measureElement(s.target,s)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(i):i()})}));return{disconnect:()=>{var o;(o=r())==null||o.disconnect(),n=null},observe:o=>{var s;return(s=r())==null?void 0:s.observe(o,{box:"border-box"})},unobserve:o=>{var s;return(s=r())==null?void 0:s.unobserve(o)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([r,o])=>{typeof o>"u"&&delete n[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:bW,rangeExtractor:yW,onChange:()=>{},measureElement:CW,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var r,o;(o=(r=this.options).onChange)==null||o.call(r,this,n)},this.maybeNotify=Is(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(o=>{this.observer.observe(o)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(o,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<o?"forward":"backward":null,this.scrollOffset=o,this.isScrolling=s,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,r)=>{const o=new Map,s=new Map;for(let i=r-1;i>=0;i--){const a=n[i];if(o.has(a.lane))continue;const c=s.get(a.lane);if(c==null||a.end>c.end?s.set(a.lane,a):a.end<c.end&&o.set(a.lane,!0),o.size===this.options.lanes)break}return s.size===this.options.lanes?Array.from(s.values()).sort((i,a)=>i.end===a.end?i.index-a.index:i.end-a.end)[0]:void 0},this.getMeasurementOptions=Is(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,r,o,s,i)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:r,scrollMargin:o,getItemKey:s,enabled:i}),{key:!1}),this.getMeasurements=Is(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:o,getItemKey:s,enabled:i},a)=>{if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(u=>{this.itemSizeCache.set(u.key,u.size)}));const c=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const l=this.measurementsCache.slice(0,c);for(let u=c;u<n;u++){const d=s(u),f=this.options.lanes===1?l[u-1]:this.getFurthestMeasurement(l,u),h=f?f.end+this.options.gap:r+o,g=a.get(d),m=typeof g=="number"?g:this.options.estimateSize(u),b=h+m,y=f?f.lane:u%this.options.lanes;l[u]={index:u,start:h,size:m,end:b,key:d,lane:y}}return this.measurementsCache=l,l},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Is(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,r,o,s)=>this.range=n.length>0&&r>0?EW({measurements:n,outerSize:r,scrollOffset:o,lanes:s}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Is(()=>{let n=null,r=null;const o=this.calculateRange();return o&&(n=o.startIndex,r=o.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,r]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,r]},(n,r,o,s,i)=>s===null||i===null?[]:n({startIndex:s,endIndex:i,overscan:r,count:o}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,o=n.getAttribute(r);return o?parseInt(o,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(n,r)=>{const o=this.indexFromElement(n),s=this.measurementsCache[o];if(!s)return;const i=s.key,a=this.elementsCache.get(i);a!==n&&(a&&this.observer.unobserve(a),this.observer.observe(n),this.elementsCache.set(i,n)),n.isConnected&&this.resizeItem(o,this.options.measureElement(n,r,this))},this.resizeItem=(n,r)=>{const o=this.measurementsCache[n];if(!o)return;const s=this.itemSizeCache.get(o.key)??o.size,i=r-s;i!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,i,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=i,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,r)),this.notify(!1))},this.measureElement=n=>{if(!n){this.elementsCache.forEach((r,o)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(o))});return}this._measureElement(n,void 0)},this.getVirtualItems=Is(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,r)=>{const o=[];for(let s=0,i=n.length;s<i;s++){const a=n[s],c=r[a];o.push(c)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();if(r.length!==0)return r6(r[Ky(0,r.length-1,o=>r6(r[o]).start,n)])},this.getOffsetForAlignment=(n,r,o=0)=>{const s=this.getSize(),i=this.getScrollOffset();r==="auto"&&(r=n>=i+s?"end":"start"),r==="center"?n+=(o-s)/2:r==="end"&&(n-=s);const a=this.getTotalSize()-s;return Math.max(Math.min(a,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const o=this.measurementsCache[n];if(!o)return;const s=this.getSize(),i=this.getScrollOffset();if(r==="auto")if(o.end>=i+s-this.options.scrollPaddingEnd)r="end";else if(o.start<=i+this.options.scrollPaddingStart)r="start";else return[i,r];const a=r==="end"?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(a,r,o.size),r]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(n,{align:r="start",behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,r),{adjustments:void 0,behavior:o})},this.scrollToIndex=(n,{align:r="auto",behavior:o}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const s=this.getOffsetForIndex(n,r);if(!s)return;const[i,a]=s;this._scrollToOffset(i,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(n))){const l=this.getOffsetForIndex(n,a);if(!l)return;const[u]=l,d=this.getScrollOffset();mW(u,d)||this.scrollToIndex(n,{align:a,behavior:o})}else this.scrollToIndex(n,{align:a,behavior:o})}))},this.scrollBy=(n,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+n,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var n;const r=this.getMeasurements();let o;if(r.length===0)o=this.options.paddingStart;else if(this.options.lanes===1)o=((n=r[r.length-1])==null?void 0:n.end)??0;else{const s=Array(this.options.lanes).fill(null);let i=r.length-1;for(;i>=0&&s.some(a=>a===null);){const a=r[i];s[a.lane]===null&&(s[a.lane]=a.end),i--}o=Math.max(...s.filter(a=>a!==null))}return Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:r,behavior:o})=>{this.options.scrollToFn(n,{behavior:o,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const Ky=(e,t,n,r)=>{for(;e<=t;){const o=(e+t)/2|0,s=n(o);if(s<r)e=o+1;else if(s>r)t=o-1;else return o}return e>0?e-1:0};function EW({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){const o=e.length-1,s=c=>e[c].start;if(e.length<=r)return{startIndex:0,endIndex:o};let i=Ky(0,o,s,n),a=i;if(r===1)for(;a<o&&e[a].end<n+t;)a++;else if(r>1){const c=Array(r).fill(0);for(;a<o&&c.some(u=>u<n+t);){const u=e[a];c[u.lane]=u.end,a++}const l=Array(r).fill(n+t);for(;i>=0&&l.some(u=>u>=n);){const u=e[i];l[u.lane]=u.start,i--}i=Math.max(0,i-i%r),a=Math.min(o,a+(r-1-a%r))}return{startIndex:i,endIndex:a}}const a6=typeof document<"u"?P.useLayoutEffect:P.useEffect;function AW(e){const t=P.useReducer(()=>({}),{})[1],n={...e,onChange:(o,s)=>{var i;s?Pv(t):t(),(i=e.onChange)==null||i.call(e,o,s)}},[r]=P.useState(()=>new SW(n));return r.setOptions(n),a6(()=>r._didMount(),[]),a6(()=>r._willUpdate()),r}function OW(e){return AW({observeElementRect:vW,observeElementOffset:wW,scrollToFn:xW,...e})}function kW(e){const{address:t,chainId:n}=e,[,r]=y2();if(!t)return null;const o=$G(t);function s(a){return()=>{r(a).catch(c=>{console.error("Failed to copy!",c)})}}const i=q("button",{className:"flex items-center gap-1",onClick:s(t),children:[t,p(ue,{className:"inline-block text-gray-600",name:"FilesEarmark",size:16})]});return p(So,{content:i,children:q("span",{className:"flex w-fit cursor-pointer items-center gap-1 rounded-lg bg-gray-100 p-1 text-xs text-slate-100",children:[p(hb,{address:t,chainId:n}),o]})})}function _W(e){const{errors:t}=e,n=!!(t!=null&&t.length),r=n?"text-red-800":"text-green-700",o=n?p(ue,{name:"Exclamation",size:16}):p(ue,{name:"Check",size:16}),s=n?`Error: ${t[0]}`:"No errors",i=q("span",{className:he("flex w-fit items-center rounded-lg border border-gray-200 px-2 py-1 text-xs",r,n&&"cursor-pointer"),children:[o,p("span",{className:he("inline-block max-w-36 truncate"),children:s})]}),a=t==null?void 0:t.map((c,l)=>q("p",{className:"text-red-800",children:["Error: ",c]},l));return n?p(So,{content:a,children:i}):i}function IW(e){const{operationType:t,operationInput:n}=e,r=p("code",{children:p("pre",{children:JSON.stringify(n,null,2)})});return p(So,{content:r,children:q("span",{className:"flex cursor-pointer items-center gap-2 text-xs",children:[t,p(ue,{className:"text-gray-300",name:"Braces",size:16})]})})}function PW(e){const{operationIndex:t,eventId:n,stateHash:r}=e,[,o]=y2(),s=t+1,i=q("button",{className:"flex items-center gap-1",onClick:a(r),children:["Revision ",s," - Event ID: ",n," - State Hash: ",r,p(ue,{className:"inline-block text-gray-600",name:"FilesEarmark",size:16})]});function a(c){return()=>{o(c).catch(l=>{console.error("Failed to copy!",l)})}}return p(So,{content:i,children:q("span",{className:"flex cursor-pointer items-center gap-2 text-xs text-gray-600",children:["Revision ",s,".",p("a",{children:p(ue,{className:"cursor-pointer text-slate-100",name:"Ellipsis",size:14})})]})})}function MW(e){const{signatures:t}=e;if(!(t!=null&&t.length))return null;const n=q("div",{className:"text-xs text-slate-300",children:[p("h3",{className:"mb-2",children:"Signature details:"}),t.map((r,o)=>q("div",{className:"mb-2 last:mb-0",children:[q("h4",{children:["Signature #",o+1," -"," ",r.isVerified?"verified":"unverified"]}),p("code",{children:p("pre",{children:JSON.stringify(r,null,2)})})]},r.hash))]});return p(So,{content:n,children:q("span",{className:"flex w-fit cursor-pointer items-center gap-1 rounded-lg border border-gray-200 px-2 py-1",children:[p(RW,{signatures:t})," ",p(ue,{className:"text-gray-300",name:"InfoSquare",size:16})]})})}function RW(e){const{signatures:t}=e;if(!(t!=null&&t.length))return null;const n=t.length,r=t.filter(a=>a.isVerified).length,s=`${r}/${n} ${n===1?"signature":"signatures"} verified`;return p("span",{className:`text-xs ${r===0?"text-red-800":r===n?"text-green-700":"text-orange-700"}`,children:s})}function TW(e){const{timestamp:t}=e,n=typeof t=="string"&&!t.includes("-")?parseInt(t):t,r=new Date(n),o=Gl(r,"HH:mm 'UTC'"),s=Gl(r,"eee, dd MMM yyyy HH:mm:ss 'UTC'"),i=p("div",{children:s});return p(So,{content:i,children:q("span",{className:"cursor-pointer text-xs",children:["committed at ",o]})})}function NW(e){return q("article",{className:"flex items-center justify-between rounded-xl border border-gray-200 bg-white px-4 py-2",children:[q("div",{className:"flex items-center gap-2",children:[p(PW,{...e}),p(IW,{...e}),p(kW,{...e}),p(TW,{...e})]}),q("div",{className:"flex items-center gap-1",children:[p(MW,{...e}),p(_W,{...e})]})]})}const LW=kv(NW);function DW(e){const{operationIndex:t,skipCount:n}=e,r=t,o=n===1?`${r}`:`${r} - ${r+1-n}`;return q("article",{className:"grid grid-cols-[1fr,auto,1fr] items-center py-2",children:[p("div",{className:"h-px rounded-full bg-slate-100"}),q("div",{className:"mx-3 text-xs text-slate-100",children:["[Skipped Revision ",o,"]"]}),p("div",{className:"h-px rounded-full bg-slate-100"})]})}function FW(e){var r,o,s,i,a,c,l,u,d;const t=[],n=new Set;for(const f of e){const h=f.timestamp.split("T")[0];n.has(h)||(n.add(h),t.push({type:"day",height:32,timestamp:h})),t.push({type:"revision",height:46,operationIndex:f.index,eventId:f.id??"EVENT_ID_NOT_FOUND",stateHash:f.hash,operationType:f.type,operationInput:f.input??{},address:(s=(o=(r=f.action)==null?void 0:r.context)==null?void 0:o.signer)==null?void 0:s.user.address,chainId:(c=(a=(i=f.action)==null?void 0:i.context)==null?void 0:a.signer)==null?void 0:c.user.chainId,timestamp:f.timestamp,signatures:VW(((d=(u=(l=f.action)==null?void 0:l.context)==null?void 0:u.signer)==null?void 0:d.signatures)??[]),errors:f.error?[f.error]:void 0}),f.skip>0&&t.push({type:"skip",height:34,operationIndex:f.index,skipCount:f.skip,timestamp:f.timestamp})}return t}function BW(e){const[t,n,r,o]=e;return{signerAddress:t,hash:n,prevStateHash:r,signatureBytes:o,isVerified:!0}}function VW(e){return e==null?void 0:e.map(BW)}function zW(e){const{timestamp:t}=e,n=Gl(t,"MMM dd, yyyy");return q("h2",{className:"-ml-6 flex items-center gap-1 bg-slate-50 py-2 text-xs text-slate-100",children:[p(ue,{name:"Ring",size:16})," Changes on ",n]})}function HW(e){const{localOperations:t,globalOperations:n,scope:r}=e,o=r==="local"?t:n,s=100,i=bt(()=>FW(o),[o]),[a,c]=we(0),[l,u]=we(s),[d,f]=we(()=>i.slice(0,l)),h=Je(null),g=d.length<i.length,m=OW({count:d.length,getScrollElement:()=>h.current,estimateSize:y=>i[y].height,gap:8});Ye(()=>{if(!g)return;const y=Math.floor(a/46),v=s+y;u(w=>v>w?v:w)},[a,g]),Ye(()=>{f(i.slice(0,l))},[i,l]);const b=y=>{c(v=>{const w=v+y.deltaY;return w<0?0:w})};return Ye(()=>(window.addEventListener("wheel",b),()=>{window.removeEventListener("wheel",b)}),[]),p("div",{className:"border-l border-slate-100",ref:h,style:{height:`${m.getTotalSize()}px`,width:"100%",position:"relative"},children:m.getVirtualItems().map(y=>{const v=d[y.index];return q("div",{style:{position:"absolute",top:0,left:16,width:"100%",height:`${y.size}px`,transform:`translateY(${y.start}px)`},children:[v.type==="revision"&&Rd(LW,{...v,key:y.key}),v.type==="skip"&&p(DW,{...v},y.key),v.type==="day"&&p(zW,{...v},y.key)]},y.index)})})}function iJ(e){const{documentTitle:t,documentId:n,globalOperations:r,localOperations:o,onClose:s,itemsPerPage:i=100}=e,[a,c]=we("global"),l=bt(()=>sr(hr(a==="global"?r:o)).sort((k,O)=>O.index-k.index),[r,o,a]),{pageItems:u,pages:d,goToPage:f,goToNextPage:h,goToPreviousPage:g,goToFirstPage:m,goToLastPage:b,hiddenNextPages:y,isNextPageAvailable:v,isPreviousPageAvailable:w}=VO(l,{itemsPerPage:i});function x(A){m(),c(A)}const S=l.length>i?p("div",{className:"mt-4 flex w-full justify-end",children:p(NO,{firstPageLabel:"First Page",goToFirstPage:m,goToLastPage:b,goToNextPage:h,goToPage:f,goToPreviousPage:g,hiddenNextPages:y,isNextPageAvailable:v,isPreviousPageAvailable:w,lastPageLabel:"Last Page",nextPageLabel:"Next",pages:d,previousPageLabel:"Previous"})}):p("hr",{className:"h-12 border-none"});return q(fv,{children:[p(pW,{docId:n,onChangeScope:x,onClose:s,scope:a,title:t}),S,p("div",{className:"mt-4 flex justify-center rounded-md bg-slate-50 p-4",children:l.length>0?p("div",{className:"grid grid-cols-[minmax(min-content,1018px)]",children:p(HW,{globalOperations:a==="global"?u:[],localOperations:a==="local"?u:[],scope:a})}):p("h3",{className:"my-40 text-gray-600",children:"This document has no recorded operations yet."})}),S]})}const c6=e=>{const{item:t,...n}=e;return q("div",{...Jt(n,"flex h-full flex-row items-center justify-between gap-x-4 px-2"),children:[t.icon,p("div",{className:"text-sm font-semibold text-slate-200",children:t.label})]})},aJ=e=>{const{value:t,onChange:n,placeholder:r,filterLabel:o,filterItems:s,selectedFilter:i,onFilterSelect:a=()=>{},className:c}=e,l=bt(()=>(s==null?void 0:s.map(h=>({id:h.id,content:p(c6,{item:h})})))??[],[s]),u=s==null?void 0:s.find(h=>h.id===i),d=u?p(c6,{className:"gap-x-1",item:u}):o&&p("div",{className:"mr-2 text-sm font-semibold text-slate-200",children:o});function f(h){n==null||n(h.target.value)}return q("div",{className:Pe("flex items-center",c),children:[p(ue,{className:"mr-3",name:"Search"}),p("input",{className:he("flex h-[52px] min-w-0 flex-1 items-center rounded-xl border border-gray-200 bg-gray-50 px-4 text-sm text-slate-200 outline-none"),onChange:f,placeholder:r,value:t}),q(c5,{children:[q(l5,{className:"ml-3 flex h-full flex-row items-center outline-none",children:[d," ",p(ue,{name:"ChevronDown"})]}),p(u5,{className:"rounded-xl border border-gray-100 bg-gray-50 p-2",children:l.map(h=>p(d5,{className:"h-10 cursor-pointer overflow-hidden rounded-lg hover:bg-gray-100",id:h.id,onSelect:()=>a(h.id),children:h.content},h.id))})]})]})},jW=""+new URL("renown-short-hover-BiSLBV7L.png",import.meta.url).href,$W="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJAAAACQCAYAAADnRuK4AAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAtmSURBVHgB7Z3dbtvmGcefl5LsqHYCq0C6tEUCZ0kDzAFqd0NTYAmweAfr0YD0CrpeQboriH0H6RUsu4ChAYodtCdJD3LQBGttILEBJ4tdJ2uzBoi0yIpsi+S790+ZDkmREilSHySfX6FKpkgliH5+nuf9pKAEkFLO1Bu7VzRNzEuiWfXzglDHSIgZYsYC9b1sCaEeJFZMU66WCnS7XC5vUUwE9Qmk2dndvar+ZpetB5NCxIr6Hr+II1NkgQ7FMeTnHGGygxLhRkGj5agiRRKo3mxeY3EyjkZLR8vl5bCnhxKo2WzOGqb4UpJcCDpH1T+E/wpKY+3gU4XoO0MyCaKyhvVsqifTNNWzVM8y8Hz1rW2pr3ExTDTq+Q3vNPc/lYZ+3S/qwI+iVlDSCJYlZcgDiVqGQdLXJVGTJD47NjV5s9vndP3W6429a8rZpY6LIE6hoB4aMenHMMxgkXqktECBguSBNHhwxMkWiEgt3SRDpbgOukjka8HLxt4VQeaX3uOlIkedrKPr7WjkRWiFv0yXJ/7ecdx7AAWzbsgfnDUPgs1EsWgVykz2QTTaa+melCZqRU1+4C2sO8KJSoe3vAXzZInlyRMoTxAw3MgZXbXEvee6BELdg6EI5zGkLa538gcCRkk1lNzIhXqjseQ8cmiGlbpM2nS+WdA0migViMkvKKx1V00kavr+5OlKRdTw02EEUqnrmvNCBJ1SkQvmvFMsauROQHKmOPHqc/sn6y2/6MMtLsams2X2OgpZhrQM92h6u6OQ5WHadItCliWqSL7quqDAdQ/jpqB5nBDaH6wnv/R1ZKLILS/GBbqEdvdarmP6/pGK5k1f1qg6y8N4gBHevsBSafeKOuSeoqGxPEwAXjcwvUfVQGLedZLGxTPjj9cNKWhWw/9cJ3EAYgLwuqHaZvM4Nus+zAYxAXSkMDGj9TiHYQ7pVEP1BxEzFL6+9T3tvGrS4u/fpzcrRykrcMU8BLb/85yePa/STmOX1h49oSzBAg2BJ0qgw9dPn1OWYIEGzH5LtyKQ8+dnv1QpK7BAA2ZbRRxI42T1wSZlBRZowKw/2u44hnpov9WiLMACDRCI8qK64/ve2sZTygIs0ABZvf848L31je1MRCEWaEA82vxZRaBa4Puoi1bvp78WYoEGxOra457nrD18kvoWGQs0AFYfPLY6DcOdm+4oxAIlzE6jSSsRpEChvbaR3t5pFihBUBR/fft7isq9lY3UpjIWKEHufLceOnV1XHtvzYpeaYMFSgjUPds/9T/OBfEQvdLWtGeBEgDyrCRQDFsS3UqXRCxQTJKSx+ZFbSdVErFAMbi38jBReWwg0Vff3E1FTcQC9YHV2lJRYm1jmwaFXRONu0Si3mi69qEqT5aICQb9NnfurvXd2uqHhfO/pvnzp2kcaHpWp7JAIUHUWX2wNdCo0403Z6Zp8eL7ND1VplHCAvXBuuopXlHFsndi2Cg4O/u2FY1GJRILFBJEnEebz2j94fZQ01UYpqeO0InjlZGIxAL1ADUOJsFjOsY4RJxenHr3OJ05/Tadeuc4DQMWKAC0dtqtnvGKNmGZKBXp4oU5S6hB4hWIm/EHoO8lrfIAa/XHT8NfMsQCHXDirYqqK9J7FytEoLmzp2jYcArzgCiEqRWYUTjuEQnSWPWPSlsoqocB10ARwIJATH7vNrd5FECc35w7SXPnTlmvhwkL1AdokY1DRBqlODYsUAzQmTiqOcwnVTP90kdzIxPHhgWKSXuQ819Di0YQ5sMPzlk90OMAC5QQd1c2rCGOQYIe548v/856Hhe8AvEGU31yYeGcFR0GldLQpbB4aX7kKasXLFAMMM0CJC3RGZWuLqle5TQwcoGGUUsMMgUkLVGa5AEjF+gf/7xDwwQyTb9RpomJIlVmpg96oON1wiUlEeb8pEkekLsUhohnRz10FNpfOiRCr26/rR1IhPGofgtriL14cZ7SBtdAB2AaBx5YZXF29p2+ppBCov/+UlMDs3WKyri1tsLCg6keEJ3QYYjU+mjr50jXosWEaadRW04fLryXSnkACxQARMLk+ah1DUSYP6iJwoDmOoYm0goL1ANEI4gUhTk1XhV2asjFC+cpzbBAIUAqiypRmCiEc9KaumxYoJBAoij7+PSaoAZxxmV8Kw4sUASwj8+LavgWVrcodEa19NIefQALFBGshw9LtyiUhegDWKCIWP1FEXYT84tCGK7IQvQBqe1IxBdwJuRvcbW6Qy/+V09s3A1Ne0SXMODWTugXcq4xO3s6G9EHpFcgNZ61EKG/BSQ1NRU9zVi5OlHqPXfKnvhuD3HYq0qzQq5SGH7z//ynj2LXH+077oSfaO9cNfqrDMkDclcD2Ss4464BQy0UFqS7k+8et0bbo0bNcSe3g6noAf7qm+/6Xv8eNQ3+UY2RZZHctsKsIjxGMVvtY8Q9i+S6GR9nR4s0r6NPklwLlKW7J4+KXAs07ise0gD3RDOxyLVAadiBbNzJtUAvYrSksjKWFZdcC/TvzWhznp1gKIXJsUDYEzFKb7KXSmWamBwLtP7waay+nCwNiMYhlwJh7VfcHedPvJXe/RSTJFcdIdbCwfubsVIXwDykMFM58kBqBdp51bSW3IShgY0zlTRJDT9kaUJYXNIrkJJhFNvNofbh+uc13BMdkYsp2z1j0LBAEcjCQsCkYYFCghmMC2Ny07dxggUKgXWzt0vp27tnGPB8hh6My/7M4wr/qwQAYbDJVJq3XhkGLJAPuJ0AVk9w1OkN10A+oJeZ5QkHC+QD7tCDladMb1L7a4be4I8Xfxv4fpwbo2Cm4trGU262hyCzESjuLZE4CoUjswLZ99bqFzsKMd3JdA3EUWjwZFogjkKDJ/OtMI5CgyXzAtkbPPULR6Hu5KIfaO69eMMRHIWCyYVA7W3l+p8Ez1EomNz0RM/H3BmMo5A/uRGo187xveAo5E+uxsI4CiVPrgTiKJQ8uRuN5yiULLkTiKNQsuRyPhDulBMHjkKvyaVAWJocZ30XR6HX5HZG4pmYtzvgKNQmtwLFHWTlKNQmtwLFneoBOArlfFI9R6H4iHqjKZ0HypO8cRITTHPPHXFVBJKuG19JSQzji58amiRR630awygzTLcbgmhLE0KsOA+a7A8TgFcNKZRAZJo/Og8apkkM44fpdcOUq0hhrggkuQhiAjA9bsAdzWjt3nSdpHIYO8R4QWAxPfWNUaDbWqVSqSmVbjvf0E2DGMaJ2VFAy5VKubzV7kiU9K3zTUPnOohx0zLcTphSfIFnSyBd373u7A+Ca7rBUYhpYyh5vLUx0heeLYGsNGa2jbLRdZNrIcYSxxt9BGk3kL7arw+oVqszxYnJTXXocLpesahRqVAgJr/s64YVgZzoGp22BTocTA2KQpzK8ouuxPHKo6qfZVseILwX1Ru7P6jAteA8NqlGrDVNEJMfkLp29933lBWq53n6jbJr27aO6Ry6Jj/xDrBi2gJ3MOYHQzXZ91rezCNrLUGL3nM7BEJ4klL81XWpesBGTmfZB2nLL2BIKnzmTF02vhPKjk2Xb5BJy97jLVUToajiaJQ9rNaW+m7x6MRcPjY1edPvuq6FTb3eXFKKXeu4SCXDYkGzHkz6QdTRffp62pjLR6emloKu7VkZv3zZuCIK4m/O5v3hxQciFVSBjddMeoAsuolWlgwQR9aEKmWmkY26EOpbrzabsyVJt9SfMxt0DlppmmiLhNf4YJZqPLAFQXGMEXW/gVEnmCPWEvITv5qn41yKQFBKY7KCtPoCjx4tL4W9InKIQDQqGOaSENqnxGSEtjj69JHrFeGd4tydvnNMWyS6rMLdVW/HI5MShBoQNejbfsR5/REJcCiTJZKYl4Jm1QfPEjMmyBoWT2AOj+rQ+REzCY2pIzf7lcbJ/wH9VD8KK3ri6QAAAABJRU5ErkJggg==",UW=({onLogin:e})=>{const t=p(pP,{onLogin:e});return p(z4,{content:t,children:q("div",{className:he("group/sidebar-footer flex w-full items-baseline justify-start text-sm font-semibold leading-10 text-gray-600",e?"cursor-pointer":"cursor-wait"),children:[p("img",{width:42,height:42,loading:"lazy",className:"group-hover/sidebar-footer:hidden",src:$W,alt:"Renown Login"}),p("img",{width:42,height:42,loading:"lazy",className:"hidden group-hover/sidebar-footer:block",src:jW,alt:"Renown Login Hover"})]})})},ZW=({address:e,etherscanUrl:t,onDisconnect:n})=>{const{data:r}=fb({address:e}),s=p(gP,{address:e,username:r,onDisconnect:n,etherscanUrl:t});return p(z4,{content:s,children:p("div",{className:"flex items-center justify-center rounded-sm",children:p(hb,{address:e,size:"40px"})})})},WW=({address:e,className:t,onLogin:n,onClickSettings:r,onDisconnect:o,etherscanUrl:s="",...i})=>q(DO,{...i,className:he("flex flex-col gap-2 border-t border-gray-300 px-2 py-4",t),children:[p("div",{children:e?p(ZW,{address:e,onDisconnect:o,etherscanUrl:s}):p(UW,{onLogin:n})}),q("button",{"aria-label":"Settings",type:"button",className:he("mt-3 flex w-full items-center justify-center outline-none",r?"cursor-pointer":"cursor-wait"),onClick:r,children:[p(ue,{className:"text-gray-600",name:"Settings"}),p("span",{className:"hidden text-sm font-semibold leading-6 text-gray-800",children:"Settings"})]})]}),GW=({onClick:e,className:t,children:n,...r})=>p(LO,{...r,className:he("flex justify-center gap-4 border-b border-gray-300 py-4",t),children:p("button",{"aria-label":"Home",className:e?"cursor-pointer":"cursor-wait",onClick:e,type:"button",children:p(ue,{className:"text-gray-600",name:"ConnectSmall",size:24})})}),cJ=({onClick:e,address:t,headerContent:n,onClickSettings:r,maxWidth:o="304px",minWidth:s="58px",onLogin:i,onDisconnect:a,etherscanUrl:c,...l})=>q(FO,{...l,maxWidth:o,minWidth:s,children:[q(BO,{children:[p(GW,{onClick:e,children:n}),p("div",{className:"flex flex-col",children:l.children})]}),p(WW,{address:t,onClickSettings:r,onLogin:i,onDisconnect:a,etherscanUrl:c})]}),qW=function(t){const{icon:n,title:r,containerClassName:o,active:s,onClick:i}=t;return p("div",{className:he("relative flex cursor-pointer flex-col items-center justify-center text-center text-sm text-black",o,s&&"bg-white",i&&"cursor-pointer"),onClick:i,children:p("div",{className:"mx-auto py-4",children:n||p("div",{className:"size-8 items-center justify-center rounded-lg bg-black pt-1",children:p("span",{className:"text-6 w-6 text-white",children:r.slice(0,1).toUpperCase()})})})})},lJ=function(t){const{containerClassName:n,onClick:r}=t;return p(qW,{title:"Create New Drive",icon:p(ue,{name:"PlusSquare",size:32}),onClick:r,containerClassName:n})};function Pd(e){const{children:t}=e;return p("div",{children:t})}var A1="Tabs",[JW,uJ]=Br(A1,[Tu]),Xy=Tu(),[YW,Vh]=JW(A1),Qy=P.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:s,orientation:i="horizontal",dir:a,activationMode:c="automatic",...l}=e,u=_0(a),[d,f]=yi({prop:r,onChange:o,defaultProp:s??"",caller:A1});return p(YW,{scope:n,baseId:zt(),value:d,onValueChange:f,orientation:i,dir:u,activationMode:c,children:p(Ze.div,{dir:u,"data-orientation":i,...l,ref:t})})});Qy.displayName=A1;var ev="TabsList",tv=P.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,s=Vh(ev,n),i=Xy(n);return p(Cm,{asChild:!0,...i,orientation:s.orientation,dir:s.dir,loop:r,children:p(Ze.div,{role:"tablist","aria-orientation":s.orientation,...o,ref:t})})});tv.displayName=ev;var nv="TabsTrigger",rv=P.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...s}=e,i=Vh(nv,n),a=Xy(n),c=iv(i.baseId,r),l=av(i.baseId,r),u=r===i.value;return p(xm,{asChild:!0,...a,focusable:!o,active:u,children:p(Ze.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c,...s,ref:t,onMouseDown:Me(e.onMouseDown,d=>{!o&&d.button===0&&d.ctrlKey===!1?i.onValueChange(r):d.preventDefault()}),onKeyDown:Me(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&i.onValueChange(r)}),onFocus:Me(e.onFocus,()=>{const d=i.activationMode!=="manual";!u&&!o&&d&&i.onValueChange(r)})})})});rv.displayName=nv;var ov="TabsContent",sv=P.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:s,...i}=e,a=Vh(ov,n),c=iv(a.baseId,r),l=av(a.baseId,r),u=r===a.value,d=P.useRef(u);return P.useEffect(()=>{const f=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(f)},[]),p(ln,{present:o||u,children:({present:f})=>p(Ze.div,{"data-state":u?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":c,hidden:!f,id:l,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:f&&s})})});sv.displayName=ov;function iv(e,t){return`${e}-trigger-${t}`}function av(e,t){return`${e}-content-${t}`}var KW=Qy,XW=tv,QW=rv,eG=sv;function tG({children:e,defaultValue:t}){return q(KW,{defaultValue:t,className:"flex flex-col gap-2",children:[p("div",{className:"flex w-full justify-between",children:p(XW,{className:"flex w-full gap-x-2 rounded-xl bg-slate-50 p-1 text-sm font-semibold text-gray-600 outline-none",children:pe.Children.map(e,(n,r)=>{if(!pe.isValidElement(n))return;const{label:o,disabled:s}=n.props;return p(QW,{className:"data-[state='active']:tab-shadow ata-disabled:cursor-not-allowed data-disabled:text-gray-400 flex h-7 flex-1 items-center justify-center rounded-lg transition duration-300 data-[state='active']:bg-gray-50 data-[state='active']:text-gray-900",value:o,disabled:s??!1,children:o},o)})})}),p("div",{className:"mt-3 rounded-md bg-white",children:pe.Children.map(e,(n,r)=>{if(!pe.isValidElement(n))return;const{label:o}=n.props;return p(eG,{value:o,children:n},r)})})]})}const ec=e=>typeof e=="number"&&!isNaN(e),Go=e=>typeof e=="string",on=e=>typeof e=="function",Dl=e=>Go(e)||on(e)?e:null,x0=e=>Ds(e)||Go(e)||on(e)||ec(e);function nG(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=r+"px",o.transition=`all ${n}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)})})}function O1(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:o=!0,collapseDuration:s=300}=e;return function(i){let{children:a,position:c,preventExitTransition:l,done:u,nodeRef:d,isIn:f,playToast:h}=i;const g=r?`${t}--${c}`:t,m=r?`${n}--${c}`:n,b=Je(0);return mi(()=>{const y=d.current,v=g.split(" "),w=x=>{x.target===d.current&&(h(),y.removeEventListener("animationend",w),y.removeEventListener("animationcancel",w),b.current===0&&x.type!=="animationcancel"&&y.classList.remove(...v))};y.classList.add(...v),y.addEventListener("animationend",w),y.addEventListener("animationcancel",w)},[]),Ye(()=>{const y=d.current,v=()=>{y.removeEventListener("animationend",v),o?nG(y,u,s):u()};f||(l?v():(b.current=1,y.className+=` ${m}`,y.addEventListener("animationend",v)))},[f]),pe.createElement(pe.Fragment,null,a)}}function l6(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Vt=new Map;let tc=[];const S0=new Set,rG=e=>S0.forEach(t=>t(e)),cv=()=>Vt.size>0;function lv(e,t){var n;if(t)return!((n=Vt.get(t))==null||!n.isToastActive(e));let r=!1;return Vt.forEach(o=>{o.isToastActive(e)&&(r=!0)}),r}function uv(e,t){x0(e)&&(cv()||tc.push({content:e,options:t}),Vt.forEach(n=>{n.buildToast(e,t)}))}function u6(e,t){Vt.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function oG(e){const{subscribe:t,getSnapshot:n,setProps:r}=Je(function(s){const i=s.containerId||1;return{subscribe(a){const c=function(u,d,f){let h=1,g=0,m=[],b=[],y=[],v=d;const w=new Map,x=new Set,C=()=>{y=Array.from(w.values()),x.forEach(k=>k())},S=k=>{b=k==null?[]:b.filter(O=>O!==k),C()},A=k=>{const{toastId:O,onOpen:T,updateId:B,children:_}=k.props,R=B==null;k.staleId&&w.delete(k.staleId),w.set(O,k),b=[...b,k.props.toastId].filter(E=>E!==k.staleId),C(),f(l6(k,R?"added":"updated")),R&&on(T)&&T(Ds(_)&&_.props)};return{id:u,props:v,observe:k=>(x.add(k),()=>x.delete(k)),toggle:(k,O)=>{w.forEach(T=>{O!=null&&O!==T.props.toastId||on(T.toggle)&&T.toggle(k)})},removeToast:S,toasts:w,clearQueue:()=>{g-=m.length,m=[]},buildToast:(k,O)=>{if((M=>{let{containerId:Y,toastId:G,updateId:W}=M;const re=Y?Y!==u:u!==1,ee=w.has(G)&&W==null;return re||ee})(O))return;const{toastId:T,updateId:B,data:_,staleId:R,delay:E}=O,V=()=>{S(T)},D=B==null;D&&g++;const H={...v,style:v.toastStyle,key:h++,...Object.fromEntries(Object.entries(O).filter(M=>{let[Y,G]=M;return G!=null})),toastId:T,updateId:B,data:_,closeToast:V,isIn:!1,className:Dl(O.className||v.toastClassName),bodyClassName:Dl(O.bodyClassName||v.bodyClassName),progressClassName:Dl(O.progressClassName||v.progressClassName),autoClose:!O.isLoading&&(N=O.autoClose,F=v.autoClose,N===!1||ec(N)&&N>0?N:F),deleteToast(){const M=w.get(T),{onClose:Y,children:G}=M.props;on(Y)&&Y(Ds(G)&&G.props),f(l6(M,"removed")),w.delete(T),g--,g<0&&(g=0),m.length>0?A(m.shift()):C()}};var N,F;H.closeButton=v.closeButton,O.closeButton===!1||x0(O.closeButton)?H.closeButton=O.closeButton:O.closeButton===!0&&(H.closeButton=!x0(v.closeButton)||v.closeButton);let X=k;Ds(k)&&!Go(k.type)?X=Td(k,{closeToast:V,toastProps:H,data:_}):on(k)&&(X=k({closeToast:V,toastProps:H,data:_}));const j={content:X,props:H,staleId:R};v.limit&&v.limit>0&&g>v.limit&&D?m.push(j):ec(E)?setTimeout(()=>{A(j)},E):A(j)},setProps(k){v=k},setToggle:(k,O)=>{w.get(k).toggle=O},isToastActive:k=>b.some(O=>O===k),getSnapshot:()=>y}}(i,s,rG);Vt.set(i,c);const l=c.observe(a);return tc.forEach(u=>uv(u.content,u.options)),tc=[],()=>{l(),Vt.delete(i)}},setProps(a){var c;(c=Vt.get(i))==null||c.setProps(a)},getSnapshot(){var a;return(a=Vt.get(i))==null?void 0:a.getSnapshot()}}}(e)).current;r(e);const o=P6(t,n,n);return{getToastToRender:function(s){if(!o)return[];const i=new Map;return e.newestOnTop&&o.reverse(),o.forEach(a=>{const{position:c}=a.props;i.has(c)||i.set(c,[]),i.get(c).push(a)}),Array.from(i,a=>s(a[0],a[1]))},isToastActive:lv,count:o==null?void 0:o.length}}function sG(e){const[t,n]=we(!1),[r,o]=we(!1),s=Je(null),i=Je({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:a,pauseOnHover:c,closeToast:l,onClick:u,closeOnClick:d}=e;var f,h;function g(){n(!0)}function m(){n(!1)}function b(w){const x=s.current;i.canDrag&&x&&(i.didMove=!0,t&&m(),i.delta=e.draggableDirection==="x"?w.clientX-i.start:w.clientY-i.start,i.start!==w.clientX&&(i.canCloseOnClick=!1),x.style.transform=`translate3d(${e.draggableDirection==="x"?`${i.delta}px, var(--y)`:`0, calc(${i.delta}px + var(--y))`},0)`,x.style.opacity=""+(1-Math.abs(i.delta/i.removalDistance)))}function y(){document.removeEventListener("pointermove",b),document.removeEventListener("pointerup",y);const w=s.current;if(i.canDrag&&i.didMove&&w){if(i.canDrag=!1,Math.abs(i.delta)>i.removalDistance)return o(!0),e.closeToast(),void e.collapseAll();w.style.transition="transform 0.2s, opacity 0.2s",w.style.removeProperty("transform"),w.style.removeProperty("opacity")}}(h=Vt.get((f={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||h.setToggle(f.id,f.fn),Ye(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||m(),window.addEventListener("focus",g),window.addEventListener("blur",m),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",m)}},[e.pauseOnFocusLoss]);const v={onPointerDown:function(w){if(e.draggable===!0||e.draggable===w.pointerType){i.didMove=!1,document.addEventListener("pointermove",b),document.addEventListener("pointerup",y);const x=s.current;i.canCloseOnClick=!0,i.canDrag=!0,x.style.transition="none",e.draggableDirection==="x"?(i.start=w.clientX,i.removalDistance=x.offsetWidth*(e.draggablePercent/100)):(i.start=w.clientY,i.removalDistance=x.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(w){const{top:x,bottom:C,left:S,right:A}=s.current.getBoundingClientRect();w.nativeEvent.type!=="touchend"&&e.pauseOnHover&&w.clientX>=S&&w.clientX<=A&&w.clientY>=x&&w.clientY<=C?m():g()}};return a&&c&&(v.onMouseEnter=m,e.stacked||(v.onMouseLeave=g)),d&&(v.onClick=w=>{u&&u(w),i.canCloseOnClick&&l()}),{playToast:g,pauseToast:m,isRunning:t,preventExitTransition:r,toastRef:s,eventHandlers:v}}function iG(e){let{delay:t,isRunning:n,closeToast:r,type:o="default",hide:s,className:i,style:a,controlledProgress:c,progress:l,rtl:u,isIn:d,theme:f}=e;const h=s||c&&l===0,g={...a,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};c&&(g.transform=`scaleX(${l})`);const m=kn("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${f}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":u}),b=on(i)?i({rtl:u,type:o,defaultClassName:m}):kn(m,i),y={[c&&l>=1?"onTransitionEnd":"onAnimationEnd"]:c&&l<1?null:()=>{d&&r()}};return pe.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":h},pe.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${f} Toastify__progress-bar--${o}`}),pe.createElement("div",{role:"progressbar","aria-hidden":h?"true":"false","aria-label":"notification timer",className:b,style:g,...y}))}let aG=1;const dv=()=>""+aG++;function cG(e){return e&&(Go(e.toastId)||ec(e.toastId))?e.toastId:dv()}function pa(e,t){return uv(e,t),t.toastId}function Eu(e,t){return{...t,type:t&&t.type||e,toastId:cG(t)}}function yl(e){return(t,n)=>pa(t,Eu(e,n))}function ot(e,t){return pa(e,Eu("default",t))}ot.loading=(e,t)=>pa(e,Eu("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),ot.promise=function(e,t,n){let r,{pending:o,error:s,success:i}=t;o&&(r=Go(o)?ot.loading(o,n):ot.loading(o.render,{...n,...o}));const a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(u,d,f)=>{if(d==null)return void ot.dismiss(r);const h={type:u,...a,...n,data:f},g=Go(d)?{render:d}:d;return r?ot.update(r,{...h,...g}):ot(g.render,{...h,...g}),f},l=on(e)?e():e;return l.then(u=>c("success",i,u)).catch(u=>c("error",s,u)),l},ot.success=yl("success"),ot.info=yl("info"),ot.error=yl("error"),ot.warning=yl("warning"),ot.warn=ot.warning,ot.dark=(e,t)=>pa(e,Eu("default",{theme:"dark",...t})),ot.dismiss=function(e){(function(t){var n;if(cv()){if(t==null||Go(n=t)||ec(n))Vt.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=Vt.get(t.containerId);r?r.removeToast(t.id):Vt.forEach(o=>{o.removeToast(t.id)})}}else tc=tc.filter(r=>t!=null&&r.options.toastId!==t)})(e)},ot.clearWaitingQueue=function(e){e===void 0&&(e={}),Vt.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},ot.isActive=lv,ot.update=function(e,t){t===void 0&&(t={});const n=((r,o)=>{var s;let{containerId:i}=o;return(s=Vt.get(i||1))==null?void 0:s.toasts.get(r)})(e,t);if(n){const{props:r,content:o}=n,s={delay:100,...r,...t,toastId:t.toastId||e,updateId:dv()};s.toastId!==e&&(s.staleId=e);const i=s.render||o;delete s.render,pa(i,s)}},ot.done=e=>{ot.update(e,{progress:1})},ot.onChange=function(e){return S0.add(e),()=>{S0.delete(e)}},ot.play=e=>u6(!0,e),ot.pause=e=>u6(!1,e);const lG=typeof window<"u"?mi:Ye,vl=e=>{let{theme:t,type:n,isLoading:r,...o}=e;return pe.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...o})},Md={info:function(e){return pe.createElement(vl,{...e},pe.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return pe.createElement(vl,{...e},pe.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return pe.createElement(vl,{...e},pe.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return pe.createElement(vl,{...e},pe.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return pe.createElement("div",{className:"Toastify__spinner"})}},uG=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:o,playToast:s}=sG(e),{closeButton:i,children:a,autoClose:c,onClick:l,type:u,hideProgressBar:d,closeToast:f,transition:h,position:g,className:m,style:b,bodyClassName:y,bodyStyle:v,progressClassName:w,progressStyle:x,updateId:C,role:S,progress:A,rtl:k,toastId:O,deleteToast:T,isIn:B,isLoading:_,closeOnClick:R,theme:E}=e,V=kn("Toastify__toast",`Toastify__toast-theme--${E}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":k},{"Toastify__toast--close-on-click":R}),D=on(m)?m({rtl:k,position:g,type:u,defaultClassName:V}):kn(V,m),H=function(j){let{theme:M,type:Y,isLoading:G,icon:W}=j,re=null;const ee={theme:M,type:Y};return W===!1||(on(W)?re=W({...ee,isLoading:G}):Ds(W)?re=Td(W,ee):G?re=Md.spinner():(ie=>ie in Md)(Y)&&(re=Md[Y](ee))),re}(e),N=!!A||!c,F={closeToast:f,type:u,theme:E};let X=null;return i===!1||(X=on(i)?i(F):Ds(i)?Td(i,F):function(j){let{closeToast:M,theme:Y,ariaLabel:G="close"}=j;return pe.createElement("button",{className:`Toastify__close-button Toastify__close-button--${Y}`,type:"button",onClick:W=>{W.stopPropagation(),M(W)},"aria-label":G},pe.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},pe.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(F)),pe.createElement(h,{isIn:B,done:T,position:g,preventExitTransition:n,nodeRef:r,playToast:s},pe.createElement("div",{id:O,onClick:l,"data-in":B,className:D,...o,style:b,ref:r},pe.createElement("div",{...B&&{role:S},className:on(y)?y({type:u}):kn("Toastify__toast-body",y),style:v},H!=null&&pe.createElement("div",{className:kn("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!_})},H),pe.createElement("div",null,a)),X,pe.createElement(iG,{...C&&!N?{key:`pb-${C}`}:{},rtl:k,theme:E,delay:c,isRunning:t,isIn:B,closeToast:f,hide:d,type:u,style:x,className:w,controlledProgress:N,progress:A||0})))},k1=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},dG=O1(k1("bounce",!0));O1(k1("slide",!0));O1(k1("zoom"));O1(k1("flip"));const fG={position:"top-right",transition:dG,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function hG(e){let t={...fG,...e};const n=e.stacked,[r,o]=we(!0),s=Je(null),{getToastToRender:i,isToastActive:a,count:c}=oG(t),{className:l,style:u,rtl:d,containerId:f}=t;function h(m){const b=kn("Toastify__toast-container",`Toastify__toast-container--${m}`,{"Toastify__toast-container--rtl":d});return on(l)?l({position:m,rtl:d,defaultClassName:b}):kn(b,Dl(l))}function g(){n&&(o(!0),ot.play())}return lG(()=>{if(n){var m;const b=s.current.querySelectorAll('[data-in="true"]'),y=12,v=(m=t.position)==null?void 0:m.includes("top");let w=0,x=0;Array.from(b).reverse().forEach((C,S)=>{const A=C;A.classList.add("Toastify__toast--stacked"),S>0&&(A.dataset.collapsed=`${r}`),A.dataset.pos||(A.dataset.pos=v?"top":"bot");const k=w*(r?.2:1)+(r?0:y*S);A.style.setProperty("--y",`${v?k:-1*k}px`),A.style.setProperty("--g",`${y}`),A.style.setProperty("--s",""+(1-(r?x:0))),w+=A.offsetHeight,x+=.025})}},[r,c,n]),pe.createElement("div",{ref:s,className:"Toastify",id:f,onMouseEnter:()=>{n&&(o(!1),ot.pause())},onMouseLeave:g},i((m,b)=>{const y=b.length?{...u}:{...u,pointerEvents:"none"};return pe.createElement("div",{className:h(m),style:y,key:`container-${m}`},b.map(v=>{let{content:w,props:x}=v;return pe.createElement(uG,{...x,stacked:n,collapseAll:g,isIn:a(x.toastId,x.containerId),style:x.style,key:`toast-${x.key}`},w)}))}))}function pG(e){return e==="connect-success"||e==="connect-warning"||e==="connect-loading"||e==="connect-deleted"}function mG(e){if(pG(e)){const t={};switch(e){case"connect-success":t.type="success",t.icon=p(ue,{className:"text-green-800",name:"CheckCircleFill",size:24});break;case"connect-warning":t.type="warning",t.icon=p(ue,{className:"text-gray-600",name:"WarningFill",size:24});break;case"connect-loading":t.type="default",t.icon=p(ue,{className:"text-gray-600",name:"ClockFill",size:24});break;case"connect-deleted":t.type="error",t.icon=p(ue,{className:"text-red-800",name:"TrashFill",size:24});break}return t}return{type:e}}function dJ(e,t){const{type:n="default",...r}=t||{},o=mG(n);return ot(e,{...o,...r})}const gG=({closeToast:e})=>p("button",{className:"flex items-center text-gray-500 hover:text-gray-600",onClick:e,children:p(ue,{name:"XmarkLight",size:16})}),fJ=e=>p(hG,{closeButton:gG,...e}),bG=Co(function(t,n){return q("label",{className:"relative cursor-pointer items-center",htmlFor:t.id,children:[p("input",{className:"peer sr-only",ref:n,type:"checkbox",value:"",...t}),p("div",{className:"peer h-6 w-11 rounded-full bg-gray-500 after:absolute after:start-0.5 after:top-0.5 after:size-5 after:rounded-full after:border after:border-none after:bg-gray-50 after:transition-all peer-checked:bg-blue-900 peer-checked:after:translate-x-full peer-focus:outline-none"})]})});function So(e){const{children:t,content:n,open:r,defaultOpen:o,onOpenChange:s,className:i,side:a="top",sideOffset:c=5,delayDuration:l,...u}=e;return q(J5,{defaultOpen:o,delayDuration:l,onOpenChange:s,open:r,children:[p(Y5,{asChild:!0,children:t}),p(K5,{children:p(X5,{...u,side:a,sideOffset:c,className:he("shadow-tooltip rounded-lg border border-gray-200 bg-white p-2 text-xs",i),children:n})})]})}const fv=ql,hv="powerhouse/budget-statement",zh="powerhouse/default",pv="makerdao/rwa-portfolio",yG=[hv,zh,pv],E0="SWITCHBOARD",mv="LOCAL",gv="CLOUD",_1="PUBLIC",vG="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAAB4CAYAAAAXIRdAAAAACXBIWXMAACE4AAAhOAFFljFgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAzWSURBVHgB7V1dbBXHFZ5d/wI1WMhuVBUJq1GlAg9QlZSngNU2D9BIreoYGikKUdVKjaoSklSRWol4TdWmUgs0SFVTVaqUELUKhDTlIUFqiDA8lKQ8QCvMS5PaVRAN14kMjrGN7TuZb5izPne89/r+7HrXvvNJ17s7O3v3er89Z845M3PGE+XDw58j372+Pi8bv+3n5WZV0i2l1y6EbBfLFNKT/U8fvycQGYFXznkppTi8O7fXF95eKWS3qDN4irQnM0LaPMIUOWGZ53ni0O7r3Z5o+JOQokvUMYyk9dOhSAkFhHGyfvXg/9pbVq7oU7tP8DotqzzRsb5R3Lu1Sazb2CTaOnxdtpxw9OGPI8st0nSRWGT4dgGk6je7P+xSZL0tGFkgZVvPCvHY8+2i50Cb2LKzVRHXsOzIKgVPen1HdufwEosgCPCPL/o/79n7v+79f1eD57/NVeCWnS2KrJV1Q04xCSOol7p//ysd/Xi5LSQucY1Qg3Tj57453G6Ttf3RlVqaHOagnlnf4T03sNtvnfJgoKnnmRhxPn9LdJvFyHrgh6scWUUA9Xho94d988rN8+T2QJwI27BDvTf2CtZmQbI27GgRDsURRRokTGjeIGzxkxYSpl6M8MYbtrc4ySoTNmlcwrAfN2masMMPXX+MVOHqTl9se2iFcCgfUZJG7VjcpN2VMK9xHxVAukCaQ2WwSANZBQEIEZML4MOMV9+/hQpcu1U9GGnaWjS+mt6atq32exzak9vv5eURHHxha7N48OnPiHrHQn7YQkBEZGzj7w8qokKWjLkvajX7fV+KHXSwbmOjcKgdkLS2wcefLSgzxkiEs10RfMn8rk4VanKIB8VMfjL7qzVElEjJLjpAUNdBiDZldI3l8qJWmNijuLnxdwf18V3fTJh9Mv0rUo8wB8POx3oK5JbC6s74NA3CWGuUeuzr6+PEhCZ/pXD2ewTWbYhX0yhBQuyxD9YiSFJbPzxVoWp0hEVgy674ozxkiIA0Zj16lUqZIywCLSs98XnVORs3QNqawR8diDxVpqQ5wooAPRVJtOmKmKBYlL8c0hxhRaBjqj3JxFTJ5C8S/ShJmiOsBNBjkSRpv90z8iwnrZz2zBG2ANBzgb7BpNQj98OMQVLyRt7h3hvhBfv+slY4ROOWcqTfeXVCXD03JeLEUyc+61OcEWD7kfrShTbKBNq0Bx5fpSXu/Yt3xHsXp8XI8IyYGq89Ct/f3w+GyvoiR1iFAHFo22rpka+lN8C1YRkAOdIUCRFWByiHIyxD4BGQYnUcYSmDzHqyDi3fTI8u5g61IyxlQAeCLBPNl9wA4V0xwkidIyxlKLK0KjRE0RgQzUtEX5nnrMQMAJKkCNP7fByImD+7yElY2oCE8ZAUb8t41IMsSCdhGYEiBGMSwmFxRh3ysJXedxKWMiBhCjA8fDaOURaLKToJywAMabTVkma1ZSGchGUExlpcsBPTEZYyGFHyypUrHh/kYdSiLOgzq7fulWuD0+LCycmSkXaM59i4vTmxeQY8+Ku6VxpIJYKwTZs2UVxR8m4XQl1J2DsnJ8TJn49p0kp1i+D8318Y1/UXAR4RxsnSJyyy6soPuzowpTsgK4HusByIt8PSRm9vb2S57YNhCwLrhrDBc3dENaj2unIBqYKE0chgZubP88GAuiEMbVY1gHpMEmi3sEUskQwQBfLDwn4yql83flgcXflJgVuKZjY7BX5DR5rqOrM+ZZw4cUISYZAy1aZFDt8mKXORjpRBFiIA9QgCTTk3OiRJmSMsZXCSYICoT9hHFlXfqcSUociCaa9VIYspenxCO6+/ZCQMRsOl05NiUPlFxWZHYggaohTbelpjnZSXJLgkQbpYmTY6eLcLsCQk7FZuVvz5pze1I1tqKitG58LRfU1FM3DNUgBUIkmR2Q/nQZsqBRK2JAhDOKmSOccgDqQtFRijIrQYjU8WEmUI1L5Z5gmD41rNBHGQ9kHCTm8cQBtG4BYjV5U0agplmScsN1y9ars2WF10YzERZQ1aE9gLkHmjI8sRijhAISge7aBym0w3aioDoGg9GRyeN9eHac/QrKtofVZB0XoW4cBGS5dJEbH0rMTlDJIsFqkHiqpFR1hGwC1Ec8zJCklbFKMjC+Mosg5LykKyDHEhgYkThnER5XTNg1R8bo3kE5u5n0XAD7NVot3bzHMsJqoSszqOIsugHmiAgsDc+EhUwmoZR1EvqpHMekgXDXOj6IclaXn18ROVsKyOo8giSB0iylEsQw5IS5Sw5R6liANMmrQvxh3nCGQ/+LvcwaxBO/gbzhNjEpf94G+9ICicwRIGgCFtZjqtPnRjOlIGWYXUF0bHMOPZMAE3zC0rQBsGy5DGdFBsEaDRUtwIcRKWMmDWG4K4CR8mCQvmps9qOAlLGTRqyrLlJVmKLvibMYAQMudtSzEKjrCUQQRBwniPszk3b8qRa8NSBhFGs1d46qIgYspRohIWR9rVuFK3ZnXVC2a60/G8pCq8XqIShrVcqokL8kV7OmpYwKej4Htq/y1JgKxE5oNJK4UsVKW/KBKGIdPVgGf7xGrs1ST9x7Dte+9rjvW3JAE+LpHNceap+LxFc5zX6XHulXVGor7dtYKk/20VLPMIsr5zYHUivyVuMD+Md2RGTkoHErcSkdQYD7yUlKB9wXnUi1owFQT0KAKwPmcp4tpMPl6QFbWOZxy/JW7waH3A5joTyGikIPCiWIl4S2t9UymrdRZ+S5ygDkwTmuK5fgtTkxppc35YBkAxRDqWd6H3KTzl/LCMwYxPLGi7WDwxNEYcYSmDulUUJE9dBLBVacPVaZ1KzAjsGKKVoDkkzRGWMqgfLGDj66OSgrk2LCOwMgeQpIVp95jRIZXJ71Y3SgNW+r1Gu88LvlixkVNOJaYMPpCUtjToJioA7FRixsBDU5bkaZXoJCwDCIr0MvOwlDBLCDvCUgb3u2ziuElP6tERljKMBciP57VdHK4NSxm8A5NgIvZewBI1owx1HGEpg/wwgIjzIhYtJbXoVGJGQWoRJj71hQVLIRNOPSCYn0WAz3GWPHrvCEsZlPaBEBQZTArSnFmfIfAgMElX1ExMZ3SkDPLDeBCYLENrQW493M1JWEbA1SC1WcaUDyfzOaMjo+CqMHCzV7KFoHDCg97avcwAbRVh3ihd4Gb9J4+p2wXPeDQq0gHYo6aIvEbhyVHVrLXjJNIGda5aGtmolypGhgpylwwbo4MbFxrWyrPhaCpfitlzdKIeE5osNgpT4sohSA9fzqMYQpWoDMhLVPjexWSXXnIQBYmj854cCExG7Yhoh0bA1g4D/Lw3dopOjgzNisnxyjNYO5SHmzdmxfsX5wibuJM7xZOBwXnGNmCrQhhCw5G//jOvfHFIcT2AAzSIl96cFA7xAyrtakGyNHn5zOiPh/l0I5ZGVlpkhekffFgpMj/7El10+c0pJ2UxAw9ar1pxjqUVlPnnOzs7pb2kYmDlTAzYItza6ADDF/z9L6r9IRRCypCzsEhGMYcKQc/x3ZNzy5DgWZ8aefgY1WEkFVwbRGTCwao62o7/qjiyo0E0n6ET9z+yQmzZ1WpukM35wVkHkYVm5vwxluhTzn7vqVc/p7WaHckwy1Pl7e+ZN93oXfHkgMznj9Lx+ZfvZga1sok5lAl6bliNiZMlZf7oP7x9YRNkRzqOHz8+rz1iycG0w6YlDLr0yzMH21sb1yop8zZThfsfaRWbd7YWhEscosFfbOxfPl1Iliodzn387688d+YbOrqEZw7HmWat0OJvZi3M0Erk9wglDG3Zz/66YXTGv9VD7Rlw/uVJ8dYL48okndE/Ip/Ph2+P+0R/Jj6ZFeeO3S4gS73mQ6Jp8mv/WfuHkCz27MMuFl2XpS0KrBFUYNA3JzWbYPm+6V92NTWveUvdu4sqtnX44kvbm9SnWaxW+7ak8eOo2Rc2eJ2o+nYZHZdTt1JUe70tUTDYIFX/On3HihnKyzPTt3qeeR0uVHHJ4hfY9yJ+NFnkvKEwl8t5+OKJ6Y+2Qt/SBWMqzvjP16bEsf1j4o0j47oh/eDKtH6bSPLoYx9HfXidqPrFvrOcupV+qr0e/3vuvzP6Wbz+i0/0s8Ez4mRJOXN0cmbo62+M/mDYJoBS7VH6PVMe+VKQtKGSz8Mi3POGmjzUc22v39B0gEubw8KACrwjJ75/0fvJWSojJ5nUIUkVyCLyqP0i2O2YNuvZtE0yK8MLuru7vbNnz8rDe64/KvL+E9wgcYjEgPSmX7og97/ICYLmUs8yH6H+eAwxckIfJ01LGF1EWxJP3ATeOPZxc5C3654/rm/Ir/qWumyH8rvXe8Jbr5radlGHUP/7qFKmN1XTMaC6qS7fnh7/2wHVnNBLbkcxAHssPUlXqTlhAJH4Kc1sL4jISlnaAAAAAElFTkSuQmCC",wG=""+new URL("rwa-report-Bb0W5-ac.png",import.meta.url).href,CG="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAAB4CAYAAAAXIRdAAAAACXBIWXMAACE4AAAhOAFFljFgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAzzSURBVHgB7V1dbFxHFT5zdwNt+lCTJq1EItkPBKmJlCK1JW+JBTzQgkTAtUPlKAGUhzit0ki88JL4biseeCEiLQG1AqlpEaqdP/riIBFk961VHwhVUkErYUsND7FjuT9J1Nq+0zmzc8Znx/fau/buvbP2fNJm7996N/e758w538ycEVA/BP4jj/+0Ez6X+yBKHgEputWRDnW4A9YsREWcGYrBE4h6zkspAZ7pO6T2DoGEblhviBRpL/lB2iLCFDn2mBACZo/2dZcB/qzOdME6RqIsrXRmqGJ2JRSEGsI4WR8f/WHH/WLjoNp8ruYT994HcmsnyF2PAXxjB8gHNutjawmlY09nnNHuscIO5E7cIsLQqu4e7u2656twQf2cb9mTSFT39yHpfmLNEeQimzAg91iJ41ioFxKWK2nC3ZbP9nZBIv7JXaBUJCVP9Kx5oghLEoZQpMGLb1Tw4XbQcvLKZFWImYEfdCwi6ycHq1YVsIBEDsIz+3Gr4pwRGKCp+9ky4iL+lFTbLEZW/5FAVibk4PzRvkH3KN1PHg80E5H9+qO9h4AFGNqydu+FgGxEKaTpFEjzhsbWfNKihU1hv1ju3hMsq064pHELw+1mk6YJmxt46mfWFW7aogKMpyCgfiBp0rE0aseaTZomrBSJY3QArQtJC2gUNaQhWTUCBCyvKtWFCHMunm+Fdms1sO5RR4uYq+FRfDdt26oh5MD+4yCSU/rrlHqRHP4lrHcsm4ctC1GpPLjjeZNYa5hwH1Yb9keKMmtSUklNAc2AHDxx8/pJfoSCkZRkuyEgYV12T2mEAc1BWiCC1kVh/0oDkbJqv7rsH9wWCENIFXSJ6UlYPRRpz/ZBZfOO53HP5GZgtin0b8g9YpS40Pm4TrTCZdHMKFnJWINT108ODg5yYmzI3ygiCFgEuf1haCqq2uMgRotIknqn+96wGhIIS4HsfhKaD2VpKhBh3TII0aiVBcLScO/GFkXMmrQTKSfqDkICYRlIDhxpUZsu4yyVvx7SAmFZ0JpqD7QCJBhnqB9i6c8GZAJ72mULSVOByElOWj3tWSBsGWDPRaL6BlvlHnkeZgKSJVkTquPSfmD+9F8hIAMqkY5GzoF4+y1oJsSZ4Yh0RgTbTvWXZQioD9im9Q8AKIsT/363+roxAXD3NqwWlUoFGapL8QiENQpFnG7bVtEjv5regNCGeQBKpEkJAacDlCMQ5hG4ApJ1TSCsYFBYT9Ghk5vhsRoVJBBWMNAHIllGzZc8AOFdMWCsLhBWMBRZ2hUaomgMiOYlpa9MhCjRA6AlKcL0Nh8HAosnqwQLKxpoYVyS4m0ZVz0oggwW5gkUIQksuEQaOsBlK70dLKxgoIUpYOARsXGMMktTLNTCxB0l63z4PogPrwPcuQPNBo6z1DNF+XcaWQk2Vjsp3fNFwJBG79rSnLbMojDCxMh5iEZHmqLFZUFP53UJuTEO4p2x6m/A70eNcPfelnWj1AsTLYIK75ccNpC7SxS3JqH0m19p5buVZNUNo8KX4mP6t+UNIgpH41y7dk1wtoxblDyZzpUwvCHRiy+op3wCvMO0+W0FPERImMnDiEC9bZLpGovLl7DL5/WN8RZI2iu/hZwhqA3buXMnicCp4xZzzcPE22P65TswABIfXIe80Nvbm3rczcHwHQnMkbDm9tS2EhgQ5QW0KhNskHXpn8CjRL6dC2HYdunQvU2gf2tObRkGGviObRgFIICDPUzAgTvc2vIJ630MMpYB5moyp8mNPFI0s9lJ+LWJNF2bj0tUuU/b4W7zE/k0DA8PSyIMrUy1aal5GFmZN1oiJq6ygVkjOjhoZbuYk0ukCBGB7hEJNMd50CHJyrwgbCXVdtBdia1dEF04C+0MThIGIOpl+8jSrvdC/F1pTRC5BibQK7IwtNeukGmKgk9o59f74RLR/axgZK0Wj9sc3JLQutgxHXTwbheEFxYWnX8NVgJxsb3dIQJdIlmR2bbzoM0l/lkYquclFURg4cx6LU28964f4nETYIIK3JQULfJ2jMJ87DPzp8dZ6XjCZ52xRcA2jLlCe5y7Sho1hcdCj3PBSIsGnQnsNQhjOgoGSVBc7aDjLplh1JQHILWeAg4hFvow3RmaXo2a8k7pyAksWeZJs6BAxLW0oHQUDFI6yCVStIj/pLnFoHR4Ah4hmn1OVs5q/XJYYT61FpQOQlw71M2SZYIS4ZVaj0qHrovRINaC0oF5mOMOwe1t5jUWg9LhGUwPdE0Xi1E5tNUFpaNgUFiP1oVkYdSIVmeOcUtLUJoKeZgnIHeIKkdWhRwkLRBWMJg16eECPHFOgQiEFQwWDbrir50nxizOnzZsvSodBB7Wx2acopGqrN4IvkyZXe9KB76T2kH7FBnidpz7MLdlsN7HdGBkSGM6aCQwwuiJNUFIGNNRMDCs5/ohgoYJkDvk1QTCmI6CQaOmnFheUqToir9B6SgY1I1iCqzURIppyIewekjwTenIqYY/EcTG1XPrqhGB85Om2nGJkJx+MxFGI6V46aI4ZcpRLm2Y3NbVdqtOyO35LBzEQnfaX1RUhV+Xk0vcCHLXo22T6OpF73ICRYksB5NOCVk9HjFXC0O00zKNef5W0hIRbI4zL8VX0JgOrIehFA3flQldryPHJSXRwvhA0piN+E0TgXPNw1pZB74ZwN+Wtyfgaj1piPw8pWckAueeh+ENwackz4nf9aCoFeGpA9NIU7zWb21pUmNthSgdSNp8fLrauBcZParvRqvH31LkutWkIdK+rEJvkzyVb5SYBqoD3w/Vuhg4p7jJyoVOJ9xjux6HRKn8upy5RysSmpG/NW0X0xNtMOJH98r2HBdLVQmx9CiRp24VBUljOugcW5XWTjkKPc6ewNUQnQLNlrRAWMGgfjAa04HH+FoshOLbsAANp3IAWZotu8eCDqlC/rC6URHga6+IM8Nlt88Lc7GskVPBJRYMPpCU3lntxEUCcHCJnoFLU47laZcYLMwDxBm9zFyWAlOZNBBWMHje5RLHQ3pyj4GwgmEiQL6/qO3iCFFiAeBRYt8klJnaoYFRohkyIB2lI+RhRYPyMATlYSJl0VJyi8Elegpyi2hp1BcWh0o4fsBRORB8eJvk6n0grGBQQRVCnDGYFEkLYb1H4CJwzKq4uQhBR8GgPIyLwBQROgty6+FuwcI8AXeD1GaZSX220GUIOjwFd4Wxj6WL1jPi2nLn+t3tZUbQOxI2Yz+9BguVeIfaBQxm+FBtDnfUFJGngg6hCJMd+uz0FMDW9pq00G4QH43bbXX/J0zQwYOL6nW1K8/a0VRRIsHOUMhzGaZ1C7YOjbr/42g9vPxeFhZcooR/2T+Ai3kGtBbMKBIQY/FCIctU1xiztcMQ0aeJeJNOihvjINdQSTvvcOsmRO8tGMXU3BdvUpkHBCbP+B6zVSEMoXbkb9Tx8hvjytjG9CdUg6hXfg1oOnQyzObHqd2r+/87M8GnG7GFcqRDli3/EGGUMpckdg5QNDYSrKzJ0O0PzuF+Z4GwBOTvtmzZIt0lFWOnZmLMFuHWQQcy3H8relXtjusr0cpGzkFGRbGABmGDhZHzbNK9GP/e+1O21gUfMcURp1TCwVV1Srhx9gHYe08EV+hE8uMDkHQ/Wb1oiYWgA7JhcynVzJQuLtQimZfyF+U/nNNezVUyTNHmxP07i6YbHbwFYwkkp2k/uvi6XhXWqSYWUCfovuE95GQpV3j66SlhmyBX6RgaGkrcv0XjFBG4oS0MfempB+c6vg7lK0LCI3TB/L4Deu4Ul0sC0sEfbB0gjF2uIUudnfjPZ9OPPnz2ilaXzHRZO2uFSqJTrY54qTLo2JZt+/3FmU9mox7bnimULr0O0V/+CHLqpv4RSZLYpye8Ml63P4Powms1ZCmMfy43fOfk3U2WLHbvbRcLvvOyRbEzggoZjMxJzSay/MrXZrvuL3/lH+qZ6LJPx6bNMP/4HpDf3qO3XUvj+2mzL1zwa9Kud4/Rfj3XNoqVft61KAzYSsqqorcug2CaoRRw9ZPZ2Z6Oly+N436WZfE/7X4X8aPJouQND05OTgr8wzfE7GPob+kDQumM5b9fgA0vHIfyn04BqIZUfnBNP01kefRy99Ne/Jq067P+Zj3XNvpa6ef1//2j/+l7UX7p1/relNQ94mThPfw/zH13n8q5XAKo1B6V3zPHUx8Ksja8KOKyCM+80U1+caTn0IaodIJbW0BdGL89Lw//fFqM0gFKkskdklUhWUQetV8Etx3TYT0fyGjM036gu7tbjI6OyrmB/QejKHmOByQBi4Gq0ZwQZ/tvylc5Qei51L1MUtwf1xBTJ/Rx0rSF0YfoncwTvwSzcdzGL0fyLn3zoc77RPIjEcHeKIJORWCnOt0B6xMz6uZ8rNzemJwXV6fl7N8eUs0JPeSuioFwx9KTdS01JwxBJH4JoOdEKaNKcdAAAAAASUVORK5CYII=",d6={[hv]:vG,[zh]:CG,[pv]:wG},bv="WRITE",fo="READ",yv="UI_NODE",Dc="DUPLICATE",Fc="RENAME",Bc="DELETE",xG="SETTINGS",SG="REMOVE_TRIGGER",EG="ADD_TRIGGER",AG="ADD_INVALID_TRIGGER",OG=[Fc,Bc,Dc],kG=[Fc,Bc,Dc],_G=[{value:mv,icon:p(ue,{name:"Lock"}),description:"Only available to you"},{value:gv,icon:p(ue,{name:"People"}),description:"Only available to people in this drive"},{value:_1,icon:p(ue,{name:"Globe"}),description:"Available to everyone",disabled:!0}],IG={CLOUD:{title:"Secure cloud",description:"End to end encryption between members.",icon:p(ue,{name:"Lock"})},LOCAL:{title:"Local",description:"Private and only available to you.",icon:p(ue,{name:"Hdd"})},SWITCHBOARD:{title:"Switchboard",description:"Public and available to everyone.",icon:p(ue,{name:"Drive"})}},PG={[EG]:{label:"Add Trigger",icon:p(ue,{className:"text-orange-900",name:"Plus"})},[SG]:{label:"Remove Trigger",icon:p(ue,{className:"text-orange-900",name:"Xmark"})},[AG]:{label:"Add Trigger",icon:p(ue,{className:"text-orange-900",name:"Exclamation"})}},MG={[Dc]:{label:"Duplicate",icon:p(ue,{name:"FilesEarmark"})},[Fc]:{label:"Rename",icon:p(ue,{name:"Pencil"})},[Bc]:{label:"Delete",icon:p(ue,{name:"Trash"}),className:"text-red-900"},[xG]:{label:"Settings",icon:p(ue,{name:"Gear"})}},vv={...PG,...MG},f6="SYNCING",h6="SUCCESS",p6="CONFLICT",m6="MISSING",g6="ERROR",b6="INITIAL_SYNC",RG={gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},TG={block:TL({format(e){var n;return{transactions:(n=e.transactions)==null?void 0:n.map(r=>{if(typeof r=="string")return r;const o=l1(r);return o.typeHex==="0x7e"&&(o.isSystemTx=r.isSystemTx,o.mint=r.mint?Bt(r.mint):void 0,o.sourceHash=r.sourceHash,o.type="deposit"),o}),stateRoot:e.stateRoot}}}),transaction:ML({format(e){const t={};return e.type==="0x7e"&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?Bt(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:RB({format(e){return{l1GasPrice:e.l1GasPrice?Bt(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?Bt(e.l1GasUsed):null,l1Fee:e.l1Fee?Bt(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null}}})};function NG(e,t){return FG(e)?DG(e):TV(e,t)}const LG={transaction:NG};function DG(e){BG(e);const{sourceHash:t,data:n,from:r,gas:o,isSystemTx:s,mint:i,to:a,value:c}=e,l=[t,r,a??"0x",i?Xt(i):"0x",c?Xt(c):"0x",o?Xt(o):"0x",s?"0x1":"0x",n??"0x"];return zn(["0x7e",vo(l)])}function FG(e){return e.type==="deposit"||typeof e.sourceHash<"u"}function BG(e){const{from:t,to:n}=e;if(t&&!At(t))throw new jt({address:t});if(n&&!At(n))throw new jt({address:n})}const Au={blockTime:2e3,contracts:RG,formatters:TG,serializers:LG},hJ=_i({id:42161,name:"Arbitrum One",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://arbiscan.io",apiUrl:"https://api.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}}),Qi=1,pJ=_i({...Au,id:8453,name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://basescan.org",apiUrl:"https://api.basescan.org/api"}},contracts:{...Au.contracts,disputeGameFactory:{[Qi]:{address:"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"}},l2OutputOracle:{[Qi]:{address:"0x56315b90c40730925ec5485cf004d835058518A0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022},portal:{[Qi]:{address:"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",blockCreated:17482143}},l1StandardBridge:{[Qi]:{address:"0x3154Cf16ccdb4C6d922629664174b904d80F2C35",blockCreated:17482143}}},sourceId:Qi}),mJ=_i({id:5,name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://5.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.etherscan.io",apiUrl:"https://api-goerli.etherscan.io/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xfc4AC75C46C914aF5892d6d3eFFcebD7917293F1",blockCreated:10339206},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0}),y6=_i({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://eth.merkle.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xce01f8eee7E479C928F8919abD53E553a36CeF67",blockCreated:19258213},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),ea=1,gJ=_i({...Au,id:10,name:"OP Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.optimism.io"]}},blockExplorers:{default:{name:"Optimism Explorer",url:"https://optimistic.etherscan.io",apiUrl:"https://api-optimistic.etherscan.io/api"}},contracts:{...Au.contracts,disputeGameFactory:{[ea]:{address:"0xe5965Ab5962eDc7477C8520243A95517CD252fA9"}},l2OutputOracle:{[ea]:{address:"0xdfe97868233d1aa22e815a266982f2cf17685a27"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263},portal:{[ea]:{address:"0xbEb5Fc579115071764c7423A4f12eDde41f106Ed"}},l1StandardBridge:{[ea]:{address:"0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1"}}},sourceId:ea}),bJ=_i({id:11155111,name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.drpc.org"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc8Af999e38273D658BE1b921b88A9Ddf005769cC",blockCreated:5317080}},testnet:!0}),VG=pH({chains:[y6],transports:{[y6.id]:Bz()}}),zG=new FH;function yJ(e){const{children:t,wagmiProviderProps:n,queryClientProviderProps:r}=e,{config:o=VG,...s}=n??{},{client:i=zG,...a}=r??{};return p(bH,{config:o,...s,children:p(qH,{client:i,...a,children:t})})}function wv(e){const{node:t}=e,[n,r]=we(!1),o=Te(i=>{i.dataTransfer.setData(yv,JSON.stringify(t))},[t]),s=Te(()=>{r(!1)},[]);return bt(()=>({isDragging:n,dragProps:{draggable:!0,onDragStart:o,onDragEnd:s}}),[n,s,o])}function HG(e){const{node:t,onAddFile:n,onCopyNode:r,onMoveNode:o}=e,[s,i]=we(!1),a=Te(u=>{u.preventDefault(),i(!0)},[]),c=Te(()=>{i(!1)},[]),l=Te(async u=>{u.preventDefault(),u.stopPropagation();try{const d=jG(u.dataTransfer.items).filter(Boolean);if(d.length){for(const m of d)m&&await n(m,t);return}const f=u.getModifierState("Alt"),h=u.dataTransfer.getData(yv),g=JSON.parse(h);f?await r(g,t):await o(g,t)}catch(d){console.error(d)}finally{i(!1)}},[n,r,o,parent]);return bt(()=>({isDropTarget:s,dropProps:{onDragOver:a,onDragLeave:c,onDrop:l}}),[s,c,a,l])}function jG(e){return Array.from(e).map(n=>n.kind==="file"?n.getAsFile():null).filter(Boolean)}function $G(e){return`${e.slice(0,7)}...${e.slice(-5)}`}function UG(e,t){return t||(yG.includes(e)?d6[e]:d6[zh])}const ZG={},WG=Object.freeze(Object.defineProperty({__proto__:null,default:ZG},Symbol.toStringTag,{value:"Module"})),vJ=eI(WG);export{qH as $,yP as A,tJ as B,cJ as C,sr as D,hr as E,Xq as F,Qq as G,Pq as H,U$ as I,xu as J,ey as K,mv as L,G$ as M,Kq as N,Zy as O,_1 as P,bl as Q,rJ as R,dJ as S,sJ as T,$q as U,oq as V,g6 as W,h6 as X,p6 as Y,vJ as Z,O0 as _,gv as a,Xa as a$,FH as a0,lb as a1,Oq as a2,aj as a3,yJ as a4,fJ as a5,uq as a6,eI as a7,rg as a8,ng as a9,fq as aA,iJ as aB,yj as aC,Iq as aD,qW as aE,lJ as aF,cq as aG,Dq as aH,Yq as aI,Nq as aJ,Mq as aK,Rq as aL,Tq as aM,Fq as aN,Hq as aO,Wq as aP,Gq as aQ,qq as aR,Jq as aS,wb as aT,Lq as aU,Vr as aV,lq as aW,Pc as aX,Le as aY,Bq as aZ,kn as a_,Eq as aa,y6 as ab,bJ as ac,mJ as ad,hJ as ae,pJ as af,gJ as ag,Bz as ah,sW as ai,iW as aj,aW as ak,yn as al,tq as am,OW as an,kq as ao,Kt as ap,HG as aq,he as ar,_q as as,aJ as at,ue as au,aq as av,iq as aw,dq as ax,dU as ay,fU as az,Vq as b,Sh as b0,Gj as b1,zq as b2,H9 as b3,ge as b4,rt as b5,z_ as b6,Zq as b7,jq as b8,gc as b9,IZ as bA,uZ as bB,mZ as bC,fZ as bD,WG as bE,Ze as ba,Vv as bb,rq as bc,i2 as bd,Tv as be,l2 as bf,Uq as bg,KW as bh,XW as bi,QW as bj,eG as bk,qU as bl,JU as bm,KU as bn,YU as bo,XU as bp,QU as bq,MZ as br,RZ as bs,sZ as bt,iZ as bu,cZ as bv,CZ as bw,xZ as bx,EZ as by,AZ as bz,Eb as c,Pi as d,Rc as e,Kb as f,xi as g,Wy as h,C0 as i,JZ as j,qZ as k,Mc as l,GZ as m,Qb as n,Ne as o,rI as p,vU as q,Xb as r,de as s,De as t,nJ as u,lo as v,U9 as w,$U as x,oJ as y,eJ as z};
333
- //# sourceMappingURL=index.CW6hXWch.js.map