abstra 3.23.12__py3-none-any.whl → 3.24.1__py3-none-any.whl

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 (266) hide show
  1. abstra/cli.py +16 -5
  2. {abstra-3.23.12.dist-info → abstra-3.24.1.dist-info}/METADATA +1 -1
  3. {abstra-3.23.12.dist-info → abstra-3.24.1.dist-info}/RECORD +200 -190
  4. abstra_internals/cloud_api/__init__.py +17 -8
  5. abstra_internals/consts/filepaths.py +1 -1
  6. abstra_internals/contracts_generated.py +616 -596
  7. abstra_internals/controllers/ai.py +89 -1
  8. abstra_internals/controllers/git.py +307 -0
  9. abstra_internals/controllers/main.py +10 -6
  10. abstra_internals/environment.py +6 -0
  11. abstra_internals/interface/cli/deploy.py +1 -1
  12. abstra_internals/interface/cli/editor.py +2 -2
  13. abstra_internals/interface/sdk/ai.py +1 -0
  14. abstra_internals/repositories/git/__init__.py +25 -0
  15. abstra_internals/repositories/git/git_test.py +362 -0
  16. abstra_internals/repositories/git/native.py +578 -0
  17. abstra_internals/repositories/git/types.py +273 -0
  18. abstra_internals/repositories/linter/rules/env_in_bundle.py +5 -5
  19. abstra_internals/repositories/linter/rules/env_in_bundle_test.py +6 -6
  20. abstra_internals/repositories/linter/rules/venv_in_bundle.py +9 -16
  21. abstra_internals/server/blueprints/editor.py +4 -0
  22. abstra_internals/server/routes/git.py +190 -0
  23. abstra_internals/server/routes/workspace.py +1 -1
  24. abstra_internals/services/file_watcher.py +32 -13
  25. abstra_internals/services/fs.py +4 -4
  26. abstra_internals/services/fs_test.py +4 -6
  27. abstra_internals/templates/__init__.py +0 -11
  28. abstra_statics/dist/assets/{AbstraButton.vue_vue_type_script_setup_true_lang.441fcdfd.js → AbstraButton.vue_vue_type_script_setup_true_lang.aefce2d3.js} +2 -2
  29. abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.28bc9fc9.js +2 -0
  30. abstra_statics/dist/assets/ApiKeys.3c1e70dc.js +2 -0
  31. abstra_statics/dist/assets/App.9d8bd2aa.js +2 -0
  32. abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.a64c7cee.js +2 -0
  33. abstra_statics/dist/assets/{BaseLayout.c63dfc2d.js → BaseLayout.72a6c8f2.js} +2 -2
  34. abstra_statics/dist/assets/{Billing.461db3ef.js → Billing.6b07f282.js} +2 -2
  35. abstra_statics/dist/assets/{Breadcrumb.27110ec4.js → Breadcrumb.5c786c09.js} +2 -2
  36. abstra_statics/dist/assets/{Builds.4eecd717.js → Builds.d8c5c61b.js} +2 -2
  37. abstra_statics/dist/assets/{Card.1d1a9fb7.js → Card.fc77085c.js} +2 -2
  38. abstra_statics/dist/assets/{CircularLoading.fc66331b.js → CircularLoading.998b223a.js} +2 -2
  39. abstra_statics/dist/assets/{CloseCircleOutlined.0110bbe2.js → CloseCircleOutlined.9ff269cc.js} +2 -2
  40. abstra_statics/dist/assets/{ConnectorsView.82e74ae4.css → ConnectorsView.33c5380f.css} +1 -1
  41. abstra_statics/dist/assets/ConnectorsView.e670738b.js +2 -0
  42. abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.3ca66327.js +2 -0
  43. abstra_statics/dist/assets/ContentLayout.0db8d7fb.js +2 -0
  44. abstra_statics/dist/assets/{CrudView.c16e2f81.js → CrudView.cc6aeaf0.js} +2 -2
  45. abstra_statics/dist/assets/DocsButton.vue_vue_type_script_setup_true_lang.689d8ce7.js +2 -0
  46. abstra_statics/dist/assets/{EditorLogin.00a3b3d9.js → EditorLogin.691452b4.js} +2 -2
  47. abstra_statics/dist/assets/{EditorsView.f7b2843c.js → EditorsView.fcdf0186.js} +2 -2
  48. abstra_statics/dist/assets/EnvVars.5519b4ce.js +2 -0
  49. abstra_statics/dist/assets/Error.11fd1f21.js +2 -0
  50. abstra_statics/dist/assets/ExclamationCircleOutlined.d0aa47da.js +2 -0
  51. abstra_statics/dist/assets/Files.6ea18d46.js +2 -0
  52. abstra_statics/dist/assets/{Form.8077681f.js → Form.09de384c.js} +2 -2
  53. abstra_statics/dist/assets/{FormRunner.055e2c45.js → FormRunner.15be6fa0.js} +2 -2
  54. abstra_statics/dist/assets/{Home.0ef22910.js → Home.782c5702.js} +2 -2
  55. abstra_statics/dist/assets/Home.7c495aa9.js +2 -0
  56. abstra_statics/dist/assets/{Live.e1261458.js → Live.48c10605.js} +2 -2
  57. abstra_statics/dist/assets/LoadingContainer.82ac3d44.js +2 -0
  58. abstra_statics/dist/assets/LoadingOutlined.66639b08.js +2 -0
  59. abstra_statics/dist/assets/Login.4a05f5c5.js +2 -0
  60. abstra_statics/dist/assets/{Login.041361ea.js → Login.4e852955.js} +2 -2
  61. abstra_statics/dist/assets/{Login.vue_vue_type_script_setup_true_lang.c2eb444c.js → Login.vue_vue_type_script_setup_true_lang.5161f328.js} +2 -2
  62. abstra_statics/dist/assets/Logo.65e0b37c.js +2 -0
  63. abstra_statics/dist/assets/{Logs.f76cde12.js → Logs.7d1acf32.js} +2 -2
  64. abstra_statics/dist/assets/{LogsController.addd81bf.js → LogsController.0eb2eb30.js} +2 -2
  65. abstra_statics/dist/assets/Main.0313f4fc.js +2 -0
  66. abstra_statics/dist/assets/{MockForm.c9441864.js → MockForm.0b819a52.js} +2 -2
  67. abstra_statics/dist/assets/Navbar.ef64aa09.js +2 -0
  68. abstra_statics/dist/assets/NewEditor.b9c410fe.css +1 -0
  69. abstra_statics/dist/assets/NewEditor.c928dbe9.js +8 -0
  70. abstra_statics/dist/assets/OidcLoginCallback.42a7c4f9.js +2 -0
  71. abstra_statics/dist/assets/OidcLogoutCallback.35931a68.js +2 -0
  72. abstra_statics/dist/assets/OmniChat.73d9f6bb.js +6 -0
  73. abstra_statics/dist/assets/OmniChat.a21fec40.css +1 -0
  74. abstra_statics/dist/assets/{OnboardingView.fbc4b6fe.js → OnboardingView.25042384.js} +2 -2
  75. abstra_statics/dist/assets/{Organization.bc495099.js → Organization.66f64939.js} +2 -2
  76. abstra_statics/dist/assets/Organizations.47868beb.js +2 -0
  77. abstra_statics/dist/assets/{PhArrowCounterClockwise.vue.156bcd89.js → PhArrowCounterClockwise.vue.78877a50.js} +2 -2
  78. abstra_statics/dist/assets/{PhArrowSquareOut.vue.d0c95a06.js → PhArrowSquareOut.vue.2ddfc219.js} +2 -2
  79. abstra_statics/dist/assets/{PhBookBookmark.vue.42e49494.js → PhBookBookmark.vue.41108214.js} +2 -2
  80. abstra_statics/dist/assets/{PhChats.vue.54d692e4.js → PhChats.vue.71e5cb89.js} +2 -2
  81. abstra_statics/dist/assets/{PhClockCounterClockwise.vue.d47d66ba.js → PhClockCounterClockwise.vue.854c3cb5.js} +2 -2
  82. abstra_statics/dist/assets/{PhCopy.vue.a0d9b0ec.js → PhCopy.vue.d116ddfb.js} +2 -2
  83. abstra_statics/dist/assets/{PhCopySimple.vue.43c74ebe.js → PhCopySimple.vue.5d0f839d.js} +2 -2
  84. abstra_statics/dist/assets/{PhCube.vue.498c014d.js → PhCube.vue.abf4a034.js} +2 -2
  85. abstra_statics/dist/assets/PhDatabase.vue.a94d95f6.js +2 -0
  86. abstra_statics/dist/assets/{PhDotsThreeVertical.vue.0ea03d82.js → PhDotsThreeVertical.vue.5e8ae2a9.js} +2 -2
  87. abstra_statics/dist/assets/{PhDownloadSimple.vue.c92aeaff.js → PhDownloadSimple.vue.e88f64f1.js} +2 -2
  88. abstra_statics/dist/assets/{PhFolderPlus.vue.0c210f8d.js → PhFolderPlus.vue.21d377a3.js} +2 -2
  89. abstra_statics/dist/assets/{PhGear.vue.86c3014a.js → PhGear.vue.363dd83c.js} +2 -2
  90. abstra_statics/dist/assets/{PhKey.vue.72ce23d3.js → PhKey.vue.23f3a465.js} +2 -2
  91. abstra_statics/dist/assets/{PhPencil.vue.80ed4b2e.js → PhPencil.vue.feb383e2.js} +2 -2
  92. abstra_statics/dist/assets/{PhPencilSimple.vue.0046d784.js → PhPencilSimple.vue.ec0eebb4.js} +2 -2
  93. abstra_statics/dist/assets/{PhRocket.vue.f3302a7e.js → PhRocket.vue.261a42b2.js} +2 -2
  94. abstra_statics/dist/assets/{PhSignOut.vue.c9150da4.js → PhSignOut.vue.d1d6498f.js} +2 -2
  95. abstra_statics/dist/assets/{PhSparkle.vue.84ea95fc.js → PhSparkle.vue.b6712d34.js} +2 -2
  96. abstra_statics/dist/assets/{PhUserList.vue.bce47902.js → PhUserList.vue.e0b8c21b.js} +2 -2
  97. abstra_statics/dist/assets/{PhUsersThree.vue.0a84dfa4.js → PhUsersThree.vue.8889f957.js} +2 -2
  98. abstra_statics/dist/assets/PhWarningCircle.vue.2087be7d.js +2 -0
  99. abstra_statics/dist/assets/{PhWebhooksLogo.vue.a704632d.js → PhWebhooksLogo.vue.d164db1e.js} +2 -2
  100. abstra_statics/dist/assets/{PlayerConfigProvider.26b585a1.js → PlayerConfigProvider.28e29025.js} +2 -2
  101. abstra_statics/dist/assets/{PlayerNavbar.0fa6f760.js → PlayerNavbar.aaad1dfd.js} +2 -2
  102. abstra_statics/dist/assets/Project.2de506d7.js +2 -0
  103. abstra_statics/dist/assets/{ProjectLogin.934271a6.js → ProjectLogin.22c8b093.js} +2 -2
  104. abstra_statics/dist/assets/{ProjectSettings.2bf7e6c8.js → ProjectSettings.d065c292.js} +2 -2
  105. abstra_statics/dist/assets/{ProjectsView.ed31b921.js → ProjectsView.cbd118ac.js} +2 -2
  106. abstra_statics/dist/assets/{SaveButton.fdf70b31.js → SaveButton.428227de.js} +2 -2
  107. abstra_statics/dist/assets/ScrollArea.vue_vue_type_script_setup_true_lang.6d724b05.js +2 -0
  108. abstra_statics/dist/assets/{Sidebar.e69f49bd.css → Sidebar.29baeab0.css} +1 -1
  109. abstra_statics/dist/assets/{Sidebar.781afa0a.js → Sidebar.41173d8e.js} +2 -2
  110. abstra_statics/dist/assets/Sql.90e6e2ba.css +1 -0
  111. abstra_statics/dist/assets/Sql.c070dd2c.js +5 -0
  112. abstra_statics/dist/assets/Steps.dd51a108.js +2 -0
  113. abstra_statics/dist/assets/TableCard.529112b9.css +1 -0
  114. abstra_statics/dist/assets/TableCard.c9a1cf41.js +2 -0
  115. abstra_statics/dist/assets/TableEditor.1bc47a95.js +2 -0
  116. abstra_statics/dist/assets/TableEditor.5853a363.css +1 -0
  117. abstra_statics/dist/assets/Tables.eff119eb.js +2 -0
  118. abstra_statics/dist/assets/TablesDiagram.a588e7ff.css +1 -0
  119. abstra_statics/dist/assets/TablesDiagram.d633acaf.js +15 -0
  120. abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.cf7e34c5.js +2 -0
  121. abstra_statics/dist/assets/{Tasks.ee450480.js → Tasks.c311b05f.js} +2 -2
  122. abstra_statics/dist/assets/{UploadOutlined.e3072945.js → UploadOutlined.9aa845de.js} +2 -2
  123. abstra_statics/dist/assets/View.dd7ba25a.js +2 -0
  124. abstra_statics/dist/assets/{View.vue_vue_type_script_setup_true_lang.ee5d447b.js → View.vue_vue_type_script_setup_true_lang.e6563207.js} +2 -2
  125. abstra_statics/dist/assets/{Watermark.891eee9f.js → Watermark.9c9358e3.js} +2 -2
  126. abstra_statics/dist/assets/{WebEditor.7409cd48.js → WebEditor.83f2a960.js} +2 -2
  127. abstra_statics/dist/assets/WidgetPreview.7c6a231c.js +2 -0
  128. abstra_statics/dist/assets/ant-design.42419021.js +2 -0
  129. abstra_statics/dist/assets/apiKey.403049eb.js +2 -0
  130. abstra_statics/dist/assets/asyncComputed.47aec2b5.js +2 -0
  131. abstra_statics/dist/assets/{build.8fa1a961.js → build.45b511b6.js} +2 -2
  132. abstra_statics/dist/assets/colorHelpers.50ced1e9.js +2 -0
  133. abstra_statics/dist/assets/console.f0f09e6f.js +17 -0
  134. abstra_statics/dist/assets/constants.d569f33d.js +2 -0
  135. abstra_statics/dist/assets/{contracts.generated.c4057ed0.js → contracts.generated.aefe8d0a.js} +2 -2
  136. abstra_statics/dist/assets/{cssMode.4c65b876.js → cssMode.23271d4a.js} +2 -2
  137. abstra_statics/dist/assets/{datetime.e5660676.js → datetime.82608dfb.js} +2 -2
  138. abstra_statics/dist/assets/dayjs.7f71c60a.js +2 -0
  139. abstra_statics/dist/assets/editor.02184ced.js +2 -0
  140. abstra_statics/dist/assets/editor.main.0f931e87.js +2 -0
  141. abstra_statics/dist/assets/fetch.1b3d01a0.js +2 -0
  142. abstra_statics/dist/assets/files.8b58ee7e.js +2 -0
  143. abstra_statics/dist/assets/folder.13d3acac.js +2 -0
  144. abstra_statics/dist/assets/{freemarker2.1d872d48.js → freemarker2.f79b510b.js} +2 -2
  145. abstra_statics/dist/assets/{handlebars.41fc6db8.js → handlebars.07d5febe.js} +2 -2
  146. abstra_statics/dist/assets/{html.967e3c6d.js → html.7d6a59b4.js} +3 -3
  147. abstra_statics/dist/assets/{htmlMode.d38ab72a.js → htmlMode.7779ff94.js} +2 -2
  148. abstra_statics/dist/assets/{index.8e871bae.js → index.482df04a.js} +2 -2
  149. abstra_statics/dist/assets/{index.4b93c8ad.js → index.581e2edd.js} +2 -2
  150. abstra_statics/dist/assets/index.966ac1b9.js +2 -0
  151. abstra_statics/dist/assets/{index.9021ba5d.js → index.c7a996a6.js} +2 -2
  152. abstra_statics/dist/assets/{index.03d222dd.js → index.c8a56795.js} +2 -2
  153. abstra_statics/dist/assets/{index.5f3f38ed.js → index.d31da2c3.js} +2 -2
  154. abstra_statics/dist/assets/{index.51dbb698.js → index.d53182ed.js} +2 -2
  155. abstra_statics/dist/assets/{index.b762f5e8.js → index.e71a5f84.js} +2 -2
  156. abstra_statics/dist/assets/{javascript.0935bea2.js → javascript.4c528c2c.js} +3 -3
  157. abstra_statics/dist/assets/{jsonMode.2860b71c.js → jsonMode.d6441e9d.js} +2 -2
  158. abstra_statics/dist/assets/{jwt-decode.esm.7f2ef0df.js → jwt-decode.esm.54a1ea22.js} +8 -8
  159. abstra_statics/dist/assets/linters.a0f2aa84.js +2 -0
  160. abstra_statics/dist/assets/{liquid.1bae5f6b.js → liquid.0c441ad2.js} +2 -2
  161. abstra_statics/dist/assets/member.2260c37e.js +2 -0
  162. abstra_statics/dist/assets/{metadata.39f9b9ba.js → metadata.0098e20c.js} +2 -2
  163. abstra_statics/dist/assets/omniChatStore.dd7a1c46.js +8 -0
  164. abstra_statics/dist/assets/{organization.a877b653.js → organization.668d1b58.js} +2 -2
  165. abstra_statics/dist/assets/player.4ab4aed5.js +2 -0
  166. abstra_statics/dist/assets/{plotly.min.d3f75723.js → plotly.min.2a87d7e2.js} +2 -2
  167. abstra_statics/dist/assets/polling.b5a32c22.js +2 -0
  168. abstra_statics/dist/assets/{project.d22a89ee.js → project.1b8374f4.js} +2 -2
  169. abstra_statics/dist/assets/{python.4c1a1300.js → python.7ac27a56.js} +3 -3
  170. abstra_statics/dist/assets/{razor.ba8bdb33.js → razor.860a0279.js} +2 -2
  171. abstra_statics/dist/assets/{record.4ffc477c.js → record.e83a2eb2.js} +2 -2
  172. abstra_statics/dist/assets/{redirect.ce3c0f65.js → redirect.586749f4.js} +2 -2
  173. abstra_statics/dist/assets/{repository.360feb8f.js → repository.3a331f0f.js} +2 -2
  174. abstra_statics/dist/assets/{repository.ab3036a9.js → repository.66c7567c.js} +2 -2
  175. abstra_statics/dist/assets/router.06ee2b9d.js +2 -0
  176. abstra_statics/dist/assets/router.4dfadf5d.js +18 -0
  177. abstra_statics/dist/assets/string.61e11a30.js +2 -0
  178. abstra_statics/dist/assets/{tables.be1c51f8.js → tables.1bcb1140.js} +2 -2
  179. abstra_statics/dist/assets/{tasksController.bf12e264.js → tasksController.f3adf725.js} +2 -2
  180. abstra_statics/dist/assets/{toggleHighContrast.c4e1b24d.js → toggleHighContrast.9535bf54.js} +7 -7
  181. abstra_statics/dist/assets/{tsMode.da264aae.js → tsMode.c0f9fe1a.js} +2 -2
  182. abstra_statics/dist/assets/{typescript.db5d7517.js → typescript.310eae6d.js} +3 -3
  183. abstra_statics/dist/assets/url.f5664225.js +2 -0
  184. abstra_statics/dist/assets/{useCodebaseEvents.42573b00.js → useCodebaseEvents.276cc8f0.js} +2 -2
  185. abstra_statics/dist/assets/useTables.18fc3efd.js +2 -0
  186. abstra_statics/dist/assets/userStore.6ab1e5ac.js +2 -0
  187. abstra_statics/dist/assets/uuid.5b8ba8af.js +2 -0
  188. abstra_statics/dist/assets/vue-flow-background.af096866.js +2 -0
  189. abstra_statics/dist/assets/vue-flow-core.6cb99d32.js +22 -0
  190. abstra_statics/dist/assets/{vue-quill.esm-bundler.37119951.js → vue-quill.esm-bundler.e3d34d0e.js} +2 -2
  191. abstra_statics/dist/assets/{workspaceStore.50ef2df1.js → workspaceStore.fac1e9a9.js} +2 -2
  192. abstra_statics/dist/assets/{xml.94b88503.js → xml.04864db4.js} +3 -3
  193. abstra_statics/dist/assets/{yaml.73b7d5ce.js → yaml.f30375fe.js} +3 -3
  194. abstra_statics/dist/console.html +14 -15
  195. abstra_statics/dist/editor.html +13 -13
  196. abstra_statics/dist/player.html +9 -9
  197. tests/e2e/test_crud_files.py +1 -0
  198. abstra_internals/templates/abstraignore +0 -8
  199. abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.3f03a3ef.js +0 -2
  200. abstra_statics/dist/assets/ApiKeys.cb561e62.js +0 -2
  201. abstra_statics/dist/assets/App.dc82115f.js +0 -2
  202. abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.3640ec1c.js +0 -2
  203. abstra_statics/dist/assets/ConnectorsView.b428e487.js +0 -2
  204. abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.506f28c6.js +0 -2
  205. abstra_statics/dist/assets/ContentLayout.228d2328.js +0 -2
  206. abstra_statics/dist/assets/DocsButton.vue_vue_type_script_setup_true_lang.61381525.js +0 -2
  207. abstra_statics/dist/assets/EnvVars.242b97c2.js +0 -2
  208. abstra_statics/dist/assets/Error.466dbb94.js +0 -2
  209. abstra_statics/dist/assets/ExclamationCircleOutlined.6d10f60b.js +0 -2
  210. abstra_statics/dist/assets/Files.104385dd.js +0 -2
  211. abstra_statics/dist/assets/Home.80c7e349.js +0 -2
  212. abstra_statics/dist/assets/LoadingContainer.6e2b63e4.js +0 -2
  213. abstra_statics/dist/assets/LoadingOutlined.cd84d9c9.js +0 -2
  214. abstra_statics/dist/assets/Login.409f4a11.js +0 -2
  215. abstra_statics/dist/assets/Logo.2de02c4a.js +0 -2
  216. abstra_statics/dist/assets/Main.4370ed68.js +0 -2
  217. abstra_statics/dist/assets/Navbar.07ba9452.js +0 -2
  218. abstra_statics/dist/assets/NewEditor.769f4459.js +0 -8
  219. abstra_statics/dist/assets/NewEditor.d6e41a05.css +0 -1
  220. abstra_statics/dist/assets/OidcLoginCallback.a89857fe.js +0 -2
  221. abstra_statics/dist/assets/OidcLogoutCallback.d151c695.js +0 -2
  222. abstra_statics/dist/assets/OmniChat.0f64dfec.css +0 -1
  223. abstra_statics/dist/assets/OmniChat.d015bfa8.js +0 -6
  224. abstra_statics/dist/assets/Organizations.b630803f.js +0 -2
  225. abstra_statics/dist/assets/PhPencilSimpleLine.vue.34633dfa.js +0 -2
  226. abstra_statics/dist/assets/Project.c03610d3.js +0 -2
  227. abstra_statics/dist/assets/ScrollArea.vue_vue_type_script_setup_true_lang.3bbea426.js +0 -2
  228. abstra_statics/dist/assets/Sql.3cdc910a.css +0 -1
  229. abstra_statics/dist/assets/Sql.b6aa38ca.js +0 -5
  230. abstra_statics/dist/assets/Steps.7c7e4a4a.js +0 -2
  231. abstra_statics/dist/assets/TableEditor.1e680eaf.css +0 -1
  232. abstra_statics/dist/assets/TableEditor.dc1b4a2d.js +0 -2
  233. abstra_statics/dist/assets/Tables.de30953b.js +0 -2
  234. abstra_statics/dist/assets/TablesDiagram.1ec45dd9.css +0 -1
  235. abstra_statics/dist/assets/TablesDiagram.97d6a43f.js +0 -15
  236. abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.63aa07d0.js +0 -2
  237. abstra_statics/dist/assets/View.617ad8d8.js +0 -2
  238. abstra_statics/dist/assets/WidgetPreview.99f14714.js +0 -2
  239. abstra_statics/dist/assets/ant-design.4952c8fb.js +0 -2
  240. abstra_statics/dist/assets/apiKey.864dc66b.js +0 -2
  241. abstra_statics/dist/assets/asyncComputed.25309626.js +0 -2
  242. abstra_statics/dist/assets/colorHelpers.71d6d61d.js +0 -2
  243. abstra_statics/dist/assets/console.3d4702c3.js +0 -25
  244. abstra_statics/dist/assets/constants.56e8988f.js +0 -2
  245. abstra_statics/dist/assets/dayjs.c54f8edb.js +0 -2
  246. abstra_statics/dist/assets/editor.6d0baf6f.js +0 -2
  247. abstra_statics/dist/assets/editor.main.65812c73.js +0 -2
  248. abstra_statics/dist/assets/fetch.5136a62d.js +0 -2
  249. abstra_statics/dist/assets/folder.d7d65e5b.js +0 -2
  250. abstra_statics/dist/assets/index.23283fbb.js +0 -2
  251. abstra_statics/dist/assets/index.58e29274.js +0 -2
  252. abstra_statics/dist/assets/linters.640d6098.js +0 -2
  253. abstra_statics/dist/assets/member.b7ac8000.js +0 -2
  254. abstra_statics/dist/assets/omniChatStore.3431c026.js +0 -8
  255. abstra_statics/dist/assets/player.30593e18.js +0 -2
  256. abstra_statics/dist/assets/polling.d1c934c7.js +0 -2
  257. abstra_statics/dist/assets/router.7f571832.js +0 -2
  258. abstra_statics/dist/assets/router.8fd5b2ad.js +0 -10
  259. abstra_statics/dist/assets/string.2ed1cde3.js +0 -2
  260. abstra_statics/dist/assets/url.8583a595.js +0 -2
  261. abstra_statics/dist/assets/userStore.73b89fbb.js +0 -2
  262. abstra_statics/dist/assets/uuid.dadede91.js +0 -2
  263. abstra_statics/dist/assets/vue-flow-background.d2772d9a.js +0 -22
  264. {abstra-3.23.12.dist-info → abstra-3.24.1.dist-info}/WHEEL +0 -0
  265. {abstra-3.23.12.dist-info → abstra-3.24.1.dist-info}/entry_points.txt +0 -0
  266. {abstra-3.23.12.dist-info → abstra-3.24.1.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,2 @@
1
+ import"./jwt-decode.esm.54a1ea22.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="898a6ea9-96e5-45b2-8bb2-db9cdd4fc0e5",e._sentryDebugIdIdentifier="sentry-dbid-898a6ea9-96e5-45b2-8bb2-db9cdd4fc0e5")}catch{}})();const d=1e3,r=e=>{let n=null;return{startPolling:()=>{const t=async()=>{var o;try{!document.hidden&&!e.keepPollingOnOutOfFocus&&await e.task()}finally{n=setTimeout(t,(o=e.interval)!=null?o:d)}};t()},endPolling:()=>{n&&clearTimeout(n)}}};export{r as u};
2
+ //# sourceMappingURL=polling.b5a32c22.js.map
@@ -1,2 +1,2 @@
1
- var h=Object.defineProperty;var l=(a,t,e)=>t in a?h(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var o=(a,t,e)=>(l(a,typeof t!="symbol"?t+"":t,e),e);import{a as g}from"./record.4ffc477c.js";import{h as s}from"./router.8fd5b2ad.js";import"./jwt-decode.esm.7f2ef0df.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="38d97205-5299-483c-9441-5b8741fb9067",a._sentryDebugIdIdentifier="sentry-dbid-38d97205-5299-483c-9441-5b8741fb9067")}catch{}})();class y extends Error{constructor(){super("Subdomain already in use")}}class m{constructor(){o(this,"urlPath","projects")}async create({name:t,organizationId:e,folderId:r}){return s.post(`organizations/${e}/${this.urlPath}`,{name:t,folderId:r})}async delete(t){await s.delete(`/${this.urlPath}/${t}`)}async duplicate(t){return await new Promise(e=>setTimeout(e,5e3)),s.post(`/${this.urlPath}/${t}/duplicate`,{})}async list(t){return s.get(`organizations/${t}/${this.urlPath}`)}async get(t){return s.get(`${this.urlPath}/${t}`)}async update(t,e){const r=await s.patch(`${this.urlPath}/${t}`,e);if("error"in r&&r.error==="subdomain-already-in-use")throw new y;if("error"in r)throw new Error("Unknown error");return r}async checkSubdomain(t,e){return s.get(`${this.urlPath}/${t}/check-subdomain/${e}`)}async getStatus(t){return s.get(`${this.urlPath}/${t}/deploy-status`)}async startWebEditor(t){return s.post(`${this.urlPath}/${t}/web-editor/start`,{})}async executeQuery(t,e,r){return s.post(`projects/${t}/execute`,{query:e,params:r})}}const n=new m;class i{constructor(t){o(this,"record");this.record=g.create(n,t)}static formatSubdomain(t){const r=t.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,""),c=/[a-z0-9]+/g,u=r.matchAll(c);return Array.from(u).map(d=>d[0]).join("-")}static async list(t){return(await n.list(t)).map(r=>new i(r))}static async create(t){const e=await n.create(t);return new i(e)}get folderId(){return this.record.get("folderId")}static async get(t){const e=await n.get(t);return new i(e)}static async getStatus(t){return await n.getStatus(t)}async delete(){await n.delete(this.id)}async duplicate(){const t=await n.duplicate(this.id);return new i(t)}static async executeQuery(t,e,r){return n.executeQuery(t,e,r)}async save(){return this.record.save()}resetChanges(){this.record.resetChanges()}hasChanges(){return this.record.hasChanges()}hasChangesDeep(t){return this.record.hasChangesDeep(t)}get id(){return this.record.get("id")}get name(){return this.record.get("name")}set name(t){this.record.set("name",t)}get organizationId(){return this.record.get("organizationId")}get subdomain(){return this.record.get("subdomain")}set subdomain(t){this.record.set("subdomain",t)}async checkSubdomain(){return await n.checkSubdomain(this.id,this.subdomain)}static async startWebEditor(t){return await n.startWebEditor(t)}getUrl(t=""){const e=t.startsWith("/")?t.slice(1):t;return`https://${this.subdomain}.abstra.app/${e}`}}export{m as P,i as a};
2
- //# sourceMappingURL=project.d22a89ee.js.map
1
+ var h=Object.defineProperty;var l=(a,t,e)=>t in a?h(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var o=(a,t,e)=>(l(a,typeof t!="symbol"?t+"":t,e),e);import{a as g}from"./record.e83a2eb2.js";import{k as s}from"./router.4dfadf5d.js";import"./jwt-decode.esm.54a1ea22.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="dcbea824-cdaf-40a9-9873-7a64561d0641",a._sentryDebugIdIdentifier="sentry-dbid-dcbea824-cdaf-40a9-9873-7a64561d0641")}catch{}})();class y extends Error{constructor(){super("Subdomain already in use")}}class m{constructor(){o(this,"urlPath","projects")}async create({name:t,organizationId:e,folderId:r}){return s.post(`organizations/${e}/${this.urlPath}`,{name:t,folderId:r})}async delete(t){await s.delete(`/${this.urlPath}/${t}`)}async duplicate(t){return await new Promise(e=>setTimeout(e,5e3)),s.post(`/${this.urlPath}/${t}/duplicate`,{})}async list(t){return s.get(`organizations/${t}/${this.urlPath}`)}async get(t){return s.get(`${this.urlPath}/${t}`)}async update(t,e){const r=await s.patch(`${this.urlPath}/${t}`,e);if("error"in r&&r.error==="subdomain-already-in-use")throw new y;if("error"in r)throw new Error("Unknown error");return r}async checkSubdomain(t,e){return s.get(`${this.urlPath}/${t}/check-subdomain/${e}`)}async getStatus(t){return s.get(`${this.urlPath}/${t}/deploy-status`)}async startWebEditor(t){return s.post(`${this.urlPath}/${t}/web-editor/start`,{})}async executeQuery(t,e,r){return s.post(`projects/${t}/execute`,{query:e,params:r})}}const n=new m;class i{constructor(t){o(this,"record");this.record=g.create(n,t)}static formatSubdomain(t){const r=t.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,""),c=/[a-z0-9]+/g,u=r.matchAll(c);return Array.from(u).map(d=>d[0]).join("-")}static async list(t){return(await n.list(t)).map(r=>new i(r))}static async create(t){const e=await n.create(t);return new i(e)}get folderId(){return this.record.get("folderId")}static async get(t){const e=await n.get(t);return new i(e)}static async getStatus(t){return await n.getStatus(t)}async delete(){await n.delete(this.id)}async duplicate(){const t=await n.duplicate(this.id);return new i(t)}static async executeQuery(t,e,r){return n.executeQuery(t,e,r)}async save(){return this.record.save()}resetChanges(){this.record.resetChanges()}hasChanges(){return this.record.hasChanges()}hasChangesDeep(t){return this.record.hasChangesDeep(t)}get id(){return this.record.get("id")}get name(){return this.record.get("name")}set name(t){this.record.set("name",t)}get organizationId(){return this.record.get("organizationId")}get subdomain(){return this.record.get("subdomain")}set subdomain(t){this.record.set("subdomain",t)}async checkSubdomain(){return await n.checkSubdomain(this.id,this.subdomain)}static async startWebEditor(t){return await n.startWebEditor(t)}getUrl(t=""){const e=t.startsWith("/")?t.slice(1):t;return`https://${this.subdomain}.abstra.app/${e}`}}export{m as P,i as a};
2
+ //# sourceMappingURL=project.1b8374f4.js.map
@@ -1,7 +1,7 @@
1
- import{m as a}from"./toggleHighContrast.c4e1b24d.js";import"./jwt-decode.esm.7f2ef0df.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="6f59b555-e6e1-441d-a0d0-6a8f4b8244d5",t._sentryDebugIdIdentifier="sentry-dbid-6f59b555-e6e1-441d-a0d0-6a8f4b8244d5")}catch{}})();/*!-----------------------------------------------------------------------------
1
+ import{m as a}from"./toggleHighContrast.9535bf54.js";import"./jwt-decode.esm.54a1ea22.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="5ffbdf95-48bb-4d61-b2f0-d623106f0eda",t._sentryDebugIdIdentifier="sentry-dbid-5ffbdf95-48bb-4d61-b2f0-d623106f0eda")}catch{}})();/*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
4
4
  * Released under the MIT license
5
5
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
- *-----------------------------------------------------------------------------*/var l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,o=(t,e,n,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of p(e))!d.call(t,r)&&r!==n&&l(t,r,{get:()=>e[r],enumerable:!(s=c(e,r))||s.enumerable});return t},g=(t,e,n)=>(o(t,e,"default"),n&&o(n,e,"default")),i={};g(i,a);var f={comments:{lineComment:"#",blockComment:["'''","'''"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$"),action:{indentAction:i.languages.IndentAction.Indent}}],folding:{offSide:!0,markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},m={defaultToken:"",tokenPostfix:".python",keywords:["False","None","True","_","and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","match","nonlocal","not","or","pass","print","raise","return","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","self","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()]/,"@brackets"],[/@[a-zA-Z_]\w*/,"tag"],[/[a-zA-Z_]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}]],whitespace:[[/\s+/,"white"],[/(^#.*$)/,"comment"],[/'''/,"string","@endDocString"],[/"""/,"string","@endDblDocString"]],endDocString:[[/[^']+/,"string"],[/\\'/,"string"],[/'''/,"string","@popall"],[/'/,"string"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string","@popall"],[/"/,"string"]],numbers:[[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/,"number"]],strings:[[/'$/,"string.escape","@popall"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]]}};export{f as conf,m as language};
7
- //# sourceMappingURL=python.4c1a1300.js.map
6
+ *-----------------------------------------------------------------------------*/var l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,o=(t,e,n,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of p(e))!d.call(t,r)&&r!==n&&l(t,r,{get:()=>e[r],enumerable:!(s=c(e,r))||s.enumerable});return t},g=(t,e,n)=>(o(t,e,"default"),n&&o(n,e,"default")),i={};g(i,a);var b={comments:{lineComment:"#",blockComment:["'''","'''"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$"),action:{indentAction:i.languages.IndentAction.Indent}}],folding:{offSide:!0,markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},m={defaultToken:"",tokenPostfix:".python",keywords:["False","None","True","_","and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","match","nonlocal","not","or","pass","print","raise","return","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","self","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()]/,"@brackets"],[/@[a-zA-Z_]\w*/,"tag"],[/[a-zA-Z_]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}]],whitespace:[[/\s+/,"white"],[/(^#.*$)/,"comment"],[/'''/,"string","@endDocString"],[/"""/,"string","@endDblDocString"]],endDocString:[[/[^']+/,"string"],[/\\'/,"string"],[/'''/,"string","@popall"],[/'/,"string"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string","@popall"],[/"/,"string"]],numbers:[[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/,"number"]],strings:[[/'$/,"string.escape","@popall"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]]}};export{b as conf,m as language};
7
+ //# sourceMappingURL=python.7ac27a56.js.map
@@ -1,7 +1,7 @@
1
- import{m as s}from"./toggleHighContrast.c4e1b24d.js";import"./jwt-decode.esm.7f2ef0df.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="07f03b01-4942-4d3e-928b-b509f72b3dc0",t._sentryDebugIdIdentifier="sentry-dbid-07f03b01-4942-4d3e-928b-b509f72b3dc0")}catch{}})();/*!-----------------------------------------------------------------------------
1
+ import{m as s}from"./toggleHighContrast.9535bf54.js";import"./jwt-decode.esm.54a1ea22.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="06be7d07-28d9-4edc-9f6a-ff08776d7cb3",t._sentryDebugIdIdentifier="sentry-dbid-06be7d07-28d9-4edc-9f6a-ff08776d7cb3")}catch{}})();/*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
4
4
  * Released under the MIT license
5
5
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
6
  *-----------------------------------------------------------------------------*/var c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,i=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of d(e))!p.call(t,o)&&o!==r&&c(t,o,{get:()=>e[o],enumerable:!(a=l(e,o))||a.enumerable});return t},h=(t,e,r)=>(i(t,e,"default"),r&&i(r,e,"default")),n={};h(n,s);var m=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],y={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["<!--","-->"]},brackets:[["<!--","-->"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:n.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:n.languages.IndentAction.Indent}}]},k={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/@@@@/],[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@comment"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/[ \t\r\n]+/],[/[^<@]+/]],doctype:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],razorInSimpleState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3"}]],razorInEmbeddedState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],razorBlockCommentTopLevel:[[/\*@/,"@rematch","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorBlockComment:[[/\*@/,"comment.cs","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorRootTopLevel:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/[})]/,"@rematch","@pop"],{include:"razorCommon"}],razorRoot:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/\}/,"delimiter.bracket.cs","@pop"],[/\)/,"delimiter.parenthesis.cs","@pop"],{include:"razorCommon"}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:"keyword.cs"},"@default":"identifier.cs"}}],[/[\[\]]/,"delimiter.array.cs"],[/[ \t\r\n]+/],[/\/\/.*$/,"comment.cs"],[/@\*/,"comment.cs","@razorBlockComment"],[/"([^"]*)"/,"string.cs"],[/'([^']*)'/,"string.cs"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<\/)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,"delimiter.cs"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.cs"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.cs"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.cs"],[/0[0-7']*[0-7]/,"number.octal.cs"],[/0[bB][0-1']*[0-1]/,"number.binary.cs"],[/\d[\d']*/,"number.cs"],[/\d/,"number.cs"]]},razorKeywords:["abstract","as","async","await","base","bool","break","by","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","descending","explicit","event","extern","else","enum","false","finally","fixed","float","for","foreach","from","goto","group","if","implicit","in","int","interface","internal","into","is","lock","long","nameof","new","null","namespace","object","operator","out","override","orderby","params","private","protected","public","readonly","ref","return","switch","struct","sbyte","sealed","short","sizeof","stackalloc","static","string","select","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","var","virtual","volatile","void","when","while","where","yield","model","inject"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/};export{y as conf,k as language};
7
- //# sourceMappingURL=razor.ba8bdb33.js.map
7
+ //# sourceMappingURL=razor.860a0279.js.map
@@ -1,2 +1,2 @@
1
- var g=Object.defineProperty;var o=(e,s,t)=>s in e?g(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t;var n=(e,s,t)=>(o(e,typeof s!="symbol"?s+"":s,t),t);import{N as p,eD as u,em as r}from"./jwt-decode.esm.7f2ef0df.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="0649638d-8187-46d1-a8a3-99dcc5c99444",e._sentryDebugIdIdentifier="sentry-dbid-0649638d-8187-46d1-a8a3-99dcc5c99444")}catch{}})();class b{constructor(){n(this,"topics");n(this,"subUid");this.topics={},this.subUid=-1}subscribe(s,t){const i=(++this.subUid).toString();return this.topics[s]||(this.topics[s]=[]),this.topics[s].push({token:i,func:t}),i}async wait(s){return new Promise(t=>{const i=this.subscribe(s,a=>{this.unsubscribe(i),t(a)})})}async publish(s,...t){if(!this.topics[s])return!1;const i=this.topics[s];let a=i?i.length:0;for(;a--;)await i[a].func(t[0]);return!0}unsubscribe(s){for(const t in this.topics)if(this.topics[t]){for(let i=0,a=this.topics[t].length;i<a;i++)if(this.topics[t][i].token===s)return this.topics[t].splice(i,1),s}return!1}reset(){this.topics={},this.subUid=-1}}class h{constructor(s){n(this,"initialState");n(this,"pubsub");n(this,"_changes");this.initialState=s,this.pubsub=new b,this._changes=p({})}static from(s){return u(new h(s))}get changes(){return this._changes.value}get(s){var t;return(t=this.changes[s])!=null?t:this.initialState[s]}set(s,t){this._changes.value={...this.changes,[s]:t}}hasChanges(s){return s?s in this.changes:Object.keys(this.changes).length>0}hasChangesDeep(s){return s in this.changes&&!r.exports.isEqual(this.initialState[s],this.changes[s])}get state(){return{...this.initialState,...this.changes}}resetChanges(){const s={...this.changes};this._changes.value={},this.pubsub.publish("update",s)}onUpdate(s){this.pubsub.subscribe("update",s)}commit(){this.initialState=this.state,this._changes.value={}}toDTO(){return{...this.state,...this._changes.value}}update(s){this._changes.value={...this.changes,...s}}}class l extends h{constructor(t,i){super(i);n(this,"api");this.api=t}static create(t,i){return u(new l(t,i))}getInitialState(t){return this.initialState[t]}updateInitialState(t,i){this.initialState[t]=i,delete this._changes.value[t]}async save(t){if(Object.keys(this.changes).length===0||t&&!(t in this.changes))return;if(t){const a={[t]:this.changes[t]},c=await this.api.update(this.initialState.id,a);this.initialState={...this.initialState,...c},delete this._changes.value[t];return}this.initialState=await this.api.update(this.initialState.id,this.changes);const i={...this.changes};this._changes.value={},this.pubsub.publish("update",i)}}class d extends h{constructor(t,i){super(i);n(this,"api");n(this,"debouncedSave");this.api=t,this.debouncedSave=r.exports.debounce(()=>{this.save()},500)}static create(t,i){return u(new d(t,i))}getInitialState(t){return this.initialState[t]}updateInitialState(t,i){this.initialState[t]=i,delete this._changes.value[t]}set(t,i){super.set(t,i),this.debouncedSave()}async save(t){if(Object.keys(this.changes).length===0||t&&!(t in this.changes))return;if(t){const a={[t]:this.changes[t]},c=await this.api.update(this.initialState.id,a);this.initialState={...this.initialState,...c},delete this._changes.value[t];return}this.initialState=await this.api.update(this.initialState.id,this.changes);const i={...this.changes};this._changes.value={},this.pubsub.publish("update",i)}}export{d as A,h as E,b as P,l as a};
2
- //# sourceMappingURL=record.4ffc477c.js.map
1
+ var g=Object.defineProperty;var o=(e,s,t)=>s in e?g(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t;var n=(e,s,t)=>(o(e,typeof s!="symbol"?s+"":s,t),t);import{N as p,eE as c,ej as r}from"./jwt-decode.esm.54a1ea22.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="fe9d0fd9-2d32-43d0-baeb-6e34db5d7c37",e._sentryDebugIdIdentifier="sentry-dbid-fe9d0fd9-2d32-43d0-baeb-6e34db5d7c37")}catch{}})();class b{constructor(){n(this,"topics");n(this,"subUid");this.topics={},this.subUid=-1}subscribe(s,t){const i=(++this.subUid).toString();return this.topics[s]||(this.topics[s]=[]),this.topics[s].push({token:i,func:t}),i}async wait(s){return new Promise(t=>{const i=this.subscribe(s,a=>{this.unsubscribe(i),t(a)})})}async publish(s,...t){if(!this.topics[s])return!1;const i=this.topics[s];let a=i?i.length:0;for(;a--;)await i[a].func(t[0]);return!0}unsubscribe(s){for(const t in this.topics)if(this.topics[t]){for(let i=0,a=this.topics[t].length;i<a;i++)if(this.topics[t][i].token===s)return this.topics[t].splice(i,1),s}return!1}reset(){this.topics={},this.subUid=-1}}class h{constructor(s){n(this,"initialState");n(this,"pubsub");n(this,"_changes");this.initialState=s,this.pubsub=new b,this._changes=p({})}static from(s){return c(new h(s))}get changes(){return this._changes.value}get(s){var t;return(t=this.changes[s])!=null?t:this.initialState[s]}set(s,t){this._changes.value={...this.changes,[s]:t}}hasChanges(s){return s?s in this.changes:Object.keys(this.changes).length>0}hasChangesDeep(s){return s in this.changes&&!r.exports.isEqual(this.initialState[s],this.changes[s])}get state(){return{...this.initialState,...this.changes}}resetChanges(){const s={...this.changes};this._changes.value={},this.pubsub.publish("update",s)}onUpdate(s){this.pubsub.subscribe("update",s)}commit(){this.initialState=this.state,this._changes.value={}}toDTO(){return{...this.state,...this._changes.value}}update(s){this._changes.value={...this.changes,...s}}}class l extends h{constructor(t,i){super(i);n(this,"api");this.api=t}static create(t,i){return c(new l(t,i))}getInitialState(t){return this.initialState[t]}updateInitialState(t,i){this.initialState[t]=i,delete this._changes.value[t]}async save(t){if(Object.keys(this.changes).length===0||t&&!(t in this.changes))return;if(t){const a={[t]:this.changes[t]},u=await this.api.update(this.initialState.id,a);this.initialState={...this.initialState,...u},delete this._changes.value[t];return}this.initialState=await this.api.update(this.initialState.id,this.changes);const i={...this.changes};this._changes.value={},this.pubsub.publish("update",i)}}class d extends h{constructor(t,i){super(i);n(this,"api");n(this,"debouncedSave");this.api=t,this.debouncedSave=r.exports.debounce(()=>{this.save()},500)}static create(t,i){return c(new d(t,i))}getInitialState(t){return this.initialState[t]}updateInitialState(t,i){this.initialState[t]=i,delete this._changes.value[t]}set(t,i){super.set(t,i),this.debouncedSave()}async save(t){if(Object.keys(this.changes).length===0||t&&!(t in this.changes))return;if(t){const a={[t]:this.changes[t]},u=await this.api.update(this.initialState.id,a);this.initialState={...this.initialState,...u},delete this._changes.value[t];return}this.initialState=await this.api.update(this.initialState.id,this.changes);const i={...this.changes};this._changes.value={},this.pubsub.publish("update",i)}}export{d as A,h as E,b as P,l as a};
2
+ //# sourceMappingURL=record.e83a2eb2.js.map
@@ -1,2 +1,2 @@
1
- import{i as c}from"./url.8583a595.js";import"./jwt-decode.esm.7f2ef0df.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="b028a134-063f-4fe8-a628-c421a2e327e1",e._sentryDebugIdIdentifier="sentry-dbid-b028a134-063f-4fe8-a628-c421a2e327e1")}catch{}})();function i(e){return e.startsWith("/")?e.slice(1):e}function f(e,r,n={}){if(c(r)){const a=new URL(r),t=new URLSearchParams(n),o=new URLSearchParams(a.search),s=new URLSearchParams([...o,...t]);return a.search=s.toString(),{action:"REPLACE_LOCAL_HREF",newHref:a.toString()}}else{const a=r.replace(/\/$/,"");if(e==="player")return{action:"GOTO_FORM_PLAYER",path:i(a),queryParams:n};if(e==="editor")return{action:"GOTO_FORM_EDITOR",path:i(a),queryParams:n};if(e==="preview")return{action:"GOTO_FORM_PLAYER",path:i(a),queryParams:n};throw new Error(`Invalid routing ${e}`)}}async function w(e,r,n,a={}){const t=f(e,n,a);switch(t.action){case"REPLACE_LOCAL_HREF":window.location.href=t.newHref;break;case"GOTO_FORM_EDITOR":await r.push({name:"formEditor",params:{formPath:t.path},query:t.queryParams});break;case"GOTO_FORM_PLAYER":await r.push({name:e==="preview"?"formPreview":"formPlayer",params:{formPath:t.path},query:t.queryParams});break;default:throw new Error("Invalid routing")}}export{w as r};
2
- //# sourceMappingURL=redirect.ce3c0f65.js.map
1
+ import{i as c}from"./url.f5664225.js";import"./jwt-decode.esm.54a1ea22.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="1b85ff42-9a90-4abf-9233-7970ff7c2793",e._sentryDebugIdIdentifier="sentry-dbid-1b85ff42-9a90-4abf-9233-7970ff7c2793")}catch{}})();function i(e){return e.startsWith("/")?e.slice(1):e}function f(e,r,n={}){if(c(r)){const a=new URL(r),t=new URLSearchParams(n),o=new URLSearchParams(a.search),s=new URLSearchParams([...o,...t]);return a.search=s.toString(),{action:"REPLACE_LOCAL_HREF",newHref:a.toString()}}else{const a=r.replace(/\/$/,"");if(e==="player")return{action:"GOTO_FORM_PLAYER",path:i(a),queryParams:n};if(e==="editor")return{action:"GOTO_FORM_EDITOR",path:i(a),queryParams:n};if(e==="preview")return{action:"GOTO_FORM_PLAYER",path:i(a),queryParams:n};throw new Error(`Invalid routing ${e}`)}}async function w(e,r,n,a={}){const t=f(e,n,a);switch(t.action){case"REPLACE_LOCAL_HREF":window.location.href=t.newHref;break;case"GOTO_FORM_EDITOR":await r.push({name:"formEditor",params:{formPath:t.path},query:t.queryParams});break;case"GOTO_FORM_PLAYER":await r.push({name:e==="preview"?"formPreview":"formPlayer",params:{formPath:t.path},query:t.queryParams});break;default:throw new Error("Invalid routing")}}export{w as r};
2
+ //# sourceMappingURL=redirect.586749f4.js.map
@@ -1,2 +1,2 @@
1
- import{f as h,e7 as m,eI as S,eJ as I,d as _,o as c,a as l,u,h as $}from"./jwt-decode.esm.7f2ef0df.js";import{L as x}from"./LoadingOutlined.cd84d9c9.js";import{h as d}from"./router.8fd5b2ad.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="9dff5ab4-e5fe-46c6-a335-7c6b26e3523c",r._sentryDebugIdIdentifier="sentry-dbid-9dff5ab4-e5fe-46c6-a335-7c6b26e3523c")}catch{}})();var P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm192 472c0 4.4-3.6 8-8 8H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h368c4.4 0 8 3.6 8 8v48z"}}]},name:"minus-circle",theme:"filled"};const F=P;function w(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},n=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable}))),n.forEach(function(s){k(r,s,t[s])})}return r}function k(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var b=function(e,t){var n=w({},e,t.attrs);return h(m,w({},n,{icon:S}),null)};b.displayName="CheckCircleFilled";b.inheritAttrs=!1;const E=b;function j(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},n=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable}))),n.forEach(function(s){A(r,s,t[s])})}return r}function A(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var y=function(e,t){var n=j({},e,t.attrs);return h(m,j({},n,{icon:I}),null)};y.displayName="CloseCircleFilled";y.inheritAttrs=!1;const D=y;function v(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},n=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable}))),n.forEach(function(s){M(r,s,t[s])})}return r}function M(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var C=function(e,t){var n=v({},e,t.attrs);return h(m,v({},n,{icon:F}),null)};C.displayName="MinusCircleFilled";C.inheritAttrs=!1;const L=C,B=_({__name:"ExecutionStatusIcon",props:{status:{}},setup(r){return(e,t)=>e.status==="finished"?(c(),l(u(E),{key:0,style:{color:"#33b891"}})):e.status==="failed"?(c(),l(u(D),{key:1,style:{color:"#fa675c"}})):e.status==="abandoned"||e.status==="lock-failed"?(c(),l(u(L),{key:2,style:{color:"#f69220"}})):e.status==="running"?(c(),l(u(x),{key:3})):$("",!0)}}),z=["running","lock-failed","failed","finished","abandoned"];class f{constructor(e){this.dto=e}static from(e){return new f(e)}get entries(){return this.dto.sort((e,t)=>e.sequence-t.sequence).filter(e=>e.event!=="form-message")}}class g{constructor(e){this.dto=e}static from(e){return new g(e)}get id(){return this.dto.id}get shortId(){return this.dto.id.slice(0,8)}get createdAt(){return new Date(this.dto.createdAt)}get updatedAt(){return new Date(this.dto.updatedAt)}get status(){return this.dto.status}get context(){return this.dto.context}get buildId(){var e;return(e=this.dto.buildId)!=null?e:""}get stageId(){return this.dto.stageId}get duration_seconds(){return this.status==="running"?"-":`${(this.updatedAt.getTime()-this.createdAt.getTime())/1e3} s`}get stageRunId(){return this.dto.stageRunId}get projectId(){return this.dto.projectId}}class V{async list({projectId:e,...t}){var p,a;const n={...t,offset:(p=t.offset)==null?void 0:p.toString(),limit:(a=t.limit)==null?void 0:a.toString()};Object.keys(n).forEach(o=>n[o]===void 0&&delete n[o]);const s=await d.get(`projects/${e}/executions`,n);return{executions:s.executions.map(o=>g.from(o)),totalCount:s.totalCount}}async fetchLogs(e,t){const n=await d.get(`projects/${e}/executions/${t}/logs`);return f.from(n)}async fetchThreadData(e,t){return(await d.get(`projects/${e}/executions/${t}/thread-data`)).response}async getExecutionTasks(e,t){return await d.get(`projects/${e}/executions/${t}/tasks`)}async fetchStages(){throw new Error("Method not implemented.")}}class G{async list(e){var o,O;const t={...e,offset:(o=e.offset)==null?void 0:o.toString(),limit:(O=e.limit)==null?void 0:O.toString()};Object.keys(t).forEach(i=>t[i]===void 0&&delete t[i]);const n=Object.fromEntries(Object.entries(t!=null?t:{}).filter(([,i])=>i!=null)),s=Object.keys(n).length>0?`?${new URLSearchParams(n).toString()}`:"",a=await(await fetch(`/_editor/api/executions${s}`)).json();return{executions:a.executions.map(i=>g.from(i)),totalCount:a.totalCount}}async fetchLogs(e,t){const s=await(await fetch(`/_editor/api/logs/${t}`)).json();return f.from(s)}async fetchThreadData(){return{}}async getExecutionTasks(e,t){return await(await fetch(`/_editor/api/executions/${t}/tasks`)).json()}async fetchStages(){return await(await fetch("/_editor/api/executions/stages")).json()}}export{E as C,G as L,V as R,B as _,z as e};
2
- //# sourceMappingURL=repository.360feb8f.js.map
1
+ import{f as m,e7 as h,eJ as S,eK as I,d as _,o as c,a as l,u,h as $}from"./jwt-decode.esm.54a1ea22.js";import{L as x}from"./LoadingOutlined.66639b08.js";import{k as d}from"./router.4dfadf5d.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="452a1146-ab7c-4ae7-a316-95787f377816",r._sentryDebugIdIdentifier="sentry-dbid-452a1146-ab7c-4ae7-a316-95787f377816")}catch{}})();var P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm192 472c0 4.4-3.6 8-8 8H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h368c4.4 0 8 3.6 8 8v48z"}}]},name:"minus-circle",theme:"filled"};const k=P;function w(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},n=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable}))),n.forEach(function(s){F(r,s,t[s])})}return r}function F(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var b=function(e,t){var n=w({},e,t.attrs);return m(h,w({},n,{icon:S}),null)};b.displayName="CheckCircleFilled";b.inheritAttrs=!1;const E=b;function j(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},n=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable}))),n.forEach(function(s){A(r,s,t[s])})}return r}function A(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var y=function(e,t){var n=j({},e,t.attrs);return m(h,j({},n,{icon:I}),null)};y.displayName="CloseCircleFilled";y.inheritAttrs=!1;const D=y;function v(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},n=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable}))),n.forEach(function(s){M(r,s,t[s])})}return r}function M(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var C=function(e,t){var n=v({},e,t.attrs);return m(h,v({},n,{icon:k}),null)};C.displayName="MinusCircleFilled";C.inheritAttrs=!1;const L=C,B=_({__name:"ExecutionStatusIcon",props:{status:{}},setup(r){return(e,t)=>e.status==="finished"?(c(),l(u(E),{key:0,style:{color:"#33b891"}})):e.status==="failed"?(c(),l(u(D),{key:1,style:{color:"#fa675c"}})):e.status==="abandoned"||e.status==="lock-failed"?(c(),l(u(L),{key:2,style:{color:"#f69220"}})):e.status==="running"?(c(),l(u(x),{key:3})):$("",!0)}}),z=["running","lock-failed","failed","finished","abandoned"];class f{constructor(e){this.dto=e}static from(e){return new f(e)}get entries(){return this.dto.sort((e,t)=>e.sequence-t.sequence).filter(e=>e.event!=="form-message")}}class g{constructor(e){this.dto=e}static from(e){return new g(e)}get id(){return this.dto.id}get shortId(){return this.dto.id.slice(0,8)}get createdAt(){return new Date(this.dto.createdAt)}get updatedAt(){return new Date(this.dto.updatedAt)}get status(){return this.dto.status}get context(){return this.dto.context}get buildId(){var e;return(e=this.dto.buildId)!=null?e:""}get stageId(){return this.dto.stageId}get duration_seconds(){return this.status==="running"?"-":`${(this.updatedAt.getTime()-this.createdAt.getTime())/1e3} s`}get stageRunId(){return this.dto.stageRunId}get projectId(){return this.dto.projectId}}class V{async list({projectId:e,...t}){var p,a;const n={...t,offset:(p=t.offset)==null?void 0:p.toString(),limit:(a=t.limit)==null?void 0:a.toString()};Object.keys(n).forEach(o=>n[o]===void 0&&delete n[o]);const s=await d.get(`projects/${e}/executions`,n);return{executions:s.executions.map(o=>g.from(o)),totalCount:s.totalCount}}async fetchLogs(e,t){const n=await d.get(`projects/${e}/executions/${t}/logs`);return f.from(n)}async fetchThreadData(e,t){return(await d.get(`projects/${e}/executions/${t}/thread-data`)).response}async getExecutionTasks(e,t){return await d.get(`projects/${e}/executions/${t}/tasks`)}async fetchStages(){throw new Error("Method not implemented.")}}class G{async list(e){var o,O;const t={...e,offset:(o=e.offset)==null?void 0:o.toString(),limit:(O=e.limit)==null?void 0:O.toString()};Object.keys(t).forEach(i=>t[i]===void 0&&delete t[i]);const n=Object.fromEntries(Object.entries(t!=null?t:{}).filter(([,i])=>i!=null)),s=Object.keys(n).length>0?`?${new URLSearchParams(n).toString()}`:"",a=await(await fetch(`/_editor/api/executions${s}`)).json();return{executions:a.executions.map(i=>g.from(i)),totalCount:a.totalCount}}async fetchLogs(e,t){const s=await(await fetch(`/_editor/api/logs/${t}`)).json();return f.from(s)}async fetchThreadData(){return{}}async getExecutionTasks(e,t){return await(await fetch(`/_editor/api/executions/${t}/tasks`)).json()}async fetchStages(){return await(await fetch("/_editor/api/executions/stages")).json()}}export{E as C,G as L,V as R,B as _,z as e};
2
+ //# sourceMappingURL=repository.3a331f0f.js.map
@@ -1,2 +1,2 @@
1
- var p=Object.defineProperty;var h=(r,t,e)=>t in r?p(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var i=(r,t,e)=>(h(r,typeof t!="symbol"?t+"":t,e),e);import{h as a}from"./router.8fd5b2ad.js";import{l as u}from"./fetch.5136a62d.js";import{E as l}from"./record.4ffc477c.js";import"./jwt-decode.esm.7f2ef0df.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[t]="3a86277c-cd77-4845-9961-8f02b86c53d5",r._sentryDebugIdIdentifier="sentry-dbid-3a86277c-cd77-4845-9961-8f02b86c53d5")}catch{}})();class c{constructor(t){i(this,"record");this.record=l.from(t)}get id(){return this.record.get("id")}get name(){return this.record.get("name")}get description(){return this.record.get("description")||""}set description(t){this.record.set("description",t)}get projectId(){return this.record.get("projectId")}static from(t){return new c(t)}commit(){this.record.commit()}hasChanges(){return this.record.hasChanges()}get changes(){return this.record.changes}update(t){this.record.update(t)}}class g{constructor(){i(this,"urlPath","roles")}async create(t,e){return a.post(`projects/${t}/${this.urlPath}`,e)}async delete(t,e){await a.delete(`projects/${t}/${this.urlPath}/${e}`)}async list(t,{limit:e,offset:s}){const o={};e&&(o.limit=e.toString()),s&&(o.offset=s.toString());const d=new URLSearchParams(o);return a.get(`projects/${t}/${this.urlPath}?${d.toString()}`)}async update(t,e,s){return a.patch(`projects/${t}/${this.urlPath}/${e}`,s)}}const n=new g;class b{constructor(t){this.projectId=t}async list(t,e){return(await n.list(this.projectId,{limit:t,offset:e})).map(c.from)}async create(t){await n.create(this.projectId,t)}async update(t,e){await n.update(this.projectId,t,e)}async delete(t){await n.delete(this.projectId,t)}}class ${constructor(t=u){this.fetch=t}async list(t,e){const s={};t&&(s.limit=t.toString()),e&&(s.offset=e.toString());const o=new URLSearchParams(s);return(await(await this.fetch(`/_editor/api/roles?${o.toString()}`,{method:"GET",headers:{"Content-Type":"application/json"}})).json()).map(c.from)}}export{b as C,$ as E};
2
- //# sourceMappingURL=repository.ab3036a9.js.map
1
+ var p=Object.defineProperty;var h=(r,t,e)=>t in r?p(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var c=(r,t,e)=>(h(r,typeof t!="symbol"?t+"":t,e),e);import{k as a}from"./router.4dfadf5d.js";import{l as u}from"./fetch.1b3d01a0.js";import{E as l}from"./record.e83a2eb2.js";import"./jwt-decode.esm.54a1ea22.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[t]="af5dce3f-32ea-4d28-9923-f410a07482f8",r._sentryDebugIdIdentifier="sentry-dbid-af5dce3f-32ea-4d28-9923-f410a07482f8")}catch{}})();class i{constructor(t){c(this,"record");this.record=l.from(t)}get id(){return this.record.get("id")}get name(){return this.record.get("name")}get description(){return this.record.get("description")||""}set description(t){this.record.set("description",t)}get projectId(){return this.record.get("projectId")}static from(t){return new i(t)}commit(){this.record.commit()}hasChanges(){return this.record.hasChanges()}get changes(){return this.record.changes}update(t){this.record.update(t)}}class f{constructor(){c(this,"urlPath","roles")}async create(t,e){return a.post(`projects/${t}/${this.urlPath}`,e)}async delete(t,e){await a.delete(`projects/${t}/${this.urlPath}/${e}`)}async list(t,{limit:e,offset:s}){const o={};e&&(o.limit=e.toString()),s&&(o.offset=s.toString());const d=new URLSearchParams(o);return a.get(`projects/${t}/${this.urlPath}?${d.toString()}`)}async update(t,e,s){return a.patch(`projects/${t}/${this.urlPath}/${e}`,s)}}const n=new f;class ${constructor(t){this.projectId=t}async list(t,e){return(await n.list(this.projectId,{limit:t,offset:e})).map(i.from)}async create(t){await n.create(this.projectId,t)}async update(t,e){await n.update(this.projectId,t,e)}async delete(t){await n.delete(this.projectId,t)}}class b{constructor(t=u){this.fetch=t}async list(t,e){const s={};t&&(s.limit=t.toString()),e&&(s.offset=e.toString());const o=new URLSearchParams(s);return(await(await this.fetch(`/_editor/api/roles?${o.toString()}`,{method:"GET",headers:{"Content-Type":"application/json"}})).json()).map(i.from)}}export{$ as C,b as E};
2
+ //# sourceMappingURL=repository.66c7567c.js.map
@@ -0,0 +1,2 @@
1
+ import{m as d,n as c,p as t,q as m}from"./jwt-decode.esm.54a1ea22.js";import{a as p}from"./workspaceStore.fac1e9a9.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="9ec53159-d435-4119-af09-7dec916398c8",a._sentryDebugIdIdentifier="sentry-dbid-9ec53159-d435-4119-af09-7dec916398c8")}catch{}})();const f=async()=>{try{const a=await fetch("/_editor/api/workspace/version");return a.ok&&(await a.json()).version||"c070b077427b34a670ba8422f8dad30dfba7dde3"}catch(a){return console.error("Failed to fetch Abstra version:",a),"c070b077427b34a670ba8422f8dad30dfba7dde3"}},u=[{path:"/oidc-login-callback",name:"oidcLoginCallback",component:()=>t(()=>import("./OidcLoginCallback.42a7c4f9.js"),["assets/OidcLoginCallback.42a7c4f9.js","assets/workspaceStore.fac1e9a9.js","assets/jwt-decode.esm.54a1ea22.js","assets/jwt-decode.9f7a5511.css","assets/userStore.6ab1e5ac.js","assets/url.f5664225.js","assets/colorHelpers.50ced1e9.js"]),meta:{allowUnauthenticated:!0}},{path:"/oidc-logout-callback",name:"oidcLogoutCallback",component:()=>t(()=>import("./OidcLogoutCallback.35931a68.js"),["assets/OidcLogoutCallback.35931a68.js","assets/workspaceStore.fac1e9a9.js","assets/jwt-decode.esm.54a1ea22.js","assets/jwt-decode.9f7a5511.css","assets/userStore.6ab1e5ac.js","assets/url.f5664225.js","assets/colorHelpers.50ced1e9.js"]),meta:{allowUnauthenticated:!0}},{path:"/login",name:"playerLogin",component:()=>t(()=>import("./Login.4a05f5c5.js"),["assets/Login.4a05f5c5.js","assets/Login.vue_vue_type_script_setup_true_lang.5161f328.js","assets/jwt-decode.esm.54a1ea22.js","assets/jwt-decode.9f7a5511.css","assets/workspaceStore.fac1e9a9.js","assets/userStore.6ab1e5ac.js","assets/url.f5664225.js","assets/colorHelpers.50ced1e9.js","assets/CircularLoading.998b223a.js","assets/CircularLoading.a8fe2dc6.css","assets/Logo.65e0b37c.js","assets/Logo.b7d81119.css","assets/string.61e11a30.js","assets/index.d53182ed.js","assets/Login.75d13f6c.css","assets/Login.3b76812d.css"]),meta:{allowUnauthenticated:!0}},{path:"/",name:"main",component:()=>t(()=>import("./Main.0313f4fc.js"),["assets/Main.0313f4fc.js","assets/PlayerNavbar.aaad1dfd.js","assets/userStore.6ab1e5ac.js","assets/jwt-decode.esm.54a1ea22.js","assets/jwt-decode.9f7a5511.css","assets/workspaceStore.fac1e9a9.js","assets/url.f5664225.js","assets/colorHelpers.50ced1e9.js","assets/metadata.0098e20c.js","assets/PhUserList.vue.e0b8c21b.js","assets/PhWebhooksLogo.vue.d164db1e.js","assets/LoadingOutlined.66639b08.js","assets/PhSignOut.vue.d1d6498f.js","assets/index.c8a56795.js","assets/PlayerNavbar.77209eae.css","assets/Main.201c14c9.css"]),redirect:{name:"main"},children:[{path:"",name:"playerHome",component:()=>t(()=>import("./Home.7c495aa9.js"),["assets/Home.7c495aa9.js","assets/metadata.0098e20c.js","assets/jwt-decode.esm.54a1ea22.js","assets/jwt-decode.9f7a5511.css","assets/PhUserList.vue.e0b8c21b.js","assets/PhWebhooksLogo.vue.d164db1e.js","assets/Watermark.9c9358e3.js","assets/workspaceStore.fac1e9a9.js","assets/userStore.6ab1e5ac.js","assets/url.f5664225.js","assets/colorHelpers.50ced1e9.js","assets/constants.d569f33d.js","assets/Watermark.b0916e90.css","assets/PhArrowSquareOut.vue.2ddfc219.js","assets/index.581e2edd.js","assets/Card.fc77085c.js","assets/LoadingOutlined.66639b08.js","assets/Home.3794e8b4.css"]),meta:{title:"Home"}},{path:"_player/threads",redirect:{name:"playerThreads"}},{path:"error/:status",name:"error",component:()=>t(()=>import("./Error.11fd1f21.js"),["assets/Error.11fd1f21.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.28bc9fc9.js","assets/Logo.65e0b37c.js","assets/jwt-decode.esm.54a1ea22.js","assets/jwt-decode.9f7a5511.css","assets/Logo.b7d81119.css","assets/constants.d569f33d.js","assets/workspaceStore.fac1e9a9.js","assets/userStore.6ab1e5ac.js","assets/url.f5664225.js","assets/colorHelpers.50ced1e9.js","assets/Card.fc77085c.js","assets/Error.ef2624eb.css"]),meta:{allowUnauthenticated:!0}},{path:":path(.*)*",name:"form",component:()=>t(()=>import("./Form.09de384c.js"),["assets/Form.09de384c.js","assets/userStore.6ab1e5ac.js","assets/jwt-decode.esm.54a1ea22.js","assets/jwt-decode.9f7a5511.css","assets/FormRunner.15be6fa0.js","assets/Login.vue_vue_type_script_setup_true_lang.5161f328.js","assets/workspaceStore.fac1e9a9.js","assets/url.f5664225.js","assets/colorHelpers.50ced1e9.js","assets/CircularLoading.998b223a.js","assets/CircularLoading.a8fe2dc6.css","assets/Logo.65e0b37c.js","assets/Logo.b7d81119.css","assets/string.61e11a30.js","assets/index.d53182ed.js","assets/Login.75d13f6c.css","assets/Steps.dd51a108.js","assets/index.d31da2c3.js","assets/Steps.2880920a.css","assets/Watermark.9c9358e3.js","assets/constants.d569f33d.js","assets/Watermark.b0916e90.css","assets/FormRunner.46f6426d.css","assets/redirect.586749f4.js","assets/asyncComputed.47aec2b5.js","assets/uuid.5b8ba8af.js","assets/Form.7493bc0a.css"]),meta:{hideLogin:!0}}]}],o=d({history:c("/"),routes:u,scrollBehavior(a){if(a.hash)return{el:a.hash}}}),l=a=>async(e,r)=>{if(m(e,r),e.meta.allowUnauthenticated)return;const n=await p(e.path),{redirect:i,...s}=e.query;switch(n.status){case"ALLOWED":break;case"UNAUTHORIZED":await a.push({name:"playerLogin",query:{...s,redirect:i||e.path},params:e.params});break;case"NOT_FOUND":await a.push({name:"error",params:{status:"404"}});break;default:await a.push({name:"error",params:{status:"403"}})}};o.beforeEach(l(o));export{f as a,o as b,l as g,u as r};
2
+ //# sourceMappingURL=router.06ee2b9d.js.map
@@ -0,0 +1,18 @@
1
+ var Rt=Object.defineProperty;var Nt=(e,t,n)=>t in e?Rt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ge=(e,t,n)=>(Nt(e,typeof t!="symbol"?t+"":t,n),n);import{d as F,c as P,ae as Ht,r as Z,w as k,I as Qe,X as $,f as r,ah as K,ag as q,aQ as ht,aF as $e,av as w,ab as ie,aT as ye,ac as le,df as nt,an as ae,aj as T,dg as vt,bT as Be,aD as Se,aX as Ye,aY as Pe,aZ as Me,a_ as Re,b6 as ce,aM as Y,aN as te,aL as Ne,dh as jt,bh as Wt,ap as re,di as Vt,dj as Ft,dk as bt,dl as Xt,bu as Gt,aA as Kt,N as J,aK as Ut,c8 as $t,ad as Ae,dm as yt,am as ke,aR as Yt,aJ as Zt,dn as Jt,dp as qt,ao as St,dq as Qt,dr as kt,aq as Ct,a4 as et,bz as He,ds as je,az as en,as as ee,au as tt,J as xt,at as Ie,ai as wt,b7 as tn,cj as nn,bo as on,dt as ot,a$ as an,du as ln,aO as rn,dv as sn,bO as dn,dw as It,S as cn,bD as Ee,bt as _t,dx as un,dy as mn,ar as ne,dz as gn,dA as pn,l as at,cJ as Pt,O as fn,L as hn,Q as vn,H as At,m as bn,n as $n,p as N,q as yn}from"./jwt-decode.esm.54a1ea22.js";import{d as ge}from"./index.c7a996a6.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fd83d44e-2c61-4543-8308-3be1dc552ca6",e._sentryDebugIdIdentifier="sentry-dbid-fd83d44e-2c61-4543-8308-3be1dc552ca6")}catch{}})();function it(e){let{prefixCls:t,value:n,current:o,offset:a=0}=e,i;return a&&(i={position:"absolute",top:`${a}00%`,left:0}),r("p",{style:i,class:K(`${t}-only-unit`,{current:o})},[n])}function Sn(e,t,n){let o=e,a=0;for(;(o+10)%10!==t;)o+=n,a+=n;return a}const Cn=F({compatConfig:{MODE:3},name:"SingleNumber",props:{prefixCls:String,value:String,count:Number},setup(e){const t=P(()=>Number(e.value)),n=P(()=>Math.abs(e.count)),o=Ht({prevValue:t.value,prevCount:n.value}),a=()=>{o.prevValue=t.value,o.prevCount=n.value},i=Z();return k(t,()=>{clearTimeout(i.value),i.value=setTimeout(()=>{a()},1e3)},{flush:"post"}),Qe(()=>{clearTimeout(i.value)}),()=>{let c,l={};const u=t.value;if(o.prevValue===u||Number.isNaN(u)||Number.isNaN(o.prevValue))c=[it($($({},e),{current:!0}))],l={transition:"none"};else{c=[];const m=u+10,f=[];for(let h=u;h<=m;h+=1)f.push(h);const p=f.findIndex(h=>h%10===o.prevValue);c=f.map((h,d)=>{const v=h%10;return it($($({},e),{value:v,offset:d-p,current:d===p}))});const g=o.prevCount<n.value?1:-1;l={transform:`translateY(${-Sn(o.prevValue,u,g)}00%)`}}return r("span",{class:`${e.prefixCls}-only`,style:l,onTransitionend:()=>a()},[c])}}});var xn=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};const wn={prefixCls:String,count:w.any,component:String,title:w.any,show:Boolean},In=F({compatConfig:{MODE:3},name:"ScrollNumber",inheritAttrs:!1,props:wn,setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:a}=q("scroll-number",e);return()=>{var i;const c=$($({},e),n),{prefixCls:l,count:u,title:m,show:f,component:p="sup",class:g,style:h}=c,d=xn(c,["prefixCls","count","title","show","component","class","style"]),v=$($({},d),{style:h,"data-show":e.show,class:K(a.value,g),title:m});let S=u;if(u&&Number(u)%1===0){const b=String(u).split("");S=b.map((y,x)=>r(Cn,{prefixCls:a.value,count:Number(u),value:y,key:b.length-x},null))}h&&h.borderColor&&(v.style=$($({},h),{boxShadow:`0 0 0 1px ${h.borderColor} inset`}));const s=ht((i=o.default)===null||i===void 0?void 0:i.call(o));return s&&s.length?$e(s,{class:K(`${a.value}-custom-component`)},!1):r(p,v,{default:()=>[S]})}}}),_n=new ye("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),Pn=new ye("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),An=new ye("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),En=new ye("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),On=new ye("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),Tn=new ye("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),Bn=e=>{const{componentCls:t,iconCls:n,antCls:o,badgeFontHeight:a,badgeShadowSize:i,badgeHeightSm:c,motionDurationSlow:l,badgeStatusSize:u,marginXS:m,badgeRibbonOffset:f}=e,p=`${o}-scroll-number`,g=`${o}-ribbon`,h=`${o}-ribbon-wrapper`,d=nt(e,(S,s)=>{let{darkColor:b}=s;return{[`&${t} ${t}-color-${S}`]:{background:b,[`&:not(${t}-count)`]:{color:b}}}}),v=nt(e,(S,s)=>{let{darkColor:b}=s;return{[`&${g}-color-${S}`]:{background:b,color:b}}});return{[t]:$($($($({},ae(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{zIndex:e.badgeZIndex,minWidth:e.badgeHeight,height:e.badgeHeight,color:e.badgeTextColor,fontWeight:e.badgeFontWeight,fontSize:e.badgeFontSize,lineHeight:`${e.badgeHeight}px`,whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:e.badgeHeight/2,boxShadow:`0 0 0 ${i}px ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:c,height:c,fontSize:e.badgeFontSizeSm,lineHeight:`${c}px`,borderRadius:c/2},[`${t}-multiple-words`]:{padding:`0 ${e.paddingXS}px`},[`${t}-dot`]:{zIndex:e.badgeZIndex,width:e.badgeDotSize,minWidth:e.badgeDotSize,height:e.badgeDotSize,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${i}px ${e.badgeShadowColor}`},[`${t}-dot${p}`]:{transition:`background ${l}`},[`${t}-count, ${t}-dot, ${p}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:Tn,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:u,height:u,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorPrimary,backgroundColor:e.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:i,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:_n,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:m,color:e.colorText,fontSize:e.fontSize}}}),d),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:Pn,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:An,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:En,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:On,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${p}-custom-component, ${t}-count`]:{transform:"none"},[`${p}-custom-component, ${p}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${p}`]:{overflow:"hidden",[`${p}-only`]:{position:"relative",display:"inline-block",height:e.badgeHeight,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${p}-only-unit`]:{height:e.badgeHeight,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${p}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${p}-custom-component`]:{transform:"translate(-50%, -50%)"}}}),[`${h}`]:{position:"relative"},[`${g}`]:$($($($({},ae(e)),{position:"absolute",top:m,padding:`0 ${e.paddingXS}px`,color:e.colorPrimary,lineHeight:`${a}px`,whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${g}-text`]:{color:e.colorTextLightSolid},[`${g}-corner`]:{position:"absolute",top:"100%",width:f,height:f,color:"currentcolor",border:`${f/2}px solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),v),{[`&${g}-placement-end`]:{insetInlineEnd:-f,borderEndEndRadius:0,[`${g}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${g}-placement-start`]:{insetInlineStart:-f,borderEndStartRadius:0,[`${g}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},Et=ie("Badge",e=>{const{fontSize:t,lineHeight:n,fontSizeSM:o,lineWidth:a,marginXS:i,colorBorderBg:c}=e,l=Math.round(t*n),u=a,m="auto",f=l-2*u,p=e.colorBgContainer,g="normal",h=o,d=e.colorError,v=e.colorErrorHover,S=t,s=o/2,b=o,y=o/2,x=le(e,{badgeFontHeight:l,badgeShadowSize:u,badgeZIndex:m,badgeHeight:f,badgeTextColor:p,badgeFontWeight:g,badgeFontSize:h,badgeColor:d,badgeColorHover:v,badgeShadowColor:c,badgeHeightSm:S,badgeDotSize:s,badgeFontSizeSm:b,badgeStatusSize:y,badgeProcessingDuration:"1.2s",badgeRibbonOffset:i,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"});return[Bn(x)]});var Ln=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};const zn=()=>({prefix:String,color:{type:String},text:w.any,placement:{type:String,default:"end"}}),Ze=F({compatConfig:{MODE:3},name:"ABadgeRibbon",inheritAttrs:!1,props:zn(),slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:a,direction:i}=q("ribbon",e),[c,l]=Et(a),u=P(()=>vt(e.color,!1)),m=P(()=>[a.value,`${a.value}-placement-${e.placement}`,{[`${a.value}-rtl`]:i.value==="rtl",[`${a.value}-color-${e.color}`]:u.value}]);return()=>{var f,p;const{class:g,style:h}=n,d=Ln(n,["class","style"]),v={},S={};return e.color&&!u.value&&(v.background=e.color,S.color=e.color),c(r("div",T({class:`${a.value}-wrapper ${l.value}`},d),[(f=o.default)===null||f===void 0?void 0:f.call(o),r("div",{class:[m.value,g,l.value],style:$($({},v),h)},[r("span",{class:`${a.value}-text`},[e.text||((p=o.text)===null||p===void 0?void 0:p.call(o))]),r("div",{class:`${a.value}-corner`,style:S},null)])]))}}}),Dn=e=>!isNaN(parseFloat(e))&&isFinite(e),Je=Dn,Mn=()=>({count:w.any.def(null),showZero:{type:Boolean,default:void 0},overflowCount:{type:Number,default:99},dot:{type:Boolean,default:void 0},prefixCls:String,scrollNumberPrefixCls:String,status:{type:String},size:{type:String,default:"default"},color:String,text:w.any,offset:Array,numberStyle:{type:Object,default:void 0},title:String}),Ke=F({compatConfig:{MODE:3},name:"ABadge",Ribbon:Ze,inheritAttrs:!1,props:Mn(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:a,direction:i}=q("badge",e),[c,l]=Et(a),u=P(()=>e.count>e.overflowCount?`${e.overflowCount}+`:e.count),m=P(()=>u.value==="0"||u.value===0),f=P(()=>e.count===null||m.value&&!e.showZero),p=P(()=>(e.status!==null&&e.status!==void 0||e.color!==null&&e.color!==void 0)&&f.value),g=P(()=>e.dot&&!m.value),h=P(()=>g.value?"":u.value),d=P(()=>(h.value===null||h.value===void 0||h.value===""||m.value&&!e.showZero)&&!g.value),v=Z(e.count),S=Z(h.value),s=Z(g.value);k([()=>e.count,h,g],()=>{d.value||(v.value=e.count,S.value=h.value,s.value=g.value)},{immediate:!0});const b=P(()=>vt(e.color,!1)),y=P(()=>({[`${a.value}-status-dot`]:p.value,[`${a.value}-status-${e.status}`]:!!e.status,[`${a.value}-color-${e.color}`]:b.value})),x=P(()=>e.color&&!b.value?{background:e.color,color:e.color}:{}),A=P(()=>({[`${a.value}-dot`]:s.value,[`${a.value}-count`]:!s.value,[`${a.value}-count-sm`]:e.size==="small",[`${a.value}-multiple-words`]:!s.value&&S.value&&S.value.toString().length>1,[`${a.value}-status-${e.status}`]:!!e.status,[`${a.value}-color-${e.color}`]:b.value}));return()=>{var I,E;const{offset:z,title:R,color:H}=e,V=o.style,X=Be(n,e,"text"),_=a.value,B=v.value;let D=Se((I=n.default)===null||I===void 0?void 0:I.call(n));D=D.length?D:null;const j=!!(!d.value||n.count),M=(()=>{if(!z)return $({},V);const Q={marginTop:Je(z[1])?`${z[1]}px`:z[1]};return i.value==="rtl"?Q.left=`${parseInt(z[0],10)}px`:Q.right=`${-parseInt(z[0],10)}px`,$($({},Q),V)})(),W=R!=null?R:typeof B=="string"||typeof B=="number"?B:void 0,C=j||!X?null:r("span",{class:`${_}-status-text`},[X]),O=typeof B=="object"||B===void 0&&n.count?$e(B!=null?B:(E=n.count)===null||E===void 0?void 0:E.call(n),{style:M},!1):null,L=K(_,{[`${_}-status`]:p.value,[`${_}-not-a-wrapper`]:!D,[`${_}-rtl`]:i.value==="rtl"},o.class,l.value);if(!D&&p.value){const Q=M.color;return c(r("span",T(T({},o),{},{class:L,style:M}),[r("span",{class:y.value,style:x.value},null),r("span",{style:{color:Q},class:`${_}-status-text`},[X])]))}const G=Ye(D?`${_}-zoom`:"",{appear:!1});let U=$($({},M),e.numberStyle);return H&&!b.value&&(U=U||{},U.background=H),c(r("span",T(T({},o),{},{class:L}),[D,r(Pe,G,{default:()=>[Me(r(In,{prefixCls:e.scrollNumberPrefixCls,show:j,class:A.value,count:S.value,title:W,style:U,key:"scrollNumber"},{default:()=>[O]}),[[Re,j]])]}),C]))}}});Ke.install=function(e){return e.component(Ke.name,Ke),e.component(Ze.name,Ze),e};const Rn=()=>({prefixCls:String,activeKey:ce([Array,Number,String]),defaultActiveKey:ce([Array,Number,String]),accordion:Y(),destroyInactivePanel:Y(),bordered:Y(),expandIcon:te(),openAnimation:w.object,expandIconPosition:Ne(),collapsible:Ne(),ghost:Y(),onChange:te(),"onUpdate:activeKey":te()}),Ot=()=>({openAnimation:w.object,prefixCls:String,header:w.any,headerClass:String,showArrow:Y(),isActive:Y(),destroyInactivePanel:Y(),disabled:Y(),accordion:Y(),forceRender:Y(),expandIcon:te(),extra:w.any,panelKey:ce(),collapsible:Ne(),role:String,onItemClick:te()}),Nn=e=>{const{componentCls:t,collapseContentBg:n,padding:o,collapseContentPaddingHorizontal:a,collapseHeaderBg:i,collapseHeaderPadding:c,collapsePanelBorderRadius:l,lineWidth:u,lineType:m,colorBorder:f,colorText:p,colorTextHeading:g,colorTextDisabled:h,fontSize:d,lineHeight:v,marginSM:S,paddingSM:s,motionDurationSlow:b,fontSizeIcon:y}=e,x=`${u}px ${m} ${f}`;return{[t]:$($({},ae(e)),{backgroundColor:i,border:x,borderBottom:0,borderRadius:`${l}px`,["&-rtl"]:{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:x,["&:last-child"]:{[`
2
+ &,
3
+ & > ${t}-header`]:{borderRadius:`0 0 ${l}px ${l}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:c,color:g,lineHeight:v,cursor:"pointer",transition:`all ${b}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:d*v,display:"flex",alignItems:"center",paddingInlineEnd:S},[`${t}-arrow`]:$($({},Wt()),{fontSize:y,svg:{transition:`transform ${b}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}},[`&${t}-no-arrow`]:{[`> ${t}-header`]:{paddingInlineStart:s}}},[`${t}-content`]:{color:p,backgroundColor:n,borderTop:x,[`& > ${t}-content-box`]:{padding:`${o}px ${a}px`},["&-hidden"]:{display:"none"}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${l}px ${l}px`}},[`& ${t}-item-disabled > ${t}-header`]:{[`
4
+ &,
5
+ & > .arrow
6
+ `]:{color:h,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:S}}}}})}},Hn=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},jn=e=>{const{componentCls:t,collapseHeaderBg:n,paddingXXS:o,colorBorder:a}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${a}`},[`
7
+ > ${t}-item:last-child,
8
+ > ${t}-item:last-child ${t}-header
9
+ `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:o}}}},Wn=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},Vn=ie("Collapse",e=>{const t=le(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return[Nn(t),jn(t),Wn(t),Hn(t),jt(t)]});function lt(e){let t=e;if(!Array.isArray(t)){const n=typeof t;t=n==="number"||n==="string"?[t]:[]}return t.map(n=>String(n))}const Le=F({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:re(Rn(),{accordion:!1,destroyInactivePanel:!1,bordered:!0,expandIconPosition:"start"}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:a}=t;const i=Z(lt(Vt([e.activeKey,e.defaultActiveKey])));k(()=>e.activeKey,()=>{i.value=lt(e.activeKey)},{deep:!0});const{prefixCls:c,direction:l,rootPrefixCls:u}=q("collapse",e),[m,f]=Vn(c),p=P(()=>{const{expandIconPosition:s}=e;return s!==void 0?s:l.value==="rtl"?"end":"start"}),g=s=>{const{expandIcon:b=o.expandIcon}=e,y=b?b(s):r(Gt,{rotate:s.isActive?90:void 0},null);return r("div",{class:[`${c.value}-expand-icon`,f.value],onClick:()=>["header","icon"].includes(e.collapsible)&&d(s.panelKey)},[Kt(Array.isArray(b)?y[0]:y)?$e(y,{class:`${c.value}-arrow`},!1):y])},h=s=>{e.activeKey===void 0&&(i.value=s);const b=e.accordion?s[0]:s;a("update:activeKey",b),a("change",b)},d=s=>{let b=i.value;if(e.accordion)b=b[0]===s?[]:[s];else{b=[...b];const y=b.indexOf(s);y>-1?b.splice(y,1):b.push(s)}h(b)},v=(s,b)=>{var y,x,A;if(bt(s))return;const I=i.value,{accordion:E,destroyInactivePanel:z,collapsible:R,openAnimation:H}=e,V=H||Xt(`${u.value}-motion-collapse`),X=String((y=s.key)!==null&&y!==void 0?y:b),{header:_=(A=(x=s.children)===null||x===void 0?void 0:x.header)===null||A===void 0?void 0:A.call(x),headerClass:B,collapsible:D,disabled:j}=s.props||{};let M=!1;E?M=I[0]===X:M=I.indexOf(X)>-1;let W=D!=null?D:R;(j||j==="")&&(W="disabled");const C={key:X,panelKey:X,header:_,headerClass:B,isActive:M,prefixCls:c.value,destroyInactivePanel:z,openAnimation:V,accordion:E,onItemClick:W==="disabled"?null:d,expandIcon:g,collapsible:W};return $e(s,C)},S=()=>{var s;return Se((s=o.default)===null||s===void 0?void 0:s.call(o)).map(v)};return()=>{const{accordion:s,bordered:b,ghost:y}=e,x=K(c.value,{[`${c.value}-borderless`]:!b,[`${c.value}-icon-position-${p.value}`]:!0,[`${c.value}-rtl`]:l.value==="rtl",[`${c.value}-ghost`]:!!y,[n.class]:!!n.class},f.value);return m(r("div",T(T({class:x},Ft(n)),{},{style:n.style,role:s?"tablist":null}),[S()]))}}}),Fn=F({compatConfig:{MODE:3},name:"PanelContent",props:Ot(),setup(e,t){let{slots:n}=t;const o=J(!1);return Ut(()=>{(e.isActive||e.forceRender)&&(o.value=!0)}),()=>{var a;if(!o.value)return null;const{prefixCls:i,isActive:c,role:l}=e;return r("div",{class:K(`${i}-content`,{[`${i}-content-active`]:c,[`${i}-content-inactive`]:!c}),role:l},[r("div",{class:`${i}-content-box`},[(a=n.default)===null||a===void 0?void 0:a.call(n)])])}}}),qe=F({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:re(Ot(),{showArrow:!0,isActive:!1,onItemClick(){},headerClass:"",forceRender:!1}),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:a}=t;$t(e.disabled===void 0,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');const{prefixCls:i}=q("collapse",e),c=()=>{o("itemClick",e.panelKey)},l=u=>{(u.key==="Enter"||u.keyCode===13||u.which===13)&&c()};return()=>{var u,m;const{header:f=(u=n.header)===null||u===void 0?void 0:u.call(n),headerClass:p,isActive:g,showArrow:h,destroyInactivePanel:d,accordion:v,forceRender:S,openAnimation:s,expandIcon:b=n.expandIcon,extra:y=(m=n.extra)===null||m===void 0?void 0:m.call(n),collapsible:x}=e,A=x==="disabled",I=i.value,E=K(`${I}-header`,{[p]:p,[`${I}-header-collapsible-only`]:x==="header",[`${I}-icon-collapsible-only`]:x==="icon"}),z=K({[`${I}-item`]:!0,[`${I}-item-active`]:g,[`${I}-item-disabled`]:A,[`${I}-no-arrow`]:!h,[`${a.class}`]:!!a.class});let R=r("i",{class:"arrow"},null);h&&typeof b=="function"&&(R=b(e));const H=Me(r(Fn,{prefixCls:I,isActive:g,forceRender:S,role:v?"tabpanel":null},{default:n.default}),[[Re,g]]),V=$({appear:!1,css:!1},s);return r("div",T(T({},a),{},{class:z}),[r("div",{class:E,onClick:()=>!["header","icon"].includes(x)&&c(),role:v?"tab":"button",tabindex:A?-1:0,"aria-expanded":g,onKeypress:l},[h&&R,r("span",{onClick:()=>x==="header"&&c(),class:`${I}-header-text`},[f]),y&&r("div",{class:`${I}-extra`},[y])]),r(Pe,V,{default:()=>[!d||g?H:null]})])}}});Le.Panel=qe;Le.install=function(e){return e.component(Le.name,Le),e.component(qe.name,qe),e};const na=Ae(yt);function Oe(e){return e!=null}const Xn=e=>{const{itemPrefixCls:t,component:n,span:o,labelStyle:a,contentStyle:i,bordered:c,label:l,content:u,colon:m}=e,f=n;return c?r(f,{class:[{[`${t}-item-label`]:Oe(l),[`${t}-item-content`]:Oe(u)}],colSpan:o},{default:()=>[Oe(l)&&r("span",{style:a},[l]),Oe(u)&&r("span",{style:i},[u])]}):r(f,{class:[`${t}-item`],colSpan:o},{default:()=>[r("div",{class:`${t}-item-container`},[(l||l===0)&&r("span",{class:[`${t}-item-label`,{[`${t}-item-no-colon`]:!m}],style:a},[l]),(u||u===0)&&r("span",{class:`${t}-item-content`,style:i},[u])])]})},Ue=Xn,Gn=e=>{const t=(m,f,p)=>{let{colon:g,prefixCls:h,bordered:d}=f,{component:v,type:S,showLabel:s,showContent:b,labelStyle:y,contentStyle:x}=p;return m.map((A,I)=>{var E,z;const R=A.props||{},{prefixCls:H=h,span:V=1,labelStyle:X=R["label-style"],contentStyle:_=R["content-style"],label:B=(z=(E=A.children)===null||E===void 0?void 0:E.label)===null||z===void 0?void 0:z.call(E)}=R,D=Zt(A),j=Jt(A),M=qt(A),{key:W}=A;return typeof v=="string"?r(Ue,{key:`${S}-${String(W)||I}`,class:j,style:M,labelStyle:$($({},y),X),contentStyle:$($({},x),_),span:V,colon:g,component:v,itemPrefixCls:H,bordered:d,label:s?B:null,content:b?D:null},null):[r(Ue,{key:`label-${String(W)||I}`,class:j,style:$($($({},y),M),X),span:1,colon:g,component:v[0],itemPrefixCls:H,bordered:d,label:B},null),r(Ue,{key:`content-${String(W)||I}`,class:j,style:$($($({},x),M),_),span:V*2-1,component:v[1],itemPrefixCls:H,bordered:d,content:D},null)]})},{prefixCls:n,vertical:o,row:a,index:i,bordered:c}=e,{labelStyle:l,contentStyle:u}=ke(Bt,{labelStyle:Z({}),contentStyle:Z({})});return o?r(Yt,null,[r("tr",{key:`label-${i}`,class:`${n}-row`},[t(a,e,{component:"th",type:"label",showLabel:!0,labelStyle:l.value,contentStyle:u.value})]),r("tr",{key:`content-${i}`,class:`${n}-row`},[t(a,e,{component:"td",type:"content",showContent:!0,labelStyle:l.value,contentStyle:u.value})])]):r("tr",{key:i,class:`${n}-row`},[t(a,e,{component:c?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0,labelStyle:l.value,contentStyle:u.value})])},Kn=Gn,Un=e=>{const{componentCls:t,descriptionsSmallPadding:n,descriptionsDefaultPadding:o,descriptionsMiddlePadding:a,descriptionsBg:i}=e;return{[`&${t}-bordered`]:{[`${t}-view`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"}},[`${t}-item-label, ${t}-item-content`]:{padding:o,borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`${t}-item-label`]:{backgroundColor:i,"&::after":{display:"none"}},[`${t}-row`]:{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"}},[`&${t}-middle`]:{[`${t}-item-label, ${t}-item-content`]:{padding:a}},[`&${t}-small`]:{[`${t}-item-label, ${t}-item-content`]:{padding:n}}}}},Yn=e=>{const{componentCls:t,descriptionsExtraColor:n,descriptionItemPaddingBottom:o,descriptionsItemLabelColonMarginRight:a,descriptionsItemLabelColonMarginLeft:i,descriptionsTitleMarginBottom:c}=e;return{[t]:$($($({},ae(e)),Un(e)),{["&-rtl"]:{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:c},[`${t}-title`]:$($({},St),{flex:"auto",color:e.colorText,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${t}-row`]:{"> th, > td":{paddingBottom:o},"&:last-child":{borderBottom:"none"}},[`${t}-item-label`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${i}px ${a}px`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},Zn=ie("Descriptions",e=>{const t=e.colorFillAlter,n=e.fontSizeSM*e.lineHeightSM,o=e.colorText,a=`${e.paddingXS}px ${e.padding}px`,i=`${e.padding}px ${e.paddingLG}px`,c=`${e.paddingSM}px ${e.paddingLG}px`,l=e.padding,u=e.marginXS,m=e.marginXXS/2,f=le(e,{descriptionsBg:t,descriptionsTitleMarginBottom:n,descriptionsExtraColor:o,descriptionItemPaddingBottom:l,descriptionsSmallPadding:a,descriptionsDefaultPadding:i,descriptionsMiddlePadding:c,descriptionsItemLabelColonMarginRight:u,descriptionsItemLabelColonMarginLeft:m});return[Yn(f)]});w.any;const Jn=()=>({prefixCls:String,label:w.any,labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0},span:{type:Number,default:1}}),qn=F({compatConfig:{MODE:3},name:"ADescriptionsItem",props:Jn(),setup(e,t){let{slots:n}=t;return()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),Tt={xxxl:3,xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function Qn(e,t){if(typeof e=="number")return e;if(typeof e=="object")for(let n=0;n<je.length;n++){const o=je[n];if(t[o]&&e[o]!==void 0)return e[o]||Tt[o]}return 3}function rt(e,t,n){let o=e;return(n===void 0||n>t)&&(o=$e(e,{span:t}),en()),o}function kn(e,t){const n=Se(e),o=[];let a=[],i=t;return n.forEach((c,l)=>{var u;const m=(u=c.props)===null||u===void 0?void 0:u.span,f=m||1;if(l===n.length-1){a.push(rt(c,i,m)),o.push(a);return}f<i?(i-=f,a.push(c)):(a.push(rt(c,i,f)),o.push(a),i=t,a=[])}),o}const eo=()=>({prefixCls:String,bordered:{type:Boolean,default:void 0},size:{type:String,default:"default"},title:w.any,extra:w.any,column:{type:[Number,Object],default:()=>Tt},layout:String,colon:{type:Boolean,default:void 0},labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0}}),Bt=Symbol("descriptionsContext"),he=F({compatConfig:{MODE:3},name:"ADescriptions",inheritAttrs:!1,props:eo(),slots:Object,Item:qn,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:a,direction:i}=q("descriptions",e);let c;const l=Z({}),[u,m]=Zn(a),f=Qt();kt(()=>{c=f.value.subscribe(g=>{typeof e.column=="object"&&(l.value=g)})}),Ct(()=>{f.value.unsubscribe(c)}),et(Bt,{labelStyle:He(e,"labelStyle"),contentStyle:He(e,"contentStyle")});const p=P(()=>Qn(e.column,l.value));return()=>{var g,h,d;const{size:v,bordered:S=!1,layout:s="horizontal",colon:b=!0,title:y=(g=n.title)===null||g===void 0?void 0:g.call(n),extra:x=(h=n.extra)===null||h===void 0?void 0:h.call(n)}=e,A=(d=n.default)===null||d===void 0?void 0:d.call(n),I=kn(A,p.value);return u(r("div",T(T({},o),{},{class:[a.value,{[`${a.value}-${v}`]:v!=="default",[`${a.value}-bordered`]:!!S,[`${a.value}-rtl`]:i.value==="rtl"},o.class,m.value]}),[(y||x)&&r("div",{class:`${a.value}-header`},[y&&r("div",{class:`${a.value}-title`},[y]),x&&r("div",{class:`${a.value}-extra`},[x])]),r("div",{class:`${a.value}-view`},[r("table",null,[r("tbody",null,[I.map((E,z)=>r(Kn,{key:z,index:z,colon:b,prefixCls:a.value,vertical:s==="vertical",bordered:S,row:E},null))])])])]))}}});he.install=function(e){return e.component(he.name,he),e.component(he.Item.name,he.Item),e};const oa=he,to=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:o,lineWidth:a}=e;return{[t]:$($({},ae(e)),{borderBlockStart:`${a}px solid ${o}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${e.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${a}px solid ${o}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${o}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${a}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${t}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:o,borderStyle:"dashed",borderWidth:`${a}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStart:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},no=ie("Divider",e=>{const t=le(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return[to(t)]},{sizePaddingEdgeHorizontal:0}),oo=()=>({prefixCls:String,type:{type:String,default:"horizontal"},dashed:{type:Boolean,default:!1},orientation:{type:String,default:"center"},plain:{type:Boolean,default:!1},orientationMargin:[String,Number]}),ao=F({name:"ADivider",inheritAttrs:!1,compatConfig:{MODE:3},props:oo(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:a,direction:i}=q("divider",e),[c,l]=no(a),u=P(()=>e.orientation==="left"&&e.orientationMargin!=null),m=P(()=>e.orientation==="right"&&e.orientationMargin!=null),f=P(()=>{const{type:h,dashed:d,plain:v}=e,S=a.value;return{[S]:!0,[l.value]:!!l.value,[`${S}-${h}`]:!0,[`${S}-dashed`]:!!d,[`${S}-plain`]:!!v,[`${S}-rtl`]:i.value==="rtl",[`${S}-no-default-orientation-margin-left`]:u.value,[`${S}-no-default-orientation-margin-right`]:m.value}}),p=P(()=>{const h=typeof e.orientationMargin=="number"?`${e.orientationMargin}px`:e.orientationMargin;return $($({},u.value&&{marginLeft:h}),m.value&&{marginRight:h})}),g=P(()=>e.orientation.length>0?"-"+e.orientation:e.orientation);return()=>{var h;const d=Se((h=n.default)===null||h===void 0?void 0:h.call(n));return c(r("div",T(T({},o),{},{class:[f.value,d.length?`${a.value}-with-text ${a.value}-with-text${g.value}`:"",o.class],role:"separator"}),[d.length?r("span",{class:`${a.value}-inner-text`,style:p.value},[d]):null]))}}}),aa=Ae(ao),Lt=()=>({prefixCls:String,width:w.oneOfType([w.string,w.number]),height:w.oneOfType([w.string,w.number]),style:{type:Object,default:void 0},class:String,rootClassName:String,rootStyle:ee(),placement:{type:String},wrapperClassName:String,level:{type:[String,Array]},levelMove:{type:[Number,Function,Array]},duration:String,ease:String,showMask:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},maskStyle:{type:Object,default:void 0},afterVisibleChange:Function,keyboard:{type:Boolean,default:void 0},contentWrapperStyle:tt(),autofocus:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},motion:te(),maskMotion:ee()}),io=()=>$($({},Lt()),{forceRender:{type:Boolean,default:void 0},getContainer:w.oneOfType([w.string,w.func,w.object,w.looseBool])}),lo=()=>$($({},Lt()),{getContainer:Function,getOpenCount:Function,scrollLocker:w.any,inline:Boolean});function ro(e){return Array.isArray(e)?e:[e]}const zt={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},so=Object.keys(zt).filter(e=>{if(typeof document>"u")return!1;const t=document.getElementsByTagName("html")[0];return e in(t?t.style:{})})[0];zt[so];const co=!(typeof window<"u"&&window.document&&window.document.createElement);var uo=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};const mo=F({compatConfig:{MODE:3},inheritAttrs:!1,props:lo(),emits:["close","handleClick","change"],setup(e,t){let{emit:n,slots:o}=t;const a=J(),i=J(),c=J(),l=J(),u=J();let m=[];`${Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)}`,xt(()=>{Ie(()=>{var s;const{open:b,getContainer:y,showMask:x,autofocus:A}=e,I=y==null?void 0:y();d(e),b&&(I&&(I.parentNode,document.body),Ie(()=>{A&&f()}),x&&((s=e.scrollLocker)===null||s===void 0||s.lock()))})}),k(()=>e.level,()=>{d(e)},{flush:"post"}),k(()=>e.open,()=>{const{open:s,getContainer:b,scrollLocker:y,showMask:x,autofocus:A}=e,I=b==null?void 0:b();I&&(I.parentNode,document.body),s?(A&&f(),x&&(y==null||y.lock())):y==null||y.unLock()},{flush:"post"}),Qe(()=>{var s;const{open:b}=e;b&&(document.body.style.touchAction=""),(s=e.scrollLocker)===null||s===void 0||s.unLock()}),k(()=>e.placement,s=>{s&&(u.value=null)});const f=()=>{var s,b;(b=(s=i.value)===null||s===void 0?void 0:s.focus)===null||b===void 0||b.call(s)},p=s=>{n("close",s)},g=s=>{s.keyCode===tn.ESC&&(s.stopPropagation(),p(s))},h=()=>{const{open:s,afterVisibleChange:b}=e;b&&b(!!s)},d=s=>{let{level:b,getContainer:y}=s;if(co)return;const x=y==null?void 0:y(),A=x?x.parentNode:null;m=[],b==="all"?(A?Array.prototype.slice.call(A.children):[]).forEach(E=>{E.nodeName!=="SCRIPT"&&E.nodeName!=="STYLE"&&E.nodeName!=="LINK"&&E!==x&&m.push(E)}):b&&ro(b).forEach(I=>{document.querySelectorAll(I).forEach(E=>{m.push(E)})})},v=s=>{n("handleClick",s)},S=J(!1);return k(i,()=>{Ie(()=>{S.value=!0})}),()=>{var s,b;const{width:y,height:x,open:A,prefixCls:I,placement:E,level:z,levelMove:R,ease:H,duration:V,getContainer:X,onChange:_,afterVisibleChange:B,showMask:D,maskClosable:j,maskStyle:M,keyboard:W,getOpenCount:C,scrollLocker:O,contentWrapperStyle:L,style:G,class:U,rootClassName:Q,rootStyle:Ce,maskMotion:Ve,motion:ue,inline:xe}=e,me=uo(e,["width","height","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","keyboard","getOpenCount","scrollLocker","contentWrapperStyle","style","class","rootClassName","rootStyle","maskMotion","motion","inline"]),se=A&&S.value,Fe=K(I,{[`${I}-${E}`]:!0,[`${I}-open`]:se,[`${I}-inline`]:xe,"no-mask":!D,[Q]:!0}),we=typeof ue=="function"?ue(E):ue;return r("div",T(T({},wt(me,["autofocus"])),{},{tabindex:-1,class:Fe,style:Ce,ref:i,onKeydown:se&&W?g:void 0}),[r(Pe,Ve,{default:()=>[D&&Me(r("div",{class:`${I}-mask`,onClick:j?p:void 0,style:M,ref:c},null),[[Re,se]])]}),r(Pe,T(T({},we),{},{onAfterEnter:h,onAfterLeave:h}),{default:()=>[Me(r("div",{class:`${I}-content-wrapper`,style:[L],ref:a},[r("div",{class:[`${I}-content`,U],style:G,ref:u},[(s=o.default)===null||s===void 0?void 0:s.call(o)]),o.handler?r("div",{onClick:v,ref:l},[(b=o.handler)===null||b===void 0?void 0:b.call(o)]):null]),[[Re,se]])]})])}}}),st=mo;var dt=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};const go=F({compatConfig:{MODE:3},inheritAttrs:!1,props:re(io(),{prefixCls:"drawer",placement:"left",getContainer:"body",level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",afterVisibleChange:()=>{},showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",keyboard:!0,forceRender:!1,autofocus:!0}),emits:["handleClick","close"],setup(e,t){let{emit:n,slots:o}=t;const a=Z(null),i=l=>{n("handleClick",l)},c=l=>{n("close",l)};return()=>{const{getContainer:l,wrapperClassName:u,rootClassName:m,rootStyle:f,forceRender:p}=e,g=dt(e,["getContainer","wrapperClassName","rootClassName","rootStyle","forceRender"]);let h=null;if(!l)return r(st,T(T({},g),{},{rootClassName:m,rootStyle:f,open:e.open,onClose:c,onHandleClick:i,inline:!0}),o);const d=!!o.handler||p;return(d||e.open||a.value)&&(h=r(nn,{autoLock:!0,visible:e.open,forceRender:d,getContainer:l,wrapperClassName:u},{default:v=>{var{visible:S,afterClose:s}=v,b=dt(v,["visible","afterClose"]);return r(st,T(T(T({ref:a},g),b),{},{rootClassName:m,rootStyle:f,open:S!==void 0?S:e.open,afterVisibleChange:s!==void 0?s:e.afterVisibleChange,onClose:c,onHandleClick:i}),o)}})),h}}}),po=go,fo=e=>{const{componentCls:t,motionDurationSlow:n}=e,o={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${n}`}}};return{[t]:{[`${t}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${n}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${t}-panel-motion`]:{"&-left":[o,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[o,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[o,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[o,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}},ho=fo,vo=e=>{const{componentCls:t,zIndexPopup:n,colorBgMask:o,colorBgElevated:a,motionDurationSlow:i,motionDurationMid:c,padding:l,paddingLG:u,fontSizeLG:m,lineHeightLG:f,lineWidth:p,lineType:g,colorSplit:h,marginSM:d,colorIcon:v,colorIconHover:S,colorText:s,fontWeightStrong:b,drawerFooterPaddingVertical:y,drawerFooterPaddingHorizontal:x}=e,A=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:a,[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:o,pointerEvents:"auto"},[A]:{position:"absolute",zIndex:n,transition:`all ${i}`,"&-hidden":{display:"none"}},[`&-left > ${A}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${A}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${A}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${A}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{width:"100%",height:"100%",overflow:"auto",background:a,pointerEvents:"auto"},[`${t}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${l}px ${u}px`,fontSize:m,lineHeight:f,borderBottom:`${p}px ${g} ${h}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:d,color:v,fontWeight:b,fontSize:m,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${c}`,textRendering:"auto","&:focus, &:hover":{color:S,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:s,fontWeight:e.fontWeightStrong,fontSize:m,lineHeight:f},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:u,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${y}px ${x}px`,borderTop:`${p}px ${g} ${h}`},"&-rtl":{direction:"rtl"}}}},bo=ie("Drawer",e=>{const t=le(e,{drawerFooterPaddingVertical:e.paddingXS,drawerFooterPaddingHorizontal:e.padding});return[vo(t),ho(t)]},e=>({zIndexPopup:e.zIndexPopupBase}));var $o=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};const yo=["top","right","bottom","left"],ct={distance:180},So=()=>({autofocus:{type:Boolean,default:void 0},closable:{type:Boolean,default:void 0},closeIcon:w.any,destroyOnClose:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},getContainer:{type:[String,Function,Boolean,Object],default:void 0},maskClosable:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},maskStyle:ee(),rootClassName:String,rootStyle:ee(),size:{type:String},drawerStyle:ee(),headerStyle:ee(),bodyStyle:ee(),contentWrapperStyle:{type:Object,default:void 0},title:w.any,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},width:w.oneOfType([w.string,w.number]),height:w.oneOfType([w.string,w.number]),zIndex:Number,prefixCls:String,push:w.oneOfType([w.looseBool,{type:Object}]),placement:w.oneOf(yo),keyboard:{type:Boolean,default:void 0},extra:w.any,footer:w.any,footerStyle:ee(),level:w.any,levelMove:{type:[Number,Array,Function]},handle:w.any,afterVisibleChange:Function,onAfterVisibleChange:Function,onAfterOpenChange:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onClose:Function}),Co=F({compatConfig:{MODE:3},name:"ADrawer",inheritAttrs:!1,props:re(So(),{closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:ct}),slots:Object,setup(e,t){let{emit:n,slots:o,attrs:a}=t;const i=J(!1),c=J(!1),l=J(null),u=J(!1),m=J(!1),f=P(()=>{var C;return(C=e.open)!==null&&C!==void 0?C:e.visible});k(f,()=>{f.value?u.value=!0:m.value=!1},{immediate:!0}),k([f,u],()=>{f.value&&u.value&&(m.value=!0)},{immediate:!0});const p=ke("parentDrawerOpts",null),{prefixCls:g,getPopupContainer:h,direction:d}=q("drawer",e),[v,S]=bo(g),s=P(()=>e.getContainer===void 0&&(h==null?void 0:h.value)?()=>h.value(document.body):e.getContainer);$t(!e.afterVisibleChange,"Drawer","`afterVisibleChange` prop is deprecated, please use `@afterVisibleChange` event instead"),et("parentDrawerOpts",{setPush:()=>{i.value=!0},setPull:()=>{i.value=!1,Ie(()=>{x()})}}),xt(()=>{f.value&&p&&p.setPush()}),Qe(()=>{p&&p.setPull()}),k(m,()=>{p&&(m.value?p.setPush():p.setPull())},{flush:"post"});const x=()=>{var C,O;(O=(C=l.value)===null||C===void 0?void 0:C.domFocus)===null||O===void 0||O.call(C)},A=C=>{n("update:visible",!1),n("update:open",!1),n("close",C)},I=C=>{var O;C||(c.value===!1&&(c.value=!0),e.destroyOnClose&&(u.value=!1)),(O=e.afterVisibleChange)===null||O===void 0||O.call(e,C),n("afterVisibleChange",C),n("afterOpenChange",C)},E=P(()=>{const{push:C,placement:O}=e;let L;return typeof C=="boolean"?L=C?ct.distance:0:L=C.distance,L=parseFloat(String(L||0)),O==="left"||O==="right"?`translateX(${O==="left"?L:-L}px)`:O==="top"||O==="bottom"?`translateY(${O==="top"?L:-L}px)`:null}),z=P(()=>{var C;return(C=e.width)!==null&&C!==void 0?C:e.size==="large"?736:378}),R=P(()=>{var C;return(C=e.height)!==null&&C!==void 0?C:e.size==="large"?736:378}),H=P(()=>{const{mask:C,placement:O}=e;if(!m.value&&!C)return{};const L={};return O==="left"||O==="right"?L.width=Je(z.value)?`${z.value}px`:z.value:L.height=Je(R.value)?`${R.value}px`:R.value,L}),V=P(()=>{const{zIndex:C,contentWrapperStyle:O}=e,L=H.value;return[{zIndex:C,transform:i.value?E.value:void 0},$({},O),L]}),X=C=>{const{closable:O,headerStyle:L}=e,G=Be(o,e,"extra"),U=Be(o,e,"title");return!U&&!O?null:r("div",{class:K(`${C}-header`,{[`${C}-header-close-only`]:O&&!U&&!G}),style:L},[r("div",{class:`${C}-header-title`},[_(C),U&&r("div",{class:`${C}-title`},[U])]),G&&r("div",{class:`${C}-extra`},[G])])},_=C=>{var O;const{closable:L}=e,G=o.closeIcon?(O=o.closeIcon)===null||O===void 0?void 0:O.call(o):e.closeIcon;return L&&r("button",{key:"closer",onClick:A,"aria-label":"Close",class:`${C}-close`},[G===void 0?r(an,null,null):G])},B=C=>{var O;if(c.value&&!e.forceRender&&!u.value)return null;const{bodyStyle:L,drawerStyle:G}=e;return r("div",{class:`${C}-wrapper-body`,style:G},[X(C),r("div",{key:"body",class:`${C}-body`,style:L},[(O=o.default)===null||O===void 0?void 0:O.call(o)]),D(C)])},D=C=>{const O=Be(o,e,"footer");if(!O)return null;const L=`${C}-footer`;return r("div",{class:L,style:e.footerStyle},[O])},j=P(()=>K({"no-mask":!e.mask,[`${g.value}-rtl`]:d.value==="rtl"},e.rootClassName,S.value)),M=P(()=>Ye(ot(g.value,"mask-motion"))),W=C=>Ye(ot(g.value,`panel-motion-${C}`));return()=>{const{width:C,height:O,placement:L,mask:G,forceRender:U}=e,Q=$o(e,["width","height","placement","mask","forceRender"]),Ce=$($($({},a),wt(Q,["size","closeIcon","closable","destroyOnClose","drawerStyle","headerStyle","bodyStyle","title","push","onAfterVisibleChange","onClose","onUpdate:visible","onUpdate:open","visible"])),{forceRender:U,onClose:A,afterVisibleChange:I,handler:!1,prefixCls:g.value,open:m.value,showMask:G,placement:L,ref:l});return v(r(on,null,{default:()=>[r(po,T(T({},Ce),{},{maskMotion:M.value,motion:W,width:z.value,height:R.value,getContainer:s.value,rootClassName:j.value,rootStyle:e.rootStyle,contentWrapperStyle:V.value}),{handler:e.handle?()=>e.handle:o.handle,default:()=>B(g.value)})]}))}}}),ia=Ae(Co),xo=()=>({avatar:w.any,description:w.any,prefixCls:String,title:w.any}),wo=F({compatConfig:{MODE:3},name:"AListItemMeta",props:xo(),displayName:"AListItemMeta",__ANT_LIST_ITEM_META:!0,slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:o}=q("list",e);return()=>{var a,i,c,l,u,m;const f=`${o.value}-item-meta`,p=(a=e.title)!==null&&a!==void 0?a:(i=n.title)===null||i===void 0?void 0:i.call(n),g=(c=e.description)!==null&&c!==void 0?c:(l=n.description)===null||l===void 0?void 0:l.call(n),h=(u=e.avatar)!==null&&u!==void 0?u:(m=n.avatar)===null||m===void 0?void 0:m.call(n),d=r("div",{class:`${o.value}-item-meta-content`},[p&&r("h4",{class:`${o.value}-item-meta-title`},[p]),g&&r("div",{class:`${o.value}-item-meta-description`},[g])]);return r("div",{class:f},[h&&r("div",{class:`${o.value}-item-meta-avatar`},[h]),(p||g)&&d])}}}),Dt=Symbol("ListContextKey");var Io=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};const _o=()=>({prefixCls:String,extra:w.any,actions:w.array,grid:Object,colStyle:{type:Object,default:void 0}}),Po=F({compatConfig:{MODE:3},name:"AListItem",inheritAttrs:!1,Meta:wo,props:_o(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{itemLayout:a,grid:i}=ke(Dt,{grid:Z(),itemLayout:Z()}),{prefixCls:c}=q("list",e),l=()=>{var m;const f=((m=n.default)===null||m===void 0?void 0:m.call(n))||[];let p;return f.forEach(g=>{ln(g)&&!bt(g)&&(p=!0)}),p&&f.length>1},u=()=>{var m,f;const p=(m=e.extra)!==null&&m!==void 0?m:(f=n.extra)===null||f===void 0?void 0:f.call(n);return a.value==="vertical"?!!p:!l()};return()=>{var m,f,p,g,h;const{class:d}=o,v=Io(o,["class"]),S=c.value,s=(m=e.extra)!==null&&m!==void 0?m:(f=n.extra)===null||f===void 0?void 0:f.call(n),b=(p=n.default)===null||p===void 0?void 0:p.call(n);let y=(g=e.actions)!==null&&g!==void 0?g:Se((h=n.actions)===null||h===void 0?void 0:h.call(n));y=y&&!Array.isArray(y)?[y]:y;const x=y&&y.length>0&&r("ul",{class:`${S}-item-action`,key:"actions"},[y.map((E,z)=>r("li",{key:`${S}-item-action-${z}`},[E,z!==y.length-1&&r("em",{class:`${S}-item-action-split`},null)]))]),A=i.value?"div":"li",I=r(A,T(T({},v),{},{class:K(`${S}-item`,{[`${S}-item-no-flex`]:!u()},d)}),{default:()=>[a.value==="vertical"&&s?[r("div",{class:`${S}-item-main`,key:"content"},[b,x]),r("div",{class:`${S}-item-extra`,key:"extra"},[s])]:[b,x,$e(s,{key:"extra"})]]});return i.value?r(yt,{flex:1,style:e.colStyle},{default:()=>[I]}):I}}}),Ao=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:o,margin:a,padding:i,listItemPaddingSM:c,marginLG:l,borderRadiusLG:u}=e;return{[`${t}`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:u,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:o},[`${n}-pagination`]:{margin:`${a}px ${l}px`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:c}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:`${i}px ${o}px`}}}},Eo=e=>{const{componentCls:t,screenSM:n,screenMD:o,marginLG:a,marginSM:i,margin:c}=e;return{[`@media screen and (max-width:${o})`]:{[`${t}`]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:a}}}},[`@media screen and (max-width: ${n})`]:{[`${t}`]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${c}px`}}}}}},Oo=e=>{const{componentCls:t,antCls:n,controlHeight:o,minHeight:a,paddingSM:i,marginLG:c,padding:l,listItemPadding:u,colorPrimary:m,listItemPaddingSM:f,listItemPaddingLG:p,paddingXS:g,margin:h,colorText:d,colorTextDescription:v,motionDurationSlow:S,lineWidth:s}=e;return{[`${t}`]:$($({},ae(e)),{position:"relative","*":{outline:"none"},[`${t}-header, ${t}-footer`]:{background:"transparent",paddingBlock:i},[`${t}-pagination`]:{marginBlockStart:c,textAlign:"end",[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:a,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:u,color:d,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:l},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:d},[`${t}-item-meta-title`]:{marginBottom:e.marginXXS,color:d,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:d,transition:`all ${S}`,["&:hover"]:{color:m}}},[`${t}-item-meta-description`]:{color:v,fontSize:e.fontSize,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none",["& > li"]:{position:"relative",display:"inline-block",padding:`0 ${g}px`,color:v,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center",["&:first-child"]:{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:s,height:Math.ceil(e.fontSize*e.lineHeight)-e.marginXXS*2,transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${l}px 0`,color:v,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:l,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:h,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:c},[`${t}-item-meta`]:{marginBlockEnd:l,[`${t}-item-meta-title`]:{marginBlockEnd:i,color:d,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:l,marginInlineStart:"auto","> li":{padding:`0 ${l}px`,["&:first-child"]:{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,["&:last-child"]:{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:o},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:p},[`${t}-sm ${t}-item`]:{padding:f},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},To=ie("List",e=>{const t=le(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG,listItemPadding:`${e.paddingContentVertical}px ${e.paddingContentHorizontalLG}px`,listItemPaddingSM:`${e.paddingContentVerticalSM}px ${e.paddingContentHorizontal}px`,listItemPaddingLG:`${e.paddingContentVerticalLG}px ${e.paddingContentHorizontalLG}px`});return[Oo(t),Ao(t),Eo(t)]},{contentWidth:220}),Bo=()=>({bordered:Y(),dataSource:tt(),extra:Ee(),grid:ee(),itemLayout:String,loading:ce([Boolean,Object]),loadMore:Ee(),pagination:ce([Boolean,Object]),prefixCls:String,rowKey:ce([String,Number,Function]),renderItem:te(),size:String,split:Y(),header:Ee(),footer:Ee(),locale:ee()}),oe=F({compatConfig:{MODE:3},name:"AList",inheritAttrs:!1,Item:Po,props:re(Bo(),{dataSource:[],bordered:!1,split:!0,loading:!1,pagination:!1}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;var a,i;et(Dt,{grid:He(e,"grid"),itemLayout:He(e,"itemLayout")});const c={current:1,total:0},{prefixCls:l,direction:u,renderEmpty:m}=q("list",e),[f,p]=To(l),g=P(()=>e.pagination&&typeof e.pagination=="object"?e.pagination:{}),h=Z((a=g.value.defaultCurrent)!==null&&a!==void 0?a:1),d=Z((i=g.value.defaultPageSize)!==null&&i!==void 0?i:10);k(g,()=>{"current"in g.value&&(h.value=g.value.current),"pageSize"in g.value&&(d.value=g.value.pageSize)});const v=[],S=_=>(B,D)=>{h.value=B,d.value=D,g.value[_]&&g.value[_](B,D)},s=S("onChange"),b=S("onShowSizeChange"),y=P(()=>typeof e.loading=="boolean"?{spinning:e.loading}:e.loading),x=P(()=>y.value&&y.value.spinning),A=P(()=>{let _="";switch(e.size){case"large":_="lg";break;case"small":_="sm";break}return _}),I=P(()=>({[`${l.value}`]:!0,[`${l.value}-vertical`]:e.itemLayout==="vertical",[`${l.value}-${A.value}`]:A.value,[`${l.value}-split`]:e.split,[`${l.value}-bordered`]:e.bordered,[`${l.value}-loading`]:x.value,[`${l.value}-grid`]:!!e.grid,[`${l.value}-rtl`]:u.value==="rtl"})),E=P(()=>{const _=$($($({},c),{total:e.dataSource.length,current:h.value,pageSize:d.value}),e.pagination||{}),B=Math.ceil(_.total/_.pageSize);return _.current>B&&(_.current=B),_}),z=P(()=>{let _=[...e.dataSource];return e.pagination&&e.dataSource.length>(E.value.current-1)*E.value.pageSize&&(_=[...e.dataSource].splice((E.value.current-1)*E.value.pageSize,E.value.pageSize)),_}),R=rn(),H=sn(()=>{for(let _=0;_<je.length;_+=1){const B=je[_];if(R.value[B])return B}}),V=P(()=>{if(!e.grid)return;const _=H.value&&e.grid[H.value]?e.grid[H.value]:e.grid.column;if(_)return{width:`${100/_}%`,maxWidth:`${100/_}%`}}),X=(_,B)=>{var D;const j=(D=e.renderItem)!==null&&D!==void 0?D:n.renderItem;if(!j)return null;let M;const W=typeof e.rowKey;return W==="function"?M=e.rowKey(_):W==="string"||W==="number"?M=_[e.rowKey]:M=_.key,M||(M=`list-item-${B}`),v[B]=M,j({item:_,index:B})};return()=>{var _,B,D,j,M,W,C,O;const L=(_=e.loadMore)!==null&&_!==void 0?_:(B=n.loadMore)===null||B===void 0?void 0:B.call(n),G=(D=e.footer)!==null&&D!==void 0?D:(j=n.footer)===null||j===void 0?void 0:j.call(n),U=(M=e.header)!==null&&M!==void 0?M:(W=n.header)===null||W===void 0?void 0:W.call(n),Q=Se((C=n.default)===null||C===void 0?void 0:C.call(n)),Ce=!!(L||e.pagination||G),Ve=K($($({},I.value),{[`${l.value}-something-after-last-item`]:Ce}),o.class,p.value),ue=e.pagination?r("div",{class:`${l.value}-pagination`},[r(dn,T(T({},E.value),{},{onChange:s,onShowSizeChange:b}),null)]):null;let xe=x.value&&r("div",{style:{minHeight:"53px"}},null);if(z.value.length>0){v.length=0;const se=z.value.map((we,Xe)=>X(we,Xe)),Fe=se.map((we,Xe)=>r("div",{key:v[Xe],style:V.value},[we]));xe=e.grid?r(It,{gutter:e.grid.gutter},{default:()=>[Fe]}):r("ul",{class:`${l.value}-items`},[se])}else!Q.length&&!x.value&&(xe=r("div",{class:`${l.value}-empty-text`},[((O=e.locale)===null||O===void 0?void 0:O.emptyText)||m("List")]));const me=E.value.position||"bottom";return f(r("div",T(T({},o),{},{class:Ve}),[(me==="top"||me==="both")&&ue,U&&r("div",{class:`${l.value}-header`},[U]),r(cn,y.value,{default:()=>[xe,Q]}),G&&r("div",{class:`${l.value}-footer`},[G]),L||(me==="bottom"||me==="both")&&ue]))}}});oe.install=function(e){return e.component(oe.name,oe),e.component(oe.Item.name,oe.Item),e.component(oe.Item.Meta.name,oe.Item.Meta),e};const la=oe,ra=Ae(It),Lo=()=>({prefixCls:String,color:String,dot:w.any,pending:Y(),position:w.oneOf(_t("left","right","")).def(""),label:w.any}),We=F({compatConfig:{MODE:3},name:"ATimelineItem",props:re(Lo(),{color:"blue",pending:!1}),slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:o}=q("timeline",e),a=P(()=>({[`${o.value}-item`]:!0,[`${o.value}-item-pending`]:e.pending})),i=P(()=>/blue|red|green|gray/.test(e.color||"")?void 0:e.color||"blue"),c=P(()=>({[`${o.value}-item-head`]:!0,[`${o.value}-item-head-${e.color||"blue"}`]:!i.value}));return()=>{var l,u,m;const{label:f=(l=n.label)===null||l===void 0?void 0:l.call(n),dot:p=(u=n.dot)===null||u===void 0?void 0:u.call(n)}=e;return r("li",{class:a.value},[f&&r("div",{class:`${o.value}-item-label`},[f]),r("div",{class:`${o.value}-item-tail`},null),r("div",{class:[c.value,!!p&&`${o.value}-item-head-custom`],style:{borderColor:i.value,color:i.value}},[p]),r("div",{class:`${o.value}-item-content`},[(m=n.default)===null||m===void 0?void 0:m.call(n)])])}}}),zo=e=>{const{componentCls:t}=e;return{[t]:$($({},ae(e)),{margin:0,padding:0,listStyle:"none",[`${t}-item`]:{position:"relative",margin:0,paddingBottom:e.timeLineItemPaddingBottom,fontSize:e.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:e.timeLineItemHeadSize,insetInlineStart:(e.timeLineItemHeadSize-e.timeLineItemTailWidth)/2,height:`calc(100% - ${e.timeLineItemHeadSize}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px ${e.lineType} ${e.colorSplit}`},"&-pending":{[`${t}-item-head`]:{fontSize:e.fontSizeSM,backgroundColor:"transparent"},[`${t}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:e.timeLineItemHeadSize,height:e.timeLineItemHeadSize,backgroundColor:e.colorBgContainer,border:`${e.timeLineHeadBorderWidth}px ${e.lineType} transparent`,borderRadius:"50%","&-blue":{color:e.colorPrimary,borderColor:e.colorPrimary},"&-red":{color:e.colorError,borderColor:e.colorError},"&-green":{color:e.colorSuccess,borderColor:e.colorSuccess},"&-gray":{color:e.colorTextDisabled,borderColor:e.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:e.timeLineItemHeadSize/2,insetInlineStart:e.timeLineItemHeadSize/2,width:"auto",height:"auto",marginBlockStart:0,paddingBlock:e.timeLineItemCustomHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.lineWidth,marginInlineStart:e.margin+e.timeLineItemHeadSize,marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${t}-item-tail`]:{display:"none"},[`> ${t}-item-content`]:{minHeight:e.controlHeightLG*1.2}}},[`&${t}-alternate,
10
+ &${t}-right,
11
+ &${t}-label`]:{[`${t}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:`-${e.marginXXS}px`,"&-custom":{marginInlineStart:e.timeLineItemTailWidth/2}},"&-left":{[`${t}-item-content`]:{insetInlineStart:`calc(50% - ${e.marginXXS}px)`,width:`calc(50% - ${e.marginSM}px)`,textAlign:"start"}},"&-right":{[`${t}-item-content`]:{width:`calc(50% - ${e.marginSM}px)`,margin:0,textAlign:"end"}}}},[`&${t}-right`]:{[`${t}-item-right`]:{[`${t}-item-tail,
12
+ ${t}-item-head,
13
+ ${t}-item-head-custom`]:{insetInlineStart:`calc(100% - ${(e.timeLineItemHeadSize+e.timeLineItemTailWidth)/2}px)`},[`${t}-item-content`]:{width:`calc(100% - ${e.timeLineItemHeadSize+e.marginXS}px)`}}},[`&${t}-pending
14
+ ${t}-item-last
15
+ ${t}-item-tail`]:{display:"block",height:`calc(100% - ${e.margin}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px dotted ${e.colorSplit}`},[`&${t}-reverse
16
+ ${t}-item-last
17
+ ${t}-item-tail`]:{display:"none"},[`&${t}-reverse ${t}-item-pending`]:{[`${t}-item-tail`]:{insetBlockStart:e.margin,display:"block",height:`calc(100% - ${e.margin}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px dotted ${e.colorSplit}`},[`${t}-item-content`]:{minHeight:e.controlHeightLG*1.2}},[`&${t}-label`]:{[`${t}-item-label`]:{position:"absolute",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.timeLineItemTailWidth,width:`calc(50% - ${e.marginSM}px)`,textAlign:"end"},[`${t}-item-right`]:{[`${t}-item-label`]:{insetInlineStart:`calc(50% + ${e.marginSM}px)`,width:`calc(50% - ${e.marginSM}px)`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${t}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}},Do=ie("Timeline",e=>{const t=le(e,{timeLineItemPaddingBottom:e.padding*1.25,timeLineItemHeadSize:10,timeLineItemCustomHeadPaddingVertical:e.paddingXXS,timeLinePaddingInlineEnd:2,timeLineItemTailWidth:e.lineWidthBold,timeLineHeadBorderWidth:e.wireframe?e.lineWidthBold:e.lineWidth*3});return[zo(t)]}),Mo=()=>({prefixCls:String,pending:w.any,pendingDot:w.any,reverse:Y(),mode:w.oneOf(_t("left","alternate","right",""))}),ze=F({compatConfig:{MODE:3},name:"ATimeline",inheritAttrs:!1,props:re(Mo(),{reverse:!1,mode:""}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:a,direction:i}=q("timeline",e),[c,l]=Do(a),u=(m,f)=>{const p=m.props||{};return e.mode==="alternate"?p.position==="right"?`${a.value}-item-right`:p.position==="left"?`${a.value}-item-left`:f%2===0?`${a.value}-item-left`:`${a.value}-item-right`:e.mode==="left"?`${a.value}-item-left`:e.mode==="right"?`${a.value}-item-right`:p.position==="right"?`${a.value}-item-right`:""};return()=>{var m,f,p;const{pending:g=(m=n.pending)===null||m===void 0?void 0:m.call(n),pendingDot:h=(f=n.pendingDot)===null||f===void 0?void 0:f.call(n),reverse:d,mode:v}=e,S=typeof g=="boolean"?null:g,s=ht((p=n.default)===null||p===void 0?void 0:p.call(n)),b=g?r(We,{pending:!!g,dot:h||r(un,null,null)},{default:()=>[S]}):null;b&&s.push(b);const y=d?s.reverse():s,x=y.length,A=`${a.value}-item-last`,I=y.map((R,H)=>{const V=H===x-2?A:"",X=H===x-1?A:"";return mn(R,{class:K([!d&&!!g?V:X,u(R,H)])})}),E=y.some(R=>{var H,V;return!!(((H=R.props)===null||H===void 0?void 0:H.label)||((V=R.children)===null||V===void 0?void 0:V.label))}),z=K(a.value,{[`${a.value}-pending`]:!!g,[`${a.value}-reverse`]:!!d,[`${a.value}-${v}`]:!!v&&!E,[`${a.value}-label`]:E,[`${a.value}-rtl`]:i.value==="rtl"},o.class,l.value);return c(r("ul",T(T({},o),{},{class:z}),[I]))}}});ze.Item=We;ze.install=function(e){return e.component(ze.name,ze),e.component(We.name,We),e};function ut(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function mt(e){return{backgroundColor:e.bgColorSelected,boxShadow:e.boxShadow}}const Ro=$({overflow:"hidden"},St),No=e=>{const{componentCls:t}=e;return{[t]:$($($($($({},ae(e)),{display:"inline-block",padding:e.segmentedContainerPadding,color:e.labelColor,backgroundColor:e.bgColor,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,"&-selected":$($({},mt(e)),{color:e.labelColorHover}),"&::after":{content:'""',position:"absolute",width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.labelColorHover,"&::after":{backgroundColor:e.bgColorHover}},"&-label":$({minHeight:e.controlHeight-e.segmentedContainerPadding*2,lineHeight:`${e.controlHeight-e.segmentedContainerPadding*2}px`,padding:`0 ${e.segmentedPaddingHorizontal}px`},Ro),"&-icon + *":{marginInlineStart:e.marginSM/2},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:$($({},mt(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${e.paddingXXS}px 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:e.controlHeightLG-e.segmentedContainerPadding*2,lineHeight:`${e.controlHeightLG-e.segmentedContainerPadding*2}px`,padding:`0 ${e.segmentedPaddingHorizontal}px`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:e.controlHeightSM-e.segmentedContainerPadding*2,lineHeight:`${e.controlHeightSM-e.segmentedContainerPadding*2}px`,padding:`0 ${e.segmentedPaddingHorizontalSM}px`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),ut(`&-disabled ${t}-item`,e)),ut(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},Ho=ie("Segmented",e=>{const{lineWidthBold:t,lineWidth:n,colorTextLabel:o,colorText:a,colorFillSecondary:i,colorBgLayout:c,colorBgElevated:l}=e,u=le(e,{segmentedPaddingHorizontal:e.controlPaddingHorizontal-n,segmentedPaddingHorizontalSM:e.controlPaddingHorizontalSM-n,segmentedContainerPadding:t,labelColor:o,labelColorHover:a,bgColor:c,bgColorHover:i,bgColorSelected:l});return[No(u)]}),gt=e=>e?{left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth}:null,pe=e=>e!==void 0?`${e}px`:void 0,jo=F({props:{value:ne(),getValueIndex:ne(),prefixCls:ne(),motionName:ne(),onMotionStart:ne(),onMotionEnd:ne(),direction:ne(),containerRef:ne()},emits:["motionStart","motionEnd"],setup(e,t){let{emit:n}=t;const o=Z(),a=d=>{var v;const S=e.getValueIndex(d),s=(v=e.containerRef.value)===null||v===void 0?void 0:v.querySelectorAll(`.${e.prefixCls}-item`)[S];return(s==null?void 0:s.offsetParent)&&s},i=Z(null),c=Z(null);k(()=>e.value,(d,v)=>{const S=a(v),s=a(d),b=gt(S),y=gt(s);i.value=b,c.value=y,n(S&&s?"motionStart":"motionEnd")},{flush:"post"});const l=P(()=>{var d,v;return e.direction==="rtl"?pe(-((d=i.value)===null||d===void 0?void 0:d.right)):pe((v=i.value)===null||v===void 0?void 0:v.left)}),u=P(()=>{var d,v;return e.direction==="rtl"?pe(-((d=c.value)===null||d===void 0?void 0:d.right)):pe((v=c.value)===null||v===void 0?void 0:v.left)});let m;const f=d=>{clearTimeout(m),Ie(()=>{d&&(d.style.transform="translateX(var(--thumb-start-left))",d.style.width="var(--thumb-start-width)")})},p=d=>{m=setTimeout(()=>{d&&(gn(d,`${e.motionName}-appear-active`),d.style.transform="translateX(var(--thumb-active-left))",d.style.width="var(--thumb-active-width)")})},g=d=>{i.value=null,c.value=null,d&&(d.style.transform=null,d.style.width=null,pn(d,`${e.motionName}-appear-active`)),n("motionEnd")},h=P(()=>{var d,v;return{"--thumb-start-left":l.value,"--thumb-start-width":pe((d=i.value)===null||d===void 0?void 0:d.width),"--thumb-active-left":u.value,"--thumb-active-width":pe((v=c.value)===null||v===void 0?void 0:v.width)}});return Ct(()=>{clearTimeout(m)}),()=>{const d={ref:o,style:h.value,class:[`${e.prefixCls}-thumb`]};return r(Pe,{appear:!0,onBeforeEnter:f,onEnter:p,onAfterEnter:g},{default:()=>[!i.value||!c.value?null:r("div",d,null)]})}}}),Wo=jo;function Vo(e){return e.map(t=>typeof t=="object"&&t!==null?t:{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t})}const Fo=()=>({prefixCls:String,options:tt(),block:Y(),disabled:Y(),size:Ne(),value:$($({},ce([String,Number])),{required:!0}),motionName:String,onChange:te(),"onUpdate:value":te()}),Mt=(e,t)=>{let{slots:n,emit:o}=t;const{value:a,disabled:i,payload:c,title:l,prefixCls:u,label:m=n.label,checked:f,className:p}=e,g=h=>{i||o("change",h,a)};return r("label",{class:K({[`${u}-item-disabled`]:i},p)},[r("input",{class:`${u}-item-input`,type:"radio",disabled:i,checked:f,onChange:g},null),r("div",{class:`${u}-item-label`,title:typeof l=="string"?l:""},[typeof m=="function"?m({value:a,disabled:i,payload:c,title:l}):m!=null?m:a])])};Mt.inheritAttrs=!1;const Xo=F({name:"ASegmented",inheritAttrs:!1,props:re(Fo(),{options:[],motionName:"thumb-motion"}),slots:Object,setup(e,t){let{emit:n,slots:o,attrs:a}=t;const{prefixCls:i,direction:c,size:l}=q("segmented",e),[u,m]=Ho(i),f=J(),p=J(!1),g=P(()=>Vo(e.options)),h=(d,v)=>{e.disabled||(n("update:value",v),n("change",v))};return()=>{const d=i.value;return u(r("div",T(T({},a),{},{class:K(d,{[m.value]:!0,[`${d}-block`]:e.block,[`${d}-disabled`]:e.disabled,[`${d}-lg`]:l.value=="large",[`${d}-sm`]:l.value=="small",[`${d}-rtl`]:c.value==="rtl"},a.class),ref:f}),[r("div",{class:`${d}-group`},[r(Wo,{containerRef:f,prefixCls:d,value:e.value,motionName:`${d}-${e.motionName}`,direction:c.value,getValueIndex:v=>g.value.findIndex(S=>S.value===v),onMotionStart:()=>{p.value=!0},onMotionEnd:()=>{p.value=!1}},null),g.value.map(v=>r(Mt,T(T({key:v.value,prefixCls:d,checked:v.value===e.value,onChange:h},v),{},{className:K(v.className,`${d}-item`,{[`${d}-item-selected`]:v.value===e.value&&!p.value}),disabled:!!e.disabled||!!v.disabled}),o))])]))}}}),sa=Ae(Xo),Go=()=>window.location.host.includes(".abstra.io"),Ko={"cloud-api":"/api/cloud-api",onboarding:"https://onboarding.abstra.app"},Uo={"cloud-api":"https://cloud-api.abstra.cloud",onboarding:"https://onboarding.abstra.app"},pt=e=>{const t="VITE_"+at.toUpper(at.snakeCase(e)),n={VITE_SENTRY_RELEASE:"c070b077427b34a670ba8422f8dad30dfba7dde3",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}[t];return n||(Go()?Ko[e]:Uo[e])},fe={cloudApi:pt("cloud-api"),onboarding:pt("onboarding")},Yo=(e,t,n)=>{Pt.error({message:e,description:t,onClick:n})};class Zo{constructor(){Ge(this,"storage");this.storage=new fn(hn.string(),"auth:jwt")}async authenticate(t,n){be.post("authn/authenticate",{email:t,isResend:n})}async verify(t,n){const o=await be.post("authn/verify",{email:t,token:n});if(!(o&&"jwt"in o))throw new Error("Invalid token");return this.saveJWT(o.jwt),this.getAuthor()}saveJWT(t){this.storage.set(t)}getAuthor(){const t=this.storage.get();if(t)try{const n=vn(t);if(n.exp&&n.exp>Date.now()/1e3)return{jwt:t,claims:n}}catch{console.warn("Invalid JWT")}return null}removeAuthor(){this.storage.remove()}async logout(){try{await be.post("authn/logout",{})}catch(t){At(t,{extra:{message:"Logout API call failed"}})}finally{this.removeAuthor()}}get headers(){const t=this.getAuthor();return t?{"Author-Authorization":`Bearer ${t.jwt}`}:{}}}const de=new Zo;class _e extends Error{constructor(t,n){super(t),this.status=n}static async fromResponse(t){const n=await t.text();return new _e(n,t.status)}}class be{static async get(t,n){const o=Object.fromEntries(Object.entries(n!=null?n:{}).filter(([,l])=>l!=null)),a=Object.keys(o).length>0?`?${new URLSearchParams(o).toString()}`:"",i=await fetch(`${fe.cloudApi}/console/${t}${a}`,{headers:{...de.headers}});if(i.status===403){Yo("You are not authorized to access this resource","Click here to go back to the home page.",()=>{window.location.href="/"});return}const c=await i.text();return c?JSON.parse(c):null}static async getBlob(t){return await(await fetch(`${fe.cloudApi}/console/${t}`,{headers:{...de.headers}})).blob()}static async post(t,n,o){const a=!!(o!=null&&o["Content-Type"])&&o["Content-Type"]!=="application/json",i=await fetch(`${fe.cloudApi}/console/${t}`,{method:"POST",headers:{"Content-Type":"application/json",...de.headers,...o},body:a?n:JSON.stringify(n)});if(!i.ok)throw await _e.fromResponse(i);const c=await i.text();return c?JSON.parse(c):null}static async postRaw(t,n,o){const a=!!(o!=null&&o["Content-Type"])&&o["Content-Type"]!=="application/json";return await fetch(`${fe.cloudApi}/console/${t}`,{method:"POST",headers:{"Content-Type":"application/json",...de.headers,...o},body:a?n:JSON.stringify(n)})}static async patch(t,n){const o=await fetch(`${fe.cloudApi}/console/${t}`,{method:"PATCH",headers:{"Content-Type":"application/json",...de.headers},body:JSON.stringify(n)});if(!o.ok)throw await _e.fromResponse(o);const a=await o.text();return a?JSON.parse(a):null}static async delete(t){const n=await fetch(`${fe.cloudApi}/console/${t}`,{method:"DELETE",headers:{"Content-Type":"application/json",...de.headers}});if(!n.ok)throw await _e.fromResponse(n)}}class Jo{static async getInfo(){return await be.get("authors/info")}}const ve=class{static showError(){Pt.error({message:"Unable to Load Support Chat",description:"It looks like some browser extensions, such as ad blockers, may be preventing the support chat from loading. Please try disabling them or reach out to us at help@abstra.app"})}static boot(){ve.booted||(ge.Intercom({app_id:"h97k86ks"}),Jo.getInfo().then(t=>{ge.boot({api_base:"https://api-iam.intercom.io",app_id:"h97k86ks",name:t.email,email:t.email,user_hash:t.intercomHash,hide_default_launcher:!0,custom_launcher_selector:".intercom-launcher"}),ve.booted=!0}).catch(t=>{console.error(t),At(t)}))}static show(){try{ge.show()}catch(t){console.error("Error showing Intercom:",t),ve.showError()}}static hide(){ge.hide()}static showNewMessage(t){ge.showNewMessage(t)}static shutdown(){ge.shutdown(),ve.booted=!1}};let De=ve;Ge(De,"booted",!1);class qo{async createSession(t){await be.post("usage/sessions",t)}async trackBrowserEvent(t){await be.post("usage/browser",t)}}const Te=new qo;class Qo{static trackSession(){const t=Object.fromEntries(document.cookie.split("; ").map(o=>o.split(/=(.*)/s).map(decodeURIComponent))),n=new URLSearchParams(window.location.search).get("session")||t.abstra_session;Te.createSession({query:Object.fromEntries(new URLSearchParams(location.search)),referrer:document.referrer,href:location.href,previousSessionId:n}).catch(console.error)}static trackPageView(){Te.trackBrowserEvent({event:"PageView",payload:{queryParams:Object.fromEntries(new URLSearchParams(location.search)),referrer:document.referrer,href:location.href}}).catch(console.error)}static billingAlertCtaClicked(t,n){Te.trackBrowserEvent({event:"BillingAlertCtaClicked",payload:{cta:n,organizationId:t,href:location.href}}).catch(console.error)}static billingPlanUpgradeClicked(t){Te.trackBrowserEvent({event:"BillingPlanUpgradeClicked",payload:{organizationId:t,href:location.href}}).catch(console.error)}}const ft=bn({history:$n("/"),routes:[{path:"/mock-form",name:"mock-form",component:()=>N(()=>import("./MockForm.0b819a52.js"),["assets/MockForm.0b819a52.js","assets/FormRunner.15be6fa0.js","assets/userStore.6ab1e5ac.js","assets/jwt-decode.esm.54a1ea22.js","assets/jwt-decode.9f7a5511.css","assets/Login.vue_vue_type_script_setup_true_lang.5161f328.js","assets/workspaceStore.fac1e9a9.js","assets/url.f5664225.js","assets/colorHelpers.50ced1e9.js","assets/CircularLoading.998b223a.js","assets/CircularLoading.a8fe2dc6.css","assets/Logo.65e0b37c.js","assets/Logo.b7d81119.css","assets/string.61e11a30.js","assets/index.d53182ed.js","assets/Login.75d13f6c.css","assets/Steps.dd51a108.js","assets/index.d31da2c3.js","assets/Steps.2880920a.css","assets/Watermark.9c9358e3.js","assets/constants.d569f33d.js","assets/Watermark.b0916e90.css","assets/FormRunner.46f6426d.css","assets/asyncComputed.47aec2b5.js","assets/uuid.5b8ba8af.js","assets/PlayerConfigProvider.28e29025.js","assets/PlayerConfigProvider.1ce9d3b1.css","assets/MockForm.e410c2c1.css"]),meta:{public:!0,title:"Mock Form - Abstra Console"}},{path:"/widget-preview",name:"widget-preview",component:()=>N(()=>import("./WidgetPreview.7c6a231c.js"),["assets/WidgetPreview.7c6a231c.js","assets/jwt-decode.esm.54a1ea22.js","assets/jwt-decode.9f7a5511.css","assets/Steps.dd51a108.js","assets/index.d31da2c3.js","assets/Steps.2880920a.css","assets/PlayerConfigProvider.28e29025.js","assets/colorHelpers.50ced1e9.js","assets/PlayerConfigProvider.1ce9d3b1.css","assets/WidgetPreview.dbf510e6.css"]),meta:{public:!0,title:"Preview - Abstra Console"}},{path:"/login",name:"login",component:()=>N(()=>import("./Login.4e852955.js"),["assets/Login.4e852955.js","assets/CircularLoading.998b223a.js","assets/jwt-decode.esm.54a1ea22.js","assets/jwt-decode.9f7a5511.css","assets/CircularLoading.a8fe2dc6.css","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.28bc9fc9.js","assets/Logo.65e0b37c.js","assets/Logo.b7d81119.css","assets/string.61e11a30.js","assets/index.d53182ed.js","assets/index.c7a996a6.js","assets/Login.eb150441.css"]),meta:{public:!0,title:"Login - Abstra Console"}},{path:"/onboarding",name:"onboarding",component:()=>N(()=>import("./OnboardingView.25042384.js"),["assets/OnboardingView.25042384.js","assets/userStore.6ab1e5ac.js","assets/jwt-decode.esm.54a1ea22.js","assets/jwt-decode.9f7a5511.css","assets/index.966ac1b9.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.28bc9fc9.js","assets/Logo.65e0b37c.js","assets/Logo.b7d81119.css","assets/index.d31da2c3.js","assets/index.c7a996a6.js","assets/OnboardingView.3996b08d.css"]),meta:{title:"Onboarding - Abstra Console"}},{path:"/api-key",name:"api-key",component:()=>N(()=>import("./EditorLogin.691452b4.js"),["assets/EditorLogin.691452b4.js","assets/Navbar.ef64aa09.js","assets/AbstraButton.vue_vue_type_script_setup_true_lang.aefce2d3.js","assets/jwt-decode.esm.54a1ea22.js","assets/jwt-decode.9f7a5511.css","assets/constants.d569f33d.js","assets/asyncComputed.47aec2b5.js","assets/PhChats.vue.71e5cb89.js","assets/PhSignOut.vue.d1d6498f.js","assets/index.966ac1b9.js","assets/index.c8a56795.js","assets/omniChatStore.dd7a1c46.js","assets/record.e83a2eb2.js","assets/uuid.5b8ba8af.js","assets/PhCopySimple.vue.5d0f839d.js","assets/omniChatStore.ec95fb81.css","assets/PhBookBookmark.vue.41108214.js","assets/PhSparkle.vue.b6712d34.js","assets/index.482df04a.js","assets/Breadcrumb.5c786c09.js","assets/Navbar.2dc6d02c.css","assets/url.f5664225.js","assets/apiKey.403049eb.js","assets/member.2260c37e.js","assets/organization.668d1b58.js","assets/project.1b8374f4.js","assets/tables.1bcb1140.js","assets/string.61e11a30.js","assets/folder.13d3acac.js","assets/index.c7a996a6.js","assets/EditorLogin.3d18a45f.css"]),meta:{title:"Api Keys - Abstra Console"}},{path:"/",name:"home",redirect:{name:"organizations"},meta:{title:"Home - Abstra Console"}},{path:"/organizations",name:"organizations",component:()=>N(()=>import("./Organizations.47868beb.js"),["assets/Organizations.47868beb.js","assets/Navbar.ef64aa09.js","assets/AbstraButton.vue_vue_type_script_setup_true_lang.aefce2d3.js","assets/jwt-decode.esm.54a1ea22.js","assets/jwt-decode.9f7a5511.css","assets/constants.d569f33d.js","assets/asyncComputed.47aec2b5.js","assets/PhChats.vue.71e5cb89.js","assets/PhSignOut.vue.d1d6498f.js","assets/index.966ac1b9.js","assets/index.c8a56795.js","assets/omniChatStore.dd7a1c46.js","assets/record.e83a2eb2.js","assets/uuid.5b8ba8af.js","assets/PhCopySimple.vue.5d0f839d.js","assets/omniChatStore.ec95fb81.css","assets/PhBookBookmark.vue.41108214.js","assets/PhSparkle.vue.b6712d34.js","assets/index.482df04a.js","assets/Breadcrumb.5c786c09.js","assets/Navbar.2dc6d02c.css","assets/BaseLayout.72a6c8f2.js","assets/BaseLayout.e1744dcc.css","assets/ContentLayout.0db8d7fb.js","assets/ContentLayout.cdae7d24.css","assets/CrudView.cc6aeaf0.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.689d8ce7.js","assets/url.f5664225.js","assets/PhDotsThreeVertical.vue.5e8ae2a9.js","assets/CrudView.e24590ae.css","assets/PhArrowSquareOut.vue.2ddfc219.js","assets/PhPencil.vue.feb383e2.js","assets/organization.668d1b58.js","assets/tables.1bcb1140.js","assets/string.61e11a30.js","assets/index.c7a996a6.js"]),meta:{title:"Organizations - Abstra Console"}},{path:"/organizations/:organizationId",name:"organization",component:()=>N(()=>import("./Organization.66f64939.js"),["assets/Organization.66f64939.js","assets/Navbar.ef64aa09.js","assets/AbstraButton.vue_vue_type_script_setup_true_lang.aefce2d3.js","assets/jwt-decode.esm.54a1ea22.js","assets/jwt-decode.9f7a5511.css","assets/constants.d569f33d.js","assets/asyncComputed.47aec2b5.js","assets/PhChats.vue.71e5cb89.js","assets/PhSignOut.vue.d1d6498f.js","assets/index.966ac1b9.js","assets/index.c8a56795.js","assets/omniChatStore.dd7a1c46.js","assets/record.e83a2eb2.js","assets/uuid.5b8ba8af.js","assets/PhCopySimple.vue.5d0f839d.js","assets/omniChatStore.ec95fb81.css","assets/PhBookBookmark.vue.41108214.js","assets/PhSparkle.vue.b6712d34.js","assets/index.482df04a.js","assets/Breadcrumb.5c786c09.js","assets/Navbar.2dc6d02c.css","assets/BaseLayout.72a6c8f2.js","assets/BaseLayout.e1744dcc.css","assets/ContentLayout.0db8d7fb.js","assets/ContentLayout.cdae7d24.css","assets/PhCube.vue.abf4a034.js","assets/PhUsersThree.vue.8889f957.js","assets/organization.668d1b58.js","assets/tables.1bcb1140.js","assets/string.61e11a30.js","assets/Sidebar.41173d8e.js","assets/index.d53182ed.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.28bc9fc9.js","assets/Logo.65e0b37c.js","assets/Logo.b7d81119.css","assets/Sidebar.29baeab0.css","assets/index.c7a996a6.js"]),redirect:{name:"projects"},children:[{path:"projects",name:"projects",component:()=>N(()=>import("./ProjectsView.cbd118ac.js"),["assets/ProjectsView.cbd118ac.js","assets/jwt-decode.esm.54a1ea22.js","assets/jwt-decode.9f7a5511.css","assets/AbstraButton.vue_vue_type_script_setup_true_lang.aefce2d3.js","assets/PhCube.vue.abf4a034.js","assets/PhPencilSimple.vue.ec0eebb4.js","assets/PhFolderPlus.vue.21d377a3.js","assets/PhGear.vue.363dd83c.js","assets/PhUsersThree.vue.8889f957.js","assets/member.2260c37e.js","assets/project.1b8374f4.js","assets/record.e83a2eb2.js","assets/tables.1bcb1140.js","assets/string.61e11a30.js","assets/folder.13d3acac.js","assets/ant-design.42419021.js","assets/organization.668d1b58.js","assets/index.c7a996a6.js","assets/ProjectsView.16d8ecf6.css"]),meta:{title:"Projects - Abstra Console"}},{path:"editors",name:"editors",component:()=>N(()=>import("./EditorsView.fcdf0186.js"),["assets/EditorsView.fcdf0186.js","assets/CrudView.cc6aeaf0.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.689d8ce7.js","assets/constants.d569f33d.js","assets/jwt-decode.esm.54a1ea22.js","assets/jwt-decode.9f7a5511.css","assets/url.f5664225.js","assets/PhDotsThreeVertical.vue.5e8ae2a9.js","assets/index.966ac1b9.js","assets/CrudView.e24590ae.css","assets/member.2260c37e.js","assets/tables.1bcb1140.js","assets/record.e83a2eb2.js","assets/string.61e11a30.js","assets/folder.13d3acac.js","assets/ant-design.42419021.js","assets/index.c7a996a6.js"]),meta:{title:"Editors - Abstra Console"}},{path:"members",redirect:{name:"editors"}},{path:"billing",name:"billing",component:()=>N(()=>import("./Billing.6b07f282.js"),["assets/Billing.6b07f282.js","assets/asyncComputed.47aec2b5.js","assets/jwt-decode.esm.54a1ea22.js","assets/jwt-decode.9f7a5511.css","assets/organization.668d1b58.js","assets/tables.1bcb1140.js","assets/record.e83a2eb2.js","assets/string.61e11a30.js","assets/LoadingContainer.82ac3d44.js","assets/LoadingContainer.56fa997a.css","assets/index.c7a996a6.js"]),meta:{title:"Billing - Abstra Console"}}]},{path:"/projects/:projectId",name:"project",component:()=>N(()=>import("./Project.2de506d7.js"),["assets/Project.2de506d7.js","assets/Navbar.ef64aa09.js","assets/AbstraButton.vue_vue_type_script_setup_true_lang.aefce2d3.js","assets/jwt-decode.esm.54a1ea22.js","assets/jwt-decode.9f7a5511.css","assets/constants.d569f33d.js","assets/asyncComputed.47aec2b5.js","assets/PhChats.vue.71e5cb89.js","assets/PhSignOut.vue.d1d6498f.js","assets/index.966ac1b9.js","assets/index.c8a56795.js","assets/omniChatStore.dd7a1c46.js","assets/record.e83a2eb2.js","assets/uuid.5b8ba8af.js","assets/PhCopySimple.vue.5d0f839d.js","assets/omniChatStore.ec95fb81.css","assets/PhBookBookmark.vue.41108214.js","assets/PhSparkle.vue.b6712d34.js","assets/index.482df04a.js","assets/Breadcrumb.5c786c09.js","assets/Navbar.2dc6d02c.css","assets/BaseLayout.72a6c8f2.js","assets/BaseLayout.e1744dcc.css","assets/organization.668d1b58.js","assets/project.1b8374f4.js","assets/tables.1bcb1140.js","assets/string.61e11a30.js","assets/Sidebar.41173d8e.js","assets/index.d53182ed.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.28bc9fc9.js","assets/Logo.65e0b37c.js","assets/Logo.b7d81119.css","assets/Sidebar.29baeab0.css","assets/ContentLayout.0db8d7fb.js","assets/ContentLayout.cdae7d24.css","assets/PhArrowCounterClockwise.vue.78877a50.js","assets/PhRocket.vue.261a42b2.js","assets/PhDatabase.vue.a94d95f6.js","assets/PhKey.vue.23f3a465.js","assets/folder.13d3acac.js","assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.3ca66327.js","assets/OmniChat.73d9f6bb.js","assets/ant-design.42419021.js","assets/files.8b58ee7e.js","assets/PhClockCounterClockwise.vue.854c3cb5.js","assets/LoadingOutlined.66639b08.js","assets/Card.fc77085c.js","assets/OmniChat.a21fec40.css","assets/index.c7a996a6.js","assets/Project.9c75c141.css"]),redirect:{name:"live"},children:[{path:"live",name:"live",component:()=>N(()=>import("./Live.48c10605.js"),["assets/Live.48c10605.js","assets/CrudView.cc6aeaf0.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.689d8ce7.js","assets/constants.d569f33d.js","assets/jwt-decode.esm.54a1ea22.js","assets/jwt-decode.9f7a5511.css","assets/url.f5664225.js","assets/PhDotsThreeVertical.vue.5e8ae2a9.js","assets/index.966ac1b9.js","assets/CrudView.e24590ae.css","assets/asyncComputed.47aec2b5.js","assets/build.45b511b6.js","assets/organization.668d1b58.js","assets/project.1b8374f4.js","assets/record.e83a2eb2.js","assets/tables.1bcb1140.js","assets/string.61e11a30.js","assets/datetime.82608dfb.js","assets/polling.b5a32c22.js","assets/repository.3a331f0f.js","assets/LoadingOutlined.66639b08.js","assets/PhArrowCounterClockwise.vue.78877a50.js","assets/PhArrowSquareOut.vue.2ddfc219.js","assets/PhChats.vue.71e5cb89.js","assets/PhCopySimple.vue.5d0f839d.js","assets/index.c7a996a6.js","assets/Live.37415b2d.css"]),meta:{title:"Project - Abstra Console"}},{path:"builds",name:"builds",component:()=>N(()=>import("./Builds.d8c5c61b.js"),["assets/Builds.d8c5c61b.js","assets/CrudView.cc6aeaf0.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.689d8ce7.js","assets/constants.d569f33d.js","assets/jwt-decode.esm.54a1ea22.js","assets/jwt-decode.9f7a5511.css","assets/url.f5664225.js","assets/PhDotsThreeVertical.vue.5e8ae2a9.js","assets/index.966ac1b9.js","assets/CrudView.e24590ae.css","assets/asyncComputed.47aec2b5.js","assets/datetime.82608dfb.js","assets/polling.b5a32c22.js","assets/PhArrowCounterClockwise.vue.78877a50.js","assets/PhCube.vue.abf4a034.js","assets/PhDownloadSimple.vue.e88f64f1.js","assets/build.45b511b6.js","assets/project.1b8374f4.js","assets/record.e83a2eb2.js","assets/tables.1bcb1140.js","assets/string.61e11a30.js","assets/PhClockCounterClockwise.vue.854c3cb5.js","assets/PhUserList.vue.e0b8c21b.js","assets/PhWebhooksLogo.vue.d164db1e.js","assets/ExclamationCircleOutlined.d0aa47da.js","assets/CloseCircleOutlined.9ff269cc.js","assets/LoadingOutlined.66639b08.js","assets/index.c7a996a6.js","assets/Builds.ace9e3da.css"]),meta:{title:"Builds - Abstra Console"}},{path:"connectors",name:"connectors",component:()=>N(()=>import("./ConnectorsView.e670738b.js"),["assets/ConnectorsView.e670738b.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.689d8ce7.js","assets/constants.d569f33d.js","assets/jwt-decode.esm.54a1ea22.js","assets/jwt-decode.9f7a5511.css","assets/AbstraButton.vue_vue_type_script_setup_true_lang.aefce2d3.js","assets/PhDotsThreeVertical.vue.5e8ae2a9.js","assets/UploadOutlined.9aa845de.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.28bc9fc9.js","assets/Logo.65e0b37c.js","assets/Logo.b7d81119.css","assets/PhWebhooksLogo.vue.d164db1e.js","assets/index.c8a56795.js","assets/Card.fc77085c.js","assets/index.966ac1b9.js","assets/index.c7a996a6.js","assets/ConnectorsView.33c5380f.css"]),meta:{title:"Connectors - Abstra Console"}},{path:"tables",name:"tables",component:()=>N(()=>import("./Tables.eff119eb.js"),["assets/Tables.eff119eb.js","assets/AbstraButton.vue_vue_type_script_setup_true_lang.aefce2d3.js","assets/jwt-decode.esm.54a1ea22.js","assets/jwt-decode.9f7a5511.css","assets/omniChatStore.dd7a1c46.js","assets/record.e83a2eb2.js","assets/uuid.5b8ba8af.js","assets/PhCopySimple.vue.5d0f839d.js","assets/omniChatStore.ec95fb81.css","assets/string.61e11a30.js","assets/tables.1bcb1140.js","assets/TableCard.c9a1cf41.js","assets/PhKey.vue.23f3a465.js","assets/PhPencil.vue.feb383e2.js","assets/vue-flow-core.6cb99d32.js","assets/Card.fc77085c.js","assets/TableCard.529112b9.css","assets/TablesTabs.vue_vue_type_script_setup_true_lang.cf7e34c5.js","assets/useTables.18fc3efd.js","assets/index.c7a996a6.js"]),meta:{title:"Tables - Abstra Console"}},{path:"tasks",name:"tasks",component:()=>N(()=>import("./Tasks.c311b05f.js"),["assets/Tasks.c311b05f.js","assets/jwt-decode.esm.54a1ea22.js","assets/jwt-decode.9f7a5511.css","assets/AbstraButton.vue_vue_type_script_setup_true_lang.aefce2d3.js","assets/PhCopy.vue.d116ddfb.js","assets/tasksController.f3adf725.js","assets/contracts.generated.aefe8d0a.js","assets/record.e83a2eb2.js","assets/linters.a0f2aa84.js","assets/asyncComputed.47aec2b5.js","assets/polling.b5a32c22.js","assets/string.61e11a30.js","assets/metadata.0098e20c.js","assets/PhUserList.vue.e0b8c21b.js","assets/PhWebhooksLogo.vue.d164db1e.js","assets/ant-design.42419021.js","assets/dayjs.7f71c60a.js","assets/build.45b511b6.js","assets/project.1b8374f4.js","assets/tables.1bcb1140.js","assets/index.c7a996a6.js"]),meta:{title:"Tasks - Abstra Console"}},{path:"sql",name:"sql",component:()=>N(()=>import("./Sql.c070dd2c.js"),["assets/Sql.c070dd2c.js","assets/AbstraButton.vue_vue_type_script_setup_true_lang.aefce2d3.js","assets/jwt-decode.esm.54a1ea22.js","assets/jwt-decode.9f7a5511.css","assets/PhClockCounterClockwise.vue.854c3cb5.js","assets/PhDatabase.vue.a94d95f6.js","assets/PhDownloadSimple.vue.e88f64f1.js","assets/PhKey.vue.23f3a465.js","assets/toggleHighContrast.9535bf54.js","assets/toggleHighContrast.30d77c87.css","assets/TablesTabs.vue_vue_type_script_setup_true_lang.cf7e34c5.js","assets/Card.fc77085c.js","assets/project.1b8374f4.js","assets/record.e83a2eb2.js","assets/tables.1bcb1140.js","assets/string.61e11a30.js","assets/useTables.18fc3efd.js","assets/index.c7a996a6.js","assets/Sql.90e6e2ba.css"]),meta:{title:"SQL Editor - Abstra Console"}},{path:"tables-diagram",name:"tables-diagram",component:()=>N(()=>import("./TablesDiagram.d633acaf.js"),["assets/TablesDiagram.d633acaf.js","assets/vue-flow-background.af096866.js","assets/jwt-decode.esm.54a1ea22.js","assets/jwt-decode.9f7a5511.css","assets/vue-flow-core.6cb99d32.js","assets/TableCard.c9a1cf41.js","assets/AbstraButton.vue_vue_type_script_setup_true_lang.aefce2d3.js","assets/PhKey.vue.23f3a465.js","assets/PhPencil.vue.feb383e2.js","assets/Card.fc77085c.js","assets/TableCard.529112b9.css","assets/TablesTabs.vue_vue_type_script_setup_true_lang.cf7e34c5.js","assets/useTables.18fc3efd.js","assets/tables.1bcb1140.js","assets/record.e83a2eb2.js","assets/string.61e11a30.js","assets/index.c7a996a6.js","assets/TablesDiagram.a588e7ff.css"]),meta:{title:"Tables Diagram - Abstra Console"}},{path:"api-keys",name:"api-keys",component:()=>N(()=>import("./ApiKeys.3c1e70dc.js"),["assets/ApiKeys.3c1e70dc.js","assets/CrudView.cc6aeaf0.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.689d8ce7.js","assets/constants.d569f33d.js","assets/jwt-decode.esm.54a1ea22.js","assets/jwt-decode.9f7a5511.css","assets/url.f5664225.js","assets/PhDotsThreeVertical.vue.5e8ae2a9.js","assets/index.966ac1b9.js","assets/CrudView.e24590ae.css","assets/asyncComputed.47aec2b5.js","assets/apiKey.403049eb.js","assets/member.2260c37e.js","assets/project.1b8374f4.js","assets/record.e83a2eb2.js","assets/tables.1bcb1140.js","assets/string.61e11a30.js","assets/index.c7a996a6.js"]),meta:{title:"API Keys - Abstra Console"}},{path:"logs",name:"logs",component:()=>N(()=>import("./Logs.7d1acf32.js"),["assets/Logs.7d1acf32.js","assets/jwt-decode.esm.54a1ea22.js","assets/jwt-decode.9f7a5511.css","assets/LogsController.0eb2eb30.js","assets/ant-design.42419021.js","assets/string.61e11a30.js","assets/PhCopy.vue.d116ddfb.js","assets/index.966ac1b9.js","assets/build.45b511b6.js","assets/tables.1bcb1140.js","assets/record.e83a2eb2.js","assets/repository.3a331f0f.js","assets/LoadingOutlined.66639b08.js","assets/polling.b5a32c22.js","assets/LogsController.fb0d96c2.css","assets/AbstraButton.vue_vue_type_script_setup_true_lang.aefce2d3.js","assets/datetime.82608dfb.js","assets/dayjs.7f71c60a.js","assets/index.c7a996a6.js"]),meta:{title:"Logs - Abstra Console"}},{path:"settings",name:"project-settings",component:()=>N(()=>import("./ProjectSettings.d065c292.js"),["assets/ProjectSettings.d065c292.js","assets/asyncComputed.47aec2b5.js","assets/jwt-decode.esm.54a1ea22.js","assets/jwt-decode.9f7a5511.css","assets/project.1b8374f4.js","assets/record.e83a2eb2.js","assets/tables.1bcb1140.js","assets/string.61e11a30.js","assets/SaveButton.428227de.js","assets/ExclamationCircleOutlined.d0aa47da.js","assets/SaveButton.932ac6b8.css","assets/index.966ac1b9.js","assets/index.c7a996a6.js"]),meta:{title:"Project Settings - Abstra Console"}},{path:"env-vars",name:"env-vars",component:()=>N(()=>import("./EnvVars.5519b4ce.js"),["assets/EnvVars.5519b4ce.js","assets/View.vue_vue_type_script_setup_true_lang.e6563207.js","assets/fetch.1b3d01a0.js","assets/jwt-decode.esm.54a1ea22.js","assets/jwt-decode.9f7a5511.css","assets/record.e83a2eb2.js","assets/SaveButton.428227de.js","assets/ExclamationCircleOutlined.d0aa47da.js","assets/SaveButton.932ac6b8.css","assets/CrudView.cc6aeaf0.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.689d8ce7.js","assets/constants.d569f33d.js","assets/url.f5664225.js","assets/PhDotsThreeVertical.vue.5e8ae2a9.js","assets/index.966ac1b9.js","assets/CrudView.e24590ae.css","assets/asyncComputed.47aec2b5.js","assets/omniChatStore.dd7a1c46.js","assets/uuid.5b8ba8af.js","assets/PhCopySimple.vue.5d0f839d.js","assets/omniChatStore.ec95fb81.css","assets/PhPencil.vue.feb383e2.js","assets/useCodebaseEvents.276cc8f0.js","assets/contracts.generated.aefe8d0a.js","assets/index.d53182ed.js","assets/index.c7a996a6.js"]),meta:{title:"Environment Variables - Abstra Console"}},{path:"files",name:"files",component:()=>N(()=>import("./Files.6ea18d46.js"),["assets/Files.6ea18d46.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.689d8ce7.js","assets/constants.d569f33d.js","assets/jwt-decode.esm.54a1ea22.js","assets/jwt-decode.9f7a5511.css","assets/asyncComputed.47aec2b5.js","assets/string.61e11a30.js","assets/files.8b58ee7e.js","assets/PhFolderPlus.vue.21d377a3.js","assets/AbstraButton.vue_vue_type_script_setup_true_lang.aefce2d3.js","assets/ScrollArea.vue_vue_type_script_setup_true_lang.6d724b05.js","assets/Breadcrumb.5c786c09.js","assets/UploadOutlined.9aa845de.js","assets/tables.1bcb1140.js","assets/record.e83a2eb2.js","assets/Card.fc77085c.js","assets/index.c7a996a6.js","assets/Files.d0e8d2ff.css"]),meta:{title:"Files - Abstra Console"}},{path:"access-control",name:"access-control",component:()=>N(()=>import("./View.dd7ba25a.js"),["assets/View.dd7ba25a.js","assets/asyncComputed.47aec2b5.js","assets/jwt-decode.esm.54a1ea22.js","assets/jwt-decode.9f7a5511.css","assets/index.966ac1b9.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.689d8ce7.js","assets/constants.d569f33d.js","assets/CrudView.cc6aeaf0.js","assets/url.f5664225.js","assets/PhDotsThreeVertical.vue.5e8ae2a9.js","assets/CrudView.e24590ae.css","assets/PhPencil.vue.feb383e2.js","assets/repository.66c7567c.js","assets/fetch.1b3d01a0.js","assets/record.e83a2eb2.js","assets/ant-design.42419021.js","assets/Card.fc77085c.js","assets/index.c7a996a6.js"]),meta:{title:"Access Control - Abstra Console"}}]},{path:"/projects/:projectId/tables/:tableId",name:"tableEditor",component:()=>N(()=>import("./TableEditor.1bc47a95.js"),["assets/TableEditor.1bc47a95.js","assets/AbstraButton.vue_vue_type_script_setup_true_lang.aefce2d3.js","assets/jwt-decode.esm.54a1ea22.js","assets/jwt-decode.9f7a5511.css","assets/BaseLayout.72a6c8f2.js","assets/BaseLayout.e1744dcc.css","assets/omniChatStore.dd7a1c46.js","assets/record.e83a2eb2.js","assets/uuid.5b8ba8af.js","assets/PhCopySimple.vue.5d0f839d.js","assets/omniChatStore.ec95fb81.css","assets/asyncComputed.47aec2b5.js","assets/PhSparkle.vue.b6712d34.js","assets/organization.668d1b58.js","assets/project.1b8374f4.js","assets/tables.1bcb1140.js","assets/string.61e11a30.js","assets/folder.13d3acac.js","assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.3ca66327.js","assets/OmniChat.73d9f6bb.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.28bc9fc9.js","assets/Logo.65e0b37c.js","assets/Logo.b7d81119.css","assets/ant-design.42419021.js","assets/files.8b58ee7e.js","assets/PhClockCounterClockwise.vue.854c3cb5.js","assets/LoadingOutlined.66639b08.js","assets/PhDatabase.vue.a94d95f6.js","assets/index.c8a56795.js","assets/Card.fc77085c.js","assets/index.d53182ed.js","assets/OmniChat.a21fec40.css","assets/ContentLayout.0db8d7fb.js","assets/ContentLayout.cdae7d24.css","assets/PhArrowSquareOut.vue.2ddfc219.js","assets/useTables.18fc3efd.js","assets/PhGear.vue.363dd83c.js","assets/PhWarningCircle.vue.2087be7d.js","assets/index.966ac1b9.js","assets/index.e71a5f84.js","assets/Breadcrumb.5c786c09.js","assets/index.482df04a.js","assets/index.c7a996a6.js","assets/TableEditor.5853a363.css"]),meta:{title:"Tables - Abstra Console"}},{path:"/projects/:projectId/web-editor",name:"web-editor",component:()=>N(()=>import("./WebEditor.83f2a960.js"),["assets/WebEditor.83f2a960.js","assets/jwt-decode.esm.54a1ea22.js","assets/jwt-decode.9f7a5511.css","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.28bc9fc9.js","assets/Logo.65e0b37c.js","assets/Logo.b7d81119.css","assets/BaseLayout.72a6c8f2.js","assets/BaseLayout.e1744dcc.css","assets/fetch.1b3d01a0.js","assets/project.1b8374f4.js","assets/record.e83a2eb2.js","assets/tables.1bcb1140.js","assets/string.61e11a30.js","assets/index.c7a996a6.js","assets/WebEditor.c2e271d1.css"]),meta:{title:"Web Editor - Abstra Console"}},{path:"/:pathMatch(.*)*",name:"NotFound",redirect:{name:"organizations"},meta:{title:"Home - Abstra Console"}}],scrollBehavior(e){if(e.hash)return{el:e.hash}}});ft.beforeEach(async(e,t)=>{if(yn(e,t),e.meta.public)return;if(!de.getAuthor()){await ft.push({name:"login",query:{...e.query,redirect:window.location.origin+e.path,"prev-redirect":e.query.redirect}});return}Qo.trackPageView(),De.boot()});export{qe as A,Ke as B,Le as C,qn as D,fe as E,wo as I,Ze as R,ze as T,na as a,oa as b,aa as c,ia as d,la as e,Po as f,ra as g,We as h,Je as i,sa as j,be as k,de as l,Qo as m,Jo as n,De as o,Yo as p,ft as r};
18
+ //# sourceMappingURL=router.4dfadf5d.js.map
@@ -0,0 +1,2 @@
1
+ import{L as d}from"./jwt-decode.esm.54a1ea22.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="d1660f26-d44a-4823-87b8-6aba260804c3",e._sentryDebugIdIdentifier="sentry-dbid-d1660f26-d44a-4823-87b8-6aba260804c3")}catch{}})();function p(e){return d.string().email().safeParse(e).success}function w(e){return e.charAt(0).toUpperCase()+e.slice(1)}function h(e,r,n=!1,a=!0,s=!1,t=!0){const o=(a?e.toLocaleLowerCase():e).normalize("NFD").replace(/[\u0300-\u036f]/g,""),i=`a-zA-Z0-9${s?"/":""}${t?"-":""}`,c=new RegExp(`[^${i}]`,"g"),l=o.replace(c,"_"),f=n?l:l.replace(/_+/g,"_");return r?f:f.replace(/_$/,"")}function b(e){var t;const n=e.toLocaleLowerCase().trim().normalize("NFD").replace(/[\u0300-\u036f]/g,""),a=/[a-z0-9]+/g,s=n.match(a);return(t=s==null?void 0:s.join("-"))!=null?t:""}function m(e,r){if(e.length===0||r.length===0)return!1;const n=e.toLowerCase(),a=r.toLowerCase();return n.split("").reduce((t,u)=>{var i;if(t===!1)return!1;const o=(i=t[t.length-1])!=null?i:null;if(o===null){const c=a.indexOf(u);return c===-1?!1:[c]}else{const l=a.slice(o+1).indexOf(u);return l===-1?!1:[...t,o+1+l]}},[])}export{h as a,w as c,m as f,p as i,b as n};
2
+ //# sourceMappingURL=string.61e11a30.js.map
@@ -1,2 +1,2 @@
1
- var j=Object.defineProperty;var w=(s,e,t)=>e in s?j(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var l=(s,e,t)=>(w(s,typeof e!="symbol"?e+"":e,t),t);import{h as n}from"./router.8fd5b2ad.js";import{E as f}from"./record.4ffc477c.js";import{a as g}from"./string.2ed1cde3.js";import{L as o}from"./jwt-decode.esm.7f2ef0df.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="ee71a5d8-f0f5-4f36-b3f6-7734ee4a67d2",s._sentryDebugIdIdentifier="sentry-dbid-ee71a5d8-f0f5-4f36-b3f6-7734ee4a67d2")}catch{}})();o.object({name:o.string().optional(),unique:o.boolean().optional(),nullable:o.boolean().optional(),type:o.object({newType:o.string(),using:o.string()}).optional(),default:o.string().optional(),foreignKey:o.object({columnId:o.string()}).nullish().optional()});const $={boolean:["boolean","bool"],int:["int","integer","int4"],varchar:["varchar","character varying"],json:["json"],jsonb:["jsonb"],date:["date"],timestamp:["timestamp","timestamp with time zone","timestamptz"],uuid:["uuid"],real:["real","float4","float8","double precision"],numeric:["numeric","decimal"],text:["text"],bigint:["bigint","int8"],smallint:["smallint","int2"]},T=s=>{for(const e of C)if($[e].includes(s))return e;throw new Error(`Unknown type: ${s}`)};class D{async create(e){return n.post(`projects/${e.projectId}/tables/${e.tableId}/columns`,e)}async delete(e){return n.delete(`projects/${e.projectId}/tables/${e.tableId}/columns/${e.id}`)}async update(e,t){return n.patch(`projects/${e.projectId}/tables/${e.tableId}/columns/${e.id}`,t)}async getById(e){return n.get(`projects/${e.projectId}/columns/${e.id}`)}}const m=new D,u=class{constructor(e){l(this,"record");this.record=f.from(e)}static async create(e,t,r,i,c,h,y,I){const b=await m.create({name:e,type:t,default:r,nullable:i,unique:c,tableId:h,projectId:y,foreignKey:I});return"error"in b?b:new u(b)}async update(e){const t={...this.record.changes,type:this.record.changes.type&&e?{newType:this.record.changes.type,using:e}:void 0};return Object.keys(t).length===0||!this.id?{success:!0,error:""}:(await m.update({id:this.id,tableId:this.tableId,projectId:this.projectId},t),{success:!0,error:""})}toDTO(){return this.record.state}get id(){return this.record.get("id")}get tableId(){return this.record.get("tableId")}get projectId(){return this.record.get("projectId")}get protected(){return this.record.get("protected")}get type(){return T(this.record.get("type"))}set type(e){this.record.set("type",e)}get name(){return this.record.get("name")}set name(e){this.record.set("name",e)}get nullable(){return this.record.get("nullable")}set nullable(e){this.record.set("nullable",e)}get unique(){return this.record.get("unique")}set unique(e){this.record.set("unique",e)}get primaryKey(){return this.record.get("primaryKey")}get default(){var e;return(e=this.record.get("default"))==null?void 0:e.split("::")[0]}set default(e){this.record.set("default",e)}get foreignKey(){return this.record.get("foreignKey")}set foreignKey(e){this.record.set("foreignKey",e)}async delete(){this.id&&await m.delete({id:this.id,tableId:this.tableId,projectId:this.projectId})}};let d=u;l(d,"fromDTO",e=>new u(e)),l(d,"fromID",async(e,t)=>{const r=await m.getById({projectId:e,id:t});return u.fromDTO(r.column)});const C=["varchar","int","boolean","json","jsonb","date","timestamp","uuid","real","numeric","text","bigint","smallint"],B={varchar:"'DEFAULT_VALUE'",int:"",boolean:"false",json:"'{}'::json",jsonb:"'{}'::jsonb",date:"now()",timestamp:"now()",uuid:"gen_random_uuid()",real:"0.0",numeric:"0",text:"'DEFAULT_VALUE'",bigint:"0",smallint:"0"};class R{async list(e){return n.get(`projects/${e}/tables`)}async create(e,t){return await n.post(`projects/${e.projectId}/tables`,t)}async get(e){return n.get(`projects/${e.projectId}/tables/${e.tableId}`)}async delete(e){return n.delete(`projects/${e.projectId}/tables/${e.tableId}`)}async selectRows(e){return n.get(`projects/${e.projectId}/tables/${e.tableId}/rows`,{limit:e.limit.toString(),offset:e.offset.toString(),search:e.search,where:JSON.stringify(e.where),orderBy:JSON.stringify(e.orderBy)})}async update(e,t){return n.patch(`projects/${e.projectId}/tables/${e.tableId}`,t)}async insertRow(e,t){return n.post(`projects/${e.projectId}/tables/${e.tableId}/rows`,t)}async updateRow(e,t){return n.patch(`projects/${e.projectId}/tables/${e.tableId}/rows/${e.rowId}`,t)}async deleteRow(e){return n.delete(`projects/${e.projectId}/tables/${e.tableId}/rows/${e.rowId}`)}async getByColumnID(e){return n.get(`projects/${e.projectId}/columns/${e.columnId}`)}}const a=new R;class p{constructor(e,t=null){l(this,"record");l(this,"columns");this.record=f.from(e),this.columns=t}static async list(e){return(await a.list(e)).map(r=>new p(r))}static async fromColumnId(e,t){const r=await a.getByColumnID({projectId:e,columnId:t});return p.get(e,r.table.id)}static async create(e,t,r){const i=g(t,!1),c=await a.create({projectId:e},{name:i,id:r});return new p(c.table,c.columns.map(y=>d.fromDTO(y)))}static async get(e,t){const r=await a.get({projectId:e,tableId:t}),i=r.table,c=r.columns.map(h=>d.fromDTO({...h,projectId:i.projectId}));return new p(i,c)}async delete(e,t){return a.delete({projectId:e,tableId:t})}fixTraillingName(){this.name=g(this.name,!1)}async save(){if(Object.keys(this.record.changes).length!==0){this.record.changes.name&&this.fixTraillingName();try{await a.update({id:this.id,tableId:this.id,projectId:this.projectId},this.record.changes)}finally{this.record.resetChanges()}}}resetChanges(){this.record.resetChanges()}onUpdate(e){this.record.pubsub.subscribe("update",e)}hasChanges(){return this.record.hasChanges()}hasChangesDeep(e){return this.record.hasChangesDeep(e)&&g(this.name,!1)!==this.record.initialState.name}getColumns(){var e;return(e=this.columns)!=null?e:[]}getUnprotectedColumns(){var e,t;return(t=(e=this.columns)==null?void 0:e.filter(r=>!r.protected).map(r=>r.toDTO()))!=null?t:[]}get id(){return this.record.get("id")}get name(){return this.record.get("name")}set name(e){const t=g(e,!0);this.record.set("name",t)}get projectId(){return this.record.get("projectId")}async addColumn(e){const t=await d.create(e.name,e.type,e.default,e.nullable,e.unique,this.id,this.projectId,e.foreignKey);return"error"in t?{success:!1,error:t.error}:this.columns?(this.columns.push(t),{success:!0,error:""}):(this.columns=[t],{success:!0,error:""})}getColumn(e){var t;return(t=this.columns)==null?void 0:t.find(r=>r.id&&r.id===e)}async select(e={},t,r,i,c){return a.selectRows({name:this.name,where:e,tableId:this.id,projectId:this.projectId,limit:r,offset:t,search:i,orderBy:c})}async insertRow(e){return a.insertRow({tableId:this.id,projectId:this.projectId},e)}async updateRow(e,t){return a.updateRow({tableId:this.id,projectId:this.projectId,rowId:e},t)}async deleteRow(e){return a.deleteRow({tableId:this.id,projectId:this.projectId,rowId:e})}}export{p as T,B as d,C as p};
2
- //# sourceMappingURL=tables.be1c51f8.js.map
1
+ var j=Object.defineProperty;var w=(s,e,t)=>e in s?j(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var a=(s,e,t)=>(w(s,typeof e!="symbol"?e+"":e,t),t);import{k as n}from"./router.4dfadf5d.js";import{E as y}from"./record.e83a2eb2.js";import{a as h}from"./string.61e11a30.js";import{L as o}from"./jwt-decode.esm.54a1ea22.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="d131df7f-dda2-49d5-a72d-fdb0e1056d41",s._sentryDebugIdIdentifier="sentry-dbid-d131df7f-dda2-49d5-a72d-fdb0e1056d41")}catch{}})();o.object({name:o.string().optional(),unique:o.boolean().optional(),nullable:o.boolean().optional(),type:o.object({newType:o.string(),using:o.string()}).optional(),default:o.string().optional(),foreignKey:o.object({columnId:o.string()}).nullish().optional()});const $={boolean:["boolean","bool"],int:["int","integer","int4"],varchar:["varchar","character varying"],json:["json"],jsonb:["jsonb"],date:["date"],timestamp:["timestamp","timestamp with time zone","timestamptz"],uuid:["uuid"],real:["real","float4","float8","double precision"],numeric:["numeric","decimal"],text:["text"],bigint:["bigint","int8"],smallint:["smallint","int2"]},T=s=>{for(const e of C)if($[e].includes(s))return e;throw new Error(`Unknown type: ${s}`)};class D{async create(e){return n.post(`projects/${e.projectId}/tables/${e.tableId}/columns`,e)}async delete(e){return n.delete(`projects/${e.projectId}/tables/${e.tableId}/columns/${e.id}`)}async update(e,t){return n.patch(`projects/${e.projectId}/tables/${e.tableId}/columns/${e.id}`,t)}async getById(e){return n.get(`projects/${e.projectId}/columns/${e.id}`)}}const g=new D,p=class{constructor(e){a(this,"record");this.record=y.from(e)}static async create(e,t,r,d,l,b,f,I){const m=await g.create({name:e,type:t,default:r,nullable:d,unique:l,tableId:b,projectId:f,foreignKey:I});return"error"in m?m:new p(m)}async update(e){const t={...this.record.changes,type:this.record.changes.type&&e?{newType:this.record.changes.type,using:e}:void 0};return Object.keys(t).length===0||!this.id?{success:!0,error:""}:(await g.update({id:this.id,tableId:this.tableId,projectId:this.projectId},t),{success:!0,error:""})}toDTO(){return this.record.state}get id(){return this.record.get("id")}get tableId(){return this.record.get("tableId")}get projectId(){return this.record.get("projectId")}get protected(){return this.record.get("protected")}get type(){return T(this.record.get("type"))}set type(e){this.record.set("type",e)}get name(){return this.record.get("name")}set name(e){this.record.set("name",e)}get nullable(){return this.record.get("nullable")}set nullable(e){this.record.set("nullable",e)}get unique(){return this.record.get("unique")}set unique(e){this.record.set("unique",e)}get primaryKey(){return this.record.get("primaryKey")}get default(){var e;return(e=this.record.get("default"))==null?void 0:e.split("::")[0]}set default(e){this.record.set("default",e)}get foreignKey(){return this.record.get("foreignKey")}set foreignKey(e){this.record.set("foreignKey",e)}async delete(){this.id&&await g.delete({id:this.id,tableId:this.tableId,projectId:this.projectId})}};let c=p;a(c,"fromDTO",e=>new p(e)),a(c,"fromID",async(e,t)=>{const r=await g.getById({projectId:e,id:t});return p.fromDTO(r.column)});const C=["varchar","int","boolean","json","jsonb","date","timestamp","uuid","real","numeric","text","bigint","smallint"],B={varchar:"'DEFAULT_VALUE'",int:"",boolean:"false",json:"'{}'::json",jsonb:"'{}'::jsonb",date:"now()",timestamp:"now()",uuid:"gen_random_uuid()",real:"0.0",numeric:"0",text:"'DEFAULT_VALUE'",bigint:"0",smallint:"0"};class R{async list(e){return n.get(`projects/${e}/tables`)}async create(e,t){return await n.post(`projects/${e.projectId}/tables`,t)}async get(e){return n.get(`projects/${e.projectId}/tables/${e.tableId}`)}async delete(e){return n.delete(`projects/${e.projectId}/tables/${e.tableId}`)}async selectRows(e){return n.get(`projects/${e.projectId}/tables/${e.tableId}/rows`,{limit:e.limit.toString(),offset:e.offset.toString(),search:e.search,where:JSON.stringify(e.where),orderBy:JSON.stringify(e.orderBy)})}async update(e,t){return n.patch(`projects/${e.projectId}/tables/${e.tableId}`,t)}async insertRow(e,t){return n.post(`projects/${e.projectId}/tables/${e.tableId}/rows`,t)}async updateRow(e,t){return n.patch(`projects/${e.projectId}/tables/${e.tableId}/rows/${e.rowId}`,t)}async deleteRow(e){return n.delete(`projects/${e.projectId}/tables/${e.tableId}/rows/${e.rowId}`)}async getByColumnID(e){return n.get(`projects/${e.projectId}/columns/${e.columnId}`)}}const i=new R;class u{constructor(e,t){a(this,"record");a(this,"columns");this.projectId=e,this.record=y.from(t),this.columns=t.columns.map(r=>c.fromDTO({...r,projectId:t.projectId}))}static async list(e){return(await i.list(e)).map(r=>new u(e,r))}static async fromColumnId(e,t){const r=await i.getByColumnID({projectId:e,columnId:t});return u.get(e,r.table.id)}static async create(e,t,r){const d=h(t,!1),l=await i.create({projectId:e},{name:d,id:r});return new u(e,l)}static async get(e,t){const r=await i.get({projectId:e,tableId:t});return new u(e,{...r.table,columns:r.columns})}async delete(e,t){return i.delete({projectId:e,tableId:t})}fixTraillingName(){this.name=h(this.name,!1)}async save(){if(Object.keys(this.record.changes).length!==0){this.record.changes.name&&this.fixTraillingName();try{await i.update({id:this.id,tableId:this.id,projectId:this.projectId},this.record.changes)}finally{this.record.resetChanges()}}}resetChanges(){this.record.resetChanges()}onUpdate(e){this.record.pubsub.subscribe("update",e)}hasChanges(){return this.record.hasChanges()}hasChangesDeep(e){return this.record.hasChangesDeep(e)&&h(this.name,!1)!==this.record.initialState.name}getColumns(){var e;return(e=this.columns)!=null?e:[]}getUnprotectedColumns(){var e,t;return(t=(e=this.columns)==null?void 0:e.filter(r=>!r.protected).map(r=>r.toDTO()))!=null?t:[]}get id(){return this.record.get("id")}get name(){return this.record.get("name")}set name(e){const t=h(e,!0);this.record.set("name",t)}async addColumn(e){const t=await c.create(e.name,e.type,e.default,e.nullable,e.unique,this.id,this.projectId,e.foreignKey);return"error"in t?{success:!1,error:t.error}:this.columns?(this.columns.push(t),{success:!0,error:""}):(this.columns=[t],{success:!0,error:""})}getColumn(e){var t;return(t=this.columns)==null?void 0:t.find(r=>r.id&&r.id===e)}async select(e={},t,r,d,l){return i.selectRows({name:this.name,where:e,tableId:this.id,projectId:this.projectId,limit:r,offset:t,search:d,orderBy:l})}async insertRow(e){return i.insertRow({tableId:this.id,projectId:this.projectId},e)}async updateRow(e,t){return i.updateRow({tableId:this.id,projectId:this.projectId,rowId:e},t)}async deleteRow(e){return i.deleteRow({tableId:this.id,projectId:this.projectId,rowId:e})}}export{c as C,u as T,B as d,C as p};
2
+ //# sourceMappingURL=tables.1bcb1140.js.map