alinea 1.7.0 → 2.0.0-preview.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1383) hide show
  1. package/dist/.init/content/pages/welcome.json +1 -1
  2. package/dist/.init/src/app/(alinea)/api/cms/route.ts +8 -8
  3. package/dist/.init/src/cms.ts +45 -47
  4. package/dist/LICENSES.md +208 -560
  5. package/dist/adapter/core/cms.js +1 -1
  6. package/dist/adapter/core/handler.js +1 -1
  7. package/dist/adapter/core/preview.js +2 -2
  8. package/dist/adapter/core/previewContext.d.ts +1 -1
  9. package/dist/adapter/core/previewContext.js +1 -1
  10. package/dist/adapter/next/cms.d.ts +1 -1
  11. package/dist/adapter/next/cms.js +7 -7
  12. package/dist/adapter/next/context.js +1 -1
  13. package/dist/adapter/next/handler.d.ts +2 -4
  14. package/dist/adapter/next/handler.js +11 -5
  15. package/dist/adapter/next/previews.d.ts +2 -2
  16. package/dist/adapter/next/previews.js +13 -17
  17. package/dist/adapter/next/with-alinea.js +20 -10
  18. package/dist/adapter/vite/plugin.d.ts +2 -0
  19. package/dist/adapter/vite/plugin.js +66 -0
  20. package/dist/backend/Auth.js +1 -1
  21. package/dist/backend/HandleAction.d.ts +1 -0
  22. package/dist/backend/HandleAction.js +2 -1
  23. package/dist/backend/Handler.js +125 -17
  24. package/dist/backend/Previews.d.ts +2 -5
  25. package/dist/backend/api/BasicAuth.d.ts +2 -2
  26. package/dist/backend/api/BasicAuth.js +5 -3
  27. package/dist/backend/api/CreateBackend.d.ts +11 -2
  28. package/dist/backend/api/CreateBackend.js +45 -2502
  29. package/dist/backend/api/DatabaseApi.d.ts +8 -2
  30. package/dist/backend/api/DatabaseApi.js +252 -123
  31. package/dist/backend/api/GithubApi.d.ts +0 -4
  32. package/dist/backend/api/GithubApi.js +11 -7
  33. package/dist/backend/api/OAuth2.d.ts +3 -3
  34. package/dist/backend/api/OAuth2.js +36 -25
  35. package/dist/backend/api/S3Uploads.d.ts +32 -0
  36. package/dist/backend/api/S3Uploads.js +178 -0
  37. package/dist/backend/api/SupabaseUploads.d.ts +28 -0
  38. package/dist/backend/api/SupabaseUploads.js +41 -0
  39. package/dist/backend/api/UploadPaths.d.ts +7 -0
  40. package/dist/backend/api/UploadPaths.js +53 -0
  41. package/dist/backend/api/auth.d.ts +5 -0
  42. package/dist/backend/api/auth.js +15 -0
  43. package/dist/backend/api/database.d.ts +2 -0
  44. package/dist/backend/api/database.js +16 -0
  45. package/dist/backend/api/github.d.ts +3 -0
  46. package/dist/backend/api/github.js +10 -0
  47. package/dist/backend/api/uploads.d.ts +9 -0
  48. package/dist/backend/api/uploads.js +23 -0
  49. package/dist/backend/loader/JsonLoader.js +1 -1
  50. package/dist/backend/resolver/ParsePreview.js +2 -2
  51. package/dist/backend/router/NodeHandler.js +1 -1
  52. package/dist/backend/router/Router.js +32 -6
  53. package/dist/backend/store/GeneratedRelease.js +1 -1
  54. package/dist/backend/store/GeneratedSource.js +1 -1
  55. package/dist/backend/util/ExecGit.js +4 -4
  56. package/dist/backend/util/JWTPreviews.d.ts +3 -3
  57. package/dist/backend/util/JWTPreviews.js +19 -5
  58. package/dist/backend/util/JsonPatch.js +1 -1
  59. package/dist/backend/util/ORM.js +2 -2
  60. package/dist/backend/util/Syncable.js +2 -2
  61. package/dist/backend.d.ts +5 -0
  62. package/dist/backend.js +17 -0
  63. package/dist/bundled.d.ts +8233 -8178
  64. package/dist/chunks/chunk-53DZYORR.js +3705 -0
  65. package/dist/chunks/chunk-7ORQ7BYK.js +1187 -0
  66. package/dist/chunks/chunk-AC4U3IMS.js +205 -0
  67. package/dist/chunks/chunk-BYJRQTFR.js +57 -0
  68. package/dist/chunks/chunk-CQ52GEHY.js +39 -0
  69. package/dist/chunks/chunk-EQ3TDHYD.js +79 -0
  70. package/dist/chunks/chunk-F36YGSHN.js +335 -0
  71. package/dist/chunks/chunk-G6E35DMJ.js +1997 -0
  72. package/dist/chunks/chunk-I4GC3E65.js +170 -0
  73. package/dist/chunks/chunk-I4OYYAX5.js +63 -0
  74. package/dist/chunks/chunk-I7X64JTZ.js +10402 -0
  75. package/dist/chunks/chunk-IWN3T3FL.js +19493 -0
  76. package/dist/chunks/chunk-IYAQC63Y.js +1265 -0
  77. package/dist/chunks/chunk-JFROOUG6.js +6363 -0
  78. package/dist/chunks/chunk-LB3UYTOL.js +95 -0
  79. package/dist/chunks/chunk-LUBOGJCG.js +129 -0
  80. package/dist/chunks/chunk-NWQXN4SB.js +227 -0
  81. package/dist/chunks/chunk-RKDPDEF7.js +160 -0
  82. package/dist/chunks/chunk-SJBZFMQ2.js +2966 -0
  83. package/dist/chunks/chunk-STAJCW4Z.js +322 -0
  84. package/dist/chunks/chunk-TL7ZW6BX.js +17963 -0
  85. package/dist/chunks/chunk-U4VOHNR2.js +210 -0
  86. package/dist/chunks/chunk-U5Z2VE7Z.js +120 -0
  87. package/dist/chunks/chunk-X47OVDF3.js +1974 -0
  88. package/dist/chunks/chunk-Y7XOMJOC.js +791 -0
  89. package/dist/chunks/chunk-YK3OSMDM.js +5473 -0
  90. package/dist/chunks/crypto-UO2XRCJS.js +11 -0
  91. package/dist/cli/Generate.js +9 -4
  92. package/dist/cli/Init.js +1 -1
  93. package/dist/cli/Serve.d.ts +2 -2
  94. package/dist/cli/Serve.js +54 -100
  95. package/dist/cli/bin.js +85 -12
  96. package/dist/cli/build/BuildEmitter.js +1 -1
  97. package/dist/cli/build/BuildOptions.js +1 -1
  98. package/dist/cli/generate/CompileConfig.d.ts +1 -1
  99. package/dist/cli/generate/CompileConfig.js +1 -1
  100. package/dist/cli/generate/CopyStaticFiles.js +2 -1
  101. package/dist/cli/generate/DevDB.js +2 -8
  102. package/dist/cli/generate/FillCache.js +2 -2
  103. package/dist/cli/generate/GenerateDashboard.js +1 -1
  104. package/dist/cli/generate/LoadConfig.js +2 -3
  105. package/dist/cli/serve/CreateLocalServer.d.ts +1 -1
  106. package/dist/cli/serve/CreateLocalServer.js +81 -26
  107. package/dist/cli/serve/DevServer.d.ts +19 -0
  108. package/dist/cli/serve/DevServer.js +134 -0
  109. package/dist/cli/serve/GitHistory.d.ts +1 -2
  110. package/dist/cli/serve/GitHistory.js +15 -2
  111. package/dist/cli/serve/LiveReload.js +1 -1
  112. package/dist/cli/serve/LocalAuth.js +1 -1
  113. package/dist/cli/serve/MemoryDrafts.js +1 -1
  114. package/dist/cli/serve/StartServer.js +1 -1
  115. package/dist/cli/static/init/cms.js +45 -47
  116. package/dist/cli/static/init/next-handler.js +8 -8
  117. package/dist/cli/util/CommitMessage.js +1 -1
  118. package/dist/cli/util/CommitSha.js +1 -1
  119. package/dist/cli/util/Dirname.js +1 -1
  120. package/dist/cli/util/Emitter.js +1 -1
  121. package/dist/cli/util/EnsureEnv.js +1 -1
  122. package/dist/cli/util/EnsureLibs.js +1 -1
  123. package/dist/cli/util/EnsureNode.js +1 -1
  124. package/dist/cli/util/ExternalPlugin.js +595 -486
  125. package/dist/cli/util/FS.js +1 -1
  126. package/dist/cli/util/FindConfigFile.js +1 -1
  127. package/dist/cli/util/ForwardCommand.js +1 -1
  128. package/dist/cli/util/IgnorePlugin.js +1 -1
  129. package/dist/cli/util/PublicDefines.js +1 -1
  130. package/dist/cli/util/Report.js +1 -1
  131. package/dist/cli/util/ViewsPlugin.js +2 -2
  132. package/dist/cli/util/WarnPublicEnv.js +1 -1
  133. package/dist/cli/util/Watcher.js +1 -1
  134. package/dist/cloud/AuthResult.js +1 -1
  135. package/dist/cloud/CloudConfig.d.ts +1 -0
  136. package/dist/cloud/CloudConfig.js +2 -1
  137. package/dist/cloud/CloudRemote.d.ts +10 -4
  138. package/dist/cloud/CloudRemote.js +56 -9
  139. package/dist/components/Breadcrumbs.d.ts +3 -0
  140. package/dist/components/Breadcrumbs.js +42 -0
  141. package/dist/components/Button.d.ts +10 -0
  142. package/dist/components/Button.js +57 -0
  143. package/dist/components/Calendar.d.ts +3 -0
  144. package/dist/components/Calendar.js +94 -0
  145. package/dist/components/Checkbox.d.ts +9 -0
  146. package/dist/components/Checkbox.js +75 -0
  147. package/dist/components/CheckboxGroup.d.ts +6 -0
  148. package/dist/components/CheckboxGroup.js +45 -0
  149. package/dist/components/ColorSwatch.d.ts +2 -0
  150. package/dist/components/ColorSwatch.js +45 -0
  151. package/dist/components/ColorSwatchPicker.d.ts +3 -0
  152. package/dist/components/ColorSwatchPicker.js +66 -0
  153. package/dist/components/ComboBox.d.ts +13 -0
  154. package/dist/components/ComboBox.js +147 -0
  155. package/dist/components/DateField.d.ts +5 -0
  156. package/dist/components/DateField.js +61 -0
  157. package/dist/components/DatePicker.d.ts +5 -0
  158. package/dist/components/DatePicker.js +78 -0
  159. package/dist/components/DateRangePicker.d.ts +5 -0
  160. package/dist/components/DateRangePicker.js +95 -0
  161. package/dist/components/Dialog.d.ts +3 -0
  162. package/dist/components/Dialog.js +43 -0
  163. package/dist/components/Disclosure.d.ts +5 -0
  164. package/dist/components/Disclosure.js +106 -0
  165. package/dist/components/DropZone.d.ts +4 -0
  166. package/dist/components/DropZone.js +41 -0
  167. package/dist/components/FoldIcon.d.ts +6 -0
  168. package/dist/components/FoldIcon.js +31 -0
  169. package/dist/components/Icon.d.ts +7 -0
  170. package/dist/components/Icon.js +40 -0
  171. package/dist/components/Label.d.ts +48 -0
  172. package/dist/components/Label.js +210 -0
  173. package/dist/components/Link.d.ts +5 -0
  174. package/dist/components/Link.js +42 -0
  175. package/dist/components/List.d.ts +99 -0
  176. package/dist/components/List.js +397 -0
  177. package/dist/components/Menu.d.ts +16 -0
  178. package/dist/components/Menu.js +95 -0
  179. package/dist/components/Modal.d.ts +7 -0
  180. package/dist/components/Modal.js +58 -0
  181. package/dist/components/MultipleSelect.d.ts +25 -0
  182. package/dist/components/MultipleSelect.js +278 -0
  183. package/dist/components/NumberField.d.ts +6 -0
  184. package/dist/components/NumberField.js +90 -0
  185. package/dist/components/Popover.d.ts +6 -0
  186. package/dist/components/Popover.js +42 -0
  187. package/dist/components/ProgressCircle.d.ts +6 -0
  188. package/dist/components/ProgressCircle.js +96 -0
  189. package/dist/components/RadioGroup.d.ts +8 -0
  190. package/dist/components/RadioGroup.js +64 -0
  191. package/dist/components/SearchField.d.ts +8 -0
  192. package/dist/components/SearchField.js +86 -0
  193. package/dist/components/Select.d.ts +13 -0
  194. package/dist/components/Select.js +150 -0
  195. package/dist/components/Surface.d.ts +15 -0
  196. package/dist/components/Surface.js +53 -0
  197. package/dist/components/Switch.d.ts +5 -0
  198. package/dist/components/Switch.js +47 -0
  199. package/dist/components/Table.d.ts +14 -0
  200. package/dist/components/Table.js +147 -0
  201. package/dist/components/Tabs.d.ts +13 -0
  202. package/dist/components/Tabs.js +96 -0
  203. package/dist/components/TagGroup.d.ts +10 -0
  204. package/dist/components/TagGroup.js +81 -0
  205. package/dist/components/TextField.d.ts +13 -0
  206. package/dist/components/TextField.js +77 -0
  207. package/dist/components/TimeField.d.ts +5 -0
  208. package/dist/components/TimeField.js +55 -0
  209. package/dist/components/Toggle.d.ts +8 -0
  210. package/dist/components/Toggle.js +61 -0
  211. package/dist/components/Toolbar.d.ts +8 -0
  212. package/dist/components/Toolbar.js +80 -0
  213. package/dist/components/Tooltip.d.ts +7 -0
  214. package/dist/components/Tooltip.js +54 -0
  215. package/dist/components/Tree.d.ts +23 -0
  216. package/dist/components/Tree.js +130 -0
  217. package/dist/components.d.ts +38 -0
  218. package/dist/components.js +39 -0
  219. package/dist/config.js +1 -1
  220. package/dist/core/CMS.js +1 -1
  221. package/dist/core/Client.d.ts +11 -7
  222. package/dist/core/Client.js +53 -10
  223. package/dist/core/Config.d.ts +2 -0
  224. package/dist/core/Config.js +1 -3
  225. package/dist/core/Connection.d.ts +28 -9
  226. package/dist/core/Document.js +10 -8
  227. package/dist/core/Draft.js +1 -1
  228. package/dist/core/Entry.d.ts +6 -0
  229. package/dist/core/Entry.js +16 -1
  230. package/dist/core/EntryFields.d.ts +4 -0
  231. package/dist/core/EntryFields.js +4 -2
  232. package/dist/core/EntryRecord.js +1 -1
  233. package/dist/core/Expr.d.ts +1 -0
  234. package/dist/core/Expr.js +1 -1
  235. package/dist/core/Field.d.ts +46 -5
  236. package/dist/core/Field.js +56 -10
  237. package/dist/core/Graph.d.ts +6 -0
  238. package/dist/core/Graph.js +1 -1
  239. package/dist/core/HttpError.js +1 -1
  240. package/dist/core/Id.js +1 -1
  241. package/dist/core/Infer.d.ts +1 -1
  242. package/dist/core/Internal.js +6 -6
  243. package/dist/core/ListRow.d.ts +10 -0
  244. package/dist/core/ListRow.js +12 -0
  245. package/dist/core/Outcome.js +1 -1
  246. package/dist/core/Page.js +2 -2
  247. package/dist/core/Picker.d.ts +0 -2
  248. package/dist/core/Picker.js +1 -1
  249. package/dist/core/Reference.js +1 -1
  250. package/dist/core/Role.d.ts +3 -0
  251. package/dist/core/Role.js +7 -1
  252. package/dist/core/Root.d.ts +4 -0
  253. package/dist/core/Root.js +7 -2
  254. package/dist/core/Schema.d.ts +0 -2
  255. package/dist/core/Schema.js +2 -16
  256. package/dist/core/Scope.js +1 -1
  257. package/dist/core/Section.js +2 -2
  258. package/dist/core/TextDoc.d.ts +4 -0
  259. package/dist/core/TextDoc.js +3 -1
  260. package/dist/core/Tracker.d.ts +1 -6
  261. package/dist/core/Tracker.js +2 -12
  262. package/dist/core/Trigger.js +1 -1
  263. package/dist/core/Type.d.ts +15 -6
  264. package/dist/core/Type.js +108 -28
  265. package/dist/core/UnionRow.d.ts +11 -0
  266. package/dist/core/UnionRow.js +11 -0
  267. package/dist/core/User.d.ts +7 -1
  268. package/dist/core/User.js +1 -1
  269. package/dist/core/View.js +1 -1
  270. package/dist/core/Workspace.d.ts +4 -1
  271. package/dist/core/Workspace.js +1 -1
  272. package/dist/core/db/CommitRequest.d.ts +2 -0
  273. package/dist/core/db/CommitRequest.js +1 -1
  274. package/dist/core/db/EntryAliases.d.ts +2 -0
  275. package/dist/core/db/EntryAliases.js +28 -0
  276. package/dist/core/db/EntryDB.d.ts +2 -2
  277. package/dist/core/db/EntryDB.js +3 -3
  278. package/dist/core/db/EntryIndex.d.ts +7 -0
  279. package/dist/core/db/EntryIndex.js +168 -26
  280. package/dist/core/db/EntryReference.d.ts +44 -0
  281. package/dist/core/db/EntryReference.js +9 -0
  282. package/dist/core/db/EntryReferenceIndex.d.ts +21 -0
  283. package/dist/core/db/EntryReferenceIndex.js +131 -0
  284. package/dist/core/db/EntryResolver.d.ts +10 -7
  285. package/dist/core/db/EntryResolver.js +90 -35
  286. package/dist/core/db/EntryTransaction.d.ts +1 -1
  287. package/dist/core/db/EntryTransaction.js +395 -57
  288. package/dist/core/db/EntryUrlConflictError.d.ts +11 -0
  289. package/dist/core/db/EntryUrlConflictError.js +16 -0
  290. package/dist/core/db/IndexEvent.d.ts +5 -2
  291. package/dist/core/db/IndexEvent.js +2 -1
  292. package/dist/core/db/LinkResolver.d.ts +1 -1
  293. package/dist/core/db/LinkResolver.js +4 -1
  294. package/dist/core/db/LocalDB.d.ts +4 -2
  295. package/dist/core/db/LocalDB.js +8 -6
  296. package/dist/core/db/Mutation.d.ts +3 -3
  297. package/dist/core/db/Operation.d.ts +8 -3
  298. package/dist/core/db/Operation.js +67 -23
  299. package/dist/core/db/TestDB.d.ts +9 -1
  300. package/dist/core/db/TestDB.js +24 -1
  301. package/dist/core/db/WriteableGraph.d.ts +15 -4
  302. package/dist/core/db/WriteableGraph.js +14 -2
  303. package/dist/core/field/CreateField.d.ts +5 -4
  304. package/dist/core/field/CreateField.js +9 -5
  305. package/dist/core/field/ListField.d.ts +13 -4
  306. package/dist/core/field/ListField.js +146 -13
  307. package/dist/core/field/RecordField.d.ts +5 -3
  308. package/dist/core/field/RecordField.js +58 -2
  309. package/dist/core/field/RichTextField.d.ts +7 -2
  310. package/dist/core/field/RichTextField.js +325 -10
  311. package/dist/core/field/ScalarField.js +9 -7
  312. package/dist/core/field/UnionField.d.ts +2 -3
  313. package/dist/core/field/UnionField.js +61 -12
  314. package/dist/core/media/CreatePreview.browser.js +5 -5
  315. package/dist/core/media/CreatePreview.js +15 -10
  316. package/dist/core/media/IsImage.js +1 -1
  317. package/dist/core/media/MediaAltField.d.ts +9 -0
  318. package/dist/core/media/MediaAltField.js +17 -0
  319. package/dist/core/media/MediaLocation.d.ts +39 -0
  320. package/dist/core/media/MediaLocation.js +55 -2
  321. package/dist/core/media/MediaRoot.d.ts +2 -2
  322. package/dist/core/media/MediaRoot.js +12 -11
  323. package/dist/core/media/MediaTypes.d.ts +21 -15
  324. package/dist/core/media/MediaTypes.js +33 -16
  325. package/dist/core/media/Summary.d.ts +8 -8
  326. package/dist/core/media/Summary.js +1 -1
  327. package/dist/core/media/UploadLimits.d.ts +1 -0
  328. package/dist/core/media/UploadLimits.js +20 -0
  329. package/dist/core/pages/Snippet.js +1 -1
  330. package/dist/core/shape/ListShape.d.ts +1 -47
  331. package/dist/core/shape/ListShape.js +1 -224
  332. package/dist/core/source/CombinedSource.js +1 -1
  333. package/dist/core/source/FSSource.d.ts +3 -2
  334. package/dist/core/source/FSSource.js +25 -12
  335. package/dist/core/source/FilePatch.js +5 -2
  336. package/dist/core/source/GitDelta.js +1 -1
  337. package/dist/core/source/GitUtils.js +1 -1
  338. package/dist/core/source/GithubSource.d.ts +1 -0
  339. package/dist/core/source/GithubSource.js +17 -4
  340. package/dist/core/source/IndexedDBSource.js +23 -11
  341. package/dist/core/source/MemorySource.js +1 -1
  342. package/dist/core/source/ShaMismatchError.js +3 -1
  343. package/dist/core/source/Source.js +1 -1
  344. package/dist/core/source/SourceExport.js +3 -3
  345. package/dist/core/source/Tree.js +1 -1
  346. package/dist/core/source/Utils.js +2 -5
  347. package/dist/core/util/Anchors.d.ts +4 -0
  348. package/dist/core/util/Anchors.js +45 -0
  349. package/dist/core/util/ArrayBuffers.js +1 -1
  350. package/dist/core/util/Assert.js +1 -1
  351. package/dist/core/util/Async.js +1 -1
  352. package/dist/core/util/BufferToBase64.js +1 -1
  353. package/dist/core/util/Callable.js +1 -1
  354. package/dist/core/util/Checks.js +2 -2
  355. package/dist/core/util/CodeGen.js +3 -1
  356. package/dist/core/util/ContentHash.js +1 -1
  357. package/dist/core/util/Debounce.js +1 -1
  358. package/dist/core/util/DeepMap.d.ts +14 -0
  359. package/dist/core/util/DeepMap.js +75 -0
  360. package/dist/core/util/Encoding.js +1 -1
  361. package/dist/core/util/EntryFilenames.d.ts +0 -1
  362. package/dist/core/util/EntryFilenames.js +2 -6
  363. package/dist/core/util/EntryRows.js +1 -1
  364. package/dist/core/util/FractionalIndexing.js +1 -1
  365. package/dist/core/util/GetRandomColor.js +20 -20
  366. package/dist/core/util/Identifiers.js +1 -1
  367. package/dist/core/util/JWT.js +1 -1
  368. package/dist/core/util/Lazy.js +1 -1
  369. package/dist/core/util/LazyRecord.js +1 -1
  370. package/dist/core/util/Logger.js +2 -1
  371. package/dist/core/util/Objects.d.ts +1 -0
  372. package/dist/core/util/Objects.js +5 -1
  373. package/dist/core/util/Paths.js +2 -2
  374. package/dist/core/util/RowId.js +1 -1
  375. package/dist/core/util/Slugs.js +1 -1
  376. package/dist/core/util/Timer.js +1 -1
  377. package/dist/core/util/Types.js +1 -1
  378. package/dist/core/util/Urls.js +1 -1
  379. package/dist/core.d.ts +1 -0
  380. package/dist/core.js +2 -1
  381. package/dist/dashboard/App.css +319 -0
  382. package/dist/dashboard/App.d.ts +8 -8
  383. package/dist/dashboard/App.js +188 -142
  384. package/dist/dashboard/StoryProvider.d.ts +12 -0
  385. package/dist/dashboard/StoryProvider.js +82 -0
  386. package/dist/dashboard/ViewKeys.d.ts +26 -0
  387. package/dist/dashboard/ViewKeys.js +32 -0
  388. package/dist/dashboard/app/AccessDenied.d.ts +5 -0
  389. package/dist/dashboard/app/AccessDenied.js +53 -0
  390. package/dist/dashboard/app/ActivityStatus.d.ts +10 -0
  391. package/dist/dashboard/app/ActivityStatus.js +459 -0
  392. package/dist/dashboard/app/AlineaLogo.d.ts +4 -0
  393. package/dist/dashboard/app/AlineaLogo.js +26 -0
  394. package/dist/dashboard/app/AppShell.d.ts +4 -0
  395. package/dist/dashboard/app/AppShell.js +29 -0
  396. package/dist/dashboard/app/AuthView.d.ts +8 -0
  397. package/dist/dashboard/app/AuthView.js +111 -0
  398. package/dist/dashboard/app/Badge.d.ts +8 -0
  399. package/dist/dashboard/app/Badge.js +42 -0
  400. package/dist/dashboard/app/CompactField.d.ts +14 -0
  401. package/dist/dashboard/app/CompactField.js +178 -0
  402. package/dist/dashboard/app/DashboardErrorBoundary.d.ts +2 -0
  403. package/dist/dashboard/app/DashboardErrorBoundary.js +122 -0
  404. package/dist/dashboard/app/DashboardLayout.d.ts +18 -0
  405. package/dist/dashboard/app/DashboardLayout.js +88 -0
  406. package/dist/dashboard/app/DashboardMeta.d.ts +7 -0
  407. package/dist/dashboard/app/DashboardMeta.js +28 -0
  408. package/dist/dashboard/app/EditorBackButton.d.ts +5 -0
  409. package/dist/dashboard/app/EditorBackButton.js +33 -0
  410. package/dist/dashboard/app/EntryFields.d.ts +21 -0
  411. package/dist/dashboard/app/EntryFields.js +101 -0
  412. package/dist/dashboard/app/EntryHeader.d.ts +15 -0
  413. package/dist/dashboard/app/EntryHeader.js +452 -0
  414. package/dist/dashboard/app/EntryHeaderActions.d.ts +37 -0
  415. package/dist/dashboard/app/EntryHeaderActions.js +71 -0
  416. package/dist/dashboard/app/EntryReferences.d.ts +6 -0
  417. package/dist/dashboard/app/EntryReferences.js +209 -0
  418. package/dist/dashboard/app/EntrySidebar.d.ts +25 -0
  419. package/dist/dashboard/app/EntrySidebar.js +378 -0
  420. package/dist/dashboard/app/EntrySidebarPreview.d.ts +10 -0
  421. package/dist/dashboard/app/EntrySidebarPreview.js +260 -0
  422. package/dist/dashboard/app/EntrySidebarPreview.story.d.ts +1 -0
  423. package/dist/dashboard/app/EntrySidebarToggle.d.ts +6 -0
  424. package/dist/dashboard/app/EntrySidebarToggle.js +29 -0
  425. package/dist/dashboard/app/EntryTranslationBanner.d.ts +7 -0
  426. package/dist/dashboard/app/EntryTranslationBanner.js +60 -0
  427. package/dist/dashboard/app/Explorer.d.ts +41 -0
  428. package/dist/dashboard/app/Explorer.js +804 -0
  429. package/dist/dashboard/app/ExplorerCards.d.ts +12 -0
  430. package/dist/dashboard/app/ExplorerCards.js +389 -0
  431. package/dist/dashboard/app/ExplorerFileCard.d.ts +10 -0
  432. package/dist/dashboard/app/ExplorerFileCard.js +115 -0
  433. package/dist/dashboard/app/ExplorerList.d.ts +9 -0
  434. package/dist/dashboard/app/ExplorerList.js +165 -0
  435. package/dist/dashboard/app/ExplorerModal.d.ts +16 -0
  436. package/dist/dashboard/app/ExplorerModal.js +89 -0
  437. package/dist/dashboard/app/ExplorerPickerContent.d.ts +13 -0
  438. package/dist/dashboard/app/ExplorerPickerContent.js +114 -0
  439. package/dist/dashboard/app/ExplorerTable.d.ts +14 -0
  440. package/dist/dashboard/app/ExplorerTable.js +497 -0
  441. package/dist/dashboard/app/ExternalLinkPicker.d.ts +12 -0
  442. package/dist/dashboard/app/ExternalLinkPicker.js +97 -0
  443. package/dist/dashboard/app/ImagePicker.d.ts +6 -0
  444. package/dist/dashboard/app/ImagePicker.js +145 -0
  445. package/dist/dashboard/app/LinkPicker.d.ts +9 -0
  446. package/dist/dashboard/app/LinkPicker.js +317 -0
  447. package/dist/dashboard/app/LocaleMenu.d.ts +8 -0
  448. package/dist/dashboard/app/LocaleMenu.js +110 -0
  449. package/dist/dashboard/app/LogoShape.d.ts +8 -0
  450. package/dist/dashboard/app/LogoShape.js +60 -0
  451. package/dist/dashboard/app/SidebarTree.d.ts +37 -0
  452. package/dist/dashboard/app/SidebarTree.js +433 -0
  453. package/dist/dashboard/app/StatusBadge.d.ts +6 -0
  454. package/dist/dashboard/app/StatusBadge.js +26 -0
  455. package/dist/dashboard/app/ViewToggle.d.ts +7 -0
  456. package/dist/dashboard/app/ViewToggle.js +27 -0
  457. package/dist/dashboard/app/WorkspaceMenu.d.ts +24 -0
  458. package/dist/dashboard/app/WorkspaceMenu.js +264 -0
  459. package/dist/dashboard/app/WorkspaceMenu.stories.d.ts +5 -0
  460. package/dist/dashboard/app/WorkspaceRoots.d.ts +6 -0
  461. package/dist/dashboard/app/WorkspaceRoots.js +285 -0
  462. package/dist/dashboard/app/editor/FileEditor.d.ts +5 -0
  463. package/dist/dashboard/app/editor/FileEditor.js +190 -0
  464. package/dist/dashboard/app/editor/FilePreview.d.ts +13 -0
  465. package/dist/dashboard/app/editor/FilePreview.js +196 -0
  466. package/dist/dashboard/app/editor/MediaAltField.view.d.ts +5 -0
  467. package/dist/dashboard/app/editor/MediaAltField.view.js +98 -0
  468. package/dist/dashboard/app/modals/CreateEntry.d.ts +1 -0
  469. package/dist/dashboard/app/modals/CreateEntry.js +283 -0
  470. package/dist/dashboard/app/pages/EntryPage.d.ts +11 -0
  471. package/dist/dashboard/app/pages/EntryPage.js +354 -0
  472. package/dist/dashboard/app/pages/RootPage.d.ts +9 -0
  473. package/dist/dashboard/app/pages/RootPage.js +90 -0
  474. package/dist/dashboard/app/pages/UsersPage.d.ts +7 -0
  475. package/dist/dashboard/app/pages/UsersPage.js +552 -0
  476. package/dist/dashboard/app/ui/DashboardModal.d.ts +34 -0
  477. package/dist/dashboard/app/ui/DashboardModal.js +192 -0
  478. package/dist/dashboard/app/ui/Rail.d.ts +18 -0
  479. package/dist/dashboard/app/ui/Rail.js +41 -0
  480. package/dist/dashboard/app/ui/Sidebar.d.ts +15 -0
  481. package/dist/dashboard/app/ui/Sidebar.js +55 -0
  482. package/dist/dashboard/atoms/ReactiveNode.d.ts +41 -0
  483. package/dist/dashboard/atoms/ReactiveNode.js +248 -0
  484. package/dist/dashboard/atoms/activity.d.ts +48 -0
  485. package/dist/dashboard/atoms/activity.js +189 -0
  486. package/dist/dashboard/atoms/auth.d.ts +38 -0
  487. package/dist/dashboard/atoms/auth.js +106 -0
  488. package/dist/dashboard/atoms/config.d.ts +27 -0
  489. package/dist/dashboard/atoms/config.js +49 -0
  490. package/dist/dashboard/atoms/core.d.ts +15 -0
  491. package/dist/dashboard/atoms/core.js +37 -0
  492. package/dist/dashboard/atoms/create.d.ts +13 -0
  493. package/dist/dashboard/atoms/create.js +79 -0
  494. package/dist/dashboard/atoms/dashboard.d.ts +12 -0
  495. package/dist/dashboard/atoms/dashboard.js +71 -0
  496. package/dist/dashboard/atoms/editor.d.ts +80 -0
  497. package/dist/dashboard/atoms/editor.js +132 -0
  498. package/dist/dashboard/atoms/entry.d.ts +223 -0
  499. package/dist/dashboard/atoms/entry.js +609 -0
  500. package/dist/dashboard/atoms/explorer.d.ts +257 -0
  501. package/dist/dashboard/atoms/explorer.js +677 -0
  502. package/dist/dashboard/atoms/graph.d.ts +5 -0
  503. package/dist/dashboard/atoms/graph.js +62 -0
  504. package/dist/dashboard/atoms/link.d.ts +24 -0
  505. package/dist/dashboard/atoms/link.js +82 -0
  506. package/dist/dashboard/atoms/nav.d.ts +47 -0
  507. package/dist/dashboard/atoms/nav.js +220 -0
  508. package/dist/dashboard/atoms/preview.d.ts +4 -0
  509. package/dist/dashboard/atoms/preview.js +10 -0
  510. package/dist/dashboard/atoms/root.d.ts +88 -0
  511. package/dist/dashboard/atoms/root.js +444 -0
  512. package/dist/dashboard/atoms/upload.d.ts +9 -0
  513. package/dist/dashboard/atoms/upload.js +81 -0
  514. package/dist/dashboard/atoms/user.d.ts +9 -0
  515. package/dist/dashboard/atoms/user.js +75 -0
  516. package/dist/dashboard/atoms/utils.d.ts +17 -0
  517. package/dist/dashboard/atoms/utils.js +151 -0
  518. package/dist/dashboard/boot/ActivityEvent.d.ts +44 -0
  519. package/dist/dashboard/boot/ActivityEvent.js +14 -0
  520. package/dist/dashboard/boot/Boot.js +9 -5
  521. package/dist/dashboard/boot/BootDev.js +2 -1
  522. package/dist/dashboard/boot/BootProd.js +1 -1
  523. package/dist/dashboard/boot/DashboardWorker.d.ts +7 -7
  524. package/dist/dashboard/boot/DashboardWorker.js +370 -30
  525. package/dist/dashboard/boot/LoadWorker.js +6 -3
  526. package/dist/dashboard/boot/WorkerDB.d.ts +9 -2
  527. package/dist/dashboard/boot/WorkerDB.js +20 -3
  528. package/dist/dashboard/editor/UseField.d.ts +29 -10
  529. package/dist/dashboard/editor/UseField.js +27 -59
  530. package/dist/dashboard/fixture/cms.d.ts +116 -0
  531. package/dist/dashboard/fixture/cms.js +230 -0
  532. package/dist/dashboard/hook/UseEntryEditor.d.ts +25 -6
  533. package/dist/dashboard/hook/UseEntryEditor.js +34 -12
  534. package/dist/dashboard/hook/UseGraph.d.ts +3 -0
  535. package/dist/dashboard/hook/UseGraph.js +5 -5
  536. package/dist/dashboard/hook/UseLocale.d.ts +4 -1
  537. package/dist/dashboard/hook/UseLocale.js +5 -7
  538. package/dist/dashboard/hook/UseRoot.d.ts +7 -12
  539. package/dist/dashboard/hook/UseRoot.js +8 -5
  540. package/dist/dashboard/hook/UseWorkspace.d.ts +7 -9
  541. package/dist/dashboard/hook/UseWorkspace.js +5 -7
  542. package/dist/dashboard/hooks.d.ts +157 -0
  543. package/dist/dashboard/hooks.js +229 -0
  544. package/dist/dashboard/icons.d.ts +171 -0
  545. package/dist/dashboard/icons.js +2686 -0
  546. package/dist/dashboard/plugins/alineaFixturePlugin.d.ts +2 -0
  547. package/dist/dashboard/plugins/alineaFixturePlugin.js +200 -0
  548. package/dist/dashboard.d.ts +1 -2
  549. package/dist/dashboard.js +6 -2
  550. package/dist/edit.d.ts +1 -1
  551. package/dist/edit.js +2 -4
  552. package/dist/field/check/CheckField.js +3 -3
  553. package/dist/field/check/CheckField.view.d.ts +3 -3
  554. package/dist/field/check/CheckField.view.js +37 -84
  555. package/dist/field/code/CodeField.js +2 -2
  556. package/dist/field/code/CodeField.view.d.ts +21 -3
  557. package/dist/field/code/CodeField.view.js +177 -39
  558. package/dist/field/code/SimpleCodeEditor.d.ts +50 -0
  559. package/dist/field/code/SimpleCodeEditor.js +452 -0
  560. package/dist/field/date/DateField.js +3 -3
  561. package/dist/field/date/DateField.view.d.ts +3 -3
  562. package/dist/field/date/DateField.view.js +26 -26
  563. package/dist/field/hidden/HiddenField.js +2 -2
  564. package/dist/field/hidden/HiddenField.view.js +1 -1
  565. package/dist/field/json/JsonField.js +2 -2
  566. package/dist/field/json/JsonField.view.d.ts +4 -4
  567. package/dist/field/json/JsonField.view.js +53 -76
  568. package/dist/field/link/EntryLink.d.ts +9 -8
  569. package/dist/field/link/EntryLink.js +4 -2
  570. package/dist/field/link/FileLink.d.ts +5 -5
  571. package/dist/field/link/FileLink.js +7 -3
  572. package/dist/field/link/ImageLink.d.ts +4 -2
  573. package/dist/field/link/ImageLink.js +4 -1
  574. package/dist/field/link/Link.d.ts +1 -1
  575. package/dist/field/link/Link.js +1 -1
  576. package/dist/field/link/LinkEditor.d.ts +1 -1
  577. package/dist/field/link/LinkEditor.js +1 -1
  578. package/dist/field/link/LinkField.d.ts +5 -3
  579. package/dist/field/link/LinkField.js +56 -17
  580. package/dist/field/link/LinkField.stories.d.ts +11 -1
  581. package/dist/field/link/LinkField.view.d.ts +8 -10
  582. package/dist/field/link/LinkField.view.js +1444 -362
  583. package/dist/field/link/UrlLink.d.ts +2 -2
  584. package/dist/field/link/UrlLink.js +4 -2
  585. package/dist/field/list/ListField.d.ts +3 -3
  586. package/dist/field/list/ListField.js +5 -6
  587. package/dist/field/list/ListField.stories.d.ts +2 -1
  588. package/dist/field/list/ListField.view.d.ts +15 -7
  589. package/dist/field/list/ListField.view.js +888 -377
  590. package/dist/field/localiser/LocalisedField.view.d.ts +5 -0
  591. package/dist/field/localiser/LocalisedField.view.js +63 -0
  592. package/dist/field/localiser/LocalisedFieldTabs.d.ts +8 -0
  593. package/dist/field/localiser/LocalisedFieldTabs.js +38 -0
  594. package/dist/field/localiser/Localiser.d.ts +25 -0
  595. package/dist/field/localiser/Localiser.js +140 -0
  596. package/dist/field/localiser.d.ts +1 -0
  597. package/dist/field/localiser.js +2 -0
  598. package/dist/field/metadata/MetadataAliases.d.ts +20 -0
  599. package/dist/field/metadata/MetadataAliases.js +22 -0
  600. package/dist/field/metadata/MetadataField.d.ts +31 -8
  601. package/dist/field/metadata/MetadataField.js +127 -11
  602. package/dist/field/metadata/MetadataField.view.d.ts +11 -3
  603. package/dist/field/metadata/MetadataField.view.js +130 -96
  604. package/dist/field/number/NumberField.js +3 -3
  605. package/dist/field/number/NumberField.view.d.ts +3 -3
  606. package/dist/field/number/NumberField.view.js +22 -54
  607. package/dist/field/object/ObjectField.d.ts +1 -1
  608. package/dist/field/object/ObjectField.js +11 -4
  609. package/dist/field/object/ObjectField.view.d.ts +4 -4
  610. package/dist/field/object/ObjectField.view.js +28 -19
  611. package/dist/field/path/PathField.js +3 -3
  612. package/dist/field/path/PathField.view.d.ts +3 -3
  613. package/dist/field/path/PathField.view.js +33 -133
  614. package/dist/field/path/SlugField.d.ts +16 -0
  615. package/dist/field/path/SlugField.js +52 -0
  616. package/dist/field/richtext/Extensions.d.ts +1 -28
  617. package/dist/field/richtext/Extensions.js +2 -4146
  618. package/dist/field/richtext/PickTextAnchor.d.ts +19 -0
  619. package/dist/field/richtext/PickTextAnchor.js +99 -0
  620. package/dist/field/richtext/PickTextLink.d.ts +18 -17
  621. package/dist/field/richtext/PickTextLink.js +133 -88
  622. package/dist/field/richtext/ReferenceLink.d.ts +2 -0
  623. package/dist/field/richtext/ReferenceLink.js +13 -4
  624. package/dist/field/richtext/RichTextBlock.d.ts +11 -0
  625. package/dist/field/richtext/RichTextBlock.js +143 -0
  626. package/dist/field/richtext/RichTextBlockHost.d.ts +13 -0
  627. package/dist/field/richtext/RichTextBlockHost.js +56 -0
  628. package/dist/field/richtext/RichTextBlockValue.d.ts +5 -0
  629. package/dist/field/richtext/RichTextBlockValue.js +34 -0
  630. package/dist/field/richtext/RichTextBlocks.d.ts +16 -0
  631. package/dist/field/richtext/RichTextBlocks.js +40 -0
  632. package/dist/field/richtext/RichTextDocument.d.ts +4 -0
  633. package/dist/field/richtext/RichTextDocument.js +162 -0
  634. package/dist/field/richtext/RichTextExtensions.d.ts +67 -0
  635. package/dist/field/richtext/RichTextExtensions.js +8219 -0
  636. package/dist/field/richtext/RichTextField.d.ts +10 -3
  637. package/dist/field/richtext/RichTextField.js +13 -3
  638. package/dist/field/richtext/RichTextField.story.d.ts +8 -0
  639. package/dist/field/richtext/RichTextField.view.d.ts +11 -5
  640. package/dist/field/richtext/RichTextField.view.js +385 -2447
  641. package/dist/field/richtext/RichTextInsertMenu.d.ts +9 -0
  642. package/dist/field/richtext/RichTextInsertMenu.js +1014 -0
  643. package/dist/field/richtext/RichTextState.d.ts +6 -0
  644. package/dist/field/richtext/RichTextState.js +58 -0
  645. package/dist/field/richtext/RichTextToolbar.d.ts +9 -36
  646. package/dist/field/richtext/RichTextToolbar.js +206 -178
  647. package/dist/field/richtext/Toolbar.d.ts +111 -65
  648. package/dist/field/richtext/Toolbar.js +60 -45
  649. package/dist/field/richtext/extensions/Anchor.d.ts +19 -0
  650. package/dist/field/richtext/extensions/Anchor.js +94 -0
  651. package/dist/field/richtext/extensions/Link.d.ts +3 -13
  652. package/dist/field/richtext/extensions/Link.js +15 -37
  653. package/dist/field/richtext/extensions/Small.d.ts +1 -10
  654. package/dist/field/richtext/extensions/Small.js +7 -19
  655. package/dist/field/select/SelectField.d.ts +15 -4
  656. package/dist/field/select/SelectField.js +17 -2
  657. package/dist/field/select/SelectField.view.d.ts +7 -3
  658. package/dist/field/select/SelectField.view.js +112 -155
  659. package/dist/field/tabs/Tabs.js +3 -2
  660. package/dist/field/tabs/Tabs.view.d.ts +1 -6
  661. package/dist/field/tabs/Tabs.view.js +22 -29
  662. package/dist/field/text/TextField.js +8 -3
  663. package/dist/field/text/TextField.view.d.ts +2 -2
  664. package/dist/field/text/TextField.view.js +40 -60
  665. package/dist/field/time/TimeField.js +3 -3
  666. package/dist/field/time/TimeField.view.d.ts +3 -3
  667. package/dist/field/time/TimeField.view.js +30 -30
  668. package/dist/field/view/View.js +1 -1
  669. package/dist/field/views.d.ts +2 -0
  670. package/dist/field/views.js +65 -0
  671. package/dist/field.d.ts +1 -0
  672. package/dist/field.js +3 -1
  673. package/dist/index.css +7034 -3625
  674. package/dist/index.js +1 -1
  675. package/dist/inter-latin-500-normal-JSHNAZJU.woff2 +0 -0
  676. package/dist/inter-latin-ext-500-normal-5ARINTHO.woff2 +0 -0
  677. package/dist/next.cjs +19 -9
  678. package/dist/next.edge.js +1 -1
  679. package/dist/next.js +1 -1
  680. package/dist/picker/entry/EntryPicker.d.ts +9 -4
  681. package/dist/picker/entry/EntryPicker.js +97 -19
  682. package/dist/picker/entry/EntryReference.d.ts +4 -0
  683. package/dist/picker/entry/EntryReference.js +3 -1
  684. package/dist/picker/url/UrlPicker.js +2 -12
  685. package/dist/preview/ChunkCookieValue.js +1 -1
  686. package/dist/preview/PreviewCookies.js +1 -1
  687. package/dist/preview/PreviewMessage.js +1 -1
  688. package/dist/preview/PreviewPayload.js +237 -10
  689. package/dist/preview/RegisterPreview.js +1 -1
  690. package/dist/preview/react.js +10 -3
  691. package/dist/preview/widget.js +1 -1
  692. package/dist/query.d.ts +116 -92
  693. package/dist/query.js +7 -1
  694. package/dist/types.d.ts +1 -0
  695. package/dist/ui/Link.d.ts +6 -5
  696. package/dist/ui/Link.js +37 -13
  697. package/dist/ui/RichText.d.ts +37 -11
  698. package/dist/ui/RichText.js +81 -44
  699. package/dist/ui/Stack.d.ts +11 -22
  700. package/dist/ui/Stack.js +54 -67
  701. package/dist/ui/icons/IcAlignCenter.d.ts +4 -2
  702. package/dist/ui/icons/IcAlignCenter.js +6 -12
  703. package/dist/ui/icons/IcOutlineGridView.d.ts +3 -2
  704. package/dist/ui/icons/IcOutlineGridView.js +3 -11
  705. package/dist/ui/icons/IcOutlineSettings.d.ts +3 -2
  706. package/dist/ui/icons/IcOutlineSettings.js +3 -11
  707. package/dist/ui/icons/IcRoundAccountTree.d.ts +4 -2
  708. package/dist/ui/icons/IcRoundAccountTree.js +6 -22
  709. package/dist/ui/icons/IcRoundClose.d.ts +4 -2
  710. package/dist/ui/icons/IcRoundClose.js +6 -12
  711. package/dist/ui/icons/IcRoundCode.d.ts +4 -2
  712. package/dist/ui/icons/IcRoundCode.js +6 -12
  713. package/dist/ui/icons/IcRoundDateRange.d.ts +3 -2
  714. package/dist/ui/icons/IcRoundDateRange.js +3 -11
  715. package/dist/ui/icons/IcRoundDelete.d.ts +4 -2
  716. package/dist/ui/icons/IcRoundDelete.js +6 -12
  717. package/dist/ui/icons/IcRoundEdit.d.ts +4 -2
  718. package/dist/ui/icons/IcRoundEdit.js +6 -12
  719. package/dist/ui/icons/IcRoundFormatListNumbered.d.ts +3 -2
  720. package/dist/ui/icons/IcRoundFormatListNumbered.js +3 -11
  721. package/dist/ui/icons/IcRoundLink.d.ts +4 -2
  722. package/dist/ui/icons/IcRoundLink.js +6 -12
  723. package/dist/ui/icons/IcRoundOpenInNew.d.ts +4 -2
  724. package/dist/ui/icons/IcRoundOpenInNew.js +6 -12
  725. package/dist/ui/icons/IcRoundPanorama.d.ts +4 -2
  726. package/dist/ui/icons/IcRoundPanorama.js +6 -6
  727. package/dist/ui/icons/IcRoundRefresh.d.ts +3 -2
  728. package/dist/ui/icons/IcRoundRefresh.js +3 -11
  729. package/dist/ui/icons/IcRoundSave.d.ts +4 -2
  730. package/dist/ui/icons/IcRoundSave.js +6 -22
  731. package/dist/ui/icons/IcRoundSearch.d.ts +4 -2
  732. package/dist/ui/icons/IcRoundSearch.js +6 -12
  733. package/dist/ui/icons/IcRoundShare.d.ts +4 -2
  734. package/dist/ui/icons/IcRoundShare.js +6 -12
  735. package/dist/ui/icons/IcRoundSync.d.ts +4 -2
  736. package/dist/ui/icons/IcRoundSync.js +6 -22
  737. package/dist/ui/icons/MaterialSymbolsDatabase.d.ts +4 -2
  738. package/dist/ui/icons/MaterialSymbolsDatabase.js +6 -22
  739. package/dist/ui/icons/TableInsert.d.ts +4 -2
  740. package/dist/ui/icons/TableInsert.js +6 -12
  741. package/dist/ui/util/ImageBlurUrl.js +1 -1
  742. package/dist/ui.d.ts +0 -8
  743. package/dist/ui.js +0 -8
  744. package/package.json +49 -64
  745. package/dist/backend/router/Proxy.d.ts +0 -1
  746. package/dist/backend/router/Proxy.js +0 -32
  747. package/dist/chunks/chunk-2NTSADJL.js +0 -20
  748. package/dist/chunks/chunk-2STBQ2Y4.js +0 -166
  749. package/dist/chunks/chunk-2X5P2RZV.js +0 -94
  750. package/dist/chunks/chunk-3DIW62EI.js +0 -2900
  751. package/dist/chunks/chunk-3TNMMA3W.js +0 -249
  752. package/dist/chunks/chunk-467JA2PB.js +0 -29
  753. package/dist/chunks/chunk-5LTN67OE.js +0 -51
  754. package/dist/chunks/chunk-76QF5YTJ.js +0 -107
  755. package/dist/chunks/chunk-A5O3N2GS.js +0 -63
  756. package/dist/chunks/chunk-AICQFCVN.js +0 -19
  757. package/dist/chunks/chunk-AJJSW27C.js +0 -728
  758. package/dist/chunks/chunk-C53YJRET.js +0 -112
  759. package/dist/chunks/chunk-CKT37OYJ.js +0 -9
  760. package/dist/chunks/chunk-F2HHHLEQ.js +0 -72
  761. package/dist/chunks/chunk-FKWEJTSK.js +0 -16282
  762. package/dist/chunks/chunk-G2AFWRAD.js +0 -12
  763. package/dist/chunks/chunk-HSIHEWFC.js +0 -101
  764. package/dist/chunks/chunk-I26ZIF6Q.js +0 -360
  765. package/dist/chunks/chunk-JL5K3F7X.js +0 -1116
  766. package/dist/chunks/chunk-NZLE2WMY.js +0 -35
  767. package/dist/chunks/chunk-ORDS5C6Z.js +0 -83
  768. package/dist/chunks/chunk-PNILF4WM.js +0 -251
  769. package/dist/chunks/chunk-QUIANN6B.js +0 -8001
  770. package/dist/chunks/chunk-RSX2DILK.js +0 -335
  771. package/dist/chunks/chunk-SKF4L7JN.js +0 -401
  772. package/dist/chunks/chunk-SOTBYUJY.js +0 -120
  773. package/dist/chunks/chunk-TOJF2G3X.js +0 -96
  774. package/dist/chunks/chunk-TPUTTEHF.js +0 -3002
  775. package/dist/chunks/chunk-VUACWPFC.js +0 -892
  776. package/dist/chunks/chunk-WD7H5L2L.js +0 -168
  777. package/dist/chunks/chunk-WDCPVJJC.js +0 -341
  778. package/dist/chunks/chunk-WJ67RR7S.js +0 -554
  779. package/dist/chunks/chunk-WKC37UOZ.js +0 -143
  780. package/dist/chunks/chunk-WLKPH7JA.js +0 -2786
  781. package/dist/chunks/chunk-YWCPLD22.js +0 -2343
  782. package/dist/chunks/crypto-HZTUU327.js +0 -11
  783. package/dist/cloud/view/CloudAuth.browser.d.ts +0 -2
  784. package/dist/cloud/view/CloudAuth.browser.js +0 -111
  785. package/dist/cloud/view/CloudAuth.d.ts +0 -1
  786. package/dist/cloud/view/CloudAuth.js +0 -9
  787. package/dist/core/Doc.d.ts +0 -11
  788. package/dist/core/Doc.js +0 -44
  789. package/dist/core/Role.test.d.ts +0 -1
  790. package/dist/core/Shape.d.ts +0 -19
  791. package/dist/core/Trigger.test.d.ts +0 -1
  792. package/dist/core/Type.test.d.ts +0 -1
  793. package/dist/core/db/EntryIndex.test.d.ts +0 -1
  794. package/dist/core/db/EntryResolver.test.d.ts +0 -1
  795. package/dist/core/db/LocalDB.test.d.ts +0 -1
  796. package/dist/core/field/RichTextField.test.d.ts +0 -1
  797. package/dist/core/shape/ListShape.test.d.ts +0 -1
  798. package/dist/core/shape/RecordShape.d.ts +0 -26
  799. package/dist/core/shape/RecordShape.js +0 -102
  800. package/dist/core/shape/RecordShape.test.d.ts +0 -1
  801. package/dist/core/shape/RichTextShape.d.ts +0 -75
  802. package/dist/core/shape/RichTextShape.js +0 -435
  803. package/dist/core/shape/RichTextShape.test.d.ts +0 -1
  804. package/dist/core/shape/ScalarShape.d.ts +0 -20
  805. package/dist/core/shape/ScalarShape.js +0 -53
  806. package/dist/core/shape/ScalarShape.test.d.ts +0 -1
  807. package/dist/core/shape/UnionShape.d.ts +0 -34
  808. package/dist/core/shape/UnionShape.js +0 -141
  809. package/dist/core/shape/UnionShape.test.d.ts +0 -1
  810. package/dist/core/source/CombinedSource.test.d.ts +0 -1
  811. package/dist/core/source/FSSource.test.d.ts +0 -1
  812. package/dist/core/source/FilePatch.test.d.ts +0 -1
  813. package/dist/core/source/GitDelta.test.d.ts +0 -1
  814. package/dist/core/source/GitUtils.test.d.ts +0 -1
  815. package/dist/core/source/GithubSource.test.d.ts +0 -1
  816. package/dist/core/source/IndexedDBSource.test.d.ts +0 -1
  817. package/dist/core/source/MemorySource.test.d.ts +0 -1
  818. package/dist/core/source/SourceExport.test.d.ts +0 -1
  819. package/dist/core/source/Tree.test.d.ts +0 -1
  820. package/dist/core/source/Utils.test.d.ts +0 -1
  821. package/dist/core/util/CodeGen.test.d.ts +0 -1
  822. package/dist/core/util/EntryFilenames.test.d.ts +0 -1
  823. package/dist/core/util/JWT.test.d.ts +0 -1
  824. package/dist/core/util/Paths.test.d.ts +0 -1
  825. package/dist/core/util/Slugs.test.d.ts +0 -1
  826. package/dist/dashboard/DashboardNav.d.ts +0 -22
  827. package/dist/dashboard/DashboardNav.js +0 -44
  828. package/dist/dashboard/DashboardProvider.d.ts +0 -16
  829. package/dist/dashboard/DashboardProvider.js +0 -28
  830. package/dist/dashboard/Routes.d.ts +0 -111
  831. package/dist/dashboard/Routes.js +0 -78
  832. package/dist/dashboard/Welcome.d.ts +0 -1
  833. package/dist/dashboard/Welcome.js +0 -21
  834. package/dist/dashboard/atoms/DashboardAtoms.d.ts +0 -18
  835. package/dist/dashboard/atoms/DashboardAtoms.js +0 -86
  836. package/dist/dashboard/atoms/DbAtoms.d.ts +0 -5
  837. package/dist/dashboard/atoms/DbAtoms.js +0 -95
  838. package/dist/dashboard/atoms/Edits.d.ts +0 -31
  839. package/dist/dashboard/atoms/Edits.js +0 -93
  840. package/dist/dashboard/atoms/EntryAtoms.d.ts +0 -34
  841. package/dist/dashboard/atoms/EntryAtoms.js +0 -298
  842. package/dist/dashboard/atoms/EntryEditorAtoms.d.ts +0 -255
  843. package/dist/dashboard/atoms/EntryEditorAtoms.js +0 -629
  844. package/dist/dashboard/atoms/EntrySummaryAtoms.d.ts +0 -21
  845. package/dist/dashboard/atoms/EntrySummaryAtoms.js +0 -58
  846. package/dist/dashboard/atoms/ErrorAtoms.d.ts +0 -4
  847. package/dist/dashboard/atoms/ErrorAtoms.js +0 -18
  848. package/dist/dashboard/atoms/FormAtoms.d.ts +0 -56
  849. package/dist/dashboard/atoms/FormAtoms.js +0 -189
  850. package/dist/dashboard/atoms/LocationAtoms.d.ts +0 -25
  851. package/dist/dashboard/atoms/LocationAtoms.js +0 -104
  852. package/dist/dashboard/atoms/NavigationAtoms.d.ts +0 -38
  853. package/dist/dashboard/atoms/NavigationAtoms.js +0 -124
  854. package/dist/dashboard/atoms/PolicyAtom.d.ts +0 -6
  855. package/dist/dashboard/atoms/PolicyAtom.js +0 -29
  856. package/dist/dashboard/atoms/PreferencesAtoms.d.ts +0 -16
  857. package/dist/dashboard/atoms/PreferencesAtoms.js +0 -53
  858. package/dist/dashboard/atoms/RouterAtoms.d.ts +0 -78
  859. package/dist/dashboard/atoms/RouterAtoms.js +0 -161
  860. package/dist/dashboard/atoms/StyleAtoms.d.ts +0 -1
  861. package/dist/dashboard/atoms/StyleAtoms.js +0 -14
  862. package/dist/dashboard/atoms/YAtom.d.ts +0 -2
  863. package/dist/dashboard/atoms/YAtom.js +0 -24
  864. package/dist/dashboard/editor/DefaultViews.d.ts +0 -19
  865. package/dist/dashboard/editor/DefaultViews.js +0 -52
  866. package/dist/dashboard/editor/InputForm.d.ts +0 -26
  867. package/dist/dashboard/editor/InputForm.js +0 -53
  868. package/dist/dashboard/editor/ViewKeys.d.ts +0 -23
  869. package/dist/dashboard/editor/ViewKeys.js +0 -29
  870. package/dist/dashboard/hook/UseConfig.d.ts +0 -1
  871. package/dist/dashboard/hook/UseConfig.js +0 -12
  872. package/dist/dashboard/hook/UseDashboard.d.ts +0 -1
  873. package/dist/dashboard/hook/UseDashboard.js +0 -12
  874. package/dist/dashboard/hook/UseDb.d.ts +0 -2
  875. package/dist/dashboard/hook/UseDb.js +0 -14
  876. package/dist/dashboard/hook/UseDebounce.d.ts +0 -1
  877. package/dist/dashboard/hook/UseDebounce.js +0 -23
  878. package/dist/dashboard/hook/UseEntryLocation.d.ts +0 -1
  879. package/dist/dashboard/hook/UseEntryLocation.js +0 -12
  880. package/dist/dashboard/hook/UseEntrySummary.d.ts +0 -1
  881. package/dist/dashboard/hook/UseEntrySummary.js +0 -16
  882. package/dist/dashboard/hook/UseExplorer.d.ts +0 -14
  883. package/dist/dashboard/hook/UseExplorer.js +0 -13
  884. package/dist/dashboard/hook/UseFocusList.d.ts +0 -14
  885. package/dist/dashboard/hook/UseFocusList.js +0 -113
  886. package/dist/dashboard/hook/UseNav.d.ts +0 -10
  887. package/dist/dashboard/hook/UseNav.js +0 -12
  888. package/dist/dashboard/hook/UsePolicy.d.ts +0 -1
  889. package/dist/dashboard/hook/UsePolicy.js +0 -14
  890. package/dist/dashboard/hook/UsePreferences.d.ts +0 -6
  891. package/dist/dashboard/hook/UsePreferences.js +0 -30
  892. package/dist/dashboard/hook/UseSession.d.ts +0 -1
  893. package/dist/dashboard/hook/UseSession.js +0 -12
  894. package/dist/dashboard/hook/UseUploads.d.ts +0 -42
  895. package/dist/dashboard/hook/UseUploads.js +0 -91
  896. package/dist/dashboard/pages/ContentView.d.ts +0 -5
  897. package/dist/dashboard/pages/ContentView.js +0 -96
  898. package/dist/dashboard/util/Atoms.d.ts +0 -2
  899. package/dist/dashboard/util/Atoms.js +0 -21
  900. package/dist/dashboard/util/DebounceAtom.d.ts +0 -2
  901. package/dist/dashboard/util/DebounceAtom.js +0 -26
  902. package/dist/dashboard/util/HashRouter.d.ts +0 -1
  903. package/dist/dashboard/util/HashRouter.js +0 -2
  904. package/dist/dashboard/util/Head.d.ts +0 -2
  905. package/dist/dashboard/util/Head.js +0 -10
  906. package/dist/dashboard/util/KeepInView.d.ts +0 -2
  907. package/dist/dashboard/util/KeepInView.js +0 -19
  908. package/dist/dashboard/util/KeepPreviousData.d.ts +0 -9
  909. package/dist/dashboard/util/KeepPreviousData.js +0 -32
  910. package/dist/dashboard/util/Loader.d.ts +0 -17
  911. package/dist/dashboard/util/Loader.js +0 -31
  912. package/dist/dashboard/util/SuspenseBoundary.d.ts +0 -4
  913. package/dist/dashboard/util/SuspenseBoundary.js +0 -23
  914. package/dist/dashboard/util/WithResolvers.d.ts +0 -2
  915. package/dist/dashboard/util/WithResolvers.js +0 -16
  916. package/dist/dashboard/view/AlineaLogo.d.ts +0 -2
  917. package/dist/dashboard/view/AlineaLogo.js +0 -16
  918. package/dist/dashboard/view/Breadcrumbs.d.ts +0 -3
  919. package/dist/dashboard/view/Breadcrumbs.js +0 -33
  920. package/dist/dashboard/view/Create.d.ts +0 -13
  921. package/dist/dashboard/view/Create.js +0 -75
  922. package/dist/dashboard/view/EntryEdit.d.ts +0 -5
  923. package/dist/dashboard/view/EntryEdit.js +0 -222
  924. package/dist/dashboard/view/EntryTree.d.ts +0 -5
  925. package/dist/dashboard/view/EntryTree.js +0 -1463
  926. package/dist/dashboard/view/ErrorBoundary.d.ts +0 -6
  927. package/dist/dashboard/view/ErrorBoundary.js +0 -95
  928. package/dist/dashboard/view/IconButton.d.ts +0 -18
  929. package/dist/dashboard/view/IconButton.js +0 -51
  930. package/dist/dashboard/view/InputLabel.d.ts +0 -36
  931. package/dist/dashboard/view/InputLabel.js +0 -151
  932. package/dist/dashboard/view/MediaExplorer.d.ts +0 -7
  933. package/dist/dashboard/view/MediaExplorer.js +0 -121
  934. package/dist/dashboard/view/Modal.d.ts +0 -8
  935. package/dist/dashboard/view/Modal.js +0 -63
  936. package/dist/dashboard/view/PageHeader.d.ts +0 -5
  937. package/dist/dashboard/view/PageHeader.js +0 -26
  938. package/dist/dashboard/view/Preview.d.ts +0 -3
  939. package/dist/dashboard/view/Preview.js +0 -20
  940. package/dist/dashboard/view/RootOverview.d.ts +0 -5
  941. package/dist/dashboard/view/RootOverview.js +0 -46
  942. package/dist/dashboard/view/SearchBox.d.ts +0 -1
  943. package/dist/dashboard/view/SearchBox.js +0 -126
  944. package/dist/dashboard/view/Sidebar.d.ts +0 -21
  945. package/dist/dashboard/view/Sidebar.js +0 -312
  946. package/dist/dashboard/view/Toolbar.d.ts +0 -9
  947. package/dist/dashboard/view/Toolbar.js +0 -240
  948. package/dist/dashboard/view/Viewport.d.ts +0 -8
  949. package/dist/dashboard/view/Viewport.js +0 -69
  950. package/dist/dashboard/view/WorkspaceLabel.d.ts +0 -7
  951. package/dist/dashboard/view/WorkspaceLabel.js +0 -32
  952. package/dist/dashboard/view/diff/ChangeBox.d.ts +0 -14
  953. package/dist/dashboard/view/diff/ChangeBox.js +0 -36
  954. package/dist/dashboard/view/diff/DiffUtils.d.ts +0 -16
  955. package/dist/dashboard/view/diff/DiffUtils.js +0 -82
  956. package/dist/dashboard/view/diff/DiffUtils.test.d.ts +0 -1
  957. package/dist/dashboard/view/diff/EntryDiff.d.ts +0 -6
  958. package/dist/dashboard/view/diff/EntryDiff.js +0 -45
  959. package/dist/dashboard/view/diff/FieldDiff.d.ts +0 -10
  960. package/dist/dashboard/view/diff/FieldDiff.js +0 -51
  961. package/dist/dashboard/view/diff/FieldsDiff.d.ts +0 -7
  962. package/dist/dashboard/view/diff/FieldsDiff.js +0 -24
  963. package/dist/dashboard/view/diff/ListDiff.d.ts +0 -10
  964. package/dist/dashboard/view/diff/ListDiff.js +0 -32
  965. package/dist/dashboard/view/diff/RichTextDiff.d.ts +0 -11
  966. package/dist/dashboard/view/diff/RichTextDiff.js +0 -94
  967. package/dist/dashboard/view/diff/ScalarDiff.d.ts +0 -5
  968. package/dist/dashboard/view/diff/ScalarDiff.js +0 -1520
  969. package/dist/dashboard/view/entry/EditModeToggle.d.ts +0 -9
  970. package/dist/dashboard/view/entry/EditModeToggle.js +0 -51
  971. package/dist/dashboard/view/entry/EntryHeader.d.ts +0 -5
  972. package/dist/dashboard/view/entry/EntryHeader.js +0 -414
  973. package/dist/dashboard/view/entry/EntryHistory.d.ts +0 -2
  974. package/dist/dashboard/view/entry/EntryHistory.js +0 -78
  975. package/dist/dashboard/view/entry/EntryNotice.d.ts +0 -7
  976. package/dist/dashboard/view/entry/EntryNotice.js +0 -44
  977. package/dist/dashboard/view/entry/EntryPreview.d.ts +0 -10
  978. package/dist/dashboard/view/entry/EntryPreview.js +0 -44
  979. package/dist/dashboard/view/entry/EntrySummary.d.ts +0 -3
  980. package/dist/dashboard/view/entry/EntrySummary.js +0 -75
  981. package/dist/dashboard/view/entry/EntryTitle.d.ts +0 -7
  982. package/dist/dashboard/view/entry/EntryTitle.js +0 -64
  983. package/dist/dashboard/view/entry/FieldToolbar.d.ts +0 -11
  984. package/dist/dashboard/view/entry/FieldToolbar.js +0 -41
  985. package/dist/dashboard/view/entry/LangSwitch.d.ts +0 -7
  986. package/dist/dashboard/view/entry/LangSwitch.js +0 -110
  987. package/dist/dashboard/view/entry/NewEntry.d.ts +0 -4
  988. package/dist/dashboard/view/entry/NewEntry.js +0 -288
  989. package/dist/dashboard/view/entry/RootHeader.d.ts +0 -4
  990. package/dist/dashboard/view/entry/RootHeader.js +0 -61
  991. package/dist/dashboard/view/explorer/Explorer.d.ts +0 -24
  992. package/dist/dashboard/view/explorer/Explorer.js +0 -2230
  993. package/dist/dashboard/view/explorer/ExplorerItem.d.ts +0 -11
  994. package/dist/dashboard/view/explorer/ExplorerItem.js +0 -128
  995. package/dist/dashboard/view/explorer/ExplorerRow.d.ts +0 -15
  996. package/dist/dashboard/view/explorer/ExplorerRow.js +0 -73
  997. package/dist/dashboard/view/media/CardOverview.d.ts +0 -1
  998. package/dist/dashboard/view/media/CardOverview.js +0 -10
  999. package/dist/dashboard/view/media/FileEntry.d.ts +0 -6
  1000. package/dist/dashboard/view/media/FileEntry.js +0 -223
  1001. package/dist/dashboard/view/media/FileSummary.d.ts +0 -3
  1002. package/dist/dashboard/view/media/FileSummary.js +0 -102
  1003. package/dist/dashboard/view/media/FileUploadRow.d.ts +0 -2
  1004. package/dist/dashboard/view/media/FileUploadRow.js +0 -53
  1005. package/dist/dashboard/view/media/FileUploader.d.ts +0 -10
  1006. package/dist/dashboard/view/media/FileUploader.js +0 -151
  1007. package/dist/dashboard/view/media/MediaThumbnail.d.ts +0 -11
  1008. package/dist/dashboard/view/media/MediaThumbnail.js +0 -55
  1009. package/dist/dashboard/view/preview/BrowserPreview.d.ts +0 -12
  1010. package/dist/dashboard/view/preview/BrowserPreview.js +0 -210
  1011. package/dist/dashboard/view/sidebar/SidebarSettings.d.ts +0 -1
  1012. package/dist/dashboard/view/sidebar/SidebarSettings.js +0 -192
  1013. package/dist/field/check/CheckField.stories.d.ts +0 -5
  1014. package/dist/field/code/CodeField.stories.d.ts +0 -5
  1015. package/dist/field/date/DateField.stories.d.ts +0 -5
  1016. package/dist/field/json/JsonField.stories.d.ts +0 -5
  1017. package/dist/field/metadata/MetadataField.stories.d.ts +0 -5
  1018. package/dist/field/number/NumberField.stories.d.ts +0 -5
  1019. package/dist/field/object/ObjectField.stories.d.ts +0 -5
  1020. package/dist/field/path/PathField.stories.d.ts +0 -5
  1021. package/dist/field/richtext/RichText.stories.d.ts +0 -5
  1022. package/dist/field/select/SelectField.stories.d.ts +0 -5
  1023. package/dist/field/tabs/Tabs.stories.d.ts +0 -5
  1024. package/dist/field/text/TextField.stories.d.ts +0 -5
  1025. package/dist/field/time/TimeField.stories.d.ts +0 -5
  1026. package/dist/picker/entry/EntryPicker.browser.d.ts +0 -7
  1027. package/dist/picker/entry/EntryPicker.browser.js +0 -373
  1028. package/dist/picker/entry/EntryPicker.stories.d.ts +0 -2
  1029. package/dist/picker/entry/EntryPickerRow.d.ts +0 -5
  1030. package/dist/picker/entry/EntryPickerRow.js +0 -24
  1031. package/dist/picker/url/UrlPicker.browser.d.ts +0 -6
  1032. package/dist/picker/url/UrlPicker.browser.js +0 -83
  1033. package/dist/picker/url/UrlPicker.stories.d.ts +0 -5
  1034. package/dist/picker/url/UrlPickerRow.d.ts +0 -5
  1035. package/dist/picker/url/UrlPickerRow.js +0 -38
  1036. package/dist/preview/ChunkCookieValue.test.d.ts +0 -1
  1037. package/dist/preview/PreviewPayload.test.d.ts +0 -1
  1038. package/dist/test/EntryFixture.d.ts +0 -30
  1039. package/dist/test/EntryFixture.js +0 -91
  1040. package/dist/test/broken-index.test.d.ts +0 -1
  1041. package/dist/test/cms.d.ts +0 -17
  1042. package/dist/test/cms.js +0 -38
  1043. package/dist/test/drafts.test.d.ts +0 -1
  1044. package/dist/test/example.d.ts +0 -137
  1045. package/dist/test/example.js +0 -230
  1046. package/dist/test/insert-order.test.d.ts +0 -1
  1047. package/dist/test/links.test.d.ts +0 -1
  1048. package/dist/test/locales.test.d.ts +0 -1
  1049. package/dist/test/moves.test.d.ts +0 -1
  1050. package/dist/test/mutate.test.d.ts +0 -1
  1051. package/dist/test/query.test.d.ts +0 -1
  1052. package/dist/test/renames.test.d.ts +0 -1
  1053. package/dist/test/roles.test.d.ts +0 -1
  1054. package/dist/test/schema/DemoHome.d.ts +0 -25
  1055. package/dist/test/schema/DemoHome.js +0 -25
  1056. package/dist/test/schema/DemoRecipe.d.ts +0 -14
  1057. package/dist/test/schema/DemoRecipe.js +0 -22
  1058. package/dist/test/schema/DemoRecipes.d.ts +0 -4
  1059. package/dist/test/schema/DemoRecipes.js +0 -14
  1060. package/dist/test/schema/index.d.ts +0 -3
  1061. package/dist/test/schema/index.js +0 -4
  1062. package/dist/test/seeding.test.d.ts +0 -1
  1063. package/dist/test/shared.test.d.ts +0 -1
  1064. package/dist/test/status.test.d.ts +0 -1
  1065. package/dist/test/uploads.test.d.ts +0 -1
  1066. package/dist/ui/AppBar.d.ts +0 -14
  1067. package/dist/ui/AppBar.js +0 -68
  1068. package/dist/ui/Avatar.d.ts +0 -6
  1069. package/dist/ui/Avatar.js +0 -33
  1070. package/dist/ui/Badge.d.ts +0 -9
  1071. package/dist/ui/Badge.js +0 -44
  1072. package/dist/ui/Button.d.ts +0 -9
  1073. package/dist/ui/Button.js +0 -57
  1074. package/dist/ui/Button.stories.d.ts +0 -6
  1075. package/dist/ui/Chip.d.ts +0 -8
  1076. package/dist/ui/Chip.js +0 -46
  1077. package/dist/ui/DropdownMenu.d.ts +0 -12
  1078. package/dist/ui/DropdownMenu.js +0 -415
  1079. package/dist/ui/Ellipsis.d.ts +0 -2
  1080. package/dist/ui/Ellipsis.js +0 -33
  1081. package/dist/ui/ErrorMessage.d.ts +0 -4
  1082. package/dist/ui/ErrorMessage.js +0 -17
  1083. package/dist/ui/Icon.d.ts +0 -9
  1084. package/dist/ui/Icon.js +0 -41
  1085. package/dist/ui/Lift.d.ts +0 -3
  1086. package/dist/ui/Lift.js +0 -22
  1087. package/dist/ui/Loader.d.ts +0 -8
  1088. package/dist/ui/Loader.js +0 -32
  1089. package/dist/ui/Main.d.ts +0 -12
  1090. package/dist/ui/Main.js +0 -56
  1091. package/dist/ui/Pane.d.ts +0 -9
  1092. package/dist/ui/Pane.js +0 -132
  1093. package/dist/ui/PopoverMenu.d.ts +0 -12
  1094. package/dist/ui/PopoverMenu.js +0 -418
  1095. package/dist/ui/Property.d.ts +0 -1
  1096. package/dist/ui/Property.js +0 -7
  1097. package/dist/ui/Sink.d.ts +0 -9
  1098. package/dist/ui/Sink.js +0 -49
  1099. package/dist/ui/Statusbar.d.ts +0 -15
  1100. package/dist/ui/Statusbar.js +0 -54
  1101. package/dist/ui/Tabs.d.ts +0 -11
  1102. package/dist/ui/Tabs.js +0 -293
  1103. package/dist/ui/TextLabel.d.ts +0 -5
  1104. package/dist/ui/TextLabel.js +0 -10
  1105. package/dist/ui/Typo.d.ts +0 -35
  1106. package/dist/ui/Typo.js +0 -28
  1107. package/dist/ui/UIStory.d.ts +0 -8
  1108. package/dist/ui/branding/FavIcon.d.ts +0 -5
  1109. package/dist/ui/branding/FavIcon.js +0 -56
  1110. package/dist/ui/branding/LogoShape.d.ts +0 -6
  1111. package/dist/ui/branding/LogoShape.js +0 -52
  1112. package/dist/ui/hook/UseAutoHide.d.ts +0 -8
  1113. package/dist/ui/hook/UseAutoHide.js +0 -43
  1114. package/dist/ui/hook/UseColorScheme.d.ts +0 -4
  1115. package/dist/ui/hook/UseColorScheme.js +0 -13
  1116. package/dist/ui/hook/UseContrastColor.d.ts +0 -1
  1117. package/dist/ui/hook/UseContrastColor.js +0 -12
  1118. package/dist/ui/hook/UseElementSize.d.ts +0 -6
  1119. package/dist/ui/hook/UseElementSize.js +0 -52
  1120. package/dist/ui/hook/UseForceUpdate.d.ts +0 -1
  1121. package/dist/ui/hook/UseForceUpdate.js +0 -11
  1122. package/dist/ui/hook/UseHash.d.ts +0 -1
  1123. package/dist/ui/hook/UseHash.js +0 -24
  1124. package/dist/ui/hook/UseInitialEffect.d.ts +0 -2
  1125. package/dist/ui/hook/UseInitialEffect.js +0 -15
  1126. package/dist/ui/hook/UseLocalStorage.d.ts +0 -1
  1127. package/dist/ui/hook/UseLocalStorage.js +0 -36
  1128. package/dist/ui/hook/UseNonInitialEffect.d.ts +0 -2
  1129. package/dist/ui/hook/UseNonInitialEffect.js +0 -17
  1130. package/dist/ui/hook/UseTrigger.d.ts +0 -7
  1131. package/dist/ui/hook/UseTrigger.js +0 -29
  1132. package/dist/ui/icons/IcAlignJustify.d.ts +0 -3
  1133. package/dist/ui/icons/IcAlignJustify.js +0 -18
  1134. package/dist/ui/icons/IcAlignLeft.d.ts +0 -2
  1135. package/dist/ui/icons/IcAlignLeft.js +0 -16
  1136. package/dist/ui/icons/IcAlignRight.d.ts +0 -2
  1137. package/dist/ui/icons/IcAlignRight.js +0 -16
  1138. package/dist/ui/icons/IcBaselineAccountCircle.d.ts +0 -2
  1139. package/dist/ui/icons/IcBaselineAccountCircle.js +0 -26
  1140. package/dist/ui/icons/IcBaselineContentCopy.d.ts +0 -2
  1141. package/dist/ui/icons/IcBaselineContentCopy.js +0 -26
  1142. package/dist/ui/icons/IcBaselineContentPasteGo.d.ts +0 -2
  1143. package/dist/ui/icons/IcBaselineContentPasteGo.js +0 -35
  1144. package/dist/ui/icons/IcBaselineDesktopMac.d.ts +0 -2
  1145. package/dist/ui/icons/IcBaselineDesktopMac.js +0 -16
  1146. package/dist/ui/icons/IcBaselineErrorOutline.d.ts +0 -2
  1147. package/dist/ui/icons/IcBaselineErrorOutline.js +0 -26
  1148. package/dist/ui/icons/IcBaselinePause.d.ts +0 -2
  1149. package/dist/ui/icons/IcBaselinePause.js +0 -20
  1150. package/dist/ui/icons/IcBaselinePhoneIphone.d.ts +0 -2
  1151. package/dist/ui/icons/IcBaselinePhoneIphone.js +0 -16
  1152. package/dist/ui/icons/IcBaselineWifiTethering.d.ts +0 -2
  1153. package/dist/ui/icons/IcBaselineWifiTethering.js +0 -26
  1154. package/dist/ui/icons/IcOutlineArchive.d.ts +0 -2
  1155. package/dist/ui/icons/IcOutlineArchive.js +0 -26
  1156. package/dist/ui/icons/IcOutlineArrowCircleRight.d.ts +0 -2
  1157. package/dist/ui/icons/IcOutlineArrowCircleRight.js +0 -16
  1158. package/dist/ui/icons/IcOutlineAvTimer.d.ts +0 -2
  1159. package/dist/ui/icons/IcOutlineAvTimer.js +0 -26
  1160. package/dist/ui/icons/IcOutlineCloudUpload.d.ts +0 -2
  1161. package/dist/ui/icons/IcOutlineCloudUpload.js +0 -26
  1162. package/dist/ui/icons/IcOutlineDarkMode.d.ts +0 -2
  1163. package/dist/ui/icons/IcOutlineDarkMode.js +0 -16
  1164. package/dist/ui/icons/IcOutlineDescription.d.ts +0 -2
  1165. package/dist/ui/icons/IcOutlineDescription.js +0 -26
  1166. package/dist/ui/icons/IcOutlineDrafts.d.ts +0 -2
  1167. package/dist/ui/icons/IcOutlineDrafts.js +0 -26
  1168. package/dist/ui/icons/IcOutlineFolder.d.ts +0 -2
  1169. package/dist/ui/icons/IcOutlineFolder.js +0 -26
  1170. package/dist/ui/icons/IcOutlineInsertDriveFile.d.ts +0 -2
  1171. package/dist/ui/icons/IcOutlineInsertDriveFile.js +0 -26
  1172. package/dist/ui/icons/IcOutlineKeyboardTab.d.ts +0 -2
  1173. package/dist/ui/icons/IcOutlineKeyboardTab.js +0 -26
  1174. package/dist/ui/icons/IcOutlineLightMode.d.ts +0 -2
  1175. package/dist/ui/icons/IcOutlineLightMode.js +0 -16
  1176. package/dist/ui/icons/IcOutlineList.d.ts +0 -3
  1177. package/dist/ui/icons/IcOutlineList.js +0 -18
  1178. package/dist/ui/icons/IcOutlineLock.d.ts +0 -2
  1179. package/dist/ui/icons/IcOutlineLock.js +0 -26
  1180. package/dist/ui/icons/IcOutlineMoreHoriz.d.ts +0 -3
  1181. package/dist/ui/icons/IcOutlineMoreHoriz.js +0 -18
  1182. package/dist/ui/icons/IcOutlinePreview.d.ts +0 -2
  1183. package/dist/ui/icons/IcOutlinePreview.js +0 -16
  1184. package/dist/ui/icons/IcOutlineRemoveRedEye.d.ts +0 -2
  1185. package/dist/ui/icons/IcOutlineRemoveRedEye.js +0 -26
  1186. package/dist/ui/icons/IcOutlineScreenshot.d.ts +0 -2
  1187. package/dist/ui/icons/IcOutlineScreenshot.js +0 -16
  1188. package/dist/ui/icons/IcOutlineTableRows.d.ts +0 -2
  1189. package/dist/ui/icons/IcOutlineTableRows.js +0 -26
  1190. package/dist/ui/icons/IcRoundAdd.d.ts +0 -2
  1191. package/dist/ui/icons/IcRoundAdd.js +0 -16
  1192. package/dist/ui/icons/IcRoundAddCircle.d.ts +0 -3
  1193. package/dist/ui/icons/IcRoundAddCircle.js +0 -18
  1194. package/dist/ui/icons/IcRoundAddCircleOutline.d.ts +0 -2
  1195. package/dist/ui/icons/IcRoundAddCircleOutline.js +0 -16
  1196. package/dist/ui/icons/IcRoundArchive.d.ts +0 -2
  1197. package/dist/ui/icons/IcRoundArchive.js +0 -16
  1198. package/dist/ui/icons/IcRoundArrowBack.d.ts +0 -2
  1199. package/dist/ui/icons/IcRoundArrowBack.js +0 -16
  1200. package/dist/ui/icons/IcRoundArrowDownward.d.ts +0 -2
  1201. package/dist/ui/icons/IcRoundArrowDownward.js +0 -26
  1202. package/dist/ui/icons/IcRoundArrowDropDown.d.ts +0 -3
  1203. package/dist/ui/icons/IcRoundArrowDropDown.js +0 -18
  1204. package/dist/ui/icons/IcRoundArrowDropDownCircle.d.ts +0 -3
  1205. package/dist/ui/icons/IcRoundArrowDropDownCircle.js +0 -18
  1206. package/dist/ui/icons/IcRoundArrowDropUp.d.ts +0 -3
  1207. package/dist/ui/icons/IcRoundArrowDropUp.js +0 -18
  1208. package/dist/ui/icons/IcRoundArrowForward.d.ts +0 -2
  1209. package/dist/ui/icons/IcRoundArrowForward.js +0 -16
  1210. package/dist/ui/icons/IcRoundArrowUpward.d.ts +0 -2
  1211. package/dist/ui/icons/IcRoundArrowUpward.js +0 -26
  1212. package/dist/ui/icons/IcRoundAttachFile.d.ts +0 -2
  1213. package/dist/ui/icons/IcRoundAttachFile.js +0 -10
  1214. package/dist/ui/icons/IcRoundCheck.d.ts +0 -2
  1215. package/dist/ui/icons/IcRoundCheck.js +0 -16
  1216. package/dist/ui/icons/IcRoundCheckBox.d.ts +0 -2
  1217. package/dist/ui/icons/IcRoundCheckBox.js +0 -16
  1218. package/dist/ui/icons/IcRoundCheckBoxOutlineBlank.d.ts +0 -2
  1219. package/dist/ui/icons/IcRoundCheckBoxOutlineBlank.js +0 -16
  1220. package/dist/ui/icons/IcRoundChevronRight.d.ts +0 -2
  1221. package/dist/ui/icons/IcRoundChevronRight.js +0 -26
  1222. package/dist/ui/icons/IcRoundDescription.d.ts +0 -2
  1223. package/dist/ui/icons/IcRoundDescription.js +0 -26
  1224. package/dist/ui/icons/IcRoundDragHandle.d.ts +0 -3
  1225. package/dist/ui/icons/IcRoundDragHandle.js +0 -18
  1226. package/dist/ui/icons/IcRoundExitToApp.d.ts +0 -2
  1227. package/dist/ui/icons/IcRoundExitToApp.js +0 -26
  1228. package/dist/ui/icons/IcRoundFeed.d.ts +0 -2
  1229. package/dist/ui/icons/IcRoundFeed.js +0 -16
  1230. package/dist/ui/icons/IcRoundFormatBold.d.ts +0 -3
  1231. package/dist/ui/icons/IcRoundFormatBold.js +0 -18
  1232. package/dist/ui/icons/IcRoundFormatClear.d.ts +0 -3
  1233. package/dist/ui/icons/IcRoundFormatClear.js +0 -18
  1234. package/dist/ui/icons/IcRoundFormatItalic.d.ts +0 -3
  1235. package/dist/ui/icons/IcRoundFormatItalic.js +0 -18
  1236. package/dist/ui/icons/IcRoundFormatListBulleted.d.ts +0 -3
  1237. package/dist/ui/icons/IcRoundFormatListBulleted.js +0 -18
  1238. package/dist/ui/icons/IcRoundFormatPaint.d.ts +0 -2
  1239. package/dist/ui/icons/IcRoundFormatPaint.js +0 -10
  1240. package/dist/ui/icons/IcRoundHamburger.d.ts +0 -3
  1241. package/dist/ui/icons/IcRoundHamburger.js +0 -18
  1242. package/dist/ui/icons/IcRoundHdrStrong.d.ts +0 -3
  1243. package/dist/ui/icons/IcRoundHdrStrong.js +0 -18
  1244. package/dist/ui/icons/IcRoundHorizontalRule.d.ts +0 -3
  1245. package/dist/ui/icons/IcRoundHorizontalRule.js +0 -19
  1246. package/dist/ui/icons/IcRoundInsertDriveFile.d.ts +0 -2
  1247. package/dist/ui/icons/IcRoundInsertDriveFile.js +0 -16
  1248. package/dist/ui/icons/IcRoundKeyboardArrowDown.d.ts +0 -2
  1249. package/dist/ui/icons/IcRoundKeyboardArrowDown.js +0 -16
  1250. package/dist/ui/icons/IcRoundKeyboardArrowLeft.d.ts +0 -3
  1251. package/dist/ui/icons/IcRoundKeyboardArrowLeft.js +0 -18
  1252. package/dist/ui/icons/IcRoundKeyboardArrowRight.d.ts +0 -2
  1253. package/dist/ui/icons/IcRoundKeyboardArrowRight.js +0 -16
  1254. package/dist/ui/icons/IcRoundKeyboardArrowUp.d.ts +0 -2
  1255. package/dist/ui/icons/IcRoundKeyboardArrowUp.js +0 -16
  1256. package/dist/ui/icons/IcRoundLanguage.d.ts +0 -2
  1257. package/dist/ui/icons/IcRoundLanguage.js +0 -16
  1258. package/dist/ui/icons/IcRoundLastPage.d.ts +0 -2
  1259. package/dist/ui/icons/IcRoundLastPage.js +0 -26
  1260. package/dist/ui/icons/IcRoundLock.d.ts +0 -3
  1261. package/dist/ui/icons/IcRoundLock.js +0 -18
  1262. package/dist/ui/icons/IcRoundMenu.d.ts +0 -2
  1263. package/dist/ui/icons/IcRoundMenu.js +0 -16
  1264. package/dist/ui/icons/IcRoundMoreHoriz.d.ts +0 -2
  1265. package/dist/ui/icons/IcRoundMoreHoriz.js +0 -16
  1266. package/dist/ui/icons/IcRoundMoreVert.d.ts +0 -2
  1267. package/dist/ui/icons/IcRoundMoreVert.js +0 -26
  1268. package/dist/ui/icons/IcRoundNorthEast.d.ts +0 -2
  1269. package/dist/ui/icons/IcRoundNorthEast.js +0 -16
  1270. package/dist/ui/icons/IcRoundNotes.d.ts +0 -2
  1271. package/dist/ui/icons/IcRoundNotes.js +0 -16
  1272. package/dist/ui/icons/IcRoundNumbers.d.ts +0 -2
  1273. package/dist/ui/icons/IcRoundNumbers.js +0 -16
  1274. package/dist/ui/icons/IcRoundPermMedia.d.ts +0 -2
  1275. package/dist/ui/icons/IcRoundPermMedia.js +0 -25
  1276. package/dist/ui/icons/IcRoundPublish.d.ts +0 -2
  1277. package/dist/ui/icons/IcRoundPublish.js +0 -16
  1278. package/dist/ui/icons/IcRoundPublishedWithChanges.d.ts +0 -2
  1279. package/dist/ui/icons/IcRoundPublishedWithChanges.js +0 -26
  1280. package/dist/ui/icons/IcRoundQuote.d.ts +0 -2
  1281. package/dist/ui/icons/IcRoundQuote.js +0 -16
  1282. package/dist/ui/icons/IcRoundRedo.d.ts +0 -3
  1283. package/dist/ui/icons/IcRoundRedo.js +0 -18
  1284. package/dist/ui/icons/IcRoundRemoveCircleOutline.d.ts +0 -2
  1285. package/dist/ui/icons/IcRoundRemoveCircleOutline.js +0 -16
  1286. package/dist/ui/icons/IcRoundRotateLeft.d.ts +0 -2
  1287. package/dist/ui/icons/IcRoundRotateLeft.js +0 -16
  1288. package/dist/ui/icons/IcRoundSend.d.ts +0 -2
  1289. package/dist/ui/icons/IcRoundSend.js +0 -26
  1290. package/dist/ui/icons/IcRoundSouthWest.d.ts +0 -2
  1291. package/dist/ui/icons/IcRoundSouthWest.js +0 -16
  1292. package/dist/ui/icons/IcRoundSubscript.d.ts +0 -2
  1293. package/dist/ui/icons/IcRoundSubscript.js +0 -26
  1294. package/dist/ui/icons/IcRoundSuperscript.d.ts +0 -2
  1295. package/dist/ui/icons/IcRoundSuperscript.js +0 -26
  1296. package/dist/ui/icons/IcRoundTabletMac.d.ts +0 -2
  1297. package/dist/ui/icons/IcRoundTabletMac.js +0 -16
  1298. package/dist/ui/icons/IcRoundTextFields.d.ts +0 -2
  1299. package/dist/ui/icons/IcRoundTextFields.js +0 -16
  1300. package/dist/ui/icons/IcRoundTranslate.d.ts +0 -2
  1301. package/dist/ui/icons/IcRoundTranslate.js +0 -26
  1302. package/dist/ui/icons/IcRoundUndo.d.ts +0 -3
  1303. package/dist/ui/icons/IcRoundUndo.js +0 -18
  1304. package/dist/ui/icons/IcRoundUnfoldLess.d.ts +0 -2
  1305. package/dist/ui/icons/IcRoundUnfoldLess.js +0 -26
  1306. package/dist/ui/icons/IcRoundUnfoldMore.d.ts +0 -2
  1307. package/dist/ui/icons/IcRoundUnfoldMore.js +0 -16
  1308. package/dist/ui/icons/IcRoundUploadFile.d.ts +0 -3
  1309. package/dist/ui/icons/IcRoundUploadFile.js +0 -18
  1310. package/dist/ui/icons/IcRoundVisibilityOff.d.ts +0 -2
  1311. package/dist/ui/icons/IcRoundVisibilityOff.js +0 -16
  1312. package/dist/ui/icons/IcRoundWarning.d.ts +0 -2
  1313. package/dist/ui/icons/IcRoundWarning.js +0 -16
  1314. package/dist/ui/icons/IcSharpBrightnessMedium.d.ts +0 -2
  1315. package/dist/ui/icons/IcSharpBrightnessMedium.js +0 -16
  1316. package/dist/ui/icons/IcSharpVerticalAlignCenter.d.ts +0 -2
  1317. package/dist/ui/icons/IcSharpVerticalAlignCenter.js +0 -16
  1318. package/dist/ui/icons/IcTwotoneDescription.d.ts +0 -2
  1319. package/dist/ui/icons/IcTwotoneDescription.js +0 -37
  1320. package/dist/ui/icons/IcTwotoneFolder.d.ts +0 -2
  1321. package/dist/ui/icons/IcTwotoneFolder.js +0 -37
  1322. package/dist/ui/icons/IcTwotoneInsertDriveFile.d.ts +0 -2
  1323. package/dist/ui/icons/IcTwotoneInsertDriveFile.js +0 -30
  1324. package/dist/ui/icons/MdiGithub.d.ts +0 -3
  1325. package/dist/ui/icons/MdiGithub.js +0 -18
  1326. package/dist/ui/icons/MdiSourceBranch.d.ts +0 -2
  1327. package/dist/ui/icons/MdiSourceBranch.js +0 -16
  1328. package/dist/ui/icons/MdiTwitterCircle.d.ts +0 -2
  1329. package/dist/ui/icons/MdiTwitterCircle.js +0 -26
  1330. package/dist/ui/icons/MiLayers.d.ts +0 -3
  1331. package/dist/ui/icons/MiLayers.js +0 -16
  1332. package/dist/ui/icons/PhGlobe.d.ts +0 -2
  1333. package/dist/ui/icons/PhGlobe.js +0 -26
  1334. package/dist/ui/icons/RiFlashlightFill.d.ts +0 -2
  1335. package/dist/ui/icons/RiFlashlightFill.js +0 -10
  1336. package/dist/ui/icons/TableDelete.d.ts +0 -2
  1337. package/dist/ui/icons/TableDelete.js +0 -25
  1338. package/dist/ui/icons/TableDeleteColumn.d.ts +0 -2
  1339. package/dist/ui/icons/TableDeleteColumn.js +0 -16
  1340. package/dist/ui/icons/TableDeleteRow.d.ts +0 -2
  1341. package/dist/ui/icons/TableDeleteRow.js +0 -16
  1342. package/dist/ui/icons/TableHeaderCell.d.ts +0 -2
  1343. package/dist/ui/icons/TableHeaderCell.js +0 -16
  1344. package/dist/ui/icons/TableHeaderColumn.d.ts +0 -2
  1345. package/dist/ui/icons/TableHeaderColumn.js +0 -16
  1346. package/dist/ui/icons/TableHeaderRow.d.ts +0 -2
  1347. package/dist/ui/icons/TableHeaderRow.js +0 -16
  1348. package/dist/ui/icons/TableInsertColumnAfter.d.ts +0 -2
  1349. package/dist/ui/icons/TableInsertColumnAfter.js +0 -16
  1350. package/dist/ui/icons/TableInsertColumnBefore.d.ts +0 -2
  1351. package/dist/ui/icons/TableInsertColumnBefore.js +0 -16
  1352. package/dist/ui/icons/TableInsertRowAfter.d.ts +0 -2
  1353. package/dist/ui/icons/TableInsertRowAfter.js +0 -16
  1354. package/dist/ui/icons/TableInsertRowBefore.d.ts +0 -2
  1355. package/dist/ui/icons/TableInsertRowBefore.js +0 -16
  1356. package/dist/ui/icons/TableMergeCells.d.ts +0 -2
  1357. package/dist/ui/icons/TableMergeCells.js +0 -16
  1358. package/dist/ui/icons/TableSplitCell.d.ts +0 -2
  1359. package/dist/ui/icons/TableSplitCell.js +0 -16
  1360. package/dist/ui/util/ContrastColor.d.ts +0 -1
  1361. package/dist/ui/util/ContrastColor.js +0 -17
  1362. package/dist/ui/util/CreateTypo.d.ts +0 -62
  1363. package/dist/ui/util/CreateTypo.js +0 -119
  1364. package/dist/ui/util/Elevation.d.ts +0 -12
  1365. package/dist/ui/util/Elevation.js +0 -20
  1366. package/dist/ui/util/PropsWithAs.d.ts +0 -12
  1367. package/dist/ui/util/PropsWithAs.js +0 -10
  1368. package/dist/ui/util/Slots.d.ts +0 -11
  1369. package/dist/ui/util/Slots.js +0 -50
  1370. package/dist/ui/util/TextareaAutosize.d.ts +0 -2
  1371. package/dist/ui/util/TextareaAutosize.js +0 -40
  1372. package/dist/ui/util/Units.d.ts +0 -1
  1373. package/dist/ui/util/Units.js +0 -7
  1374. package/dist/ui/util/UseId.d.ts +0 -1
  1375. package/dist/ui/util/UseId.js +0 -11
  1376. package/dist/yjs.d.ts +0 -1
  1377. package/dist/yjs.js +0 -206
  1378. /package/dist/{core/Shape.js → chunks/chunk-NUFRM6SI.js} +0 -0
  1379. /package/dist/{backend/Handler.test.d.ts → dashboard/app/EntrySidebarPreview.spec.d.ts} +0 -0
  1380. /package/dist/{backend/router/Router.test.d.ts → dashboard/app/WorkspaceMenu.spec.d.ts} +0 -0
  1381. /package/dist/{cli/Init.test.d.ts → field/link/LinkField.spec.d.ts} +0 -0
  1382. /package/dist/{cli/util/CommitMessage.test.d.ts → field/list/ListField.spec.d.ts} +0 -0
  1383. /package/dist/{core/Config.test.d.ts → field/richtext/RichTextField.spec.d.ts} +0 -0
@@ -1,2786 +0,0 @@
1
- import {
2
- A,
3
- h
4
- } from "./chunk-HSIHEWFC.js";
5
- import {
6
- K,
7
- L,
8
- T,
9
- n,
10
- o,
11
- o2,
12
- p,
13
- s,
14
- s2,
15
- t,
16
- u,
17
- y
18
- } from "./chunk-VUACWPFC.js";
19
-
20
- // node_modules/@headlessui/react/dist/hooks/use-element-size.js
21
- import { useMemo as o3, useReducer as h2 } from "react";
22
- function f(e3) {
23
- if (e3 === null) return { width: 0, height: 0 };
24
- let { width: t6, height: r5 } = e3.getBoundingClientRect();
25
- return { width: t6, height: r5 };
26
- }
27
- function d(e3, t6 = false) {
28
- let [r5, u4] = h2(() => ({}), {}), i4 = o3(() => f(e3), [e3, r5]);
29
- return n(() => {
30
- if (!e3) return;
31
- let n7 = new ResizeObserver(u4);
32
- return n7.observe(e3), () => {
33
- n7.disconnect();
34
- };
35
- }, [e3]), t6 ? { width: `${i4.width}px`, height: `${i4.height}px` } : i4;
36
- }
37
-
38
- // node_modules/@headlessui/react/dist/hooks/use-on-disappear.js
39
- import { useEffect as o4 } from "react";
40
- function m(s6, n7, l3) {
41
- let i4 = s2((t6) => {
42
- let e3 = t6.getBoundingClientRect();
43
- e3.x === 0 && e3.y === 0 && e3.width === 0 && e3.height === 0 && l3();
44
- });
45
- o4(() => {
46
- if (!s6) return;
47
- let t6 = n7 === null ? null : n7 instanceof HTMLElement ? n7 : n7.current;
48
- if (!t6) return;
49
- let e3 = o();
50
- if (typeof ResizeObserver != "undefined") {
51
- let r5 = new ResizeObserver(() => i4.current(t6));
52
- r5.observe(t6), e3.add(() => r5.disconnect());
53
- }
54
- if (typeof IntersectionObserver != "undefined") {
55
- let r5 = new IntersectionObserver(() => i4.current(t6));
56
- r5.observe(t6), e3.add(() => r5.disconnect());
57
- }
58
- return () => e3.dispose();
59
- }, [n7, i4, s6]);
60
- }
61
-
62
- // node_modules/@headlessui/react/dist/hooks/use-outside-click.js
63
- import { useCallback as T2, useRef as d2 } from "react";
64
-
65
- // node_modules/@headlessui/react/dist/utils/platform.js
66
- function t2() {
67
- return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
68
- }
69
- function i() {
70
- return /Android/gi.test(window.navigator.userAgent);
71
- }
72
- function n2() {
73
- return t2() || i();
74
- }
75
-
76
- // node_modules/@headlessui/react/dist/hooks/use-document-event.js
77
- import { useEffect as c } from "react";
78
- function i2(t6, e3, o6, n7) {
79
- let u4 = s2(o6);
80
- c(() => {
81
- if (!t6) return;
82
- function r5(m3) {
83
- u4.current(m3);
84
- }
85
- return document.addEventListener(e3, r5, n7), () => document.removeEventListener(e3, r5, n7);
86
- }, [t6, e3, n7]);
87
- }
88
-
89
- // node_modules/@headlessui/react/dist/hooks/use-is-top-layer.js
90
- import { useId as n3 } from "react";
91
-
92
- // node_modules/@headlessui/react/dist/utils/default-map.js
93
- var a = class extends Map {
94
- constructor(t6) {
95
- super();
96
- this.factory = t6;
97
- }
98
- get(t6) {
99
- let e3 = super.get(t6);
100
- return e3 === void 0 && (e3 = this.factory(t6), this.set(t6, e3)), e3;
101
- }
102
- };
103
-
104
- // node_modules/@headlessui/react/dist/utils/store.js
105
- function a2(o6, r5) {
106
- let t6 = o6(), n7 = /* @__PURE__ */ new Set();
107
- return { getSnapshot() {
108
- return t6;
109
- }, subscribe(e3) {
110
- return n7.add(e3), () => n7.delete(e3);
111
- }, dispatch(e3, ...s6) {
112
- let i4 = r5[e3].call(t6, ...s6);
113
- i4 && (t6 = i4, n7.forEach((c8) => c8()));
114
- } };
115
- }
116
-
117
- // node_modules/@headlessui/react/dist/hooks/use-store.js
118
- import { useSyncExternalStore as e } from "react";
119
- function o5(t6) {
120
- return e(t6.subscribe, t6.getSnapshot, t6.getSnapshot);
121
- }
122
-
123
- // node_modules/@headlessui/react/dist/hooks/use-is-top-layer.js
124
- var p2 = new a(() => a2(() => [], { ADD(r5) {
125
- return this.includes(r5) ? this : [...this, r5];
126
- }, REMOVE(r5) {
127
- let e3 = this.indexOf(r5);
128
- if (e3 === -1) return this;
129
- let t6 = this.slice();
130
- return t6.splice(e3, 1), t6;
131
- } }));
132
- function x(r5, e3) {
133
- let t6 = p2.get(e3), i4 = n3(), h3 = o5(t6);
134
- if (n(() => {
135
- if (r5) return t6.dispatch("ADD", i4), () => t6.dispatch("REMOVE", i4);
136
- }, [t6, r5]), !r5) return false;
137
- let s6 = h3.indexOf(i4), o6 = h3.length;
138
- return s6 === -1 && (s6 = o6, o6 += 1), s6 === o6 - 1;
139
- }
140
-
141
- // node_modules/@headlessui/react/dist/hooks/use-window-event.js
142
- import { useEffect as a3 } from "react";
143
- function s3(t6, e3, o6, n7) {
144
- let i4 = s2(o6);
145
- a3(() => {
146
- if (!t6) return;
147
- function r5(d6) {
148
- i4.current(d6);
149
- }
150
- return window.addEventListener(e3, r5, n7), () => window.removeEventListener(e3, r5, n7);
151
- }, [t6, e3, n7]);
152
- }
153
-
154
- // node_modules/@headlessui/react/dist/hooks/use-outside-click.js
155
- var E = 30;
156
- function R(p3, f4, C2) {
157
- let u4 = x(p3, "outside-click"), m3 = s2(C2), s6 = T2(function(e3, n7) {
158
- if (e3.defaultPrevented) return;
159
- let r5 = n7(e3);
160
- if (r5 === null || !r5.getRootNode().contains(r5) || !r5.isConnected) return;
161
- let h3 = function l3(o6) {
162
- return typeof o6 == "function" ? l3(o6()) : Array.isArray(o6) || o6 instanceof Set ? o6 : [o6];
163
- }(f4);
164
- for (let l3 of h3) if (l3 !== null && (l3.contains(r5) || e3.composed && e3.composedPath().includes(l3))) return;
165
- return !A(r5, h.Loose) && r5.tabIndex !== -1 && e3.preventDefault(), m3.current(e3, r5);
166
- }, [m3, f4]), i4 = d2(null);
167
- i2(u4, "pointerdown", (t6) => {
168
- var e3, n7;
169
- i4.current = ((n7 = (e3 = t6.composedPath) == null ? void 0 : e3.call(t6)) == null ? void 0 : n7[0]) || t6.target;
170
- }, true), i2(u4, "mousedown", (t6) => {
171
- var e3, n7;
172
- i4.current = ((n7 = (e3 = t6.composedPath) == null ? void 0 : e3.call(t6)) == null ? void 0 : n7[0]) || t6.target;
173
- }, true), i2(u4, "click", (t6) => {
174
- n2() || i4.current && (s6(t6, () => i4.current), i4.current = null);
175
- }, true);
176
- let a7 = d2({ x: 0, y: 0 });
177
- i2(u4, "touchstart", (t6) => {
178
- a7.current.x = t6.touches[0].clientX, a7.current.y = t6.touches[0].clientY;
179
- }, true), i2(u4, "touchend", (t6) => {
180
- let e3 = { x: t6.changedTouches[0].clientX, y: t6.changedTouches[0].clientY };
181
- if (!(Math.abs(e3.x - a7.current.x) >= E || Math.abs(e3.y - a7.current.y) >= E)) return s6(t6, () => t6.target instanceof HTMLElement ? t6.target : null);
182
- }, true), s3(u4, "blur", (t6) => s6(t6, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), true);
183
- }
184
-
185
- // node_modules/@headlessui/react/dist/hooks/use-owner.js
186
- import { useMemo as t3 } from "react";
187
- function n4(...e3) {
188
- return t3(() => u(...e3), [...e3]);
189
- }
190
-
191
- // node_modules/@headlessui/react/dist/hooks/document-overflow/adjust-scrollbar-padding.js
192
- function d3() {
193
- let r5;
194
- return { before({ doc: e3 }) {
195
- var l3;
196
- let o6 = e3.documentElement, t6 = (l3 = e3.defaultView) != null ? l3 : window;
197
- r5 = Math.max(0, t6.innerWidth - o6.clientWidth);
198
- }, after({ doc: e3, d: o6 }) {
199
- let t6 = e3.documentElement, l3 = Math.max(0, t6.clientWidth - t6.offsetWidth), n7 = Math.max(0, r5 - l3);
200
- o6.style(t6, "paddingRight", `${n7}px`);
201
- } };
202
- }
203
-
204
- // node_modules/@headlessui/react/dist/hooks/document-overflow/handle-ios-locking.js
205
- function d4() {
206
- return t2() ? { before({ doc: r5, d: n7, meta: c8 }) {
207
- function o6(a7) {
208
- return c8.containers.flatMap((l3) => l3()).some((l3) => l3.contains(a7));
209
- }
210
- n7.microTask(() => {
211
- var s6;
212
- if (window.getComputedStyle(r5.documentElement).scrollBehavior !== "auto") {
213
- let t6 = o();
214
- t6.style(r5.documentElement, "scrollBehavior", "auto"), n7.add(() => n7.microTask(() => t6.dispose()));
215
- }
216
- let a7 = (s6 = window.scrollY) != null ? s6 : window.pageYOffset, l3 = null;
217
- n7.addEventListener(r5, "click", (t6) => {
218
- if (t6.target instanceof HTMLElement) try {
219
- let e3 = t6.target.closest("a");
220
- if (!e3) return;
221
- let { hash: f4 } = new URL(e3.href), i4 = r5.querySelector(f4);
222
- i4 && !o6(i4) && (l3 = i4);
223
- } catch {
224
- }
225
- }, true), n7.addEventListener(r5, "touchstart", (t6) => {
226
- if (t6.target instanceof HTMLElement) if (o6(t6.target)) {
227
- let e3 = t6.target;
228
- for (; e3.parentElement && o6(e3.parentElement); ) e3 = e3.parentElement;
229
- n7.style(e3, "overscrollBehavior", "contain");
230
- } else n7.style(t6.target, "touchAction", "none");
231
- }), n7.addEventListener(r5, "touchmove", (t6) => {
232
- if (t6.target instanceof HTMLElement) {
233
- if (t6.target.tagName === "INPUT") return;
234
- if (o6(t6.target)) {
235
- let e3 = t6.target;
236
- for (; e3.parentElement && e3.dataset.headlessuiPortal !== "" && !(e3.scrollHeight > e3.clientHeight || e3.scrollWidth > e3.clientWidth); ) e3 = e3.parentElement;
237
- e3.dataset.headlessuiPortal === "" && t6.preventDefault();
238
- } else t6.preventDefault();
239
- }
240
- }, { passive: false }), n7.add(() => {
241
- var e3;
242
- let t6 = (e3 = window.scrollY) != null ? e3 : window.pageYOffset;
243
- a7 !== t6 && window.scrollTo(0, a7), l3 && l3.isConnected && (l3.scrollIntoView({ block: "nearest" }), l3 = null);
244
- });
245
- });
246
- } } : {};
247
- }
248
-
249
- // node_modules/@headlessui/react/dist/hooks/document-overflow/prevent-scroll.js
250
- function r() {
251
- return { before({ doc: e3, d: o6 }) {
252
- o6.style(e3.documentElement, "overflow", "hidden");
253
- } };
254
- }
255
-
256
- // node_modules/@headlessui/react/dist/hooks/document-overflow/overflow-store.js
257
- function m2(e3) {
258
- let n7 = {};
259
- for (let t6 of e3) Object.assign(n7, t6(n7));
260
- return n7;
261
- }
262
- var a4 = a2(() => /* @__PURE__ */ new Map(), { PUSH(e3, n7) {
263
- var o6;
264
- let t6 = (o6 = this.get(e3)) != null ? o6 : { doc: e3, count: 0, d: o(), meta: /* @__PURE__ */ new Set() };
265
- return t6.count++, t6.meta.add(n7), this.set(e3, t6), this;
266
- }, POP(e3, n7) {
267
- let t6 = this.get(e3);
268
- return t6 && (t6.count--, t6.meta.delete(n7)), this;
269
- }, SCROLL_PREVENT({ doc: e3, d: n7, meta: t6 }) {
270
- let o6 = { doc: e3, d: n7, meta: m2(t6) }, c8 = [d4(), d3(), r()];
271
- c8.forEach(({ before: r5 }) => r5 == null ? void 0 : r5(o6)), c8.forEach(({ after: r5 }) => r5 == null ? void 0 : r5(o6));
272
- }, SCROLL_ALLOW({ d: e3 }) {
273
- e3.dispose();
274
- }, TEARDOWN({ doc: e3 }) {
275
- this.delete(e3);
276
- } });
277
- a4.subscribe(() => {
278
- let e3 = a4.getSnapshot(), n7 = /* @__PURE__ */ new Map();
279
- for (let [t6] of e3) n7.set(t6, t6.documentElement.style.overflow);
280
- for (let t6 of e3.values()) {
281
- let o6 = n7.get(t6.doc) === "hidden", c8 = t6.count !== 0;
282
- (c8 && !o6 || !c8 && o6) && a4.dispatch(t6.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", t6), t6.count === 0 && a4.dispatch("TEARDOWN", t6);
283
- }
284
- });
285
-
286
- // node_modules/@headlessui/react/dist/hooks/document-overflow/use-document-overflow.js
287
- function a5(r5, e3, n7 = () => ({ containers: [] })) {
288
- let f4 = o5(a4), o6 = e3 ? f4.get(e3) : void 0, i4 = o6 ? o6.count > 0 : false;
289
- return n(() => {
290
- if (!(!e3 || !r5)) return a4.dispatch("PUSH", e3, n7), () => a4.dispatch("POP", e3, n7);
291
- }, [r5, e3]), i4;
292
- }
293
-
294
- // node_modules/@headlessui/react/dist/hooks/use-scroll-lock.js
295
- function f2(e3, c8, n7 = () => [document.body]) {
296
- let r5 = x(e3, "scroll-lock");
297
- a5(r5, c8, (t6) => {
298
- var o6;
299
- return { containers: [...(o6 = t6.containers) != null ? o6 : [], n7] };
300
- });
301
- }
302
-
303
- // node_modules/@headlessui/react/dist/hooks/use-transition.js
304
- import { useRef as c3, useState as S } from "react";
305
-
306
- // node_modules/@headlessui/react/dist/hooks/use-flags.js
307
- import { useCallback as r2, useState as b } from "react";
308
- function c2(u4 = 0) {
309
- let [t6, l3] = b(u4), g2 = r2((e3) => l3(e3), [t6]), s6 = r2((e3) => l3((a7) => a7 | e3), [t6]), m3 = r2((e3) => (t6 & e3) === e3, [t6]), n7 = r2((e3) => l3((a7) => a7 & ~e3), [l3]), F = r2((e3) => l3((a7) => a7 ^ e3), [l3]);
310
- return { flags: t6, setFlag: g2, addFlag: s6, hasFlag: m3, removeFlag: n7, toggleFlag: F };
311
- }
312
-
313
- // node_modules/@headlessui/react/dist/hooks/use-transition.js
314
- var T3;
315
- var b2;
316
- typeof process != "undefined" && typeof globalThis != "undefined" && typeof Element != "undefined" && ((T3 = process == null ? void 0 : process.env) == null ? void 0 : T3["NODE_ENV"]) === "test" && typeof ((b2 = Element == null ? void 0 : Element.prototype) == null ? void 0 : b2.getAnimations) == "undefined" && (Element.prototype.getAnimations = function() {
317
- return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.", "Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.", "", "Example usage:", "```js", "import { mockAnimationsApi } from 'jsdom-testing-mocks'", "mockAnimationsApi()", "```"].join(`
318
- `)), [];
319
- });
320
- var L2 = ((r5) => (r5[r5.None = 0] = "None", r5[r5.Closed = 1] = "Closed", r5[r5.Enter = 2] = "Enter", r5[r5.Leave = 4] = "Leave", r5))(L2 || {});
321
- function R2(t6) {
322
- let n7 = {};
323
- for (let e3 in t6) t6[e3] === true && (n7[`data-${e3}`] = "");
324
- return n7;
325
- }
326
- function x2(t6, n7, e3, i4) {
327
- let [r5, o6] = S(e3), { hasFlag: s6, addFlag: a7, removeFlag: l3 } = c2(t6 && r5 ? 3 : 0), u4 = c3(false), f4 = c3(false), E3 = p();
328
- return n(() => {
329
- var d6;
330
- if (t6) {
331
- if (e3 && o6(true), !n7) {
332
- e3 && a7(3);
333
- return;
334
- }
335
- return (d6 = i4 == null ? void 0 : i4.start) == null || d6.call(i4, e3), C(n7, { inFlight: u4, prepare() {
336
- f4.current ? f4.current = false : f4.current = u4.current, u4.current = true, !f4.current && (e3 ? (a7(3), l3(4)) : (a7(4), l3(2)));
337
- }, run() {
338
- f4.current ? e3 ? (l3(3), a7(4)) : (l3(4), a7(3)) : e3 ? l3(1) : a7(1);
339
- }, done() {
340
- var p3;
341
- f4.current && typeof n7.getAnimations == "function" && n7.getAnimations().length > 0 || (u4.current = false, l3(7), e3 || o6(false), (p3 = i4 == null ? void 0 : i4.end) == null || p3.call(i4, e3));
342
- } });
343
- }
344
- }, [t6, e3, n7, E3]), t6 ? [r5, { closed: s6(1), enter: s6(2), leave: s6(4), transition: s6(2) || s6(4) }] : [e3, { closed: void 0, enter: void 0, leave: void 0, transition: void 0 }];
345
- }
346
- function C(t6, { prepare: n7, run: e3, done: i4, inFlight: r5 }) {
347
- let o6 = o();
348
- return j(t6, { prepare: n7, inFlight: r5 }), o6.nextFrame(() => {
349
- e3(), o6.requestAnimationFrame(() => {
350
- o6.add(M(t6, i4));
351
- });
352
- }), o6.dispose;
353
- }
354
- function M(t6, n7) {
355
- var o6, s6;
356
- let e3 = o();
357
- if (!t6) return e3.dispose;
358
- let i4 = false;
359
- e3.add(() => {
360
- i4 = true;
361
- });
362
- let r5 = (s6 = (o6 = t6.getAnimations) == null ? void 0 : o6.call(t6).filter((a7) => a7 instanceof CSSTransition)) != null ? s6 : [];
363
- return r5.length === 0 ? (n7(), e3.dispose) : (Promise.allSettled(r5.map((a7) => a7.finished)).then(() => {
364
- i4 || n7();
365
- }), e3.dispose);
366
- }
367
- function j(t6, { inFlight: n7, prepare: e3 }) {
368
- if (n7 != null && n7.current) {
369
- e3();
370
- return;
371
- }
372
- let i4 = t6.style.transition;
373
- t6.style.transition = "none", e3(), t6.offsetHeight, t6.style.transition = i4;
374
- }
375
-
376
- // node_modules/@floating-ui/react/dist/floating-ui.react.mjs
377
- import * as React2 from "react";
378
- import { useLayoutEffect as useLayoutEffect2, useEffect as useEffect3, useRef as useRef3 } from "react";
379
-
380
- // node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
381
- function hasWindow() {
382
- return typeof window !== "undefined";
383
- }
384
- function getNodeName(node) {
385
- if (isNode(node)) {
386
- return (node.nodeName || "").toLowerCase();
387
- }
388
- return "#document";
389
- }
390
- function getWindow(node) {
391
- var _node$ownerDocument;
392
- return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
393
- }
394
- function getDocumentElement(node) {
395
- var _ref;
396
- return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
397
- }
398
- function isNode(value) {
399
- if (!hasWindow()) {
400
- return false;
401
- }
402
- return value instanceof Node || value instanceof getWindow(value).Node;
403
- }
404
- function isElement(value) {
405
- if (!hasWindow()) {
406
- return false;
407
- }
408
- return value instanceof Element || value instanceof getWindow(value).Element;
409
- }
410
- function isHTMLElement(value) {
411
- if (!hasWindow()) {
412
- return false;
413
- }
414
- return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
415
- }
416
- function isShadowRoot(value) {
417
- if (!hasWindow() || typeof ShadowRoot === "undefined") {
418
- return false;
419
- }
420
- return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
421
- }
422
- function isOverflowElement(element) {
423
- const {
424
- overflow,
425
- overflowX,
426
- overflowY,
427
- display
428
- } = getComputedStyle2(element);
429
- return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !["inline", "contents"].includes(display);
430
- }
431
- function isTableElement(element) {
432
- return ["table", "td", "th"].includes(getNodeName(element));
433
- }
434
- function isTopLayer(element) {
435
- return [":popover-open", ":modal"].some((selector) => {
436
- try {
437
- return element.matches(selector);
438
- } catch (e3) {
439
- return false;
440
- }
441
- });
442
- }
443
- function isContainingBlock(elementOrCss) {
444
- const webkit = isWebKit();
445
- const css = isElement(elementOrCss) ? getComputedStyle2(elementOrCss) : elementOrCss;
446
- return ["transform", "translate", "scale", "rotate", "perspective"].some((value) => css[value] ? css[value] !== "none" : false) || (css.containerType ? css.containerType !== "normal" : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== "none" : false) || !webkit && (css.filter ? css.filter !== "none" : false) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((value) => (css.willChange || "").includes(value)) || ["paint", "layout", "strict", "content"].some((value) => (css.contain || "").includes(value));
447
- }
448
- function getContainingBlock(element) {
449
- let currentNode = getParentNode(element);
450
- while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
451
- if (isContainingBlock(currentNode)) {
452
- return currentNode;
453
- } else if (isTopLayer(currentNode)) {
454
- return null;
455
- }
456
- currentNode = getParentNode(currentNode);
457
- }
458
- return null;
459
- }
460
- function isWebKit() {
461
- if (typeof CSS === "undefined" || !CSS.supports) return false;
462
- return CSS.supports("-webkit-backdrop-filter", "none");
463
- }
464
- function isLastTraversableNode(node) {
465
- return ["html", "body", "#document"].includes(getNodeName(node));
466
- }
467
- function getComputedStyle2(element) {
468
- return getWindow(element).getComputedStyle(element);
469
- }
470
- function getNodeScroll(element) {
471
- if (isElement(element)) {
472
- return {
473
- scrollLeft: element.scrollLeft,
474
- scrollTop: element.scrollTop
475
- };
476
- }
477
- return {
478
- scrollLeft: element.scrollX,
479
- scrollTop: element.scrollY
480
- };
481
- }
482
- function getParentNode(node) {
483
- if (getNodeName(node) === "html") {
484
- return node;
485
- }
486
- const result = (
487
- // Step into the shadow DOM of the parent of a slotted node.
488
- node.assignedSlot || // DOM Element detected.
489
- node.parentNode || // ShadowRoot detected.
490
- isShadowRoot(node) && node.host || // Fallback.
491
- getDocumentElement(node)
492
- );
493
- return isShadowRoot(result) ? result.host : result;
494
- }
495
- function getNearestOverflowAncestor(node) {
496
- const parentNode = getParentNode(node);
497
- if (isLastTraversableNode(parentNode)) {
498
- return node.ownerDocument ? node.ownerDocument.body : node.body;
499
- }
500
- if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
501
- return parentNode;
502
- }
503
- return getNearestOverflowAncestor(parentNode);
504
- }
505
- function getOverflowAncestors(node, list, traverseIframes) {
506
- var _node$ownerDocument2;
507
- if (list === void 0) {
508
- list = [];
509
- }
510
- if (traverseIframes === void 0) {
511
- traverseIframes = true;
512
- }
513
- const scrollableAncestor = getNearestOverflowAncestor(node);
514
- const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
515
- const win = getWindow(scrollableAncestor);
516
- if (isBody) {
517
- const frameElement = getFrameElement(win);
518
- return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
519
- }
520
- return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
521
- }
522
- function getFrameElement(win) {
523
- return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
524
- }
525
-
526
- // node_modules/@floating-ui/react/dist/floating-ui.react.utils.mjs
527
- function getUserAgent() {
528
- const uaData = navigator.userAgentData;
529
- if (uaData && Array.isArray(uaData.brands)) {
530
- return uaData.brands.map((_ref) => {
531
- let {
532
- brand,
533
- version
534
- } = _ref;
535
- return brand + "/" + version;
536
- }).join(" ");
537
- }
538
- return navigator.userAgent;
539
- }
540
-
541
- // node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
542
- var min = Math.min;
543
- var max = Math.max;
544
- var round = Math.round;
545
- var floor = Math.floor;
546
- var createCoords = (v2) => ({
547
- x: v2,
548
- y: v2
549
- });
550
- var oppositeSideMap = {
551
- left: "right",
552
- right: "left",
553
- bottom: "top",
554
- top: "bottom"
555
- };
556
- var oppositeAlignmentMap = {
557
- start: "end",
558
- end: "start"
559
- };
560
- function clamp(start, value, end) {
561
- return max(start, min(value, end));
562
- }
563
- function evaluate(value, param) {
564
- return typeof value === "function" ? value(param) : value;
565
- }
566
- function getSide(placement) {
567
- return placement.split("-")[0];
568
- }
569
- function getAlignment(placement) {
570
- return placement.split("-")[1];
571
- }
572
- function getOppositeAxis(axis) {
573
- return axis === "x" ? "y" : "x";
574
- }
575
- function getAxisLength(axis) {
576
- return axis === "y" ? "height" : "width";
577
- }
578
- function getSideAxis(placement) {
579
- return ["top", "bottom"].includes(getSide(placement)) ? "y" : "x";
580
- }
581
- function getAlignmentAxis(placement) {
582
- return getOppositeAxis(getSideAxis(placement));
583
- }
584
- function getAlignmentSides(placement, rects, rtl) {
585
- if (rtl === void 0) {
586
- rtl = false;
587
- }
588
- const alignment = getAlignment(placement);
589
- const alignmentAxis = getAlignmentAxis(placement);
590
- const length = getAxisLength(alignmentAxis);
591
- let mainAlignmentSide = alignmentAxis === "x" ? alignment === (rtl ? "end" : "start") ? "right" : "left" : alignment === "start" ? "bottom" : "top";
592
- if (rects.reference[length] > rects.floating[length]) {
593
- mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
594
- }
595
- return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
596
- }
597
- function getExpandedPlacements(placement) {
598
- const oppositePlacement = getOppositePlacement(placement);
599
- return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
600
- }
601
- function getOppositeAlignmentPlacement(placement) {
602
- return placement.replace(/start|end/g, (alignment) => oppositeAlignmentMap[alignment]);
603
- }
604
- function getSideList(side, isStart, rtl) {
605
- const lr = ["left", "right"];
606
- const rl = ["right", "left"];
607
- const tb = ["top", "bottom"];
608
- const bt = ["bottom", "top"];
609
- switch (side) {
610
- case "top":
611
- case "bottom":
612
- if (rtl) return isStart ? rl : lr;
613
- return isStart ? lr : rl;
614
- case "left":
615
- case "right":
616
- return isStart ? tb : bt;
617
- default:
618
- return [];
619
- }
620
- }
621
- function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
622
- const alignment = getAlignment(placement);
623
- let list = getSideList(getSide(placement), direction === "start", rtl);
624
- if (alignment) {
625
- list = list.map((side) => side + "-" + alignment);
626
- if (flipAlignment) {
627
- list = list.concat(list.map(getOppositeAlignmentPlacement));
628
- }
629
- }
630
- return list;
631
- }
632
- function getOppositePlacement(placement) {
633
- return placement.replace(/left|right|bottom|top/g, (side) => oppositeSideMap[side]);
634
- }
635
- function expandPaddingObject(padding) {
636
- return {
637
- top: 0,
638
- right: 0,
639
- bottom: 0,
640
- left: 0,
641
- ...padding
642
- };
643
- }
644
- function getPaddingObject(padding) {
645
- return typeof padding !== "number" ? expandPaddingObject(padding) : {
646
- top: padding,
647
- right: padding,
648
- bottom: padding,
649
- left: padding
650
- };
651
- }
652
- function rectToClientRect(rect) {
653
- const {
654
- x: x3,
655
- y: y4,
656
- width,
657
- height
658
- } = rect;
659
- return {
660
- width,
661
- height,
662
- top: y4,
663
- left: x3,
664
- right: x3 + width,
665
- bottom: y4 + height,
666
- x: x3,
667
- y: y4
668
- };
669
- }
670
-
671
- // node_modules/@floating-ui/react/dist/floating-ui.react.mjs
672
- import * as ReactDOM2 from "react-dom";
673
-
674
- // node_modules/@floating-ui/react/node_modules/@floating-ui/react-dom/node_modules/@floating-ui/dom/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
675
- function computeCoordsFromPlacement(_ref, placement, rtl) {
676
- let {
677
- reference,
678
- floating
679
- } = _ref;
680
- const sideAxis = getSideAxis(placement);
681
- const alignmentAxis = getAlignmentAxis(placement);
682
- const alignLength = getAxisLength(alignmentAxis);
683
- const side = getSide(placement);
684
- const isVertical = sideAxis === "y";
685
- const commonX = reference.x + reference.width / 2 - floating.width / 2;
686
- const commonY = reference.y + reference.height / 2 - floating.height / 2;
687
- const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
688
- let coords;
689
- switch (side) {
690
- case "top":
691
- coords = {
692
- x: commonX,
693
- y: reference.y - floating.height
694
- };
695
- break;
696
- case "bottom":
697
- coords = {
698
- x: commonX,
699
- y: reference.y + reference.height
700
- };
701
- break;
702
- case "right":
703
- coords = {
704
- x: reference.x + reference.width,
705
- y: commonY
706
- };
707
- break;
708
- case "left":
709
- coords = {
710
- x: reference.x - floating.width,
711
- y: commonY
712
- };
713
- break;
714
- default:
715
- coords = {
716
- x: reference.x,
717
- y: reference.y
718
- };
719
- }
720
- switch (getAlignment(placement)) {
721
- case "start":
722
- coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
723
- break;
724
- case "end":
725
- coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
726
- break;
727
- }
728
- return coords;
729
- }
730
- var computePosition = async (reference, floating, config) => {
731
- const {
732
- placement = "bottom",
733
- strategy = "absolute",
734
- middleware = [],
735
- platform: platform2
736
- } = config;
737
- const validMiddleware = middleware.filter(Boolean);
738
- const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(floating));
739
- let rects = await platform2.getElementRects({
740
- reference,
741
- floating,
742
- strategy
743
- });
744
- let {
745
- x: x3,
746
- y: y4
747
- } = computeCoordsFromPlacement(rects, placement, rtl);
748
- let statefulPlacement = placement;
749
- let middlewareData = {};
750
- let resetCount = 0;
751
- for (let i4 = 0; i4 < validMiddleware.length; i4++) {
752
- const {
753
- name,
754
- fn
755
- } = validMiddleware[i4];
756
- const {
757
- x: nextX,
758
- y: nextY,
759
- data,
760
- reset
761
- } = await fn({
762
- x: x3,
763
- y: y4,
764
- initialPlacement: placement,
765
- placement: statefulPlacement,
766
- strategy,
767
- middlewareData,
768
- rects,
769
- platform: platform2,
770
- elements: {
771
- reference,
772
- floating
773
- }
774
- });
775
- x3 = nextX != null ? nextX : x3;
776
- y4 = nextY != null ? nextY : y4;
777
- middlewareData = {
778
- ...middlewareData,
779
- [name]: {
780
- ...middlewareData[name],
781
- ...data
782
- }
783
- };
784
- if (reset && resetCount <= 50) {
785
- resetCount++;
786
- if (typeof reset === "object") {
787
- if (reset.placement) {
788
- statefulPlacement = reset.placement;
789
- }
790
- if (reset.rects) {
791
- rects = reset.rects === true ? await platform2.getElementRects({
792
- reference,
793
- floating,
794
- strategy
795
- }) : reset.rects;
796
- }
797
- ({
798
- x: x3,
799
- y: y4
800
- } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
801
- }
802
- i4 = -1;
803
- }
804
- }
805
- return {
806
- x: x3,
807
- y: y4,
808
- placement: statefulPlacement,
809
- strategy,
810
- middlewareData
811
- };
812
- };
813
- async function detectOverflow(state, options) {
814
- var _await$platform$isEle;
815
- if (options === void 0) {
816
- options = {};
817
- }
818
- const {
819
- x: x3,
820
- y: y4,
821
- platform: platform2,
822
- rects,
823
- elements,
824
- strategy
825
- } = state;
826
- const {
827
- boundary = "clippingAncestors",
828
- rootBoundary = "viewport",
829
- elementContext = "floating",
830
- altBoundary = false,
831
- padding = 0
832
- } = evaluate(options, state);
833
- const paddingObject = getPaddingObject(padding);
834
- const altContext = elementContext === "floating" ? "reference" : "floating";
835
- const element = elements[altBoundary ? altContext : elementContext];
836
- const clippingClientRect = rectToClientRect(await platform2.getClippingRect({
837
- element: ((_await$platform$isEle = await (platform2.isElement == null ? void 0 : platform2.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || await (platform2.getDocumentElement == null ? void 0 : platform2.getDocumentElement(elements.floating)),
838
- boundary,
839
- rootBoundary,
840
- strategy
841
- }));
842
- const rect = elementContext === "floating" ? {
843
- x: x3,
844
- y: y4,
845
- width: rects.floating.width,
846
- height: rects.floating.height
847
- } : rects.reference;
848
- const offsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(elements.floating));
849
- const offsetScale = await (platform2.isElement == null ? void 0 : platform2.isElement(offsetParent)) ? await (platform2.getScale == null ? void 0 : platform2.getScale(offsetParent)) || {
850
- x: 1,
851
- y: 1
852
- } : {
853
- x: 1,
854
- y: 1
855
- };
856
- const elementClientRect = rectToClientRect(platform2.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform2.convertOffsetParentRelativeRectToViewportRelativeRect({
857
- elements,
858
- rect,
859
- offsetParent,
860
- strategy
861
- }) : rect);
862
- return {
863
- top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
864
- bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
865
- left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
866
- right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
867
- };
868
- }
869
- var flip = function(options) {
870
- if (options === void 0) {
871
- options = {};
872
- }
873
- return {
874
- name: "flip",
875
- options,
876
- async fn(state) {
877
- var _middlewareData$arrow, _middlewareData$flip;
878
- const {
879
- placement,
880
- middlewareData,
881
- rects,
882
- initialPlacement,
883
- platform: platform2,
884
- elements
885
- } = state;
886
- const {
887
- mainAxis: checkMainAxis = true,
888
- crossAxis: checkCrossAxis = true,
889
- fallbackPlacements: specifiedFallbackPlacements,
890
- fallbackStrategy = "bestFit",
891
- fallbackAxisSideDirection = "none",
892
- flipAlignment = true,
893
- ...detectOverflowOptions
894
- } = evaluate(options, state);
895
- if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
896
- return {};
897
- }
898
- const side = getSide(placement);
899
- const initialSideAxis = getSideAxis(initialPlacement);
900
- const isBasePlacement = getSide(initialPlacement) === initialPlacement;
901
- const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating));
902
- const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
903
- const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== "none";
904
- if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
905
- fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
906
- }
907
- const placements2 = [initialPlacement, ...fallbackPlacements];
908
- const overflow = await detectOverflow(state, detectOverflowOptions);
909
- const overflows = [];
910
- let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
911
- if (checkMainAxis) {
912
- overflows.push(overflow[side]);
913
- }
914
- if (checkCrossAxis) {
915
- const sides2 = getAlignmentSides(placement, rects, rtl);
916
- overflows.push(overflow[sides2[0]], overflow[sides2[1]]);
917
- }
918
- overflowsData = [...overflowsData, {
919
- placement,
920
- overflows
921
- }];
922
- if (!overflows.every((side2) => side2 <= 0)) {
923
- var _middlewareData$flip2, _overflowsData$filter;
924
- const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
925
- const nextPlacement = placements2[nextIndex];
926
- if (nextPlacement) {
927
- return {
928
- data: {
929
- index: nextIndex,
930
- overflows: overflowsData
931
- },
932
- reset: {
933
- placement: nextPlacement
934
- }
935
- };
936
- }
937
- let resetPlacement = (_overflowsData$filter = overflowsData.filter((d6) => d6.overflows[0] <= 0).sort((a7, b3) => a7.overflows[1] - b3.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
938
- if (!resetPlacement) {
939
- switch (fallbackStrategy) {
940
- case "bestFit": {
941
- var _overflowsData$filter2;
942
- const placement2 = (_overflowsData$filter2 = overflowsData.filter((d6) => {
943
- if (hasFallbackAxisSideDirection) {
944
- const currentSideAxis = getSideAxis(d6.placement);
945
- return currentSideAxis === initialSideAxis || // Create a bias to the `y` side axis due to horizontal
946
- // reading directions favoring greater width.
947
- currentSideAxis === "y";
948
- }
949
- return true;
950
- }).map((d6) => [d6.placement, d6.overflows.filter((overflow2) => overflow2 > 0).reduce((acc, overflow2) => acc + overflow2, 0)]).sort((a7, b3) => a7[1] - b3[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
951
- if (placement2) {
952
- resetPlacement = placement2;
953
- }
954
- break;
955
- }
956
- case "initialPlacement":
957
- resetPlacement = initialPlacement;
958
- break;
959
- }
960
- }
961
- if (placement !== resetPlacement) {
962
- return {
963
- reset: {
964
- placement: resetPlacement
965
- }
966
- };
967
- }
968
- }
969
- return {};
970
- }
971
- };
972
- };
973
- async function convertValueToCoords(state, options) {
974
- const {
975
- placement,
976
- platform: platform2,
977
- elements
978
- } = state;
979
- const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating));
980
- const side = getSide(placement);
981
- const alignment = getAlignment(placement);
982
- const isVertical = getSideAxis(placement) === "y";
983
- const mainAxisMulti = ["left", "top"].includes(side) ? -1 : 1;
984
- const crossAxisMulti = rtl && isVertical ? -1 : 1;
985
- const rawValue = evaluate(options, state);
986
- let {
987
- mainAxis,
988
- crossAxis,
989
- alignmentAxis
990
- } = typeof rawValue === "number" ? {
991
- mainAxis: rawValue,
992
- crossAxis: 0,
993
- alignmentAxis: null
994
- } : {
995
- mainAxis: rawValue.mainAxis || 0,
996
- crossAxis: rawValue.crossAxis || 0,
997
- alignmentAxis: rawValue.alignmentAxis
998
- };
999
- if (alignment && typeof alignmentAxis === "number") {
1000
- crossAxis = alignment === "end" ? alignmentAxis * -1 : alignmentAxis;
1001
- }
1002
- return isVertical ? {
1003
- x: crossAxis * crossAxisMulti,
1004
- y: mainAxis * mainAxisMulti
1005
- } : {
1006
- x: mainAxis * mainAxisMulti,
1007
- y: crossAxis * crossAxisMulti
1008
- };
1009
- }
1010
- var offset = function(options) {
1011
- if (options === void 0) {
1012
- options = 0;
1013
- }
1014
- return {
1015
- name: "offset",
1016
- options,
1017
- async fn(state) {
1018
- var _middlewareData$offse, _middlewareData$arrow;
1019
- const {
1020
- x: x3,
1021
- y: y4,
1022
- placement,
1023
- middlewareData
1024
- } = state;
1025
- const diffCoords = await convertValueToCoords(state, options);
1026
- if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
1027
- return {};
1028
- }
1029
- return {
1030
- x: x3 + diffCoords.x,
1031
- y: y4 + diffCoords.y,
1032
- data: {
1033
- ...diffCoords,
1034
- placement
1035
- }
1036
- };
1037
- }
1038
- };
1039
- };
1040
- var shift = function(options) {
1041
- if (options === void 0) {
1042
- options = {};
1043
- }
1044
- return {
1045
- name: "shift",
1046
- options,
1047
- async fn(state) {
1048
- const {
1049
- x: x3,
1050
- y: y4,
1051
- placement
1052
- } = state;
1053
- const {
1054
- mainAxis: checkMainAxis = true,
1055
- crossAxis: checkCrossAxis = false,
1056
- limiter = {
1057
- fn: (_ref) => {
1058
- let {
1059
- x: x4,
1060
- y: y5
1061
- } = _ref;
1062
- return {
1063
- x: x4,
1064
- y: y5
1065
- };
1066
- }
1067
- },
1068
- ...detectOverflowOptions
1069
- } = evaluate(options, state);
1070
- const coords = {
1071
- x: x3,
1072
- y: y4
1073
- };
1074
- const overflow = await detectOverflow(state, detectOverflowOptions);
1075
- const crossAxis = getSideAxis(getSide(placement));
1076
- const mainAxis = getOppositeAxis(crossAxis);
1077
- let mainAxisCoord = coords[mainAxis];
1078
- let crossAxisCoord = coords[crossAxis];
1079
- if (checkMainAxis) {
1080
- const minSide = mainAxis === "y" ? "top" : "left";
1081
- const maxSide = mainAxis === "y" ? "bottom" : "right";
1082
- const min2 = mainAxisCoord + overflow[minSide];
1083
- const max2 = mainAxisCoord - overflow[maxSide];
1084
- mainAxisCoord = clamp(min2, mainAxisCoord, max2);
1085
- }
1086
- if (checkCrossAxis) {
1087
- const minSide = crossAxis === "y" ? "top" : "left";
1088
- const maxSide = crossAxis === "y" ? "bottom" : "right";
1089
- const min2 = crossAxisCoord + overflow[minSide];
1090
- const max2 = crossAxisCoord - overflow[maxSide];
1091
- crossAxisCoord = clamp(min2, crossAxisCoord, max2);
1092
- }
1093
- const limitedCoords = limiter.fn({
1094
- ...state,
1095
- [mainAxis]: mainAxisCoord,
1096
- [crossAxis]: crossAxisCoord
1097
- });
1098
- return {
1099
- ...limitedCoords,
1100
- data: {
1101
- x: limitedCoords.x - x3,
1102
- y: limitedCoords.y - y4,
1103
- enabled: {
1104
- [mainAxis]: checkMainAxis,
1105
- [crossAxis]: checkCrossAxis
1106
- }
1107
- }
1108
- };
1109
- }
1110
- };
1111
- };
1112
- var size = function(options) {
1113
- if (options === void 0) {
1114
- options = {};
1115
- }
1116
- return {
1117
- name: "size",
1118
- options,
1119
- async fn(state) {
1120
- var _state$middlewareData, _state$middlewareData2;
1121
- const {
1122
- placement,
1123
- rects,
1124
- platform: platform2,
1125
- elements
1126
- } = state;
1127
- const {
1128
- apply = () => {
1129
- },
1130
- ...detectOverflowOptions
1131
- } = evaluate(options, state);
1132
- const overflow = await detectOverflow(state, detectOverflowOptions);
1133
- const side = getSide(placement);
1134
- const alignment = getAlignment(placement);
1135
- const isYAxis = getSideAxis(placement) === "y";
1136
- const {
1137
- width,
1138
- height
1139
- } = rects.floating;
1140
- let heightSide;
1141
- let widthSide;
1142
- if (side === "top" || side === "bottom") {
1143
- heightSide = side;
1144
- widthSide = alignment === (await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating)) ? "start" : "end") ? "left" : "right";
1145
- } else {
1146
- widthSide = side;
1147
- heightSide = alignment === "end" ? "top" : "bottom";
1148
- }
1149
- const maximumClippingHeight = height - overflow.top - overflow.bottom;
1150
- const maximumClippingWidth = width - overflow.left - overflow.right;
1151
- const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
1152
- const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
1153
- const noShift = !state.middlewareData.shift;
1154
- let availableHeight = overflowAvailableHeight;
1155
- let availableWidth = overflowAvailableWidth;
1156
- if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x) {
1157
- availableWidth = maximumClippingWidth;
1158
- }
1159
- if ((_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y) {
1160
- availableHeight = maximumClippingHeight;
1161
- }
1162
- if (noShift && !alignment) {
1163
- const xMin = max(overflow.left, 0);
1164
- const xMax = max(overflow.right, 0);
1165
- const yMin = max(overflow.top, 0);
1166
- const yMax = max(overflow.bottom, 0);
1167
- if (isYAxis) {
1168
- availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));
1169
- } else {
1170
- availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
1171
- }
1172
- }
1173
- await apply({
1174
- ...state,
1175
- availableWidth,
1176
- availableHeight
1177
- });
1178
- const nextDimensions = await platform2.getDimensions(elements.floating);
1179
- if (width !== nextDimensions.width || height !== nextDimensions.height) {
1180
- return {
1181
- reset: {
1182
- rects: true
1183
- }
1184
- };
1185
- }
1186
- return {};
1187
- }
1188
- };
1189
- };
1190
-
1191
- // node_modules/@floating-ui/react/node_modules/@floating-ui/react-dom/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
1192
- function getCssDimensions(element) {
1193
- const css = getComputedStyle2(element);
1194
- let width = parseFloat(css.width) || 0;
1195
- let height = parseFloat(css.height) || 0;
1196
- const hasOffset = isHTMLElement(element);
1197
- const offsetWidth = hasOffset ? element.offsetWidth : width;
1198
- const offsetHeight = hasOffset ? element.offsetHeight : height;
1199
- const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
1200
- if (shouldFallback) {
1201
- width = offsetWidth;
1202
- height = offsetHeight;
1203
- }
1204
- return {
1205
- width,
1206
- height,
1207
- $: shouldFallback
1208
- };
1209
- }
1210
- function unwrapElement(element) {
1211
- return !isElement(element) ? element.contextElement : element;
1212
- }
1213
- function getScale(element) {
1214
- const domElement = unwrapElement(element);
1215
- if (!isHTMLElement(domElement)) {
1216
- return createCoords(1);
1217
- }
1218
- const rect = domElement.getBoundingClientRect();
1219
- const {
1220
- width,
1221
- height,
1222
- $
1223
- } = getCssDimensions(domElement);
1224
- let x3 = ($ ? round(rect.width) : rect.width) / width;
1225
- let y4 = ($ ? round(rect.height) : rect.height) / height;
1226
- if (!x3 || !Number.isFinite(x3)) {
1227
- x3 = 1;
1228
- }
1229
- if (!y4 || !Number.isFinite(y4)) {
1230
- y4 = 1;
1231
- }
1232
- return {
1233
- x: x3,
1234
- y: y4
1235
- };
1236
- }
1237
- var noOffsets = /* @__PURE__ */ createCoords(0);
1238
- function getVisualOffsets(element) {
1239
- const win = getWindow(element);
1240
- if (!isWebKit() || !win.visualViewport) {
1241
- return noOffsets;
1242
- }
1243
- return {
1244
- x: win.visualViewport.offsetLeft,
1245
- y: win.visualViewport.offsetTop
1246
- };
1247
- }
1248
- function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
1249
- if (isFixed === void 0) {
1250
- isFixed = false;
1251
- }
1252
- if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
1253
- return false;
1254
- }
1255
- return isFixed;
1256
- }
1257
- function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
1258
- if (includeScale === void 0) {
1259
- includeScale = false;
1260
- }
1261
- if (isFixedStrategy === void 0) {
1262
- isFixedStrategy = false;
1263
- }
1264
- const clientRect = element.getBoundingClientRect();
1265
- const domElement = unwrapElement(element);
1266
- let scale = createCoords(1);
1267
- if (includeScale) {
1268
- if (offsetParent) {
1269
- if (isElement(offsetParent)) {
1270
- scale = getScale(offsetParent);
1271
- }
1272
- } else {
1273
- scale = getScale(element);
1274
- }
1275
- }
1276
- const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
1277
- let x3 = (clientRect.left + visualOffsets.x) / scale.x;
1278
- let y4 = (clientRect.top + visualOffsets.y) / scale.y;
1279
- let width = clientRect.width / scale.x;
1280
- let height = clientRect.height / scale.y;
1281
- if (domElement) {
1282
- const win = getWindow(domElement);
1283
- const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
1284
- let currentWin = win;
1285
- let currentIFrame = getFrameElement(currentWin);
1286
- while (currentIFrame && offsetParent && offsetWin !== currentWin) {
1287
- const iframeScale = getScale(currentIFrame);
1288
- const iframeRect = currentIFrame.getBoundingClientRect();
1289
- const css = getComputedStyle2(currentIFrame);
1290
- const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
1291
- const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
1292
- x3 *= iframeScale.x;
1293
- y4 *= iframeScale.y;
1294
- width *= iframeScale.x;
1295
- height *= iframeScale.y;
1296
- x3 += left;
1297
- y4 += top;
1298
- currentWin = getWindow(currentIFrame);
1299
- currentIFrame = getFrameElement(currentWin);
1300
- }
1301
- }
1302
- return rectToClientRect({
1303
- width,
1304
- height,
1305
- x: x3,
1306
- y: y4
1307
- });
1308
- }
1309
- function getWindowScrollBarX(element, rect) {
1310
- const leftScroll = getNodeScroll(element).scrollLeft;
1311
- if (!rect) {
1312
- return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
1313
- }
1314
- return rect.left + leftScroll;
1315
- }
1316
- function getHTMLOffset(documentElement, scroll, ignoreScrollbarX) {
1317
- if (ignoreScrollbarX === void 0) {
1318
- ignoreScrollbarX = false;
1319
- }
1320
- const htmlRect = documentElement.getBoundingClientRect();
1321
- const x3 = htmlRect.left + scroll.scrollLeft - (ignoreScrollbarX ? 0 : (
1322
- // RTL <body> scrollbar.
1323
- getWindowScrollBarX(documentElement, htmlRect)
1324
- ));
1325
- const y4 = htmlRect.top + scroll.scrollTop;
1326
- return {
1327
- x: x3,
1328
- y: y4
1329
- };
1330
- }
1331
- function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
1332
- let {
1333
- elements,
1334
- rect,
1335
- offsetParent,
1336
- strategy
1337
- } = _ref;
1338
- const isFixed = strategy === "fixed";
1339
- const documentElement = getDocumentElement(offsetParent);
1340
- const topLayer = elements ? isTopLayer(elements.floating) : false;
1341
- if (offsetParent === documentElement || topLayer && isFixed) {
1342
- return rect;
1343
- }
1344
- let scroll = {
1345
- scrollLeft: 0,
1346
- scrollTop: 0
1347
- };
1348
- let scale = createCoords(1);
1349
- const offsets = createCoords(0);
1350
- const isOffsetParentAnElement = isHTMLElement(offsetParent);
1351
- if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
1352
- if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
1353
- scroll = getNodeScroll(offsetParent);
1354
- }
1355
- if (isHTMLElement(offsetParent)) {
1356
- const offsetRect = getBoundingClientRect(offsetParent);
1357
- scale = getScale(offsetParent);
1358
- offsets.x = offsetRect.x + offsetParent.clientLeft;
1359
- offsets.y = offsetRect.y + offsetParent.clientTop;
1360
- }
1361
- }
1362
- const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll, true) : createCoords(0);
1363
- return {
1364
- width: rect.width * scale.x,
1365
- height: rect.height * scale.y,
1366
- x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,
1367
- y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y
1368
- };
1369
- }
1370
- function getClientRects(element) {
1371
- return Array.from(element.getClientRects());
1372
- }
1373
- function getDocumentRect(element) {
1374
- const html = getDocumentElement(element);
1375
- const scroll = getNodeScroll(element);
1376
- const body = element.ownerDocument.body;
1377
- const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
1378
- const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
1379
- let x3 = -scroll.scrollLeft + getWindowScrollBarX(element);
1380
- const y4 = -scroll.scrollTop;
1381
- if (getComputedStyle2(body).direction === "rtl") {
1382
- x3 += max(html.clientWidth, body.clientWidth) - width;
1383
- }
1384
- return {
1385
- width,
1386
- height,
1387
- x: x3,
1388
- y: y4
1389
- };
1390
- }
1391
- function getViewportRect(element, strategy) {
1392
- const win = getWindow(element);
1393
- const html = getDocumentElement(element);
1394
- const visualViewport = win.visualViewport;
1395
- let width = html.clientWidth;
1396
- let height = html.clientHeight;
1397
- let x3 = 0;
1398
- let y4 = 0;
1399
- if (visualViewport) {
1400
- width = visualViewport.width;
1401
- height = visualViewport.height;
1402
- const visualViewportBased = isWebKit();
1403
- if (!visualViewportBased || visualViewportBased && strategy === "fixed") {
1404
- x3 = visualViewport.offsetLeft;
1405
- y4 = visualViewport.offsetTop;
1406
- }
1407
- }
1408
- return {
1409
- width,
1410
- height,
1411
- x: x3,
1412
- y: y4
1413
- };
1414
- }
1415
- function getInnerBoundingClientRect(element, strategy) {
1416
- const clientRect = getBoundingClientRect(element, true, strategy === "fixed");
1417
- const top = clientRect.top + element.clientTop;
1418
- const left = clientRect.left + element.clientLeft;
1419
- const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
1420
- const width = element.clientWidth * scale.x;
1421
- const height = element.clientHeight * scale.y;
1422
- const x3 = left * scale.x;
1423
- const y4 = top * scale.y;
1424
- return {
1425
- width,
1426
- height,
1427
- x: x3,
1428
- y: y4
1429
- };
1430
- }
1431
- function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
1432
- let rect;
1433
- if (clippingAncestor === "viewport") {
1434
- rect = getViewportRect(element, strategy);
1435
- } else if (clippingAncestor === "document") {
1436
- rect = getDocumentRect(getDocumentElement(element));
1437
- } else if (isElement(clippingAncestor)) {
1438
- rect = getInnerBoundingClientRect(clippingAncestor, strategy);
1439
- } else {
1440
- const visualOffsets = getVisualOffsets(element);
1441
- rect = {
1442
- x: clippingAncestor.x - visualOffsets.x,
1443
- y: clippingAncestor.y - visualOffsets.y,
1444
- width: clippingAncestor.width,
1445
- height: clippingAncestor.height
1446
- };
1447
- }
1448
- return rectToClientRect(rect);
1449
- }
1450
- function hasFixedPositionAncestor(element, stopNode) {
1451
- const parentNode = getParentNode(element);
1452
- if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
1453
- return false;
1454
- }
1455
- return getComputedStyle2(parentNode).position === "fixed" || hasFixedPositionAncestor(parentNode, stopNode);
1456
- }
1457
- function getClippingElementAncestors(element, cache) {
1458
- const cachedResult = cache.get(element);
1459
- if (cachedResult) {
1460
- return cachedResult;
1461
- }
1462
- let result = getOverflowAncestors(element, [], false).filter((el) => isElement(el) && getNodeName(el) !== "body");
1463
- let currentContainingBlockComputedStyle = null;
1464
- const elementIsFixed = getComputedStyle2(element).position === "fixed";
1465
- let currentNode = elementIsFixed ? getParentNode(element) : element;
1466
- while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
1467
- const computedStyle = getComputedStyle2(currentNode);
1468
- const currentNodeIsContaining = isContainingBlock(currentNode);
1469
- if (!currentNodeIsContaining && computedStyle.position === "fixed") {
1470
- currentContainingBlockComputedStyle = null;
1471
- }
1472
- const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && ["absolute", "fixed"].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
1473
- if (shouldDropCurrentNode) {
1474
- result = result.filter((ancestor) => ancestor !== currentNode);
1475
- } else {
1476
- currentContainingBlockComputedStyle = computedStyle;
1477
- }
1478
- currentNode = getParentNode(currentNode);
1479
- }
1480
- cache.set(element, result);
1481
- return result;
1482
- }
1483
- function getClippingRect(_ref) {
1484
- let {
1485
- element,
1486
- boundary,
1487
- rootBoundary,
1488
- strategy
1489
- } = _ref;
1490
- const elementClippingAncestors = boundary === "clippingAncestors" ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
1491
- const clippingAncestors = [...elementClippingAncestors, rootBoundary];
1492
- const firstClippingAncestor = clippingAncestors[0];
1493
- const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
1494
- const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
1495
- accRect.top = max(rect.top, accRect.top);
1496
- accRect.right = min(rect.right, accRect.right);
1497
- accRect.bottom = min(rect.bottom, accRect.bottom);
1498
- accRect.left = max(rect.left, accRect.left);
1499
- return accRect;
1500
- }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
1501
- return {
1502
- width: clippingRect.right - clippingRect.left,
1503
- height: clippingRect.bottom - clippingRect.top,
1504
- x: clippingRect.left,
1505
- y: clippingRect.top
1506
- };
1507
- }
1508
- function getDimensions(element) {
1509
- const {
1510
- width,
1511
- height
1512
- } = getCssDimensions(element);
1513
- return {
1514
- width,
1515
- height
1516
- };
1517
- }
1518
- function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
1519
- const isOffsetParentAnElement = isHTMLElement(offsetParent);
1520
- const documentElement = getDocumentElement(offsetParent);
1521
- const isFixed = strategy === "fixed";
1522
- const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
1523
- let scroll = {
1524
- scrollLeft: 0,
1525
- scrollTop: 0
1526
- };
1527
- const offsets = createCoords(0);
1528
- if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
1529
- if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
1530
- scroll = getNodeScroll(offsetParent);
1531
- }
1532
- if (isOffsetParentAnElement) {
1533
- const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
1534
- offsets.x = offsetRect.x + offsetParent.clientLeft;
1535
- offsets.y = offsetRect.y + offsetParent.clientTop;
1536
- } else if (documentElement) {
1537
- offsets.x = getWindowScrollBarX(documentElement);
1538
- }
1539
- }
1540
- const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
1541
- const x3 = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
1542
- const y4 = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
1543
- return {
1544
- x: x3,
1545
- y: y4,
1546
- width: rect.width,
1547
- height: rect.height
1548
- };
1549
- }
1550
- function isStaticPositioned(element) {
1551
- return getComputedStyle2(element).position === "static";
1552
- }
1553
- function getTrueOffsetParent(element, polyfill) {
1554
- if (!isHTMLElement(element) || getComputedStyle2(element).position === "fixed") {
1555
- return null;
1556
- }
1557
- if (polyfill) {
1558
- return polyfill(element);
1559
- }
1560
- let rawOffsetParent = element.offsetParent;
1561
- if (getDocumentElement(element) === rawOffsetParent) {
1562
- rawOffsetParent = rawOffsetParent.ownerDocument.body;
1563
- }
1564
- return rawOffsetParent;
1565
- }
1566
- function getOffsetParent(element, polyfill) {
1567
- const win = getWindow(element);
1568
- if (isTopLayer(element)) {
1569
- return win;
1570
- }
1571
- if (!isHTMLElement(element)) {
1572
- let svgOffsetParent = getParentNode(element);
1573
- while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
1574
- if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
1575
- return svgOffsetParent;
1576
- }
1577
- svgOffsetParent = getParentNode(svgOffsetParent);
1578
- }
1579
- return win;
1580
- }
1581
- let offsetParent = getTrueOffsetParent(element, polyfill);
1582
- while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
1583
- offsetParent = getTrueOffsetParent(offsetParent, polyfill);
1584
- }
1585
- if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
1586
- return win;
1587
- }
1588
- return offsetParent || getContainingBlock(element) || win;
1589
- }
1590
- var getElementRects = async function(data) {
1591
- const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
1592
- const getDimensionsFn = this.getDimensions;
1593
- const floatingDimensions = await getDimensionsFn(data.floating);
1594
- return {
1595
- reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
1596
- floating: {
1597
- x: 0,
1598
- y: 0,
1599
- width: floatingDimensions.width,
1600
- height: floatingDimensions.height
1601
- }
1602
- };
1603
- };
1604
- function isRTL(element) {
1605
- return getComputedStyle2(element).direction === "rtl";
1606
- }
1607
- var platform = {
1608
- convertOffsetParentRelativeRectToViewportRelativeRect,
1609
- getDocumentElement,
1610
- getClippingRect,
1611
- getOffsetParent,
1612
- getElementRects,
1613
- getClientRects,
1614
- getDimensions,
1615
- getScale,
1616
- isElement,
1617
- isRTL
1618
- };
1619
- function rectsAreEqual(a7, b3) {
1620
- return a7.x === b3.x && a7.y === b3.y && a7.width === b3.width && a7.height === b3.height;
1621
- }
1622
- function observeMove(element, onMove) {
1623
- let io = null;
1624
- let timeoutId;
1625
- const root = getDocumentElement(element);
1626
- function cleanup() {
1627
- var _io;
1628
- clearTimeout(timeoutId);
1629
- (_io = io) == null || _io.disconnect();
1630
- io = null;
1631
- }
1632
- function refresh(skip, threshold) {
1633
- if (skip === void 0) {
1634
- skip = false;
1635
- }
1636
- if (threshold === void 0) {
1637
- threshold = 1;
1638
- }
1639
- cleanup();
1640
- const elementRectForRootMargin = element.getBoundingClientRect();
1641
- const {
1642
- left,
1643
- top,
1644
- width,
1645
- height
1646
- } = elementRectForRootMargin;
1647
- if (!skip) {
1648
- onMove();
1649
- }
1650
- if (!width || !height) {
1651
- return;
1652
- }
1653
- const insetTop = floor(top);
1654
- const insetRight = floor(root.clientWidth - (left + width));
1655
- const insetBottom = floor(root.clientHeight - (top + height));
1656
- const insetLeft = floor(left);
1657
- const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
1658
- const options = {
1659
- rootMargin,
1660
- threshold: max(0, min(1, threshold)) || 1
1661
- };
1662
- let isFirstUpdate = true;
1663
- function handleObserve(entries) {
1664
- const ratio = entries[0].intersectionRatio;
1665
- if (ratio !== threshold) {
1666
- if (!isFirstUpdate) {
1667
- return refresh();
1668
- }
1669
- if (!ratio) {
1670
- timeoutId = setTimeout(() => {
1671
- refresh(false, 1e-7);
1672
- }, 1e3);
1673
- } else {
1674
- refresh(false, ratio);
1675
- }
1676
- }
1677
- if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
1678
- refresh();
1679
- }
1680
- isFirstUpdate = false;
1681
- }
1682
- try {
1683
- io = new IntersectionObserver(handleObserve, {
1684
- ...options,
1685
- // Handle <iframe>s
1686
- root: root.ownerDocument
1687
- });
1688
- } catch (e3) {
1689
- io = new IntersectionObserver(handleObserve, options);
1690
- }
1691
- io.observe(element);
1692
- }
1693
- refresh(true);
1694
- return cleanup;
1695
- }
1696
- function autoUpdate(reference, floating, update, options) {
1697
- if (options === void 0) {
1698
- options = {};
1699
- }
1700
- const {
1701
- ancestorScroll = true,
1702
- ancestorResize = true,
1703
- elementResize = typeof ResizeObserver === "function",
1704
- layoutShift = typeof IntersectionObserver === "function",
1705
- animationFrame = false
1706
- } = options;
1707
- const referenceEl = unwrapElement(reference);
1708
- const ancestors = ancestorScroll || ancestorResize ? [...referenceEl ? getOverflowAncestors(referenceEl) : [], ...getOverflowAncestors(floating)] : [];
1709
- ancestors.forEach((ancestor) => {
1710
- ancestorScroll && ancestor.addEventListener("scroll", update, {
1711
- passive: true
1712
- });
1713
- ancestorResize && ancestor.addEventListener("resize", update);
1714
- });
1715
- const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;
1716
- let reobserveFrame = -1;
1717
- let resizeObserver = null;
1718
- if (elementResize) {
1719
- resizeObserver = new ResizeObserver((_ref) => {
1720
- let [firstEntry] = _ref;
1721
- if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {
1722
- resizeObserver.unobserve(floating);
1723
- cancelAnimationFrame(reobserveFrame);
1724
- reobserveFrame = requestAnimationFrame(() => {
1725
- var _resizeObserver;
1726
- (_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);
1727
- });
1728
- }
1729
- update();
1730
- });
1731
- if (referenceEl && !animationFrame) {
1732
- resizeObserver.observe(referenceEl);
1733
- }
1734
- resizeObserver.observe(floating);
1735
- }
1736
- let frameId;
1737
- let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
1738
- if (animationFrame) {
1739
- frameLoop();
1740
- }
1741
- function frameLoop() {
1742
- const nextRefRect = getBoundingClientRect(reference);
1743
- if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {
1744
- update();
1745
- }
1746
- prevRefRect = nextRefRect;
1747
- frameId = requestAnimationFrame(frameLoop);
1748
- }
1749
- update();
1750
- return () => {
1751
- var _resizeObserver2;
1752
- ancestors.forEach((ancestor) => {
1753
- ancestorScroll && ancestor.removeEventListener("scroll", update);
1754
- ancestorResize && ancestor.removeEventListener("resize", update);
1755
- });
1756
- cleanupIo == null || cleanupIo();
1757
- (_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();
1758
- resizeObserver = null;
1759
- if (animationFrame) {
1760
- cancelAnimationFrame(frameId);
1761
- }
1762
- };
1763
- }
1764
- var detectOverflow2 = detectOverflow;
1765
- var offset2 = offset;
1766
- var shift2 = shift;
1767
- var flip2 = flip;
1768
- var size2 = size;
1769
- var computePosition2 = (reference, floating, options) => {
1770
- const cache = /* @__PURE__ */ new Map();
1771
- const mergedOptions = {
1772
- platform,
1773
- ...options
1774
- };
1775
- const platformWithCache = {
1776
- ...mergedOptions.platform,
1777
- _c: cache
1778
- };
1779
- return computePosition(reference, floating, {
1780
- ...mergedOptions,
1781
- platform: platformWithCache
1782
- });
1783
- };
1784
-
1785
- // node_modules/@floating-ui/react/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
1786
- import * as React from "react";
1787
- import { useLayoutEffect, useEffect } from "react";
1788
- import * as ReactDOM from "react-dom";
1789
- var index = typeof document !== "undefined" ? useLayoutEffect : useEffect;
1790
- function deepEqual(a7, b3) {
1791
- if (a7 === b3) {
1792
- return true;
1793
- }
1794
- if (typeof a7 !== typeof b3) {
1795
- return false;
1796
- }
1797
- if (typeof a7 === "function" && a7.toString() === b3.toString()) {
1798
- return true;
1799
- }
1800
- let length;
1801
- let i4;
1802
- let keys;
1803
- if (a7 && b3 && typeof a7 === "object") {
1804
- if (Array.isArray(a7)) {
1805
- length = a7.length;
1806
- if (length !== b3.length) return false;
1807
- for (i4 = length; i4-- !== 0; ) {
1808
- if (!deepEqual(a7[i4], b3[i4])) {
1809
- return false;
1810
- }
1811
- }
1812
- return true;
1813
- }
1814
- keys = Object.keys(a7);
1815
- length = keys.length;
1816
- if (length !== Object.keys(b3).length) {
1817
- return false;
1818
- }
1819
- for (i4 = length; i4-- !== 0; ) {
1820
- if (!{}.hasOwnProperty.call(b3, keys[i4])) {
1821
- return false;
1822
- }
1823
- }
1824
- for (i4 = length; i4-- !== 0; ) {
1825
- const key = keys[i4];
1826
- if (key === "_owner" && a7.$$typeof) {
1827
- continue;
1828
- }
1829
- if (!deepEqual(a7[key], b3[key])) {
1830
- return false;
1831
- }
1832
- }
1833
- return true;
1834
- }
1835
- return a7 !== a7 && b3 !== b3;
1836
- }
1837
- function getDPR(element) {
1838
- if (typeof window === "undefined") {
1839
- return 1;
1840
- }
1841
- const win = element.ownerDocument.defaultView || window;
1842
- return win.devicePixelRatio || 1;
1843
- }
1844
- function roundByDPR(element, value) {
1845
- const dpr = getDPR(element);
1846
- return Math.round(value * dpr) / dpr;
1847
- }
1848
- function useLatestRef(value) {
1849
- const ref = React.useRef(value);
1850
- index(() => {
1851
- ref.current = value;
1852
- });
1853
- return ref;
1854
- }
1855
- function useFloating(options) {
1856
- if (options === void 0) {
1857
- options = {};
1858
- }
1859
- const {
1860
- placement = "bottom",
1861
- strategy = "absolute",
1862
- middleware = [],
1863
- platform: platform2,
1864
- elements: {
1865
- reference: externalReference,
1866
- floating: externalFloating
1867
- } = {},
1868
- transform = true,
1869
- whileElementsMounted,
1870
- open
1871
- } = options;
1872
- const [data, setData] = React.useState({
1873
- x: 0,
1874
- y: 0,
1875
- strategy,
1876
- placement,
1877
- middlewareData: {},
1878
- isPositioned: false
1879
- });
1880
- const [latestMiddleware, setLatestMiddleware] = React.useState(middleware);
1881
- if (!deepEqual(latestMiddleware, middleware)) {
1882
- setLatestMiddleware(middleware);
1883
- }
1884
- const [_reference, _setReference] = React.useState(null);
1885
- const [_floating, _setFloating] = React.useState(null);
1886
- const setReference = React.useCallback((node) => {
1887
- if (node !== referenceRef.current) {
1888
- referenceRef.current = node;
1889
- _setReference(node);
1890
- }
1891
- }, []);
1892
- const setFloating = React.useCallback((node) => {
1893
- if (node !== floatingRef.current) {
1894
- floatingRef.current = node;
1895
- _setFloating(node);
1896
- }
1897
- }, []);
1898
- const referenceEl = externalReference || _reference;
1899
- const floatingEl = externalFloating || _floating;
1900
- const referenceRef = React.useRef(null);
1901
- const floatingRef = React.useRef(null);
1902
- const dataRef = React.useRef(data);
1903
- const hasWhileElementsMounted = whileElementsMounted != null;
1904
- const whileElementsMountedRef = useLatestRef(whileElementsMounted);
1905
- const platformRef = useLatestRef(platform2);
1906
- const openRef = useLatestRef(open);
1907
- const update = React.useCallback(() => {
1908
- if (!referenceRef.current || !floatingRef.current) {
1909
- return;
1910
- }
1911
- const config = {
1912
- placement,
1913
- strategy,
1914
- middleware: latestMiddleware
1915
- };
1916
- if (platformRef.current) {
1917
- config.platform = platformRef.current;
1918
- }
1919
- computePosition2(referenceRef.current, floatingRef.current, config).then((data2) => {
1920
- const fullData = {
1921
- ...data2,
1922
- // The floating element's position may be recomputed while it's closed
1923
- // but still mounted (such as when transitioning out). To ensure
1924
- // `isPositioned` will be `false` initially on the next open, avoid
1925
- // setting it to `true` when `open === false` (must be specified).
1926
- isPositioned: openRef.current !== false
1927
- };
1928
- if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {
1929
- dataRef.current = fullData;
1930
- ReactDOM.flushSync(() => {
1931
- setData(fullData);
1932
- });
1933
- }
1934
- });
1935
- }, [latestMiddleware, placement, strategy, platformRef, openRef]);
1936
- index(() => {
1937
- if (open === false && dataRef.current.isPositioned) {
1938
- dataRef.current.isPositioned = false;
1939
- setData((data2) => ({
1940
- ...data2,
1941
- isPositioned: false
1942
- }));
1943
- }
1944
- }, [open]);
1945
- const isMountedRef = React.useRef(false);
1946
- index(() => {
1947
- isMountedRef.current = true;
1948
- return () => {
1949
- isMountedRef.current = false;
1950
- };
1951
- }, []);
1952
- index(() => {
1953
- if (referenceEl) referenceRef.current = referenceEl;
1954
- if (floatingEl) floatingRef.current = floatingEl;
1955
- if (referenceEl && floatingEl) {
1956
- if (whileElementsMountedRef.current) {
1957
- return whileElementsMountedRef.current(referenceEl, floatingEl, update);
1958
- }
1959
- update();
1960
- }
1961
- }, [referenceEl, floatingEl, update, whileElementsMountedRef, hasWhileElementsMounted]);
1962
- const refs = React.useMemo(() => ({
1963
- reference: referenceRef,
1964
- floating: floatingRef,
1965
- setReference,
1966
- setFloating
1967
- }), [setReference, setFloating]);
1968
- const elements = React.useMemo(() => ({
1969
- reference: referenceEl,
1970
- floating: floatingEl
1971
- }), [referenceEl, floatingEl]);
1972
- const floatingStyles = React.useMemo(() => {
1973
- const initialStyles = {
1974
- position: strategy,
1975
- left: 0,
1976
- top: 0
1977
- };
1978
- if (!elements.floating) {
1979
- return initialStyles;
1980
- }
1981
- const x3 = roundByDPR(elements.floating, data.x);
1982
- const y4 = roundByDPR(elements.floating, data.y);
1983
- if (transform) {
1984
- return {
1985
- ...initialStyles,
1986
- transform: "translate(" + x3 + "px, " + y4 + "px)",
1987
- ...getDPR(elements.floating) >= 1.5 && {
1988
- willChange: "transform"
1989
- }
1990
- };
1991
- }
1992
- return {
1993
- position: strategy,
1994
- left: x3,
1995
- top: y4
1996
- };
1997
- }, [strategy, transform, elements.floating, data.x, data.y]);
1998
- return React.useMemo(() => ({
1999
- ...data,
2000
- update,
2001
- refs,
2002
- elements,
2003
- floatingStyles
2004
- }), [data, update, refs, elements, floatingStyles]);
2005
- }
2006
- var offset3 = (options, deps) => ({
2007
- ...offset2(options),
2008
- options: [options, deps]
2009
- });
2010
- var shift3 = (options, deps) => ({
2011
- ...shift2(options),
2012
- options: [options, deps]
2013
- });
2014
- var flip3 = (options, deps) => ({
2015
- ...flip2(options),
2016
- options: [options, deps]
2017
- });
2018
- var size3 = (options, deps) => ({
2019
- ...size2(options),
2020
- options: [options, deps]
2021
- });
2022
-
2023
- // node_modules/@floating-ui/react/dist/floating-ui.react.mjs
2024
- var SafeReact = {
2025
- ...React2
2026
- };
2027
- var useInsertionEffect = SafeReact.useInsertionEffect;
2028
- var useSafeInsertionEffect = useInsertionEffect || ((fn) => fn());
2029
- function useEffectEvent(callback) {
2030
- const ref = React2.useRef(() => {
2031
- if (process.env.NODE_ENV !== "production") {
2032
- throw new Error("Cannot call an event handler while rendering.");
2033
- }
2034
- });
2035
- useSafeInsertionEffect(() => {
2036
- ref.current = callback;
2037
- });
2038
- return React2.useCallback(function() {
2039
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2040
- args[_key] = arguments[_key];
2041
- }
2042
- return ref.current == null ? void 0 : ref.current(...args);
2043
- }, []);
2044
- }
2045
- var ARROW_UP = "ArrowUp";
2046
- var ARROW_DOWN = "ArrowDown";
2047
- var ARROW_LEFT = "ArrowLeft";
2048
- var ARROW_RIGHT = "ArrowRight";
2049
- var index2 = typeof document !== "undefined" ? useLayoutEffect2 : useEffect3;
2050
- var horizontalKeys = [ARROW_LEFT, ARROW_RIGHT];
2051
- var verticalKeys = [ARROW_UP, ARROW_DOWN];
2052
- var allKeys = [...horizontalKeys, ...verticalKeys];
2053
- var serverHandoffComplete = false;
2054
- var count = 0;
2055
- var genId = () => (
2056
- // Ensure the id is unique with multiple independent versions of Floating UI
2057
- // on <React 18
2058
- "floating-ui-" + Math.random().toString(36).slice(2, 6) + count++
2059
- );
2060
- function useFloatingId() {
2061
- const [id, setId] = React2.useState(() => serverHandoffComplete ? genId() : void 0);
2062
- index2(() => {
2063
- if (id == null) {
2064
- setId(genId());
2065
- }
2066
- }, []);
2067
- React2.useEffect(() => {
2068
- serverHandoffComplete = true;
2069
- }, []);
2070
- return id;
2071
- }
2072
- var useReactId = SafeReact.useId;
2073
- var useId = useReactId || useFloatingId;
2074
- var devMessageSet;
2075
- if (process.env.NODE_ENV !== "production") {
2076
- devMessageSet = /* @__PURE__ */ new Set();
2077
- }
2078
- function warn() {
2079
- var _devMessageSet;
2080
- for (var _len = arguments.length, messages = new Array(_len), _key = 0; _key < _len; _key++) {
2081
- messages[_key] = arguments[_key];
2082
- }
2083
- const message = "Floating UI: " + messages.join(" ");
2084
- if (!((_devMessageSet = devMessageSet) != null && _devMessageSet.has(message))) {
2085
- var _devMessageSet2;
2086
- (_devMessageSet2 = devMessageSet) == null || _devMessageSet2.add(message);
2087
- console.warn(message);
2088
- }
2089
- }
2090
- function error() {
2091
- var _devMessageSet3;
2092
- for (var _len2 = arguments.length, messages = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
2093
- messages[_key2] = arguments[_key2];
2094
- }
2095
- const message = "Floating UI: " + messages.join(" ");
2096
- if (!((_devMessageSet3 = devMessageSet) != null && _devMessageSet3.has(message))) {
2097
- var _devMessageSet4;
2098
- (_devMessageSet4 = devMessageSet) == null || _devMessageSet4.add(message);
2099
- console.error(message);
2100
- }
2101
- }
2102
- function createPubSub() {
2103
- const map = /* @__PURE__ */ new Map();
2104
- return {
2105
- emit(event, data) {
2106
- var _map$get;
2107
- (_map$get = map.get(event)) == null || _map$get.forEach((handler) => handler(data));
2108
- },
2109
- on(event, listener) {
2110
- map.set(event, [...map.get(event) || [], listener]);
2111
- },
2112
- off(event, listener) {
2113
- var _map$get2;
2114
- map.set(event, ((_map$get2 = map.get(event)) == null ? void 0 : _map$get2.filter((l3) => l3 !== listener)) || []);
2115
- }
2116
- };
2117
- }
2118
- var FloatingNodeContext = /* @__PURE__ */ React2.createContext(null);
2119
- var FloatingTreeContext = /* @__PURE__ */ React2.createContext(null);
2120
- var useFloatingParentNodeId = () => {
2121
- var _React$useContext;
2122
- return ((_React$useContext = React2.useContext(FloatingNodeContext)) == null ? void 0 : _React$useContext.id) || null;
2123
- };
2124
- var useFloatingTree = () => React2.useContext(FloatingTreeContext);
2125
- var FOCUSABLE_ATTRIBUTE = "data-floating-ui-focusable";
2126
- function useFloatingRootContext(options) {
2127
- const {
2128
- open = false,
2129
- onOpenChange: onOpenChangeProp,
2130
- elements: elementsProp
2131
- } = options;
2132
- const floatingId = useId();
2133
- const dataRef = React2.useRef({});
2134
- const [events] = React2.useState(() => createPubSub());
2135
- const nested = useFloatingParentNodeId() != null;
2136
- if (process.env.NODE_ENV !== "production") {
2137
- const optionDomReference = elementsProp.reference;
2138
- if (optionDomReference && !isElement(optionDomReference)) {
2139
- error("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
2140
- }
2141
- }
2142
- const [positionReference, setPositionReference] = React2.useState(elementsProp.reference);
2143
- const onOpenChange = useEffectEvent((open2, event, reason) => {
2144
- dataRef.current.openEvent = open2 ? event : void 0;
2145
- events.emit("openchange", {
2146
- open: open2,
2147
- event,
2148
- reason,
2149
- nested
2150
- });
2151
- onOpenChangeProp == null || onOpenChangeProp(open2, event, reason);
2152
- });
2153
- const refs = React2.useMemo(() => ({
2154
- setPositionReference
2155
- }), []);
2156
- const elements = React2.useMemo(() => ({
2157
- reference: positionReference || elementsProp.reference || null,
2158
- floating: elementsProp.floating || null,
2159
- domReference: elementsProp.reference
2160
- }), [positionReference, elementsProp.reference, elementsProp.floating]);
2161
- return React2.useMemo(() => ({
2162
- dataRef,
2163
- open,
2164
- onOpenChange,
2165
- elements,
2166
- events,
2167
- floatingId,
2168
- refs
2169
- }), [open, onOpenChange, elements, events, floatingId, refs]);
2170
- }
2171
- function useFloating2(options) {
2172
- if (options === void 0) {
2173
- options = {};
2174
- }
2175
- const {
2176
- nodeId
2177
- } = options;
2178
- const internalRootContext = useFloatingRootContext({
2179
- ...options,
2180
- elements: {
2181
- reference: null,
2182
- floating: null,
2183
- ...options.elements
2184
- }
2185
- });
2186
- const rootContext = options.rootContext || internalRootContext;
2187
- const computedElements = rootContext.elements;
2188
- const [_domReference, setDomReference] = React2.useState(null);
2189
- const [positionReference, _setPositionReference] = React2.useState(null);
2190
- const optionDomReference = computedElements == null ? void 0 : computedElements.domReference;
2191
- const domReference = optionDomReference || _domReference;
2192
- const domReferenceRef = React2.useRef(null);
2193
- const tree = useFloatingTree();
2194
- index2(() => {
2195
- if (domReference) {
2196
- domReferenceRef.current = domReference;
2197
- }
2198
- }, [domReference]);
2199
- const position = useFloating({
2200
- ...options,
2201
- elements: {
2202
- ...computedElements,
2203
- ...positionReference && {
2204
- reference: positionReference
2205
- }
2206
- }
2207
- });
2208
- const setPositionReference = React2.useCallback((node) => {
2209
- const computedPositionReference = isElement(node) ? {
2210
- getBoundingClientRect: () => node.getBoundingClientRect(),
2211
- contextElement: node
2212
- } : node;
2213
- _setPositionReference(computedPositionReference);
2214
- position.refs.setReference(computedPositionReference);
2215
- }, [position.refs]);
2216
- const setReference = React2.useCallback((node) => {
2217
- if (isElement(node) || node === null) {
2218
- domReferenceRef.current = node;
2219
- setDomReference(node);
2220
- }
2221
- if (isElement(position.refs.reference.current) || position.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
2222
- // `null` to support `positionReference` + an unstable `reference`
2223
- // callback ref.
2224
- node !== null && !isElement(node)) {
2225
- position.refs.setReference(node);
2226
- }
2227
- }, [position.refs]);
2228
- const refs = React2.useMemo(() => ({
2229
- ...position.refs,
2230
- setReference,
2231
- setPositionReference,
2232
- domReference: domReferenceRef
2233
- }), [position.refs, setReference, setPositionReference]);
2234
- const elements = React2.useMemo(() => ({
2235
- ...position.elements,
2236
- domReference
2237
- }), [position.elements, domReference]);
2238
- const context = React2.useMemo(() => ({
2239
- ...position,
2240
- ...rootContext,
2241
- refs,
2242
- elements,
2243
- nodeId
2244
- }), [position, refs, elements, nodeId, rootContext]);
2245
- index2(() => {
2246
- rootContext.dataRef.current.floatingContext = context;
2247
- const node = tree == null ? void 0 : tree.nodesRef.current.find((node2) => node2.id === nodeId);
2248
- if (node) {
2249
- node.context = context;
2250
- }
2251
- });
2252
- return React2.useMemo(() => ({
2253
- ...position,
2254
- context,
2255
- refs,
2256
- elements
2257
- }), [position, refs, elements, context]);
2258
- }
2259
- var ACTIVE_KEY = "active";
2260
- var SELECTED_KEY = "selected";
2261
- function mergeProps(userProps, propsList, elementKey) {
2262
- const map = /* @__PURE__ */ new Map();
2263
- const isItem = elementKey === "item";
2264
- let domUserProps = userProps;
2265
- if (isItem && userProps) {
2266
- const {
2267
- [ACTIVE_KEY]: _2,
2268
- [SELECTED_KEY]: __,
2269
- ...validProps
2270
- } = userProps;
2271
- domUserProps = validProps;
2272
- }
2273
- return {
2274
- ...elementKey === "floating" && {
2275
- tabIndex: -1,
2276
- [FOCUSABLE_ATTRIBUTE]: ""
2277
- },
2278
- ...domUserProps,
2279
- ...propsList.map((value) => {
2280
- const propsOrGetProps = value ? value[elementKey] : null;
2281
- if (typeof propsOrGetProps === "function") {
2282
- return userProps ? propsOrGetProps(userProps) : null;
2283
- }
2284
- return propsOrGetProps;
2285
- }).concat(userProps).reduce((acc, props) => {
2286
- if (!props) {
2287
- return acc;
2288
- }
2289
- Object.entries(props).forEach((_ref) => {
2290
- let [key, value] = _ref;
2291
- if (isItem && [ACTIVE_KEY, SELECTED_KEY].includes(key)) {
2292
- return;
2293
- }
2294
- if (key.indexOf("on") === 0) {
2295
- if (!map.has(key)) {
2296
- map.set(key, []);
2297
- }
2298
- if (typeof value === "function") {
2299
- var _map$get;
2300
- (_map$get = map.get(key)) == null || _map$get.push(value);
2301
- acc[key] = function() {
2302
- var _map$get2;
2303
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2304
- args[_key] = arguments[_key];
2305
- }
2306
- return (_map$get2 = map.get(key)) == null ? void 0 : _map$get2.map((fn) => fn(...args)).find((val) => val !== void 0);
2307
- };
2308
- }
2309
- } else {
2310
- acc[key] = value;
2311
- }
2312
- });
2313
- return acc;
2314
- }, {})
2315
- };
2316
- }
2317
- function useInteractions(propsList) {
2318
- if (propsList === void 0) {
2319
- propsList = [];
2320
- }
2321
- const referenceDeps = propsList.map((key) => key == null ? void 0 : key.reference);
2322
- const floatingDeps = propsList.map((key) => key == null ? void 0 : key.floating);
2323
- const itemDeps = propsList.map((key) => key == null ? void 0 : key.item);
2324
- const getReferenceProps = React2.useCallback(
2325
- (userProps) => mergeProps(userProps, propsList, "reference"),
2326
- // eslint-disable-next-line react-hooks/exhaustive-deps
2327
- referenceDeps
2328
- );
2329
- const getFloatingProps = React2.useCallback(
2330
- (userProps) => mergeProps(userProps, propsList, "floating"),
2331
- // eslint-disable-next-line react-hooks/exhaustive-deps
2332
- floatingDeps
2333
- );
2334
- const getItemProps = React2.useCallback(
2335
- (userProps) => mergeProps(userProps, propsList, "item"),
2336
- // eslint-disable-next-line react-hooks/exhaustive-deps
2337
- itemDeps
2338
- );
2339
- return React2.useMemo(() => ({
2340
- getReferenceProps,
2341
- getFloatingProps,
2342
- getItemProps
2343
- }), [getReferenceProps, getFloatingProps, getItemProps]);
2344
- }
2345
- function getArgsWithCustomFloatingHeight(state, height) {
2346
- return {
2347
- ...state,
2348
- rects: {
2349
- ...state.rects,
2350
- floating: {
2351
- ...state.rects.floating,
2352
- height
2353
- }
2354
- }
2355
- };
2356
- }
2357
- var inner = (props) => ({
2358
- name: "inner",
2359
- options: props,
2360
- async fn(state) {
2361
- const {
2362
- listRef,
2363
- overflowRef,
2364
- onFallbackChange,
2365
- offset: innerOffset = 0,
2366
- index: index3 = 0,
2367
- minItemsVisible = 4,
2368
- referenceOverflowThreshold = 0,
2369
- scrollRef,
2370
- ...detectOverflowOptions
2371
- } = evaluate(props, state);
2372
- const {
2373
- rects,
2374
- elements: {
2375
- floating
2376
- }
2377
- } = state;
2378
- const item = listRef.current[index3];
2379
- const scrollEl = (scrollRef == null ? void 0 : scrollRef.current) || floating;
2380
- const clientTop = floating.clientTop || scrollEl.clientTop;
2381
- const floatingIsBordered = floating.clientTop !== 0;
2382
- const scrollElIsBordered = scrollEl.clientTop !== 0;
2383
- const floatingIsScrollEl = floating === scrollEl;
2384
- if (process.env.NODE_ENV !== "production") {
2385
- if (!state.placement.startsWith("bottom")) {
2386
- warn('`placement` side must be "bottom" when using the `inner`', "middleware.");
2387
- }
2388
- }
2389
- if (!item) {
2390
- return {};
2391
- }
2392
- const nextArgs = {
2393
- ...state,
2394
- ...await offset3(-item.offsetTop - floating.clientTop - rects.reference.height / 2 - item.offsetHeight / 2 - innerOffset).fn(state)
2395
- };
2396
- const overflow = await detectOverflow2(getArgsWithCustomFloatingHeight(nextArgs, scrollEl.scrollHeight + clientTop + floating.clientTop), detectOverflowOptions);
2397
- const refOverflow = await detectOverflow2(nextArgs, {
2398
- ...detectOverflowOptions,
2399
- elementContext: "reference"
2400
- });
2401
- const diffY = max(0, overflow.top);
2402
- const nextY = nextArgs.y + diffY;
2403
- const isScrollable = scrollEl.scrollHeight > scrollEl.clientHeight;
2404
- const rounder = isScrollable ? (v2) => v2 : round;
2405
- const maxHeight = rounder(max(0, scrollEl.scrollHeight + (floatingIsBordered && floatingIsScrollEl || scrollElIsBordered ? clientTop * 2 : 0) - diffY - max(0, overflow.bottom)));
2406
- scrollEl.style.maxHeight = maxHeight + "px";
2407
- scrollEl.scrollTop = diffY;
2408
- if (onFallbackChange) {
2409
- const shouldFallback = scrollEl.offsetHeight < item.offsetHeight * min(minItemsVisible, listRef.current.length) - 1 || refOverflow.top >= -referenceOverflowThreshold || refOverflow.bottom >= -referenceOverflowThreshold;
2410
- ReactDOM2.flushSync(() => onFallbackChange(shouldFallback));
2411
- }
2412
- if (overflowRef) {
2413
- overflowRef.current = await detectOverflow2(getArgsWithCustomFloatingHeight({
2414
- ...nextArgs,
2415
- y: nextY
2416
- }, scrollEl.offsetHeight + clientTop + floating.clientTop), detectOverflowOptions);
2417
- }
2418
- return {
2419
- y: nextY
2420
- };
2421
- }
2422
- });
2423
- function useInnerOffset(context, props) {
2424
- const {
2425
- open,
2426
- elements
2427
- } = context;
2428
- const {
2429
- enabled = true,
2430
- overflowRef,
2431
- scrollRef,
2432
- onChange: unstable_onChange
2433
- } = props;
2434
- const onChange = useEffectEvent(unstable_onChange);
2435
- const controlledScrollingRef = React2.useRef(false);
2436
- const prevScrollTopRef = React2.useRef(null);
2437
- const initialOverflowRef = React2.useRef(null);
2438
- React2.useEffect(() => {
2439
- if (!enabled) return;
2440
- function onWheel(e3) {
2441
- if (e3.ctrlKey || !el || overflowRef.current == null) {
2442
- return;
2443
- }
2444
- const dY = e3.deltaY;
2445
- const isAtTop = overflowRef.current.top >= -0.5;
2446
- const isAtBottom = overflowRef.current.bottom >= -0.5;
2447
- const remainingScroll = el.scrollHeight - el.clientHeight;
2448
- const sign = dY < 0 ? -1 : 1;
2449
- const method = dY < 0 ? "max" : "min";
2450
- if (el.scrollHeight <= el.clientHeight) {
2451
- return;
2452
- }
2453
- if (!isAtTop && dY > 0 || !isAtBottom && dY < 0) {
2454
- e3.preventDefault();
2455
- ReactDOM2.flushSync(() => {
2456
- onChange((d6) => d6 + Math[method](dY, remainingScroll * sign));
2457
- });
2458
- } else if (/firefox/i.test(getUserAgent())) {
2459
- el.scrollTop += dY;
2460
- }
2461
- }
2462
- const el = (scrollRef == null ? void 0 : scrollRef.current) || elements.floating;
2463
- if (open && el) {
2464
- el.addEventListener("wheel", onWheel);
2465
- requestAnimationFrame(() => {
2466
- prevScrollTopRef.current = el.scrollTop;
2467
- if (overflowRef.current != null) {
2468
- initialOverflowRef.current = {
2469
- ...overflowRef.current
2470
- };
2471
- }
2472
- });
2473
- return () => {
2474
- prevScrollTopRef.current = null;
2475
- initialOverflowRef.current = null;
2476
- el.removeEventListener("wheel", onWheel);
2477
- };
2478
- }
2479
- }, [enabled, open, elements.floating, overflowRef, scrollRef, onChange]);
2480
- const floating = React2.useMemo(() => ({
2481
- onKeyDown() {
2482
- controlledScrollingRef.current = true;
2483
- },
2484
- onWheel() {
2485
- controlledScrollingRef.current = false;
2486
- },
2487
- onPointerMove() {
2488
- controlledScrollingRef.current = false;
2489
- },
2490
- onScroll() {
2491
- const el = (scrollRef == null ? void 0 : scrollRef.current) || elements.floating;
2492
- if (!overflowRef.current || !el || !controlledScrollingRef.current) {
2493
- return;
2494
- }
2495
- if (prevScrollTopRef.current !== null) {
2496
- const scrollDiff = el.scrollTop - prevScrollTopRef.current;
2497
- if (overflowRef.current.bottom < -0.5 && scrollDiff < -1 || overflowRef.current.top < -0.5 && scrollDiff > 1) {
2498
- ReactDOM2.flushSync(() => onChange((d6) => d6 + scrollDiff));
2499
- }
2500
- }
2501
- requestAnimationFrame(() => {
2502
- prevScrollTopRef.current = el.scrollTop;
2503
- });
2504
- }
2505
- }), [elements.floating, onChange, overflowRef, scrollRef]);
2506
- return React2.useMemo(() => enabled ? {
2507
- floating
2508
- } : {}, [enabled, floating]);
2509
- }
2510
-
2511
- // node_modules/@headlessui/react/dist/internal/floating.js
2512
- import * as j2 from "react";
2513
- import { createContext as _, useCallback as ae, useContext as R3, useMemo as M2, useRef as ue, useState as A2 } from "react";
2514
- var y2 = _({ styles: void 0, setReference: () => {
2515
- }, setFloating: () => {
2516
- }, getReferenceProps: () => ({}), getFloatingProps: () => ({}), slot: {} });
2517
- y2.displayName = "FloatingContext";
2518
- var H = _(null);
2519
- H.displayName = "PlacementContext";
2520
- function xe(e3) {
2521
- return M2(() => e3 ? typeof e3 == "string" ? { to: e3 } : e3 : null, [e3]);
2522
- }
2523
- function ye() {
2524
- return R3(y2).setReference;
2525
- }
2526
- function Fe() {
2527
- return R3(y2).getReferenceProps;
2528
- }
2529
- function be() {
2530
- let { getFloatingProps: e3, slot: t6 } = R3(y2);
2531
- return ae((...n7) => Object.assign({}, e3(...n7), { "data-anchor": t6.anchor }), [e3, t6]);
2532
- }
2533
- function Re(e3 = null) {
2534
- e3 === false && (e3 = null), typeof e3 == "string" && (e3 = { to: e3 });
2535
- let t6 = R3(H), n7 = M2(() => e3, [JSON.stringify(e3, (r5, o6) => {
2536
- var u4;
2537
- return (u4 = o6 == null ? void 0 : o6.outerHTML) != null ? u4 : o6;
2538
- })]);
2539
- n(() => {
2540
- t6 == null || t6(n7 != null ? n7 : null);
2541
- }, [t6, n7]);
2542
- let l3 = R3(y2);
2543
- return M2(() => [l3.setFloating, e3 ? l3.styles : {}], [l3.setFloating, e3, l3.styles]);
2544
- }
2545
- var q = 4;
2546
- function Me({ children: e3, enabled: t6 = true }) {
2547
- let [n7, l3] = A2(null), [r5, o6] = A2(0), u4 = ue(null), [f4, s6] = A2(null);
2548
- pe(f4);
2549
- let i4 = t6 && n7 !== null && f4 !== null, { to: F = "bottom", gap: E3 = 0, offset: v2 = 0, padding: c8 = 0, inner: P } = ce(n7, f4), [a7, p3 = "center"] = F.split(" ");
2550
- n(() => {
2551
- i4 && o6(0);
2552
- }, [i4]);
2553
- let { refs: b3, floatingStyles: w, context: g2 } = useFloating2({ open: i4, placement: a7 === "selection" ? p3 === "center" ? "bottom" : `bottom-${p3}` : p3 === "center" ? `${a7}` : `${a7}-${p3}`, strategy: "absolute", transform: false, middleware: [offset3({ mainAxis: a7 === "selection" ? 0 : E3, crossAxis: v2 }), shift3({ padding: c8 }), a7 !== "selection" && flip3({ padding: c8 }), a7 === "selection" && P ? inner({ ...P, padding: c8, overflowRef: u4, offset: r5, minItemsVisible: q, referenceOverflowThreshold: c8, onFallbackChange(h3) {
2554
- var O2, W2;
2555
- if (!h3) return;
2556
- let d6 = g2.elements.floating;
2557
- if (!d6) return;
2558
- let T5 = parseFloat(getComputedStyle(d6).scrollPaddingBottom) || 0, $ = Math.min(q, d6.childElementCount), L3 = 0, N2 = 0;
2559
- for (let m3 of (W2 = (O2 = g2.elements.floating) == null ? void 0 : O2.childNodes) != null ? W2 : []) if (m3 instanceof HTMLElement) {
2560
- let x3 = m3.offsetTop, k = x3 + m3.clientHeight + T5, S3 = d6.scrollTop, U = S3 + d6.clientHeight;
2561
- if (x3 >= S3 && k <= U) $--;
2562
- else {
2563
- N2 = Math.max(0, Math.min(k, U) - Math.max(x3, S3)), L3 = m3.clientHeight;
2564
- break;
2565
- }
2566
- }
2567
- $ >= 1 && o6((m3) => {
2568
- let x3 = L3 * $ - N2 + T5;
2569
- return m3 >= x3 ? m3 : x3;
2570
- });
2571
- } }) : null, size3({ padding: c8, apply({ availableWidth: h3, availableHeight: d6, elements: T5 }) {
2572
- Object.assign(T5.floating.style, { overflow: "auto", maxWidth: `${h3}px`, maxHeight: `min(var(--anchor-max-height, 100vh), ${d6}px)` });
2573
- } })].filter(Boolean), whileElementsMounted: autoUpdate }), [I2 = a7, B = p3] = g2.placement.split("-");
2574
- a7 === "selection" && (I2 = "selection");
2575
- let G2 = M2(() => ({ anchor: [I2, B].filter(Boolean).join(" ") }), [I2, B]), K2 = useInnerOffset(g2, { overflowRef: u4, onChange: o6 }), { getReferenceProps: Q, getFloatingProps: X2 } = useInteractions([K2]), Y = o2((h3) => {
2576
- s6(h3), b3.setFloating(h3);
2577
- });
2578
- return j2.createElement(H.Provider, { value: l3 }, j2.createElement(y2.Provider, { value: { setFloating: Y, setReference: b3.setReference, styles: w, getReferenceProps: Q, getFloatingProps: X2, slot: G2 } }, e3));
2579
- }
2580
- function pe(e3) {
2581
- n(() => {
2582
- if (!e3) return;
2583
- let t6 = new MutationObserver(() => {
2584
- let n7 = window.getComputedStyle(e3).maxHeight, l3 = parseFloat(n7);
2585
- if (isNaN(l3)) return;
2586
- let r5 = parseInt(n7);
2587
- isNaN(r5) || l3 !== r5 && (e3.style.maxHeight = `${Math.ceil(l3)}px`);
2588
- });
2589
- return t6.observe(e3, { attributes: true, attributeFilter: ["style"] }), () => {
2590
- t6.disconnect();
2591
- };
2592
- }, [e3]);
2593
- }
2594
- function ce(e3, t6) {
2595
- var o6, u4, f4;
2596
- let n7 = V((o6 = e3 == null ? void 0 : e3.gap) != null ? o6 : "var(--anchor-gap, 0)", t6), l3 = V((u4 = e3 == null ? void 0 : e3.offset) != null ? u4 : "var(--anchor-offset, 0)", t6), r5 = V((f4 = e3 == null ? void 0 : e3.padding) != null ? f4 : "var(--anchor-padding, 0)", t6);
2597
- return { ...e3, gap: n7, offset: l3, padding: r5 };
2598
- }
2599
- function V(e3, t6, n7 = void 0) {
2600
- let l3 = p(), r5 = o2((s6, i4) => {
2601
- if (s6 == null) return [n7, null];
2602
- if (typeof s6 == "number") return [s6, null];
2603
- if (typeof s6 == "string") {
2604
- if (!i4) return [n7, null];
2605
- let F = J(s6, i4);
2606
- return [F, (E3) => {
2607
- let v2 = D(s6);
2608
- {
2609
- let c8 = v2.map((P) => window.getComputedStyle(i4).getPropertyValue(P));
2610
- l3.requestAnimationFrame(function P() {
2611
- l3.nextFrame(P);
2612
- let a7 = false;
2613
- for (let [b3, w] of v2.entries()) {
2614
- let g2 = window.getComputedStyle(i4).getPropertyValue(w);
2615
- if (c8[b3] !== g2) {
2616
- c8[b3] = g2, a7 = true;
2617
- break;
2618
- }
2619
- }
2620
- if (!a7) return;
2621
- let p3 = J(s6, i4);
2622
- F !== p3 && (E3(p3), F = p3);
2623
- });
2624
- }
2625
- return l3.dispose;
2626
- }];
2627
- }
2628
- return [n7, null];
2629
- }), o6 = M2(() => r5(e3, t6)[0], [e3, t6]), [u4 = o6, f4] = A2();
2630
- return n(() => {
2631
- let [s6, i4] = r5(e3, t6);
2632
- if (f4(s6), !!i4) return i4(f4);
2633
- }, [e3, t6]), u4;
2634
- }
2635
- function D(e3) {
2636
- let t6 = /var\((.*)\)/.exec(e3);
2637
- if (t6) {
2638
- let n7 = t6[1].indexOf(",");
2639
- if (n7 === -1) return [t6[1]];
2640
- let l3 = t6[1].slice(0, n7).trim(), r5 = t6[1].slice(n7 + 1).trim();
2641
- return r5 ? [l3, ...D(r5)] : [l3];
2642
- }
2643
- return [];
2644
- }
2645
- function J(e3, t6) {
2646
- let n7 = document.createElement("div");
2647
- t6.appendChild(n7), n7.style.setProperty("margin-top", "0px", "important"), n7.style.setProperty("margin-top", e3, "important");
2648
- let l3 = parseFloat(window.getComputedStyle(n7).marginTop) || 0;
2649
- return t6.removeChild(n7), l3;
2650
- }
2651
-
2652
- // node_modules/@headlessui/react/dist/internal/open-closed.js
2653
- import r3, { createContext as l, useContext as d5 } from "react";
2654
- var n5 = l(null);
2655
- n5.displayName = "OpenClosedContext";
2656
- var i3 = ((e3) => (e3[e3.Open = 1] = "Open", e3[e3.Closed = 2] = "Closed", e3[e3.Closing = 4] = "Closing", e3[e3.Opening = 8] = "Opening", e3))(i3 || {});
2657
- function u2() {
2658
- return d5(n5);
2659
- }
2660
- function c4({ value: o6, children: t6 }) {
2661
- return r3.createElement(n5.Provider, { value: o6 }, t6);
2662
- }
2663
- function s4({ children: o6 }) {
2664
- return r3.createElement(n5.Provider, { value: null }, o6);
2665
- }
2666
-
2667
- // node_modules/@headlessui/react/dist/components/portal/portal.js
2668
- import f3, { Fragment as R4, createContext as g, useContext as T4, useEffect as E2, useMemo as c7, useRef as A3, useState as G } from "react";
2669
- import { createPortal as O } from "react-dom";
2670
-
2671
- // node_modules/@headlessui/react/dist/hooks/use-on-unmount.js
2672
- import { useEffect as u3, useRef as n6 } from "react";
2673
- function c5(t6) {
2674
- let r5 = o2(t6), e3 = n6(false);
2675
- u3(() => (e3.current = false, () => {
2676
- e3.current = true, t(() => {
2677
- e3.current && r5();
2678
- });
2679
- }), [r5]);
2680
- }
2681
-
2682
- // node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.js
2683
- import * as t4 from "react";
2684
- function s5() {
2685
- let r5 = typeof document == "undefined";
2686
- return "useSyncExternalStore" in t4 ? ((o6) => o6.useSyncExternalStore)(t4)(() => () => {
2687
- }, () => false, () => !r5) : false;
2688
- }
2689
- function l2() {
2690
- let r5 = s5(), [e3, n7] = t4.useState(s.isHandoffComplete);
2691
- return e3 && s.isHandoffComplete === false && n7(false), t4.useEffect(() => {
2692
- e3 !== true && n7(true);
2693
- }, [e3]), t4.useEffect(() => s.handoff(), []), r5 ? false : e3;
2694
- }
2695
-
2696
- // node_modules/@headlessui/react/dist/internal/portal-force-root.js
2697
- import t5, { createContext as r4, useContext as c6 } from "react";
2698
- var e2 = r4(false);
2699
- function a6() {
2700
- return c6(e2);
2701
- }
2702
-
2703
- // node_modules/@headlessui/react/dist/components/portal/portal.js
2704
- function N(u4) {
2705
- let r5 = a6(), n7 = T4(v), e3 = n4(u4), [o6, l3] = G(() => {
2706
- var t6;
2707
- if (!r5 && n7 !== null) return (t6 = n7.current) != null ? t6 : null;
2708
- if (s.isServer) return null;
2709
- let p3 = e3 == null ? void 0 : e3.getElementById("headlessui-portal-root");
2710
- if (p3) return p3;
2711
- if (e3 === null) return null;
2712
- let a7 = e3.createElement("div");
2713
- return a7.setAttribute("id", "headlessui-portal-root"), e3.body.appendChild(a7);
2714
- });
2715
- return E2(() => {
2716
- o6 !== null && (e3 != null && e3.body.contains(o6) || e3 == null || e3.body.appendChild(o6));
2717
- }, [o6, e3]), E2(() => {
2718
- r5 || n7 !== null && l3(n7.current);
2719
- }, [n7, l3, r5]), o6;
2720
- }
2721
- var M3 = R4;
2722
- var S2 = K(function(r5, n7) {
2723
- let e3 = r5, o6 = A3(null), l3 = y(T((i4) => {
2724
- o6.current = i4;
2725
- }), n7), p3 = n4(o6), a7 = N(o6), [t6] = G(() => {
2726
- var i4;
2727
- return s.isServer ? null : (i4 = p3 == null ? void 0 : p3.createElement("div")) != null ? i4 : null;
2728
- }), s6 = T4(y3), b3 = l2();
2729
- n(() => {
2730
- !a7 || !t6 || a7.contains(t6) || (t6.setAttribute("data-headlessui-portal", ""), a7.appendChild(t6));
2731
- }, [a7, t6]), n(() => {
2732
- if (t6 && s6) return s6.register(t6);
2733
- }, [s6, t6]), c5(() => {
2734
- var i4;
2735
- !a7 || !t6 || (t6 instanceof Node && a7.contains(t6) && a7.removeChild(t6), a7.childNodes.length <= 0 && ((i4 = a7.parentElement) == null || i4.removeChild(a7)));
2736
- });
2737
- let H2 = L();
2738
- return b3 ? !a7 || !t6 ? null : O(H2({ ourProps: { ref: l3 }, theirProps: e3, slot: {}, defaultTag: M3, name: "Portal" }), t6) : null;
2739
- });
2740
- function j3(u4, r5) {
2741
- let n7 = y(r5), { enabled: e3 = true, ...o6 } = u4, l3 = L();
2742
- return e3 ? f3.createElement(S2, { ...o6, ref: n7 }) : l3({ ourProps: { ref: n7 }, theirProps: o6, slot: {}, defaultTag: M3, name: "Portal" });
2743
- }
2744
- var W = R4;
2745
- var v = g(null);
2746
- function I(u4, r5) {
2747
- let { target: n7, ...e3 } = u4, l3 = { ref: y(r5) }, p3 = L();
2748
- return f3.createElement(v.Provider, { value: n7 }, p3({ ourProps: l3, theirProps: e3, defaultTag: W, name: "Popover.Group" }));
2749
- }
2750
- var y3 = g(null);
2751
- function te() {
2752
- let u4 = T4(y3), r5 = A3([]), n7 = o2((l3) => (r5.current.push(l3), u4 && u4.register(l3), () => e3(l3))), e3 = o2((l3) => {
2753
- let p3 = r5.current.indexOf(l3);
2754
- p3 !== -1 && r5.current.splice(p3, 1), u4 && u4.unregister(l3);
2755
- }), o6 = c7(() => ({ register: n7, unregister: e3, portals: r5 }), [n7, e3, r5]);
2756
- return [r5, c7(() => function({ children: p3 }) {
2757
- return f3.createElement(y3.Provider, { value: o6 }, p3);
2758
- }, [o6])];
2759
- }
2760
- var J2 = K(j3);
2761
- var X = K(I);
2762
- var re = Object.assign(J2, { Group: X });
2763
-
2764
- export {
2765
- d,
2766
- x,
2767
- m,
2768
- s3 as s,
2769
- R,
2770
- n4 as n,
2771
- f2 as f,
2772
- R2,
2773
- x2,
2774
- xe,
2775
- ye,
2776
- Fe,
2777
- be,
2778
- Re,
2779
- Me,
2780
- i3 as i,
2781
- u2 as u,
2782
- c4 as c,
2783
- s4 as s2,
2784
- te,
2785
- re
2786
- };