abstra 3.24.2__py3-none-any.whl → 3.24.4__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 (245) hide show
  1. abstra/ai.py +2 -0
  2. {abstra-3.24.2.dist-info → abstra-3.24.4.dist-info}/METADATA +1 -1
  3. {abstra-3.24.2.dist-info → abstra-3.24.4.dist-info}/RECORD +193 -190
  4. abstra_internals/contracts_generated.py +3737 -2560
  5. abstra_internals/controllers/main.py +62 -0
  6. abstra_internals/controllers/workflows.py +42 -0
  7. abstra_internals/interface/sdk/ai.py +69 -0
  8. abstra_internals/repositories/git/native.py +92 -5
  9. abstra_internals/repositories/git/types.py +10 -0
  10. abstra_internals/repositories/linter/rules/env_in_bundle.py +2 -0
  11. abstra_internals/repositories/project/json_migrations/__init__.py +2 -0
  12. abstra_internals/repositories/project/json_migrations/migration_016.py +17 -0
  13. abstra_internals/repositories/project/json_migrations/migration_016_test.py +141 -0
  14. abstra_internals/repositories/project/project.py +63 -18
  15. abstra_internals/repositories/project/project_test.py +279 -0
  16. abstra_internals/server/routes/mcp.py +1 -0
  17. abstra_internals/services/fs.py +311 -32
  18. abstra_internals/services/fs_test.py +28 -5
  19. abstra_internals/utils/file.py +7 -3
  20. abstra_internals/utils/fs_cache.py +173 -0
  21. abstra_statics/dist/assets/{AbstraButton.vue_vue_type_script_setup_true_lang.a3ba2a31.js → AbstraButton.vue_vue_type_script_setup_true_lang.779f608b.js} +2 -2
  22. abstra_statics/dist/assets/{AbstraLogo.vue_vue_type_script_setup_true_lang.b1a71740.js → AbstraLogo.vue_vue_type_script_setup_true_lang.9c4020b5.js} +2 -2
  23. abstra_statics/dist/assets/{ApiKeys.dafa1dc2.js → ApiKeys.fbd3ff63.js} +2 -2
  24. abstra_statics/dist/assets/App.cdc99dd8.js +2 -0
  25. abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.c5b57972.js +2 -0
  26. abstra_statics/dist/assets/BaseLayout.c2cb2f91.js +2 -0
  27. abstra_statics/dist/assets/Billing.f53186a3.js +2 -0
  28. abstra_statics/dist/assets/{Breadcrumb.8a82fa01.js → Breadcrumb.1a138bb1.js} +2 -2
  29. abstra_statics/dist/assets/{Builds.c3fd9633.js → Builds.f3c7442c.js} +2 -2
  30. abstra_statics/dist/assets/{Card.38a860a4.js → Card.0899e9af.js} +2 -2
  31. abstra_statics/dist/assets/{CircularLoading.217756fb.js → CircularLoading.9f9e733d.js} +2 -2
  32. abstra_statics/dist/assets/CloseCircleOutlined.36d9f25b.js +2 -0
  33. abstra_statics/dist/assets/{ConnectorsView.121898a9.js → ConnectorsView.9d99a93b.js} +2 -2
  34. abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.7061772f.js +2 -0
  35. abstra_statics/dist/assets/ContentLayout.da1fff81.js +2 -0
  36. abstra_statics/dist/assets/CrudView.5b250a71.js +2 -0
  37. abstra_statics/dist/assets/{DocsButton.vue_vue_type_script_setup_true_lang.a9c8118b.js → DocsButton.vue_vue_type_script_setup_true_lang.88300c0e.js} +2 -2
  38. abstra_statics/dist/assets/{EditorLogin.fba78ce9.js → EditorLogin.440d3dc5.js} +2 -2
  39. abstra_statics/dist/assets/{EditorsView.1a9ccb13.js → EditorsView.c81d5c0a.js} +2 -2
  40. abstra_statics/dist/assets/EnvVars.688f662d.js +2 -0
  41. abstra_statics/dist/assets/{Error.5bd293cc.js → Error.8fd45945.js} +2 -2
  42. abstra_statics/dist/assets/{ExclamationCircleOutlined.5d5c3f30.js → ExclamationCircleOutlined.ea15dcd1.js} +2 -2
  43. abstra_statics/dist/assets/{Files.c4ce443f.js → Files.2ef1fd75.js} +2 -2
  44. abstra_statics/dist/assets/Form.4047a0fe.js +2 -0
  45. abstra_statics/dist/assets/Form.7d1b0423.css +1 -0
  46. abstra_statics/dist/assets/FormRunner.8d0c448a.js +2 -0
  47. abstra_statics/dist/assets/Home.586b0b6c.js +2 -0
  48. abstra_statics/dist/assets/{Home.4eff6ce9.js → Home.c4610516.js} +2 -2
  49. abstra_statics/dist/assets/LoadingContainer.12120ff7.js +2 -0
  50. abstra_statics/dist/assets/LoadingOutlined.3c83d190.js +2 -0
  51. abstra_statics/dist/assets/{Login.ecec1ff2.js → Login.2d19f80c.js} +2 -2
  52. abstra_statics/dist/assets/Login.de9c56a5.js +2 -0
  53. abstra_statics/dist/assets/{Login.vue_vue_type_script_setup_true_lang.ada1c6c9.js → Login.vue_vue_type_script_setup_true_lang.8d4054f1.js} +2 -2
  54. abstra_statics/dist/assets/Logo.3f68eae2.js +2 -0
  55. abstra_statics/dist/assets/{Logs.c1f01b05.js → Logs.1f1770c9.js} +2 -2
  56. abstra_statics/dist/assets/LogsController.61f8e22d.css +1 -0
  57. abstra_statics/dist/assets/LogsController.e88bddfb.js +2 -0
  58. abstra_statics/dist/assets/Main.a79ded11.js +2 -0
  59. abstra_statics/dist/assets/MockForm.025d99f9.css +1 -0
  60. abstra_statics/dist/assets/{MockForm.9b7a0df3.js → MockForm.aa5ad3bb.js} +2 -2
  61. abstra_statics/dist/assets/Navbar.2529c5ae.js +2 -0
  62. abstra_statics/dist/assets/NewEditor.2603174c.js +8 -0
  63. abstra_statics/dist/assets/{NewEditor.e3cfeb2c.css → NewEditor.5ebf7c09.css} +1 -1
  64. abstra_statics/dist/assets/OidcLoginCallback.7ed0c484.js +2 -0
  65. abstra_statics/dist/assets/OidcLogoutCallback.7303c2ab.js +2 -0
  66. abstra_statics/dist/assets/{OmniChat.c3de8733.js → OmniChat.3d03d97a.js} +2 -2
  67. abstra_statics/dist/assets/{OnboardingView.6cda1bc5.js → OnboardingView.4b747af0.js} +2 -2
  68. abstra_statics/dist/assets/{Organization.c36206b7.js → Organization.aab680aa.js} +2 -2
  69. abstra_statics/dist/assets/Organizations.2340795a.js +2 -0
  70. abstra_statics/dist/assets/{PhArrowCounterClockwise.vue.9e570570.js → PhArrowCounterClockwise.vue.d9dd0137.js} +2 -2
  71. abstra_statics/dist/assets/{PhArrowSquareOut.vue.bcbdb6e7.js → PhArrowSquareOut.vue.93df49c1.js} +2 -2
  72. abstra_statics/dist/assets/{PhClockCounterClockwise.vue.4bd682d8.js → PhClockCounterClockwise.vue.f1f419a1.js} +2 -2
  73. abstra_statics/dist/assets/{PhCopy.vue.29934bc2.js → PhCopy.vue.e59eaa52.js} +2 -2
  74. abstra_statics/dist/assets/PhCopySimple.vue.11467aaf.js +2 -0
  75. abstra_statics/dist/assets/{PhCube.vue.0fe2c514.js → PhCube.vue.e29a6bae.js} +2 -2
  76. abstra_statics/dist/assets/{PhDatabase.vue.fdfb515c.js → PhDatabase.vue.e22926ed.js} +2 -2
  77. abstra_statics/dist/assets/{PhDotsThreeVertical.vue.7a0e0638.js → PhDotsThreeVertical.vue.fff5caa8.js} +2 -2
  78. abstra_statics/dist/assets/{PhDownloadSimple.vue.f1245c40.js → PhDownloadSimple.vue.e11671c2.js} +2 -2
  79. abstra_statics/dist/assets/{PhFileArrowUp.vue.c292afe1.js → PhFileArrowUp.vue.9f743e50.js} +2 -2
  80. abstra_statics/dist/assets/{PhFilePlus.vue.c39ff1a9.js → PhFilePlus.vue.b2e51e09.js} +2 -2
  81. abstra_statics/dist/assets/{PhFolderPlus.vue.bc40161e.js → PhFolderPlus.vue.8742ea4d.js} +2 -2
  82. abstra_statics/dist/assets/{PhGear.vue.0feed515.js → PhGear.vue.1c3eb148.js} +2 -2
  83. abstra_statics/dist/assets/{PhKey.vue.15a9e64e.js → PhKey.vue.8702106e.js} +2 -2
  84. abstra_statics/dist/assets/{PhPencil.vue.a7219766.js → PhPencil.vue.74eafe52.js} +2 -2
  85. abstra_statics/dist/assets/{PhPencilSimple.vue.15a2b403.js → PhPencilSimple.vue.87355169.js} +2 -2
  86. abstra_statics/dist/assets/{PhRocket.vue.7155b91f.js → PhRocket.vue.d4a6ad6a.js} +2 -2
  87. abstra_statics/dist/assets/{PhSignOut.vue.2af17bd7.js → PhSignOut.vue.83e5f761.js} +2 -2
  88. abstra_statics/dist/assets/{PhSparkle.vue.c7f06cac.js → PhSparkle.vue.d2009d46.js} +2 -2
  89. abstra_statics/dist/assets/{PhTranslate.vue.2ce651a6.js → PhTranslate.vue.bec980b1.js} +2 -2
  90. abstra_statics/dist/assets/{PhUsersThree.vue.2942df75.js → PhUsersThree.vue.dd23f9fb.js} +2 -2
  91. abstra_statics/dist/assets/{PhWarningCircle.vue.05a40bc4.js → PhWarningCircle.vue.27414f28.js} +2 -2
  92. abstra_statics/dist/assets/{PhWebhooksLogo.vue.e4752384.js → PhWebhooksLogo.vue.ff084558.js} +2 -2
  93. abstra_statics/dist/assets/{PlayerConfigProvider.00af5968.js → PlayerConfigProvider.ca40f824.js} +2 -2
  94. abstra_statics/dist/assets/{PlayerNavbar.117f184b.js → PlayerNavbar.393e1a48.js} +2 -2
  95. abstra_statics/dist/assets/{Project.66111161.js → Project.72b53439.js} +2 -2
  96. abstra_statics/dist/assets/{ProjectLogin.d9bb1f86.js → ProjectLogin.26c92806.js} +2 -2
  97. abstra_statics/dist/assets/ProjectSettings.70e7668b.js +2 -0
  98. abstra_statics/dist/assets/ProjectsView.83667357.js +2 -0
  99. abstra_statics/dist/assets/{SaveButton.c3f2a4bb.js → SaveButton.56d96f71.js} +2 -2
  100. abstra_statics/dist/assets/{ScrollArea.vue_vue_type_script_setup_true_lang.cb5567cd.js → ScrollArea.vue_vue_type_script_setup_true_lang.a29d9bc5.js} +2 -2
  101. abstra_statics/dist/assets/{Sidebar.1c4e35be.js → Sidebar.fd8a9f17.js} +2 -2
  102. abstra_statics/dist/assets/{Sql.8d31ec23.js → Sql.92e57cd8.js} +3 -3
  103. abstra_statics/dist/assets/Steps.8d0493a8.js +2 -0
  104. abstra_statics/dist/assets/TableCard.75d256c8.js +2 -0
  105. abstra_statics/dist/assets/{TableEditor.ba7a8b6a.js → TableEditor.de62b5ae.js} +2 -2
  106. abstra_statics/dist/assets/{Tables.113960f2.js → Tables.f33c00ab.js} +2 -2
  107. abstra_statics/dist/assets/{TablesDiagram.8e6d1e89.js → TablesDiagram.621aac9c.js} +3 -3
  108. abstra_statics/dist/assets/{TablesTabs.vue_vue_type_script_setup_true_lang.5cc96b0d.js → TablesTabs.vue_vue_type_script_setup_true_lang.db87820d.js} +2 -2
  109. abstra_statics/dist/assets/{Tasks.90846020.js → Tasks.e7e8affd.js} +2 -2
  110. abstra_statics/dist/assets/{UploadOutlined.518baf9a.js → UploadOutlined.76665096.js} +2 -2
  111. abstra_statics/dist/assets/{View.ded6b355.js → View.2d181255.js} +2 -2
  112. abstra_statics/dist/assets/{View.vue_vue_type_script_setup_true_lang.285b5e2c.js → View.vue_vue_type_script_setup_true_lang.c02bf815.js} +2 -2
  113. abstra_statics/dist/assets/{Watermark.5071a4b2.js → Watermark.34db0ee5.js} +2 -2
  114. abstra_statics/dist/assets/{WebEditor.18ece735.js → WebEditor.615c5ed3.js} +2 -2
  115. abstra_statics/dist/assets/WidgetPreview.d7362a8d.js +2 -0
  116. abstra_statics/dist/assets/WorkflowViewer.0a209003.css +1 -0
  117. abstra_statics/dist/assets/WorkflowViewer.e89c0824.js +2 -0
  118. abstra_statics/dist/assets/ant-design.24becb3a.js +2 -0
  119. abstra_statics/dist/assets/apiKey.846016a7.js +2 -0
  120. abstra_statics/dist/assets/asyncComputed.78dd1715.js +2 -0
  121. abstra_statics/dist/assets/{build.a8637e29.js → build.8774fc90.js} +2 -2
  122. abstra_statics/dist/assets/{colorHelpers.8ba18214.js → colorHelpers.d8c19ea3.js} +2 -2
  123. abstra_statics/dist/assets/{console.2a5ed51a.js → console.984bbe98.js} +2 -2
  124. abstra_statics/dist/assets/constants.3b7395d7.js +2 -0
  125. abstra_statics/dist/assets/contracts.generated.31740563.js +2 -0
  126. abstra_statics/dist/assets/{cssMode.6c4ccf50.js → cssMode.f4a00eca.js} +2 -2
  127. abstra_statics/dist/assets/{datetime.89495471.js → datetime.01b86df2.js} +2 -2
  128. abstra_statics/dist/assets/dayjs.26942e0e.js +2 -0
  129. abstra_statics/dist/assets/editor.a6369f16.js +2 -0
  130. abstra_statics/dist/assets/editor.main.a0763b31.js +2 -0
  131. abstra_statics/dist/assets/fetch.33e85d9b.js +2 -0
  132. abstra_statics/dist/assets/{files.8999afd5.js → files.c547743b.js} +2 -2
  133. abstra_statics/dist/assets/{folder.81ef8619.js → folder.57131245.js} +2 -2
  134. abstra_statics/dist/assets/{freemarker2.559f77f2.js → freemarker2.7a4cfae0.js} +2 -2
  135. abstra_statics/dist/assets/{handlebars.8d101b7c.js → handlebars.db4a27de.js} +2 -2
  136. abstra_statics/dist/assets/{html.b3e7d3ab.js → html.f4b3970c.js} +3 -3
  137. abstra_statics/dist/assets/{htmlMode.2305b1bb.js → htmlMode.631923d5.js} +2 -2
  138. abstra_statics/dist/assets/{index.bc97991a.js → index.0a1e5d8b.js} +2 -2
  139. abstra_statics/dist/assets/{index.da4f9d54.js → index.12c03275.js} +2 -2
  140. abstra_statics/dist/assets/{index.e5cb42a1.js → index.2141f0e8.js} +2 -2
  141. abstra_statics/dist/assets/{index.f2beb20d.js → index.2f74579e.js} +2 -2
  142. abstra_statics/dist/assets/{index.b74c262c.js → index.30fbc3f5.js} +2 -2
  143. abstra_statics/dist/assets/{index.f6171691.js → index.6f45b384.js} +5 -5
  144. abstra_statics/dist/assets/{index.d809956c.js → index.7f04c017.js} +2 -2
  145. abstra_statics/dist/assets/{index.71eb83f3.js → index.8e10d0e4.js} +2 -2
  146. abstra_statics/dist/assets/{index.90acf038.js → index.fb17f22c.js} +2 -2
  147. abstra_statics/dist/assets/{javascript.3000fc25.js → javascript.b2197abc.js} +3 -3
  148. abstra_statics/dist/assets/{jsonMode.7bbb508d.js → jsonMode.8f2810a6.js} +2 -2
  149. abstra_statics/dist/assets/{jwt-decode.c5760184.css → jwt-decode.cfe2994b.css} +1 -1
  150. abstra_statics/dist/assets/{jwt-decode.esm.c9c37cdc.js → jwt-decode.esm.5ee65524.js} +133 -99
  151. abstra_statics/dist/assets/{linters.7fec18d9.js → linters.7d520e27.js} +2 -2
  152. abstra_statics/dist/assets/{liquid.b4ac9aaf.js → liquid.d3e68b2e.js} +3 -3
  153. abstra_statics/dist/assets/member.0ebe904c.js +2 -0
  154. abstra_statics/dist/assets/{metadata.e627ddda.js → metadata.db332d21.js} +2 -2
  155. abstra_statics/dist/assets/{omniChatStore.508e8ece.js → omniChatStore.cf2158f0.js} +2 -2
  156. abstra_statics/dist/assets/{organization.cd03f9a8.js → organization.23b0aa74.js} +2 -2
  157. abstra_statics/dist/assets/{os.f08724fb.js → os.e0510e90.js} +2 -2
  158. abstra_statics/dist/assets/player.78bcc85c.js +2 -0
  159. abstra_statics/dist/assets/{plotly.min.50ebb925.js → plotly.min.f771780a.js} +2 -2
  160. abstra_statics/dist/assets/polling.5339a00f.js +2 -0
  161. abstra_statics/dist/assets/{project.9a068e8d.js → project.afe4bf99.js} +2 -2
  162. abstra_statics/dist/assets/{python.51a7c648.js → python.d8c220ed.js} +3 -3
  163. abstra_statics/dist/assets/{razor.99323f5f.js → razor.97fa5198.js} +2 -2
  164. abstra_statics/dist/assets/{record.a33d29b1.js → record.dd367e66.js} +2 -2
  165. abstra_statics/dist/assets/{redirect.42bf4f0a.js → redirect.970a0b6b.js} +2 -2
  166. abstra_statics/dist/assets/{repository.94fb77c7.js → repository.214607cb.js} +2 -2
  167. abstra_statics/dist/assets/{repository.c0d70cb2.js → repository.c874615c.js} +2 -2
  168. abstra_statics/dist/assets/{repository.5190b94f.js → repository.d889eafa.js} +2 -2
  169. abstra_statics/dist/assets/{router.a8616541.js → router.9781de48.js} +3 -3
  170. abstra_statics/dist/assets/router.e3b4de3c.js +2 -0
  171. abstra_statics/dist/assets/{string.8fab6b53.js → string.0d721ad6.js} +2 -2
  172. abstra_statics/dist/assets/{tables.2e1c934b.js → tables.45712b3f.js} +2 -2
  173. abstra_statics/dist/assets/tasksController.538cacf5.js +4 -0
  174. abstra_statics/dist/assets/{toggleHighContrast.6544a728.js → toggleHighContrast.daf44fef.js} +7 -7
  175. abstra_statics/dist/assets/{tsMode.922e04bb.js → tsMode.b785363f.js} +2 -2
  176. abstra_statics/dist/assets/{typescript.1b4f8286.js → typescript.8bb42736.js} +2 -2
  177. abstra_statics/dist/assets/url.804625c6.js +2 -0
  178. abstra_statics/dist/assets/{useCodebaseEvents.ffe057d1.js → useCodebaseEvents.e9e5d343.js} +2 -2
  179. abstra_statics/dist/assets/useTables.2441f2b4.js +2 -0
  180. abstra_statics/dist/assets/userStore.9eb65729.js +2 -0
  181. abstra_statics/dist/assets/uuid.bc394306.js +2 -0
  182. abstra_statics/dist/assets/{vue-flow-background.3e9183ec.js → vue-flow-background.a4e5e1cd.js} +2 -2
  183. abstra_statics/dist/assets/{vue-flow-core.41c647da.js → vue-flow-core.bc9175da.js} +2 -2
  184. abstra_statics/dist/assets/{vue-quill.esm-bundler.36e79a95.js → vue-quill.esm-bundler.12c58800.js} +2 -2
  185. abstra_statics/dist/assets/{workspaceStore.5a435520.js → workspaceStore.18d1ed9a.js} +2 -2
  186. abstra_statics/dist/assets/{xml.c1692f52.js → xml.1dacd023.js} +3 -3
  187. abstra_statics/dist/assets/{yaml.244444c1.js → yaml.e841ac1c.js} +3 -3
  188. abstra_statics/dist/console.html +15 -15
  189. abstra_statics/dist/editor.html +14 -14
  190. abstra_statics/dist/player.html +10 -10
  191. abstra_statics/dist/assets/App.45396b70.js +0 -2
  192. abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.db5596a1.js +0 -2
  193. abstra_statics/dist/assets/BaseLayout.135a51d9.js +0 -2
  194. abstra_statics/dist/assets/Billing.622c9155.js +0 -2
  195. abstra_statics/dist/assets/CloseCircleOutlined.4c4707d8.js +0 -2
  196. abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.502d779a.js +0 -2
  197. abstra_statics/dist/assets/ContentLayout.b1c94c2b.js +0 -2
  198. abstra_statics/dist/assets/CrudView.75a430a4.js +0 -2
  199. abstra_statics/dist/assets/EnvVars.d77957ea.js +0 -2
  200. abstra_statics/dist/assets/Form.7493bc0a.css +0 -1
  201. abstra_statics/dist/assets/Form.a4787001.js +0 -2
  202. abstra_statics/dist/assets/FormRunner.73650f9e.js +0 -2
  203. abstra_statics/dist/assets/Home.19a2303b.js +0 -2
  204. abstra_statics/dist/assets/LoadingContainer.97fa8f2e.js +0 -2
  205. abstra_statics/dist/assets/LoadingOutlined.e309ab16.js +0 -2
  206. abstra_statics/dist/assets/Login.632cada3.js +0 -2
  207. abstra_statics/dist/assets/Logo.d77d5637.js +0 -2
  208. abstra_statics/dist/assets/LogsController.0ff97ed4.css +0 -1
  209. abstra_statics/dist/assets/LogsController.2dceb3d3.js +0 -2
  210. abstra_statics/dist/assets/Main.44b7640e.js +0 -2
  211. abstra_statics/dist/assets/MockForm.e410c2c1.css +0 -1
  212. abstra_statics/dist/assets/Navbar.0951ed6d.js +0 -2
  213. abstra_statics/dist/assets/NewEditor.d65a400f.js +0 -8
  214. abstra_statics/dist/assets/OidcLoginCallback.66b0f38a.js +0 -2
  215. abstra_statics/dist/assets/OidcLogoutCallback.48d8429a.js +0 -2
  216. abstra_statics/dist/assets/Organizations.2b1c6c65.js +0 -2
  217. abstra_statics/dist/assets/PhCopySimple.vue.0241af8c.js +0 -2
  218. abstra_statics/dist/assets/ProjectSettings.f8c6f60a.js +0 -2
  219. abstra_statics/dist/assets/ProjectsView.32f6ccff.js +0 -2
  220. abstra_statics/dist/assets/Steps.687763a5.js +0 -2
  221. abstra_statics/dist/assets/TableCard.8c99a870.js +0 -2
  222. abstra_statics/dist/assets/WidgetPreview.88a4f27f.js +0 -2
  223. abstra_statics/dist/assets/WorkflowViewer.3b6aee8e.css +0 -1
  224. abstra_statics/dist/assets/WorkflowViewer.778c401d.js +0 -2
  225. abstra_statics/dist/assets/ant-design.4efc9ccd.js +0 -2
  226. abstra_statics/dist/assets/apiKey.bd946d8c.js +0 -2
  227. abstra_statics/dist/assets/asyncComputed.7bc1692e.js +0 -2
  228. abstra_statics/dist/assets/constants.534f67bc.js +0 -2
  229. abstra_statics/dist/assets/contracts.generated.8ad36e63.js +0 -2
  230. abstra_statics/dist/assets/dayjs.304f38f8.js +0 -2
  231. abstra_statics/dist/assets/editor.c1a1bd33.js +0 -2
  232. abstra_statics/dist/assets/editor.main.84e237cf.js +0 -2
  233. abstra_statics/dist/assets/fetch.452c58e5.js +0 -2
  234. abstra_statics/dist/assets/member.3c12efee.js +0 -2
  235. abstra_statics/dist/assets/player.7362caf4.js +0 -2
  236. abstra_statics/dist/assets/polling.4db5ee9a.js +0 -2
  237. abstra_statics/dist/assets/router.4168cc71.js +0 -2
  238. abstra_statics/dist/assets/tasksController.1feffcfe.js +0 -4
  239. abstra_statics/dist/assets/url.9e033350.js +0 -2
  240. abstra_statics/dist/assets/useTables.5fffa3f1.js +0 -2
  241. abstra_statics/dist/assets/userStore.d962fba4.js +0 -2
  242. abstra_statics/dist/assets/uuid.8581bc03.js +0 -2
  243. {abstra-3.24.2.dist-info → abstra-3.24.4.dist-info}/WHEEL +0 -0
  244. {abstra-3.24.2.dist-info → abstra-3.24.4.dist-info}/entry_points.txt +0 -0
  245. {abstra-3.24.2.dist-info → abstra-3.24.4.dist-info}/top_level.txt +0 -0
@@ -1,2 +1,2 @@
1
- import{O as B,L as x}from"./CircularLoading.217756fb.js";import{d as L,r as D,o as d,ac as y,e as m,f as o,t as l,u as a,i as s,a as b,b as u,bQ as q,eM as N,cE as T,g,bY as h,cD as R,h as C,_ as E,ec as V,ei as $,c as U,dy as M}from"./jwt-decode.esm.c9c37cdc.js";import{l as I,m as S,n as z}from"./router.a8616541.js";import{_ as F}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.b1a71740.js";import{i as K}from"./string.8fab6b53.js";import{A as O}from"./index.b74c262c.js";import"./index.da4f9d54.js";import"./Logo.d77d5637.js";(function(){try{var c=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(c._sentryDebugIds=c._sentryDebugIds||{},c._sentryDebugIds[i]="3e75a70d-0c14-4ef2-a4ec-18fd9e62d3cb",c._sentryDebugIdIdentifier="sentry-dbid-3e75a70d-0c14-4ef2-a4ec-18fd9e62d3cb")}catch{}})();const G={class:"form"},Q={class:"header"},Y={class:"description"},j={class:"description"},H={class:"footer"},J={key:2,class:"loading"},W=L({__name:"Passwordless",emits:["done"],setup(c,{emit:i}){const e=D({stage:"collect-info",info:{email:""},token:"",invalid:!1,secsToAllowResend:0});function v(){const n=e.value.info.email,t=K(n);return e.value.invalid=!t,t}let _;const r=async({isResend:n}={})=>{if(!!v()){e.value.stage="loading";try{await I.authenticate(e.value.info.email,n),e.value.stage="collect-token",e.value.secsToAllowResend=120,clearInterval(_),_=setInterval(()=>{e.value.secsToAllowResend-=1,e.value.secsToAllowResend<=0&&clearInterval(_)},1e3)}catch{e.value.invalid=!0,e.value.stage="collect-info"}}},f=n=>{if(!n){e.value.info.email="";return}e.value.info.email=n.toLowerCase()},p=async()=>{var n;if(!!((n=e.value.info)!=null&&n.email)){e.value.stage="loading";try{const t=await I.verify(e.value.info.email,e.value.token);if(!t)throw new Error("[Passwordless] Login did not return an user");S.trackSession(),i("done",t),e.value.stage="done"}catch{e.value.invalid=!0,e.value.stage="collect-token"}}},A=async n=>{await fetch(`https://admin.abstra.app/_hooks/notify-email-not-received?email=${n}`,{method:"GET"})},k=()=>{e.value.info&&(r({isResend:!0}),A(e.value.info.email))},P=()=>{e.value.stage="collect-info",e.value.info={email:""},e.value.token="",e.value.invalid=!1};return(n,t)=>(d(),y("div",G,[m("div",Q,[o(F,{"hide-text":"",size:"large"}),m("h2",null,l(a(s).translate("i18n_auth_validate_your_email_login",null,{brandName:"Abstra"})),1)]),e.value.stage==="collect-info"?(d(),b(a(R),{key:0,class:"section"},{default:u(()=>[m("div",Y,l(a(s).translate("i18n_auth_info_description")),1),o(a(T),{"has-feedback":"","validate-status":e.value.invalid?"error":"",help:e.value.invalid?a(s).translate("i18n_auth_info_invalid_email"):""},{default:u(()=>[o(a(q),{type:"email",value:e.value.info.email,placeholder:a(s).translate("i18n_auth_enter_your_work_email"),autofocus:"",onBlur:v,onKeyup:t[0]||(t[0]=N(()=>r(),["enter"])),onChange:t[1]||(t[1]=w=>f(w.target.value))},null,8,["value","placeholder"])]),_:1},8,["validate-status","help"]),o(a(h),{type:"primary",onClick:t[2]||(t[2]=()=>r())},{default:u(()=>[g(l(a(s).translate("i18n_auth_info_send_code")),1)]),_:1})]),_:1})):e.value.stage==="collect-token"?(d(),b(a(R),{key:1,class:"section"},{default:u(()=>[m("div",j,l(a(s).translate("i18n_auth_token_label",null,e.value.info)),1),o(a(T),{"has-feedback":"","validate-status":e.value.invalid?"error":""},{default:u(()=>[o(B,{value:e.value.token,"onUpdate:value":t[3]||(t[3]=w=>e.value.token=w),length:6,numeric:!0,size:"large",onCollectToken:p},null,8,["value"]),e.value.invalid?(d(),b(a(O),{key:0,message:a(s).translate("i18n_auth_token_invalid"),type:"error",style:{"margin-top":"24px"}},null,8,["message"])):C("",!0)]),_:1},8,["validate-status"]),o(a(h),{type:"primary",onClick:p},{default:u(()=>[g(l(a(s).translate("i18n_auth_token_verify_email")),1)]),_:1}),o(a(h),{onClick:P},{default:u(()=>[g(l(a(s).translate("i18n_auth_edit_email")),1)]),_:1}),o(a(h),{disabled:!!e.value.secsToAllowResend,onClick:k},{default:u(()=>[g(l(a(s).translate("i18n_auth_token_resend_email"))+" ("+l(e.value.secsToAllowResend)+" s) ",1)]),_:1},8,["disabled"]),m("div",H,l(a(s).translate("i18n_auth_token_footer_alternative_email")),1)]),_:1})):e.value.stage==="loading"?(d(),y("div",J,[o(x)])):C("",!0)]))}});const X=E(W,[["__scopeId","data-v-d18467d0"]]),Z={key:0,class:"login"},ee={key:1,class:"loading"},ae=L({__name:"Login",setup(c){const i=V(),e=$();async function v(){const r=e.query.redirect,f=e.query["prev-redirect"],{status:p}=await z.getInfo();if(p!=="active"){i.push({name:"onboarding",query:{redirect:r,"prev-redirect":f}});return}if(r){const k=new URL(r,window.location.origin).pathname;await i.push({path:k,query:{...e.query,redirect:f,"prev-redirect":void 0}});return}i.push({name:"home"})}const _=U(()=>!I.getAuthor());return M(()=>{_.value||v()}),(r,f)=>_.value?(d(),y("div",Z,[o(X,{onDone:v})])):(d(),y("div",ee,[o(x)]))}});const de=E(ae,[["__scopeId","data-v-2abe81c3"]]);export{de as default};
2
- //# sourceMappingURL=Login.ecec1ff2.js.map
1
+ import{O as B,L as x}from"./CircularLoading.9f9e733d.js";import{d as L,r as D,o as c,ac as y,e as m,f as o,t as l,u as a,i as s,a as b,b as u,bQ as q,eM as N,cE as T,g,bY as h,cD as R,h as C,_ as E,ec as V,ei as $,c as U,dy as M}from"./jwt-decode.esm.5ee65524.js";import{l as I,m as S,n as z}from"./router.9781de48.js";import{_ as F}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.9c4020b5.js";import{i as K}from"./string.0d721ad6.js";import{A as O}from"./index.30fbc3f5.js";import"./index.12c03275.js";import"./Logo.3f68eae2.js";(function(){try{var d=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(d._sentryDebugIds=d._sentryDebugIds||{},d._sentryDebugIds[i]="ee87fb82-4ff6-4ccc-8bb1-b3c943ac466e",d._sentryDebugIdIdentifier="sentry-dbid-ee87fb82-4ff6-4ccc-8bb1-b3c943ac466e")}catch{}})();const G={class:"form"},Q={class:"header"},Y={class:"description"},j={class:"description"},H={class:"footer"},J={key:2,class:"loading"},W=L({__name:"Passwordless",emits:["done"],setup(d,{emit:i}){const e=D({stage:"collect-info",info:{email:""},token:"",invalid:!1,secsToAllowResend:0});function v(){const n=e.value.info.email,t=K(n);return e.value.invalid=!t,t}let _;const r=async({isResend:n}={})=>{if(!!v()){e.value.stage="loading";try{await I.authenticate(e.value.info.email,n),e.value.stage="collect-token",e.value.secsToAllowResend=120,clearInterval(_),_=setInterval(()=>{e.value.secsToAllowResend-=1,e.value.secsToAllowResend<=0&&clearInterval(_)},1e3)}catch{e.value.invalid=!0,e.value.stage="collect-info"}}},f=n=>{if(!n){e.value.info.email="";return}e.value.info.email=n.toLowerCase()},p=async()=>{var n;if(!!((n=e.value.info)!=null&&n.email)){e.value.stage="loading";try{const t=await I.verify(e.value.info.email,e.value.token);if(!t)throw new Error("[Passwordless] Login did not return an user");S.trackSession(),i("done",t),e.value.stage="done"}catch{e.value.invalid=!0,e.value.stage="collect-token"}}},A=async n=>{await fetch(`https://admin.abstra.app/_hooks/notify-email-not-received?email=${n}`,{method:"GET"})},k=()=>{e.value.info&&(r({isResend:!0}),A(e.value.info.email))},P=()=>{e.value.stage="collect-info",e.value.info={email:""},e.value.token="",e.value.invalid=!1};return(n,t)=>(c(),y("div",G,[m("div",Q,[o(F,{"hide-text":"",size:"large"}),m("h2",null,l(a(s).translate("i18n_auth_validate_your_email_login",null,{brandName:"Abstra"})),1)]),e.value.stage==="collect-info"?(c(),b(a(R),{key:0,class:"section"},{default:u(()=>[m("div",Y,l(a(s).translate("i18n_auth_info_description")),1),o(a(T),{"has-feedback":"","validate-status":e.value.invalid?"error":"",help:e.value.invalid?a(s).translate("i18n_auth_info_invalid_email"):""},{default:u(()=>[o(a(q),{type:"email",value:e.value.info.email,placeholder:a(s).translate("i18n_auth_enter_your_work_email"),autofocus:"",onBlur:v,onKeyup:t[0]||(t[0]=N(()=>r(),["enter"])),onChange:t[1]||(t[1]=w=>f(w.target.value))},null,8,["value","placeholder"])]),_:1},8,["validate-status","help"]),o(a(h),{type:"primary",onClick:t[2]||(t[2]=()=>r())},{default:u(()=>[g(l(a(s).translate("i18n_auth_info_send_code")),1)]),_:1})]),_:1})):e.value.stage==="collect-token"?(c(),b(a(R),{key:1,class:"section"},{default:u(()=>[m("div",j,l(a(s).translate("i18n_auth_token_label",null,e.value.info)),1),o(a(T),{"has-feedback":"","validate-status":e.value.invalid?"error":""},{default:u(()=>[o(B,{value:e.value.token,"onUpdate:value":t[3]||(t[3]=w=>e.value.token=w),length:6,numeric:!0,size:"large",onCollectToken:p},null,8,["value"]),e.value.invalid?(c(),b(a(O),{key:0,message:a(s).translate("i18n_auth_token_invalid"),type:"error",style:{"margin-top":"24px"}},null,8,["message"])):C("",!0)]),_:1},8,["validate-status"]),o(a(h),{type:"primary",onClick:p},{default:u(()=>[g(l(a(s).translate("i18n_auth_token_verify_email")),1)]),_:1}),o(a(h),{onClick:P},{default:u(()=>[g(l(a(s).translate("i18n_auth_edit_email")),1)]),_:1}),o(a(h),{disabled:!!e.value.secsToAllowResend,onClick:k},{default:u(()=>[g(l(a(s).translate("i18n_auth_token_resend_email"))+" ("+l(e.value.secsToAllowResend)+" s) ",1)]),_:1},8,["disabled"]),m("div",H,l(a(s).translate("i18n_auth_token_footer_alternative_email")),1)]),_:1})):e.value.stage==="loading"?(c(),y("div",J,[o(x)])):C("",!0)]))}});const X=E(W,[["__scopeId","data-v-d18467d0"]]),Z={key:0,class:"login"},ee={key:1,class:"loading"},ae=L({__name:"Login",setup(d){const i=V(),e=$();async function v(){const r=e.query.redirect,f=e.query["prev-redirect"],{status:p}=await z.getInfo();if(p!=="active"){i.push({name:"onboarding",query:{redirect:r,"prev-redirect":f}});return}if(r){const k=new URL(r,window.location.origin).pathname;await i.push({path:k,query:{...e.query,redirect:f,"prev-redirect":void 0}});return}i.push({name:"home"})}const _=U(()=>!I.getAuthor());return M(()=>{_.value||v()}),(r,f)=>_.value?(c(),y("div",Z,[o(X,{onDone:v})])):(c(),y("div",ee,[o(x)]))}});const ce=E(ae,[["__scopeId","data-v-2abe81c3"]]);export{ce as default};
2
+ //# sourceMappingURL=Login.2d19f80c.js.map
@@ -0,0 +1,2 @@
1
+ import{_ as l}from"./Login.vue_vue_type_script_setup_true_lang.8d4054f1.js";import{d as m,ec as f,ei as g,ac as y,f as b,u as n,o as w,_ as k}from"./jwt-decode.esm.5ee65524.js";import{u as h}from"./workspaceStore.18d1ed9a.js";import"./CircularLoading.9f9e733d.js";import"./Logo.3f68eae2.js";import"./string.0d721ad6.js";import"./index.30fbc3f5.js";import"./userStore.9eb65729.js";import"./url.804625c6.js";import"./colorHelpers.d8c19ea3.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]="42391ec5-8899-4226-9531-042a57359b4d",e._sentryDebugIdIdentifier="sentry-dbid-42391ec5-8899-4226-9531-042a57359b4d")}catch{}})();const v={class:"runner"},I=m({__name:"Login",setup(e){const o=f(),t=g(),r=h(),_=async()=>{const{redirect:a,...s}=t.query;if(a){await o.push({path:a,query:s,params:t.params});return}o.push({name:"playerHome",query:s})};return(a,s)=>{var c,p,u,d,i;return w(),y("div",v,[b(l,{"logo-url":(p=(c=n(r).state.workspace)==null?void 0:c.logoUrl)!=null?p:void 0,"brand-name":(u=n(r).state.workspace)==null?void 0:u.brandName,locale:(i=(d=n(r).state.workspace)==null?void 0:d.language)!=null?i:"en",onDone:_},null,8,["logo-url","brand-name","locale"])])}}});const H=k(I,[["__scopeId","data-v-12c690e1"]]);export{H as default};
2
+ //# sourceMappingURL=Login.de9c56a5.js.map
@@ -1,2 +1,2 @@
1
- import{d as L,at as A,c as k,o as t,ac as f,ae as B,h as b,ed as U,e as i,U as O,f as d,b as c,u as a,t as m,i as o,g as h,dd as z,es as j,et as F,_ as S,r as G,a as g,dj as C,cD as H,bQ as K,eM as W,cE as P,bY as M}from"./jwt-decode.esm.c9c37cdc.js";import{O as D,S as q,A as x}from"./workspaceStore.5a435520.js";import{O as J,L as Q}from"./CircularLoading.217756fb.js";import{L as X}from"./Logo.d77d5637.js";import{i as Y}from"./string.8fab6b53.js";import{A as N}from"./index.b74c262c.js";import{u as ee}from"./userStore.d962fba4.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[s]="c0fe4975-9a60-415c-92d7-1de725cfd3a7",n._sentryDebugIdIdentifier="sentry-dbid-c0fe4975-9a60-415c-92d7-1de725cfd3a7")}catch{}})();const ae=["width","height","fill","transform"],le={key:0},te=i("path",{d:"M140,32V64a12,12,0,0,1-24,0V32a12,12,0,0,1,24,0Zm33.25,62.75a12,12,0,0,0,8.49-3.52L204.37,68.6a12,12,0,0,0-17-17L164.77,74.26a12,12,0,0,0,8.48,20.49ZM224,116H192a12,12,0,0,0,0,24h32a12,12,0,0,0,0-24Zm-42.26,48.77a12,12,0,1,0-17,17l22.63,22.63a12,12,0,0,0,17-17ZM128,180a12,12,0,0,0-12,12v32a12,12,0,0,0,24,0V192A12,12,0,0,0,128,180ZM74.26,164.77,51.63,187.4a12,12,0,0,0,17,17l22.63-22.63a12,12,0,1,0-17-17ZM76,128a12,12,0,0,0-12-12H32a12,12,0,0,0,0,24H64A12,12,0,0,0,76,128ZM68.6,51.63a12,12,0,1,0-17,17L74.26,91.23a12,12,0,0,0,17-17Z"},null,-1),oe=[te],ne={key:1},se=i("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),ie=i("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"},null,-1),re=[se,ie],de={key:2},ue=i("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm33.94,58.75,17-17a8,8,0,0,1,11.32,11.32l-17,17a8,8,0,0,1-11.31-11.31ZM48,136a8,8,0,0,1,0-16H72a8,8,0,0,1,0,16Zm46.06,37.25-17,17a8,8,0,0,1-11.32-11.32l17-17a8,8,0,0,1,11.31,11.31Zm0-79.19a8,8,0,0,1-11.31,0l-17-17A8,8,0,0,1,77.09,65.77l17,17A8,8,0,0,1,94.06,94.06ZM136,208a8,8,0,0,1-16,0V184a8,8,0,0,1,16,0Zm0-136a8,8,0,0,1-16,0V48a8,8,0,0,1,16,0Zm54.23,118.23a8,8,0,0,1-11.32,0l-17-17a8,8,0,0,1,11.31-11.31l17,17A8,8,0,0,1,190.23,190.23ZM208,136H184a8,8,0,0,1,0-16h24a8,8,0,0,1,0,16Z"},null,-1),ce=[ue],me={key:3},_e=i("path",{d:"M134,32V64a6,6,0,0,1-12,0V32a6,6,0,0,1,12,0Zm39.25,56.75A6,6,0,0,0,177.5,87l22.62-22.63a6,6,0,0,0-8.48-8.48L169,78.5a6,6,0,0,0,4.24,10.25ZM224,122H192a6,6,0,0,0,0,12h32a6,6,0,0,0,0-12Zm-46.5,47A6,6,0,0,0,169,177.5l22.63,22.62a6,6,0,0,0,8.48-8.48ZM128,186a6,6,0,0,0-6,6v32a6,6,0,0,0,12,0V192A6,6,0,0,0,128,186ZM78.5,169,55.88,191.64a6,6,0,1,0,8.48,8.48L87,177.5A6,6,0,1,0,78.5,169ZM70,128a6,6,0,0,0-6-6H32a6,6,0,0,0,0,12H64A6,6,0,0,0,70,128ZM64.36,55.88a6,6,0,0,0-8.48,8.48L78.5,87A6,6,0,1,0,87,78.5Z"},null,-1),ve=[_e],fe={key:4},pe=i("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"},null,-1),ge=[pe],he={key:5},ye=i("path",{d:"M132,32V64a4,4,0,0,1-8,0V32a4,4,0,0,1,8,0Zm41.25,54.75a4,4,0,0,0,2.83-1.18L198.71,63a4,4,0,0,0-5.66-5.66L170.43,79.92a4,4,0,0,0,2.82,6.83ZM224,124H192a4,4,0,0,0,0,8h32a4,4,0,0,0,0-8Zm-47.92,46.43a4,4,0,1,0-5.65,5.65l22.62,22.63a4,4,0,0,0,5.66-5.66ZM128,188a4,4,0,0,0-4,4v32a4,4,0,0,0,8,0V192A4,4,0,0,0,128,188ZM79.92,170.43,57.29,193.05A4,4,0,0,0,63,198.71l22.62-22.63a4,4,0,1,0-5.65-5.65ZM68,128a4,4,0,0,0-4-4H32a4,4,0,0,0,0,8H64A4,4,0,0,0,68,128ZM63,57.29A4,4,0,0,0,57.29,63L79.92,85.57a4,4,0,1,0,5.65-5.65Z"},null,-1),Ze=[ye],we={name:"PhSpinner"},ke=L({...we,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(n){const s=n,_=A("weight","regular"),e=A("size","1em"),v=A("color","currentColor"),V=A("mirrored",!1),p=k(()=>{var r;return(r=s.weight)!=null?r:_}),y=k(()=>{var r;return(r=s.size)!=null?r:e}),Z=k(()=>{var r;return(r=s.color)!=null?r:v}),w=k(()=>s.mirrored!==void 0?s.mirrored?"scale(-1, 1)":void 0:V?"scale(-1, 1)":void 0);return(r,I)=>(t(),f("svg",U({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:y.value,height:y.value,fill:Z.value,transform:w.value},r.$attrs),[B(r.$slots,"default"),p.value==="bold"?(t(),f("g",le,oe)):p.value==="duotone"?(t(),f("g",ne,re)):p.value==="fill"?(t(),f("g",de,ce)):p.value==="light"?(t(),f("g",me,ve)):p.value==="regular"?(t(),f("g",fe,ge)):p.value==="thin"?(t(),f("g",he,Ze)):b("",!0)],16,ae))}}),Ae=n=>(j("data-v-94b68186"),n=n(),F(),n),Me={class:"oidc-container"},be=Ae(()=>i("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",dur:"3s",from:"0 0 0",to:"360 0 0",repeatCount:"indefinite"},null,-1)),Le={class:"centered"},Ve={class:"centered"},Ie=L({__name:"Oidc",emits:["done"],setup(n,{emit:s}){const _=async()=>{const v=await new D().login();if(!v)throw new Error("[OIDC] Login did not return an user");s("done",v)};return O(()=>_()),(e,v)=>(t(),f("div",Me,[d(a(ke),{size:60,style:{"margin-bottom":"50px"}},{default:c(()=>[be]),_:1}),i("p",Le,m(a(o).translate("i18n_oidc_complete_login_message")),1),i("p",Ve,[h(m(a(o).translate("i18n_oidc_popup_not_appeared_message"))+" ",1),d(a(z),{onClick:_},{default:c(()=>[h(m(a(o).translate("i18n_oidc_click_here_link")),1)]),_:1}),h(". ")])]))}});const Te=S(Ie,[["__scopeId","data-v-94b68186"]]),Ce={class:"description"},He={class:"description"},Pe={class:"footer"},Ne={key:3,class:"loading"},Se=L({__name:"Passwordless",props:{logoUrl:{},brandName:{},locale:{}},emits:["done"],setup(n,{emit:s}){const _=n,e=G({stage:"collect-info",info:{email:""},token:"",invalid:!1,secsToAllowResend:0}),v=new x,V=k(()=>{var l;return(l=q.instance)==null?void 0:l.isLocal}),p=o.translate("i18n_local_auth_info_description",_.locale);function y(){const l=e.value.info.email,u=Y(l);return e.value.invalid=!u,u}let Z;const w=async({isResend:l}={})=>{if(!!y()){e.value.stage="loading";try{await v.authenticate(e.value.info.email,l),e.value.stage="collect-token",e.value.secsToAllowResend=120,clearInterval(Z),Z=setInterval(()=>{e.value.secsToAllowResend-=1,e.value.secsToAllowResend<=0&&(clearInterval(Z),e.value.secsToAllowResend=0)},1e3)}catch{e.value.invalid=!0,e.value.stage="collect-info"}}},r=l=>{if(!l){e.value.info.email="";return}e.value.info.email=l.toLowerCase()},I=async()=>{if(!!e.value.info.email){e.value.stage="loading";try{const l=await v.verify(e.value.info.email,e.value.token);if(!l)throw new Error("[Passwordless] Login did not return an user");s("done",l),e.value.stage="loading"}catch{e.value.invalid=!0,e.value.stage="collect-token"}}},E=async l=>{await fetch(`https://admin.abstra.app/_hooks/notify-email-not-received?email=${l}`,{method:"GET"})},R=()=>{e.value.info.email&&(w({isResend:!0}),E(e.value.info.email))},$=()=>{e.value={stage:"collect-info",info:{email:""},token:"",invalid:!1,secsToAllowResend:0}};return(l,u)=>(t(),g(a(C),{vertical:"",align:"center",gap:"middle",class:"passwordless"},{default:c(()=>[d(a(C),{vertical:"",align:"center",gap:"small",class:"header"},{default:c(()=>[d(X,{"hide-text":"",size:"large","image-url":l.logoUrl,"brand-name":l.brandName},null,8,["image-url","brand-name"]),i("h2",null,m(a(o).translate("i18n_auth_validate_your_email_login",l.locale,{brandName:l.brandName})),1)]),_:1}),V.value?(t(),g(a(N),{key:0,message:a(p),type:"warning","show-icon":"",style:{width:"100%","text-align":"left"}},null,8,["message"])):b("",!0),e.value.stage==="collect-info"?(t(),g(a(H),{key:1,class:"section"},{default:c(()=>[i("div",Ce,m(a(o).translate("i18n_auth_info_description",l.locale)),1),d(a(P),{"has-feedback":"","validate-status":e.value.invalid?"error":"",help:e.value.invalid?a(o).translate("i18n_auth_info_invalid_email",l.locale):""},{default:c(()=>[d(a(K),{type:"email",value:e.value.info.email,placeholder:a(o).translate("i18n_auth_enter_your_email",l.locale),autofocus:"",onBlur:y,onKeyup:u[0]||(u[0]=W(()=>w(),["enter"])),onChange:u[1]||(u[1]=T=>r(T.target.value))},null,8,["value","placeholder"])]),_:1},8,["validate-status","help"]),d(a(M),{type:"primary",onClick:u[2]||(u[2]=()=>w())},{default:c(()=>[h(m(a(o).translate("i18n_auth_info_send_code",l.locale)),1)]),_:1})]),_:1})):e.value.stage==="collect-token"?(t(),g(a(H),{key:2,class:"section"},{default:c(()=>[i("div",He,m(a(o).translate("i18n_auth_token_label",l.locale,e.value.info)),1),d(a(P),{"has-feedback":"","validate-status":e.value.invalid?"error":""},{default:c(()=>[d(J,{value:e.value.token,"onUpdate:value":u[3]||(u[3]=T=>e.value.token=T),length:6,numeric:!0,size:"large",onCollectToken:I},null,8,["value"]),e.value.invalid?(t(),g(a(N),{key:0,message:a(o).translate("i18n_auth_token_invalid"),type:"error",style:{"margin-top":"24px"}},null,8,["message"])):b("",!0)]),_:1},8,["validate-status"]),d(a(M),{type:"primary",onClick:I},{default:c(()=>[h(m(a(o).translate("i18n_auth_token_verify_email",l.locale)),1)]),_:1}),d(a(M),{onClick:$},{default:c(()=>[h(m(a(o).translate("i18n_auth_edit_email",l.locale)),1)]),_:1}),d(a(M),{disabled:!!e.value.secsToAllowResend,onClick:R},{default:c(()=>[h(m(a(o).translate("i18n_auth_token_resend_email",l.locale))+" ("+m(e.value.secsToAllowResend)+" s) ",1)]),_:1},8,["disabled"]),i("div",Pe,m(a(o).translate("i18n_auth_token_footer_alternative_email",l.locale)),1)]),_:1})):e.value.stage==="loading"?(t(),f("div",Ne,[d(Q)])):b("",!0)]),_:1}))}});const De=S(Se,[["__scopeId","data-v-a1043ff4"]]),je=L({__name:"Login",props:{logoUrl:{},brandName:{},locale:{}},emits:["done"],setup(n,{emit:s}){const _=e=>{ee().saveJWT(e),s("done",e)};return(e,v)=>a(D).isConfigured()?(t(),g(Te,{key:0,onDone:_})):(t(),g(De,{key:1,locale:e.locale,"logo-url":e.logoUrl,"brand-name":e.brandName,onDone:_},null,8,["locale","logo-url","brand-name"]))}});export{je as _};
2
- //# sourceMappingURL=Login.vue_vue_type_script_setup_true_lang.ada1c6c9.js.map
1
+ import{d as L,at as A,c as k,o as t,ac as p,ae as B,h as M,ed as U,e as i,U as O,f as d,b as c,u as a,t as m,i as o,g as h,dd as z,es as j,et as F,_ as S,r as G,a as g,dj as C,cD as H,bQ as K,eM as W,cE as P,bY as b}from"./jwt-decode.esm.5ee65524.js";import{O as D,S as q,A as x}from"./workspaceStore.18d1ed9a.js";import{O as J,L as Q}from"./CircularLoading.9f9e733d.js";import{L as X}from"./Logo.3f68eae2.js";import{i as Y}from"./string.0d721ad6.js";import{A as N}from"./index.30fbc3f5.js";import{u as ee}from"./userStore.9eb65729.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[s]="1d5e8e75-b0cd-4275-b6e2-9c89da891abc",n._sentryDebugIdIdentifier="sentry-dbid-1d5e8e75-b0cd-4275-b6e2-9c89da891abc")}catch{}})();const ae=["width","height","fill","transform"],le={key:0},te=i("path",{d:"M140,32V64a12,12,0,0,1-24,0V32a12,12,0,0,1,24,0Zm33.25,62.75a12,12,0,0,0,8.49-3.52L204.37,68.6a12,12,0,0,0-17-17L164.77,74.26a12,12,0,0,0,8.48,20.49ZM224,116H192a12,12,0,0,0,0,24h32a12,12,0,0,0,0-24Zm-42.26,48.77a12,12,0,1,0-17,17l22.63,22.63a12,12,0,0,0,17-17ZM128,180a12,12,0,0,0-12,12v32a12,12,0,0,0,24,0V192A12,12,0,0,0,128,180ZM74.26,164.77,51.63,187.4a12,12,0,0,0,17,17l22.63-22.63a12,12,0,1,0-17-17ZM76,128a12,12,0,0,0-12-12H32a12,12,0,0,0,0,24H64A12,12,0,0,0,76,128ZM68.6,51.63a12,12,0,1,0-17,17L74.26,91.23a12,12,0,0,0,17-17Z"},null,-1),oe=[te],ne={key:1},se=i("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),ie=i("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"},null,-1),re=[se,ie],de={key:2},ue=i("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm33.94,58.75,17-17a8,8,0,0,1,11.32,11.32l-17,17a8,8,0,0,1-11.31-11.31ZM48,136a8,8,0,0,1,0-16H72a8,8,0,0,1,0,16Zm46.06,37.25-17,17a8,8,0,0,1-11.32-11.32l17-17a8,8,0,0,1,11.31,11.31Zm0-79.19a8,8,0,0,1-11.31,0l-17-17A8,8,0,0,1,77.09,65.77l17,17A8,8,0,0,1,94.06,94.06ZM136,208a8,8,0,0,1-16,0V184a8,8,0,0,1,16,0Zm0-136a8,8,0,0,1-16,0V48a8,8,0,0,1,16,0Zm54.23,118.23a8,8,0,0,1-11.32,0l-17-17a8,8,0,0,1,11.31-11.31l17,17A8,8,0,0,1,190.23,190.23ZM208,136H184a8,8,0,0,1,0-16h24a8,8,0,0,1,0,16Z"},null,-1),ce=[ue],me={key:3},_e=i("path",{d:"M134,32V64a6,6,0,0,1-12,0V32a6,6,0,0,1,12,0Zm39.25,56.75A6,6,0,0,0,177.5,87l22.62-22.63a6,6,0,0,0-8.48-8.48L169,78.5a6,6,0,0,0,4.24,10.25ZM224,122H192a6,6,0,0,0,0,12h32a6,6,0,0,0,0-12Zm-46.5,47A6,6,0,0,0,169,177.5l22.63,22.62a6,6,0,0,0,8.48-8.48ZM128,186a6,6,0,0,0-6,6v32a6,6,0,0,0,12,0V192A6,6,0,0,0,128,186ZM78.5,169,55.88,191.64a6,6,0,1,0,8.48,8.48L87,177.5A6,6,0,1,0,78.5,169ZM70,128a6,6,0,0,0-6-6H32a6,6,0,0,0,0,12H64A6,6,0,0,0,70,128ZM64.36,55.88a6,6,0,0,0-8.48,8.48L78.5,87A6,6,0,1,0,87,78.5Z"},null,-1),ve=[_e],pe={key:4},fe=i("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"},null,-1),ge=[fe],he={key:5},ye=i("path",{d:"M132,32V64a4,4,0,0,1-8,0V32a4,4,0,0,1,8,0Zm41.25,54.75a4,4,0,0,0,2.83-1.18L198.71,63a4,4,0,0,0-5.66-5.66L170.43,79.92a4,4,0,0,0,2.82,6.83ZM224,124H192a4,4,0,0,0,0,8h32a4,4,0,0,0,0-8Zm-47.92,46.43a4,4,0,1,0-5.65,5.65l22.62,22.63a4,4,0,0,0,5.66-5.66ZM128,188a4,4,0,0,0-4,4v32a4,4,0,0,0,8,0V192A4,4,0,0,0,128,188ZM79.92,170.43,57.29,193.05A4,4,0,0,0,63,198.71l22.62-22.63a4,4,0,1,0-5.65-5.65ZM68,128a4,4,0,0,0-4-4H32a4,4,0,0,0,0,8H64A4,4,0,0,0,68,128ZM63,57.29A4,4,0,0,0,57.29,63L79.92,85.57a4,4,0,1,0,5.65-5.65Z"},null,-1),Ze=[ye],we={name:"PhSpinner"},ke=L({...we,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(n){const s=n,_=A("weight","regular"),e=A("size","1em"),v=A("color","currentColor"),V=A("mirrored",!1),f=k(()=>{var r;return(r=s.weight)!=null?r:_}),y=k(()=>{var r;return(r=s.size)!=null?r:e}),Z=k(()=>{var r;return(r=s.color)!=null?r:v}),w=k(()=>s.mirrored!==void 0?s.mirrored?"scale(-1, 1)":void 0:V?"scale(-1, 1)":void 0);return(r,I)=>(t(),p("svg",U({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:y.value,height:y.value,fill:Z.value,transform:w.value},r.$attrs),[B(r.$slots,"default"),f.value==="bold"?(t(),p("g",le,oe)):f.value==="duotone"?(t(),p("g",ne,re)):f.value==="fill"?(t(),p("g",de,ce)):f.value==="light"?(t(),p("g",me,ve)):f.value==="regular"?(t(),p("g",pe,ge)):f.value==="thin"?(t(),p("g",he,Ze)):M("",!0)],16,ae))}}),Ae=n=>(j("data-v-94b68186"),n=n(),F(),n),be={class:"oidc-container"},Me=Ae(()=>i("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",dur:"3s",from:"0 0 0",to:"360 0 0",repeatCount:"indefinite"},null,-1)),Le={class:"centered"},Ve={class:"centered"},Ie=L({__name:"Oidc",emits:["done"],setup(n,{emit:s}){const _=async()=>{const v=await new D().login();if(!v)throw new Error("[OIDC] Login did not return an user");s("done",v)};return O(()=>_()),(e,v)=>(t(),p("div",be,[d(a(ke),{size:60,style:{"margin-bottom":"50px"}},{default:c(()=>[Me]),_:1}),i("p",Le,m(a(o).translate("i18n_oidc_complete_login_message")),1),i("p",Ve,[h(m(a(o).translate("i18n_oidc_popup_not_appeared_message"))+" ",1),d(a(z),{onClick:_},{default:c(()=>[h(m(a(o).translate("i18n_oidc_click_here_link")),1)]),_:1}),h(". ")])]))}});const Te=S(Ie,[["__scopeId","data-v-94b68186"]]),Ce={class:"description"},He={class:"description"},Pe={class:"footer"},Ne={key:3,class:"loading"},Se=L({__name:"Passwordless",props:{logoUrl:{},brandName:{},locale:{}},emits:["done"],setup(n,{emit:s}){const _=n,e=G({stage:"collect-info",info:{email:""},token:"",invalid:!1,secsToAllowResend:0}),v=new x,V=k(()=>{var l;return(l=q.instance)==null?void 0:l.isLocal}),f=o.translate("i18n_local_auth_info_description",_.locale);function y(){const l=e.value.info.email,u=Y(l);return e.value.invalid=!u,u}let Z;const w=async({isResend:l}={})=>{if(!!y()){e.value.stage="loading";try{await v.authenticate(e.value.info.email,l),e.value.stage="collect-token",e.value.secsToAllowResend=120,clearInterval(Z),Z=setInterval(()=>{e.value.secsToAllowResend-=1,e.value.secsToAllowResend<=0&&(clearInterval(Z),e.value.secsToAllowResend=0)},1e3)}catch{e.value.invalid=!0,e.value.stage="collect-info"}}},r=l=>{if(!l){e.value.info.email="";return}e.value.info.email=l.toLowerCase()},I=async()=>{if(!!e.value.info.email){e.value.stage="loading";try{const l=await v.verify(e.value.info.email,e.value.token);if(!l)throw new Error("[Passwordless] Login did not return an user");s("done",l),e.value.stage="loading"}catch{e.value.invalid=!0,e.value.stage="collect-token"}}},E=async l=>{await fetch(`https://admin.abstra.app/_hooks/notify-email-not-received?email=${l}`,{method:"GET"})},R=()=>{e.value.info.email&&(w({isResend:!0}),E(e.value.info.email))},$=()=>{e.value={stage:"collect-info",info:{email:""},token:"",invalid:!1,secsToAllowResend:0}};return(l,u)=>(t(),g(a(C),{vertical:"",align:"center",gap:"middle",class:"passwordless"},{default:c(()=>[d(a(C),{vertical:"",align:"center",gap:"small",class:"header"},{default:c(()=>[d(X,{"hide-text":"",size:"large","image-url":l.logoUrl,"brand-name":l.brandName},null,8,["image-url","brand-name"]),i("h2",null,m(a(o).translate("i18n_auth_validate_your_email_login",l.locale,{brandName:l.brandName})),1)]),_:1}),V.value?(t(),g(a(N),{key:0,message:a(f),type:"warning","show-icon":"",style:{width:"100%","text-align":"left"}},null,8,["message"])):M("",!0),e.value.stage==="collect-info"?(t(),g(a(H),{key:1,class:"section"},{default:c(()=>[i("div",Ce,m(a(o).translate("i18n_auth_info_description",l.locale)),1),d(a(P),{"has-feedback":"","validate-status":e.value.invalid?"error":"",help:e.value.invalid?a(o).translate("i18n_auth_info_invalid_email",l.locale):""},{default:c(()=>[d(a(K),{type:"email",value:e.value.info.email,placeholder:a(o).translate("i18n_auth_enter_your_email",l.locale),autofocus:"",onBlur:y,onKeyup:u[0]||(u[0]=W(()=>w(),["enter"])),onChange:u[1]||(u[1]=T=>r(T.target.value))},null,8,["value","placeholder"])]),_:1},8,["validate-status","help"]),d(a(b),{type:"primary",onClick:u[2]||(u[2]=()=>w())},{default:c(()=>[h(m(a(o).translate("i18n_auth_info_send_code",l.locale)),1)]),_:1})]),_:1})):e.value.stage==="collect-token"?(t(),g(a(H),{key:2,class:"section"},{default:c(()=>[i("div",He,m(a(o).translate("i18n_auth_token_label",l.locale,e.value.info)),1),d(a(P),{"has-feedback":"","validate-status":e.value.invalid?"error":""},{default:c(()=>[d(J,{value:e.value.token,"onUpdate:value":u[3]||(u[3]=T=>e.value.token=T),length:6,numeric:!0,size:"large",onCollectToken:I},null,8,["value"]),e.value.invalid?(t(),g(a(N),{key:0,message:a(o).translate("i18n_auth_token_invalid"),type:"error",style:{"margin-top":"24px"}},null,8,["message"])):M("",!0)]),_:1},8,["validate-status"]),d(a(b),{type:"primary",onClick:I},{default:c(()=>[h(m(a(o).translate("i18n_auth_token_verify_email",l.locale)),1)]),_:1}),d(a(b),{onClick:$},{default:c(()=>[h(m(a(o).translate("i18n_auth_edit_email",l.locale)),1)]),_:1}),d(a(b),{disabled:!!e.value.secsToAllowResend,onClick:R},{default:c(()=>[h(m(a(o).translate("i18n_auth_token_resend_email",l.locale))+" ("+m(e.value.secsToAllowResend)+" s) ",1)]),_:1},8,["disabled"]),i("div",Pe,m(a(o).translate("i18n_auth_token_footer_alternative_email",l.locale)),1)]),_:1})):e.value.stage==="loading"?(t(),p("div",Ne,[d(Q)])):M("",!0)]),_:1}))}});const De=S(Se,[["__scopeId","data-v-a1043ff4"]]),je=L({__name:"Login",props:{logoUrl:{},brandName:{},locale:{}},emits:["done"],setup(n,{emit:s}){const _=e=>{ee().saveJWT(e),s("done",e)};return(e,v)=>a(D).isConfigured()?(t(),g(Te,{key:0,onDone:_})):(t(),g(De,{key:1,locale:e.locale,"logo-url":e.logoUrl,"brand-name":e.brandName,onDone:_},null,8,["locale","logo-url","brand-name"]))}});export{je as _};
2
+ //# sourceMappingURL=Login.vue_vue_type_script_setup_true_lang.8d4054f1.js.map
@@ -0,0 +1,2 @@
1
+ import{d as c,eF as i,c as r,o,ac as t,h as d,eh as _,t as p,_ as u}from"./jwt-decode.esm.5ee65524.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]="bd926a30-d419-44fa-85ca-c56d2d5729a0",e._sentryDebugIdIdentifier="sentry-dbid-bd926a30-d419-44fa-85ca-c56d2d5729a0")}catch{}})();const g={class:"logo"},f=["src","alt"],m=c({__name:"Logo",props:{imageUrl:{},brandName:{},hideText:{type:Boolean},size:{}},setup(e){const a=e;i(s=>({"4521d904":n.value}));const n=r(()=>a.size==="small"?"24px":a.size==="large"?"80px":"50px"),l=r(()=>`${a.brandName} Logo`);return(s,y)=>(o(),t("div",g,[s.imageUrl?(o(),t("img",{key:0,class:"logo-img",src:s.imageUrl,alt:l.value},null,8,f)):d("",!0),s.hideText?d("",!0):(o(),t("span",{key:1,class:_(s.size)},p(s.brandName),3))]))}});const h=u(m,[["__scopeId","data-v-8f34aac0"]]);export{h as L};
2
+ //# sourceMappingURL=Logo.3f68eae2.js.map
@@ -1,2 +1,2 @@
1
- import{d as j,at as S,c as D,o as i,ac as _,ae as T,h as V,ed as q,e as A,ei as N,ec as H,R as Q,a as f,b as r,u as e,eB as P,f as a,g as v,t as y,i as s,A as G,cD as B,cE as b,bQ as K,aI as I,S as F,ej as W,d9 as k,eq as Y,dj as J,aY as X,bV as ee,cC as te,cM as ae}from"./jwt-decode.esm.c9c37cdc.js";import{a as le,E as oe,L as re}from"./LogsController.2dceb3d3.js";import{_ as se,R as ne}from"./repository.c0d70cb2.js";import{_ as ie}from"./AbstraButton.vue_vue_type_script_setup_true_lang.a3ba2a31.js";import{g as de}from"./datetime.89495471.js";import{c as ue}from"./string.8fab6b53.js";import{a as m,g as U,A as pe,C as ge}from"./router.a8616541.js";import{R as $}from"./dayjs.304f38f8.js";import{A as O}from"./index.bc97991a.js";import{b as ce}from"./build.a8637e29.js";import"./tables.2e1c934b.js";import"./ant-design.4efc9ccd.js";import"./PhCopy.vue.29934bc2.js";import"./polling.4db5ee9a.js";import"./LoadingOutlined.e309ab16.js";import"./index.da4f9d54.js";import"./record.a33d29b1.js";(function(){try{var g=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new Error().stack;d&&(g._sentryDebugIds=g._sentryDebugIds||{},g._sentryDebugIds[d]="50e97b11-8d7a-497f-a06c-c23456ded7d7",g._sentryDebugIdIdentifier="sentry-dbid-50e97b11-8d7a-497f-a06c-c23456ded7d7")}catch{}})();const fe=["width","height","fill","transform"],_e={key:0},he=A("path",{d:"M117.18,188.74a12,12,0,0,1,0,17l-5.12,5.12A58.26,58.26,0,0,1,70.6,228h0A58.62,58.62,0,0,1,29.14,127.92L63.89,93.17a58.64,58.64,0,0,1,98.56,28.11,12,12,0,1,1-23.37,5.44,34.65,34.65,0,0,0-58.22-16.58L46.11,144.89A34.62,34.62,0,0,0,70.57,204h0a34.41,34.41,0,0,0,24.49-10.14l5.11-5.12A12,12,0,0,1,117.18,188.74ZM226.83,45.17a58.65,58.65,0,0,0-82.93,0l-5.11,5.11a12,12,0,0,0,17,17l5.12-5.12a34.63,34.63,0,1,1,49,49L175.1,145.86A34.39,34.39,0,0,1,150.61,156h0a34.63,34.63,0,0,1-33.69-26.72,12,12,0,0,0-23.38,5.44A58.64,58.64,0,0,0,150.56,180h.05a58.28,58.28,0,0,0,41.47-17.17l34.75-34.75a58.62,58.62,0,0,0,0-82.91Z"},null,-1),ye=[he],be={key:1},me=A("path",{d:"M218.34,119.6,183.6,154.34a46.58,46.58,0,0,1-44.31,12.26c-.31.34-.62.67-.95,1L103.6,202.34A46.63,46.63,0,1,1,37.66,136.4L72.4,101.66A46.6,46.6,0,0,1,116.71,89.4c.31-.34.62-.67,1-1L152.4,53.66a46.63,46.63,0,0,1,65.94,65.94Z",opacity:"0.2"},null,-1),Ae=A("path",{d:"M240,88.23a54.43,54.43,0,0,1-16,37L189.25,160a54.27,54.27,0,0,1-38.63,16h-.05A54.63,54.63,0,0,1,96,119.84a8,8,0,0,1,16,.45A38.62,38.62,0,0,0,150.58,160h0a38.39,38.39,0,0,0,27.31-11.31l34.75-34.75a38.63,38.63,0,0,0-54.63-54.63l-11,11A8,8,0,0,1,135.7,59l11-11A54.65,54.65,0,0,1,224,48,54.86,54.86,0,0,1,240,88.23ZM109,185.66l-11,11A38.41,38.41,0,0,1,70.6,208h0a38.63,38.63,0,0,1-27.29-65.94L78,107.31A38.63,38.63,0,0,1,144,135.71a8,8,0,0,0,7.78,8.22H152a8,8,0,0,0,8-7.78A54.86,54.86,0,0,0,144,96a54.65,54.65,0,0,0-77.27,0L32,130.75A54.62,54.62,0,0,0,70.56,224h0a54.28,54.28,0,0,0,38.64-16l11-11A8,8,0,0,0,109,185.66Z"},null,-1),ve=[me,Ae],we={key:2},xe=A("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,32ZM115.7,192.49a43.31,43.31,0,0,1-55-66.43l25.37-25.37a43.35,43.35,0,0,1,61.25,0,42.9,42.9,0,0,1,9.95,15.43,8,8,0,1,1-15,5.6A27.33,27.33,0,0,0,97.37,112L72,137.37a27.32,27.32,0,0,0,34.68,41.91,8,8,0,1,1,9,13.21Zm79.61-62.55-25.37,25.37A43,43,0,0,1,139.32,168h0a43.35,43.35,0,0,1-40.53-28.12,8,8,0,1,1,15-5.6A27.35,27.35,0,0,0,139.28,152h0a27.14,27.14,0,0,0,19.32-8L184,118.63a27.32,27.32,0,0,0-34.68-41.91,8,8,0,1,1-9-13.21,43.32,43.32,0,0,1,55,66.43Z"},null,-1),Ie=[xe],ke={key:3},Le=A("path",{d:"M238,88.18a52.42,52.42,0,0,1-15.4,35.66l-34.75,34.75A52.28,52.28,0,0,1,150.62,174h-.05A52.63,52.63,0,0,1,98,119.9a6,6,0,0,1,6-5.84h.17a6,6,0,0,1,5.83,6.16A40.62,40.62,0,0,0,150.58,162h0a40.4,40.4,0,0,0,28.73-11.9l34.75-34.74A40.63,40.63,0,0,0,156.63,57.9l-11,11a6,6,0,0,1-8.49-8.49l11-11a52.62,52.62,0,0,1,74.43,0A52.83,52.83,0,0,1,238,88.18Zm-127.62,98.9-11,11A40.36,40.36,0,0,1,70.6,210h0a40.63,40.63,0,0,1-28.7-69.36L76.62,105.9A40.63,40.63,0,0,1,146,135.77a6,6,0,0,0,5.83,6.16H152a6,6,0,0,0,6-5.84A52.63,52.63,0,0,0,68.14,97.42L33.38,132.16A52.63,52.63,0,0,0,70.56,222h0a52.26,52.26,0,0,0,37.22-15.42l11-11a6,6,0,1,0-8.49-8.48Z"},null,-1),Re=[Le],Ce={key:4},Se=A("path",{d:"M240,88.23a54.43,54.43,0,0,1-16,37L189.25,160a54.27,54.27,0,0,1-38.63,16h-.05A54.63,54.63,0,0,1,96,119.84a8,8,0,0,1,16,.45A38.62,38.62,0,0,0,150.58,160h0a38.39,38.39,0,0,0,27.31-11.31l34.75-34.75a38.63,38.63,0,0,0-54.63-54.63l-11,11A8,8,0,0,1,135.7,59l11-11A54.65,54.65,0,0,1,224,48,54.86,54.86,0,0,1,240,88.23ZM109,185.66l-11,11A38.41,38.41,0,0,1,70.6,208h0a38.63,38.63,0,0,1-27.29-65.94L78,107.31A38.63,38.63,0,0,1,144,135.71a8,8,0,0,0,16,.45A54.86,54.86,0,0,0,144,96a54.65,54.65,0,0,0-77.27,0L32,130.75A54.62,54.62,0,0,0,70.56,224h0a54.28,54.28,0,0,0,38.64-16l11-11A8,8,0,0,0,109,185.66Z"},null,-1),De=[Se],Pe={key:5},Ee=A("path",{d:"M236,88.12a50.44,50.44,0,0,1-14.81,34.31l-34.75,34.74A50.33,50.33,0,0,1,150.62,172h-.05A50.63,50.63,0,0,1,100,120a4,4,0,0,1,4-3.89h.11a4,4,0,0,1,3.89,4.11A42.64,42.64,0,0,0,150.58,164h0a42.32,42.32,0,0,0,30.14-12.49l34.75-34.74a42.63,42.63,0,1,0-60.29-60.28l-11,11a4,4,0,0,1-5.66-5.65l11-11A50.64,50.64,0,0,1,236,88.12ZM111.78,188.49l-11,11A42.33,42.33,0,0,1,70.6,212h0a42.63,42.63,0,0,1-30.11-72.77l34.75-34.74A42.63,42.63,0,0,1,148,135.82a4,4,0,0,0,8,.23A50.64,50.64,0,0,0,69.55,98.83L34.8,133.57A50.63,50.63,0,0,0,70.56,220h0a50.33,50.33,0,0,0,35.81-14.83l11-11a4,4,0,1,0-5.65-5.66Z"},null,-1),Me=[Ee],ze={name:"PhLink"},Ze=j({...ze,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(g){const d=g,c=S("weight","regular"),L=S("size","1em"),R=S("color","currentColor"),E=S("mirrored",!1),h=D(()=>{var u;return(u=d.weight)!=null?u:c}),C=D(()=>{var u;return(u=d.size)!=null?u:L}),M=D(()=>{var u;return(u=d.color)!=null?u:R}),z=D(()=>d.mirrored!==void 0?d.mirrored?"scale(-1, 1)":void 0:E?"scale(-1, 1)":void 0);return(u,w)=>(i(),_("svg",q({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:C.value,height:C.value,fill:M.value,transform:z.value},u.$attrs),[T(u.$slots,"default"),h.value==="bold"?(i(),_("g",_e,ye)):h.value==="duotone"?(i(),_("g",be,ve)):h.value==="fill"?(i(),_("g",we,Ie)):h.value==="light"?(i(),_("g",ke,Re)):h.value==="regular"?(i(),_("g",Ce,De)):h.value==="thin"?(i(),_("g",Pe,Me)):V("",!0)],16,fe))}}),Ue={style:{width:"100px",height:"100%",display:"flex","align-items":"center","justify-content":"right",gap:"10px"}},je={key:0,style:{display:"flex",width:"100%","justify-content":"center"}},Be=j({__name:"Logs",props:{executionRepository:{},buildRepository:{},showAllFilters:{type:Boolean}},setup(g){const d=g,c=N(),L=H(),R=c.params.projectId,E=c.query.executionId;function h(){const{stageId:p,buildId:l,status:t,startDate:n,endDate:x,runId:Z}=c.query;return n&&x?{stageId:p,buildId:l,status:t,dateRange:[P(n),P(x)]}:{stageId:p,buildId:l,status:t,search:Z}}function C(p){const l={};Object.entries(p).forEach(([t,n])=>{typeof n=="string"&&t==="search"&&n?l.runId=n:typeof n=="string"&&n?l[t]=n:t==="dateRange"&&n&&P.isDayjs(n[0])&&P.isDayjs(n[1])&&(l.startDate=n[0].toISOString(),l.endDate=n[1].toISOString())}),L.replace({query:l})}function M(){const{page:p,pageSize:l}=c.query;return{currentIndex:p?parseInt(p,10):1,pageSize:l?parseInt(l,10):10}}function z(p){const l=p.slice(0,6),t=`${window.location.origin}${window.location.pathname}?runId=${l}`;navigator.clipboard.writeText(t),ae.success({content:s.translate("i18n_logs_copied_to_clipboard")})}function u(p,l){let t={...p};return t.sentTasks=l.sentTasks,delete t.mockExecution,l.triggerTask&&(t.triggerTask=l.triggerTask,delete t.taskId),t}const w=new le({executionRepository:d.executionRepository,buildRepository:d.buildRepository,projectId:R,filters:h(),pagination:M(),pool:!0,openedExecutionId:E,onFilterChange:C}),{state:o}=w;return w.init(),Q(()=>w.teardown()),(p,l)=>(i(),f(e(O),{direction:"vertical",style:{width:"100%",padding:"0px 0px 20px 0px"}},{default:r(()=>[a(e(G),null,{default:r(()=>[v(y(e(s).translate("i18n_logs_title")),1)]),_:1}),p.showAllFilters?(i(),f(e(B),{key:0,layout:"vertical"},{default:r(()=>[a(e(U),{gutter:10},{default:r(()=>[a(e(m),{span:12},{default:r(()=>[a(e(b),{label:e(s).translate("i18n_logs_run_id_label")},{default:r(()=>[a(e(K),{value:e(o).filters.search,"onUpdate:value":l[0]||(l[0]=t=>e(o).filters.search=t),placeholder:e(s).translate("i18n_logs_search_by_run_id_placeholder"),style:{width:"100%"}},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1}),a(e(m),{span:12},{default:r(()=>[a(e(b),{label:e(s).translate("i18n_logs_stage_label")},{default:r(()=>[a(e(I),{value:e(o).filters.stageId,"onUpdate:value":l[1]||(l[1]=t=>e(o).filters.stageId=t),options:e(o).filterOptions.stages,placeholder:e(s).translate("i18n_logs_all_placeholder"),"allow-clear":""},null,8,["value","options","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1}),a(e(U),{gutter:10},{default:r(()=>[a(e(m),{span:8},{default:r(()=>[a(e(b),{label:e(s).translate("i18n_logs_date_label")},{default:r(()=>[a(e($),{value:e(o).filters.dateRange,"onUpdate:value":l[2]||(l[2]=t=>e(o).filters.dateRange=t),style:{width:"100%"}},null,8,["value"])]),_:1},8,["label"])]),_:1}),a(e(m),{span:10},{default:r(()=>[a(e(b),{label:e(s).translate("i18n_logs_version_label")},{default:r(()=>[a(e(I),{value:e(o).filters.buildId,"onUpdate:value":l[3]||(l[3]=t=>e(o).filters.buildId=t),options:e(o).filterOptions.builds,"option-label":"label","option-value":"value",filter:!1,placeholder:e(s).translate("i18n_logs_all_placeholder"),"allow-clear":""},null,8,["value","options","placeholder"])]),_:1},8,["label"])]),_:1}),a(e(m),{span:6},{default:r(()=>[a(e(b),{label:e(s).translate("i18n_logs_status_label")},{default:r(()=>[a(e(I),{value:e(o).filters.status,"onUpdate:value":l[4]||(l[4]=t=>e(o).filters.status=t),options:e(o).filterOptions.statuses,"option-label":"label","option-value":"value",filter:!1,placeholder:e(s).translate("i18n_logs_all_placeholder"),"allow-clear":""},null,8,["value","options","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1})):(i(),f(e(B),{key:1,layout:"vertical"},{default:r(()=>[a(e(U),{gutter:10},{default:r(()=>[a(e(m),{span:8},{default:r(()=>[a(e(b),{label:e(s).translate("i18n_logs_date_label")},{default:r(()=>[a(e($),{value:e(o).filters.dateRange,"onUpdate:value":l[5]||(l[5]=t=>e(o).filters.dateRange=t),style:{width:"100%"}},null,8,["value"])]),_:1},8,["label"])]),_:1}),a(e(m),{span:10},{default:r(()=>[a(e(b),{label:e(s).translate("i18n_logs_script_label")},{default:r(()=>[a(e(I),{value:e(o).filters.stageId,"onUpdate:value":l[6]||(l[6]=t=>e(o).filters.stageId=t),options:e(o).filterOptions.stages,placeholder:e(s).translate("i18n_logs_all_placeholder"),"allow-clear":""},null,8,["value","options","placeholder"])]),_:1},8,["label"])]),_:1}),a(e(m),{span:6},{default:r(()=>[a(e(b),{label:e(s).translate("i18n_logs_status_label")},{default:r(()=>[a(e(I),{value:e(o).filters.status,"onUpdate:value":l[7]||(l[7]=t=>e(o).filters.status=t),options:e(o).filterOptions.statuses,"option-label":"label","option-value":"value",filter:!1,placeholder:e(s).translate("i18n_logs_all_placeholder"),"allow-clear":""},null,8,["value","options","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1})),e(o).currentPage.loadingExecutions||e(o).currentPage.waitingDebounce?(i(),f(e(F),{key:2,style:{width:"100%"}})):e(o).currentPage.executions&&e(o).currentPage.executions.length>0?(i(),f(e(O),{key:3,direction:"vertical",style:{width:"100%"}},{default:r(()=>[a(e(ge),{"active-key":e(o).currentPage.openedExecutionIds,"onUpdate:activeKey":l[8]||(l[8]=t=>e(o).currentPage.openedExecutionIds=t),bordered:!1,style:{"background-color":"transparent"},onChange:e(w).fetchEmptyLogs},{default:r(()=>[(i(!0),_(X,null,W(e(o).currentPage.executions,t=>(i(),f(e(pe),{key:t.id,style:{"border-radius":"4px","margin-bottom":"10px",border:"0",overflow:"hidden","background-color":"#fff"}},{header:r(()=>[a(e(k),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:r(()=>[v(y(e(de)(t.createdAt)),1)]),_:2},1024),a(e(k),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:r(()=>[v(" Run ID: "+y(t.id.slice(0,8)),1)]),_:2},1024),a(e(k),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:r(()=>[v(" Version: "+y(t.buildId.slice(0,8)),1)]),_:2},1024),a(e(k),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:r(()=>[v(y(e(s).translate("i18n_logs_duration_prefix"))+" "+y(t.duration_seconds),1)]),_:2},1024),a(e(k),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:r(()=>{var n,x;return[v(y((x=(n=e(o).filterOptions.stages.find(Z=>Z.value===t.stageId))==null?void 0:n.label)!=null?x:t.stageId.slice(0,8)),1)]}),_:2},1024)]),extra:r(()=>[A("div",Ue,[a(ie,{type:"text",size:"small",tooltip:e(s).translate("i18n_logs_copy_url_tooltip"),onClick:Y(n=>z(t.id),["stop"])},{default:r(()=>[a(e(Ze))]),_:2},1032,["tooltip","onClick"]),v(" "+y(e(ue)(t.status))+" ",1),a(se,{status:t.status},null,8,["status"])])]),default:r(()=>[e(o).currentPage.executionData[t.id]?(i(),f(e(J),{key:1,vertical:"",gap:"middle"},{default:r(()=>[a(oe,{data:u(t.context,e(o).currentPage.executionData[t.id].tasks),"show-fix-with-ai":!1},null,8,["data"]),a(re,{logs:e(o).currentPage.executionData[t.id].logs},null,8,["logs"])]),_:2},1024)):(i(),_("div",je,[a(e(F))]))]),_:2},1024))),128))]),_:1},8,["active-key","onChange"]),a(e(ee),{current:e(o).pagination.currentIndex,"onUpdate:current":l[9]||(l[9]=t=>e(o).pagination.currentIndex=t),"page-size":e(o).pagination.pageSize,"onUpdate:pageSize":l[10]||(l[10]=t=>e(o).pagination.pageSize=t),total:e(o).pagination.totalCount,"show-total":t=>e(s).translate("i18n_logs_found_runs",null,t),"show-size-changer":""},null,8,["current","page-size","total","show-total"])]),_:1})):(i(),f(e(te),{key:4}))]),_:1}))}}),at=j({__name:"Logs",setup(g){const d=new ne,c=new ce;return(L,R)=>(i(),f(Be,{"execution-repository":e(d),"build-repository":e(c),"show-all-filters":""},null,8,["execution-repository","build-repository"]))}});export{at as default};
2
- //# sourceMappingURL=Logs.c1f01b05.js.map
1
+ import{d as j,at as S,c as D,o as i,ac as _,ae as T,h as V,ed as q,e as A,ei as N,ec as H,R as Q,a as c,b as r,u as e,eB as P,f as a,g as v,t as y,i as s,A as G,cD as B,cE as b,bQ as K,aI as I,S as F,ej as W,d9 as k,eq as Y,dj as J,aY as X,bV as ee,cC as te,cM as ae}from"./jwt-decode.esm.5ee65524.js";import{a as le,E as oe,L as re}from"./LogsController.e88bddfb.js";import{_ as se,R as ne}from"./repository.c874615c.js";import{_ as ie}from"./AbstraButton.vue_vue_type_script_setup_true_lang.779f608b.js";import{g as de}from"./datetime.01b86df2.js";import{c as ue}from"./string.0d721ad6.js";import{a as m,g as U,A as pe,C as ge}from"./router.9781de48.js";import{R as $}from"./dayjs.26942e0e.js";import{A as O}from"./index.0a1e5d8b.js";import{b as fe}from"./build.8774fc90.js";import"./tables.45712b3f.js";import"./ant-design.24becb3a.js";import"./PhCopy.vue.e59eaa52.js";import"./polling.5339a00f.js";import"./LoadingOutlined.3c83d190.js";import"./index.12c03275.js";import"./record.dd367e66.js";(function(){try{var g=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new Error().stack;d&&(g._sentryDebugIds=g._sentryDebugIds||{},g._sentryDebugIds[d]="99778adf-9e93-4f12-87f6-0e5e4051e7b8",g._sentryDebugIdIdentifier="sentry-dbid-99778adf-9e93-4f12-87f6-0e5e4051e7b8")}catch{}})();const ce=["width","height","fill","transform"],_e={key:0},he=A("path",{d:"M117.18,188.74a12,12,0,0,1,0,17l-5.12,5.12A58.26,58.26,0,0,1,70.6,228h0A58.62,58.62,0,0,1,29.14,127.92L63.89,93.17a58.64,58.64,0,0,1,98.56,28.11,12,12,0,1,1-23.37,5.44,34.65,34.65,0,0,0-58.22-16.58L46.11,144.89A34.62,34.62,0,0,0,70.57,204h0a34.41,34.41,0,0,0,24.49-10.14l5.11-5.12A12,12,0,0,1,117.18,188.74ZM226.83,45.17a58.65,58.65,0,0,0-82.93,0l-5.11,5.11a12,12,0,0,0,17,17l5.12-5.12a34.63,34.63,0,1,1,49,49L175.1,145.86A34.39,34.39,0,0,1,150.61,156h0a34.63,34.63,0,0,1-33.69-26.72,12,12,0,0,0-23.38,5.44A58.64,58.64,0,0,0,150.56,180h.05a58.28,58.28,0,0,0,41.47-17.17l34.75-34.75a58.62,58.62,0,0,0,0-82.91Z"},null,-1),ye=[he],be={key:1},me=A("path",{d:"M218.34,119.6,183.6,154.34a46.58,46.58,0,0,1-44.31,12.26c-.31.34-.62.67-.95,1L103.6,202.34A46.63,46.63,0,1,1,37.66,136.4L72.4,101.66A46.6,46.6,0,0,1,116.71,89.4c.31-.34.62-.67,1-1L152.4,53.66a46.63,46.63,0,0,1,65.94,65.94Z",opacity:"0.2"},null,-1),Ae=A("path",{d:"M240,88.23a54.43,54.43,0,0,1-16,37L189.25,160a54.27,54.27,0,0,1-38.63,16h-.05A54.63,54.63,0,0,1,96,119.84a8,8,0,0,1,16,.45A38.62,38.62,0,0,0,150.58,160h0a38.39,38.39,0,0,0,27.31-11.31l34.75-34.75a38.63,38.63,0,0,0-54.63-54.63l-11,11A8,8,0,0,1,135.7,59l11-11A54.65,54.65,0,0,1,224,48,54.86,54.86,0,0,1,240,88.23ZM109,185.66l-11,11A38.41,38.41,0,0,1,70.6,208h0a38.63,38.63,0,0,1-27.29-65.94L78,107.31A38.63,38.63,0,0,1,144,135.71a8,8,0,0,0,7.78,8.22H152a8,8,0,0,0,8-7.78A54.86,54.86,0,0,0,144,96a54.65,54.65,0,0,0-77.27,0L32,130.75A54.62,54.62,0,0,0,70.56,224h0a54.28,54.28,0,0,0,38.64-16l11-11A8,8,0,0,0,109,185.66Z"},null,-1),ve=[me,Ae],we={key:2},xe=A("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,32ZM115.7,192.49a43.31,43.31,0,0,1-55-66.43l25.37-25.37a43.35,43.35,0,0,1,61.25,0,42.9,42.9,0,0,1,9.95,15.43,8,8,0,1,1-15,5.6A27.33,27.33,0,0,0,97.37,112L72,137.37a27.32,27.32,0,0,0,34.68,41.91,8,8,0,1,1,9,13.21Zm79.61-62.55-25.37,25.37A43,43,0,0,1,139.32,168h0a43.35,43.35,0,0,1-40.53-28.12,8,8,0,1,1,15-5.6A27.35,27.35,0,0,0,139.28,152h0a27.14,27.14,0,0,0,19.32-8L184,118.63a27.32,27.32,0,0,0-34.68-41.91,8,8,0,1,1-9-13.21,43.32,43.32,0,0,1,55,66.43Z"},null,-1),Ie=[xe],ke={key:3},Le=A("path",{d:"M238,88.18a52.42,52.42,0,0,1-15.4,35.66l-34.75,34.75A52.28,52.28,0,0,1,150.62,174h-.05A52.63,52.63,0,0,1,98,119.9a6,6,0,0,1,6-5.84h.17a6,6,0,0,1,5.83,6.16A40.62,40.62,0,0,0,150.58,162h0a40.4,40.4,0,0,0,28.73-11.9l34.75-34.74A40.63,40.63,0,0,0,156.63,57.9l-11,11a6,6,0,0,1-8.49-8.49l11-11a52.62,52.62,0,0,1,74.43,0A52.83,52.83,0,0,1,238,88.18Zm-127.62,98.9-11,11A40.36,40.36,0,0,1,70.6,210h0a40.63,40.63,0,0,1-28.7-69.36L76.62,105.9A40.63,40.63,0,0,1,146,135.77a6,6,0,0,0,5.83,6.16H152a6,6,0,0,0,6-5.84A52.63,52.63,0,0,0,68.14,97.42L33.38,132.16A52.63,52.63,0,0,0,70.56,222h0a52.26,52.26,0,0,0,37.22-15.42l11-11a6,6,0,1,0-8.49-8.48Z"},null,-1),Re=[Le],Ce={key:4},Se=A("path",{d:"M240,88.23a54.43,54.43,0,0,1-16,37L189.25,160a54.27,54.27,0,0,1-38.63,16h-.05A54.63,54.63,0,0,1,96,119.84a8,8,0,0,1,16,.45A38.62,38.62,0,0,0,150.58,160h0a38.39,38.39,0,0,0,27.31-11.31l34.75-34.75a38.63,38.63,0,0,0-54.63-54.63l-11,11A8,8,0,0,1,135.7,59l11-11A54.65,54.65,0,0,1,224,48,54.86,54.86,0,0,1,240,88.23ZM109,185.66l-11,11A38.41,38.41,0,0,1,70.6,208h0a38.63,38.63,0,0,1-27.29-65.94L78,107.31A38.63,38.63,0,0,1,144,135.71a8,8,0,0,0,16,.45A54.86,54.86,0,0,0,144,96a54.65,54.65,0,0,0-77.27,0L32,130.75A54.62,54.62,0,0,0,70.56,224h0a54.28,54.28,0,0,0,38.64-16l11-11A8,8,0,0,0,109,185.66Z"},null,-1),De=[Se],Pe={key:5},Ee=A("path",{d:"M236,88.12a50.44,50.44,0,0,1-14.81,34.31l-34.75,34.74A50.33,50.33,0,0,1,150.62,172h-.05A50.63,50.63,0,0,1,100,120a4,4,0,0,1,4-3.89h.11a4,4,0,0,1,3.89,4.11A42.64,42.64,0,0,0,150.58,164h0a42.32,42.32,0,0,0,30.14-12.49l34.75-34.74a42.63,42.63,0,1,0-60.29-60.28l-11,11a4,4,0,0,1-5.66-5.65l11-11A50.64,50.64,0,0,1,236,88.12ZM111.78,188.49l-11,11A42.33,42.33,0,0,1,70.6,212h0a42.63,42.63,0,0,1-30.11-72.77l34.75-34.74A42.63,42.63,0,0,1,148,135.82a4,4,0,0,0,8,.23A50.64,50.64,0,0,0,69.55,98.83L34.8,133.57A50.63,50.63,0,0,0,70.56,220h0a50.33,50.33,0,0,0,35.81-14.83l11-11a4,4,0,1,0-5.65-5.66Z"},null,-1),Me=[Ee],ze={name:"PhLink"},Ze=j({...ze,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(g){const d=g,f=S("weight","regular"),L=S("size","1em"),R=S("color","currentColor"),E=S("mirrored",!1),h=D(()=>{var u;return(u=d.weight)!=null?u:f}),C=D(()=>{var u;return(u=d.size)!=null?u:L}),M=D(()=>{var u;return(u=d.color)!=null?u:R}),z=D(()=>d.mirrored!==void 0?d.mirrored?"scale(-1, 1)":void 0:E?"scale(-1, 1)":void 0);return(u,w)=>(i(),_("svg",q({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:C.value,height:C.value,fill:M.value,transform:z.value},u.$attrs),[T(u.$slots,"default"),h.value==="bold"?(i(),_("g",_e,ye)):h.value==="duotone"?(i(),_("g",be,ve)):h.value==="fill"?(i(),_("g",we,Ie)):h.value==="light"?(i(),_("g",ke,Re)):h.value==="regular"?(i(),_("g",Ce,De)):h.value==="thin"?(i(),_("g",Pe,Me)):V("",!0)],16,ce))}}),Ue={style:{width:"100px",height:"100%",display:"flex","align-items":"center","justify-content":"right",gap:"10px"}},je={key:0,style:{display:"flex",width:"100%","justify-content":"center"}},Be=j({__name:"Logs",props:{executionRepository:{},buildRepository:{},showAllFilters:{type:Boolean}},setup(g){const d=g,f=N(),L=H(),R=f.params.projectId,E=f.query.executionId;function h(){const{stageId:p,buildId:l,status:t,startDate:n,endDate:x,runId:Z}=f.query;return n&&x?{stageId:p,buildId:l,status:t,dateRange:[P(n),P(x)]}:{stageId:p,buildId:l,status:t,search:Z}}function C(p){const l={};Object.entries(p).forEach(([t,n])=>{typeof n=="string"&&t==="search"&&n?l.runId=n:typeof n=="string"&&n?l[t]=n:t==="dateRange"&&n&&P.isDayjs(n[0])&&P.isDayjs(n[1])&&(l.startDate=n[0].toISOString(),l.endDate=n[1].toISOString())}),L.replace({query:l})}function M(){const{page:p,pageSize:l}=f.query;return{currentIndex:p?parseInt(p,10):1,pageSize:l?parseInt(l,10):10}}function z(p){const l=p.slice(0,6),t=`${window.location.origin}${window.location.pathname}?runId=${l}`;navigator.clipboard.writeText(t),ae.success({content:s.translate("i18n_logs_copied_to_clipboard")})}function u(p,l){let t={...p};return t.sentTasks=l.sentTasks,delete t.mockExecution,l.triggerTask&&(t.triggerTask=l.triggerTask,delete t.taskId),t}const w=new le({executionRepository:d.executionRepository,buildRepository:d.buildRepository,projectId:R,filters:h(),pagination:M(),pool:!0,openedExecutionId:E,onFilterChange:C}),{state:o}=w;return w.init(),Q(()=>w.teardown()),(p,l)=>(i(),c(e(O),{direction:"vertical",style:{width:"100%",padding:"0px 0px 20px 0px"}},{default:r(()=>[a(e(G),null,{default:r(()=>[v(y(e(s).translate("i18n_logs_title")),1)]),_:1}),p.showAllFilters?(i(),c(e(B),{key:0,layout:"vertical"},{default:r(()=>[a(e(U),{gutter:10},{default:r(()=>[a(e(m),{span:12},{default:r(()=>[a(e(b),{label:e(s).translate("i18n_logs_run_id_label")},{default:r(()=>[a(e(K),{value:e(o).filters.search,"onUpdate:value":l[0]||(l[0]=t=>e(o).filters.search=t),placeholder:e(s).translate("i18n_logs_search_by_run_id_placeholder"),style:{width:"100%"}},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1}),a(e(m),{span:12},{default:r(()=>[a(e(b),{label:e(s).translate("i18n_logs_stage_label")},{default:r(()=>[a(e(I),{value:e(o).filters.stageId,"onUpdate:value":l[1]||(l[1]=t=>e(o).filters.stageId=t),options:e(o).filterOptions.stages,placeholder:e(s).translate("i18n_logs_all_placeholder"),"allow-clear":""},null,8,["value","options","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1}),a(e(U),{gutter:10},{default:r(()=>[a(e(m),{span:8},{default:r(()=>[a(e(b),{label:e(s).translate("i18n_logs_date_label")},{default:r(()=>[a(e($),{value:e(o).filters.dateRange,"onUpdate:value":l[2]||(l[2]=t=>e(o).filters.dateRange=t),style:{width:"100%"}},null,8,["value"])]),_:1},8,["label"])]),_:1}),a(e(m),{span:10},{default:r(()=>[a(e(b),{label:e(s).translate("i18n_logs_version_label")},{default:r(()=>[a(e(I),{value:e(o).filters.buildId,"onUpdate:value":l[3]||(l[3]=t=>e(o).filters.buildId=t),options:e(o).filterOptions.builds,"option-label":"label","option-value":"value",filter:!1,placeholder:e(s).translate("i18n_logs_all_placeholder"),"allow-clear":""},null,8,["value","options","placeholder"])]),_:1},8,["label"])]),_:1}),a(e(m),{span:6},{default:r(()=>[a(e(b),{label:e(s).translate("i18n_logs_status_label")},{default:r(()=>[a(e(I),{value:e(o).filters.status,"onUpdate:value":l[4]||(l[4]=t=>e(o).filters.status=t),options:e(o).filterOptions.statuses,"option-label":"label","option-value":"value",filter:!1,placeholder:e(s).translate("i18n_logs_all_placeholder"),"allow-clear":""},null,8,["value","options","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1})):(i(),c(e(B),{key:1,layout:"vertical"},{default:r(()=>[a(e(U),{gutter:10},{default:r(()=>[a(e(m),{span:8},{default:r(()=>[a(e(b),{label:e(s).translate("i18n_logs_date_label")},{default:r(()=>[a(e($),{value:e(o).filters.dateRange,"onUpdate:value":l[5]||(l[5]=t=>e(o).filters.dateRange=t),style:{width:"100%"}},null,8,["value"])]),_:1},8,["label"])]),_:1}),a(e(m),{span:10},{default:r(()=>[a(e(b),{label:e(s).translate("i18n_logs_script_label")},{default:r(()=>[a(e(I),{value:e(o).filters.stageId,"onUpdate:value":l[6]||(l[6]=t=>e(o).filters.stageId=t),options:e(o).filterOptions.stages,placeholder:e(s).translate("i18n_logs_all_placeholder"),"allow-clear":""},null,8,["value","options","placeholder"])]),_:1},8,["label"])]),_:1}),a(e(m),{span:6},{default:r(()=>[a(e(b),{label:e(s).translate("i18n_logs_status_label")},{default:r(()=>[a(e(I),{value:e(o).filters.status,"onUpdate:value":l[7]||(l[7]=t=>e(o).filters.status=t),options:e(o).filterOptions.statuses,"option-label":"label","option-value":"value",filter:!1,placeholder:e(s).translate("i18n_logs_all_placeholder"),"allow-clear":""},null,8,["value","options","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1})),e(o).currentPage.loadingExecutions||e(o).currentPage.waitingDebounce?(i(),c(e(F),{key:2,style:{width:"100%"}})):e(o).currentPage.executions&&e(o).currentPage.executions.length>0?(i(),c(e(O),{key:3,direction:"vertical",style:{width:"100%"}},{default:r(()=>[a(e(ge),{"active-key":e(o).currentPage.openedExecutionIds,"onUpdate:activeKey":l[8]||(l[8]=t=>e(o).currentPage.openedExecutionIds=t),bordered:!1,style:{"background-color":"transparent"},onChange:e(w).fetchEmptyLogs},{default:r(()=>[(i(!0),_(X,null,W(e(o).currentPage.executions,t=>(i(),c(e(pe),{key:t.id,style:{"border-radius":"4px","margin-bottom":"10px",border:"0",overflow:"hidden","background-color":"#fff"}},{header:r(()=>[a(e(k),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:r(()=>[v(y(e(de)(t.createdAt)),1)]),_:2},1024),a(e(k),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:r(()=>[v(" Run ID: "+y(t.id.slice(0,8)),1)]),_:2},1024),a(e(k),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:r(()=>[v(" Version: "+y(t.buildId.slice(0,8)),1)]),_:2},1024),a(e(k),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:r(()=>[v(y(e(s).translate("i18n_logs_duration_prefix"))+" "+y(t.duration_seconds),1)]),_:2},1024),a(e(k),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:r(()=>{var n,x;return[v(y((x=(n=e(o).filterOptions.stages.find(Z=>Z.value===t.stageId))==null?void 0:n.label)!=null?x:t.stageId.slice(0,8)),1)]}),_:2},1024)]),extra:r(()=>[A("div",Ue,[a(ie,{type:"text",size:"small",tooltip:e(s).translate("i18n_logs_copy_url_tooltip"),onClick:Y(n=>z(t.id),["stop"])},{default:r(()=>[a(e(Ze))]),_:2},1032,["tooltip","onClick"]),v(" "+y(e(ue)(t.status))+" ",1),a(se,{status:t.status},null,8,["status"])])]),default:r(()=>[e(o).currentPage.executionData[t.id]?(i(),c(e(J),{key:1,vertical:"",gap:"middle"},{default:r(()=>[a(oe,{data:u(t.context,e(o).currentPage.executionData[t.id].tasks),"show-fix-with-ai":!1},null,8,["data"]),a(re,{logs:e(o).currentPage.executionData[t.id].logs},null,8,["logs"])]),_:2},1024)):(i(),_("div",je,[a(e(F))]))]),_:2},1024))),128))]),_:1},8,["active-key","onChange"]),a(e(ee),{current:e(o).pagination.currentIndex,"onUpdate:current":l[9]||(l[9]=t=>e(o).pagination.currentIndex=t),"page-size":e(o).pagination.pageSize,"onUpdate:pageSize":l[10]||(l[10]=t=>e(o).pagination.pageSize=t),total:e(o).pagination.totalCount,"show-total":t=>e(s).translate("i18n_logs_found_runs",null,t),"show-size-changer":""},null,8,["current","page-size","total","show-total"])]),_:1})):(i(),c(e(te),{key:4}))]),_:1}))}}),at=j({__name:"Logs",setup(g){const d=new ne,f=new fe;return(L,R)=>(i(),c(Be,{"execution-repository":e(d),"build-repository":e(f),"show-all-filters":""},null,8,["execution-repository","build-repository"]))}});export{at as default};
2
+ //# sourceMappingURL=Logs.1f1770c9.js.map
@@ -0,0 +1 @@
1
+ .cli[data-v-b7f04a41]{background-color:#555;border-radius:5px;padding:10px;color:#fff;font-family:monospace}[data-v-f7630ec7]:root{--abstra-main-color-dark: #343b46}.tree[data-v-f7630ec7] .ant-tree-node-content-wrapper{user-select:auto}.ask-to-ai[data-v-f7630ec7]{display:flex;gap:6px;align-items:center;cursor:pointer;color:#d14056}.ask-to-ai.disabled[data-v-f7630ec7]{cursor:not-allowed;opacity:.5}
@@ -0,0 +1,2 @@
1
+ var B=Object.defineProperty;var L=(c,t,e)=>t in c?B(c,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):c[t]=e;var h=(c,t,e)=>(L(c,typeof t!="symbol"?t+"":t,e),e);import{d as E,at as Z,c as k,o as n,ac as u,ae as F,h as b,ed as $,e as m,a as A,b as p,aY as T,ej as M,ad as z,t as v,u as s,df as C,g as H,dj as D,_ as R,r as N,f,i as g,b0 as I,eh as q,d6 as W,cM as V,al as J,w as P,en as G}from"./jwt-decode.esm.5ee65524.js";import{t as Y}from"./ant-design.24becb3a.js";import{c as j}from"./string.0d721ad6.js";import{I as S}from"./PhCopy.vue.e59eaa52.js";import{A as Q}from"./index.0a1e5d8b.js";import{A as U,C as X}from"./router.9781de48.js";import{B as K}from"./build.8774fc90.js";import"./tables.45712b3f.js";import{e as tt}from"./repository.c874615c.js";import{u as et}from"./polling.5339a00f.js";(function(){try{var c=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(c._sentryDebugIds=c._sentryDebugIds||{},c._sentryDebugIds[t]="699b4a18-f3fe-4ee1-9abc-5d00780b7df9",c._sentryDebugIdIdentifier="sentry-dbid-699b4a18-f3fe-4ee1-9abc-5d00780b7df9")}catch{}})();const at=["width","height","fill","transform"],it={key:0},st=m("path",{d:"M72,104a16,16,0,1,1,16,16A16,16,0,0,1,72,104Zm96,16a16,16,0,1,0-16-16A16,16,0,0,0,168,120Zm68-40V192a36,36,0,0,1-36,36H56a36,36,0,0,1-36-36V80A36,36,0,0,1,56,44h60V16a12,12,0,0,1,24,0V44h60A36,36,0,0,1,236,80Zm-24,0a12,12,0,0,0-12-12H56A12,12,0,0,0,44,80V192a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12Zm-12,82a30,30,0,0,1-30,30H86a30,30,0,0,1,0-60h84A30,30,0,0,1,200,162Zm-80-6v12h16V156ZM86,168H96V156H86a6,6,0,0,0,0,12Zm90-6a6,6,0,0,0-6-6H160v12h10A6,6,0,0,0,176,162Z"},null,-1),ot=[st],nt={key:1},rt=m("path",{d:"M200,56H56A24,24,0,0,0,32,80V192a24,24,0,0,0,24,24H200a24,24,0,0,0,24-24V80A24,24,0,0,0,200,56ZM164,184H92a20,20,0,0,1,0-40h72a20,20,0,0,1,0,40Z",opacity:"0.2"},null,-1),lt=m("path",{d:"M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48Zm16,144a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V80A16,16,0,0,1,56,64H200a16,16,0,0,1,16,16ZM72,108a12,12,0,1,1,12,12A12,12,0,0,1,72,108Zm88,0a12,12,0,1,1,12,12A12,12,0,0,1,160,108Zm4,28H92a28,28,0,0,0,0,56h72a28,28,0,0,0,0-56Zm-24,16v24H116V152ZM80,164a12,12,0,0,1,12-12h8v24H92A12,12,0,0,1,80,164Zm84,12h-8V152h8a12,12,0,0,1,0,24Z"},null,-1),ct=[rt,lt],dt={key:2},ut=m("path",{d:"M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48ZM172,96a12,12,0,1,1-12,12A12,12,0,0,1,172,96ZM96,184H80a16,16,0,0,1,0-32H96ZM84,120a12,12,0,1,1,12-12A12,12,0,0,1,84,120Zm60,64H112V152h32Zm32,0H160V152h16a16,16,0,0,1,0,32Z"},null,-1),pt=[ut],ht={key:3},gt=m("path",{d:"M200,50H134V16a6,6,0,0,0-12,0V50H56A30,30,0,0,0,26,80V192a30,30,0,0,0,30,30H200a30,30,0,0,0,30-30V80A30,30,0,0,0,200,50Zm18,142a18,18,0,0,1-18,18H56a18,18,0,0,1-18-18V80A18,18,0,0,1,56,62H200a18,18,0,0,1,18,18ZM74,108a10,10,0,1,1,10,10A10,10,0,0,1,74,108Zm88,0a10,10,0,1,1,10,10A10,10,0,0,1,162,108Zm2,30H92a26,26,0,0,0,0,52h72a26,26,0,0,0,0-52Zm-22,12v28H114V150ZM78,164a14,14,0,0,1,14-14h10v28H92A14,14,0,0,1,78,164Zm86,14H154V150h10a14,14,0,0,1,0,28Z"},null,-1),ft=[gt],mt={key:4},yt=m("path",{d:"M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48Zm16,144a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V80A16,16,0,0,1,56,64H200a16,16,0,0,1,16,16Zm-52-56H92a28,28,0,0,0,0,56h72a28,28,0,0,0,0-56Zm-24,16v24H116V152ZM80,164a12,12,0,0,1,12-12h8v24H92A12,12,0,0,1,80,164Zm84,12h-8V152h8a12,12,0,0,1,0,24ZM72,108a12,12,0,1,1,12,12A12,12,0,0,1,72,108Zm88,0a12,12,0,1,1,12,12A12,12,0,0,1,160,108Z"},null,-1),_t=[yt],xt={key:5},bt=m("path",{d:"M200,52H132V16a4,4,0,0,0-8,0V52H56A28,28,0,0,0,28,80V192a28,28,0,0,0,28,28H200a28,28,0,0,0,28-28V80A28,28,0,0,0,200,52Zm20,140a20,20,0,0,1-20,20H56a20,20,0,0,1-20-20V80A20,20,0,0,1,56,60H200a20,20,0,0,1,20,20ZM76,108a8,8,0,1,1,8,8A8,8,0,0,1,76,108Zm88,0a8,8,0,1,1,8,8A8,8,0,0,1,164,108Zm0,32H92a24,24,0,0,0,0,48h72a24,24,0,0,0,0-48Zm-20,8v32H112V148ZM76,164a16,16,0,0,1,16-16h12v32H92A16,16,0,0,1,76,164Zm88,16H152V148h12a16,16,0,0,1,0,32Z"},null,-1),At=[bt],vt={name:"PhRobot"},Ht=E({...vt,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(c){const t=c,e=Z("weight","regular"),i=Z("size","1em"),o=Z("color","currentColor"),r=Z("mirrored",!1),d=k(()=>{var l;return(l=t.weight)!=null?l:e}),y=k(()=>{var l;return(l=t.size)!=null?l:i}),_=k(()=>{var l;return(l=t.color)!=null?l:o}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:r?"scale(-1, 1)":void 0);return(l,x)=>(n(),u("svg",$({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:y.value,height:y.value,fill:_.value,transform:a.value},l.$attrs),[F(l.$slots,"default"),d.value==="bold"?(n(),u("g",it,ot)):d.value==="duotone"?(n(),u("g",nt,ct)):d.value==="fill"?(n(),u("g",dt,pt)):d.value==="light"?(n(),u("g",ht,ft)):d.value==="regular"?(n(),u("g",mt,_t)):d.value==="thin"?(n(),u("g",xt,At)):b("",!0)],16,at))}}),wt={key:0,class:"cli"},Zt={key:0},kt=E({__name:"LogContainer",props:{logs:{}},setup(c){return(t,e)=>(n(),A(s(D),{vertical:"",gap:"small"},{default:p(()=>[t.logs.entries.length?(n(),u("div",wt,[(n(!0),u(T,null,M(t.logs.entries,i=>(n(),u("p",{key:i.createdAt,style:z({margin:0,"white-space":"pre-wrap",color:i.event==="unhandled-exception"?"rgb(255, 133, 133)":"inherit"})},[i.payload.text?(n(),u("span",Zt,v(i.payload.text.trim()),1)):b("",!0)],4))),128))])):(n(),A(s(C),{key:1,type:"secondary"},{default:p(()=>[H("Empty")]),_:1}))]),_:1}))}});const $t=R(kt,[["__scopeId","data-v-b7f04a41"]]),Vt={key:0},Ct=["onClick"],It=["onClick"],Pt=E({__name:"ExecutionContext",props:{data:{},showFixWithAi:{type:Boolean},isSmartChatIdle:{type:Boolean}},emits:["ask-ai"],setup(c,{emit:t}){const e=c,i=N(!1),o=a=>{if(a==="legacyThreadData")return g.translate("i18n_executioncontext_thread_data");const l=j(a);return l.replace(/([A-Z])/g," $1").trim(),l},r=a=>a==null?!0:Array.isArray(a)?a.length===0:typeof a=="object"?Object.keys(a).length===0:!1,d=a=>{typeof a=="object"&&a!==null&&"payload"in a?(navigator.clipboard.writeText(JSON.stringify(a.payload)),V.success({content:g.translate("i18n_executioncontext_copied_to_clipboard")})):(navigator.clipboard.writeText(""),V.error({content:g.translate("i18n_executioncontext_no_payload")}))},y=a=>{i.value=!0,a.stopPropagation(),e.isSmartChatIdle!==!1&&(t("ask-ai"),setTimeout(()=>{i.value=!1},1e3))},_=a=>{typeof a=="object"?(navigator.clipboard.writeText(JSON.stringify(a)),V.success({content:g.translate("i18n_executioncontext_copied_to_clipboard")})):(navigator.clipboard.writeText(""),V.error({content:g.translate("i18n_executioncontext_failed_copy_request")}))};return(a,l)=>(n(),A(s(X),{bordered:!1,style:{"background-color":"transparent",width:"100%"}},{default:p(()=>[f(s(U),{key:"execution-context"},{header:p(()=>[f(s(D),{justify:"space-between"},{default:p(()=>[f(s(C),null,{default:p(()=>[H(v(s(g).translate("i18n_executioncontext_header")),1)]),_:1}),f(s(I),{title:a.isSmartChatIdle?"":s(g).translate("i18n_executioncontext_wait_or_stop"),placement:"left"},{default:p(()=>[a.showFixWithAi?(n(),u("div",{key:0,class:q(["ask-to-ai",{disabled:!a.isSmartChatIdle||i.value}]),onClick:y},[H(v(s(g).translate("i18n_executioncontext_fix_with_ai"))+" ",1),f(s(Ht),{size:16})],2)):b("",!0)]),_:1},8,["title"])]),_:1})]),default:p(()=>[f(s(Q),{direction:"vertical",style:{"border-radius":"5px",padding:"10px",color:"#fff",width:"100%","font-family":"monospace","max-height":"600px",overflow:"auto",border:"1px solid #e8e8e8"}},{default:p(()=>[Object.keys(a.data).length?(n(!0),u(T,{key:1},M(Object.entries(a.data),([x,w])=>(n(),u("div",{key:x,class:"tree"},[x!=="legacyThreadData"||!r(w)?(n(),u("div",Vt,[f(s(C),{strong:""},{default:p(()=>[H(v(o(x)),1)]),_:2},1024),x==="request"?(n(),A(s(I),{key:0,title:s(g).translate("i18n_executioncontext_copy_request_tooltip")},{default:p(()=>[m("span",{style:{"margin-left":"5px",cursor:"pointer",color:"initial"},onClick:O=>_(w)},[f(s(S))],8,Ct)]),_:2},1032,["title"])):b("",!0),x==="triggerTask"?(n(),A(s(I),{key:1,title:s(g).translate("i18n_executioncontext_copy_payload_tooltip")},{default:p(()=>[m("span",{style:{"margin-left":"5px",cursor:"pointer",color:"initial"},onClick:O=>d(w)},[f(s(S))],8,It)]),_:2},1032,["title"])):b("",!0),f(s(W),{"tree-data":s(Y)(w),selectable:!1},null,8,["tree-data"])])):b("",!0)]))),128)):(n(),A(s(C),{key:0,type:"secondary"},{default:p(()=>[H(v(s(g).translate("i18n_executioncontext_empty")),1)]),_:1}))]),_:1})]),_:1})]),_:1}))}});const zt=R(Pt,[["__scopeId","data-v-f7630ec7"]]);class Nt{constructor(t){h(this,"state");h(this,"polling",et({task:()=>this.refetch(),interval:1e4}));h(this,"executionRepository");h(this,"buildRepository");h(this,"projectId");h(this,"pool");h(this,"onFilterChange");h(this,"handleFilterChange",()=>{this.state.currentPage.waitingDebounce=!0,this.state.pagination.currentIndex=1,this.debouncedPageRefetch(),this.onFilterChange&&this.onFilterChange(this.state.filters)});h(this,"debouncedPageRefetch",G.exports.debounce(async()=>{await this.fetchPage(),this.state.currentPage.waitingDebounce=!1},500));h(this,"fetchEmptyLogs",()=>{this.state.currentPage.openedExecutionIds.forEach(async t=>{this.state.currentPage.executionData[t]||await this.fetchExecutionDetails(t)})});const{executionRepository:e,buildRepository:i,projectId:o,filters:r={},pagination:d={},pool:y=!1,openedExecutionId:_,onFilterChange:a}=t;this.executionRepository=e,this.buildRepository=i,this.projectId=o,this.pool=y,this.onFilterChange=a,this.state=J({currentPage:{openedExecutionIds:_?[_]:[],loadingExecutions:!1,waitingDebounce:!1,executions:[],executionData:{}},pagination:{currentIndex:1,pageSize:10,totalCount:0,...d},filters:{dateRange:void 0,buildId:void 0,stageId:void 0,status:void 0,search:void 0,...r},filterOptions:{builds:[],stages:[],statuses:tt.map(l=>({label:j(l),value:l}))}}),P(()=>this.state.filters.buildId,()=>{this.fetchStageOptions()}),P(this.state.filters,()=>{this.state.currentPage.openedExecutionIds=[],this.handleFilterChange()}),P(this.state.pagination,()=>{this.state.currentPage.openedExecutionIds=[],this.fetchPage()})}async init(){await Promise.all([this.fetchPage(),this.fetchOptions()]),this.fetchEmptyLogs(),this.pool&&this.polling.startPolling()}teardown(){this.polling.endPolling()}async getNewestExecutionId(t){let e=this.state.currentPage.executions;return t&&(e=e.filter(o=>o.stageId===t)),e.length===0?null:e.reduce((o,r)=>o.createdAt>r.createdAt?o:r).id}async fetchPage(){var i,o,r,d;this.state.currentPage.loadingExecutions=!0;const{executions:t,totalCount:e}=await this.executionRepository.list({projectId:this.projectId,buildId:this.state.filters.buildId,status:this.state.filters.status,limit:this.state.pagination.pageSize,offset:(this.state.pagination.currentIndex-1)*this.state.pagination.pageSize,stageId:this.state.filters.stageId,startDate:(o=(i=this.state.filters.dateRange)==null?void 0:i[0])==null?void 0:o.toISOString(),endDate:(d=(r=this.state.filters.dateRange)==null?void 0:r[1])==null?void 0:d.toISOString(),search:this.state.filters.search});this.state.currentPage.loadingExecutions=!1,this.state.currentPage.executions=t,this.state.pagination.totalCount=e}async fetchBuildOptions(){if(!this.buildRepository)return;const e=(await this.buildRepository.list(this.projectId)).map(i=>({label:`[${i.id.slice(0,8)}] ${i.createdAt.toLocaleString()} ${i.latest?"(Latest)":""}`,value:i.id}));this.state.filterOptions.builds=e}async fetchStageOptions(){var i;if(!this.buildRepository){const r=(await this.executionRepository.fetchStages()).map(d=>({label:d.title,value:d.id}));this.state.filterOptions.stages=r!=null?r:[];return}const t=await K.get((i=this.state.filters.buildId)!=null?i:this.state.filterOptions.builds[0].value),e=t==null?void 0:t.runtimes.map(o=>({label:o.title,value:o.id}));this.state.filterOptions.stages=e!=null?e:[]}async fetchOptions(){await this.fetchBuildOptions(),await this.fetchStageOptions()}async fetchExecutionDetails(t){const[e,i,o]=await Promise.all([this.executionRepository.fetchLogs(this.projectId,t),this.executionRepository.fetchThreadData(this.projectId,t),this.executionRepository.getExecutionTasks(this.projectId,t)]);this.state.currentPage.executionData[t]={logs:e,threadData:i,tasks:{triggerTask:o.triggerTask?{type:o.triggerTask.type,payload:o.triggerTask.payload}:null,sentTasks:o.sentTasks.map(r=>({type:r.type,payload:r.payload}))}}}async refetch(){this.state.currentPage.openedExecutionIds.map(t=>this.fetchExecutionDetails(t))}}export{zt as E,$t as L,Nt as a};
2
+ //# sourceMappingURL=LogsController.e88bddfb.js.map
@@ -0,0 +1,2 @@
1
+ import{P as f}from"./PlayerNavbar.393e1a48.js";import{d as g,ec as h,ei as c,r as b,c as y,j as k,ac as v,u as n,a as w,h as L,e as C,f as I,o as i,_ as N}from"./jwt-decode.esm.5ee65524.js";import{u as V}from"./workspaceStore.18d1ed9a.js";import"./userStore.9eb65729.js";import"./metadata.db332d21.js";import"./PhWebhooksLogo.vue.ff084558.js";import"./LoadingOutlined.3c83d190.js";import"./PhSignOut.vue.83e5f761.js";import"./index.2141f0e8.js";import"./url.804625c6.js";import"./colorHelpers.d8c19ea3.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]="4a2ade04-2162-40f7-b3bd-63f360db4ced",o._sentryDebugIdIdentifier="sentry-dbid-4a2ade04-2162-40f7-b3bd-63f360db4ced")}catch{}})();const x={class:"main-container"},B={class:"content"},D=g({__name:"Main",setup(o){const e=h(),t=V(),d=c().path,a=b(null),u=async({path:s,id:r})=>{a.value=r,await e.push({path:`/${s}`}),a.value=null},l=()=>{e.push({name:"playerLogin"})},p=()=>{e.push({name:"playerLogin"})},_=y(()=>!!c().meta.hideLogin);return(s,r)=>{const m=k("RouterView");return i(),v("div",x,[n(t).state.workspace?(i(),w(f,{key:0,"current-path":n(d),"hide-login":_.value,"runner-data":n(t).state.workspace,loading:a.value,onNavigate:u,onLoginClick:p,onLogoutClick:l},null,8,["current-path","hide-login","runner-data","loading"])):L("",!0),C("section",B,[I(m)])])}}});const F=N(D,[["__scopeId","data-v-f095bece"]]);export{F as default};
2
+ //# sourceMappingURL=Main.a79ded11.js.map
@@ -0,0 +1 @@
1
+ [data-v-b6704f26]:root{--abstra-main-color-dark: #343b46}.loading[data-v-b6704f26]{position:absolute;top:0;left:0;width:100vw;height:100vh;display:flex;justify-content:center;align-items:center}
@@ -1,2 +1,2 @@
1
- var jn=Object.defineProperty;var Vn=(e,n,t)=>n in e?jn(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var Ye=(e,n,t)=>(Vn(e,typeof n!="symbol"?n+"":n,t),t);import{c as qn,b as Jn,d as Qn}from"./FormRunner.73650f9e.js";import{a as ei}from"./asyncComputed.7bc1692e.js";import{u as St}from"./uuid.8581bc03.js";import{L as ti}from"./CircularLoading.217756fb.js";import{W as ni}from"./PlayerConfigProvider.00af5968.js";import{d as ii,ei as ai,al as ri,r as li,w as oi,u as O,ac as fi,f as _i,a as At,b as si,h as di,o as Ge,_ as hi}from"./jwt-decode.esm.c9c37cdc.js";import"./userStore.d962fba4.js";import"./Login.vue_vue_type_script_setup_true_lang.ada1c6c9.js";import"./workspaceStore.5a435520.js";import"./url.9e033350.js";import"./colorHelpers.8ba18214.js";import"./Logo.d77d5637.js";import"./string.8fab6b53.js";import"./index.b74c262c.js";import"./Steps.687763a5.js";import"./index.71eb83f3.js";import"./Watermark.5071a4b2.js";import"./constants.534f67bc.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="8bcb3b3f-c2cd-471b-add6-43a83df802f1",e._sentryDebugIdIdentifier="sentry-dbid-8bcb3b3f-c2cd-471b-add6-43a83df802f1")}catch{}})();/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const ci=4,zt=0,Tt=1,ui=2;function de(e){let n=e.length;for(;--n>=0;)e[n]=0}const wi=0,un=1,bi=2,gi=3,pi=258,gt=29,Te=256,ke=Te+1+gt,oe=30,pt=19,wn=2*ke+1,Q=15,We=16,xi=7,xt=256,bn=16,gn=17,pn=18,ft=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Fe=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),ki=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),xn=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),vi=512,X=new Array((ke+2)*2);de(X);const ge=new Array(oe*2);de(ge);const ve=new Array(vi);de(ve);const me=new Array(pi-gi+1);de(me);const kt=new Array(gt);de(kt);const $e=new Array(oe);de($e);function je(e,n,t,i,r){this.static_tree=e,this.extra_bits=n,this.extra_base=t,this.elems=i,this.max_length=r,this.has_stree=e&&e.length}let kn,vn,mn;function Ve(e,n){this.dyn_tree=e,this.max_code=0,this.stat_desc=n}const yn=e=>e<256?ve[e]:ve[256+(e>>>7)],ye=(e,n)=>{e.pending_buf[e.pending++]=n&255,e.pending_buf[e.pending++]=n>>>8&255},N=(e,n,t)=>{e.bi_valid>We-t?(e.bi_buf|=n<<e.bi_valid&65535,ye(e,e.bi_buf),e.bi_buf=n>>We-e.bi_valid,e.bi_valid+=t-We):(e.bi_buf|=n<<e.bi_valid&65535,e.bi_valid+=t)},H=(e,n,t)=>{N(e,t[n*2],t[n*2+1])},En=(e,n)=>{let t=0;do t|=e&1,e>>>=1,t<<=1;while(--n>0);return t>>>1},mi=e=>{e.bi_valid===16?(ye(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},yi=(e,n)=>{const t=n.dyn_tree,i=n.max_code,r=n.stat_desc.static_tree,a=n.stat_desc.has_stree,_=n.stat_desc.extra_bits,o=n.stat_desc.extra_base,c=n.stat_desc.max_length;let l,f,p,d,s,u,E=0;for(d=0;d<=Q;d++)e.bl_count[d]=0;for(t[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;l<wn;l++)f=e.heap[l],d=t[t[f*2+1]*2+1]+1,d>c&&(d=c,E++),t[f*2+1]=d,!(f>i)&&(e.bl_count[d]++,s=0,f>=o&&(s=_[f-o]),u=t[f*2],e.opt_len+=u*(d+s),a&&(e.static_len+=u*(r[f*2+1]+s)));if(E!==0){do{for(d=c-1;e.bl_count[d]===0;)d--;e.bl_count[d]--,e.bl_count[d+1]+=2,e.bl_count[c]--,E-=2}while(E>0);for(d=c;d!==0;d--)for(f=e.bl_count[d];f!==0;)p=e.heap[--l],!(p>i)&&(t[p*2+1]!==d&&(e.opt_len+=(d-t[p*2+1])*t[p*2],t[p*2+1]=d),f--)}},Sn=(e,n,t)=>{const i=new Array(Q+1);let r=0,a,_;for(a=1;a<=Q;a++)r=r+t[a-1]<<1,i[a]=r;for(_=0;_<=n;_++){let o=e[_*2+1];o!==0&&(e[_*2]=En(i[o]++,o))}},Ei=()=>{let e,n,t,i,r;const a=new Array(Q+1);for(t=0,i=0;i<gt-1;i++)for(kt[i]=t,e=0;e<1<<ft[i];e++)me[t++]=i;for(me[t-1]=i,r=0,i=0;i<16;i++)for($e[i]=r,e=0;e<1<<Fe[i];e++)ve[r++]=i;for(r>>=7;i<oe;i++)for($e[i]=r<<7,e=0;e<1<<Fe[i]-7;e++)ve[256+r++]=i;for(n=0;n<=Q;n++)a[n]=0;for(e=0;e<=143;)X[e*2+1]=8,e++,a[8]++;for(;e<=255;)X[e*2+1]=9,e++,a[9]++;for(;e<=279;)X[e*2+1]=7,e++,a[7]++;for(;e<=287;)X[e*2+1]=8,e++,a[8]++;for(Sn(X,ke+1,a),e=0;e<oe;e++)ge[e*2+1]=5,ge[e*2]=En(e,5);kn=new je(X,ft,Te+1,ke,Q),vn=new je(ge,Fe,0,oe,Q),mn=new je(new Array(0),ki,0,pt,xi)},An=e=>{let n;for(n=0;n<ke;n++)e.dyn_ltree[n*2]=0;for(n=0;n<oe;n++)e.dyn_dtree[n*2]=0;for(n=0;n<pt;n++)e.bl_tree[n*2]=0;e.dyn_ltree[xt*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},zn=e=>{e.bi_valid>8?ye(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},Rt=(e,n,t,i)=>{const r=n*2,a=t*2;return e[r]<e[a]||e[r]===e[a]&&i[n]<=i[t]},qe=(e,n,t)=>{const i=e.heap[t];let r=t<<1;for(;r<=e.heap_len&&(r<e.heap_len&&Rt(n,e.heap[r+1],e.heap[r],e.depth)&&r++,!Rt(n,i,e.heap[r],e.depth));)e.heap[t]=e.heap[r],t=r,r<<=1;e.heap[t]=i},Dt=(e,n,t)=>{let i,r,a=0,_,o;if(e.sym_next!==0)do i=e.pending_buf[e.sym_buf+a++]&255,i+=(e.pending_buf[e.sym_buf+a++]&255)<<8,r=e.pending_buf[e.sym_buf+a++],i===0?H(e,r,n):(_=me[r],H(e,_+Te+1,n),o=ft[_],o!==0&&(r-=kt[_],N(e,r,o)),i--,_=yn(i),H(e,_,t),o=Fe[_],o!==0&&(i-=$e[_],N(e,i,o)));while(a<e.sym_next);H(e,xt,n)},_t=(e,n)=>{const t=n.dyn_tree,i=n.stat_desc.static_tree,r=n.stat_desc.has_stree,a=n.stat_desc.elems;let _,o,c=-1,l;for(e.heap_len=0,e.heap_max=wn,_=0;_<a;_++)t[_*2]!==0?(e.heap[++e.heap_len]=c=_,e.depth[_]=0):t[_*2+1]=0;for(;e.heap_len<2;)l=e.heap[++e.heap_len]=c<2?++c:0,t[l*2]=1,e.depth[l]=0,e.opt_len--,r&&(e.static_len-=i[l*2+1]);for(n.max_code=c,_=e.heap_len>>1;_>=1;_--)qe(e,t,_);l=a;do _=e.heap[1],e.heap[1]=e.heap[e.heap_len--],qe(e,t,1),o=e.heap[1],e.heap[--e.heap_max]=_,e.heap[--e.heap_max]=o,t[l*2]=t[_*2]+t[o*2],e.depth[l]=(e.depth[_]>=e.depth[o]?e.depth[_]:e.depth[o])+1,t[_*2+1]=t[o*2+1]=l,e.heap[1]=l++,qe(e,t,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],yi(e,n),Sn(t,c,e.bl_count)},It=(e,n,t)=>{let i,r=-1,a,_=n[0*2+1],o=0,c=7,l=4;for(_===0&&(c=138,l=3),n[(t+1)*2+1]=65535,i=0;i<=t;i++)a=_,_=n[(i+1)*2+1],!(++o<c&&a===_)&&(o<l?e.bl_tree[a*2]+=o:a!==0?(a!==r&&e.bl_tree[a*2]++,e.bl_tree[bn*2]++):o<=10?e.bl_tree[gn*2]++:e.bl_tree[pn*2]++,o=0,r=a,_===0?(c=138,l=3):a===_?(c=6,l=3):(c=7,l=4))},Zt=(e,n,t)=>{let i,r=-1,a,_=n[0*2+1],o=0,c=7,l=4;for(_===0&&(c=138,l=3),i=0;i<=t;i++)if(a=_,_=n[(i+1)*2+1],!(++o<c&&a===_)){if(o<l)do H(e,a,e.bl_tree);while(--o!==0);else a!==0?(a!==r&&(H(e,a,e.bl_tree),o--),H(e,bn,e.bl_tree),N(e,o-3,2)):o<=10?(H(e,gn,e.bl_tree),N(e,o-3,3)):(H(e,pn,e.bl_tree),N(e,o-11,7));o=0,r=a,_===0?(c=138,l=3):a===_?(c=6,l=3):(c=7,l=4)}},Si=e=>{let n;for(It(e,e.dyn_ltree,e.l_desc.max_code),It(e,e.dyn_dtree,e.d_desc.max_code),_t(e,e.bl_desc),n=pt-1;n>=3&&e.bl_tree[xn[n]*2+1]===0;n--);return e.opt_len+=3*(n+1)+5+5+4,n},Ai=(e,n,t,i)=>{let r;for(N(e,n-257,5),N(e,t-1,5),N(e,i-4,4),r=0;r<i;r++)N(e,e.bl_tree[xn[r]*2+1],3);Zt(e,e.dyn_ltree,n-1),Zt(e,e.dyn_dtree,t-1)},zi=e=>{let n=4093624447,t;for(t=0;t<=31;t++,n>>>=1)if(n&1&&e.dyn_ltree[t*2]!==0)return zt;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return Tt;for(t=32;t<Te;t++)if(e.dyn_ltree[t*2]!==0)return Tt;return zt};let Ot=!1;const Ti=e=>{Ot||(Ei(),Ot=!0),e.l_desc=new Ve(e.dyn_ltree,kn),e.d_desc=new Ve(e.dyn_dtree,vn),e.bl_desc=new Ve(e.bl_tree,mn),e.bi_buf=0,e.bi_valid=0,An(e)},Tn=(e,n,t,i)=>{N(e,(wi<<1)+(i?1:0),3),zn(e),ye(e,t),ye(e,~t),t&&e.pending_buf.set(e.window.subarray(n,n+t),e.pending),e.pending+=t},Ri=e=>{N(e,un<<1,3),H(e,xt,X),mi(e)},Di=(e,n,t,i)=>{let r,a,_=0;e.level>0?(e.strm.data_type===ui&&(e.strm.data_type=zi(e)),_t(e,e.l_desc),_t(e,e.d_desc),_=Si(e),r=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=r&&(r=a)):r=a=t+5,t+4<=r&&n!==-1?Tn(e,n,t,i):e.strategy===ci||a===r?(N(e,(un<<1)+(i?1:0),3),Dt(e,X,ge)):(N(e,(bi<<1)+(i?1:0),3),Ai(e,e.l_desc.max_code+1,e.d_desc.max_code+1,_+1),Dt(e,e.dyn_ltree,e.dyn_dtree)),An(e),i&&zn(e)},Ii=(e,n,t)=>(e.pending_buf[e.sym_buf+e.sym_next++]=n,e.pending_buf[e.sym_buf+e.sym_next++]=n>>8,e.pending_buf[e.sym_buf+e.sym_next++]=t,n===0?e.dyn_ltree[t*2]++:(e.matches++,n--,e.dyn_ltree[(me[t]+Te+1)*2]++,e.dyn_dtree[yn(n)*2]++),e.sym_next===e.sym_end);var Zi=Ti,Oi=Tn,Ci=Di,Ni=Ii,Li=Ri,Ui={_tr_init:Zi,_tr_stored_block:Oi,_tr_flush_block:Ci,_tr_tally:Ni,_tr_align:Li};const Mi=(e,n,t,i)=>{let r=e&65535|0,a=e>>>16&65535|0,_=0;for(;t!==0;){_=t>2e3?2e3:t,t-=_;do r=r+n[i++]|0,a=a+r|0;while(--_);r%=65521,a%=65521}return r|a<<16|0};var Ee=Mi;const Fi=()=>{let e,n=[];for(var t=0;t<256;t++){e=t;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;n[t]=e}return n},$i=new Uint32Array(Fi()),Hi=(e,n,t,i)=>{const r=$i,a=i+t;e^=-1;for(let _=i;_<a;_++)e=e>>>8^r[(e^n[_])&255];return e^-1};var I=Hi,fe={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Re={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:Bi,_tr_stored_block:st,_tr_flush_block:Ki,_tr_tally:j,_tr_align:Pi}=Ui,{Z_NO_FLUSH:V,Z_PARTIAL_FLUSH:Xi,Z_FULL_FLUSH:Yi,Z_FINISH:M,Z_BLOCK:Ct,Z_OK:Z,Z_STREAM_END:Nt,Z_STREAM_ERROR:B,Z_DATA_ERROR:Gi,Z_BUF_ERROR:Je,Z_DEFAULT_COMPRESSION:Wi,Z_FILTERED:ji,Z_HUFFMAN_ONLY:Ce,Z_RLE:Vi,Z_FIXED:qi,Z_DEFAULT_STRATEGY:Ji,Z_UNKNOWN:Qi,Z_DEFLATED:Ke}=Re,ea=9,ta=15,na=8,ia=29,aa=256,dt=aa+1+ia,ra=30,la=19,oa=2*dt+1,fa=15,v=3,W=258,K=W+v+1,_a=32,_e=42,vt=57,ht=69,ct=73,ut=91,wt=103,ee=113,we=666,C=1,he=2,ne=3,ce=4,sa=3,te=(e,n)=>(e.msg=fe[n],n),Lt=e=>e*2-(e>4?9:0),G=e=>{let n=e.length;for(;--n>=0;)e[n]=0},da=e=>{let n,t,i,r=e.w_size;n=e.hash_size,i=n;do t=e.head[--i],e.head[i]=t>=r?t-r:0;while(--n);n=r,i=n;do t=e.prev[--i],e.prev[i]=t>=r?t-r:0;while(--n)};let ha=(e,n,t)=>(n<<e.hash_shift^t)&e.hash_mask,q=ha;const L=e=>{const n=e.state;let t=n.pending;t>e.avail_out&&(t=e.avail_out),t!==0&&(e.output.set(n.pending_buf.subarray(n.pending_out,n.pending_out+t),e.next_out),e.next_out+=t,n.pending_out+=t,e.total_out+=t,e.avail_out-=t,n.pending-=t,n.pending===0&&(n.pending_out=0))},U=(e,n)=>{Ki(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,n),e.block_start=e.strstart,L(e.strm)},A=(e,n)=>{e.pending_buf[e.pending++]=n},ue=(e,n)=>{e.pending_buf[e.pending++]=n>>>8&255,e.pending_buf[e.pending++]=n&255},bt=(e,n,t,i)=>{let r=e.avail_in;return r>i&&(r=i),r===0?0:(e.avail_in-=r,n.set(e.input.subarray(e.next_in,e.next_in+r),t),e.state.wrap===1?e.adler=Ee(e.adler,n,r,t):e.state.wrap===2&&(e.adler=I(e.adler,n,r,t)),e.next_in+=r,e.total_in+=r,r)},Rn=(e,n)=>{let t=e.max_chain_length,i=e.strstart,r,a,_=e.prev_length,o=e.nice_match;const c=e.strstart>e.w_size-K?e.strstart-(e.w_size-K):0,l=e.window,f=e.w_mask,p=e.prev,d=e.strstart+W;let s=l[i+_-1],u=l[i+_];e.prev_length>=e.good_match&&(t>>=2),o>e.lookahead&&(o=e.lookahead);do if(r=n,!(l[r+_]!==u||l[r+_-1]!==s||l[r]!==l[i]||l[++r]!==l[i+1])){i+=2,r++;do;while(l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&i<d);if(a=W-(d-i),i=d-W,a>_){if(e.match_start=n,_=a,a>=o)break;s=l[i+_-1],u=l[i+_]}}while((n=p[n&f])>c&&--t!==0);return _<=e.lookahead?_:e.lookahead},se=e=>{const n=e.w_size;let t,i,r;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=n+(n-K)&&(e.window.set(e.window.subarray(n,n+n-i),0),e.match_start-=n,e.strstart-=n,e.block_start-=n,e.insert>e.strstart&&(e.insert=e.strstart),da(e),i+=n),e.strm.avail_in===0)break;if(t=bt(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=t,e.lookahead+e.insert>=v)for(r=e.strstart-e.insert,e.ins_h=e.window[r],e.ins_h=q(e,e.ins_h,e.window[r+1]);e.insert&&(e.ins_h=q(e,e.ins_h,e.window[r+v-1]),e.prev[r&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=r,r++,e.insert--,!(e.lookahead+e.insert<v)););}while(e.lookahead<K&&e.strm.avail_in!==0)},Dn=(e,n)=>{let t=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,i,r,a,_=0,o=e.strm.avail_in;do{if(i=65535,a=e.bi_valid+42>>3,e.strm.avail_out<a||(a=e.strm.avail_out-a,r=e.strstart-e.block_start,i>r+e.strm.avail_in&&(i=r+e.strm.avail_in),i>a&&(i=a),i<t&&(i===0&&n!==M||n===V||i!==r+e.strm.avail_in)))break;_=n===M&&i===r+e.strm.avail_in?1:0,st(e,0,0,_),e.pending_buf[e.pending-4]=i,e.pending_buf[e.pending-3]=i>>8,e.pending_buf[e.pending-2]=~i,e.pending_buf[e.pending-1]=~i>>8,L(e.strm),r&&(r>i&&(r=i),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+r),e.strm.next_out),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r,e.block_start+=r,i-=r),i&&(bt(e.strm,e.strm.output,e.strm.next_out,i),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i)}while(_===0);return o-=e.strm.avail_in,o&&(o>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=o&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-o,e.strm.next_in),e.strstart),e.strstart+=o,e.insert+=o>e.w_size-e.insert?e.w_size-e.insert:o),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),_?ce:n!==V&&n!==M&&e.strm.avail_in===0&&e.strstart===e.block_start?he:(a=e.window_size-e.strstart,e.strm.avail_in>a&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,a+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),a>e.strm.avail_in&&(a=e.strm.avail_in),a&&(bt(e.strm,e.window,e.strstart,a),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.high_water<e.strstart&&(e.high_water=e.strstart),a=e.bi_valid+42>>3,a=e.pending_buf_size-a>65535?65535:e.pending_buf_size-a,t=a>e.w_size?e.w_size:a,r=e.strstart-e.block_start,(r>=t||(r||n===M)&&n!==V&&e.strm.avail_in===0&&r<=a)&&(i=r>a?a:r,_=n===M&&e.strm.avail_in===0&&i===r?1:0,st(e,e.block_start,i,_),e.block_start+=i,L(e.strm)),_?ne:C)},Qe=(e,n)=>{let t,i;for(;;){if(e.lookahead<K){if(se(e),e.lookahead<K&&n===V)return C;if(e.lookahead===0)break}if(t=0,e.lookahead>=v&&(e.ins_h=q(e,e.ins_h,e.window[e.strstart+v-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),t!==0&&e.strstart-t<=e.w_size-K&&(e.match_length=Rn(e,t)),e.match_length>=v)if(i=j(e,e.strstart-e.match_start,e.match_length-v),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=v){e.match_length--;do e.strstart++,e.ins_h=q(e,e.ins_h,e.window[e.strstart+v-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=q(e,e.ins_h,e.window[e.strstart+1]);else i=j(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(U(e,!1),e.strm.avail_out===0))return C}return e.insert=e.strstart<v-1?e.strstart:v-1,n===M?(U(e,!0),e.strm.avail_out===0?ne:ce):e.sym_next&&(U(e,!1),e.strm.avail_out===0)?C:he},re=(e,n)=>{let t,i,r;for(;;){if(e.lookahead<K){if(se(e),e.lookahead<K&&n===V)return C;if(e.lookahead===0)break}if(t=0,e.lookahead>=v&&(e.ins_h=q(e,e.ins_h,e.window[e.strstart+v-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=v-1,t!==0&&e.prev_length<e.max_lazy_match&&e.strstart-t<=e.w_size-K&&(e.match_length=Rn(e,t),e.match_length<=5&&(e.strategy===ji||e.match_length===v&&e.strstart-e.match_start>4096)&&(e.match_length=v-1)),e.prev_length>=v&&e.match_length<=e.prev_length){r=e.strstart+e.lookahead-v,i=j(e,e.strstart-1-e.prev_match,e.prev_length-v),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=r&&(e.ins_h=q(e,e.ins_h,e.window[e.strstart+v-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=v-1,e.strstart++,i&&(U(e,!1),e.strm.avail_out===0))return C}else if(e.match_available){if(i=j(e,0,e.window[e.strstart-1]),i&&U(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return C}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=j(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<v-1?e.strstart:v-1,n===M?(U(e,!0),e.strm.avail_out===0?ne:ce):e.sym_next&&(U(e,!1),e.strm.avail_out===0)?C:he},ca=(e,n)=>{let t,i,r,a;const _=e.window;for(;;){if(e.lookahead<=W){if(se(e),e.lookahead<=W&&n===V)return C;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=v&&e.strstart>0&&(r=e.strstart-1,i=_[r],i===_[++r]&&i===_[++r]&&i===_[++r])){a=e.strstart+W;do;while(i===_[++r]&&i===_[++r]&&i===_[++r]&&i===_[++r]&&i===_[++r]&&i===_[++r]&&i===_[++r]&&i===_[++r]&&r<a);e.match_length=W-(a-r),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=v?(t=j(e,1,e.match_length-v),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(t=j(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),t&&(U(e,!1),e.strm.avail_out===0))return C}return e.insert=0,n===M?(U(e,!0),e.strm.avail_out===0?ne:ce):e.sym_next&&(U(e,!1),e.strm.avail_out===0)?C:he},ua=(e,n)=>{let t;for(;;){if(e.lookahead===0&&(se(e),e.lookahead===0)){if(n===V)return C;break}if(e.match_length=0,t=j(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,t&&(U(e,!1),e.strm.avail_out===0))return C}return e.insert=0,n===M?(U(e,!0),e.strm.avail_out===0?ne:ce):e.sym_next&&(U(e,!1),e.strm.avail_out===0)?C:he};function $(e,n,t,i,r){this.good_length=e,this.max_lazy=n,this.nice_length=t,this.max_chain=i,this.func=r}const be=[new $(0,0,0,0,Dn),new $(4,4,8,4,Qe),new $(4,5,16,8,Qe),new $(4,6,32,32,Qe),new $(4,4,16,16,re),new $(8,16,32,32,re),new $(8,16,128,128,re),new $(8,32,128,256,re),new $(32,128,258,1024,re),new $(32,258,258,4096,re)],wa=e=>{e.window_size=2*e.w_size,G(e.head),e.max_lazy_match=be[e.level].max_lazy,e.good_match=be[e.level].good_length,e.nice_match=be[e.level].nice_length,e.max_chain_length=be[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=v-1,e.match_available=0,e.ins_h=0};function ba(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Ke,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(oa*2),this.dyn_dtree=new Uint16Array((2*ra+1)*2),this.bl_tree=new Uint16Array((2*la+1)*2),G(this.dyn_ltree),G(this.dyn_dtree),G(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(fa+1),this.heap=new Uint16Array(2*dt+1),G(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*dt+1),G(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const De=e=>{if(!e)return 1;const n=e.state;return!n||n.strm!==e||n.status!==_e&&n.status!==vt&&n.status!==ht&&n.status!==ct&&n.status!==ut&&n.status!==wt&&n.status!==ee&&n.status!==we?1:0},In=e=>{if(De(e))return te(e,B);e.total_in=e.total_out=0,e.data_type=Qi;const n=e.state;return n.pending=0,n.pending_out=0,n.wrap<0&&(n.wrap=-n.wrap),n.status=n.wrap===2?vt:n.wrap?_e:ee,e.adler=n.wrap===2?0:1,n.last_flush=-2,Bi(n),Z},Zn=e=>{const n=In(e);return n===Z&&wa(e.state),n},ga=(e,n)=>De(e)||e.state.wrap!==2?B:(e.state.gzhead=n,Z),On=(e,n,t,i,r,a)=>{if(!e)return B;let _=1;if(n===Wi&&(n=6),i<0?(_=0,i=-i):i>15&&(_=2,i-=16),r<1||r>ea||t!==Ke||i<8||i>15||n<0||n>9||a<0||a>qi||i===8&&_!==1)return te(e,B);i===8&&(i=9);const o=new ba;return e.state=o,o.strm=e,o.status=_e,o.wrap=_,o.gzhead=null,o.w_bits=i,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=r+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+v-1)/v),o.window=new Uint8Array(o.w_size*2),o.head=new Uint16Array(o.hash_size),o.prev=new Uint16Array(o.w_size),o.lit_bufsize=1<<r+6,o.pending_buf_size=o.lit_bufsize*4,o.pending_buf=new Uint8Array(o.pending_buf_size),o.sym_buf=o.lit_bufsize,o.sym_end=(o.lit_bufsize-1)*3,o.level=n,o.strategy=a,o.method=t,Zn(e)},pa=(e,n)=>On(e,n,Ke,ta,na,Ji),xa=(e,n)=>{if(De(e)||n>Ct||n<0)return e?te(e,B):B;const t=e.state;if(!e.output||e.avail_in!==0&&!e.input||t.status===we&&n!==M)return te(e,e.avail_out===0?Je:B);const i=t.last_flush;if(t.last_flush=n,t.pending!==0){if(L(e),e.avail_out===0)return t.last_flush=-1,Z}else if(e.avail_in===0&&Lt(n)<=Lt(i)&&n!==M)return te(e,Je);if(t.status===we&&e.avail_in!==0)return te(e,Je);if(t.status===_e&&t.wrap===0&&(t.status=ee),t.status===_e){let r=Ke+(t.w_bits-8<<4)<<8,a=-1;if(t.strategy>=Ce||t.level<2?a=0:t.level<6?a=1:t.level===6?a=2:a=3,r|=a<<6,t.strstart!==0&&(r|=_a),r+=31-r%31,ue(t,r),t.strstart!==0&&(ue(t,e.adler>>>16),ue(t,e.adler&65535)),e.adler=1,t.status=ee,L(e),t.pending!==0)return t.last_flush=-1,Z}if(t.status===vt){if(e.adler=0,A(t,31),A(t,139),A(t,8),t.gzhead)A(t,(t.gzhead.text?1:0)+(t.gzhead.hcrc?2:0)+(t.gzhead.extra?4:0)+(t.gzhead.name?8:0)+(t.gzhead.comment?16:0)),A(t,t.gzhead.time&255),A(t,t.gzhead.time>>8&255),A(t,t.gzhead.time>>16&255),A(t,t.gzhead.time>>24&255),A(t,t.level===9?2:t.strategy>=Ce||t.level<2?4:0),A(t,t.gzhead.os&255),t.gzhead.extra&&t.gzhead.extra.length&&(A(t,t.gzhead.extra.length&255),A(t,t.gzhead.extra.length>>8&255)),t.gzhead.hcrc&&(e.adler=I(e.adler,t.pending_buf,t.pending,0)),t.gzindex=0,t.status=ht;else if(A(t,0),A(t,0),A(t,0),A(t,0),A(t,0),A(t,t.level===9?2:t.strategy>=Ce||t.level<2?4:0),A(t,sa),t.status=ee,L(e),t.pending!==0)return t.last_flush=-1,Z}if(t.status===ht){if(t.gzhead.extra){let r=t.pending,a=(t.gzhead.extra.length&65535)-t.gzindex;for(;t.pending+a>t.pending_buf_size;){let o=t.pending_buf_size-t.pending;if(t.pending_buf.set(t.gzhead.extra.subarray(t.gzindex,t.gzindex+o),t.pending),t.pending=t.pending_buf_size,t.gzhead.hcrc&&t.pending>r&&(e.adler=I(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex+=o,L(e),t.pending!==0)return t.last_flush=-1,Z;r=0,a-=o}let _=new Uint8Array(t.gzhead.extra);t.pending_buf.set(_.subarray(t.gzindex,t.gzindex+a),t.pending),t.pending+=a,t.gzhead.hcrc&&t.pending>r&&(e.adler=I(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex=0}t.status=ct}if(t.status===ct){if(t.gzhead.name){let r=t.pending,a;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>r&&(e.adler=I(e.adler,t.pending_buf,t.pending-r,r)),L(e),t.pending!==0)return t.last_flush=-1,Z;r=0}t.gzindex<t.gzhead.name.length?a=t.gzhead.name.charCodeAt(t.gzindex++)&255:a=0,A(t,a)}while(a!==0);t.gzhead.hcrc&&t.pending>r&&(e.adler=I(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex=0}t.status=ut}if(t.status===ut){if(t.gzhead.comment){let r=t.pending,a;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>r&&(e.adler=I(e.adler,t.pending_buf,t.pending-r,r)),L(e),t.pending!==0)return t.last_flush=-1,Z;r=0}t.gzindex<t.gzhead.comment.length?a=t.gzhead.comment.charCodeAt(t.gzindex++)&255:a=0,A(t,a)}while(a!==0);t.gzhead.hcrc&&t.pending>r&&(e.adler=I(e.adler,t.pending_buf,t.pending-r,r))}t.status=wt}if(t.status===wt){if(t.gzhead.hcrc){if(t.pending+2>t.pending_buf_size&&(L(e),t.pending!==0))return t.last_flush=-1,Z;A(t,e.adler&255),A(t,e.adler>>8&255),e.adler=0}if(t.status=ee,L(e),t.pending!==0)return t.last_flush=-1,Z}if(e.avail_in!==0||t.lookahead!==0||n!==V&&t.status!==we){let r=t.level===0?Dn(t,n):t.strategy===Ce?ua(t,n):t.strategy===Vi?ca(t,n):be[t.level].func(t,n);if((r===ne||r===ce)&&(t.status=we),r===C||r===ne)return e.avail_out===0&&(t.last_flush=-1),Z;if(r===he&&(n===Xi?Pi(t):n!==Ct&&(st(t,0,0,!1),n===Yi&&(G(t.head),t.lookahead===0&&(t.strstart=0,t.block_start=0,t.insert=0))),L(e),e.avail_out===0))return t.last_flush=-1,Z}return n!==M?Z:t.wrap<=0?Nt:(t.wrap===2?(A(t,e.adler&255),A(t,e.adler>>8&255),A(t,e.adler>>16&255),A(t,e.adler>>24&255),A(t,e.total_in&255),A(t,e.total_in>>8&255),A(t,e.total_in>>16&255),A(t,e.total_in>>24&255)):(ue(t,e.adler>>>16),ue(t,e.adler&65535)),L(e),t.wrap>0&&(t.wrap=-t.wrap),t.pending!==0?Z:Nt)},ka=e=>{if(De(e))return B;const n=e.state.status;return e.state=null,n===ee?te(e,Gi):Z},va=(e,n)=>{let t=n.length;if(De(e))return B;const i=e.state,r=i.wrap;if(r===2||r===1&&i.status!==_e||i.lookahead)return B;if(r===1&&(e.adler=Ee(e.adler,n,t,0)),i.wrap=0,t>=i.w_size){r===0&&(G(i.head),i.strstart=0,i.block_start=0,i.insert=0);let c=new Uint8Array(i.w_size);c.set(n.subarray(t-i.w_size,t),0),n=c,t=i.w_size}const a=e.avail_in,_=e.next_in,o=e.input;for(e.avail_in=t,e.next_in=0,e.input=n,se(i);i.lookahead>=v;){let c=i.strstart,l=i.lookahead-(v-1);do i.ins_h=q(i,i.ins_h,i.window[c+v-1]),i.prev[c&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=c,c++;while(--l);i.strstart=c,i.lookahead=v-1,se(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=v-1,i.match_available=0,e.next_in=_,e.input=o,e.avail_in=a,i.wrap=r,Z};var ma=pa,ya=On,Ea=Zn,Sa=In,Aa=ga,za=xa,Ta=ka,Ra=va,Da="pako deflate (from Nodeca project)",pe={deflateInit:ma,deflateInit2:ya,deflateReset:Ea,deflateResetKeep:Sa,deflateSetHeader:Aa,deflate:za,deflateEnd:Ta,deflateSetDictionary:Ra,deflateInfo:Da};const Ia=(e,n)=>Object.prototype.hasOwnProperty.call(e,n);var Za=function(e){const n=Array.prototype.slice.call(arguments,1);for(;n.length;){const t=n.shift();if(!!t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(const i in t)Ia(t,i)&&(e[i]=t[i])}}return e},Oa=e=>{let n=0;for(let i=0,r=e.length;i<r;i++)n+=e[i].length;const t=new Uint8Array(n);for(let i=0,r=0,a=e.length;i<a;i++){let _=e[i];t.set(_,r),r+=_.length}return t},Pe={assign:Za,flattenChunks:Oa};let Cn=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Cn=!1}const Se=new Uint8Array(256);for(let e=0;e<256;e++)Se[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Se[254]=Se[254]=1;var Ca=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let n,t,i,r,a,_=e.length,o=0;for(r=0;r<_;r++)t=e.charCodeAt(r),(t&64512)===55296&&r+1<_&&(i=e.charCodeAt(r+1),(i&64512)===56320&&(t=65536+(t-55296<<10)+(i-56320),r++)),o+=t<128?1:t<2048?2:t<65536?3:4;for(n=new Uint8Array(o),a=0,r=0;a<o;r++)t=e.charCodeAt(r),(t&64512)===55296&&r+1<_&&(i=e.charCodeAt(r+1),(i&64512)===56320&&(t=65536+(t-55296<<10)+(i-56320),r++)),t<128?n[a++]=t:t<2048?(n[a++]=192|t>>>6,n[a++]=128|t&63):t<65536?(n[a++]=224|t>>>12,n[a++]=128|t>>>6&63,n[a++]=128|t&63):(n[a++]=240|t>>>18,n[a++]=128|t>>>12&63,n[a++]=128|t>>>6&63,n[a++]=128|t&63);return n};const Na=(e,n)=>{if(n<65534&&e.subarray&&Cn)return String.fromCharCode.apply(null,e.length===n?e:e.subarray(0,n));let t="";for(let i=0;i<n;i++)t+=String.fromCharCode(e[i]);return t};var La=(e,n)=>{const t=n||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,n));let i,r;const a=new Array(t*2);for(r=0,i=0;i<t;){let _=e[i++];if(_<128){a[r++]=_;continue}let o=Se[_];if(o>4){a[r++]=65533,i+=o-1;continue}for(_&=o===2?31:o===3?15:7;o>1&&i<t;)_=_<<6|e[i++]&63,o--;if(o>1){a[r++]=65533;continue}_<65536?a[r++]=_:(_-=65536,a[r++]=55296|_>>10&1023,a[r++]=56320|_&1023)}return Na(a,r)},Ua=(e,n)=>{n=n||e.length,n>e.length&&(n=e.length);let t=n-1;for(;t>=0&&(e[t]&192)===128;)t--;return t<0||t===0?n:t+Se[e[t]]>n?t:n},Ae={string2buf:Ca,buf2string:La,utf8border:Ua};function Ma(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var Nn=Ma;const Ln=Object.prototype.toString,{Z_NO_FLUSH:Fa,Z_SYNC_FLUSH:$a,Z_FULL_FLUSH:Ha,Z_FINISH:Ba,Z_OK:He,Z_STREAM_END:Ka,Z_DEFAULT_COMPRESSION:Pa,Z_DEFAULT_STRATEGY:Xa,Z_DEFLATED:Ya}=Re;function mt(e){this.options=Pe.assign({level:Pa,method:Ya,chunkSize:16384,windowBits:15,memLevel:8,strategy:Xa},e||{});let n=this.options;n.raw&&n.windowBits>0?n.windowBits=-n.windowBits:n.gzip&&n.windowBits>0&&n.windowBits<16&&(n.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Nn,this.strm.avail_out=0;let t=pe.deflateInit2(this.strm,n.level,n.method,n.windowBits,n.memLevel,n.strategy);if(t!==He)throw new Error(fe[t]);if(n.header&&pe.deflateSetHeader(this.strm,n.header),n.dictionary){let i;if(typeof n.dictionary=="string"?i=Ae.string2buf(n.dictionary):Ln.call(n.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(n.dictionary):i=n.dictionary,t=pe.deflateSetDictionary(this.strm,i),t!==He)throw new Error(fe[t]);this._dict_set=!0}}mt.prototype.push=function(e,n){const t=this.strm,i=this.options.chunkSize;let r,a;if(this.ended)return!1;for(n===~~n?a=n:a=n===!0?Ba:Fa,typeof e=="string"?t.input=Ae.string2buf(e):Ln.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){if(t.avail_out===0&&(t.output=new Uint8Array(i),t.next_out=0,t.avail_out=i),(a===$a||a===Ha)&&t.avail_out<=6){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(r=pe.deflate(t,a),r===Ka)return t.next_out>0&&this.onData(t.output.subarray(0,t.next_out)),r=pe.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===He;if(t.avail_out===0){this.onData(t.output);continue}if(a>0&&t.next_out>0){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(t.avail_in===0)break}return!0};mt.prototype.onData=function(e){this.chunks.push(e)};mt.prototype.onEnd=function(e){e===He&&(this.result=Pe.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};const Ne=16209,Ga=16191;var Wa=function(n,t){let i,r,a,_,o,c,l,f,p,d,s,u,E,m,g,z,x,h,S,D,w,T,y,b;const k=n.state;i=n.next_in,y=n.input,r=i+(n.avail_in-5),a=n.next_out,b=n.output,_=a-(t-n.avail_out),o=a+(n.avail_out-257),c=k.dmax,l=k.wsize,f=k.whave,p=k.wnext,d=k.window,s=k.hold,u=k.bits,E=k.lencode,m=k.distcode,g=(1<<k.lenbits)-1,z=(1<<k.distbits)-1;e:do{u<15&&(s+=y[i++]<<u,u+=8,s+=y[i++]<<u,u+=8),x=E[s&g];t:for(;;){if(h=x>>>24,s>>>=h,u-=h,h=x>>>16&255,h===0)b[a++]=x&65535;else if(h&16){S=x&65535,h&=15,h&&(u<h&&(s+=y[i++]<<u,u+=8),S+=s&(1<<h)-1,s>>>=h,u-=h),u<15&&(s+=y[i++]<<u,u+=8,s+=y[i++]<<u,u+=8),x=m[s&z];n:for(;;){if(h=x>>>24,s>>>=h,u-=h,h=x>>>16&255,h&16){if(D=x&65535,h&=15,u<h&&(s+=y[i++]<<u,u+=8,u<h&&(s+=y[i++]<<u,u+=8)),D+=s&(1<<h)-1,D>c){n.msg="invalid distance too far back",k.mode=Ne;break e}if(s>>>=h,u-=h,h=a-_,D>h){if(h=D-h,h>f&&k.sane){n.msg="invalid distance too far back",k.mode=Ne;break e}if(w=0,T=d,p===0){if(w+=l-h,h<S){S-=h;do b[a++]=d[w++];while(--h);w=a-D,T=b}}else if(p<h){if(w+=l+p-h,h-=p,h<S){S-=h;do b[a++]=d[w++];while(--h);if(w=0,p<S){h=p,S-=h;do b[a++]=d[w++];while(--h);w=a-D,T=b}}}else if(w+=p-h,h<S){S-=h;do b[a++]=d[w++];while(--h);w=a-D,T=b}for(;S>2;)b[a++]=T[w++],b[a++]=T[w++],b[a++]=T[w++],S-=3;S&&(b[a++]=T[w++],S>1&&(b[a++]=T[w++]))}else{w=a-D;do b[a++]=b[w++],b[a++]=b[w++],b[a++]=b[w++],S-=3;while(S>2);S&&(b[a++]=b[w++],S>1&&(b[a++]=b[w++]))}}else if((h&64)===0){x=m[(x&65535)+(s&(1<<h)-1)];continue n}else{n.msg="invalid distance code",k.mode=Ne;break e}break}}else if((h&64)===0){x=E[(x&65535)+(s&(1<<h)-1)];continue t}else if(h&32){k.mode=Ga;break e}else{n.msg="invalid literal/length code",k.mode=Ne;break e}break}}while(i<r&&a<o);S=u>>3,i-=S,u-=S<<3,s&=(1<<u)-1,n.next_in=i,n.next_out=a,n.avail_in=i<r?5+(r-i):5-(i-r),n.avail_out=a<o?257+(o-a):257-(a-o),k.hold=s,k.bits=u};const le=15,Ut=852,Mt=592,Ft=0,et=1,$t=2,ja=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),Va=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),qa=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),Ja=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),Qa=(e,n,t,i,r,a,_,o)=>{const c=o.bits;let l=0,f=0,p=0,d=0,s=0,u=0,E=0,m=0,g=0,z=0,x,h,S,D,w,T=null,y;const b=new Uint16Array(le+1),k=new Uint16Array(le+1);let J=null,Et,Ze,Oe;for(l=0;l<=le;l++)b[l]=0;for(f=0;f<i;f++)b[n[t+f]]++;for(s=c,d=le;d>=1&&b[d]===0;d--);if(s>d&&(s=d),d===0)return r[a++]=1<<24|64<<16|0,r[a++]=1<<24|64<<16|0,o.bits=1,0;for(p=1;p<d&&b[p]===0;p++);for(s<p&&(s=p),m=1,l=1;l<=le;l++)if(m<<=1,m-=b[l],m<0)return-1;if(m>0&&(e===Ft||d!==1))return-1;for(k[1]=0,l=1;l<le;l++)k[l+1]=k[l]+b[l];for(f=0;f<i;f++)n[t+f]!==0&&(_[k[n[t+f]]++]=f);if(e===Ft?(T=J=_,y=20):e===et?(T=ja,J=Va,y=257):(T=qa,J=Ja,y=0),z=0,f=0,l=p,w=a,u=s,E=0,S=-1,g=1<<s,D=g-1,e===et&&g>Ut||e===$t&&g>Mt)return 1;for(;;){Et=l-E,_[f]+1<y?(Ze=0,Oe=_[f]):_[f]>=y?(Ze=J[_[f]-y],Oe=T[_[f]-y]):(Ze=32+64,Oe=0),x=1<<l-E,h=1<<u,p=h;do h-=x,r[w+(z>>E)+h]=Et<<24|Ze<<16|Oe|0;while(h!==0);for(x=1<<l-1;z&x;)x>>=1;if(x!==0?(z&=x-1,z+=x):z=0,f++,--b[l]===0){if(l===d)break;l=n[t+_[f]]}if(l>s&&(z&D)!==S){for(E===0&&(E=s),w+=p,u=l-E,m=1<<u;u+E<d&&(m-=b[u+E],!(m<=0));)u++,m<<=1;if(g+=1<<u,e===et&&g>Ut||e===$t&&g>Mt)return 1;S=z&D,r[S]=s<<24|u<<16|w-a|0}}return z!==0&&(r[w+z]=l-E<<24|64<<16|0),o.bits=s,0};var xe=Qa;const er=0,Un=1,Mn=2,{Z_FINISH:Ht,Z_BLOCK:tr,Z_TREES:Le,Z_OK:ie,Z_STREAM_END:nr,Z_NEED_DICT:ir,Z_STREAM_ERROR:F,Z_DATA_ERROR:Fn,Z_MEM_ERROR:$n,Z_BUF_ERROR:ar,Z_DEFLATED:Bt}=Re,Xe=16180,Kt=16181,Pt=16182,Xt=16183,Yt=16184,Gt=16185,Wt=16186,jt=16187,Vt=16188,qt=16189,Be=16190,P=16191,tt=16192,Jt=16193,nt=16194,Qt=16195,en=16196,tn=16197,nn=16198,Ue=16199,Me=16200,an=16201,rn=16202,ln=16203,on=16204,fn=16205,it=16206,_n=16207,sn=16208,R=16209,Hn=16210,Bn=16211,rr=852,lr=592,or=15,fr=or,dn=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function _r(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const ae=e=>{if(!e)return 1;const n=e.state;return!n||n.strm!==e||n.mode<Xe||n.mode>Bn?1:0},Kn=e=>{if(ae(e))return F;const n=e.state;return e.total_in=e.total_out=n.total=0,e.msg="",n.wrap&&(e.adler=n.wrap&1),n.mode=Xe,n.last=0,n.havedict=0,n.flags=-1,n.dmax=32768,n.head=null,n.hold=0,n.bits=0,n.lencode=n.lendyn=new Int32Array(rr),n.distcode=n.distdyn=new Int32Array(lr),n.sane=1,n.back=-1,ie},Pn=e=>{if(ae(e))return F;const n=e.state;return n.wsize=0,n.whave=0,n.wnext=0,Kn(e)},Xn=(e,n)=>{let t;if(ae(e))return F;const i=e.state;return n<0?(t=0,n=-n):(t=(n>>4)+5,n<48&&(n&=15)),n&&(n<8||n>15)?F:(i.window!==null&&i.wbits!==n&&(i.window=null),i.wrap=t,i.wbits=n,Pn(e))},Yn=(e,n)=>{if(!e)return F;const t=new _r;e.state=t,t.strm=e,t.window=null,t.mode=Xe;const i=Xn(e,n);return i!==ie&&(e.state=null),i},sr=e=>Yn(e,fr);let hn=!0,at,rt;const dr=e=>{if(hn){at=new Int32Array(512),rt=new Int32Array(32);let n=0;for(;n<144;)e.lens[n++]=8;for(;n<256;)e.lens[n++]=9;for(;n<280;)e.lens[n++]=7;for(;n<288;)e.lens[n++]=8;for(xe(Un,e.lens,0,288,at,0,e.work,{bits:9}),n=0;n<32;)e.lens[n++]=5;xe(Mn,e.lens,0,32,rt,0,e.work,{bits:5}),hn=!1}e.lencode=at,e.lenbits=9,e.distcode=rt,e.distbits=5},Gn=(e,n,t,i)=>{let r;const a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),i>=a.wsize?(a.window.set(n.subarray(t-a.wsize,t),0),a.wnext=0,a.whave=a.wsize):(r=a.wsize-a.wnext,r>i&&(r=i),a.window.set(n.subarray(t-i,t-i+r),a.wnext),i-=r,i?(a.window.set(n.subarray(t-i,t),0),a.wnext=i,a.whave=a.wsize):(a.wnext+=r,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=r))),0},hr=(e,n)=>{let t,i,r,a,_,o,c,l,f,p,d,s,u,E,m=0,g,z,x,h,S,D,w,T;const y=new Uint8Array(4);let b,k;const J=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(ae(e)||!e.output||!e.input&&e.avail_in!==0)return F;t=e.state,t.mode===P&&(t.mode=tt),_=e.next_out,r=e.output,c=e.avail_out,a=e.next_in,i=e.input,o=e.avail_in,l=t.hold,f=t.bits,p=o,d=c,T=ie;e:for(;;)switch(t.mode){case Xe:if(t.wrap===0){t.mode=tt;break}for(;f<16;){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}if(t.wrap&2&&l===35615){t.wbits===0&&(t.wbits=15),t.check=0,y[0]=l&255,y[1]=l>>>8&255,t.check=I(t.check,y,2,0),l=0,f=0,t.mode=Kt;break}if(t.head&&(t.head.done=!1),!(t.wrap&1)||(((l&255)<<8)+(l>>8))%31){e.msg="incorrect header check",t.mode=R;break}if((l&15)!==Bt){e.msg="unknown compression method",t.mode=R;break}if(l>>>=4,f-=4,w=(l&15)+8,t.wbits===0&&(t.wbits=w),w>15||w>t.wbits){e.msg="invalid window size",t.mode=R;break}t.dmax=1<<t.wbits,t.flags=0,e.adler=t.check=1,t.mode=l&512?qt:P,l=0,f=0;break;case Kt:for(;f<16;){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}if(t.flags=l,(t.flags&255)!==Bt){e.msg="unknown compression method",t.mode=R;break}if(t.flags&57344){e.msg="unknown header flags set",t.mode=R;break}t.head&&(t.head.text=l>>8&1),t.flags&512&&t.wrap&4&&(y[0]=l&255,y[1]=l>>>8&255,t.check=I(t.check,y,2,0)),l=0,f=0,t.mode=Pt;case Pt:for(;f<32;){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}t.head&&(t.head.time=l),t.flags&512&&t.wrap&4&&(y[0]=l&255,y[1]=l>>>8&255,y[2]=l>>>16&255,y[3]=l>>>24&255,t.check=I(t.check,y,4,0)),l=0,f=0,t.mode=Xt;case Xt:for(;f<16;){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}t.head&&(t.head.xflags=l&255,t.head.os=l>>8),t.flags&512&&t.wrap&4&&(y[0]=l&255,y[1]=l>>>8&255,t.check=I(t.check,y,2,0)),l=0,f=0,t.mode=Yt;case Yt:if(t.flags&1024){for(;f<16;){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}t.length=l,t.head&&(t.head.extra_len=l),t.flags&512&&t.wrap&4&&(y[0]=l&255,y[1]=l>>>8&255,t.check=I(t.check,y,2,0)),l=0,f=0}else t.head&&(t.head.extra=null);t.mode=Gt;case Gt:if(t.flags&1024&&(s=t.length,s>o&&(s=o),s&&(t.head&&(w=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(i.subarray(a,a+s),w)),t.flags&512&&t.wrap&4&&(t.check=I(t.check,i,s,a)),o-=s,a+=s,t.length-=s),t.length))break e;t.length=0,t.mode=Wt;case Wt:if(t.flags&2048){if(o===0)break e;s=0;do w=i[a+s++],t.head&&w&&t.length<65536&&(t.head.name+=String.fromCharCode(w));while(w&&s<o);if(t.flags&512&&t.wrap&4&&(t.check=I(t.check,i,s,a)),o-=s,a+=s,w)break e}else t.head&&(t.head.name=null);t.length=0,t.mode=jt;case jt:if(t.flags&4096){if(o===0)break e;s=0;do w=i[a+s++],t.head&&w&&t.length<65536&&(t.head.comment+=String.fromCharCode(w));while(w&&s<o);if(t.flags&512&&t.wrap&4&&(t.check=I(t.check,i,s,a)),o-=s,a+=s,w)break e}else t.head&&(t.head.comment=null);t.mode=Vt;case Vt:if(t.flags&512){for(;f<16;){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}if(t.wrap&4&&l!==(t.check&65535)){e.msg="header crc mismatch",t.mode=R;break}l=0,f=0}t.head&&(t.head.hcrc=t.flags>>9&1,t.head.done=!0),e.adler=t.check=0,t.mode=P;break;case qt:for(;f<32;){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}e.adler=t.check=dn(l),l=0,f=0,t.mode=Be;case Be:if(t.havedict===0)return e.next_out=_,e.avail_out=c,e.next_in=a,e.avail_in=o,t.hold=l,t.bits=f,ir;e.adler=t.check=1,t.mode=P;case P:if(n===tr||n===Le)break e;case tt:if(t.last){l>>>=f&7,f-=f&7,t.mode=it;break}for(;f<3;){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}switch(t.last=l&1,l>>>=1,f-=1,l&3){case 0:t.mode=Jt;break;case 1:if(dr(t),t.mode=Ue,n===Le){l>>>=2,f-=2;break e}break;case 2:t.mode=en;break;case 3:e.msg="invalid block type",t.mode=R}l>>>=2,f-=2;break;case Jt:for(l>>>=f&7,f-=f&7;f<32;){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}if((l&65535)!==(l>>>16^65535)){e.msg="invalid stored block lengths",t.mode=R;break}if(t.length=l&65535,l=0,f=0,t.mode=nt,n===Le)break e;case nt:t.mode=Qt;case Qt:if(s=t.length,s){if(s>o&&(s=o),s>c&&(s=c),s===0)break e;r.set(i.subarray(a,a+s),_),o-=s,a+=s,c-=s,_+=s,t.length-=s;break}t.mode=P;break;case en:for(;f<14;){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}if(t.nlen=(l&31)+257,l>>>=5,f-=5,t.ndist=(l&31)+1,l>>>=5,f-=5,t.ncode=(l&15)+4,l>>>=4,f-=4,t.nlen>286||t.ndist>30){e.msg="too many length or distance symbols",t.mode=R;break}t.have=0,t.mode=tn;case tn:for(;t.have<t.ncode;){for(;f<3;){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}t.lens[J[t.have++]]=l&7,l>>>=3,f-=3}for(;t.have<19;)t.lens[J[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,b={bits:t.lenbits},T=xe(er,t.lens,0,19,t.lencode,0,t.work,b),t.lenbits=b.bits,T){e.msg="invalid code lengths set",t.mode=R;break}t.have=0,t.mode=nn;case nn:for(;t.have<t.nlen+t.ndist;){for(;m=t.lencode[l&(1<<t.lenbits)-1],g=m>>>24,z=m>>>16&255,x=m&65535,!(g<=f);){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}if(x<16)l>>>=g,f-=g,t.lens[t.have++]=x;else{if(x===16){for(k=g+2;f<k;){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}if(l>>>=g,f-=g,t.have===0){e.msg="invalid bit length repeat",t.mode=R;break}w=t.lens[t.have-1],s=3+(l&3),l>>>=2,f-=2}else if(x===17){for(k=g+3;f<k;){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}l>>>=g,f-=g,w=0,s=3+(l&7),l>>>=3,f-=3}else{for(k=g+7;f<k;){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}l>>>=g,f-=g,w=0,s=11+(l&127),l>>>=7,f-=7}if(t.have+s>t.nlen+t.ndist){e.msg="invalid bit length repeat",t.mode=R;break}for(;s--;)t.lens[t.have++]=w}}if(t.mode===R)break;if(t.lens[256]===0){e.msg="invalid code -- missing end-of-block",t.mode=R;break}if(t.lenbits=9,b={bits:t.lenbits},T=xe(Un,t.lens,0,t.nlen,t.lencode,0,t.work,b),t.lenbits=b.bits,T){e.msg="invalid literal/lengths set",t.mode=R;break}if(t.distbits=6,t.distcode=t.distdyn,b={bits:t.distbits},T=xe(Mn,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,b),t.distbits=b.bits,T){e.msg="invalid distances set",t.mode=R;break}if(t.mode=Ue,n===Le)break e;case Ue:t.mode=Me;case Me:if(o>=6&&c>=258){e.next_out=_,e.avail_out=c,e.next_in=a,e.avail_in=o,t.hold=l,t.bits=f,Wa(e,d),_=e.next_out,r=e.output,c=e.avail_out,a=e.next_in,i=e.input,o=e.avail_in,l=t.hold,f=t.bits,t.mode===P&&(t.back=-1);break}for(t.back=0;m=t.lencode[l&(1<<t.lenbits)-1],g=m>>>24,z=m>>>16&255,x=m&65535,!(g<=f);){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}if(z&&(z&240)===0){for(h=g,S=z,D=x;m=t.lencode[D+((l&(1<<h+S)-1)>>h)],g=m>>>24,z=m>>>16&255,x=m&65535,!(h+g<=f);){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}l>>>=h,f-=h,t.back+=h}if(l>>>=g,f-=g,t.back+=g,t.length=x,z===0){t.mode=fn;break}if(z&32){t.back=-1,t.mode=P;break}if(z&64){e.msg="invalid literal/length code",t.mode=R;break}t.extra=z&15,t.mode=an;case an:if(t.extra){for(k=t.extra;f<k;){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}t.length+=l&(1<<t.extra)-1,l>>>=t.extra,f-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=rn;case rn:for(;m=t.distcode[l&(1<<t.distbits)-1],g=m>>>24,z=m>>>16&255,x=m&65535,!(g<=f);){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}if((z&240)===0){for(h=g,S=z,D=x;m=t.distcode[D+((l&(1<<h+S)-1)>>h)],g=m>>>24,z=m>>>16&255,x=m&65535,!(h+g<=f);){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}l>>>=h,f-=h,t.back+=h}if(l>>>=g,f-=g,t.back+=g,z&64){e.msg="invalid distance code",t.mode=R;break}t.offset=x,t.extra=z&15,t.mode=ln;case ln:if(t.extra){for(k=t.extra;f<k;){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}t.offset+=l&(1<<t.extra)-1,l>>>=t.extra,f-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){e.msg="invalid distance too far back",t.mode=R;break}t.mode=on;case on:if(c===0)break e;if(s=d-c,t.offset>s){if(s=t.offset-s,s>t.whave&&t.sane){e.msg="invalid distance too far back",t.mode=R;break}s>t.wnext?(s-=t.wnext,u=t.wsize-s):u=t.wnext-s,s>t.length&&(s=t.length),E=t.window}else E=r,u=_-t.offset,s=t.length;s>c&&(s=c),c-=s,t.length-=s;do r[_++]=E[u++];while(--s);t.length===0&&(t.mode=Me);break;case fn:if(c===0)break e;r[_++]=t.length,c--,t.mode=Me;break;case it:if(t.wrap){for(;f<32;){if(o===0)break e;o--,l|=i[a++]<<f,f+=8}if(d-=c,e.total_out+=d,t.total+=d,t.wrap&4&&d&&(e.adler=t.check=t.flags?I(t.check,r,d,_-d):Ee(t.check,r,d,_-d)),d=c,t.wrap&4&&(t.flags?l:dn(l))!==t.check){e.msg="incorrect data check",t.mode=R;break}l=0,f=0}t.mode=_n;case _n:if(t.wrap&&t.flags){for(;f<32;){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}if(t.wrap&4&&l!==(t.total&4294967295)){e.msg="incorrect length check",t.mode=R;break}l=0,f=0}t.mode=sn;case sn:T=nr;break e;case R:T=Fn;break e;case Hn:return $n;case Bn:default:return F}return e.next_out=_,e.avail_out=c,e.next_in=a,e.avail_in=o,t.hold=l,t.bits=f,(t.wsize||d!==e.avail_out&&t.mode<R&&(t.mode<it||n!==Ht))&&Gn(e,e.output,e.next_out,d-e.avail_out),p-=e.avail_in,d-=e.avail_out,e.total_in+=p,e.total_out+=d,t.total+=d,t.wrap&4&&d&&(e.adler=t.check=t.flags?I(t.check,r,d,e.next_out-d):Ee(t.check,r,d,e.next_out-d)),e.data_type=t.bits+(t.last?64:0)+(t.mode===P?128:0)+(t.mode===Ue||t.mode===nt?256:0),(p===0&&d===0||n===Ht)&&T===ie&&(T=ar),T},cr=e=>{if(ae(e))return F;let n=e.state;return n.window&&(n.window=null),e.state=null,ie},ur=(e,n)=>{if(ae(e))return F;const t=e.state;return(t.wrap&2)===0?F:(t.head=n,n.done=!1,ie)},wr=(e,n)=>{const t=n.length;let i,r,a;return ae(e)||(i=e.state,i.wrap!==0&&i.mode!==Be)?F:i.mode===Be&&(r=1,r=Ee(r,n,t,0),r!==i.check)?Fn:(a=Gn(e,n,t,t),a?(i.mode=Hn,$n):(i.havedict=1,ie))};var br=Pn,gr=Xn,pr=Kn,xr=sr,kr=Yn,vr=hr,mr=cr,yr=ur,Er=wr,Sr="pako inflate (from Nodeca project)",Y={inflateReset:br,inflateReset2:gr,inflateResetKeep:pr,inflateInit:xr,inflateInit2:kr,inflate:vr,inflateEnd:mr,inflateGetHeader:yr,inflateSetDictionary:Er,inflateInfo:Sr};function Ar(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var zr=Ar;const Wn=Object.prototype.toString,{Z_NO_FLUSH:Tr,Z_FINISH:Rr,Z_OK:ze,Z_STREAM_END:lt,Z_NEED_DICT:ot,Z_STREAM_ERROR:Dr,Z_DATA_ERROR:cn,Z_MEM_ERROR:Ir}=Re;function Ie(e){this.options=Pe.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const n=this.options;n.raw&&n.windowBits>=0&&n.windowBits<16&&(n.windowBits=-n.windowBits,n.windowBits===0&&(n.windowBits=-15)),n.windowBits>=0&&n.windowBits<16&&!(e&&e.windowBits)&&(n.windowBits+=32),n.windowBits>15&&n.windowBits<48&&(n.windowBits&15)===0&&(n.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Nn,this.strm.avail_out=0;let t=Y.inflateInit2(this.strm,n.windowBits);if(t!==ze)throw new Error(fe[t]);if(this.header=new zr,Y.inflateGetHeader(this.strm,this.header),n.dictionary&&(typeof n.dictionary=="string"?n.dictionary=Ae.string2buf(n.dictionary):Wn.call(n.dictionary)==="[object ArrayBuffer]"&&(n.dictionary=new Uint8Array(n.dictionary)),n.raw&&(t=Y.inflateSetDictionary(this.strm,n.dictionary),t!==ze)))throw new Error(fe[t])}Ie.prototype.push=function(e,n){const t=this.strm,i=this.options.chunkSize,r=this.options.dictionary;let a,_,o;if(this.ended)return!1;for(n===~~n?_=n:_=n===!0?Rr:Tr,Wn.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){for(t.avail_out===0&&(t.output=new Uint8Array(i),t.next_out=0,t.avail_out=i),a=Y.inflate(t,_),a===ot&&r&&(a=Y.inflateSetDictionary(t,r),a===ze?a=Y.inflate(t,_):a===cn&&(a=ot));t.avail_in>0&&a===lt&&t.state.wrap>0&&e[t.next_in]!==0;)Y.inflateReset(t),a=Y.inflate(t,_);switch(a){case Dr:case cn:case ot:case Ir:return this.onEnd(a),this.ended=!0,!1}if(o=t.avail_out,t.next_out&&(t.avail_out===0||a===lt))if(this.options.to==="string"){let c=Ae.utf8border(t.output,t.next_out),l=t.next_out-c,f=Ae.buf2string(t.output,c);t.next_out=l,t.avail_out=i-l,l&&t.output.set(t.output.subarray(c,c+l),0),this.onData(f)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(!(a===ze&&o===0)){if(a===lt)return a=Y.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(t.avail_in===0)break}}return!0};Ie.prototype.onData=function(e){this.chunks.push(e)};Ie.prototype.onEnd=function(e){e===ze&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Pe.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function yt(e,n){const t=new Ie(n);if(t.push(e),t.err)throw t.msg||fe[t.err];return t.result}function Zr(e,n){return n=n||{},n.raw=!0,yt(e,n)}var Or=Ie,Cr=yt,Nr=Zr,Lr=yt,Ur=Re,Mr={Inflate:Or,inflate:Cr,inflateRaw:Nr,ungzip:Lr,constants:Ur};const{Inflate:fl,inflate:Fr,inflateRaw:_l,ungzip:sl}=Mr;var $r=Fr;const Hr={key:0,class:"loading"},Br=ii({__name:"MockForm",setup(e){const n=ai(),t=ri({playerKey:St()}),i=li(null);oi(n,()=>{n.name==="form"&&l()});class r extends Qn{constructor(d){super("mock","editor",{});Ye(this,"onMessage",null);Ye(this,"onOpen",null);this.renderMessage=d,this.onMessage=null}async newConnection(){var d;(d=this.onOpen)==null||d.call(this)}async send(d){var u,E;const s="seq"in d?d.seq:0;d.type==="execution:start"&&((u=this.onMessage)==null||u.call(this,{type:"execution:started",executionId:"1234"})),(E=this.onMessage)==null||E.call(this,{...this.renderMessage,seq:s})}async close(d){}isEditorConnection(){return!1}}function a(f){for(f=f.replace(/-/g,"+").replace(/_/g,"/");f.length%4;)f+="=";const p=atob(f),d=Uint8Array.from(p,E=>E.charCodeAt(0)),s=$r(d),u=new TextDecoder().decode(s);return JSON.parse(u)}const{loading:_,result:o,error:c,refetch:l}=ei(async()=>{t.playerKey=St();const f={isLocal:!1,runtimeType:"form",allowRestart:!1,autoStart:!0,endMessage:null,errorMessage:null,id:"b9980b87-9eaf-456b-a449-11df261a0840",isInitial:!0,path:"public-form",restartButtonText:null,startButtonText:null,startMessage:null,timeoutMessage:null,title:"Public form",welcomeTitle:null,brandName:"Abstra Project",fontFamily:"Inter",language:"en",logoUrl:null,mainColor:"#d14056",sidebar:[],theme:"#fcf0f2"},p=a(n.query.msg),d=new qn({formRunnerData:f,logService:null,connectionManager:new r(p),onRedirect:()=>null,onFormStart:()=>null,onFormEnd:()=>null,onStackTraceUpdate:null,onStateUpdate:u=>i.value=u}),s=d.getState();return i.value=s.formState,{runnerData:f,controller:d}});return(f,p)=>O(_)?(Ge(),fi("div",Hr,[_i(ti)])):O(o)&&O(o).runnerData&&i.value&&!O(c)&&!O(_)?(Ge(),At(ni,{key:1,style:{height:"100vh"},"main-color":O(o).runnerData.mainColor,background:O(o).runnerData.theme,"font-family":O(o).runnerData.fontFamily,locale:O(o).runnerData.language,"logo-url":O(o).runnerData.logoUrl},{default:si(()=>{var d,s,u,E;return[(Ge(),At(Jn,{key:t.playerKey,"form-runner-data":O(o).runnerData,"form-state":i.value,"is-preview":!1,"user-email":null,onRedirect:()=>null,onActionClicked:(d=O(o))==null?void 0:d.controller.handleActionClick,onUpdateWidgetErrors:(s=O(o))==null?void 0:s.controller.updateWidgetFrontendErrors,onUpdateWidgetValue:(u=O(o))==null?void 0:u.controller.updateWidgetValue,onAuthComplete:(E=O(o))==null?void 0:E.controller.handleAuthComplete},null,8,["form-runner-data","form-state","onActionClicked","onUpdateWidgetErrors","onUpdateWidgetValue","onAuthComplete"]))]}),_:1},8,["main-color","background","font-family","locale","logo-url"])):di("",!0)}});const dl=hi(Br,[["__scopeId","data-v-e6d0b794"]]);export{dl as default};
2
- //# sourceMappingURL=MockForm.9b7a0df3.js.map
1
+ var jn=Object.defineProperty;var Vn=(e,n,t)=>n in e?jn(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var Ye=(e,n,t)=>(Vn(e,typeof n!="symbol"?n+"":n,t),t);import{c as qn,b as Jn,d as Qn}from"./FormRunner.8d0c448a.js";import{a as ei}from"./asyncComputed.78dd1715.js";import{u as St}from"./uuid.bc394306.js";import{L as ti}from"./CircularLoading.9f9e733d.js";import{W as ni}from"./PlayerConfigProvider.ca40f824.js";import{d as ii,ei as ai,al as ri,r as li,w as oi,u as O,ac as fi,f as _i,a as At,b as si,h as di,o as Ge,_ as hi}from"./jwt-decode.esm.5ee65524.js";import"./userStore.9eb65729.js";import"./Login.vue_vue_type_script_setup_true_lang.8d4054f1.js";import"./workspaceStore.18d1ed9a.js";import"./url.804625c6.js";import"./colorHelpers.d8c19ea3.js";import"./Logo.3f68eae2.js";import"./string.0d721ad6.js";import"./index.30fbc3f5.js";import"./Steps.8d0493a8.js";import"./index.8e10d0e4.js";import"./Watermark.34db0ee5.js";import"./constants.3b7395d7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="8a136e10-1d38-4d7b-ad3e-0b0bbe556f05",e._sentryDebugIdIdentifier="sentry-dbid-8a136e10-1d38-4d7b-ad3e-0b0bbe556f05")}catch{}})();/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const ci=4,zt=0,Rt=1,ui=2;function de(e){let n=e.length;for(;--n>=0;)e[n]=0}const wi=0,un=1,bi=2,gi=3,pi=258,gt=29,Re=256,ke=Re+1+gt,oe=30,pt=19,wn=2*ke+1,Q=15,We=16,xi=7,xt=256,bn=16,gn=17,pn=18,ft=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Fe=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),ki=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),xn=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),vi=512,X=new Array((ke+2)*2);de(X);const ge=new Array(oe*2);de(ge);const ve=new Array(vi);de(ve);const me=new Array(pi-gi+1);de(me);const kt=new Array(gt);de(kt);const $e=new Array(oe);de($e);function je(e,n,t,i,r){this.static_tree=e,this.extra_bits=n,this.extra_base=t,this.elems=i,this.max_length=r,this.has_stree=e&&e.length}let kn,vn,mn;function Ve(e,n){this.dyn_tree=e,this.max_code=0,this.stat_desc=n}const yn=e=>e<256?ve[e]:ve[256+(e>>>7)],ye=(e,n)=>{e.pending_buf[e.pending++]=n&255,e.pending_buf[e.pending++]=n>>>8&255},N=(e,n,t)=>{e.bi_valid>We-t?(e.bi_buf|=n<<e.bi_valid&65535,ye(e,e.bi_buf),e.bi_buf=n>>We-e.bi_valid,e.bi_valid+=t-We):(e.bi_buf|=n<<e.bi_valid&65535,e.bi_valid+=t)},H=(e,n,t)=>{N(e,t[n*2],t[n*2+1])},En=(e,n)=>{let t=0;do t|=e&1,e>>>=1,t<<=1;while(--n>0);return t>>>1},mi=e=>{e.bi_valid===16?(ye(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},yi=(e,n)=>{const t=n.dyn_tree,i=n.max_code,r=n.stat_desc.static_tree,a=n.stat_desc.has_stree,_=n.stat_desc.extra_bits,o=n.stat_desc.extra_base,c=n.stat_desc.max_length;let l,f,p,d,s,u,E=0;for(d=0;d<=Q;d++)e.bl_count[d]=0;for(t[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;l<wn;l++)f=e.heap[l],d=t[t[f*2+1]*2+1]+1,d>c&&(d=c,E++),t[f*2+1]=d,!(f>i)&&(e.bl_count[d]++,s=0,f>=o&&(s=_[f-o]),u=t[f*2],e.opt_len+=u*(d+s),a&&(e.static_len+=u*(r[f*2+1]+s)));if(E!==0){do{for(d=c-1;e.bl_count[d]===0;)d--;e.bl_count[d]--,e.bl_count[d+1]+=2,e.bl_count[c]--,E-=2}while(E>0);for(d=c;d!==0;d--)for(f=e.bl_count[d];f!==0;)p=e.heap[--l],!(p>i)&&(t[p*2+1]!==d&&(e.opt_len+=(d-t[p*2+1])*t[p*2],t[p*2+1]=d),f--)}},Sn=(e,n,t)=>{const i=new Array(Q+1);let r=0,a,_;for(a=1;a<=Q;a++)r=r+t[a-1]<<1,i[a]=r;for(_=0;_<=n;_++){let o=e[_*2+1];o!==0&&(e[_*2]=En(i[o]++,o))}},Ei=()=>{let e,n,t,i,r;const a=new Array(Q+1);for(t=0,i=0;i<gt-1;i++)for(kt[i]=t,e=0;e<1<<ft[i];e++)me[t++]=i;for(me[t-1]=i,r=0,i=0;i<16;i++)for($e[i]=r,e=0;e<1<<Fe[i];e++)ve[r++]=i;for(r>>=7;i<oe;i++)for($e[i]=r<<7,e=0;e<1<<Fe[i]-7;e++)ve[256+r++]=i;for(n=0;n<=Q;n++)a[n]=0;for(e=0;e<=143;)X[e*2+1]=8,e++,a[8]++;for(;e<=255;)X[e*2+1]=9,e++,a[9]++;for(;e<=279;)X[e*2+1]=7,e++,a[7]++;for(;e<=287;)X[e*2+1]=8,e++,a[8]++;for(Sn(X,ke+1,a),e=0;e<oe;e++)ge[e*2+1]=5,ge[e*2]=En(e,5);kn=new je(X,ft,Re+1,ke,Q),vn=new je(ge,Fe,0,oe,Q),mn=new je(new Array(0),ki,0,pt,xi)},An=e=>{let n;for(n=0;n<ke;n++)e.dyn_ltree[n*2]=0;for(n=0;n<oe;n++)e.dyn_dtree[n*2]=0;for(n=0;n<pt;n++)e.bl_tree[n*2]=0;e.dyn_ltree[xt*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},zn=e=>{e.bi_valid>8?ye(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},Tt=(e,n,t,i)=>{const r=n*2,a=t*2;return e[r]<e[a]||e[r]===e[a]&&i[n]<=i[t]},qe=(e,n,t)=>{const i=e.heap[t];let r=t<<1;for(;r<=e.heap_len&&(r<e.heap_len&&Tt(n,e.heap[r+1],e.heap[r],e.depth)&&r++,!Tt(n,i,e.heap[r],e.depth));)e.heap[t]=e.heap[r],t=r,r<<=1;e.heap[t]=i},Dt=(e,n,t)=>{let i,r,a=0,_,o;if(e.sym_next!==0)do i=e.pending_buf[e.sym_buf+a++]&255,i+=(e.pending_buf[e.sym_buf+a++]&255)<<8,r=e.pending_buf[e.sym_buf+a++],i===0?H(e,r,n):(_=me[r],H(e,_+Re+1,n),o=ft[_],o!==0&&(r-=kt[_],N(e,r,o)),i--,_=yn(i),H(e,_,t),o=Fe[_],o!==0&&(i-=$e[_],N(e,i,o)));while(a<e.sym_next);H(e,xt,n)},_t=(e,n)=>{const t=n.dyn_tree,i=n.stat_desc.static_tree,r=n.stat_desc.has_stree,a=n.stat_desc.elems;let _,o,c=-1,l;for(e.heap_len=0,e.heap_max=wn,_=0;_<a;_++)t[_*2]!==0?(e.heap[++e.heap_len]=c=_,e.depth[_]=0):t[_*2+1]=0;for(;e.heap_len<2;)l=e.heap[++e.heap_len]=c<2?++c:0,t[l*2]=1,e.depth[l]=0,e.opt_len--,r&&(e.static_len-=i[l*2+1]);for(n.max_code=c,_=e.heap_len>>1;_>=1;_--)qe(e,t,_);l=a;do _=e.heap[1],e.heap[1]=e.heap[e.heap_len--],qe(e,t,1),o=e.heap[1],e.heap[--e.heap_max]=_,e.heap[--e.heap_max]=o,t[l*2]=t[_*2]+t[o*2],e.depth[l]=(e.depth[_]>=e.depth[o]?e.depth[_]:e.depth[o])+1,t[_*2+1]=t[o*2+1]=l,e.heap[1]=l++,qe(e,t,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],yi(e,n),Sn(t,c,e.bl_count)},It=(e,n,t)=>{let i,r=-1,a,_=n[0*2+1],o=0,c=7,l=4;for(_===0&&(c=138,l=3),n[(t+1)*2+1]=65535,i=0;i<=t;i++)a=_,_=n[(i+1)*2+1],!(++o<c&&a===_)&&(o<l?e.bl_tree[a*2]+=o:a!==0?(a!==r&&e.bl_tree[a*2]++,e.bl_tree[bn*2]++):o<=10?e.bl_tree[gn*2]++:e.bl_tree[pn*2]++,o=0,r=a,_===0?(c=138,l=3):a===_?(c=6,l=3):(c=7,l=4))},Zt=(e,n,t)=>{let i,r=-1,a,_=n[0*2+1],o=0,c=7,l=4;for(_===0&&(c=138,l=3),i=0;i<=t;i++)if(a=_,_=n[(i+1)*2+1],!(++o<c&&a===_)){if(o<l)do H(e,a,e.bl_tree);while(--o!==0);else a!==0?(a!==r&&(H(e,a,e.bl_tree),o--),H(e,bn,e.bl_tree),N(e,o-3,2)):o<=10?(H(e,gn,e.bl_tree),N(e,o-3,3)):(H(e,pn,e.bl_tree),N(e,o-11,7));o=0,r=a,_===0?(c=138,l=3):a===_?(c=6,l=3):(c=7,l=4)}},Si=e=>{let n;for(It(e,e.dyn_ltree,e.l_desc.max_code),It(e,e.dyn_dtree,e.d_desc.max_code),_t(e,e.bl_desc),n=pt-1;n>=3&&e.bl_tree[xn[n]*2+1]===0;n--);return e.opt_len+=3*(n+1)+5+5+4,n},Ai=(e,n,t,i)=>{let r;for(N(e,n-257,5),N(e,t-1,5),N(e,i-4,4),r=0;r<i;r++)N(e,e.bl_tree[xn[r]*2+1],3);Zt(e,e.dyn_ltree,n-1),Zt(e,e.dyn_dtree,t-1)},zi=e=>{let n=4093624447,t;for(t=0;t<=31;t++,n>>>=1)if(n&1&&e.dyn_ltree[t*2]!==0)return zt;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return Rt;for(t=32;t<Re;t++)if(e.dyn_ltree[t*2]!==0)return Rt;return zt};let Ot=!1;const Ri=e=>{Ot||(Ei(),Ot=!0),e.l_desc=new Ve(e.dyn_ltree,kn),e.d_desc=new Ve(e.dyn_dtree,vn),e.bl_desc=new Ve(e.bl_tree,mn),e.bi_buf=0,e.bi_valid=0,An(e)},Rn=(e,n,t,i)=>{N(e,(wi<<1)+(i?1:0),3),zn(e),ye(e,t),ye(e,~t),t&&e.pending_buf.set(e.window.subarray(n,n+t),e.pending),e.pending+=t},Ti=e=>{N(e,un<<1,3),H(e,xt,X),mi(e)},Di=(e,n,t,i)=>{let r,a,_=0;e.level>0?(e.strm.data_type===ui&&(e.strm.data_type=zi(e)),_t(e,e.l_desc),_t(e,e.d_desc),_=Si(e),r=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=r&&(r=a)):r=a=t+5,t+4<=r&&n!==-1?Rn(e,n,t,i):e.strategy===ci||a===r?(N(e,(un<<1)+(i?1:0),3),Dt(e,X,ge)):(N(e,(bi<<1)+(i?1:0),3),Ai(e,e.l_desc.max_code+1,e.d_desc.max_code+1,_+1),Dt(e,e.dyn_ltree,e.dyn_dtree)),An(e),i&&zn(e)},Ii=(e,n,t)=>(e.pending_buf[e.sym_buf+e.sym_next++]=n,e.pending_buf[e.sym_buf+e.sym_next++]=n>>8,e.pending_buf[e.sym_buf+e.sym_next++]=t,n===0?e.dyn_ltree[t*2]++:(e.matches++,n--,e.dyn_ltree[(me[t]+Re+1)*2]++,e.dyn_dtree[yn(n)*2]++),e.sym_next===e.sym_end);var Zi=Ri,Oi=Rn,Ci=Di,Ni=Ii,Li=Ti,Ui={_tr_init:Zi,_tr_stored_block:Oi,_tr_flush_block:Ci,_tr_tally:Ni,_tr_align:Li};const Mi=(e,n,t,i)=>{let r=e&65535|0,a=e>>>16&65535|0,_=0;for(;t!==0;){_=t>2e3?2e3:t,t-=_;do r=r+n[i++]|0,a=a+r|0;while(--_);r%=65521,a%=65521}return r|a<<16|0};var Ee=Mi;const Fi=()=>{let e,n=[];for(var t=0;t<256;t++){e=t;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;n[t]=e}return n},$i=new Uint32Array(Fi()),Hi=(e,n,t,i)=>{const r=$i,a=i+t;e^=-1;for(let _=i;_<a;_++)e=e>>>8^r[(e^n[_])&255];return e^-1};var I=Hi,fe={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Te={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:Bi,_tr_stored_block:st,_tr_flush_block:Ki,_tr_tally:j,_tr_align:Pi}=Ui,{Z_NO_FLUSH:V,Z_PARTIAL_FLUSH:Xi,Z_FULL_FLUSH:Yi,Z_FINISH:M,Z_BLOCK:Ct,Z_OK:Z,Z_STREAM_END:Nt,Z_STREAM_ERROR:B,Z_DATA_ERROR:Gi,Z_BUF_ERROR:Je,Z_DEFAULT_COMPRESSION:Wi,Z_FILTERED:ji,Z_HUFFMAN_ONLY:Ce,Z_RLE:Vi,Z_FIXED:qi,Z_DEFAULT_STRATEGY:Ji,Z_UNKNOWN:Qi,Z_DEFLATED:Ke}=Te,ea=9,ta=15,na=8,ia=29,aa=256,dt=aa+1+ia,ra=30,la=19,oa=2*dt+1,fa=15,v=3,W=258,K=W+v+1,_a=32,_e=42,vt=57,ht=69,ct=73,ut=91,wt=103,ee=113,we=666,C=1,he=2,ne=3,ce=4,sa=3,te=(e,n)=>(e.msg=fe[n],n),Lt=e=>e*2-(e>4?9:0),G=e=>{let n=e.length;for(;--n>=0;)e[n]=0},da=e=>{let n,t,i,r=e.w_size;n=e.hash_size,i=n;do t=e.head[--i],e.head[i]=t>=r?t-r:0;while(--n);n=r,i=n;do t=e.prev[--i],e.prev[i]=t>=r?t-r:0;while(--n)};let ha=(e,n,t)=>(n<<e.hash_shift^t)&e.hash_mask,q=ha;const L=e=>{const n=e.state;let t=n.pending;t>e.avail_out&&(t=e.avail_out),t!==0&&(e.output.set(n.pending_buf.subarray(n.pending_out,n.pending_out+t),e.next_out),e.next_out+=t,n.pending_out+=t,e.total_out+=t,e.avail_out-=t,n.pending-=t,n.pending===0&&(n.pending_out=0))},U=(e,n)=>{Ki(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,n),e.block_start=e.strstart,L(e.strm)},A=(e,n)=>{e.pending_buf[e.pending++]=n},ue=(e,n)=>{e.pending_buf[e.pending++]=n>>>8&255,e.pending_buf[e.pending++]=n&255},bt=(e,n,t,i)=>{let r=e.avail_in;return r>i&&(r=i),r===0?0:(e.avail_in-=r,n.set(e.input.subarray(e.next_in,e.next_in+r),t),e.state.wrap===1?e.adler=Ee(e.adler,n,r,t):e.state.wrap===2&&(e.adler=I(e.adler,n,r,t)),e.next_in+=r,e.total_in+=r,r)},Tn=(e,n)=>{let t=e.max_chain_length,i=e.strstart,r,a,_=e.prev_length,o=e.nice_match;const c=e.strstart>e.w_size-K?e.strstart-(e.w_size-K):0,l=e.window,f=e.w_mask,p=e.prev,d=e.strstart+W;let s=l[i+_-1],u=l[i+_];e.prev_length>=e.good_match&&(t>>=2),o>e.lookahead&&(o=e.lookahead);do if(r=n,!(l[r+_]!==u||l[r+_-1]!==s||l[r]!==l[i]||l[++r]!==l[i+1])){i+=2,r++;do;while(l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&i<d);if(a=W-(d-i),i=d-W,a>_){if(e.match_start=n,_=a,a>=o)break;s=l[i+_-1],u=l[i+_]}}while((n=p[n&f])>c&&--t!==0);return _<=e.lookahead?_:e.lookahead},se=e=>{const n=e.w_size;let t,i,r;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=n+(n-K)&&(e.window.set(e.window.subarray(n,n+n-i),0),e.match_start-=n,e.strstart-=n,e.block_start-=n,e.insert>e.strstart&&(e.insert=e.strstart),da(e),i+=n),e.strm.avail_in===0)break;if(t=bt(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=t,e.lookahead+e.insert>=v)for(r=e.strstart-e.insert,e.ins_h=e.window[r],e.ins_h=q(e,e.ins_h,e.window[r+1]);e.insert&&(e.ins_h=q(e,e.ins_h,e.window[r+v-1]),e.prev[r&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=r,r++,e.insert--,!(e.lookahead+e.insert<v)););}while(e.lookahead<K&&e.strm.avail_in!==0)},Dn=(e,n)=>{let t=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,i,r,a,_=0,o=e.strm.avail_in;do{if(i=65535,a=e.bi_valid+42>>3,e.strm.avail_out<a||(a=e.strm.avail_out-a,r=e.strstart-e.block_start,i>r+e.strm.avail_in&&(i=r+e.strm.avail_in),i>a&&(i=a),i<t&&(i===0&&n!==M||n===V||i!==r+e.strm.avail_in)))break;_=n===M&&i===r+e.strm.avail_in?1:0,st(e,0,0,_),e.pending_buf[e.pending-4]=i,e.pending_buf[e.pending-3]=i>>8,e.pending_buf[e.pending-2]=~i,e.pending_buf[e.pending-1]=~i>>8,L(e.strm),r&&(r>i&&(r=i),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+r),e.strm.next_out),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r,e.block_start+=r,i-=r),i&&(bt(e.strm,e.strm.output,e.strm.next_out,i),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i)}while(_===0);return o-=e.strm.avail_in,o&&(o>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=o&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-o,e.strm.next_in),e.strstart),e.strstart+=o,e.insert+=o>e.w_size-e.insert?e.w_size-e.insert:o),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),_?ce:n!==V&&n!==M&&e.strm.avail_in===0&&e.strstart===e.block_start?he:(a=e.window_size-e.strstart,e.strm.avail_in>a&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,a+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),a>e.strm.avail_in&&(a=e.strm.avail_in),a&&(bt(e.strm,e.window,e.strstart,a),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.high_water<e.strstart&&(e.high_water=e.strstart),a=e.bi_valid+42>>3,a=e.pending_buf_size-a>65535?65535:e.pending_buf_size-a,t=a>e.w_size?e.w_size:a,r=e.strstart-e.block_start,(r>=t||(r||n===M)&&n!==V&&e.strm.avail_in===0&&r<=a)&&(i=r>a?a:r,_=n===M&&e.strm.avail_in===0&&i===r?1:0,st(e,e.block_start,i,_),e.block_start+=i,L(e.strm)),_?ne:C)},Qe=(e,n)=>{let t,i;for(;;){if(e.lookahead<K){if(se(e),e.lookahead<K&&n===V)return C;if(e.lookahead===0)break}if(t=0,e.lookahead>=v&&(e.ins_h=q(e,e.ins_h,e.window[e.strstart+v-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),t!==0&&e.strstart-t<=e.w_size-K&&(e.match_length=Tn(e,t)),e.match_length>=v)if(i=j(e,e.strstart-e.match_start,e.match_length-v),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=v){e.match_length--;do e.strstart++,e.ins_h=q(e,e.ins_h,e.window[e.strstart+v-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=q(e,e.ins_h,e.window[e.strstart+1]);else i=j(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(U(e,!1),e.strm.avail_out===0))return C}return e.insert=e.strstart<v-1?e.strstart:v-1,n===M?(U(e,!0),e.strm.avail_out===0?ne:ce):e.sym_next&&(U(e,!1),e.strm.avail_out===0)?C:he},re=(e,n)=>{let t,i,r;for(;;){if(e.lookahead<K){if(se(e),e.lookahead<K&&n===V)return C;if(e.lookahead===0)break}if(t=0,e.lookahead>=v&&(e.ins_h=q(e,e.ins_h,e.window[e.strstart+v-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=v-1,t!==0&&e.prev_length<e.max_lazy_match&&e.strstart-t<=e.w_size-K&&(e.match_length=Tn(e,t),e.match_length<=5&&(e.strategy===ji||e.match_length===v&&e.strstart-e.match_start>4096)&&(e.match_length=v-1)),e.prev_length>=v&&e.match_length<=e.prev_length){r=e.strstart+e.lookahead-v,i=j(e,e.strstart-1-e.prev_match,e.prev_length-v),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=r&&(e.ins_h=q(e,e.ins_h,e.window[e.strstart+v-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=v-1,e.strstart++,i&&(U(e,!1),e.strm.avail_out===0))return C}else if(e.match_available){if(i=j(e,0,e.window[e.strstart-1]),i&&U(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return C}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=j(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<v-1?e.strstart:v-1,n===M?(U(e,!0),e.strm.avail_out===0?ne:ce):e.sym_next&&(U(e,!1),e.strm.avail_out===0)?C:he},ca=(e,n)=>{let t,i,r,a;const _=e.window;for(;;){if(e.lookahead<=W){if(se(e),e.lookahead<=W&&n===V)return C;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=v&&e.strstart>0&&(r=e.strstart-1,i=_[r],i===_[++r]&&i===_[++r]&&i===_[++r])){a=e.strstart+W;do;while(i===_[++r]&&i===_[++r]&&i===_[++r]&&i===_[++r]&&i===_[++r]&&i===_[++r]&&i===_[++r]&&i===_[++r]&&r<a);e.match_length=W-(a-r),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=v?(t=j(e,1,e.match_length-v),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(t=j(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),t&&(U(e,!1),e.strm.avail_out===0))return C}return e.insert=0,n===M?(U(e,!0),e.strm.avail_out===0?ne:ce):e.sym_next&&(U(e,!1),e.strm.avail_out===0)?C:he},ua=(e,n)=>{let t;for(;;){if(e.lookahead===0&&(se(e),e.lookahead===0)){if(n===V)return C;break}if(e.match_length=0,t=j(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,t&&(U(e,!1),e.strm.avail_out===0))return C}return e.insert=0,n===M?(U(e,!0),e.strm.avail_out===0?ne:ce):e.sym_next&&(U(e,!1),e.strm.avail_out===0)?C:he};function $(e,n,t,i,r){this.good_length=e,this.max_lazy=n,this.nice_length=t,this.max_chain=i,this.func=r}const be=[new $(0,0,0,0,Dn),new $(4,4,8,4,Qe),new $(4,5,16,8,Qe),new $(4,6,32,32,Qe),new $(4,4,16,16,re),new $(8,16,32,32,re),new $(8,16,128,128,re),new $(8,32,128,256,re),new $(32,128,258,1024,re),new $(32,258,258,4096,re)],wa=e=>{e.window_size=2*e.w_size,G(e.head),e.max_lazy_match=be[e.level].max_lazy,e.good_match=be[e.level].good_length,e.nice_match=be[e.level].nice_length,e.max_chain_length=be[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=v-1,e.match_available=0,e.ins_h=0};function ba(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Ke,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(oa*2),this.dyn_dtree=new Uint16Array((2*ra+1)*2),this.bl_tree=new Uint16Array((2*la+1)*2),G(this.dyn_ltree),G(this.dyn_dtree),G(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(fa+1),this.heap=new Uint16Array(2*dt+1),G(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*dt+1),G(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const De=e=>{if(!e)return 1;const n=e.state;return!n||n.strm!==e||n.status!==_e&&n.status!==vt&&n.status!==ht&&n.status!==ct&&n.status!==ut&&n.status!==wt&&n.status!==ee&&n.status!==we?1:0},In=e=>{if(De(e))return te(e,B);e.total_in=e.total_out=0,e.data_type=Qi;const n=e.state;return n.pending=0,n.pending_out=0,n.wrap<0&&(n.wrap=-n.wrap),n.status=n.wrap===2?vt:n.wrap?_e:ee,e.adler=n.wrap===2?0:1,n.last_flush=-2,Bi(n),Z},Zn=e=>{const n=In(e);return n===Z&&wa(e.state),n},ga=(e,n)=>De(e)||e.state.wrap!==2?B:(e.state.gzhead=n,Z),On=(e,n,t,i,r,a)=>{if(!e)return B;let _=1;if(n===Wi&&(n=6),i<0?(_=0,i=-i):i>15&&(_=2,i-=16),r<1||r>ea||t!==Ke||i<8||i>15||n<0||n>9||a<0||a>qi||i===8&&_!==1)return te(e,B);i===8&&(i=9);const o=new ba;return e.state=o,o.strm=e,o.status=_e,o.wrap=_,o.gzhead=null,o.w_bits=i,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=r+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+v-1)/v),o.window=new Uint8Array(o.w_size*2),o.head=new Uint16Array(o.hash_size),o.prev=new Uint16Array(o.w_size),o.lit_bufsize=1<<r+6,o.pending_buf_size=o.lit_bufsize*4,o.pending_buf=new Uint8Array(o.pending_buf_size),o.sym_buf=o.lit_bufsize,o.sym_end=(o.lit_bufsize-1)*3,o.level=n,o.strategy=a,o.method=t,Zn(e)},pa=(e,n)=>On(e,n,Ke,ta,na,Ji),xa=(e,n)=>{if(De(e)||n>Ct||n<0)return e?te(e,B):B;const t=e.state;if(!e.output||e.avail_in!==0&&!e.input||t.status===we&&n!==M)return te(e,e.avail_out===0?Je:B);const i=t.last_flush;if(t.last_flush=n,t.pending!==0){if(L(e),e.avail_out===0)return t.last_flush=-1,Z}else if(e.avail_in===0&&Lt(n)<=Lt(i)&&n!==M)return te(e,Je);if(t.status===we&&e.avail_in!==0)return te(e,Je);if(t.status===_e&&t.wrap===0&&(t.status=ee),t.status===_e){let r=Ke+(t.w_bits-8<<4)<<8,a=-1;if(t.strategy>=Ce||t.level<2?a=0:t.level<6?a=1:t.level===6?a=2:a=3,r|=a<<6,t.strstart!==0&&(r|=_a),r+=31-r%31,ue(t,r),t.strstart!==0&&(ue(t,e.adler>>>16),ue(t,e.adler&65535)),e.adler=1,t.status=ee,L(e),t.pending!==0)return t.last_flush=-1,Z}if(t.status===vt){if(e.adler=0,A(t,31),A(t,139),A(t,8),t.gzhead)A(t,(t.gzhead.text?1:0)+(t.gzhead.hcrc?2:0)+(t.gzhead.extra?4:0)+(t.gzhead.name?8:0)+(t.gzhead.comment?16:0)),A(t,t.gzhead.time&255),A(t,t.gzhead.time>>8&255),A(t,t.gzhead.time>>16&255),A(t,t.gzhead.time>>24&255),A(t,t.level===9?2:t.strategy>=Ce||t.level<2?4:0),A(t,t.gzhead.os&255),t.gzhead.extra&&t.gzhead.extra.length&&(A(t,t.gzhead.extra.length&255),A(t,t.gzhead.extra.length>>8&255)),t.gzhead.hcrc&&(e.adler=I(e.adler,t.pending_buf,t.pending,0)),t.gzindex=0,t.status=ht;else if(A(t,0),A(t,0),A(t,0),A(t,0),A(t,0),A(t,t.level===9?2:t.strategy>=Ce||t.level<2?4:0),A(t,sa),t.status=ee,L(e),t.pending!==0)return t.last_flush=-1,Z}if(t.status===ht){if(t.gzhead.extra){let r=t.pending,a=(t.gzhead.extra.length&65535)-t.gzindex;for(;t.pending+a>t.pending_buf_size;){let o=t.pending_buf_size-t.pending;if(t.pending_buf.set(t.gzhead.extra.subarray(t.gzindex,t.gzindex+o),t.pending),t.pending=t.pending_buf_size,t.gzhead.hcrc&&t.pending>r&&(e.adler=I(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex+=o,L(e),t.pending!==0)return t.last_flush=-1,Z;r=0,a-=o}let _=new Uint8Array(t.gzhead.extra);t.pending_buf.set(_.subarray(t.gzindex,t.gzindex+a),t.pending),t.pending+=a,t.gzhead.hcrc&&t.pending>r&&(e.adler=I(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex=0}t.status=ct}if(t.status===ct){if(t.gzhead.name){let r=t.pending,a;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>r&&(e.adler=I(e.adler,t.pending_buf,t.pending-r,r)),L(e),t.pending!==0)return t.last_flush=-1,Z;r=0}t.gzindex<t.gzhead.name.length?a=t.gzhead.name.charCodeAt(t.gzindex++)&255:a=0,A(t,a)}while(a!==0);t.gzhead.hcrc&&t.pending>r&&(e.adler=I(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex=0}t.status=ut}if(t.status===ut){if(t.gzhead.comment){let r=t.pending,a;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>r&&(e.adler=I(e.adler,t.pending_buf,t.pending-r,r)),L(e),t.pending!==0)return t.last_flush=-1,Z;r=0}t.gzindex<t.gzhead.comment.length?a=t.gzhead.comment.charCodeAt(t.gzindex++)&255:a=0,A(t,a)}while(a!==0);t.gzhead.hcrc&&t.pending>r&&(e.adler=I(e.adler,t.pending_buf,t.pending-r,r))}t.status=wt}if(t.status===wt){if(t.gzhead.hcrc){if(t.pending+2>t.pending_buf_size&&(L(e),t.pending!==0))return t.last_flush=-1,Z;A(t,e.adler&255),A(t,e.adler>>8&255),e.adler=0}if(t.status=ee,L(e),t.pending!==0)return t.last_flush=-1,Z}if(e.avail_in!==0||t.lookahead!==0||n!==V&&t.status!==we){let r=t.level===0?Dn(t,n):t.strategy===Ce?ua(t,n):t.strategy===Vi?ca(t,n):be[t.level].func(t,n);if((r===ne||r===ce)&&(t.status=we),r===C||r===ne)return e.avail_out===0&&(t.last_flush=-1),Z;if(r===he&&(n===Xi?Pi(t):n!==Ct&&(st(t,0,0,!1),n===Yi&&(G(t.head),t.lookahead===0&&(t.strstart=0,t.block_start=0,t.insert=0))),L(e),e.avail_out===0))return t.last_flush=-1,Z}return n!==M?Z:t.wrap<=0?Nt:(t.wrap===2?(A(t,e.adler&255),A(t,e.adler>>8&255),A(t,e.adler>>16&255),A(t,e.adler>>24&255),A(t,e.total_in&255),A(t,e.total_in>>8&255),A(t,e.total_in>>16&255),A(t,e.total_in>>24&255)):(ue(t,e.adler>>>16),ue(t,e.adler&65535)),L(e),t.wrap>0&&(t.wrap=-t.wrap),t.pending!==0?Z:Nt)},ka=e=>{if(De(e))return B;const n=e.state.status;return e.state=null,n===ee?te(e,Gi):Z},va=(e,n)=>{let t=n.length;if(De(e))return B;const i=e.state,r=i.wrap;if(r===2||r===1&&i.status!==_e||i.lookahead)return B;if(r===1&&(e.adler=Ee(e.adler,n,t,0)),i.wrap=0,t>=i.w_size){r===0&&(G(i.head),i.strstart=0,i.block_start=0,i.insert=0);let c=new Uint8Array(i.w_size);c.set(n.subarray(t-i.w_size,t),0),n=c,t=i.w_size}const a=e.avail_in,_=e.next_in,o=e.input;for(e.avail_in=t,e.next_in=0,e.input=n,se(i);i.lookahead>=v;){let c=i.strstart,l=i.lookahead-(v-1);do i.ins_h=q(i,i.ins_h,i.window[c+v-1]),i.prev[c&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=c,c++;while(--l);i.strstart=c,i.lookahead=v-1,se(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=v-1,i.match_available=0,e.next_in=_,e.input=o,e.avail_in=a,i.wrap=r,Z};var ma=pa,ya=On,Ea=Zn,Sa=In,Aa=ga,za=xa,Ra=ka,Ta=va,Da="pako deflate (from Nodeca project)",pe={deflateInit:ma,deflateInit2:ya,deflateReset:Ea,deflateResetKeep:Sa,deflateSetHeader:Aa,deflate:za,deflateEnd:Ra,deflateSetDictionary:Ta,deflateInfo:Da};const Ia=(e,n)=>Object.prototype.hasOwnProperty.call(e,n);var Za=function(e){const n=Array.prototype.slice.call(arguments,1);for(;n.length;){const t=n.shift();if(!!t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(const i in t)Ia(t,i)&&(e[i]=t[i])}}return e},Oa=e=>{let n=0;for(let i=0,r=e.length;i<r;i++)n+=e[i].length;const t=new Uint8Array(n);for(let i=0,r=0,a=e.length;i<a;i++){let _=e[i];t.set(_,r),r+=_.length}return t},Pe={assign:Za,flattenChunks:Oa};let Cn=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Cn=!1}const Se=new Uint8Array(256);for(let e=0;e<256;e++)Se[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Se[254]=Se[254]=1;var Ca=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let n,t,i,r,a,_=e.length,o=0;for(r=0;r<_;r++)t=e.charCodeAt(r),(t&64512)===55296&&r+1<_&&(i=e.charCodeAt(r+1),(i&64512)===56320&&(t=65536+(t-55296<<10)+(i-56320),r++)),o+=t<128?1:t<2048?2:t<65536?3:4;for(n=new Uint8Array(o),a=0,r=0;a<o;r++)t=e.charCodeAt(r),(t&64512)===55296&&r+1<_&&(i=e.charCodeAt(r+1),(i&64512)===56320&&(t=65536+(t-55296<<10)+(i-56320),r++)),t<128?n[a++]=t:t<2048?(n[a++]=192|t>>>6,n[a++]=128|t&63):t<65536?(n[a++]=224|t>>>12,n[a++]=128|t>>>6&63,n[a++]=128|t&63):(n[a++]=240|t>>>18,n[a++]=128|t>>>12&63,n[a++]=128|t>>>6&63,n[a++]=128|t&63);return n};const Na=(e,n)=>{if(n<65534&&e.subarray&&Cn)return String.fromCharCode.apply(null,e.length===n?e:e.subarray(0,n));let t="";for(let i=0;i<n;i++)t+=String.fromCharCode(e[i]);return t};var La=(e,n)=>{const t=n||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,n));let i,r;const a=new Array(t*2);for(r=0,i=0;i<t;){let _=e[i++];if(_<128){a[r++]=_;continue}let o=Se[_];if(o>4){a[r++]=65533,i+=o-1;continue}for(_&=o===2?31:o===3?15:7;o>1&&i<t;)_=_<<6|e[i++]&63,o--;if(o>1){a[r++]=65533;continue}_<65536?a[r++]=_:(_-=65536,a[r++]=55296|_>>10&1023,a[r++]=56320|_&1023)}return Na(a,r)},Ua=(e,n)=>{n=n||e.length,n>e.length&&(n=e.length);let t=n-1;for(;t>=0&&(e[t]&192)===128;)t--;return t<0||t===0?n:t+Se[e[t]]>n?t:n},Ae={string2buf:Ca,buf2string:La,utf8border:Ua};function Ma(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var Nn=Ma;const Ln=Object.prototype.toString,{Z_NO_FLUSH:Fa,Z_SYNC_FLUSH:$a,Z_FULL_FLUSH:Ha,Z_FINISH:Ba,Z_OK:He,Z_STREAM_END:Ka,Z_DEFAULT_COMPRESSION:Pa,Z_DEFAULT_STRATEGY:Xa,Z_DEFLATED:Ya}=Te;function mt(e){this.options=Pe.assign({level:Pa,method:Ya,chunkSize:16384,windowBits:15,memLevel:8,strategy:Xa},e||{});let n=this.options;n.raw&&n.windowBits>0?n.windowBits=-n.windowBits:n.gzip&&n.windowBits>0&&n.windowBits<16&&(n.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Nn,this.strm.avail_out=0;let t=pe.deflateInit2(this.strm,n.level,n.method,n.windowBits,n.memLevel,n.strategy);if(t!==He)throw new Error(fe[t]);if(n.header&&pe.deflateSetHeader(this.strm,n.header),n.dictionary){let i;if(typeof n.dictionary=="string"?i=Ae.string2buf(n.dictionary):Ln.call(n.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(n.dictionary):i=n.dictionary,t=pe.deflateSetDictionary(this.strm,i),t!==He)throw new Error(fe[t]);this._dict_set=!0}}mt.prototype.push=function(e,n){const t=this.strm,i=this.options.chunkSize;let r,a;if(this.ended)return!1;for(n===~~n?a=n:a=n===!0?Ba:Fa,typeof e=="string"?t.input=Ae.string2buf(e):Ln.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){if(t.avail_out===0&&(t.output=new Uint8Array(i),t.next_out=0,t.avail_out=i),(a===$a||a===Ha)&&t.avail_out<=6){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(r=pe.deflate(t,a),r===Ka)return t.next_out>0&&this.onData(t.output.subarray(0,t.next_out)),r=pe.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===He;if(t.avail_out===0){this.onData(t.output);continue}if(a>0&&t.next_out>0){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(t.avail_in===0)break}return!0};mt.prototype.onData=function(e){this.chunks.push(e)};mt.prototype.onEnd=function(e){e===He&&(this.result=Pe.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};const Ne=16209,Ga=16191;var Wa=function(n,t){let i,r,a,_,o,c,l,f,p,d,s,u,E,m,g,z,x,h,S,D,w,R,y,b;const k=n.state;i=n.next_in,y=n.input,r=i+(n.avail_in-5),a=n.next_out,b=n.output,_=a-(t-n.avail_out),o=a+(n.avail_out-257),c=k.dmax,l=k.wsize,f=k.whave,p=k.wnext,d=k.window,s=k.hold,u=k.bits,E=k.lencode,m=k.distcode,g=(1<<k.lenbits)-1,z=(1<<k.distbits)-1;e:do{u<15&&(s+=y[i++]<<u,u+=8,s+=y[i++]<<u,u+=8),x=E[s&g];t:for(;;){if(h=x>>>24,s>>>=h,u-=h,h=x>>>16&255,h===0)b[a++]=x&65535;else if(h&16){S=x&65535,h&=15,h&&(u<h&&(s+=y[i++]<<u,u+=8),S+=s&(1<<h)-1,s>>>=h,u-=h),u<15&&(s+=y[i++]<<u,u+=8,s+=y[i++]<<u,u+=8),x=m[s&z];n:for(;;){if(h=x>>>24,s>>>=h,u-=h,h=x>>>16&255,h&16){if(D=x&65535,h&=15,u<h&&(s+=y[i++]<<u,u+=8,u<h&&(s+=y[i++]<<u,u+=8)),D+=s&(1<<h)-1,D>c){n.msg="invalid distance too far back",k.mode=Ne;break e}if(s>>>=h,u-=h,h=a-_,D>h){if(h=D-h,h>f&&k.sane){n.msg="invalid distance too far back",k.mode=Ne;break e}if(w=0,R=d,p===0){if(w+=l-h,h<S){S-=h;do b[a++]=d[w++];while(--h);w=a-D,R=b}}else if(p<h){if(w+=l+p-h,h-=p,h<S){S-=h;do b[a++]=d[w++];while(--h);if(w=0,p<S){h=p,S-=h;do b[a++]=d[w++];while(--h);w=a-D,R=b}}}else if(w+=p-h,h<S){S-=h;do b[a++]=d[w++];while(--h);w=a-D,R=b}for(;S>2;)b[a++]=R[w++],b[a++]=R[w++],b[a++]=R[w++],S-=3;S&&(b[a++]=R[w++],S>1&&(b[a++]=R[w++]))}else{w=a-D;do b[a++]=b[w++],b[a++]=b[w++],b[a++]=b[w++],S-=3;while(S>2);S&&(b[a++]=b[w++],S>1&&(b[a++]=b[w++]))}}else if((h&64)===0){x=m[(x&65535)+(s&(1<<h)-1)];continue n}else{n.msg="invalid distance code",k.mode=Ne;break e}break}}else if((h&64)===0){x=E[(x&65535)+(s&(1<<h)-1)];continue t}else if(h&32){k.mode=Ga;break e}else{n.msg="invalid literal/length code",k.mode=Ne;break e}break}}while(i<r&&a<o);S=u>>3,i-=S,u-=S<<3,s&=(1<<u)-1,n.next_in=i,n.next_out=a,n.avail_in=i<r?5+(r-i):5-(i-r),n.avail_out=a<o?257+(o-a):257-(a-o),k.hold=s,k.bits=u};const le=15,Ut=852,Mt=592,Ft=0,et=1,$t=2,ja=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),Va=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),qa=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),Ja=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),Qa=(e,n,t,i,r,a,_,o)=>{const c=o.bits;let l=0,f=0,p=0,d=0,s=0,u=0,E=0,m=0,g=0,z=0,x,h,S,D,w,R=null,y;const b=new Uint16Array(le+1),k=new Uint16Array(le+1);let J=null,Et,Ze,Oe;for(l=0;l<=le;l++)b[l]=0;for(f=0;f<i;f++)b[n[t+f]]++;for(s=c,d=le;d>=1&&b[d]===0;d--);if(s>d&&(s=d),d===0)return r[a++]=1<<24|64<<16|0,r[a++]=1<<24|64<<16|0,o.bits=1,0;for(p=1;p<d&&b[p]===0;p++);for(s<p&&(s=p),m=1,l=1;l<=le;l++)if(m<<=1,m-=b[l],m<0)return-1;if(m>0&&(e===Ft||d!==1))return-1;for(k[1]=0,l=1;l<le;l++)k[l+1]=k[l]+b[l];for(f=0;f<i;f++)n[t+f]!==0&&(_[k[n[t+f]]++]=f);if(e===Ft?(R=J=_,y=20):e===et?(R=ja,J=Va,y=257):(R=qa,J=Ja,y=0),z=0,f=0,l=p,w=a,u=s,E=0,S=-1,g=1<<s,D=g-1,e===et&&g>Ut||e===$t&&g>Mt)return 1;for(;;){Et=l-E,_[f]+1<y?(Ze=0,Oe=_[f]):_[f]>=y?(Ze=J[_[f]-y],Oe=R[_[f]-y]):(Ze=32+64,Oe=0),x=1<<l-E,h=1<<u,p=h;do h-=x,r[w+(z>>E)+h]=Et<<24|Ze<<16|Oe|0;while(h!==0);for(x=1<<l-1;z&x;)x>>=1;if(x!==0?(z&=x-1,z+=x):z=0,f++,--b[l]===0){if(l===d)break;l=n[t+_[f]]}if(l>s&&(z&D)!==S){for(E===0&&(E=s),w+=p,u=l-E,m=1<<u;u+E<d&&(m-=b[u+E],!(m<=0));)u++,m<<=1;if(g+=1<<u,e===et&&g>Ut||e===$t&&g>Mt)return 1;S=z&D,r[S]=s<<24|u<<16|w-a|0}}return z!==0&&(r[w+z]=l-E<<24|64<<16|0),o.bits=s,0};var xe=Qa;const er=0,Un=1,Mn=2,{Z_FINISH:Ht,Z_BLOCK:tr,Z_TREES:Le,Z_OK:ie,Z_STREAM_END:nr,Z_NEED_DICT:ir,Z_STREAM_ERROR:F,Z_DATA_ERROR:Fn,Z_MEM_ERROR:$n,Z_BUF_ERROR:ar,Z_DEFLATED:Bt}=Te,Xe=16180,Kt=16181,Pt=16182,Xt=16183,Yt=16184,Gt=16185,Wt=16186,jt=16187,Vt=16188,qt=16189,Be=16190,P=16191,tt=16192,Jt=16193,nt=16194,Qt=16195,en=16196,tn=16197,nn=16198,Ue=16199,Me=16200,an=16201,rn=16202,ln=16203,on=16204,fn=16205,it=16206,_n=16207,sn=16208,T=16209,Hn=16210,Bn=16211,rr=852,lr=592,or=15,fr=or,dn=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function _r(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const ae=e=>{if(!e)return 1;const n=e.state;return!n||n.strm!==e||n.mode<Xe||n.mode>Bn?1:0},Kn=e=>{if(ae(e))return F;const n=e.state;return e.total_in=e.total_out=n.total=0,e.msg="",n.wrap&&(e.adler=n.wrap&1),n.mode=Xe,n.last=0,n.havedict=0,n.flags=-1,n.dmax=32768,n.head=null,n.hold=0,n.bits=0,n.lencode=n.lendyn=new Int32Array(rr),n.distcode=n.distdyn=new Int32Array(lr),n.sane=1,n.back=-1,ie},Pn=e=>{if(ae(e))return F;const n=e.state;return n.wsize=0,n.whave=0,n.wnext=0,Kn(e)},Xn=(e,n)=>{let t;if(ae(e))return F;const i=e.state;return n<0?(t=0,n=-n):(t=(n>>4)+5,n<48&&(n&=15)),n&&(n<8||n>15)?F:(i.window!==null&&i.wbits!==n&&(i.window=null),i.wrap=t,i.wbits=n,Pn(e))},Yn=(e,n)=>{if(!e)return F;const t=new _r;e.state=t,t.strm=e,t.window=null,t.mode=Xe;const i=Xn(e,n);return i!==ie&&(e.state=null),i},sr=e=>Yn(e,fr);let hn=!0,at,rt;const dr=e=>{if(hn){at=new Int32Array(512),rt=new Int32Array(32);let n=0;for(;n<144;)e.lens[n++]=8;for(;n<256;)e.lens[n++]=9;for(;n<280;)e.lens[n++]=7;for(;n<288;)e.lens[n++]=8;for(xe(Un,e.lens,0,288,at,0,e.work,{bits:9}),n=0;n<32;)e.lens[n++]=5;xe(Mn,e.lens,0,32,rt,0,e.work,{bits:5}),hn=!1}e.lencode=at,e.lenbits=9,e.distcode=rt,e.distbits=5},Gn=(e,n,t,i)=>{let r;const a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),i>=a.wsize?(a.window.set(n.subarray(t-a.wsize,t),0),a.wnext=0,a.whave=a.wsize):(r=a.wsize-a.wnext,r>i&&(r=i),a.window.set(n.subarray(t-i,t-i+r),a.wnext),i-=r,i?(a.window.set(n.subarray(t-i,t),0),a.wnext=i,a.whave=a.wsize):(a.wnext+=r,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=r))),0},hr=(e,n)=>{let t,i,r,a,_,o,c,l,f,p,d,s,u,E,m=0,g,z,x,h,S,D,w,R;const y=new Uint8Array(4);let b,k;const J=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(ae(e)||!e.output||!e.input&&e.avail_in!==0)return F;t=e.state,t.mode===P&&(t.mode=tt),_=e.next_out,r=e.output,c=e.avail_out,a=e.next_in,i=e.input,o=e.avail_in,l=t.hold,f=t.bits,p=o,d=c,R=ie;e:for(;;)switch(t.mode){case Xe:if(t.wrap===0){t.mode=tt;break}for(;f<16;){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}if(t.wrap&2&&l===35615){t.wbits===0&&(t.wbits=15),t.check=0,y[0]=l&255,y[1]=l>>>8&255,t.check=I(t.check,y,2,0),l=0,f=0,t.mode=Kt;break}if(t.head&&(t.head.done=!1),!(t.wrap&1)||(((l&255)<<8)+(l>>8))%31){e.msg="incorrect header check",t.mode=T;break}if((l&15)!==Bt){e.msg="unknown compression method",t.mode=T;break}if(l>>>=4,f-=4,w=(l&15)+8,t.wbits===0&&(t.wbits=w),w>15||w>t.wbits){e.msg="invalid window size",t.mode=T;break}t.dmax=1<<t.wbits,t.flags=0,e.adler=t.check=1,t.mode=l&512?qt:P,l=0,f=0;break;case Kt:for(;f<16;){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}if(t.flags=l,(t.flags&255)!==Bt){e.msg="unknown compression method",t.mode=T;break}if(t.flags&57344){e.msg="unknown header flags set",t.mode=T;break}t.head&&(t.head.text=l>>8&1),t.flags&512&&t.wrap&4&&(y[0]=l&255,y[1]=l>>>8&255,t.check=I(t.check,y,2,0)),l=0,f=0,t.mode=Pt;case Pt:for(;f<32;){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}t.head&&(t.head.time=l),t.flags&512&&t.wrap&4&&(y[0]=l&255,y[1]=l>>>8&255,y[2]=l>>>16&255,y[3]=l>>>24&255,t.check=I(t.check,y,4,0)),l=0,f=0,t.mode=Xt;case Xt:for(;f<16;){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}t.head&&(t.head.xflags=l&255,t.head.os=l>>8),t.flags&512&&t.wrap&4&&(y[0]=l&255,y[1]=l>>>8&255,t.check=I(t.check,y,2,0)),l=0,f=0,t.mode=Yt;case Yt:if(t.flags&1024){for(;f<16;){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}t.length=l,t.head&&(t.head.extra_len=l),t.flags&512&&t.wrap&4&&(y[0]=l&255,y[1]=l>>>8&255,t.check=I(t.check,y,2,0)),l=0,f=0}else t.head&&(t.head.extra=null);t.mode=Gt;case Gt:if(t.flags&1024&&(s=t.length,s>o&&(s=o),s&&(t.head&&(w=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(i.subarray(a,a+s),w)),t.flags&512&&t.wrap&4&&(t.check=I(t.check,i,s,a)),o-=s,a+=s,t.length-=s),t.length))break e;t.length=0,t.mode=Wt;case Wt:if(t.flags&2048){if(o===0)break e;s=0;do w=i[a+s++],t.head&&w&&t.length<65536&&(t.head.name+=String.fromCharCode(w));while(w&&s<o);if(t.flags&512&&t.wrap&4&&(t.check=I(t.check,i,s,a)),o-=s,a+=s,w)break e}else t.head&&(t.head.name=null);t.length=0,t.mode=jt;case jt:if(t.flags&4096){if(o===0)break e;s=0;do w=i[a+s++],t.head&&w&&t.length<65536&&(t.head.comment+=String.fromCharCode(w));while(w&&s<o);if(t.flags&512&&t.wrap&4&&(t.check=I(t.check,i,s,a)),o-=s,a+=s,w)break e}else t.head&&(t.head.comment=null);t.mode=Vt;case Vt:if(t.flags&512){for(;f<16;){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}if(t.wrap&4&&l!==(t.check&65535)){e.msg="header crc mismatch",t.mode=T;break}l=0,f=0}t.head&&(t.head.hcrc=t.flags>>9&1,t.head.done=!0),e.adler=t.check=0,t.mode=P;break;case qt:for(;f<32;){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}e.adler=t.check=dn(l),l=0,f=0,t.mode=Be;case Be:if(t.havedict===0)return e.next_out=_,e.avail_out=c,e.next_in=a,e.avail_in=o,t.hold=l,t.bits=f,ir;e.adler=t.check=1,t.mode=P;case P:if(n===tr||n===Le)break e;case tt:if(t.last){l>>>=f&7,f-=f&7,t.mode=it;break}for(;f<3;){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}switch(t.last=l&1,l>>>=1,f-=1,l&3){case 0:t.mode=Jt;break;case 1:if(dr(t),t.mode=Ue,n===Le){l>>>=2,f-=2;break e}break;case 2:t.mode=en;break;case 3:e.msg="invalid block type",t.mode=T}l>>>=2,f-=2;break;case Jt:for(l>>>=f&7,f-=f&7;f<32;){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}if((l&65535)!==(l>>>16^65535)){e.msg="invalid stored block lengths",t.mode=T;break}if(t.length=l&65535,l=0,f=0,t.mode=nt,n===Le)break e;case nt:t.mode=Qt;case Qt:if(s=t.length,s){if(s>o&&(s=o),s>c&&(s=c),s===0)break e;r.set(i.subarray(a,a+s),_),o-=s,a+=s,c-=s,_+=s,t.length-=s;break}t.mode=P;break;case en:for(;f<14;){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}if(t.nlen=(l&31)+257,l>>>=5,f-=5,t.ndist=(l&31)+1,l>>>=5,f-=5,t.ncode=(l&15)+4,l>>>=4,f-=4,t.nlen>286||t.ndist>30){e.msg="too many length or distance symbols",t.mode=T;break}t.have=0,t.mode=tn;case tn:for(;t.have<t.ncode;){for(;f<3;){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}t.lens[J[t.have++]]=l&7,l>>>=3,f-=3}for(;t.have<19;)t.lens[J[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,b={bits:t.lenbits},R=xe(er,t.lens,0,19,t.lencode,0,t.work,b),t.lenbits=b.bits,R){e.msg="invalid code lengths set",t.mode=T;break}t.have=0,t.mode=nn;case nn:for(;t.have<t.nlen+t.ndist;){for(;m=t.lencode[l&(1<<t.lenbits)-1],g=m>>>24,z=m>>>16&255,x=m&65535,!(g<=f);){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}if(x<16)l>>>=g,f-=g,t.lens[t.have++]=x;else{if(x===16){for(k=g+2;f<k;){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}if(l>>>=g,f-=g,t.have===0){e.msg="invalid bit length repeat",t.mode=T;break}w=t.lens[t.have-1],s=3+(l&3),l>>>=2,f-=2}else if(x===17){for(k=g+3;f<k;){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}l>>>=g,f-=g,w=0,s=3+(l&7),l>>>=3,f-=3}else{for(k=g+7;f<k;){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}l>>>=g,f-=g,w=0,s=11+(l&127),l>>>=7,f-=7}if(t.have+s>t.nlen+t.ndist){e.msg="invalid bit length repeat",t.mode=T;break}for(;s--;)t.lens[t.have++]=w}}if(t.mode===T)break;if(t.lens[256]===0){e.msg="invalid code -- missing end-of-block",t.mode=T;break}if(t.lenbits=9,b={bits:t.lenbits},R=xe(Un,t.lens,0,t.nlen,t.lencode,0,t.work,b),t.lenbits=b.bits,R){e.msg="invalid literal/lengths set",t.mode=T;break}if(t.distbits=6,t.distcode=t.distdyn,b={bits:t.distbits},R=xe(Mn,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,b),t.distbits=b.bits,R){e.msg="invalid distances set",t.mode=T;break}if(t.mode=Ue,n===Le)break e;case Ue:t.mode=Me;case Me:if(o>=6&&c>=258){e.next_out=_,e.avail_out=c,e.next_in=a,e.avail_in=o,t.hold=l,t.bits=f,Wa(e,d),_=e.next_out,r=e.output,c=e.avail_out,a=e.next_in,i=e.input,o=e.avail_in,l=t.hold,f=t.bits,t.mode===P&&(t.back=-1);break}for(t.back=0;m=t.lencode[l&(1<<t.lenbits)-1],g=m>>>24,z=m>>>16&255,x=m&65535,!(g<=f);){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}if(z&&(z&240)===0){for(h=g,S=z,D=x;m=t.lencode[D+((l&(1<<h+S)-1)>>h)],g=m>>>24,z=m>>>16&255,x=m&65535,!(h+g<=f);){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}l>>>=h,f-=h,t.back+=h}if(l>>>=g,f-=g,t.back+=g,t.length=x,z===0){t.mode=fn;break}if(z&32){t.back=-1,t.mode=P;break}if(z&64){e.msg="invalid literal/length code",t.mode=T;break}t.extra=z&15,t.mode=an;case an:if(t.extra){for(k=t.extra;f<k;){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}t.length+=l&(1<<t.extra)-1,l>>>=t.extra,f-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=rn;case rn:for(;m=t.distcode[l&(1<<t.distbits)-1],g=m>>>24,z=m>>>16&255,x=m&65535,!(g<=f);){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}if((z&240)===0){for(h=g,S=z,D=x;m=t.distcode[D+((l&(1<<h+S)-1)>>h)],g=m>>>24,z=m>>>16&255,x=m&65535,!(h+g<=f);){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}l>>>=h,f-=h,t.back+=h}if(l>>>=g,f-=g,t.back+=g,z&64){e.msg="invalid distance code",t.mode=T;break}t.offset=x,t.extra=z&15,t.mode=ln;case ln:if(t.extra){for(k=t.extra;f<k;){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}t.offset+=l&(1<<t.extra)-1,l>>>=t.extra,f-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){e.msg="invalid distance too far back",t.mode=T;break}t.mode=on;case on:if(c===0)break e;if(s=d-c,t.offset>s){if(s=t.offset-s,s>t.whave&&t.sane){e.msg="invalid distance too far back",t.mode=T;break}s>t.wnext?(s-=t.wnext,u=t.wsize-s):u=t.wnext-s,s>t.length&&(s=t.length),E=t.window}else E=r,u=_-t.offset,s=t.length;s>c&&(s=c),c-=s,t.length-=s;do r[_++]=E[u++];while(--s);t.length===0&&(t.mode=Me);break;case fn:if(c===0)break e;r[_++]=t.length,c--,t.mode=Me;break;case it:if(t.wrap){for(;f<32;){if(o===0)break e;o--,l|=i[a++]<<f,f+=8}if(d-=c,e.total_out+=d,t.total+=d,t.wrap&4&&d&&(e.adler=t.check=t.flags?I(t.check,r,d,_-d):Ee(t.check,r,d,_-d)),d=c,t.wrap&4&&(t.flags?l:dn(l))!==t.check){e.msg="incorrect data check",t.mode=T;break}l=0,f=0}t.mode=_n;case _n:if(t.wrap&&t.flags){for(;f<32;){if(o===0)break e;o--,l+=i[a++]<<f,f+=8}if(t.wrap&4&&l!==(t.total&4294967295)){e.msg="incorrect length check",t.mode=T;break}l=0,f=0}t.mode=sn;case sn:R=nr;break e;case T:R=Fn;break e;case Hn:return $n;case Bn:default:return F}return e.next_out=_,e.avail_out=c,e.next_in=a,e.avail_in=o,t.hold=l,t.bits=f,(t.wsize||d!==e.avail_out&&t.mode<T&&(t.mode<it||n!==Ht))&&Gn(e,e.output,e.next_out,d-e.avail_out),p-=e.avail_in,d-=e.avail_out,e.total_in+=p,e.total_out+=d,t.total+=d,t.wrap&4&&d&&(e.adler=t.check=t.flags?I(t.check,r,d,e.next_out-d):Ee(t.check,r,d,e.next_out-d)),e.data_type=t.bits+(t.last?64:0)+(t.mode===P?128:0)+(t.mode===Ue||t.mode===nt?256:0),(p===0&&d===0||n===Ht)&&R===ie&&(R=ar),R},cr=e=>{if(ae(e))return F;let n=e.state;return n.window&&(n.window=null),e.state=null,ie},ur=(e,n)=>{if(ae(e))return F;const t=e.state;return(t.wrap&2)===0?F:(t.head=n,n.done=!1,ie)},wr=(e,n)=>{const t=n.length;let i,r,a;return ae(e)||(i=e.state,i.wrap!==0&&i.mode!==Be)?F:i.mode===Be&&(r=1,r=Ee(r,n,t,0),r!==i.check)?Fn:(a=Gn(e,n,t,t),a?(i.mode=Hn,$n):(i.havedict=1,ie))};var br=Pn,gr=Xn,pr=Kn,xr=sr,kr=Yn,vr=hr,mr=cr,yr=ur,Er=wr,Sr="pako inflate (from Nodeca project)",Y={inflateReset:br,inflateReset2:gr,inflateResetKeep:pr,inflateInit:xr,inflateInit2:kr,inflate:vr,inflateEnd:mr,inflateGetHeader:yr,inflateSetDictionary:Er,inflateInfo:Sr};function Ar(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var zr=Ar;const Wn=Object.prototype.toString,{Z_NO_FLUSH:Rr,Z_FINISH:Tr,Z_OK:ze,Z_STREAM_END:lt,Z_NEED_DICT:ot,Z_STREAM_ERROR:Dr,Z_DATA_ERROR:cn,Z_MEM_ERROR:Ir}=Te;function Ie(e){this.options=Pe.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const n=this.options;n.raw&&n.windowBits>=0&&n.windowBits<16&&(n.windowBits=-n.windowBits,n.windowBits===0&&(n.windowBits=-15)),n.windowBits>=0&&n.windowBits<16&&!(e&&e.windowBits)&&(n.windowBits+=32),n.windowBits>15&&n.windowBits<48&&(n.windowBits&15)===0&&(n.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Nn,this.strm.avail_out=0;let t=Y.inflateInit2(this.strm,n.windowBits);if(t!==ze)throw new Error(fe[t]);if(this.header=new zr,Y.inflateGetHeader(this.strm,this.header),n.dictionary&&(typeof n.dictionary=="string"?n.dictionary=Ae.string2buf(n.dictionary):Wn.call(n.dictionary)==="[object ArrayBuffer]"&&(n.dictionary=new Uint8Array(n.dictionary)),n.raw&&(t=Y.inflateSetDictionary(this.strm,n.dictionary),t!==ze)))throw new Error(fe[t])}Ie.prototype.push=function(e,n){const t=this.strm,i=this.options.chunkSize,r=this.options.dictionary;let a,_,o;if(this.ended)return!1;for(n===~~n?_=n:_=n===!0?Tr:Rr,Wn.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){for(t.avail_out===0&&(t.output=new Uint8Array(i),t.next_out=0,t.avail_out=i),a=Y.inflate(t,_),a===ot&&r&&(a=Y.inflateSetDictionary(t,r),a===ze?a=Y.inflate(t,_):a===cn&&(a=ot));t.avail_in>0&&a===lt&&t.state.wrap>0&&e[t.next_in]!==0;)Y.inflateReset(t),a=Y.inflate(t,_);switch(a){case Dr:case cn:case ot:case Ir:return this.onEnd(a),this.ended=!0,!1}if(o=t.avail_out,t.next_out&&(t.avail_out===0||a===lt))if(this.options.to==="string"){let c=Ae.utf8border(t.output,t.next_out),l=t.next_out-c,f=Ae.buf2string(t.output,c);t.next_out=l,t.avail_out=i-l,l&&t.output.set(t.output.subarray(c,c+l),0),this.onData(f)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(!(a===ze&&o===0)){if(a===lt)return a=Y.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(t.avail_in===0)break}}return!0};Ie.prototype.onData=function(e){this.chunks.push(e)};Ie.prototype.onEnd=function(e){e===ze&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Pe.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function yt(e,n){const t=new Ie(n);if(t.push(e),t.err)throw t.msg||fe[t.err];return t.result}function Zr(e,n){return n=n||{},n.raw=!0,yt(e,n)}var Or=Ie,Cr=yt,Nr=Zr,Lr=yt,Ur=Te,Mr={Inflate:Or,inflate:Cr,inflateRaw:Nr,ungzip:Lr,constants:Ur};const{Inflate:fl,inflate:Fr,inflateRaw:_l,ungzip:sl}=Mr;var $r=Fr;const Hr={key:0,class:"loading"},Br=ii({__name:"MockForm",setup(e){const n=ai(),t=ri({playerKey:St()}),i=li(null);oi(n,()=>{n.name==="form"&&l()});class r extends Qn{constructor(d){super("mock","editor",{});Ye(this,"onMessage",null);Ye(this,"onOpen",null);this.renderMessage=d,this.onMessage=null}async newConnection(){var d;(d=this.onOpen)==null||d.call(this)}async send(d){var u,E;const s="seq"in d?d.seq:0;d.type==="execution:start"&&((u=this.onMessage)==null||u.call(this,{type:"execution:started",executionId:"1234"})),(E=this.onMessage)==null||E.call(this,{...this.renderMessage,seq:s})}async close(d){}isEditorConnection(){return!1}}function a(f){for(f=f.replace(/-/g,"+").replace(/_/g,"/");f.length%4;)f+="=";const p=atob(f),d=Uint8Array.from(p,E=>E.charCodeAt(0)),s=$r(d),u=new TextDecoder().decode(s);return JSON.parse(u)}const{loading:_,result:o,error:c,refetch:l}=ei(async()=>{t.playerKey=St();const f={isLocal:!1,runtimeType:"form",autoStart:!0,endMessage:null,errorMessage:null,id:"b9980b87-9eaf-456b-a449-11df261a0840",isInitial:!0,path:"public-form",startButtonText:null,startMessage:null,timeoutMessage:null,title:"Public form",brandName:"Abstra Project",fontFamily:"Inter",language:"en",logoUrl:null,mainColor:"#d14056",sidebar:[],theme:"#fcf0f2"},p=a(n.query.msg),d=new qn({formRunnerData:f,logService:null,connectionManager:new r(p),onRedirect:()=>null,onFormStart:()=>null,onFormEnd:()=>null,onStackTraceUpdate:null,onStateUpdate:u=>i.value=u}),s=d.getState();return i.value=s.formState,{runnerData:f,controller:d}});return(f,p)=>O(_)?(Ge(),fi("div",Hr,[_i(ti)])):O(o)&&O(o).runnerData&&i.value&&!O(c)&&!O(_)?(Ge(),At(ni,{key:1,style:{height:"100vh"},"main-color":O(o).runnerData.mainColor,background:O(o).runnerData.theme,"font-family":O(o).runnerData.fontFamily,locale:O(o).runnerData.language,"logo-url":O(o).runnerData.logoUrl},{default:si(()=>{var d,s,u,E;return[(Ge(),At(Jn,{key:t.playerKey,"form-runner-data":O(o).runnerData,"form-state":i.value,"is-preview":!1,"user-email":null,onRedirect:()=>null,onActionClicked:(d=O(o))==null?void 0:d.controller.handleActionClick,onUpdateWidgetErrors:(s=O(o))==null?void 0:s.controller.updateWidgetFrontendErrors,onUpdateWidgetValue:(u=O(o))==null?void 0:u.controller.updateWidgetValue,onAuthComplete:(E=O(o))==null?void 0:E.controller.handleAuthComplete},null,8,["form-runner-data","form-state","onActionClicked","onUpdateWidgetErrors","onUpdateWidgetValue","onAuthComplete"]))]}),_:1},8,["main-color","background","font-family","locale","logo-url"])):di("",!0)}});const dl=hi(Br,[["__scopeId","data-v-b6704f26"]]);export{dl as default};
2
+ //# sourceMappingURL=MockForm.aa5ad3bb.js.map
@@ -0,0 +1,2 @@
1
+ import{_ as y}from"./AbstraButton.vue_vue_type_script_setup_true_lang.779f608b.js";import{A as D}from"./constants.3b7395d7.js";import{d as C,ec as N,j as L,u as e,o as n,a as r,S as R,ac as k,f as a,b as t,g as o,t as s,i as u,e as m,df as $,bW as z,bE as F,aY as S,ej as w,bD as G,eu as T,bY as b,cS as V,en as j,f6 as E,h as v,_ as M}from"./jwt-decode.esm.5ee65524.js";import{a as P}from"./asyncComputed.78dd1715.js";import{G as O,F as U,a as Y}from"./PhTranslate.vue.bec980b1.js";import{F as q}from"./PhSignOut.vue.83e5f761.js";import{l as A,o as H}from"./router.9781de48.js";import{A as W}from"./index.0a1e5d8b.js";import{A as J}from"./index.2141f0e8.js";import{u as K}from"./omniChatStore.cf2158f0.js";import{G as Q}from"./PhSparkle.vue.d2009d46.js";import{A as X}from"./index.2f74579e.js";import{B as Z,A as ee}from"./Breadcrumb.1a138bb1.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[i]="b61d8b05-d235-4231-8b21-091ec856a9d2",l._sentryDebugIdIdentifier="sentry-dbid-b61d8b05-d235-4231-8b21-091ec856a9d2")}catch{}})();const te={key:1,style:{display:"flex","align-items":"center",gap:"16px"}},ae={style:{display:"flex","flex-direction":"column",gap:"10px"}},oe={style:{display:"flex",gap:"5px"}},se={style:{display:"flex",gap:"5px"}},ne=C({__name:"LoginBlock",setup(l){function i(p){const h=p.split("@")[0];return j.exports.kebabCase(h).toUpperCase().split("-").slice(0,2).map(g=>g[0]).join("")}const d=N(),{result:c,loading:_,refetch:f}=P(async()=>A.getAuthor());async function B(){await A.logout(),H.shutdown(),f(),d.push({name:"login"})}function I(p){localStorage.setItem("locale",String(p.key)),window.location.reload()}return(p,h)=>{const g=L("RouterLink");return e(_)?(n(),r(e(R),{key:0})):e(c)?(n(),k("div",te,[a(y,{class:"intercom-launcher",target:"_blank",type:"link",size:"small"},{default:t(()=>[a(e(O)),o(" "+s(e(u).translate("i18n_loginblock_support")),1)]),_:1}),a(e(V),{placement:"bottomRight"},{content:t(()=>[m("div",ae,[a(e($),{size:"small",type:"secondary"},{default:t(()=>[o(s(e(c).claims.email),1)]),_:1}),a(e(z),{trigger:["click"]},{overlay:t(()=>[a(e(F),{onClick:I},{default:t(()=>[(n(!0),k(S,null,w(e(T),x=>(n(),r(e(G),{key:x.key},{default:t(()=>[o(s(x.value),1)]),_:2},1024))),128))]),_:1})]),default:t(()=>[a(e(b),{type:"text"},{default:t(()=>[m("div",oe,[a(e(U),{size:"20"}),o(" "+s(e(u).translate("i18n_loginblock_language")),1)])]),_:1})]),_:1}),a(e(b),{type:"text",onClick:B},{default:t(()=>[m("div",se,[a(e(q),{size:"20"}),o(" "+s(e(u).translate("i18n_loginblock_logout")),1)])]),_:1})])]),default:t(()=>[a(e(W),{align:"center",style:{cursor:"pointer"}},{default:t(()=>[a(e(J),{shape:"square"},{default:t(()=>[o(s(i(e(c).claims.email)),1)]),_:1})]),_:1})]),_:1})])):(n(),r(e(b),{key:2},{default:t(()=>[a(g,{to:"/login"},{default:t(()=>[o(s(e(u).translate("i18n_loginblock_login")),1)]),_:1})]),_:1}))}}}),re={class:"extra"},le=C({__name:"Navbar",props:{breadcrumb:{},showAiSparkles:{type:Boolean}},setup(l){const i=K();return(d,c)=>(n(),r(e(X),{style:{padding:"5px 25px",border:"1px solid #f0f0f0"}},{subTitle:t(()=>[d.breadcrumb?(n(),r(e(Z),{key:0},{default:t(()=>[(n(!0),k(S,null,w(d.breadcrumb,(_,f)=>(n(),r(e(ee),{key:f},{default:t(()=>[a(e(E),{to:_.path},{default:t(()=>[o(s(_.label),1)]),_:2},1032,["to"])]),_:2},1024))),128))]),_:1})):v("",!0)]),extra:t(()=>[m("div",re,[d.showAiSparkles?(n(),r(y,{key:0,type:"link",onClick:c[0]||(c[0]=_=>e(i).toggle())},{default:t(()=>[a(e(Q)),o(" "+s(e(u).translate("i18n_consolenavbar_ai_assistant")),1)]),_:1})):v("",!0),a(y,{href:e(D).DOCS,target:"_blank",type:"link"},{default:t(()=>[a(e(Y)),o(" "+s(e(u).translate("i18n_consolenavbar_docs")),1)]),_:1},8,["href"]),a(ne)])]),_:1}))}});const xe=M(le,[["__scopeId","data-v-a3489e41"]]);export{xe as N};
2
+ //# sourceMappingURL=Navbar.2529c5ae.js.map