abstra 3.23.5__py3-none-any.whl → 3.23.7__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 (224) hide show
  1. {abstra-3.23.5.dist-info → abstra-3.23.7.dist-info}/METADATA +1 -1
  2. {abstra-3.23.5.dist-info → abstra-3.23.7.dist-info}/RECORD +167 -167
  3. abstra_internals/contracts_generated.py +3791 -3236
  4. abstra_internals/interface/sdk/forms/deprecated/widgets/file_utils.py +1 -1
  5. abstra_statics/dist/assets/AbstraButton.vue_vue_type_script_setup_true_lang.9812dba9.js +2 -0
  6. abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.0c707a8b.js +2 -0
  7. abstra_statics/dist/assets/ApiKeys.902caf82.js +2 -0
  8. abstra_statics/dist/assets/App.f0468c7f.js +2 -0
  9. abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.864018b5.js +2 -0
  10. abstra_statics/dist/assets/BaseLayout.8bd18c5f.js +2 -0
  11. abstra_statics/dist/assets/{Billing.920e2b19.js → Billing.877a4614.js} +2 -2
  12. abstra_statics/dist/assets/{Breadcrumb.2d9d636f.js → Breadcrumb.f312111a.js} +2 -2
  13. abstra_statics/dist/assets/{Builds.11e86dae.js → Builds.a2c45c39.js} +2 -2
  14. abstra_statics/dist/assets/{Card.0b4293e1.js → Card.5f504e7b.js} +2 -2
  15. abstra_statics/dist/assets/{CircularLoading.e2f7dd80.js → CircularLoading.6f511e29.js} +2 -2
  16. abstra_statics/dist/assets/{CloseCircleOutlined.196a309a.js → CloseCircleOutlined.2815d641.js} +2 -2
  17. abstra_statics/dist/assets/{ConnectorsView.5cef13aa.css → ConnectorsView.17764dde.css} +1 -1
  18. abstra_statics/dist/assets/ConnectorsView.4e22242f.js +2 -0
  19. abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.17b546d4.js +2 -0
  20. abstra_statics/dist/assets/{ContentLayout.69b8ab09.js → ContentLayout.c7733a0e.js} +2 -2
  21. abstra_statics/dist/assets/{CrudView.56ebce1a.js → CrudView.5a642b48.js} +2 -2
  22. abstra_statics/dist/assets/{DocsButton.vue_vue_type_script_setup_true_lang.4eb7d335.js → DocsButton.vue_vue_type_script_setup_true_lang.2c5aae83.js} +2 -2
  23. abstra_statics/dist/assets/{EditorLogin.a10e3a50.js → EditorLogin.d2224782.js} +2 -2
  24. abstra_statics/dist/assets/{EditorsView.1925d1b5.js → EditorsView.5e769180.js} +2 -2
  25. abstra_statics/dist/assets/EnvVars.74e357b2.js +2 -0
  26. abstra_statics/dist/assets/Error.dd899e38.js +2 -0
  27. abstra_statics/dist/assets/ExclamationCircleOutlined.9b25ffda.js +2 -0
  28. abstra_statics/dist/assets/{Files.e978e721.js → Files.d9621f31.js} +2 -2
  29. abstra_statics/dist/assets/Form.9eebd960.js +2 -0
  30. abstra_statics/dist/assets/FormRunner.1c6a88dd.js +2 -0
  31. abstra_statics/dist/assets/{FormRunner.714ce2c1.css → FormRunner.46f6426d.css} +1 -1
  32. abstra_statics/dist/assets/Home.9531e545.js +2 -0
  33. abstra_statics/dist/assets/Home.b12bb81a.js +2 -0
  34. abstra_statics/dist/assets/{Live.cf58dd01.js → Live.a691b0eb.js} +2 -2
  35. abstra_statics/dist/assets/LoadingContainer.c40ae513.js +2 -0
  36. abstra_statics/dist/assets/LoadingOutlined.b607eff2.js +2 -0
  37. abstra_statics/dist/assets/Login.5f104bb1.js +2 -0
  38. abstra_statics/dist/assets/{Login.605b23e8.js → Login.f96858b0.js} +2 -2
  39. abstra_statics/dist/assets/Login.vue_vue_type_script_setup_true_lang.7d56cca3.js +2 -0
  40. abstra_statics/dist/assets/Logo.a34929e1.js +2 -0
  41. abstra_statics/dist/assets/{Logs.e15923a0.js → Logs.8426d360.js} +2 -2
  42. abstra_statics/dist/assets/{LogsController.35cad159.js → LogsController.318117fd.js} +2 -2
  43. abstra_statics/dist/assets/Main.7030ea1d.js +2 -0
  44. abstra_statics/dist/assets/MockForm.f8600bec.js +2 -0
  45. abstra_statics/dist/assets/Navbar.a1055174.js +2 -0
  46. abstra_statics/dist/assets/NewEditor.6b2cb8e6.js +8 -0
  47. abstra_statics/dist/assets/{NewEditor.b7bcb815.css → NewEditor.d3300cf0.css} +1 -1
  48. abstra_statics/dist/assets/OidcLoginCallback.445dd392.js +2 -0
  49. abstra_statics/dist/assets/OidcLogoutCallback.485fb0b9.js +2 -0
  50. abstra_statics/dist/assets/OmniChat.097bec71.js +6 -0
  51. abstra_statics/dist/assets/{OmniChat.10d00525.css → OmniChat.7660057c.css} +1 -1
  52. abstra_statics/dist/assets/{OnboardingView.546afa14.js → OnboardingView.c9a3343e.js} +2 -2
  53. abstra_statics/dist/assets/{Organization.a7309bfd.js → Organization.0833b7fe.js} +2 -2
  54. abstra_statics/dist/assets/Organizations.1c35b6b8.js +2 -0
  55. abstra_statics/dist/assets/{PhArrowCounterClockwise.vue.2706c012.js → PhArrowCounterClockwise.vue.aaa06bc0.js} +2 -2
  56. abstra_statics/dist/assets/{PhArrowSquareOut.vue.06e1e087.js → PhArrowSquareOut.vue.ee4af292.js} +2 -2
  57. abstra_statics/dist/assets/{PhBookBookmark.vue.b9569168.js → PhBookBookmark.vue.681c5036.js} +2 -2
  58. abstra_statics/dist/assets/{PhChats.vue.bb8ced1d.js → PhChats.vue.d61c3615.js} +2 -2
  59. abstra_statics/dist/assets/{PhClockCounterClockwise.vue.4252e6be.js → PhClockCounterClockwise.vue.0457e9b2.js} +2 -2
  60. abstra_statics/dist/assets/{PhCopy.vue.59c3a353.js → PhCopy.vue.391b0ef7.js} +2 -2
  61. abstra_statics/dist/assets/PhCopySimple.vue.e887b43c.js +2 -0
  62. abstra_statics/dist/assets/{PhCube.vue.7728ef5a.js → PhCube.vue.d070a184.js} +2 -2
  63. abstra_statics/dist/assets/{PhDotsThreeVertical.vue.275748da.js → PhDotsThreeVertical.vue.f4b60771.js} +2 -2
  64. abstra_statics/dist/assets/{PhDownloadSimple.vue.ed1fb44c.js → PhDownloadSimple.vue.3444d06b.js} +2 -2
  65. abstra_statics/dist/assets/{PhFolderPlus.vue.aa7bc872.js → PhFolderPlus.vue.d5788203.js} +2 -2
  66. abstra_statics/dist/assets/{PhGear.vue.ab14d56a.js → PhGear.vue.e2b120bb.js} +2 -2
  67. abstra_statics/dist/assets/{PhKey.vue.c0768b68.js → PhKey.vue.cf1e08ca.js} +2 -2
  68. abstra_statics/dist/assets/{PhPencil.vue.aaf907d1.js → PhPencil.vue.20f1b3c4.js} +2 -2
  69. abstra_statics/dist/assets/{PhPencilSimple.vue.2580bcf9.js → PhPencilSimple.vue.ec2125f5.js} +2 -2
  70. abstra_statics/dist/assets/{PhPencilSimpleLine.vue.2c2058ce.js → PhPencilSimpleLine.vue.22e75a5a.js} +2 -2
  71. abstra_statics/dist/assets/{PhRocket.vue.67935a85.js → PhRocket.vue.27c6f935.js} +2 -2
  72. abstra_statics/dist/assets/{PhSignOut.vue.87084f39.js → PhSignOut.vue.61b63ec0.js} +2 -2
  73. abstra_statics/dist/assets/{PhSparkle.vue.707b3721.js → PhSparkle.vue.fd6a9ad7.js} +2 -2
  74. abstra_statics/dist/assets/{PhUserList.vue.907c1a2b.js → PhUserList.vue.abdd6da1.js} +2 -2
  75. abstra_statics/dist/assets/{PhUsersThree.vue.2c3539c7.js → PhUsersThree.vue.85d1a1f0.js} +2 -2
  76. abstra_statics/dist/assets/{PhWebhooksLogo.vue.1134426a.js → PhWebhooksLogo.vue.00b65b2c.js} +2 -2
  77. abstra_statics/dist/assets/{PlayerConfigProvider.bee6a260.js → PlayerConfigProvider.10f46997.js} +2 -2
  78. abstra_statics/dist/assets/{PlayerNavbar.c456a4e0.css → PlayerNavbar.77209eae.css} +1 -1
  79. abstra_statics/dist/assets/PlayerNavbar.f2f66852.js +2 -0
  80. abstra_statics/dist/assets/{Project.c5ac4ebe.js → Project.2fdca57c.js} +2 -2
  81. abstra_statics/dist/assets/ProjectLogin.7660cd84.js +2 -0
  82. abstra_statics/dist/assets/{ProjectSettings.e40cc19c.js → ProjectSettings.50027450.js} +2 -2
  83. abstra_statics/dist/assets/{ProjectsView.3df99f87.js → ProjectsView.107f5e34.js} +2 -2
  84. abstra_statics/dist/assets/{SaveButton.5a81e6f5.js → SaveButton.cd025dae.js} +2 -2
  85. abstra_statics/dist/assets/{Sidebar.f23acdbf.js → Sidebar.c3d5d187.js} +2 -2
  86. abstra_statics/dist/assets/{Sql.ea1ee70d.js → Sql.7d92acbb.js} +3 -3
  87. abstra_statics/dist/assets/Steps.b12e16c6.js +2 -0
  88. abstra_statics/dist/assets/{TableEditor.3150beb1.js → TableEditor.7b07ece4.js} +2 -2
  89. abstra_statics/dist/assets/Tables.aa6b418c.js +2 -0
  90. abstra_statics/dist/assets/{TablesDiagram.5d3625d1.js → TablesDiagram.6736c045.js} +3 -3
  91. abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.95ea10aa.js +2 -0
  92. abstra_statics/dist/assets/{Tasks.d5e7bdf2.js → Tasks.6660de00.js} +2 -2
  93. abstra_statics/dist/assets/UploadOutlined.732440a5.js +2 -0
  94. abstra_statics/dist/assets/{View.63e7c09c.js → View.283e52c1.js} +2 -2
  95. abstra_statics/dist/assets/{View.vue_vue_type_script_setup_true_lang.a36086e8.js → View.vue_vue_type_script_setup_true_lang.483e52f9.js} +2 -2
  96. abstra_statics/dist/assets/Watermark.6076ef47.js +2 -0
  97. abstra_statics/dist/assets/{WebEditor.37194274.js → WebEditor.6a012d5b.js} +2 -2
  98. abstra_statics/dist/assets/WidgetPreview.b01eed73.js +2 -0
  99. abstra_statics/dist/assets/ant-design.4302db30.js +2 -0
  100. abstra_statics/dist/assets/apiKey.1c96dd66.js +2 -0
  101. abstra_statics/dist/assets/asyncComputed.59410422.js +2 -0
  102. abstra_statics/dist/assets/{build.995e6997.js → build.656c5601.js} +2 -2
  103. abstra_statics/dist/assets/colorHelpers.2a607581.js +2 -0
  104. abstra_statics/dist/assets/{console.a07258d6.js → console.9b13e1da.js} +2 -2
  105. abstra_statics/dist/assets/constants.733c6549.js +2 -0
  106. abstra_statics/dist/assets/{cssMode.5c9f19b3.js → cssMode.6d17ca95.js} +2 -2
  107. abstra_statics/dist/assets/datetime.adbf692e.js +2 -0
  108. abstra_statics/dist/assets/dayjs.9e279491.js +2 -0
  109. abstra_statics/dist/assets/editor.7e30500a.js +2 -0
  110. abstra_statics/dist/assets/editor.main.4675b13a.js +2 -0
  111. abstra_statics/dist/assets/fetch.13b54f0f.js +2 -0
  112. abstra_statics/dist/assets/files.f66880c3.js +2 -0
  113. abstra_statics/dist/assets/{folder.777c3209.js → folder.9092348a.js} +2 -2
  114. abstra_statics/dist/assets/{freemarker2.385a198f.js → freemarker2.82f2cb8c.js} +2 -2
  115. abstra_statics/dist/assets/{handlebars.806a8b22.js → handlebars.36ec2a3c.js} +2 -2
  116. abstra_statics/dist/assets/{html.8df330b0.js → html.845da565.js} +3 -3
  117. abstra_statics/dist/assets/{htmlMode.08713341.js → htmlMode.980f76b4.js} +2 -2
  118. abstra_statics/dist/assets/{index.440bd76c.js → index.0f357aec.js} +2 -2
  119. abstra_statics/dist/assets/{index.fdbbf978.js → index.1551abd6.js} +3 -3
  120. abstra_statics/dist/assets/{index.49f6d313.js → index.1e12c884.js} +2 -2
  121. abstra_statics/dist/assets/index.4ecba4f7.js +2 -0
  122. abstra_statics/dist/assets/{index.f219d050.js → index.55d10b71.js} +2 -2
  123. abstra_statics/dist/assets/{index.11470ce1.js → index.5dbe93c3.js} +5 -5
  124. abstra_statics/dist/assets/{index.6f004291.js → index.81a2ae08.js} +2 -2
  125. abstra_statics/dist/assets/{index.cf5ef754.js → index.a2b9d34b.js} +2 -2
  126. abstra_statics/dist/assets/{index.ad15e486.js → index.b3b62f71.js} +2 -2
  127. abstra_statics/dist/assets/{javascript.7e683eb3.js → javascript.b0154182.js} +3 -3
  128. abstra_statics/dist/assets/{jsonMode.c71ca5e7.js → jsonMode.f86e9042.js} +2 -2
  129. abstra_statics/dist/assets/{jwt-decode.esm.bcf2db26.js → jwt-decode.esm.d86c27e0.js} +8 -8
  130. abstra_statics/dist/assets/linters.9ba6d5f8.js +2 -0
  131. abstra_statics/dist/assets/{liquid.c89ab4d8.js → liquid.029287f8.js} +3 -3
  132. abstra_statics/dist/assets/{member.39a2b810.js → member.3aca30ee.js} +2 -2
  133. abstra_statics/dist/assets/{metadata.77edb2ef.js → metadata.18d0a278.js} +2 -2
  134. abstra_statics/dist/assets/{omniChatStore.13045a23.js → omniChatStore.16b8f156.js} +2 -2
  135. abstra_statics/dist/assets/{organization.017d0932.js → organization.8b2c1c53.js} +2 -2
  136. abstra_statics/dist/assets/player.7f570660.js +2 -0
  137. abstra_statics/dist/assets/{plotly.min.ebdb6341.js → plotly.min.10467de2.js} +2 -2
  138. abstra_statics/dist/assets/polling.0b08b681.js +2 -0
  139. abstra_statics/dist/assets/{project.6106c0ae.js → project.33809d47.js} +2 -2
  140. abstra_statics/dist/assets/{python.fe5f6c61.js → python.ee23fd86.js} +3 -3
  141. abstra_statics/dist/assets/{razor.63a60978.js → razor.4ae6d2a2.js} +2 -2
  142. abstra_statics/dist/assets/{record.6b6d4da9.js → record.d087b37e.js} +2 -2
  143. abstra_statics/dist/assets/{redirect.b8ba406b.js → redirect.c06a7828.js} +2 -2
  144. abstra_statics/dist/assets/{repository.54d4a909.js → repository.02efcdbd.js} +2 -2
  145. abstra_statics/dist/assets/{repository.f2f5d880.js → repository.6fa74dff.js} +2 -2
  146. abstra_statics/dist/assets/router.7071f838.js +2 -0
  147. abstra_statics/dist/assets/{router.e5052323.js → router.7936fd78.js} +3 -3
  148. abstra_statics/dist/assets/{string.2f1abff3.js → string.360236ba.js} +2 -2
  149. abstra_statics/dist/assets/{tables.ecf1f359.js → tables.d580be9d.js} +2 -2
  150. abstra_statics/dist/assets/{tasksController.64f43cce.js → tasksController.b66c85ee.js} +2 -2
  151. abstra_statics/dist/assets/{toggleHighContrast.a33c9afc.js → toggleHighContrast.510bdb1d.js} +49 -49
  152. abstra_statics/dist/assets/{tsMode.bbb62deb.js → tsMode.5c0f732d.js} +2 -2
  153. abstra_statics/dist/assets/{typescript.f3be1a16.js → typescript.0643a053.js} +3 -3
  154. abstra_statics/dist/assets/url.b31d406a.js +2 -0
  155. abstra_statics/dist/assets/userStore.f2537ff3.js +2 -0
  156. abstra_statics/dist/assets/uuid.d6d43ef5.js +2 -0
  157. abstra_statics/dist/assets/{vue-flow-background.939eca5f.js → vue-flow-background.011d27ef.js} +2 -2
  158. abstra_statics/dist/assets/{vue-quill.esm-bundler.c86df351.js → vue-quill.esm-bundler.487756a5.js} +2 -2
  159. abstra_statics/dist/assets/workspaceStore.87f8dbc6.js +2 -0
  160. abstra_statics/dist/assets/{xml.96392483.js → xml.c3c548ab.js} +3 -3
  161. abstra_statics/dist/assets/{yaml.96b91a1d.js → yaml.0d909e29.js} +3 -3
  162. abstra_statics/dist/console.html +15 -15
  163. abstra_statics/dist/editor.html +11 -11
  164. abstra_statics/dist/player.html +9 -9
  165. abstra_statics/dist/assets/AbstraButton.vue_vue_type_script_setup_true_lang.ad9e23f0.js +0 -2
  166. abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.ee29465c.js +0 -2
  167. abstra_statics/dist/assets/ApiKeys.958a2342.js +0 -2
  168. abstra_statics/dist/assets/App.6c9e1d73.js +0 -2
  169. abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.46bbdba5.js +0 -2
  170. abstra_statics/dist/assets/BaseLayout.d4459d3a.js +0 -2
  171. abstra_statics/dist/assets/ConnectorsView.cda5c60f.js +0 -2
  172. abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.4d7bb007.js +0 -2
  173. abstra_statics/dist/assets/EnvVars.67eed38a.js +0 -2
  174. abstra_statics/dist/assets/Error.66a8e630.js +0 -2
  175. abstra_statics/dist/assets/ExclamationCircleOutlined.3ef65f87.js +0 -2
  176. abstra_statics/dist/assets/Form.ba1aeab0.js +0 -2
  177. abstra_statics/dist/assets/FormRunner.1a6e12cb.js +0 -2
  178. abstra_statics/dist/assets/Home.2871cae9.js +0 -2
  179. abstra_statics/dist/assets/Home.de257b98.js +0 -2
  180. abstra_statics/dist/assets/LoadingContainer.e6a98e2f.js +0 -2
  181. abstra_statics/dist/assets/LoadingOutlined.398021fd.js +0 -2
  182. abstra_statics/dist/assets/Login.604d7bbd.js +0 -2
  183. abstra_statics/dist/assets/Login.vue_vue_type_script_setup_true_lang.a8986f39.js +0 -2
  184. abstra_statics/dist/assets/Logo.0fee0801.js +0 -2
  185. abstra_statics/dist/assets/Main.17024018.js +0 -2
  186. abstra_statics/dist/assets/MockForm.603b1cbb.js +0 -2
  187. abstra_statics/dist/assets/Navbar.d4751f52.js +0 -2
  188. abstra_statics/dist/assets/NewEditor.bd4c258c.js +0 -8
  189. abstra_statics/dist/assets/OidcLoginCallback.14f293b0.js +0 -2
  190. abstra_statics/dist/assets/OidcLogoutCallback.cb05eca4.js +0 -2
  191. abstra_statics/dist/assets/OmniChat.6d6fed9c.js +0 -6
  192. abstra_statics/dist/assets/Organizations.91c269e6.js +0 -2
  193. abstra_statics/dist/assets/PhCopySimple.vue.1c5a0760.js +0 -2
  194. abstra_statics/dist/assets/PlayerNavbar.b15bb1f3.js +0 -2
  195. abstra_statics/dist/assets/ProjectLogin.2905a0d6.js +0 -2
  196. abstra_statics/dist/assets/Steps.ad9ac163.js +0 -2
  197. abstra_statics/dist/assets/Tables.ad8c6f7a.js +0 -2
  198. abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.58bcff9a.js +0 -2
  199. abstra_statics/dist/assets/UploadOutlined.5f3b92b7.js +0 -2
  200. abstra_statics/dist/assets/Watermark.a7a7af90.js +0 -2
  201. abstra_statics/dist/assets/WidgetPreview.5d662c77.js +0 -2
  202. abstra_statics/dist/assets/ant-design.9bb31d85.js +0 -2
  203. abstra_statics/dist/assets/apiKey.4f2a122c.js +0 -2
  204. abstra_statics/dist/assets/asyncComputed.06839806.js +0 -2
  205. abstra_statics/dist/assets/colorHelpers.eb706cff.js +0 -2
  206. abstra_statics/dist/assets/constants.d30e64e7.js +0 -2
  207. abstra_statics/dist/assets/datetime.49213c3c.js +0 -2
  208. abstra_statics/dist/assets/dayjs.9d20dd08.js +0 -2
  209. abstra_statics/dist/assets/editor.a151d549.js +0 -2
  210. abstra_statics/dist/assets/editor.main.f809eb34.js +0 -2
  211. abstra_statics/dist/assets/fetch.ce34efab.js +0 -2
  212. abstra_statics/dist/assets/files.5dcc78be.js +0 -2
  213. abstra_statics/dist/assets/index.15909af6.js +0 -2
  214. abstra_statics/dist/assets/index.227be58a.js +0 -2
  215. abstra_statics/dist/assets/linters.1f3c2bdc.js +0 -2
  216. abstra_statics/dist/assets/player.490b5a36.js +0 -2
  217. abstra_statics/dist/assets/polling.b53cbe3d.js +0 -2
  218. abstra_statics/dist/assets/url.79c72bde.js +0 -2
  219. abstra_statics/dist/assets/userStore.5dca7ff0.js +0 -2
  220. abstra_statics/dist/assets/uuid.3f5b8acd.js +0 -2
  221. abstra_statics/dist/assets/workspaceStore.7283625b.js +0 -2
  222. {abstra-3.23.5.dist-info → abstra-3.23.7.dist-info}/WHEEL +0 -0
  223. {abstra-3.23.5.dist-info → abstra-3.23.7.dist-info}/entry_points.txt +0 -0
  224. {abstra-3.23.5.dist-info → abstra-3.23.7.dist-info}/top_level.txt +0 -0
@@ -1,2 +0,0 @@
1
- import{O as r}from"./index.227be58a.js";import{d as l,k as i,a5 as f,f as t,b as n,u as o,o as c,g as s,A as u,da as b}from"./jwt-decode.esm.bcf2db26.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="ba0f6712-ace4-43bf-bffe-d3c640212d74",e._sentryDebugIdIdentifier="sentry-dbid-ba0f6712-ace4-43bf-bffe-d3c640212d74")}catch{}})();const p=l({__name:"OidcLoginCallback",setup(e){return i(async()=>{await new r().loginCallback()}),(a,d)=>(c(),f("div",null,[t(o(u),null,{default:n(()=>[s("You're authenticated")]),_:1}),t(o(b),null,{default:n(()=>[s(" This window should close automatically. Please close it manually if it doesn't. ")]),_:1})]))}});export{p as default};
2
- //# sourceMappingURL=OidcLoginCallback.14f293b0.js.map
@@ -1,2 +0,0 @@
1
- import{O as r}from"./index.227be58a.js";import{d as l,k as u,a5 as i,f as a,b as n,u as o,o as f,g as s,A as c,da as _}from"./jwt-decode.esm.bcf2db26.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]="337225cf-636d-405b-8f28-761fa4671078",e._sentryDebugIdIdentifier="sentry-dbid-337225cf-636d-405b-8f28-761fa4671078")}catch{}})();const p=l({__name:"OidcLogoutCallback",setup(e){return u(async()=>{await new r().logoutCallback()}),(t,d)=>(f(),i("div",null,[a(o(c),null,{default:n(()=>[s("You're authenticated")]),_:1}),a(o(_),null,{default:n(()=>[s(" This window should close automatically. Please close it manually if it doesn't. ")]),_:1})]))}});export{p as default};
2
- //# sourceMappingURL=OidcLogoutCallback.cb05eca4.js.map
@@ -1,6 +0,0 @@
1
- import{d as x,am as m,c as p,o as a,a5 as s,a7 as D,h as w,e6 as O,e as n,r as I,k as o1,aq as c1,a as _,b as u,f as d,u as l,aV as W,bR as B,H as Y,bP as p1,bx as v1,ec as q,bw as X,da as P,g as M,ed as z,eo as e1,ei as g1,aR as N,cI as f1,de as b,_ as K,eF as s1,cE as m1,eG as j,ef as h1,at as R,w as y1,j as A1,m as w1,T as F,d1 as $1,S as _1,ea as a1,aY as k1}from"./jwt-decode.esm.bcf2db26.js";import{_ as Z1}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.ee29465c.js";import{t as H1}from"./ant-design.9bb31d85.js";import{G as M1}from"./PhClockCounterClockwise.vue.4252e6be.js";import{u as Q}from"./omniChatStore.13045a23.js";import{L as r1}from"./LoadingOutlined.398021fd.js";import{A as L1}from"./index.440bd76c.js";import{C as C1}from"./Card.0b4293e1.js";import{C as b1,A as S1}from"./router.e5052323.js";import{A as V1}from"./index.fdbbf978.js";(function(){try{var f=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(f._sentryDebugIds=f._sentryDebugIds||{},f._sentryDebugIds[o]="18d4afe5-8bd8-4256-9fc7-e9611c14eb32",f._sentryDebugIdIdentifier="sentry-dbid-18d4afe5-8bd8-4256-9fc7-e9611c14eb32")}catch{}})();const I1=["width","height","fill","transform"],x1={key:0},z1=n("path",{d:"M237.24,213.21C216.12,203,204,180.64,204,152V134.73a19.94,19.94,0,0,0-12.62-18.59l-24.86-9.81a4,4,0,0,1-2.26-5.14l21.33-53A32,32,0,0,0,167.17,6,32.13,32.13,0,0,0,126.25,24.2l-.07.18-21,53.09a3.94,3.94,0,0,1-2.14,2.2,3.89,3.89,0,0,1-3,.06L74.6,69.43A19.89,19.89,0,0,0,52.87,74C31.06,96.43,20,122.68,20,152a115.46,115.46,0,0,0,32.29,80.3A12,12,0,0,0,61,236H232a12,12,0,0,0,5.24-22.79ZM68.19,92.73,91.06,102A28,28,0,0,0,127.5,86.31l20.95-53a8.32,8.32,0,0,1,10.33-4.81,8,8,0,0,1,4.61,10.57,1.17,1.17,0,0,0,0,.11L142,92.29a28.05,28.05,0,0,0,15.68,36.33L180,137.45V152c0,1,0,2.07.05,3.1l-122.44-49A101.91,101.91,0,0,1,68.19,92.73ZM116.74,212a83.73,83.73,0,0,1-22.09-39,12,12,0,0,0-23.25,6,110.27,110.27,0,0,0,14.49,33H66.25A91.53,91.53,0,0,1,44,152a84,84,0,0,1,3.41-24.11l136.67,54.66A86.58,86.58,0,0,0,198.66,212Z"},null,-1),B1=[z1],E1={key:1},T1=n("path",{d:"M192.8,165.12,43.93,105.57A110.88,110.88,0,0,1,61.47,82.38a8,8,0,0,1,8.67-1.81L95.52,90.85a16,16,0,0,0,20.82-9l21-53.1c4.15-10,15.47-15.33,25.63-11.53a20,20,0,0,1,11.51,26.39L153.13,96.71a16,16,0,0,0,8.93,20.75L187,127.3a8,8,0,0,1,5,7.43V152A104.58,104.58,0,0,0,192.8,165.12Z",opacity:"0.2"},null,-1),D1=n("path",{d:"M235.5,216.81c-22.56-11-35.5-34.58-35.5-64.8V134.73a15.94,15.94,0,0,0-10.09-14.87L165,110a8,8,0,0,1-4.48-10.34l21.32-53a28,28,0,0,0-16.1-37,28.14,28.14,0,0,0-35.82,16,.61.61,0,0,0,0,.12L108.9,79a8,8,0,0,1-10.37,4.49L73.11,73.14A15.89,15.89,0,0,0,55.74,76.8C34.68,98.45,24,123.75,24,152a111.45,111.45,0,0,0,31.18,77.53A8,8,0,0,0,61,232H232a8,8,0,0,0,3.5-15.19ZM67.14,88l25.41,10.3a24,24,0,0,0,31.23-13.45l21-53c2.56-6.11,9.47-9.27,15.43-7a12,12,0,0,1,6.88,15.92L145.69,93.76a24,24,0,0,0,13.43,31.14L184,134.73V152c0,.33,0,.66,0,1L55.77,101.71A108.84,108.84,0,0,1,67.14,88Zm48,128a87.53,87.53,0,0,1-24.34-42,8,8,0,0,0-15.49,4,105.16,105.16,0,0,0,18.36,38H64.44A95.54,95.54,0,0,1,40,152a85.9,85.9,0,0,1,7.73-36.29l137.8,55.12c3,18,10.56,33.48,21.89,45.16Z"},null,-1),O1=[T1,D1],P1={key:2},N1=n("path",{d:"M235.29,216.7C212.86,205.69,200,182.12,200,152V134.69a15.94,15.94,0,0,0-10.09-14.87l-28.65-11.46A8,8,0,0,1,156.79,98l22.32-56.67C184,28.79,178,14.21,165.34,9.51a24,24,0,0,0-30.7,13.71L112.25,80.08a8,8,0,0,1-10.41,4.5L73.11,73.08a15.91,15.91,0,0,0-17.38,3.66C34.68,98.4,24,123.71,24,152a111.53,111.53,0,0,0,31.15,77.53A8.06,8.06,0,0,0,61,232H232a8,8,0,0,0,8-7.51A8.21,8.21,0,0,0,235.29,216.7ZM115.11,216a87.52,87.52,0,0,1-24.26-41.71,8.21,8.21,0,0,0-9.25-6.18A8,8,0,0,0,75.28,178a105.33,105.33,0,0,0,18.36,38H64.44A95.62,95.62,0,0,1,40,152a85.92,85.92,0,0,1,7.73-36.3l137.8,55.13c3,18.06,10.55,33.5,21.89,45.19Z"},null,-1),j1=[N1],R1={key:3},F1=n("path",{d:"M234.62,218.6C211.35,207.29,198,183,198,152V134.7a14,14,0,0,0-8.82-13l-24.89-9.83a10,10,0,0,1-5.59-13L180,45.9a26,26,0,0,0-15-34.33c-12.95-4.83-27.88,1.84-33.31,15l-21,53.11a10,10,0,0,1-13,5.61L72.37,75a13.9,13.9,0,0,0-15.2,3.19C36.49,99.42,26,124.26,26,152a109.53,109.53,0,0,0,30.62,76.16A6,6,0,0,0,61,230H232a6,6,0,0,0,2.62-11.4ZM65.77,86.52a2,2,0,0,1,2.12-.43l25.4,10.29a22,22,0,0,0,28.63-12.32l21-53c3-7.13,11-10.81,18-8.21a14,14,0,0,1,8,18.54l-21.36,53.1A22.05,22.05,0,0,0,159.86,123l24.88,9.83A2,2,0,0,1,186,134.7V152c0,1.34,0,2.65.08,4L52.74,102.61A110.07,110.07,0,0,1,65.77,86.52ZM114.33,218a89.6,89.6,0,0,1-25.5-43.5,6,6,0,1,0-11.62,3A102.87,102.87,0,0,0,97.81,218H63.56A97.56,97.56,0,0,1,38,152a87.42,87.42,0,0,1,8.71-38.86L187.35,169.4c3.15,19.92,11.77,36.66,25,48.6Z"},null,-1),W1=[F1],q1={key:4},K1=n("path",{d:"M235.5,216.81c-22.56-11-35.5-34.58-35.5-64.8V134.73a15.94,15.94,0,0,0-10.09-14.87L165,110a8,8,0,0,1-4.48-10.34l21.32-53a28,28,0,0,0-16.1-37,28.14,28.14,0,0,0-35.82,16,.61.61,0,0,0,0,.12L108.9,79a8,8,0,0,1-10.37,4.49L73.11,73.14A15.89,15.89,0,0,0,55.74,76.8C34.68,98.45,24,123.75,24,152a111.45,111.45,0,0,0,31.18,77.53A8,8,0,0,0,61,232H232a8,8,0,0,0,3.5-15.19ZM67.14,88l25.41,10.3a24,24,0,0,0,31.23-13.45l21-53c2.56-6.11,9.47-9.27,15.43-7a12,12,0,0,1,6.88,15.92L145.69,93.76a24,24,0,0,0,13.43,31.14L184,134.73V152c0,.33,0,.66,0,1L55.77,101.71A108.84,108.84,0,0,1,67.14,88Zm48,128a87.53,87.53,0,0,1-24.34-42,8,8,0,0,0-15.49,4,105.16,105.16,0,0,0,18.36,38H64.44A95.54,95.54,0,0,1,40,152a85.9,85.9,0,0,1,7.73-36.29l137.8,55.12c3,18,10.56,33.48,21.89,45.16Z"},null,-1),G1=[K1],U1={key:5},Y1=n("path",{d:"M233.75,220.4C209.76,208.75,196,183.82,196,152V134.72a12,12,0,0,0-7.56-11.15l-24.89-9.83a12,12,0,0,1-6.71-15.55l21.33-53a23.88,23.88,0,0,0-31.93-31A24.72,24.72,0,0,0,133.62,27.3l-21,53.1A12,12,0,0,1,97,87.13L71.63,76.84a12,12,0,0,0-13,2.73C38.3,100.45,28,124.82,28,152a107.5,107.5,0,0,0,30.07,74.77A4,4,0,0,0,61,228H232a4,4,0,0,0,1.75-7.6ZM64.34,85.15a3.94,3.94,0,0,1,4.3-.89L94,94.55a20,20,0,0,0,26-11.2l21-53C144.39,22.19,153.61,18,161.58,21a16,16,0,0,1,9.19,21.16L149.41,95.22a20,20,0,0,0,11.18,26l24.9,9.83a4,4,0,0,1,2.51,3.72V152c0,2.36.08,4.69.22,7l-138.5-55.4A110.84,110.84,0,0,1,64.34,85.15ZM113.56,220A91.35,91.35,0,0,1,86.9,175a4,4,0,0,0-7.75,2,100.21,100.21,0,0,0,23.09,43H62.68A99.5,99.5,0,0,1,36,152a89.37,89.37,0,0,1,9.73-41.4L189.13,168c3.22,22,13.23,40.09,28.8,52Z"},null,-1),Q1=[Y1],J1={name:"PhBroom"},X1=x({...J1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(f){const o=f,r=m("weight","regular"),h=m("size","1em"),A=m("color","currentColor"),g=m("mirrored",!1),t=p(()=>{var e;return(e=o.weight)!=null?e:r}),c=p(()=>{var e;return(e=o.size)!=null?e:h}),$=p(()=>{var e;return(e=o.color)!=null?e:A}),v=p(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:g?"scale(-1, 1)":void 0);return(e,k)=>(a(),s("svg",O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:c.value,height:c.value,fill:$.value,transform:v.value},e.$attrs),[D(e.$slots,"default"),t.value==="bold"?(a(),s("g",x1,B1)):t.value==="duotone"?(a(),s("g",E1,O1)):t.value==="fill"?(a(),s("g",P1,j1)):t.value==="light"?(a(),s("g",R1,W1)):t.value==="regular"?(a(),s("g",q1,G1)):t.value==="thin"?(a(),s("g",U1,Q1)):w("",!0)],16,I1))}}),e0=["width","height","fill","transform"],a0={key:0},t0=n("path",{d:"M140,88a16,16,0,1,1,16,16A16,16,0,0,1,140,88ZM100,72a16,16,0,1,0,16,16A16,16,0,0,0,100,72Zm120,72a91.84,91.84,0,0,1-2.34,20.64L236.81,173a12,12,0,0,1-9.62,22l-18-7.85a92,92,0,0,1-162.46,0l-18,7.85a12,12,0,1,1-9.62-22l19.15-8.36A91.84,91.84,0,0,1,36,144v-4H16a12,12,0,0,1,0-24H36v-4a91.84,91.84,0,0,1,2.34-20.64L19.19,83a12,12,0,0,1,9.62-22l18,7.85a92,92,0,0,1,162.46,0l18-7.85a12,12,0,1,1,9.62,22l-19.15,8.36A91.84,91.84,0,0,1,220,112v4h20a12,12,0,0,1,0,24H220ZM60,116H196v-4a68,68,0,0,0-136,0Zm56,94.92V140H60v4A68.1,68.1,0,0,0,116,210.92ZM196,144v-4H140v70.92A68.1,68.1,0,0,0,196,144Z"},null,-1),l0=[t0],o0={key:1},s0=n("path",{d:"M208,128v16a80,80,0,0,1-160,0V128Z",opacity:"0.2"},null,-1),r0=n("path",{d:"M144,92a12,12,0,1,1,12,12A12,12,0,0,1,144,92ZM100,80a12,12,0,1,0,12,12A12,12,0,0,0,100,80Zm116,64A87.76,87.76,0,0,1,213,167l22.24,9.72A8,8,0,0,1,232,192a7.89,7.89,0,0,1-3.2-.67L207.38,182a88,88,0,0,1-158.76,0L27.2,191.33A7.89,7.89,0,0,1,24,192a8,8,0,0,1-3.2-15.33L43,167A87.76,87.76,0,0,1,40,144v-8H16a8,8,0,0,1,0-16H40v-8a87.76,87.76,0,0,1,3-23L20.8,79.33a8,8,0,1,1,6.4-14.66L48.62,74a88,88,0,0,1,158.76,0l21.42-9.36a8,8,0,0,1,6.4,14.66L213,89.05a87.76,87.76,0,0,1,3,23v8h24a8,8,0,0,1,0,16H216ZM56,120H200v-8a72,72,0,0,0-144,0Zm64,95.54V136H56v8A72.08,72.08,0,0,0,120,215.54ZM200,144v-8H136v79.54A72.08,72.08,0,0,0,200,144Z"},null,-1),n0=[s0,r0],i0={key:2},u0=n("path",{d:"M168,92a12,12,0,1,1-12-12A12,12,0,0,1,168,92ZM100,80a12,12,0,1,0,12,12A12,12,0,0,0,100,80Zm116,64A87.76,87.76,0,0,1,213,167l22.24,9.72A8,8,0,0,1,232,192a7.89,7.89,0,0,1-3.2-.67L207.38,182a88,88,0,0,1-158.76,0L27.2,191.33A7.89,7.89,0,0,1,24,192a8,8,0,0,1-3.2-15.33L43,167A87.76,87.76,0,0,1,40,144v-8H16a8,8,0,0,1,0-16H40v-8a87.76,87.76,0,0,1,3-23L20.8,79.33a8,8,0,1,1,6.4-14.66L48.62,74a88,88,0,0,1,158.76,0l21.42-9.36a8,8,0,0,1,6.4,14.66L213,89.05a87.76,87.76,0,0,1,3,23v8h24a8,8,0,0,1,0,16H216Zm-80,0a8,8,0,0,0-16,0v64a8,8,0,0,0,16,0Zm64-32a72,72,0,0,0-144,0v8H200Z"},null,-1),d0=[u0],c0={key:3},p0=n("path",{d:"M146,92a10,10,0,1,1,10,10A10,10,0,0,1,146,92ZM100,82a10,10,0,1,0,10,10A10,10,0,0,0,100,82Zm146,46a6,6,0,0,1-6,6H214v10a85.88,85.88,0,0,1-3.45,24.08L234.4,178.5a6,6,0,0,1-4.8,11l-23.23-10.15a86,86,0,0,1-156.74,0L26.4,189.5a6,6,0,1,1-4.8-11l23.85-10.42A85.88,85.88,0,0,1,42,144V134H16a6,6,0,0,1,0-12H42V112a85.88,85.88,0,0,1,3.45-24.08L21.6,77.5a6,6,0,0,1,4.8-11L49.63,76.65a86,86,0,0,1,156.74,0L229.6,66.5a6,6,0,1,1,4.8,11L210.55,87.92A85.88,85.88,0,0,1,214,112v10h26A6,6,0,0,1,246,128ZM54,122H202V112a74,74,0,0,0-148,0Zm68,95.74V134H54v10A74.09,74.09,0,0,0,122,217.74ZM202,134H134v83.74A74.09,74.09,0,0,0,202,144Z"},null,-1),v0=[p0],g0={key:4},f0=n("path",{d:"M144,92a12,12,0,1,1,12,12A12,12,0,0,1,144,92ZM100,80a12,12,0,1,0,12,12A12,12,0,0,0,100,80Zm116,64A87.76,87.76,0,0,1,213,167l22.24,9.72A8,8,0,0,1,232,192a7.89,7.89,0,0,1-3.2-.67L207.38,182a88,88,0,0,1-158.76,0L27.2,191.33A7.89,7.89,0,0,1,24,192a8,8,0,0,1-3.2-15.33L43,167A87.76,87.76,0,0,1,40,144v-8H16a8,8,0,0,1,0-16H40v-8a87.76,87.76,0,0,1,3-23L20.8,79.33a8,8,0,1,1,6.4-14.66L48.62,74a88,88,0,0,1,158.76,0l21.42-9.36a8,8,0,0,1,6.4,14.66L213,89.05a87.76,87.76,0,0,1,3,23v8h24a8,8,0,0,1,0,16H216ZM56,120H200v-8a72,72,0,0,0-144,0Zm64,95.54V136H56v8A72.08,72.08,0,0,0,120,215.54ZM200,144v-8H136v79.54A72.08,72.08,0,0,0,200,144Z"},null,-1),m0=[f0],h0={key:5},y0=n("path",{d:"M148,92a8,8,0,1,1,8,8A8,8,0,0,1,148,92Zm-48-8a8,8,0,1,0,8,8A8,8,0,0,0,100,84Zm144,44a4,4,0,0,1-4,4H212v12a83.64,83.64,0,0,1-3.87,25.2l25.47,11.13A4,4,0,0,1,232,188a4.09,4.09,0,0,1-1.6-.33l-25-10.95a84,84,0,0,1-154.72,0l-25,10.95A4.09,4.09,0,0,1,24,188a4,4,0,0,1-1.6-7.67L47.87,169.2A83.64,83.64,0,0,1,44,144V132H16a4,4,0,0,1,0-8H44V112a83.64,83.64,0,0,1,3.87-25.2L22.4,75.67a4,4,0,0,1,3.2-7.34l25,11a84,84,0,0,1,154.72,0l25-11a4,4,0,1,1,3.2,7.34L208.13,86.8A83.64,83.64,0,0,1,212,112v12h28A4,4,0,0,1,244,128ZM52,124H204V112a76,76,0,0,0-152,0Zm72,95.89V132H52v12A76.09,76.09,0,0,0,124,219.89ZM204,132H132v87.89A76.09,76.09,0,0,0,204,144Z"},null,-1),A0=[y0],w0={name:"PhBug"},$0=x({...w0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(f){const o=f,r=m("weight","regular"),h=m("size","1em"),A=m("color","currentColor"),g=m("mirrored",!1),t=p(()=>{var e;return(e=o.weight)!=null?e:r}),c=p(()=>{var e;return(e=o.size)!=null?e:h}),$=p(()=>{var e;return(e=o.color)!=null?e:A}),v=p(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:g?"scale(-1, 1)":void 0);return(e,k)=>(a(),s("svg",O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:c.value,height:c.value,fill:$.value,transform:v.value},e.$attrs),[D(e.$slots,"default"),t.value==="bold"?(a(),s("g",a0,l0)):t.value==="duotone"?(a(),s("g",o0,n0)):t.value==="fill"?(a(),s("g",i0,d0)):t.value==="light"?(a(),s("g",c0,v0)):t.value==="regular"?(a(),s("g",g0,m0)):t.value==="thin"?(a(),s("g",h0,A0)):w("",!0)],16,e0))}}),_0=["width","height","fill","transform"],k0={key:0},Z0=n("path",{d:"M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z"},null,-1),H0=[Z0],M0={key:1},L0=n("path",{d:"M208,96l-80,80L48,96Z",opacity:"0.2"},null,-1),C0=n("path",{d:"M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z"},null,-1),b0=[L0,C0],S0={key:2},V0=n("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z"},null,-1),I0=[V0],x0={key:3},z0=n("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"},null,-1),B0=[z0],E0={key:4},T0=n("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"},null,-1),D0=[T0],O0={key:5},P0=n("path",{d:"M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z"},null,-1),N0=[P0],j0={name:"PhCaretDown"},R0=x({...j0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(f){const o=f,r=m("weight","regular"),h=m("size","1em"),A=m("color","currentColor"),g=m("mirrored",!1),t=p(()=>{var e;return(e=o.weight)!=null?e:r}),c=p(()=>{var e;return(e=o.size)!=null?e:h}),$=p(()=>{var e;return(e=o.color)!=null?e:A}),v=p(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:g?"scale(-1, 1)":void 0);return(e,k)=>(a(),s("svg",O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:c.value,height:c.value,fill:$.value,transform:v.value},e.$attrs),[D(e.$slots,"default"),t.value==="bold"?(a(),s("g",k0,H0)):t.value==="duotone"?(a(),s("g",M0,b0)):t.value==="fill"?(a(),s("g",S0,I0)):t.value==="light"?(a(),s("g",x0,B0)):t.value==="regular"?(a(),s("g",E0,D0)):t.value==="thin"?(a(),s("g",O0,N0)):w("",!0)],16,_0))}}),F0=["width","height","fill","transform"],W0={key:0},q0=n("path",{d:"M144,180a16,16,0,1,1-16-16A16,16,0,0,1,144,180Zm92-52A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128ZM128,64c-24.26,0-44,17.94-44,40v4a12,12,0,0,0,24,0v-4c0-8.82,9-16,20-16s20,7.18,20,16-9,16-20,16a12,12,0,0,0-12,12v8a12,12,0,0,0,23.73,2.56C158.31,137.88,172,122.37,172,104,172,81.94,152.26,64,128,64Z"},null,-1),K0=[q0],G0={key:1},U0=n("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),Y0=n("path",{d:"M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),Q0=[U0,Y0],J0={key:2},X0=n("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,168a12,12,0,1,1,12-12A12,12,0,0,1,128,192Zm8-48.72V144a8,8,0,0,1-16,0v-8a8,8,0,0,1,8-8c13.23,0,24-9,24-20s-10.77-20-24-20-24,9-24,20v4a8,8,0,0,1-16,0v-4c0-19.85,17.94-36,40-36s40,16.15,40,36C168,125.38,154.24,139.93,136,143.28Z"},null,-1),ee=[X0],ae={key:3},te=n("path",{d:"M138,180a10,10,0,1,1-10-10A10,10,0,0,1,138,180ZM128,74c-21,0-38,15.25-38,34v4a6,6,0,0,0,12,0v-4c0-12.13,11.66-22,26-22s26,9.87,26,22-11.66,22-26,22a6,6,0,0,0-6,6v8a6,6,0,0,0,12,0v-2.42c18.11-2.58,32-16.66,32-33.58C166,89.25,149,74,128,74Zm102,54A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"},null,-1),le=[te],oe={key:4},se=n("path",{d:"M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),re=[se],ne={key:5},ie=n("path",{d:"M136,180a8,8,0,1,1-8-8A8,8,0,0,1,136,180ZM128,76c-19.85,0-36,14.36-36,32v4a4,4,0,0,0,8,0v-4c0-13.23,12.56-24,28-24s28,10.77,28,24-12.56,24-28,24a4,4,0,0,0-4,4v8a4,4,0,0,0,8,0v-4.2c18-1.77,32-15.36,32-31.8C164,90.36,147.85,76,128,76Zm100,52A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"},null,-1),ue=[ie],de={name:"PhQuestion"},t1=x({...de,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(f){const o=f,r=m("weight","regular"),h=m("size","1em"),A=m("color","currentColor"),g=m("mirrored",!1),t=p(()=>{var e;return(e=o.weight)!=null?e:r}),c=p(()=>{var e;return(e=o.size)!=null?e:h}),$=p(()=>{var e;return(e=o.color)!=null?e:A}),v=p(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:g?"scale(-1, 1)":void 0);return(e,k)=>(a(),s("svg",O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:c.value,height:c.value,fill:$.value,transform:v.value},e.$attrs),[D(e.$slots,"default"),t.value==="bold"?(a(),s("g",W0,K0)):t.value==="duotone"?(a(),s("g",G0,Q0)):t.value==="fill"?(a(),s("g",J0,ee)):t.value==="light"?(a(),s("g",ae,le)):t.value==="regular"?(a(),s("g",oe,re)):t.value==="thin"?(a(),s("g",ne,ue)):w("",!0)],16,F0))}}),ce=["width","height","fill","transform"],pe={key:0},ve=n("path",{d:"M200,36H56A20,20,0,0,0,36,56V200a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V56A20,20,0,0,0,200,36Zm-4,160H60V60H196Z"},null,-1),ge=[ve],fe={key:1},me=n("path",{d:"M208,56V200a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8H200A8,8,0,0,1,208,56Z",opacity:"0.2"},null,-1),he=n("path",{d:"M200,40H56A16,16,0,0,0,40,56V200a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,160H56V56H200V200Z"},null,-1),ye=[me,he],Ae={key:2},we=n("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z"},null,-1),$e=[we],_e={key:3},ke=n("path",{d:"M200,42H56A14,14,0,0,0,42,56V200a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V56A14,14,0,0,0,200,42Zm2,158a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2H200a2,2,0,0,1,2,2Z"},null,-1),Ze=[ke],He={key:4},Me=n("path",{d:"M200,40H56A16,16,0,0,0,40,56V200a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,160H56V56H200V200Z"},null,-1),Le=[Me],Ce={key:5},be=n("path",{d:"M200,44H56A12,12,0,0,0,44,56V200a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V56A12,12,0,0,0,200,44Zm4,156a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4H200a4,4,0,0,1,4,4Z"},null,-1),Se=[be],Ve={name:"PhStop"},Ie=x({...Ve,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(f){const o=f,r=m("weight","regular"),h=m("size","1em"),A=m("color","currentColor"),g=m("mirrored",!1),t=p(()=>{var e;return(e=o.weight)!=null?e:r}),c=p(()=>{var e;return(e=o.size)!=null?e:h}),$=p(()=>{var e;return(e=o.color)!=null?e:A}),v=p(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:g?"scale(-1, 1)":void 0);return(e,k)=>(a(),s("svg",O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:c.value,height:c.value,fill:$.value,transform:v.value},e.$attrs),[D(e.$slots,"default"),t.value==="bold"?(a(),s("g",pe,ge)):t.value==="duotone"?(a(),s("g",fe,ye)):t.value==="fill"?(a(),s("g",Ae,$e)):t.value==="light"?(a(),s("g",_e,Ze)):t.value==="regular"?(a(),s("g",He,Le)):t.value==="thin"?(a(),s("g",Ce,Se)):w("",!0)],16,ce))}}),xe=["width","height","fill","transform"],ze={key:0},Be=n("path",{d:"M244,56v64a12,12,0,0,1-24,0V85l-75.51,75.52a12,12,0,0,1-17,0L96,129,32.49,192.49a12,12,0,0,1-17-17l72-72a12,12,0,0,1,17,0L136,135l67-67H168a12,12,0,0,1,0-24h64A12,12,0,0,1,244,56Z"},null,-1),Ee=[Be],Te={key:1},De=n("path",{d:"M232,56v64L168,56Z",opacity:"0.2"},null,-1),Oe=n("path",{d:"M232,48H168a8,8,0,0,0-5.66,13.66L188.69,88,136,140.69l-34.34-34.35a8,8,0,0,0-11.32,0l-72,72a8,8,0,0,0,11.32,11.32L96,123.31l34.34,34.35a8,8,0,0,0,11.32,0L200,99.31l26.34,26.35A8,8,0,0,0,240,120V56A8,8,0,0,0,232,48Zm-8,52.69L187.31,64H224Z"},null,-1),Pe=[De,Oe],Ne={key:2},je=n("path",{d:"M240,56v64a8,8,0,0,1-13.66,5.66L200,99.31l-58.34,58.35a8,8,0,0,1-11.32,0L96,123.31,29.66,189.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0L136,140.69,188.69,88,162.34,61.66A8,8,0,0,1,168,48h64A8,8,0,0,1,240,56Z"},null,-1),Re=[je],Fe={key:3},We=n("path",{d:"M238,56v64a6,6,0,0,1-12,0V70.48l-85.76,85.76a6,6,0,0,1-8.48,0L96,120.49,28.24,188.24a6,6,0,0,1-8.48-8.48l72-72a6,6,0,0,1,8.48,0L136,143.51,217.52,62H168a6,6,0,0,1,0-12h64A6,6,0,0,1,238,56Z"},null,-1),qe=[We],Ke={key:4},Ge=n("path",{d:"M240,56v64a8,8,0,0,1-16,0V75.31l-82.34,82.35a8,8,0,0,1-11.32,0L96,123.31,29.66,189.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0L136,140.69,212.69,64H168a8,8,0,0,1,0-16h64A8,8,0,0,1,240,56Z"},null,-1),Ue=[Ge],Ye={key:5},Qe=n("path",{d:"M236,56v64a4,4,0,0,1-8,0V65.66l-89.17,89.17a4,4,0,0,1-5.66,0L96,117.66,26.83,186.83a4,4,0,0,1-5.66-5.66l72-72a4,4,0,0,1,5.66,0L136,146.34,222.34,60H168a4,4,0,0,1,0-8h64A4,4,0,0,1,236,56Z"},null,-1),Je=[Qe],Xe={name:"PhTrendUp"},e2=x({...Xe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(f){const o=f,r=m("weight","regular"),h=m("size","1em"),A=m("color","currentColor"),g=m("mirrored",!1),t=p(()=>{var e;return(e=o.weight)!=null?e:r}),c=p(()=>{var e;return(e=o.size)!=null?e:h}),$=p(()=>{var e;return(e=o.color)!=null?e:A}),v=p(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:g?"scale(-1, 1)":void 0);return(e,k)=>(a(),s("svg",O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:c.value,height:c.value,fill:$.value,transform:v.value},e.$attrs),[D(e.$slots,"default"),t.value==="bold"?(a(),s("g",ze,Ee)):t.value==="duotone"?(a(),s("g",Te,Pe)):t.value==="fill"?(a(),s("g",Ne,Re)):t.value==="light"?(a(),s("g",Fe,qe)):t.value==="regular"?(a(),s("g",Ke,Ue)):t.value==="thin"?(a(),s("g",Ye,Je)):w("",!0)],16,xe))}}),a2=x({__name:"OmniChatHeader",props:{controller:{},hideClose:{type:Boolean}},setup(f){const o=f,r=Q(),h=p(()=>o.controller.isLoadingHistory()),A=p(()=>o.controller.shouldRenderLoadMoreHistory()),g=I(!1),t=I(null),c=L=>{o.controller.moveThreadFromHistoryToRecents(L),g.value=!1},$=L=>{o.controller.deleteThread(L),g.value=!1},v=async L=>{L.stopPropagation(),await o.controller.loadMoreHistory(),g.value=!0},e=async()=>{await o.controller.abort(),await o.controller.setupThread(),o.controller.clearLogService()},k=()=>{r.isOpen=!1},E=L=>{g.value&&t.value&&!t.value.contains(L.target)&&(g.value=!1)};return o1(()=>{document.addEventListener("click",E)}),c1(()=>{document.removeEventListener("click",E)}),(L,C)=>(a(),_(l(b),{class:"upper",justify:"space-between",gap:"small",align:"center"},{default:u(()=>[d(l(b),{gap:"2",align:"center"},{default:u(()=>[d(l(W),{placement:"bottom",title:"Clear messages"},{default:u(()=>[d(l(B),{type:"text",icon:Y(l(X1)),onClick:e},null,8,["icon"])]),_:1}),n("div",{ref_key:"historyDropdownRef",ref:t},[d(l(p1),{open:g.value},{overlay:u(()=>[d(l(v1),{style:{"max-height":"500px",overflow:"scroll","scrollbar-width":"none","-ms-overflow-style":"none"}},{default:u(()=>[(a(!0),s(N,null,q(L.controller.pastThreads,y=>(a(),_(l(X),{key:y.threadId,onClick:S=>c(y.threadId)},{default:u(()=>[d(l(P),null,{default:u(()=>[M(z(y.title),1)]),_:2},1024),d(l(e1),{size:"16",class:"close-icon",onClick:g1(S=>$(y.threadId),["stop"])},null,8,["onClick"])]),_:2},1032,["onClick"]))),128)),A.value?(a(),_(l(f1),{key:0})):w("",!0),A.value?(a(),_(l(X),{key:1,onClick:C[1]||(C[1]=y=>v(y))},{default:u(()=>[d(l(b),{gap:"small"},{default:u(()=>[M(" Load more "),h.value?(a(),_(l(r1),{key:0,size:"16"})):w("",!0)]),_:1})]),_:1})):w("",!0)]),_:1})]),default:u(()=>[d(l(W),{placement:"bottom",title:"History"},{default:u(()=>[d(l(B),{type:"text",icon:Y(l(M1)),onClick:C[0]||(C[0]=y=>g.value=!0)},null,8,["icon"])]),_:1})]),_:1},8,["open"])],512),L.hideClose?w("",!0):(a(),_(l(B),{key:0,type:"text",icon:Y(l(e1)),onClick:k},null,8,["icon"]))]),_:1})]),_:1}))}});const t2=K(a2,[["__scopeId","data-v-eb7f2204"]]),l2=x({__name:"OmniChatInput",props:{controller:{}},emits:["send-message","stop"],setup(f,{expose:o,emit:r}){const h=f,A=Q(),g=I(null),t=I(""),c=p(()=>h.controller.isAnswering()),$=p(()=>h.controller.isProcessing()),v=p(()=>!$.value&&!c.value),e=p(()=>c.value?"Answering...":$.value?"Thinking...":""),k=async C=>{C&&(C.preventDefault(),C.stopPropagation()),t.value.trim()&&(!v.value||(r("send-message",t.value),t.value=""))},E=()=>{g.value&&(A.focusInput(),g.value.focus())},L=C=>{if(C.preventDefault(),C.shiftKey){document.execCommand("insertLineBreak");return}!v.value||k(C)};return o({focusInput:E}),(C,y)=>(a(),_(l(b),{class:"lower",vertical:"",justify:"space-between"},{default:u(()=>[d(l(m1),{ref_key:"inputRef",ref:g,value:t.value,"onUpdate:value":y[0]||(y[0]=S=>t.value=S),"auto-size":{minRows:2,maxRows:6},bordered:!1,placeholder:"Ask a question",onKeydown:y[1]||(y[1]=s1(S=>L(S),["enter"])),onFocus:y[2]||(y[2]=S=>l(A).focusInput()),onBlur:y[3]||(y[3]=S=>l(A).blurInput())},null,8,["value"]),d(l(b),{justify:"space-between",class:"bottom-lower",gap:"small",align:"center"},{default:u(()=>[d(l(b),{gap:"small"},{default:u(()=>[d(l(P),{type:"secondary",class:"info"},{default:u(()=>[v.value?w("",!0):(a(),_(l(r1),{key:0,size:"16"})),M(" "+z(e.value),1)]),_:1})]),_:1}),d(l(b),{gap:"small",align:"center"},{default:u(()=>[w("",!0),v.value?w("",!0):(a(),_(l(B),{key:1,size:"small",onClick:y[4]||(y[4]=S=>r("stop"))},{default:u(()=>[d(l(b),{gap:"4",align:"center"},{default:u(()=>[M(" Stop "),d(l(Ie),{size:12})]),_:1})]),_:1})),d(l(B),{size:"small",type:"primary",disabled:!v.value,onClick:y[5]||(y[5]=S=>k())},{default:u(()=>[M("Send")]),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1}))}});const o2=K(l2,[["__scopeId","data-v-66b0a5f4"]]),s2=["onClick"],r2={class:"icon"},n2={class:"title"},i2=x({__name:"SmartSuggestions",props:{showFirstMessageSuggestions:{type:Boolean},showErrorFixSuggestions:{type:Boolean},showWorkflowSuggestions:{type:Boolean}},emits:["send-suggested-message"],setup(f,{emit:o}){const r=f,h=[{title:j.translate("i18n_auto_suggest_fix_chat_message"),icon:$0}],A=[{title:j.translate("i18n_explain_code_chat_message"),icon:t1},{title:j.translate("i18n_improve_code_chat_message"),icon:e2}],g=[{title:j.translate("i18n_explain_workflow_chat_message"),icon:t1}],t=p(()=>{const c=[];return r.showErrorFixSuggestions&&c.push(...h),r.showFirstMessageSuggestions&&c.push(...A),r.showWorkflowSuggestions&&c.push(...g),c});return(c,$)=>(a(),_(l(b),{class:"suggestions-container",gap:"middle",justify:"center",vertical:""},{default:u(()=>[(a(!0),s(N,null,q(t.value,v=>(a(),s("div",{key:v.title,class:"suggestion",onClick:e=>o("send-suggested-message",v.title)},[n("div",r2,[(a(),_(h1(v.icon),{size:24}))]),n("div",n2,z(v.title),1)],8,s2))),128))]),_:1}))}});const u2=K(i2,[["__scopeId","data-v-08b28b34"]]),d2=["onKeydown"],c2={key:0,class:"entry"},p2={class:"entry-owner"},v2={key:1,class:"entry"},g2={key:0,class:"entry-owner"},f2={key:2,class:"entry"},m2={class:"entry tool-response",style:{"margin-top":"12px"}},h2="Smart Chat",l1="You",y2=.98,A2=x({__name:"OmniChat",props:{aiChatRepository:{},environment:{},controller:{},stageEditorInfo:{},panesInfo:{},hideClose:{type:Boolean}},emits:["answer"],setup(f,{emit:o}){const r=f,h=Q(),A=p(()=>h.isOpen),g=I(null),t=I(null),c=I(!0),$=I(!1),v=I({});function e(){const i={};for(const Z of r.controller.logService.logs)Z.type==="ai-tool-call-response"&&Z.toolCallId&&(i[Z.toolCallId]=Z.response);v.value=i}const k=()=>{c.value=!0,t.value&&(t.value.scrollTop=t.value.scrollHeight)},E=()=>{if(!t.value)return;const{scrollTop:i,scrollHeight:Z,clientHeight:V}=t.value;i+V>=Z*y2?(c.value=!0,$.value=!1):(c.value=!1,$.value=!0)},L=(i,Z)=>{i.disabled=!0,r.controller.send(r.panesInfo,Z),o("answer",Z)},C=()=>{h.open(),R(()=>{var i;return(i=g.value)==null?void 0:i.focusInput()})},y=()=>{h.isOpen=!1},S=i=>{r.environment.origin!=="editor"&&(i.metaKey||i.ctrlKey)&&i.key==="k"&&(i.preventDefault(),h.isOpen?y():C())},n1=()=>{!r.controller||(U(`My last execution failed. Here are the details:
2
- + ${JSON.stringify(r.controller.hasError,null,2)}
3
-
4
- Please help me fix this error.`),r.controller.setError(null))},G=I(!1);r.controller.logService.listen(async i=>{(i.type==="ai-output"||i.type==="ai-input")&&(G.value=!1),(i.type==="ai-input"||c.value)&&(await R(),k()),i.type==="ai-tool-call-response"&&i.toolCallId&&(v.value[i.toolCallId]=i.response)}),y1(()=>r.stageEditorInfo,i=>{var Z;if(!i){r.controller.setStageId(null);return}r.controller.setStageId(i.stage.id),(Z=r.stageEditorInfo)!=null&&Z.logService&&r.stageEditorInfo.logService.listen(async V=>{r.controller.logService.log(V),V.type==="stderr"&&(G.value=!0,await R(),k())})},{immediate:!0});const U=async i=>{if(!!r.controller){if(r.controller.setInput(i),!r.stageEditorInfo){await r.controller.send(r.panesInfo),k();return}await r.controller.send(r.panesInfo),k()}},i1=()=>{!r.controller||r.controller.abort()};o1(()=>{r.controller.init(),window.addEventListener("keydown",S),t.value&&t.value.addEventListener("scroll",E),R(k),e()}),A1(()=>{window.removeEventListener("keydown",S),t.value&&t.value.removeEventListener("scroll",E)});const u1=i=>{if(i===0)return!1;const Z=r.controller.logService.logs[i],V=r.controller.logService.logs[i-1];return Z.type==="ai-output"?V.type==="ai-output"||V.type==="ai-tool-approval"||V.type==="ai-tool-call-response":!1};return(i,Z)=>{const V=w1("Markdown");return a(),s("div",{class:a1(["container",{visible:A.value,console:i.environment.origin==="console"}]),justify:"center",align:"center",onKeydown:s1(y,["esc"])},[d(t2,{controller:i.controller,"hide-close":i.hideClose},null,8,["controller","hide-close"]),d(l(b),{class:a1(["content",{console:i.environment.origin==="console"}])},{default:u(()=>[n("div",{ref_key:"entriesContainer",ref:t,class:"scroll"},[(a(!0),s(N,null,q(i.controller.logService.logs,(H,J)=>(a(),s(N,{key:J},[H.type==="ai-input"?(a(),s("div",c2,[n("div",p2,[d(l(L1),{size:20,shape:"square",class:"avatar"},{default:u(()=>{var T;return[M(z((T=l1[0])!=null?T:"Y"),1)]}),_:1}),d(l(P),{strong:""},{default:u(()=>[M(z(l1))]),_:1})]),(a(!0),s(N,null,q(H.log.split(`
5
- `),(T,d1)=>(a(),_(l(F),{key:d1},{default:u(()=>[M(z(T),1)]),_:2},1024))),128))])):w("",!0),H.type==="ai-output"?(a(),s("div",v2,[u1(J)?w("",!0):(a(),s("div",g2,[d(Z1,{size:"small","hide-text":""}),d(l(P),{strong:""},{default:u(()=>[M(z(h2))]),_:1})])),d(V,{source:H.log},null,8,["source"])])):w("",!0),H.type==="ai-tool-approval"?(a(),s("div",f2,[d(l(C1),{style:{padding:"0"},"body-style":{padding:"12px"}},{default:u(()=>[d(l(P),{strong:""},{default:u(()=>[M(z(H.description),1)]),_:2},1024),Object.keys(H.args).length?(a(),_(l($1),{key:0,"tree-data":l(H1)(H.args),selectable:!1},null,8,["tree-data"])):w("",!0),H.needsApproval?(a(),_(l(b),{key:1,gap:"small",justify:"end",style:{"margin-top":"6px"}},{default:u(()=>[d(l(B),{size:"small",disabled:H.disabled,onClick:T=>L(H,"reject")},{default:u(()=>[M(" Reject ")]),_:2},1032,["disabled","onClick"]),d(l(B),{size:"small",type:"primary",disabled:H.disabled,onClick:T=>L(H,"approve")},{default:u(()=>[M(" Approve ")]),_:2},1032,["disabled","onClick"])]),_:2},1024)):w("",!0)]),_:2},1024),n("div",m2,[d(l(b1),{bordered:!1,style:{"background-color":"transparent",width:"100%"}},{default:u(()=>[d(l(S1),{key:"execution-context"},{header:u(()=>[d(l(b),{justify:"space-between"},{default:u(()=>[d(l(F),{style:{"font-size":"12px","margin-top":"-6px"}},{default:u(()=>[M("AI Answer")]),_:1})]),_:1})]),default:u(()=>[H.toolCallId&&v.value[H.toolCallId]?(a(),_(l(F),{key:0,style:{"font-size":"12px"}},{default:u(()=>[M(z(v.value[H.toolCallId]),1)]),_:2},1024)):(a(),_(l(b),{key:1,gap:"small"},{default:u(()=>[d(l(_1),{size:"small"}),d(l(F),{style:{"font-size":"12px",color:"#888"}},{default:u(()=>[M(" Waiting for tool response... ")]),_:1})]),_:1}))]),_:2},1024)]),_:2},1024)])])):w("",!0)],64))),128))],512)]),_:1},8,["class"]),i.controller.logService.hasAiLogs()?w("",!0):(a(),_(u2,{key:0,"show-first-message-suggestions":!!i.stageEditorInfo,"show-error-fix-suggestions":!!i.stageEditorInfo&&G.value,"show-workflow-suggestions":!i.stageEditorInfo&&i.environment.origin==="editor",onSendSuggestedMessage:U},null,8,["show-first-message-suggestions","show-error-fix-suggestions","show-workflow-suggestions"])),$.value?(a(),_(l(W),{key:1,placement:"left",title:"Scroll to bottom"},{default:u(()=>[d(l(B),{class:"scroll-to-bottom",onClick:k},{default:u(()=>[d(l(R0),{size:"18"})]),_:1})]),_:1})):w("",!0),d(k1,null,{default:u(()=>[i.controller.hasError?(a(),_(l(V1),{key:0,"show-icon":"",closable:"",type:"error",align:"start",style:{width:"calc(100% - 32px)"},onClose:Z[0]||(Z[0]=H=>i.controller.setError(null))},{message:u(()=>[M("An error happened")]),action:u(()=>[d(l(W),{title:i.controller.isIdle()?"":"Wait or stop the response first"},{default:u(()=>[d(l(B),{type:"primary",size:"small",disabled:!i.controller.isIdle(),onClick:n1},{default:u(()=>[M(" Fix with AI ")]),_:1},8,["disabled"])]),_:1},8,["title"])]),_:1})):w("",!0)]),_:1}),d(o2,{ref_key:"omniChatInput",ref:g,controller:i.controller,onSendMessage:U,onStop:i1},null,8,["controller"])],42,d2)}}});const S2=K(A2,[["__scopeId","data-v-952e7741"]]);export{Ie as I,S2 as O};
6
- //# sourceMappingURL=OmniChat.6d6fed9c.js.map
@@ -1,2 +0,0 @@
1
- import{N as k}from"./Navbar.d4751f52.js";import{B as N}from"./BaseLayout.d4459d3a.js";import{C as I}from"./ContentLayout.69b8ab09.js";import{C as _}from"./CrudView.56ebce1a.js";import{a as O}from"./asyncComputed.06839806.js";import{F as x}from"./PhArrowSquareOut.vue.06e1e087.js";import{G as R}from"./PhPencil.vue.aaf907d1.js";import{d as M,e5 as h,r as B,c as D,a5 as F,f as o,b as i,u as s,aR as V,o as g,a as $,cz as j,bJ as A,cy as E,h as G,M as L}from"./jwt-decode.esm.bcf2db26.js";import"./router.e5052323.js";import{a as m}from"./organization.017d0932.js";import"./tables.ecf1f359.js";import"./AbstraButton.vue_vue_type_script_setup_true_lang.ad9e23f0.js";import"./constants.d30e64e7.js";import"./PhChats.vue.bb8ced1d.js";import"./PhSignOut.vue.87084f39.js";import"./index.15909af6.js";import"./index.440bd76c.js";import"./omniChatStore.13045a23.js";import"./record.6b6d4da9.js";import"./uuid.3f5b8acd.js";import"./PhCopySimple.vue.1c5a0760.js";import"./PhBookBookmark.vue.b9569168.js";import"./PhSparkle.vue.707b3721.js";import"./index.ad15e486.js";import"./Breadcrumb.2d9d636f.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.4eb7d335.js";import"./url.79c72bde.js";import"./PhDotsThreeVertical.vue.275748da.js";import"./index.cf5ef754.js";import"./string.2f1abff3.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},l=new Error().stack;l&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[l]="4c9e5f8c-6b6a-4971-b631-b8516c52b637",r._sentryDebugIdIdentifier="sentry-dbid-4c9e5f8c-6b6a-4971-b631-b8516c52b637")}catch{}})();const yt=M({__name:"Organizations",setup(r){const l=[{label:"My organizations",path:"/organizations"}],u=[{key:"name",label:"Organization Name"}],f=h(),{loading:b,result:y,refetch:v}=O(()=>m.list()),p=({key:e})=>{f.push({name:"organization",params:{organizationId:e}})},n=B({state:"idle"});function z(e){n.value={state:"renaming",organizationId:e.id,newName:e.name}}async function c(e){if(n.value.state==="renaming"&&e){const{organizationId:t,newName:a}=n.value;await m.rename(t,a),v()}n.value={state:"idle"}}const w=async e=>{const t=await m.create(e.name);p({key:t.id})},C=D(()=>{var e,t;return{columns:[{title:"Organization Name",align:"left"},{title:"Path"},{title:"",align:"right"}],rows:(t=(e=y.value)==null?void 0:e.map(a=>{var d;return{key:a.id,cells:[{type:"link",text:a.name,to:`/organizations/${encodeURIComponent(a.id)}`},{type:"text",text:(d=a.id)!=null?d:null},{type:"actions",actions:[{icon:x,label:"Go to projects",onClick:p},{icon:R,label:"Rename",onClick:()=>z(a)}]}]}}))!=null?t:[]}});return(e,t)=>(g(),F(V,null,[o(N,null,{navbar:i(()=>[o(k,{breadcrumb:l})]),content:i(()=>[o(I,null,{default:i(()=>[o(_,{"entity-name":"organization",loading:s(b),title:"My organizations",description:"An organization is your company\u2019s account. Manage editors, projects and billing.","create-button-text":"Create Organization","empty-title":"No organizations here yet",table:C.value,fields:u,create:w},null,8,["loading","table"])]),_:1})]),_:1}),o(s(L),{open:n.value.state==="renaming",title:"Rename organization",onCancel:t[1]||(t[1]=a=>c(!1)),onOk:t[2]||(t[2]=a=>c(!0))},{default:i(()=>[n.value.state==="renaming"?(g(),$(s(E),{key:0,layout:"vertical"},{default:i(()=>[o(s(j),{label:"New name"},{default:i(()=>[o(s(A),{value:n.value.newName,"onUpdate:value":t[0]||(t[0]=a=>n.value.newName=a)},null,8,["value"])]),_:1})]),_:1})):G("",!0)]),_:1},8,["open"])],64))}});export{yt as default};
2
- //# sourceMappingURL=Organizations.91c269e6.js.map
@@ -1,2 +0,0 @@
1
- import{d as c,am as d,c as i,o as t,a5 as l,a7 as m,h,e6 as y,e as r}from"./jwt-decode.esm.bcf2db26.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="25ac164d-0083-49e8-bdf1-e150fff4b74c",o._sentryDebugIdIdentifier="sentry-dbid-25ac164d-0083-49e8-bdf1-e150fff4b74c")}catch{}})();const v=["width","height","fill","transform"],Z={key:0},w=r("path",{d:"M180,64H40A12,12,0,0,0,28,76V216a12,12,0,0,0,12,12H180a12,12,0,0,0,12-12V76A12,12,0,0,0,180,64ZM168,204H52V88H168ZM228,40V180a12,12,0,0,1-24,0V52H76a12,12,0,0,1,0-24H216A12,12,0,0,1,228,40Z"},null,-1),b=[w],A={key:1},M=r("path",{d:"M184,72V216H40V72Z",opacity:"0.2"},null,-1),k=r("path",{d:"M184,64H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H184a8,8,0,0,0,8-8V72A8,8,0,0,0,184,64Zm-8,144H48V80H176ZM224,40V184a8,8,0,0,1-16,0V48H72a8,8,0,0,1,0-16H216A8,8,0,0,1,224,40Z"},null,-1),B=[M,k],I={key:2},S=r("path",{d:"M192,72V216a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V72a8,8,0,0,1,8-8H184A8,8,0,0,1,192,72Zm24-40H72a8,8,0,0,0,0,16H208V184a8,8,0,0,0,16,0V40A8,8,0,0,0,216,32Z"},null,-1),C=[S],D={key:3},_=r("path",{d:"M184,66H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H184a6,6,0,0,0,6-6V72A6,6,0,0,0,184,66Zm-6,144H46V78H178ZM222,40V184a6,6,0,0,1-12,0V46H72a6,6,0,0,1,0-12H216A6,6,0,0,1,222,40Z"},null,-1),x=[_],z={key:4},N=r("path",{d:"M184,64H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H184a8,8,0,0,0,8-8V72A8,8,0,0,0,184,64Zm-8,144H48V80H176ZM224,40V184a8,8,0,0,1-16,0V48H72a8,8,0,0,1,0-16H216A8,8,0,0,1,224,40Z"},null,-1),E=[N],P={key:5},$=r("path",{d:"M184,68H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H184a4,4,0,0,0,4-4V72A4,4,0,0,0,184,68Zm-4,144H44V76H180ZM220,40V184a4,4,0,0,1-8,0V44H72a4,4,0,0,1,0-8H216A4,4,0,0,1,220,40Z"},null,-1),j=[$],q={name:"PhCopySimple"},G=c({...q,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const a=o,s=d("weight","regular"),u=d("size","1em"),V=d("color","currentColor"),p=d("mirrored",!1),n=i(()=>{var e;return(e=a.weight)!=null?e:s}),H=i(()=>{var e;return(e=a.size)!=null?e:u}),f=i(()=>{var e;return(e=a.color)!=null?e:V}),g=i(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(e,F)=>(t(),l("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:H.value,height:H.value,fill:f.value,transform:g.value},e.$attrs),[m(e.$slots,"default"),n.value==="bold"?(t(),l("g",Z,b)):n.value==="duotone"?(t(),l("g",A,B)):n.value==="fill"?(t(),l("g",I,C)):n.value==="light"?(t(),l("g",D,x)):n.value==="regular"?(t(),l("g",z,E)):n.value==="thin"?(t(),l("g",P,j)):h("",!0)],16,v))}});export{G as I};
2
- //# sourceMappingURL=PhCopySimple.vue.1c5a0760.js.map
@@ -1,2 +0,0 @@
1
- import{u as L}from"./userStore.5dca7ff0.js";import{l as D}from"./index.227be58a.js";import{i as P}from"./metadata.77edb2ef.js";import{L as N}from"./LoadingOutlined.398021fd.js";import{d as Z,am as y,c as g,o as t,a5 as s,a7 as S,h,e6 as A,e as l,aR as x,ec as z,ea as $,a as H,ef as B,u,ed as k,_ as V,ae as I,b as f,g as b,da as M,f as _,bR as w,a6 as R,cN as E}from"./jwt-decode.esm.bcf2db26.js";import{F as U}from"./PhSignOut.vue.87084f39.js";import{A as F}from"./index.440bd76c.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[o]="3bf58d63-7e8e-4fd6-a7b4-36fc42c3694e",i._sentryDebugIdIdentifier="sentry-dbid-3bf58d63-7e8e-4fd6-a7b4-36fc42c3694e")}catch{}})();const W=["width","height","fill","transform"],j={key:0},q=l("path",{d:"M228,128a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128ZM40,76H216a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24ZM216,180H40a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24Z"},null,-1),T=[q],G={key:1},J=l("path",{d:"M216,64V192H40V64Z",opacity:"0.2"},null,-1),O=l("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM40,72H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16ZM216,184H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"},null,-1),K=[J,O],Q={key:2},X=l("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM192,184H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Zm0-48H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Zm0-48H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Z"},null,-1),Y=[X],e0={key:3},a0=l("path",{d:"M222,128a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128ZM40,70H216a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12ZM216,186H40a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Z"},null,-1),t0=[a0],r0={key:4},l0=l("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM40,72H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16ZM216,184H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"},null,-1),o0=[l0],n0={key:5},s0=l("path",{d:"M220,128a4,4,0,0,1-4,4H40a4,4,0,0,1,0-8H216A4,4,0,0,1,220,128ZM40,68H216a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8ZM216,188H40a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8Z"},null,-1),i0=[s0],d0={name:"PhList"},u0=Z({...d0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const o=i,d=y("weight","regular"),c=y("size","1em"),v=y("color","currentColor"),p=y("mirrored",!1),a=g(()=>{var e;return(e=o.weight)!=null?e:d}),m=g(()=>{var e;return(e=o.size)!=null?e:c}),r=g(()=>{var e;return(e=o.color)!=null?e:v}),n=g(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(e,C)=>(t(),s("svg",A({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:m.value,height:m.value,fill:r.value,transform:n.value},e.$attrs),[S(e.$slots,"default"),a.value==="bold"?(t(),s("g",j,T)):a.value==="duotone"?(t(),s("g",G,K)):a.value==="fill"?(t(),s("g",Q,Y)):a.value==="light"?(t(),s("g",e0,t0)):a.value==="regular"?(t(),s("g",r0,o0)):a.value==="thin"?(t(),s("g",n0,i0)):h("",!0)],16,W))}}),c0=["width","height","fill","transform"],p0={key:0},g0=l("path",{d:"M144.49,136.49l-40,40a12,12,0,0,1-17-17L107,140H24a12,12,0,0,1,0-24h83L87.51,96.49a12,12,0,0,1,17-17l40,40A12,12,0,0,1,144.49,136.49ZM200,28H136a12,12,0,0,0,0,24h52V204H136a12,12,0,0,0,0,24h64a12,12,0,0,0,12-12V40A12,12,0,0,0,200,28Z"},null,-1),h0=[g0],v0={key:1},m0=l("path",{d:"M200,40V216H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40Z",opacity:"0.2"},null,-1),y0=l("path",{d:"M141.66,133.66l-40,40a8,8,0,0,1-11.32-11.32L116.69,136H24a8,8,0,0,1,0-16h92.69L90.34,93.66a8,8,0,0,1,11.32-11.32l40,40A8,8,0,0,1,141.66,133.66ZM200,32H136a8,8,0,0,0,0,16h56V208H136a8,8,0,0,0,0,16h64a8,8,0,0,0,8-8V40A8,8,0,0,0,200,32Z"},null,-1),f0=[m0,y0],H0={key:2},b0=l("path",{d:"M141.66,133.66l-40,40A8,8,0,0,1,88,168V136H24a8,8,0,0,1,0-16H88V88a8,8,0,0,1,13.66-5.66l40,40A8,8,0,0,1,141.66,133.66ZM200,32H136a8,8,0,0,0,0,16h56V208H136a8,8,0,0,0,0,16h64a8,8,0,0,0,8-8V40A8,8,0,0,0,200,32Z"},null,-1),_0=[b0],k0={key:3},Z0=l("path",{d:"M140.24,132.24l-40,40a6,6,0,0,1-8.48-8.48L121.51,134H24a6,6,0,0,1,0-12h97.51L91.76,92.24a6,6,0,0,1,8.48-8.48l40,40A6,6,0,0,1,140.24,132.24ZM200,34H136a6,6,0,0,0,0,12h58V210H136a6,6,0,0,0,0,12h64a6,6,0,0,0,6-6V40A6,6,0,0,0,200,34Z"},null,-1),$0=[Z0],M0={key:4},w0=l("path",{d:"M141.66,133.66l-40,40a8,8,0,0,1-11.32-11.32L116.69,136H24a8,8,0,0,1,0-16h92.69L90.34,93.66a8,8,0,0,1,11.32-11.32l40,40A8,8,0,0,1,141.66,133.66ZM200,32H136a8,8,0,0,0,0,16h56V208H136a8,8,0,0,0,0,16h64a8,8,0,0,0,8-8V40A8,8,0,0,0,200,32Z"},null,-1),S0=[w0],A0={key:5},V0=l("path",{d:"M138.83,130.83l-40,40a4,4,0,0,1-5.66-5.66L126.34,132H24a4,4,0,0,1,0-8H126.34L93.17,90.83a4,4,0,0,1,5.66-5.66l40,40A4,4,0,0,1,138.83,130.83ZM200,36H136a4,4,0,0,0,0,8h60V212H136a4,4,0,0,0,0,8h64a4,4,0,0,0,4-4V40A4,4,0,0,0,200,36Z"},null,-1),C0=[V0],L0={name:"PhSignIn"},D0=Z({...L0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const o=i,d=y("weight","regular"),c=y("size","1em"),v=y("color","currentColor"),p=y("mirrored",!1),a=g(()=>{var e;return(e=o.weight)!=null?e:d}),m=g(()=>{var e;return(e=o.size)!=null?e:c}),r=g(()=>{var e;return(e=o.color)!=null?e:v}),n=g(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(e,C)=>(t(),s("svg",A({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:m.value,height:m.value,fill:r.value,transform:n.value},e.$attrs),[S(e.$slots,"default"),a.value==="bold"?(t(),s("g",p0,h0)):a.value==="duotone"?(t(),s("g",v0,f0)):a.value==="fill"?(t(),s("g",H0,_0)):a.value==="light"?(t(),s("g",k0,$0)):a.value==="regular"?(t(),s("g",M0,S0)):a.value==="thin"?(t(),s("g",A0,C0)):h("",!0)],16,c0))}}),P0={class:"sidebar-content"},N0={class:"section"},x0=["onClick"],z0={class:"item-title"},B0=Z({__name:"Sidebar",props:{runnerData:{},open:{type:Boolean},currentPath:{},loading:{}},emits:["selectRuntime","closeSidebar"],setup(i,{emit:o}){const d=i,c=window.innerWidth<760,v=a=>{p(a.id)||(o("selectRuntime",a),c&&o("closeSidebar"))},p=a=>a===d.currentPath;return(a,m)=>{var r;return t(),s("div",{class:$(["sidebar",{open:a.open}])},[l("div",P0,[l("div",N0,[(t(!0),s(x,null,z(((r=a.runnerData)==null?void 0:r.sidebar)||[],n=>(t(),s("div",{key:n.id,class:$(["item",{active:p(n.path),disabled:a.loading===n.id}]),onClick:e=>v(n)},[(t(),H(B(u(P)(n.type)),{style:{"flex-shrink":"0",width:"22px",height:"18px"}})),l("div",z0,k(n.name),1),a.loading===n.id?(t(),H(u(N),{key:0})):h("",!0)],10,x0))),128))])])],2)}}});const I0=V(B0,[["__scopeId","data-v-5e249979"]]),R0={class:"left-side"},E0={key:1,class:"brand"},U0=["src"],F0={class:"right-side"},W0={style:{display:"flex","flex-direction":"column",gap:"10px"}},j0={style:{display:"flex",gap:"5px"}},q0={style:{display:"flex",gap:"5px"}},T0=Z({__name:"PlayerNavbar",props:{mainColor:{},currentPath:{},hideLogin:{type:Boolean},emailPlaceholder:{},loading:{},runnerData:{}},emits:["navigate","login-click","logout-click"],setup(i,{emit:o}){const d=i,c=I({openSidebar:!1}),v=L(),p=g(()=>{var r;return(r=v.email)!=null?r:d.emailPlaceholder}),a=g(()=>{const r=d.runnerData.sidebar;return r&&r.length>0}),m=()=>{v.removeJWT(),D(),o("logout-click")};return(r,n)=>(t(),s("header",{class:$(["navbar",a.value&&"background"])},[l("div",R0,[a.value?(t(),H(u(u0),{key:0,class:"sidebar-menu-icon",onClick:n[0]||(n[0]=e=>c.openSidebar=!c.openSidebar)})):h("",!0),r.runnerData.logoUrl||r.runnerData.brandName?(t(),s("div",E0,[r.runnerData.logoUrl?(t(),s("img",{key:0,src:r.runnerData.logoUrl,class:"logo-image"},null,8,U0)):h("",!0),r.runnerData.brandName?(t(),H(u(M),{key:1,class:"brand-name",ellipsis:""},{default:f(()=>[b(k(r.runnerData.brandName),1)]),_:1})):h("",!0)])):h("",!0)]),l("div",F0,[p.value?(t(),H(u(E),{key:0,placement:"bottomRight"},{content:f(()=>[l("div",W0,[_(u(M),{size:"small",type:"secondary"},{default:f(()=>[b(k(p.value),1)]),_:1}),_(u(w),{type:"text",onClick:m},{default:f(()=>[l("div",j0,[_(u(U),{size:"20"}),b(" Logout ")])]),_:1})])]),default:f(()=>[_(u(F),{shape:"square",size:"small",style:R({backgroundColor:r.mainColor})},{default:f(()=>[b(k(p.value[0].toUpperCase()),1)]),_:1},8,["style"])]),_:1})):r.hideLogin?h("",!0):(t(),H(u(w),{key:1,type:"text",onClick:n[1]||(n[1]=e=>o("login-click"))},{default:f(()=>[l("div",q0,[b(" Login "),_(u(D0),{size:"20"})])]),_:1}))]),a.value?(t(),H(I0,{key:0,"current-path":r.currentPath,"runner-data":d.runnerData,open:c.openSidebar,loading:d.loading,onSelectRuntime:n[2]||(n[2]=e=>o("navigate",e)),onCloseSidebar:n[3]||(n[3]=e=>c.openSidebar=!1)},null,8,["current-path","runner-data","open","loading"])):h("",!0)],2))}});const ee=V(T0,[["__scopeId","data-v-870a89e5"]]);export{ee as P};
2
- //# sourceMappingURL=PlayerNavbar.b15bb1f3.js.map
@@ -1,2 +0,0 @@
1
- import{_ as f}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.ee29465c.js";import{B as m}from"./BaseLayout.d4459d3a.js";import{d as l,ae as y,c1 as v,_ as u,aZ as g,a_ as b,o as _,a5 as h,e as r,a6 as n,eb as w,e5 as S,k,a as L,b as s,f as i,u as x}from"./jwt-decode.esm.bcf2db26.js";import{u as B}from"./editor.a151d549.js";import{A as I}from"./index.ad15e486.js";import"./Logo.0fee0801.js";import"./workspaceStore.7283625b.js";import"./userStore.5dca7ff0.js";import"./url.79c72bde.js";import"./colorHelpers.eb706cff.js";import"./index.227be58a.js";import"./linters.1f3c2bdc.js";import"./asyncComputed.06839806.js";import"./constants.d30e64e7.js";import"./index.cf5ef754.js";import"./Breadcrumb.2d9d636f.js";import"./index.440bd76c.js";import"./index.15909af6.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="9d6576cd-eea2-4018-8994-79c6abc5c29d",e._sentryDebugIdIdentifier="sentry-dbid-9d6576cd-eea2-4018-8994-79c6abc5c29d")}catch{}})();const $=l({props:{loading:{type:Boolean,default:!0},color:{type:String,default:"#ea576a"},size:{type:String,default:"10px"},radius:{type:String,default:"100%"}},setup(e){const o=y({spinnerStyle:{width:e.size,height:e.size,borderRadius:e.radius,backgroundColor:e.color}});return{...v(o)}}});const P={class:"v-spinner"};function D(e,o,a,d,c,p){return g((_(),h("div",P,[r("div",{class:"v-beat v-beat-odd",style:n(e.spinnerStyle)},null,4),r("div",{class:"v-beat v-beat-even",style:n(e.spinnerStyle)},null,4),r("div",{class:"v-beat v-beat-odd",style:n(e.spinnerStyle)},null,4)],512)),[[b,e.loading]])}const R=u($,[["render",D],["__scopeId","data-v-06538001"]]),j={class:"content"},z=l({__name:"ProjectLogin",setup(e){const o=w(),a=S(),d=B();function c(){const t=new URL(location.href);t.searchParams.delete("api-key"),a.replace(t.pathname+t.search)}function p(){const t=o.query["api-key"];if(typeof t=="string")return t}return k(async()=>{const t=p();if(!t){a.push({name:"error"});return}await d.createLogin(t).then(c),a.push({name:"editor"})}),(t,A)=>(_(),L(m,null,{navbar:s(()=>[i(x(I),{style:{padding:"5px 25px",border:"1px solid #f0f0f0"}},{title:s(()=>[i(f)]),_:1})]),content:s(()=>[r("div",j,[i(R)])]),_:1}))}});const Y=u(z,[["__scopeId","data-v-d2a19803"]]);export{Y as default};
2
- //# sourceMappingURL=ProjectLogin.2905a0d6.js.map
@@ -1,2 +0,0 @@
1
- import{A as o}from"./index.49f6d313.js";import{d as r,c as a,a5 as p,f as d,u as f,ea as c,h as l,o as i,_ as u}from"./jwt-decode.esm.bcf2db26.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]="238710f7-7de0-4eca-9989-974385b91976",e._sentryDebugIdIdentifier="sentry-dbid-238710f7-7de0-4eca-9989-974385b91976")}catch{}})();const _=r({__name:"Steps",props:{stepsInfo:{},isPreview:{type:Boolean}},setup(e){const s=e,n=a(()=>s.stepsInfo?Array(s.stepsInfo.total).fill(null).map(()=>({label:"",description:""})):[]);return(t,m)=>t.stepsInfo?(i(),p("nav",{key:0,class:c(["p-steps",{"full-screen":!t.isPreview}])},[d(f(o),{current:t.stepsInfo.current-1,items:n.value,responsive:!1},null,8,["current","items"])],2)):l("",!0)}});const b=u(_,[["__scopeId","data-v-58fdd395"]]);export{b as S};
2
- //# sourceMappingURL=Steps.ad9ac163.js.map
@@ -1,2 +0,0 @@
1
- import{C as _}from"./CrudView.56ebce1a.js";import{o as l}from"./omniChatStore.13045a23.js";import{a as k}from"./ant-design.9bb31d85.js";import{a as C}from"./asyncComputed.06839806.js";import{a as m}from"./string.2f1abff3.js";import{G as T}from"./PhPencil.vue.aaf907d1.js";import{d as h,e5 as w,eb as I,c as x,k as E,aq as D,a5 as N,f as d,u as S,aR as v,o as A,ep as B}from"./jwt-decode.esm.bcf2db26.js";import"./router.e5052323.js";import{T as c}from"./tables.ecf1f359.js";import{_ as R}from"./TablesTabs.vue_vue_type_script_setup_true_lang.58bcff9a.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.4eb7d335.js";import"./constants.d30e64e7.js";import"./url.79c72bde.js";import"./PhDotsThreeVertical.vue.275748da.js";import"./index.15909af6.js";import"./record.6b6d4da9.js";import"./uuid.3f5b8acd.js";import"./PhCopySimple.vue.1c5a0760.js";import"./index.cf5ef754.js";import"./Card.0b4293e1.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="581caa2c-ad97-40b4-8e19-dfaa3511600a",t._sentryDebugIdIdentifier="sentry-dbid-581caa2c-ad97-40b4-8e19-dfaa3511600a")}catch{}})();const te=h({__name:"Tables",setup(t){const o=w(),a=I().params.projectId,{loading:p,result:b,refetch:s}=C(()=>c.list(a)),f=async e=>{const r=await c.create(a,e.name);o.push({name:"tableEditor",params:{tableId:r.id,projectId:a}})},y=x(()=>{var e,r;return{columns:[{title:"Table Name"},{title:"",align:"right"}],rows:(r=(e=b.value)==null?void 0:e.map(n=>({key:n.id,cells:[{type:"link",text:n.name,to:{name:"tableEditor",params:{tableId:n.id,projectId:a}}},{type:"actions",actions:[{icon:T,label:"Edit Table",onClick({key:i}){o.push({name:"tableEditor",params:{tableId:i,projectId:a}})}},{icon:B,label:"Delete",dangerous:!0,async onClick(){!await k("Are you sure you want to delete this table and all its data?")||(await n.delete(a,n.id),s())}}]}]})))!=null?r:[]}}),g=[{key:"name",label:"Table name",type:"text",format:e=>m(e,!0),blur:e=>m(e,!1)}];return E(()=>{const e=l.subscribe("tableCreated",()=>{s()});D(()=>{l.unsubscribe(e)})}),(e,r)=>(A(),N(v,null,[d(R),d(_,{"entity-name":"table",loading:S(p),"docs-path":"tools/tables",title:"Tables",description:"Create and manage your database tables here.","empty-title":"No tables here yet",table:y.value,fields:g,"create-button-text":"Create Table",create:f},null,8,["loading","table"])],64))}});export{te as default};
2
- //# sourceMappingURL=Tables.ad8c6f7a.js.map
@@ -1,2 +0,0 @@
1
- import{d as b,e5 as f,eb as m,o as c,a as p,b as l,a5 as _,ec as g,f as y,e as v,ed as k,u as n,aR as w}from"./jwt-decode.esm.bcf2db26.js";import{A as I,T}from"./Card.0b4293e1.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="d4b978f0-33c7-4cfc-9c6e-922c2946aa76",e._sentryDebugIdIdentifier="sentry-dbid-d4b978f0-33c7-4cfc-9c6e-922c2946aa76")}catch{}})();const R=b({__name:"TablesTabs",setup(e){const a=f(),t=m(),u=String(t.name),d=t.params.projectId,r=[{label:"Tables list",value:"tables"},{label:"Diagram view",value:"tables-diagram"},{label:"Run SQL",value:"sql"}],i=o=>{a.push({name:String(o),params:{projectId:d}})};return(o,D)=>(c(),p(n(T),{"active-key":n(u),options:r,"onUpdate:activeKey":i},{default:l(()=>[(c(),_(w,null,g(r,s=>y(n(I),{key:s.value,name:s.value},{tab:l(()=>[v("span",null,k(s.label),1)]),_:2},1032,["name"])),64))]),_:1},8,["active-key"]))}});export{R as _};
2
- //# sourceMappingURL=TablesTabs.vue_vue_type_script_setup_true_lang.58bcff9a.js.map
@@ -1,2 +0,0 @@
1
- import{f as l,e7 as d}from"./jwt-decode.esm.bcf2db26.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]="f650c4a7-cb54-4011-ae03-ff63636e1708",e._sentryDebugIdIdentifier="sentry-dbid-f650c4a7-cb54-4011-ae03-ff63636e1708")}catch{}})();var f={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"};const i=f;function o(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){u(e,a,n[a])})}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(t,n){var r=o({},t,n.attrs);return l(d,o({},r,{icon:i}),null)};c.displayName="UploadOutlined";c.inheritAttrs=!1;const p=c;export{p as U};
2
- //# sourceMappingURL=UploadOutlined.5f3b92b7.js.map
@@ -1,2 +0,0 @@
1
- import{S as i}from"./index.227be58a.js";import{A as p}from"./constants.d30e64e7.js";import{d as l,u as t,a5 as _,g as f,ed as c,h as C,eC as u,o as h,eG as m,_ as g}from"./jwt-decode.esm.bcf2db26.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]="d52a3dca-d61b-407a-aeb4-d9d400811025",a._sentryDebugIdIdentifier="sentry-dbid-d52a3dca-d61b-407a-aeb4-d9d400811025")}catch{}})();const v=["href"],b=u('<svg width="44" height="32" viewBox="0 0 256 256" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-e084ae6f><g clip-path="url(#clip0_405_116214)" data-v-e084ae6f><path d="M188.697 133.808L172.68 148.263C172.68 148.263 216.044 185.966 217.997 187.72C219.951 189.475 234.405 174.566 232.843 173.266C231.28 171.966 188.697 133.808 188.697 133.808Z" fill="#E36C7C" data-v-e084ae6f></path><path d="M188.697 133.808L172.68 148.263C172.68 148.263 216.044 185.966 217.997 187.72C219.951 189.475 234.405 174.566 232.843 173.266C231.28 171.966 188.697 133.808 188.697 133.808Z" fill="url(#paint0_linear_405_116214)" data-v-e084ae6f></path><path d="M218.387 91.2249L176.195 127.557L173.851 129.51C151.192 149.849 149.853 152.309 141.642 152.584L141.584 152.586C139.612 152.652 135.357 152.795 131.875 149.849C126.797 145.552 120.155 140.083 117.03 137.348C115.34 135.869 112.465 133.039 109.998 131.097C107.902 129.448 106.482 127.581 104.919 127.581C103.357 127.581 100.622 129.925 96.3246 133.832C92.0272 137.739 82.6511 146.333 82.6511 146.333L65.0712 161.569C65.0712 161.569 42.5857 180.688 36.7256 185.376C30.8656 190.064 16.5797 175.69 21.4895 171.703C21.9628 171.23 26.2429 167.755 29.7179 164.915C32.2165 162.84 34.2084 161.179 34.2084 161.179C34.9897 160.397 66.2433 133.051 66.2433 133.051L87.723 114.573C87.723 114.573 95.9339 106.094 105.701 106.094C108.826 106.094 112.83 106.485 126.015 118.205C129.531 121.33 131.485 122.542 135.782 126.409C137.345 127.816 139.852 130.316 140.861 130.316C141.882 130.316 143.986 128.363 145.549 127.023C145.549 127.023 195.897 84.4149 202.37 77.9421C207.839 72.4726 223.075 86.9273 218.387 91.2249Z" fill="url(#paint1_linear_405_116214)" data-v-e084ae6f></path><path d="M33.238 67.1372C31.2846 68.6564 23.9305 75.1737 22.2992 76.9039C19.3366 80.0417 21.3638 81.3905 25.6611 84.9065C29.9585 88.4225 57.8962 112.712 64.8542 118.963L79.9642 105.221L41.288 71.2331C36.5999 67.1372 35.1913 65.6179 33.238 67.1372Z" fill="url(#paint2_linear_405_116214)" data-v-e084ae6f></path></g><defs data-v-e084ae6f><linearGradient id="paint0_linear_405_116214" x1="172.68" y1="133.808" x2="183.059" y2="196.169" gradientUnits="userSpaceOnUse" data-v-e084ae6f><stop offset="0.114583" stop-color="#FF98A6" data-v-e084ae6f></stop><stop offset="1" stop-color="#E36C7C" data-v-e084ae6f></stop></linearGradient><linearGradient id="paint1_linear_405_116214" x1="219.271" y1="186.305" x2="206.115" y2="57.7298" gradientUnits="userSpaceOnUse" data-v-e084ae6f><stop stop-color="#E36C7C" data-v-e084ae6f></stop><stop offset="0.859375" stop-color="#FF98A6" data-v-e084ae6f></stop></linearGradient><linearGradient id="paint2_linear_405_116214" x1="20.8984" y1="66.56" x2="30.8589" y2="127.049" gradientUnits="userSpaceOnUse" data-v-e084ae6f><stop stop-color="#E36C7C" data-v-e084ae6f></stop><stop offset="0.859375" stop-color="#FF98A6" data-v-e084ae6f></stop></linearGradient><clipPath id="clip0_405_116214" data-v-e084ae6f><rect width="256" height="256" fill="white" data-v-e084ae6f></rect></clipPath></defs></svg><b data-v-e084ae6f>Abstra</b>',2),w=l({__name:"Watermark",props:{pageId:{},locale:{}},setup(a){var s;const e=a,r=window.location.hostname.split(".")[0],o=(s=i.instance)==null?void 0:s.showWatermark,n=new URLSearchParams({utm_source:"abstra_pages",utm_medium:"badge",utm_campaign:e.pageId,origin_subdomain:r});return(d,y)=>t(o)?(h(),_("a",{key:0,href:`${t(p).HOMEPAGE}?${t(n).toString()}`,target:"_blank",class:"watermark"},[f(c(t(m).translate("i18n_watermark_text",d.locale))+" ",1),b],8,v)):C("",!0)}});const S=g(w,[["__scopeId","data-v-e084ae6f"]]);export{S as W};
2
- //# sourceMappingURL=Watermark.a7a7af90.js.map
@@ -1,2 +0,0 @@
1
- import{d as k,r as B,k as I,o as n,a as u,b as p,f as A,g as P,ed as S,ea as C,eF as D,u as y,bR as N,eW as V,_ as W,eb as q,h as g,e as b,a5 as c,ec as v,ef as x,aR as w,I as E,J as F}from"./jwt-decode.esm.bcf2db26.js";import{S as L}from"./Steps.ad9ac163.js";import{W as $}from"./PlayerConfigProvider.bee6a260.js";import"./index.49f6d313.js";import"./colorHelpers.eb706cff.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[t]="e433f24c-6250-421f-96b6-302bf0306f70",o._sentryDebugIdIdentifier="sentry-dbid-e433f24c-6250-421f-96b6-302bf0306f70")}catch{}})();const K=k({__name:"ActionButton",props:{action:{},displayName:{},disabled:{type:Boolean},loading:{type:Boolean}},emits:["click"],setup(o,{emit:t}){const d=o,l=B(null);return I(()=>{l.value&&d.action.setElement(l.value)}),(r,i)=>(n(),u(y(V),null,{default:p(()=>[A(y(N),{ref_key:"element",ref:l,class:C(["next-button",r.disabled?"disabled":""]),loading:r.loading,disabled:r.disabled,onClick:i[0]||(i[0]=f=>t("click")),onKeydown:i[1]||(i[1]=D(f=>t("click"),["enter"]))},{default:p(()=>[P(S(r.displayName),1)]),_:1},8,["loading","disabled","class"])]),_:1}))}});const R=W(K,[["__scopeId","data-v-aea27bb7"]]),J={class:"form"},M={class:"form-wrapper"},O={key:0,class:"buttons"},z=k({__name:"WidgetPreview",setup(o){const t=q(),d=B([]);function l(e){return E[e]||F[e]||null}function r(e){try{const s=JSON.parse(e);if(s.component=l(s.type),!s.component)throw new Error(`Widget ${s.type} not found`);return s.component?s:null}catch{return null}}function i(){const e=t.query.widget;return Array.isArray(e)?e.map(r).filter(Boolean):[r(e)]}function f(){return t.query.steps==="true"}function _(){const e=t.query.button;return e?Array.isArray(e)?e:[e]:[]}const m=e=>({name:e,isDefault:!1,isFocused:!1,focusOnButton:()=>{},addKeydownListener:()=>{},setElement:()=>{}});return(e,s)=>(n(),u($,{"main-color":"#d14056",class:"preview",background:"#fbfbfb","font-family":"Inter",locale:"en"},{default:p(()=>[f()?(n(),u(L,{key:0,class:"steps","steps-info":{current:1,total:3},"is-preview":""})):g("",!0),b("div",J,[b("div",M,[(n(!0),c(w,null,v(i(),(a,h)=>(n(),c("div",{key:h,class:"widget"},[(n(),u(x(a.component),{"user-props":a.userProps,value:a.userProps.value,errors:d.value},null,8,["user-props","value","errors"]))]))),128))]),_().length?(n(),c("div",O,[(n(!0),c(w,null,v(_(),a=>(n(),u(R,{key:a,"display-name":m(a).name,action:m(a)},null,8,["display-name","action"]))),128))])):g("",!0)])]),_:1}))}});const U=W(z,[["__scopeId","data-v-d3d01da6"]]);export{U as default};
2
- //# sourceMappingURL=WidgetPreview.5d662c77.js.map
@@ -1,2 +0,0 @@
1
- import{el as n,M as y}from"./jwt-decode.esm.bcf2db26.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]="ca4255ea-9303-4c23-8144-e5f5417eccba",e._sentryDebugIdIdentifier="sentry-dbid-ca4255ea-9303-4c23-8144-e5f5417eccba")}catch{}})();function f(e){return n.exports.isArray(e)?e.length===0?"[ ]":"[ ... ]":n.exports.isObject(e)?Object.keys(e).length===0?"{ }":"{ ... }":n.exports.isString(e)?`'${e}'`:n.exports.isUndefined(e)||n.exports.isNull(e)?"None":e===!0?"True":e===!1?"False":`${e}`}function u(e){if(n.exports.isArray(e))return"array";if(n.exports.isObject(e))return"object";throw new Error("treeKey called with non-object and non-array")}function o(e,r=[],t){const l=t?`'${t}': ${f(e)}`:f(e);if(n.exports.isArray(e)){const i=u(e);return[{title:l,key:[...r,i].join("/"),children:e.flatMap((s,c)=>o(s,[...r,i,`${c}`]))}]}else if(n.exports.isObject(e)){const i=u(e);return[{title:l,key:[...r,i].join("/"),children:Object.entries(e).flatMap(([s,c])=>o(c,[...r,i,s],s))}]}else return[{title:l,key:r.join("/"),children:[]}]}function x(e,r){return new Promise(t=>{y.confirm({title:e,onOk:()=>t(!0),okText:r==null?void 0:r.okText,onCancel:()=>t(!1),cancelText:r==null?void 0:r.cancelText})})}export{x as a,o as t};
2
- //# sourceMappingURL=ant-design.9bb31d85.js.map
@@ -1,2 +0,0 @@
1
- var i=Object.defineProperty;var o=(a,t,e)=>t in a?i(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var d=(a,t,e)=>(o(a,typeof t!="symbol"?t+"":t,e),e);import{h as s}from"./router.e5052323.js";import"./jwt-decode.esm.bcf2db26.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]="7e5ec508-8ddc-44f8-a7b9-ccaa631fdd84",a._sentryDebugIdIdentifier="sentry-dbid-7e5ec508-8ddc-44f8-a7b9-ccaa631fdd84")}catch{}})();class u{constructor(){d(this,"urlPath","api-keys")}async create({projectId:t,name:e}){return s.post(`projects/${t}/${this.urlPath}`,{name:e})}async delete(t,e){await s.delete(`projects/${t}/${this.urlPath}/${e}`)}async list(t){return s.get(`projects/${t}/${this.urlPath}`)}}const r=new u;class n{constructor(t){this.dto=t}static async list(t){return(await r.list(t)).map(c=>new n(c))}static async create(t){const e=await r.create(t);return new n(e)}static async delete(t,e){await r.delete(t,e)}get id(){return this.dto.id}get name(){return this.dto.name}get createdAt(){return new Date(this.dto.createdAt)}get ownerId(){return this.dto.createdBy}get value(){var t;return(t=this.dto.value)!=null?t:null}}export{n as A};
2
- //# sourceMappingURL=apiKey.4f2a122c.js.map
@@ -1,2 +0,0 @@
1
- import{N as d,c as l}from"./jwt-decode.esm.bcf2db26.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]="f6e677cf-f2ef-4292-b05f-fff1bab31b92",r._sentryDebugIdIdentifier="sentry-dbid-f6e677cf-f2ef-4292-b05f-fff1bab31b92")}catch{}})();const i=r=>{const e=d({loading:!0,result:null,error:null}),n=t=>(e.value={loading:!1,result:t,error:null},t),s=t=>{e.value={loading:!1,result:null,error:t}},o=async()=>(e.value={loading:!0,result:e.value.result,error:null},r().then(n).catch(s));o();const u=l(()=>e.value.loading),a=l(()=>e.value.result),f=l(()=>e.value.error);return{loading:u,result:a,error:f,refetch:o}};export{i as a};
2
- //# sourceMappingURL=asyncComputed.06839806.js.map
@@ -1,2 +0,0 @@
1
- import"./jwt-decode.esm.bcf2db26.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]="924d016e-511e-4bf7-a992-bd467400a306",e._sentryDebugIdIdentifier="sentry-dbid-924d016e-511e-4bf7-a992-bd467400a306")}catch{}})();function p(e,t){const{r:n,g:r,b:o,usePound:s}=g(e);return w(c(n,-t),c(r,-t),c(o,-t),s)}function c(e,t){const n=e*(100+t*100)/100;return n>255?255:n<0?0:Math.round(n)}function E(e){return e.startsWith("#")||e.match(/^(rgb|hsl)/)}const v=(e,t)=>y(p(y(e),t)),P=e=>k(e)?v(e,.1):p(e,.1);function k(e){const{r:t,g:n,b:r}=g(e);return t*.299+n*.587+r*.114<186}function g(e){let t=!1;e[0]=="#"&&(e=e.slice(1),t=!0);const n=parseInt(e,16);return{r:n>>16&255,g:n>>8&255,b:n&255,usePound:t}}function y(e){const{r:t,g:n,b:r,usePound:o}=g(e);return w(255-t,255-n,255-r,o)}const w=(e,t,n,r=!0)=>(r?"#":"")+(n|t<<8|e<<16).toString(16).padStart(6,"0");function _(e){return new Promise((t,n)=>{const r=document.createElement("img");r.src=e,r.crossOrigin="Anonymous",r.style.display="none",document.body.appendChild(r);let o=0;r.onerror=s=>n(new Error(`Failed to load image: ${s}`)),r.onload=()=>{const{width:s,height:l}=r,a=document.createElement("canvas");a.width=s,a.height=l;const u=a.getContext("2d");if(!u)return t(!1);u.drawImage(r,0,0);const I=u.getImageData(0,0,a.width,a.height),{data:d}=I;let f,b,h,m;for(let i=0,x=d.length;i<x;i+=4)f=d[i],b=d[i+1],h=d[i+2],m=Math.floor((f+b+h)/3),o+=m;const D=Math.floor(o/(s*l));document.body.removeChild(r),t(D<=127)}})}export{k as a,_ as b,P as c,E as i,v as l};
2
- //# sourceMappingURL=colorHelpers.eb706cff.js.map
@@ -1,2 +0,0 @@
1
- import"./jwt-decode.esm.bcf2db26.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="c8282cd7-1bdd-4408-a394-2513a53afaa6",t._sentryDebugIdIdentifier="sentry-dbid-c8282cd7-1bdd-4408-a394-2513a53afaa6")}catch{}})();const a={HOMEPAGE:{}.VITE_HOMEPAGE_URL||"https://abstra.io",DOCS:{}.VITE_DOCS_URL||"https://abstra.io/docs",CLOUD:{}.VITE_CONSOLE_URL||"https://cloud.abstra.io",GITHUB:{}.VITE_GITHUB_URL||"https://github.com/abstra-app/abstra-lib"},r=t=>{if(!t)return a.DOCS;const s=t.startsWith("/")?t.slice(1):t;return`${a.DOCS}/${s}`};export{a as A,r as b};
2
- //# sourceMappingURL=constants.d30e64e7.js.map
@@ -1,2 +0,0 @@
1
- import"./jwt-decode.esm.bcf2db26.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="3c9dac53-df5e-4074-a665-a8cd082d4e27",e._sentryDebugIdIdentifier="sentry-dbid-3c9dac53-df5e-4074-a665-a8cd082d4e27")}catch{}})();function n(e,d){return e.toLocaleString(void 0,{hour12:!1,timeZoneName:"short",day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"long",...d})}export{n as g};
2
- //# sourceMappingURL=datetime.49213c3c.js.map
@@ -1,2 +0,0 @@
1
- import{X as s,dJ as i,dK as d}from"./jwt-decode.esm.bcf2db26.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="80cec148-c0be-4539-96b4-048e5a3681e9",e._sentryDebugIdIdentifier="sentry-dbid-80cec148-c0be-4539-96b4-048e5a3681e9")}catch{}})();const{DatePicker:n,WeekPicker:t,MonthPicker:r,YearPicker:m,TimePicker:f,QuarterPicker:c,RangePicker:o}=i(d),u=s(n,{WeekPicker:t,MonthPicker:r,YearPicker:m,RangePicker:o,TimePicker:f,QuarterPicker:c,install:e=>(e.component(n.name,n),e.component(o.name,o),e.component(r.name,r),e.component(t.name,t),e.component(c.name,c),e)});export{u as D,r as M,c as Q,o as R,t as W};
2
- //# sourceMappingURL=dayjs.9d20dd08.js.map
@@ -1,2 +0,0 @@
1
- var x=Object.defineProperty;var W=(o,e,t)=>e in o?x(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var i=(o,e,t)=>(W(o,typeof e!="symbol"?e+"":e,t),t);import{d as V,c as k,r as l,w as E,o as I,a as R,b as y,e as N,f as T,u as _,S as $,g as A,A as B,T as H,h as K,M as F,_ as J,i as S,j as z,k as Y,l as v,m as G,n as q,p as U,q as Q,s as X,t as Z,v as b,x as ee,y as te,z as oe,B as se,C as ne,P as ae,D as re,E as ie,F as ce,G as C,H as le,I as de,J as ue,K as pe}from"./jwt-decode.esm.bcf2db26.js";import{r as he,u as _e,g as fe,a as me}from"./workspaceStore.7283625b.js";import{s as ge}from"./index.227be58a.js";import{A as ve}from"./linters.1f3c2bdc.js";import{A as be}from"./constants.d30e64e7.js";import{d as P}from"./index.cf5ef754.js";import"./userStore.5dca7ff0.js";import"./url.79c72bde.js";import"./colorHelpers.eb706cff.js";import"./asyncComputed.06839806.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="d18f1af5-2c59-4494-8240-fe7b0546eaf9",o._sentryDebugIdIdentifier="sentry-dbid-d18f1af5-2c59-4494-8240-fe7b0546eaf9")}catch{}})();const ye={style:{"text-align":"center",padding:"20px"}},we=V({__name:"ConnectionModal",props:{open:{type:Boolean},port:{}},emits:["update:open"],setup(o,{emit:e}){const t=o,s=k({get:()=>t.open,set:a=>e("update:open",a)}),n=l(!1);return E(()=>t.open,a=>{if(a){n.value=!1;const r=setTimeout(()=>{n.value=!0},1e4);return()=>clearTimeout(r)}else n.value=!1}),(a,r)=>(I(),R(_(F),{open:s.value,"onUpdate:open":r[0]||(r[0]=d=>s.value=d),closable:!1,"mask-closable":!1,keyboard:!1,footer:null,width:400,centered:""},{default:y(()=>[N("div",ye,[T(_($),{size:"large"}),T(_(B),{level:4},{default:y(()=>[A(" Connecting to server... ")]),_:1}),n.value?(I(),R(_(H),{key:0},{default:y(()=>[A(" Are you sure Abstra is running? ")]),_:1})):K("",!0)])]),_:1},8,["open"]))}});const Ee=J(we,[["__scopeId","data-v-36743132"]]),p=class{constructor(){i(this,"ws",null);i(this,"reconnectTimer");i(this,"keepaliveInterval");i(this,"messageHandlers",new Set);i(this,"KEEPALIVE_INTERVAL",3e4);i(this,"RECONNECT_DELAY",1e3);this.connect()}static getInstance(){return p.instance||(p.instance=new p),p.instance}get url(){return"/_editor/api/codebase/events"}handleMessage(e){try{const t=JSON.parse(e.data),s=ve.parse(t);this.messageHandlers.forEach(n=>{try{n(s)}catch(a){S(a)}})}catch(t){S(t)}}handleClose(){this.clearTimers(),this.scheduleReconnect()}handleError(){this.clearTimers(),this.scheduleReconnect()}clearTimers(){this.keepaliveInterval&&(clearInterval(this.keepaliveInterval),this.keepaliveInterval=void 0),this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=void 0)}scheduleReconnect(){this.reconnectTimer||(this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=void 0,this.connect()},this.RECONNECT_DELAY))}startKeepalive(){this.keepaliveInterval=setInterval(()=>{this.sendKeepalive()},this.KEEPALIVE_INTERVAL)}sendKeepalive(){if(!this.ws||this.ws.readyState!==WebSocket.OPEN){this.handleError();return}try{this.ws.send(JSON.stringify({type:"keepalive"}))}catch(e){console.error("CodebaseEventsService: Failed to send keepalive:",e),this.handleError()}}async connect(){var e;if(((e=this.ws)==null?void 0:e.readyState)!==WebSocket.OPEN)try{this.ws=new WebSocket(this.url),this.ws.onopen=()=>this.startKeepalive(),this.ws.onclose=()=>this.handleClose(),this.ws.onerror=()=>this.handleError(),this.ws.onmessage=t=>this.handleMessage(t)}catch(t){console.error("CodebaseEventsService: Failed to create WebSocket:",t),this.scheduleReconnect()}}subscribe(e){return this.messageHandlers.add(e),()=>this.messageHandlers.delete(e)}isConnected(){var e;return((e=this.ws)==null?void 0:e.readyState)===WebSocket.OPEN}};let w=p;i(w,"instance",null);function Te(){const o=l(!1),e=l(null),t=l(null),s=w.getInstance(),n=g=>{e.value=g},a=()=>{o.value=s.isConnected()};let r;const d=setInterval(a,1e3);return z(()=>{r(),clearInterval(d)}),Y(()=>{r=s.subscribe(n),a()}),{isConnected:v(o),lastEvent:v(e),error:v(t),service:v(s)}}const Le={style:{height:"100vh","box-sizing":"border-box",width:"100%"}},Ce=V({__name:"App",setup(o){const e=Te(),t=l(!1);E(e.isConnected,async n=>{t.value=!n},{immediate:!0});const s={token:{colorPrimary:"#d14056",colorLink:"#d14056",colorLinkHover:"#aa3446"}};return(n,a)=>{const r=G("RouterView");return I(),R(_(q),{theme:s,"page-header":{ghost:!1}},{default:y(()=>[N("div",Le,[T(r)]),T(Ee,{open:t.value,"onUpdate:open":a[0]||(a[0]=d=>t.value=d)},null,8,["open"])]),_:1})}}});class O{async getLogin(){return await(await fetch("/_editor/api/login")).json()}async createLogin(e){return(await fetch("/_editor/api/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:e})})).json()}async deleteLogin(){await fetch("/_editor/api/login",{method:"DELETE"})}async getCloudProject(){return(await fetch("/_editor/api/login/info")).json()}async getPublicUrl(){try{return(await(await fetch("/_editor/api/login/public-url")).json()).public_url}catch{return null}}static getLoginUrl(e){return be.CLOUD+"/api-key?"+new URLSearchParams(e)}}const j="h97k86ks",m=class{static boot(e,t){m.booted||(P.Intercom({app_id:j}),P.boot({api_base:"https://api-iam.intercom.io",app_id:j,name:e,email:e,user_hash:t,hide_default_launcher:!0,custom_launcher_selector:".intercom-launcher"}),m.booted=!0)}static shutdown(){P.shutdown(),m.booted=!1}};let f=m;i(f,"booted",!1);const Pe={"console-url":"https://cloud.abstra.io"},ke=o=>{const e="VITE_"+U.toUpper(U.snakeCase(o)),t={VITE_SENTRY_RELEASE:"9c059415b4882b9fbe786abd047556fc681021eb",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}[e];return t||Pe[o]},h={consoleUrl:ke("console-url")},Ie=Q("cloud-project",()=>{const o=new O,e=l(null),t=l(null),s=k(()=>{var c,u;return(u=(c=e.value)==null?void 0:c.logged)!=null?u:!1}),n=l(null),a=k(()=>t.value?{project:`${h.consoleUrl}/projects/${t.value.id}`,users:`${h.consoleUrl}/projects/${t.value.id}/access-control?selected-panel=users`,roles:`${h.consoleUrl}/projects/${t.value.id}/access-control?selected-panel=roles`,builds:`${h.consoleUrl}/projects/${t.value.id}/builds`,login:`${h.consoleUrl}/api-key`}:null),r=async()=>{!s.value||(await o.deleteLogin(),window.open(location.origin+"/_editor","_self"))},d=async c=>{const u=await o.createLogin(c);e.value=u,u.logged&&await g()},g=async()=>t.value=await o.getCloudProject();(async()=>{n.value=await o.getPublicUrl()})();const D=async()=>e.value?e.value:(e.value=await o.getLogin(),e.value.logged);return E(()=>e.value,g),E(()=>e.value,async c=>{if(c&&"info"in c){const{email:u,intercomHash:M}=c.info;f.boot(u,M)}else f.shutdown()}),{loadLogin:D,createLogin:d,deleteLogin:r,publicUrl:n,loginInfo:e,cloudProject:t,isLogged:s,links:a}}),Re=he.map(o=>({...o,meta:{...o.meta,playerRoute:!0}})),L=X({history:Z("/"),routes:[{path:"/_editor/",name:"app",component:()=>b(()=>import("./Home.2871cae9.js"),["assets/Home.2871cae9.js","assets/jwt-decode.esm.bcf2db26.js","assets/jwt-decode.9f7a5511.css","assets/fetch.ce34efab.js","assets/polling.b53cbe3d.js","assets/Home.afb8d9a6.css"]),children:[{path:"",name:"editor",component:()=>b(()=>import("./NewEditor.bd4c258c.js"),["assets/NewEditor.bd4c258c.js","assets/asyncComputed.06839806.js","assets/jwt-decode.esm.bcf2db26.js","assets/jwt-decode.9f7a5511.css","assets/linters.1f3c2bdc.js","assets/workspaceStore.7283625b.js","assets/userStore.5dca7ff0.js","assets/url.79c72bde.js","assets/colorHelpers.eb706cff.js","assets/record.6b6d4da9.js","assets/PhPencilSimpleLine.vue.2c2058ce.js","assets/Card.0b4293e1.js","assets/router.e5052323.js","assets/index.cf5ef754.js","assets/metadata.77edb2ef.js","assets/PhUserList.vue.907c1a2b.js","assets/PhWebhooksLogo.vue.1134426a.js","assets/LogsController.35cad159.js","assets/ant-design.9bb31d85.js","assets/string.2f1abff3.js","assets/PhCopy.vue.59c3a353.js","assets/index.15909af6.js","assets/build.995e6997.js","assets/tables.ecf1f359.js","assets/repository.54d4a909.js","assets/LoadingOutlined.398021fd.js","assets/polling.b53cbe3d.js","assets/LogsController.fb0d96c2.css","assets/omniChatStore.13045a23.js","assets/uuid.3f5b8acd.js","assets/PhCopySimple.vue.1c5a0760.js","assets/omniChatStore.ec95fb81.css","assets/datetime.49213c3c.js","assets/OmniChat.6d6fed9c.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.ee29465c.js","assets/Logo.0fee0801.js","assets/Logo.b7d81119.css","assets/PhClockCounterClockwise.vue.4252e6be.js","assets/index.440bd76c.js","assets/index.fdbbf978.js","assets/OmniChat.10d00525.css","assets/AbstraButton.vue_vue_type_script_setup_true_lang.ad9e23f0.js","assets/constants.d30e64e7.js","assets/PhBookBookmark.vue.b9569168.js","assets/PhChats.vue.bb8ced1d.js","assets/index.227be58a.js","assets/PhArrowSquareOut.vue.06e1e087.js","assets/PhRocket.vue.67935a85.js","assets/PhSignOut.vue.87084f39.js","assets/CloseCircleOutlined.196a309a.js","assets/vue-flow-background.939eca5f.js","assets/SaveButton.5a81e6f5.js","assets/ExclamationCircleOutlined.3ef65f87.js","assets/SaveButton.932ac6b8.css","assets/ContentLayout.69b8ab09.js","assets/ContentLayout.cdae7d24.css","assets/fetch.ce34efab.js","assets/repository.f2f5d880.js","assets/View.vue_vue_type_script_setup_true_lang.a36086e8.js","assets/CrudView.56ebce1a.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.4eb7d335.js","assets/PhDotsThreeVertical.vue.275748da.js","assets/CrudView.c883bb05.css","assets/PhPencil.vue.aaf907d1.js","assets/PlayerNavbar.b15bb1f3.js","assets/PlayerNavbar.c456a4e0.css","assets/PlayerConfigProvider.bee6a260.js","assets/PlayerConfigProvider.1ce9d3b1.css","assets/LoadingContainer.e6a98e2f.js","assets/LoadingContainer.56fa997a.css","assets/files.5dcc78be.js","assets/PhGear.vue.ab14d56a.js","assets/tasksController.64f43cce.js","assets/toggleHighContrast.a33c9afc.js","assets/toggleHighContrast.30d77c87.css","assets/PhPencilSimple.vue.2580bcf9.js","assets/PhFolderPlus.vue.aa7bc872.js","assets/PhArrowCounterClockwise.vue.2706c012.js","assets/FormRunner.1a6e12cb.js","assets/Login.vue_vue_type_script_setup_true_lang.a8986f39.js","assets/CircularLoading.e2f7dd80.js","assets/CircularLoading.a8fe2dc6.css","assets/Login.75d13f6c.css","assets/Steps.ad9ac163.js","assets/index.49f6d313.js","assets/Steps.2880920a.css","assets/Watermark.a7a7af90.js","assets/Watermark.b0916e90.css","assets/FormRunner.714ce2c1.css","assets/redirect.b8ba406b.js","assets/NewEditor.b7bcb815.css"])},{path:"project-login",name:"projectLogin",component:()=>b(()=>import("./ProjectLogin.2905a0d6.js"),["assets/ProjectLogin.2905a0d6.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.ee29465c.js","assets/Logo.0fee0801.js","assets/jwt-decode.esm.bcf2db26.js","assets/jwt-decode.9f7a5511.css","assets/Logo.b7d81119.css","assets/BaseLayout.d4459d3a.js","assets/BaseLayout.e1744dcc.css","assets/index.ad15e486.js","assets/Breadcrumb.2d9d636f.js","assets/index.440bd76c.js","assets/index.15909af6.js","assets/workspaceStore.7283625b.js","assets/userStore.5dca7ff0.js","assets/url.79c72bde.js","assets/colorHelpers.eb706cff.js","assets/index.227be58a.js","assets/linters.1f3c2bdc.js","assets/asyncComputed.06839806.js","assets/constants.d30e64e7.js","assets/index.cf5ef754.js","assets/ProjectLogin.21a71354.css"]),meta:{title:"Abstra Editor",allowUnauthenticated:!0}},{path:":pathMatch(.*)*",name:"editorFallback",redirect:"/_editor/"}]},{path:"/:path(.*)*",name:"form",component:()=>b(()=>import("./App.6c9e1d73.js"),["assets/App.6c9e1d73.js","assets/App.vue_vue_type_style_index_0_lang.46bbdba5.js","assets/userStore.5dca7ff0.js","assets/jwt-decode.esm.bcf2db26.js","assets/jwt-decode.9f7a5511.css","assets/PlayerConfigProvider.bee6a260.js","assets/colorHelpers.eb706cff.js","assets/PlayerConfigProvider.1ce9d3b1.css","assets/workspaceStore.7283625b.js","assets/url.79c72bde.js","assets/App.0c2736ee.css"]),children:Re}],scrollBehavior(o){if(o.hash)return{el:o.hash}}}),Ae=fe(L);L.beforeEach(async(o,e)=>{if(await _e().actions.fetch(),o.meta.playerRoute)return Ae(o,e);ee(o,e);const t=Ie();if(!o.meta.allowUnauthenticated&&!t.isLogged&&!await t.loadLogin()){const s={redirect:location.origin+"/_editor/project-login"};window.open(O.getLoginUrl(s),"_self")}});(async()=>{await ge();const o=await me(),e=te(),t=oe({render:()=>le(Ce)});se.init(),ne(t,L,o),t.use(L),t.use(ae),t.use(e),t.mount("#app"),t.component("VSelect",re),t.component("Markdown",ie),t.component("Message",ce),C(t,de),C(t,ue),C(t,pe)})();export{h as E,Te as a,Ie as u};
2
- //# sourceMappingURL=editor.a151d549.js.map
@@ -1,2 +0,0 @@
1
- import{C as r,E as t,K as i,a as b,M as f,c,P as l,R as y,S as g,b as u,T as k,U as p,e as w,l as D}from"./toggleHighContrast.a33c9afc.js";import"./jwt-decode.esm.bcf2db26.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="d850bec1-6762-47bb-9ddf-85837b5052b8",e._sentryDebugIdIdentifier="sentry-dbid-d850bec1-6762-47bb-9ddf-85837b5052b8")}catch{}})();export{r as CancellationTokenSource,t as Emitter,i as KeyCode,b as KeyMod,f as MarkerSeverity,c as MarkerTag,l as Position,y as Range,g as Selection,u as SelectionDirection,k as Token,p as Uri,w as editor,D as languages};
2
- //# sourceMappingURL=editor.main.f809eb34.js.map
@@ -1,2 +0,0 @@
1
- import"./jwt-decode.esm.bcf2db26.js";(function(){try{var d=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(d._sentryDebugIds=d._sentryDebugIds||{},d._sentryDebugIds[e]="24a7cdd9-b412-4d0e-9aeb-f0dbdd88dc9f",d._sentryDebugIdIdentifier="sentry-dbid-24a7cdd9-b412-4d0e-9aeb-f0dbdd88dc9f")}catch{}})();const f=(...d)=>window.fetch(...d);export{f as l};
2
- //# sourceMappingURL=fetch.ce34efab.js.map
@@ -1,2 +0,0 @@
1
- import{d as V,am as u,c as i,o as r,a5 as n,a7 as y,h as H,e6 as A,e as o,a6 as f,ea as g}from"./jwt-decode.esm.bcf2db26.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]="98efc5d4-9adf-4c4f-adca-1394d23fc8d8",a._sentryDebugIdIdentifier="sentry-dbid-98efc5d4-9adf-4c4f-adca-1394d23fc8d8")}catch{}})();const M=["width","height","fill","transform"],Z={key:0},w=o("path",{d:"M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160ZM60,212V44h76V92a12,12,0,0,0,12,12h48V212Z"},null,-1),S=[w],b={key:1},k=o("path",{d:"M208,88H152V32Z",opacity:"0.2"},null,-1),C=o("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Z"},null,-1),_=[k,C],I={key:2},z=o("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44Z"},null,-1),B=[z],N={key:3},P=o("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Z"},null,-1),D=[P],j={key:4},x=o("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Z"},null,-1),F=[x],$={key:5},E=o("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Z"},null,-1),W=[E],q={name:"PhFile"},J=V({...q,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(a){const e=a,d=u("weight","regular"),c=u("size","1em"),l=u("color","currentColor"),p=u("mirrored",!1),s=i(()=>{var t;return(t=e.weight)!=null?t:d}),h=i(()=>{var t;return(t=e.size)!=null?t:c}),m=i(()=>{var t;return(t=e.color)!=null?t:l}),v=i(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(t,O)=>(r(),n("svg",A({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:m.value,transform:v.value},t.$attrs),[y(t.$slots,"default"),s.value==="bold"?(r(),n("g",Z,S)):s.value==="duotone"?(r(),n("g",b,_)):s.value==="fill"?(r(),n("g",I,B)):s.value==="light"?(r(),n("g",N,D)):s.value==="regular"?(r(),n("g",j,F)):s.value==="thin"?(r(),n("g",$,W)):H("",!0)],16,M))}}),K=V({__name:"ScrollArea",props:{innerClass:{},outerClass:{},outerStyle:{},innerStyle:{}},setup(a){const e=a,d=i(()=>e.outerStyle?{position:"relative",...e.outerStyle}:{position:"relative"}),c=i(()=>{var l;return{position:"absolute",inset:0,overflow:"auto",...(l=e.innerStyle)!=null?l:{}}});return(l,p)=>(r(),n("div",{style:f(d.value),class:g(l.outerClass)},[o("div",{style:f(c.value),class:g(l.innerClass)},[y(l.$slots,"default")],6)],6))}});function L(a){var e;return(e=a.split(/\/|\\/).pop())!=null?e:""}function Q(a){return a.length===0?".":a[a.length-1]}function R(a){return[".png",".svg",".jpg",".jpeg",".ico",".webp"].some(e=>a.endsWith(e))}export{J as I,K as _,L as a,Q as f,R as i};
2
- //# sourceMappingURL=files.5dcc78be.js.map
@@ -1,2 +0,0 @@
1
- import{d as P,ag as T,e0 as L,e1 as Q,c as o,r as O,w as W,aQ as X,f,X as m,aR as q,aj as j,cV as h,av as G,bt as B,aM as H,ah as J}from"./jwt-decode.esm.bcf2db26.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},c=new Error().stack;c&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[c]="699314c8-fd40-443a-a638-d43eed30be0b",e._sentryDebugIdIdentifier="sentry-dbid-699314c8-fd40-443a-a638-d43eed30be0b")}catch{}})();const K={small:8,middle:16,large:24},U=()=>({prefixCls:String,size:{type:[String,Number,Array]},direction:G.oneOf(B("horizontal","vertical")).def("horizontal"),align:G.oneOf(B("start","end","center","baseline")),wrap:H()});function Y(e){return typeof e=="string"?K[e]:e||0}const r=P({compatConfig:{MODE:3},name:"ASpace",inheritAttrs:!1,props:U(),slots:Object,setup(e,c){let{slots:l,attrs:g}=c;const{prefixCls:n,space:y,direction:w}=T("space",e),[E,F]=L(n),x=Q(),s=o(()=>{var a,t,i;return(i=(a=e.size)!==null&&a!==void 0?a:(t=y==null?void 0:y.value)===null||t===void 0?void 0:t.size)!==null&&i!==void 0?i:"small"}),b=O(),u=O();W(s,()=>{[b.value,u.value]=(Array.isArray(s.value)?s.value:[s.value,s.value]).map(a=>Y(a))},{immediate:!0});const z=o(()=>e.align===void 0&&e.direction==="horizontal"?"center":e.align),R=o(()=>J(n.value,F.value,`${n.value}-${e.direction}`,{[`${n.value}-rtl`]:w.value==="rtl",[`${n.value}-align-${z.value}`]:z.value})),V=o(()=>w.value==="rtl"?"marginLeft":"marginRight"),k=o(()=>{const a={};return x.value&&(a.columnGap=`${b.value}px`,a.rowGap=`${u.value}px`),m(m({},a),e.wrap&&{flexWrap:"wrap",marginBottom:`${-u.value}px`})});return()=>{var a,t;const{wrap:i,direction:M="horizontal"}=e,_=(a=l.default)===null||a===void 0?void 0:a.call(l),C=X(_),I=C.length;if(I===0)return null;const d=(t=l.split)===null||t===void 0?void 0:t.call(l),A=`${n.value}-item`,D=b.value,S=I-1;return f("div",j(j({},g),{},{class:[R.value,g.class],style:[k.value,g.style]}),[C.map((N,v)=>{let $=_.indexOf(N);$===-1&&($=`$$space-${v}`);let p={};return x.value||(M==="vertical"?v<S&&(p={marginBottom:`${D/(d?2:1)}px`}):p=m(m({},v<S&&{[V.value]:`${D/(d?2:1)}px`}),i&&{paddingBottom:`${u.value}px`})),E(f(q,{key:$},[f("div",{class:A,style:p},[N]),v<S&&d&&f("span",{class:`${A}-split`,style:p},[d])]))})])}}});r.Compact=h;r.install=function(e){return e.component(r.name,r),e.component(h.name,h),e};const ee=r;export{ee as A};
2
- //# sourceMappingURL=index.15909af6.js.map
@@ -1,2 +0,0 @@
1
- var ke=Object.defineProperty;var Ee=(e,t,s)=>t in e?ke(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var q=(e,t,s)=>(Ee(e,typeof t!="symbol"?t+"":t,s),s);import{i as Te}from"./jwt-decode.esm.bcf2db26.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]="63dfdfb3-9d22-4f55-bfed-f859c80f0e5c",e._sentryDebugIdIdentifier="sentry-dbid-63dfdfb3-9d22-4f55-bfed-f859c80f0e5c")}catch{}})();class N extends Error{}N.prototype.name="InvalidTokenError";function Ie(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,s)=>{let i=s.charCodeAt(0).toString(16).toUpperCase();return i.length<2&&(i="0"+i),"%"+i}))}function Re(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return Ie(t)}catch{return atob(t)}}function xe(e,t){if(typeof e!="string")throw new N("Invalid token specified: must be a string");t||(t={});const s=t.header===!0?0:1,i=e.split(".")[s];if(typeof i!="string")throw new N(`Invalid token specified: missing part #${s+1}`);let r;try{r=Re(i)}catch(n){throw new N(`Invalid token specified: invalid base64 for part #${s+1} (${n.message})`)}try{return JSON.parse(r)}catch(n){throw new N(`Invalid token specified: invalid json for part #${s+1} (${n.message})`)}}var Ce={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{}},S,v,$=(e=>(e[e.NONE=0]="NONE",e[e.ERROR=1]="ERROR",e[e.WARN=2]="WARN",e[e.INFO=3]="INFO",e[e.DEBUG=4]="DEBUG",e))($||{});(e=>{function t(){S=3,v=Ce}e.reset=t;function s(r){if(!(0<=r&&r<=4))throw new Error("Invalid log level");S=r}e.setLevel=s;function i(r){v=r}e.setLogger=i})($||($={}));var d=class m{constructor(t){this._name=t}debug(...t){S>=4&&v.debug(m._format(this._name,this._method),...t)}info(...t){S>=3&&v.info(m._format(this._name,this._method),...t)}warn(...t){S>=2&&v.warn(m._format(this._name,this._method),...t)}error(...t){S>=1&&v.error(m._format(this._name,this._method),...t)}throw(t){throw this.error(t),t}create(t){const s=Object.create(this);return s._method=t,s.debug("begin"),s}static createStatic(t,s){const i=new m(`${t}.${s}`);return i.debug("begin"),i}static _format(t,s){const i=`[${t}]`;return s?`${i} ${s}:`:i}static debug(t,...s){S>=4&&v.debug(m._format(t),...s)}static info(t,...s){S>=3&&v.info(m._format(t),...s)}static warn(t,...s){S>=2&&v.warn(m._format(t),...s)}static error(t,...s){S>=1&&v.error(m._format(t),...s)}};$.reset();var Ue="10000000-1000-4000-8000-100000000000",ee=e=>btoa([...new Uint8Array(e)].map(t=>String.fromCharCode(t)).join("")),A=class M{static _randomWord(){const t=new Uint32Array(1);return crypto.getRandomValues(t),t[0]}static generateUUIDv4(){return Ue.replace(/[018]/g,s=>(+s^M._randomWord()&15>>+s/4).toString(16)).replace(/-/g,"")}static generateCodeVerifier(){return M.generateUUIDv4()+M.generateUUIDv4()+M.generateUUIDv4()}static async generateCodeChallenge(t){if(!crypto.subtle)throw new Error("Crypto.subtle is available only in secure contexts (HTTPS).");try{const i=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",i);return ee(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}catch(s){throw d.error("CryptoUtils.generateCodeChallenge",s),s}}static generateBasicAuth(t,s){const r=new TextEncoder().encode([t,s].join(":"));return ee(r)}},E=class{constructor(e){this._name=e,this._logger=new d(`Event('${this._name}')`),this._callbacks=[]}addHandler(e){return this._callbacks.push(e),()=>this.removeHandler(e)}removeHandler(e){const t=this._callbacks.lastIndexOf(e);t>=0&&this._callbacks.splice(t,1)}async raise(...e){this._logger.debug("raise:",...e);for(const t of this._callbacks)await t(...e)}},K=class{static decode(e){try{return xe(e)}catch(t){throw d.error("JwtUtils.decode",t),t}}},te=class{static center({...e}){var t,s,i;return e.width==null&&(e.width=(t=[800,720,600,480].find(r=>r<=window.outerWidth/1.618))!=null?t:360),(s=e.left)!=null||(e.left=Math.max(0,Math.round(window.screenX+(window.outerWidth-e.width)/2))),e.height!=null&&((i=e.top)!=null||(e.top=Math.max(0,Math.round(window.screenY+(window.outerHeight-e.height)/2)))),e}static serialize(e){return Object.entries(e).filter(([,t])=>t!=null).map(([t,s])=>`${t}=${typeof s!="boolean"?s:s?"yes":"no"}`).join(",")}},k=class H extends E{constructor(){super(...arguments),this._logger=new d(`Timer('${this._name}')`),this._timerHandle=null,this._expiration=0,this._callback=()=>{const t=this._expiration-H.getEpochTime();this._logger.debug("timer completes in",t),this._expiration<=H.getEpochTime()&&(this.cancel(),super.raise())}}static getEpochTime(){return Math.floor(Date.now()/1e3)}init(t){const s=this._logger.create("init");t=Math.max(Math.floor(t),1);const i=H.getEpochTime()+t;if(this.expiration===i&&this._timerHandle){s.debug("skipping since already initialized for expiration at",this.expiration);return}this.cancel(),s.debug("using duration",t),this._expiration=i;const r=Math.min(t,5);this._timerHandle=setInterval(this._callback,r*1e3)}get expiration(){return this._expiration}cancel(){this._logger.create("cancel"),this._timerHandle&&(clearInterval(this._timerHandle),this._timerHandle=null)}},z=class{static readParams(e,t="query"){if(!e)throw new TypeError("Invalid URL");const i=new URL(e,"http://127.0.0.1")[t==="fragment"?"hash":"search"];return new URLSearchParams(i.slice(1))}},B=";",O=class extends Error{constructor(e,t){var s,i,r;if(super(e.error_description||e.error||""),this.form=t,this.name="ErrorResponse",!e.error)throw d.error("ErrorResponse","No error passed"),new Error("No error passed");this.error=e.error,this.error_description=(s=e.error_description)!=null?s:null,this.error_uri=(i=e.error_uri)!=null?i:null,this.state=e.userState,this.session_state=(r=e.session_state)!=null?r:null,this.url_state=e.url_state}},X=class extends Error{constructor(e){super(e),this.name="ErrorTimeout"}},Pe=class{constructor(e){this._logger=new d("AccessTokenEvents"),this._expiringTimer=new k("Access token expiring"),this._expiredTimer=new k("Access token expired"),this._expiringNotificationTimeInSeconds=e.expiringNotificationTimeInSeconds}load(e){const t=this._logger.create("load");if(e.access_token&&e.expires_in!==void 0){const s=e.expires_in;if(t.debug("access token present, remaining duration:",s),s>0){let r=s-this._expiringNotificationTimeInSeconds;r<=0&&(r=1),t.debug("registering expiring timer, raising in",r,"seconds"),this._expiringTimer.init(r)}else t.debug("canceling existing expiring timer because we're past expiration."),this._expiringTimer.cancel();const i=s+1;t.debug("registering expired timer, raising in",i,"seconds"),this._expiredTimer.init(i)}else this._expiringTimer.cancel(),this._expiredTimer.cancel()}unload(){this._logger.debug("unload: canceling existing access token timers"),this._expiringTimer.cancel(),this._expiredTimer.cancel()}addAccessTokenExpiring(e){return this._expiringTimer.addHandler(e)}removeAccessTokenExpiring(e){this._expiringTimer.removeHandler(e)}addAccessTokenExpired(e){return this._expiredTimer.addHandler(e)}removeAccessTokenExpired(e){this._expiredTimer.removeHandler(e)}},Oe=class{constructor(e,t,s,i,r){this._callback=e,this._client_id=t,this._intervalInSeconds=i,this._stopOnError=r,this._logger=new d("CheckSessionIFrame"),this._timer=null,this._session_state=null,this._message=o=>{o.origin===this._frame_origin&&o.source===this._frame.contentWindow&&(o.data==="error"?(this._logger.error("error message from check session op iframe"),this._stopOnError&&this.stop()):o.data==="changed"?(this._logger.debug("changed message from check session op iframe"),this.stop(),this._callback()):this._logger.debug(o.data+" message from check session op iframe"))};const n=new URL(s);this._frame_origin=n.origin,this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="fixed",this._frame.style.left="-1000px",this._frame.style.top="0",this._frame.width="0",this._frame.height="0",this._frame.src=n.href}load(){return new Promise(e=>{this._frame.onload=()=>{e()},window.document.body.appendChild(this._frame),window.addEventListener("message",this._message,!1)})}start(e){if(this._session_state===e)return;this._logger.create("start"),this.stop(),this._session_state=e;const t=()=>{!this._frame.contentWindow||!this._session_state||this._frame.contentWindow.postMessage(this._client_id+" "+this._session_state,this._frame_origin)};t(),this._timer=setInterval(t,this._intervalInSeconds*1e3)}stop(){this._logger.create("stop"),this._session_state=null,this._timer&&(clearInterval(this._timer),this._timer=null)}},ne=class{constructor(){this._logger=new d("InMemoryWebStorage"),this._data={}}clear(){this._logger.create("clear"),this._data={}}getItem(e){return this._logger.create(`getItem('${e}')`),this._data[e]}setItem(e,t){this._logger.create(`setItem('${e}')`),this._data[e]=t}removeItem(e){this._logger.create(`removeItem('${e}')`),delete this._data[e]}get length(){return Object.getOwnPropertyNames(this._data).length}key(e){return Object.getOwnPropertyNames(this._data)[e]}},Y=class{constructor(e=[],t=null,s={}){this._jwtHandler=t,this._extraHeaders=s,this._logger=new d("JsonService"),this._contentTypes=[],this._contentTypes.push(...e,"application/json"),t&&this._contentTypes.push("application/jwt")}async fetchWithTimeout(e,t={}){const{timeoutInSeconds:s,...i}=t;if(!s)return await fetch(e,i);const r=new AbortController,n=setTimeout(()=>r.abort(),s*1e3);try{return await fetch(e,{...t,signal:r.signal})}catch(o){throw o instanceof DOMException&&o.name==="AbortError"?new X("Network timed out"):o}finally{clearTimeout(n)}}async getJson(e,{token:t,credentials:s}={}){const i=this._logger.create("getJson"),r={Accept:this._contentTypes.join(", ")};t&&(i.debug("token passed, setting Authorization header"),r.Authorization="Bearer "+t),this.appendExtraHeaders(r);let n;try{i.debug("url:",e),n=await this.fetchWithTimeout(e,{method:"GET",headers:r,credentials:s})}catch(c){throw i.error("Network Error"),c}i.debug("HTTP response received, status",n.status);const o=n.headers.get("Content-Type");if(o&&!this._contentTypes.find(c=>o.startsWith(c))&&i.throw(new Error(`Invalid response Content-Type: ${o!=null?o:"undefined"}, from URL: ${e}`)),n.ok&&this._jwtHandler&&(o==null?void 0:o.startsWith("application/jwt")))return await this._jwtHandler(await n.text());let a;try{a=await n.json()}catch(c){throw i.error("Error parsing JSON response",c),n.ok?c:new Error(`${n.statusText} (${n.status})`)}if(!n.ok)throw i.error("Error from server:",a),a.error?new O(a):new Error(`${n.statusText} (${n.status}): ${JSON.stringify(a)}`);return a}async postForm(e,{body:t,basicAuth:s,timeoutInSeconds:i,initCredentials:r}){const n=this._logger.create("postForm"),o={Accept:this._contentTypes.join(", "),"Content-Type":"application/x-www-form-urlencoded"};s!==void 0&&(o.Authorization="Basic "+s),this.appendExtraHeaders(o);let a;try{n.debug("url:",e),a=await this.fetchWithTimeout(e,{method:"POST",headers:o,body:t,timeoutInSeconds:i,credentials:r})}catch(g){throw n.error("Network error"),g}n.debug("HTTP response received, status",a.status);const c=a.headers.get("Content-Type");if(c&&!this._contentTypes.find(g=>c.startsWith(g)))throw new Error(`Invalid response Content-Type: ${c!=null?c:"undefined"}, from URL: ${e}`);const l=await a.text();let h={};if(l)try{h=JSON.parse(l)}catch(g){throw n.error("Error parsing JSON response",g),a.ok?g:new Error(`${a.statusText} (${a.status})`)}if(!a.ok)throw n.error("Error from server:",h),h.error?new O(h,t):new Error(`${a.statusText} (${a.status}): ${JSON.stringify(h)}`);return h}appendExtraHeaders(e){const t=this._logger.create("appendExtraHeaders"),s=Object.keys(this._extraHeaders),i=["authorization","accept","content-type"];s.length!==0&&s.forEach(r=>{if(i.includes(r.toLocaleLowerCase())){t.warn("Protected header could not be overridden",r,i);return}const n=typeof this._extraHeaders[r]=="function"?this._extraHeaders[r]():this._extraHeaders[r];n&&n!==""&&(e[r]=n)})}},Ae=class{constructor(e){this._settings=e,this._logger=new d("MetadataService"),this._signingKeys=null,this._metadata=null,this._metadataUrl=this._settings.metadataUrl,this._jsonService=new Y(["application/jwk-set+json"],null,this._settings.extraHeaders),this._settings.signingKeys&&(this._logger.debug("using signingKeys from settings"),this._signingKeys=this._settings.signingKeys),this._settings.metadata&&(this._logger.debug("using metadata from settings"),this._metadata=this._settings.metadata),this._settings.fetchRequestCredentials&&(this._logger.debug("using fetchRequestCredentials from settings"),this._fetchRequestCredentials=this._settings.fetchRequestCredentials)}resetSigningKeys(){this._signingKeys=null}async getMetadata(){const e=this._logger.create("getMetadata");if(this._metadata)return e.debug("using cached values"),this._metadata;if(!this._metadataUrl)throw e.throw(new Error("No authority or metadataUrl configured on settings")),null;e.debug("getting metadata from",this._metadataUrl);const t=await this._jsonService.getJson(this._metadataUrl,{credentials:this._fetchRequestCredentials});return e.debug("merging remote JSON with seed metadata"),this._metadata=Object.assign({},this._settings.metadataSeed,t),this._metadata}getIssuer(){return this._getMetadataProperty("issuer")}getAuthorizationEndpoint(){return this._getMetadataProperty("authorization_endpoint")}getUserInfoEndpoint(){return this._getMetadataProperty("userinfo_endpoint")}getTokenEndpoint(e=!0){return this._getMetadataProperty("token_endpoint",e)}getCheckSessionIframe(){return this._getMetadataProperty("check_session_iframe",!0)}getEndSessionEndpoint(){return this._getMetadataProperty("end_session_endpoint",!0)}getRevocationEndpoint(e=!0){return this._getMetadataProperty("revocation_endpoint",e)}getKeysEndpoint(e=!0){return this._getMetadataProperty("jwks_uri",e)}async _getMetadataProperty(e,t=!1){const s=this._logger.create(`_getMetadataProperty('${e}')`),i=await this.getMetadata();if(s.debug("resolved"),i[e]===void 0){if(t===!0){s.warn("Metadata does not contain optional property");return}s.throw(new Error("Metadata does not contain property "+e))}return i[e]}async getSigningKeys(){const e=this._logger.create("getSigningKeys");if(this._signingKeys)return e.debug("returning signingKeys from cache"),this._signingKeys;const t=await this.getKeysEndpoint(!1);e.debug("got jwks_uri",t);const s=await this._jsonService.getJson(t);if(e.debug("got key set",s),!Array.isArray(s.keys))throw e.throw(new Error("Missing keys on keyset")),null;return this._signingKeys=s.keys,this._signingKeys}},oe=class{constructor({prefix:e="oidc.",store:t=localStorage}={}){this._logger=new d("WebStorageStateStore"),this._store=t,this._prefix=e}async set(e,t){this._logger.create(`set('${e}')`),e=this._prefix+e,await this._store.setItem(e,t)}async get(e){return this._logger.create(`get('${e}')`),e=this._prefix+e,await this._store.getItem(e)}async remove(e){this._logger.create(`remove('${e}')`),e=this._prefix+e;const t=await this._store.getItem(e);return await this._store.removeItem(e),t}async getAllKeys(){this._logger.create("getAllKeys");const e=await this._store.length,t=[];for(let s=0;s<e;s++){const i=await this._store.key(s);i&&i.indexOf(this._prefix)===0&&t.push(i.substr(this._prefix.length))}return t}},qe="code",Ne="openid",Me="client_secret_post",je=60*15,V=class{constructor({authority:e,metadataUrl:t,metadata:s,signingKeys:i,metadataSeed:r,client_id:n,client_secret:o,response_type:a=qe,scope:c=Ne,redirect_uri:l,post_logout_redirect_uri:h,client_authentication:g=Me,prompt:_,display:w,max_age:T,ui_locales:I,acr_values:R,resource:x,response_mode:C,filterProtocolClaims:f=!0,loadUserInfo:u=!1,staleStateAgeInSeconds:y=je,mergeClaimsStrategy:b={array:"replace"},disablePKCE:p=!1,stateStore:U,revokeTokenAdditionalContentTypes:we,fetchRequestCredentials:Z,refreshTokenAllowedScope:me,extraQueryParams:Se={},extraTokenParams:ve={},extraHeaders:ye={}}){if(this.authority=e,t?this.metadataUrl=t:(this.metadataUrl=e,e&&(this.metadataUrl.endsWith("/")||(this.metadataUrl+="/"),this.metadataUrl+=".well-known/openid-configuration")),this.metadata=s,this.metadataSeed=r,this.signingKeys=i,this.client_id=n,this.client_secret=o,this.response_type=a,this.scope=c,this.redirect_uri=l,this.post_logout_redirect_uri=h,this.client_authentication=g,this.prompt=_,this.display=w,this.max_age=T,this.ui_locales=I,this.acr_values=R,this.resource=x,this.response_mode=C,this.filterProtocolClaims=f!=null?f:!0,this.loadUserInfo=!!u,this.staleStateAgeInSeconds=y,this.mergeClaimsStrategy=b,this.disablePKCE=!!p,this.revokeTokenAdditionalContentTypes=we,this.fetchRequestCredentials=Z||"same-origin",U)this.stateStore=U;else{const be=typeof window<"u"?window.localStorage:new ne;this.stateStore=new oe({store:be})}this.refreshTokenAllowedScope=me,this.extraQueryParams=Se,this.extraTokenParams=ve,this.extraHeaders=ye}},He=class{constructor(e,t){this._settings=e,this._metadataService=t,this._logger=new d("UserInfoService"),this._getClaimsFromJwt=async s=>{const i=this._logger.create("_getClaimsFromJwt");try{const r=K.decode(s);return i.debug("JWT decoding successful"),r}catch(r){throw i.error("Error parsing JWT response"),r}},this._jsonService=new Y(void 0,this._getClaimsFromJwt,this._settings.extraHeaders)}async getClaims(e){const t=this._logger.create("getClaims");e||this._logger.throw(new Error("No token passed"));const s=await this._metadataService.getUserInfoEndpoint();t.debug("got userinfo url",s);const i=await this._jsonService.getJson(s,{token:e,credentials:this._settings.fetchRequestCredentials});return t.debug("got claims",i),i}},ae=class{constructor(e,t){this._settings=e,this._metadataService=t,this._logger=new d("TokenClient"),this._jsonService=new Y(this._settings.revokeTokenAdditionalContentTypes,null,this._settings.extraHeaders)}async exchangeCode({grant_type:e="authorization_code",redirect_uri:t=this._settings.redirect_uri,client_id:s=this._settings.client_id,client_secret:i=this._settings.client_secret,...r}){const n=this._logger.create("exchangeCode");s||n.throw(new Error("A client_id is required")),t||n.throw(new Error("A redirect_uri is required")),r.code||n.throw(new Error("A code is required"));const o=new URLSearchParams({grant_type:e,redirect_uri:t});for(const[h,g]of Object.entries(r))g!=null&&o.set(h,g);let a;switch(this._settings.client_authentication){case"client_secret_basic":if(!i)throw n.throw(new Error("A client_secret is required")),null;a=A.generateBasicAuth(s,i);break;case"client_secret_post":o.append("client_id",s),i&&o.append("client_secret",i);break}const c=await this._metadataService.getTokenEndpoint(!1);n.debug("got token endpoint");const l=await this._jsonService.postForm(c,{body:o,basicAuth:a,initCredentials:this._settings.fetchRequestCredentials});return n.debug("got response"),l}async exchangeCredentials({grant_type:e="password",client_id:t=this._settings.client_id,client_secret:s=this._settings.client_secret,scope:i=this._settings.scope,...r}){const n=this._logger.create("exchangeCredentials");t||n.throw(new Error("A client_id is required"));const o=new URLSearchParams({grant_type:e,scope:i});for(const[h,g]of Object.entries(r))g!=null&&o.set(h,g);let a;switch(this._settings.client_authentication){case"client_secret_basic":if(!s)throw n.throw(new Error("A client_secret is required")),null;a=A.generateBasicAuth(t,s);break;case"client_secret_post":o.append("client_id",t),s&&o.append("client_secret",s);break}const c=await this._metadataService.getTokenEndpoint(!1);n.debug("got token endpoint");const l=await this._jsonService.postForm(c,{body:o,basicAuth:a,initCredentials:this._settings.fetchRequestCredentials});return n.debug("got response"),l}async exchangeRefreshToken({grant_type:e="refresh_token",client_id:t=this._settings.client_id,client_secret:s=this._settings.client_secret,timeoutInSeconds:i,...r}){const n=this._logger.create("exchangeRefreshToken");t||n.throw(new Error("A client_id is required")),r.refresh_token||n.throw(new Error("A refresh_token is required"));const o=new URLSearchParams({grant_type:e});for(const[h,g]of Object.entries(r))Array.isArray(g)?g.forEach(_=>o.append(h,_)):g!=null&&o.set(h,g);let a;switch(this._settings.client_authentication){case"client_secret_basic":if(!s)throw n.throw(new Error("A client_secret is required")),null;a=A.generateBasicAuth(t,s);break;case"client_secret_post":o.append("client_id",t),s&&o.append("client_secret",s);break}const c=await this._metadataService.getTokenEndpoint(!1);n.debug("got token endpoint");const l=await this._jsonService.postForm(c,{body:o,basicAuth:a,timeoutInSeconds:i,initCredentials:this._settings.fetchRequestCredentials});return n.debug("got response"),l}async revoke(e){var t;const s=this._logger.create("revoke");e.token||s.throw(new Error("A token is required"));const i=await this._metadataService.getRevocationEndpoint(!1);s.debug(`got revocation endpoint, revoking ${(t=e.token_type_hint)!=null?t:"default token type"}`);const r=new URLSearchParams;for(const[n,o]of Object.entries(e))o!=null&&r.set(n,o);r.set("client_id",this._settings.client_id),this._settings.client_secret&&r.set("client_secret",this._settings.client_secret),await this._jsonService.postForm(i,{body:r}),s.debug("got response")}},We=class{constructor(e,t,s){this._settings=e,this._metadataService=t,this._claimsService=s,this._logger=new d("ResponseValidator"),this._userInfoService=new He(this._settings,this._metadataService),this._tokenClient=new ae(this._settings,this._metadataService)}async validateSigninResponse(e,t){const s=this._logger.create("validateSigninResponse");this._processSigninState(e,t),s.debug("state processed"),await this._processCode(e,t),s.debug("code processed"),e.isOpenId&&this._validateIdTokenAttributes(e),s.debug("tokens validated"),await this._processClaims(e,t==null?void 0:t.skipUserInfo,e.isOpenId),s.debug("claims processed")}async validateCredentialsResponse(e,t){const s=this._logger.create("validateCredentialsResponse");e.isOpenId&&!!e.id_token&&this._validateIdTokenAttributes(e),s.debug("tokens validated"),await this._processClaims(e,t,e.isOpenId),s.debug("claims processed")}async validateRefreshResponse(e,t){var s,i;const r=this._logger.create("validateRefreshResponse");e.userState=t.data,(s=e.session_state)!=null||(e.session_state=t.session_state),(i=e.scope)!=null||(e.scope=t.scope),e.isOpenId&&!!e.id_token&&(this._validateIdTokenAttributes(e,t.id_token),r.debug("ID Token validated")),e.id_token||(e.id_token=t.id_token,e.profile=t.profile);const n=e.isOpenId&&!!e.id_token;await this._processClaims(e,!1,n),r.debug("claims processed")}validateSignoutResponse(e,t){const s=this._logger.create("validateSignoutResponse");if(t.id!==e.state&&s.throw(new Error("State does not match")),s.debug("state validated"),e.userState=t.data,e.error)throw s.warn("Response was error",e.error),new O(e)}_processSigninState(e,t){var s;const i=this._logger.create("_processSigninState");if(t.id!==e.state&&i.throw(new Error("State does not match")),t.client_id||i.throw(new Error("No client_id on state")),t.authority||i.throw(new Error("No authority on state")),this._settings.authority!==t.authority&&i.throw(new Error("authority mismatch on settings vs. signin state")),this._settings.client_id&&this._settings.client_id!==t.client_id&&i.throw(new Error("client_id mismatch on settings vs. signin state")),i.debug("state validated"),e.userState=t.data,e.url_state=t.url_state,(s=e.scope)!=null||(e.scope=t.scope),e.error)throw i.warn("Response was error",e.error),new O(e);t.code_verifier&&!e.code&&i.throw(new Error("Expected code in response"))}async _processClaims(e,t=!1,s=!0){const i=this._logger.create("_processClaims");if(e.profile=this._claimsService.filterProtocolClaims(e.profile),t||!this._settings.loadUserInfo||!e.access_token){i.debug("not loading user info");return}i.debug("loading user info");const r=await this._userInfoService.getClaims(e.access_token);i.debug("user info claims received from user info endpoint"),s&&r.sub!==e.profile.sub&&i.throw(new Error("subject from UserInfo response does not match subject in ID Token")),e.profile=this._claimsService.mergeClaims(e.profile,this._claimsService.filterProtocolClaims(r)),i.debug("user info claims received, updated profile:",e.profile)}async _processCode(e,t){const s=this._logger.create("_processCode");if(e.code){s.debug("Validating code");const i=await this._tokenClient.exchangeCode({client_id:t.client_id,client_secret:t.client_secret,code:e.code,redirect_uri:t.redirect_uri,code_verifier:t.code_verifier,...t.extraTokenParams});Object.assign(e,i)}else s.debug("No code to process")}_validateIdTokenAttributes(e,t){var s;const i=this._logger.create("_validateIdTokenAttributes");i.debug("decoding ID Token JWT");const r=K.decode((s=e.id_token)!=null?s:"");if(r.sub||i.throw(new Error("ID Token is missing a subject claim")),t){const n=K.decode(t);r.sub!==n.sub&&i.throw(new Error("sub in id_token does not match current sub")),r.auth_time&&r.auth_time!==n.auth_time&&i.throw(new Error("auth_time in id_token does not match original auth_time")),r.azp&&r.azp!==n.azp&&i.throw(new Error("azp in id_token does not match original azp")),!r.azp&&n.azp&&i.throw(new Error("azp not in id_token, but present in original id_token"))}e.profile=r}},D=class G{constructor(t){this.id=t.id||A.generateUUIDv4(),this.data=t.data,t.created&&t.created>0?this.created=t.created:this.created=k.getEpochTime(),this.request_type=t.request_type,this.url_state=t.url_state}toStorageString(){return new d("State").create("toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,url_state:this.url_state})}static fromStorageString(t){return d.createStatic("State","fromStorageString"),Promise.resolve(new G(JSON.parse(t)))}static async clearStaleState(t,s){const i=d.createStatic("State","clearStaleState"),r=k.getEpochTime()-s,n=await t.getAllKeys();i.debug("got keys",n);for(let o=0;o<n.length;o++){const a=n[o],c=await t.get(a);let l=!1;if(c)try{const h=await G.fromStorageString(c);i.debug("got item from key:",a,h.created),h.created<=r&&(l=!0)}catch(h){i.error("Error parsing state for key:",a,h),l=!0}else i.debug("no item in storage for key:",a),l=!0;l&&(i.debug("removed item for key:",a),t.remove(a))}}},ce=class Q extends D{constructor(t){super(t),this.code_verifier=t.code_verifier,this.code_challenge=t.code_challenge,this.authority=t.authority,this.client_id=t.client_id,this.redirect_uri=t.redirect_uri,this.scope=t.scope,this.client_secret=t.client_secret,this.extraTokenParams=t.extraTokenParams,this.response_mode=t.response_mode,this.skipUserInfo=t.skipUserInfo}static async create(t){const s=t.code_verifier===!0?A.generateCodeVerifier():t.code_verifier||void 0,i=s?await A.generateCodeChallenge(s):void 0;return new Q({...t,code_verifier:s,code_challenge:i})}toStorageString(){return new d("SigninState").create("toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,url_state:this.url_state,code_verifier:this.code_verifier,authority:this.authority,client_id:this.client_id,redirect_uri:this.redirect_uri,scope:this.scope,client_secret:this.client_secret,extraTokenParams:this.extraTokenParams,response_mode:this.response_mode,skipUserInfo:this.skipUserInfo})}static fromStorageString(t){d.createStatic("SigninState","fromStorageString");const s=JSON.parse(t);return Q.create(s)}},le=class de{constructor(t){this.url=t.url,this.state=t.state}static async create({url:t,authority:s,client_id:i,redirect_uri:r,response_type:n,scope:o,state_data:a,response_mode:c,request_type:l,client_secret:h,nonce:g,url_state:_,resource:w,skipUserInfo:T,extraQueryParams:I,extraTokenParams:R,disablePKCE:x,...C}){if(!t)throw this._logger.error("create: No url passed"),new Error("url");if(!i)throw this._logger.error("create: No client_id passed"),new Error("client_id");if(!r)throw this._logger.error("create: No redirect_uri passed"),new Error("redirect_uri");if(!n)throw this._logger.error("create: No response_type passed"),new Error("response_type");if(!o)throw this._logger.error("create: No scope passed"),new Error("scope");if(!s)throw this._logger.error("create: No authority passed"),new Error("authority");const f=await ce.create({data:a,request_type:l,url_state:_,code_verifier:!x,client_id:i,authority:s,redirect_uri:r,response_mode:c,client_secret:h,scope:o,extraTokenParams:R,skipUserInfo:T}),u=new URL(t);u.searchParams.append("client_id",i),u.searchParams.append("redirect_uri",r),u.searchParams.append("response_type",n),u.searchParams.append("scope",o),g&&u.searchParams.append("nonce",g);let y=f.id;_&&(y=`${y}${B}${_}`),u.searchParams.append("state",y),f.code_challenge&&(u.searchParams.append("code_challenge",f.code_challenge),u.searchParams.append("code_challenge_method","S256")),w&&(Array.isArray(w)?w:[w]).forEach(p=>u.searchParams.append("resource",p));for(const[b,p]of Object.entries({response_mode:c,...C,...I}))p!=null&&u.searchParams.append(b,p.toString());return new de({url:u.href,state:f})}};le._logger=new d("SigninRequest");var $e=le,De="openid",L=class{constructor(e){if(this.access_token="",this.token_type="",this.profile={},this.state=e.get("state"),this.session_state=e.get("session_state"),this.state){const t=decodeURIComponent(this.state).split(B);this.state=t[0],t.length>1&&(this.url_state=t.slice(1).join(B))}this.error=e.get("error"),this.error_description=e.get("error_description"),this.error_uri=e.get("error_uri"),this.code=e.get("code")}get expires_in(){if(this.expires_at!==void 0)return this.expires_at-k.getEpochTime()}set expires_in(e){typeof e=="string"&&(e=Number(e)),e!==void 0&&e>=0&&(this.expires_at=Math.floor(e)+k.getEpochTime())}get isOpenId(){var e;return((e=this.scope)==null?void 0:e.split(" ").includes(De))||!!this.id_token}},Fe=class{constructor({url:e,state_data:t,id_token_hint:s,post_logout_redirect_uri:i,extraQueryParams:r,request_type:n,client_id:o}){if(this._logger=new d("SignoutRequest"),!e)throw this._logger.error("ctor: No url passed"),new Error("url");const a=new URL(e);s&&a.searchParams.append("id_token_hint",s),o&&a.searchParams.append("client_id",o),i&&(a.searchParams.append("post_logout_redirect_uri",i),t&&(this.state=new D({data:t,request_type:n}),a.searchParams.append("state",this.state.id)));for(const[c,l]of Object.entries({...r}))l!=null&&a.searchParams.append(c,l.toString());this.url=a.href}},Le=class{constructor(e){this.state=e.get("state"),this.error=e.get("error"),this.error_description=e.get("error_description"),this.error_uri=e.get("error_uri")}},Je=["nbf","jti","auth_time","nonce","acr","amr","azp","at_hash"],Ke=["sub","iss","aud","exp","iat"],ze=class{constructor(e){this._settings=e,this._logger=new d("ClaimsService")}filterProtocolClaims(e){const t={...e};if(this._settings.filterProtocolClaims){let s;Array.isArray(this._settings.filterProtocolClaims)?s=this._settings.filterProtocolClaims:s=Je;for(const i of s)Ke.includes(i)||delete t[i]}return t}mergeClaims(e,t){const s={...e};for(const[i,r]of Object.entries(t))if(s[i]!==r)if(Array.isArray(s[i])||Array.isArray(r))if(this._settings.mergeClaimsStrategy.array=="replace")s[i]=r;else{const n=Array.isArray(s[i])?s[i]:[s[i]];for(const o of Array.isArray(r)?r:[r])n.includes(o)||n.push(o);s[i]=n}else typeof s[i]=="object"&&typeof r=="object"?s[i]=this.mergeClaims(s[i],r):s[i]=r;return s}},Be=class{constructor(e,t){this._logger=new d("OidcClient"),this.settings=e instanceof V?e:new V(e),this.metadataService=t!=null?t:new Ae(this.settings),this._claimsService=new ze(this.settings),this._validator=new We(this.settings,this.metadataService,this._claimsService),this._tokenClient=new ae(this.settings,this.metadataService)}async createSigninRequest({state:e,request:t,request_uri:s,request_type:i,id_token_hint:r,login_hint:n,skipUserInfo:o,nonce:a,url_state:c,response_type:l=this.settings.response_type,scope:h=this.settings.scope,redirect_uri:g=this.settings.redirect_uri,prompt:_=this.settings.prompt,display:w=this.settings.display,max_age:T=this.settings.max_age,ui_locales:I=this.settings.ui_locales,acr_values:R=this.settings.acr_values,resource:x=this.settings.resource,response_mode:C=this.settings.response_mode,extraQueryParams:f=this.settings.extraQueryParams,extraTokenParams:u=this.settings.extraTokenParams}){const y=this._logger.create("createSigninRequest");if(l!=="code")throw new Error("Only the Authorization Code flow (with PKCE) is supported");const b=await this.metadataService.getAuthorizationEndpoint();y.debug("Received authorization endpoint",b);const p=await $e.create({url:b,authority:this.settings.authority,client_id:this.settings.client_id,redirect_uri:g,response_type:l,scope:h,state_data:e,url_state:c,prompt:_,display:w,max_age:T,ui_locales:I,id_token_hint:r,login_hint:n,acr_values:R,resource:x,request:t,request_uri:s,extraQueryParams:f,extraTokenParams:u,request_type:i,response_mode:C,client_secret:this.settings.client_secret,skipUserInfo:o,nonce:a,disablePKCE:this.settings.disablePKCE});await this.clearStaleState();const U=p.state;return await this.settings.stateStore.set(U.id,U.toStorageString()),p}async readSigninResponseState(e,t=!1){const s=this._logger.create("readSigninResponseState"),i=new L(z.readParams(e,this.settings.response_mode));if(!i.state)throw s.throw(new Error("No state in response")),null;const r=await this.settings.stateStore[t?"remove":"get"](i.state);if(!r)throw s.throw(new Error("No matching state found in storage")),null;return{state:await ce.fromStorageString(r),response:i}}async processSigninResponse(e){const t=this._logger.create("processSigninResponse"),{state:s,response:i}=await this.readSigninResponseState(e,!0);return t.debug("received state from storage; validating response"),await this._validator.validateSigninResponse(i,s),i}async processResourceOwnerPasswordCredentials({username:e,password:t,skipUserInfo:s=!1,extraTokenParams:i={}}){const r=await this._tokenClient.exchangeCredentials({username:e,password:t,...i}),n=new L(new URLSearchParams);return Object.assign(n,r),await this._validator.validateCredentialsResponse(n,s),n}async useRefreshToken({state:e,redirect_uri:t,resource:s,timeoutInSeconds:i,extraTokenParams:r}){var n;const o=this._logger.create("useRefreshToken");let a;if(this.settings.refreshTokenAllowedScope===void 0)a=e.scope;else{const h=this.settings.refreshTokenAllowedScope.split(" ");a=(((n=e.scope)==null?void 0:n.split(" "))||[]).filter(_=>h.includes(_)).join(" ")}const c=await this._tokenClient.exchangeRefreshToken({refresh_token:e.refresh_token,scope:a,redirect_uri:t,resource:s,timeoutInSeconds:i,...r}),l=new L(new URLSearchParams);return Object.assign(l,c),o.debug("validating response",l),await this._validator.validateRefreshResponse(l,{...e,scope:a}),l}async createSignoutRequest({state:e,id_token_hint:t,client_id:s,request_type:i,post_logout_redirect_uri:r=this.settings.post_logout_redirect_uri,extraQueryParams:n=this.settings.extraQueryParams}={}){const o=this._logger.create("createSignoutRequest"),a=await this.metadataService.getEndSessionEndpoint();if(!a)throw o.throw(new Error("No end session endpoint")),null;o.debug("Received end session endpoint",a),!s&&r&&!t&&(s=this.settings.client_id);const c=new Fe({url:a,id_token_hint:t,client_id:s,post_logout_redirect_uri:r,state_data:e,extraQueryParams:n,request_type:i});await this.clearStaleState();const l=c.state;return l&&(o.debug("Signout request has state to persist"),await this.settings.stateStore.set(l.id,l.toStorageString())),c}async readSignoutResponseState(e,t=!1){const s=this._logger.create("readSignoutResponseState"),i=new Le(z.readParams(e,this.settings.response_mode));if(!i.state){if(s.debug("No state in response"),i.error)throw s.warn("Response was error:",i.error),new O(i);return{state:void 0,response:i}}const r=await this.settings.stateStore[t?"remove":"get"](i.state);if(!r)throw s.throw(new Error("No matching state found in storage")),null;return{state:await D.fromStorageString(r),response:i}}async processSignoutResponse(e){const t=this._logger.create("processSignoutResponse"),{state:s,response:i}=await this.readSignoutResponseState(e,!0);return s?(t.debug("Received state from storage; validating response"),this._validator.validateSignoutResponse(i,s)):t.debug("No state from storage; skipping response validation"),i}clearStaleState(){return this._logger.create("clearStaleState"),D.clearStaleState(this.settings.stateStore,this.settings.staleStateAgeInSeconds)}async revokeToken(e,t){return this._logger.create("revokeToken"),await this._tokenClient.revoke({token:e,token_type_hint:t})}},Ve=class{constructor(e){this._userManager=e,this._logger=new d("SessionMonitor"),this._start=async t=>{const s=t.session_state;if(!s)return;const i=this._logger.create("_start");if(t.profile?(this._sub=t.profile.sub,i.debug("session_state",s,", sub",this._sub)):(this._sub=void 0,i.debug("session_state",s,", anonymous user")),this._checkSessionIFrame){this._checkSessionIFrame.start(s);return}try{const r=await this._userManager.metadataService.getCheckSessionIframe();if(r){i.debug("initializing check session iframe");const n=this._userManager.settings.client_id,o=this._userManager.settings.checkSessionIntervalInSeconds,a=this._userManager.settings.stopCheckSessionOnError,c=new Oe(this._callback,n,r,o,a);await c.load(),this._checkSessionIFrame=c,c.start(s)}else i.warn("no check session iframe found in the metadata")}catch(r){i.error("Error from getCheckSessionIframe:",r instanceof Error?r.message:r)}},this._stop=()=>{const t=this._logger.create("_stop");if(this._sub=void 0,this._checkSessionIFrame&&this._checkSessionIFrame.stop(),this._userManager.settings.monitorAnonymousSession){const s=setInterval(async()=>{clearInterval(s);try{const i=await this._userManager.querySessionStatus();if(i){const r={session_state:i.session_state,profile:i.sub?{sub:i.sub}:null};this._start(r)}}catch(i){t.error("error from querySessionStatus",i instanceof Error?i.message:i)}},1e3)}},this._callback=async()=>{const t=this._logger.create("_callback");try{const s=await this._userManager.querySessionStatus();let i=!0;s&&this._checkSessionIFrame?s.sub===this._sub?(i=!1,this._checkSessionIFrame.start(s.session_state),t.debug("same sub still logged in at OP, session state has changed, restarting check session iframe; session_state",s.session_state),await this._userManager.events._raiseUserSessionChanged()):t.debug("different subject signed into OP",s.sub):t.debug("subject no longer signed into OP"),i?this._sub?await this._userManager.events._raiseUserSignedOut():await this._userManager.events._raiseUserSignedIn():t.debug("no change in session detected, no event to raise")}catch(s){this._sub&&(t.debug("Error calling queryCurrentSigninSession; raising signed out event",s),await this._userManager.events._raiseUserSignedOut())}},e||this._logger.throw(new Error("No user manager passed")),this._userManager.events.addUserLoaded(this._start),this._userManager.events.addUserUnloaded(this._stop),this._init().catch(t=>{this._logger.error(t)})}async _init(){this._logger.create("_init");const e=await this._userManager.getUser();if(e)this._start(e);else if(this._userManager.settings.monitorAnonymousSession){const t=await this._userManager.querySessionStatus();if(t){const s={session_state:t.session_state,profile:t.sub?{sub:t.sub}:null};this._start(s)}}}},J=class ge{constructor(t){var s;this.id_token=t.id_token,this.session_state=(s=t.session_state)!=null?s:null,this.access_token=t.access_token,this.refresh_token=t.refresh_token,this.token_type=t.token_type,this.scope=t.scope,this.profile=t.profile,this.expires_at=t.expires_at,this.state=t.userState,this.url_state=t.url_state}get expires_in(){if(this.expires_at!==void 0)return this.expires_at-k.getEpochTime()}set expires_in(t){t!==void 0&&(this.expires_at=Math.floor(t)+k.getEpochTime())}get expired(){const t=this.expires_in;if(t!==void 0)return t<=0}get scopes(){var t,s;return(s=(t=this.scope)==null?void 0:t.split(" "))!=null?s:[]}toStorageString(){return new d("User").create("toStorageString"),JSON.stringify({id_token:this.id_token,session_state:this.session_state,access_token:this.access_token,refresh_token:this.refresh_token,token_type:this.token_type,scope:this.scope,profile:this.profile,expires_at:this.expires_at})}static fromStorageString(t){return d.createStatic("User","fromStorageString"),new ge(JSON.parse(t))}},se="oidc-client",he=class{constructor(){this._abort=new E("Window navigation aborted"),this._disposeHandlers=new Set,this._window=null}async navigate(e){const t=this._logger.create("navigate");if(!this._window)throw new Error("Attempted to navigate on a disposed window");t.debug("setting URL in window"),this._window.location.replace(e.url);const{url:s,keepOpen:i}=await new Promise((r,n)=>{const o=a=>{var c;const l=a.data,h=(c=e.scriptOrigin)!=null?c:window.location.origin;if(!(a.origin!==h||(l==null?void 0:l.source)!==se)){try{const g=z.readParams(l.url,e.response_mode).get("state");if(g||t.warn("no state found in response url"),a.source!==this._window&&g!==e.state)return}catch{this._dispose(),n(new Error("Invalid response from window"))}r(l)}};window.addEventListener("message",o,!1),this._disposeHandlers.add(()=>window.removeEventListener("message",o,!1)),this._disposeHandlers.add(this._abort.addHandler(a=>{this._dispose(),n(a)}))});return t.debug("got response from window"),this._dispose(),i||this.close(),{url:s}}_dispose(){this._logger.create("_dispose");for(const e of this._disposeHandlers)e();this._disposeHandlers.clear()}static _notifyParent(e,t,s=!1,i=window.location.origin){e.postMessage({source:se,url:t,keepOpen:s},i)}},ue={location:!1,toolbar:!1,height:640,closePopupWindowAfterInSeconds:-1},_e="_blank",Ge=60,Qe=2,pe=10,Xe=class extends V{constructor(e){const{popup_redirect_uri:t=e.redirect_uri,popup_post_logout_redirect_uri:s=e.post_logout_redirect_uri,popupWindowFeatures:i=ue,popupWindowTarget:r=_e,redirectMethod:n="assign",redirectTarget:o="self",iframeNotifyParentOrigin:a=e.iframeNotifyParentOrigin,iframeScriptOrigin:c=e.iframeScriptOrigin,silent_redirect_uri:l=e.redirect_uri,silentRequestTimeoutInSeconds:h=pe,automaticSilentRenew:g=!0,validateSubOnSilentRenew:_=!0,includeIdTokenInSilentRenew:w=!1,monitorSession:T=!1,monitorAnonymousSession:I=!1,checkSessionIntervalInSeconds:R=Qe,query_status_response_type:x="code",stopCheckSessionOnError:C=!0,revokeTokenTypes:f=["access_token","refresh_token"],revokeTokensOnSignout:u=!1,includeIdTokenInSilentSignout:y=!1,accessTokenExpiringNotificationTimeInSeconds:b=Ge,userStore:p}=e;if(super(e),this.popup_redirect_uri=t,this.popup_post_logout_redirect_uri=s,this.popupWindowFeatures=i,this.popupWindowTarget=r,this.redirectMethod=n,this.redirectTarget=o,this.iframeNotifyParentOrigin=a,this.iframeScriptOrigin=c,this.silent_redirect_uri=l,this.silentRequestTimeoutInSeconds=h,this.automaticSilentRenew=g,this.validateSubOnSilentRenew=_,this.includeIdTokenInSilentRenew=w,this.monitorSession=T,this.monitorAnonymousSession=I,this.checkSessionIntervalInSeconds=R,this.stopCheckSessionOnError=C,this.query_status_response_type=x,this.revokeTokenTypes=f,this.revokeTokensOnSignout=u,this.includeIdTokenInSilentSignout=y,this.accessTokenExpiringNotificationTimeInSeconds=b,p)this.userStore=p;else{const U=typeof window<"u"?window.sessionStorage:new ne;this.userStore=new oe({store:U})}}},ie=class fe extends he{constructor({silentRequestTimeoutInSeconds:t=pe}){super(),this._logger=new d("IFrameWindow"),this._timeoutInSeconds=t,this._frame=fe.createHiddenIframe(),this._window=this._frame.contentWindow}static createHiddenIframe(){const t=window.document.createElement("iframe");return t.style.visibility="hidden",t.style.position="fixed",t.style.left="-1000px",t.style.top="0",t.width="0",t.height="0",window.document.body.appendChild(t),t}async navigate(t){this._logger.debug("navigate: Using timeout of:",this._timeoutInSeconds);const s=setTimeout(()=>void this._abort.raise(new X("IFrame timed out without a response")),this._timeoutInSeconds*1e3);return this._disposeHandlers.add(()=>clearTimeout(s)),await super.navigate(t)}close(){var t;this._frame&&(this._frame.parentNode&&(this._frame.addEventListener("load",s=>{var i;const r=s.target;(i=r.parentNode)==null||i.removeChild(r),this._abort.raise(new Error("IFrame removed from DOM"))},!0),(t=this._frame.contentWindow)==null||t.location.replace("about:blank")),this._frame=null),this._window=null}static notifyParent(t,s){return super._notifyParent(window.parent,t,!1,s)}},Ye=class{constructor(e){this._settings=e,this._logger=new d("IFrameNavigator")}async prepare({silentRequestTimeoutInSeconds:e=this._settings.silentRequestTimeoutInSeconds}){return new ie({silentRequestTimeoutInSeconds:e})}async callback(e){this._logger.create("callback"),ie.notifyParent(e,this._settings.iframeNotifyParentOrigin)}},Ze=500,et=1e3,re=class extends he{constructor({popupWindowTarget:e=_e,popupWindowFeatures:t={}}){super(),this._logger=new d("PopupWindow");const s=te.center({...ue,...t});this._window=window.open(void 0,e,te.serialize(s)),t.closePopupWindowAfterInSeconds&&t.closePopupWindowAfterInSeconds>0&&setTimeout(()=>{if(!this._window||typeof this._window.closed!="boolean"||this._window.closed){this._abort.raise(new Error("Popup blocked by user"));return}this.close()},t.closePopupWindowAfterInSeconds*et)}async navigate(e){var t;(t=this._window)==null||t.focus();const s=setInterval(()=>{(!this._window||this._window.closed)&&this._abort.raise(new Error("Popup closed by user"))},Ze);return this._disposeHandlers.add(()=>clearInterval(s)),await super.navigate(e)}close(){this._window&&(this._window.closed||(this._window.close(),this._abort.raise(new Error("Popup closed")))),this._window=null}static notifyOpener(e,t){if(!window.opener)throw new Error("No window.opener. Can't complete notification.");return super._notifyParent(window.opener,e,t)}},tt=class{constructor(e){this._settings=e,this._logger=new d("PopupNavigator")}async prepare({popupWindowFeatures:e=this._settings.popupWindowFeatures,popupWindowTarget:t=this._settings.popupWindowTarget}){return new re({popupWindowFeatures:e,popupWindowTarget:t})}async callback(e,{keepOpen:t=!1}){this._logger.create("callback"),re.notifyOpener(e,t)}},st=class{constructor(e){this._settings=e,this._logger=new d("RedirectNavigator")}async prepare({redirectMethod:e=this._settings.redirectMethod,redirectTarget:t=this._settings.redirectTarget}){var s;this._logger.create("prepare");let i=window.self;t==="top"&&(i=(s=window.top)!=null?s:window.self);const r=i.location[e].bind(i.location);let n;return{navigate:async o=>{this._logger.create("navigate");const a=new Promise((c,l)=>{n=l});return r(o.url),await a},close:()=>{this._logger.create("close"),n==null||n(new Error("Redirect aborted")),i.stop()}}}async callback(){}},it=class extends Pe{constructor(e){super({expiringNotificationTimeInSeconds:e.accessTokenExpiringNotificationTimeInSeconds}),this._logger=new d("UserManagerEvents"),this._userLoaded=new E("User loaded"),this._userUnloaded=new E("User unloaded"),this._silentRenewError=new E("Silent renew error"),this._userSignedIn=new E("User signed in"),this._userSignedOut=new E("User signed out"),this._userSessionChanged=new E("User session changed")}async load(e,t=!0){super.load(e),t&&await this._userLoaded.raise(e)}async unload(){super.unload(),await this._userUnloaded.raise()}addUserLoaded(e){return this._userLoaded.addHandler(e)}removeUserLoaded(e){return this._userLoaded.removeHandler(e)}addUserUnloaded(e){return this._userUnloaded.addHandler(e)}removeUserUnloaded(e){return this._userUnloaded.removeHandler(e)}addSilentRenewError(e){return this._silentRenewError.addHandler(e)}removeSilentRenewError(e){return this._silentRenewError.removeHandler(e)}async _raiseSilentRenewError(e){await this._silentRenewError.raise(e)}addUserSignedIn(e){return this._userSignedIn.addHandler(e)}removeUserSignedIn(e){this._userSignedIn.removeHandler(e)}async _raiseUserSignedIn(){await this._userSignedIn.raise()}addUserSignedOut(e){return this._userSignedOut.addHandler(e)}removeUserSignedOut(e){this._userSignedOut.removeHandler(e)}async _raiseUserSignedOut(){await this._userSignedOut.raise()}addUserSessionChanged(e){return this._userSessionChanged.addHandler(e)}removeUserSessionChanged(e){this._userSessionChanged.removeHandler(e)}async _raiseUserSessionChanged(){await this._userSessionChanged.raise()}},rt=class{constructor(e){this._userManager=e,this._logger=new d("SilentRenewService"),this._isStarted=!1,this._retryTimer=new k("Retry Silent Renew"),this._tokenExpiring=async()=>{const t=this._logger.create("_tokenExpiring");try{await this._userManager.signinSilent(),t.debug("silent token renewal successful")}catch(s){if(s instanceof X){t.warn("ErrorTimeout from signinSilent:",s,"retry in 5s"),this._retryTimer.init(5);return}t.error("Error from signinSilent:",s),await this._userManager.events._raiseSilentRenewError(s)}}}async start(){const e=this._logger.create("start");if(!this._isStarted){this._isStarted=!0,this._userManager.events.addAccessTokenExpiring(this._tokenExpiring),this._retryTimer.addHandler(this._tokenExpiring);try{await this._userManager.getUser()}catch(t){e.error("getUser error",t)}}}stop(){this._isStarted&&(this._retryTimer.cancel(),this._retryTimer.removeHandler(this._tokenExpiring),this._userManager.events.removeAccessTokenExpiring(this._tokenExpiring),this._isStarted=!1)}},nt=class{constructor(e){this.refresh_token=e.refresh_token,this.id_token=e.id_token,this.session_state=e.session_state,this.scope=e.scope,this.profile=e.profile,this.data=e.state}},ot=class{constructor(e,t,s,i){this._logger=new d("UserManager"),this.settings=new Xe(e),this._client=new Be(e),this._redirectNavigator=t!=null?t:new st(this.settings),this._popupNavigator=s!=null?s:new tt(this.settings),this._iframeNavigator=i!=null?i:new Ye(this.settings),this._events=new it(this.settings),this._silentRenewService=new rt(this),this.settings.automaticSilentRenew&&this.startSilentRenew(),this._sessionMonitor=null,this.settings.monitorSession&&(this._sessionMonitor=new Ve(this))}get events(){return this._events}get metadataService(){return this._client.metadataService}async getUser(){const e=this._logger.create("getUser"),t=await this._loadUser();return t?(e.info("user loaded"),await this._events.load(t,!1),t):(e.info("user not found in storage"),null)}async removeUser(){const e=this._logger.create("removeUser");await this.storeUser(null),e.info("user removed from storage"),await this._events.unload()}async signinRedirect(e={}){this._logger.create("signinRedirect");const{redirectMethod:t,...s}=e,i=await this._redirectNavigator.prepare({redirectMethod:t});await this._signinStart({request_type:"si:r",...s},i)}async signinRedirectCallback(e=window.location.href){const t=this._logger.create("signinRedirectCallback"),s=await this._signinEnd(e);return s.profile&&s.profile.sub?t.info("success, signed in subject",s.profile.sub):t.info("no subject"),s}async signinResourceOwnerCredentials({username:e,password:t,skipUserInfo:s=!1}){const i=this._logger.create("signinResourceOwnerCredential"),r=await this._client.processResourceOwnerPasswordCredentials({username:e,password:t,skipUserInfo:s,extraTokenParams:this.settings.extraTokenParams});i.debug("got signin response");const n=await this._buildUser(r);return n.profile&&n.profile.sub?i.info("success, signed in subject",n.profile.sub):i.info("no subject"),n}async signinPopup(e={}){const t=this._logger.create("signinPopup"),{popupWindowFeatures:s,popupWindowTarget:i,...r}=e,n=this.settings.popup_redirect_uri;n||t.throw(new Error("No popup_redirect_uri configured"));const o=await this._popupNavigator.prepare({popupWindowFeatures:s,popupWindowTarget:i}),a=await this._signin({request_type:"si:p",redirect_uri:n,display:"popup",...r},o);return a&&(a.profile&&a.profile.sub?t.info("success, signed in subject",a.profile.sub):t.info("no subject")),a}async signinPopupCallback(e=window.location.href,t=!1){const s=this._logger.create("signinPopupCallback");await this._popupNavigator.callback(e,{keepOpen:t}),s.info("success")}async signinSilent(e={}){var t;const s=this._logger.create("signinSilent"),{silentRequestTimeoutInSeconds:i,...r}=e;let n=await this._loadUser();if(n!=null&&n.refresh_token){s.debug("using refresh token");const l=new nt(n);return await this._useRefreshToken({state:l,redirect_uri:r.redirect_uri,resource:r.resource,extraTokenParams:r.extraTokenParams,timeoutInSeconds:i})}const o=this.settings.silent_redirect_uri;o||s.throw(new Error("No silent_redirect_uri configured"));let a;n&&this.settings.validateSubOnSilentRenew&&(s.debug("subject prior to silent renew:",n.profile.sub),a=n.profile.sub);const c=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:i});return n=await this._signin({request_type:"si:s",redirect_uri:o,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?n==null?void 0:n.id_token:void 0,...r},c,a),n&&((t=n.profile)!=null&&t.sub?s.info("success, signed in subject",n.profile.sub):s.info("no subject")),n}async _useRefreshToken(e){const t=await this._client.useRefreshToken({...e,timeoutInSeconds:this.settings.silentRequestTimeoutInSeconds}),s=new J({...e.state,...t});return await this.storeUser(s),await this._events.load(s),s}async signinSilentCallback(e=window.location.href){const t=this._logger.create("signinSilentCallback");await this._iframeNavigator.callback(e),t.info("success")}async signinCallback(e=window.location.href){const{state:t}=await this._client.readSigninResponseState(e);switch(t.request_type){case"si:r":return await this.signinRedirectCallback(e);case"si:p":return await this.signinPopupCallback(e);case"si:s":return await this.signinSilentCallback(e);default:throw new Error("invalid response_type in state")}}async signoutCallback(e=window.location.href,t=!1){const{state:s}=await this._client.readSignoutResponseState(e);if(!!s)switch(s.request_type){case"so:r":await this.signoutRedirectCallback(e);break;case"so:p":await this.signoutPopupCallback(e,t);break;case"so:s":await this.signoutSilentCallback(e);break;default:throw new Error("invalid response_type in state")}}async querySessionStatus(e={}){const t=this._logger.create("querySessionStatus"),{silentRequestTimeoutInSeconds:s,...i}=e,r=this.settings.silent_redirect_uri;r||t.throw(new Error("No silent_redirect_uri configured"));const n=await this._loadUser(),o=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:s}),a=await this._signinStart({request_type:"si:s",redirect_uri:r,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?n==null?void 0:n.id_token:void 0,response_type:this.settings.query_status_response_type,scope:"openid",skipUserInfo:!0,...i},o);try{const c=await this._client.processSigninResponse(a.url);return t.debug("got signin response"),c.session_state&&c.profile.sub?(t.info("success for subject",c.profile.sub),{session_state:c.session_state,sub:c.profile.sub}):(t.info("success, user not authenticated"),null)}catch(c){if(this.settings.monitorAnonymousSession&&c instanceof O)switch(c.error){case"login_required":case"consent_required":case"interaction_required":case"account_selection_required":return t.info("success for anonymous user"),{session_state:c.session_state}}throw c}}async _signin(e,t,s){const i=await this._signinStart(e,t);return await this._signinEnd(i.url,s)}async _signinStart(e,t){const s=this._logger.create("_signinStart");try{const i=await this._client.createSigninRequest(e);return s.debug("got signin request"),await t.navigate({url:i.url,state:i.state.id,response_mode:i.state.response_mode,scriptOrigin:this.settings.iframeScriptOrigin})}catch(i){throw s.debug("error after preparing navigator, closing navigator window"),t.close(),i}}async _signinEnd(e,t){const s=this._logger.create("_signinEnd"),i=await this._client.processSigninResponse(e);return s.debug("got signin response"),await this._buildUser(i,t)}async _buildUser(e,t){const s=this._logger.create("_buildUser"),i=new J(e);if(t){if(t!==i.profile.sub)throw s.debug("current user does not match user returned from signin. sub from signin:",i.profile.sub),new O({...e,error:"login_required"});s.debug("current user matches user returned from signin")}return await this.storeUser(i),s.debug("user stored"),await this._events.load(i),i}async signoutRedirect(e={}){const t=this._logger.create("signoutRedirect"),{redirectMethod:s,...i}=e,r=await this._redirectNavigator.prepare({redirectMethod:s});await this._signoutStart({request_type:"so:r",post_logout_redirect_uri:this.settings.post_logout_redirect_uri,...i},r),t.info("success")}async signoutRedirectCallback(e=window.location.href){const t=this._logger.create("signoutRedirectCallback"),s=await this._signoutEnd(e);return t.info("success"),s}async signoutPopup(e={}){const t=this._logger.create("signoutPopup"),{popupWindowFeatures:s,popupWindowTarget:i,...r}=e,n=this.settings.popup_post_logout_redirect_uri,o=await this._popupNavigator.prepare({popupWindowFeatures:s,popupWindowTarget:i});await this._signout({request_type:"so:p",post_logout_redirect_uri:n,state:n==null?void 0:{},...r},o),t.info("success")}async signoutPopupCallback(e=window.location.href,t=!1){const s=this._logger.create("signoutPopupCallback");await this._popupNavigator.callback(e,{keepOpen:t}),s.info("success")}async _signout(e,t){const s=await this._signoutStart(e,t);return await this._signoutEnd(s.url)}async _signoutStart(e={},t){var s;const i=this._logger.create("_signoutStart");try{const r=await this._loadUser();i.debug("loaded current user from storage"),this.settings.revokeTokensOnSignout&&await this._revokeInternal(r);const n=e.id_token_hint||r&&r.id_token;n&&(i.debug("setting id_token_hint in signout request"),e.id_token_hint=n),await this.removeUser(),i.debug("user removed, creating signout request");const o=await this._client.createSignoutRequest(e);return i.debug("got signout request"),await t.navigate({url:o.url,state:(s=o.state)==null?void 0:s.id,scriptOrigin:this.settings.iframeScriptOrigin})}catch(r){throw i.debug("error after preparing navigator, closing navigator window"),t.close(),r}}async _signoutEnd(e){const t=this._logger.create("_signoutEnd"),s=await this._client.processSignoutResponse(e);return t.debug("got signout response"),s}async signoutSilent(e={}){var t;const s=this._logger.create("signoutSilent"),{silentRequestTimeoutInSeconds:i,...r}=e,n=this.settings.includeIdTokenInSilentSignout?(t=await this._loadUser())==null?void 0:t.id_token:void 0,o=this.settings.popup_post_logout_redirect_uri,a=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:i});await this._signout({request_type:"so:s",post_logout_redirect_uri:o,id_token_hint:n,...r},a),s.info("success")}async signoutSilentCallback(e=window.location.href){const t=this._logger.create("signoutSilentCallback");await this._iframeNavigator.callback(e),t.info("success")}async revokeTokens(e){const t=await this._loadUser();await this._revokeInternal(t,e)}async _revokeInternal(e,t=this.settings.revokeTokenTypes){const s=this._logger.create("_revokeInternal");if(!e)return;const i=t.filter(r=>typeof e[r]=="string");if(!i.length){s.debug("no need to revoke due to no token(s)");return}for(const r of i)await this._client.revokeToken(e[r],r),s.info(`${r} revoked successfully`),r!=="access_token"&&(e[r]=null);await this.storeUser(e),s.debug("user stored"),await this._events.load(e)}startSilentRenew(){this._logger.create("startSilentRenew"),this._silentRenewService.start()}stopSilentRenew(){this._silentRenewService.stop()}get _userStoreKey(){return`user:${this.settings.authority}:${this.settings.client_id}`}async _loadUser(){const e=this._logger.create("_loadUser"),t=await this.settings.userStore.get(this._userStoreKey);return t?(e.debug("user storageString loaded"),J.fromStorageString(t)):(e.debug("no user storageString"),null)}async storeUser(e){const t=this._logger.create("storeUser");if(e){t.debug("storing user");const s=e.toStorageString();await this.settings.userStore.set(this._userStoreKey,s)}else this._logger.debug("removing user"),await this.settings.userStore.remove(this._userStoreKey)}async clearStaleState(){await this._client.clearStaleState()}};class lt{async authenticate(t,s){try{const i=await fetch("/_auth/authenticate",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({email:t,isResend:s})});if(!i.ok)throw new Error(await i.text());return null}catch(i){return i instanceof Error?i.message:"Error authenticating user"}}async verify(t,s){const i=await fetch("/_auth/verify",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({email:t,token:s})});if(!i.ok){if(i.status==410)throw new Error("expired");return null}return(await i.json()).jwt}}const j=class{constructor(){q(this,"oidcUserManager");if(!j.isConfigured())throw new Error("OIDCUserProvider is not configured");const t={authority:j.authority,client_id:j.clientID,redirect_uri:window.location.origin+"/oidc-login-callback"};this.oidcUserManager=new ot(t)}static init(t,s){this.clientID=t,this.authority=s}static isConfigured(){return!!this.clientID&&!!this.authority}async login(){const t=await this.oidcUserManager.signinPopup({scope:"openid profile email"}),s=await fetch("/_auth/oidc-verify",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({access_token:t.access_token})});return s.ok?(await s.json()).jwt:null}async loginCallback(){await this.oidcUserManager.signinPopupCallback()}async logout(){await this.oidcUserManager.signoutPopup({post_logout_redirect_uri:window.location.origin+"/oidc-logout-callback"})}async logoutCallback(){await this.oidcUserManager.signoutPopupCallback()}};let P=j;q(P,"clientID",null),q(P,"authority",null);const dt=async()=>{P.isConfigured()&&new P().logout().catch(Te)};async function gt(){const e=await fetch("/_settings");if(!e.ok)throw new Error(await e.text());const t=await e.json();W.init(t)}const F=class{constructor(t){this.config=t}static init(t){P.init(t.oidc_client_id,t.oidc_authority),F.instance=new F(t)}get showWatermark(){return this.config.show_watermark}get isStagingRelease(){return{}.VITE_ABSTRA_RELEASE==="staging"}get isLocal(){return location.origin.match(/http:\/\/localhost:\d+/)}get showLogout(){return this.config.editor_mode==="local"}};let W=F;q(W,"instance",null);export{lt as A,P as O,W as S,dt as l,gt as s};
2
- //# sourceMappingURL=index.227be58a.js.map