@kedem/okdb 1.0.0 → 1.0.3

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 (188) hide show
  1. package/README.md +1 -1
  2. package/bin/okdb.js +1 -1
  3. package/keys/public.pem +3 -0
  4. package/okdb.js +1 -1
  5. package/package.json +2 -2
  6. package/public/admin-app.js +1 -1
  7. package/public/components/admin-route-host.ok.js +1 -1
  8. package/public/components/env-picker.ok.js +1 -1
  9. package/public/components/field-path-input.ok.js +1 -1
  10. package/public/components/geo-map.ok.js +1 -1
  11. package/public/components/ok-cron-input.ok.js +1 -1
  12. package/public/components/ok-dropzone.ok.js +1 -1
  13. package/public/components/ok-js-input.ok.js +1 -1
  14. package/public/components/ok-json-input.ok.js +1 -1
  15. package/public/components/ok-text-monaco-input.ok.js +1 -1
  16. package/public/components/theme-toggle.ok.js +1 -1
  17. package/public/login-app.js +1 -1
  18. package/public/modules/ok.js +1 -1
  19. package/public/sections/api/parts/api-endpoint.ok.js +1 -1
  20. package/public/sections/auth/modals/create-token-modal.ok.js +1 -1
  21. package/public/sections/auth/modals/edit-token-modal.ok.js +1 -1
  22. package/public/sections/auth/modals/perm-info-popover.ok.js +1 -1
  23. package/public/sections/auth/parts/token-detail.ok.js +1 -1
  24. package/public/sections/auth/parts/token-list.ok.js +1 -1
  25. package/public/sections/db/modals/add-item-modal.ok.js +1 -1
  26. package/public/sections/db/modals/create-env-modal.ok.js +1 -1
  27. package/public/sections/db/modals/create-fts-modal.ok.js +1 -1
  28. package/public/sections/db/modals/create-index-modal.ok.js +1 -1
  29. package/public/sections/db/modals/create-pipeline-modal.ok.js +1 -1
  30. package/public/sections/db/modals/demo-env-modal.ok.js +1 -1
  31. package/public/sections/db/modals/remove-env-modal.ok.js +1 -1
  32. package/public/sections/db/modals/schema-edit-modal.ok.js +1 -1
  33. package/public/sections/db/parts/db-overview.ok.js +1 -1
  34. package/public/sections/db/parts/db-pipelines-panel.ok.js +1 -1
  35. package/public/sections/db/parts/edit-row.ok.js +1 -1
  36. package/public/sections/db/parts/tm-timeline.ok.js +1 -1
  37. package/public/sections/db/parts/type-changelog.ok.js +1 -1
  38. package/public/sections/db/parts/type-list.ok.js +1 -1
  39. package/public/sections/db/parts/type-pipelines-tab.ok.js +1 -1
  40. package/public/sections/db/parts/type-schema-tab.ok.js +1 -1
  41. package/public/sections/db/parts/type-viewer.ok.js +1 -1
  42. package/public/sections/db/parts/type-violations-tab.ok.js +1 -1
  43. package/public/sections/embeddings/modals/register-model-modal.ok.js +1 -1
  44. package/public/sections/embeddings/parts/embed-create-panel.ok.js +1 -1
  45. package/public/sections/embeddings/parts/embed-embedder-panel.ok.js +1 -1
  46. package/public/sections/embeddings/parts/embed-engine-declaration-editor.ok.js +1 -1
  47. package/public/sections/embeddings/parts/embed-engine-list.ok.js +1 -1
  48. package/public/sections/embeddings/parts/embed-indexer-panel.ok.js +1 -1
  49. package/public/sections/embeddings/parts/embed-lifecycle-bar.ok.js +1 -1
  50. package/public/sections/embeddings/parts/embed-model-catalog.ok.js +1 -1
  51. package/public/sections/embeddings/parts/embed-overview.ok.js +1 -1
  52. package/public/sections/embeddings/parts/embed-search-panel.ok.js +1 -1
  53. package/public/sections/embeddings/parts/embed-worker-panel.ok.js +1 -1
  54. package/public/sections/embeddings/parts/embeddings-engine-panel.ok.js +1 -1
  55. package/public/sections/embeddings/parts/engines-overview.ok.js +1 -1
  56. package/public/sections/embeddings/parts/pipeline-create-panel.ok.js +1 -1
  57. package/public/sections/engines/engine-panel-shared-style.js +1 -1
  58. package/public/sections/engines/engine-ui-utils.js +1 -1
  59. package/public/sections/engines/modals/engine-modal.ok.js +1 -1
  60. package/public/sections/engines/parts/engine-declaration-editor.ok.js +1 -1
  61. package/public/sections/engines/parts/engine-lifecycle-actions.ok.js +1 -1
  62. package/public/sections/engines/parts/engine-panel-shell.ok.js +1 -1
  63. package/public/sections/engines/parts/engine-resource-card.ok.js +1 -1
  64. package/public/sections/engines/parts/engine-row-item.ok.js +1 -1
  65. package/public/sections/engines/parts/generic-engine-panel.ok.js +1 -1
  66. package/public/sections/files/parts/files-blob-status.ok.js +1 -1
  67. package/public/sections/files/parts/files-collection-list.ok.js +1 -1
  68. package/public/sections/files/parts/files-collection-panel.ok.js +1 -1
  69. package/public/sections/files/parts/files-file-list.ok.js +1 -1
  70. package/public/sections/files/parts/files-overview.ok.js +1 -1
  71. package/public/sections/files/parts/files-path-browser.ok.js +1 -1
  72. package/public/sections/files/parts/files-upload-panel.ok.js +1 -1
  73. package/public/sections/functions/modals/function-modal.ok.js +1 -1
  74. package/public/sections/functions/parts/function-detail.ok.js +1 -1
  75. package/public/sections/functions/parts/function-logs.ok.js +1 -1
  76. package/public/sections/functions/parts/function-runner.ok.js +1 -1
  77. package/public/sections/functions/parts/functions-list.ok.js +1 -1
  78. package/public/sections/license/parts/license-panel.ok.js +1 -1
  79. package/public/sections/queue/modals/create-bucket-modal.ok.js +1 -1
  80. package/public/sections/queue/modals/edit-bucket-modal.ok.js +1 -1
  81. package/public/sections/queue/modals/edit-job-modal.ok.js +1 -1
  82. package/public/sections/queue/modals/enqueue-job-modal.ok.js +1 -1
  83. package/public/sections/queue/modals/job-type-modal.ok.js +1 -1
  84. package/public/sections/queue/parts/ok-job-form.ok.js +1 -1
  85. package/public/sections/queue/parts/queue-buckets.ok.js +1 -1
  86. package/public/sections/queue/parts/queue-job-types.ok.js +1 -1
  87. package/public/sections/queue/parts/queue-jobs.ok.js +1 -1
  88. package/public/sections/queue/parts/queue-types.ok.js +1 -1
  89. package/public/sections/queue/parts/queue-workers.ok.js +1 -1
  90. package/public/sections/sync/parts/sync-node-detail.ok.js +1 -1
  91. package/public/sections/sync/parts/sync-retention.ok.js +1 -1
  92. package/public/sections/sync/parts/sync-topology.ok.js +1 -1
  93. package/public/sections/system/modals/data-ops-modal.ok.js +1 -1
  94. package/public/sections/system/parts/system-api-panel.ok.js +1 -1
  95. package/public/sections/system/parts/system-auth-panel.ok.js +1 -1
  96. package/public/sections/system/parts/system-log-history.ok.js +1 -1
  97. package/public/sections/system/parts/system-log.ok.js +1 -1
  98. package/public/sections/system/parts/system-status.ok.js +1 -1
  99. package/public/sections/system/parts/system-sync-panel.ok.js +1 -1
  100. package/public/sections/views/modals/create-view-modal.ok.js +1 -1
  101. package/public/sections/views/parts/view-detail.ok.js +1 -1
  102. package/public/sections/views/parts/views-list.ok.js +1 -1
  103. package/public/sections/views/parts/views-overview.ok.js +1 -1
  104. package/public/setup-app.js +1 -1
  105. package/public/stores/auth-store.js +1 -1
  106. package/public/stores/events-store.js +1 -1
  107. package/public/stores/functions-store.js +1 -1
  108. package/public/stores/okdb-store.js +1 -1
  109. package/public/stores/theme-store.js +1 -1
  110. package/public/util/permissions.js +1 -1
  111. package/public/util/sift-schema.js +1 -1
  112. package/public/vendor/okjs/ok.esm.min.js +1 -2
  113. package/public/vendor/okjs/toolkit/behavior/async.ok.js +1 -1
  114. package/public/vendor/okjs/toolkit/components/ok-chart.ok.js +1 -1
  115. package/public/vendor/okjs/toolkit/components/ok-doc-viewer.ok.js +1 -1
  116. package/public/vendor/okjs/toolkit/components/ok-marked.ok.js +1 -1
  117. package/public/vendor/okjs/toolkit/components/ok-monaco.ok.js +1 -1
  118. package/public/vendor/okjs/toolkit/core/ok-layer-service.ok.js +1 -1
  119. package/public/vendor/okjs/toolkit/core/ok-layer.ok.js +1 -1
  120. package/public/vendor/okjs/toolkit/core/ok-overlay.ok.js +1 -1
  121. package/public/vendor/okjs/toolkit/core/ok-sandbox.ok.js +1 -1
  122. package/public/vendor/okjs/toolkit/core/transition.ok.js +1 -1
  123. package/public/vendor/okjs/toolkit/core/virtualized.ok.js +1 -1
  124. package/public/vendor/okjs/toolkit/devtools/ok-console-service.ok.js +1 -1
  125. package/public/vendor/okjs/toolkit/devtools/ok-console.ok.js +1 -1
  126. package/public/vendor/okjs/toolkit/devtools/ok-fps-monitor-service.ok.js +1 -1
  127. package/public/vendor/okjs/toolkit/devtools/ok-fps-monitor.ok.js +1 -1
  128. package/public/vendor/okjs/toolkit/devtools/ok-inspector-service.ok.js +1 -1
  129. package/public/vendor/okjs/toolkit/devtools/ok-inspector.ok.js +1 -1
  130. package/public/vendor/okjs/toolkit/devtools/ok-js-tree.ok.js +1 -1
  131. package/public/vendor/okjs/toolkit/devtools/ok-timeline-service.ok.js +1 -1
  132. package/public/vendor/okjs/toolkit/devtools/ok-timeline.ok.js +1 -1
  133. package/public/vendor/okjs/toolkit/docs/doc-viewer.ok.js +1 -1
  134. package/public/vendor/okjs/toolkit/editor/ok-live-component.ok.js +1 -1
  135. package/public/vendor/okjs/toolkit/editor/ok-live-example.ok.js +1 -1
  136. package/public/vendor/okjs/toolkit/editor/ok-live-shell.ok.js +1 -1
  137. package/public/vendor/okjs/toolkit/elements/ok-dropdown.ok.js +1 -1
  138. package/public/vendor/okjs/toolkit/elements/ok-icon.ok.js +1 -1
  139. package/public/vendor/okjs/toolkit/elements/ok-select.ok.js +1 -1
  140. package/public/vendor/okjs/toolkit/elements/ok-table.ok.js +1 -1
  141. package/public/vendor/okjs/toolkit/errors/ok-crash-boundary.ok.js +1 -1
  142. package/public/vendor/okjs/toolkit/errors/ok-crash-info.ok.js +1 -1
  143. package/public/vendor/okjs/toolkit/i18n/i18n-editor-examples.ok.js +1 -1
  144. package/public/vendor/okjs/toolkit/i18n/i18n-editor.ok.js +1 -1
  145. package/public/vendor/okjs/toolkit/i18n/i18n-key-editor-tips.ok.js +1 -1
  146. package/public/vendor/okjs/toolkit/i18n/i18n-key-editor.ok.js +1 -1
  147. package/public/vendor/okjs/toolkit/i18n/i18n-service.ok.js +1 -1
  148. package/public/vendor/okjs/toolkit/i18n/ok-i18n.js +1 -1
  149. package/public/vendor/okjs/toolkit/interaction/ok-contextmenu.ok.js +1 -1
  150. package/public/vendor/okjs/toolkit/interaction/ok-dismiss-service.ok.js +1 -1
  151. package/public/vendor/okjs/toolkit/interaction/ok-draggable.ok.js +1 -1
  152. package/public/vendor/okjs/toolkit/interaction/ok-flyover-panel.ok.js +1 -1
  153. package/public/vendor/okjs/toolkit/interaction/ok-flyover.ok.js +1 -1
  154. package/public/vendor/okjs/toolkit/interaction/ok-highlight-service.ok.js +1 -1
  155. package/public/vendor/okjs/toolkit/interaction/ok-highlight.ok.js +1 -1
  156. package/public/vendor/okjs/toolkit/interaction/ok-hotkeys-service.ok.js +1 -1
  157. package/public/vendor/okjs/toolkit/interaction/ok-picker-service.ok.js +1 -1
  158. package/public/vendor/okjs/toolkit/interaction/ok-popout-service.ok.js +1 -1
  159. package/public/vendor/okjs/toolkit/interaction/ok-popout.ok.js +1 -1
  160. package/public/vendor/okjs/toolkit/interaction/ok-portal-service.ok.js +1 -1
  161. package/public/vendor/okjs/toolkit/interaction/ok-submenu.ok.js +1 -1
  162. package/public/vendor/okjs/toolkit/layout/ok-resizer.ok.js +1 -1
  163. package/public/vendor/okjs/toolkit/manifest.js +1 -1
  164. package/public/vendor/okjs/toolkit/modals/ok-modal-service.ok.js +1 -1
  165. package/public/vendor/okjs/toolkit/modals/ok-modal.ok.js +1 -1
  166. package/public/vendor/okjs/toolkit/modals/ok-toast-service.ok.js +1 -1
  167. package/public/vendor/okjs/toolkit/modals/ok-window.ok.js +1 -1
  168. package/public/vendor/okjs/toolkit/navigation/hash-router.ok.js +1 -1
  169. package/public/vendor/okjs/toolkit/navigation/history-router.ok.js +1 -1
  170. package/public/vendor/okjs/toolkit/navigation/router.ok.js +1 -1
  171. package/public/vendor/okjs/toolkit/sync/reactive-sync-service.ok.js +1 -1
  172. package/public/vendor/okjs/toolkit/sync/reactive-sync.js +1 -1
  173. package/public/vendor/okjs/toolkit/theming/blocks/ok-design-button.css.js +1 -1
  174. package/public/vendor/okjs/toolkit/theming/blocks/ok-design-input.css.js +1 -1
  175. package/public/vendor/okjs/toolkit/theming/ok-design-style.js +1 -1
  176. package/public/vendor/okjs/toolkit/theming/ok-design-vars.js +1 -1
  177. package/public/vendor/okjs/toolkit/theming/ok-design.ok.js +1 -1
  178. package/public/vendor/okjs/toolkit/theming/ok-theme-editor/ok-theme-editor-input.ok.js +1 -1
  179. package/public/vendor/okjs/toolkit/theming/ok-theme-editor/ok-theme-editor-service.ok.js +1 -1
  180. package/public/vendor/okjs/toolkit/theming/ok-theme-editor/ok-theme-editor-style.js +1 -1
  181. package/public/vendor/okjs/toolkit/theming/ok-theme-editor/ok-theme-editor-utils.js +1 -1
  182. package/public/vendor/okjs/toolkit/theming/ok-theme-editor/ok-theme-editor-variable.ok.js +1 -1
  183. package/public/vendor/okjs/toolkit/theming/ok-theme-editor/ok-theme-editor-vm.js +1 -1
  184. package/public/vendor/okjs/toolkit/theming/ok-theme-editor/ok-theme-editor.ok.js +1 -1
  185. package/public/vendor/okjs/toolkit/theming/ok-theme.ok.js +1 -1
  186. package/public/view-models/type-query-vm.js +1 -1
  187. package/public/images/logo.png +0 -0
  188. package/public/images/logo.svg +0 -333
@@ -1 +1 @@
1
- const _0x2effc4=_0x3667;function _0x479a(){const _0x13f167=['stopped','$watch','length','halted','$dispatch','views-overview','/meta','Failed\x20to\x20load\x20views','type','/views/','952362LothwU','129240vJaLcv','all','load','data','2593232EDamJQ','json','clock','resetting','filter','unknown','755380JNubYl','selectedEnv','<div\x20class=\x22vo-wrap\x22><div\x20style=\x22display:flex;\x20align-items:center;\x20gap:10px;\x22><div\x20style=\x22font-weight:600;\x20font-size:18px;\x22>Views\x20Overview</div><if\x20:=\x22loading\x22><span\x20style=\x22font-size:12px;\x20opacity:.4;\x22>loading…</span></if><div\x20style=\x22margin-left:auto;\x22><button\x20@click=\x22load()\x22\x20:disabled=\x22loading\x22\x20style=\x22font-size:12px;\x20padding:5px\x2012px;\x20opacity:.75;\x22>↻\x20Refresh</button></div></div><if\x20:=\x22error\x22><div\x20class=\x22vo-error-banner\x22>{{\x20error\x20}}</div></if><div\x20class=\x22vo-stat-row\x22><div\x20class=\x22vo-stat-card\x22\x20:class=\x22filterState\x20===\x20null\x20?\x20\x27vo-stat-card--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(null)\x22\x20title=\x22Show\x20all\x20views\x22><div\x20class=\x22vo-stat-label\x22>Total\x20Views</div><div\x20class=\x22vo-stat-value\x22\x20style=\x22color:var(--okdb-accent);\x22>{{\x20totalCount\x20}}</div></div><div\x20class=\x22vo-stat-card\x22\x20:class=\x22filterState\x20===\x20\x27ready\x27\x20?\x20\x27vo-stat-card--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(\x27ready\x27)\x22\x20title=\x22Filter:\x20ready\x22><div\x20class=\x22vo-stat-label\x22>Ready</div><div\x20class=\x22vo-stat-value\x22\x20style=\x22color:var(--okdb-success);\x22>{{\x20readyCount\x20}}</div></div><div\x20class=\x22vo-stat-card\x22\x20:class=\x22filterState\x20===\x20\x27halted\x27\x20?\x20\x27vo-stat-card--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(\x27halted\x27)\x22\x20title=\x22Filter:\x20halted\x22><div\x20class=\x22vo-stat-label\x22>Halted</div><div\x20class=\x22vo-stat-value\x22\x20style=\x22color:var(--okdb-danger);\x22>{{\x20haltedCount\x20}}</div></div><div\x20class=\x22vo-stat-card\x22\x20:class=\x22filterState\x20===\x20\x27stopped\x27\x20?\x20\x27vo-stat-card--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(\x27stopped\x27)\x22\x20title=\x22Filter:\x20stopped\x22><div\x20class=\x22vo-stat-label\x22>Stopped</div><div\x20class=\x22vo-stat-value\x22\x20style=\x22color:var(--okdb-warning);\x22>{{\x20stoppedCount\x20}}</div></div></div><if\x20:=\x22!loading\x20&&\x20totalCount\x20===\x200\x20&&\x20!error\x22><div\x20class=\x22vo-empty\x22><div\x20style=\x22font-size:32px;\x20opacity:.15;\x22>⊞</div><div\x20style=\x22font-weight:600;\x20font-size:15px;\x22>No\x20views\x20yet</div><div\x20style=\x22font-size:13px;\x20opacity:.55;\x20line-height:1.7;\x20max-width:320px;\x22>Views\x20are\x20materialized\x20projections\x20over\x20your\x20data.\x20Use\x20<b>+\x20Create\x20View</b>\x20in\x20the\x20sidebar\x20to\x20define\x20one.</div></div></if><if\x20:=\x22totalCount\x20>\x200\x22><div\x20class=\x22vo-card\x22><div\x20class=\x22vo-card-head\x22><span\x20style=\x22font-weight:600;\x20font-size:14px;\x22>Views</span><if\x20:=\x22inProgressCount\x20>\x200\x22><span\x20style=\x22font-size:11px;\x20padding:2px\x208px;\x20border-radius:999px;\x20border:1px\x20solid\x20color-mix(in\x20srgb,\x20var(--okdb-sky)\x2030%,\x20transparent);\x20color:var(--okdb-sky);\x20background:color-mix(in\x20srgb,\x20var(--okdb-sky)\x206%,\x20transparent);\x22>{{\x20inProgressCount\x20}}\x20in\x20progress</span></if><div\x20style=\x22margin-left:auto;\x22\x20class=\x22vo-filter-bar\x22><span\x20style=\x22font-size:11px;\x20opacity:.4;\x22>Filter:</span>\x20<button\x20class=\x22vo-filter-pill\x22\x20:class=\x22filterState\x20===\x20null\x20?\x20\x27vo-filter-pill--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(null)\x22>All</button>\x20<button\x20class=\x22vo-filter-pill\x22\x20:class=\x22filterState\x20===\x20\x27ready\x27\x20?\x20\x27vo-filter-pill--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(\x27ready\x27)\x22><span\x20class=\x22vo-state-dot\x22\x20style=\x22background:var(--okdb-success);\x22/>ready</button>\x20<button\x20class=\x22vo-filter-pill\x22\x20:class=\x22filterState\x20===\x20\x27halted\x27\x20?\x20\x27vo-filter-pill--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(\x27halted\x27)\x22><span\x20class=\x22vo-state-dot\x22\x20style=\x22background:var(--okdb-danger);\x22/>halted</button>\x20<button\x20class=\x22vo-filter-pill\x22\x20:class=\x22filterState\x20===\x20\x27stopped\x27\x20?\x20\x27vo-filter-pill--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(\x27stopped\x27)\x22><span\x20class=\x22vo-state-dot\x22\x20style=\x22background:var(--okdb-warning);\x22/>stopped</button></div></div><table\x20class=\x22vo-table\x22><thead><tr><th>Name</th><th>Type</th><th>State</th><th\x20style=\x22text-align:right;\x22>Clock</th><th>Error</th><th/></tr></thead><tbody><tr\x20as=\x22repeat\x22\x20:of=\x22filteredViews\x22\x20let:item=\x22v\x22\x20class=\x22vo-row\x22\x20@click=\x22selectView(v)\x22\x20title=\x22Open\x20view\x22><td><span\x20style=\x22font-family:monospace;\x20font-size:13px;\x20font-weight:500;\x22>{{\x20v.name\x20}}</span></td><td><span\x20style=\x22font-family:monospace;\x20font-size:12px;\x20opacity:.7;\x22>{{\x20v.type\x20}}</span></td><td><span\x20style=\x22display:inline-flex;\x20align-items:center;\x20gap:5px;\x22><span\x20class=\x22vo-state-dot\x22\x20:style=\x22\x27background:\x27\x20+\x20stateColor(v.state)\x22/>\x20<span\x20:style=\x22\x27font-size:12px;\x20color:\x27\x20+\x20stateColor(v.state)\x22>{{\x20v.state\x20}}</span></span></td><td\x20style=\x22text-align:right;\x20font-family:monospace;\x20font-size:12px;\x20opacity:.5;\x22>{{\x20fmt(v.clock)\x20}}</td><td\x20style=\x22max-width:260px;\x22><if\x20:=\x22v.error\x22><span\x20style=\x22font-size:11px;\x20color:var(--okdb-danger);\x20overflow:hidden;\x20text-overflow:ellipsis;\x20white-space:nowrap;\x20display:block;\x22\x20:title=\x22v.error\x22>{{\x20v.error\x20}}</span></if></td><td\x20style=\x22text-align:right;\x20opacity:.3;\x20font-size:11px;\x20padding-right:16px;\x22>→</td></tr><if\x20:=\x22filteredViews.length\x20===\x200\x22><tr><td\x20colspan=\x226\x22\x20style=\x22text-align:center;\x20padding:20px;\x20font-size:12px;\x20opacity:.4;\x22>No\x20views\x20match\x20this\x20filter.</td></tr></if></tbody></table></div></if><if\x20:=\x22haltedWithErrors.length\x20>\x200\x22><div\x20class=\x22vo-card\x22><div\x20class=\x22vo-card-head\x22><span\x20style=\x22font-weight:600;\x20font-size:14px;\x22>Errors</span>\x20<span\x20style=\x22font-size:11px;\x20padding:2px\x2010px;\x20border-radius:999px;\x20border:1px\x20solid\x20color-mix(in\x20srgb,\x20var(--okdb-danger)\x2033%,\x20transparent);\x20color:var(--okdb-danger);\x20background:color-mix(in\x20srgb,\x20var(--okdb-danger)\x205%,\x20transparent);\x20font-weight:600;\x22>{{\x20haltedWithErrors.length\x20}}\x20</span><span\x20style=\x22font-size:12px;\x20opacity:.4;\x20margin-left:auto;\x22>halted\x20views\x20with\x20error\x20details</span></div><div\x20style=\x22padding:14px\x2016px;\x20display:flex;\x20flex-direction:column;\x20gap:8px;\x22><each\x20:of=\x22haltedWithErrors\x22\x20let:item=\x22v\x22><div\x20class=\x22vo-error-card\x22\x20style=\x22cursor:pointer;\x22\x20@click=\x22selectView(v)\x22\x20title=\x22Open\x20view\x22><div\x20style=\x22display:flex;\x20align-items:center;\x20gap:8px;\x22><span\x20class=\x22vo-error-name\x22>{{\x20v.name\x20}}</span><if\x20:=\x22v.type\x22><span\x20style=\x22font-size:10px;\x20font-family:monospace;\x20opacity:.5;\x22>{{\x20v.type\x20}}</span></if><span\x20style=\x22margin-left:auto;\x20font-size:11px;\x20opacity:.5;\x22>clock\x20{{\x20fmt(v.clock)\x20}}</span></div><div\x20class=\x22vo-error-msg\x22>{{\x20v.error\x20}}</div></div></each></div></div></if></div>','select','message','error','ready','apiBase','views','1050964QvhHCq','views-overview{display:block}views-overview\x20.vo-wrap{display:flex;flex-direction:column;gap:20px;max-width:860px}views-overview\x20.vo-stat-row{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}views-overview\x20.vo-stat-card{background:var(--okdb-app-surface);border:1px\x20solid\x20var(--okdb-app-border);border-radius:12px;padding:16px\x2018px;display:flex;flex-direction:column;gap:6px;box-shadow:0\x202px\x208px\x20#0003;cursor:pointer;transition:border-color\x20.15s,box-shadow\x20.15s}views-overview\x20.vo-stat-card:hover{border-color:var(--okdb-app-border-strong)}views-overview\x20.vo-stat-card--active{border-color:color-mix(in\x20srgb,var(--okdb-accent)\x2050%,transparent)!important;box-shadow:0\x200\x200\x201px\x20color-mix(in\x20srgb,var(--okdb-accent)\x2015%,transparent),0\x202px\x208px\x20#0003}views-overview\x20.vo-stat-label{font-size:11px;text-transform:uppercase;letter-spacing:.06em;opacity:.5}views-overview\x20.vo-stat-value{font-size:22px;font-weight:700;line-height:1}views-overview\x20.vo-card{background:var(--okdb-app-surface);border:1px\x20solid\x20var(--okdb-app-border);border-radius:12px;overflow:hidden;box-shadow:0\x202px\x208px\x20#0003}views-overview\x20.vo-card-head{padding:13px\x2016px;border-bottom:1px\x20solid\x20var(--okdb-app-border);display:flex;align-items:center;gap:10px}views-overview\x20.vo-table{width:100%;border-collapse:collapse;font-size:13px}views-overview\x20.vo-table\x20th{padding:7px\x2016px;text-align:left;font-weight:500;font-size:10px;text-transform:uppercase;letter-spacing:.05em;opacity:.4;border-bottom:1px\x20solid\x20var(--okdb-app-border);background:var(--okdb-app-bg)}views-overview\x20.vo-table\x20td{padding:9px\x2016px;border-bottom:1px\x20solid\x20var(--okdb-app-surface-2)}views-overview\x20.vo-row{cursor:pointer;transition:background\x20.1s}views-overview\x20.vo-row:hover\x20td{background:#ffffff07}views-overview\x20.vo-table\x20tbody\x20tr:last-child\x20td{border-bottom:none}views-overview\x20.vo-filter-bar{display:flex;align-items:center;gap:6px;flex-wrap:wrap}views-overview\x20.vo-filter-pill{display:inline-flex;align-items:center;gap:5px;padding:3px\x2010px;border-radius:999px;border:1px\x20solid\x20var(--okdb-app-border);font-size:11px;cursor:pointer;background:0\x200;color:var(--okdb-app-fg-muted);transition:all\x20.15s}views-overview\x20.vo-filter-pill:hover{border-color:var(--okdb-app-border-strong);color:var(--okdb-app-fg)}views-overview\x20.vo-filter-pill--active{background:color-mix(in\x20srgb,var(--okdb-accent)\x2012%,transparent);border-color:color-mix(in\x20srgb,var(--okdb-accent)\x2040%,transparent);color:var(--okdb-accent)}views-overview\x20.vo-state-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0;display:inline-block}views-overview\x20.vo-error-card{background:color-mix(in\x20srgb,var(--okdb-danger)\x205%,transparent);border:1px\x20solid\x20color-mix(in\x20srgb,var(--okdb-danger)\x2020%,transparent);border-radius:8px;padding:10px\x2014px;display:flex;flex-direction:column;gap:4px}views-overview\x20.vo-error-name{font-family:monospace;font-size:12px;font-weight:600;color:var(--okdb-danger)}views-overview\x20.vo-error-msg{font-size:12px;color:var(--okdb-app-fg-muted);line-height:1.5;word-break:break-all}views-overview\x20.vo-empty{border:1px\x20dashed\x20var(--okdb-app-border);border-radius:14px;padding:40px\x2032px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:12px}views-overview\x20.vo-error-banner{font-size:12px;color:var(--okdb-danger);padding:10px\x2014px;background:color-mix(in\x20srgb,var(--okdb-danger)\x207%,transparent);border:1px\x20solid\x20color-mix(in\x20srgb,var(--okdb-danger)\x2020%,transparent);border-radius:8px}','result','filterState','3oiSEiv','/definition','state','creating','okdb','$ok','var(--okdb-danger)','714483deozdi','/views','refs','10614Qwyrlh','stores','loading','var(--okdb-warning)'];_0x479a=function(){return _0x13f167;};return _0x479a();}function _0x3667(_0x2d7b75,_0x2cbfdb){_0x2d7b75=_0x2d7b75-0x156;const _0x479af7=_0x479a();let _0x3667ba=_0x479af7[_0x2d7b75];return _0x3667ba;}(function(_0x1d5894,_0x369f62){const _0x23ba4d=_0x3667,_0x586bac=_0x1d5894();while(!![]){try{const _0x337173=-parseInt(_0x23ba4d(0x174))/0x1+parseInt(_0x23ba4d(0x182))/0x2+-parseInt(_0x23ba4d(0x16a))/0x3*(-parseInt(_0x23ba4d(0x166))/0x4)+-parseInt(_0x23ba4d(0x15d))/0x5+-parseInt(_0x23ba4d(0x183))/0x6+parseInt(_0x23ba4d(0x171))/0x7+-parseInt(_0x23ba4d(0x157))/0x8;if(_0x337173===_0x369f62)break;else _0x586bac['push'](_0x586bac['shift']());}catch(_0x2656e7){_0x586bac['push'](_0x586bac['shift']());}}}(_0x479a,0x51727));export default{'tag':_0x2effc4(0x17d),'context':_0xce92f4=>({'views':[],'loading':!0x1,'error':null,'filterState':null,async 'load'(){const _0x5409a4=_0x2effc4;this[_0x5409a4(0x176)]=!0x0,this['error']=null;try{const _0x25b95d=_0xce92f4[_0x5409a4(0x16f)][_0x5409a4(0x175)][_0x5409a4(0x16e)][_0x5409a4(0x164)],_0x421a15=await fetch(_0x25b95d+_0x5409a4(0x172));if(!_0x421a15['ok'])throw new Error(_0x5409a4(0x17f));const _0x513430=await _0x421a15[_0x5409a4(0x158)](),_0xe9b6aa=_0x513430[_0x5409a4(0x156)]??_0x513430[_0x5409a4(0x168)]??[],_0x144ccd=await Promise['all'](_0xe9b6aa['map'](async _0x3ceca3=>{const _0x9d4500=_0x5409a4,[_0x43209e,_0x5bdcb4]=await Promise[_0x9d4500(0x184)]([fetch(_0x25b95d+_0x9d4500(0x181)+_0x3ceca3+_0x9d4500(0x17e)),fetch(_0x25b95d+_0x9d4500(0x181)+_0x3ceca3+_0x9d4500(0x16b))]),_0x3d3948=_0x43209e['ok']?await _0x43209e[_0x9d4500(0x158)]():{},_0x4237b8=_0x5bdcb4['ok']?await _0x5bdcb4['json']():{},_0x21d849=_0x3d3948[_0x9d4500(0x156)]??_0x3d3948['result']??{},_0x591cb4=_0x4237b8[_0x9d4500(0x156)]??_0x4237b8[_0x9d4500(0x168)]??{};return{'name':_0x3ceca3,'state':_0x21d849?.['state']??_0x9d4500(0x15c),'type':_0x591cb4?.[_0x9d4500(0x180)]??'?','clock':_0x21d849?.[_0x9d4500(0x159)]??null,'error':_0x21d849?.[_0x9d4500(0x162)]??null,'refs':_0x21d849?.[_0x9d4500(0x173)]??null};}));this[_0x5409a4(0x165)]=_0x144ccd;}catch(_0x140b6a){this[_0x5409a4(0x162)]=_0x140b6a[_0x5409a4(0x161)];}finally{this[_0x5409a4(0x176)]=!0x1;}},get 'totalCount'(){const _0x4644d1=_0x2effc4;return this['views'][_0x4644d1(0x17a)];},get 'readyCount'(){const _0x5641e5=_0x2effc4;return this[_0x5641e5(0x165)][_0x5641e5(0x15b)](_0x2729b9=>_0x5641e5(0x163)===_0x2729b9[_0x5641e5(0x16c)])['length'];},get 'haltedCount'(){const _0x230b6d=_0x2effc4;return this['views'][_0x230b6d(0x15b)](_0x5b53b8=>_0x230b6d(0x17b)===_0x5b53b8[_0x230b6d(0x16c)])[_0x230b6d(0x17a)];},get 'stoppedCount'(){const _0x3db6dd=_0x2effc4;return this[_0x3db6dd(0x165)]['filter'](_0xa0a4ac=>_0x3db6dd(0x178)===_0xa0a4ac[_0x3db6dd(0x16c)])[_0x3db6dd(0x17a)];},get 'inProgressCount'(){const _0x5b696e=_0x2effc4;return this['views'][_0x5b696e(0x15b)](_0x211173=>_0x5b696e(0x16d)===_0x211173[_0x5b696e(0x16c)]||_0x5b696e(0x15a)===_0x211173[_0x5b696e(0x16c)])['length'];},get 'filteredViews'(){const _0x136ec3=_0x2effc4;return this[_0x136ec3(0x169)]?this[_0x136ec3(0x165)][_0x136ec3(0x15b)](_0x5c8ef8=>_0x5c8ef8[_0x136ec3(0x16c)]===this[_0x136ec3(0x169)]):this['views'];},get 'haltedWithErrors'(){const _0x2062ee=_0x2effc4;return this['views'][_0x2062ee(0x15b)](_0x4a9747=>_0x2062ee(0x17b)===_0x4a9747[_0x2062ee(0x16c)]&&_0x4a9747[_0x2062ee(0x162)]);},'toggleFilter'(_0x4b33e0){const _0x309f80=_0x2effc4;this[_0x309f80(0x169)]=this[_0x309f80(0x169)]===_0x4b33e0?null:_0x4b33e0;},'stateColor'(_0x42f230){const _0x56f608=_0x2effc4;switch(_0x42f230){case _0x56f608(0x163):return'var(--okdb-success)';case _0x56f608(0x16d):case _0x56f608(0x15a):return'var(--okdb-sky)';case _0x56f608(0x17b):return _0x56f608(0x170);case _0x56f608(0x178):return _0x56f608(0x177);default:return'var(--okdb-app-fg-muted)';}},'fmt':_0x5dcee4=>null==_0x5dcee4?'—':Number(_0x5dcee4)['toLocaleString'](),'selectView'(_0x23ae4b){const _0x4e9f47=_0x2effc4;_0xce92f4[_0x4e9f47(0x17c)](_0x4e9f47(0x160),_0x23ae4b['name']);}}),'mount'(_0x1aaa54){const _0x49cfbe=_0x2effc4;_0x1aaa54[_0x49cfbe(0x179)](()=>_0x1aaa54[_0x49cfbe(0x16f)][_0x49cfbe(0x175)]['okdb'][_0x49cfbe(0x15e)],()=>{const _0x1ee8fb=_0x49cfbe;this[_0x1ee8fb(0x169)]=null,this[_0x1ee8fb(0x185)]();}),this['load']();},'style':_0x2effc4(0x167),'template':_0x2effc4(0x15f)};
1
+ const _0x56df0e=_0x5a4c;function _0x5a4c(_0x12775d,_0x1b5865){_0x12775d=_0x12775d-0x1ab;const _0x1639ac=_0x1639();let _0x5a4c05=_0x1639ac[_0x12775d];return _0x5a4c05;}(function(_0x5c759b,_0x214a59){const _0x14da6a=_0x5a4c,_0xf139cb=_0x5c759b();while(!![]){try{const _0x436c75=-parseInt(_0x14da6a(0x1b8))/0x1*(-parseInt(_0x14da6a(0x1d5))/0x2)+parseInt(_0x14da6a(0x1ae))/0x3+-parseInt(_0x14da6a(0x1d0))/0x4*(parseInt(_0x14da6a(0x1cf))/0x5)+-parseInt(_0x14da6a(0x1d7))/0x6*(-parseInt(_0x14da6a(0x1b2))/0x7)+parseInt(_0x14da6a(0x1bb))/0x8+-parseInt(_0x14da6a(0x1c6))/0x9+-parseInt(_0x14da6a(0x1be))/0xa;if(_0x436c75===_0x214a59)break;else _0xf139cb['push'](_0xf139cb['shift']());}catch(_0x5ec170){_0xf139cb['push'](_0xf139cb['shift']());}}}(_0x1639,0xf05d1));export default{'tag':_0x56df0e(0x1da),'context':_0x4eede0=>({'views':[],'loading':!0x1,'error':null,'filterState':null,async 'load'(){const _0x468821=_0x56df0e;this['loading']=!0x0,this['error']=null;try{const _0x28d676=_0x4eede0[_0x468821(0x1c2)]['stores'][_0x468821(0x1bc)][_0x468821(0x1d2)],_0x4c0c12=await fetch(_0x28d676+_0x468821(0x1c4));if(!_0x4c0c12['ok'])throw new Error(_0x468821(0x1ab));const _0x5b2aa0=await _0x4c0c12['json'](),_0x16bef1=_0x5b2aa0[_0x468821(0x1b6)]??_0x5b2aa0['result']??[],_0x52f7bd=await Promise[_0x468821(0x1ca)](_0x16bef1[_0x468821(0x1ce)](async _0x359123=>{const _0x59095f=_0x468821,[_0x2f1147,_0x36145f]=await Promise[_0x59095f(0x1ca)]([fetch(_0x28d676+_0x59095f(0x1b3)+_0x359123+'/meta'),fetch(_0x28d676+'/views/'+_0x359123+'/definition')]),_0x4408e2=_0x2f1147['ok']?await _0x2f1147[_0x59095f(0x1d4)]():{},_0x4220fb=_0x36145f['ok']?await _0x36145f[_0x59095f(0x1d4)]():{},_0x3a47a6=_0x4408e2[_0x59095f(0x1b6)]??_0x4408e2[_0x59095f(0x1ba)]??{},_0x4170c8=_0x4220fb['data']??_0x4220fb[_0x59095f(0x1ba)]??{};return{'name':_0x359123,'state':_0x3a47a6?.[_0x59095f(0x1c3)]??'unknown','type':_0x4170c8?.[_0x59095f(0x1cb)]??'?','clock':_0x3a47a6?.[_0x59095f(0x1af)]??null,'error':_0x3a47a6?.['error']??null,'refs':_0x3a47a6?.[_0x59095f(0x1c7)]??null};}));this[_0x468821(0x1b4)]=_0x52f7bd;}catch(_0xd6fe29){this[_0x468821(0x1b0)]=_0xd6fe29[_0x468821(0x1c0)];}finally{this[_0x468821(0x1c8)]=!0x1;}},get 'totalCount'(){const _0x808233=_0x56df0e;return this['views'][_0x808233(0x1ad)];},get 'readyCount'(){const _0x275be9=_0x56df0e;return this['views'][_0x275be9(0x1b7)](_0x35681d=>_0x275be9(0x1bf)===_0x35681d['state'])[_0x275be9(0x1ad)];},get 'haltedCount'(){const _0x577c82=_0x56df0e;return this[_0x577c82(0x1b4)]['filter'](_0x194c58=>_0x577c82(0x1cc)===_0x194c58[_0x577c82(0x1c3)])['length'];},get 'stoppedCount'(){const _0x2d2cdd=_0x56df0e;return this[_0x2d2cdd(0x1b4)]['filter'](_0x318745=>_0x2d2cdd(0x1c1)===_0x318745[_0x2d2cdd(0x1c3)])[_0x2d2cdd(0x1ad)];},get 'inProgressCount'(){const _0x482fca=_0x56df0e;return this[_0x482fca(0x1b4)][_0x482fca(0x1b7)](_0x5e851d=>'creating'===_0x5e851d[_0x482fca(0x1c3)]||_0x482fca(0x1b5)===_0x5e851d[_0x482fca(0x1c3)])[_0x482fca(0x1ad)];},get 'filteredViews'(){const _0x345b7a=_0x56df0e;return this[_0x345b7a(0x1ac)]?this['views']['filter'](_0x125e68=>_0x125e68['state']===this[_0x345b7a(0x1ac)]):this[_0x345b7a(0x1b4)];},get 'haltedWithErrors'(){const _0x273c4b=_0x56df0e;return this[_0x273c4b(0x1b4)][_0x273c4b(0x1b7)](_0x48e35e=>'halted'===_0x48e35e[_0x273c4b(0x1c3)]&&_0x48e35e[_0x273c4b(0x1b0)]);},'toggleFilter'(_0x40ca3f){const _0x580f66=_0x56df0e;this['filterState']=this[_0x580f66(0x1ac)]===_0x40ca3f?null:_0x40ca3f;},'stateColor'(_0x4e3901){const _0x15b234=_0x56df0e;switch(_0x4e3901){case _0x15b234(0x1bf):return _0x15b234(0x1b9);case'creating':case'resetting':return'var(--okdb-sky)';case'halted':return _0x15b234(0x1c5);case _0x15b234(0x1c1):return'var(--okdb-warning)';default:return _0x15b234(0x1d9);}},'fmt':_0xb9add5=>null==_0xb9add5?'—':Number(_0xb9add5)['toLocaleString'](),'selectView'(_0x17b65e){const _0x2a8424=_0x56df0e;_0x4eede0[_0x2a8424(0x1b1)](_0x2a8424(0x1bd),_0x17b65e[_0x2a8424(0x1d6)]);}}),'mount'(_0x2b3620){const _0xed82ac=_0x56df0e;_0x2b3620['$watch'](()=>_0x2b3620['$ok'][_0xed82ac(0x1d3)]['okdb'][_0xed82ac(0x1d1)],()=>{const _0x1cc976=_0xed82ac;this[_0x1cc976(0x1ac)]=null,this[_0x1cc976(0x1cd)]();}),this[_0xed82ac(0x1cd)]();},'style':_0x56df0e(0x1d8),'template':_0x56df0e(0x1c9)};function _0x1639(){const _0x39ea2e=['views-overview','Failed\x20to\x20load\x20views','filterState','length','3981984DlhSNq','clock','error','$dispatch','462959ySjKBH','/views/','views','resetting','data','filter','5680GNORIu','var(--okdb-success)','result','1760120jrhPfU','okdb','select','6326630LBOaOV','ready','message','stopped','$ok','state','/views','var(--okdb-danger)','13262229OdTuMX','refs','loading','<div\x20class=\x22vo-wrap\x22><div\x20style=\x22display:flex;\x20align-items:center;\x20gap:10px;\x22><div\x20style=\x22font-weight:600;\x20font-size:18px;\x22>Views\x20Overview</div><if\x20:=\x22loading\x22><span\x20style=\x22font-size:12px;\x20opacity:.4;\x22>loading…</span></if><div\x20style=\x22margin-left:auto;\x22><button\x20@click=\x22load()\x22\x20:disabled=\x22loading\x22\x20style=\x22font-size:12px;\x20padding:5px\x2012px;\x20opacity:.75;\x22>↻\x20Refresh</button></div></div><if\x20:=\x22error\x22><div\x20class=\x22vo-error-banner\x22>{{\x20error\x20}}</div></if><div\x20class=\x22vo-stat-row\x22><div\x20class=\x22vo-stat-card\x22\x20:class=\x22filterState\x20===\x20null\x20?\x20\x27vo-stat-card--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(null)\x22\x20title=\x22Show\x20all\x20views\x22><div\x20class=\x22vo-stat-label\x22>Total\x20Views</div><div\x20class=\x22vo-stat-value\x22\x20style=\x22color:var(--okdb-accent);\x22>{{\x20totalCount\x20}}</div></div><div\x20class=\x22vo-stat-card\x22\x20:class=\x22filterState\x20===\x20\x27ready\x27\x20?\x20\x27vo-stat-card--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(\x27ready\x27)\x22\x20title=\x22Filter:\x20ready\x22><div\x20class=\x22vo-stat-label\x22>Ready</div><div\x20class=\x22vo-stat-value\x22\x20style=\x22color:var(--okdb-success);\x22>{{\x20readyCount\x20}}</div></div><div\x20class=\x22vo-stat-card\x22\x20:class=\x22filterState\x20===\x20\x27halted\x27\x20?\x20\x27vo-stat-card--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(\x27halted\x27)\x22\x20title=\x22Filter:\x20halted\x22><div\x20class=\x22vo-stat-label\x22>Halted</div><div\x20class=\x22vo-stat-value\x22\x20style=\x22color:var(--okdb-danger);\x22>{{\x20haltedCount\x20}}</div></div><div\x20class=\x22vo-stat-card\x22\x20:class=\x22filterState\x20===\x20\x27stopped\x27\x20?\x20\x27vo-stat-card--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(\x27stopped\x27)\x22\x20title=\x22Filter:\x20stopped\x22><div\x20class=\x22vo-stat-label\x22>Stopped</div><div\x20class=\x22vo-stat-value\x22\x20style=\x22color:var(--okdb-warning);\x22>{{\x20stoppedCount\x20}}</div></div></div><if\x20:=\x22!loading\x20&&\x20totalCount\x20===\x200\x20&&\x20!error\x22><div\x20class=\x22vo-empty\x22><div\x20style=\x22font-size:32px;\x20opacity:.15;\x22>⊞</div><div\x20style=\x22font-weight:600;\x20font-size:15px;\x22>No\x20views\x20yet</div><div\x20style=\x22font-size:13px;\x20opacity:.55;\x20line-height:1.7;\x20max-width:320px;\x22>Views\x20are\x20materialized\x20projections\x20over\x20your\x20data.\x20Use\x20<b>+\x20Create\x20View</b>\x20in\x20the\x20sidebar\x20to\x20define\x20one.</div></div></if><if\x20:=\x22totalCount\x20>\x200\x22><div\x20class=\x22vo-card\x22><div\x20class=\x22vo-card-head\x22><span\x20style=\x22font-weight:600;\x20font-size:14px;\x22>Views</span><if\x20:=\x22inProgressCount\x20>\x200\x22><span\x20style=\x22font-size:11px;\x20padding:2px\x208px;\x20border-radius:999px;\x20border:1px\x20solid\x20color-mix(in\x20srgb,\x20var(--okdb-sky)\x2030%,\x20transparent);\x20color:var(--okdb-sky);\x20background:color-mix(in\x20srgb,\x20var(--okdb-sky)\x206%,\x20transparent);\x22>{{\x20inProgressCount\x20}}\x20in\x20progress</span></if><div\x20style=\x22margin-left:auto;\x22\x20class=\x22vo-filter-bar\x22><span\x20style=\x22font-size:11px;\x20opacity:.4;\x22>Filter:</span>\x20<button\x20class=\x22vo-filter-pill\x22\x20:class=\x22filterState\x20===\x20null\x20?\x20\x27vo-filter-pill--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(null)\x22>All</button>\x20<button\x20class=\x22vo-filter-pill\x22\x20:class=\x22filterState\x20===\x20\x27ready\x27\x20?\x20\x27vo-filter-pill--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(\x27ready\x27)\x22><span\x20class=\x22vo-state-dot\x22\x20style=\x22background:var(--okdb-success);\x22/>ready</button>\x20<button\x20class=\x22vo-filter-pill\x22\x20:class=\x22filterState\x20===\x20\x27halted\x27\x20?\x20\x27vo-filter-pill--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(\x27halted\x27)\x22><span\x20class=\x22vo-state-dot\x22\x20style=\x22background:var(--okdb-danger);\x22/>halted</button>\x20<button\x20class=\x22vo-filter-pill\x22\x20:class=\x22filterState\x20===\x20\x27stopped\x27\x20?\x20\x27vo-filter-pill--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(\x27stopped\x27)\x22><span\x20class=\x22vo-state-dot\x22\x20style=\x22background:var(--okdb-warning);\x22/>stopped</button></div></div><table\x20class=\x22vo-table\x22><thead><tr><th>Name</th><th>Type</th><th>State</th><th\x20style=\x22text-align:right;\x22>Clock</th><th>Error</th><th/></tr></thead><tbody><tr\x20as=\x22repeat\x22\x20:of=\x22filteredViews\x22\x20let:item=\x22v\x22\x20class=\x22vo-row\x22\x20@click=\x22selectView(v)\x22\x20title=\x22Open\x20view\x22><td><span\x20style=\x22font-family:monospace;\x20font-size:13px;\x20font-weight:500;\x22>{{\x20v.name\x20}}</span></td><td><span\x20style=\x22font-family:monospace;\x20font-size:12px;\x20opacity:.7;\x22>{{\x20v.type\x20}}</span></td><td><span\x20style=\x22display:inline-flex;\x20align-items:center;\x20gap:5px;\x22><span\x20class=\x22vo-state-dot\x22\x20:style=\x22\x27background:\x27\x20+\x20stateColor(v.state)\x22/>\x20<span\x20:style=\x22\x27font-size:12px;\x20color:\x27\x20+\x20stateColor(v.state)\x22>{{\x20v.state\x20}}</span></span></td><td\x20style=\x22text-align:right;\x20font-family:monospace;\x20font-size:12px;\x20opacity:.5;\x22>{{\x20fmt(v.clock)\x20}}</td><td\x20style=\x22max-width:260px;\x22><if\x20:=\x22v.error\x22><span\x20style=\x22font-size:11px;\x20color:var(--okdb-danger);\x20overflow:hidden;\x20text-overflow:ellipsis;\x20white-space:nowrap;\x20display:block;\x22\x20:title=\x22v.error\x22>{{\x20v.error\x20}}</span></if></td><td\x20style=\x22text-align:right;\x20opacity:.3;\x20font-size:11px;\x20padding-right:16px;\x22>→</td></tr><if\x20:=\x22filteredViews.length\x20===\x200\x22><tr><td\x20colspan=\x226\x22\x20style=\x22text-align:center;\x20padding:20px;\x20font-size:12px;\x20opacity:.4;\x22>No\x20views\x20match\x20this\x20filter.</td></tr></if></tbody></table></div></if><if\x20:=\x22haltedWithErrors.length\x20>\x200\x22><div\x20class=\x22vo-card\x22><div\x20class=\x22vo-card-head\x22><span\x20style=\x22font-weight:600;\x20font-size:14px;\x22>Errors</span>\x20<span\x20style=\x22font-size:11px;\x20padding:2px\x2010px;\x20border-radius:999px;\x20border:1px\x20solid\x20color-mix(in\x20srgb,\x20var(--okdb-danger)\x2033%,\x20transparent);\x20color:var(--okdb-danger);\x20background:color-mix(in\x20srgb,\x20var(--okdb-danger)\x205%,\x20transparent);\x20font-weight:600;\x22>{{\x20haltedWithErrors.length\x20}}\x20</span><span\x20style=\x22font-size:12px;\x20opacity:.4;\x20margin-left:auto;\x22>halted\x20views\x20with\x20error\x20details</span></div><div\x20style=\x22padding:14px\x2016px;\x20display:flex;\x20flex-direction:column;\x20gap:8px;\x22><each\x20:of=\x22haltedWithErrors\x22\x20let:item=\x22v\x22><div\x20class=\x22vo-error-card\x22\x20style=\x22cursor:pointer;\x22\x20@click=\x22selectView(v)\x22\x20title=\x22Open\x20view\x22><div\x20style=\x22display:flex;\x20align-items:center;\x20gap:8px;\x22><span\x20class=\x22vo-error-name\x22>{{\x20v.name\x20}}</span><if\x20:=\x22v.type\x22><span\x20style=\x22font-size:10px;\x20font-family:monospace;\x20opacity:.5;\x22>{{\x20v.type\x20}}</span></if><span\x20style=\x22margin-left:auto;\x20font-size:11px;\x20opacity:.5;\x22>clock\x20{{\x20fmt(v.clock)\x20}}</span></div><div\x20class=\x22vo-error-msg\x22>{{\x20v.error\x20}}</div></div></each></div></div></if></div>','all','type','halted','load','map','5ryURMf','3149884xRmWFh','selectedEnv','apiBase','stores','json','518iRMwZh','name','78KXJVIz','views-overview{display:block}views-overview\x20.vo-wrap{display:flex;flex-direction:column;gap:20px;max-width:860px}views-overview\x20.vo-stat-row{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}views-overview\x20.vo-stat-card{background:var(--okdb-app-surface);border:1px\x20solid\x20var(--okdb-app-border);border-radius:12px;padding:16px\x2018px;display:flex;flex-direction:column;gap:6px;box-shadow:0\x202px\x208px\x20#0003;cursor:pointer;transition:border-color\x20.15s,box-shadow\x20.15s}views-overview\x20.vo-stat-card:hover{border-color:var(--okdb-app-border-strong)}views-overview\x20.vo-stat-card--active{border-color:color-mix(in\x20srgb,var(--okdb-accent)\x2050%,transparent)!important;box-shadow:0\x200\x200\x201px\x20color-mix(in\x20srgb,var(--okdb-accent)\x2015%,transparent),0\x202px\x208px\x20#0003}views-overview\x20.vo-stat-label{font-size:11px;text-transform:uppercase;letter-spacing:.06em;opacity:.5}views-overview\x20.vo-stat-value{font-size:22px;font-weight:700;line-height:1}views-overview\x20.vo-card{background:var(--okdb-app-surface);border:1px\x20solid\x20var(--okdb-app-border);border-radius:12px;overflow:hidden;box-shadow:0\x202px\x208px\x20#0003}views-overview\x20.vo-card-head{padding:13px\x2016px;border-bottom:1px\x20solid\x20var(--okdb-app-border);display:flex;align-items:center;gap:10px}views-overview\x20.vo-table{width:100%;border-collapse:collapse;font-size:13px}views-overview\x20.vo-table\x20th{padding:7px\x2016px;text-align:left;font-weight:500;font-size:10px;text-transform:uppercase;letter-spacing:.05em;opacity:.4;border-bottom:1px\x20solid\x20var(--okdb-app-border);background:var(--okdb-app-bg)}views-overview\x20.vo-table\x20td{padding:9px\x2016px;border-bottom:1px\x20solid\x20var(--okdb-app-surface-2)}views-overview\x20.vo-row{cursor:pointer;transition:background\x20.1s}views-overview\x20.vo-row:hover\x20td{background:#ffffff07}views-overview\x20.vo-table\x20tbody\x20tr:last-child\x20td{border-bottom:none}views-overview\x20.vo-filter-bar{display:flex;align-items:center;gap:6px;flex-wrap:wrap}views-overview\x20.vo-filter-pill{display:inline-flex;align-items:center;gap:5px;padding:3px\x2010px;border-radius:999px;border:1px\x20solid\x20var(--okdb-app-border);font-size:11px;cursor:pointer;background:0\x200;color:var(--okdb-app-fg-muted);transition:all\x20.15s}views-overview\x20.vo-filter-pill:hover{border-color:var(--okdb-app-border-strong);color:var(--okdb-app-fg)}views-overview\x20.vo-filter-pill--active{background:color-mix(in\x20srgb,var(--okdb-accent)\x2012%,transparent);border-color:color-mix(in\x20srgb,var(--okdb-accent)\x2040%,transparent);color:var(--okdb-accent)}views-overview\x20.vo-state-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0;display:inline-block}views-overview\x20.vo-error-card{background:color-mix(in\x20srgb,var(--okdb-danger)\x205%,transparent);border:1px\x20solid\x20color-mix(in\x20srgb,var(--okdb-danger)\x2020%,transparent);border-radius:8px;padding:10px\x2014px;display:flex;flex-direction:column;gap:4px}views-overview\x20.vo-error-name{font-family:monospace;font-size:12px;font-weight:600;color:var(--okdb-danger)}views-overview\x20.vo-error-msg{font-size:12px;color:var(--okdb-app-fg-muted);line-height:1.5;word-break:break-all}views-overview\x20.vo-empty{border:1px\x20dashed\x20var(--okdb-app-border);border-radius:14px;padding:40px\x2032px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:12px}views-overview\x20.vo-error-banner{font-size:12px;color:var(--okdb-danger);padding:10px\x2014px;background:color-mix(in\x20srgb,var(--okdb-danger)\x207%,transparent);border:1px\x20solid\x20color-mix(in\x20srgb,var(--okdb-danger)\x2020%,transparent);border-radius:8px}','var(--okdb-app-fg-muted)'];_0x1639=function(){return _0x39ea2e;};return _0x1639();}
@@ -1 +1 @@
1
- function _0x2dbd(){const _0x4f8b33=['stringify','submit','createConfirm','trim','346486sTNAXJ','5923128bYkmVE','error','hidden','2258700GLIfvI','184RFNghs','getElementById','replace','location','joinError','textContent','catch','joinForm','368613olQzRB','1408805TzpDsP','Username\x20is\x20required','addEventListener','Failed\x20to\x20join\x20cluster','POST','Cluster\x20sync\x20token\x20is\x20required','28PlWqYl','313653kEovzV','Passwords\x20do\x20not\x20match','joinAddress','message','createPassword','/admin/login','createName','data','createLabel','value','/api/auth/tokens','same-origin','Password\x20is\x20required','/admin/setup/join','json','Failed\x20to\x20create\x20admin\x20token','13108131hhWjHI','preventDefault','application/json'];_0x2dbd=function(){return _0x4f8b33;};return _0x2dbd();}function _0x19db(_0x2324d7,_0x104811){_0x2324d7=_0x2324d7-0x6c;const _0x2dbd7e=_0x2dbd();let _0x19db50=_0x2dbd7e[_0x2324d7];return _0x19db50;}const _0x3267d1=_0x19db;(function(_0x5b15ba,_0x436b6a){const _0x5b3f8f=_0x19db,_0x21c2cc=_0x5b15ba();while(!![]){try{const _0x340b3c=-parseInt(_0x5b3f8f(0x79))/0x1+-parseInt(_0x5b3f8f(0x7d))/0x2+-parseInt(_0x5b3f8f(0x8e))/0x3*(-parseInt(_0x5b3f8f(0x8d))/0x4)+-parseInt(_0x5b3f8f(0x87))/0x5+-parseInt(_0x5b3f8f(0x7a))/0x6+parseInt(_0x5b3f8f(0x86))/0x7*(parseInt(_0x5b3f8f(0x7e))/0x8)+parseInt(_0x5b3f8f(0x72))/0x9;if(_0x340b3c===_0x436b6a)break;else _0x21c2cc['push'](_0x21c2cc['shift']());}catch(_0x51ae38){_0x21c2cc['push'](_0x21c2cc['shift']());}}}(_0x2dbd,0x9fd60),(document[_0x3267d1(0x7f)]('createForm')['addEventListener']('submit',async _0xa60363=>{const _0x17ac78=_0x3267d1;_0xa60363[_0x17ac78(0x73)]();const _0x371c01=document[_0x17ac78(0x7f)]('createError');_0x371c01[_0x17ac78(0x7c)]=!0x0;const _0x9d21f8=document['getElementById'](_0x17ac78(0x94))[_0x17ac78(0x97)][_0x17ac78(0x78)](),_0x409041=document[_0x17ac78(0x7f)](_0x17ac78(0x92))['value'],_0x1e8087=document[_0x17ac78(0x7f)](_0x17ac78(0x77))[_0x17ac78(0x97)],_0x1221c0=document[_0x17ac78(0x7f)](_0x17ac78(0x96))[_0x17ac78(0x97)]['trim']()||'Initial\x20admin';if(!_0x9d21f8)return _0x371c01[_0x17ac78(0x7c)]=!0x1,void(_0x371c01[_0x17ac78(0x83)]=_0x17ac78(0x88));if(!_0x409041)return _0x371c01[_0x17ac78(0x7c)]=!0x1,void(_0x371c01['textContent']=_0x17ac78(0x6e));if(_0x409041!==_0x1e8087)return _0x371c01[_0x17ac78(0x7c)]=!0x1,void(_0x371c01[_0x17ac78(0x83)]=_0x17ac78(0x8f));const _0x17922e=await fetch(_0x17ac78(0x6c),{'method':_0x17ac78(0x8b),'headers':{'content-type':'application/json'},'credentials':_0x17ac78(0x6d),'body':JSON[_0x17ac78(0x75)]({'name':_0x9d21f8,'password':_0x409041,'label':_0x1221c0,'permissions':['*']})}),_0x381373=await _0x17922e['json']()[_0x17ac78(0x84)](()=>({}));if(!_0x17922e['ok'])return _0x371c01[_0x17ac78(0x7c)]=!0x1,void(_0x371c01[_0x17ac78(0x83)]=_0x381373?.['error']?.[_0x17ac78(0x91)]||_0x381373?.[_0x17ac78(0x7b)]||_0x381373?.[_0x17ac78(0x95)]?.[_0x17ac78(0x7b)]||_0x17ac78(0x71));window[_0x17ac78(0x81)][_0x17ac78(0x80)](_0x17ac78(0x93));}),document[_0x3267d1(0x7f)](_0x3267d1(0x85))[_0x3267d1(0x89)](_0x3267d1(0x76),async _0x3ef6dc=>{const _0xf5be48=_0x3267d1;_0x3ef6dc[_0xf5be48(0x73)]();const _0x127fae=document[_0xf5be48(0x7f)](_0xf5be48(0x82));_0x127fae['hidden']=!0x0;const _0x357f48=document[_0xf5be48(0x7f)](_0xf5be48(0x90))[_0xf5be48(0x97)][_0xf5be48(0x78)](),_0x345cf0=document['getElementById']('joinToken')[_0xf5be48(0x97)][_0xf5be48(0x78)]();if(!_0x357f48)return _0x127fae[_0xf5be48(0x7c)]=!0x1,void(_0x127fae[_0xf5be48(0x83)]='Remote\x20node\x20address\x20is\x20required');if(!_0x345cf0)return _0x127fae[_0xf5be48(0x7c)]=!0x1,void(_0x127fae[_0xf5be48(0x83)]=_0xf5be48(0x8c));const _0x1f43d3=await fetch(_0xf5be48(0x6f),{'method':_0xf5be48(0x8b),'headers':{'content-type':_0xf5be48(0x74)},'credentials':_0xf5be48(0x6d),'body':JSON[_0xf5be48(0x75)]({'address':_0x357f48,'token':_0x345cf0})}),_0x2a6f46=await _0x1f43d3[_0xf5be48(0x70)]()[_0xf5be48(0x84)](()=>({}));if(!_0x1f43d3['ok'])return _0x127fae['hidden']=!0x1,void(_0x127fae[_0xf5be48(0x83)]=_0x2a6f46?.['error']?.[_0xf5be48(0x91)]||_0x2a6f46?.['error']||_0x2a6f46?.[_0xf5be48(0x95)]?.[_0xf5be48(0x7b)]||_0xf5be48(0x8a));window[_0xf5be48(0x81)][_0xf5be48(0x80)]('/admin/login');})));
1
+ const _0x338f36=_0x8cb8;function _0x8cb8(_0x61030b,_0x1a3a0d){_0x61030b=_0x61030b-0x185;const _0x17d223=_0x17d2();let _0x8cb895=_0x17d223[_0x61030b];return _0x8cb895;}(function(_0x2931f8,_0x270c05){const _0xe8bf8=_0x8cb8,_0x15debd=_0x2931f8();while(!![]){try{const _0x49a07d=-parseInt(_0xe8bf8(0x192))/0x1*(-parseInt(_0xe8bf8(0x1a5))/0x2)+-parseInt(_0xe8bf8(0x1af))/0x3*(parseInt(_0xe8bf8(0x1ae))/0x4)+parseInt(_0xe8bf8(0x193))/0x5+parseInt(_0xe8bf8(0x18c))/0x6+parseInt(_0xe8bf8(0x18f))/0x7+-parseInt(_0xe8bf8(0x186))/0x8+-parseInt(_0xe8bf8(0x195))/0x9*(-parseInt(_0xe8bf8(0x1ac))/0xa);if(_0x49a07d===_0x270c05)break;else _0x15debd['push'](_0x15debd['shift']());}catch(_0x9f7f49){_0x15debd['push'](_0x15debd['shift']());}}}(_0x17d2,0x3a600),(document[_0x338f36(0x18e)](_0x338f36(0x1a2))[_0x338f36(0x185)](_0x338f36(0x191),async _0x464be5=>{const _0x37f88a=_0x338f36;_0x464be5[_0x37f88a(0x1b0)]();const _0x3bf00f=document[_0x37f88a(0x18e)](_0x37f88a(0x18a));_0x3bf00f[_0x37f88a(0x1a1)]=!0x0;const _0x2821de=document['getElementById'](_0x37f88a(0x197))[_0x37f88a(0x199)][_0x37f88a(0x198)](),_0x4b27b4=document[_0x37f88a(0x18e)](_0x37f88a(0x19b))[_0x37f88a(0x199)],_0x520e78=document[_0x37f88a(0x18e)](_0x37f88a(0x18d))[_0x37f88a(0x199)],_0x5002dd=document['getElementById'](_0x37f88a(0x1aa))[_0x37f88a(0x199)][_0x37f88a(0x198)]()||_0x37f88a(0x1a9);if(!_0x2821de)return _0x3bf00f[_0x37f88a(0x1a1)]=!0x1,void(_0x3bf00f[_0x37f88a(0x1a3)]='Username\x20is\x20required');if(!_0x4b27b4)return _0x3bf00f[_0x37f88a(0x1a1)]=!0x1,void(_0x3bf00f[_0x37f88a(0x1a3)]=_0x37f88a(0x188));if(_0x4b27b4!==_0x520e78)return _0x3bf00f[_0x37f88a(0x1a1)]=!0x1,void(_0x3bf00f[_0x37f88a(0x1a3)]=_0x37f88a(0x1a4));const _0x5c8976=await fetch(_0x37f88a(0x18b),{'method':_0x37f88a(0x189),'headers':{'content-type':_0x37f88a(0x1a8)},'credentials':_0x37f88a(0x19f),'body':JSON[_0x37f88a(0x19a)]({'name':_0x2821de,'password':_0x4b27b4,'label':_0x5002dd,'permissions':['*']})}),_0x340cf0=await _0x5c8976['json']()[_0x37f88a(0x190)](()=>({}));if(!_0x5c8976['ok'])return _0x3bf00f[_0x37f88a(0x1a1)]=!0x1,void(_0x3bf00f[_0x37f88a(0x1a3)]=_0x340cf0?.['error']?.[_0x37f88a(0x1ab)]||_0x340cf0?.[_0x37f88a(0x187)]||_0x340cf0?.[_0x37f88a(0x1a7)]?.['error']||_0x37f88a(0x19d));window['location'][_0x37f88a(0x1a0)](_0x37f88a(0x19c));}),document[_0x338f36(0x18e)]('joinForm')[_0x338f36(0x185)](_0x338f36(0x191),async _0x8d89a0=>{const _0x1bb296=_0x338f36;_0x8d89a0[_0x1bb296(0x1b0)]();const _0x4f1ed1=document[_0x1bb296(0x18e)](_0x1bb296(0x1a6));_0x4f1ed1['hidden']=!0x0;const _0x450722=document['getElementById']('joinAddress')[_0x1bb296(0x199)]['trim'](),_0x25b8fe=document[_0x1bb296(0x18e)]('joinToken')[_0x1bb296(0x199)][_0x1bb296(0x198)]();if(!_0x450722)return _0x4f1ed1[_0x1bb296(0x1a1)]=!0x1,void(_0x4f1ed1[_0x1bb296(0x1a3)]=_0x1bb296(0x196));if(!_0x25b8fe)return _0x4f1ed1['hidden']=!0x1,void(_0x4f1ed1[_0x1bb296(0x1a3)]=_0x1bb296(0x194));const _0x24e356=await fetch(_0x1bb296(0x19e),{'method':_0x1bb296(0x189),'headers':{'content-type':_0x1bb296(0x1a8)},'credentials':_0x1bb296(0x19f),'body':JSON['stringify']({'address':_0x450722,'token':_0x25b8fe})}),_0x4d93be=await _0x24e356['json']()[_0x1bb296(0x190)](()=>({}));if(!_0x24e356['ok'])return _0x4f1ed1[_0x1bb296(0x1a1)]=!0x1,void(_0x4f1ed1[_0x1bb296(0x1a3)]=_0x4d93be?.[_0x1bb296(0x187)]?.['message']||_0x4d93be?.['error']||_0x4d93be?.['data']?.[_0x1bb296(0x187)]||_0x1bb296(0x1ad));window['location'][_0x1bb296(0x1a0)](_0x1bb296(0x19c));})));function _0x17d2(){const _0x1407b6=['replace','hidden','createForm','textContent','Passwords\x20do\x20not\x20match','12RJXxkS','joinError','data','application/json','Initial\x20admin','createLabel','message','20aaUBuN','Failed\x20to\x20join\x20cluster','4eGoZaQ','914529MFBsRc','preventDefault','addEventListener','2319752hlaItA','error','Password\x20is\x20required','POST','createError','/api/auth/tokens','2504448xlvSJC','createConfirm','getElementById','1987545jurpSK','catch','submit','311jqDPaI','431485GmoAlk','Cluster\x20sync\x20token\x20is\x20required','199845rKYGcs','Remote\x20node\x20address\x20is\x20required','createName','trim','value','stringify','createPassword','/admin/login','Failed\x20to\x20create\x20admin\x20token','/admin/setup/join','same-origin'];_0x17d2=function(){return _0x1407b6;};return _0x17d2();}
@@ -1 +1 @@
1
- (function(_0x359954,_0x53d0e3){const _0x1f09b4=_0x4c0a,_0x4429cf=_0x359954();while(!![]){try{const _0x1eb5db=-parseInt(_0x1f09b4(0x88))/0x1+-parseInt(_0x1f09b4(0x76))/0x2+parseInt(_0x1f09b4(0x79))/0x3*(parseInt(_0x1f09b4(0x6d))/0x4)+parseInt(_0x1f09b4(0xaa))/0x5+parseInt(_0x1f09b4(0x77))/0x6*(-parseInt(_0x1f09b4(0xa0))/0x7)+-parseInt(_0x1f09b4(0x82))/0x8+-parseInt(_0x1f09b4(0x70))/0x9*(-parseInt(_0x1f09b4(0x85))/0xa);if(_0x1eb5db===_0x53d0e3)break;else _0x4429cf['push'](_0x4429cf['shift']());}catch(_0x4101a3){_0x4429cf['push'](_0x4429cf['shift']());}}}(_0x355d,0xd925d));import{ok as _0x6201d6}from'../modules/ok.js';import{hasPermission as _0x134fde,setImpliedBy as _0x3e3a44}from'../util/permissions.js';export default _0x6201d6['proxy']({'config':null,'session':null,'catalog':null,'loading':!0x1,'error':null,'notices':[],'noticesDismissed':!0x1,get 'mode'(){const _0x52407f=_0x4c0a;return this[_0x52407f(0xad)]?.[_0x52407f(0x71)]??'open';},get 'openAccess'(){const _0x27d944=_0x4c0a;return!!this[_0x27d944(0xad)]?.[_0x27d944(0xb6)];},get 'isAuthenticated'(){const _0x5dd4b5=_0x4c0a;return!!this[_0x5dd4b5(0x78)]?.['authenticated'];},get 'user'(){const _0xdfe52c=_0x4c0a;return this[_0xdfe52c(0x78)]?.[_0xdfe52c(0x90)]??null;},get 'grants'(){return this['session']?.['grants']??{};},get 'username'(){const _0x27aa80=_0x4c0a;return this['user']?.['username']??(this[_0x27aa80(0xb6)]?_0x27aa80(0x72):null);},get 'rolesLabel'(){const _0xbef7b7=_0x4c0a,_0xc08d73=this[_0xbef7b7(0x90)]?.[_0xbef7b7(0x99)];return Array[_0xbef7b7(0x8b)](_0xc08d73)&&_0xc08d73[_0xbef7b7(0x84)]?_0xc08d73[_0xbef7b7(0xb2)](',\x20'):'';},'can'(_0x1ffb2d){const _0x451ebc=_0x4c0a;if(this[_0x451ebc(0xb6)])return!0x0;const _0xb086d8=this[_0x451ebc(0x90)]?.[_0x451ebc(0x99)];return!!_0xb086d8&&_0x134fde(_0xb086d8,_0x1ffb2d);},'canForEnv'(_0x1c0c09,_0xd89e56){const _0x1140f6=_0x4c0a;if(this['openAccess'])return!0x0;if(this[_0x1140f6(0xa7)](_0xd89e56))return!0x0;const _0x538994=this[_0x1140f6(0x9b)][_0x1c0c09];return!(!Array[_0x1140f6(0x8b)](_0x538994)||0x0===_0x538994[_0x1140f6(0x84)])&&_0x134fde(_0x538994,_0xd89e56);},'_grantsMatchAny'(_0x2eb1f7){const _0x185050=_0x4c0a;for(const _0x65f9b5 of Object[_0x185050(0x8a)](this[_0x185050(0x9b)]))if(Array[_0x185050(0x8b)](_0x65f9b5)){for(const _0x4c9827 of _0x2eb1f7)if(_0x134fde(_0x65f9b5,_0x4c9827))return!0x0;}return!0x1;},'canAny'(_0x152ffb){const _0x13cc46=_0x4c0a;return Array[_0x13cc46(0x8b)](_0x152ffb)&&_0x152ffb[_0x13cc46(0x7d)](_0x1d3c1f=>this['can'](_0x1d3c1f));},'canSection'(_0x32f242){const _0x3fe395=_0x4c0a;if(this['openAccess'])return!0x0;switch(_0x32f242){case'db':return this[_0x3fe395(0x94)]([_0x3fe395(0x9c),_0x3fe395(0xac),_0x3fe395(0xa5)])||this[_0x3fe395(0x98)]([_0x3fe395(0x9c),'schema:read','search:query',_0x3fe395(0x83),_0x3fe395(0x7a),_0x3fe395(0x86),'*']);case _0x3fe395(0xb7):case _0x3fe395(0x72):return this[_0x3fe395(0xa7)](_0x3fe395(0x9f));case _0x3fe395(0x6f):return this[_0x3fe395(0xa7)](_0x3fe395(0x9e))||this['_grantsMatchAny'](['files:read',_0x3fe395(0x81),'*']);case _0x3fe395(0x8c):return this[_0x3fe395(0x94)]([_0x3fe395(0x9d),_0x3fe395(0xb1)])||this[_0x3fe395(0x98)]([_0x3fe395(0x9d),_0x3fe395(0xb1),_0x3fe395(0xaf),'*']);case'functions':return this[_0x3fe395(0x94)]([_0x3fe395(0xb5),_0x3fe395(0xae)])||this[_0x3fe395(0x98)]([_0x3fe395(0xb5),_0x3fe395(0xae),_0x3fe395(0x8d),'*']);case _0x3fe395(0x7f):return this[_0x3fe395(0xa7)]('auth:read');case _0x3fe395(0x74):return this[_0x3fe395(0xa7)](_0x3fe395(0xb0));default:return!0x1;}},'permTooltip'(_0x3e3a0b){const _0x21630d=_0x4c0a;return this[_0x21630d(0xa7)](_0x3e3a0b)?'':_0x21630d(0x8f)+_0x3e3a0b+_0x21630d(0x7c);},get 'modeLabel'(){const _0x4dff22=_0x4c0a;return this[_0x4dff22(0xb6)]?_0x4dff22(0xa2):_0x4dff22(0x93)===this[_0x4dff22(0x71)]?_0x4dff22(0x7e):String(this['mode']||'auth');},get 'visibleNotices'(){const _0x51891f=_0x4c0a;return this[_0x51891f(0xab)]?[]:this[_0x51891f(0xa4)]||[];},'dismissNotices'(){const _0x4d4a86=_0x4c0a;this[_0x4d4a86(0xab)]=!0x0;try{sessionStorage[_0x4d4a86(0xa9)](_0x4d4a86(0x97),'1');}catch{}},async 'loadConfig'(){const _0x4755dc=_0x4c0a,_0x6ee7af=await fetch(_0x4755dc(0xa8),{'credentials':_0x4755dc(0x87)}),_0x24cca7=await _0x6ee7af[_0x4755dc(0xb4)]()[_0x4755dc(0xa1)](()=>({}));return this[_0x4755dc(0xad)]=_0x24cca7?.[_0x4755dc(0x80)]||{},this[_0x4755dc(0xad)];},async 'loadSession'(){const _0x21c447=_0x4c0a;if(this[_0x21c447(0xb6)])return this[_0x21c447(0x78)]={'authenticated':!0x0,'user':{'username':_0x21c447(0x72),'roles':['admin']},'grants':{}},this['session'];const _0x269f73=await fetch(_0x21c447(0x6e),{'credentials':_0x21c447(0x87)});if(!_0x269f73['ok'])return this[_0x21c447(0x78)]={'authenticated':!0x1,'user':null,'grants':{}},this[_0x21c447(0x78)];const _0x214099=await _0x269f73['json']()[_0x21c447(0xa1)](()=>({})),_0x28cd10=_0x214099?.[_0x21c447(0x80)]||_0x214099?.['result']||{'authenticated':!0x1,'user':null};return this[_0x21c447(0x78)]={'grants':{},..._0x28cd10},this[_0x21c447(0x78)];},async 'loadCatalog'(){const _0x2c4676=_0x4c0a,_0x207247=await fetch(_0x2c4676(0x6b),{'credentials':_0x2c4676(0x87)});if(!_0x207247['ok'])return null;const _0x2e417d=await _0x207247[_0x2c4676(0xb4)]()[_0x2c4676(0xa1)](()=>({})),_0x2d8885=_0x2e417d?.['data']||_0x2e417d?.[_0x2c4676(0xa3)]||null;return _0x2d8885?.[_0x2c4676(0x92)]&&_0x3e3a44(_0x2d8885['implies']),this[_0x2c4676(0x8e)]=_0x2d8885,_0x2d8885;},async 'loadNotices'(){const _0x2b9c86=_0x4c0a;try{if('1'===sessionStorage[_0x2b9c86(0x95)](_0x2b9c86(0x97)))return void(this[_0x2b9c86(0xab)]=!0x0);const _0xd3c765=await fetch('./api/notices',{'credentials':'same-origin'});if(_0xd3c765['ok']){const _0x3e9355=await _0xd3c765[_0x2b9c86(0xb4)]()[_0x2b9c86(0xa1)](()=>({}));this['notices']=_0x3e9355?.['data']?.[_0x2b9c86(0xa4)]??_0x3e9355?.[_0x2b9c86(0xa3)]?.[_0x2b9c86(0xa4)]??[];}}catch{}},async 'init'(){const _0x45feff=_0x4c0a;this['loading']=!0x0,this['error']=null;try{await this[_0x45feff(0xa6)](),await this[_0x45feff(0x73)](),await this[_0x45feff(0x89)](),await this['loadNotices']();}catch(_0x11d5ce){throw this[_0x45feff(0x7b)]=_0x11d5ce?.['message']||String(_0x11d5ce),_0x11d5ce;}finally{this[_0x45feff(0xb3)]=!0x1;}},async 'logout'(){const _0x155414=_0x4c0a;await fetch(_0x155414(0x75),{'method':_0x155414(0x9a),'credentials':_0x155414(0x87),'headers':{'content-type':_0x155414(0x91)}})['catch'](()=>{}),this[_0x155414(0x78)]={'authenticated':!0x1,'user':null};const _0x82f27a=encodeURIComponent(_0x155414(0x96));window['location'][_0x155414(0x6c)]('/admin/login?redirect='+_0x82f27a);}});function _0x4c0a(_0x56faf9,_0x45786e){_0x56faf9=_0x56faf9-0x6b;const _0x355d60=_0x355d();let _0x4c0ac3=_0x355d60[_0x56faf9];return _0x4c0ac3;}function _0x355d(){const _0x41886c=['Requires\x20','user','application/json','implies','secure','canAny','getItem','/admin/index.html','okdb_notices_dismissed','_grantsMatchAny','roles','POST','grants','data:read','queue:read','files:read','system:read','2520eDYzlM','catch','Open\x20access','result','notices','search:query','loadConfig','can','./login/config','setItem','1898930qdHbil','noticesDismissed','schema:read','config','functions:run','queue:*','sync:read','queue:work','join','loading','json','functions:read','openAccess','engines','./api/auth/permissions','replace','1864348yrGBRh','./session','files','9BoCOFr','mode','system','loadSession','sync','/auth/logout','2895508HZdyAK','24414EaWiBp','session','9KhoieE','schema:*','error','\x20permission','some','Secure','auth','data','files:*','7067848nTffpp','data:*','length','35886230CYetWw','search:*','same-origin','681158hVvLct','loadCatalog','values','isArray','queue','functions:*','catalog'];_0x355d=function(){return _0x41886c;};return _0x355d();}
1
+ (function(_0x467e39,_0x5d286c){const _0x34b644=_0x226a,_0x4dd676=_0x467e39();while(!![]){try{const _0x2b6f1=parseInt(_0x34b644(0xbe))/0x1*(-parseInt(_0x34b644(0x97))/0x2)+-parseInt(_0x34b644(0x9e))/0x3+parseInt(_0x34b644(0xad))/0x4*(-parseInt(_0x34b644(0xbd))/0x5)+parseInt(_0x34b644(0xc5))/0x6*(parseInt(_0x34b644(0xa2))/0x7)+-parseInt(_0x34b644(0xd4))/0x8+-parseInt(_0x34b644(0x99))/0x9*(-parseInt(_0x34b644(0x8b))/0xa)+-parseInt(_0x34b644(0xc0))/0xb*(-parseInt(_0x34b644(0xa0))/0xc);if(_0x2b6f1===_0x5d286c)break;else _0x4dd676['push'](_0x4dd676['shift']());}catch(_0x517108){_0x4dd676['push'](_0x4dd676['shift']());}}}(_0x4a67,0xdbdc6));function _0x4a67(){const _0x13798d=['schema:read','engines','catch','secure','22gUwHwl','loadSession','4536CtNccY','notices','_grantsMatchAny','queue','setItem','3690258LbOQWd','isArray','12hLMvYH','username','4135901opxApH','\x20permission','mode','openAccess','loadNotices','./api/auth/permissions','data:*','queue:read','user','functions:read','search:query','104WRyULo','files:*','files:read','authenticated','some','values','length','Secure','grants','auth','data:read','Requires\x20','config','Open\x20access','json','queue:*','233395rDCHRy','130957ubRxvV','functions','50126549SKGOAX','functions:*','queue:work','result','/admin/index.html','12orRGSb','open','./api/notices','message','catalog','error','noticesDismissed','roles','system','getItem','location','system:read','sync','implies','data','11981152zyPfzU','/auth/logout','POST','replace','admin','loadConfig','can','functions:run','same-origin','files','10790gPMFua','schema:*','canAny','./session','/admin/login?redirect=','session','loading','loadCatalog'];_0x4a67=function(){return _0x13798d;};return _0x4a67();}function _0x226a(_0x5eaa66,_0x956b3d){_0x5eaa66=_0x5eaa66-0x86;const _0x4a67b6=_0x4a67();let _0x226ab5=_0x4a67b6[_0x5eaa66];return _0x226ab5;}import{ok as _0x267d79}from'../modules/ok.js';import{hasPermission as _0x59fda4,setImpliedBy as _0x5dcbd6}from'../util/permissions.js';export default _0x267d79['proxy']({'config':null,'session':null,'catalog':null,'loading':!0x1,'error':null,'notices':[],'noticesDismissed':!0x1,get 'mode'(){const _0x2724c7=_0x226a;return this[_0x2724c7(0xb9)]?.[_0x2724c7(0xa4)]??_0x2724c7(0xc6);},get 'openAccess'(){const _0x22c75e=_0x226a;return!!this[_0x22c75e(0xb9)]?.[_0x22c75e(0xa5)];},get 'isAuthenticated'(){const _0x2e8ff1=_0x226a;return!!this[_0x2e8ff1(0x90)]?.[_0x2e8ff1(0xb0)];},get 'user'(){const _0x13de47=_0x226a;return this[_0x13de47(0x90)]?.[_0x13de47(0xaa)]??null;},get 'grants'(){const _0x696b4b=_0x226a;return this[_0x696b4b(0x90)]?.[_0x696b4b(0xb5)]??{};},get 'username'(){const _0x3c4f24=_0x226a;return this[_0x3c4f24(0xaa)]?.[_0x3c4f24(0xa1)]??(this[_0x3c4f24(0xa5)]?_0x3c4f24(0xcd):null);},get 'rolesLabel'(){const _0xf7642f=_0x226a,_0x1f4fa1=this[_0xf7642f(0xaa)]?.[_0xf7642f(0xcc)];return Array[_0xf7642f(0x9f)](_0x1f4fa1)&&_0x1f4fa1[_0xf7642f(0xb3)]?_0x1f4fa1['join'](',\x20'):'';},'can'(_0x30d83b){const _0x46996c=_0x226a;if(this['openAccess'])return!0x0;const _0x434fda=this[_0x46996c(0xaa)]?.[_0x46996c(0xcc)];return!!_0x434fda&&_0x59fda4(_0x434fda,_0x30d83b);},'canForEnv'(_0x48d11b,_0x2167f6){const _0x4d2010=_0x226a;if(this['openAccess'])return!0x0;if(this[_0x4d2010(0x87)](_0x2167f6))return!0x0;const _0x92fb4e=this[_0x4d2010(0xb5)][_0x48d11b];return!(!Array[_0x4d2010(0x9f)](_0x92fb4e)||0x0===_0x92fb4e[_0x4d2010(0xb3)])&&_0x59fda4(_0x92fb4e,_0x2167f6);},'_grantsMatchAny'(_0x56bce7){const _0x2be24c=_0x226a;for(const _0x35b464 of Object[_0x2be24c(0xb2)](this[_0x2be24c(0xb5)]))if(Array['isArray'](_0x35b464)){for(const _0xf9c96d of _0x56bce7)if(_0x59fda4(_0x35b464,_0xf9c96d))return!0x0;}return!0x1;},'canAny'(_0x2e9db9){const _0x43952e=_0x226a;return Array[_0x43952e(0x9f)](_0x2e9db9)&&_0x2e9db9[_0x43952e(0xb1)](_0x2c1605=>this[_0x43952e(0x87)](_0x2c1605));},'canSection'(_0x4c5ea0){const _0x37e244=_0x226a;if(this[_0x37e244(0xa5)])return!0x0;switch(_0x4c5ea0){case'db':return this['canAny']([_0x37e244(0xb7),_0x37e244(0x93),_0x37e244(0xac)])||this['_grantsMatchAny']([_0x37e244(0xb7),'schema:read','search:query',_0x37e244(0xa8),_0x37e244(0x8c),'search:*','*']);case _0x37e244(0x94):case _0x37e244(0xcd):return this[_0x37e244(0x87)](_0x37e244(0xd0));case _0x37e244(0x8a):return this[_0x37e244(0x87)](_0x37e244(0xaf))||this[_0x37e244(0x9b)]([_0x37e244(0xaf),_0x37e244(0xae),'*']);case _0x37e244(0x9c):return this[_0x37e244(0x8d)]([_0x37e244(0xa9),'queue:work'])||this[_0x37e244(0x9b)]([_0x37e244(0xa9),_0x37e244(0xc2),_0x37e244(0xbc),'*']);case _0x37e244(0xbf):return this['canAny']([_0x37e244(0xab),_0x37e244(0x88)])||this['_grantsMatchAny']([_0x37e244(0xab),_0x37e244(0x88),_0x37e244(0xc1),'*']);case _0x37e244(0xb6):return this[_0x37e244(0x87)]('auth:read');case _0x37e244(0xd1):return this['can']('sync:read');default:return!0x1;}},'permTooltip'(_0x11a026){const _0x4c00b0=_0x226a;return this[_0x4c00b0(0x87)](_0x11a026)?'':_0x4c00b0(0xb8)+_0x11a026+_0x4c00b0(0xa3);},get 'modeLabel'(){const _0x43a5aa=_0x226a;return this['openAccess']?_0x43a5aa(0xba):_0x43a5aa(0x96)===this[_0x43a5aa(0xa4)]?_0x43a5aa(0xb4):String(this['mode']||_0x43a5aa(0xb6));},get 'visibleNotices'(){const _0x1ea71a=_0x226a;return this[_0x1ea71a(0xcb)]?[]:this[_0x1ea71a(0x9a)]||[];},'dismissNotices'(){const _0x1f19cd=_0x226a;this[_0x1f19cd(0xcb)]=!0x0;try{sessionStorage[_0x1f19cd(0x9d)]('okdb_notices_dismissed','1');}catch{}},async 'loadConfig'(){const _0xb09fa3=_0x226a,_0x47ce9e=await fetch('./login/config',{'credentials':_0xb09fa3(0x89)}),_0x4a73f4=await _0x47ce9e['json']()['catch'](()=>({}));return this['config']=_0x4a73f4?.['data']||{},this[_0xb09fa3(0xb9)];},async 'loadSession'(){const _0x3408d2=_0x226a;if(this[_0x3408d2(0xa5)])return this[_0x3408d2(0x90)]={'authenticated':!0x0,'user':{'username':'system','roles':[_0x3408d2(0xd8)]},'grants':{}},this[_0x3408d2(0x90)];const _0x1c7083=await fetch(_0x3408d2(0x8e),{'credentials':'same-origin'});if(!_0x1c7083['ok'])return this['session']={'authenticated':!0x1,'user':null,'grants':{}},this['session'];const _0x545d39=await _0x1c7083[_0x3408d2(0xbb)]()[_0x3408d2(0x95)](()=>({})),_0x5b48e7=_0x545d39?.[_0x3408d2(0xd3)]||_0x545d39?.[_0x3408d2(0xc3)]||{'authenticated':!0x1,'user':null};return this[_0x3408d2(0x90)]={'grants':{},..._0x5b48e7},this[_0x3408d2(0x90)];},async 'loadCatalog'(){const _0xcf8300=_0x226a,_0xfbcf65=await fetch(_0xcf8300(0xa7),{'credentials':_0xcf8300(0x89)});if(!_0xfbcf65['ok'])return null;const _0xec1cae=await _0xfbcf65['json']()['catch'](()=>({})),_0x55dd3b=_0xec1cae?.[_0xcf8300(0xd3)]||_0xec1cae?.['result']||null;return _0x55dd3b?.[_0xcf8300(0xd2)]&&_0x5dcbd6(_0x55dd3b[_0xcf8300(0xd2)]),this[_0xcf8300(0xc9)]=_0x55dd3b,_0x55dd3b;},async 'loadNotices'(){const _0x4b3387=_0x226a;try{if('1'===sessionStorage[_0x4b3387(0xce)]('okdb_notices_dismissed'))return void(this[_0x4b3387(0xcb)]=!0x0);const _0x866f08=await fetch(_0x4b3387(0xc7),{'credentials':'same-origin'});if(_0x866f08['ok']){const _0x403f30=await _0x866f08[_0x4b3387(0xbb)]()[_0x4b3387(0x95)](()=>({}));this[_0x4b3387(0x9a)]=_0x403f30?.[_0x4b3387(0xd3)]?.['notices']??_0x403f30?.['result']?.['notices']??[];}}catch{}},async 'init'(){const _0x547ee1=_0x226a;this[_0x547ee1(0x91)]=!0x0,this[_0x547ee1(0xca)]=null;try{await this[_0x547ee1(0x86)](),await this[_0x547ee1(0x98)](),await this[_0x547ee1(0x92)](),await this[_0x547ee1(0xa6)]();}catch(_0x1fb0ff){throw this[_0x547ee1(0xca)]=_0x1fb0ff?.[_0x547ee1(0xc8)]||String(_0x1fb0ff),_0x1fb0ff;}finally{this[_0x547ee1(0x91)]=!0x1;}},async 'logout'(){const _0x3dd04d=_0x226a;await fetch(_0x3dd04d(0xd5),{'method':_0x3dd04d(0xd6),'credentials':_0x3dd04d(0x89),'headers':{'content-type':'application/json'}})['catch'](()=>{}),this['session']={'authenticated':!0x1,'user':null};const _0x53c669=encodeURIComponent(_0x3dd04d(0xc4));window[_0x3dd04d(0xcf)][_0x3dd04d(0xd7)](_0x3dd04d(0x8f)+_0x53c669);}});
@@ -1 +1 @@
1
- const _0x1b26b0=_0x4db9;(function(_0x5a57b0,_0x4517ac){const _0x50d3a9=_0x4db9,_0x6859f7=_0x5a57b0();while(!![]){try{const _0x3a1566=-parseInt(_0x50d3a9(0xaf))/0x1+-parseInt(_0x50d3a9(0x9d))/0x2+parseInt(_0x50d3a9(0x98))/0x3+-parseInt(_0x50d3a9(0x9a))/0x4+parseInt(_0x50d3a9(0x9b))/0x5*(-parseInt(_0x50d3a9(0xa1))/0x6)+parseInt(_0x50d3a9(0x94))/0x7*(-parseInt(_0x50d3a9(0x8c))/0x8)+parseInt(_0x50d3a9(0x85))/0x9;if(_0x3a1566===_0x4517ac)break;else _0x6859f7['push'](_0x6859f7['shift']());}catch(_0x5ddb32){_0x6859f7['push'](_0x6859f7['shift']());}}}(_0x38ed,0x1ae2e));function _0x4db9(_0x2616eb,_0x388a9f){_0x2616eb=_0x2616eb-0x7a;const _0x38ed09=_0x38ed();let _0x4db9e5=_0x38ed09[_0x2616eb];return _0x4db9e5;}function _0x38ed(){const _0x4f4554=['408750DrxFOd','txn:start','756160ICyZSN','20mcnJbF','embeddings:doc:status_change','196026VwlPxZ','engine:uninstalled','engine:installed','join','34158Omaheg','index:registered','now','sync:apply','embeddings:pipeline:ready','index:reset','fts:registered','add','system:ready','item:create','index:progress','embeddings:indexer:doc:failed','queue:failed','connecting','20974JuLipD','length','embeddings:indexer:doc:queued','queue:reconciled','proxy','system:stopped','item:remove','relay:error','error','slice','event','/events','system:drain','queue:removed','system:poke','close','processor:progress','txn:end','engine:started','queue:retry','index:drop','system:bus_state_change','_kind','log','type:registered','_ts','addEventListener','3810015mocoLR','embeddings:indexer:flushed','events-store\x20handler\x20error','index:ready','type:drop','Stream\x20disconnected\x20—\x20reconnecting…','data','8TOlGbj','?types=','onmessage','connected','parse','fts:drop','processor:retry','env:removed','830620SggHHs','activity','item:update','processor:error'];_0x38ed=function(){return _0x4f4554;};return _0x38ed();}import{ok as _0x335cba}from'../modules/ok.js';const t=[_0x1b26b0(0xa9),_0x1b26b0(0xb4),'system:clock_change',_0x1b26b0(0xbd),_0x1b26b0(0xbb),_0x1b26b0(0x7f),_0x1b26b0(0xaa),_0x1b26b0(0x96),_0x1b26b0(0xb5),_0x1b26b0(0xa6),_0x1b26b0(0x88),_0x1b26b0(0xab),_0x1b26b0(0x7e),_0x1b26b0(0xa2),_0x1b26b0(0xa7),_0x1b26b0(0x91),'fts:reset',_0x1b26b0(0xa4),_0x1b26b0(0x99),_0x1b26b0(0x7b),'txn:rollback',_0x1b26b0(0x82),_0x1b26b0(0x89),'env:opened',_0x1b26b0(0x93),_0x1b26b0(0x7c),'engine:stopped','engine:error',_0x1b26b0(0x9f),_0x1b26b0(0x9e),'embeddings:indexer:ready',_0x1b26b0(0x86),'embeddings:indexer:doc:done',_0x1b26b0(0xac),_0x1b26b0(0xb1),_0x1b26b0(0x9c),_0x1b26b0(0xa5),'queue:enqueued','queue:done',_0x1b26b0(0xad),_0x1b26b0(0x7d),_0x1b26b0(0xbc),_0x1b26b0(0xb2),'processor:ready',_0x1b26b0(0x7a),_0x1b26b0(0x97),'processor:paused','processor:resumed',_0x1b26b0(0x92),_0x1b26b0(0xb6)];export{t as ALL_EVENTS};let n=null;const r={};function s(_0x389159){const _0x3d1670=_0x1b26b0;try{return JSON[_0x3d1670(0x90)](_0x389159);}catch{return null;}}function o(_0x5087f7,_0x10a1a8){const _0x440757=_0x1b26b0,_0x5931bb=r[_0x5087f7];if(_0x5931bb){for(const _0x17798c of _0x5931bb)try{_0x17798c(_0x10a1a8);}catch(_0xb2328c){console[_0x440757(0xb7)](_0x440757(0x87),_0xb2328c);}}}function i(_0xf04e96,_0x313aaa){const _0x22fedf=_0x1b26b0;return[..._0xf04e96[_0x22fedf(0xb0)]>=0x1f4?_0xf04e96[_0x22fedf(0xb8)](-0x1f3):_0xf04e96,_0x313aaa];}const d=_0x335cba[_0x1b26b0(0xb3)]({'connected':!0x1,'connecting':!0x1,'error':null,'activity':[],get 'logs'(){const _0x3cc319=_0x1b26b0;return this[_0x3cc319(0x95)]['filter'](_0x3b9cca=>_0x3cc319(0x81)===_0x3b9cca[_0x3cc319(0x80)]);},'connect'(_0xc2745b=null){const _0x439dcb=_0x1b26b0;if(n||this[_0x439dcb(0xae)])return;this[_0x439dcb(0xae)]=!0x0,this['error']=null;let _0x3e1b94=__ENV__['API']+_0x439dcb(0xba);_0xc2745b?.['length']&&(_0x3e1b94+=_0x439dcb(0x8d)+encodeURIComponent(_0xc2745b[_0x439dcb(0xa0)](',')));const _0x54f900=new EventSource(_0x3e1b94);n=_0x54f900,_0x54f900[_0x439dcb(0x84)]('open',()=>{const _0x4c1363=_0x439dcb;this[_0x4c1363(0x8f)]=!0x0,this[_0x4c1363(0xae)]=!0x1,this[_0x4c1363(0xb7)]=null;}),_0x54f900[_0x439dcb(0x84)](_0x439dcb(0xb7),()=>{const _0x3b3cac=_0x439dcb;this['connected']=!0x1,this[_0x3b3cac(0xae)]=!0x1,this[_0x3b3cac(0xb7)]=_0x3b3cac(0x8a);});const _0x1766de=_0x4bdcff=>{const _0x42a2bd=_0x439dcb,_0x2e8242=s(_0x4bdcff[_0x42a2bd(0x8b)]);if(!_0x2e8242)return;const _0x2a0567={'_kind':_0x42a2bd(0x81),'_ts':_0x2e8242[_0x42a2bd(0x83)]??_0x2e8242['ts']??Date[_0x42a2bd(0xa3)](),..._0x2e8242};this[_0x42a2bd(0x95)]=i(this[_0x42a2bd(0x95)],_0x2a0567),o('log',_0x2e8242);};_0x54f900['addEventListener']('log',_0x1766de);for(const _0x2e324b of t)_0x54f900['addEventListener'](_0x2e324b,_0x14707b=>{const _0x562d47=_0x439dcb;try{const _0x417898=s(_0x14707b['data']);if(!_0x417898)return;const _0x337c5b={'_kind':_0x562d47(0xb9),'_event':_0x2e324b,'_ts':_0x417898['_ts']??Date[_0x562d47(0xa3)](),..._0x417898};this['activity']=i(this['activity'],_0x337c5b),o(_0x2e324b,_0x417898);}catch{}});_0x54f900[_0x439dcb(0x8e)]=_0x1766de;},'disconnect'(){const _0x42f0cc=_0x1b26b0;n?.[_0x42f0cc(0xbe)](),n=null,this[_0x42f0cc(0x8f)]=!0x1,this['connecting']=!0x1;},'on':(_0x7fa939,_0x1d7da2)=>(r[_0x7fa939]||(r[_0x7fa939]=new Set()),r[_0x7fa939][_0x1b26b0(0xa8)](_0x1d7da2),()=>r[_0x7fa939]?.['delete'](_0x1d7da2)),'clearActivity'(){const _0x4c3a34=_0x1b26b0;this[_0x4c3a34(0x95)]=[];},'clearLogs'(){this['clearActivity']();}});export default d;
1
+ const _0xb1fee9=_0x115d;(function(_0x563e36,_0x4b2e4a){const _0x48ae61=_0x115d,_0x26fd18=_0x563e36();while(!![]){try{const _0x836b66=parseInt(_0x48ae61(0x1c3))/0x1*(-parseInt(_0x48ae61(0x1d4))/0x2)+-parseInt(_0x48ae61(0x1f0))/0x3*(parseInt(_0x48ae61(0x1d5))/0x4)+-parseInt(_0x48ae61(0x1c2))/0x5*(-parseInt(_0x48ae61(0x1dd))/0x6)+parseInt(_0x48ae61(0x1de))/0x7+parseInt(_0x48ae61(0x1ea))/0x8+parseInt(_0x48ae61(0x1e6))/0x9*(parseInt(_0x48ae61(0x1e0))/0xa)+-parseInt(_0x48ae61(0x1fc))/0xb;if(_0x836b66===_0x4b2e4a)break;else _0x26fd18['push'](_0x26fd18['shift']());}catch(_0x45c7cc){_0x26fd18['push'](_0x26fd18['shift']());}}}(_0x35fe,0x470a1));import{ok as _0xf144ef}from'../modules/ok.js';const t=[_0xb1fee9(0x1c7),_0xb1fee9(0x1bb),_0xb1fee9(0x1cc),_0xb1fee9(0x1c6),'system:drain',_0xb1fee9(0x1cf),_0xb1fee9(0x1ca),'item:update',_0xb1fee9(0x1d0),_0xb1fee9(0x1f5),'index:ready','index:progress',_0xb1fee9(0x1d3),_0xb1fee9(0x1d8),_0xb1fee9(0x1db),_0xb1fee9(0x1f3),'fts:reset','sync:apply',_0xb1fee9(0x1c0),'txn:end','txn:rollback',_0xb1fee9(0x1da),_0xb1fee9(0x1f2),_0xb1fee9(0x1dc),'env:removed','engine:started','engine:stopped',_0xb1fee9(0x1c4),'engine:installed',_0xb1fee9(0x1ef),_0xb1fee9(0x1c5),_0xb1fee9(0x1d7),_0xb1fee9(0x1e8),_0xb1fee9(0x1fb),'embeddings:indexer:doc:queued',_0xb1fee9(0x1ce),_0xb1fee9(0x1bd),_0xb1fee9(0x1e1),_0xb1fee9(0x1be),_0xb1fee9(0x1c8),_0xb1fee9(0x1df),'queue:removed',_0xb1fee9(0x1f8),_0xb1fee9(0x1d1),_0xb1fee9(0x1bc),'processor:error',_0xb1fee9(0x1cb),_0xb1fee9(0x1d9),_0xb1fee9(0x1f1),_0xb1fee9(0x1e3)];export{t as ALL_EVENTS};function _0x115d(_0x1d99f3,_0x355a79){_0x1d99f3=_0x1d99f3-0x1bb;const _0x35fed7=_0x35fe();let _0x115dde=_0x35fed7[_0x1d99f3];return _0x115dde;}let n=null;const r={};function s(_0x1bcf8d){const _0x4990d3=_0xb1fee9;try{return JSON[_0x4990d3(0x1d6)](_0x1bcf8d);}catch{return null;}}function o(_0x3db667,_0x253778){const _0x108b04=_0xb1fee9,_0x211e37=r[_0x3db667];if(_0x211e37){for(const _0x4cc972 of _0x211e37)try{_0x4cc972(_0x253778);}catch(_0x27f1fe){console[_0x108b04(0x1c1)](_0x108b04(0x1d2),_0x27f1fe);}}}function _0x35fe(){const _0x1d214=['type:drop','fts:drop','length','index:reset','activity','data','queue:reconciled','addEventListener','log','embeddings:indexer:doc:failed','6870039CpHUht','event','system:stopped','processor:progress','embeddings:pipeline:ready','queue:done','filter','txn:start','error','5LEtbuY','105217BIEufY','engine:error','embeddings:indexer:ready','system:poke','system:ready','queue:failed','delete','item:create','processor:paused','system:clock_change','add','embeddings:doc:status_change','system:bus_state_change','item:remove','processor:ready','events-store\x20handler\x20error','index:drop','4zFsuRd','509452JTEvPr','parse','embeddings:indexer:flushed','index:registered','processor:resumed','type:registered','fts:registered','env:opened','1804266kKWPvb','1100743RamWfb','queue:retry','10UuIwsF','queue:enqueued','now','relay:error','connected','_ts','4693446iNwnUu','join','embeddings:indexer:doc:done','clearActivity','2190952RVMrrL','open','API','connecting','slice','engine:uninstalled','3vYdmtm','processor:retry'];_0x35fe=function(){return _0x1d214;};return _0x35fe();}function i(_0xd22576,_0x47b5b5){const _0x1ce9aa=_0xb1fee9;return[..._0xd22576['length']>=0x1f4?_0xd22576[_0x1ce9aa(0x1ee)](-0x1f3):_0xd22576,_0x47b5b5];}const d=_0xf144ef['proxy']({'connected':!0x1,'connecting':!0x1,'error':null,'activity':[],get 'logs'(){const _0x1062d4=_0xb1fee9;return this['activity'][_0x1062d4(0x1bf)](_0x1a2a20=>_0x1062d4(0x1fa)===_0x1a2a20['_kind']);},'connect'(_0x5c3755=null){const _0x445c82=_0xb1fee9;if(n||this[_0x445c82(0x1ed)])return;this['connecting']=!0x0,this['error']=null;let _0x2f3dac=__ENV__[_0x445c82(0x1ec)]+'/events';_0x5c3755?.[_0x445c82(0x1f4)]&&(_0x2f3dac+='?types='+encodeURIComponent(_0x5c3755[_0x445c82(0x1e7)](',')));const _0x533f27=new EventSource(_0x2f3dac);n=_0x533f27,_0x533f27[_0x445c82(0x1f9)](_0x445c82(0x1eb),()=>{const _0x2d5bd0=_0x445c82;this[_0x2d5bd0(0x1e4)]=!0x0,this[_0x2d5bd0(0x1ed)]=!0x1,this[_0x2d5bd0(0x1c1)]=null;}),_0x533f27[_0x445c82(0x1f9)](_0x445c82(0x1c1),()=>{const _0x1d3973=_0x445c82;this[_0x1d3973(0x1e4)]=!0x1,this[_0x1d3973(0x1ed)]=!0x1,this[_0x1d3973(0x1c1)]='Stream\x20disconnected\x20—\x20reconnecting…';});const _0xd7e661=_0x351d35=>{const _0x5364b7=_0x445c82,_0x17b556=s(_0x351d35[_0x5364b7(0x1f7)]);if(!_0x17b556)return;const _0x4d4530={'_kind':'log','_ts':_0x17b556[_0x5364b7(0x1e5)]??_0x17b556['ts']??Date[_0x5364b7(0x1e2)](),..._0x17b556};this[_0x5364b7(0x1f6)]=i(this['activity'],_0x4d4530),o(_0x5364b7(0x1fa),_0x17b556);};_0x533f27[_0x445c82(0x1f9)](_0x445c82(0x1fa),_0xd7e661);for(const _0x5d7a45 of t)_0x533f27[_0x445c82(0x1f9)](_0x5d7a45,_0x523a55=>{const _0x244604=_0x445c82;try{const _0x49fae1=s(_0x523a55[_0x244604(0x1f7)]);if(!_0x49fae1)return;const _0x1c837d={'_kind':_0x244604(0x1fd),'_event':_0x5d7a45,'_ts':_0x49fae1[_0x244604(0x1e5)]??Date[_0x244604(0x1e2)](),..._0x49fae1};this[_0x244604(0x1f6)]=i(this[_0x244604(0x1f6)],_0x1c837d),o(_0x5d7a45,_0x49fae1);}catch{}});_0x533f27['onmessage']=_0xd7e661;},'disconnect'(){const _0xee442c=_0xb1fee9;n?.['close'](),n=null,this['connected']=!0x1,this[_0xee442c(0x1ed)]=!0x1;},'on':(_0x597031,_0x234e74)=>(r[_0x597031]||(r[_0x597031]=new Set()),r[_0x597031][_0xb1fee9(0x1cd)](_0x234e74),()=>r[_0x597031]?.[_0xb1fee9(0x1c9)](_0x234e74)),'clearActivity'(){const _0x31c79d=_0xb1fee9;this[_0x31c79d(0x1f6)]=[];},'clearLogs'(){const _0x36093a=_0xb1fee9;this[_0x36093a(0x1e9)]();}});export default d;
@@ -1 +1 @@
1
- const _0x3d520f=_0x9c1d;(function(_0x42284f,_0x126689){const _0x2c94e0=_0x9c1d,_0x319e68=_0x42284f();while(!![]){try{const _0x5c95e3=-parseInt(_0x2c94e0(0x1d7))/0x1+-parseInt(_0x2c94e0(0x1d3))/0x2*(parseInt(_0x2c94e0(0x20e))/0x3)+-parseInt(_0x2c94e0(0x202))/0x4*(-parseInt(_0x2c94e0(0x201))/0x5)+-parseInt(_0x2c94e0(0x233))/0x6+parseInt(_0x2c94e0(0x226))/0x7+-parseInt(_0x2c94e0(0x1a6))/0x8+parseInt(_0x2c94e0(0x229))/0x9;if(_0x5c95e3===_0x126689)break;else _0x319e68['push'](_0x319e68['shift']());}catch(_0xe9d32e){_0x319e68['push'](_0x319e68['shift']());}}}(_0x3c1b,0xefb8b));import{ok as _0x40cf2c}from'../modules/ok.js';function _0x3c1b(){const _0x7a0680=['Function\x20script\x20may\x20not\x20reference\x20','setModalSourceDraft','38598147AQWMnk','meta','code','selectedRun','detail','modalDescriptionDraft','dryRunMode','status','functionName','timeoutMs','6503544bMGNsm','parsePayloadDraft','/functions','Function\x20script\x20failed\x20to\x20compile','modalDryRunMode','allowFetch','json','running','unsafe','modalPayloadDraft','set','\x20\x20//\x20Tip:\x20use\x20the\x20\x22seed\x22\x20template\x20when\x20you\x20want\x20bulk\x20inserts\x20via\x20ctx.env.txn(...)','modalPreviewLogs','Failed\x20to\x20create\x20function','resetSelection','loadRuns','persisted','select','9002616EMpOzI','{\x0a\x20\x20\x0a}','modalProcessorContextDraft','get','items','\x20\x20//\x20ctx.log\x20\x20\x20\x20\x20—\x20structured\x20logger:\x20ctx.log.info(msg,\x20data)','runId','Failed\x20to\x20delete\x20function','modalSourceDraft','edit','execution','runs','isArray','modalMaterializerContextDraft','setModalPreviewContext','modalJobContextDraft','parse','~system','string','application/json','create','modalNameDraft','reloadList','logsForRun','proxy','saving','buildModalDefinition','has','POST','modalMemoryMbDraft','sort','beginCreateDraft','latestRun','source','process','modalRunning','console','requestedAt','worker_threads','Payload\x20JSON\x20is\x20invalid','/run','Failed\x20to\x20run\x20draft','overview','selected','stringify','2977886OAHqcR','hasEnv','selectedEnv','Failed\x20to\x20load\x20functions','1581302VhvyNw','envName','info','\x20\x20return\x20{\x20ok:\x20true\x20};','sourceDraft','modalTimeoutMsDraft','overviewRuns','length','join','PUT','loadList','runtime','finishedAt','msg','FUNCTION_SCRIPT_FORBIDDEN_SYMBOL','loadOverviewRuns','import','functionsBase','FUNCTION_SCRIPT_REQUIRED','filter','payloadError','test','catch','enabled','data','modalPreviewRun','Failed\x20to\x20save\x20function','/runs','modalEnabledDraft','add','metadata','value','script','_ts','selectedName','modalUnsafeDraft','module','setModalPayloadDraft','require','exports','selectRun','modalValidation','1916105QxyndV','4ulnqrN','push','request','replace','live','map','FUNCTION_SCRIPT_TOO_LARGE','description','Function\x20script\x20exceeds\x2065536\x20bytes','/runs/','/preview','loading','3XSKcBm','\x20\x20//\x20ctx.env\x20\x20\x20\x20\x20—\x20env-scoped\x20facade:\x20put,\x20get,\x20query,\x20txn,\x20queue,\x20files,\x20...','name','error','memoryMb','trim','currentView','hydrateOverview','modalPayloadError','key','Failed\x20to\x20run\x20function','getLogsForRun','/env/','payloadDraft','isFinite','Function\x20script\x20source\x20is\x20required','logs','find','Function\x20script\x20must\x20be\x20an\x20anonymous\x20arrow\x20function\x20of\x20the\x20form\x20[async]\x20(ctx)\x20=>\x20{}','FUNCTION_SCRIPT_COMPILE_FAILED','modalMode','message','level','return\x20(','11126437jOruOO'];_0x3c1b=function(){return _0x7a0680;};return _0x3c1b();}import _0x50a982 from'./okdb-store.js';import _0x19a3c0 from'./events-store.js';function _0x9c1d(_0x5df19d,_0x41a3b0){_0x5df19d=_0x5df19d-0x19e;const _0x3c1bab=_0x3c1b();let _0x9c1d37=_0x3c1bab[_0x5df19d];return _0x9c1d37;}const a=['async\x20(ctx)\x20=>\x20{','\x20\x20//\x20ctx.payload\x20—\x20caller\x20input',_0x3d520f(0x20f),_0x3d520f(0x1ab),_0x3d520f(0x19f),'',_0x3d520f(0x1da),'}'][_0x3d520f(0x1df)]('\x0a'),r=_0x3d520f(0x1a7),i=[{'symbol':_0x3d520f(0x1fd),'pattern':/(^|[^\w$.])require\s*\(/},{'symbol':_0x3d520f(0x1e7),'pattern':/(^|[^\w$.])import\b/},{'symbol':_0x3d520f(0x1ca),'pattern':/(^|[^\w$.])console\b/},{'symbol':_0x3d520f(0x1fb),'pattern':/(^|[^\w$.])module\b/},{'symbol':_0x3d520f(0x1fe),'pattern':/(^|[^\w$.])exports\b/},{'symbol':_0x3d520f(0x1c8),'pattern':/(^|[^\w$.])process\b/},{'symbol':'child_process','pattern':/child_process/},{'symbol':_0x3d520f(0x1cc),'pattern':/worker_threads/}];function n(_0x3adae7){const _0xaf2f0=_0x3d520f;return null==_0x3adae7?_0x3adae7:JSON[_0xaf2f0(0x1b6)](JSON['stringify'](_0x3adae7));}function o(_0x887861={},_0x116953=_0x3d520f(0x1a4)){const _0x2ed0f1=_0x3d520f,_0x473a78=_0x887861?.[_0x2ed0f1(0x22a)]??null,_0x22659=_0x887861?.[_0x2ed0f1(0x1e4)]??_0x887861?.[_0x2ed0f1(0x223)]??_0x887861?.['content']??_0x887861?.['title']??'';return{'runId':_0x887861?.['runId']??_0x473a78?.[_0x2ed0f1(0x1ac)]??null,'ts':_0x887861?.['ts']??_0x887861?.[_0x2ed0f1(0x1f8)]??Date['now'](),'level':_0x887861?.['level']??_0x2ed0f1(0x1d9),'msg':_0x2ed0f1(0x1b8)==typeof _0x22659?_0x22659:JSON[_0x2ed0f1(0x1d2)](_0x22659??''),'meta':_0x473a78,'source':_0x116953};}export default _0x40cf2c[_0x3d520f(0x1be)]({'items':[],'selectedName':null,'selected':null,'runs':[],'overviewRuns':[],'selectedRun':null,'sourceDraft':'','payloadDraft':r,'currentView':_0x3d520f(0x1d0),'modalMode':'create','modalNameDraft':'','modalSourceDraft':a,'modalPayloadDraft':r,'modalJobContextDraft':null,'modalProcessorContextDraft':null,'modalMaterializerContextDraft':null,'modalDescriptionDraft':'','modalEnabledDraft':!0x0,'modalUnsafeDraft':!0x1,'modalTimeoutMsDraft':null,'modalMemoryMbDraft':null,'modalAllowFetchDraft':!0x0,'modalValidation':{'ok':!0x1,'code':_0x3d520f(0x1e9),'message':_0x3d520f(0x21d)},'modalPayloadError':null,'modalPreviewRun':null,'modalPreviewLogs':[],'modalRunning':!0x1,'modalDryRunMode':!0x1,'loading':!0x1,'saving':!0x1,'running':!0x1,'dryRunMode':!0x1,'payloadError':null,'error':null,get 'envName'(){const _0x30d628=_0x3d520f;return _0x50a982[_0x30d628(0x1d5)]||null;},get 'isGlobalScope'(){const _0x158d64=_0x3d520f;return _0x158d64(0x1b7)===this[_0x158d64(0x1d8)];},get 'hasEnv'(){const _0x3092db=_0x3d520f;return!!this[_0x3092db(0x1d8)];},get 'functionsBase'(){const _0x931f03=_0x3d520f;return this['envName']?__ENV__['API']+_0x931f03(0x21a)+encodeURIComponent(this[_0x931f03(0x1d8)])+_0x931f03(0x235):null;},get 'canOpenModal'(){const _0x55cc77=_0x3d520f;return!!this[_0x55cc77(0x1e8)];},get 'hasSelected'(){const _0x3a1ab8=_0x3d520f;return!!this[_0x3a1ab8(0x1f9)]&&!!this[_0x3a1ab8(0x1d1)];},get 'latestRun'(){const _0x1bd247=_0x3d520f;return this[_0x1bd247(0x1b1)]?.[0x0]?.[_0x1bd247(0x1f6)]||this[_0x1bd247(0x1b1)]?.[0x0]||null;},get 'activeRun'(){const _0x38fe1a=_0x3d520f;return this[_0x38fe1a(0x22c)]||this[_0x38fe1a(0x1c6)]||null;},get 'functionsOverview'(){const _0x362009=_0x3d520f,_0x26f55a=new Map();for(const _0x3e9f73 of this[_0x362009(0x1dd)]||[]){const _0x2fc06a=_0x3e9f73?.[_0x362009(0x1f6)]||_0x3e9f73,_0x56361d=_0x2fc06a?.[_0x362009(0x231)];_0x56361d&&!_0x26f55a[_0x362009(0x1c1)](_0x56361d)&&_0x26f55a[_0x362009(0x19e)](_0x56361d,_0x2fc06a);}return(this[_0x362009(0x1aa)]||[])[_0x362009(0x207)](_0x4a8ba4=>({..._0x4a8ba4,'latestRun':_0x26f55a[_0x362009(0x1a9)](_0x4a8ba4?.[_0x362009(0x217)])||null}));},get 'selectedFunctionTitle'(){const _0xbdbb51=_0x3d520f;return this[_0xbdbb51(0x1d1)]?.[_0xbdbb51(0x210)]||this[_0xbdbb51(0x1f9)]||null;},get 'selectedLogEntries'(){const _0x4526c4=_0x3d520f,_0x44e603=this[_0x4526c4(0x22c)]?.['id']||this[_0x4526c4(0x22c)]?.['runId'];if(_0x44e603)return this[_0x4526c4(0x1bd)](_0x44e603);const _0x5d0f92=this[_0x4526c4(0x1c6)]?.['id']||this[_0x4526c4(0x1c6)]?.[_0x4526c4(0x1ac)];return _0x5d0f92?this[_0x4526c4(0x1bd)](_0x5d0f92):[];},'logsForRun'(_0x21da25){const _0x33134e=_0x3d520f;if(!_0x21da25)return[];const _0x204da9=[this[_0x33134e(0x22c)],this['latestRun'],...(this[_0x33134e(0x1b1)]||[])[_0x33134e(0x207)](_0x58b907=>_0x58b907?.[_0x33134e(0x1f6)]||_0x58b907)][_0x33134e(0x21f)](_0x5565c9=>(_0x5565c9?.['id']||_0x5565c9?.[_0x33134e(0x1ac)])===_0x21da25)?.[_0x33134e(0x21e)],_0x52da24=[...Array[_0x33134e(0x1b2)](_0x204da9)?_0x204da9[_0x33134e(0x207)](_0x154d62=>o(_0x154d62,_0x33134e(0x1a4))):[],...(_0x19a3c0[_0x33134e(0x21e)]||[])[_0x33134e(0x1ea)](_0x4fedcb=>(_0x4fedcb?.[_0x33134e(0x1ac)]||_0x4fedcb?.[_0x33134e(0x22a)]?.[_0x33134e(0x1ac)])===_0x21da25)[_0x33134e(0x207)](_0x28b197=>o(_0x28b197,_0x33134e(0x206)))],_0x17a153=new Set(),_0x5aabfe=[];for(const _0x56380d of _0x52da24){const _0x4204f8=_0x56380d[_0x33134e(0x1ac)]+'|'+_0x56380d['ts']+'|'+_0x56380d[_0x33134e(0x224)]+'|'+_0x56380d[_0x33134e(0x1e4)]+'|'+JSON[_0x33134e(0x1d2)](_0x56380d[_0x33134e(0x22a)]??null);_0x17a153[_0x33134e(0x1c1)](_0x4204f8)||(_0x17a153[_0x33134e(0x1f4)](_0x4204f8),_0x5aabfe['push'](_0x56380d));}return _0x5aabfe[_0x33134e(0x1c4)]((_0x1ee7cd,_0x334cf6)=>(_0x1ee7cd['ts']??0x0)-(_0x334cf6['ts']??0x0)),_0x5aabfe;},'resetSelection'(){const _0x18704f=_0x3d520f;this[_0x18704f(0x1f9)]=null,this[_0x18704f(0x1d1)]=null,this['runs']=[],this[_0x18704f(0x1dd)]=[],this[_0x18704f(0x22c)]=null,this[_0x18704f(0x1db)]='',this['payloadDraft']=r,this[_0x18704f(0x1eb)]=null,this[_0x18704f(0x211)]=null;},'validateSource'(_0xf2bae6){const _0xbd858b=_0x3d520f,_0x2d75fd=_0xbd858b(0x1b8)==typeof _0xf2bae6?_0xf2bae6[_0xbd858b(0x205)](/\r\n/g,'\x0a')[_0xbd858b(0x213)]():'';if(!_0x2d75fd)return{'ok':!0x1,'code':_0xbd858b(0x1e9),'message':'Function\x20script\x20source\x20is\x20required'};const _0x51d21e=new TextEncoder()['encode'](_0x2d75fd)[_0xbd858b(0x1de)];if(_0x51d21e>0x10000)return{'ok':!0x1,'code':_0xbd858b(0x208),'message':_0xbd858b(0x20a)};if(!/^(async\s+)?\(\s*[A-Za-z_$][\w$]*\s*\)\s*=>/['test'](_0x2d75fd))return{'ok':!0x1,'code':'FUNCTION_SCRIPT_INVALID_SHAPE','message':_0xbd858b(0x220)};for(const {symbol:_0x2972b9,pattern:_0x130de9}of i)if(_0x130de9[_0xbd858b(0x1ec)](_0x2d75fd))return{'ok':!0x1,'code':_0xbd858b(0x1e5),'message':_0xbd858b(0x227)+_0x2972b9};try{new Function(_0xbd858b(0x225)+_0x2d75fd+');')();}catch(_0x19ef30){return{'ok':!0x1,'code':_0xbd858b(0x221),'message':_0x19ef30?.[_0xbd858b(0x223)]||_0xbd858b(0x236)};}return{'ok':!0x0,'code':null,'message':'','normalizedSource':_0x2d75fd,'bytes':_0x51d21e};},'parsePayloadDraft'(_0x239d44=this['payloadDraft']){const _0x43d4d3=_0x3d520f,_0x11a726=String(_0x239d44??'')[_0x43d4d3(0x213)]();return _0x11a726?JSON[_0x43d4d3(0x1b6)](_0x11a726):null;},'setModalSourceDraft'(_0x38f1a4){const _0x5381a0=_0x3d520f;this[_0x5381a0(0x1ae)]=_0x38f1a4??'',this[_0x5381a0(0x200)]=this['validateSource'](this[_0x5381a0(0x1ae)]);},'setModalPayloadDraft'(_0x5bc9cc){const _0x26a1ac=_0x3d520f;this[_0x26a1ac(0x23c)]=_0x5bc9cc??r;try{this[_0x26a1ac(0x234)](this[_0x26a1ac(0x23c)]),this['modalPayloadError']=null;}catch(_0x523582){this[_0x26a1ac(0x216)]=_0x523582?.[_0x26a1ac(0x223)]||_0x26a1ac(0x1cd);}},'setModalPreviewContext'({jobContext:_0x4c6f87=null,processorContext:_0x22b006=null,materializerContext:_0x2fc9cf=null}={}){const _0x28ef04=_0x3d520f;this[_0x28ef04(0x1b5)]=n(_0x4c6f87),this[_0x28ef04(0x1a8)]=n(_0x22b006),this['modalMaterializerContextDraft']=n(_0x2fc9cf);},'beginCreateDraft'(){const _0x46386e=_0x3d520f;this['modalMode']=_0x46386e(0x1ba),this['modalNameDraft']='',this[_0x46386e(0x22e)]='',this[_0x46386e(0x1f3)]=!0x0,this[_0x46386e(0x1fa)]=!0x1,this[_0x46386e(0x1dc)]=null,this[_0x46386e(0x1c3)]=null,this['modalAllowFetchDraft']=!0x0,this[_0x46386e(0x1f0)]=null,this['modalPreviewLogs']=[],this[_0x46386e(0x1b4)]({}),this[_0x46386e(0x1fc)](this[_0x46386e(0x21b)]||r),this[_0x46386e(0x228)](a);},'beginEditDraft'(){const _0x53afc1=_0x3d520f,_0x1ec1e4=this[_0x53afc1(0x1d1)];this[_0x53afc1(0x222)]=_0x53afc1(0x1af),this[_0x53afc1(0x1bb)]=_0x1ec1e4?.[_0x53afc1(0x210)]||this['selectedName']||'',this[_0x53afc1(0x22e)]=_0x1ec1e4?.[_0x53afc1(0x1f5)]?.[_0x53afc1(0x209)]||'',this[_0x53afc1(0x1f3)]=!0x1!==_0x1ec1e4?.[_0x53afc1(0x1ee)],this[_0x53afc1(0x1fa)]=!0x0===_0x1ec1e4?.[_0x53afc1(0x23b)],this['modalTimeoutMsDraft']=_0x1ec1e4?.[_0x53afc1(0x1e2)]?.[_0x53afc1(0x232)]??null,this[_0x53afc1(0x1c3)]=_0x1ec1e4?.[_0x53afc1(0x1e2)]?.[_0x53afc1(0x212)]??null,this['modalAllowFetchDraft']=!0x1!==_0x1ec1e4?.['runtime']?.['allowFetch'],this['modalPreviewRun']=null,this[_0x53afc1(0x1a0)]=[],this[_0x53afc1(0x1b4)]({}),this[_0x53afc1(0x1fc)](this[_0x53afc1(0x21b)]||r),this[_0x53afc1(0x228)](_0x1ec1e4?.['script']?.[_0x53afc1(0x1c7)]||this['sourceDraft']||a);},'buildModalDefinition'(){const _0x306569=_0x3d520f,_0x11779f={};return Number[_0x306569(0x21c)](this[_0x306569(0x1dc)])&&this[_0x306569(0x1dc)]>0x0&&(_0x11779f[_0x306569(0x232)]=this[_0x306569(0x1dc)]),Number[_0x306569(0x21c)](this[_0x306569(0x1c3)])&&this['modalMemoryMbDraft']>0x0&&(_0x11779f[_0x306569(0x212)]=this[_0x306569(0x1c3)]),_0x11779f[_0x306569(0x238)]=!0x1!==this['modalAllowFetchDraft'],{'name':String(this[_0x306569(0x1bb)]||'')[_0x306569(0x213)](),'source':this[_0x306569(0x200)]?.['normalizedSource']||String(this[_0x306569(0x1ae)]||'')[_0x306569(0x213)](),'metadata':{'description':String(this[_0x306569(0x22e)]||'')['trim']()},'enabled':!0x1!==this[_0x306569(0x1f3)],'unsafe':!0x0===this[_0x306569(0x1fa)],'runtime':_0x11779f};},get 'canSaveModal'(){const _0x47e50d=_0x3d520f;return!(!String(this[_0x47e50d(0x1bb)]||'')[_0x47e50d(0x213)]()||!this[_0x47e50d(0x200)]?.['ok']||this['modalPayloadError']||this[_0x47e50d(0x1bf)]);},async 'loadList'(){const _0x108abc=_0x3d520f;if(!this['functionsBase'])return[];this[_0x108abc(0x20d)]=!0x0,this[_0x108abc(0x211)]=null;try{const _0xbf3bb6=await fetch(this[_0x108abc(0x1e8)]),_0x3b45bb=await _0xbf3bb6[_0x108abc(0x239)]();return this[_0x108abc(0x1aa)]=_0x3b45bb?.[_0x108abc(0x1ef)]||[],this[_0x108abc(0x1f9)]&&(this[_0x108abc(0x1aa)][_0x108abc(0x21f)](_0x2a7f6a=>_0x2a7f6a[_0x108abc(0x217)]===this['selectedName'])||this[_0x108abc(0x1a2)]()),this[_0x108abc(0x1aa)];}catch(_0x877852){throw this[_0x108abc(0x211)]=_0x877852?.[_0x108abc(0x223)]||_0x108abc(0x1d6),_0x877852;}finally{this[_0x108abc(0x20d)]=!0x1;}},async 'reloadList'(){const _0x169f5f=_0x3d520f;return this[_0x169f5f(0x1aa)]=[],this[_0x169f5f(0x1e1)]();},'setView'(_0x2658b6=_0x3d520f(0x1d0)){const _0xf148d5=_0x3d520f;this[_0xf148d5(0x214)]=_0xf148d5(0x22d)===_0x2658b6?'detail':_0xf148d5(0x1d0);},async 'loadOverviewRuns'(_0x7944f0=0x18){const _0xae0d5a=_0x3d520f;if(!this[_0xae0d5a(0x1e8)])return[];const _0x2f0f67=(this[_0xae0d5a(0x1aa)]||[])[_0xae0d5a(0x207)](_0x384fb7=>_0x384fb7?.['key'])[_0xae0d5a(0x1ea)](Boolean),_0x4e94a0=[];for(const _0x54c837 of _0x2f0f67){const _0xfbf68=await fetch(this[_0xae0d5a(0x1e8)]+'/'+encodeURIComponent(_0x54c837)+_0xae0d5a(0x1f2)),_0x866a70=await _0xfbf68[_0xae0d5a(0x239)](),_0x3af589=(_0x866a70?.[_0xae0d5a(0x1ef)]||[])[_0xae0d5a(0x207)](_0x34591d=>_0x34591d?.[_0xae0d5a(0x1f6)]?_0x34591d:{'key':_0x34591d?.['id']||_0x34591d?.['runId'],'value':_0x34591d});_0x4e94a0[_0xae0d5a(0x203)](..._0x3af589);}return _0x4e94a0[_0xae0d5a(0x1c4)]((_0x33d5db,_0x5a76ce)=>{const _0xc1d18d=_0xae0d5a,_0x32df17=_0x33d5db?.[_0xc1d18d(0x1f6)]?.[_0xc1d18d(0x1b0)]?.['finishedAt']??_0x33d5db?.[_0xc1d18d(0x1f6)]?.[_0xc1d18d(0x204)]?.['requestedAt']??0x0;return(_0x5a76ce?.['value']?.[_0xc1d18d(0x1b0)]?.[_0xc1d18d(0x1e3)]??_0x5a76ce?.[_0xc1d18d(0x1f6)]?.[_0xc1d18d(0x204)]?.[_0xc1d18d(0x1cb)]??0x0)-_0x32df17;}),this['overviewRuns']=_0x4e94a0['slice'](0x0,_0x7944f0),this[_0xae0d5a(0x1dd)];},async 'hydrateOverview'(){await this['loadList'](),await this['loadOverviewRuns']();},async 'select'(_0x362333){const _0x5ecd3c=_0x3d520f;if(this[_0x5ecd3c(0x1f9)]=_0x362333||null,this[_0x5ecd3c(0x22c)]=null,this[_0x5ecd3c(0x214)]=_0x362333?_0x5ecd3c(0x22d):_0x5ecd3c(0x1d0),!_0x362333)return this[_0x5ecd3c(0x1d1)]=null,this['sourceDraft']='',this[_0x5ecd3c(0x1b1)]=[],null;const _0x43fd59=await fetch(this['functionsBase']+'/'+encodeURIComponent(_0x362333)),_0x349ac9=await _0x43fd59[_0x5ecd3c(0x239)]();if(this[_0x5ecd3c(0x1d1)]=_0x349ac9?.['data']||null,this['sourceDraft']=this[_0x5ecd3c(0x1d1)]?.[_0x5ecd3c(0x1f7)]?.['source']||'',this['payloadError']=null,await this['loadRuns'](_0x362333),!this[_0x5ecd3c(0x22c)]&&this[_0x5ecd3c(0x1b1)]?.[_0x5ecd3c(0x1de)]){const _0x3226bc=this[_0x5ecd3c(0x1b1)][0x0];this['selectedRun']=_0x3226bc?.['value']||_0x3226bc||null;}return this[_0x5ecd3c(0x1d1)];},async 'loadRuns'(_0x856320=this[_0x3d520f(0x1f9)]){const _0x54a201=_0x3d520f;if(!_0x856320)return this[_0x54a201(0x1b1)]=[],[];const _0x460a0f=await fetch(this[_0x54a201(0x1e8)]+'/'+encodeURIComponent(_0x856320)+_0x54a201(0x1f2)),_0x107117=await _0x460a0f[_0x54a201(0x239)]();if(this[_0x54a201(0x1b1)]=_0x107117?.['data']||[],this[_0x54a201(0x22c)]){const _0x523399=this['selectedRun']?.['id']||this['selectedRun']?.[_0x54a201(0x1ac)],_0x24256e=this[_0x54a201(0x1b1)]['map'](_0x2a56dd=>_0x2a56dd?.[_0x54a201(0x1f6)]||_0x2a56dd)[_0x54a201(0x21f)](_0x349af5=>(_0x349af5?.['id']||_0x349af5?.['runId'])===_0x523399);this[_0x54a201(0x22c)]=_0x24256e||null;}return this[_0x54a201(0x1b1)];},async 'refreshSelected'(){const _0x481282=_0x3d520f;if(!this['selectedName'])return null;const _0x4e2231=this[_0x481282(0x22c)]?.['id']||this[_0x481282(0x22c)]?.[_0x481282(0x1ac)];if(await this[_0x481282(0x1a5)](this[_0x481282(0x1f9)]),_0x4e2231){const _0x54c1df=this['runs'][_0x481282(0x207)](_0x2f20b9=>_0x2f20b9?.[_0x481282(0x1f6)]||_0x2f20b9)[_0x481282(0x21f)](_0x3fa900=>(_0x3fa900?.['id']||_0x3fa900?.[_0x481282(0x1ac)])===_0x4e2231);this[_0x481282(0x22c)]=_0x54c1df||this[_0x481282(0x22c)];}return await this[_0x481282(0x1e6)](),this['selected'];},'setSourceDraft'(_0x3c6ac4){const _0xc6a00a=_0x3d520f;this[_0xc6a00a(0x1db)]=_0x3c6ac4??'';},'setPayloadDraft'(_0xe956bf){const _0x3b4dc9=_0x3d520f;this[_0x3b4dc9(0x21b)]=_0xe956bf??r;try{this[_0x3b4dc9(0x234)](this[_0x3b4dc9(0x21b)]),this[_0x3b4dc9(0x1eb)]=null;}catch(_0x166e30){this[_0x3b4dc9(0x1eb)]=_0x166e30?.['message']||_0x3b4dc9(0x1cd);}},async 'create'(_0x4cae9d={}){const _0x369030=_0x3d520f;this['saving']=!0x0,this[_0x369030(0x211)]=null;try{const _0x531c63={..._0x4cae9d},_0x34420a=await fetch(this[_0x369030(0x1e8)],{'method':_0x369030(0x1c2),'headers':{'content-type':_0x369030(0x1b9)},'body':JSON['stringify'](_0x531c63)}),_0x298326=await _0x34420a[_0x369030(0x239)]();if(!_0x34420a['ok'])throw new Error(_0x298326?.[_0x369030(0x211)]?.['message']||_0x298326?.[_0x369030(0x1ef)]?.[_0x369030(0x211)]||_0x369030(0x1a1));return await this[_0x369030(0x1bc)](),await this[_0x369030(0x1a5)](_0x298326?.[_0x369030(0x1ef)]?.[_0x369030(0x210)]||_0x4cae9d[_0x369030(0x210)]),_0x298326?.['data'];}finally{this[_0x369030(0x1bf)]=!0x1;}},async 'saveSelected'(_0x331bfc={}){const _0x385358=_0x3d520f;if(!this[_0x385358(0x1f9)])return null;this[_0x385358(0x1bf)]=!0x0,this[_0x385358(0x211)]=null;try{const _0xdc828f={..._0x331bfc,'source':_0x331bfc?.[_0x385358(0x1c7)]??this['sourceDraft']},_0xf14270=await fetch(this[_0x385358(0x1e8)]+'/'+encodeURIComponent(this[_0x385358(0x1f9)]),{'method':_0x385358(0x1e0),'headers':{'content-type':_0x385358(0x1b9)},'body':JSON['stringify'](_0xdc828f)}),_0xb45bbd=await _0xf14270[_0x385358(0x239)]();if(!_0xf14270['ok'])throw new Error(_0xb45bbd?.[_0x385358(0x211)]?.[_0x385358(0x223)]||_0xb45bbd?.[_0x385358(0x1ef)]?.[_0x385358(0x211)]||_0x385358(0x1f1));return await this[_0x385358(0x1bc)](),await this[_0x385358(0x1a5)](this['selectedName']),_0xb45bbd?.['data'];}finally{this[_0x385358(0x1bf)]=!0x1;}},async 'saveModalDefinition'(){const _0x3b9a1b=_0x3d520f,_0x98c313=this[_0x3b9a1b(0x1c0)]();return _0x3b9a1b(0x1af)===this['modalMode']&&this['selectedName']?await this['saveSelected'](_0x98c313):this['create'](_0x98c313);},async 'remove'(_0x3d98f0=this[_0x3d520f(0x1f9)]){const _0x2a92d8=_0x3d520f;if(!_0x3d98f0)return!0x1;this[_0x2a92d8(0x1bf)]=!0x0,this['error']=null;try{const _0x25d205=await fetch(this['functionsBase']+'/'+encodeURIComponent(_0x3d98f0),{'method':'DELETE'});if(!_0x25d205['ok']&&0xcc!==_0x25d205[_0x2a92d8(0x230)]){const _0x4cae7e=await _0x25d205[_0x2a92d8(0x239)]()[_0x2a92d8(0x1ed)](()=>({}));throw new Error(_0x4cae7e?.[_0x2a92d8(0x211)]?.[_0x2a92d8(0x223)]||_0x4cae7e?.['data']?.[_0x2a92d8(0x211)]||_0x2a92d8(0x1ad));}return await this[_0x2a92d8(0x1bc)](),await this[_0x2a92d8(0x1e6)](),this[_0x2a92d8(0x1f9)]===_0x3d98f0&&this[_0x2a92d8(0x1a2)](),!0x0;}finally{this[_0x2a92d8(0x1bf)]=!0x1;}},async 'runSelected'(){const _0x5f307d=_0x3d520f;if(!this['selectedName'])return null;this[_0x5f307d(0x23a)]=!0x0,this[_0x5f307d(0x211)]=null;try{let _0x5195b1=null;try{_0x5195b1=this['parsePayloadDraft'](this[_0x5f307d(0x21b)]),this[_0x5f307d(0x1eb)]=null;}catch(_0x22b6e1){throw this['payloadError']=_0x22b6e1?.[_0x5f307d(0x223)]||_0x5f307d(0x1cd),_0x22b6e1;}const _0x4298d1=await fetch(this[_0x5f307d(0x1e8)]+'/'+encodeURIComponent(this[_0x5f307d(0x1f9)])+_0x5f307d(0x1ce),{'method':_0x5f307d(0x1c2),'headers':{'content-type':_0x5f307d(0x1b9)},'body':JSON[_0x5f307d(0x1d2)]({'payload':_0x5195b1,...this[_0x5f307d(0x22f)]&&{'dryRun':!0x0}})}),_0x1ebea1=await _0x4298d1[_0x5f307d(0x239)]();if(!_0x4298d1['ok']){const _0xa46f86=new Error(_0x1ebea1?.['error']?.[_0x5f307d(0x223)]||_0x1ebea1?.[_0x5f307d(0x1ef)]?.[_0x5f307d(0x211)]||'Failed\x20to\x20run\x20function');throw _0xa46f86[_0x5f307d(0x22b)]=_0x1ebea1?.['error']?.['code']||null,_0xa46f86;}return await this[_0x5f307d(0x1a3)](this[_0x5f307d(0x1f9)]),this['selectedRun']=n(_0x1ebea1?.[_0x5f307d(0x1ef)]||null),this[_0x5f307d(0x22f)]||!this[_0x5f307d(0x22c)]?.['id']&&!this[_0x5f307d(0x22c)]?.['runId']||await this[_0x5f307d(0x1ff)](this[_0x5f307d(0x22c)]['id']||this['selectedRun']['runId']),await this['loadOverviewRuns'](),this[_0x5f307d(0x22c)];}catch(_0x45f9d2){throw this[_0x5f307d(0x211)]=_0x45f9d2?.['code']?_0x45f9d2['code']+':\x20'+_0x45f9d2[_0x5f307d(0x223)]:_0x45f9d2?.[_0x5f307d(0x223)]||_0x5f307d(0x218),_0x45f9d2;}finally{this[_0x5f307d(0x23a)]=!0x1;}},async 'runModalDraft'(){const _0x4ed069=_0x3d520f,_0x5e263a=this[_0x4ed069(0x1c0)]();this['modalRunning']=!0x0,this[_0x4ed069(0x211)]=null;try{const _0x131b64=this[_0x4ed069(0x234)](this[_0x4ed069(0x23c)]);this[_0x4ed069(0x216)]=null,this[_0x4ed069(0x1f0)]=null,this[_0x4ed069(0x1a0)]=[];const _0x2d7f18=await fetch(this[_0x4ed069(0x1e8)]+_0x4ed069(0x20c),{'method':_0x4ed069(0x1c2),'headers':{'content-type':_0x4ed069(0x1b9)},'body':JSON[_0x4ed069(0x1d2)]({..._0x5e263a,'payload':_0x131b64,...this[_0x4ed069(0x237)]&&{'dryRun':!0x0},...this[_0x4ed069(0x1b5)]?{'jobContext':n(this[_0x4ed069(0x1b5)])}:{},...this[_0x4ed069(0x1a8)]?{'processorContext':n(this[_0x4ed069(0x1a8)])}:{},...this[_0x4ed069(0x1b3)]?{'materializerContext':n(this['modalMaterializerContextDraft'])}:{}})}),_0x1cadac=await _0x2d7f18['json']();if(!_0x2d7f18['ok'])throw new Error(_0x1cadac?.['error']?.[_0x4ed069(0x223)]||_0x1cadac?.[_0x4ed069(0x1ef)]?.[_0x4ed069(0x211)]||_0x4ed069(0x1cf));return this[_0x4ed069(0x1f0)]=n(_0x1cadac?.[_0x4ed069(0x1ef)]||null),this['modalPreviewLogs']=this['getLogsForRun'](this['modalPreviewRun']?.['id']||this[_0x4ed069(0x1f0)]?.['runId']),this[_0x4ed069(0x1f0)];}catch(_0x2967f4){throw _0x2967f4 instanceof SyntaxError&&(this['modalPayloadError']=_0x2967f4?.[_0x4ed069(0x223)]||_0x4ed069(0x1cd)),_0x2967f4;}finally{this[_0x4ed069(0x1c9)]=!0x1;}},'getLogsForRun':_0x1b8242=>_0x1b8242?(_0x19a3c0[_0x3d520f(0x21e)]||[])[_0x3d520f(0x1ea)](_0x515c26=>(_0x515c26?.[_0x3d520f(0x1ac)]||_0x515c26?.['meta']?.[_0x3d520f(0x1ac)])===_0x1b8242):[],'refreshModalPreviewLogs'(){const _0x5ad21d=_0x3d520f,_0xfdf618=this[_0x5ad21d(0x1f0)]?.['id']||this['modalPreviewRun']?.[_0x5ad21d(0x1ac)];return _0xfdf618?(this[_0x5ad21d(0x1a0)]=this[_0x5ad21d(0x219)](_0xfdf618),this['modalPreviewLogs']):(this['modalPreviewLogs']=[],[]);},async 'selectRun'(_0x32b80e){const _0x3b512a=_0x3d520f;if(!this[_0x3b512a(0x1f9)]||!_0x32b80e)return this[_0x3b512a(0x22c)]=null,null;const _0x531d3b=await fetch(this[_0x3b512a(0x1e8)]+'/'+encodeURIComponent(this['selectedName'])+_0x3b512a(0x20b)+encodeURIComponent(_0x32b80e)),_0x23708f=await _0x531d3b[_0x3b512a(0x239)]();return this[_0x3b512a(0x22c)]=_0x23708f?.['data']||null,this[_0x3b512a(0x22c)];},async 'onEnvChanged'(){const _0x442eb7=_0x3d520f;this[_0x442eb7(0x1a2)](),this[_0x442eb7(0x1c5)](),this[_0x442eb7(0x214)]='overview',this[_0x442eb7(0x1d4)]&&await this[_0x442eb7(0x215)]();}});
1
+ const _0x38007e=_0xf537;(function(_0x3a53f7,_0x260eac){const _0x3e6b14=_0xf537,_0x2f6b79=_0x3a53f7();while(!![]){try{const _0x3635a3=parseInt(_0x3e6b14(0x18c))/0x1+-parseInt(_0x3e6b14(0x167))/0x2+parseInt(_0x3e6b14(0x15c))/0x3*(-parseInt(_0x3e6b14(0x1a3))/0x4)+-parseInt(_0x3e6b14(0x1a4))/0x5*(-parseInt(_0x3e6b14(0x1be))/0x6)+-parseInt(_0x3e6b14(0x17c))/0x7*(-parseInt(_0x3e6b14(0x1a7))/0x8)+parseInt(_0x3e6b14(0x16c))/0x9+-parseInt(_0x3e6b14(0x1e9))/0xa*(parseInt(_0x3e6b14(0x1c1))/0xb);if(_0x3635a3===_0x260eac)break;else _0x2f6b79['push'](_0x2f6b79['shift']());}catch(_0x5dfd61){_0x2f6b79['push'](_0x2f6b79['shift']());}}}(_0x7cf4,0x2b047));function _0xf537(_0x1e2473,_0x2c9a04){_0x1e2473=_0x1e2473-0x150;const _0x7cf4bf=_0x7cf4();let _0xf53725=_0x7cf4bf[_0x1e2473];return _0xf53725;}import{ok as _0x545472}from'../modules/ok.js';import _0x18acd6 from'./okdb-store.js';import _0x2efb80 from'./events-store.js';const a=[_0x38007e(0x196),_0x38007e(0x1c2),_0x38007e(0x18b),'\x20\x20//\x20ctx.log\x20\x20\x20\x20\x20—\x20structured\x20logger:\x20ctx.log.info(msg,\x20data)','\x20\x20//\x20Tip:\x20use\x20the\x20\x22seed\x22\x20template\x20when\x20you\x20want\x20bulk\x20inserts\x20via\x20ctx.env.txn(...)','','\x20\x20return\x20{\x20ok:\x20true\x20};','}'][_0x38007e(0x175)]('\x0a'),r='{\x0a\x20\x20\x0a}',i=[{'symbol':_0x38007e(0x1b0),'pattern':/(^|[^\w$.])require\s*\(/},{'symbol':_0x38007e(0x1ca),'pattern':/(^|[^\w$.])import\b/},{'symbol':_0x38007e(0x194),'pattern':/(^|[^\w$.])console\b/},{'symbol':_0x38007e(0x1d8),'pattern':/(^|[^\w$.])module\b/},{'symbol':_0x38007e(0x16b),'pattern':/(^|[^\w$.])exports\b/},{'symbol':_0x38007e(0x1dd),'pattern':/(^|[^\w$.])process\b/},{'symbol':_0x38007e(0x199),'pattern':/child_process/},{'symbol':_0x38007e(0x153),'pattern':/worker_threads/}];function n(_0x316f84){const _0x3ed627=_0x38007e;return null==_0x316f84?_0x316f84:JSON['parse'](JSON[_0x3ed627(0x1dc)](_0x316f84));}function _0x7cf4(){const _0x8dcde7=['modalValidation','~system','info','selectedRun','msg','modalJobContextDraft','saving','runtime','memoryMb','metadata','FUNCTION_SCRIPT_COMPILE_FAILED','error','FUNCTION_SCRIPT_TOO_LARGE','hydrateOverview','\x20\x20//\x20ctx.env\x20\x20\x20\x20\x20—\x20env-scoped\x20facade:\x20put,\x20get,\x20query,\x20txn,\x20queue,\x20files,\x20...','318518VDQUZh','unsafe','items','selected','modalNameDraft','payloadDraft','Payload\x20JSON\x20is\x20invalid','level','console','selectedName','async\x20(ctx)\x20=>\x20{','Failed\x20to\x20run\x20function','modalPayloadError','child_process','hasEnv','setModalPayloadDraft','modalSourceDraft','/functions','meta','Failed\x20to\x20delete\x20function','persisted','getLogsForRun','length','36724bXNpkg','4135oUzNGw','buildModalDefinition','functionsBase','8kbQzhA','DELETE','timeoutMs','filter','saveSelected','FUNCTION_SCRIPT_REQUIRED','test','Function\x20script\x20exceeds\x2065536\x20bytes','validateSource','require','modalPayloadDraft','detail','message','dryRunMode','application/json','/runs','modalPreviewLogs','find','live','parsePayloadDraft','script','FUNCTION_SCRIPT_INVALID_SHAPE','replace','618CTiPHa','logsForRun','data','11TiHWZF','\x20\x20//\x20ctx.payload\x20—\x20caller\x20input','slice','requestedAt','key','loadRuns','parse','loading','modalTimeoutMsDraft','import','/run','POST','proxy','get','Failed\x20to\x20create\x20function','content','trim','name','set','return\x20(','modalMaterializerContextDraft','modalPreviewRun','request','module','value','resetSelection','_ts','stringify','process','latestRun','Failed\x20to\x20run\x20draft','json','description','reloadList','PUT','Function\x20script\x20failed\x20to\x20compile','title','loadOverviewRuns','sort','runs','1990690GTcYbR','modalEnabledDraft','beginCreateDraft','logs','execution','runId','push','setModalPreviewContext','worker_threads','overview','modalUnsafeDraft','modalProcessorContextDraft','selectedEnv','FUNCTION_SCRIPT_FORBIDDEN_SYMBOL','modalMemoryMbDraft','isFinite','source','96YxriSn','payloadError','sourceDraft','modalAllowFetchDraft','Function\x20script\x20source\x20is\x20required','encode','create','/runs/','string','Function\x20script\x20may\x20not\x20reference\x20','/env/','196204rxBSkx','modalRunning','modalMode','Failed\x20to\x20save\x20function','exports','2855844MyXftZ','select','map','setModalSourceDraft','envName','now','overviewRuns','modalDescriptionDraft','finishedAt','join','code','isArray','currentView','functionName','allowFetch','has','323029wGNvDa'];_0x7cf4=function(){return _0x8dcde7;};return _0x7cf4();}function o(_0x58ca7b={},_0x5baf34='persisted'){const _0x4298c9=_0x38007e,_0x2e0a2b=_0x58ca7b?.[_0x4298c9(0x19e)]??null,_0x389406=_0x58ca7b?.['msg']??_0x58ca7b?.[_0x4298c9(0x1b3)]??_0x58ca7b?.[_0x4298c9(0x1d0)]??_0x58ca7b?.[_0x4298c9(0x1e5)]??'';return{'runId':_0x58ca7b?.['runId']??_0x2e0a2b?.[_0x4298c9(0x150)]??null,'ts':_0x58ca7b?.['ts']??_0x58ca7b?.[_0x4298c9(0x1db)]??Date[_0x4298c9(0x171)](),'level':_0x58ca7b?.['level']??_0x4298c9(0x17f),'msg':'string'==typeof _0x389406?_0x389406:JSON[_0x4298c9(0x1dc)](_0x389406??''),'meta':_0x2e0a2b,'source':_0x5baf34};}export default _0x545472[_0x38007e(0x1cd)]({'items':[],'selectedName':null,'selected':null,'runs':[],'overviewRuns':[],'selectedRun':null,'sourceDraft':'','payloadDraft':r,'currentView':'overview','modalMode':_0x38007e(0x162),'modalNameDraft':'','modalSourceDraft':a,'modalPayloadDraft':r,'modalJobContextDraft':null,'modalProcessorContextDraft':null,'modalMaterializerContextDraft':null,'modalDescriptionDraft':'','modalEnabledDraft':!0x0,'modalUnsafeDraft':!0x1,'modalTimeoutMsDraft':null,'modalMemoryMbDraft':null,'modalAllowFetchDraft':!0x0,'modalValidation':{'ok':!0x1,'code':_0x38007e(0x1ac),'message':'Function\x20script\x20source\x20is\x20required'},'modalPayloadError':null,'modalPreviewRun':null,'modalPreviewLogs':[],'modalRunning':!0x1,'modalDryRunMode':!0x1,'loading':!0x1,'saving':!0x1,'running':!0x1,'dryRunMode':!0x1,'payloadError':null,'error':null,get 'envName'(){const _0x4e57c1=_0x38007e;return _0x18acd6[_0x4e57c1(0x157)]||null;},get 'isGlobalScope'(){const _0x272175=_0x38007e;return _0x272175(0x17e)===this[_0x272175(0x170)];},get 'hasEnv'(){const _0x45c7c1=_0x38007e;return!!this[_0x45c7c1(0x170)];},get 'functionsBase'(){const _0x5be65d=_0x38007e;return this[_0x5be65d(0x170)]?__ENV__['API']+_0x5be65d(0x166)+encodeURIComponent(this[_0x5be65d(0x170)])+_0x5be65d(0x19d):null;},get 'canOpenModal'(){const _0x1b0939=_0x38007e;return!!this[_0x1b0939(0x1a6)];},get 'hasSelected'(){const _0x62cef4=_0x38007e;return!!this[_0x62cef4(0x195)]&&!!this[_0x62cef4(0x18f)];},get 'latestRun'(){const _0x3f5ef9=_0x38007e;return this[_0x3f5ef9(0x1e8)]?.[0x0]?.[_0x3f5ef9(0x1d9)]||this[_0x3f5ef9(0x1e8)]?.[0x0]||null;},get 'activeRun'(){const _0x18d143=_0x38007e;return this[_0x18d143(0x180)]||this['latestRun']||null;},get 'functionsOverview'(){const _0x233b9f=_0x38007e,_0xe7e8b8=new Map();for(const _0x477ef5 of this[_0x233b9f(0x172)]||[]){const _0x5abc59=_0x477ef5?.['value']||_0x477ef5,_0x5239b4=_0x5abc59?.[_0x233b9f(0x179)];_0x5239b4&&!_0xe7e8b8[_0x233b9f(0x17b)](_0x5239b4)&&_0xe7e8b8[_0x233b9f(0x1d3)](_0x5239b4,_0x5abc59);}return(this['items']||[])[_0x233b9f(0x16e)](_0x185d12=>({..._0x185d12,'latestRun':_0xe7e8b8[_0x233b9f(0x1ce)](_0x185d12?.['key'])||null}));},get 'selectedFunctionTitle'(){const _0x95b047=_0x38007e;return this['selected']?.[_0x95b047(0x1d2)]||this[_0x95b047(0x195)]||null;},get 'selectedLogEntries'(){const _0x2dff85=_0x38007e,_0x48f39c=this[_0x2dff85(0x180)]?.['id']||this[_0x2dff85(0x180)]?.[_0x2dff85(0x150)];if(_0x48f39c)return this[_0x2dff85(0x1bf)](_0x48f39c);const _0x4503ab=this[_0x2dff85(0x1de)]?.['id']||this[_0x2dff85(0x1de)]?.['runId'];return _0x4503ab?this[_0x2dff85(0x1bf)](_0x4503ab):[];},'logsForRun'(_0x2f68fe){const _0x474b47=_0x38007e;if(!_0x2f68fe)return[];const _0x4a7ea8=[this[_0x474b47(0x180)],this[_0x474b47(0x1de)],...(this[_0x474b47(0x1e8)]||[])['map'](_0x24b40a=>_0x24b40a?.[_0x474b47(0x1d9)]||_0x24b40a)][_0x474b47(0x1b8)](_0xc0d002=>(_0xc0d002?.['id']||_0xc0d002?.['runId'])===_0x2f68fe)?.[_0x474b47(0x1ec)],_0x1b946f=[...Array[_0x474b47(0x177)](_0x4a7ea8)?_0x4a7ea8[_0x474b47(0x16e)](_0x4c70cf=>o(_0x4c70cf,_0x474b47(0x1a0))):[],...(_0x2efb80['logs']||[])[_0x474b47(0x1aa)](_0xeedc93=>(_0xeedc93?.['runId']||_0xeedc93?.['meta']?.[_0x474b47(0x150)])===_0x2f68fe)['map'](_0x579296=>o(_0x579296,_0x474b47(0x1b9)))],_0x1d3213=new Set(),_0x5591b1=[];for(const _0x326086 of _0x1b946f){const _0x3bbdce=_0x326086[_0x474b47(0x150)]+'|'+_0x326086['ts']+'|'+_0x326086[_0x474b47(0x193)]+'|'+_0x326086[_0x474b47(0x181)]+'|'+JSON[_0x474b47(0x1dc)](_0x326086[_0x474b47(0x19e)]??null);_0x1d3213[_0x474b47(0x17b)](_0x3bbdce)||(_0x1d3213['add'](_0x3bbdce),_0x5591b1[_0x474b47(0x151)](_0x326086));}return _0x5591b1[_0x474b47(0x1e7)]((_0x30dd9c,_0x288bea)=>(_0x30dd9c['ts']??0x0)-(_0x288bea['ts']??0x0)),_0x5591b1;},'resetSelection'(){const _0x56c3e6=_0x38007e;this[_0x56c3e6(0x195)]=null,this[_0x56c3e6(0x18f)]=null,this[_0x56c3e6(0x1e8)]=[],this[_0x56c3e6(0x172)]=[],this[_0x56c3e6(0x180)]=null,this[_0x56c3e6(0x15e)]='',this['payloadDraft']=r,this[_0x56c3e6(0x15d)]=null,this['error']=null;},'validateSource'(_0x365fe1){const _0x1f6b91=_0x38007e,_0x413996=_0x1f6b91(0x164)==typeof _0x365fe1?_0x365fe1[_0x1f6b91(0x1bd)](/\r\n/g,'\x0a')[_0x1f6b91(0x1d1)]():'';if(!_0x413996)return{'ok':!0x1,'code':_0x1f6b91(0x1ac),'message':_0x1f6b91(0x160)};const _0x39f10c=new TextEncoder()[_0x1f6b91(0x161)](_0x413996)[_0x1f6b91(0x1a2)];if(_0x39f10c>0x10000)return{'ok':!0x1,'code':_0x1f6b91(0x189),'message':_0x1f6b91(0x1ae)};if(!/^(async\s+)?\(\s*[A-Za-z_$][\w$]*\s*\)\s*=>/[_0x1f6b91(0x1ad)](_0x413996))return{'ok':!0x1,'code':_0x1f6b91(0x1bc),'message':'Function\x20script\x20must\x20be\x20an\x20anonymous\x20arrow\x20function\x20of\x20the\x20form\x20[async]\x20(ctx)\x20=>\x20{}'};for(const {symbol:_0x26e8f6,pattern:_0x3919d6}of i)if(_0x3919d6[_0x1f6b91(0x1ad)](_0x413996))return{'ok':!0x1,'code':_0x1f6b91(0x158),'message':_0x1f6b91(0x165)+_0x26e8f6};try{new Function(_0x1f6b91(0x1d4)+_0x413996+');')();}catch(_0x10b2e5){return{'ok':!0x1,'code':_0x1f6b91(0x187),'message':_0x10b2e5?.[_0x1f6b91(0x1b3)]||_0x1f6b91(0x1e4)};}return{'ok':!0x0,'code':null,'message':'','normalizedSource':_0x413996,'bytes':_0x39f10c};},'parsePayloadDraft'(_0x414756=this[_0x38007e(0x191)]){const _0x4bece9=_0x38007e,_0x3fe9ea=String(_0x414756??'')['trim']();return _0x3fe9ea?JSON[_0x4bece9(0x1c7)](_0x3fe9ea):null;},'setModalSourceDraft'(_0x1cb1bc){const _0x470fa7=_0x38007e;this[_0x470fa7(0x19c)]=_0x1cb1bc??'',this[_0x470fa7(0x17d)]=this[_0x470fa7(0x1af)](this[_0x470fa7(0x19c)]);},'setModalPayloadDraft'(_0x3cc1b7){const _0x454ca5=_0x38007e;this[_0x454ca5(0x1b1)]=_0x3cc1b7??r;try{this['parsePayloadDraft'](this[_0x454ca5(0x1b1)]),this[_0x454ca5(0x198)]=null;}catch(_0x3c35a5){this['modalPayloadError']=_0x3c35a5?.[_0x454ca5(0x1b3)]||_0x454ca5(0x192);}},'setModalPreviewContext'({jobContext:_0x16b275=null,processorContext:_0x4cc67a=null,materializerContext:_0x357d07=null}={}){const _0x2e5ab4=_0x38007e;this[_0x2e5ab4(0x182)]=n(_0x16b275),this[_0x2e5ab4(0x156)]=n(_0x4cc67a),this[_0x2e5ab4(0x1d5)]=n(_0x357d07);},'beginCreateDraft'(){const _0x9cf22e=_0x38007e;this['modalMode']=_0x9cf22e(0x162),this[_0x9cf22e(0x190)]='',this[_0x9cf22e(0x173)]='',this[_0x9cf22e(0x1ea)]=!0x0,this[_0x9cf22e(0x155)]=!0x1,this['modalTimeoutMsDraft']=null,this['modalMemoryMbDraft']=null,this[_0x9cf22e(0x15f)]=!0x0,this['modalPreviewRun']=null,this['modalPreviewLogs']=[],this[_0x9cf22e(0x152)]({}),this[_0x9cf22e(0x19b)](this[_0x9cf22e(0x191)]||r),this[_0x9cf22e(0x16f)](a);},'beginEditDraft'(){const _0x1b514d=_0x38007e,_0x20016c=this[_0x1b514d(0x18f)];this['modalMode']='edit',this['modalNameDraft']=_0x20016c?.['name']||this[_0x1b514d(0x195)]||'',this[_0x1b514d(0x173)]=_0x20016c?.[_0x1b514d(0x186)]?.[_0x1b514d(0x1e1)]||'',this[_0x1b514d(0x1ea)]=!0x1!==_0x20016c?.['enabled'],this['modalUnsafeDraft']=!0x0===_0x20016c?.[_0x1b514d(0x18d)],this[_0x1b514d(0x1c9)]=_0x20016c?.['runtime']?.[_0x1b514d(0x1a9)]??null,this[_0x1b514d(0x159)]=_0x20016c?.['runtime']?.['memoryMb']??null,this[_0x1b514d(0x15f)]=!0x1!==_0x20016c?.[_0x1b514d(0x184)]?.[_0x1b514d(0x17a)],this[_0x1b514d(0x1d6)]=null,this[_0x1b514d(0x1b7)]=[],this[_0x1b514d(0x152)]({}),this[_0x1b514d(0x19b)](this['payloadDraft']||r),this['setModalSourceDraft'](_0x20016c?.[_0x1b514d(0x1bb)]?.[_0x1b514d(0x15b)]||this[_0x1b514d(0x15e)]||a);},'buildModalDefinition'(){const _0x484e47=_0x38007e,_0x58f76a={};return Number[_0x484e47(0x15a)](this[_0x484e47(0x1c9)])&&this['modalTimeoutMsDraft']>0x0&&(_0x58f76a[_0x484e47(0x1a9)]=this[_0x484e47(0x1c9)]),Number[_0x484e47(0x15a)](this['modalMemoryMbDraft'])&&this[_0x484e47(0x159)]>0x0&&(_0x58f76a[_0x484e47(0x185)]=this[_0x484e47(0x159)]),_0x58f76a[_0x484e47(0x17a)]=!0x1!==this['modalAllowFetchDraft'],{'name':String(this[_0x484e47(0x190)]||'')[_0x484e47(0x1d1)](),'source':this[_0x484e47(0x17d)]?.['normalizedSource']||String(this[_0x484e47(0x19c)]||'')[_0x484e47(0x1d1)](),'metadata':{'description':String(this[_0x484e47(0x173)]||'')[_0x484e47(0x1d1)]()},'enabled':!0x1!==this[_0x484e47(0x1ea)],'unsafe':!0x0===this[_0x484e47(0x155)],'runtime':_0x58f76a};},get 'canSaveModal'(){const _0x58fd6e=_0x38007e;return!(!String(this[_0x58fd6e(0x190)]||'')[_0x58fd6e(0x1d1)]()||!this['modalValidation']?.['ok']||this['modalPayloadError']||this['saving']);},async 'loadList'(){const _0x4e2bd8=_0x38007e;if(!this[_0x4e2bd8(0x1a6)])return[];this[_0x4e2bd8(0x1c8)]=!0x0,this[_0x4e2bd8(0x188)]=null;try{const _0xcbdba8=await fetch(this['functionsBase']),_0x250c3f=await _0xcbdba8[_0x4e2bd8(0x1e0)]();return this[_0x4e2bd8(0x18e)]=_0x250c3f?.[_0x4e2bd8(0x1c0)]||[],this[_0x4e2bd8(0x195)]&&(this[_0x4e2bd8(0x18e)]['find'](_0x54cbca=>_0x54cbca[_0x4e2bd8(0x1c5)]===this['selectedName'])||this[_0x4e2bd8(0x1da)]()),this[_0x4e2bd8(0x18e)];}catch(_0x53143b){throw this[_0x4e2bd8(0x188)]=_0x53143b?.[_0x4e2bd8(0x1b3)]||'Failed\x20to\x20load\x20functions',_0x53143b;}finally{this[_0x4e2bd8(0x1c8)]=!0x1;}},async 'reloadList'(){const _0x435af6=_0x38007e;return this[_0x435af6(0x18e)]=[],this['loadList']();},'setView'(_0x4f9a46=_0x38007e(0x154)){const _0x4f713c=_0x38007e;this[_0x4f713c(0x178)]=_0x4f713c(0x1b2)===_0x4f9a46?_0x4f713c(0x1b2):_0x4f713c(0x154);},async 'loadOverviewRuns'(_0x58f4a3=0x18){const _0x592f81=_0x38007e;if(!this[_0x592f81(0x1a6)])return[];const _0x500ea8=(this[_0x592f81(0x18e)]||[])['map'](_0x317851=>_0x317851?.['key'])[_0x592f81(0x1aa)](Boolean),_0x22f197=[];for(const _0x295961 of _0x500ea8){const _0x5ed0a9=await fetch(this['functionsBase']+'/'+encodeURIComponent(_0x295961)+_0x592f81(0x1b6)),_0x94156c=await _0x5ed0a9[_0x592f81(0x1e0)](),_0x5742e4=(_0x94156c?.['data']||[])['map'](_0x2e27e3=>_0x2e27e3?.[_0x592f81(0x1d9)]?_0x2e27e3:{'key':_0x2e27e3?.['id']||_0x2e27e3?.[_0x592f81(0x150)],'value':_0x2e27e3});_0x22f197['push'](..._0x5742e4);}return _0x22f197['sort']((_0x41caef,_0x487775)=>{const _0x196767=_0x592f81,_0x40b044=_0x41caef?.[_0x196767(0x1d9)]?.['execution']?.[_0x196767(0x174)]??_0x41caef?.[_0x196767(0x1d9)]?.['request']?.[_0x196767(0x1c4)]??0x0;return(_0x487775?.[_0x196767(0x1d9)]?.[_0x196767(0x1ed)]?.['finishedAt']??_0x487775?.[_0x196767(0x1d9)]?.[_0x196767(0x1d7)]?.[_0x196767(0x1c4)]??0x0)-_0x40b044;}),this[_0x592f81(0x172)]=_0x22f197[_0x592f81(0x1c3)](0x0,_0x58f4a3),this[_0x592f81(0x172)];},async 'hydrateOverview'(){const _0x478852=_0x38007e;await this['loadList'](),await this[_0x478852(0x1e6)]();},async 'select'(_0x1285ba){const _0x1bfa1e=_0x38007e;if(this[_0x1bfa1e(0x195)]=_0x1285ba||null,this[_0x1bfa1e(0x180)]=null,this['currentView']=_0x1285ba?_0x1bfa1e(0x1b2):_0x1bfa1e(0x154),!_0x1285ba)return this[_0x1bfa1e(0x18f)]=null,this['sourceDraft']='',this[_0x1bfa1e(0x1e8)]=[],null;const _0x31de01=await fetch(this[_0x1bfa1e(0x1a6)]+'/'+encodeURIComponent(_0x1285ba)),_0x5ee678=await _0x31de01[_0x1bfa1e(0x1e0)]();if(this[_0x1bfa1e(0x18f)]=_0x5ee678?.['data']||null,this[_0x1bfa1e(0x15e)]=this[_0x1bfa1e(0x18f)]?.[_0x1bfa1e(0x1bb)]?.[_0x1bfa1e(0x15b)]||'',this[_0x1bfa1e(0x15d)]=null,await this[_0x1bfa1e(0x1c6)](_0x1285ba),!this[_0x1bfa1e(0x180)]&&this[_0x1bfa1e(0x1e8)]?.[_0x1bfa1e(0x1a2)]){const _0x40f32b=this[_0x1bfa1e(0x1e8)][0x0];this[_0x1bfa1e(0x180)]=_0x40f32b?.['value']||_0x40f32b||null;}return this[_0x1bfa1e(0x18f)];},async 'loadRuns'(_0x284ad5=this[_0x38007e(0x195)]){const _0x183cbd=_0x38007e;if(!_0x284ad5)return this[_0x183cbd(0x1e8)]=[],[];const _0x821029=await fetch(this['functionsBase']+'/'+encodeURIComponent(_0x284ad5)+_0x183cbd(0x1b6)),_0x6bbe27=await _0x821029['json']();if(this['runs']=_0x6bbe27?.[_0x183cbd(0x1c0)]||[],this[_0x183cbd(0x180)]){const _0x411435=this[_0x183cbd(0x180)]?.['id']||this[_0x183cbd(0x180)]?.[_0x183cbd(0x150)],_0x352906=this[_0x183cbd(0x1e8)][_0x183cbd(0x16e)](_0x2299e3=>_0x2299e3?.['value']||_0x2299e3)[_0x183cbd(0x1b8)](_0x910770=>(_0x910770?.['id']||_0x910770?.['runId'])===_0x411435);this[_0x183cbd(0x180)]=_0x352906||null;}return this[_0x183cbd(0x1e8)];},async 'refreshSelected'(){const _0x11897f=_0x38007e;if(!this[_0x11897f(0x195)])return null;const _0x3a9d0a=this['selectedRun']?.['id']||this[_0x11897f(0x180)]?.[_0x11897f(0x150)];if(await this[_0x11897f(0x16d)](this[_0x11897f(0x195)]),_0x3a9d0a){const _0x46cae6=this[_0x11897f(0x1e8)][_0x11897f(0x16e)](_0x49f843=>_0x49f843?.[_0x11897f(0x1d9)]||_0x49f843)[_0x11897f(0x1b8)](_0x27dc6f=>(_0x27dc6f?.['id']||_0x27dc6f?.[_0x11897f(0x150)])===_0x3a9d0a);this[_0x11897f(0x180)]=_0x46cae6||this['selectedRun'];}return await this[_0x11897f(0x1e6)](),this[_0x11897f(0x18f)];},'setSourceDraft'(_0x20bf39){this['sourceDraft']=_0x20bf39??'';},'setPayloadDraft'(_0x204055){const _0x5ca25e=_0x38007e;this[_0x5ca25e(0x191)]=_0x204055??r;try{this[_0x5ca25e(0x1ba)](this[_0x5ca25e(0x191)]),this['payloadError']=null;}catch(_0x2c4f88){this[_0x5ca25e(0x15d)]=_0x2c4f88?.[_0x5ca25e(0x1b3)]||'Payload\x20JSON\x20is\x20invalid';}},async 'create'(_0x2cfa32={}){const _0x4e18de=_0x38007e;this[_0x4e18de(0x183)]=!0x0,this[_0x4e18de(0x188)]=null;try{const _0x34d0b7={..._0x2cfa32},_0x2ac42b=await fetch(this[_0x4e18de(0x1a6)],{'method':'POST','headers':{'content-type':_0x4e18de(0x1b5)},'body':JSON[_0x4e18de(0x1dc)](_0x34d0b7)}),_0x1aa89d=await _0x2ac42b[_0x4e18de(0x1e0)]();if(!_0x2ac42b['ok'])throw new Error(_0x1aa89d?.[_0x4e18de(0x188)]?.[_0x4e18de(0x1b3)]||_0x1aa89d?.[_0x4e18de(0x1c0)]?.[_0x4e18de(0x188)]||_0x4e18de(0x1cf));return await this[_0x4e18de(0x1e2)](),await this['select'](_0x1aa89d?.[_0x4e18de(0x1c0)]?.[_0x4e18de(0x1d2)]||_0x2cfa32[_0x4e18de(0x1d2)]),_0x1aa89d?.[_0x4e18de(0x1c0)];}finally{this[_0x4e18de(0x183)]=!0x1;}},async 'saveSelected'(_0x10b0a0={}){const _0xcd9c6d=_0x38007e;if(!this['selectedName'])return null;this[_0xcd9c6d(0x183)]=!0x0,this[_0xcd9c6d(0x188)]=null;try{const _0x5d9ea4={..._0x10b0a0,'source':_0x10b0a0?.[_0xcd9c6d(0x15b)]??this[_0xcd9c6d(0x15e)]},_0x361e0c=await fetch(this[_0xcd9c6d(0x1a6)]+'/'+encodeURIComponent(this['selectedName']),{'method':_0xcd9c6d(0x1e3),'headers':{'content-type':'application/json'},'body':JSON[_0xcd9c6d(0x1dc)](_0x5d9ea4)}),_0x37ad17=await _0x361e0c['json']();if(!_0x361e0c['ok'])throw new Error(_0x37ad17?.[_0xcd9c6d(0x188)]?.[_0xcd9c6d(0x1b3)]||_0x37ad17?.[_0xcd9c6d(0x1c0)]?.[_0xcd9c6d(0x188)]||_0xcd9c6d(0x16a));return await this[_0xcd9c6d(0x1e2)](),await this['select'](this[_0xcd9c6d(0x195)]),_0x37ad17?.['data'];}finally{this[_0xcd9c6d(0x183)]=!0x1;}},async 'saveModalDefinition'(){const _0x3c61fd=_0x38007e,_0x4d8659=this[_0x3c61fd(0x1a5)]();return'edit'===this[_0x3c61fd(0x169)]&&this[_0x3c61fd(0x195)]?await this[_0x3c61fd(0x1ab)](_0x4d8659):this['create'](_0x4d8659);},async 'remove'(_0x59f230=this[_0x38007e(0x195)]){const _0xfd1cb9=_0x38007e;if(!_0x59f230)return!0x1;this[_0xfd1cb9(0x183)]=!0x0,this[_0xfd1cb9(0x188)]=null;try{const _0x60098c=await fetch(this[_0xfd1cb9(0x1a6)]+'/'+encodeURIComponent(_0x59f230),{'method':_0xfd1cb9(0x1a8)});if(!_0x60098c['ok']&&0xcc!==_0x60098c['status']){const _0x42badc=await _0x60098c[_0xfd1cb9(0x1e0)]()['catch'](()=>({}));throw new Error(_0x42badc?.[_0xfd1cb9(0x188)]?.[_0xfd1cb9(0x1b3)]||_0x42badc?.[_0xfd1cb9(0x1c0)]?.[_0xfd1cb9(0x188)]||_0xfd1cb9(0x19f));}return await this[_0xfd1cb9(0x1e2)](),await this[_0xfd1cb9(0x1e6)](),this[_0xfd1cb9(0x195)]===_0x59f230&&this[_0xfd1cb9(0x1da)](),!0x0;}finally{this[_0xfd1cb9(0x183)]=!0x1;}},async 'runSelected'(){const _0x18b983=_0x38007e;if(!this[_0x18b983(0x195)])return null;this['running']=!0x0,this[_0x18b983(0x188)]=null;try{let _0x4e9f82=null;try{_0x4e9f82=this[_0x18b983(0x1ba)](this[_0x18b983(0x191)]),this[_0x18b983(0x15d)]=null;}catch(_0x264b8d){throw this[_0x18b983(0x15d)]=_0x264b8d?.[_0x18b983(0x1b3)]||_0x18b983(0x192),_0x264b8d;}const _0x1a52ac=await fetch(this[_0x18b983(0x1a6)]+'/'+encodeURIComponent(this['selectedName'])+_0x18b983(0x1cb),{'method':_0x18b983(0x1cc),'headers':{'content-type':_0x18b983(0x1b5)},'body':JSON['stringify']({'payload':_0x4e9f82,...this['dryRunMode']&&{'dryRun':!0x0}})}),_0x8b84f6=await _0x1a52ac[_0x18b983(0x1e0)]();if(!_0x1a52ac['ok']){const _0x36a0f7=new Error(_0x8b84f6?.[_0x18b983(0x188)]?.[_0x18b983(0x1b3)]||_0x8b84f6?.['data']?.[_0x18b983(0x188)]||_0x18b983(0x197));throw _0x36a0f7[_0x18b983(0x176)]=_0x8b84f6?.['error']?.['code']||null,_0x36a0f7;}return await this[_0x18b983(0x1c6)](this[_0x18b983(0x195)]),this[_0x18b983(0x180)]=n(_0x8b84f6?.[_0x18b983(0x1c0)]||null),this[_0x18b983(0x1b4)]||!this[_0x18b983(0x180)]?.['id']&&!this['selectedRun']?.[_0x18b983(0x150)]||await this['selectRun'](this['selectedRun']['id']||this[_0x18b983(0x180)]['runId']),await this[_0x18b983(0x1e6)](),this[_0x18b983(0x180)];}catch(_0x408afe){throw this['error']=_0x408afe?.[_0x18b983(0x176)]?_0x408afe['code']+':\x20'+_0x408afe[_0x18b983(0x1b3)]:_0x408afe?.[_0x18b983(0x1b3)]||_0x18b983(0x197),_0x408afe;}finally{this['running']=!0x1;}},async 'runModalDraft'(){const _0x3160a9=_0x38007e,_0x280000=this[_0x3160a9(0x1a5)]();this[_0x3160a9(0x168)]=!0x0,this[_0x3160a9(0x188)]=null;try{const _0x2069af=this[_0x3160a9(0x1ba)](this['modalPayloadDraft']);this[_0x3160a9(0x198)]=null,this[_0x3160a9(0x1d6)]=null,this[_0x3160a9(0x1b7)]=[];const _0xe8707c=await fetch(this[_0x3160a9(0x1a6)]+'/preview',{'method':'POST','headers':{'content-type':_0x3160a9(0x1b5)},'body':JSON[_0x3160a9(0x1dc)]({..._0x280000,'payload':_0x2069af,...this['modalDryRunMode']&&{'dryRun':!0x0},...this[_0x3160a9(0x182)]?{'jobContext':n(this[_0x3160a9(0x182)])}:{},...this[_0x3160a9(0x156)]?{'processorContext':n(this[_0x3160a9(0x156)])}:{},...this['modalMaterializerContextDraft']?{'materializerContext':n(this[_0x3160a9(0x1d5)])}:{}})}),_0x48a56d=await _0xe8707c[_0x3160a9(0x1e0)]();if(!_0xe8707c['ok'])throw new Error(_0x48a56d?.[_0x3160a9(0x188)]?.[_0x3160a9(0x1b3)]||_0x48a56d?.[_0x3160a9(0x1c0)]?.[_0x3160a9(0x188)]||_0x3160a9(0x1df));return this['modalPreviewRun']=n(_0x48a56d?.[_0x3160a9(0x1c0)]||null),this[_0x3160a9(0x1b7)]=this[_0x3160a9(0x1a1)](this['modalPreviewRun']?.['id']||this[_0x3160a9(0x1d6)]?.['runId']),this[_0x3160a9(0x1d6)];}catch(_0x27c903){throw _0x27c903 instanceof SyntaxError&&(this['modalPayloadError']=_0x27c903?.['message']||_0x3160a9(0x192)),_0x27c903;}finally{this[_0x3160a9(0x168)]=!0x1;}},'getLogsForRun':_0x324e3a=>_0x324e3a?(_0x2efb80[_0x38007e(0x1ec)]||[])[_0x38007e(0x1aa)](_0x1f0ea5=>(_0x1f0ea5?.[_0x38007e(0x150)]||_0x1f0ea5?.[_0x38007e(0x19e)]?.[_0x38007e(0x150)])===_0x324e3a):[],'refreshModalPreviewLogs'(){const _0xc0d9be=_0x38007e,_0x5dcdff=this[_0xc0d9be(0x1d6)]?.['id']||this[_0xc0d9be(0x1d6)]?.[_0xc0d9be(0x150)];return _0x5dcdff?(this[_0xc0d9be(0x1b7)]=this[_0xc0d9be(0x1a1)](_0x5dcdff),this[_0xc0d9be(0x1b7)]):(this[_0xc0d9be(0x1b7)]=[],[]);},async 'selectRun'(_0x1681d8){const _0x37ea3f=_0x38007e;if(!this[_0x37ea3f(0x195)]||!_0x1681d8)return this[_0x37ea3f(0x180)]=null,null;const _0x241144=await fetch(this[_0x37ea3f(0x1a6)]+'/'+encodeURIComponent(this[_0x37ea3f(0x195)])+_0x37ea3f(0x163)+encodeURIComponent(_0x1681d8)),_0x456453=await _0x241144[_0x37ea3f(0x1e0)]();return this[_0x37ea3f(0x180)]=_0x456453?.[_0x37ea3f(0x1c0)]||null,this[_0x37ea3f(0x180)];},async 'onEnvChanged'(){const _0x16efbd=_0x38007e;this[_0x16efbd(0x1da)](),this[_0x16efbd(0x1eb)](),this[_0x16efbd(0x178)]='overview',this[_0x16efbd(0x19a)]&&await this[_0x16efbd(0x18a)]();}});
@@ -1 +1 @@
1
- function _0x14cc(_0x32e195,_0x3c011c){_0x32e195=_0x32e195-0x1ee;const _0x32fb9b=_0x32fb();let _0x14cce1=_0x32fb9b[_0x32e195];return _0x14cce1;}const _0x435b75=_0x14cc;(function(_0x27814c,_0x33308d){const _0x4b63d2=_0x14cc,_0x41ecb1=_0x27814c();while(!![]){try{const _0x496b0f=-parseInt(_0x4b63d2(0x1ee))/0x1+-parseInt(_0x4b63d2(0x20e))/0x2+parseInt(_0x4b63d2(0x21b))/0x3*(-parseInt(_0x4b63d2(0x1f5))/0x4)+-parseInt(_0x4b63d2(0x1f3))/0x5+-parseInt(_0x4b63d2(0x20c))/0x6*(-parseInt(_0x4b63d2(0x21a))/0x7)+-parseInt(_0x4b63d2(0x211))/0x8+parseInt(_0x4b63d2(0x1f2))/0x9;if(_0x496b0f===_0x33308d)break;else _0x41ecb1['push'](_0x41ecb1['shift']());}catch(_0x15c71b){_0x41ecb1['push'](_0x41ecb1['shift']());}}}(_0x32fb,0x30343));function _0x32fb(){const _0x39b79e=['json','/envs','/env','string','default','apiBase','selectedEnv','name','proxy','message','/types','115698rYzZQC','info','86270xMDrwK','types','error','1596496siumJI','envs','loadInfo','API','then','Failed\x20to\x20fetch\x20info','_pickBestEnv','find','reloadTypes','7vMHYTt','78rwgfVL','plugins','includes','filter','187864cJsZza','orphaned','_infoPromise','selectEnv','7915878eWOAaM','1121795kjmmnW','/type/','7148RRNayq','result','loadEnvs','_envsPromise','catch','startsWith','Failed\x20to\x20load\x20types\x20(HTTP\x20','data','_typesPromise','status','_fetchInfo','loadTypes'];_0x32fb=function(){return _0x39b79e;};return _0x32fb();}import{ok as _0x134758}from'../modules/ok.js';export default _0x134758[_0x435b75(0x209)]({'selectedEnv':_0x435b75(0x205),get 'apiBase'(){const _0x3d1775=_0x435b75,_0x25831b=this['selectedEnv'];return _0x25831b?__ENV__[_0x3d1775(0x214)]+'/env/'+encodeURIComponent(_0x25831b):__ENV__['API']+_0x3d1775(0x203);},'selectEnv'(_0x136421){const _0x460bec=_0x435b75;this[_0x460bec(0x207)]!==_0x136421&&(this[_0x460bec(0x207)]=_0x136421,this[_0x460bec(0x20f)]=null,this[_0x460bec(0x1fd)]=null,this[_0x460bec(0x20d)]=null,this[_0x460bec(0x1f0)]=null);},'info':null,'_infoPromise':null,async 'loadInfo'(){const _0x2e63ca=_0x435b75;if(!this[_0x2e63ca(0x207)])return null;if(null!==this[_0x2e63ca(0x20d)])return this[_0x2e63ca(0x20d)];if(!this[_0x2e63ca(0x1f0)]){this[_0x2e63ca(0x1f0)]=this[_0x2e63ca(0x1ff)]();try{this[_0x2e63ca(0x20d)]=await this[_0x2e63ca(0x1f0)];}catch(_0x4b3a78){throw this[_0x2e63ca(0x1f0)]=null,_0x4b3a78;}}return await this[_0x2e63ca(0x1f0)],this[_0x2e63ca(0x20d)];},async 'reloadInfo'(){const _0x38ad4a=_0x435b75;return this[_0x38ad4a(0x20d)]=null,this['_infoPromise']=null,this['loadInfo']();},async '_fetchInfo'(){const _0x53dac2=_0x435b75;if(!this[_0x53dac2(0x207)])return null;const _0x401cdf=await fetch(this[_0x53dac2(0x206)]+'/info');if(_0x401cdf['ok'])return(await _0x401cdf[_0x53dac2(0x201)]())[_0x53dac2(0x1fc)];if(0x191===_0x401cdf[_0x53dac2(0x1fe)]||0x193===_0x401cdf[_0x53dac2(0x1fe)])return null;if(0x194===_0x401cdf['status'])return null;throw new Error(_0x53dac2(0x216));},'hasPlugin'(_0x316ce0){const _0x1e808b=_0x435b75;return this[_0x1e808b(0x20d)]?.[_0x1e808b(0x21c)]?.[_0x1e808b(0x21d)](_0x316ce0);},'types':null,'_typesPromise':null,async 'loadTypes'(){const _0x40b8fa=_0x435b75;if(!this[_0x40b8fa(0x207)])return[];if(this['types'])return this[_0x40b8fa(0x20f)];if(!this[_0x40b8fa(0x1fd)]){const _0x2e9d3e=this['apiBase'];this[_0x40b8fa(0x1fd)]=fetch(_0x2e9d3e+_0x40b8fa(0x20b))[_0x40b8fa(0x215)](async _0x51e091=>{const _0x3426fa=_0x40b8fa;if(!_0x51e091['ok']){const _0x801b3f=await _0x51e091[_0x3426fa(0x201)]()['catch'](()=>({})),_0x4ca3dd=_0x801b3f?.[_0x3426fa(0x210)],_0x5115dd=_0x3426fa(0x204)==typeof _0x4ca3dd?_0x4ca3dd:_0x4ca3dd?.[_0x3426fa(0x20a)]||_0x3426fa(0x1fb)+_0x51e091[_0x3426fa(0x1fe)]+')',_0x77155a=new Error(_0x5115dd);throw _0x77155a[_0x3426fa(0x1fe)]=_0x51e091['status'],_0x77155a;}const _0x3650fb=await _0x51e091['json']();return this[_0x3426fa(0x20f)]=_0x3650fb?.[_0x3426fa(0x1fc)]??_0x3650fb?.[_0x3426fa(0x1f6)]??[];})['catch'](_0x1e2d91=>{const _0x10c2ec=_0x40b8fa;throw this[_0x10c2ec(0x1fd)]=null,_0x1e2d91;});}return this[_0x40b8fa(0x1fd)];},async 'reloadTypes'(){const _0x4f2b8e=_0x435b75;return this[_0x4f2b8e(0x20f)]=null,this[_0x4f2b8e(0x1fd)]=null,this[_0x4f2b8e(0x200)]();},async 'registerType'(_0x24e5bd){const _0x457e2b=_0x435b75;await fetch(this['apiBase']+_0x457e2b(0x1f4)+encodeURIComponent(_0x24e5bd),{'method':'POST'}),await this[_0x457e2b(0x219)]();},'envs':null,'_envsPromise':null,async 'loadEnvs'(){const _0x3c61b1=_0x435b75;return this[_0x3c61b1(0x212)]?this[_0x3c61b1(0x212)]:(this[_0x3c61b1(0x1f8)]||(this['_envsPromise']=fetch(__ENV__[_0x3c61b1(0x214)]+_0x3c61b1(0x202))[_0x3c61b1(0x215)](async _0x3e14dd=>{const _0x274f6e=_0x3c61b1;if(0x191===_0x3e14dd[_0x274f6e(0x1fe)]||0x193===_0x3e14dd[_0x274f6e(0x1fe)])return this['envs']=[],this[_0x274f6e(0x207)]=null,[];const {data:_0x404c92}=await _0x3e14dd[_0x274f6e(0x201)]();return this[_0x274f6e(0x212)]=_0x404c92||[];})[_0x3c61b1(0x1f9)](_0x18b893=>{throw this['_envsPromise']=null,_0x18b893;})),this[_0x3c61b1(0x1f8)]);},async 'reloadEnvs'(){const _0x3db4f8=_0x435b75;return this['envs']=null,this[_0x3db4f8(0x1f8)]=null,this[_0x3db4f8(0x1f7)]();},'_pickBestEnv'(){const _0x548b5a=_0x435b75,_0x4e08df=(this[_0x548b5a(0x212)]||[])[_0x548b5a(0x21e)](_0x4f0037=>!_0x4f0037['name'][_0x548b5a(0x1fa)]('~')&&!_0x4f0037[_0x548b5a(0x1ef)]);return _0x4e08df[_0x548b5a(0x218)](_0x5e2507=>_0x5e2507[_0x548b5a(0x208)]===this[_0x548b5a(0x207)])?this[_0x548b5a(0x207)]:_0x4e08df[0x0]?.[_0x548b5a(0x208)]??null;},async 'init'(){const _0xff9ad8=_0x435b75;await this[_0xff9ad8(0x1f7)]();const _0x5e3953=this[_0xff9ad8(0x217)]();_0x5e3953!==this[_0xff9ad8(0x207)]&&this[_0xff9ad8(0x1f1)](_0x5e3953),this[_0xff9ad8(0x207)]&&await this[_0xff9ad8(0x213)]()['catch'](()=>{const _0x51d8d5=_0xff9ad8;this[_0x51d8d5(0x20d)]=null;});}});
1
+ function _0x3498(_0x7e7a96,_0x5b0504){_0x7e7a96=_0x7e7a96-0xa6;const _0x3afed6=_0x3afe();let _0x3498d5=_0x3afed6[_0x7e7a96];return _0x3498d5;}const _0xbf573b=_0x3498;(function(_0x20294c,_0x2b5d47){const _0x420ac2=_0x3498,_0x3589cb=_0x20294c();while(!![]){try{const _0x18d9e6=parseInt(_0x420ac2(0xab))/0x1+parseInt(_0x420ac2(0xbd))/0x2*(-parseInt(_0x420ac2(0xac))/0x3)+-parseInt(_0x420ac2(0xc5))/0x4+-parseInt(_0x420ac2(0xc3))/0x5+-parseInt(_0x420ac2(0xc2))/0x6*(-parseInt(_0x420ac2(0xb7))/0x7)+-parseInt(_0x420ac2(0xb0))/0x8+parseInt(_0x420ac2(0xce))/0x9;if(_0x18d9e6===_0x2b5d47)break;else _0x3589cb['push'](_0x3589cb['shift']());}catch(_0x372e24){_0x3589cb['push'](_0x3589cb['shift']());}}}(_0x3afe,0xcc773));function _0x3afe(){const _0x37b936=['find','apiBase','/type/','228TkmEcO','731625CdtNFV','_typesPromise','2132720ddFxPy','API','name','selectEnv','types','Failed\x20to\x20load\x20types\x20(HTTP\x20','catch','json','_envsPromise','26957520nKypsT','loadInfo','/envs','loadTypes','selectedEnv','loadEnvs','258139UNYHwO','782442rAzfHC','_infoPromise','orphaned','/types','11953368JbMerd','result','data','/info','_pickBestEnv','default','info','51464WyRKDI','filter','Failed\x20to\x20fetch\x20info','then','status','/env','4jTPGVN','envs'];_0x3afe=function(){return _0x37b936;};return _0x3afe();}import{ok as _0xa3f11c}from'../modules/ok.js';export default _0xa3f11c['proxy']({'selectedEnv':_0xbf573b(0xb5),get 'apiBase'(){const _0x3bab83=_0xbf573b,_0x14c5b6=this[_0x3bab83(0xa9)];return _0x14c5b6?__ENV__[_0x3bab83(0xc6)]+'/env/'+encodeURIComponent(_0x14c5b6):__ENV__[_0x3bab83(0xc6)]+_0x3bab83(0xbc);},'selectEnv'(_0x2f6bc1){const _0x4b96c1=_0xbf573b;this[_0x4b96c1(0xa9)]!==_0x2f6bc1&&(this['selectedEnv']=_0x2f6bc1,this[_0x4b96c1(0xc9)]=null,this[_0x4b96c1(0xc4)]=null,this['info']=null,this[_0x4b96c1(0xad)]=null);},'info':null,'_infoPromise':null,async 'loadInfo'(){const _0x53fa19=_0xbf573b;if(!this['selectedEnv'])return null;if(null!==this[_0x53fa19(0xb6)])return this[_0x53fa19(0xb6)];if(!this['_infoPromise']){this[_0x53fa19(0xad)]=this['_fetchInfo']();try{this['info']=await this[_0x53fa19(0xad)];}catch(_0x55edbb){throw this[_0x53fa19(0xad)]=null,_0x55edbb;}}return await this[_0x53fa19(0xad)],this[_0x53fa19(0xb6)];},async 'reloadInfo'(){const _0x478159=_0xbf573b;return this[_0x478159(0xb6)]=null,this[_0x478159(0xad)]=null,this[_0x478159(0xa6)]();},async '_fetchInfo'(){const _0x30c2a9=_0xbf573b;if(!this['selectedEnv'])return null;const _0x559e1c=await fetch(this[_0x30c2a9(0xc0)]+_0x30c2a9(0xb3));if(_0x559e1c['ok'])return(await _0x559e1c[_0x30c2a9(0xcc)]())[_0x30c2a9(0xb2)];if(0x191===_0x559e1c[_0x30c2a9(0xbb)]||0x193===_0x559e1c[_0x30c2a9(0xbb)])return null;if(0x194===_0x559e1c['status'])return null;throw new Error(_0x30c2a9(0xb9));},'hasPlugin'(_0x4fffc8){return this['info']?.['plugins']?.['includes'](_0x4fffc8);},'types':null,'_typesPromise':null,async 'loadTypes'(){const _0x2e66cb=_0xbf573b;if(!this['selectedEnv'])return[];if(this['types'])return this[_0x2e66cb(0xc9)];if(!this[_0x2e66cb(0xc4)]){const _0xf78dc0=this['apiBase'];this[_0x2e66cb(0xc4)]=fetch(_0xf78dc0+_0x2e66cb(0xaf))[_0x2e66cb(0xba)](async _0x42c976=>{const _0x49be2a=_0x2e66cb;if(!_0x42c976['ok']){const _0x19fd97=await _0x42c976[_0x49be2a(0xcc)]()[_0x49be2a(0xcb)](()=>({})),_0x31336f=_0x19fd97?.['error'],_0x3ec737='string'==typeof _0x31336f?_0x31336f:_0x31336f?.['message']||_0x49be2a(0xca)+_0x42c976[_0x49be2a(0xbb)]+')',_0x229b7b=new Error(_0x3ec737);throw _0x229b7b['status']=_0x42c976[_0x49be2a(0xbb)],_0x229b7b;}const _0x264af7=await _0x42c976[_0x49be2a(0xcc)]();return this[_0x49be2a(0xc9)]=_0x264af7?.['data']??_0x264af7?.[_0x49be2a(0xb1)]??[];})[_0x2e66cb(0xcb)](_0x109cac=>{const _0x50e8da=_0x2e66cb;throw this[_0x50e8da(0xc4)]=null,_0x109cac;});}return this[_0x2e66cb(0xc4)];},async 'reloadTypes'(){const _0xef320c=_0xbf573b;return this[_0xef320c(0xc9)]=null,this['_typesPromise']=null,this[_0xef320c(0xa8)]();},async 'registerType'(_0xe7e5a8){const _0x273ea7=_0xbf573b;await fetch(this[_0x273ea7(0xc0)]+_0x273ea7(0xc1)+encodeURIComponent(_0xe7e5a8),{'method':'POST'}),await this['reloadTypes']();},'envs':null,'_envsPromise':null,async 'loadEnvs'(){const _0xc6c1f9=_0xbf573b;return this[_0xc6c1f9(0xbe)]?this[_0xc6c1f9(0xbe)]:(this[_0xc6c1f9(0xcd)]||(this[_0xc6c1f9(0xcd)]=fetch(__ENV__[_0xc6c1f9(0xc6)]+_0xc6c1f9(0xa7))[_0xc6c1f9(0xba)](async _0x2e1582=>{const _0x250eea=_0xc6c1f9;if(0x191===_0x2e1582['status']||0x193===_0x2e1582['status'])return this[_0x250eea(0xbe)]=[],this[_0x250eea(0xa9)]=null,[];const {data:_0x33f790}=await _0x2e1582[_0x250eea(0xcc)]();return this['envs']=_0x33f790||[];})[_0xc6c1f9(0xcb)](_0x427c1c=>{const _0x410a77=_0xc6c1f9;throw this[_0x410a77(0xcd)]=null,_0x427c1c;})),this['_envsPromise']);},async 'reloadEnvs'(){const _0x25bb0f=_0xbf573b;return this[_0x25bb0f(0xbe)]=null,this['_envsPromise']=null,this['loadEnvs']();},'_pickBestEnv'(){const _0xe2bd76=_0xbf573b,_0x4ea8b3=(this[_0xe2bd76(0xbe)]||[])[_0xe2bd76(0xb8)](_0x14b2df=>!_0x14b2df[_0xe2bd76(0xc7)]['startsWith']('~')&&!_0x14b2df[_0xe2bd76(0xae)]);return _0x4ea8b3[_0xe2bd76(0xbf)](_0xd6f071=>_0xd6f071[_0xe2bd76(0xc7)]===this[_0xe2bd76(0xa9)])?this[_0xe2bd76(0xa9)]:_0x4ea8b3[0x0]?.[_0xe2bd76(0xc7)]??null;},async 'init'(){const _0x36ab78=_0xbf573b;await this[_0x36ab78(0xaa)]();const _0x317e26=this[_0x36ab78(0xb4)]();_0x317e26!==this['selectedEnv']&&this[_0x36ab78(0xc8)](_0x317e26),this[_0x36ab78(0xa9)]&&await this[_0x36ab78(0xa6)]()[_0x36ab78(0xcb)](()=>{this['info']=null;});}});
@@ -1 +1 @@
1
- const _0x2e2cf9=_0x51b9;(function(_0x3e8c42,_0x4d3848){const _0x39b0f9=_0x51b9,_0x26917d=_0x3e8c42();while(!![]){try{const _0x28c27b=-parseInt(_0x39b0f9(0x12f))/0x1*(parseInt(_0x39b0f9(0x142))/0x2)+parseInt(_0x39b0f9(0x12b))/0x3*(parseInt(_0x39b0f9(0x12e))/0x4)+-parseInt(_0x39b0f9(0x128))/0x5+parseInt(_0x39b0f9(0x138))/0x6*(-parseInt(_0x39b0f9(0x132))/0x7)+-parseInt(_0x39b0f9(0x13e))/0x8+-parseInt(_0x39b0f9(0x130))/0x9+parseInt(_0x39b0f9(0x13f))/0xa*(parseInt(_0x39b0f9(0x129))/0xb);if(_0x28c27b===_0x4d3848)break;else _0x26917d['push'](_0x26917d['shift']());}catch(_0x56cfb1){_0x26917d['push'](_0x26917d['shift']());}}}(_0x1db4,0xe32a1));function _0x51b9(_0x27c589,_0x537307){_0x27c589=_0x27c589-0x128;const _0x1db4a3=_0x1db4();let _0x51b9ee=_0x1db4a3[_0x27c589];return _0x51b9ee;}const STORAGE_KEY=_0x2e2cf9(0x131),VALID=new Set([_0x2e2cf9(0x135),'light']);function readSaved(){const _0x152801=_0x2e2cf9;try{const _0x16fc0e=localStorage[_0x152801(0x12c)](_0x152801(0x131));return VALID[_0x152801(0x133)](_0x16fc0e)?_0x16fc0e:null;}catch{return null;}}function _0x1db4(){const _0x430180=['4454775zKacAk','61184112fsZBvG','matchMedia','3nbMNcw','getItem','change','2770912BoPnIi','1802497QNxRxr','8543520ATSvuz','okdbTheme','91DdwVBq','has','removeAttribute','dark','matches','current','560526HBekuD','addEventListener','(prefers-color-scheme:\x20light)','undefined','set','delete','3738000cObJmK','10fMFBDu','data-theme','isExplicit','2uReftb','light'];_0x1db4=function(){return _0x430180;};return _0x1db4();}function detectPreferred(){const _0x2400a1=_0x2e2cf9;return'undefined'!=typeof window&&window[_0x2400a1(0x12a)]&&window[_0x2400a1(0x12a)](_0x2400a1(0x13a))['matches']?_0x2400a1(0x143):'dark';}function apply(_0x49cb69){const _0x512966=_0x2e2cf9,_0x194816=document['documentElement'];_0x512966(0x143)===_0x49cb69?_0x194816['setAttribute']('data-theme','light'):_0x194816[_0x512966(0x134)](_0x512966(0x140));}const subscribers=new Set(),themeStore={'current':readSaved()||detectPreferred(),'isExplicit':null!==readSaved(),'set'(_0x3f94dd){const _0x2b0cc5=_0x2e2cf9;if(VALID[_0x2b0cc5(0x133)](_0x3f94dd)){this[_0x2b0cc5(0x137)]=_0x3f94dd,this[_0x2b0cc5(0x141)]=!0x0;try{localStorage['setItem'](_0x2b0cc5(0x131),_0x3f94dd);}catch{}apply(_0x3f94dd);for(const _0x3509ad of subscribers)_0x3509ad(_0x3f94dd);}},'toggle'(){const _0x4eca76=_0x2e2cf9;this[_0x4eca76(0x13c)](_0x4eca76(0x135)===this['current']?_0x4eca76(0x143):_0x4eca76(0x135));},'subscribe':_0x3179b7=>(subscribers['add'](_0x3179b7),()=>subscribers[_0x2e2cf9(0x13d)](_0x3179b7))};if(apply(themeStore[_0x2e2cf9(0x137)]),_0x2e2cf9(0x13b)!=typeof window&&window[_0x2e2cf9(0x12a)]){const e=window[_0x2e2cf9(0x12a)]('(prefers-color-scheme:\x20light)'),t=_0xa395b4=>{const _0x2ed7b4=_0x2e2cf9;if(!themeStore[_0x2ed7b4(0x141)]){themeStore[_0x2ed7b4(0x137)]=_0xa395b4[_0x2ed7b4(0x136)]?_0x2ed7b4(0x143):_0x2ed7b4(0x135),apply(themeStore[_0x2ed7b4(0x137)]);for(const _0xf0bbfe of subscribers)_0xf0bbfe(themeStore[_0x2ed7b4(0x137)]);}};e[_0x2e2cf9(0x139)]?.(_0x2e2cf9(0x12d),t);}export default themeStore;
1
+ const _0x22aa8a=_0x2038;(function(_0x3acb43,_0x4d13ec){const _0x2f6a89=_0x2038,_0x2f5fed=_0x3acb43();while(!![]){try{const _0x3f0921=parseInt(_0x2f6a89(0xaa))/0x1*(-parseInt(_0x2f6a89(0xa7))/0x2)+-parseInt(_0x2f6a89(0x9b))/0x3*(-parseInt(_0x2f6a89(0xac))/0x4)+parseInt(_0x2f6a89(0x99))/0x5*(-parseInt(_0x2f6a89(0xaf))/0x6)+-parseInt(_0x2f6a89(0x9d))/0x7+-parseInt(_0x2f6a89(0x94))/0x8*(-parseInt(_0x2f6a89(0xab))/0x9)+-parseInt(_0x2f6a89(0xae))/0xa+-parseInt(_0x2f6a89(0xa0))/0xb*(-parseInt(_0x2f6a89(0x9c))/0xc);if(_0x3f0921===_0x4d13ec)break;else _0x2f5fed['push'](_0x2f5fed['shift']());}catch(_0x4d6c13){_0x2f5fed['push'](_0x2f5fed['shift']());}}}(_0x4c2f,0xa2a73));const STORAGE_KEY='okdbTheme',VALID=new Set(['dark',_0x22aa8a(0x93)]);function _0x4c2f(){const _0x73e35d=['data-theme','set','(prefers-color-scheme:\x20light)','2328195aGOweE','isExplicit','93921hcPIeb','12LCOYQI','3115371RheISf','undefined','add','15671777CZnHto','has','matchMedia','documentElement','okdbTheme','dark','getItem','53598KMFdvX','matches','removeAttribute','1ykqxBi','10996857cxtzlW','76ESMfpS','current','11720560EWfgKN','12xtahSW','light','8lYbeZK','setAttribute'];_0x4c2f=function(){return _0x73e35d;};return _0x4c2f();}function readSaved(){const _0xbb29a6=_0x22aa8a;try{const _0x5f36ca=localStorage[_0xbb29a6(0xa6)](_0xbb29a6(0xa4));return VALID[_0xbb29a6(0xa1)](_0x5f36ca)?_0x5f36ca:null;}catch{return null;}}function detectPreferred(){const _0x164edd=_0x22aa8a;return _0x164edd(0x9e)!=typeof window&&window[_0x164edd(0xa2)]&&window[_0x164edd(0xa2)](_0x164edd(0x98))[_0x164edd(0xa8)]?'light':'dark';}function apply(_0x5a0d08){const _0x4de640=_0x22aa8a,_0x56fca1=document[_0x4de640(0xa3)];_0x4de640(0x93)===_0x5a0d08?_0x56fca1[_0x4de640(0x95)]('data-theme',_0x4de640(0x93)):_0x56fca1[_0x4de640(0xa9)](_0x4de640(0x96));}function _0x2038(_0x19ca67,_0x380811){_0x19ca67=_0x19ca67-0x93;const _0x4c2fe3=_0x4c2f();let _0x203862=_0x4c2fe3[_0x19ca67];return _0x203862;}const subscribers=new Set(),themeStore={'current':readSaved()||detectPreferred(),'isExplicit':null!==readSaved(),'set'(_0x5038c5){const _0x1be3d2=_0x22aa8a;if(VALID['has'](_0x5038c5)){this[_0x1be3d2(0xad)]=_0x5038c5,this[_0x1be3d2(0x9a)]=!0x0;try{localStorage['setItem']('okdbTheme',_0x5038c5);}catch{}apply(_0x5038c5);for(const _0x8823 of subscribers)_0x8823(_0x5038c5);}},'toggle'(){const _0x47152c=_0x22aa8a;this[_0x47152c(0x97)](_0x47152c(0xa5)===this[_0x47152c(0xad)]?_0x47152c(0x93):'dark');},'subscribe':_0x1aae3f=>(subscribers[_0x22aa8a(0x9f)](_0x1aae3f),()=>subscribers['delete'](_0x1aae3f))};if(apply(themeStore[_0x22aa8a(0xad)]),'undefined'!=typeof window&&window[_0x22aa8a(0xa2)]){const e=window[_0x22aa8a(0xa2)](_0x22aa8a(0x98)),t=_0x57c343=>{const _0x40abf5=_0x22aa8a;if(!themeStore[_0x40abf5(0x9a)]){themeStore['current']=_0x57c343[_0x40abf5(0xa8)]?_0x40abf5(0x93):_0x40abf5(0xa5),apply(themeStore[_0x40abf5(0xad)]);for(const _0x2e9882 of subscribers)_0x2e9882(themeStore[_0x40abf5(0xad)]);}};e['addEventListener']?.('change',t);}export default themeStore;
@@ -1 +1 @@
1
- (function(_0x5dc09a,_0x1434bf){const _0x14292a=_0x4c8e,_0x2481cc=_0x5dc09a();while(!![]){try{const _0x469fab=parseInt(_0x14292a(0x15a))/0x1*(parseInt(_0x14292a(0x15f))/0x2)+-parseInt(_0x14292a(0x15b))/0x3*(-parseInt(_0x14292a(0x15d))/0x4)+parseInt(_0x14292a(0x15c))/0x5*(parseInt(_0x14292a(0x161))/0x6)+parseInt(_0x14292a(0x159))/0x7+-parseInt(_0x14292a(0x158))/0x8*(parseInt(_0x14292a(0x165))/0x9)+parseInt(_0x14292a(0x164))/0xa+-parseInt(_0x14292a(0x15e))/0xb;if(_0x469fab===_0x1434bf)break;else _0x2481cc['push'](_0x2481cc['shift']());}catch(_0x15b00a){_0x2481cc['push'](_0x2481cc['shift']());}}}(_0x41bd,0xeec78));let IMPLIED_BY={};function _0x41bd(){const _0x51f94e=['7872210EZEemq','672039WImViY','184sXdaFs','8294867HlXLke','3008HBuUsn','4881981ysgvHC','565FDrMrA','4RKhvge','24674331UYPSPX','404vSorXa','split','38838zucAsb','string','includes'];_0x41bd=function(){return _0x51f94e;};return _0x41bd();}export function setImpliedBy(_0xf70b1){IMPLIED_BY=_0xf70b1||{};}export function hasPermission(_0x1f9780,_0x494698){const _0x1698a3=_0x4c8e;if(!Array['isArray'](_0x1f9780)||0x0===_0x1f9780['length'])return!0x1;for(const _0x3d4dd9 of _0x1f9780){if(_0x1698a3(0x162)!=typeof _0x3d4dd9||!_0x3d4dd9[_0x1698a3(0x163)](':')){if('*'===_0x3d4dd9)return!0x0;continue;}const [_0x2ff600,_0x9ce075]=_0x3d4dd9[_0x1698a3(0x160)](':'),[_0x3c955a,_0x30c1ec]=_0x494698[_0x1698a3(0x160)](':');if(!('*'!==_0x2ff600&&_0x2ff600!==_0x3c955a||'*'!==_0x9ce075&&_0x9ce075!==_0x30c1ec))return!0x0;}const _0x29a5ad=IMPLIED_BY[_0x494698];if(_0x29a5ad){for(const _0x4173f of _0x29a5ad)if(hasPermission(_0x1f9780,_0x4173f))return!0x0;}return!0x1;}function _0x4c8e(_0x531dc7,_0x122704){_0x531dc7=_0x531dc7-0x158;const _0x41bdea=_0x41bd();let _0x4c8e5b=_0x41bdea[_0x531dc7];return _0x4c8e5b;}export function permLabel(_0x41075a){return _0x41075a;}
1
+ (function(_0x404b07,_0x410a1d){const _0x49e884=_0x1767,_0x12d35a=_0x404b07();while(!![]){try{const _0x572e54=parseInt(_0x49e884(0x1c4))/0x1+-parseInt(_0x49e884(0x1ca))/0x2*(-parseInt(_0x49e884(0x1cb))/0x3)+parseInt(_0x49e884(0x1cc))/0x4*(parseInt(_0x49e884(0x1ce))/0x5)+parseInt(_0x49e884(0x1c3))/0x6*(-parseInt(_0x49e884(0x1cf))/0x7)+parseInt(_0x49e884(0x1d0))/0x8+-parseInt(_0x49e884(0x1cd))/0x9+-parseInt(_0x49e884(0x1c9))/0xa*(parseInt(_0x49e884(0x1c7))/0xb);if(_0x572e54===_0x410a1d)break;else _0x12d35a['push'](_0x12d35a['shift']());}catch(_0xb38ebd){_0x12d35a['push'](_0x12d35a['shift']());}}}(_0x4ed5,0x58c7a));function _0x1767(_0x55932b,_0x2a0ee5){_0x55932b=_0x55932b-0x1c3;const _0x4ed579=_0x4ed5();let _0x1767ce=_0x4ed579[_0x55932b];return _0x1767ce;}let IMPLIED_BY={};function _0x4ed5(){const _0x1e4950=['3586wkihwy','810yIBTVQ','52gWUatq','1014237ZhFUYI','219935yGHCTV','959eNBhfA','3819744MPXQsQ','13998uZLBTC','101747MUVAJM','split','length','44PzfZcZ','string','2098000YCnxGF'];_0x4ed5=function(){return _0x1e4950;};return _0x4ed5();}export function setImpliedBy(_0x3dd9ca){IMPLIED_BY=_0x3dd9ca||{};}export function hasPermission(_0x2dbbff,_0x316216){const _0x2b50b2=_0x1767;if(!Array['isArray'](_0x2dbbff)||0x0===_0x2dbbff[_0x2b50b2(0x1c6)])return!0x1;for(const _0x16b94f of _0x2dbbff){if(_0x2b50b2(0x1c8)!=typeof _0x16b94f||!_0x16b94f['includes'](':')){if('*'===_0x16b94f)return!0x0;continue;}const [_0x1bab4f,_0x57d47c]=_0x16b94f[_0x2b50b2(0x1c5)](':'),[_0x3f1b05,_0x124f78]=_0x316216['split'](':');if(!('*'!==_0x1bab4f&&_0x1bab4f!==_0x3f1b05||'*'!==_0x57d47c&&_0x57d47c!==_0x124f78))return!0x0;}const _0x55eaf4=IMPLIED_BY[_0x316216];if(_0x55eaf4){for(const _0x257fb7 of _0x55eaf4)if(hasPermission(_0x2dbbff,_0x257fb7))return!0x0;}return!0x1;}export function permLabel(_0x324981){return _0x324981;}
@@ -1 +1 @@
1
- function _0x10e8(){const _0x460053=['(field)','string','141172XwVttM','4LCDGFa','Regular-expression\x20pattern\x20\x20e.g.\x20{\x22$regex\x22:\x20\x22^foo\x22}','Operator\x20conditions','3110572nVccba','AND\x20—\x20all\x20sub-conditions\x20must\x20match','undefined','$and','Not\x20equal\x20to\x20this\x20value','array','$not','Modulo\x20[divisor,\x20remainder]\x20\x20e.g.\x20{\x22$mod\x22:[2,0]}\x20matches\x20even\x20numbers','307314vJGkog','http://json-schema.org/draft-07/schema#','Array\x20contains\x20ALL\x20of\x20these\x20values','1640230AyQhHf','assign','OR\x20\x20—\x20at\x20least\x20one\x20sub-condition\x20must\x20match','Greater\x20than\x20or\x20equal','\x22\x20\x20(','Value\x20is\x20one\x20of\x20these\x20(OR\x20match)\x20\x20e.g.\x20{\x22$in\x22:\x20[\x22a\x22,\x22b\x22]}','length','join','1705DQQQfm','number','null','Value\x20is\x20NOT\x20one\x20of\x20these\x20\x20e.g.\x20{\x22$nin\x22:\x20[1,2]}','12oKjmhZ','Equals\x20this\x20value\x20exactly','Less\x20than\x20or\x20equal','MongoDB-style\x20sift\x20filter.\x20\x20Field\x20names\x20are\x20keys;\x20use\x20$and/$or/$nor\x20for\x20logic.','Negate\x20the\x20nested\x20operator\x20conditions\x20\x20e.g.\x20{\x22$not\x22:{\x22$gt\x22:5}}','Less\x20than','8owpJAl','Array\x20length\x20equals\x20this\x20number','object','Regex\x20flags\x20used\x20with\x20$regex\x20\x20e.g.\x20\x22i\x22\x20for\x20case-insensitive','Match\x20by\x20JavaScript\x20type\x20name','562212eCpPjs','\x20|\x20','$nor','$or','true\x20→\x20field\x20must\x20be\x20present,\x20\x20false\x20→\x20field\x20must\x20be\x20absent','includes','entries','75070oGMcbJ','Greater\x20than','5684966cyJmeo'];_0x10e8=function(){return _0x460053;};return _0x10e8();}const _0x400954=_0x5e64;(function(_0x3f0806,_0x31cc3e){const _0x42bec0=_0x5e64,_0x10fd58=_0x3f0806();while(!![]){try{const _0x1afd18=-parseInt(_0x42bec0(0x1f4))/0x1*(parseInt(_0x42bec0(0x1f3))/0x2)+parseInt(_0x42bec0(0x219))/0x3+-parseInt(_0x42bec0(0x1f7))/0x4+-parseInt(_0x42bec0(0x202))/0x5*(parseInt(_0x42bec0(0x20e))/0x6)+parseInt(_0x42bec0(0x222))/0x7*(parseInt(_0x42bec0(0x214))/0x8)+-parseInt(_0x42bec0(0x1ff))/0x9+-parseInt(_0x42bec0(0x220))/0xa*(-parseInt(_0x42bec0(0x20a))/0xb);if(_0x1afd18===_0x31cc3e)break;else _0x10fd58['push'](_0x10fd58['shift']());}catch(_0x423901){_0x10fd58['push'](_0x10fd58['shift']());}}}(_0x10e8,0x64ce6));const COMPARISON_OPS={'$eq':{'description':_0x400954(0x20f)},'$ne':{'description':_0x400954(0x1fb)},'$gt':{'description':_0x400954(0x221)},'$gte':{'description':_0x400954(0x205)},'$lt':{'description':_0x400954(0x213)},'$lte':{'description':_0x400954(0x210)}},SET_OPS={'$in':{'type':_0x400954(0x1fc),'items':{},'description':_0x400954(0x207)},'$nin':{'type':_0x400954(0x1fc),'items':{},'description':_0x400954(0x20d)}},ELEMENT_OPS={'$exists':{'type':'boolean','enum':[!0x0,!0x1],'description':_0x400954(0x21d)},'$type':{'type':_0x400954(0x1f2),'enum':[_0x400954(0x1f2),_0x400954(0x20b),'boolean','object',_0x400954(0x1fc),_0x400954(0x20c),_0x400954(0x1f9)],'description':_0x400954(0x218)}},STRING_OPS={'$regex':{'type':_0x400954(0x1f2),'description':_0x400954(0x1f5)},'$options':{'type':_0x400954(0x1f2),'description':_0x400954(0x217)}},NUMERIC_OPS={'$mod':{'type':_0x400954(0x1fc),'items':{'type':_0x400954(0x20b)},'minItems':0x2,'maxItems':0x2,'description':_0x400954(0x1fe)}},ARRAY_OPS={'$size':{'type':'number','description':_0x400954(0x215)},'$all':{'type':_0x400954(0x1fc),'items':{},'description':_0x400954(0x201)},'$elemMatch':{'type':'object','description':'At\x20least\x20one\x20array\x20element\x20matches\x20this\x20sub-query'}};function buildOperatorProperties(_0x526f16=[]){const _0x5bf888=_0x400954,_0xc17500=_0x526f16[_0x5bf888(0x21e)](_0x5bf888(0x20b)),_0x170b1f=_0x526f16[_0x5bf888(0x21e)](_0x5bf888(0x1f2)),_0x25d11d=_0x526f16[_0x5bf888(0x21e)]('array'),_0x4b3010=0x0===_0x526f16[_0x5bf888(0x208)],_0x37a76a={...COMPARISON_OPS,...SET_OPS,...ELEMENT_OPS};return(_0xc17500||_0x4b3010)&&Object[_0x5bf888(0x203)](_0x37a76a,NUMERIC_OPS),(_0x170b1f||_0x4b3010)&&Object[_0x5bf888(0x203)](_0x37a76a,STRING_OPS),(_0x25d11d||_0x4b3010)&&Object[_0x5bf888(0x203)](_0x37a76a,ARRAY_OPS),_0x37a76a[_0x5bf888(0x1fd)]={'type':_0x5bf888(0x216),'description':_0x5bf888(0x212),'properties':{..._0x37a76a},'additionalProperties':!0x1},_0x37a76a;}function buildFieldSchema(_0x237e77,_0x5628b1=[]){const _0x49afe2=_0x400954;return{'description':'\x22'+_0x237e77+_0x49afe2(0x206)+(_0x5628b1[_0x49afe2(0x208)]?_0x5628b1[_0x49afe2(0x209)](_0x49afe2(0x21a)):'any')+')','oneOf':[{'description':'Direct\x20equality\x20match\x20\x20e.g.\x20\x22value\x22\x20or\x2042','not':{'type':_0x49afe2(0x216)}},{'type':_0x49afe2(0x216),'description':_0x49afe2(0x1f6),'properties':buildOperatorProperties(_0x5628b1),'additionalProperties':!0x1}]};}function _0x5e64(_0x1a5496,_0x322735){_0x1a5496=_0x1a5496-0x1f2;const _0x10e822=_0x10e8();let _0x5e647f=_0x10e822[_0x1a5496];return _0x5e647f;}export function buildSiftSchema(_0x2e3cd2={}){const _0x470def=_0x400954,_0x116d5b={};for(const [_0x57dab2,_0x3f7371]of Object[_0x470def(0x21f)](_0x2e3cd2))_0x116d5b[_0x57dab2]=buildFieldSchema(_0x57dab2,Array['isArray'](_0x3f7371)?_0x3f7371:[String(_0x3f7371)]);const _0x1a4198={'$ref':'#'};return _0x116d5b[_0x470def(0x1fa)]={'type':_0x470def(0x1fc),'items':_0x1a4198,'description':_0x470def(0x1f8)},_0x116d5b[_0x470def(0x21c)]={'type':'array','items':_0x1a4198,'description':_0x470def(0x204)},_0x116d5b[_0x470def(0x21b)]={'type':_0x470def(0x1fc),'items':_0x1a4198,'description':'NOR\x20—\x20no\x20sub-condition\x20may\x20match'},{'$schema':_0x470def(0x200),'title':'Sift\x20filter','description':_0x470def(0x211),'type':_0x470def(0x216),'properties':_0x116d5b,'additionalProperties':buildFieldSchema(_0x470def(0x223),[])};}
1
+ const _0x304a18=_0x279a;function _0x2cfb(){const _0x18ba4f=['2ufvjTd','array','boolean','7nzPzuO','\x22\x20\x20(','Greater\x20than\x20or\x20equal','length','Regular-expression\x20pattern\x20\x20e.g.\x20{\x22$regex\x22:\x20\x22^foo\x22}','Value\x20is\x20NOT\x20one\x20of\x20these\x20\x20e.g.\x20{\x22$nin\x22:\x20[1,2]}','At\x20least\x20one\x20array\x20element\x20matches\x20this\x20sub-query','includes','Direct\x20equality\x20match\x20\x20e.g.\x20\x22value\x22\x20or\x2042','number','Value\x20is\x20one\x20of\x20these\x20(OR\x20match)\x20\x20e.g.\x20{\x22$in\x22:\x20[\x22a\x22,\x22b\x22]}','true\x20→\x20field\x20must\x20be\x20present,\x20\x20false\x20→\x20field\x20must\x20be\x20absent','Greater\x20than','AND\x20—\x20all\x20sub-conditions\x20must\x20match','assign','Less\x20than','Regex\x20flags\x20used\x20with\x20$regex\x20\x20e.g.\x20\x22i\x22\x20for\x20case-insensitive','9LzRWcr','entries','$nor','MongoDB-style\x20sift\x20filter.\x20\x20Field\x20names\x20are\x20keys;\x20use\x20$and/$or/$nor\x20for\x20logic.','join','3056520uqEzcl','\x20|\x20','$or','5158488QhdMLV','1616789ztVeoj','4984KVXUmG','null','Less\x20than\x20or\x20equal','732611JzCUhF','Match\x20by\x20JavaScript\x20type\x20name','isArray','Modulo\x20[divisor,\x20remainder]\x20\x20e.g.\x20{\x22$mod\x22:[2,0]}\x20matches\x20even\x20numbers','1257rdVugP','36Mwxbgz','Array\x20length\x20equals\x20this\x20number','Sift\x20filter','(field)','string','608710ilkzis','object','2747970qjWDxk','http://json-schema.org/draft-07/schema#'];_0x2cfb=function(){return _0x18ba4f;};return _0x2cfb();}(function(_0xea8dd0,_0x14a4b3){const _0xffb1fa=_0x279a,_0x630f3c=_0xea8dd0();while(!![]){try{const _0x25fb9c=-parseInt(_0xffb1fa(0xdd))/0x1*(-parseInt(_0xffb1fa(0xef))/0x2)+parseInt(_0xffb1fa(0xe5))/0x3*(parseInt(_0xffb1fa(0xde))/0x4)+-parseInt(_0xffb1fa(0xeb))/0x5+-parseInt(_0xffb1fa(0x108))/0x6+parseInt(_0xffb1fa(0xf2))/0x7*(-parseInt(_0xffb1fa(0x10b))/0x8)+-parseInt(_0xffb1fa(0x103))/0x9*(-parseInt(_0xffb1fa(0xed))/0xa)+-parseInt(_0xffb1fa(0xe1))/0xb*(parseInt(_0xffb1fa(0xe6))/0xc);if(_0x25fb9c===_0x14a4b3)break;else _0x630f3c['push'](_0x630f3c['shift']());}catch(_0x645e3){_0x630f3c['push'](_0x630f3c['shift']());}}}(_0x2cfb,0xe4f9c));function _0x279a(_0x5f1205,_0x91a915){_0x5f1205=_0x5f1205-0xdd;const _0x2cfbf7=_0x2cfb();let _0x279a9a=_0x2cfbf7[_0x5f1205];return _0x279a9a;}const COMPARISON_OPS={'$eq':{'description':'Equals\x20this\x20value\x20exactly'},'$ne':{'description':'Not\x20equal\x20to\x20this\x20value'},'$gt':{'description':_0x304a18(0xfe)},'$gte':{'description':_0x304a18(0xf4)},'$lt':{'description':_0x304a18(0x101)},'$lte':{'description':_0x304a18(0xe0)}},SET_OPS={'$in':{'type':'array','items':{},'description':_0x304a18(0xfc)},'$nin':{'type':_0x304a18(0xf0),'items':{},'description':_0x304a18(0xf7)}},ELEMENT_OPS={'$exists':{'type':_0x304a18(0xf1),'enum':[!0x0,!0x1],'description':_0x304a18(0xfd)},'$type':{'type':_0x304a18(0xea),'enum':[_0x304a18(0xea),_0x304a18(0xfb),_0x304a18(0xf1),_0x304a18(0xec),'array',_0x304a18(0xdf),'undefined'],'description':_0x304a18(0xe2)}},STRING_OPS={'$regex':{'type':_0x304a18(0xea),'description':_0x304a18(0xf6)},'$options':{'type':_0x304a18(0xea),'description':_0x304a18(0x102)}},NUMERIC_OPS={'$mod':{'type':_0x304a18(0xf0),'items':{'type':'number'},'minItems':0x2,'maxItems':0x2,'description':_0x304a18(0xe4)}},ARRAY_OPS={'$size':{'type':_0x304a18(0xfb),'description':_0x304a18(0xe7)},'$all':{'type':_0x304a18(0xf0),'items':{},'description':'Array\x20contains\x20ALL\x20of\x20these\x20values'},'$elemMatch':{'type':_0x304a18(0xec),'description':_0x304a18(0xf8)}};function buildOperatorProperties(_0x125316=[]){const _0x4f4beb=_0x304a18,_0x3ef32a=_0x125316[_0x4f4beb(0xf9)](_0x4f4beb(0xfb)),_0x5cff41=_0x125316['includes'](_0x4f4beb(0xea)),_0x1b36fd=_0x125316[_0x4f4beb(0xf9)](_0x4f4beb(0xf0)),_0x25e484=0x0===_0x125316[_0x4f4beb(0xf5)],_0x1bc195={...COMPARISON_OPS,...SET_OPS,...ELEMENT_OPS};return(_0x3ef32a||_0x25e484)&&Object['assign'](_0x1bc195,NUMERIC_OPS),(_0x5cff41||_0x25e484)&&Object['assign'](_0x1bc195,STRING_OPS),(_0x1b36fd||_0x25e484)&&Object[_0x4f4beb(0x100)](_0x1bc195,ARRAY_OPS),_0x1bc195['$not']={'type':_0x4f4beb(0xec),'description':'Negate\x20the\x20nested\x20operator\x20conditions\x20\x20e.g.\x20{\x22$not\x22:{\x22$gt\x22:5}}','properties':{..._0x1bc195},'additionalProperties':!0x1},_0x1bc195;}function buildFieldSchema(_0x317bef,_0x575054=[]){const _0x4d8f9b=_0x304a18;return{'description':'\x22'+_0x317bef+_0x4d8f9b(0xf3)+(_0x575054['length']?_0x575054[_0x4d8f9b(0x107)](_0x4d8f9b(0x109)):'any')+')','oneOf':[{'description':_0x4d8f9b(0xfa),'not':{'type':'object'}},{'type':_0x4d8f9b(0xec),'description':'Operator\x20conditions','properties':buildOperatorProperties(_0x575054),'additionalProperties':!0x1}]};}export function buildSiftSchema(_0x4ecc87={}){const _0x6930e1=_0x304a18,_0x33439e={};for(const [_0x3e6976,_0x4e6e79]of Object[_0x6930e1(0x104)](_0x4ecc87))_0x33439e[_0x3e6976]=buildFieldSchema(_0x3e6976,Array[_0x6930e1(0xe3)](_0x4e6e79)?_0x4e6e79:[String(_0x4e6e79)]);const _0x24ce43={'$ref':'#'};return _0x33439e['$and']={'type':'array','items':_0x24ce43,'description':_0x6930e1(0xff)},_0x33439e[_0x6930e1(0x10a)]={'type':_0x6930e1(0xf0),'items':_0x24ce43,'description':'OR\x20\x20—\x20at\x20least\x20one\x20sub-condition\x20must\x20match'},_0x33439e[_0x6930e1(0x105)]={'type':_0x6930e1(0xf0),'items':_0x24ce43,'description':'NOR\x20—\x20no\x20sub-condition\x20may\x20match'},{'$schema':_0x6930e1(0xee),'title':_0x6930e1(0xe8),'description':_0x6930e1(0x106),'type':_0x6930e1(0xec),'properties':_0x33439e,'additionalProperties':buildFieldSchema(_0x6930e1(0xe9),[])};}