@perspective-dev/viewer 4.5.0 → 4.5.1

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 (64) hide show
  1. package/dist/cdn/perspective-viewer.js +1 -1
  2. package/dist/cdn/perspective-viewer.js.map +2 -2
  3. package/dist/css/botanical.css +1 -1
  4. package/dist/css/dracula.css +1 -1
  5. package/dist/css/gruvbox-dark.css +1 -1
  6. package/dist/css/gruvbox.css +1 -1
  7. package/dist/css/icons.css +1 -1
  8. package/dist/css/intl/de.css +1 -1
  9. package/dist/css/intl/es.css +1 -1
  10. package/dist/css/intl/fr.css +1 -1
  11. package/dist/css/intl/ja.css +1 -1
  12. package/dist/css/intl/pt.css +1 -1
  13. package/dist/css/intl/zh.css +1 -1
  14. package/dist/css/intl.css +1 -1
  15. package/dist/css/monokai.css +1 -1
  16. package/dist/css/phosphor.css +1 -1
  17. package/dist/css/pro-dark.css +1 -1
  18. package/dist/css/pro.css +1 -1
  19. package/dist/css/solarized-dark.css +1 -1
  20. package/dist/css/solarized.css +1 -1
  21. package/dist/css/themes.css +1 -1
  22. package/dist/css/vaporwave.css +1 -1
  23. package/dist/esm/perspective-viewer.inline.js +1 -1
  24. package/dist/esm/perspective-viewer.inline.js.map +2 -2
  25. package/dist/esm/perspective-viewer.js +1 -1
  26. package/dist/esm/perspective-viewer.js.map +2 -2
  27. package/dist/wasm/perspective-viewer.d.ts +13 -13
  28. package/dist/wasm/perspective-viewer.js +87 -82
  29. package/dist/wasm/perspective-viewer.wasm +0 -0
  30. package/dist/wasm/perspective-viewer.wasm.d.ts +13 -13
  31. package/package.json +1 -1
  32. package/src/css/column-settings-panel.css +9 -3
  33. package/src/css/column-style.css +9 -1
  34. package/src/css/dom/checkbox.css +2 -2
  35. package/src/css/viewer.css +79 -1
  36. package/src/rust/components/column_selector/active_column.rs +3 -0
  37. package/src/rust/components/column_selector/inactive_column.rs +2 -1
  38. package/src/rust/components/column_settings_sidebar/style_tab/primitive_field.rs +1 -0
  39. package/src/rust/components/column_settings_sidebar.rs +1 -0
  40. package/src/rust/components/containers/dragdrop_list.rs +27 -0
  41. package/src/rust/components/editable_header.rs +15 -0
  42. package/src/rust/components/status_bar.rs +1 -1
  43. package/src/rust/components/viewer.rs +78 -2
  44. package/src/rust/renderer.rs +72 -18
  45. package/src/rust/tasks/reset_all.rs +38 -18
  46. package/src/rust/tasks/restore_and_render.rs +23 -12
  47. package/src/rust/tasks/send_column_config.rs +3 -2
  48. package/src/rust/tasks/send_plugin_config.rs +3 -2
  49. package/src/rust/tasks/update_and_render.rs +11 -4
  50. package/src/svg/checkbox-checked-icon.svg +1 -1
  51. package/src/svg/checkbox-unchecked-icon.svg +1 -1
  52. package/src/themes/icons.css +2 -0
  53. package/src/themes/intl/de.css +1 -0
  54. package/src/themes/intl/es.css +1 -0
  55. package/src/themes/intl/fr.css +1 -0
  56. package/src/themes/intl/ja.css +1 -0
  57. package/src/themes/intl/pt.css +1 -0
  58. package/src/themes/intl/zh.css +1 -0
  59. package/src/themes/intl.css +1 -0
  60. /package/dist/wasm/snippets/{perspective-viewer-39ab7da3ca157861 → perspective-viewer-3cd58f0374935772}/inline0.js +0 -0
  61. /package/dist/wasm/snippets/{perspective-viewer-39ab7da3ca157861 → perspective-viewer-3cd58f0374935772}/inline1.js +0 -0
  62. /package/dist/wasm/snippets/{perspective-viewer-39ab7da3ca157861 → perspective-viewer-3cd58f0374935772}/inline2.js +0 -0
  63. /package/dist/wasm/snippets/{perspective-viewer-39ab7da3ca157861 → perspective-viewer-3cd58f0374935772}/inline3.js +0 -0
  64. /package/dist/wasm/snippets/{perspective-viewer-39ab7da3ca157861 → perspective-viewer-3cd58f0374935772}/inline4.js +0 -0
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/ts/plugin.ts", "../../src/ts/column-format.ts", "../../src/ts/extensions.ts", "../../../../node_modules/.pnpm/pro_self_extracting_wasm@0.0.9/node_modules/pro_self_extracting_wasm/extract.mjs", "../../../perspective-js/src/ts/wasm/decompress.ts", "worker:./perspective-viewer", "worker-stub:./perspective-viewer.worker", "../../src/ts/bootstrap.ts", "../../src/ts/perspective-viewer.ts", "../../src/ts/perspective-viewer.inline.ts"],
4
- "sourcesContent": ["// \u250F\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2513\n// \u2503 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2588 \u2588 \u2588 \u2588 \u2588\u2584 \u2580\u2588\u2588\u2588 \u2588 \u2503\n// \u2503 \u2584\u2584\u2584\u2584\u2584\u2588 \u2588\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584\u2584\u2588 \u2580\u2580\u2580\u2580\u2580\u2588\u2580\u2580\u2580\u2580\u2580 \u2588 \u2580\u2580\u2580\u2580\u2580\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2584 \u2580\u2588 \u2588 \u2580\u2580\u2580\u2580\u2580 \u2503\n// \u2503 \u2588\u2580\u2580\u2580\u2580\u2580 \u2588\u2580\u2580\u2580\u2580\u2580 \u2588\u2580\u2588\u2588\u2580\u2580 \u2584\u2584\u2584\u2584\u2584 \u2588 \u2584\u2584\u2584\u2584\u2584\u2588 \u2584\u2584\u2584\u2584\u2584\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2584 \u2588 \u2584\u2584\u2584\u2584\u2584 \u2503\n// \u2503 \u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2580\u2588\u2584 \u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2584 \u2588 \u2503\n// \u2523\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u252B\n// \u2503 Copyright (c) 2017, the Perspective Authors. \u2503\n// \u2503 \u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C \u2503\n// \u2503 This file is part of the Perspective library, distributed under the terms \u2503\n// \u2503 of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). \u2503\n// \u2517\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u251B\n\nimport type { View } from \"@perspective-dev/client\";\nimport { PluginStaticConfig } from \"./ts-rs/PluginStaticConfig.js\";\n\n/**\n * The `IPerspectiveViewerPlugin` interface defines the necessary API for a\n * `<perspective-viewer>` plugin, which also must be an `HTMLElement` via the\n * Custom Elements API or otherwise. Rather than implement this API from\n * scratch however, the simplest way is to inherit from\n * `<perspective-viewer-plugin>`, which implements `IPerspectiveViewerPlugin`\n * with non-offensive default implementations, where only the `draw()` and\n * `get_static_config()` methods need be overridden to get started with a\n * simple plugin.\n *\n * Note that plugins are frozen once a `<perspective-viewer>` has been\n * instantiated, so generally new plugin code must be executed at the module\n * level (if packaged as a library), or during application init to ensure global\n * availability of a plugin.\n *\n * @example\n * ```javascript\n * const BasePlugin = customElements.get(\"perspective-viewer-plugin\");\n * class MyPlugin extends BasePlugin {\n * get_static_config() {\n * return { name: \"My Plugin\", config_column_names: [] };\n * }\n * async draw(view) {\n * const count = await view.num_rows();\n * this.innerHTML = `View has ${count} rows`;\n * }\n * }\n *\n * customElements.define(\"my-plugin\", MyPlugin);\n * const Viewer = customElements.get(\"perspective-viewer\");\n * Viewer.registerPlugin(\"my-plugin\");\n * ```\n * @noInheritDoc\n */\nexport interface IPerspectiveViewerPlugin {\n /**\n * Static plugin configuration. Called exactly once per plugin at\n * registration time and cached; the result must be stable for the\n * lifetime of the application.\n */\n get_static_config(): PluginStaticConfig;\n\n /**\n * Determines which column configuration controls are populated in the viewer.\n * Corresponds to the data the plugin will recieve on save. Only\n * invoked when `can_render_column_styles` is `true` in the static\n * config.\n */\n column_style_config?: (view_type: string, group: string) => any;\n\n /**\n * Render this plugin using the provided `View`. While there is no\n * provision to cancel a render in progress per se, calling a method on\n * a `View` which has been deleted will throw an exception.\n *\n * @example\n * ```\n * async draw(view: perspective.View): Promise<void> {\n * const csv = await view.to_csv();\n * this.innerHTML = `<pre>${csv}</pre>`;\n * }\n * ```\n */\n draw(view: View): Promise<void>;\n\n /**\n * Draw under the assumption that the `ViewConfig` has not changed since\n * the previous call to `draw()`, but the underlying data has. Defaults to\n * dispatch to `draw()`.\n *\n * @example\n * ```javascript\n * async update(view: perspective.View): Promise<void> {\n * return this.draw(view);\n * }\n * ```\n */\n update(view: View): Promise<void>;\n\n /**\n * Clear this plugin, though it is up to the discretion of the plugin\n * author to determine what this means. Defaults to resetting this\n * element's `innerHTML`, so be sure to override if you want custom\n * behavior.\n *\n * @example\n * ```javascript\n * async clear(): Promise<void> {\n * this.innerHTML = \"\";\n * }\n * ```\n */\n clear(): Promise<void>;\n\n /**\n * Like `update()`, but for when the dimensions of the plugin have changed\n * and the underlying data has not.\n */\n resize(view: View): Promise<void>;\n\n /**\n * Notify the plugin that the style environment has changed. Useful for\n * plugins which read CSS styles via `window.getComputedStyle()`.\n */\n restyle(): void;\n\n /**\n * Restore this plugin to a state previously returned by `save()`.\n */\n restore(config: any): void;\n\n /**\n * Free any resources acquired by this plugin and prepare to be deleted.\n */\n delete(): void;\n}\n\n/**\n * The `<perspective-viewer-plugin>` element, the default perspective plugin\n * which is registered and activated automcatically when a\n * `<perspective-viewer>` is loaded without plugins. While you will not\n * typically instantiate this class directly, it is simple enough to function\n * as a good \"default\" plugin implementation which can be extended to create\n * custom plugins.\n *\n * @example\n * ```javascript\n * class MyPlugin extends customElements.get(\"perspective-viewer-plugin\") {\n * // Custom plugin overrides\n * }\n * ```\n * @noInheritDoc\n */\nexport class HTMLPerspectiveViewerPluginElement\n extends HTMLElement\n implements IPerspectiveViewerPlugin\n{\n constructor() {\n super();\n }\n\n get_static_config(): PluginStaticConfig {\n return {\n name: \"Debug\",\n select_mode: \"select\",\n config_column_names: [],\n };\n }\n\n column_style_config(): any {\n return {};\n }\n\n async update(view: View): Promise<void> {\n return this.draw(view);\n }\n\n async draw(view: View): Promise<void> {\n this.style.backgroundColor = \"#fff\";\n const csv = await view.to_csv();\n const css = `margin:0;overflow:scroll;position:absolute;width:100%;height:100%`;\n this.innerHTML = `<pre style='${css}'>${csv}</pre>`;\n }\n\n async clear(): Promise<void> {\n this.innerHTML = \"\";\n }\n\n async resize(view: View): Promise<void> {\n // Not Implemented\n }\n\n restyle() {\n // Not Implemented\n }\n\n restore(): void {\n // Not Implemented\n }\n\n async delete(): Promise<void> {\n // Not Implemented\n }\n\n get supports_streaming(): boolean {\n return false;\n }\n}\n", "// \u250F\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2513\n// \u2503 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2588 \u2588 \u2588 \u2588 \u2588\u2584 \u2580\u2588\u2588\u2588 \u2588 \u2503\n// \u2503 \u2584\u2584\u2584\u2584\u2584\u2588 \u2588\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584\u2584\u2588 \u2580\u2580\u2580\u2580\u2580\u2588\u2580\u2580\u2580\u2580\u2580 \u2588 \u2580\u2580\u2580\u2580\u2580\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2584 \u2580\u2588 \u2588 \u2580\u2580\u2580\u2580\u2580 \u2503\n// \u2503 \u2588\u2580\u2580\u2580\u2580\u2580 \u2588\u2580\u2580\u2580\u2580\u2580 \u2588\u2580\u2588\u2588\u2580\u2580 \u2584\u2584\u2584\u2584\u2584 \u2588 \u2584\u2584\u2584\u2584\u2584\u2588 \u2584\u2584\u2584\u2584\u2584\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2584 \u2588 \u2584\u2584\u2584\u2584\u2584 \u2503\n// \u2503 \u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2580\u2588\u2584 \u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2584 \u2588 \u2503\n// \u2523\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u252B\n// \u2503 Copyright (c) 2017, the Perspective Authors. \u2503\n// \u2503 \u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C \u2503\n// \u2503 This file is part of the Perspective library, distributed under the terms \u2503\n// \u2503 of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). \u2503\n// \u2517\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u251B\n\n/**\n * Cross-package helpers for per-column value formatting. Used by both\n * `viewer-datagrid` (cell formatting) and `viewer-charts` (axis ticks,\n * tooltips, legends) so a column's `number_format` / `date_format`\n * configuration produces identical output across plugins.\n *\n * The format configs mirror the `Intl.NumberFormatOptions` /\n * `Intl.DateTimeFormatOptions` shapes one-for-one \u2014 they're written\n * straight into the respective constructors. The `date_format.format`\n * discriminator (\"simple\" | \"custom\") selects between two derivation\n * paths: simple uses `dateStyle` / `timeStyle`, custom uses the\n * per-field overrides (year / month / day / ...).\n */\n\nexport interface NumberFormatConfig {\n style?: \"decimal\" | \"currency\" | \"percent\" | \"unit\";\n minimumFractionDigits?: number;\n maximumFractionDigits?: number;\n minimumIntegerDigits?: number;\n minimumSignificantDigits?: number;\n maximumSignificantDigits?: number;\n currency?: string;\n currencyDisplay?: \"code\" | \"symbol\" | \"narrowSymbol\" | \"name\";\n notation?: \"standard\" | \"scientific\" | \"engineering\" | \"compact\";\n compactDisplay?: \"short\" | \"long\";\n useGrouping?: boolean;\n}\n\nexport interface DateFormatConfig {\n format?: \"custom\" | string;\n timeZone?: string;\n dateStyle?: \"short\" | \"medium\" | \"long\" | \"full\" | \"disabled\";\n timeStyle?: \"short\" | \"medium\" | \"long\" | \"full\" | \"disabled\";\n second?: \"numeric\" | \"2-digit\" | \"disabled\";\n minute?: \"numeric\" | \"2-digit\" | \"disabled\";\n hour?: \"numeric\" | \"2-digit\" | \"disabled\";\n day?: \"numeric\" | \"2-digit\" | \"disabled\";\n weekday?: \"narrow\" | \"short\" | \"long\" | \"disabled\";\n month?: \"numeric\" | \"2-digit\" | \"narrow\" | \"short\" | \"long\" | \"disabled\";\n year?: \"numeric\" | \"2-digit\" | \"disabled\";\n hour12?: boolean;\n fractionalSecondDigits?: 1 | 2 | 3;\n}\n\n/**\n * Default `Intl.NumberFormatOptions` applied when a numeric column has no\n * `number_format` configured. Float columns get two fractional digits to\n * match the legacy datagrid behavior; integer columns get an empty\n * options bag (locale-default integer rendering).\n */\nconst NUMERIC_LEGACY_DEFAULTS: Record<string, Intl.NumberFormatOptions> = {\n float: {\n style: \"decimal\",\n minimumFractionDigits: 2,\n maximumFractionDigits: 2,\n },\n};\n\n/**\n * Default `Intl.DateTimeFormatOptions` applied when a datetime column has\n * no `date_format` configured.\n */\nconst DATETIME_LEGACY_DEFAULTS: Intl.DateTimeFormatOptions = {\n dateStyle: \"short\",\n timeStyle: \"medium\",\n};\n\nconst DATE_LEGACY_DEFAULTS: Intl.DateTimeFormatOptions = {\n dateStyle: \"short\",\n};\n\nexport function createNumberFormatter(\n type: string,\n cfg?: NumberFormatConfig,\n): Intl.NumberFormat {\n const opts: Intl.NumberFormatOptions =\n cfg ?? NUMERIC_LEGACY_DEFAULTS[type] ?? {};\n return new Intl.NumberFormat(navigator.languages as string[], opts);\n}\n\nexport function createDatetimeFormatter(\n cfg?: DateFormatConfig,\n): Intl.DateTimeFormat {\n if (!cfg || cfg.format !== \"custom\") {\n const opts: Intl.DateTimeFormatOptions = {\n timeZone: cfg?.timeZone,\n dateStyle:\n cfg?.dateStyle === \"disabled\"\n ? undefined\n : (cfg?.dateStyle ?? DATETIME_LEGACY_DEFAULTS.dateStyle),\n timeStyle:\n cfg?.timeStyle === \"disabled\"\n ? undefined\n : (cfg?.timeStyle ?? DATETIME_LEGACY_DEFAULTS.timeStyle),\n };\n\n return new Intl.DateTimeFormat(navigator.languages as string[], opts);\n }\n\n const opts: Intl.DateTimeFormatOptions = {\n timeZone: cfg.timeZone,\n hour12: cfg.hour12 ?? true,\n fractionalSecondDigits: cfg.fractionalSecondDigits,\n };\n if (cfg.year !== \"disabled\") {\n opts.year = cfg.year ?? \"2-digit\";\n }\n if (cfg.month !== \"disabled\") {\n opts.month = cfg.month ?? \"numeric\";\n }\n if (cfg.day !== \"disabled\") {\n opts.day = cfg.day ?? \"numeric\";\n }\n if (cfg.weekday && cfg.weekday !== \"disabled\") {\n opts.weekday = cfg.weekday;\n }\n if (cfg.hour !== \"disabled\") {\n opts.hour = cfg.hour ?? \"numeric\";\n }\n if (cfg.minute !== \"disabled\") {\n opts.minute = cfg.minute ?? \"numeric\";\n }\n if (cfg.second !== \"disabled\") {\n opts.second = cfg.second ?? \"numeric\";\n }\n return new Intl.DateTimeFormat(navigator.languages as string[], opts);\n}\n\nexport function createDateFormatter(\n cfg?: DateFormatConfig,\n): Intl.DateTimeFormat {\n const opts: Intl.DateTimeFormatOptions = {\n timeZone: \"utc\",\n dateStyle:\n cfg?.dateStyle === \"disabled\"\n ? undefined\n : (cfg?.dateStyle ?? DATE_LEGACY_DEFAULTS.dateStyle),\n };\n return new Intl.DateTimeFormat(navigator.languages as string[], opts);\n}\n\n/**\n * Recover the source column name from a synthetic split-by path. Split\n * pivoting produces paths of the form `<split_val_1>|...|<source_col>`;\n * per-column config (formatters, aggregate styling, \u2026) is always keyed\n * on the trailing source column.\n */\nexport function sourceColumn(path: string): string {\n return path.split(\"|\").at(-1) ?? path;\n}\n", "// \u250F\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2513\n// \u2503 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2588 \u2588 \u2588 \u2588 \u2588\u2584 \u2580\u2588\u2588\u2588 \u2588 \u2503\n// \u2503 \u2584\u2584\u2584\u2584\u2584\u2588 \u2588\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584\u2584\u2588 \u2580\u2580\u2580\u2580\u2580\u2588\u2580\u2580\u2580\u2580\u2580 \u2588 \u2580\u2580\u2580\u2580\u2580\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2584 \u2580\u2588 \u2588 \u2580\u2580\u2580\u2580\u2580 \u2503\n// \u2503 \u2588\u2580\u2580\u2580\u2580\u2580 \u2588\u2580\u2580\u2580\u2580\u2580 \u2588\u2580\u2588\u2588\u2580\u2580 \u2584\u2584\u2584\u2584\u2584 \u2588 \u2584\u2584\u2584\u2584\u2584\u2588 \u2584\u2584\u2584\u2584\u2584\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2584 \u2588 \u2584\u2584\u2584\u2584\u2584 \u2503\n// \u2503 \u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2580\u2588\u2584 \u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2584 \u2588 \u2503\n// \u2523\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u252B\n// \u2503 Copyright (c) 2017, the Perspective Authors. \u2503\n// \u2503 \u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C \u2503\n// \u2503 This file is part of the Perspective library, distributed under the terms \u2503\n// \u2503 of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). \u2503\n// \u2517\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u251B\n\nimport type { HTMLPerspectiveViewerPluginElement } from \"./plugin\";\nimport type { PerspectiveViewerElement } from \"../../dist/wasm/perspective-viewer.js\";\nimport type React from \"react\";\nimport type { ViewerConfigUpdate } from \"./ts-rs/ViewerConfigUpdate.js\";\nimport type {\n ViewWindow,\n ViewConfigUpdate,\n Filter,\n} from \"@perspective-dev/client\";\n\nexport class PerspectiveSelectDetail {\n selected: boolean;\n row: Record<string, unknown>;\n column_names?: string[];\n removeConfigs: ViewConfigUpdate[];\n insertConfigs: ViewConfigUpdate[];\n constructor(\n selected: boolean,\n row: Record<string, unknown>,\n column_names: string[],\n removeConfigs: ViewConfigUpdate[],\n insertConfigs: ViewConfigUpdate[],\n ) {\n this.selected = selected;\n this.row = row;\n this.column_names = column_names;\n this.removeConfigs = removeConfigs;\n this.insertConfigs = insertConfigs;\n }\n\n get removeFilters(): Filter[] {\n return this.removeConfigs.flatMap((x) => x.filter ?? []);\n }\n\n get insertFilters(): Filter[] {\n return this.insertConfigs.flatMap((x) => x.filter ?? []);\n }\n}\n\nimport type {\n ExportDropDownMenuElement,\n CopyDropDownMenuElement,\n} from \"../../dist/wasm/perspective-viewer.d.ts\";\n\n// DOM extensions\n\nexport type HTMLPerspectiveViewerElement = PerspectiveViewerElement &\n PerspectiveViewerElementExt &\n HTMLElement;\n\nexport interface HTMLPerspectiveViewerExportMenuElement\n extends HTMLElement,\n ExportDropDownMenuElement {}\n\nexport interface HTMLPerspectiveViewerCopyMenuElement\n extends HTMLElement,\n CopyDropDownMenuElement {}\n\nexport type PerspectiveClickEventDetail = {\n config: ViewerConfigUpdate;\n row: Record<string, any>;\n column_names: Array<string | Array<string>>;\n};\n\nexport type PerspectiveSelectEventDetail = {\n view_window: ViewWindow;\n};\n\n// JSX / React extensions\n\ntype ReactPerspectiveViewerAttributes<T> = React.HTMLAttributes<T>;\n\ntype JsxPerspectiveViewerElement = {\n class?: string;\n} & React.DetailedHTMLProps<\n ReactPerspectiveViewerAttributes<HTMLPerspectiveViewerElement>,\n HTMLPerspectiveViewerElement\n>;\n\n// React <19\n\ndeclare global {\n namespace JSX {\n interface IntrinsicElements {\n \"perspective-viewer\": JsxPerspectiveViewerElement;\n }\n }\n}\n\n// React >=19\n\n// Why are these `ts-ignore`? React 19 makes choice of JSX runtime in `tsconfig`\n// the determination of which runtime this needs to be, but this is chosen\n// by the user ... so I'm not sure what the React authors want from me here\n// exactly. Divination?\n\n// @ts-ignore\ndeclare module \"react/jsx-runtime\" {\n namespace JSX {\n interface IntrinsicElements {\n \"perspective-viewer\": JsxPerspectiveViewerElement;\n }\n }\n}\n\n// @ts-ignore\ndeclare module \"react/jsx-dev-runtime\" {\n namespace JSX {\n interface IntrinsicElements {\n \"perspective-viewer\": JsxPerspectiveViewerElement;\n }\n }\n}\n\ndeclare module \"react\" {\n namespace JSX {\n interface IntrinsicElements {\n \"perspective-viewer\": JsxPerspectiveViewerElement;\n }\n }\n}\n\n// Custom Elements extensions\n\ndeclare global {\n interface Document {\n createElement(\n tagName: \"perspective-viewer\",\n options?: ElementCreationOptions,\n ): HTMLPerspectiveViewerElement;\n createElement(\n tagName: \"perspective-viewer-plugin\",\n options?: ElementCreationOptions,\n ): HTMLPerspectiveViewerPluginElement;\n querySelector<E extends Element = Element>(selectors: string): E | null;\n querySelector(\n selectors: \"perspective-viewer\",\n ): HTMLPerspectiveViewerElement | null;\n }\n\n interface CustomElementRegistry {\n get(\n tagName: \"perspective-viewer\",\n ): typeof PerspectiveViewerElement &\n PerspectiveViewerElementExt &\n typeof HTMLElement;\n get(\n tagName: \"perspective-viewer-plugin\",\n ): typeof HTMLPerspectiveViewerPluginElement;\n }\n}\n\nexport interface PerspectiveViewerElementExt {\n /**\n * Register a new plugin via its custom element name. This method is called\n * automatically as a side effect of importing a plugin module, so this\n * method should only typically be called by plugin authors.\n *\n * @category Plugin\n * @param name The `name` of the custom element to register, as supplied\n * to the `customElements.define(name)` method.\n * @example\n * ```javascript\n * customElements.get(\"perspective-viewer\").registerPlugin(\"my-plugin\");\n * ```\n */\n registerPlugin(name: string): Promise<void>;\n\n get_wasm_module(): WebAssembly.Module;\n\n get_worker_url(): URL;\n\n addEventListener(\n name: \"perspective-click\",\n cb: (e: CustomEvent) => void,\n options?: { signal: AbortSignal },\n ): void;\n\n addEventListener(\n name: \"perspective-select\",\n cb: (e: CustomEvent) => void,\n options?: { signal: AbortSignal },\n ): void;\n\n addEventListener(\n name: \"perspective-global-filter\",\n cb: (e: CustomEvent<PerspectiveSelectEventDetail>) => void,\n options?: { signal: AbortSignal },\n ): void;\n\n addEventListener(\n name: \"perspective-toggle-settings\",\n cb: (e: CustomEvent) => void,\n options?: { signal: AbortSignal },\n ): void;\n\n addEventListener(\n name: \"perspective-toggle-settings-before\",\n cb: (e: CustomEvent) => void,\n options?: { signal: AbortSignal },\n ): void;\n\n addEventListener(\n name: \"perspective-config-update\",\n cb: (e: CustomEvent) => void,\n options?: { signal: AbortSignal },\n ): void;\n\n addEventListener(\n name: \"perspective-statusbar-pointerdown\",\n cb: (e: CustomEvent) => void,\n options?: { signal: AbortSignal },\n ): void;\n\n addEventListener(\n name: \"perspective-table-delete\",\n cb: (e: CustomEvent) => void,\n options?: { signal: AbortSignal },\n ): void;\n\n addEventListener(\n name: \"perspective-table-delete-before\",\n cb: (e: CustomEvent) => void,\n options?: { signal: AbortSignal },\n ): void;\n\n removeEventListener(name: \"perspective-click\", cb: any): void;\n removeEventListener(name: \"perspective-select\", cb: any): void;\n removeEventListener(name: \"perspective-global-filter\", cb: any): void;\n removeEventListener(name: \"perspective-toggle-settings\", cb: any): void;\n removeEventListener(\n name: \"perspective-toggle-settings-before\",\n cb: any,\n ): void;\n removeEventListener(name: \"perspective-config-update\", cb: any): void;\n removeEventListener(\n name: \"perspective-statusbar-pointerdown\",\n cb: any,\n ): void;\n removeEventListener(name: \"perspective-table-delete\", cb: any): void;\n removeEventListener(name: \"perspective-table-delete-before\", cb: any): void;\n}\n", "// \u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n// \u2502 \u2502\n// \u2502 \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557 Copyright (C) 2025, The Prospective Company \u2502\n// \u2502 \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2550\u2588\u2588\u2557 \u2502\n// \u2502 \u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2551 \u2588\u2588\u2551 This file is part of the Procss library, \u2502\n// \u2502 \u2588\u2588\u2554\u2550\u2550\u2550\u255D \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2551 \u2588\u2588\u2551 distributed under the terms of the \u2502\n// \u2502 \u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551\u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D Apache License 2.0. The full license can \u2502\n// \u2502 \u255A\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u255D be found in the LICENSE file. \u2502\n// \u2502 \u2502\n// \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n\nexport async function extract(input) {\n let bin;\n if (typeof input?.then === \"function\") {\n input = await input;\n }\n\n if (input instanceof Response) {\n bin = await WebAssembly.instantiateStreaming(input);\n } else if (typeof input === \"string\") {\n bin = await WebAssembly.instantiateStreaming(fetch(input));\n } else if (input instanceof ArrayBuffer) {\n bin = await WebAssembly.instantiate(input);\n } else if (input instanceof Uint8Array) {\n bin = await WebAssembly.instantiate(input.buffer);\n } else {\n bin = input;\n }\n\n const inst = bin.instance.exports;\n const [payload] = WebAssembly.Module.customSections(bin.module, \"psp-runtime\");\n const [raw_length_view] = WebAssembly.Module.customSections(bin.module, \"psp-len\");\n const raw_length = new DataView(raw_length_view).getUint32(0, true);\n const ptr = inst.resize(payload.byteLength);\n new Uint8Array(inst.memory.buffer).set(new Uint8Array(payload), ptr);\n const offset = inst.compile(payload.byteLength, raw_length);\n return new Uint8Array(inst.memory.buffer).slice(offset, raw_length + offset);\n}", "// \u250F\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2513\n// \u2503 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2588 \u2588 \u2588 \u2588 \u2588\u2584 \u2580\u2588\u2588\u2588 \u2588 \u2503\n// \u2503 \u2584\u2584\u2584\u2584\u2584\u2588 \u2588\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584\u2584\u2588 \u2580\u2580\u2580\u2580\u2580\u2588\u2580\u2580\u2580\u2580\u2580 \u2588 \u2580\u2580\u2580\u2580\u2580\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2584 \u2580\u2588 \u2588 \u2580\u2580\u2580\u2580\u2580 \u2503\n// \u2503 \u2588\u2580\u2580\u2580\u2580\u2580 \u2588\u2580\u2580\u2580\u2580\u2580 \u2588\u2580\u2588\u2588\u2580\u2580 \u2584\u2584\u2584\u2584\u2584 \u2588 \u2584\u2584\u2584\u2584\u2584\u2588 \u2584\u2584\u2584\u2584\u2584\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2584 \u2588 \u2584\u2584\u2584\u2584\u2584 \u2503\n// \u2503 \u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2580\u2588\u2584 \u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2584 \u2588 \u2503\n// \u2523\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u252B\n// \u2503 Copyright (c) 2017, the Perspective Authors. \u2503\n// \u2503 \u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C \u2503\n// \u2503 This file is part of the Perspective library, distributed under the terms \u2503\n// \u2503 of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). \u2503\n// \u2517\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u251B\n\n// @ts-ignore\nimport { extract } from \"pro_self_extracting_wasm\";\n\nif (typeof WebAssembly === \"undefined\") {\n throw new Error(\"WebAssembly not supported.\");\n}\n\ninterface Module extends WebAssembly.Exports {\n size(): number;\n offset(): number;\n memory: WebAssembly.Memory;\n}\n\n// Perform a silly dance to deal with the different ways webpack and esbuild\n// load binary, as this may either be an `ArrayBuffer` or `URL` depending\n// on whether `inline` option was specified to `perspective-esbuild-plugin`.\nasync function compile(\n buffer: ArrayBuffer | Response | WebAssembly.Module | WebAssembly.Exports,\n): Promise<Module> {\n if (buffer instanceof Response) {\n return (await WebAssembly.instantiateStreaming(buffer)).instance\n .exports as Module;\n } else if (buffer instanceof WebAssembly.Module) {\n return (await WebAssembly.instantiate(buffer)).exports as Module;\n } else if (buffer instanceof WebAssembly.Instance) {\n return buffer.exports as Module;\n } else if (buffer instanceof ArrayBuffer) {\n return (await WebAssembly.instantiate(buffer as BufferSource)).instance\n .exports as Module;\n } else {\n return buffer as Module;\n }\n}\n\nexport async function load_wasm_stage_0(\n wasm:\n | ArrayBuffer\n | Response\n | WebAssembly.Module\n | (() => Promise<ArrayBuffer>),\n): Promise<Uint8Array> {\n if (wasm instanceof Function) {\n wasm = await wasm();\n }\n\n try {\n return await extract(wasm as ArrayBuffer);\n } catch (e) {\n console.warn(\"Stage 0 wasm loading failed, skipping\");\n return new Uint8Array(wasm as ArrayBuffer);\n }\n}\n", "var kt=Object.defineProperty;var St=(c,t)=>{for(var e in t)kt(c,e,{get:t[e],enumerable:!0})};var J={};St(J,{Client:()=>F,CopyDropDownMenuElement:()=>B,ExportDropDownMenuElement:()=>U,GenericSQLVirtualServerModel:()=>V,PerspectiveDebugPluginElement:()=>H,PerspectiveViewerElement:()=>A,ProxySession:()=>O,Table:()=>E,View:()=>y,VirtualDataSlice:()=>z,VirtualServer:()=>$,default:()=>xt,get_wasm_module:()=>Ft,get_worker_url:()=>At,init:()=>Rt,initSync:()=>Zt,registerPlugin:()=>Ct});var it=window.ClipboardItem;var ct=window.ResizeObserver;var st=window.IntersectionObserver;function at(c,t,e,n){let _=c[e],s=_.prototype;class b extends HTMLElement{constructor(){super(),this._instance=new _(this)}}let g=Object.getOwnPropertyNames(s);for(let l of g)\"get\"in Object.getOwnPropertyDescriptor(s,l)?Object.defineProperty(b.prototype,l,{get:function(){return this._instance[l]}}):Object.defineProperty(b.prototype,l,{value:function(...m){return this._instance[l].call(this._instance,...m)}});for(let l of n)Object.defineProperty(b,l,{value:function(...m){return c[l].call(c,...m)}});Object.defineProperty(b,\"__wasm_module__\",{get(){return c}}),customElements.define(t,b)}var F=class c{static __wrap(t){t=t>>>0;let e=Object.create(c.prototype);return e.__wbg_ptr=t,Z.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,Z.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_client_free(t,0)}__getClassname(){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.client___getClassname(_,this.__wbg_ptr);var t=a().getInt32(_+0,!0),e=a().getInt32(_+4,!0),n=w(t,e);return t!==0&&r.__wbindgen_export4(t,e,1),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}__unsafe_open_view(t){let e=v(t,r.__wbindgen_export,r.__wbindgen_export2),n=p,_=r.client___unsafe_open_view(this.__wbg_ptr,e,n);return y.__wrap(_)}get_hosted_table_names(){let t=r.client_get_hosted_table_names(this.__wbg_ptr);return u(t)}handle_error(t,e){let n=v(t,r.__wbindgen_export,r.__wbindgen_export2),_=p,s=r.client_handle_error(this.__wbg_ptr,n,_,f(e)?0:i(e));return u(s)}handle_response(t){let e=r.client_handle_response(this.__wbg_ptr,i(t));return u(e)}join(t,e,n,_){let s=v(n,r.__wbindgen_export,r.__wbindgen_export2),b=p,g=r.client_join(this.__wbg_ptr,i(t),i(e),s,b,f(_)?0:i(_));return u(g)}constructor(t,e){try{let b=r.__wbindgen_add_to_stack_pointer(-16);r.client_new(b,i(t),f(e)?0:i(e));var n=a().getInt32(b+0,!0),_=a().getInt32(b+4,!0),s=a().getInt32(b+8,!0);if(s)throw u(_);return this.__wbg_ptr=n>>>0,Z.register(this,this.__wbg_ptr,this),this}finally{r.__wbindgen_add_to_stack_pointer(16)}}new_proxy_session(t){try{let e=r.client_new_proxy_session(this.__wbg_ptr,ot(t));return O.__wrap(e)}finally{x[j++]=void 0}}on_error(t){let e=r.client_on_error(this.__wbg_ptr,i(t));return u(e)}on_hosted_tables_update(t){let e=r.client_on_hosted_tables_update(this.__wbg_ptr,i(t));return u(e)}open_table(t){let e=v(t,r.__wbindgen_export,r.__wbindgen_export2),n=p,_=r.client_open_table(this.__wbg_ptr,e,n);return u(_)}remove_hosted_tables_update(t){let e=r.client_remove_hosted_tables_update(this.__wbg_ptr,t);return u(e)}system_info(){let t=r.client_system_info(this.__wbg_ptr);return u(t)}table(t,e){let n=r.client_table(this.__wbg_ptr,i(t),f(e)?0:i(e));return u(n)}terminate(){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.client_terminate(_,this.__wbg_ptr);var t=a().getInt32(_+0,!0),e=a().getInt32(_+4,!0),n=a().getInt32(_+8,!0);if(n)throw u(e);return u(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(F.prototype[Symbol.dispose]=F.prototype.free);var B=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,bt.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_copydropdownmenuelement_free(t,0)}__set_model(t){G(t,A),r.copydropdownmenuelement___set_model(this.__wbg_ptr,t.__wbg_ptr)}connected_callback(){r.copydropdownmenuelement_connected_callback(this.__wbg_ptr)}hide(){try{let n=r.__wbindgen_add_to_stack_pointer(-16);r.copydropdownmenuelement_hide(n,this.__wbg_ptr);var t=a().getInt32(n+0,!0),e=a().getInt32(n+4,!0);if(e)throw u(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}constructor(t){let e=r.copydropdownmenuelement_new(i(t));return this.__wbg_ptr=e>>>0,bt.register(this,this.__wbg_ptr,this),this}open(t){r.copydropdownmenuelement_open(this.__wbg_ptr,i(t))}};Symbol.dispose&&(B.prototype[Symbol.dispose]=B.prototype.free);var U=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,gt.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_exportdropdownmenuelement_free(t,0)}__set_model(t){G(t,A),r.exportdropdownmenuelement___set_model(this.__wbg_ptr,t.__wbg_ptr)}connected_callback(){r.copydropdownmenuelement_connected_callback(this.__wbg_ptr)}hide(){try{let n=r.__wbindgen_add_to_stack_pointer(-16);r.exportdropdownmenuelement_hide(n,this.__wbg_ptr);var t=a().getInt32(n+0,!0),e=a().getInt32(n+4,!0);if(e)throw u(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}constructor(t){let e=r.copydropdownmenuelement_new(i(t));return this.__wbg_ptr=e>>>0,gt.register(this,this.__wbg_ptr,this),this}open(t){r.exportdropdownmenuelement_open(this.__wbg_ptr,i(t))}};Symbol.dispose&&(U.prototype[Symbol.dispose]=U.prototype.free);var V=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,ft.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_genericsqlvirtualservermodel_free(t,0)}getHostedTables(){try{let b=r.__wbindgen_add_to_stack_pointer(-16);r.genericsqlvirtualservermodel_getHostedTables(b,this.__wbg_ptr);var t=a().getInt32(b+0,!0),e=a().getInt32(b+4,!0),n=a().getInt32(b+8,!0),_=a().getInt32(b+12,!0);if(_)throw u(n);var s=w(t,e);return t!==0&&r.__wbindgen_export4(t,e,1),s}finally{r.__wbindgen_add_to_stack_pointer(16)}}constructor(t){try{let s=r.__wbindgen_add_to_stack_pointer(-16);r.genericsqlvirtualservermodel_new(s,f(t)?0:i(t));var e=a().getInt32(s+0,!0),n=a().getInt32(s+4,!0),_=a().getInt32(s+8,!0);if(_)throw u(n);return this.__wbg_ptr=e>>>0,ft.register(this,this.__wbg_ptr,this),this}finally{r.__wbindgen_add_to_stack_pointer(16)}}tableMakeView(t,e,n){try{let m=r.__wbindgen_add_to_stack_pointer(-16),h=v(t,r.__wbindgen_export,r.__wbindgen_export2),I=p,k=v(e,r.__wbindgen_export,r.__wbindgen_export2),T=p;r.genericsqlvirtualservermodel_tableMakeView(m,this.__wbg_ptr,h,I,k,T,i(n));var _=a().getInt32(m+0,!0),s=a().getInt32(m+4,!0),b=a().getInt32(m+8,!0),g=a().getInt32(m+12,!0);if(g)throw u(b);var l=w(_,s);return _!==0&&r.__wbindgen_export4(_,s,1),l}finally{r.__wbindgen_add_to_stack_pointer(16)}}tableSchema(t){try{let g=r.__wbindgen_add_to_stack_pointer(-16),l=v(t,r.__wbindgen_export,r.__wbindgen_export2),m=p;r.genericsqlvirtualservermodel_tableSchema(g,this.__wbg_ptr,l,m);var e=a().getInt32(g+0,!0),n=a().getInt32(g+4,!0),_=a().getInt32(g+8,!0),s=a().getInt32(g+12,!0);if(s)throw u(_);var b=w(e,n);return e!==0&&r.__wbindgen_export4(e,n,1),b}finally{r.__wbindgen_add_to_stack_pointer(16)}}tableSize(t){try{let g=r.__wbindgen_add_to_stack_pointer(-16),l=v(t,r.__wbindgen_export,r.__wbindgen_export2),m=p;r.genericsqlvirtualservermodel_tableSize(g,this.__wbg_ptr,l,m);var e=a().getInt32(g+0,!0),n=a().getInt32(g+4,!0),_=a().getInt32(g+8,!0),s=a().getInt32(g+12,!0);if(s)throw u(_);var b=w(e,n);return e!==0&&r.__wbindgen_export4(e,n,1),b}finally{r.__wbindgen_add_to_stack_pointer(16)}}tableValidateExpression(t,e){try{let l=r.__wbindgen_add_to_stack_pointer(-16),m=v(t,r.__wbindgen_export,r.__wbindgen_export2),h=p,I=v(e,r.__wbindgen_export,r.__wbindgen_export2),k=p;r.genericsqlvirtualservermodel_tableValidateExpression(l,this.__wbg_ptr,m,h,I,k);var n=a().getInt32(l+0,!0),_=a().getInt32(l+4,!0),s=a().getInt32(l+8,!0),b=a().getInt32(l+12,!0);if(b)throw u(s);var g=w(n,_);return n!==0&&r.__wbindgen_export4(n,_,1),g}finally{r.__wbindgen_add_to_stack_pointer(16)}}viewColumnSize(t){try{let g=r.__wbindgen_add_to_stack_pointer(-16),l=v(t,r.__wbindgen_export,r.__wbindgen_export2),m=p;r.genericsqlvirtualservermodel_viewColumnSize(g,this.__wbg_ptr,l,m);var e=a().getInt32(g+0,!0),n=a().getInt32(g+4,!0),_=a().getInt32(g+8,!0),s=a().getInt32(g+12,!0);if(s)throw u(_);var b=w(e,n);return e!==0&&r.__wbindgen_export4(e,n,1),b}finally{r.__wbindgen_add_to_stack_pointer(16)}}viewDelete(t){try{let g=r.__wbindgen_add_to_stack_pointer(-16),l=v(t,r.__wbindgen_export,r.__wbindgen_export2),m=p;r.genericsqlvirtualservermodel_viewDelete(g,this.__wbg_ptr,l,m);var e=a().getInt32(g+0,!0),n=a().getInt32(g+4,!0),_=a().getInt32(g+8,!0),s=a().getInt32(g+12,!0);if(s)throw u(_);var b=w(e,n);return e!==0&&r.__wbindgen_export4(e,n,1),b}finally{r.__wbindgen_add_to_stack_pointer(16)}}viewGetData(t,e,n,_){try{let h=r.__wbindgen_add_to_stack_pointer(-16),I=v(t,r.__wbindgen_export,r.__wbindgen_export2),k=p;r.genericsqlvirtualservermodel_viewGetData(h,this.__wbg_ptr,I,k,i(e),i(n),i(_));var s=a().getInt32(h+0,!0),b=a().getInt32(h+4,!0),g=a().getInt32(h+8,!0),l=a().getInt32(h+12,!0);if(l)throw u(g);var m=w(s,b);return s!==0&&r.__wbindgen_export4(s,b,1),m}finally{r.__wbindgen_add_to_stack_pointer(16)}}viewGetMinMax(t,e,n){try{let m=r.__wbindgen_add_to_stack_pointer(-16),h=v(t,r.__wbindgen_export,r.__wbindgen_export2),I=p,k=v(e,r.__wbindgen_export,r.__wbindgen_export2),T=p;r.genericsqlvirtualservermodel_viewGetMinMax(m,this.__wbg_ptr,h,I,k,T,i(n));var _=a().getInt32(m+0,!0),s=a().getInt32(m+4,!0),b=a().getInt32(m+8,!0),g=a().getInt32(m+12,!0);if(g)throw u(b);var l=w(_,s);return _!==0&&r.__wbindgen_export4(_,s,1),l}finally{r.__wbindgen_add_to_stack_pointer(16)}}viewSchema(t){try{let g=r.__wbindgen_add_to_stack_pointer(-16),l=v(t,r.__wbindgen_export,r.__wbindgen_export2),m=p;r.genericsqlvirtualservermodel_viewSchema(g,this.__wbg_ptr,l,m);var e=a().getInt32(g+0,!0),n=a().getInt32(g+4,!0),_=a().getInt32(g+8,!0),s=a().getInt32(g+12,!0);if(s)throw u(_);var b=w(e,n);return e!==0&&r.__wbindgen_export4(e,n,1),b}finally{r.__wbindgen_add_to_stack_pointer(16)}}viewSize(t){try{let g=r.__wbindgen_add_to_stack_pointer(-16),l=v(t,r.__wbindgen_export,r.__wbindgen_export2),m=p;r.genericsqlvirtualservermodel_viewSize(g,this.__wbg_ptr,l,m);var e=a().getInt32(g+0,!0),n=a().getInt32(g+4,!0),_=a().getInt32(g+8,!0),s=a().getInt32(g+12,!0);if(s)throw u(_);var b=w(e,n);return e!==0&&r.__wbindgen_export4(e,n,1),b}finally{r.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(V.prototype[Symbol.dispose]=V.prototype.free);var H=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,dt.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_perspectivedebugpluginelement_free(t,0)}clear(){let t=r.perspectivedebugpluginelement_clear(this.__wbg_ptr);return u(t)}get config_column_names(){let t=r.perspectivedebugpluginelement_config_column_names(this.__wbg_ptr);return u(t)}connectedCallback(){r.perspectivedebugpluginelement_connectedCallback(this.__wbg_ptr)}delete(){let t=r.perspectivedebugpluginelement_clear(this.__wbg_ptr);return u(t)}draw(t){G(t,y);let e=r.perspectivedebugpluginelement_draw(this.__wbg_ptr,t.__wbg_ptr);return u(e)}get min_config_columns(){let t=r.perspectivedebugpluginelement_config_column_names(this.__wbg_ptr);return u(t)}get name(){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.perspectivedebugpluginelement_name(_,this.__wbg_ptr);var t=a().getInt32(_+0,!0),e=a().getInt32(_+4,!0),n=w(t,e);return t!==0&&r.__wbindgen_export4(t,e,1),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}constructor(t){let e=r.perspectivedebugpluginelement_new(i(t));return this.__wbg_ptr=e>>>0,dt.register(this,this.__wbg_ptr,this),this}resize(){let t=r.perspectivedebugpluginelement_clear(this.__wbg_ptr);return u(t)}restore(t){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.perspectivedebugpluginelement_restore(_,this.__wbg_ptr,f(t)?0:i(t));var e=a().getInt32(_+0,!0),n=a().getInt32(_+4,!0);if(n)throw u(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}restyle(){r.perspectivedebugpluginelement_connectedCallback(this.__wbg_ptr)}save(){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.perspectivedebugpluginelement_save(_,this.__wbg_ptr);var t=a().getInt32(_+0,!0),e=a().getInt32(_+4,!0),n=a().getInt32(_+8,!0);if(n)throw u(e);return u(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get select_mode(){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.perspectivedebugpluginelement_select_mode(_,this.__wbg_ptr);var t=a().getInt32(_+0,!0),e=a().getInt32(_+4,!0),n=w(t,e);return t!==0&&r.__wbindgen_export4(t,e,1),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}update(t){G(t,y);let e=r.perspectivedebugpluginelement_draw(this.__wbg_ptr,t.__wbg_ptr);return u(e)}};Symbol.dispose&&(H.prototype[Symbol.dispose]=H.prototype.free);var A=class c{static __wrap(t){t=t>>>0;let e=Object.create(c.prototype);return e.__wbg_ptr=t,tt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,tt.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_perspectiveviewerelement_free(t,0)}__get_model(){let t=r.perspectiveviewerelement___get_model(this.__wbg_ptr);return c.__wrap(t)}connectedCallback(){try{let n=r.__wbindgen_add_to_stack_pointer(-16);r.perspectiveviewerelement_connectedCallback(n,this.__wbg_ptr);var t=a().getInt32(n+0,!0),e=a().getInt32(n+4,!0);if(e)throw u(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}copy(t){let e=r.perspectiveviewerelement_copy(this.__wbg_ptr,f(t)?0:i(t));return u(e)}delete(){let t=this.__destroy_into_raw(),e=r.perspectiveviewerelement_delete(t);return u(e)}download(t){let e=r.perspectiveviewerelement_download(this.__wbg_ptr,f(t)?0:i(t));return u(e)}eject(){let t=r.perspectiveviewerelement_eject(this.__wbg_ptr);return u(t)}export(t){let e=r.perspectiveviewerelement_export(this.__wbg_ptr,f(t)?0:i(t));return u(e)}flush(){let t=r.perspectiveviewerelement_flush(this.__wbg_ptr);return u(t)}getAllPlugins(){let t=r.perspectiveviewerelement_getAllPlugins(this.__wbg_ptr);return u(t)}getClient(t){let e=r.perspectiveviewerelement_getClient(this.__wbg_ptr,f(t)?16777215:t?1:0);return u(e)}getEditPort(){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.perspectiveviewerelement_getEditPort(_,this.__wbg_ptr);var t=a().getFloat64(_+0,!0),e=a().getInt32(_+8,!0),n=a().getInt32(_+12,!0);if(n)throw u(e);return t}finally{r.__wbindgen_add_to_stack_pointer(16)}}getPlugin(t){try{let g=r.__wbindgen_add_to_stack_pointer(-16);var e=f(t)?0:v(t,r.__wbindgen_export,r.__wbindgen_export2),n=p;r.perspectiveviewerelement_getPlugin(g,this.__wbg_ptr,e,n);var _=a().getInt32(g+0,!0),s=a().getInt32(g+4,!0),b=a().getInt32(g+8,!0);if(b)throw u(s);return u(_)}finally{r.__wbindgen_add_to_stack_pointer(16)}}getRenderStats(){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.perspectiveviewerelement_getRenderStats(_,this.__wbg_ptr);var t=a().getInt32(_+0,!0),e=a().getInt32(_+4,!0),n=a().getInt32(_+8,!0);if(n)throw u(e);return u(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}getSelection(){let t=r.perspectiveviewerelement_getSelection(this.__wbg_ptr);return u(t)}getTable(t){let e=r.perspectiveviewerelement_getTable(this.__wbg_ptr,f(t)?16777215:t?1:0);return u(e)}getView(){let t=r.perspectiveviewerelement_getView(this.__wbg_ptr);return u(t)}getViewConfig(){let t=r.perspectiveviewerelement_getViewConfig(this.__wbg_ptr);return u(t)}load(t){try{let s=r.__wbindgen_add_to_stack_pointer(-16);r.perspectiveviewerelement_load(s,this.__wbg_ptr,i(t));var e=a().getInt32(s+0,!0),n=a().getInt32(s+4,!0),_=a().getInt32(s+8,!0);if(_)throw u(n);return u(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}constructor(t){let e=r.perspectiveviewerelement_new(i(t));return this.__wbg_ptr=e>>>0,tt.register(this,this.__wbg_ptr,this),this}openColumnSettings(t,e){var n=f(t)?0:v(t,r.__wbindgen_export,r.__wbindgen_export2),_=p;let s=r.perspectiveviewerelement_openColumnSettings(this.__wbg_ptr,n,_,f(e)?16777215:e?1:0);return u(s)}reset(t){let e=r.perspectiveviewerelement_reset(this.__wbg_ptr,f(t)?16777215:t?1:0);return u(e)}resetError(){let t=r.perspectiveviewerelement_resetError(this.__wbg_ptr);return u(t)}resetThemes(t){var e=f(t)?0:Jt(t,r.__wbindgen_export),n=p;let _=r.perspectiveviewerelement_resetThemes(this.__wbg_ptr,e,n);return u(_)}resize(t){let e=r.perspectiveviewerelement_resize(this.__wbg_ptr,f(t)?0:i(t));return u(e)}restore(t){let e=r.perspectiveviewerelement_restore(this.__wbg_ptr,i(t));return u(e)}restyleElement(){let t=r.perspectiveviewerelement_restyleElement(this.__wbg_ptr);return u(t)}save(){let t=r.perspectiveviewerelement_save(this.__wbg_ptr);return u(t)}setAutoPause(t){let e=r.perspectiveviewerelement_setAutoPause(this.__wbg_ptr,t);return u(e)}setAutoSize(t){r.perspectiveviewerelement_setAutoSize(this.__wbg_ptr,t)}setSelection(t){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.perspectiveviewerelement_setSelection(_,this.__wbg_ptr,f(t)?0:i(t));var e=a().getInt32(_+0,!0),n=a().getInt32(_+4,!0);if(n)throw u(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}setThrottle(t){r.perspectiveviewerelement_setThrottle(this.__wbg_ptr,!f(t),f(t)?0:t)}toggleColumnSettings(t){let e=v(t,r.__wbindgen_export,r.__wbindgen_export2),n=p,_=r.perspectiveviewerelement_toggleColumnSettings(this.__wbg_ptr,e,n);return u(_)}toggleConfig(t){let e=r.perspectiveviewerelement_toggleConfig(this.__wbg_ptr,f(t)?16777215:t?1:0);return u(e)}};Symbol.dispose&&(A.prototype[Symbol.dispose]=A.prototype.free);var O=class c{static __wrap(t){t=t>>>0;let e=Object.create(c.prototype);return e.__wbg_ptr=t,et.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,et.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_proxysession_free(t,0)}close(){let t=this.__destroy_into_raw(),e=r.proxysession_close(t);return u(e)}handle_request(t){let e=r.proxysession_handle_request(this.__wbg_ptr,i(t));return u(e)}constructor(t,e){try{G(t,F);let n=r.proxysession_new(t.__wbg_ptr,ot(e));return this.__wbg_ptr=n>>>0,et.register(this,this.__wbg_ptr,this),this}finally{x[j++]=void 0}}};Symbol.dispose&&(O.prototype[Symbol.dispose]=O.prototype.free);var E=class c{static __wrap(t){t=t>>>0;let e=Object.create(c.prototype);return e.__wbg_ptr=t,wt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,wt.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_table_free(t,0)}__getClassname(){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.table___getClassname(_,this.__wbg_ptr);var t=a().getInt32(_+0,!0),e=a().getInt32(_+4,!0),n=w(t,e);return t!==0&&r.__wbindgen_export4(t,e,1),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}clear(){let t=r.table_clear(this.__wbg_ptr);return u(t)}columns(){let t=r.table_columns(this.__wbg_ptr);return u(t)}delete(t){let e=this.__destroy_into_raw(),n=r.table_delete(e,f(t)?0:i(t));return u(n)}get_client(){let t=r.table_get_client(this.__wbg_ptr);return u(t)}get_index(){let t=r.table_get_index(this.__wbg_ptr);return u(t)}get_limit(){let t=r.table_get_limit(this.__wbg_ptr);return u(t)}get_name(){let t=r.table_get_name(this.__wbg_ptr);return u(t)}make_port(){let t=r.table_make_port(this.__wbg_ptr);return u(t)}on_delete(t){let e=r.table_on_delete(this.__wbg_ptr,i(t));return u(e)}remove(t,e){let n=r.table_remove(this.__wbg_ptr,i(t),f(e)?0:i(e));return u(n)}remove_delete(t){let e=r.table_remove_delete(this.__wbg_ptr,t);return u(e)}replace(t,e){let n=r.table_replace(this.__wbg_ptr,i(t),f(e)?0:i(e));return u(n)}schema(){let t=r.table_schema(this.__wbg_ptr);return u(t)}size(){let t=r.table_size(this.__wbg_ptr);return u(t)}update(t,e){let n=r.table_update(this.__wbg_ptr,i(t),f(e)?0:i(e));return u(n)}validate_expressions(t){let e=r.table_validate_expressions(this.__wbg_ptr,i(t));return u(e)}view(t){let e=r.table_view(this.__wbg_ptr,f(t)?0:i(t));return u(e)}};Symbol.dispose&&(E.prototype[Symbol.dispose]=E.prototype.free);var y=class c{static __wrap(t){t=t>>>0;let e=Object.create(c.prototype);return e.__wbg_ptr=t,lt.register(e,e.__wbg_ptr,e),e}static __unwrap(t){return t instanceof c?t.__destroy_into_raw():0}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,lt.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_view_free(t,0)}__get_model(){let t=r.view___get_model(this.__wbg_ptr);return c.__wrap(t)}__unsafe_get_name(){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.view___unsafe_get_name(_,this.__wbg_ptr);var t=a().getInt32(_+0,!0),e=a().getInt32(_+4,!0),n=w(t,e);return t!==0&&r.__wbindgen_export4(t,e,1),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}collapse(t){let e=r.view_collapse(this.__wbg_ptr,t);return u(e)}column_paths(t){let e=r.view_column_paths(this.__wbg_ptr,f(t)?0:i(t));return u(e)}delete(){let t=this.__destroy_into_raw(),e=r.view_delete(t);return u(e)}dimensions(){let t=r.view_dimensions(this.__wbg_ptr);return u(t)}expand(t){let e=r.view_expand(this.__wbg_ptr,t);return u(e)}expression_schema(){let t=r.view_expression_schema(this.__wbg_ptr);return u(t)}get_config(){let t=r.view_get_config(this.__wbg_ptr);return u(t)}get_min_max(t){let e=v(t,r.__wbindgen_export,r.__wbindgen_export2),n=p,_=r.view_get_min_max(this.__wbg_ptr,e,n);return u(_)}num_columns(){let t=r.view_num_columns(this.__wbg_ptr);return u(t)}num_rows(){let t=r.view_num_rows(this.__wbg_ptr);return u(t)}on_delete(t){let e=r.view_on_delete(this.__wbg_ptr,i(t));return u(e)}on_update(t,e){let n=r.view_on_update(this.__wbg_ptr,i(t),f(e)?0:i(e));return u(n)}remove_delete(t){let e=r.view_remove_delete(this.__wbg_ptr,t);return u(e)}remove_update(t){let e=r.view_remove_update(this.__wbg_ptr,t);return u(e)}schema(){let t=r.view_schema(this.__wbg_ptr);return u(t)}set_depth(t){let e=r.view_set_depth(this.__wbg_ptr,t);return u(e)}to_arrow(t){let e=r.view_to_arrow(this.__wbg_ptr,f(t)?0:i(t));return u(e)}to_columns(t){let e=r.view_to_columns(this.__wbg_ptr,f(t)?0:i(t));return u(e)}to_columns_string(t){let e=r.view_to_columns_string(this.__wbg_ptr,f(t)?0:i(t));return u(e)}to_csv(t){let e=r.view_to_csv(this.__wbg_ptr,f(t)?0:i(t));return u(e)}to_json(t){let e=r.view_to_json(this.__wbg_ptr,f(t)?0:i(t));return u(e)}to_json_string(t){let e=r.view_to_json_string(this.__wbg_ptr,f(t)?0:i(t));return u(e)}to_ndjson(t){let e=r.view_to_ndjson(this.__wbg_ptr,f(t)?0:i(t));return u(e)}with_typed_arrays(t,e){let n=r.view_with_typed_arrays(this.__wbg_ptr,f(t)?0:i(t),i(e));return u(n)}};Symbol.dispose&&(y.prototype[Symbol.dispose]=y.prototype.free);var z=class c{static __wrap(t){t=t>>>0;let e=Object.create(c.prototype);return e.__wbg_ptr=t,nt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,nt.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_virtualdataslice_free(t,0)}fromArrowIpc(t){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.virtualdataslice_fromArrowIpc(_,this.__wbg_ptr,i(t));var e=a().getInt32(_+0,!0),n=a().getInt32(_+4,!0);if(n)throw u(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}constructor(t){let e=r.virtualdataslice_new(i(t));return this.__wbg_ptr=e>>>0,nt.register(this,this.__wbg_ptr,this),this}setBooleanCol(t,e,n,_){try{let g=r.__wbindgen_add_to_stack_pointer(-16),l=v(t,r.__wbindgen_export,r.__wbindgen_export2),m=p;r.virtualdataslice_setBooleanCol(g,this.__wbg_ptr,l,m,e,i(n),f(_)?4294967297:_>>>0);var s=a().getInt32(g+0,!0),b=a().getInt32(g+4,!0);if(b)throw u(s)}finally{r.__wbindgen_add_to_stack_pointer(16)}}setCol(t,e,n,_,s){try{let l=r.__wbindgen_add_to_stack_pointer(-16),m=v(t,r.__wbindgen_export,r.__wbindgen_export2),h=p,I=v(e,r.__wbindgen_export,r.__wbindgen_export2),k=p;r.virtualdataslice_setCol(l,this.__wbg_ptr,m,h,I,k,n,i(_),f(s)?4294967297:s>>>0);var b=a().getInt32(l+0,!0),g=a().getInt32(l+4,!0);if(g)throw u(b)}finally{r.__wbindgen_add_to_stack_pointer(16)}}setDatetimeCol(t,e,n,_){try{let g=r.__wbindgen_add_to_stack_pointer(-16),l=v(t,r.__wbindgen_export,r.__wbindgen_export2),m=p;r.virtualdataslice_setDatetimeCol(g,this.__wbg_ptr,l,m,e,i(n),f(_)?4294967297:_>>>0);var s=a().getInt32(g+0,!0),b=a().getInt32(g+4,!0);if(b)throw u(s)}finally{r.__wbindgen_add_to_stack_pointer(16)}}setFloatCol(t,e,n,_){try{let g=r.__wbindgen_add_to_stack_pointer(-16),l=v(t,r.__wbindgen_export,r.__wbindgen_export2),m=p;r.virtualdataslice_setFloatCol(g,this.__wbg_ptr,l,m,e,i(n),f(_)?4294967297:_>>>0);var s=a().getInt32(g+0,!0),b=a().getInt32(g+4,!0);if(b)throw u(s)}finally{r.__wbindgen_add_to_stack_pointer(16)}}setIntegerCol(t,e,n,_){try{let g=r.__wbindgen_add_to_stack_pointer(-16),l=v(t,r.__wbindgen_export,r.__wbindgen_export2),m=p;r.virtualdataslice_setIntegerCol(g,this.__wbg_ptr,l,m,e,i(n),f(_)?4294967297:_>>>0);var s=a().getInt32(g+0,!0),b=a().getInt32(g+4,!0);if(b)throw u(s)}finally{r.__wbindgen_add_to_stack_pointer(16)}}setStringCol(t,e,n,_){try{let g=r.__wbindgen_add_to_stack_pointer(-16),l=v(t,r.__wbindgen_export,r.__wbindgen_export2),m=p;r.virtualdataslice_setStringCol(g,this.__wbg_ptr,l,m,e,i(n),f(_)?4294967297:_>>>0);var s=a().getInt32(g+0,!0),b=a().getInt32(g+4,!0);if(b)throw u(s)}finally{r.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(z.prototype[Symbol.dispose]=z.prototype.free);var $=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,pt.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_virtualserver_free(t,0)}handleRequest(t){let e=Gt(t,r.__wbindgen_export),n=p,_=r.virtualserver_handleRequest(this.__wbg_ptr,e,n);return u(_)}constructor(t){try{let s=r.__wbindgen_add_to_stack_pointer(-16);r.virtualserver_new(s,i(t));var e=a().getInt32(s+0,!0),n=a().getInt32(s+4,!0),_=a().getInt32(s+8,!0);if(_)throw u(n);return this.__wbg_ptr=e>>>0,pt.register(this,this.__wbg_ptr,this),this}finally{r.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&($.prototype[Symbol.dispose]=$.prototype.free);function Ft(){try{let n=r.__wbindgen_add_to_stack_pointer(-16);r.get_wasm_module(n);var c=a().getInt32(n+0,!0),t=a().getInt32(n+4,!0),e=a().getInt32(n+8,!0);if(e)throw u(t);return u(c)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function At(){try{let n=r.__wbindgen_add_to_stack_pointer(-16);r.get_worker_url(n);var c=a().getInt32(n+0,!0),t=a().getInt32(n+4,!0),e=a().getInt32(n+8,!0);if(e)throw u(t);return u(c)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Rt(c,t){r.init(i(c),i(t))}function Ct(c){let t=v(c,r.__wbindgen_export,r.__wbindgen_export2),e=p;r.registerPlugin(t,e)}function ht(){return{__proto__:null,\"./perspective-viewer.wasm_bg.js\":{__proto__:null,__wbg_Error_8c4e43fe74559d73:function(t,e){var n=w(t,e);let _=Error(n);return i(_)},__wbg_Number_04624de7d0e8332d:function(t){return Number(o(t))},__wbg_String_8f0eb39a4a4c2f66:function(t,e){let n=String(o(e)),_=v(n,r.__wbindgen_export,r.__wbindgen_export2),s=p;a().setInt32(t+4,s,!0),a().setInt32(t+0,_,!0)},__wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2:function(t,e){let n=o(e),_=typeof n==\"bigint\"?n:void 0;a().setBigInt64(t+8,f(_)?BigInt(0):_,!0),a().setInt32(t+0,!f(_),!0)},__wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25:function(t){let e=o(t),n=typeof e==\"boolean\"?e:void 0;return f(n)?16777215:n?1:0},__wbg___wbindgen_debug_string_0bc8482c6e3508ae:function(t,e){let n=_t(o(e)),_=v(n,r.__wbindgen_export,r.__wbindgen_export2),s=p;a().setInt32(t+4,s,!0),a().setInt32(t+0,_,!0)},__wbg___wbindgen_in_47fa6863be6f2f25:function(t,e){return o(t)in o(e)},__wbg___wbindgen_is_bigint_31b12575b56f32fc:function(t){return typeof o(t)==\"bigint\"},__wbg___wbindgen_is_function_0095a73b8b156f76:function(t){return typeof o(t)==\"function\"},__wbg___wbindgen_is_null_ac34f5003991759a:function(t){return o(t)===null},__wbg___wbindgen_is_object_5ae8e5880f2c1fbd:function(t){let e=o(t);return typeof e==\"object\"&&e!==null},__wbg___wbindgen_is_string_cd444516edc5b180:function(t){return typeof o(t)==\"string\"},__wbg___wbindgen_is_undefined_9e4d92534c42d778:function(t){return o(t)===void 0},__wbg___wbindgen_jsval_eq_11888390b0186270:function(t,e){return o(t)===o(e)},__wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811:function(t,e){return o(t)==o(e)},__wbg___wbindgen_number_get_8ff4255516ccad3e:function(t,e){let n=o(e),_=typeof n==\"number\"?n:void 0;a().setFloat64(t+8,f(_)?0:_,!0),a().setInt32(t+0,!f(_),!0)},__wbg___wbindgen_string_get_72fb696202c56729:function(t,e){let n=o(e),_=typeof n==\"string\"?n:void 0;var s=f(_)?0:v(_,r.__wbindgen_export,r.__wbindgen_export2),b=p;a().setInt32(t+4,b,!0),a().setInt32(t+0,s,!0)},__wbg___wbindgen_throw_be289d5034ed271b:function(t,e){var n=w(t,e);throw new Error(n)},__wbg__wbg_cb_unref_d9b87ff7982e3b21:function(t){o(t)._wbg_cb_unref()},__wbg_activeElement_d9d2a80dfafa67ed:function(t){let e=o(t).activeElement;return f(e)?0:i(e)},__wbg_addEventListener_3acb0aad4483804c:function(){return d(function(t,e,n,_){var s=w(e,n);o(t).addEventListener(s,o(_))},arguments)},__wbg_addEventListener_c917b5aafbcf493f:function(){return d(function(t,e,n,_,s){var b=w(e,n);o(t).addEventListener(b,o(_),o(s))},arguments)},__wbg_add_5be83378df680c25:function(){return d(function(t,e,n){var _=w(e,n);o(t).add(_)},arguments)},__wbg_appendChild_dea38765a26d346d:function(){return d(function(t,e){let n=o(t).appendChild(o(e));return i(n)},arguments)},__wbg_apply_2e22c45cb4f12415:function(){return d(function(t,e,n){let _=Reflect.apply(o(t),o(e),o(n));return i(_)},arguments)},__wbg_apply_ada2ee1a60ac7b3c:function(){return d(function(t,e,n){let _=o(t).apply(o(e),o(n));return i(_)},arguments)},__wbg_at_dfc235641cc0e40c:function(t,e){let n=o(t).at(e);return i(n)},__wbg_attachShadow_d31cd520620b24d6:function(){return d(function(t,e){let n=o(t).attachShadow(o(e));return i(n)},arguments)},__wbg_blur_07f34335e06e5234:function(){return d(function(t){o(t).blur()},arguments)},__wbg_body_f67922363a220026:function(t){let e=o(t).body;return f(e)?0:i(e)},__wbg_bootstrap_de1e9ac320cc9df1:function(t,e,n,_,s,b){var g=w(e,n),l=w(_,s);let m=at(o(t),g,l,u(b));return i(m)},__wbg_bubbles_ad88192d3c29e6f9:function(t){return o(t).bubbles},__wbg_buffer_26d0910f3a5bc899:function(t){let e=o(t).buffer;return i(e)},__wbg_button_d86841d0a03adc44:function(t){return o(t).button},__wbg_cache_key_577df69a33f9a3fb:function(t){let e=o(t).__yew_subtree_cache_key;return f(e)?4294967297:e>>>0},__wbg_call_389efe28435a9388:function(){return d(function(t,e){let n=o(t).call(o(e));return i(n)},arguments)},__wbg_call_41bedb84c3e5c0c9:function(){return d(function(t,e,n,_,s,b){let g=o(t).call(o(e),o(n),o(_),o(s),o(b));return i(g)},arguments)},__wbg_call_4708e0c13bdc8e95:function(){return d(function(t,e,n){let _=o(t).call(o(e),o(n));return i(_)},arguments)},__wbg_call_812d25f1510c13c8:function(){return d(function(t,e,n,_){let s=o(t).call(o(e),o(n),o(_));return i(s)},arguments)},__wbg_cancelBubble_d93ec09e9c46cd6f:function(t){return o(t).cancelBubble},__wbg_checked_04db83ac6810bc82:function(t){return o(t).checked},__wbg_childNodes_75d35de33c9f6fbb:function(t){let e=o(t).childNodes;return i(e)},__wbg_children_54099e7692eefa29:function(t){let e=o(t).children;return i(e)},__wbg_classList_1a87c34c6d81421e:function(t){let e=o(t).classList;return i(e)},__wbg_click_0e9c20848b655ed3:function(t){o(t).click()},__wbg_clientHeight_6432ff0d61ccfe7d:function(t){return o(t).clientHeight},__wbg_clientWidth_dcf89c40d88df4a3:function(t){return o(t).clientWidth},__wbg_clientX_a3c5f4ff30e91264:function(t){return o(t).clientX},__wbg_clientY_e28509acb9b4a42a:function(t){return o(t).clientY},__wbg_client_new:function(t){let e=F.__wrap(t);return i(e)},__wbg_clipboard_98c5a32249fa8416:function(t){let e=o(t).clipboard;return i(e)},__wbg_cloneNode_b85e9102a9a31b29:function(){return d(function(t,e){let n=o(t).cloneNode(e!==0);return i(n)},arguments)},__wbg_cloneNode_eaf4ea08ebf633a5:function(){return d(function(t){let e=o(t).cloneNode();return i(e)},arguments)},__wbg_code_dee0dae4730408e1:function(t,e){let n=o(e).code,_=v(n,r.__wbindgen_export,r.__wbindgen_export2),s=p;a().setInt32(t+4,s,!0),a().setInt32(t+0,_,!0)},__wbg_column_config_schema_dfdc22018b3e4346:function(){return d(function(t,e,n,_,s,b,g,l,m,h){var I=w(e,n),k=w(_,s),T=w(b,g);let It=o(t).column_config_schema(I,k,T,o(l),o(m),o(h));return i(It)},arguments)},__wbg_composedPath_9154ab2547c668d5:function(t){let e=o(t).composedPath();return i(e)},__wbg_contains_1056459c33f961e8:function(t,e){return o(t).contains(o(e))},__wbg_contentRect_74b5b848bcd05780:function(t){let e=o(t).contentRect;return i(e)},__wbg_createElementNS_ee00621496b30ec2:function(){return d(function(t,e,n,_,s){var b=w(e,n),g=w(_,s);let l=o(t).createElementNS(b,g);return i(l)},arguments)},__wbg_createElement_49f60fdcaae809c8:function(){return d(function(t,e,n){var _=w(e,n);let s=o(t).createElement(_);return i(s)},arguments)},__wbg_createObjectURL_918185db6a10a0c8:function(){return d(function(t,e){let n=URL.createObjectURL(o(e)),_=v(n,r.__wbindgen_export,r.__wbindgen_export2),s=p;a().setInt32(t+4,s,!0),a().setInt32(t+0,_,!0)},arguments)},__wbg_createTextNode_55029686c9591bf3:function(t,e,n){var _=w(e,n);let s=o(t).createTextNode(_);return i(s)},__wbg_cssRules_554f47f3049cf066:function(){return d(function(t){let e=o(t).cssRules;return i(e)},arguments)},__wbg_dataTransfer_d924a622fbe51b06:function(t){let e=o(t).dataTransfer;return f(e)?0:i(e)},__wbg_dataset_20cb5c72458ae3fc:function(t){let e=o(t).dataset;return i(e)},__wbg_debug_46a93995fc6f8820:function(t,e,n,_){console.debug(o(t),o(e),o(n),o(_))},__wbg_debug_a4099fa12db6cd61:function(t){console.debug(o(t))},__wbg_delete_250cd10c0e90f03e:function(t){o(t).delete()},__wbg_delete_8318b529ff42aa20:function(t,e,n){var _=w(e,n);delete o(t)[_]},__wbg_dispatchEvent_dc8dcc7ddca11378:function(){return d(function(t,e){return o(t).dispatchEvent(o(e))},arguments)},__wbg_document_ee35a3d3ae34ef6c:function(t){let e=o(t).document;return f(e)?0:i(e)},__wbg_done_57b39ecd9addfe81:function(t){return o(t).done},__wbg_draw_af1828180d3884f1:function(){return d(function(t,e,n,_,s){let b=o(t).draw(y.__wrap(e),n===4294967297?void 0:n,_===4294967297?void 0:_,s!==0);return i(b)},arguments)},__wbg_entries_58c7934c745daac7:function(t){let e=Object.entries(o(t));return i(e)},__wbg_error_3c7d958458bf649b:function(t,e){var n=vt(t,e).slice();r.__wbindgen_export4(t,e*4,4),console.error(...n)},__wbg_error_7534b8e9a36f1ab4:function(t,e){var n=w(t,e);t!==0&&r.__wbindgen_export4(t,e,1),console.error(n)},__wbg_error_794d0ffc9d00d5c3:function(t,e,n,_){console.error(o(t),o(e),o(n),o(_))},__wbg_error_9a7fe3f932034cde:function(t){console.error(o(t))},__wbg_error_f852e41c69b0bd84:function(t,e){console.error(o(t),o(e))},__wbg_family_345f1736ce506756:function(t,e){let n=o(e).family,_=v(n,r.__wbindgen_export,r.__wbindgen_export2),s=p;a().setInt32(t+4,s,!0),a().setInt32(t+0,_,!0)},__wbg_focus_128ff465f65677cc:function(){return d(function(t){o(t).focus()},arguments)},__wbg_fonts_ba4bc521c555025e:function(t){let e=o(t).fonts;return i(e)},__wbg_format_7c97ddc401dae52f:function(t){let e=o(t).format;return i(e)},__wbg_from_bddd64e7d5ff6941:function(t){let e=Array.from(o(t));return i(e)},__wbg_getAttribute_b9f6fc4b689c71b0:function(t,e,n,_){var s=w(n,_);let b=o(e).getAttribute(s);var g=f(b)?0:v(b,r.__wbindgen_export,r.__wbindgen_export2),l=p;a().setInt32(t+4,l,!0),a().setInt32(t+0,g,!0)},__wbg_getBoundingClientRect_b5c8c34d07878818:function(t){let e=o(t).getBoundingClientRect();return i(e)},__wbg_getComputedStyle_2d1f9dfe4ee7e0b9:function(){return d(function(t,e){let n=o(t).getComputedStyle(o(e));return f(n)?0:i(n)},arguments)},__wbg_getEntriesByName_02488cff0bc7581c:function(t,e,n,_,s){var b=w(e,n),g=w(_,s);let l=o(t).getEntriesByName(b,g);return i(l)},__wbg_getPropertyValue_d6911b2a1f9acba9:function(){return d(function(t,e,n,_){var s=w(n,_);let b=o(e).getPropertyValue(s),g=v(b,r.__wbindgen_export,r.__wbindgen_export2),l=p;a().setInt32(t+4,l,!0),a().setInt32(t+0,g,!0)},arguments)},__wbg_getRandomValues_1c61fac11405ffdc:function(){return d(function(t,e){globalThis.crypto.getRandomValues(M(t,e))},arguments)},__wbg_getTime_1e3cd1391c5c3995:function(t){return o(t).getTime()},__wbg_getTimezoneOffset_81776d10a4ec18a8:function(t){return o(t).getTimezoneOffset()},__wbg_get_5dd1ee4c9f462865:function(t,e,n,_){var s=w(n,_);let b=o(e)[s];var g=f(b)?0:v(b,r.__wbindgen_export,r.__wbindgen_export2),l=p;a().setInt32(t+4,l,!0),a().setInt32(t+0,g,!0)},__wbg_get_76e04509d1922a04:function(t,e,n){var _=w(e,n);let s=o(t)[_];return f(s)?0:i(s)},__wbg_get_9b94d73e6221f75c:function(t,e){let n=o(t)[e>>>0];return i(n)},__wbg_get_b3ed3ad4be2bc8ac:function(){return d(function(t,e){let n=Reflect.get(o(t),o(e));return i(n)},arguments)},__wbg_get_static_config_4e959b27c52a4213:function(t){let e=o(t).get_static_config();return i(e)},__wbg_get_with_index_d26da38d2c038e1a:function(t,e){let n=o(t)[e>>>0];return f(n)?0:i(n)},__wbg_get_with_ref_key_1dc361bd10053bfe:function(t,e){let n=o(t)[o(e)];return i(n)},__wbg_hasAttribute_5d8f52cb4c739280:function(t,e,n){var _=w(e,n);return o(t).hasAttribute(_)},__wbg_has_d4e53238966c12b6:function(){return d(function(t,e){return Reflect.has(o(t),o(e))},arguments)},__wbg_height_45209601b4c4ede6:function(t){return o(t).height},__wbg_height_c2027cf67d1c9b11:function(t){return o(t).height},__wbg_host_fb29f8be35c2517d:function(t){let e=o(t).host;return i(e)},__wbg_info_148d043840582012:function(t){console.info(o(t))},__wbg_info_9e602cf10c5c690b:function(t,e,n,_){console.info(o(t),o(e),o(n),o(_))},__wbg_innerHeight_54aa104da08becd2:function(){return d(function(t){let e=o(t).innerHeight;return i(e)},arguments)},__wbg_innerWidth_fa95c57321f4f033:function(){return d(function(t){let e=o(t).innerWidth;return i(e)},arguments)},__wbg_insertBefore_1468142836e61a51:function(){return d(function(t,e,n){let _=o(t).insertBefore(o(e),o(n));return i(_)},arguments)},__wbg_instanceof_ArrayBuffer_c367199e2fa2aa04:function(t){let e;try{e=o(t)instanceof ArrayBuffer}catch{e=!1}return e},__wbg_instanceof_Array_d9eac779cd191cbc:function(t){let e;try{e=o(t)instanceof Array}catch{e=!1}return e},__wbg_instanceof_CssStyleRule_23e59108346af0df:function(t){let e;try{e=o(t)instanceof CSSStyleRule}catch{e=!1}return e},__wbg_instanceof_Date_1b9f15b87f10aa4c:function(t){let e;try{e=o(t)instanceof Date}catch{e=!1}return e},__wbg_instanceof_Element_9e662f49ab6c6beb:function(t){let e;try{e=o(t)instanceof Element}catch{e=!1}return e},__wbg_instanceof_Error_8573fe0b0b480f46:function(t){let e;try{e=o(t)instanceof Error}catch{e=!1}return e},__wbg_instanceof_FontFace_90d3e62f39397791:function(t){let e;try{e=o(t)instanceof FontFace}catch{e=!1}return e},__wbg_instanceof_Map_53af74335dec57f4:function(t){let e;try{e=o(t)instanceof Map}catch{e=!1}return e},__wbg_instanceof_Object_1c6af87502b733ed:function(t){let e;try{e=o(t)instanceof Object}catch{e=!1}return e},__wbg_instanceof_Promise_0094681e3519d6ec:function(t){let e;try{e=o(t)instanceof Promise}catch{e=!1}return e},__wbg_instanceof_ShadowRoot_5285adde3587c73e:function(t){let e;try{e=o(t)instanceof ShadowRoot}catch{e=!1}return e},__wbg_instanceof_Uint8Array_9b9075935c74707c:function(t){let e;try{e=o(t)instanceof Uint8Array}catch{e=!1}return e},__wbg_instanceof_Window_ed49b2db8df90359:function(t){let e;try{e=o(t)instanceof Window}catch{e=!1}return e},__wbg_isArray_d314bb98fcf08331:function(t){return Array.isArray(o(t))},__wbg_isConnected_6110bc2c5462f90e:function(t){return o(t).isConnected},__wbg_isIntersecting_6542cddb9df60b74:function(t){return o(t).isIntersecting},__wbg_isSafeInteger_bfbc7332a9768d2a:function(t){return Number.isSafeInteger(o(t))},__wbg_is_f29129f676e5410c:function(t,e){return Object.is(o(t),o(e))},__wbg_item_00ae26320b80a11f:function(t,e,n){let _=o(e).item(n>>>0),s=v(_,r.__wbindgen_export,r.__wbindgen_export2),b=p;a().setInt32(t+4,b,!0),a().setInt32(t+0,s,!0)},__wbg_item_48715d3212ed96cb:function(t,e){let n=o(t).item(e>>>0);return f(n)?0:i(n)},__wbg_item_5c82f52b014b3056:function(t,e){let n=o(t).item(e>>>0);return f(n)?0:i(n)},__wbg_item_ca823df8214b9e2b:function(t,e){let n=o(t).item(e>>>0);return f(n)?0:i(n)},__wbg_iterator_6ff6560ca1568e55:function(){return i(Symbol.iterator)},__wbg_keyCode_155291a11654466e:function(t){return o(t).keyCode},__wbg_key_d41e8e825e6bb0e9:function(t,e){let n=o(e).key,_=v(n,r.__wbindgen_export,r.__wbindgen_export2),s=p;a().setInt32(t+4,s,!0),a().setInt32(t+0,_,!0)},__wbg_keys_b50a709a76add04e:function(t){let e=Object.keys(o(t));return i(e)},__wbg_languages_5a69df7551d1a803:function(t){let e=o(t).languages;return i(e)},__wbg_lastChild_132d67597d5e4aef:function(t){let e=o(t).lastChild;return f(e)?0:i(e)},__wbg_left_3b7c3c1030d5ca7a:function(t){return o(t).left},__wbg_length_25851a48867b2afc:function(t){return o(t).length},__wbg_length_32ed9a279acd054c:function(t){return o(t).length},__wbg_length_35a7bace40f36eac:function(t){return o(t).length},__wbg_length_b5aa6c69c842d6a6:function(t){return o(t).length},__wbg_length_e455564ce5cbf46e:function(t){return o(t).length},__wbg_length_edae0cd13a8d3b71:function(t){return o(t).length},__wbg_listener_id_e93527b90229a898:function(t){let e=o(t).__yew_listener_id;return f(e)?4294967297:e>>>0},__wbg_loaded_27fa3bdfd9239e89:function(){return d(function(t){let e=o(t).loaded;return i(e)},arguments)},__wbg_mark_3b530a64b09ba08a:function(){return d(function(t,e,n){var _=w(e,n);o(t).mark(_)},arguments)},__wbg_matches_852ba8b2b4592069:function(){return d(function(t,e,n){var _=w(e,n);return o(t).matches(_)},arguments)},__wbg_measure_288b48c082eae0fe:function(){return d(function(t,e,n,_,s){var b=w(e,n),g=w(_,s);o(t).measure(b,g)},arguments)},__wbg_message_9ddc4b9a62a7c379:function(t){let e=o(t).message;return i(e)},__wbg_namespaceURI_86e2062c65f0f341:function(t,e){let n=o(e).namespaceURI;var _=f(n)?0:v(n,r.__wbindgen_export,r.__wbindgen_export2),s=p;a().setInt32(t+4,s,!0),a().setInt32(t+0,_,!0)},__wbg_navigator_43be698ba96fc088:function(t){let e=o(t).navigator;return i(e)},__wbg_new_16c83877745f8d12:function(){return d(function(t,e){var n=w(t,e);let _=new InputEvent(n);return i(_)},arguments)},__wbg_new_1d5bd472c706b768:function(){return d(function(){let t=new CSSStyleSheet;return i(t)},arguments)},__wbg_new_245cd5c49157e602:function(t){let e=new Date(o(t));return i(e)},__wbg_new_361308b2356cecd0:function(){let t=new Object;return i(t)},__wbg_new_384a230f8673183c:function(){return d(function(t,e){var n=w(t,e);let _=new CustomEvent(n);return i(_)},arguments)},__wbg_new_3eb36ae241fe6f44:function(){let t=new Array;return i(t)},__wbg_new_539ca4297026bac9:function(t){let e=new it(o(t));return i(e)},__wbg_new_72b49615380db768:function(t,e){var n=w(t,e);let _=new Error(n);return i(_)},__wbg_new_86c8f0b79e48927d:function(t,e){let n=new Intl.NumberFormat(o(t),o(e));return i(n)},__wbg_new_8a6f238a6ece86ea:function(){let t=new Error;return i(t)},__wbg_new_b5d9e2fb389fef91:function(t,e){try{var n={a:t,b:e},_=(b,g)=>{let l=n.a;n.a=0;try{return Mt(l,n.b,b,g)}finally{n.a=l}};let s=new Promise(_);return i(s)}finally{n.a=n.b=0}},__wbg_new_c155239f1b113b68:function(t,e){let n=new Intl.DateTimeFormat(o(t),o(e));return i(n)},__wbg_new_cfffacaf4c9cdc8c:function(t){let e=new st(o(t));return i(e)},__wbg_new_dca287b076112a51:function(){return i(new Map)},__wbg_new_dd2b680c8bf6ae29:function(t){let e=new Uint8Array(o(t));return i(e)},__wbg_new_e9a22fda35e71844:function(t){let e=new ct(o(t));return i(e)},__wbg_new_from_slice_a3d2629dc1826784:function(t,e){let n=new Uint8Array(M(t,e));return i(n)},__wbg_new_no_args_1c7c842f08d00ebb:function(t,e){var n=w(t,e);let _=new Function(n);return i(_)},__wbg_new_with_event_init_dict_48877e7ca125f3c1:function(){return d(function(t,e,n){var _=w(t,e);let s=new CustomEvent(_,o(n));return i(s)},arguments)},__wbg_new_with_length_1763c527b2923202:function(t){let e=new Array(t>>>0);return i(e)},__wbg_new_with_str_sequence_and_options_9b8b0bee99ec6b0f:function(){return d(function(t,e){let n=new Blob(o(t),o(e));return i(n)},arguments)},__wbg_new_with_u8_array_sequence_08b2096a9f3117c0:function(){return d(function(t){let e=new Blob(o(t));return i(e)},arguments)},__wbg_nextSibling_2e988d9bbe3e06f0:function(t){let e=o(t).nextSibling;return f(e)?0:i(e)},__wbg_next_3482f54c49e8af19:function(){return d(function(t){let e=o(t).next();return i(e)},arguments)},__wbg_next_418f80d8f5303233:function(t){let e=o(t).next;return i(e)},__wbg_next_a74fa8e233e5b7bf:function(){return d(function(t){let e=o(t).next();return i(e)},arguments)},__wbg_now_ebffdf7e580f210d:function(t){return o(t).now()},__wbg_observe_9bf210ccb1c34c0d:function(t,e){o(t).observe(o(e))},__wbg_observe_b7e843e4138a0f27:function(t,e){o(t).observe(o(e))},__wbg_offsetHeight_34f7abc1686733cc:function(t){return o(t).offsetHeight},__wbg_offsetParent_9627ebca6b03e8b2:function(t){let e=o(t).offsetParent;return f(e)?0:i(e)},__wbg_offsetWidth_f37b33a53e513101:function(t){return o(t).offsetWidth},__wbg_offsetX_b76b9bb1f9235de9:function(t){return o(t).offsetX},__wbg_offsetY_db5c1ddb866e1b82:function(t){return o(t).offsetY},__wbg_parentElement_75863410a8617953:function(t){let e=o(t).parentElement;return f(e)?0:i(e)},__wbg_parentNode_d44bd5ec58601e45:function(t){let e=o(t).parentNode;return f(e)?0:i(e)},__wbg_parse_708461a1feddfb38:function(){return d(function(t,e){var n=w(t,e);let _=JSON.parse(n);return i(_)},arguments)},__wbg_performance_06f12ba62483475d:function(t){let e=o(t).performance;return f(e)?0:i(e)},__wbg_plugin_config_schema_2af2907ba72ce2d3:function(){return d(function(t,e){let n=o(t).plugin_config_schema(o(e));return i(n)},arguments)},__wbg_pointerId_466b1bdcaf2fe835:function(t){return o(t).pointerId},__wbg_pop_80fa29128215a463:function(t){let e=o(t).pop();return i(e)},__wbg_preventDefault_cdcfcd7e301b9702:function(t){o(t).preventDefault()},__wbg_prototypesetcall_bdcdcc5842e4d77d:function(t,e,n){Uint8Array.prototype.set.call(M(t,e),o(n))},__wbg_push_8ffdcb2063340ba5:function(t,e){return o(t).push(o(e))},__wbg_queueMicrotask_0aa0a927f78f5d98:function(t){let e=o(t).queueMicrotask;return i(e)},__wbg_queueMicrotask_5bb536982f78a56f:function(t){queueMicrotask(o(t))},__wbg_readText_b9ac81623f153a62:function(t){let e=o(t).readText();return i(e)},__wbg_readyState_cf11f0728fc7b46c:function(t,e){let n=o(e).readyState,_=v(n,r.__wbindgen_export,r.__wbindgen_export2),s=p;a().setInt32(t+4,s,!0),a().setInt32(t+0,_,!0)},__wbg_reject_a2176de7f1212be5:function(t){let e=Promise.reject(o(t));return i(e)},__wbg_relatedTarget_1557cded94b97af2:function(t){let e=o(t).relatedTarget;return f(e)?0:i(e)},__wbg_releasePointerCapture_420ef33c7c5fb6f4:function(){return d(function(t,e){o(t).releasePointerCapture(e)},arguments)},__wbg_removeAttribute_87259aab06d9f286:function(){return d(function(t,e,n){var _=w(e,n);o(t).removeAttribute(_)},arguments)},__wbg_removeChild_2f0b06213dbc49ca:function(){return d(function(t,e){let n=o(t).removeChild(o(e));return i(n)},arguments)},__wbg_removeEventListener_e63328781a5b9af9:function(){return d(function(t,e,n,_){var s=w(e,n);o(t).removeEventListener(s,o(_))},arguments)},__wbg_remove_f9451697e0bc6ca0:function(){return d(function(t,e,n){var _=w(e,n);o(t).remove(_)},arguments)},__wbg_render_460646c5f2366ad0:function(){return d(function(t,e,n){let _=o(t).render(y.__wrap(e),u(n));return i(_)},arguments)},__wbg_replaceSync_54e9ce897fe6ab6a:function(){return d(function(t,e,n){var _=w(e,n);o(t).replaceSync(_)},arguments)},__wbg_requestAnimationFrame_43682f8e1c5e5348:function(){return d(function(t,e){return o(t).requestAnimationFrame(o(e))},arguments)},__wbg_resize_82a6b7ca8db19707:function(){return d(function(t){let e=o(t).resize();return i(e)},arguments)},__wbg_resolve_002c4b7d9d8f6b64:function(t){let e=Promise.resolve(o(t));return i(e)},__wbg_resolvedOptions_4c36dbfa1c4ba2bf:function(t){let e=o(t).resolvedOptions();return i(e)},__wbg_restore_11606adef45cc17d:function(){return d(function(t,e,n){o(t).restore(o(e),o(n))},arguments)},__wbg_restyle_cb726e5d8e5f76c1:function(t){o(t).restyle()},__wbg_scrollLeft_2b817c7719d17438:function(t){return o(t).scrollLeft},__wbg_scrollTop_0a3a77f9fcbe038e:function(t){return o(t).scrollTop},__wbg_scrollTop_4161d2a08060cb06:function(t){return o(t).scrollTop},__wbg_selectedIndex_b1465d243fcb7142:function(t){return o(t).selectedIndex},__wbg_selectionEnd_f3cba543517b4aa8:function(){return d(function(t){let e=o(t).selectionEnd;return f(e)?4294967297:e>>>0},arguments)},__wbg_selectionStart_9cd0aeff14a21252:function(){return d(function(t){let e=o(t).selectionStart;return f(e)?4294967297:e>>>0},arguments)},__wbg_selectorText_4ebdf4f8074dafea:function(t,e){let n=o(e).selectorText,_=v(n,r.__wbindgen_export,r.__wbindgen_export2),s=p;a().setInt32(t+4,s,!0),a().setInt32(t+0,_,!0)},__wbg_setAttribute_cc8e4c8a2a008508:function(){return d(function(t,e,n,_,s){var b=w(e,n),g=w(_,s);o(t).setAttribute(b,g)},arguments)},__wbg_setDragImage_76defbcc7ff30178:function(t,e,n,_){o(t).setDragImage(o(e),n,_)},__wbg_setPointerCapture_420db6f6826eb74b:function(){return d(function(t,e){o(t).setPointerCapture(e)},arguments)},__wbg_setProperty_cbb25c4e74285b39:function(){return d(function(t,e,n,_,s){var b=w(e,n),g=w(_,s);o(t).setProperty(b,g)},arguments)},__wbg_setSelectionRange_301eef1c51e01d2a:function(){return d(function(t,e,n){o(t).setSelectionRange(e>>>0,n>>>0)},arguments)},__wbg_setTimeout_eff32631ea138533:function(){return d(function(t,e,n){return o(t).setTimeout(o(e),n)},arguments)},__wbg_set_1eb0999cf5d27fc8:function(t,e,n){let _=o(t).set(o(e),o(n));return i(_)},__wbg_set_3f1d0b984ed272ed:function(t,e,n){o(t)[u(e)]=u(n)},__wbg_set_6cb8631f80447a67:function(){return d(function(t,e,n){return Reflect.set(o(t),o(e),o(n))},arguments)},__wbg_set_cache_key_07879d8e1ddc3687:function(t,e){o(t).__yew_subtree_cache_key=e>>>0},__wbg_set_capture_d52e7a585f2933c8:function(t,e){o(t).capture=e!==0},__wbg_set_checked_4b2468680005fbf7:function(t,e){o(t).checked=e!==0},__wbg_set_defaultValue_ad528b0a65ceef4a:function(){return d(function(t,e,n){var _=w(e,n);o(t).defaultValue=_},arguments)},__wbg_set_detail_fa3b358526be3a85:function(t,e){o(t).detail=o(e)},__wbg_set_dropEffect_042402609f0b7c6b:function(t,e,n){var _=w(e,n);o(t).dropEffect=_},__wbg_set_f43e577aea94465b:function(t,e,n){o(t)[e>>>0]=u(n)},__wbg_set_fb27b296001e2de9:function(){return d(function(t,e,n,_,s){var b=w(e,n),g=w(_,s);o(t)[b]=g},arguments)},__wbg_set_innerHTML_edd39677e3460291:function(t,e,n){var _=w(e,n);o(t).innerHTML=_},__wbg_set_innerText_2f1502f2d0780499:function(t,e,n){var _=w(e,n);o(t).innerText=_},__wbg_set_listener_id_673485d61ca64e47:function(t,e){o(t).__yew_listener_id=e>>>0},__wbg_set_mode_6a55f972d62a3c88:function(t,e){o(t).mode=Pt[e]},__wbg_set_nodeValue_d947eb0a476b80d7:function(t,e,n){var _=w(e,n);o(t).nodeValue=_},__wbg_set_passive_f411e67e6f28687b:function(t,e){o(t).passive=e!==0},__wbg_set_scrollLeft_8de8fc187e3a6808:function(t,e){o(t).scrollLeft=e},__wbg_set_scrollTop_bebe746cd217a3d1:function(t,e){o(t).scrollTop=e},__wbg_set_selectionEnd_01e3269db03d5d2e:function(){return d(function(t,e){o(t).selectionEnd=e===4294967297?void 0:e},arguments)},__wbg_set_selectionStart_d68d6955c07c2be1:function(){return d(function(t,e){o(t).selectionStart=e===4294967297?void 0:e},arguments)},__wbg_set_subtree_id_7f776f86c6337160:function(t,e){o(t).__yew_subtree_id=e>>>0},__wbg_set_type_148de20768639245:function(t,e,n){var _=w(e,n);o(t).type=_},__wbg_set_value_62a965e38b22b38c:function(t,e,n){var _=w(e,n);o(t).value=_},__wbg_set_value_c3556fce049236f0:function(t,e,n){var _=w(e,n);o(t).value=_},__wbg_set_value_ddc3bd01a8467bf1:function(t,e,n){var _=w(e,n);o(t).value=_},__wbg_shadowRoot_14828067c5922da7:function(t){let e=o(t).shadowRoot;return f(e)?0:i(e)},__wbg_shiftKey_5558a3288542c985:function(t){return o(t).shiftKey},__wbg_shiftKey_564be91ec842bcc4:function(t){return o(t).shiftKey},__wbg_splice_7cecda643e9c2204:function(t,e,n,_){let s=o(t).splice(e>>>0,n>>>0,o(_));return i(s)},__wbg_stack_0ed75d68575b0f3c:function(t,e){let n=o(e).stack,_=v(n,r.__wbindgen_export,r.__wbindgen_export2),s=p;a().setInt32(t+4,s,!0),a().setInt32(t+0,_,!0)},__wbg_startTime_248495bfbcb427d3:function(t){return o(t).startTime},__wbg_static_accessor_GLOBAL_12837167ad935116:function(){let t=typeof self>\"u\"?null:self;return f(t)?0:i(t)},__wbg_static_accessor_GLOBAL_THIS_e628e89ab3b1c95f:function(){let t=typeof globalThis>\"u\"?null:globalThis;return f(t)?0:i(t)},__wbg_static_accessor_PSP_45de94a68ac00c3b:function(){return i(J)},__wbg_static_accessor_SELF_a621d3dfbb60d0ce:function(){let t=typeof self>\"u\"?null:self;return f(t)?0:i(t)},__wbg_static_accessor_WINDOW_f8727f0cf888e0bd:function(){let t=typeof window>\"u\"?null:window;return f(t)?0:i(t)},__wbg_stopPropagation_6e5e2a085214ac63:function(t){o(t).stopPropagation()},__wbg_stringify_2fdc12d5545a89d9:function(){return d(function(t,e,n){let _=JSON.stringify(o(t),o(e),o(n));return i(_)},arguments)},__wbg_stringify_8d1cc6ff383e8bae:function(){return d(function(t){let e=JSON.stringify(o(t));return i(e)},arguments)},__wbg_styleSheets_54de627270238f6f:function(t){let e=o(t).styleSheets;return i(e)},__wbg_style_0b7c9bd318f8b807:function(t){let e=o(t).style;return i(e)},__wbg_style_fa56cf251a93275a:function(t){let e=o(t).style;return i(e)},__wbg_subtree_id_bb66e5e9d0f64dbd:function(t){let e=o(t).__yew_subtree_id;return f(e)?4294967297:e>>>0},__wbg_supportedValuesOf_ab48364bcfbcda85:function(t){let e=Intl.supportedValuesOf(o(t));return i(e)},__wbg_table_new:function(t){let e=E.__wrap(t);return i(e)},__wbg_tagName_0cf6d7b647352f04:function(t,e){let n=o(e).tagName,_=v(n,r.__wbindgen_export,r.__wbindgen_export2),s=p;a().setInt32(t+4,s,!0),a().setInt32(t+0,_,!0)},__wbg_target_521be630ab05b11e:function(t){let e=o(t).target;return f(e)?0:i(e)},__wbg_then_0d9fe2c7b1857d32:function(t,e,n){let _=o(t).then(o(e),o(n));return i(_)},__wbg_then_b9e7b3b5f1a9e1b5:function(t,e){let n=o(t).then(o(e));return i(n)},__wbg_toString_964ff7fe6eca8362:function(t){let e=o(t).toString();return i(e)},__wbg_toggleAttribute_d89e5c9e9053c9c4:function(){return d(function(t,e,n,_){var s=w(e,n);return o(t).toggleAttribute(s,_!==0)},arguments)},__wbg_toggle_52417ca95b874e83:function(){return d(function(t,e,n){var _=w(e,n);return o(t).toggle(_)},arguments)},__wbg_top_3d27ff6f468cf3fc:function(t){return o(t).top},__wbg_trace_9007714a6fbee374:function(t){console.trace(o(t))},__wbg_trace_bd16b570941b54fb:function(t,e,n,_){console.trace(o(t),o(e),o(n),o(_))},__wbg_type_4edffca24c42b74d:function(t,e){let n=o(e).type,_=v(n,r.__wbindgen_export,r.__wbindgen_export2),s=p;a().setInt32(t+4,s,!0),a().setInt32(t+0,_,!0)},__wbg_unobserve_830ef62f5096e0ba:function(t,e){o(t).unobserve(o(e))},__wbg_unobserve_ff8e1a62d6fc8843:function(t,e){o(t).unobserve(o(e))},__wbg_update_f6f25c6f6ca930fe:function(){return d(function(t,e,n,_,s){let b=o(t).update(y.__wrap(e),n===4294967297?void 0:n,_===4294967297?void 0:_,s!==0);return i(b)},arguments)},__wbg_valueAsNumber_5292e7ed56db5658:function(t){return o(t).valueAsNumber},__wbg_value_0546255b415e96c1:function(t){let e=o(t).value;return i(e)},__wbg_value_15684899da869c95:function(t,e){let n=o(e).value,_=v(n,r.__wbindgen_export,r.__wbindgen_export2),s=p;a().setInt32(t+4,s,!0),a().setInt32(t+0,_,!0)},__wbg_value_e506a07878790ca0:function(t,e){let n=o(e).value,_=v(n,r.__wbindgen_export,r.__wbindgen_export2),s=p;a().setInt32(t+4,s,!0),a().setInt32(t+0,_,!0)},__wbg_values_5da93bc719d272cf:function(t){let e=Object.values(o(t));return i(e)},__wbg_values_725507e0ae05aa44:function(t){let e=o(t).values();return i(e)},__wbg_view_new:function(t){let e=y.__wrap(t);return i(e)},__wbg_view_unwrap:function(t){return y.__unwrap(o(t))},__wbg_virtualdataslice_new:function(t){let e=z.__wrap(t);return i(e)},__wbg_warn_a40b971467b219c7:function(t,e,n,_){console.warn(o(t),o(e),o(n),o(_))},__wbg_warn_f7ae1b2e66ccb930:function(t){console.warn(o(t))},__wbg_weight_984b87b81f2dde65:function(t,e){let n=o(e).weight,_=v(n,r.__wbindgen_export,r.__wbindgen_export2),s=p;a().setInt32(t+4,s,!0),a().setInt32(t+0,_,!0)},__wbg_which_78ecd90ab7c6bdd6:function(t){return o(t).which},__wbg_width_7444cca5dfea0645:function(t){return o(t).width},__wbg_width_ae46cb8e98ee102f:function(t){return o(t).width},__wbg_write_d429ce72e918e180:function(t,e){let n=o(t).write(o(e));return i(n)},__wbindgen_cast_0000000000000001:function(t,e){let n=X(t,e,r.__wasm_bindgen_func_elem_3134,ut);return i(n)},__wbindgen_cast_0000000000000002:function(t,e){let n=R(t,e,r.__wasm_bindgen_func_elem_3134,Q);return i(n)},__wbindgen_cast_0000000000000003:function(t,e){let n=R(t,e,r.__wasm_bindgen_func_elem_3134,Q);return i(n)},__wbindgen_cast_0000000000000004:function(t,e){let n=R(t,e,r.__wasm_bindgen_func_elem_3134,Q);return i(n)},__wbindgen_cast_0000000000000005:function(t,e){let n=X(t,e,r.__wasm_bindgen_func_elem_3134,ut);return i(n)},__wbindgen_cast_0000000000000006:function(t,e){let n=R(t,e,r.__wasm_bindgen_func_elem_3134,Et);return i(n)},__wbindgen_cast_0000000000000007:function(t,e){let n=X(t,e,r.__wasm_bindgen_func_elem_13509,Ot);return i(n)},__wbindgen_cast_0000000000000008:function(t,e){let n=X(t,e,r.__wasm_bindgen_func_elem_16653,zt);return i(n)},__wbindgen_cast_0000000000000009:function(t,e){let n=R(t,e,r.__wasm_bindgen_func_elem_17311,jt);return i(n)},__wbindgen_cast_000000000000000a:function(t,e){let n=R(t,e,r.__wasm_bindgen_func_elem_17336,Tt);return i(n)},__wbindgen_cast_000000000000000b:function(t){return i(t)},__wbindgen_cast_000000000000000c:function(t){return i(t)},__wbindgen_cast_000000000000000d:function(t,e){var n=w(t,e);return i(n)},__wbindgen_cast_000000000000000e:function(t,e){let n=Wt(t,e);return i(n)},__wbindgen_cast_000000000000000f:function(t,e){let n=Nt(t,e);return i(n)},__wbindgen_cast_0000000000000010:function(t,e){let n=qt(t,e);return i(n)},__wbindgen_cast_0000000000000011:function(t,e){let n=Dt(t,e);return i(n)},__wbindgen_cast_0000000000000012:function(t,e){let n=M(t,e);return i(n)},__wbindgen_cast_0000000000000013:function(t){let e=BigInt.asUintN(64,t);return i(e)},__wbindgen_cast_0000000000000014:function(t,e){var n=vt(t,e).slice();return r.__wbindgen_export4(t,e*4,4),i(n)},__wbindgen_cast_0000000000000015:function(t,e){var n=M(t,e).slice();return r.__wbindgen_export4(t,e*1,1),i(n)},__wbindgen_object_clone_ref:function(t){let e=o(t);return i(e)},__wbindgen_object_drop_ref:function(t){u(t)},__wbindgen_object_is_undefined:function(t){return o(t)===void 0}}}}function jt(c,t){r.__wasm_bindgen_func_elem_17314(c,t)}function Ot(c,t){let e=r.__wasm_bindgen_func_elem_14430(c,t);return u(e)}function ut(c,t,e){r.__wasm_bindgen_func_elem_5265(c,t,i(e))}function Q(c,t,e){r.__wasm_bindgen_func_elem_5266(c,t,i(e))}function Et(c,t){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.__wasm_bindgen_func_elem_5263(_,c,t);var e=a().getInt32(_+0,!0),n=a().getInt32(_+4,!0);if(n)throw u(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function zt(c,t,e){try{r.__wasm_bindgen_func_elem_16772(c,t,ot(e))}finally{x[j++]=void 0}}function Tt(c,t,e){r.__wasm_bindgen_func_elem_17353(c,t,i(e))}function Mt(c,t,e,n){r.__wasm_bindgen_func_elem_24562(c,t,i(e),i(n))}var Pt=[\"open\",\"closed\"],Z=typeof FinalizationRegistry>\"u\"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(c=>r.__wbg_client_free(c>>>0,1)),bt=typeof FinalizationRegistry>\"u\"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(c=>r.__wbg_copydropdownmenuelement_free(c>>>0,1)),gt=typeof FinalizationRegistry>\"u\"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(c=>r.__wbg_exportdropdownmenuelement_free(c>>>0,1)),ft=typeof FinalizationRegistry>\"u\"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(c=>r.__wbg_genericsqlvirtualservermodel_free(c>>>0,1)),dt=typeof FinalizationRegistry>\"u\"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(c=>r.__wbg_perspectivedebugpluginelement_free(c>>>0,1)),tt=typeof FinalizationRegistry>\"u\"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(c=>r.__wbg_perspectiveviewerelement_free(c>>>0,1)),et=typeof FinalizationRegistry>\"u\"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(c=>r.__wbg_proxysession_free(c>>>0,1)),wt=typeof FinalizationRegistry>\"u\"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(c=>r.__wbg_table_free(c>>>0,1)),lt=typeof FinalizationRegistry>\"u\"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(c=>r.__wbg_view_free(c>>>0,1)),nt=typeof FinalizationRegistry>\"u\"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(c=>r.__wbg_virtualdataslice_free(c>>>0,1)),pt=typeof FinalizationRegistry>\"u\"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(c=>r.__wbg_virtualserver_free(c>>>0,1));function i(c){D===x.length&&x.push(x.length+1);let t=D;return D=x[t],x[t]=c,t}function G(c,t){if(!(c instanceof t))throw new Error(`expected instance of ${t.name}`)}function ot(c){if(j==1)throw new Error(\"out of js stack\");return x[--j]=c,j}var K=typeof FinalizationRegistry>\"u\"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(c=>c.dtor(c.a,c.b));function _t(c){let t=typeof c;if(t==\"number\"||t==\"boolean\"||c==null)return`${c}`;if(t==\"string\")return`\"${c}\"`;if(t==\"symbol\"){let _=c.description;return _==null?\"Symbol\":`Symbol(${_})`}if(t==\"function\"){let _=c.name;return typeof _==\"string\"&&_.length>0?`Function(${_})`:\"Function\"}if(Array.isArray(c)){let _=c.length,s=\"[\";_>0&&(s+=_t(c[0]));for(let b=1;b<_;b++)s+=\", \"+_t(c[b]);return s+=\"]\",s}let e=/\\[object ([^\\]]+)\\]/.exec(toString.call(c)),n;if(e&&e.length>1)n=e[1];else return toString.call(c);if(n==\"Object\")try{return\"Object(\"+JSON.stringify(c)+\")\"}catch{return\"Object\"}return c instanceof Error?`${c.name}: ${c.message}\n${c.stack}`:n}function Lt(c){c<132||(x[c]=D,D=c)}function Wt(c,t){return c=c>>>0,Bt().subarray(c/4,c/4+t)}function Nt(c,t){return c=c>>>0,Ut().subarray(c/8,c/8+t)}function qt(c,t){return c=c>>>0,Vt().subarray(c/4,c/4+t)}function vt(c,t){c=c>>>0;let e=a(),n=[];for(let _=c;_<c+4*t;_+=4)n.push(u(e.getUint32(_,!0)));return n}function Dt(c,t){return c=c>>>0,$t().subarray(c/4,c/4+t)}function M(c,t){return c=c>>>0,C().subarray(c/1,c/1+t)}function w(c,t){return c===0?o(t):Ht(c,t)}var S=null;function a(){return(S===null||S.buffer.detached===!0||S.buffer.detached===void 0&&S.buffer!==r.memory.buffer)&&(S=new DataView(r.memory.buffer)),S}var P=null;function Bt(){return(P===null||P.byteLength===0)&&(P=new Float32Array(r.memory.buffer)),P}var L=null;function Ut(){return(L===null||L.byteLength===0)&&(L=new Float64Array(r.memory.buffer)),L}var W=null;function Vt(){return(W===null||W.byteLength===0)&&(W=new Int32Array(r.memory.buffer)),W}function Ht(c,t){return c=c>>>0,Yt(c,t)}var N=null;function $t(){return(N===null||N.byteLength===0)&&(N=new Uint32Array(r.memory.buffer)),N}var q=null;function C(){return(q===null||q.byteLength===0)&&(q=new Uint8Array(r.memory.buffer)),q}function o(c){return x[c]}function d(c,t){try{return c.apply(this,t)}catch(e){r.__wbindgen_export3(i(e))}}var x=new Array(128).fill(void 0);x.push(void 0,null,!0,!1);var D=x.length;function f(c){return c==null}function X(c,t,e,n){let _={a:c,b:t,cnt:1,dtor:e},s=(...b)=>{_.cnt++;try{return n(_.a,_.b,...b)}finally{s._wbg_cb_unref()}};return s._wbg_cb_unref=()=>{--_.cnt===0&&(_.dtor(_.a,_.b),_.a=0,K.unregister(_))},K.register(s,_,_),s}function R(c,t,e,n){let _={a:c,b:t,cnt:1,dtor:e},s=(...b)=>{_.cnt++;let g=_.a;_.a=0;try{return n(g,_.b,...b)}finally{_.a=g,s._wbg_cb_unref()}};return s._wbg_cb_unref=()=>{--_.cnt===0&&(_.dtor(_.a,_.b),_.a=0,K.unregister(_))},K.register(s,_,_),s}function Gt(c,t){let e=t(c.length*1,1)>>>0;return C().set(c,e/1),p=c.length,e}function Jt(c,t){let e=t(c.length*4,4)>>>0,n=a();for(let _=0;_<c.length;_++)n.setUint32(e+4*_,i(c[_]),!0);return p=c.length,e}function v(c,t,e){if(e===void 0){let g=mt.encode(c),l=t(g.length,1)>>>0;return C().subarray(l,l+g.length).set(g),p=g.length,l}let n=c.length,_=t(n,1)>>>0,s=C(),b=0;for(;b<n;b++){let g=c.charCodeAt(b);if(g>127)break;s[_+b]=g}if(b!==n){b!==0&&(c=c.slice(b)),_=e(_,n,n=b+c.length*3,1)>>>0;let g=C().subarray(_+b,_+n),l=mt.encodeInto(c,g);b+=l.written,_=e(_,n,b,1)>>>0}return p=b,_}var j=128;function u(c){let t=o(c);return Lt(c),t}var Y=new TextDecoder(\"utf-8\",{ignoreBOM:!0,fatal:!0});Y.decode();var Xt=2146435072,rt=0;function Yt(c,t){return rt+=t,rt>=Xt&&(Y=new TextDecoder(\"utf-8\",{ignoreBOM:!0,fatal:!0}),Y.decode(),rt=t),Y.decode(C().subarray(c,c+t))}var mt=new TextEncoder,p=0,Kt,r;function yt(c,t){return r=c.exports,Kt=t,S=null,P=null,L=null,W=null,N=null,q=null,r}async function Qt(c,t){if(typeof Response==\"function\"&&c instanceof Response){if(typeof WebAssembly.instantiateStreaming==\"function\")try{return await WebAssembly.instantiateStreaming(c,t)}catch(_){if(c.ok&&e(c.type)&&c.headers.get(\"Content-Type\")!==\"application/wasm\")console.warn(\"`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\\n\",_);else throw _}let n=await c.arrayBuffer();return await WebAssembly.instantiate(n,t)}else{let n=await WebAssembly.instantiate(c,t);return n instanceof WebAssembly.Instance?{instance:n,module:c}:n}function e(n){switch(n){case\"basic\":case\"cors\":case\"default\":return!0}return!1}}function Zt(c){if(r!==void 0)return r;c!==void 0&&(Object.getPrototypeOf(c)===Object.prototype?{module:c}=c:console.warn(\"using deprecated parameters for `initSync()`; pass a single object instead\"));let t=ht();c instanceof WebAssembly.Module||(c=new WebAssembly.Module(c));let e=new WebAssembly.Instance(c,t);return yt(e,c)}async function xt(c){if(r!==void 0)return r;c!==void 0&&(Object.getPrototypeOf(c)===Object.prototype?{module_or_path:c}=c:console.warn(\"using deprecated parameters for the initialization function; pass a single object instead\"));let t=ht();(typeof c==\"string\"||typeof Request==\"function\"&&c instanceof Request||typeof URL==\"function\"&&c instanceof URL)&&(c=fetch(c));let{instance:e,module:n}=await Qt(await c,t);return yt(e,n)}export{F as Client,B as CopyDropDownMenuElement,U as ExportDropDownMenuElement,V as GenericSQLVirtualServerModel,H as PerspectiveDebugPluginElement,A as PerspectiveViewerElement,O as ProxySession,E as Table,y as View,z as VirtualDataSlice,$ as VirtualServer,xt as default,Ft as get_wasm_module,At as get_worker_url,Rt as init,Zt as initSync,Ct as registerPlugin};\n", "\n import workerSource from \"./perspective-viewer.worker\";\n let cached = null;\n export async function getWorkerURL() {\n if (cached) return cached;\n const blob = new Blob([workerSource], {\n type: \"application/javascript\",\n });\n\n cached = URL.createObjectURL(blob);\n return cached;\n }\n\n function make_host(a, b) {\n return {\n addEventListener(type, callback) {\n if (type === \"message\") {\n a.push(callback);\n }\n },\n removeEventListener(type, callback) {\n const idx = a.indexOf(callback);\n if (idx > -1) {\n a.splice(idx, 1);\n }\n },\n postMessage(msg, ports) {\n for (const listener of b) {\n listener({\n data: msg,\n ports: ports,\n });\n }\n },\n terminate() {},\n location: { href: \"\" },\n };\n }\n\n function run_single_threaded() {\n console.warn(\n \"Running perspective in single-threaded mode\"\n );\n const f = Function(\n \"const self = arguments[0];\" + workerSource\n );\n const workers = [];\n const mains = [];\n f(make_host(workers, mains));\n return make_host(mains, workers);\n }\n\n export async function initialize(opts) {\n const workerOpts = opts || {\n type: \"module\",\n };\n try {\n if (\n typeof window !== \"undefined\" &&\n window.location &&\n window.location.protocol &&\n window.location.protocol.startsWith(\n \"file\"\n )\n ) {\n console.warn(\n \"file:// protocol does not reliably support Web Workers\"\n );\n return run_single_threaded();\n }\n\n const url = await getWorkerURL();\n const worker = new Worker(url, workerOpts);\n return worker;\n } catch (e) {\n console.error(\n \"Error instantiating worker; falling back to single-threaded mode\",\n e\n );\n return run_single_threaded();\n }\n }\n\n export default getWorkerURL;\n ", "// \u250F\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2513\n// \u2503 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2588 \u2588 \u2588 \u2588 \u2588\u2584 \u2580\u2588\u2588\u2588 \u2588 \u2503\n// \u2503 \u2584\u2584\u2584\u2584\u2584\u2588 \u2588\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584\u2584\u2588 \u2580\u2580\u2580\u2580\u2580\u2588\u2580\u2580\u2580\u2580\u2580 \u2588 \u2580\u2580\u2580\u2580\u2580\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2584 \u2580\u2588 \u2588 \u2580\u2580\u2580\u2580\u2580 \u2503\n// \u2503 \u2588\u2580\u2580\u2580\u2580\u2580 \u2588\u2580\u2580\u2580\u2580\u2580 \u2588\u2580\u2588\u2588\u2580\u2580 \u2584\u2584\u2584\u2584\u2584 \u2588 \u2584\u2584\u2584\u2584\u2584\u2588 \u2584\u2584\u2584\u2584\u2584\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2584 \u2588 \u2584\u2584\u2584\u2584\u2584 \u2503\n// \u2503 \u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2580\u2588\u2584 \u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2584 \u2588 \u2503\n// \u2523\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u252B\n// \u2503 Copyright (c) 2017, the Perspective Authors. \u2503\n// \u2503 \u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C \u2503\n// \u2503 This file is part of the Perspective library, distributed under the terms \u2503\n// \u2503 of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). \u2503\n// \u2517\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u251B\n\nimport type * as wasm_module_type from \"../../dist/wasm/perspective-viewer.js\";\nimport { load_wasm_stage_0 } from \"@perspective-dev/client/src/ts/wasm/decompress.ts\";\n\n// @ts-ignore\nimport * as worker_url from \"./perspective-viewer.worker\";\n\nexport async function init_client(\n wasm_binary:\n | Promise<Response | ArrayBuffer | Uint8Array>\n | Response\n | ArrayBuffer\n | Uint8Array,\n wasm_module?: typeof wasm_module_type,\n) {\n // @ts-ignore\n const url = await worker_url.getWorkerURL();\n if (wasm_module === undefined) {\n wasm_module = (await import(url)) as typeof wasm_module_type;\n }\n\n const unzipped = await load_wasm_stage_0(wasm_binary);\n const module_or_path = await WebAssembly.compile(unzipped as BufferSource);\n await wasm_module.default({ module_or_path });\n await wasm_module.init(module_or_path, url);\n}\n", "// \u250F\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2513\n// \u2503 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2588 \u2588 \u2588 \u2588 \u2588\u2584 \u2580\u2588\u2588\u2588 \u2588 \u2503\n// \u2503 \u2584\u2584\u2584\u2584\u2584\u2588 \u2588\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584\u2584\u2588 \u2580\u2580\u2580\u2580\u2580\u2588\u2580\u2580\u2580\u2580\u2580 \u2588 \u2580\u2580\u2580\u2580\u2580\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2584 \u2580\u2588 \u2588 \u2580\u2580\u2580\u2580\u2580 \u2503\n// \u2503 \u2588\u2580\u2580\u2580\u2580\u2580 \u2588\u2580\u2580\u2580\u2580\u2580 \u2588\u2580\u2588\u2588\u2580\u2580 \u2584\u2584\u2584\u2584\u2584 \u2588 \u2584\u2584\u2584\u2584\u2584\u2588 \u2584\u2584\u2584\u2584\u2584\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2584 \u2588 \u2584\u2584\u2584\u2584\u2584 \u2503\n// \u2503 \u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2580\u2588\u2584 \u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2584 \u2588 \u2503\n// \u2523\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u252B\n// \u2503 Copyright (c) 2017, the Perspective Authors. \u2503\n// \u2503 \u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C \u2503\n// \u2503 This file is part of the Perspective library, distributed under the terms \u2503\n// \u2503 of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). \u2503\n// \u2517\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u251B\n\n/**\n * Module for the `<perspective-viewer>` custom element. This module has no\n * (real) exports, but importing it has a side effect: the\n * `PerspectiveViewerElement` class is registered as a custom element, after\n * which it can be used as a standard DOM element.\n *\n * Though `<perspective-viewer>` is written mostly in Rust, the nature\n * of WebAssembly's compilation makes it a dynamic module; in order to\n * guarantee that the Custom Elements extension methods are registered\n * synchronously with this package's import, we need perform said registration\n * within this wrapper module. As a result, the API methods of the Custom\n * Elements are all `async` (as they must await the wasm module instance).\n *\n * The documentation in this module defines the instance structure of a\n * `<perspective-viewer>` DOM object instantiated typically, through HTML or any\n * relevent DOM method e.g. `document.createElement(\"perspective-viewer\")` or\n * `document.getElementsByTagName(\"perspective-viewer\")`.\n *\n * @module perspective-viewer\n */\n\nexport { IPerspectiveViewerPlugin } from \"./plugin\";\nexport { HTMLPerspectiveViewerPluginElement } from \"./plugin\";\n\nexport {\n createNumberFormatter,\n createDatetimeFormatter,\n createDateFormatter,\n sourceColumn,\n} from \"./column-format\";\nexport type { NumberFormatConfig, DateFormatConfig } from \"./column-format\";\n\nexport type * from \"./extensions.ts\";\nexport { PerspectiveSelectDetail } from \"./extensions.ts\";\nexport type * from \"./ts-rs/ViewerConfigUpdate.d.ts\";\nexport type * from \"./ts-rs/ViewerConfig.d.ts\";\nexport type * from \"./ts-rs/Filter.d.ts\";\nexport type * from \"./ts-rs/FilterTerm.d.ts\";\nexport type * from \"./ts-rs/FilterReducer.d.ts\";\nexport type * from \"./ts-rs/PluginStaticConfig.ts\";\n\nexport { init_client } from \"./bootstrap\";\nimport { init_client } from \"./bootstrap\";\n\nexport default { init_client };\n", "// \u250F\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2513\n// \u2503 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2588 \u2588 \u2588 \u2588 \u2588\u2584 \u2580\u2588\u2588\u2588 \u2588 \u2503\n// \u2503 \u2584\u2584\u2584\u2584\u2584\u2588 \u2588\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584\u2584\u2588 \u2580\u2580\u2580\u2580\u2580\u2588\u2580\u2580\u2580\u2580\u2580 \u2588 \u2580\u2580\u2580\u2580\u2580\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2584 \u2580\u2588 \u2588 \u2580\u2580\u2580\u2580\u2580 \u2503\n// \u2503 \u2588\u2580\u2580\u2580\u2580\u2580 \u2588\u2580\u2580\u2580\u2580\u2580 \u2588\u2580\u2588\u2588\u2580\u2580 \u2584\u2584\u2584\u2584\u2584 \u2588 \u2584\u2584\u2584\u2584\u2584\u2588 \u2584\u2584\u2584\u2584\u2584\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2584 \u2588 \u2584\u2584\u2584\u2584\u2584 \u2503\n// \u2503 \u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2580\u2588\u2584 \u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2584 \u2588 \u2503\n// \u2523\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u252B\n// \u2503 Copyright (c) 2017, the Perspective Authors. \u2503\n// \u2503 \u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C \u2503\n// \u2503 This file is part of the Perspective library, distributed under the terms \u2503\n// \u2503 of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). \u2503\n// \u2517\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u251B\n\nimport perspective_viewer from \"./perspective-viewer.ts\";\nexport * from \"./perspective-viewer.ts\";\n\n// @ts-ignore\nimport client_wasm from \"../../dist/wasm/perspective-viewer.wasm\";\n\nawait perspective_viewer.init_client(client_wasm as any as ArrayBuffer);\n\nconsole.warn(\"Perspective wasn been initialized in inline mode\");\n\nexport default perspective_viewer;\n"],
5
- "mappings": "mWAoJO,IAAMA,EAAN,cACK,WAEZ,CACI,aAAc,CACV,MAAM,CACV,CAEA,mBAAwC,CACpC,MAAO,CACH,KAAM,QACN,YAAa,SACb,oBAAqB,CAAC,CAC1B,CACJ,CAEA,qBAA2B,CACvB,MAAO,CAAC,CACZ,CAEA,MAAM,OAAOC,EAA2B,CACpC,OAAO,KAAK,KAAKA,CAAI,CACzB,CAEA,MAAM,KAAKA,EAA2B,CAClC,KAAK,MAAM,gBAAkB,OAC7B,IAAMC,EAAM,MAAMD,EAAK,OAAO,EACxBE,EAAM,oEACZ,KAAK,UAAY,eAAeA,CAAG,KAAKD,CAAG,QAC/C,CAEA,MAAM,OAAuB,CACzB,KAAK,UAAY,EACrB,CAEA,MAAM,OAAOD,EAA2B,CAExC,CAEA,SAAU,CAEV,CAEA,SAAgB,CAEhB,CAEA,MAAM,QAAwB,CAE9B,CAEA,IAAI,oBAA8B,CAC9B,MAAO,EACX,CACJ,EC5IA,IAAMG,EAAoE,CACtE,MAAO,CACH,MAAO,UACP,sBAAuB,EACvB,sBAAuB,CAC3B,CACJ,EAMMC,EAAuD,CACzD,UAAW,QACX,UAAW,QACf,EAEMC,EAAmD,CACrD,UAAW,OACf,EAEO,SAASC,EACZC,EACAC,EACiB,CACjB,IAAMC,EACFD,GAAOL,EAAwBI,CAAI,GAAK,CAAC,EAC7C,OAAO,IAAI,KAAK,aAAa,UAAU,UAAuBE,CAAI,CACtE,CAEO,SAASC,EACZF,EACmB,CACnB,GAAI,CAACA,GAAOA,EAAI,SAAW,SAAU,CACjC,IAAMC,EAAmC,CACrC,SAAUD,GAAK,SACf,UACIA,GAAK,YAAc,WACb,OACCA,GAAK,WAAaJ,EAAyB,UACtD,UACII,GAAK,YAAc,WACb,OACCA,GAAK,WAAaJ,EAAyB,SAC1D,EAEA,OAAO,IAAI,KAAK,eAAe,UAAU,UAAuBK,CAAI,CACxE,CAEA,IAAMA,EAAmC,CACrC,SAAUD,EAAI,SACd,OAAQA,EAAI,QAAU,GACtB,uBAAwBA,EAAI,sBAChC,EACA,OAAIA,EAAI,OAAS,aACbC,EAAK,KAAOD,EAAI,MAAQ,WAExBA,EAAI,QAAU,aACdC,EAAK,MAAQD,EAAI,OAAS,WAE1BA,EAAI,MAAQ,aACZC,EAAK,IAAMD,EAAI,KAAO,WAEtBA,EAAI,SAAWA,EAAI,UAAY,aAC/BC,EAAK,QAAUD,EAAI,SAEnBA,EAAI,OAAS,aACbC,EAAK,KAAOD,EAAI,MAAQ,WAExBA,EAAI,SAAW,aACfC,EAAK,OAASD,EAAI,QAAU,WAE5BA,EAAI,SAAW,aACfC,EAAK,OAASD,EAAI,QAAU,WAEzB,IAAI,KAAK,eAAe,UAAU,UAAuBC,CAAI,CACxE,CAEO,SAASE,EACZH,EACmB,CACnB,IAAMC,EAAmC,CACrC,SAAU,MACV,UACID,GAAK,YAAc,WACb,OACCA,GAAK,WAAaH,EAAqB,SACtD,EACA,OAAO,IAAI,KAAK,eAAe,UAAU,UAAuBI,CAAI,CACxE,CAQO,SAASG,EAAaC,EAAsB,CAC/C,OAAOA,EAAK,MAAM,GAAG,EAAE,GAAG,EAAE,GAAKA,CACrC,CC3IO,IAAMC,EAAN,KAA8B,CACjC,SACA,IACA,aACA,cACA,cACA,YACIC,EACAC,EACAC,EACAC,EACAC,EACF,CACE,KAAK,SAAWJ,EAChB,KAAK,IAAMC,EACX,KAAK,aAAeC,EACpB,KAAK,cAAgBC,EACrB,KAAK,cAAgBC,CACzB,CAEA,IAAI,eAA0B,CAC1B,OAAO,KAAK,cAAc,QAASC,GAAMA,EAAE,QAAU,CAAC,CAAC,CAC3D,CAEA,IAAI,eAA0B,CAC1B,OAAO,KAAK,cAAc,QAASA,GAAMA,EAAE,QAAU,CAAC,CAAC,CAC3D,CACJ,ECtCA,eAAsBC,EAAQC,EAAO,CACjC,IAAIC,EACA,OAAOD,GAAO,MAAS,aACvBA,EAAQ,MAAMA,GAGdA,aAAiB,SACjBC,EAAM,MAAM,YAAY,qBAAqBD,CAAK,EAC3C,OAAOA,GAAU,SACxBC,EAAM,MAAM,YAAY,qBAAqB,MAAMD,CAAK,CAAC,EAClDA,aAAiB,YACxBC,EAAM,MAAM,YAAY,YAAYD,CAAK,EAClCA,aAAiB,WACxBC,EAAM,MAAM,YAAY,YAAYD,EAAM,MAAM,EAEhDC,EAAMD,EAGV,IAAME,EAAOD,EAAI,SAAS,QACpB,CAACE,CAAO,EAAI,YAAY,OAAO,eAAeF,EAAI,OAAQ,aAAa,EACvE,CAACG,CAAe,EAAI,YAAY,OAAO,eAAeH,EAAI,OAAQ,SAAS,EAC3EI,EAAa,IAAI,SAASD,CAAe,EAAE,UAAU,EAAG,EAAI,EAC5DE,EAAMJ,EAAK,OAAOC,EAAQ,UAAU,EAC1C,IAAI,WAAWD,EAAK,OAAO,MAAM,EAAE,IAAI,IAAI,WAAWC,CAAO,EAAGG,CAAG,EACnE,IAAMC,EAASL,EAAK,QAAQC,EAAQ,WAAYE,CAAU,EAC1D,OAAO,IAAI,WAAWH,EAAK,OAAO,MAAM,EAAE,MAAMK,EAAQF,EAAaE,CAAM,CAC/E,CCtBA,GAAI,OAAO,YAAgB,IACvB,MAAM,IAAI,MAAM,4BAA4B,EA8BhD,eAAsBC,EAClBC,EAKmB,CACfA,aAAgB,WAChBA,EAAO,MAAMA,EAAK,GAGtB,GAAI,CACA,OAAO,MAAMC,EAAQD,CAAmB,CAC5C,MAAY,CACR,eAAQ,KAAK,uCAAuC,EAC7C,IAAI,WAAWA,CAAmB,CAC7C,CACJ,CC/DA,IAAAE,EAAA,6ygECE4B,IAAIC,EAAS,KACb,eAAsBC,GAAe,CACjC,GAAID,EAAQ,OAAOA,EACnB,IAAME,EAAO,IAAI,KAAK,CAACC,CAAY,EAAG,CAClC,KAAM,wBACV,CAAC,EAED,OAAAH,EAAS,IAAI,gBAAgBE,CAAI,EAC1BF,CACX,CCO5B,eAAsBI,EAClBC,EAKAC,EACF,CAEE,IAAMC,EAAM,MAAiBC,EAAa,EACtCF,IAAgB,SAChBA,EAAe,MAAM,OAAOC,IAGhC,IAAME,EAAW,MAAMC,EAAkBL,CAAW,EAC9CM,EAAiB,MAAM,YAAY,QAAQF,CAAwB,EACzE,MAAMH,EAAY,QAAQ,CAAE,eAAAK,CAAe,CAAC,EAC5C,MAAML,EAAY,KAAKK,EAAgBJ,CAAG,CAC9C,CCoBA,IAAOK,EAAQ,CAAE,YAAAC,CAAY,E,oytkICtC7B,MAAMC,EAAmB,YAAYA,CAAiC,EAEtE,QAAQ,KAAK,kDAAkD,EAE/D,IAAOC,GAAQD",
4
+ "sourcesContent": ["// \u250F\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2513\n// \u2503 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2588 \u2588 \u2588 \u2588 \u2588\u2584 \u2580\u2588\u2588\u2588 \u2588 \u2503\n// \u2503 \u2584\u2584\u2584\u2584\u2584\u2588 \u2588\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584\u2584\u2588 \u2580\u2580\u2580\u2580\u2580\u2588\u2580\u2580\u2580\u2580\u2580 \u2588 \u2580\u2580\u2580\u2580\u2580\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2584 \u2580\u2588 \u2588 \u2580\u2580\u2580\u2580\u2580 \u2503\n// \u2503 \u2588\u2580\u2580\u2580\u2580\u2580 \u2588\u2580\u2580\u2580\u2580\u2580 \u2588\u2580\u2588\u2588\u2580\u2580 \u2584\u2584\u2584\u2584\u2584 \u2588 \u2584\u2584\u2584\u2584\u2584\u2588 \u2584\u2584\u2584\u2584\u2584\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2584 \u2588 \u2584\u2584\u2584\u2584\u2584 \u2503\n// \u2503 \u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2580\u2588\u2584 \u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2584 \u2588 \u2503\n// \u2523\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u252B\n// \u2503 Copyright (c) 2017, the Perspective Authors. \u2503\n// \u2503 \u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C \u2503\n// \u2503 This file is part of the Perspective library, distributed under the terms \u2503\n// \u2503 of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). \u2503\n// \u2517\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u251B\n\nimport type { View } from \"@perspective-dev/client\";\nimport { PluginStaticConfig } from \"./ts-rs/PluginStaticConfig.js\";\n\n/**\n * The `IPerspectiveViewerPlugin` interface defines the necessary API for a\n * `<perspective-viewer>` plugin, which also must be an `HTMLElement` via the\n * Custom Elements API or otherwise. Rather than implement this API from\n * scratch however, the simplest way is to inherit from\n * `<perspective-viewer-plugin>`, which implements `IPerspectiveViewerPlugin`\n * with non-offensive default implementations, where only the `draw()` and\n * `get_static_config()` methods need be overridden to get started with a\n * simple plugin.\n *\n * Note that plugins are frozen once a `<perspective-viewer>` has been\n * instantiated, so generally new plugin code must be executed at the module\n * level (if packaged as a library), or during application init to ensure global\n * availability of a plugin.\n *\n * @example\n * ```javascript\n * const BasePlugin = customElements.get(\"perspective-viewer-plugin\");\n * class MyPlugin extends BasePlugin {\n * get_static_config() {\n * return { name: \"My Plugin\", config_column_names: [] };\n * }\n * async draw(view) {\n * const count = await view.num_rows();\n * this.innerHTML = `View has ${count} rows`;\n * }\n * }\n *\n * customElements.define(\"my-plugin\", MyPlugin);\n * const Viewer = customElements.get(\"perspective-viewer\");\n * Viewer.registerPlugin(\"my-plugin\");\n * ```\n * @noInheritDoc\n */\nexport interface IPerspectiveViewerPlugin {\n /**\n * Static plugin configuration. Called exactly once per plugin at\n * registration time and cached; the result must be stable for the\n * lifetime of the application.\n */\n get_static_config(): PluginStaticConfig;\n\n /**\n * Determines which column configuration controls are populated in the viewer.\n * Corresponds to the data the plugin will recieve on save. Only\n * invoked when `can_render_column_styles` is `true` in the static\n * config.\n */\n column_style_config?: (view_type: string, group: string) => any;\n\n /**\n * Render this plugin using the provided `View`. While there is no\n * provision to cancel a render in progress per se, calling a method on\n * a `View` which has been deleted will throw an exception.\n *\n * @example\n * ```\n * async draw(view: perspective.View): Promise<void> {\n * const csv = await view.to_csv();\n * this.innerHTML = `<pre>${csv}</pre>`;\n * }\n * ```\n */\n draw(view: View): Promise<void>;\n\n /**\n * Draw under the assumption that the `ViewConfig` has not changed since\n * the previous call to `draw()`, but the underlying data has. Defaults to\n * dispatch to `draw()`.\n *\n * @example\n * ```javascript\n * async update(view: perspective.View): Promise<void> {\n * return this.draw(view);\n * }\n * ```\n */\n update(view: View): Promise<void>;\n\n /**\n * Clear this plugin, though it is up to the discretion of the plugin\n * author to determine what this means. Defaults to resetting this\n * element's `innerHTML`, so be sure to override if you want custom\n * behavior.\n *\n * @example\n * ```javascript\n * async clear(): Promise<void> {\n * this.innerHTML = \"\";\n * }\n * ```\n */\n clear(): Promise<void>;\n\n /**\n * Like `update()`, but for when the dimensions of the plugin have changed\n * and the underlying data has not.\n */\n resize(view: View): Promise<void>;\n\n /**\n * Notify the plugin that the style environment has changed. Useful for\n * plugins which read CSS styles via `window.getComputedStyle()`.\n */\n restyle(): void;\n\n /**\n * Restore this plugin to a state previously returned by `save()`.\n */\n restore(config: any): void;\n\n /**\n * Free any resources acquired by this plugin and prepare to be deleted.\n */\n delete(): void;\n}\n\n/**\n * The `<perspective-viewer-plugin>` element, the default perspective plugin\n * which is registered and activated automcatically when a\n * `<perspective-viewer>` is loaded without plugins. While you will not\n * typically instantiate this class directly, it is simple enough to function\n * as a good \"default\" plugin implementation which can be extended to create\n * custom plugins.\n *\n * @example\n * ```javascript\n * class MyPlugin extends customElements.get(\"perspective-viewer-plugin\") {\n * // Custom plugin overrides\n * }\n * ```\n * @noInheritDoc\n */\nexport class HTMLPerspectiveViewerPluginElement\n extends HTMLElement\n implements IPerspectiveViewerPlugin\n{\n constructor() {\n super();\n }\n\n get_static_config(): PluginStaticConfig {\n return {\n name: \"Debug\",\n select_mode: \"select\",\n config_column_names: [],\n };\n }\n\n column_style_config(): any {\n return {};\n }\n\n async update(view: View): Promise<void> {\n return this.draw(view);\n }\n\n async draw(view: View): Promise<void> {\n this.style.backgroundColor = \"#fff\";\n const csv = await view.to_csv();\n const css = `margin:0;overflow:scroll;position:absolute;width:100%;height:100%`;\n this.innerHTML = `<pre style='${css}'>${csv}</pre>`;\n }\n\n async clear(): Promise<void> {\n this.innerHTML = \"\";\n }\n\n async resize(view: View): Promise<void> {\n // Not Implemented\n }\n\n restyle() {\n // Not Implemented\n }\n\n restore(): void {\n // Not Implemented\n }\n\n async delete(): Promise<void> {\n // Not Implemented\n }\n\n get supports_streaming(): boolean {\n return false;\n }\n}\n", "// \u250F\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2513\n// \u2503 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2588 \u2588 \u2588 \u2588 \u2588\u2584 \u2580\u2588\u2588\u2588 \u2588 \u2503\n// \u2503 \u2584\u2584\u2584\u2584\u2584\u2588 \u2588\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584\u2584\u2588 \u2580\u2580\u2580\u2580\u2580\u2588\u2580\u2580\u2580\u2580\u2580 \u2588 \u2580\u2580\u2580\u2580\u2580\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2584 \u2580\u2588 \u2588 \u2580\u2580\u2580\u2580\u2580 \u2503\n// \u2503 \u2588\u2580\u2580\u2580\u2580\u2580 \u2588\u2580\u2580\u2580\u2580\u2580 \u2588\u2580\u2588\u2588\u2580\u2580 \u2584\u2584\u2584\u2584\u2584 \u2588 \u2584\u2584\u2584\u2584\u2584\u2588 \u2584\u2584\u2584\u2584\u2584\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2584 \u2588 \u2584\u2584\u2584\u2584\u2584 \u2503\n// \u2503 \u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2580\u2588\u2584 \u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2584 \u2588 \u2503\n// \u2523\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u252B\n// \u2503 Copyright (c) 2017, the Perspective Authors. \u2503\n// \u2503 \u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C \u2503\n// \u2503 This file is part of the Perspective library, distributed under the terms \u2503\n// \u2503 of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). \u2503\n// \u2517\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u251B\n\n/**\n * Cross-package helpers for per-column value formatting. Used by both\n * `viewer-datagrid` (cell formatting) and `viewer-charts` (axis ticks,\n * tooltips, legends) so a column's `number_format` / `date_format`\n * configuration produces identical output across plugins.\n *\n * The format configs mirror the `Intl.NumberFormatOptions` /\n * `Intl.DateTimeFormatOptions` shapes one-for-one \u2014 they're written\n * straight into the respective constructors. The `date_format.format`\n * discriminator (\"simple\" | \"custom\") selects between two derivation\n * paths: simple uses `dateStyle` / `timeStyle`, custom uses the\n * per-field overrides (year / month / day / ...).\n */\n\nexport interface NumberFormatConfig {\n style?: \"decimal\" | \"currency\" | \"percent\" | \"unit\";\n minimumFractionDigits?: number;\n maximumFractionDigits?: number;\n minimumIntegerDigits?: number;\n minimumSignificantDigits?: number;\n maximumSignificantDigits?: number;\n currency?: string;\n currencyDisplay?: \"code\" | \"symbol\" | \"narrowSymbol\" | \"name\";\n notation?: \"standard\" | \"scientific\" | \"engineering\" | \"compact\";\n compactDisplay?: \"short\" | \"long\";\n useGrouping?: boolean;\n}\n\nexport interface DateFormatConfig {\n format?: \"custom\" | string;\n timeZone?: string;\n dateStyle?: \"short\" | \"medium\" | \"long\" | \"full\" | \"disabled\";\n timeStyle?: \"short\" | \"medium\" | \"long\" | \"full\" | \"disabled\";\n second?: \"numeric\" | \"2-digit\" | \"disabled\";\n minute?: \"numeric\" | \"2-digit\" | \"disabled\";\n hour?: \"numeric\" | \"2-digit\" | \"disabled\";\n day?: \"numeric\" | \"2-digit\" | \"disabled\";\n weekday?: \"narrow\" | \"short\" | \"long\" | \"disabled\";\n month?: \"numeric\" | \"2-digit\" | \"narrow\" | \"short\" | \"long\" | \"disabled\";\n year?: \"numeric\" | \"2-digit\" | \"disabled\";\n hour12?: boolean;\n fractionalSecondDigits?: 1 | 2 | 3;\n}\n\n/**\n * Default `Intl.NumberFormatOptions` applied when a numeric column has no\n * `number_format` configured. Float columns get two fractional digits to\n * match the legacy datagrid behavior; integer columns get an empty\n * options bag (locale-default integer rendering).\n */\nconst NUMERIC_LEGACY_DEFAULTS: Record<string, Intl.NumberFormatOptions> = {\n float: {\n style: \"decimal\",\n minimumFractionDigits: 2,\n maximumFractionDigits: 2,\n },\n};\n\n/**\n * Default `Intl.DateTimeFormatOptions` applied when a datetime column has\n * no `date_format` configured.\n */\nconst DATETIME_LEGACY_DEFAULTS: Intl.DateTimeFormatOptions = {\n dateStyle: \"short\",\n timeStyle: \"medium\",\n};\n\nconst DATE_LEGACY_DEFAULTS: Intl.DateTimeFormatOptions = {\n dateStyle: \"short\",\n};\n\nexport function createNumberFormatter(\n type: string,\n cfg?: NumberFormatConfig,\n): Intl.NumberFormat {\n const opts: Intl.NumberFormatOptions =\n cfg ?? NUMERIC_LEGACY_DEFAULTS[type] ?? {};\n return new Intl.NumberFormat(navigator.languages as string[], opts);\n}\n\nexport function createDatetimeFormatter(\n cfg?: DateFormatConfig,\n): Intl.DateTimeFormat {\n if (!cfg || cfg.format !== \"custom\") {\n const opts: Intl.DateTimeFormatOptions = {\n timeZone: cfg?.timeZone,\n dateStyle:\n cfg?.dateStyle === \"disabled\"\n ? undefined\n : (cfg?.dateStyle ?? DATETIME_LEGACY_DEFAULTS.dateStyle),\n timeStyle:\n cfg?.timeStyle === \"disabled\"\n ? undefined\n : (cfg?.timeStyle ?? DATETIME_LEGACY_DEFAULTS.timeStyle),\n };\n\n return new Intl.DateTimeFormat(navigator.languages as string[], opts);\n }\n\n const opts: Intl.DateTimeFormatOptions = {\n timeZone: cfg.timeZone,\n hour12: cfg.hour12 ?? true,\n fractionalSecondDigits: cfg.fractionalSecondDigits,\n };\n if (cfg.year !== \"disabled\") {\n opts.year = cfg.year ?? \"2-digit\";\n }\n if (cfg.month !== \"disabled\") {\n opts.month = cfg.month ?? \"numeric\";\n }\n if (cfg.day !== \"disabled\") {\n opts.day = cfg.day ?? \"numeric\";\n }\n if (cfg.weekday && cfg.weekday !== \"disabled\") {\n opts.weekday = cfg.weekday;\n }\n if (cfg.hour !== \"disabled\") {\n opts.hour = cfg.hour ?? \"numeric\";\n }\n if (cfg.minute !== \"disabled\") {\n opts.minute = cfg.minute ?? \"numeric\";\n }\n if (cfg.second !== \"disabled\") {\n opts.second = cfg.second ?? \"numeric\";\n }\n return new Intl.DateTimeFormat(navigator.languages as string[], opts);\n}\n\nexport function createDateFormatter(\n cfg?: DateFormatConfig,\n): Intl.DateTimeFormat {\n const opts: Intl.DateTimeFormatOptions = {\n timeZone: \"utc\",\n dateStyle:\n cfg?.dateStyle === \"disabled\"\n ? undefined\n : (cfg?.dateStyle ?? DATE_LEGACY_DEFAULTS.dateStyle),\n };\n return new Intl.DateTimeFormat(navigator.languages as string[], opts);\n}\n\n/**\n * Recover the source column name from a synthetic split-by path. Split\n * pivoting produces paths of the form `<split_val_1>|...|<source_col>`;\n * per-column config (formatters, aggregate styling, \u2026) is always keyed\n * on the trailing source column.\n */\nexport function sourceColumn(path: string): string {\n return path.split(\"|\").at(-1) ?? path;\n}\n", "// \u250F\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2513\n// \u2503 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2588 \u2588 \u2588 \u2588 \u2588\u2584 \u2580\u2588\u2588\u2588 \u2588 \u2503\n// \u2503 \u2584\u2584\u2584\u2584\u2584\u2588 \u2588\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584\u2584\u2588 \u2580\u2580\u2580\u2580\u2580\u2588\u2580\u2580\u2580\u2580\u2580 \u2588 \u2580\u2580\u2580\u2580\u2580\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2584 \u2580\u2588 \u2588 \u2580\u2580\u2580\u2580\u2580 \u2503\n// \u2503 \u2588\u2580\u2580\u2580\u2580\u2580 \u2588\u2580\u2580\u2580\u2580\u2580 \u2588\u2580\u2588\u2588\u2580\u2580 \u2584\u2584\u2584\u2584\u2584 \u2588 \u2584\u2584\u2584\u2584\u2584\u2588 \u2584\u2584\u2584\u2584\u2584\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2584 \u2588 \u2584\u2584\u2584\u2584\u2584 \u2503\n// \u2503 \u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2580\u2588\u2584 \u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2584 \u2588 \u2503\n// \u2523\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u252B\n// \u2503 Copyright (c) 2017, the Perspective Authors. \u2503\n// \u2503 \u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C \u2503\n// \u2503 This file is part of the Perspective library, distributed under the terms \u2503\n// \u2503 of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). \u2503\n// \u2517\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u251B\n\nimport type { HTMLPerspectiveViewerPluginElement } from \"./plugin\";\nimport type { PerspectiveViewerElement } from \"../../dist/wasm/perspective-viewer.js\";\nimport type React from \"react\";\nimport type { ViewerConfigUpdate } from \"./ts-rs/ViewerConfigUpdate.js\";\nimport type {\n ViewWindow,\n ViewConfigUpdate,\n Filter,\n} from \"@perspective-dev/client\";\n\nexport class PerspectiveSelectDetail {\n selected: boolean;\n row: Record<string, unknown>;\n column_names?: string[];\n removeConfigs: ViewConfigUpdate[];\n insertConfigs: ViewConfigUpdate[];\n constructor(\n selected: boolean,\n row: Record<string, unknown>,\n column_names: string[],\n removeConfigs: ViewConfigUpdate[],\n insertConfigs: ViewConfigUpdate[],\n ) {\n this.selected = selected;\n this.row = row;\n this.column_names = column_names;\n this.removeConfigs = removeConfigs;\n this.insertConfigs = insertConfigs;\n }\n\n get removeFilters(): Filter[] {\n return this.removeConfigs.flatMap((x) => x.filter ?? []);\n }\n\n get insertFilters(): Filter[] {\n return this.insertConfigs.flatMap((x) => x.filter ?? []);\n }\n}\n\nimport type {\n ExportDropDownMenuElement,\n CopyDropDownMenuElement,\n} from \"../../dist/wasm/perspective-viewer.d.ts\";\n\n// DOM extensions\n\nexport type HTMLPerspectiveViewerElement = PerspectiveViewerElement &\n PerspectiveViewerElementExt &\n HTMLElement;\n\nexport interface HTMLPerspectiveViewerExportMenuElement\n extends HTMLElement,\n ExportDropDownMenuElement {}\n\nexport interface HTMLPerspectiveViewerCopyMenuElement\n extends HTMLElement,\n CopyDropDownMenuElement {}\n\nexport type PerspectiveClickEventDetail = {\n config: ViewerConfigUpdate;\n row: Record<string, any>;\n column_names: Array<string | Array<string>>;\n};\n\nexport type PerspectiveSelectEventDetail = {\n view_window: ViewWindow;\n};\n\n// JSX / React extensions\n\ntype ReactPerspectiveViewerAttributes<T> = React.HTMLAttributes<T>;\n\ntype JsxPerspectiveViewerElement = {\n class?: string;\n} & React.DetailedHTMLProps<\n ReactPerspectiveViewerAttributes<HTMLPerspectiveViewerElement>,\n HTMLPerspectiveViewerElement\n>;\n\n// React <19\n\ndeclare global {\n namespace JSX {\n interface IntrinsicElements {\n \"perspective-viewer\": JsxPerspectiveViewerElement;\n }\n }\n}\n\n// React >=19\n\n// Why are these `ts-ignore`? React 19 makes choice of JSX runtime in `tsconfig`\n// the determination of which runtime this needs to be, but this is chosen\n// by the user ... so I'm not sure what the React authors want from me here\n// exactly. Divination?\n\n// @ts-ignore\ndeclare module \"react/jsx-runtime\" {\n namespace JSX {\n interface IntrinsicElements {\n \"perspective-viewer\": JsxPerspectiveViewerElement;\n }\n }\n}\n\n// @ts-ignore\ndeclare module \"react/jsx-dev-runtime\" {\n namespace JSX {\n interface IntrinsicElements {\n \"perspective-viewer\": JsxPerspectiveViewerElement;\n }\n }\n}\n\ndeclare module \"react\" {\n namespace JSX {\n interface IntrinsicElements {\n \"perspective-viewer\": JsxPerspectiveViewerElement;\n }\n }\n}\n\n// Custom Elements extensions\n\ndeclare global {\n interface Document {\n createElement(\n tagName: \"perspective-viewer\",\n options?: ElementCreationOptions,\n ): HTMLPerspectiveViewerElement;\n createElement(\n tagName: \"perspective-viewer-plugin\",\n options?: ElementCreationOptions,\n ): HTMLPerspectiveViewerPluginElement;\n querySelector<E extends Element = Element>(selectors: string): E | null;\n querySelector(\n selectors: \"perspective-viewer\",\n ): HTMLPerspectiveViewerElement | null;\n }\n\n interface CustomElementRegistry {\n get(\n tagName: \"perspective-viewer\",\n ): typeof PerspectiveViewerElement &\n PerspectiveViewerElementExt &\n typeof HTMLElement;\n get(\n tagName: \"perspective-viewer-plugin\",\n ): typeof HTMLPerspectiveViewerPluginElement;\n }\n}\n\nexport interface PerspectiveViewerElementExt {\n /**\n * Register a new plugin via its custom element name. This method is called\n * automatically as a side effect of importing a plugin module, so this\n * method should only typically be called by plugin authors.\n *\n * @category Plugin\n * @param name The `name` of the custom element to register, as supplied\n * to the `customElements.define(name)` method.\n * @example\n * ```javascript\n * customElements.get(\"perspective-viewer\").registerPlugin(\"my-plugin\");\n * ```\n */\n registerPlugin(name: string): Promise<void>;\n\n get_wasm_module(): WebAssembly.Module;\n\n get_worker_url(): URL;\n\n addEventListener(\n name: \"perspective-click\",\n cb: (e: CustomEvent) => void,\n options?: { signal: AbortSignal },\n ): void;\n\n addEventListener(\n name: \"perspective-select\",\n cb: (e: CustomEvent) => void,\n options?: { signal: AbortSignal },\n ): void;\n\n addEventListener(\n name: \"perspective-global-filter\",\n cb: (e: CustomEvent<PerspectiveSelectEventDetail>) => void,\n options?: { signal: AbortSignal },\n ): void;\n\n addEventListener(\n name: \"perspective-toggle-settings\",\n cb: (e: CustomEvent) => void,\n options?: { signal: AbortSignal },\n ): void;\n\n addEventListener(\n name: \"perspective-toggle-settings-before\",\n cb: (e: CustomEvent) => void,\n options?: { signal: AbortSignal },\n ): void;\n\n addEventListener(\n name: \"perspective-config-update\",\n cb: (e: CustomEvent) => void,\n options?: { signal: AbortSignal },\n ): void;\n\n addEventListener(\n name: \"perspective-statusbar-pointerdown\",\n cb: (e: CustomEvent) => void,\n options?: { signal: AbortSignal },\n ): void;\n\n addEventListener(\n name: \"perspective-table-delete\",\n cb: (e: CustomEvent) => void,\n options?: { signal: AbortSignal },\n ): void;\n\n addEventListener(\n name: \"perspective-table-delete-before\",\n cb: (e: CustomEvent) => void,\n options?: { signal: AbortSignal },\n ): void;\n\n removeEventListener(name: \"perspective-click\", cb: any): void;\n removeEventListener(name: \"perspective-select\", cb: any): void;\n removeEventListener(name: \"perspective-global-filter\", cb: any): void;\n removeEventListener(name: \"perspective-toggle-settings\", cb: any): void;\n removeEventListener(\n name: \"perspective-toggle-settings-before\",\n cb: any,\n ): void;\n removeEventListener(name: \"perspective-config-update\", cb: any): void;\n removeEventListener(\n name: \"perspective-statusbar-pointerdown\",\n cb: any,\n ): void;\n removeEventListener(name: \"perspective-table-delete\", cb: any): void;\n removeEventListener(name: \"perspective-table-delete-before\", cb: any): void;\n}\n", "// \u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n// \u2502 \u2502\n// \u2502 \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557 Copyright (C) 2025, The Prospective Company \u2502\n// \u2502 \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2550\u2588\u2588\u2557 \u2502\n// \u2502 \u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2551 \u2588\u2588\u2551 This file is part of the Procss library, \u2502\n// \u2502 \u2588\u2588\u2554\u2550\u2550\u2550\u255D \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2551 \u2588\u2588\u2551 distributed under the terms of the \u2502\n// \u2502 \u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551\u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D Apache License 2.0. The full license can \u2502\n// \u2502 \u255A\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u255D be found in the LICENSE file. \u2502\n// \u2502 \u2502\n// \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n\nexport async function extract(input) {\n let bin;\n if (typeof input?.then === \"function\") {\n input = await input;\n }\n\n if (input instanceof Response) {\n bin = await WebAssembly.instantiateStreaming(input);\n } else if (typeof input === \"string\") {\n bin = await WebAssembly.instantiateStreaming(fetch(input));\n } else if (input instanceof ArrayBuffer) {\n bin = await WebAssembly.instantiate(input);\n } else if (input instanceof Uint8Array) {\n bin = await WebAssembly.instantiate(input.buffer);\n } else {\n bin = input;\n }\n\n const inst = bin.instance.exports;\n const [payload] = WebAssembly.Module.customSections(bin.module, \"psp-runtime\");\n const [raw_length_view] = WebAssembly.Module.customSections(bin.module, \"psp-len\");\n const raw_length = new DataView(raw_length_view).getUint32(0, true);\n const ptr = inst.resize(payload.byteLength);\n new Uint8Array(inst.memory.buffer).set(new Uint8Array(payload), ptr);\n const offset = inst.compile(payload.byteLength, raw_length);\n return new Uint8Array(inst.memory.buffer).slice(offset, raw_length + offset);\n}", "// \u250F\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2513\n// \u2503 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2588 \u2588 \u2588 \u2588 \u2588\u2584 \u2580\u2588\u2588\u2588 \u2588 \u2503\n// \u2503 \u2584\u2584\u2584\u2584\u2584\u2588 \u2588\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584\u2584\u2588 \u2580\u2580\u2580\u2580\u2580\u2588\u2580\u2580\u2580\u2580\u2580 \u2588 \u2580\u2580\u2580\u2580\u2580\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2584 \u2580\u2588 \u2588 \u2580\u2580\u2580\u2580\u2580 \u2503\n// \u2503 \u2588\u2580\u2580\u2580\u2580\u2580 \u2588\u2580\u2580\u2580\u2580\u2580 \u2588\u2580\u2588\u2588\u2580\u2580 \u2584\u2584\u2584\u2584\u2584 \u2588 \u2584\u2584\u2584\u2584\u2584\u2588 \u2584\u2584\u2584\u2584\u2584\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2584 \u2588 \u2584\u2584\u2584\u2584\u2584 \u2503\n// \u2503 \u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2580\u2588\u2584 \u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2584 \u2588 \u2503\n// \u2523\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u252B\n// \u2503 Copyright (c) 2017, the Perspective Authors. \u2503\n// \u2503 \u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C \u2503\n// \u2503 This file is part of the Perspective library, distributed under the terms \u2503\n// \u2503 of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). \u2503\n// \u2517\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u251B\n\n// @ts-ignore\nimport { extract } from \"pro_self_extracting_wasm\";\n\nif (typeof WebAssembly === \"undefined\") {\n throw new Error(\"WebAssembly not supported.\");\n}\n\ninterface Module extends WebAssembly.Exports {\n size(): number;\n offset(): number;\n memory: WebAssembly.Memory;\n}\n\n// Perform a silly dance to deal with the different ways webpack and esbuild\n// load binary, as this may either be an `ArrayBuffer` or `URL` depending\n// on whether `inline` option was specified to `perspective-esbuild-plugin`.\nasync function compile(\n buffer: ArrayBuffer | Response | WebAssembly.Module | WebAssembly.Exports,\n): Promise<Module> {\n if (buffer instanceof Response) {\n return (await WebAssembly.instantiateStreaming(buffer)).instance\n .exports as Module;\n } else if (buffer instanceof WebAssembly.Module) {\n return (await WebAssembly.instantiate(buffer)).exports as Module;\n } else if (buffer instanceof WebAssembly.Instance) {\n return buffer.exports as Module;\n } else if (buffer instanceof ArrayBuffer) {\n return (await WebAssembly.instantiate(buffer as BufferSource)).instance\n .exports as Module;\n } else {\n return buffer as Module;\n }\n}\n\nexport async function load_wasm_stage_0(\n wasm:\n | ArrayBuffer\n | Response\n | WebAssembly.Module\n | (() => Promise<ArrayBuffer>),\n): Promise<Uint8Array> {\n if (wasm instanceof Function) {\n wasm = await wasm();\n }\n\n try {\n return await extract(wasm as ArrayBuffer);\n } catch (e) {\n console.warn(\"Stage 0 wasm loading failed, skipping\");\n return new Uint8Array(wasm as ArrayBuffer);\n }\n}\n", "var kt=Object.defineProperty;var St=(c,t)=>{for(var e in t)kt(c,e,{get:t[e],enumerable:!0})};var J={};St(J,{Client:()=>A,CopyDropDownMenuElement:()=>B,ExportDropDownMenuElement:()=>U,GenericSQLVirtualServerModel:()=>V,PerspectiveDebugPluginElement:()=>H,PerspectiveViewerElement:()=>R,ProxySession:()=>O,Table:()=>E,View:()=>y,VirtualDataSlice:()=>z,VirtualServer:()=>$,default:()=>xt,get_wasm_module:()=>Ft,get_worker_url:()=>At,init:()=>Rt,initSync:()=>Zt,registerPlugin:()=>Ct});var it=window.ClipboardItem;var ct=window.ResizeObserver;var st=window.IntersectionObserver;function at(c,t,e,n){let _=c[e],s=_.prototype;class b extends HTMLElement{constructor(){super(),this._instance=new _(this)}}let g=Object.getOwnPropertyNames(s);for(let l of g)\"get\"in Object.getOwnPropertyDescriptor(s,l)?Object.defineProperty(b.prototype,l,{get:function(){return this._instance[l]}}):Object.defineProperty(b.prototype,l,{value:function(...m){return this._instance[l].call(this._instance,...m)}});for(let l of n)Object.defineProperty(b,l,{value:function(...m){return c[l].call(c,...m)}});Object.defineProperty(b,\"__wasm_module__\",{get(){return c}}),customElements.define(t,b)}var A=class c{static __wrap(t){t=t>>>0;let e=Object.create(c.prototype);return e.__wbg_ptr=t,Z.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,Z.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_client_free(t,0)}__getClassname(){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.client___getClassname(_,this.__wbg_ptr);var t=a().getInt32(_+0,!0),e=a().getInt32(_+4,!0),n=w(t,e);return t!==0&&r.__wbindgen_export4(t,e,1),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}__unsafe_open_view(t){let e=v(t,r.__wbindgen_export,r.__wbindgen_export2),n=p,_=r.client___unsafe_open_view(this.__wbg_ptr,e,n);return y.__wrap(_)}get_hosted_table_names(){let t=r.client_get_hosted_table_names(this.__wbg_ptr);return u(t)}handle_error(t,e){let n=v(t,r.__wbindgen_export,r.__wbindgen_export2),_=p,s=r.client_handle_error(this.__wbg_ptr,n,_,f(e)?0:i(e));return u(s)}handle_response(t){let e=r.client_handle_response(this.__wbg_ptr,i(t));return u(e)}join(t,e,n,_){let s=v(n,r.__wbindgen_export,r.__wbindgen_export2),b=p,g=r.client_join(this.__wbg_ptr,i(t),i(e),s,b,f(_)?0:i(_));return u(g)}constructor(t,e){try{let b=r.__wbindgen_add_to_stack_pointer(-16);r.client_new(b,i(t),f(e)?0:i(e));var n=a().getInt32(b+0,!0),_=a().getInt32(b+4,!0),s=a().getInt32(b+8,!0);if(s)throw u(_);return this.__wbg_ptr=n>>>0,Z.register(this,this.__wbg_ptr,this),this}finally{r.__wbindgen_add_to_stack_pointer(16)}}new_proxy_session(t){try{let e=r.client_new_proxy_session(this.__wbg_ptr,ot(t));return O.__wrap(e)}finally{x[j++]=void 0}}on_error(t){let e=r.client_on_error(this.__wbg_ptr,i(t));return u(e)}on_hosted_tables_update(t){let e=r.client_on_hosted_tables_update(this.__wbg_ptr,i(t));return u(e)}open_table(t){let e=v(t,r.__wbindgen_export,r.__wbindgen_export2),n=p,_=r.client_open_table(this.__wbg_ptr,e,n);return u(_)}remove_hosted_tables_update(t){let e=r.client_remove_hosted_tables_update(this.__wbg_ptr,t);return u(e)}system_info(){let t=r.client_system_info(this.__wbg_ptr);return u(t)}table(t,e){let n=r.client_table(this.__wbg_ptr,i(t),f(e)?0:i(e));return u(n)}terminate(){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.client_terminate(_,this.__wbg_ptr);var t=a().getInt32(_+0,!0),e=a().getInt32(_+4,!0),n=a().getInt32(_+8,!0);if(n)throw u(e);return u(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(A.prototype[Symbol.dispose]=A.prototype.free);var B=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,bt.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_copydropdownmenuelement_free(t,0)}__set_model(t){G(t,R),r.copydropdownmenuelement___set_model(this.__wbg_ptr,t.__wbg_ptr)}connected_callback(){r.copydropdownmenuelement_connected_callback(this.__wbg_ptr)}hide(){try{let n=r.__wbindgen_add_to_stack_pointer(-16);r.copydropdownmenuelement_hide(n,this.__wbg_ptr);var t=a().getInt32(n+0,!0),e=a().getInt32(n+4,!0);if(e)throw u(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}constructor(t){let e=r.copydropdownmenuelement_new(i(t));return this.__wbg_ptr=e>>>0,bt.register(this,this.__wbg_ptr,this),this}open(t){r.copydropdownmenuelement_open(this.__wbg_ptr,i(t))}};Symbol.dispose&&(B.prototype[Symbol.dispose]=B.prototype.free);var U=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,gt.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_exportdropdownmenuelement_free(t,0)}__set_model(t){G(t,R),r.exportdropdownmenuelement___set_model(this.__wbg_ptr,t.__wbg_ptr)}connected_callback(){r.copydropdownmenuelement_connected_callback(this.__wbg_ptr)}hide(){try{let n=r.__wbindgen_add_to_stack_pointer(-16);r.exportdropdownmenuelement_hide(n,this.__wbg_ptr);var t=a().getInt32(n+0,!0),e=a().getInt32(n+4,!0);if(e)throw u(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}constructor(t){let e=r.copydropdownmenuelement_new(i(t));return this.__wbg_ptr=e>>>0,gt.register(this,this.__wbg_ptr,this),this}open(t){r.exportdropdownmenuelement_open(this.__wbg_ptr,i(t))}};Symbol.dispose&&(U.prototype[Symbol.dispose]=U.prototype.free);var V=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,ft.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_genericsqlvirtualservermodel_free(t,0)}getHostedTables(){try{let b=r.__wbindgen_add_to_stack_pointer(-16);r.genericsqlvirtualservermodel_getHostedTables(b,this.__wbg_ptr);var t=a().getInt32(b+0,!0),e=a().getInt32(b+4,!0),n=a().getInt32(b+8,!0),_=a().getInt32(b+12,!0);if(_)throw u(n);var s=w(t,e);return t!==0&&r.__wbindgen_export4(t,e,1),s}finally{r.__wbindgen_add_to_stack_pointer(16)}}constructor(t){try{let s=r.__wbindgen_add_to_stack_pointer(-16);r.genericsqlvirtualservermodel_new(s,f(t)?0:i(t));var e=a().getInt32(s+0,!0),n=a().getInt32(s+4,!0),_=a().getInt32(s+8,!0);if(_)throw u(n);return this.__wbg_ptr=e>>>0,ft.register(this,this.__wbg_ptr,this),this}finally{r.__wbindgen_add_to_stack_pointer(16)}}tableMakeView(t,e,n){try{let m=r.__wbindgen_add_to_stack_pointer(-16),h=v(t,r.__wbindgen_export,r.__wbindgen_export2),I=p,k=v(e,r.__wbindgen_export,r.__wbindgen_export2),T=p;r.genericsqlvirtualservermodel_tableMakeView(m,this.__wbg_ptr,h,I,k,T,i(n));var _=a().getInt32(m+0,!0),s=a().getInt32(m+4,!0),b=a().getInt32(m+8,!0),g=a().getInt32(m+12,!0);if(g)throw u(b);var l=w(_,s);return _!==0&&r.__wbindgen_export4(_,s,1),l}finally{r.__wbindgen_add_to_stack_pointer(16)}}tableSchema(t){try{let g=r.__wbindgen_add_to_stack_pointer(-16),l=v(t,r.__wbindgen_export,r.__wbindgen_export2),m=p;r.genericsqlvirtualservermodel_tableSchema(g,this.__wbg_ptr,l,m);var e=a().getInt32(g+0,!0),n=a().getInt32(g+4,!0),_=a().getInt32(g+8,!0),s=a().getInt32(g+12,!0);if(s)throw u(_);var b=w(e,n);return e!==0&&r.__wbindgen_export4(e,n,1),b}finally{r.__wbindgen_add_to_stack_pointer(16)}}tableSize(t){try{let g=r.__wbindgen_add_to_stack_pointer(-16),l=v(t,r.__wbindgen_export,r.__wbindgen_export2),m=p;r.genericsqlvirtualservermodel_tableSize(g,this.__wbg_ptr,l,m);var e=a().getInt32(g+0,!0),n=a().getInt32(g+4,!0),_=a().getInt32(g+8,!0),s=a().getInt32(g+12,!0);if(s)throw u(_);var b=w(e,n);return e!==0&&r.__wbindgen_export4(e,n,1),b}finally{r.__wbindgen_add_to_stack_pointer(16)}}tableValidateExpression(t,e){try{let l=r.__wbindgen_add_to_stack_pointer(-16),m=v(t,r.__wbindgen_export,r.__wbindgen_export2),h=p,I=v(e,r.__wbindgen_export,r.__wbindgen_export2),k=p;r.genericsqlvirtualservermodel_tableValidateExpression(l,this.__wbg_ptr,m,h,I,k);var n=a().getInt32(l+0,!0),_=a().getInt32(l+4,!0),s=a().getInt32(l+8,!0),b=a().getInt32(l+12,!0);if(b)throw u(s);var g=w(n,_);return n!==0&&r.__wbindgen_export4(n,_,1),g}finally{r.__wbindgen_add_to_stack_pointer(16)}}viewColumnSize(t){try{let g=r.__wbindgen_add_to_stack_pointer(-16),l=v(t,r.__wbindgen_export,r.__wbindgen_export2),m=p;r.genericsqlvirtualservermodel_viewColumnSize(g,this.__wbg_ptr,l,m);var e=a().getInt32(g+0,!0),n=a().getInt32(g+4,!0),_=a().getInt32(g+8,!0),s=a().getInt32(g+12,!0);if(s)throw u(_);var b=w(e,n);return e!==0&&r.__wbindgen_export4(e,n,1),b}finally{r.__wbindgen_add_to_stack_pointer(16)}}viewDelete(t){try{let g=r.__wbindgen_add_to_stack_pointer(-16),l=v(t,r.__wbindgen_export,r.__wbindgen_export2),m=p;r.genericsqlvirtualservermodel_viewDelete(g,this.__wbg_ptr,l,m);var e=a().getInt32(g+0,!0),n=a().getInt32(g+4,!0),_=a().getInt32(g+8,!0),s=a().getInt32(g+12,!0);if(s)throw u(_);var b=w(e,n);return e!==0&&r.__wbindgen_export4(e,n,1),b}finally{r.__wbindgen_add_to_stack_pointer(16)}}viewGetData(t,e,n,_){try{let h=r.__wbindgen_add_to_stack_pointer(-16),I=v(t,r.__wbindgen_export,r.__wbindgen_export2),k=p;r.genericsqlvirtualservermodel_viewGetData(h,this.__wbg_ptr,I,k,i(e),i(n),i(_));var s=a().getInt32(h+0,!0),b=a().getInt32(h+4,!0),g=a().getInt32(h+8,!0),l=a().getInt32(h+12,!0);if(l)throw u(g);var m=w(s,b);return s!==0&&r.__wbindgen_export4(s,b,1),m}finally{r.__wbindgen_add_to_stack_pointer(16)}}viewGetMinMax(t,e,n){try{let m=r.__wbindgen_add_to_stack_pointer(-16),h=v(t,r.__wbindgen_export,r.__wbindgen_export2),I=p,k=v(e,r.__wbindgen_export,r.__wbindgen_export2),T=p;r.genericsqlvirtualservermodel_viewGetMinMax(m,this.__wbg_ptr,h,I,k,T,i(n));var _=a().getInt32(m+0,!0),s=a().getInt32(m+4,!0),b=a().getInt32(m+8,!0),g=a().getInt32(m+12,!0);if(g)throw u(b);var l=w(_,s);return _!==0&&r.__wbindgen_export4(_,s,1),l}finally{r.__wbindgen_add_to_stack_pointer(16)}}viewSchema(t){try{let g=r.__wbindgen_add_to_stack_pointer(-16),l=v(t,r.__wbindgen_export,r.__wbindgen_export2),m=p;r.genericsqlvirtualservermodel_viewSchema(g,this.__wbg_ptr,l,m);var e=a().getInt32(g+0,!0),n=a().getInt32(g+4,!0),_=a().getInt32(g+8,!0),s=a().getInt32(g+12,!0);if(s)throw u(_);var b=w(e,n);return e!==0&&r.__wbindgen_export4(e,n,1),b}finally{r.__wbindgen_add_to_stack_pointer(16)}}viewSize(t){try{let g=r.__wbindgen_add_to_stack_pointer(-16),l=v(t,r.__wbindgen_export,r.__wbindgen_export2),m=p;r.genericsqlvirtualservermodel_viewSize(g,this.__wbg_ptr,l,m);var e=a().getInt32(g+0,!0),n=a().getInt32(g+4,!0),_=a().getInt32(g+8,!0),s=a().getInt32(g+12,!0);if(s)throw u(_);var b=w(e,n);return e!==0&&r.__wbindgen_export4(e,n,1),b}finally{r.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(V.prototype[Symbol.dispose]=V.prototype.free);var H=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,dt.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_perspectivedebugpluginelement_free(t,0)}clear(){let t=r.perspectivedebugpluginelement_clear(this.__wbg_ptr);return u(t)}get config_column_names(){let t=r.perspectivedebugpluginelement_config_column_names(this.__wbg_ptr);return u(t)}connectedCallback(){r.perspectivedebugpluginelement_connectedCallback(this.__wbg_ptr)}delete(){let t=r.perspectivedebugpluginelement_clear(this.__wbg_ptr);return u(t)}draw(t){G(t,y);let e=r.perspectivedebugpluginelement_draw(this.__wbg_ptr,t.__wbg_ptr);return u(e)}get min_config_columns(){let t=r.perspectivedebugpluginelement_config_column_names(this.__wbg_ptr);return u(t)}get name(){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.perspectivedebugpluginelement_name(_,this.__wbg_ptr);var t=a().getInt32(_+0,!0),e=a().getInt32(_+4,!0),n=w(t,e);return t!==0&&r.__wbindgen_export4(t,e,1),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}constructor(t){let e=r.perspectivedebugpluginelement_new(i(t));return this.__wbg_ptr=e>>>0,dt.register(this,this.__wbg_ptr,this),this}resize(){let t=r.perspectivedebugpluginelement_clear(this.__wbg_ptr);return u(t)}restore(t){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.perspectivedebugpluginelement_restore(_,this.__wbg_ptr,f(t)?0:i(t));var e=a().getInt32(_+0,!0),n=a().getInt32(_+4,!0);if(n)throw u(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}restyle(){r.perspectivedebugpluginelement_connectedCallback(this.__wbg_ptr)}save(){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.perspectivedebugpluginelement_save(_,this.__wbg_ptr);var t=a().getInt32(_+0,!0),e=a().getInt32(_+4,!0),n=a().getInt32(_+8,!0);if(n)throw u(e);return u(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get select_mode(){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.perspectivedebugpluginelement_select_mode(_,this.__wbg_ptr);var t=a().getInt32(_+0,!0),e=a().getInt32(_+4,!0),n=w(t,e);return t!==0&&r.__wbindgen_export4(t,e,1),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}update(t){G(t,y);let e=r.perspectivedebugpluginelement_draw(this.__wbg_ptr,t.__wbg_ptr);return u(e)}};Symbol.dispose&&(H.prototype[Symbol.dispose]=H.prototype.free);var R=class c{static __wrap(t){t=t>>>0;let e=Object.create(c.prototype);return e.__wbg_ptr=t,tt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,tt.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_perspectiveviewerelement_free(t,0)}__get_model(){let t=r.perspectiveviewerelement___get_model(this.__wbg_ptr);return c.__wrap(t)}connectedCallback(){try{let n=r.__wbindgen_add_to_stack_pointer(-16);r.perspectiveviewerelement_connectedCallback(n,this.__wbg_ptr);var t=a().getInt32(n+0,!0),e=a().getInt32(n+4,!0);if(e)throw u(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}copy(t){let e=r.perspectiveviewerelement_copy(this.__wbg_ptr,f(t)?0:i(t));return u(e)}delete(){let t=this.__destroy_into_raw(),e=r.perspectiveviewerelement_delete(t);return u(e)}download(t){let e=r.perspectiveviewerelement_download(this.__wbg_ptr,f(t)?0:i(t));return u(e)}eject(){let t=r.perspectiveviewerelement_eject(this.__wbg_ptr);return u(t)}export(t){let e=r.perspectiveviewerelement_export(this.__wbg_ptr,f(t)?0:i(t));return u(e)}flush(){let t=r.perspectiveviewerelement_flush(this.__wbg_ptr);return u(t)}getAllPlugins(){let t=r.perspectiveviewerelement_getAllPlugins(this.__wbg_ptr);return u(t)}getClient(t){let e=r.perspectiveviewerelement_getClient(this.__wbg_ptr,f(t)?16777215:t?1:0);return u(e)}getEditPort(){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.perspectiveviewerelement_getEditPort(_,this.__wbg_ptr);var t=a().getFloat64(_+0,!0),e=a().getInt32(_+8,!0),n=a().getInt32(_+12,!0);if(n)throw u(e);return t}finally{r.__wbindgen_add_to_stack_pointer(16)}}getPlugin(t){try{let g=r.__wbindgen_add_to_stack_pointer(-16);var e=f(t)?0:v(t,r.__wbindgen_export,r.__wbindgen_export2),n=p;r.perspectiveviewerelement_getPlugin(g,this.__wbg_ptr,e,n);var _=a().getInt32(g+0,!0),s=a().getInt32(g+4,!0),b=a().getInt32(g+8,!0);if(b)throw u(s);return u(_)}finally{r.__wbindgen_add_to_stack_pointer(16)}}getRenderStats(){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.perspectiveviewerelement_getRenderStats(_,this.__wbg_ptr);var t=a().getInt32(_+0,!0),e=a().getInt32(_+4,!0),n=a().getInt32(_+8,!0);if(n)throw u(e);return u(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}getSelection(){let t=r.perspectiveviewerelement_getSelection(this.__wbg_ptr);return u(t)}getTable(t){let e=r.perspectiveviewerelement_getTable(this.__wbg_ptr,f(t)?16777215:t?1:0);return u(e)}getView(){let t=r.perspectiveviewerelement_getView(this.__wbg_ptr);return u(t)}getViewConfig(){let t=r.perspectiveviewerelement_getViewConfig(this.__wbg_ptr);return u(t)}load(t){try{let s=r.__wbindgen_add_to_stack_pointer(-16);r.perspectiveviewerelement_load(s,this.__wbg_ptr,i(t));var e=a().getInt32(s+0,!0),n=a().getInt32(s+4,!0),_=a().getInt32(s+8,!0);if(_)throw u(n);return u(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}constructor(t){let e=r.perspectiveviewerelement_new(i(t));return this.__wbg_ptr=e>>>0,tt.register(this,this.__wbg_ptr,this),this}openColumnSettings(t,e){var n=f(t)?0:v(t,r.__wbindgen_export,r.__wbindgen_export2),_=p;let s=r.perspectiveviewerelement_openColumnSettings(this.__wbg_ptr,n,_,f(e)?16777215:e?1:0);return u(s)}reset(t){let e=r.perspectiveviewerelement_reset(this.__wbg_ptr,f(t)?16777215:t?1:0);return u(e)}resetError(){let t=r.perspectiveviewerelement_resetError(this.__wbg_ptr);return u(t)}resetThemes(t){var e=f(t)?0:Jt(t,r.__wbindgen_export),n=p;let _=r.perspectiveviewerelement_resetThemes(this.__wbg_ptr,e,n);return u(_)}resize(t){let e=r.perspectiveviewerelement_resize(this.__wbg_ptr,f(t)?0:i(t));return u(e)}restore(t){let e=r.perspectiveviewerelement_restore(this.__wbg_ptr,i(t));return u(e)}restyleElement(){let t=r.perspectiveviewerelement_restyleElement(this.__wbg_ptr);return u(t)}save(){let t=r.perspectiveviewerelement_save(this.__wbg_ptr);return u(t)}setAutoPause(t){let e=r.perspectiveviewerelement_setAutoPause(this.__wbg_ptr,t);return u(e)}setAutoSize(t){r.perspectiveviewerelement_setAutoSize(this.__wbg_ptr,t)}setSelection(t){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.perspectiveviewerelement_setSelection(_,this.__wbg_ptr,f(t)?0:i(t));var e=a().getInt32(_+0,!0),n=a().getInt32(_+4,!0);if(n)throw u(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}setThrottle(t){r.perspectiveviewerelement_setThrottle(this.__wbg_ptr,!f(t),f(t)?0:t)}toggleColumnSettings(t){let e=v(t,r.__wbindgen_export,r.__wbindgen_export2),n=p,_=r.perspectiveviewerelement_toggleColumnSettings(this.__wbg_ptr,e,n);return u(_)}toggleConfig(t){let e=r.perspectiveviewerelement_toggleConfig(this.__wbg_ptr,f(t)?16777215:t?1:0);return u(e)}};Symbol.dispose&&(R.prototype[Symbol.dispose]=R.prototype.free);var O=class c{static __wrap(t){t=t>>>0;let e=Object.create(c.prototype);return e.__wbg_ptr=t,et.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,et.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_proxysession_free(t,0)}close(){let t=this.__destroy_into_raw(),e=r.proxysession_close(t);return u(e)}handle_request(t){let e=r.proxysession_handle_request(this.__wbg_ptr,i(t));return u(e)}constructor(t,e){try{G(t,A);let n=r.proxysession_new(t.__wbg_ptr,ot(e));return this.__wbg_ptr=n>>>0,et.register(this,this.__wbg_ptr,this),this}finally{x[j++]=void 0}}};Symbol.dispose&&(O.prototype[Symbol.dispose]=O.prototype.free);var E=class c{static __wrap(t){t=t>>>0;let e=Object.create(c.prototype);return e.__wbg_ptr=t,wt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,wt.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_table_free(t,0)}__getClassname(){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.table___getClassname(_,this.__wbg_ptr);var t=a().getInt32(_+0,!0),e=a().getInt32(_+4,!0),n=w(t,e);return t!==0&&r.__wbindgen_export4(t,e,1),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}clear(){let t=r.table_clear(this.__wbg_ptr);return u(t)}columns(){let t=r.table_columns(this.__wbg_ptr);return u(t)}delete(t){let e=this.__destroy_into_raw(),n=r.table_delete(e,f(t)?0:i(t));return u(n)}get_client(){let t=r.table_get_client(this.__wbg_ptr);return u(t)}get_index(){let t=r.table_get_index(this.__wbg_ptr);return u(t)}get_limit(){let t=r.table_get_limit(this.__wbg_ptr);return u(t)}get_name(){let t=r.table_get_name(this.__wbg_ptr);return u(t)}make_port(){let t=r.table_make_port(this.__wbg_ptr);return u(t)}on_delete(t){let e=r.table_on_delete(this.__wbg_ptr,i(t));return u(e)}remove(t,e){let n=r.table_remove(this.__wbg_ptr,i(t),f(e)?0:i(e));return u(n)}remove_delete(t){let e=r.table_remove_delete(this.__wbg_ptr,t);return u(e)}replace(t,e){let n=r.table_replace(this.__wbg_ptr,i(t),f(e)?0:i(e));return u(n)}schema(){let t=r.table_schema(this.__wbg_ptr);return u(t)}size(){let t=r.table_size(this.__wbg_ptr);return u(t)}update(t,e){let n=r.table_update(this.__wbg_ptr,i(t),f(e)?0:i(e));return u(n)}validate_expressions(t){let e=r.table_validate_expressions(this.__wbg_ptr,i(t));return u(e)}view(t){let e=r.table_view(this.__wbg_ptr,f(t)?0:i(t));return u(e)}};Symbol.dispose&&(E.prototype[Symbol.dispose]=E.prototype.free);var y=class c{static __wrap(t){t=t>>>0;let e=Object.create(c.prototype);return e.__wbg_ptr=t,lt.register(e,e.__wbg_ptr,e),e}static __unwrap(t){return t instanceof c?t.__destroy_into_raw():0}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,lt.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_view_free(t,0)}__get_model(){let t=r.view___get_model(this.__wbg_ptr);return c.__wrap(t)}__unsafe_get_name(){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.view___unsafe_get_name(_,this.__wbg_ptr);var t=a().getInt32(_+0,!0),e=a().getInt32(_+4,!0),n=w(t,e);return t!==0&&r.__wbindgen_export4(t,e,1),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}collapse(t){let e=r.view_collapse(this.__wbg_ptr,t);return u(e)}column_paths(t){let e=r.view_column_paths(this.__wbg_ptr,f(t)?0:i(t));return u(e)}delete(){let t=this.__destroy_into_raw(),e=r.view_delete(t);return u(e)}dimensions(){let t=r.view_dimensions(this.__wbg_ptr);return u(t)}expand(t){let e=r.view_expand(this.__wbg_ptr,t);return u(e)}expression_schema(){let t=r.view_expression_schema(this.__wbg_ptr);return u(t)}get_config(){let t=r.view_get_config(this.__wbg_ptr);return u(t)}get_min_max(t){let e=v(t,r.__wbindgen_export,r.__wbindgen_export2),n=p,_=r.view_get_min_max(this.__wbg_ptr,e,n);return u(_)}num_columns(){let t=r.view_num_columns(this.__wbg_ptr);return u(t)}num_rows(){let t=r.view_num_rows(this.__wbg_ptr);return u(t)}on_delete(t){let e=r.view_on_delete(this.__wbg_ptr,i(t));return u(e)}on_update(t,e){let n=r.view_on_update(this.__wbg_ptr,i(t),f(e)?0:i(e));return u(n)}remove_delete(t){let e=r.view_remove_delete(this.__wbg_ptr,t);return u(e)}remove_update(t){let e=r.view_remove_update(this.__wbg_ptr,t);return u(e)}schema(){let t=r.view_schema(this.__wbg_ptr);return u(t)}set_depth(t){let e=r.view_set_depth(this.__wbg_ptr,t);return u(e)}to_arrow(t){let e=r.view_to_arrow(this.__wbg_ptr,f(t)?0:i(t));return u(e)}to_columns(t){let e=r.view_to_columns(this.__wbg_ptr,f(t)?0:i(t));return u(e)}to_columns_string(t){let e=r.view_to_columns_string(this.__wbg_ptr,f(t)?0:i(t));return u(e)}to_csv(t){let e=r.view_to_csv(this.__wbg_ptr,f(t)?0:i(t));return u(e)}to_json(t){let e=r.view_to_json(this.__wbg_ptr,f(t)?0:i(t));return u(e)}to_json_string(t){let e=r.view_to_json_string(this.__wbg_ptr,f(t)?0:i(t));return u(e)}to_ndjson(t){let e=r.view_to_ndjson(this.__wbg_ptr,f(t)?0:i(t));return u(e)}with_typed_arrays(t,e){let n=r.view_with_typed_arrays(this.__wbg_ptr,f(t)?0:i(t),i(e));return u(n)}};Symbol.dispose&&(y.prototype[Symbol.dispose]=y.prototype.free);var z=class c{static __wrap(t){t=t>>>0;let e=Object.create(c.prototype);return e.__wbg_ptr=t,nt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,nt.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_virtualdataslice_free(t,0)}fromArrowIpc(t){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.virtualdataslice_fromArrowIpc(_,this.__wbg_ptr,i(t));var e=a().getInt32(_+0,!0),n=a().getInt32(_+4,!0);if(n)throw u(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}constructor(t){let e=r.virtualdataslice_new(i(t));return this.__wbg_ptr=e>>>0,nt.register(this,this.__wbg_ptr,this),this}setBooleanCol(t,e,n,_){try{let g=r.__wbindgen_add_to_stack_pointer(-16),l=v(t,r.__wbindgen_export,r.__wbindgen_export2),m=p;r.virtualdataslice_setBooleanCol(g,this.__wbg_ptr,l,m,e,i(n),f(_)?4294967297:_>>>0);var s=a().getInt32(g+0,!0),b=a().getInt32(g+4,!0);if(b)throw u(s)}finally{r.__wbindgen_add_to_stack_pointer(16)}}setCol(t,e,n,_,s){try{let l=r.__wbindgen_add_to_stack_pointer(-16),m=v(t,r.__wbindgen_export,r.__wbindgen_export2),h=p,I=v(e,r.__wbindgen_export,r.__wbindgen_export2),k=p;r.virtualdataslice_setCol(l,this.__wbg_ptr,m,h,I,k,n,i(_),f(s)?4294967297:s>>>0);var b=a().getInt32(l+0,!0),g=a().getInt32(l+4,!0);if(g)throw u(b)}finally{r.__wbindgen_add_to_stack_pointer(16)}}setDatetimeCol(t,e,n,_){try{let g=r.__wbindgen_add_to_stack_pointer(-16),l=v(t,r.__wbindgen_export,r.__wbindgen_export2),m=p;r.virtualdataslice_setDatetimeCol(g,this.__wbg_ptr,l,m,e,i(n),f(_)?4294967297:_>>>0);var s=a().getInt32(g+0,!0),b=a().getInt32(g+4,!0);if(b)throw u(s)}finally{r.__wbindgen_add_to_stack_pointer(16)}}setFloatCol(t,e,n,_){try{let g=r.__wbindgen_add_to_stack_pointer(-16),l=v(t,r.__wbindgen_export,r.__wbindgen_export2),m=p;r.virtualdataslice_setFloatCol(g,this.__wbg_ptr,l,m,e,i(n),f(_)?4294967297:_>>>0);var s=a().getInt32(g+0,!0),b=a().getInt32(g+4,!0);if(b)throw u(s)}finally{r.__wbindgen_add_to_stack_pointer(16)}}setIntegerCol(t,e,n,_){try{let g=r.__wbindgen_add_to_stack_pointer(-16),l=v(t,r.__wbindgen_export,r.__wbindgen_export2),m=p;r.virtualdataslice_setIntegerCol(g,this.__wbg_ptr,l,m,e,i(n),f(_)?4294967297:_>>>0);var s=a().getInt32(g+0,!0),b=a().getInt32(g+4,!0);if(b)throw u(s)}finally{r.__wbindgen_add_to_stack_pointer(16)}}setStringCol(t,e,n,_){try{let g=r.__wbindgen_add_to_stack_pointer(-16),l=v(t,r.__wbindgen_export,r.__wbindgen_export2),m=p;r.virtualdataslice_setStringCol(g,this.__wbg_ptr,l,m,e,i(n),f(_)?4294967297:_>>>0);var s=a().getInt32(g+0,!0),b=a().getInt32(g+4,!0);if(b)throw u(s)}finally{r.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(z.prototype[Symbol.dispose]=z.prototype.free);var $=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,pt.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_virtualserver_free(t,0)}handleRequest(t){let e=Gt(t,r.__wbindgen_export),n=p,_=r.virtualserver_handleRequest(this.__wbg_ptr,e,n);return u(_)}constructor(t){try{let s=r.__wbindgen_add_to_stack_pointer(-16);r.virtualserver_new(s,i(t));var e=a().getInt32(s+0,!0),n=a().getInt32(s+4,!0),_=a().getInt32(s+8,!0);if(_)throw u(n);return this.__wbg_ptr=e>>>0,pt.register(this,this.__wbg_ptr,this),this}finally{r.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&($.prototype[Symbol.dispose]=$.prototype.free);function Ft(){try{let n=r.__wbindgen_add_to_stack_pointer(-16);r.get_wasm_module(n);var c=a().getInt32(n+0,!0),t=a().getInt32(n+4,!0),e=a().getInt32(n+8,!0);if(e)throw u(t);return u(c)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function At(){try{let n=r.__wbindgen_add_to_stack_pointer(-16);r.get_worker_url(n);var c=a().getInt32(n+0,!0),t=a().getInt32(n+4,!0),e=a().getInt32(n+8,!0);if(e)throw u(t);return u(c)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Rt(c,t){r.init(i(c),i(t))}function Ct(c){let t=v(c,r.__wbindgen_export,r.__wbindgen_export2),e=p;r.registerPlugin(t,e)}function ht(){return{__proto__:null,\"./perspective-viewer.wasm_bg.js\":{__proto__:null,__wbg_Error_8c4e43fe74559d73:function(t,e){var n=w(t,e);let _=Error(n);return i(_)},__wbg_Number_04624de7d0e8332d:function(t){return Number(o(t))},__wbg_String_8f0eb39a4a4c2f66:function(t,e){let n=String(o(e)),_=v(n,r.__wbindgen_export,r.__wbindgen_export2),s=p;a().setInt32(t+4,s,!0),a().setInt32(t+0,_,!0)},__wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2:function(t,e){let n=o(e),_=typeof n==\"bigint\"?n:void 0;a().setBigInt64(t+8,f(_)?BigInt(0):_,!0),a().setInt32(t+0,!f(_),!0)},__wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25:function(t){let e=o(t),n=typeof e==\"boolean\"?e:void 0;return f(n)?16777215:n?1:0},__wbg___wbindgen_debug_string_0bc8482c6e3508ae:function(t,e){let n=_t(o(e)),_=v(n,r.__wbindgen_export,r.__wbindgen_export2),s=p;a().setInt32(t+4,s,!0),a().setInt32(t+0,_,!0)},__wbg___wbindgen_in_47fa6863be6f2f25:function(t,e){return o(t)in o(e)},__wbg___wbindgen_is_bigint_31b12575b56f32fc:function(t){return typeof o(t)==\"bigint\"},__wbg___wbindgen_is_function_0095a73b8b156f76:function(t){return typeof o(t)==\"function\"},__wbg___wbindgen_is_null_ac34f5003991759a:function(t){return o(t)===null},__wbg___wbindgen_is_object_5ae8e5880f2c1fbd:function(t){let e=o(t);return typeof e==\"object\"&&e!==null},__wbg___wbindgen_is_string_cd444516edc5b180:function(t){return typeof o(t)==\"string\"},__wbg___wbindgen_is_undefined_9e4d92534c42d778:function(t){return o(t)===void 0},__wbg___wbindgen_jsval_eq_11888390b0186270:function(t,e){return o(t)===o(e)},__wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811:function(t,e){return o(t)==o(e)},__wbg___wbindgen_number_get_8ff4255516ccad3e:function(t,e){let n=o(e),_=typeof n==\"number\"?n:void 0;a().setFloat64(t+8,f(_)?0:_,!0),a().setInt32(t+0,!f(_),!0)},__wbg___wbindgen_string_get_72fb696202c56729:function(t,e){let n=o(e),_=typeof n==\"string\"?n:void 0;var s=f(_)?0:v(_,r.__wbindgen_export,r.__wbindgen_export2),b=p;a().setInt32(t+4,b,!0),a().setInt32(t+0,s,!0)},__wbg___wbindgen_throw_be289d5034ed271b:function(t,e){var n=w(t,e);throw new Error(n)},__wbg__wbg_cb_unref_d9b87ff7982e3b21:function(t){o(t)._wbg_cb_unref()},__wbg_activeElement_d9d2a80dfafa67ed:function(t){let e=o(t).activeElement;return f(e)?0:i(e)},__wbg_addEventListener_3acb0aad4483804c:function(){return d(function(t,e,n,_){var s=w(e,n);o(t).addEventListener(s,o(_))},arguments)},__wbg_addEventListener_c917b5aafbcf493f:function(){return d(function(t,e,n,_,s){var b=w(e,n);o(t).addEventListener(b,o(_),o(s))},arguments)},__wbg_add_5be83378df680c25:function(){return d(function(t,e,n){var _=w(e,n);o(t).add(_)},arguments)},__wbg_appendChild_dea38765a26d346d:function(){return d(function(t,e){let n=o(t).appendChild(o(e));return i(n)},arguments)},__wbg_apply_2e22c45cb4f12415:function(){return d(function(t,e,n){let _=Reflect.apply(o(t),o(e),o(n));return i(_)},arguments)},__wbg_apply_ada2ee1a60ac7b3c:function(){return d(function(t,e,n){let _=o(t).apply(o(e),o(n));return i(_)},arguments)},__wbg_at_dfc235641cc0e40c:function(t,e){let n=o(t).at(e);return i(n)},__wbg_attachShadow_d31cd520620b24d6:function(){return d(function(t,e){let n=o(t).attachShadow(o(e));return i(n)},arguments)},__wbg_blur_07f34335e06e5234:function(){return d(function(t){o(t).blur()},arguments)},__wbg_body_f67922363a220026:function(t){let e=o(t).body;return f(e)?0:i(e)},__wbg_bootstrap_37600b51af82e0ac:function(t,e,n,_,s,b){var g=w(e,n),l=w(_,s);let m=at(o(t),g,l,u(b));return i(m)},__wbg_bubbles_ad88192d3c29e6f9:function(t){return o(t).bubbles},__wbg_buffer_26d0910f3a5bc899:function(t){let e=o(t).buffer;return i(e)},__wbg_button_d86841d0a03adc44:function(t){return o(t).button},__wbg_cache_key_577df69a33f9a3fb:function(t){let e=o(t).__yew_subtree_cache_key;return f(e)?4294967297:e>>>0},__wbg_call_389efe28435a9388:function(){return d(function(t,e){let n=o(t).call(o(e));return i(n)},arguments)},__wbg_call_41bedb84c3e5c0c9:function(){return d(function(t,e,n,_,s,b){let g=o(t).call(o(e),o(n),o(_),o(s),o(b));return i(g)},arguments)},__wbg_call_4708e0c13bdc8e95:function(){return d(function(t,e,n){let _=o(t).call(o(e),o(n));return i(_)},arguments)},__wbg_call_812d25f1510c13c8:function(){return d(function(t,e,n,_){let s=o(t).call(o(e),o(n),o(_));return i(s)},arguments)},__wbg_cancelBubble_d93ec09e9c46cd6f:function(t){return o(t).cancelBubble},__wbg_checked_04db83ac6810bc82:function(t){return o(t).checked},__wbg_childNodes_75d35de33c9f6fbb:function(t){let e=o(t).childNodes;return i(e)},__wbg_children_54099e7692eefa29:function(t){let e=o(t).children;return i(e)},__wbg_classList_1a87c34c6d81421e:function(t){let e=o(t).classList;return i(e)},__wbg_click_0e9c20848b655ed3:function(t){o(t).click()},__wbg_clientHeight_6432ff0d61ccfe7d:function(t){return o(t).clientHeight},__wbg_clientWidth_dcf89c40d88df4a3:function(t){return o(t).clientWidth},__wbg_clientX_a3c5f4ff30e91264:function(t){return o(t).clientX},__wbg_clientY_e28509acb9b4a42a:function(t){return o(t).clientY},__wbg_client_new:function(t){let e=A.__wrap(t);return i(e)},__wbg_clipboard_98c5a32249fa8416:function(t){let e=o(t).clipboard;return i(e)},__wbg_cloneNode_b85e9102a9a31b29:function(){return d(function(t,e){let n=o(t).cloneNode(e!==0);return i(n)},arguments)},__wbg_cloneNode_eaf4ea08ebf633a5:function(){return d(function(t){let e=o(t).cloneNode();return i(e)},arguments)},__wbg_code_dee0dae4730408e1:function(t,e){let n=o(e).code,_=v(n,r.__wbindgen_export,r.__wbindgen_export2),s=p;a().setInt32(t+4,s,!0),a().setInt32(t+0,_,!0)},__wbg_column_config_schema_55da3d586536f300:function(){return d(function(t,e,n,_,s,b,g,l,m,h){var I=w(e,n),k=w(_,s),T=w(b,g);let It=o(t).column_config_schema(I,k,T,o(l),o(m),o(h));return i(It)},arguments)},__wbg_composedPath_9154ab2547c668d5:function(t){let e=o(t).composedPath();return i(e)},__wbg_contains_1056459c33f961e8:function(t,e){return o(t).contains(o(e))},__wbg_contentRect_80a1aefae831e069:function(t){let e=o(t).contentRect;return i(e)},__wbg_createElementNS_ee00621496b30ec2:function(){return d(function(t,e,n,_,s){var b=w(e,n),g=w(_,s);let l=o(t).createElementNS(b,g);return i(l)},arguments)},__wbg_createElement_49f60fdcaae809c8:function(){return d(function(t,e,n){var _=w(e,n);let s=o(t).createElement(_);return i(s)},arguments)},__wbg_createObjectURL_918185db6a10a0c8:function(){return d(function(t,e){let n=URL.createObjectURL(o(e)),_=v(n,r.__wbindgen_export,r.__wbindgen_export2),s=p;a().setInt32(t+4,s,!0),a().setInt32(t+0,_,!0)},arguments)},__wbg_createTextNode_55029686c9591bf3:function(t,e,n){var _=w(e,n);let s=o(t).createTextNode(_);return i(s)},__wbg_cssRules_554f47f3049cf066:function(){return d(function(t){let e=o(t).cssRules;return i(e)},arguments)},__wbg_dataTransfer_d924a622fbe51b06:function(t){let e=o(t).dataTransfer;return f(e)?0:i(e)},__wbg_dataset_20cb5c72458ae3fc:function(t){let e=o(t).dataset;return i(e)},__wbg_debug_46a93995fc6f8820:function(t,e,n,_){console.debug(o(t),o(e),o(n),o(_))},__wbg_debug_a4099fa12db6cd61:function(t){console.debug(o(t))},__wbg_delete_5c9022a0eea1b4ce:function(t){o(t).delete()},__wbg_delete_8318b529ff42aa20:function(t,e,n){var _=w(e,n);delete o(t)[_]},__wbg_dispatchEvent_dc8dcc7ddca11378:function(){return d(function(t,e){return o(t).dispatchEvent(o(e))},arguments)},__wbg_document_ee35a3d3ae34ef6c:function(t){let e=o(t).document;return f(e)?0:i(e)},__wbg_done_57b39ecd9addfe81:function(t){return o(t).done},__wbg_draw_0d93757e414977a5:function(){return d(function(t,e,n,_,s){let b=o(t).draw(y.__wrap(e),n===4294967297?void 0:n,_===4294967297?void 0:_,s!==0);return i(b)},arguments)},__wbg_entries_58c7934c745daac7:function(t){let e=Object.entries(o(t));return i(e)},__wbg_error_3c7d958458bf649b:function(t,e){var n=vt(t,e).slice();r.__wbindgen_export4(t,e*4,4),console.error(...n)},__wbg_error_7534b8e9a36f1ab4:function(t,e){var n=w(t,e);t!==0&&r.__wbindgen_export4(t,e,1),console.error(n)},__wbg_error_794d0ffc9d00d5c3:function(t,e,n,_){console.error(o(t),o(e),o(n),o(_))},__wbg_error_9a7fe3f932034cde:function(t){console.error(o(t))},__wbg_error_f852e41c69b0bd84:function(t,e){console.error(o(t),o(e))},__wbg_family_345f1736ce506756:function(t,e){let n=o(e).family,_=v(n,r.__wbindgen_export,r.__wbindgen_export2),s=p;a().setInt32(t+4,s,!0),a().setInt32(t+0,_,!0)},__wbg_focus_128ff465f65677cc:function(){return d(function(t){o(t).focus()},arguments)},__wbg_fonts_ba4bc521c555025e:function(t){let e=o(t).fonts;return i(e)},__wbg_format_7c97ddc401dae52f:function(t){let e=o(t).format;return i(e)},__wbg_from_bddd64e7d5ff6941:function(t){let e=Array.from(o(t));return i(e)},__wbg_getAttribute_b9f6fc4b689c71b0:function(t,e,n,_){var s=w(n,_);let b=o(e).getAttribute(s);var g=f(b)?0:v(b,r.__wbindgen_export,r.__wbindgen_export2),l=p;a().setInt32(t+4,l,!0),a().setInt32(t+0,g,!0)},__wbg_getBoundingClientRect_b5c8c34d07878818:function(t){let e=o(t).getBoundingClientRect();return i(e)},__wbg_getComputedStyle_2d1f9dfe4ee7e0b9:function(){return d(function(t,e){let n=o(t).getComputedStyle(o(e));return f(n)?0:i(n)},arguments)},__wbg_getEntriesByName_02488cff0bc7581c:function(t,e,n,_,s){var b=w(e,n),g=w(_,s);let l=o(t).getEntriesByName(b,g);return i(l)},__wbg_getPropertyValue_d6911b2a1f9acba9:function(){return d(function(t,e,n,_){var s=w(n,_);let b=o(e).getPropertyValue(s),g=v(b,r.__wbindgen_export,r.__wbindgen_export2),l=p;a().setInt32(t+4,l,!0),a().setInt32(t+0,g,!0)},arguments)},__wbg_getRandomValues_1c61fac11405ffdc:function(){return d(function(t,e){globalThis.crypto.getRandomValues(M(t,e))},arguments)},__wbg_getTime_1e3cd1391c5c3995:function(t){return o(t).getTime()},__wbg_getTimezoneOffset_81776d10a4ec18a8:function(t){return o(t).getTimezoneOffset()},__wbg_get_5dd1ee4c9f462865:function(t,e,n,_){var s=w(n,_);let b=o(e)[s];var g=f(b)?0:v(b,r.__wbindgen_export,r.__wbindgen_export2),l=p;a().setInt32(t+4,l,!0),a().setInt32(t+0,g,!0)},__wbg_get_76e04509d1922a04:function(t,e,n){var _=w(e,n);let s=o(t)[_];return f(s)?0:i(s)},__wbg_get_9b94d73e6221f75c:function(t,e){let n=o(t)[e>>>0];return i(n)},__wbg_get_b3ed3ad4be2bc8ac:function(){return d(function(t,e){let n=Reflect.get(o(t),o(e));return i(n)},arguments)},__wbg_get_static_config_7ad975f1d4de9e25:function(t){let e=o(t).get_static_config();return i(e)},__wbg_get_with_index_d26da38d2c038e1a:function(t,e){let n=o(t)[e>>>0];return f(n)?0:i(n)},__wbg_get_with_ref_key_1dc361bd10053bfe:function(t,e){let n=o(t)[o(e)];return i(n)},__wbg_hasAttribute_5d8f52cb4c739280:function(t,e,n){var _=w(e,n);return o(t).hasAttribute(_)},__wbg_has_d4e53238966c12b6:function(){return d(function(t,e){return Reflect.has(o(t),o(e))},arguments)},__wbg_height_45209601b4c4ede6:function(t){return o(t).height},__wbg_height_c2027cf67d1c9b11:function(t){return o(t).height},__wbg_host_fb29f8be35c2517d:function(t){let e=o(t).host;return i(e)},__wbg_info_148d043840582012:function(t){console.info(o(t))},__wbg_info_9e602cf10c5c690b:function(t,e,n,_){console.info(o(t),o(e),o(n),o(_))},__wbg_innerHeight_54aa104da08becd2:function(){return d(function(t){let e=o(t).innerHeight;return i(e)},arguments)},__wbg_innerWidth_fa95c57321f4f033:function(){return d(function(t){let e=o(t).innerWidth;return i(e)},arguments)},__wbg_insertBefore_1468142836e61a51:function(){return d(function(t,e,n){let _=o(t).insertBefore(o(e),o(n));return i(_)},arguments)},__wbg_instanceof_ArrayBuffer_c367199e2fa2aa04:function(t){let e;try{e=o(t)instanceof ArrayBuffer}catch{e=!1}return e},__wbg_instanceof_Array_d9eac779cd191cbc:function(t){let e;try{e=o(t)instanceof Array}catch{e=!1}return e},__wbg_instanceof_CssStyleRule_23e59108346af0df:function(t){let e;try{e=o(t)instanceof CSSStyleRule}catch{e=!1}return e},__wbg_instanceof_Date_1b9f15b87f10aa4c:function(t){let e;try{e=o(t)instanceof Date}catch{e=!1}return e},__wbg_instanceof_Element_9e662f49ab6c6beb:function(t){let e;try{e=o(t)instanceof Element}catch{e=!1}return e},__wbg_instanceof_Error_8573fe0b0b480f46:function(t){let e;try{e=o(t)instanceof Error}catch{e=!1}return e},__wbg_instanceof_FontFace_90d3e62f39397791:function(t){let e;try{e=o(t)instanceof FontFace}catch{e=!1}return e},__wbg_instanceof_Map_53af74335dec57f4:function(t){let e;try{e=o(t)instanceof Map}catch{e=!1}return e},__wbg_instanceof_Object_1c6af87502b733ed:function(t){let e;try{e=o(t)instanceof Object}catch{e=!1}return e},__wbg_instanceof_Promise_0094681e3519d6ec:function(t){let e;try{e=o(t)instanceof Promise}catch{e=!1}return e},__wbg_instanceof_ShadowRoot_5285adde3587c73e:function(t){let e;try{e=o(t)instanceof ShadowRoot}catch{e=!1}return e},__wbg_instanceof_Uint8Array_9b9075935c74707c:function(t){let e;try{e=o(t)instanceof Uint8Array}catch{e=!1}return e},__wbg_instanceof_Window_ed49b2db8df90359:function(t){let e;try{e=o(t)instanceof Window}catch{e=!1}return e},__wbg_isArray_d314bb98fcf08331:function(t){return Array.isArray(o(t))},__wbg_isConnected_6110bc2c5462f90e:function(t){return o(t).isConnected},__wbg_isIntersecting_6172b60d17290246:function(t){return o(t).isIntersecting},__wbg_isSafeInteger_bfbc7332a9768d2a:function(t){return Number.isSafeInteger(o(t))},__wbg_is_f29129f676e5410c:function(t,e){return Object.is(o(t),o(e))},__wbg_item_00ae26320b80a11f:function(t,e,n){let _=o(e).item(n>>>0),s=v(_,r.__wbindgen_export,r.__wbindgen_export2),b=p;a().setInt32(t+4,b,!0),a().setInt32(t+0,s,!0)},__wbg_item_48715d3212ed96cb:function(t,e){let n=o(t).item(e>>>0);return f(n)?0:i(n)},__wbg_item_5c82f52b014b3056:function(t,e){let n=o(t).item(e>>>0);return f(n)?0:i(n)},__wbg_item_ca823df8214b9e2b:function(t,e){let n=o(t).item(e>>>0);return f(n)?0:i(n)},__wbg_iterator_6ff6560ca1568e55:function(){return i(Symbol.iterator)},__wbg_keyCode_155291a11654466e:function(t){return o(t).keyCode},__wbg_key_d41e8e825e6bb0e9:function(t,e){let n=o(e).key,_=v(n,r.__wbindgen_export,r.__wbindgen_export2),s=p;a().setInt32(t+4,s,!0),a().setInt32(t+0,_,!0)},__wbg_keys_b50a709a76add04e:function(t){let e=Object.keys(o(t));return i(e)},__wbg_languages_5a69df7551d1a803:function(t){let e=o(t).languages;return i(e)},__wbg_lastChild_132d67597d5e4aef:function(t){let e=o(t).lastChild;return f(e)?0:i(e)},__wbg_left_3b7c3c1030d5ca7a:function(t){return o(t).left},__wbg_length_25851a48867b2afc:function(t){return o(t).length},__wbg_length_32ed9a279acd054c:function(t){return o(t).length},__wbg_length_35a7bace40f36eac:function(t){return o(t).length},__wbg_length_b5aa6c69c842d6a6:function(t){return o(t).length},__wbg_length_e455564ce5cbf46e:function(t){return o(t).length},__wbg_length_edae0cd13a8d3b71:function(t){return o(t).length},__wbg_listener_id_e93527b90229a898:function(t){let e=o(t).__yew_listener_id;return f(e)?4294967297:e>>>0},__wbg_loaded_27fa3bdfd9239e89:function(){return d(function(t){let e=o(t).loaded;return i(e)},arguments)},__wbg_mark_3b530a64b09ba08a:function(){return d(function(t,e,n){var _=w(e,n);o(t).mark(_)},arguments)},__wbg_matches_852ba8b2b4592069:function(){return d(function(t,e,n){var _=w(e,n);return o(t).matches(_)},arguments)},__wbg_measure_288b48c082eae0fe:function(){return d(function(t,e,n,_,s){var b=w(e,n),g=w(_,s);o(t).measure(b,g)},arguments)},__wbg_message_9ddc4b9a62a7c379:function(t){let e=o(t).message;return i(e)},__wbg_namespaceURI_86e2062c65f0f341:function(t,e){let n=o(e).namespaceURI;var _=f(n)?0:v(n,r.__wbindgen_export,r.__wbindgen_export2),s=p;a().setInt32(t+4,s,!0),a().setInt32(t+0,_,!0)},__wbg_navigator_43be698ba96fc088:function(t){let e=o(t).navigator;return i(e)},__wbg_new_16c83877745f8d12:function(){return d(function(t,e){var n=w(t,e);let _=new InputEvent(n);return i(_)},arguments)},__wbg_new_1d5bd472c706b768:function(){return d(function(){let t=new CSSStyleSheet;return i(t)},arguments)},__wbg_new_245cd5c49157e602:function(t){let e=new Date(o(t));return i(e)},__wbg_new_361308b2356cecd0:function(){let t=new Object;return i(t)},__wbg_new_384a230f8673183c:function(){return d(function(t,e){var n=w(t,e);let _=new CustomEvent(n);return i(_)},arguments)},__wbg_new_3eb36ae241fe6f44:function(){let t=new Array;return i(t)},__wbg_new_64ab242c560f2ae4:function(t){let e=new st(o(t));return i(e)},__wbg_new_72b49615380db768:function(t,e){var n=w(t,e);let _=new Error(n);return i(_)},__wbg_new_7e51d34744c0ef3c:function(t){let e=new it(o(t));return i(e)},__wbg_new_86c8f0b79e48927d:function(t,e){let n=new Intl.NumberFormat(o(t),o(e));return i(n)},__wbg_new_8a6f238a6ece86ea:function(){let t=new Error;return i(t)},__wbg_new_b5d9e2fb389fef91:function(t,e){try{var n={a:t,b:e},_=(b,g)=>{let l=n.a;n.a=0;try{return Mt(l,n.b,b,g)}finally{n.a=l}};let s=new Promise(_);return i(s)}finally{n.a=n.b=0}},__wbg_new_bd1c2035a5c10b20:function(t){let e=new ct(o(t));return i(e)},__wbg_new_c155239f1b113b68:function(t,e){let n=new Intl.DateTimeFormat(o(t),o(e));return i(n)},__wbg_new_dca287b076112a51:function(){return i(new Map)},__wbg_new_dd2b680c8bf6ae29:function(t){let e=new Uint8Array(o(t));return i(e)},__wbg_new_from_slice_a3d2629dc1826784:function(t,e){let n=new Uint8Array(M(t,e));return i(n)},__wbg_new_no_args_1c7c842f08d00ebb:function(t,e){var n=w(t,e);let _=new Function(n);return i(_)},__wbg_new_with_event_init_dict_48877e7ca125f3c1:function(){return d(function(t,e,n){var _=w(t,e);let s=new CustomEvent(_,o(n));return i(s)},arguments)},__wbg_new_with_length_1763c527b2923202:function(t){let e=new Array(t>>>0);return i(e)},__wbg_new_with_str_sequence_and_options_9b8b0bee99ec6b0f:function(){return d(function(t,e){let n=new Blob(o(t),o(e));return i(n)},arguments)},__wbg_new_with_u8_array_sequence_08b2096a9f3117c0:function(){return d(function(t){let e=new Blob(o(t));return i(e)},arguments)},__wbg_nextSibling_2e988d9bbe3e06f0:function(t){let e=o(t).nextSibling;return f(e)?0:i(e)},__wbg_next_3482f54c49e8af19:function(){return d(function(t){let e=o(t).next();return i(e)},arguments)},__wbg_next_418f80d8f5303233:function(t){let e=o(t).next;return i(e)},__wbg_next_a74fa8e233e5b7bf:function(){return d(function(t){let e=o(t).next();return i(e)},arguments)},__wbg_now_ebffdf7e580f210d:function(t){return o(t).now()},__wbg_observe_afde01eb2aa31391:function(t,e){o(t).observe(o(e))},__wbg_observe_fb538e93537e1aeb:function(t,e){o(t).observe(o(e))},__wbg_offsetHeight_34f7abc1686733cc:function(t){return o(t).offsetHeight},__wbg_offsetParent_9627ebca6b03e8b2:function(t){let e=o(t).offsetParent;return f(e)?0:i(e)},__wbg_offsetWidth_f37b33a53e513101:function(t){return o(t).offsetWidth},__wbg_offsetX_b76b9bb1f9235de9:function(t){return o(t).offsetX},__wbg_offsetY_db5c1ddb866e1b82:function(t){return o(t).offsetY},__wbg_parentElement_75863410a8617953:function(t){let e=o(t).parentElement;return f(e)?0:i(e)},__wbg_parentNode_d44bd5ec58601e45:function(t){let e=o(t).parentNode;return f(e)?0:i(e)},__wbg_parse_708461a1feddfb38:function(){return d(function(t,e){var n=w(t,e);let _=JSON.parse(n);return i(_)},arguments)},__wbg_performance_06f12ba62483475d:function(t){let e=o(t).performance;return f(e)?0:i(e)},__wbg_plugin_config_schema_0d9dbad3248e8752:function(){return d(function(t,e){let n=o(t).plugin_config_schema(o(e));return i(n)},arguments)},__wbg_pointerId_466b1bdcaf2fe835:function(t){return o(t).pointerId},__wbg_pop_80fa29128215a463:function(t){let e=o(t).pop();return i(e)},__wbg_preventDefault_cdcfcd7e301b9702:function(t){o(t).preventDefault()},__wbg_prototypesetcall_bdcdcc5842e4d77d:function(t,e,n){Uint8Array.prototype.set.call(M(t,e),o(n))},__wbg_push_8ffdcb2063340ba5:function(t,e){return o(t).push(o(e))},__wbg_queueMicrotask_0aa0a927f78f5d98:function(t){let e=o(t).queueMicrotask;return i(e)},__wbg_queueMicrotask_5bb536982f78a56f:function(t){queueMicrotask(o(t))},__wbg_readText_b9ac81623f153a62:function(t){let e=o(t).readText();return i(e)},__wbg_readyState_cf11f0728fc7b46c:function(t,e){let n=o(e).readyState,_=v(n,r.__wbindgen_export,r.__wbindgen_export2),s=p;a().setInt32(t+4,s,!0),a().setInt32(t+0,_,!0)},__wbg_reject_a2176de7f1212be5:function(t){let e=Promise.reject(o(t));return i(e)},__wbg_relatedTarget_1557cded94b97af2:function(t){let e=o(t).relatedTarget;return f(e)?0:i(e)},__wbg_releasePointerCapture_420ef33c7c5fb6f4:function(){return d(function(t,e){o(t).releasePointerCapture(e)},arguments)},__wbg_removeAttribute_87259aab06d9f286:function(){return d(function(t,e,n){var _=w(e,n);o(t).removeAttribute(_)},arguments)},__wbg_removeChild_2f0b06213dbc49ca:function(){return d(function(t,e){let n=o(t).removeChild(o(e));return i(n)},arguments)},__wbg_removeEventListener_e63328781a5b9af9:function(){return d(function(t,e,n,_){var s=w(e,n);o(t).removeEventListener(s,o(_))},arguments)},__wbg_remove_f9451697e0bc6ca0:function(){return d(function(t,e,n){var _=w(e,n);o(t).remove(_)},arguments)},__wbg_render_1ad953c9b22bbfd9:function(){return d(function(t,e,n){let _=o(t).render(y.__wrap(e),u(n));return i(_)},arguments)},__wbg_replaceSync_54e9ce897fe6ab6a:function(){return d(function(t,e,n){var _=w(e,n);o(t).replaceSync(_)},arguments)},__wbg_requestAnimationFrame_43682f8e1c5e5348:function(){return d(function(t,e){return o(t).requestAnimationFrame(o(e))},arguments)},__wbg_resize_a2426ea3523f8bd6:function(){return d(function(t){let e=o(t).resize();return i(e)},arguments)},__wbg_resolve_002c4b7d9d8f6b64:function(t){let e=Promise.resolve(o(t));return i(e)},__wbg_resolvedOptions_4c36dbfa1c4ba2bf:function(t){let e=o(t).resolvedOptions();return i(e)},__wbg_restore_0cc9d8202a22679e:function(){return d(function(t,e,n){o(t).restore(o(e),o(n))},arguments)},__wbg_restyle_ec4543fa8604b448:function(t){o(t).restyle()},__wbg_scrollLeft_2b817c7719d17438:function(t){return o(t).scrollLeft},__wbg_scrollTop_0a3a77f9fcbe038e:function(t){return o(t).scrollTop},__wbg_scrollTop_4161d2a08060cb06:function(t){return o(t).scrollTop},__wbg_selectedIndex_b1465d243fcb7142:function(t){return o(t).selectedIndex},__wbg_selectionEnd_f3cba543517b4aa8:function(){return d(function(t){let e=o(t).selectionEnd;return f(e)?4294967297:e>>>0},arguments)},__wbg_selectionStart_9cd0aeff14a21252:function(){return d(function(t){let e=o(t).selectionStart;return f(e)?4294967297:e>>>0},arguments)},__wbg_selectorText_4ebdf4f8074dafea:function(t,e){let n=o(e).selectorText,_=v(n,r.__wbindgen_export,r.__wbindgen_export2),s=p;a().setInt32(t+4,s,!0),a().setInt32(t+0,_,!0)},__wbg_setAttribute_cc8e4c8a2a008508:function(){return d(function(t,e,n,_,s){var b=w(e,n),g=w(_,s);o(t).setAttribute(b,g)},arguments)},__wbg_setDragImage_76defbcc7ff30178:function(t,e,n,_){o(t).setDragImage(o(e),n,_)},__wbg_setPointerCapture_420db6f6826eb74b:function(){return d(function(t,e){o(t).setPointerCapture(e)},arguments)},__wbg_setProperty_cbb25c4e74285b39:function(){return d(function(t,e,n,_,s){var b=w(e,n),g=w(_,s);o(t).setProperty(b,g)},arguments)},__wbg_setSelectionRange_301eef1c51e01d2a:function(){return d(function(t,e,n){o(t).setSelectionRange(e>>>0,n>>>0)},arguments)},__wbg_setTimeout_eff32631ea138533:function(){return d(function(t,e,n){return o(t).setTimeout(o(e),n)},arguments)},__wbg_set_1eb0999cf5d27fc8:function(t,e,n){let _=o(t).set(o(e),o(n));return i(_)},__wbg_set_3f1d0b984ed272ed:function(t,e,n){o(t)[u(e)]=u(n)},__wbg_set_6cb8631f80447a67:function(){return d(function(t,e,n){return Reflect.set(o(t),o(e),o(n))},arguments)},__wbg_set_cache_key_07879d8e1ddc3687:function(t,e){o(t).__yew_subtree_cache_key=e>>>0},__wbg_set_capture_d52e7a585f2933c8:function(t,e){o(t).capture=e!==0},__wbg_set_checked_4b2468680005fbf7:function(t,e){o(t).checked=e!==0},__wbg_set_defaultValue_ad528b0a65ceef4a:function(){return d(function(t,e,n){var _=w(e,n);o(t).defaultValue=_},arguments)},__wbg_set_detail_fa3b358526be3a85:function(t,e){o(t).detail=o(e)},__wbg_set_dropEffect_042402609f0b7c6b:function(t,e,n){var _=w(e,n);o(t).dropEffect=_},__wbg_set_f43e577aea94465b:function(t,e,n){o(t)[e>>>0]=u(n)},__wbg_set_fb27b296001e2de9:function(){return d(function(t,e,n,_,s){var b=w(e,n),g=w(_,s);o(t)[b]=g},arguments)},__wbg_set_innerHTML_edd39677e3460291:function(t,e,n){var _=w(e,n);o(t).innerHTML=_},__wbg_set_innerText_2f1502f2d0780499:function(t,e,n){var _=w(e,n);o(t).innerText=_},__wbg_set_listener_id_673485d61ca64e47:function(t,e){o(t).__yew_listener_id=e>>>0},__wbg_set_mode_6a55f972d62a3c88:function(t,e){o(t).mode=Pt[e]},__wbg_set_nodeValue_d947eb0a476b80d7:function(t,e,n){var _=w(e,n);o(t).nodeValue=_},__wbg_set_passive_f411e67e6f28687b:function(t,e){o(t).passive=e!==0},__wbg_set_scrollLeft_8de8fc187e3a6808:function(t,e){o(t).scrollLeft=e},__wbg_set_scrollTop_bebe746cd217a3d1:function(t,e){o(t).scrollTop=e},__wbg_set_selectionEnd_01e3269db03d5d2e:function(){return d(function(t,e){o(t).selectionEnd=e===4294967297?void 0:e},arguments)},__wbg_set_selectionStart_d68d6955c07c2be1:function(){return d(function(t,e){o(t).selectionStart=e===4294967297?void 0:e},arguments)},__wbg_set_subtree_id_7f776f86c6337160:function(t,e){o(t).__yew_subtree_id=e>>>0},__wbg_set_type_148de20768639245:function(t,e,n){var _=w(e,n);o(t).type=_},__wbg_set_value_62a965e38b22b38c:function(t,e,n){var _=w(e,n);o(t).value=_},__wbg_set_value_c3556fce049236f0:function(t,e,n){var _=w(e,n);o(t).value=_},__wbg_set_value_ddc3bd01a8467bf1:function(t,e,n){var _=w(e,n);o(t).value=_},__wbg_shadowRoot_14828067c5922da7:function(t){let e=o(t).shadowRoot;return f(e)?0:i(e)},__wbg_shiftKey_5558a3288542c985:function(t){return o(t).shiftKey},__wbg_shiftKey_564be91ec842bcc4:function(t){return o(t).shiftKey},__wbg_splice_7cecda643e9c2204:function(t,e,n,_){let s=o(t).splice(e>>>0,n>>>0,o(_));return i(s)},__wbg_stack_0ed75d68575b0f3c:function(t,e){let n=o(e).stack,_=v(n,r.__wbindgen_export,r.__wbindgen_export2),s=p;a().setInt32(t+4,s,!0),a().setInt32(t+0,_,!0)},__wbg_startTime_248495bfbcb427d3:function(t){return o(t).startTime},__wbg_static_accessor_GLOBAL_12837167ad935116:function(){let t=typeof self>\"u\"?null:self;return f(t)?0:i(t)},__wbg_static_accessor_GLOBAL_THIS_e628e89ab3b1c95f:function(){let t=typeof globalThis>\"u\"?null:globalThis;return f(t)?0:i(t)},__wbg_static_accessor_PSP_4862a56cc340b894:function(){return i(J)},__wbg_static_accessor_SELF_a621d3dfbb60d0ce:function(){let t=typeof self>\"u\"?null:self;return f(t)?0:i(t)},__wbg_static_accessor_WINDOW_f8727f0cf888e0bd:function(){let t=typeof window>\"u\"?null:window;return f(t)?0:i(t)},__wbg_stopPropagation_6e5e2a085214ac63:function(t){o(t).stopPropagation()},__wbg_stringify_2fdc12d5545a89d9:function(){return d(function(t,e,n){let _=JSON.stringify(o(t),o(e),o(n));return i(_)},arguments)},__wbg_stringify_8d1cc6ff383e8bae:function(){return d(function(t){let e=JSON.stringify(o(t));return i(e)},arguments)},__wbg_styleSheets_54de627270238f6f:function(t){let e=o(t).styleSheets;return i(e)},__wbg_style_0b7c9bd318f8b807:function(t){let e=o(t).style;return i(e)},__wbg_style_fa56cf251a93275a:function(t){let e=o(t).style;return i(e)},__wbg_subtree_id_bb66e5e9d0f64dbd:function(t){let e=o(t).__yew_subtree_id;return f(e)?4294967297:e>>>0},__wbg_supportedValuesOf_e17550e88ce1d5e6:function(t){let e=Intl.supportedValuesOf(o(t));return i(e)},__wbg_table_new:function(t){let e=E.__wrap(t);return i(e)},__wbg_tagName_0cf6d7b647352f04:function(t,e){let n=o(e).tagName,_=v(n,r.__wbindgen_export,r.__wbindgen_export2),s=p;a().setInt32(t+4,s,!0),a().setInt32(t+0,_,!0)},__wbg_target_521be630ab05b11e:function(t){let e=o(t).target;return f(e)?0:i(e)},__wbg_then_0d9fe2c7b1857d32:function(t,e,n){let _=o(t).then(o(e),o(n));return i(_)},__wbg_then_b9e7b3b5f1a9e1b5:function(t,e){let n=o(t).then(o(e));return i(n)},__wbg_toString_964ff7fe6eca8362:function(t){let e=o(t).toString();return i(e)},__wbg_toggleAttribute_d89e5c9e9053c9c4:function(){return d(function(t,e,n,_){var s=w(e,n);return o(t).toggleAttribute(s,_!==0)},arguments)},__wbg_toggle_52417ca95b874e83:function(){return d(function(t,e,n){var _=w(e,n);return o(t).toggle(_)},arguments)},__wbg_top_3d27ff6f468cf3fc:function(t){return o(t).top},__wbg_trace_9007714a6fbee374:function(t){console.trace(o(t))},__wbg_trace_bd16b570941b54fb:function(t,e,n,_){console.trace(o(t),o(e),o(n),o(_))},__wbg_type_4edffca24c42b74d:function(t,e){let n=o(e).type,_=v(n,r.__wbindgen_export,r.__wbindgen_export2),s=p;a().setInt32(t+4,s,!0),a().setInt32(t+0,_,!0)},__wbg_unobserve_4fa573217bdd236b:function(t,e){o(t).unobserve(o(e))},__wbg_unobserve_c511b8702fd12e7d:function(t,e){o(t).unobserve(o(e))},__wbg_update_1a3c6e53683997b9:function(){return d(function(t,e,n,_,s){let b=o(t).update(y.__wrap(e),n===4294967297?void 0:n,_===4294967297?void 0:_,s!==0);return i(b)},arguments)},__wbg_valueAsNumber_5292e7ed56db5658:function(t){return o(t).valueAsNumber},__wbg_value_0546255b415e96c1:function(t){let e=o(t).value;return i(e)},__wbg_value_15684899da869c95:function(t,e){let n=o(e).value,_=v(n,r.__wbindgen_export,r.__wbindgen_export2),s=p;a().setInt32(t+4,s,!0),a().setInt32(t+0,_,!0)},__wbg_value_e506a07878790ca0:function(t,e){let n=o(e).value,_=v(n,r.__wbindgen_export,r.__wbindgen_export2),s=p;a().setInt32(t+4,s,!0),a().setInt32(t+0,_,!0)},__wbg_values_5da93bc719d272cf:function(t){let e=Object.values(o(t));return i(e)},__wbg_values_725507e0ae05aa44:function(t){let e=o(t).values();return i(e)},__wbg_view_new:function(t){let e=y.__wrap(t);return i(e)},__wbg_view_unwrap:function(t){return y.__unwrap(o(t))},__wbg_virtualdataslice_new:function(t){let e=z.__wrap(t);return i(e)},__wbg_warn_a40b971467b219c7:function(t,e,n,_){console.warn(o(t),o(e),o(n),o(_))},__wbg_warn_f7ae1b2e66ccb930:function(t){console.warn(o(t))},__wbg_weight_984b87b81f2dde65:function(t,e){let n=o(e).weight,_=v(n,r.__wbindgen_export,r.__wbindgen_export2),s=p;a().setInt32(t+4,s,!0),a().setInt32(t+0,_,!0)},__wbg_which_78ecd90ab7c6bdd6:function(t){return o(t).which},__wbg_width_7444cca5dfea0645:function(t){return o(t).width},__wbg_width_ae46cb8e98ee102f:function(t){return o(t).width},__wbg_write_d429ce72e918e180:function(t,e){let n=o(t).write(o(e));return i(n)},__wbindgen_cast_0000000000000001:function(t,e){let n=Y(t,e,r.__wasm_bindgen_func_elem_3150,ut);return i(n)},__wbindgen_cast_0000000000000002:function(t,e){let n=S(t,e,r.__wasm_bindgen_func_elem_3150,X);return i(n)},__wbindgen_cast_0000000000000003:function(t,e){let n=S(t,e,r.__wasm_bindgen_func_elem_3150,X);return i(n)},__wbindgen_cast_0000000000000004:function(t,e){let n=S(t,e,r.__wasm_bindgen_func_elem_3150,X);return i(n)},__wbindgen_cast_0000000000000005:function(t,e){let n=S(t,e,r.__wasm_bindgen_func_elem_3150,X);return i(n)},__wbindgen_cast_0000000000000006:function(t,e){let n=Y(t,e,r.__wasm_bindgen_func_elem_3150,ut);return i(n)},__wbindgen_cast_0000000000000007:function(t,e){let n=S(t,e,r.__wasm_bindgen_func_elem_3150,Et);return i(n)},__wbindgen_cast_0000000000000008:function(t,e){let n=Y(t,e,r.__wasm_bindgen_func_elem_13605,Ot);return i(n)},__wbindgen_cast_0000000000000009:function(t,e){let n=Y(t,e,r.__wasm_bindgen_func_elem_16753,zt);return i(n)},__wbindgen_cast_000000000000000a:function(t,e){let n=S(t,e,r.__wasm_bindgen_func_elem_17412,jt);return i(n)},__wbindgen_cast_000000000000000b:function(t,e){let n=S(t,e,r.__wasm_bindgen_func_elem_17437,Tt);return i(n)},__wbindgen_cast_000000000000000c:function(t){return i(t)},__wbindgen_cast_000000000000000d:function(t){return i(t)},__wbindgen_cast_000000000000000e:function(t,e){var n=w(t,e);return i(n)},__wbindgen_cast_000000000000000f:function(t,e){let n=Wt(t,e);return i(n)},__wbindgen_cast_0000000000000010:function(t,e){let n=Nt(t,e);return i(n)},__wbindgen_cast_0000000000000011:function(t,e){let n=qt(t,e);return i(n)},__wbindgen_cast_0000000000000012:function(t,e){let n=Dt(t,e);return i(n)},__wbindgen_cast_0000000000000013:function(t,e){let n=M(t,e);return i(n)},__wbindgen_cast_0000000000000014:function(t){let e=BigInt.asUintN(64,t);return i(e)},__wbindgen_cast_0000000000000015:function(t,e){var n=vt(t,e).slice();return r.__wbindgen_export4(t,e*4,4),i(n)},__wbindgen_cast_0000000000000016:function(t,e){var n=M(t,e).slice();return r.__wbindgen_export4(t,e*1,1),i(n)},__wbindgen_object_clone_ref:function(t){let e=o(t);return i(e)},__wbindgen_object_drop_ref:function(t){u(t)},__wbindgen_object_is_undefined:function(t){return o(t)===void 0}}}}function jt(c,t){r.__wasm_bindgen_func_elem_17415(c,t)}function Ot(c,t){let e=r.__wasm_bindgen_func_elem_14526(c,t);return u(e)}function ut(c,t,e){r.__wasm_bindgen_func_elem_5312(c,t,i(e))}function X(c,t,e){r.__wasm_bindgen_func_elem_5313(c,t,i(e))}function Et(c,t){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.__wasm_bindgen_func_elem_5310(_,c,t);var e=a().getInt32(_+0,!0),n=a().getInt32(_+4,!0);if(n)throw u(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function zt(c,t,e){try{r.__wasm_bindgen_func_elem_16872(c,t,ot(e))}finally{x[j++]=void 0}}function Tt(c,t,e){r.__wasm_bindgen_func_elem_17454(c,t,i(e))}function Mt(c,t,e,n){r.__wasm_bindgen_func_elem_24661(c,t,i(e),i(n))}var Pt=[\"open\",\"closed\"],Z=typeof FinalizationRegistry>\"u\"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(c=>r.__wbg_client_free(c>>>0,1)),bt=typeof FinalizationRegistry>\"u\"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(c=>r.__wbg_copydropdownmenuelement_free(c>>>0,1)),gt=typeof FinalizationRegistry>\"u\"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(c=>r.__wbg_exportdropdownmenuelement_free(c>>>0,1)),ft=typeof FinalizationRegistry>\"u\"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(c=>r.__wbg_genericsqlvirtualservermodel_free(c>>>0,1)),dt=typeof FinalizationRegistry>\"u\"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(c=>r.__wbg_perspectivedebugpluginelement_free(c>>>0,1)),tt=typeof FinalizationRegistry>\"u\"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(c=>r.__wbg_perspectiveviewerelement_free(c>>>0,1)),et=typeof FinalizationRegistry>\"u\"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(c=>r.__wbg_proxysession_free(c>>>0,1)),wt=typeof FinalizationRegistry>\"u\"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(c=>r.__wbg_table_free(c>>>0,1)),lt=typeof FinalizationRegistry>\"u\"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(c=>r.__wbg_view_free(c>>>0,1)),nt=typeof FinalizationRegistry>\"u\"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(c=>r.__wbg_virtualdataslice_free(c>>>0,1)),pt=typeof FinalizationRegistry>\"u\"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(c=>r.__wbg_virtualserver_free(c>>>0,1));function i(c){D===x.length&&x.push(x.length+1);let t=D;return D=x[t],x[t]=c,t}function G(c,t){if(!(c instanceof t))throw new Error(`expected instance of ${t.name}`)}function ot(c){if(j==1)throw new Error(\"out of js stack\");return x[--j]=c,j}var Q=typeof FinalizationRegistry>\"u\"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(c=>c.dtor(c.a,c.b));function _t(c){let t=typeof c;if(t==\"number\"||t==\"boolean\"||c==null)return`${c}`;if(t==\"string\")return`\"${c}\"`;if(t==\"symbol\"){let _=c.description;return _==null?\"Symbol\":`Symbol(${_})`}if(t==\"function\"){let _=c.name;return typeof _==\"string\"&&_.length>0?`Function(${_})`:\"Function\"}if(Array.isArray(c)){let _=c.length,s=\"[\";_>0&&(s+=_t(c[0]));for(let b=1;b<_;b++)s+=\", \"+_t(c[b]);return s+=\"]\",s}let e=/\\[object ([^\\]]+)\\]/.exec(toString.call(c)),n;if(e&&e.length>1)n=e[1];else return toString.call(c);if(n==\"Object\")try{return\"Object(\"+JSON.stringify(c)+\")\"}catch{return\"Object\"}return c instanceof Error?`${c.name}: ${c.message}\n${c.stack}`:n}function Lt(c){c<132||(x[c]=D,D=c)}function Wt(c,t){return c=c>>>0,Bt().subarray(c/4,c/4+t)}function Nt(c,t){return c=c>>>0,Ut().subarray(c/8,c/8+t)}function qt(c,t){return c=c>>>0,Vt().subarray(c/4,c/4+t)}function vt(c,t){c=c>>>0;let e=a(),n=[];for(let _=c;_<c+4*t;_+=4)n.push(u(e.getUint32(_,!0)));return n}function Dt(c,t){return c=c>>>0,$t().subarray(c/4,c/4+t)}function M(c,t){return c=c>>>0,C().subarray(c/1,c/1+t)}function w(c,t){return c===0?o(t):Ht(c,t)}var F=null;function a(){return(F===null||F.buffer.detached===!0||F.buffer.detached===void 0&&F.buffer!==r.memory.buffer)&&(F=new DataView(r.memory.buffer)),F}var P=null;function Bt(){return(P===null||P.byteLength===0)&&(P=new Float32Array(r.memory.buffer)),P}var L=null;function Ut(){return(L===null||L.byteLength===0)&&(L=new Float64Array(r.memory.buffer)),L}var W=null;function Vt(){return(W===null||W.byteLength===0)&&(W=new Int32Array(r.memory.buffer)),W}function Ht(c,t){return c=c>>>0,Yt(c,t)}var N=null;function $t(){return(N===null||N.byteLength===0)&&(N=new Uint32Array(r.memory.buffer)),N}var q=null;function C(){return(q===null||q.byteLength===0)&&(q=new Uint8Array(r.memory.buffer)),q}function o(c){return x[c]}function d(c,t){try{return c.apply(this,t)}catch(e){r.__wbindgen_export3(i(e))}}var x=new Array(128).fill(void 0);x.push(void 0,null,!0,!1);var D=x.length;function f(c){return c==null}function Y(c,t,e,n){let _={a:c,b:t,cnt:1,dtor:e},s=(...b)=>{_.cnt++;try{return n(_.a,_.b,...b)}finally{s._wbg_cb_unref()}};return s._wbg_cb_unref=()=>{--_.cnt===0&&(_.dtor(_.a,_.b),_.a=0,Q.unregister(_))},Q.register(s,_,_),s}function S(c,t,e,n){let _={a:c,b:t,cnt:1,dtor:e},s=(...b)=>{_.cnt++;let g=_.a;_.a=0;try{return n(g,_.b,...b)}finally{_.a=g,s._wbg_cb_unref()}};return s._wbg_cb_unref=()=>{--_.cnt===0&&(_.dtor(_.a,_.b),_.a=0,Q.unregister(_))},Q.register(s,_,_),s}function Gt(c,t){let e=t(c.length*1,1)>>>0;return C().set(c,e/1),p=c.length,e}function Jt(c,t){let e=t(c.length*4,4)>>>0,n=a();for(let _=0;_<c.length;_++)n.setUint32(e+4*_,i(c[_]),!0);return p=c.length,e}function v(c,t,e){if(e===void 0){let g=mt.encode(c),l=t(g.length,1)>>>0;return C().subarray(l,l+g.length).set(g),p=g.length,l}let n=c.length,_=t(n,1)>>>0,s=C(),b=0;for(;b<n;b++){let g=c.charCodeAt(b);if(g>127)break;s[_+b]=g}if(b!==n){b!==0&&(c=c.slice(b)),_=e(_,n,n=b+c.length*3,1)>>>0;let g=C().subarray(_+b,_+n),l=mt.encodeInto(c,g);b+=l.written,_=e(_,n,b,1)>>>0}return p=b,_}var j=128;function u(c){let t=o(c);return Lt(c),t}var K=new TextDecoder(\"utf-8\",{ignoreBOM:!0,fatal:!0});K.decode();var Xt=2146435072,rt=0;function Yt(c,t){return rt+=t,rt>=Xt&&(K=new TextDecoder(\"utf-8\",{ignoreBOM:!0,fatal:!0}),K.decode(),rt=t),K.decode(C().subarray(c,c+t))}var mt=new TextEncoder,p=0,Kt,r;function yt(c,t){return r=c.exports,Kt=t,F=null,P=null,L=null,W=null,N=null,q=null,r}async function Qt(c,t){if(typeof Response==\"function\"&&c instanceof Response){if(typeof WebAssembly.instantiateStreaming==\"function\")try{return await WebAssembly.instantiateStreaming(c,t)}catch(_){if(c.ok&&e(c.type)&&c.headers.get(\"Content-Type\")!==\"application/wasm\")console.warn(\"`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\\n\",_);else throw _}let n=await c.arrayBuffer();return await WebAssembly.instantiate(n,t)}else{let n=await WebAssembly.instantiate(c,t);return n instanceof WebAssembly.Instance?{instance:n,module:c}:n}function e(n){switch(n){case\"basic\":case\"cors\":case\"default\":return!0}return!1}}function Zt(c){if(r!==void 0)return r;c!==void 0&&(Object.getPrototypeOf(c)===Object.prototype?{module:c}=c:console.warn(\"using deprecated parameters for `initSync()`; pass a single object instead\"));let t=ht();c instanceof WebAssembly.Module||(c=new WebAssembly.Module(c));let e=new WebAssembly.Instance(c,t);return yt(e,c)}async function xt(c){if(r!==void 0)return r;c!==void 0&&(Object.getPrototypeOf(c)===Object.prototype?{module_or_path:c}=c:console.warn(\"using deprecated parameters for the initialization function; pass a single object instead\"));let t=ht();(typeof c==\"string\"||typeof Request==\"function\"&&c instanceof Request||typeof URL==\"function\"&&c instanceof URL)&&(c=fetch(c));let{instance:e,module:n}=await Qt(await c,t);return yt(e,n)}export{A as Client,B as CopyDropDownMenuElement,U as ExportDropDownMenuElement,V as GenericSQLVirtualServerModel,H as PerspectiveDebugPluginElement,R as PerspectiveViewerElement,O as ProxySession,E as Table,y as View,z as VirtualDataSlice,$ as VirtualServer,xt as default,Ft as get_wasm_module,At as get_worker_url,Rt as init,Zt as initSync,Ct as registerPlugin};\n", "\n import workerSource from \"./perspective-viewer.worker\";\n let cached = null;\n export async function getWorkerURL() {\n if (cached) return cached;\n const blob = new Blob([workerSource], {\n type: \"application/javascript\",\n });\n\n cached = URL.createObjectURL(blob);\n return cached;\n }\n\n function make_host(a, b) {\n return {\n addEventListener(type, callback) {\n if (type === \"message\") {\n a.push(callback);\n }\n },\n removeEventListener(type, callback) {\n const idx = a.indexOf(callback);\n if (idx > -1) {\n a.splice(idx, 1);\n }\n },\n postMessage(msg, ports) {\n for (const listener of b) {\n listener({\n data: msg,\n ports: ports,\n });\n }\n },\n terminate() {},\n location: { href: \"\" },\n };\n }\n\n function run_single_threaded() {\n console.warn(\n \"Running perspective in single-threaded mode\"\n );\n const f = Function(\n \"const self = arguments[0];\" + workerSource\n );\n const workers = [];\n const mains = [];\n f(make_host(workers, mains));\n return make_host(mains, workers);\n }\n\n export async function initialize(opts) {\n const workerOpts = opts || {\n type: \"module\",\n };\n try {\n if (\n typeof window !== \"undefined\" &&\n window.location &&\n window.location.protocol &&\n window.location.protocol.startsWith(\n \"file\"\n )\n ) {\n console.warn(\n \"file:// protocol does not reliably support Web Workers\"\n );\n return run_single_threaded();\n }\n\n const url = await getWorkerURL();\n const worker = new Worker(url, workerOpts);\n return worker;\n } catch (e) {\n console.error(\n \"Error instantiating worker; falling back to single-threaded mode\",\n e\n );\n return run_single_threaded();\n }\n }\n\n export default getWorkerURL;\n ", "// \u250F\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2513\n// \u2503 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2588 \u2588 \u2588 \u2588 \u2588\u2584 \u2580\u2588\u2588\u2588 \u2588 \u2503\n// \u2503 \u2584\u2584\u2584\u2584\u2584\u2588 \u2588\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584\u2584\u2588 \u2580\u2580\u2580\u2580\u2580\u2588\u2580\u2580\u2580\u2580\u2580 \u2588 \u2580\u2580\u2580\u2580\u2580\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2584 \u2580\u2588 \u2588 \u2580\u2580\u2580\u2580\u2580 \u2503\n// \u2503 \u2588\u2580\u2580\u2580\u2580\u2580 \u2588\u2580\u2580\u2580\u2580\u2580 \u2588\u2580\u2588\u2588\u2580\u2580 \u2584\u2584\u2584\u2584\u2584 \u2588 \u2584\u2584\u2584\u2584\u2584\u2588 \u2584\u2584\u2584\u2584\u2584\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2584 \u2588 \u2584\u2584\u2584\u2584\u2584 \u2503\n// \u2503 \u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2580\u2588\u2584 \u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2584 \u2588 \u2503\n// \u2523\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u252B\n// \u2503 Copyright (c) 2017, the Perspective Authors. \u2503\n// \u2503 \u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C \u2503\n// \u2503 This file is part of the Perspective library, distributed under the terms \u2503\n// \u2503 of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). \u2503\n// \u2517\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u251B\n\nimport type * as wasm_module_type from \"../../dist/wasm/perspective-viewer.js\";\nimport { load_wasm_stage_0 } from \"@perspective-dev/client/src/ts/wasm/decompress.ts\";\n\n// @ts-ignore\nimport * as worker_url from \"./perspective-viewer.worker\";\n\nexport async function init_client(\n wasm_binary:\n | Promise<Response | ArrayBuffer | Uint8Array>\n | Response\n | ArrayBuffer\n | Uint8Array,\n wasm_module?: typeof wasm_module_type,\n) {\n // @ts-ignore\n const url = await worker_url.getWorkerURL();\n if (wasm_module === undefined) {\n wasm_module = (await import(url)) as typeof wasm_module_type;\n }\n\n const unzipped = await load_wasm_stage_0(wasm_binary);\n const module_or_path = await WebAssembly.compile(unzipped as BufferSource);\n await wasm_module.default({ module_or_path });\n await wasm_module.init(module_or_path, url);\n}\n", "// \u250F\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2513\n// \u2503 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2588 \u2588 \u2588 \u2588 \u2588\u2584 \u2580\u2588\u2588\u2588 \u2588 \u2503\n// \u2503 \u2584\u2584\u2584\u2584\u2584\u2588 \u2588\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584\u2584\u2588 \u2580\u2580\u2580\u2580\u2580\u2588\u2580\u2580\u2580\u2580\u2580 \u2588 \u2580\u2580\u2580\u2580\u2580\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2584 \u2580\u2588 \u2588 \u2580\u2580\u2580\u2580\u2580 \u2503\n// \u2503 \u2588\u2580\u2580\u2580\u2580\u2580 \u2588\u2580\u2580\u2580\u2580\u2580 \u2588\u2580\u2588\u2588\u2580\u2580 \u2584\u2584\u2584\u2584\u2584 \u2588 \u2584\u2584\u2584\u2584\u2584\u2588 \u2584\u2584\u2584\u2584\u2584\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2584 \u2588 \u2584\u2584\u2584\u2584\u2584 \u2503\n// \u2503 \u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2580\u2588\u2584 \u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2584 \u2588 \u2503\n// \u2523\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u252B\n// \u2503 Copyright (c) 2017, the Perspective Authors. \u2503\n// \u2503 \u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C \u2503\n// \u2503 This file is part of the Perspective library, distributed under the terms \u2503\n// \u2503 of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). \u2503\n// \u2517\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u251B\n\n/**\n * Module for the `<perspective-viewer>` custom element. This module has no\n * (real) exports, but importing it has a side effect: the\n * `PerspectiveViewerElement` class is registered as a custom element, after\n * which it can be used as a standard DOM element.\n *\n * Though `<perspective-viewer>` is written mostly in Rust, the nature\n * of WebAssembly's compilation makes it a dynamic module; in order to\n * guarantee that the Custom Elements extension methods are registered\n * synchronously with this package's import, we need perform said registration\n * within this wrapper module. As a result, the API methods of the Custom\n * Elements are all `async` (as they must await the wasm module instance).\n *\n * The documentation in this module defines the instance structure of a\n * `<perspective-viewer>` DOM object instantiated typically, through HTML or any\n * relevent DOM method e.g. `document.createElement(\"perspective-viewer\")` or\n * `document.getElementsByTagName(\"perspective-viewer\")`.\n *\n * @module perspective-viewer\n */\n\nexport { IPerspectiveViewerPlugin } from \"./plugin\";\nexport { HTMLPerspectiveViewerPluginElement } from \"./plugin\";\n\nexport {\n createNumberFormatter,\n createDatetimeFormatter,\n createDateFormatter,\n sourceColumn,\n} from \"./column-format\";\nexport type { NumberFormatConfig, DateFormatConfig } from \"./column-format\";\n\nexport type * from \"./extensions.ts\";\nexport { PerspectiveSelectDetail } from \"./extensions.ts\";\nexport type * from \"./ts-rs/ViewerConfigUpdate.d.ts\";\nexport type * from \"./ts-rs/ViewerConfig.d.ts\";\nexport type * from \"./ts-rs/Filter.d.ts\";\nexport type * from \"./ts-rs/FilterTerm.d.ts\";\nexport type * from \"./ts-rs/FilterReducer.d.ts\";\nexport type * from \"./ts-rs/PluginStaticConfig.ts\";\n\nexport { init_client } from \"./bootstrap\";\nimport { init_client } from \"./bootstrap\";\n\nexport default { init_client };\n", "// \u250F\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2513\n// \u2503 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2588 \u2588 \u2588 \u2588 \u2588\u2584 \u2580\u2588\u2588\u2588 \u2588 \u2503\n// \u2503 \u2584\u2584\u2584\u2584\u2584\u2588 \u2588\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584\u2584\u2588 \u2580\u2580\u2580\u2580\u2580\u2588\u2580\u2580\u2580\u2580\u2580 \u2588 \u2580\u2580\u2580\u2580\u2580\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2584 \u2580\u2588 \u2588 \u2580\u2580\u2580\u2580\u2580 \u2503\n// \u2503 \u2588\u2580\u2580\u2580\u2580\u2580 \u2588\u2580\u2580\u2580\u2580\u2580 \u2588\u2580\u2588\u2588\u2580\u2580 \u2584\u2584\u2584\u2584\u2584 \u2588 \u2584\u2584\u2584\u2584\u2584\u2588 \u2584\u2584\u2584\u2584\u2584\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2584 \u2588 \u2584\u2584\u2584\u2584\u2584 \u2503\n// \u2503 \u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2580\u2588\u2584 \u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588 \u2588\u2588\u2588\u258C\u2590\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2584 \u2588 \u2503\n// \u2523\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u252B\n// \u2503 Copyright (c) 2017, the Perspective Authors. \u2503\n// \u2503 \u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C\u254C \u2503\n// \u2503 This file is part of the Perspective library, distributed under the terms \u2503\n// \u2503 of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). \u2503\n// \u2517\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u251B\n\nimport perspective_viewer from \"./perspective-viewer.ts\";\nexport * from \"./perspective-viewer.ts\";\n\n// @ts-ignore\nimport client_wasm from \"../../dist/wasm/perspective-viewer.wasm\";\n\nawait perspective_viewer.init_client(client_wasm as any as ArrayBuffer);\n\nconsole.warn(\"Perspective wasn been initialized in inline mode\");\n\nexport default perspective_viewer;\n"],
5
+ "mappings": "mWAoJO,IAAMA,EAAN,cACK,WAEZ,CACI,aAAc,CACV,MAAM,CACV,CAEA,mBAAwC,CACpC,MAAO,CACH,KAAM,QACN,YAAa,SACb,oBAAqB,CAAC,CAC1B,CACJ,CAEA,qBAA2B,CACvB,MAAO,CAAC,CACZ,CAEA,MAAM,OAAOC,EAA2B,CACpC,OAAO,KAAK,KAAKA,CAAI,CACzB,CAEA,MAAM,KAAKA,EAA2B,CAClC,KAAK,MAAM,gBAAkB,OAC7B,IAAMC,EAAM,MAAMD,EAAK,OAAO,EACxBE,EAAM,oEACZ,KAAK,UAAY,eAAeA,CAAG,KAAKD,CAAG,QAC/C,CAEA,MAAM,OAAuB,CACzB,KAAK,UAAY,EACrB,CAEA,MAAM,OAAOD,EAA2B,CAExC,CAEA,SAAU,CAEV,CAEA,SAAgB,CAEhB,CAEA,MAAM,QAAwB,CAE9B,CAEA,IAAI,oBAA8B,CAC9B,MAAO,EACX,CACJ,EC5IA,IAAMG,EAAoE,CACtE,MAAO,CACH,MAAO,UACP,sBAAuB,EACvB,sBAAuB,CAC3B,CACJ,EAMMC,EAAuD,CACzD,UAAW,QACX,UAAW,QACf,EAEMC,EAAmD,CACrD,UAAW,OACf,EAEO,SAASC,EACZC,EACAC,EACiB,CACjB,IAAMC,EACFD,GAAOL,EAAwBI,CAAI,GAAK,CAAC,EAC7C,OAAO,IAAI,KAAK,aAAa,UAAU,UAAuBE,CAAI,CACtE,CAEO,SAASC,EACZF,EACmB,CACnB,GAAI,CAACA,GAAOA,EAAI,SAAW,SAAU,CACjC,IAAMC,EAAmC,CACrC,SAAUD,GAAK,SACf,UACIA,GAAK,YAAc,WACb,OACCA,GAAK,WAAaJ,EAAyB,UACtD,UACII,GAAK,YAAc,WACb,OACCA,GAAK,WAAaJ,EAAyB,SAC1D,EAEA,OAAO,IAAI,KAAK,eAAe,UAAU,UAAuBK,CAAI,CACxE,CAEA,IAAMA,EAAmC,CACrC,SAAUD,EAAI,SACd,OAAQA,EAAI,QAAU,GACtB,uBAAwBA,EAAI,sBAChC,EACA,OAAIA,EAAI,OAAS,aACbC,EAAK,KAAOD,EAAI,MAAQ,WAExBA,EAAI,QAAU,aACdC,EAAK,MAAQD,EAAI,OAAS,WAE1BA,EAAI,MAAQ,aACZC,EAAK,IAAMD,EAAI,KAAO,WAEtBA,EAAI,SAAWA,EAAI,UAAY,aAC/BC,EAAK,QAAUD,EAAI,SAEnBA,EAAI,OAAS,aACbC,EAAK,KAAOD,EAAI,MAAQ,WAExBA,EAAI,SAAW,aACfC,EAAK,OAASD,EAAI,QAAU,WAE5BA,EAAI,SAAW,aACfC,EAAK,OAASD,EAAI,QAAU,WAEzB,IAAI,KAAK,eAAe,UAAU,UAAuBC,CAAI,CACxE,CAEO,SAASE,EACZH,EACmB,CACnB,IAAMC,EAAmC,CACrC,SAAU,MACV,UACID,GAAK,YAAc,WACb,OACCA,GAAK,WAAaH,EAAqB,SACtD,EACA,OAAO,IAAI,KAAK,eAAe,UAAU,UAAuBI,CAAI,CACxE,CAQO,SAASG,EAAaC,EAAsB,CAC/C,OAAOA,EAAK,MAAM,GAAG,EAAE,GAAG,EAAE,GAAKA,CACrC,CC3IO,IAAMC,EAAN,KAA8B,CACjC,SACA,IACA,aACA,cACA,cACA,YACIC,EACAC,EACAC,EACAC,EACAC,EACF,CACE,KAAK,SAAWJ,EAChB,KAAK,IAAMC,EACX,KAAK,aAAeC,EACpB,KAAK,cAAgBC,EACrB,KAAK,cAAgBC,CACzB,CAEA,IAAI,eAA0B,CAC1B,OAAO,KAAK,cAAc,QAASC,GAAMA,EAAE,QAAU,CAAC,CAAC,CAC3D,CAEA,IAAI,eAA0B,CAC1B,OAAO,KAAK,cAAc,QAASA,GAAMA,EAAE,QAAU,CAAC,CAAC,CAC3D,CACJ,ECtCA,eAAsBC,EAAQC,EAAO,CACjC,IAAIC,EACA,OAAOD,GAAO,MAAS,aACvBA,EAAQ,MAAMA,GAGdA,aAAiB,SACjBC,EAAM,MAAM,YAAY,qBAAqBD,CAAK,EAC3C,OAAOA,GAAU,SACxBC,EAAM,MAAM,YAAY,qBAAqB,MAAMD,CAAK,CAAC,EAClDA,aAAiB,YACxBC,EAAM,MAAM,YAAY,YAAYD,CAAK,EAClCA,aAAiB,WACxBC,EAAM,MAAM,YAAY,YAAYD,EAAM,MAAM,EAEhDC,EAAMD,EAGV,IAAME,EAAOD,EAAI,SAAS,QACpB,CAACE,CAAO,EAAI,YAAY,OAAO,eAAeF,EAAI,OAAQ,aAAa,EACvE,CAACG,CAAe,EAAI,YAAY,OAAO,eAAeH,EAAI,OAAQ,SAAS,EAC3EI,EAAa,IAAI,SAASD,CAAe,EAAE,UAAU,EAAG,EAAI,EAC5DE,EAAMJ,EAAK,OAAOC,EAAQ,UAAU,EAC1C,IAAI,WAAWD,EAAK,OAAO,MAAM,EAAE,IAAI,IAAI,WAAWC,CAAO,EAAGG,CAAG,EACnE,IAAMC,EAASL,EAAK,QAAQC,EAAQ,WAAYE,CAAU,EAC1D,OAAO,IAAI,WAAWH,EAAK,OAAO,MAAM,EAAE,MAAMK,EAAQF,EAAaE,CAAM,CAC/E,CCtBA,GAAI,OAAO,YAAgB,IACvB,MAAM,IAAI,MAAM,4BAA4B,EA8BhD,eAAsBC,EAClBC,EAKmB,CACfA,aAAgB,WAChBA,EAAO,MAAMA,EAAK,GAGtB,GAAI,CACA,OAAO,MAAMC,EAAQD,CAAmB,CAC5C,MAAY,CACR,eAAQ,KAAK,uCAAuC,EAC7C,IAAI,WAAWA,CAAmB,CAC7C,CACJ,CC/DA,IAAAE,EAAA,w5gECE4B,IAAIC,EAAS,KACb,eAAsBC,GAAe,CACjC,GAAID,EAAQ,OAAOA,EACnB,IAAME,EAAO,IAAI,KAAK,CAACC,CAAY,EAAG,CAClC,KAAM,wBACV,CAAC,EAED,OAAAH,EAAS,IAAI,gBAAgBE,CAAI,EAC1BF,CACX,CCO5B,eAAsBI,EAClBC,EAKAC,EACF,CAEE,IAAMC,EAAM,MAAiBC,EAAa,EACtCF,IAAgB,SAChBA,EAAe,MAAM,OAAOC,IAGhC,IAAME,EAAW,MAAMC,EAAkBL,CAAW,EAC9CM,EAAiB,MAAM,YAAY,QAAQF,CAAwB,EACzE,MAAMH,EAAY,QAAQ,CAAE,eAAAK,CAAe,CAAC,EAC5C,MAAML,EAAY,KAAKK,EAAgBJ,CAAG,CAC9C,CCoBA,IAAOK,EAAQ,CAAE,YAAAC,CAAY,E,o72lICtC7B,MAAMC,EAAmB,YAAYA,CAAiC,EAEtE,QAAQ,KAAK,kDAAkD,EAE/D,IAAOC,GAAQD",
6
6
  "names": ["HTMLPerspectiveViewerPluginElement", "view", "csv", "css", "NUMERIC_LEGACY_DEFAULTS", "DATETIME_LEGACY_DEFAULTS", "DATE_LEGACY_DEFAULTS", "createNumberFormatter", "type", "cfg", "opts", "createDatetimeFormatter", "createDateFormatter", "sourceColumn", "path", "PerspectiveSelectDetail", "selected", "row", "column_names", "removeConfigs", "insertConfigs", "x", "extract", "input", "bin", "inst", "payload", "raw_length_view", "raw_length", "ptr", "offset", "load_wasm_stage_0", "wasm", "extract", "perspective_viewer_default", "cached", "getWorkerURL", "blob", "perspective_viewer_default", "init_client", "wasm_binary", "wasm_module", "url", "getWorkerURL", "unzipped", "load_wasm_stage_0", "module_or_path", "perspective_viewer_default", "init_client", "perspective_viewer_default", "perspective_viewer_inline_default"]
7
7
  }