From edb4c5aaa48ce0014f36f7af4e8caa981e25f77f Mon Sep 17 00:00:00 2001 From: Abstra Bot Date: Fri, 18 Aug 2023 17:14:46 +0000 Subject: [PATCH] Update abstra-lib --- abstra_server/apps/__init__.py | 5 +--- ...ue_type_script_setup_true_lang.9a3f9909.js | 2 ++ ...ue_type_script_setup_true_lang.9bc2be06.js | 2 -- ...piKeys.ee011ffc.js => ApiKeys.cd17e8f1.js} | 4 ++-- .../dist/assets/BackButton.38e76e75.js | 2 -- .../dist/assets/BackButton.677abc51.js | 2 ++ .../dist/assets/BackButton.cd31ec0c.js | 2 -- .../dist/assets/BackButton.ec736006.js | 2 ++ abstra_statics/dist/assets/Builds.ddad88aa.js | 4 ---- abstra_statics/dist/assets/Builds.f10692eb.js | 4 ++++ .../dist/assets/CircularLoading.1e68d2b1.js | 2 ++ .../dist/assets/CircularLoading.2fb746db.js | 2 -- ...079edd8.js => ConnectorEditor.6f621852.js} | 4 ++-- .../dist/assets/Connectors.31312640.js | 2 -- .../dist/assets/Connectors.8da89729.js | 2 ++ ...dView.674ca9db.js => CrudView.87a92735.js} | 4 ++-- ...tor.45000c34.js => DashEditor.695e56d1.js} | 4 ++-- ...yer.0888e5b9.js => DashPlayer.6d1530bb.js} | 4 ++-- .../dist/assets/DashPreview.252c24e9.js | 2 ++ .../dist/assets/DashPreview.848902c1.js | 2 -- abstra_statics/dist/assets/Dashes.9d06c0b5.js | 2 ++ abstra_statics/dist/assets/Dashes.c57c633c.js | 2 -- .../dist/assets/DocsButton.0b9b3a67.js | 2 -- .../dist/assets/DocsButton.495d0473.js | 2 ++ ...u.9edc1223.js => DropdownMenu.c973057b.js} | 4 ++-- ...nvVars.3d3c8ce6.js => EnvVars.6a0b7ff6.js} | 4 ++-- .../{Error.0e8ed62a.js => Error.ecdc8e8a.js} | 4 ++-- ...tor.1f8c0fb4.js => FormEditor.f43de75d.js} | 4 ++-- .../dist/assets/FormPreview.66f90019.js | 2 ++ .../dist/assets/FormPreview.bbe125e7.js | 2 -- .../{Forms.282bf526.js => Forms.eb14daf1.js} | 4 ++-- abstra_statics/dist/assets/Home.07e12688.js | 2 -- abstra_statics/dist/assets/Home.c2515fd7.js | 2 ++ .../dist/assets/HookEditor.737124d4.js | 2 ++ .../dist/assets/HookEditor.c565851d.js | 2 -- abstra_statics/dist/assets/Hooks.45caa7ab.js | 2 -- abstra_statics/dist/assets/Hooks.c53952b8.js | 2 ++ ...itor.750a19ad.js => JobEditor.57ef240b.js} | 4 ++-- abstra_statics/dist/assets/Jobs.3054743d.js | 2 -- abstra_statics/dist/assets/Jobs.d903c57a.js | 2 ++ .../dist/assets/LoadingIndicator.a20841c3.js | 2 -- .../dist/assets/LoadingIndicator.d4ffd545.js | 2 ++ abstra_statics/dist/assets/Login.9fadb45e.js | 2 ++ abstra_statics/dist/assets/Login.f9c518ef.js | 2 -- .../{Logs.f1fbf60c.js => Logs.38d26f92.js} | 4 ++-- .../dist/assets/Members.af8492bb.js | 2 ++ .../dist/assets/Members.fc190008.js | 2 -- abstra_statics/dist/assets/Modal.32a3d62d.js | 2 -- abstra_statics/dist/assets/Modal.43c3d47a.js | 2 ++ abstra_statics/dist/assets/Navbar.03aff786.js | 2 ++ abstra_statics/dist/assets/Navbar.2ae068c3.js | 2 -- .../dist/assets/Organization.36311c7f.js | 2 ++ .../dist/assets/Organization.4b6159bc.js | 2 -- .../assets/OrganizationSettings.5fbb0747.js | 2 -- .../assets/OrganizationSettings.7da565f5.js | 2 ++ .../dist/assets/Organizations.224909fb.js | 2 ++ .../dist/assets/Organizations.712a63f6.js | 2 -- ...s.15dd7595.js => Passwordless.7161b834.js} | 4 ++-- ...{Player.616482e5.js => Player.4d7db160.js} | 4 ++-- ...r.9ff5d98a.js => PlayerNavbar.fe11d508.js} | 4 ++-- .../dist/assets/PreviewButton.70ce525c.js | 2 ++ .../dist/assets/PreviewButton.f29c359b.js | 2 -- .../dist/assets/Project.119b9b1c.js | 2 -- .../dist/assets/Project.5e72a606.js | 2 ++ ...c36ee31.js => ProjectSettings.c0546396.js} | 4 ++-- .../dist/assets/Projects.b96ed09a.js | 2 ++ .../dist/assets/Projects.c6bacab0.js | 2 -- .../dist/assets/RuntimeList.8704ae12.js | 2 -- .../dist/assets/RuntimeList.ec9e2b4b.js | 2 ++ .../dist/assets/SaveButton.b678d3d3.js | 2 ++ .../dist/assets/SaveButton.e20203fa.js | 2 -- .../dist/assets/Sidebar.09692155.js | 2 -- .../dist/assets/Sidebar.2a0e2b35.js | 2 ++ ....852ccd89.js => SidebarEditor.62de4759.js} | 4 ++-- ...f7a44b42.js => SidebarPreview.693e60b3.js} | 4 ++-- ...or.acc5581f.js => StyleEditor.2dd12e40.js} | 6 ++--- abstra_statics/dist/assets/Tab.27dc38aa.js | 2 ++ abstra_statics/dist/assets/Tab.7855495c.js | 2 -- .../dist/assets/TableEditor.271a6f83.js | 2 -- .../dist/assets/TableEditor.b499e372.js | 2 ++ abstra_statics/dist/assets/Tables.bc03580c.js | 2 -- abstra_statics/dist/assets/Tables.d21da407.js | 2 ++ .../dist/assets/Tooltip.93ae2394.js | 2 -- .../dist/assets/Tooltip.f700ff7d.js | 2 ++ ...e_type_script_setup_true_lang.35587b62.js} | 4 ++-- ....b91d684d.js => WidgetPreview.d19ff7f7.js} | 4 ++-- .../dist/assets/WidgetsFrame.aac2edff.js | 2 ++ .../dist/assets/WidgetsFrame.c900894c.js | 2 -- ...pace.3ed16c97.js => Workspace.a75d1f25.js} | 6 ++--- ...d.2bc1b71f.js => activeRecord.adfc6223.js} | 4 ++-- .../dist/assets/asyncComputed.31994732.js | 2 ++ .../dist/assets/asyncComputed.4b275614.js | 2 -- ...{broker.4d1bc0fe.js => broker.988d8f9b.js} | 4 ++-- .../{build.dca4605d.js => build.56ee1e90.js} | 4 ++-- ...{colors.b2406923.js => colors.868ae049.js} | 4 ++-- ...ctor.01592434.js => connector.83eaa2db.js} | 4 ++-- .../dist/assets/console.3ec2403f.js | 2 ++ .../dist/assets/console.f6e915fa.js | 2 -- ...ssMode.f4931ed2.js => cssMode.427d9b2f.js} | 4 ++-- ...{dashes.9a4cf820.js => dashes.3c9b04b3.js} | 4 ++-- abstra_statics/dist/assets/editor.725428d3.js | 2 -- abstra_statics/dist/assets/editor.e185cc3f.js | 2 ++ ...in.aa43f13b.js => editor.main.2331c6e5.js} | 14 +++++------ ...teJs.9eb1c025.js => executeJs.87b204c8.js} | 4 ++-- .../{forms.9088f82a.js => forms.f5353181.js} | 4 ++-- ...r2.e187740c.js => freemarker2.52d23530.js} | 4 ++-- .../dist/assets/gateway.2edca867.js | 2 ++ .../dist/assets/gateway.63e02d1d.js | 2 -- ...ars.c84277e3.js => handlebars.77e555cf.js} | 6 ++--- .../{hooks.56004b79.js => hooks.fd4bb08f.js} | 4 ++-- .../{html.4ba9e625.js => html.e9b85501.js} | 6 ++--- ...lMode.c0ca6de5.js => htmlMode.ca51a268.js} | 4 ++-- .../{icons.9d575a00.js => icons.39dfa322.js} | 4 ++-- .../{index.776642db.js => index.7d1457d9.js} | 4 ++-- .../{index.24c9f37d.js => index.7fea4022.js} | 4 ++-- ...ipt.faa450b6.js => javascript.15f651ca.js} | 6 ++--- .../{jobs.99d61147.js => jobs.d0693d2f.js} | 4 ++-- ...nMode.437d5ffb.js => jsonMode.5e64dbdf.js} | 4 ++-- ...{liquid.daa84413.js => liquid.7ed43a30.js} | 6 ++--- .../{login.7c65daa3.js => login.ce8787fb.js} | 4 ++-- ...{lottie.8f58e4c7.js => lottie.234eb92e.js} | 4 ++-- ...{member.6c1a1ede.js => member.f9b469b1.js} | 4 ++-- ...n.dde8e095.js => organization.abd54459.js} | 4 ++-- ...6a7.js => passwordlessManager.afd7d1d0.js} | 4 ++-- abstra_statics/dist/assets/player.1871538e.js | 2 -- abstra_statics/dist/assets/player.3af67cd1.js | 2 ++ .../dist/assets/project.71f5fd7c.js | 2 -- .../dist/assets/project.af2b2708.js | 2 ++ ...{pubsub.909df758.js => pubsub.f85a17d2.js} | 4 ++-- ...{python.cbb8b35a.js => python.621b12c7.js} | 6 ++--- .../{razor.10cd3c04.js => razor.0216e359.js} | 6 ++--- ...fe0df5a.js => registerWidgets.cb3a7b8d.js} | 24 +++++++++---------- ...ata.331b4b09.js => runnerData.7b7cb682.js} | 4 ++-- ...{tables.7792ead3.js => tables.b367c7a5.js} | 4 ++-- ...{tsMode.a31fb17b.js => tsMode.2820b8e7.js} | 4 ++-- ...ipt.71d17c95.js => typescript.b253befb.js} | 6 ++--- abstra_statics/dist/assets/uuid.0e63ad64.js | 2 ++ abstra_statics/dist/assets/uuid.8e57fc19.js | 2 -- ...b.js => vue-quill.esm-bundler.8d697628.js} | 4 ++-- ...ces.220ebb5a.js => workspaces.5f21a554.js} | 4 ++-- .../{xml.67d02d73.js => xml.22301ab3.js} | 6 ++--- .../{yaml.d30cc4b0.js => yaml.1fee6ec9.js} | 6 ++--- abstra_statics/dist/console.html | 10 ++++---- abstra_statics/dist/editor.html | 6 ++--- abstra_statics/dist/player.html | 4 ++-- 145 files changed, 241 insertions(+), 244 deletions(-) create mode 100644 abstra_statics/dist/assets/ActionButton.vue_vue_type_script_setup_true_lang.9a3f9909.js delete mode 100644 abstra_statics/dist/assets/ActionButton.vue_vue_type_script_setup_true_lang.9bc2be06.js rename abstra_statics/dist/assets/{ApiKeys.ee011ffc.js => ApiKeys.cd17e8f1.js} (70%) delete mode 100644 abstra_statics/dist/assets/BackButton.38e76e75.js create mode 100644 abstra_statics/dist/assets/BackButton.677abc51.js delete mode 100644 abstra_statics/dist/assets/BackButton.cd31ec0c.js create mode 100644 abstra_statics/dist/assets/BackButton.ec736006.js delete mode 100644 abstra_statics/dist/assets/Builds.ddad88aa.js create mode 100644 abstra_statics/dist/assets/Builds.f10692eb.js create mode 100644 abstra_statics/dist/assets/CircularLoading.1e68d2b1.js delete mode 100644 abstra_statics/dist/assets/CircularLoading.2fb746db.js rename abstra_statics/dist/assets/{ConnectorEditor.8079edd8.js => ConnectorEditor.6f621852.js} (79%) delete mode 100644 abstra_statics/dist/assets/Connectors.31312640.js create mode 100644 abstra_statics/dist/assets/Connectors.8da89729.js rename abstra_statics/dist/assets/{CrudView.674ca9db.js => CrudView.87a92735.js} (71%) rename abstra_statics/dist/assets/{DashEditor.45000c34.js => DashEditor.695e56d1.js} (98%) rename abstra_statics/dist/assets/{DashPlayer.0888e5b9.js => DashPlayer.6d1530bb.js} (93%) create mode 100644 abstra_statics/dist/assets/DashPreview.252c24e9.js delete mode 100644 abstra_statics/dist/assets/DashPreview.848902c1.js create mode 100644 abstra_statics/dist/assets/Dashes.9d06c0b5.js delete mode 100644 abstra_statics/dist/assets/Dashes.c57c633c.js delete mode 100644 abstra_statics/dist/assets/DocsButton.0b9b3a67.js create mode 100644 abstra_statics/dist/assets/DocsButton.495d0473.js rename abstra_statics/dist/assets/{DropdownMenu.9edc1223.js => DropdownMenu.c973057b.js} (88%) rename abstra_statics/dist/assets/{EnvVars.3d3c8ce6.js => EnvVars.6a0b7ff6.js} (60%) rename abstra_statics/dist/assets/{Error.0e8ed62a.js => Error.ecdc8e8a.js} (76%) rename abstra_statics/dist/assets/{FormEditor.1f8c0fb4.js => FormEditor.f43de75d.js} (50%) create mode 100644 abstra_statics/dist/assets/FormPreview.66f90019.js delete mode 100644 abstra_statics/dist/assets/FormPreview.bbe125e7.js rename abstra_statics/dist/assets/{Forms.282bf526.js => Forms.eb14daf1.js} (70%) delete mode 100644 abstra_statics/dist/assets/Home.07e12688.js create mode 100644 abstra_statics/dist/assets/Home.c2515fd7.js create mode 100644 abstra_statics/dist/assets/HookEditor.737124d4.js delete mode 100644 abstra_statics/dist/assets/HookEditor.c565851d.js delete mode 100644 abstra_statics/dist/assets/Hooks.45caa7ab.js create mode 100644 abstra_statics/dist/assets/Hooks.c53952b8.js rename abstra_statics/dist/assets/{JobEditor.750a19ad.js => JobEditor.57ef240b.js} (96%) delete mode 100644 abstra_statics/dist/assets/Jobs.3054743d.js create mode 100644 abstra_statics/dist/assets/Jobs.d903c57a.js delete mode 100644 abstra_statics/dist/assets/LoadingIndicator.a20841c3.js create mode 100644 abstra_statics/dist/assets/LoadingIndicator.d4ffd545.js create mode 100644 abstra_statics/dist/assets/Login.9fadb45e.js delete mode 100644 abstra_statics/dist/assets/Login.f9c518ef.js rename abstra_statics/dist/assets/{Logs.f1fbf60c.js => Logs.38d26f92.js} (98%) create mode 100644 abstra_statics/dist/assets/Members.af8492bb.js delete mode 100644 abstra_statics/dist/assets/Members.fc190008.js delete mode 100644 abstra_statics/dist/assets/Modal.32a3d62d.js create mode 100644 abstra_statics/dist/assets/Modal.43c3d47a.js create mode 100644 abstra_statics/dist/assets/Navbar.03aff786.js delete mode 100644 abstra_statics/dist/assets/Navbar.2ae068c3.js create mode 100644 abstra_statics/dist/assets/Organization.36311c7f.js delete mode 100644 abstra_statics/dist/assets/Organization.4b6159bc.js delete mode 100644 abstra_statics/dist/assets/OrganizationSettings.5fbb0747.js create mode 100644 abstra_statics/dist/assets/OrganizationSettings.7da565f5.js create mode 100644 abstra_statics/dist/assets/Organizations.224909fb.js delete mode 100644 abstra_statics/dist/assets/Organizations.712a63f6.js rename abstra_statics/dist/assets/{Passwordless.15dd7595.js => Passwordless.7161b834.js} (69%) rename abstra_statics/dist/assets/{Player.616482e5.js => Player.4d7db160.js} (68%) rename abstra_statics/dist/assets/{PlayerNavbar.9ff5d98a.js => PlayerNavbar.fe11d508.js} (75%) create mode 100644 abstra_statics/dist/assets/PreviewButton.70ce525c.js delete mode 100644 abstra_statics/dist/assets/PreviewButton.f29c359b.js delete mode 100644 abstra_statics/dist/assets/Project.119b9b1c.js create mode 100644 abstra_statics/dist/assets/Project.5e72a606.js rename abstra_statics/dist/assets/{ProjectSettings.0c36ee31.js => ProjectSettings.c0546396.js} (82%) create mode 100644 abstra_statics/dist/assets/Projects.b96ed09a.js delete mode 100644 abstra_statics/dist/assets/Projects.c6bacab0.js delete mode 100644 abstra_statics/dist/assets/RuntimeList.8704ae12.js create mode 100644 abstra_statics/dist/assets/RuntimeList.ec9e2b4b.js create mode 100644 abstra_statics/dist/assets/SaveButton.b678d3d3.js delete mode 100644 abstra_statics/dist/assets/SaveButton.e20203fa.js delete mode 100644 abstra_statics/dist/assets/Sidebar.09692155.js create mode 100644 abstra_statics/dist/assets/Sidebar.2a0e2b35.js rename abstra_statics/dist/assets/{SidebarEditor.852ccd89.js => SidebarEditor.62de4759.js} (99%) rename abstra_statics/dist/assets/{SidebarPreview.f7a44b42.js => SidebarPreview.693e60b3.js} (80%) rename abstra_statics/dist/assets/{StyleEditor.acc5581f.js => StyleEditor.2dd12e40.js} (94%) create mode 100644 abstra_statics/dist/assets/Tab.27dc38aa.js delete mode 100644 abstra_statics/dist/assets/Tab.7855495c.js delete mode 100644 abstra_statics/dist/assets/TableEditor.271a6f83.js create mode 100644 abstra_statics/dist/assets/TableEditor.b499e372.js delete mode 100644 abstra_statics/dist/assets/Tables.bc03580c.js create mode 100644 abstra_statics/dist/assets/Tables.d21da407.js delete mode 100644 abstra_statics/dist/assets/Tooltip.93ae2394.js create mode 100644 abstra_statics/dist/assets/Tooltip.f700ff7d.js rename abstra_statics/dist/assets/{UnsavedChangesHandler.vue_vue_type_script_setup_true_lang.a909e3ed.js => UnsavedChangesHandler.vue_vue_type_script_setup_true_lang.35587b62.js} (81%) rename abstra_statics/dist/assets/{WidgetPreview.b91d684d.js => WidgetPreview.d19ff7f7.js} (59%) create mode 100644 abstra_statics/dist/assets/WidgetsFrame.aac2edff.js delete mode 100644 abstra_statics/dist/assets/WidgetsFrame.c900894c.js rename abstra_statics/dist/assets/{Workspace.3ed16c97.js => Workspace.a75d1f25.js} (71%) rename abstra_statics/dist/assets/{activeRecord.2bc1b71f.js => activeRecord.adfc6223.js} (64%) create mode 100644 abstra_statics/dist/assets/asyncComputed.31994732.js delete mode 100644 abstra_statics/dist/assets/asyncComputed.4b275614.js rename abstra_statics/dist/assets/{broker.4d1bc0fe.js => broker.988d8f9b.js} (95%) rename abstra_statics/dist/assets/{build.dca4605d.js => build.56ee1e90.js} (61%) rename abstra_statics/dist/assets/{colors.b2406923.js => colors.868ae049.js} (88%) rename abstra_statics/dist/assets/{connector.01592434.js => connector.83eaa2db.js} (81%) create mode 100644 abstra_statics/dist/assets/console.3ec2403f.js delete mode 100644 abstra_statics/dist/assets/console.f6e915fa.js rename abstra_statics/dist/assets/{cssMode.f4931ed2.js => cssMode.427d9b2f.js} (99%) rename abstra_statics/dist/assets/{dashes.9a4cf820.js => dashes.3c9b04b3.js} (90%) delete mode 100644 abstra_statics/dist/assets/editor.725428d3.js create mode 100644 abstra_statics/dist/assets/editor.e185cc3f.js rename abstra_statics/dist/assets/{editor.main.aa43f13b.js => editor.main.2331c6e5.js} (99%) rename abstra_statics/dist/assets/{executeJs.9eb1c025.js => executeJs.87b204c8.js} (94%) rename abstra_statics/dist/assets/{forms.9088f82a.js => forms.f5353181.js} (91%) rename abstra_statics/dist/assets/{freemarker2.e187740c.js => freemarker2.52d23530.js} (98%) create mode 100644 abstra_statics/dist/assets/gateway.2edca867.js delete mode 100644 abstra_statics/dist/assets/gateway.63e02d1d.js rename abstra_statics/dist/assets/{handlebars.c84277e3.js => handlebars.77e555cf.js} (86%) rename abstra_statics/dist/assets/{hooks.56004b79.js => hooks.fd4bb08f.js} (87%) rename abstra_statics/dist/assets/{html.4ba9e625.js => html.e9b85501.js} (91%) rename abstra_statics/dist/assets/{htmlMode.c0ca6de5.js => htmlMode.ca51a268.js} (99%) rename abstra_statics/dist/assets/{icons.9d575a00.js => icons.39dfa322.js} (96%) rename abstra_statics/dist/assets/{index.776642db.js => index.7d1457d9.js} (94%) rename abstra_statics/dist/assets/{index.24c9f37d.js => index.7fea4022.js} (99%) rename abstra_statics/dist/assets/{javascript.faa450b6.js => javascript.15f651ca.js} (64%) rename abstra_statics/dist/assets/{jobs.99d61147.js => jobs.d0693d2f.js} (77%) rename abstra_statics/dist/assets/{jsonMode.437d5ffb.js => jsonMode.5e64dbdf.js} (99%) rename abstra_statics/dist/assets/{liquid.daa84413.js => liquid.7ed43a30.js} (89%) rename abstra_statics/dist/assets/{login.7c65daa3.js => login.ce8787fb.js} (71%) rename abstra_statics/dist/assets/{lottie.8f58e4c7.js => lottie.234eb92e.js} (99%) rename abstra_statics/dist/assets/{member.6c1a1ede.js => member.f9b469b1.js} (81%) rename abstra_statics/dist/assets/{organization.dde8e095.js => organization.abd54459.js} (79%) rename abstra_statics/dist/assets/{passwordlessManager.f53316a7.js => passwordlessManager.afd7d1d0.js} (81%) delete mode 100644 abstra_statics/dist/assets/player.1871538e.js create mode 100644 abstra_statics/dist/assets/player.3af67cd1.js delete mode 100644 abstra_statics/dist/assets/project.71f5fd7c.js create mode 100644 abstra_statics/dist/assets/project.af2b2708.js rename abstra_statics/dist/assets/{pubsub.909df758.js => pubsub.f85a17d2.js} (60%) rename abstra_statics/dist/assets/{python.cbb8b35a.js => python.621b12c7.js} (89%) rename abstra_statics/dist/assets/{razor.10cd3c04.js => razor.0216e359.js} (93%) rename abstra_statics/dist/assets/{registerWidgets.3fe0df5a.js => registerWidgets.cb3a7b8d.js} (99%) rename abstra_statics/dist/assets/{runnerData.331b4b09.js => runnerData.7b7cb682.js} (99%) rename abstra_statics/dist/assets/{tables.7792ead3.js => tables.b367c7a5.js} (92%) rename abstra_statics/dist/assets/{tsMode.a31fb17b.js => tsMode.2820b8e7.js} (98%) rename abstra_statics/dist/assets/{typescript.71d17c95.js => typescript.b253befb.js} (88%) create mode 100644 abstra_statics/dist/assets/uuid.0e63ad64.js delete mode 100644 abstra_statics/dist/assets/uuid.8e57fc19.js rename abstra_statics/dist/assets/{vue-quill.esm-bundler.6c8b376b.js => vue-quill.esm-bundler.8d697628.js} (99%) rename abstra_statics/dist/assets/{workspaces.220ebb5a.js => workspaces.5f21a554.js} (88%) rename abstra_statics/dist/assets/{xml.67d02d73.js => xml.22301ab3.js} (84%) rename abstra_statics/dist/assets/{yaml.d30cc4b0.js => yaml.1fee6ec9.js} (90%) diff --git a/abstra_server/apps/__init__.py b/abstra_server/apps/__init__.py index 0634a6e5a5..1125a73a2e 100644 --- a/abstra_server/apps/__init__.py +++ b/abstra_server/apps/__init__.py @@ -36,10 +36,7 @@ def serve(workspace_root: Path, port: int, debug, use_reloader, load_dotenv): os.environ["ABSTRA_API_TOKEN"] = credential app = create_app(api) - if debug: - threading.Timer( - 1, lambda: webbrowser.open(f"http://{HOST}:{port}/_editor") - ).start() + threading.Timer(1, lambda: webbrowser.open(f"http://{HOST}:{port}/_editor")).start() app.run( host=HOST, port=port, diff --git a/abstra_statics/dist/assets/ActionButton.vue_vue_type_script_setup_true_lang.9a3f9909.js b/abstra_statics/dist/assets/ActionButton.vue_vue_type_script_setup_true_lang.9a3f9909.js new file mode 100644 index 0000000000..1455ead4c6 --- /dev/null +++ b/abstra_statics/dist/assets/ActionButton.vue_vue_type_script_setup_true_lang.9a3f9909.js @@ -0,0 +1,2 @@ +import{d,r as i,o as f,a5 as l,b as u,c,N as b,af as y}from"./registerWidgets.cb3a7b8d.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4af6d968-6828-4ed1-8baa-035ca30fb314",e._sentryDebugIdIdentifier="sentry-dbid-4af6d968-6828-4ed1-8baa-035ca30fb314")}catch{}})();const g=d({__name:"ActionButton",props:{action:null},emits:["next"],setup(e,{emit:n}){const o=e,a=i(null);f(()=>{a.value&&o.action.setElement(a.value),l.addAction(o.action)});const s=()=>n("next");return(m,t)=>(u(),c("button",{ref_key:"element",ref:a,class:"next-button",onClick:t[0]||(t[0]=r=>s()),onKeydown:t[1]||(t[1]=y(r=>s(),["enter"]))},b(e.action.name),545))}});export{g as _}; +//# sourceMappingURL=ActionButton.vue_vue_type_script_setup_true_lang.9a3f9909.js.map diff --git a/abstra_statics/dist/assets/ActionButton.vue_vue_type_script_setup_true_lang.9bc2be06.js b/abstra_statics/dist/assets/ActionButton.vue_vue_type_script_setup_true_lang.9bc2be06.js deleted file mode 100644 index d5bb51ac8d..0000000000 --- a/abstra_statics/dist/assets/ActionButton.vue_vue_type_script_setup_true_lang.9bc2be06.js +++ /dev/null @@ -1,2 +0,0 @@ -import{d as r,r as f,o as i,a5 as l,b as u,c,N as b,af as y}from"./registerWidgets.3fe0df5a.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="acf562d9-0bb0-47df-b008-afdf815a6162",e._sentryDebugIdIdentifier="sentry-dbid-acf562d9-0bb0-47df-b008-afdf815a6162")}catch{}})();const g=r({__name:"ActionButton",props:{action:null},emits:["next"],setup(e,{emit:n}){const o=e,s=f(null);i(()=>{s.value&&o.action.setElement(s.value),l.addAction(o.action)});const a=()=>n("next");return(m,t)=>(u(),c("button",{ref_key:"element",ref:s,class:"next-button",onClick:t[0]||(t[0]=d=>a()),onKeydown:t[1]||(t[1]=y(d=>a(),["enter"]))},b(e.action.name),545))}});export{g as _}; -//# sourceMappingURL=ActionButton.vue_vue_type_script_setup_true_lang.9bc2be06.js.map diff --git a/abstra_statics/dist/assets/ApiKeys.ee011ffc.js b/abstra_statics/dist/assets/ApiKeys.cd17e8f1.js similarity index 70% rename from abstra_statics/dist/assets/ApiKeys.ee011ffc.js rename to abstra_statics/dist/assets/ApiKeys.cd17e8f1.js index dd0c310516..6357b4887f 100644 --- a/abstra_statics/dist/assets/ApiKeys.ee011ffc.js +++ b/abstra_statics/dist/assets/ApiKeys.cd17e8f1.js @@ -1,2 +1,2 @@ -var P=Object.defineProperty;var k=(a,e,t)=>e in a?P(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var f=(a,e,t)=>(k(a,typeof e!="symbol"?e+"":e,t),t);import{d as v,r as w,b as C,t as S,w as b,U as I,x as l,N as D,O as j,Q as M,q as N,K as $,c as B,e as x,z as A,F as K,J as z}from"./registerWidgets.3fe0df5a.js";import{a as E}from"./asyncComputed.4b275614.js";import{P as V}from"./project.71f5fd7c.js";import{C as g}from"./gateway.63e02d1d.js";import{M as F}from"./member.6c1a1ede.js";import{A as O}from"./activeRecord.2bc1b71f.js";import"./index.24c9f37d.js";import{C as U}from"./CrudView.674ca9db.js";import{M as W}from"./Modal.32a3d62d.js";import{r as Y}from"./icons.9d575a00.js";import"./passwordlessManager.f53316a7.js";import"./pubsub.909df758.js";import"./DropdownMenu.9edc1223.js";import"./LoadingIndicator.a20841c3.js";import"./lottie.8f58e4c7.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="1f5354cb-809b-44ae-bbc8-052a61b8c777",a._sentryDebugIdIdentifier="sentry-dbid-1f5354cb-809b-44ae-bbc8-052a61b8c777")}catch{}})();class q{constructor(){f(this,"urlPath","api-keys")}async create({projectId:e,name:t}){return g.post(`projects/${e}/${this.urlPath}`,{name:t})}async delete(e,t){await g.delete(`projects/${e}/${this.urlPath}/${t}`)}async list(e){return g.get(`projects/${e}/${this.urlPath}`)}async get(){throw new Error("Not implemented")}async update(){throw new Error("Not implemented")}}const u=new q;class c{constructor(e){f(this,"record");this.record=O.create(u,e,"id")}static async list(e){return(await u.list(e)).map(s=>new c(s))}static async create(e){const t=await u.create(e);return new c(t)}static async delete(e,t){await u.delete(e,t)}get id(){return this.record.get("id")}get name(){return this.record.get("name")}async save(){await this.record.save()}get createdAt(){return new Date(this.record.get("createdAt"))}hasChanges(){return this.record.hasChanges()}get ownerId(){return this.record.get("createdBy")}get value(){var e;return(e=this.record.get("value"))!=null?e:null}}const G=a=>(j("data-v-3da8363c"),a=a(),M(),a),H={class:"main-text"},J=G(()=>l("div",{class:"separator"},null,-1)),L=["value"],Q=v({__name:"ApiKeyModal",emits:["delete"],setup(a,{expose:e}){const t=w(null),s=w(""),m={maxWidth:"350px",height:"unset",padding:"30px"},y={display:"flex",flexDirection:"column",alignItems:"center",color:"#414A58",justifyContent:"center",lineHeight:"22px",fontSize:"18px",textAlign:"center",borderBottom:"none",gap:"23px",fontWeight:"700",marginBottom:"17px"},d={color:"#6D7C93",fontSize:"14px",textAlign:"center",justifyContent:"space-around"},h=o=>{var n;s.value=o,(n=t==null?void 0:t.value)==null||n.open()},p=()=>{var o;return(o=t==null?void 0:t.value)==null?void 0:o.close()};return e({open:h,close:p}),(o,n)=>(C(),S(W,{ref_key:"modalRef",ref:t,"container-style":m,"header-style":y,"content-style":d},{header:b(()=>[I(" API Key Created ")]),content:b(()=>[l("div",H,[I(D("Your API key has been created. Please copy it and store it in a safe place. You will not be able to see it again.")+" ",1),J,l("input",{disabled:"",value:s.value},null,8,L),l("div",{class:"buttons"},[l("button",{class:"cancel",onClick:p},"Close")])])]),_:1},512))}});const T=N(Q,[["__scopeId","data-v-3da8363c"]]),me=v({__name:"ApiKeys",setup(a){const e=[{key:"name",label:"API key name"}],s=z().params.projectId,{loading:m,result:y,refetch:d}=E(async()=>Promise.all([c.list(s),V.get(s).then(o=>F.list(o.organizationId))]).then(([o,n])=>o.map(r=>({apiKey:r,member:n.find(i=>i.authorId===r.ownerId)})))),h=async o=>{const n=await c.create({projectId:s,name:o.name});d(),n.value&&prompt("Copy this API key and paste it in the local editor to deploy your app:",n==null?void 0:n.value)},p=$(()=>{var o,n;return{columns:[{name:"Name"},{name:"Creation date"},{name:"Owner"},{name:"Actions"}],rows:(n=(o=y.value)==null?void 0:o.map(({apiKey:r,member:i})=>{var _;return{key:r.id,cells:[{text:r.name,classes:["title","centered"]},{text:r.createdAt.toLocaleString(),classes:[]},{text:(_=i==null?void 0:i.email)!=null?_:"Unknown"},{classes:["centered"],text:"actions",actions:[{label:"Delete",icon:Y,dangerous:!0,onClick:async()=>{await c.delete(s,r.id),d()}}]}]}}))!=null?n:[]}});return(o,n)=>(C(),B(K,null,[x(U,{"entity-name":"API key","create-button-text":"Create API Key",loading:A(m),title:"API Keys",description:"API Keys are used to deploy your app from the local editor.","empty-title":"No API keys here yet",table:A(p),fields:e,onCreate:h},null,8,["loading","table"]),x(T)],64))}});export{me as default}; -//# sourceMappingURL=ApiKeys.ee011ffc.js.map +var P=Object.defineProperty;var k=(a,e,t)=>e in a?P(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var g=(a,e,t)=>(k(a,typeof e!="symbol"?e+"":e,t),t);import{d as v,r as w,b as C,t as S,w as b,U as I,x as l,N as D,O as j,Q as M,q as N,K as $,c as B,e as x,z as A,F as K,J as z}from"./registerWidgets.cb3a7b8d.js";import{a as E}from"./asyncComputed.31994732.js";import{P as V}from"./project.af2b2708.js";import{C as _}from"./gateway.2edca867.js";import{M as F}from"./member.f9b469b1.js";import{A as O}from"./activeRecord.adfc6223.js";import"./index.7fea4022.js";import{C as U}from"./CrudView.87a92735.js";import{M as W}from"./Modal.43c3d47a.js";import{r as Y}from"./icons.39dfa322.js";import"./passwordlessManager.afd7d1d0.js";import"./pubsub.f85a17d2.js";import"./DropdownMenu.c973057b.js";import"./LoadingIndicator.d4ffd545.js";import"./lottie.234eb92e.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="38ddb1bd-4e14-4d45-9ae7-71d69b8b5772",a._sentryDebugIdIdentifier="sentry-dbid-38ddb1bd-4e14-4d45-9ae7-71d69b8b5772")}catch{}})();class q{constructor(){g(this,"urlPath","api-keys")}async create({projectId:e,name:t}){return _.post(`projects/${e}/${this.urlPath}`,{name:t})}async delete(e,t){await _.delete(`projects/${e}/${this.urlPath}/${t}`)}async list(e){return _.get(`projects/${e}/${this.urlPath}`)}async get(){throw new Error("Not implemented")}async update(){throw new Error("Not implemented")}}const u=new q;class c{constructor(e){g(this,"record");this.record=O.create(u,e,"id")}static async list(e){return(await u.list(e)).map(s=>new c(s))}static async create(e){const t=await u.create(e);return new c(t)}static async delete(e,t){await u.delete(e,t)}get id(){return this.record.get("id")}get name(){return this.record.get("name")}async save(){await this.record.save()}get createdAt(){return new Date(this.record.get("createdAt"))}hasChanges(){return this.record.hasChanges()}get ownerId(){return this.record.get("createdBy")}get value(){var e;return(e=this.record.get("value"))!=null?e:null}}const G=a=>(j("data-v-3da8363c"),a=a(),M(),a),H={class:"main-text"},J=G(()=>l("div",{class:"separator"},null,-1)),L=["value"],Q=v({__name:"ApiKeyModal",emits:["delete"],setup(a,{expose:e}){const t=w(null),s=w(""),m={maxWidth:"350px",height:"unset",padding:"30px"},y={display:"flex",flexDirection:"column",alignItems:"center",color:"#414A58",justifyContent:"center",lineHeight:"22px",fontSize:"18px",textAlign:"center",borderBottom:"none",gap:"23px",fontWeight:"700",marginBottom:"17px"},d={color:"#6D7C93",fontSize:"14px",textAlign:"center",justifyContent:"space-around"},h=o=>{var n;s.value=o,(n=t==null?void 0:t.value)==null||n.open()},p=()=>{var o;return(o=t==null?void 0:t.value)==null?void 0:o.close()};return e({open:h,close:p}),(o,n)=>(C(),S(W,{ref_key:"modalRef",ref:t,"container-style":m,"header-style":y,"content-style":d},{header:b(()=>[I(" API Key Created ")]),content:b(()=>[l("div",H,[I(D("Your API key has been created. Please copy it and store it in a safe place. You will not be able to see it again.")+" ",1),J,l("input",{disabled:"",value:s.value},null,8,L),l("div",{class:"buttons"},[l("button",{class:"cancel",onClick:p},"Close")])])]),_:1},512))}});const T=N(Q,[["__scopeId","data-v-3da8363c"]]),me=v({__name:"ApiKeys",setup(a){const e=[{key:"name",label:"API key name"}],s=z().params.projectId,{loading:m,result:y,refetch:d}=E(async()=>Promise.all([c.list(s),V.get(s).then(o=>F.list(o.organizationId))]).then(([o,n])=>o.map(r=>({apiKey:r,member:n.find(i=>i.authorId===r.ownerId)})))),h=async o=>{const n=await c.create({projectId:s,name:o.name});d(),n.value&&prompt("Copy this API key and paste it in the local editor to deploy your app:",n==null?void 0:n.value)},p=$(()=>{var o,n;return{columns:[{name:"Name"},{name:"Creation date"},{name:"Owner"},{name:"Actions"}],rows:(n=(o=y.value)==null?void 0:o.map(({apiKey:r,member:i})=>{var f;return{key:r.id,cells:[{text:r.name,classes:["title","centered"]},{text:r.createdAt.toLocaleString(),classes:[]},{text:(f=i==null?void 0:i.email)!=null?f:"Unknown"},{classes:["centered"],text:"actions",actions:[{label:"Delete",icon:Y,dangerous:!0,onClick:async()=>{await c.delete(s,r.id),d()}}]}]}}))!=null?n:[]}});return(o,n)=>(C(),B(K,null,[x(U,{"entity-name":"API key","create-button-text":"Create API Key",loading:A(m),title:"API Keys",description:"API Keys are used to deploy your app from the local editor.","empty-title":"No API keys here yet",table:A(p),fields:e,onCreate:h},null,8,["loading","table"]),x(T)],64))}});export{me as default}; +//# sourceMappingURL=ApiKeys.cd17e8f1.js.map diff --git a/abstra_statics/dist/assets/BackButton.38e76e75.js b/abstra_statics/dist/assets/BackButton.38e76e75.js deleted file mode 100644 index 4cd1956539..0000000000 --- a/abstra_statics/dist/assets/BackButton.38e76e75.js +++ /dev/null @@ -1,2 +0,0 @@ -import{q as n,b as o,c as a,x as d,d as r,a as _,t as i,w as l,e as f,U as u}from"./registerWidgets.3fe0df5a.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0dbd1468-b2f8-4d4c-a623-efa2a964c024",e._sentryDebugIdIdentifier="sentry-dbid-0dbd1468-b2f8-4d4c-a623-efa2a964c024")}catch{}})();const p={},w={width:"12",height:"10",viewBox:"0 0 12 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b=d("path",{d:"M2.8725 4.25L5.5575 1.5575L4.5 0.5L0 5L4.5 9.5L5.5575 8.4425L2.8725 5.75H12V4.25H2.8725Z",fill:"#6D7C93"},null,-1),k=[b];function B(e,t){return o(),a("svg",w,k)}const h=n(p,[["render",B]]),g=r({__name:"BackButton",props:{link:null},setup(e){return(t,s)=>{const c=_("router-link");return o(),i(c,{class:"link-button",to:e.link},{default:l(()=>[f(h),u(" Back ")]),_:1},8,["to"])}}});const m=n(g,[["__scopeId","data-v-56a12edc"]]);export{m as B}; -//# sourceMappingURL=BackButton.38e76e75.js.map diff --git a/abstra_statics/dist/assets/BackButton.677abc51.js b/abstra_statics/dist/assets/BackButton.677abc51.js new file mode 100644 index 0000000000..41dfc2890e --- /dev/null +++ b/abstra_statics/dist/assets/BackButton.677abc51.js @@ -0,0 +1,2 @@ +import{q as n,b as o,c,x as r,d as _,a as d,t as i,w as l,e as f,U as u}from"./registerWidgets.cb3a7b8d.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="35fdfb1e-ab86-4ea7-880b-02a658743ab4",e._sentryDebugIdIdentifier="sentry-dbid-35fdfb1e-ab86-4ea7-880b-02a658743ab4")}catch{}})();const p={},b={width:"12",height:"10",viewBox:"0 0 12 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w=r("path",{d:"M2.8725 4.25L5.5575 1.5575L4.5 0.5L0 5L4.5 9.5L5.5575 8.4425L2.8725 5.75H12V4.25H2.8725Z",fill:"#6D7C93"},null,-1),k=[w];function B(e,t){return o(),c("svg",b,k)}const h=n(p,[["render",B]]),g=_({__name:"BackButton",props:{link:null},setup(e){return(t,s)=>{const a=d("router-link");return o(),i(a,{class:"link-button",to:e.link},{default:l(()=>[f(h),u(" Back ")]),_:1},8,["to"])}}});const m=n(g,[["__scopeId","data-v-56a12edc"]]);export{m as B}; +//# sourceMappingURL=BackButton.677abc51.js.map diff --git a/abstra_statics/dist/assets/BackButton.cd31ec0c.js b/abstra_statics/dist/assets/BackButton.cd31ec0c.js deleted file mode 100644 index 78f4758e27..0000000000 --- a/abstra_statics/dist/assets/BackButton.cd31ec0c.js +++ /dev/null @@ -1,2 +0,0 @@ -import{v as s}from"./icons.9d575a00.js";import{d as r,a as c,b as i,c as d,e as _,z as l,U as f,q as u}from"./registerWidgets.3fe0df5a.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9537873a-6ee3-4100-8163-bf642d8af34a",e._sentryDebugIdIdentifier="sentry-dbid-9537873a-6ee3-4100-8163-bf642d8af34a")}catch{}})();const p=r({__name:"BackButton",emits:["exitFullscreenPreview"],setup(e,{emit:t}){return(o,n)=>{const a=c("icon");return i(),d("button",{class:"back-btn",onClick:n[0]||(n[0]=b=>t("exitFullscreenPreview"))},[_(a,{class:"icon",path:l(s),width:"20",height:"20",fill:"#5A677A"},null,8,["path"]),f(" Editor ")])}}});const v=u(p,[["__scopeId","data-v-eaeb3a6e"]]);export{v as B}; -//# sourceMappingURL=BackButton.cd31ec0c.js.map diff --git a/abstra_statics/dist/assets/BackButton.ec736006.js b/abstra_statics/dist/assets/BackButton.ec736006.js new file mode 100644 index 0000000000..8543b90ea4 --- /dev/null +++ b/abstra_statics/dist/assets/BackButton.ec736006.js @@ -0,0 +1,2 @@ +import{v as s}from"./icons.39dfa322.js";import{d as c,a as r,b as i,c as d,e as _,z as l,U as u,q as f}from"./registerWidgets.cb3a7b8d.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="145a8abc-a365-4844-bcda-9b2947ae0f18",e._sentryDebugIdIdentifier="sentry-dbid-145a8abc-a365-4844-bcda-9b2947ae0f18")}catch{}})();const b=c({__name:"BackButton",emits:["exitFullscreenPreview"],setup(e,{emit:t}){return(a,n)=>{const o=r("icon");return i(),d("button",{class:"back-btn",onClick:n[0]||(n[0]=p=>t("exitFullscreenPreview"))},[_(o,{class:"icon",path:l(s),width:"20",height:"20",fill:"#5A677A"},null,8,["path"]),u(" Editor ")])}}});const v=f(b,[["__scopeId","data-v-eaeb3a6e"]]);export{v as B}; +//# sourceMappingURL=BackButton.ec736006.js.map diff --git a/abstra_statics/dist/assets/Builds.ddad88aa.js b/abstra_statics/dist/assets/Builds.ddad88aa.js deleted file mode 100644 index 34a989e967..0000000000 --- a/abstra_statics/dist/assets/Builds.ddad88aa.js +++ /dev/null @@ -1,4 +0,0 @@ -import{d as u,K as f,b as m,t as _,w as b,z as d,J as y,O as g,Q as h,x as i,U as n,q as w}from"./registerWidgets.3fe0df5a.js";import{a as I}from"./asyncComputed.4b275614.js";import"./gateway.63e02d1d.js";import{B as x}from"./build.dca4605d.js";import"./index.24c9f37d.js";import{C as v}from"./CrudView.674ca9db.js";import"./passwordlessManager.f53316a7.js";import"./pubsub.909df758.js";import"./activeRecord.2bc1b71f.js";import"./DropdownMenu.9edc1223.js";import"./Modal.32a3d62d.js";import"./LoadingIndicator.a20841c3.js";import"./lottie.8f58e4c7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="b9daf2ef-456f-422f-bab2-b5a046f6fd52",e._sentryDebugIdIdentifier="sentry-dbid-b9daf2ef-456f-422f-bab2-b5a046f6fd52")}catch{}})();const B=e=>(g("data-v-63f61fb1"),e=e(),h(),e),C=B(()=>i("div",{class:"instructions"},[n(" Get started with the local editor in seconds: "),i("pre",null,` $ pip install abstra --upgrade - $ abstra serve ./your-project-directory - `),n(" And you're done! Explore the local editor and start building apps. ")],-1)),S=u({__name:"Builds",setup(e){const r=y().params.projectId,{loading:p,result:c}=I(()=>x.list(r)),l=f(()=>{var s,a;return{columns:[{name:"Id"},{name:"Creation date"},{name:"Status"}],rows:(a=(s=c.value)==null?void 0:s.map(t=>({key:t.id,cells:[{text:t.id,classes:["title","centered"]},{text:t.createdAt.toLocaleString(),classes:[]},{text:t.status+(t.log?": "+t.log:""),classes:["centered"]}]})))!=null?a:[]}});return(s,a)=>(m(),_(v,{"entity-name":"build",loading:d(p),title:"Builds",description:"Each build is a version of your app. You can create a new build by deploying your app from the local editor.","empty-title":"No builds here yet",table:d(l)},{"empty-description":b(()=>[C]),_:1},8,["loading","table"]))}});const L=w(S,[["__scopeId","data-v-63f61fb1"]]);export{L as default}; -//# sourceMappingURL=Builds.ddad88aa.js.map diff --git a/abstra_statics/dist/assets/Builds.f10692eb.js b/abstra_statics/dist/assets/Builds.f10692eb.js new file mode 100644 index 0000000000..568428bc5b --- /dev/null +++ b/abstra_statics/dist/assets/Builds.f10692eb.js @@ -0,0 +1,4 @@ +import{d as u,K as m,b as f,t as _,w as b,z as d,J as y,O as g,Q as h,x as i,U as n,q as w}from"./registerWidgets.cb3a7b8d.js";import{a as I}from"./asyncComputed.31994732.js";import"./gateway.2edca867.js";import{B as x}from"./build.56ee1e90.js";import"./index.7fea4022.js";import{C as v}from"./CrudView.87a92735.js";import"./passwordlessManager.afd7d1d0.js";import"./pubsub.f85a17d2.js";import"./activeRecord.adfc6223.js";import"./DropdownMenu.c973057b.js";import"./Modal.43c3d47a.js";import"./LoadingIndicator.d4ffd545.js";import"./lottie.234eb92e.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="5ba8fb0e-343c-4fb1-9b6c-b1395d8ae6ec",e._sentryDebugIdIdentifier="sentry-dbid-5ba8fb0e-343c-4fb1-9b6c-b1395d8ae6ec")}catch{}})();const B=e=>(g("data-v-63f61fb1"),e=e(),h(),e),C=B(()=>i("div",{class:"instructions"},[n(" Get started with the local editor in seconds: "),i("pre",null,` $ pip install abstra --upgrade + $ abstra serve ./your-project-directory + `),n(" And you're done! Explore the local editor and start building apps. ")],-1)),S=u({__name:"Builds",setup(e){const r=y().params.projectId,{loading:c,result:p}=I(()=>x.list(r)),l=m(()=>{var s,a;return{columns:[{name:"Id"},{name:"Creation date"},{name:"Status"}],rows:(a=(s=p.value)==null?void 0:s.map(t=>({key:t.id,cells:[{text:t.id,classes:["title","centered"]},{text:t.createdAt.toLocaleString(),classes:[]},{text:t.status+(t.log?": "+t.log:""),classes:["centered"]}]})))!=null?a:[]}});return(s,a)=>(f(),_(v,{"entity-name":"build",loading:d(c),title:"Builds",description:"Each build is a version of your app. You can create a new build by deploying your app from the local editor.","empty-title":"No builds here yet",table:d(l)},{"empty-description":b(()=>[C]),_:1},8,["loading","table"]))}});const L=w(S,[["__scopeId","data-v-63f61fb1"]]);export{L as default}; +//# sourceMappingURL=Builds.f10692eb.js.map diff --git a/abstra_statics/dist/assets/CircularLoading.1e68d2b1.js b/abstra_statics/dist/assets/CircularLoading.1e68d2b1.js new file mode 100644 index 0000000000..b895a17c7e --- /dev/null +++ b/abstra_statics/dist/assets/CircularLoading.1e68d2b1.js @@ -0,0 +1,2 @@ +import{L as c}from"./lottie.234eb92e.js";import{d as u,r as f,o as p,K as r,b as _,c as y,x as g,A as s,z as i,B as b,q as m}from"./registerWidgets.cb3a7b8d.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="7f57a11b-28aa-45ae-82c7-ab44aad6a92a",e._sentryDebugIdIdentifier="sentry-dbid-7f57a11b-28aa-45ae-82c7-ab44aad6a92a")}catch{}})();const v=u({__name:"CircularLoading",props:{direction:null,justify:null,size:null},setup(e){const a=e,t=f(null);p(()=>{!t.value||c.loadAnimation({container:t.value,renderer:"svg",loop:!0,autoplay:!0,path:"/circularLoading.json"})});const d=r(()=>{const{direction:n="row",justify:o="space-between"}=a;return{flexDirection:n,justifyContent:o}}),l=r(()=>{const{size:n="40"}=a;return{width:`${n}px`,height:`${n}px`}});return(n,o)=>(_(),y("div",{class:"container",style:s(i(d))},[g("div",{ref_key:"loading",ref:t,style:s(i(l))},null,4),b(n.$slots,"default",{},void 0,!0)],4))}});const I=m(v,[["__scopeId","data-v-a1f994d4"]]);export{I as L}; +//# sourceMappingURL=CircularLoading.1e68d2b1.js.map diff --git a/abstra_statics/dist/assets/CircularLoading.2fb746db.js b/abstra_statics/dist/assets/CircularLoading.2fb746db.js deleted file mode 100644 index d1a71f26f1..0000000000 --- a/abstra_statics/dist/assets/CircularLoading.2fb746db.js +++ /dev/null @@ -1,2 +0,0 @@ -import{L as c}from"./lottie.8f58e4c7.js";import{d as u,r as f,o as p,K as a,b as _,c as y,x as g,A as s,z as i,B as b,q as m}from"./registerWidgets.3fe0df5a.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="66269b35-057a-43ad-9886-4975d7462ccb",e._sentryDebugIdIdentifier="sentry-dbid-66269b35-057a-43ad-9886-4975d7462ccb")}catch{}})();const v=u({__name:"CircularLoading",props:{direction:null,justify:null,size:null},setup(e){const t=e,o=f(null);p(()=>{!o.value||c.loadAnimation({container:o.value,renderer:"svg",loop:!0,autoplay:!0,path:"/circularLoading.json"})});const d=a(()=>{const{direction:n="row",justify:r="space-between"}=t;return{flexDirection:n,justifyContent:r}}),l=a(()=>{const{size:n="40"}=t;return{width:`${n}px`,height:`${n}px`}});return(n,r)=>(_(),y("div",{class:"container",style:s(i(d))},[g("div",{ref_key:"loading",ref:o,style:s(i(l))},null,4),b(n.$slots,"default",{},void 0,!0)],4))}});const I=m(v,[["__scopeId","data-v-a1f994d4"]]);export{I as L}; -//# sourceMappingURL=CircularLoading.2fb746db.js.map diff --git a/abstra_statics/dist/assets/ConnectorEditor.8079edd8.js b/abstra_statics/dist/assets/ConnectorEditor.6f621852.js similarity index 79% rename from abstra_statics/dist/assets/ConnectorEditor.8079edd8.js rename to abstra_statics/dist/assets/ConnectorEditor.6f621852.js index 69267077fa..89fc42bec7 100644 --- a/abstra_statics/dist/assets/ConnectorEditor.8079edd8.js +++ b/abstra_statics/dist/assets/ConnectorEditor.6f621852.js @@ -1,2 +1,2 @@ -import{d as v,v as T,ab as N,o as O,W as q,ac as P,b as t,c as s,B as M,q as C,F as $,L as k,x as d,N as I,e as y,K as S,D as m,t as w,am as E,z as _,a8 as L,y as U,aa as V,a as G,G as z,U as F,w as x,J,X as Q,O as W,Q as X}from"./registerWidgets.3fe0df5a.js";import{b as j}from"./index.24c9f37d.js";import"./gateway.63e02d1d.js";import{C as H}from"./connector.01592434.js";import{a as Y}from"./asyncComputed.4b275614.js";import{B as Z}from"./BackButton.38e76e75.js";import{S as K}from"./SaveButton.e20203fa.js";import{L as ee}from"./CircularLoading.2fb746db.js";import"./passwordlessManager.f53316a7.js";import"./pubsub.909df758.js";import"./activeRecord.2bc1b71f.js";import"./icons.9d575a00.js";import"./lottie.8f58e4c7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="ac63c8d3-20a0-47f8-a8a7-cc9f0f22d6ad",e._sentryDebugIdIdentifier="sentry-dbid-ac63c8d3-20a0-47f8-a8a7-cc9f0f22d6ad")}catch{}})();const te={class:"tab"},se=v({__name:"Tab",props:{title:null,icon:null},setup(e){const o=e,u=T({isActive:!1,title:o.title,icon:o.icon}),n=N("addTab");return O(()=>{n(u)}),(l,a)=>q((t(),s("div",te,[M(l.$slots,"default",{},void 0,!0)],512)),[[P,u.isActive]])}});const D=C(se,[["__scopeId","data-v-497e4e8e"]]),ne=["value"],ae=v({__name:"TextInput",props:{value:null,schema:null},emits:["change"],setup(e,{emit:o}){return(u,n)=>(t(),s("input",{value:e.value,onChange:n[0]||(n[0]=l=>o("change",l.target.value))},null,40,ne))}}),oe=["value"],ce=v({__name:"NumberInput",props:{value:null,schema:null},emits:["change"],setup(e,{emit:o}){return(u,n)=>(t(),s("input",{value:e.value,type:"number",onChange:n[0]||(n[0]=l=>o("change",l.target.value))},null,40,oe))}}),le=["value"],ue=v({__name:"BooleanInput",props:{value:{type:Boolean},schema:null},emits:["change"],setup(e,{emit:o}){return(u,n)=>(t(),s("input",{value:e.value,type:"checkbox",onChange:n[0]||(n[0]=l=>o("change",l.target.checked))},null,40,le))}}),re={class:"oi"},ie={class:"oi-item-label"},de=v({__name:"ObjectInput",props:{value:null,schema:null},emits:["change"],setup(e,{emit:o}){var g;const u=e,n=T({value:(g=u.value)!=null?g:{}}),l=(h,c)=>{n.value[h]=c,a()},a=()=>{o("change",n.value)};return(h,c)=>(t(),s("div",re,[(t(!0),s($,null,k(u.schema.values,(f,i)=>(t(),s("div",{key:i,class:"oi-item"},[d("div",ie,I(i),1),y(B,{class:"oi-item-input",schema:f,value:n.value[i],onChange:b=>l(i,b)},null,8,["schema","value","onChange"])]))),128))]))}});const _e=C(de,[["__scopeId","data-v-bd751ecc"]]),he={class:"ai"},me=["onClick"],pe=v({__name:"ArrayInput",props:{value:null,schema:null},emits:["change"],setup(e,{emit:o}){var c;const n=T({value:(c=e.value)!=null?c:[]}),l=()=>{n.value.push(void 0)},a=f=>{n.value.splice(f,1),h()},g=(f,i)=>{n.value[f]=i,h()},h=()=>{o("change",n.value)};return(f,i)=>(t(),s("div",he,[(t(!0),s($,null,k(n.value,(b,r)=>(t(),s("div",{key:r,class:"ai-item"},[y(B,{schema:e.schema.items,value:b,onChange:p=>g(r,p)},null,8,["schema","value","onChange"]),d("button",{class:"ai-item-remove",onClick:p=>a(r)},"x",8,me)]))),128)),d("button",{class:"ai-item-add",onClick:i[0]||(i[0]=b=>l())},"Add")]))}});const ve=C(pe,[["__scopeId","data-v-a6c8b9fb"]]),ge=["value"],fe=["value"],be=v({__name:"OptionsInput",props:{value:null,schema:null},emits:["change"],setup(e,{emit:o}){return(u,n)=>(t(),s("select",{value:e.value,onChange:n[0]||(n[0]=l=>o("change",l.target.value))},[(t(!0),s($,null,k(e.schema.values,l=>(t(),s("option",{key:l,value:l},I(l),9,fe))),128))],40,ge))}}),ye=["value"],$e=v({__name:"UnionInput",props:{value:null,schema:null},emits:["change"],setup(e,{emit:o}){return(u,n)=>(t(),s("input",{value:e.value,onChange:n[0]||(n[0]=l=>o("change",l.target.value))},null,40,ye))}}),ke=["value"],Ie=v({__name:"AnyInput",props:{value:null,schema:null},emits:["change"],setup(e,{emit:o}){return(u,n)=>(t(),s("input",{value:e.value,onChange:n[0]||(n[0]=l=>o("change",l.target.value))},null,40,ke))}}),Ce={string:ae,number:ce,boolean:ue,object:_e,array:ve,options:be,any:Ie,union:$e},xe={class:"gi"},Se={key:0,class:"gi-header"},Te={key:0,class:"gi-label"},Me={key:1,class:"gi-tags"},we={key:0,class:"gi-required"},Be={key:1,class:"gi-required"},Ae={key:1,class:"gi-description"},Re=v({__name:"GenericInput",props:{value:null,schema:null},emits:["change"],setup(e,{emit:o}){const u=e,n=S(()=>({component:Ce[u.schema.type],props:{value:u.value,schema:u.schema}}));return(l,a)=>(t(),s("div",xe,["label"in e.schema?(t(),s("div",Se,["label"in e.schema?(t(),s("label",Te,I(e.schema.label),1)):m("",!0),"required"in e.schema||"secret"in e.schema?(t(),s("div",Me,["required"in e.schema&&e.schema.required?(t(),s("span",we,"[Required]")):m("",!0),"secret"in e.schema&&e.schema.secret?(t(),s("span",Be,"[Secret]")):m("",!0)])):m("",!0)])):m("",!0),"description"in e.schema?(t(),s("div",Ae,I(e.schema.description),1)):m("",!0),(t(),w(L(_(n).component),E({class:"gi-input"},_(n).props,{onChange:a[0]||(a[0]=g=>o("change",g))}),null,16))]))}});const B=C(Re,[["__scopeId","data-v-dd33d764"]]),je={class:"tab-menu"},De={class:"tabs"},Oe={key:0,class:"group"},qe={class:"group"},Ne=["onClick"],Pe={key:1,class:"group"},Ee={class:"content"},Le=v({__name:"TabMenuUnderline",setup(e){const o=T([]),u=U(),n=a=>{const g=h=>h==a;o.forEach((h,c)=>{h.isActive=g(c)})},l=S(()=>o.findIndex(a=>a.isActive));return V("addTab",a=>{o.push(a)}),O(()=>{n(0)}),(a,g)=>{const h=G("icon");return t(),s("div",je,[d("div",De,[_(u).left?(t(),s("div",Oe,[M(a.$slots,"left",{},void 0,!0)])):m("",!0),d("div",qe,[(t(!0),s($,null,k(o,(c,f)=>(t(),s("button",{key:c.title,class:z(["form-tab",_(l)==f&&"active"]),onClick:i=>n(f)},[c.icon?(t(),w(h,{key:0,path:c.icon,fill:"#8692A5",width:"10",height:"10"},null,8,["path"])):m("",!0),F(" "+I(c.title),1)],10,Ne))),128))]),_(u).right?(t(),s("div",Pe,[M(a.$slots,"right",{},void 0,!0)])):m("",!0)]),d("div",Ee,[M(a.$slots,"default",{},void 0,!0)])])}}});const Ue=C(Le,[["__scopeId","data-v-f2e43fa2"]]),A=e=>(W("data-v-63dce332"),e=e(),X(),e),Ve={class:"page settings"},Ge={class:"page test"},ze={class:"test-method-selector"},Fe=A(()=>d("label",{class:"test-method-selector-label"},"Method",-1)),Je=A(()=>d("option",{value:null,disabled:"",selected:"",hidden:""},"Select a method",-1)),Qe=["value"],We={key:0,class:"test-method-parameters"},Xe=A(()=>d("label",{class:"test-method-parameters-label"},"Params",-1)),He={key:1,class:"test-method-response"},Ye=A(()=>d("label",{class:"test-method-response-label"},"Response",-1)),Ze={key:0,class:"test-method-response-errors"},Ke={key:1,class:"test-method-response-returns"},et={class:"test-method-response-returns-value"},tt=v({__name:"ConnectorEditor",setup(e){const o=S(()=>{var i;return`/projects/${(i=a.value)==null?void 0:i.projectId}/connectors`}),n=J().params.connectorId,{loading:l,result:a}=Y(()=>H.get(n)),g=S(()=>{var i;return(i=a.value)!=null&&i.schema.methods?Object.keys(a.value.schema.methods).reduce((b,r)=>{const p=a.value.schema.methods[r];return[...b,{key:r,...p}]},[]):[]}),h=S(()=>!a.value||!(a.value.type in j.schema)?null:j.schema[a.value.type]),c=T({testMethod:null,testParams:{},testResponse:null}),f=async()=>{!a.value||!c.testMethod||!c.testParams||(c.testResponse=await a.value.test(c.testMethod,c.testParams))};return(i,b)=>_(l)||!_(a)||!_(h)?(t(),w(ee,{key:0})):(t(),w(Ue,{key:1,class:"connector-editor"},{left:x(()=>[y(Z,{link:_(o)},null,8,["link"])]),right:x(()=>[y(K,{model:_(a)},null,8,["model"])]),default:x(()=>[y(D,{title:"Settings"},{default:x(()=>[d("div",Ve,[(t(!0),s($,null,k(_(h).settings,(r,p)=>(t(),s("div",{key:p},[y(B,{schema:r,value:_(a).settings[p],onChange:R=>_(a).settings[p]=R},null,8,["schema","value","onChange"])]))),128))])]),_:1}),y(D,{title:"Test"},{default:x(()=>[d("div",Ge,[d("div",ze,[Fe,q(d("select",{"onUpdate:modelValue":b[0]||(b[0]=r=>c.testMethod=r),class:"test-method-selector-selector"},[Je,(t(!0),s($,null,k(_(g),r=>(t(),s("option",{key:r.key,value:r.key},I(r.label),9,Qe))),128))],512),[[Q,c.testMethod]])]),c.testMethod?(t(),s("div",We,[Xe,(t(!0),s($,null,k(_(a).schema.methods[c.testMethod].params,(r,p)=>(t(),s("div",{key:p,class:"test-field"},[y(B,{schema:r,value:c.testParams[p],onChange:R=>c.testParams[p]=R},null,8,["schema","value","onChange"])]))),128)),d("button",{class:"test-method-run",onClick:b[1]||(b[1]=r=>f())},"Test")])):m("",!0),c.testResponse?(t(),s("div",He,[Ye,c.testResponse.errors.length>0?(t(),s("div",Ze,[(t(!0),s($,null,k(c.testResponse.errors,r=>(t(),s("div",{key:r},I(r),1))),128))])):m("",!0),c.testResponse.returns&&Object.keys(c.testResponse.returns).length>0?(t(),s("div",Ke,[d("span",et,[d("pre",null,I(JSON.stringify(c.testResponse.returns,null,2)),1)])])):m("",!0)])):m("",!0)])]),_:1})]),_:1}))}});const pt=C(tt,[["__scopeId","data-v-63dce332"]]);export{pt as default}; -//# sourceMappingURL=ConnectorEditor.8079edd8.js.map +import{d as v,v as T,ab as N,o as O,W as q,ac as P,b as t,c as s,B as M,q as C,F as $,L as k,x as d,N as I,e as y,K as S,D as m,t as w,am as E,z as _,a8 as L,y as U,aa as V,a as G,G as z,U as F,w as x,J,X as Q,O as W,Q as X}from"./registerWidgets.cb3a7b8d.js";import{b as j}from"./index.7fea4022.js";import"./gateway.2edca867.js";import{C as H}from"./connector.83eaa2db.js";import{a as Y}from"./asyncComputed.31994732.js";import{B as Z}from"./BackButton.677abc51.js";import{S as K}from"./SaveButton.b678d3d3.js";import{L as ee}from"./CircularLoading.1e68d2b1.js";import"./passwordlessManager.afd7d1d0.js";import"./pubsub.f85a17d2.js";import"./activeRecord.adfc6223.js";import"./icons.39dfa322.js";import"./lottie.234eb92e.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="9e3159ca-e890-49b6-b687-d39a41000b97",e._sentryDebugIdIdentifier="sentry-dbid-9e3159ca-e890-49b6-b687-d39a41000b97")}catch{}})();const te={class:"tab"},se=v({__name:"Tab",props:{title:null,icon:null},setup(e){const o=e,u=T({isActive:!1,title:o.title,icon:o.icon}),n=N("addTab");return O(()=>{n(u)}),(l,a)=>q((t(),s("div",te,[M(l.$slots,"default",{},void 0,!0)],512)),[[P,u.isActive]])}});const D=C(se,[["__scopeId","data-v-497e4e8e"]]),ne=["value"],ae=v({__name:"TextInput",props:{value:null,schema:null},emits:["change"],setup(e,{emit:o}){return(u,n)=>(t(),s("input",{value:e.value,onChange:n[0]||(n[0]=l=>o("change",l.target.value))},null,40,ne))}}),oe=["value"],ce=v({__name:"NumberInput",props:{value:null,schema:null},emits:["change"],setup(e,{emit:o}){return(u,n)=>(t(),s("input",{value:e.value,type:"number",onChange:n[0]||(n[0]=l=>o("change",l.target.value))},null,40,oe))}}),le=["value"],ue=v({__name:"BooleanInput",props:{value:{type:Boolean},schema:null},emits:["change"],setup(e,{emit:o}){return(u,n)=>(t(),s("input",{value:e.value,type:"checkbox",onChange:n[0]||(n[0]=l=>o("change",l.target.checked))},null,40,le))}}),re={class:"oi"},ie={class:"oi-item-label"},de=v({__name:"ObjectInput",props:{value:null,schema:null},emits:["change"],setup(e,{emit:o}){var g;const u=e,n=T({value:(g=u.value)!=null?g:{}}),l=(h,c)=>{n.value[h]=c,a()},a=()=>{o("change",n.value)};return(h,c)=>(t(),s("div",re,[(t(!0),s($,null,k(u.schema.values,(b,i)=>(t(),s("div",{key:i,class:"oi-item"},[d("div",ie,I(i),1),y(B,{class:"oi-item-input",schema:b,value:n.value[i],onChange:f=>l(i,f)},null,8,["schema","value","onChange"])]))),128))]))}});const _e=C(de,[["__scopeId","data-v-bd751ecc"]]),he={class:"ai"},me=["onClick"],pe=v({__name:"ArrayInput",props:{value:null,schema:null},emits:["change"],setup(e,{emit:o}){var c;const n=T({value:(c=e.value)!=null?c:[]}),l=()=>{n.value.push(void 0)},a=b=>{n.value.splice(b,1),h()},g=(b,i)=>{n.value[b]=i,h()},h=()=>{o("change",n.value)};return(b,i)=>(t(),s("div",he,[(t(!0),s($,null,k(n.value,(f,r)=>(t(),s("div",{key:r,class:"ai-item"},[y(B,{schema:e.schema.items,value:f,onChange:p=>g(r,p)},null,8,["schema","value","onChange"]),d("button",{class:"ai-item-remove",onClick:p=>a(r)},"x",8,me)]))),128)),d("button",{class:"ai-item-add",onClick:i[0]||(i[0]=f=>l())},"Add")]))}});const ve=C(pe,[["__scopeId","data-v-a6c8b9fb"]]),ge=["value"],be=["value"],fe=v({__name:"OptionsInput",props:{value:null,schema:null},emits:["change"],setup(e,{emit:o}){return(u,n)=>(t(),s("select",{value:e.value,onChange:n[0]||(n[0]=l=>o("change",l.target.value))},[(t(!0),s($,null,k(e.schema.values,l=>(t(),s("option",{key:l,value:l},I(l),9,be))),128))],40,ge))}}),ye=["value"],$e=v({__name:"UnionInput",props:{value:null,schema:null},emits:["change"],setup(e,{emit:o}){return(u,n)=>(t(),s("input",{value:e.value,onChange:n[0]||(n[0]=l=>o("change",l.target.value))},null,40,ye))}}),ke=["value"],Ie=v({__name:"AnyInput",props:{value:null,schema:null},emits:["change"],setup(e,{emit:o}){return(u,n)=>(t(),s("input",{value:e.value,onChange:n[0]||(n[0]=l=>o("change",l.target.value))},null,40,ke))}}),Ce={string:ae,number:ce,boolean:ue,object:_e,array:ve,options:fe,any:Ie,union:$e},xe={class:"gi"},Se={key:0,class:"gi-header"},Te={key:0,class:"gi-label"},Me={key:1,class:"gi-tags"},we={key:0,class:"gi-required"},Be={key:1,class:"gi-required"},Ae={key:1,class:"gi-description"},Re=v({__name:"GenericInput",props:{value:null,schema:null},emits:["change"],setup(e,{emit:o}){const u=e,n=S(()=>({component:Ce[u.schema.type],props:{value:u.value,schema:u.schema}}));return(l,a)=>(t(),s("div",xe,["label"in e.schema?(t(),s("div",Se,["label"in e.schema?(t(),s("label",Te,I(e.schema.label),1)):m("",!0),"required"in e.schema||"secret"in e.schema?(t(),s("div",Me,["required"in e.schema&&e.schema.required?(t(),s("span",we,"[Required]")):m("",!0),"secret"in e.schema&&e.schema.secret?(t(),s("span",Be,"[Secret]")):m("",!0)])):m("",!0)])):m("",!0),"description"in e.schema?(t(),s("div",Ae,I(e.schema.description),1)):m("",!0),(t(),w(L(_(n).component),E({class:"gi-input"},_(n).props,{onChange:a[0]||(a[0]=g=>o("change",g))}),null,16))]))}});const B=C(Re,[["__scopeId","data-v-dd33d764"]]),je={class:"tab-menu"},De={class:"tabs"},Oe={key:0,class:"group"},qe={class:"group"},Ne=["onClick"],Pe={key:1,class:"group"},Ee={class:"content"},Le=v({__name:"TabMenuUnderline",setup(e){const o=T([]),u=U(),n=a=>{const g=h=>h==a;o.forEach((h,c)=>{h.isActive=g(c)})},l=S(()=>o.findIndex(a=>a.isActive));return V("addTab",a=>{o.push(a)}),O(()=>{n(0)}),(a,g)=>{const h=G("icon");return t(),s("div",je,[d("div",De,[_(u).left?(t(),s("div",Oe,[M(a.$slots,"left",{},void 0,!0)])):m("",!0),d("div",qe,[(t(!0),s($,null,k(o,(c,b)=>(t(),s("button",{key:c.title,class:z(["form-tab",_(l)==b&&"active"]),onClick:i=>n(b)},[c.icon?(t(),w(h,{key:0,path:c.icon,fill:"#8692A5",width:"10",height:"10"},null,8,["path"])):m("",!0),F(" "+I(c.title),1)],10,Ne))),128))]),_(u).right?(t(),s("div",Pe,[M(a.$slots,"right",{},void 0,!0)])):m("",!0)]),d("div",Ee,[M(a.$slots,"default",{},void 0,!0)])])}}});const Ue=C(Le,[["__scopeId","data-v-f2e43fa2"]]),A=e=>(W("data-v-63dce332"),e=e(),X(),e),Ve={class:"page settings"},Ge={class:"page test"},ze={class:"test-method-selector"},Fe=A(()=>d("label",{class:"test-method-selector-label"},"Method",-1)),Je=A(()=>d("option",{value:null,disabled:"",selected:"",hidden:""},"Select a method",-1)),Qe=["value"],We={key:0,class:"test-method-parameters"},Xe=A(()=>d("label",{class:"test-method-parameters-label"},"Params",-1)),He={key:1,class:"test-method-response"},Ye=A(()=>d("label",{class:"test-method-response-label"},"Response",-1)),Ze={key:0,class:"test-method-response-errors"},Ke={key:1,class:"test-method-response-returns"},et={class:"test-method-response-returns-value"},tt=v({__name:"ConnectorEditor",setup(e){const o=S(()=>{var i;return`/projects/${(i=a.value)==null?void 0:i.projectId}/connectors`}),n=J().params.connectorId,{loading:l,result:a}=Y(()=>H.get(n)),g=S(()=>{var i;return(i=a.value)!=null&&i.schema.methods?Object.keys(a.value.schema.methods).reduce((f,r)=>{const p=a.value.schema.methods[r];return[...f,{key:r,...p}]},[]):[]}),h=S(()=>!a.value||!(a.value.type in j.schema)?null:j.schema[a.value.type]),c=T({testMethod:null,testParams:{},testResponse:null}),b=async()=>{!a.value||!c.testMethod||!c.testParams||(c.testResponse=await a.value.test(c.testMethod,c.testParams))};return(i,f)=>_(l)||!_(a)||!_(h)?(t(),w(ee,{key:0})):(t(),w(Ue,{key:1,class:"connector-editor"},{left:x(()=>[y(Z,{link:_(o)},null,8,["link"])]),right:x(()=>[y(K,{model:_(a)},null,8,["model"])]),default:x(()=>[y(D,{title:"Settings"},{default:x(()=>[d("div",Ve,[(t(!0),s($,null,k(_(h).settings,(r,p)=>(t(),s("div",{key:p},[y(B,{schema:r,value:_(a).settings[p],onChange:R=>_(a).settings[p]=R},null,8,["schema","value","onChange"])]))),128))])]),_:1}),y(D,{title:"Test"},{default:x(()=>[d("div",Ge,[d("div",ze,[Fe,q(d("select",{"onUpdate:modelValue":f[0]||(f[0]=r=>c.testMethod=r),class:"test-method-selector-selector"},[Je,(t(!0),s($,null,k(_(g),r=>(t(),s("option",{key:r.key,value:r.key},I(r.label),9,Qe))),128))],512),[[Q,c.testMethod]])]),c.testMethod?(t(),s("div",We,[Xe,(t(!0),s($,null,k(_(a).schema.methods[c.testMethod].params,(r,p)=>(t(),s("div",{key:p,class:"test-field"},[y(B,{schema:r,value:c.testParams[p],onChange:R=>c.testParams[p]=R},null,8,["schema","value","onChange"])]))),128)),d("button",{class:"test-method-run",onClick:f[1]||(f[1]=r=>b())},"Test")])):m("",!0),c.testResponse?(t(),s("div",He,[Ye,c.testResponse.errors.length>0?(t(),s("div",Ze,[(t(!0),s($,null,k(c.testResponse.errors,r=>(t(),s("div",{key:r},I(r),1))),128))])):m("",!0),c.testResponse.returns&&Object.keys(c.testResponse.returns).length>0?(t(),s("div",Ke,[d("span",et,[d("pre",null,I(JSON.stringify(c.testResponse.returns,null,2)),1)])])):m("",!0)])):m("",!0)])]),_:1})]),_:1}))}});const pt=C(tt,[["__scopeId","data-v-63dce332"]]);export{pt as default}; +//# sourceMappingURL=ConnectorEditor.6f621852.js.map diff --git a/abstra_statics/dist/assets/Connectors.31312640.js b/abstra_statics/dist/assets/Connectors.31312640.js deleted file mode 100644 index d3afc6099d..0000000000 --- a/abstra_statics/dist/assets/Connectors.31312640.js +++ /dev/null @@ -1,2 +0,0 @@ -import{d as f,K as C,b as g,t as _,z as s,J as w,H as I}from"./registerWidgets.3fe0df5a.js";import{b as h}from"./index.24c9f37d.js";import"./gateway.63e02d1d.js";import{C as i}from"./connector.01592434.js";import{a as k}from"./asyncComputed.4b275614.js";import{g as x,r as D}from"./icons.9d575a00.js";import{C as E}from"./CrudView.674ca9db.js";import"./passwordlessManager.f53316a7.js";import"./pubsub.909df758.js";import"./activeRecord.2bc1b71f.js";import"./DropdownMenu.9edc1223.js";import"./Modal.32a3d62d.js";import"./LoadingIndicator.a20841c3.js";import"./lottie.8f58e4c7.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[n]="2caa551c-d49b-4fd0-aeb3-ba2672168275",o._sentryDebugIdIdentifier="sentry-dbid-2caa551c-d49b-4fd0-aeb3-ba2672168275")}catch{}})();const Y=f({__name:"Connectors",setup(o){const n=w(),r=I(),c=n.params.projectId;async function l(e){const t=await i.create(c,e.name,e.type);r.push({name:"connectorEditor",params:{connectorId:t.id}})}const d=[{key:"name",label:"Connector name",type:"text"},{key:"type",label:"Connector type",type:Object.entries(h.schema).map(([e,t])=>({value:e,label:t.label}))}],{loading:p,result:m,refetch:u}=k(()=>i.list(c)),y=C(()=>{var e,t;return{columns:[{name:"Name"},{name:"Type"},{name:"actions"}],rows:(t=(e=m.value)==null?void 0:e.map(a=>({key:a.id,cells:[{text:a.name,classes:["centered"]},{text:a.type},{text:"Actions",classes:["centered"],actions:[{icon:x,label:"Edit",onClick({key:b}){r.push({name:"connectorEditor",params:{connectorId:b}})}},{icon:D,label:"Delete",dangerous:!0,async onClick(){await a.delete(),u()}}]}]})))!=null?t:[]}});return(e,t)=>(g(),_(E,{"entity-name":"connector",loading:s(p),title:"Connectors",description:"Each connector is a version of your app. You can create a new connector by deploying your app from the local editor.","empty-title":"No connectors here yet",table:s(y),fields:d,"create-button-text":"Create connector",onCreate:l},null,8,["loading","table"]))}});export{Y as default}; -//# sourceMappingURL=Connectors.31312640.js.map diff --git a/abstra_statics/dist/assets/Connectors.8da89729.js b/abstra_statics/dist/assets/Connectors.8da89729.js new file mode 100644 index 0000000000..6f730cdd9b --- /dev/null +++ b/abstra_statics/dist/assets/Connectors.8da89729.js @@ -0,0 +1,2 @@ +import{d as b,K as C,b as g,t as _,z as s,J as w,H as I}from"./registerWidgets.cb3a7b8d.js";import{b as h}from"./index.7fea4022.js";import"./gateway.2edca867.js";import{C as i}from"./connector.83eaa2db.js";import{a as k}from"./asyncComputed.31994732.js";import{g as x,r as D}from"./icons.39dfa322.js";import{C as E}from"./CrudView.87a92735.js";import"./passwordlessManager.afd7d1d0.js";import"./pubsub.f85a17d2.js";import"./activeRecord.adfc6223.js";import"./DropdownMenu.c973057b.js";import"./Modal.43c3d47a.js";import"./LoadingIndicator.d4ffd545.js";import"./lottie.234eb92e.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[n]="c2c9dedd-c414-416e-9eae-af0c7ddbde9e",o._sentryDebugIdIdentifier="sentry-dbid-c2c9dedd-c414-416e-9eae-af0c7ddbde9e")}catch{}})();const Y=b({__name:"Connectors",setup(o){const n=w(),r=I(),c=n.params.projectId;async function d(e){const t=await i.create(c,e.name,e.type);r.push({name:"connectorEditor",params:{connectorId:t.id}})}const l=[{key:"name",label:"Connector name",type:"text"},{key:"type",label:"Connector type",type:Object.entries(h.schema).map(([e,t])=>({value:e,label:t.label}))}],{loading:p,result:m,refetch:u}=k(()=>i.list(c)),y=C(()=>{var e,t;return{columns:[{name:"Name"},{name:"Type"},{name:"actions"}],rows:(t=(e=m.value)==null?void 0:e.map(a=>({key:a.id,cells:[{text:a.name,classes:["centered"]},{text:a.type},{text:"Actions",classes:["centered"],actions:[{icon:x,label:"Edit",onClick({key:f}){r.push({name:"connectorEditor",params:{connectorId:f}})}},{icon:D,label:"Delete",dangerous:!0,async onClick(){await a.delete(),u()}}]}]})))!=null?t:[]}});return(e,t)=>(g(),_(E,{"entity-name":"connector",loading:s(p),title:"Connectors",description:"Each connector is a version of your app. You can create a new connector by deploying your app from the local editor.","empty-title":"No connectors here yet",table:s(y),fields:l,"create-button-text":"Create connector",onCreate:d},null,8,["loading","table"]))}});export{Y as default}; +//# sourceMappingURL=Connectors.8da89729.js.map diff --git a/abstra_statics/dist/assets/CrudView.674ca9db.js b/abstra_statics/dist/assets/CrudView.87a92735.js similarity index 71% rename from abstra_statics/dist/assets/CrudView.674ca9db.js rename to abstra_statics/dist/assets/CrudView.87a92735.js index d29afa7ac7..9c38125350 100644 --- a/abstra_statics/dist/assets/CrudView.674ca9db.js +++ b/abstra_statics/dist/assets/CrudView.87a92735.js @@ -1,2 +1,2 @@ -import{D as T,_ as A}from"./DropdownMenu.9edc1223.js";import{d as B,r as I,v as z,b as t,t as f,w as C,U as D,N as o,x as l,c as s,L as h,W as V,as as U,X as L,F as m,D as v,O as $,Q as N,q as M,K as E,B as F,A as W,z as j,a as q,G as S}from"./registerWidgets.3fe0df5a.js";import{M as G}from"./Modal.32a3d62d.js";import{L as H}from"./LoadingIndicator.a20841c3.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},u=new Error().stack;u&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[u]="9dab60cb-6ca3-4169-a092-29f4453d2b7e",e._sentryDebugIdIdentifier="sentry-dbid-9dab60cb-6ca3-4169-a092-29f4453d2b7e")}catch{}})();const K=e=>($("data-v-ed693c76"),e=e(),N(),e),O={class:"main-text"},Q={class:"fields"},X=["onUpdate:modelValue","type"],Y=["onUpdate:modelValue"],J=["value"],P=K(()=>l("div",{class:"separator"},null,-1)),R={class:"buttons"},Z=B({__name:"CreationModal",props:{entityName:null,fields:null},emits:["create"],setup(e,{expose:u,emit:p}){const c=I(null),d=z({inputValue:{}}),b={maxWidth:"350px",height:"unset",padding:"30px"},g={borderBottom:"none",fontSize:"18px",marginBottom:"17px",display:"flex",flexDirection:"column",justifyContent:"center",color:"#4E596A",lineHeight:"22px"},r={color:"#414A58",fontSize:"14px",alignItems:"unset"},w=()=>{var i;return(i=c==null?void 0:c.value)==null?void 0:i.open()},_=()=>{var i;return(i=c==null?void 0:c.value)==null?void 0:i.close()},y=()=>{p("create",d.inputValue),_()};return u({open:w,close:_}),(i,x)=>(t(),f(G,{ref_key:"modalRef",ref:c,"container-style":b,"header-style":g,"content-style":r},{header:C(()=>[D(" Create a new "+o(e.entityName),1)]),content:C(()=>[l("div",O," You may edit the "+o(e.entityName)+" name afterwards at Settings. ",1),l("div",Q,[(t(!0),s(m,null,h(e.fields,n=>{var k;return t(),s("div",{key:n.key,class:"field"},[l("label",null,o(n.label),1),!n.type||typeof n.type=="string"?V((t(),s("input",{key:0,"onUpdate:modelValue":a=>d.inputValue[n.key]=a,type:(k=n.type)!=null?k:"text",class:"ws-name"},null,8,X)),[[U,d.inputValue[n.key]]]):Array.isArray(n.type)?V((t(),s("select",{key:1,"onUpdate:modelValue":a=>d.inputValue[n.key]=a,class:"ws-name"},[(t(!0),s(m,null,h(n.type,a=>(t(),s("option",{key:typeof a=="string"?a:a.value,value:typeof a=="string"?a:a.value},o(typeof a=="string"?a:a.label),9,J))),128))],8,Y)),[[L,d.inputValue[n.key]]]):v("",!0)])}),128))]),P,l("div",R,[l("button",{class:"cancel",onClick:_},"Cancel"),l("button",{class:"create",onClick:y},"Create "+o(e.entityName),1)])]),_:1},512))}});const ee=M(Z,[["__scopeId","data-v-ed693c76"]]),te=e=>($("data-v-8365dfdd"),e=e(),N(),e),ne={key:1,class:"crud-view"},se={class:"header"},ae={class:"title-wrapper"},le={class:"description"},oe={key:0,class:"empty-list"},ce=te(()=>l("img",{src:A},null,-1)),ie={class:"empty-list-title"},de={class:"empty-list-description"},re={key:2},ue=B({__name:"CrudView",props:{loading:{type:Boolean},title:null,description:null,createButtonText:null,emptyTitle:null,entityName:null,fields:null,table:null},emits:["create"],setup(e,{emit:u}){const p=e,c=I(null),d=()=>{var r;p.fields?(r=c.value)==null||r.open():u("create",{})};async function b(r){u("create",r)}const g=E(()=>({"--columnCount":`${p.table.columns.length}`}));return(r,w)=>{const _=q("router-link");return t(),s(m,null,[e.loading?(t(),f(H,{key:0})):(t(),s("div",ne,[l("div",se,[l("div",ae,[l("h1",null,o(e.title),1),l("p",le,o(e.description),1),e.createButtonText?(t(),s("button",{key:0,onClick:d},o(e.createButtonText),1)):v("",!0)])]),e.table.rows.length===0?(t(),s("div",oe,[ce,l("div",ie,o(e.emptyTitle),1),l("div",de,[F(r.$slots,"empty-description",{},void 0,!0)]),e.createButtonText?(t(),s("button",{key:0,onClick:d},o(e.createButtonText),1)):v("",!0)])):(t(),s("table",{key:1,style:W(j(g))},[l("th",null,[(t(!0),s(m,null,h(e.table.columns,(y,i)=>(t(),s("td",{key:i,class:"cell"},o(y.name),1))),128))]),(t(!0),s(m,null,h(e.table.rows,(y,i)=>{var x;return t(),s("tr",{key:i,class:S((x=y.classes)!=null?x:[])},[(t(!0),s(m,null,h(y.cells,(n,k)=>{var a;return t(),s("td",{key:k,class:S((a=n.classes)!=null?a:[])},[n.actions?(t(),f(T,{key:0,title:"Actions","highlight-last":!0,options:n.actions,payload:{key:y.key}},null,8,["options","payload"])):n.link?(t(),f(_,{key:1,to:n.link,class:"runtime-title"},{default:C(()=>[D(o(n.text),1)]),_:2},1032,["to"])):(t(),s("div",re,o(n.text),1))],2)}),128))],2)}),128))],4))])),e.fields?(t(),f(ee,{key:2,ref_key:"modalRef",ref:c,fields:e.fields,"entity-name":e.entityName,onCreate:b},null,8,["fields","entity-name"])):v("",!0)],64)}}});const fe=M(ue,[["__scopeId","data-v-8365dfdd"]]);export{fe as C}; -//# sourceMappingURL=CrudView.674ca9db.js.map +import{D as T,_ as A}from"./DropdownMenu.c973057b.js";import{d as B,r as I,v as z,b as t,t as f,w as C,U as D,N as o,x as l,c as s,L as h,W as V,as as U,X as L,F as m,D as v,O as $,Q as N,q as M,K as E,B as F,A as W,z as j,a as q,G as S}from"./registerWidgets.cb3a7b8d.js";import{M as G}from"./Modal.43c3d47a.js";import{L as H}from"./LoadingIndicator.d4ffd545.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},u=new Error().stack;u&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[u]="ba1a12a3-fff9-4463-b818-e0349bdefdca",e._sentryDebugIdIdentifier="sentry-dbid-ba1a12a3-fff9-4463-b818-e0349bdefdca")}catch{}})();const K=e=>($("data-v-ed693c76"),e=e(),N(),e),O={class:"main-text"},Q={class:"fields"},X=["onUpdate:modelValue","type"],Y=["onUpdate:modelValue"],J=["value"],P=K(()=>l("div",{class:"separator"},null,-1)),R={class:"buttons"},Z=B({__name:"CreationModal",props:{entityName:null,fields:null},emits:["create"],setup(e,{expose:u,emit:p}){const i=I(null),d=z({inputValue:{}}),b={maxWidth:"350px",height:"unset",padding:"30px"},g={borderBottom:"none",fontSize:"18px",marginBottom:"17px",display:"flex",flexDirection:"column",justifyContent:"center",color:"#4E596A",lineHeight:"22px"},r={color:"#414A58",fontSize:"14px",alignItems:"unset"},w=()=>{var c;return(c=i==null?void 0:i.value)==null?void 0:c.open()},_=()=>{var c;return(c=i==null?void 0:i.value)==null?void 0:c.close()},y=()=>{p("create",d.inputValue),_()};return u({open:w,close:_}),(c,x)=>(t(),f(G,{ref_key:"modalRef",ref:i,"container-style":b,"header-style":g,"content-style":r},{header:C(()=>[D(" Create a new "+o(e.entityName),1)]),content:C(()=>[l("div",O," You may edit the "+o(e.entityName)+" name afterwards at Settings. ",1),l("div",Q,[(t(!0),s(m,null,h(e.fields,n=>{var k;return t(),s("div",{key:n.key,class:"field"},[l("label",null,o(n.label),1),!n.type||typeof n.type=="string"?V((t(),s("input",{key:0,"onUpdate:modelValue":a=>d.inputValue[n.key]=a,type:(k=n.type)!=null?k:"text",class:"ws-name"},null,8,X)),[[U,d.inputValue[n.key]]]):Array.isArray(n.type)?V((t(),s("select",{key:1,"onUpdate:modelValue":a=>d.inputValue[n.key]=a,class:"ws-name"},[(t(!0),s(m,null,h(n.type,a=>(t(),s("option",{key:typeof a=="string"?a:a.value,value:typeof a=="string"?a:a.value},o(typeof a=="string"?a:a.label),9,J))),128))],8,Y)),[[L,d.inputValue[n.key]]]):v("",!0)])}),128))]),P,l("div",R,[l("button",{class:"cancel",onClick:_},"Cancel"),l("button",{class:"create",onClick:y},"Create "+o(e.entityName),1)])]),_:1},512))}});const ee=M(Z,[["__scopeId","data-v-ed693c76"]]),te=e=>($("data-v-8365dfdd"),e=e(),N(),e),ne={key:1,class:"crud-view"},se={class:"header"},ae={class:"title-wrapper"},le={class:"description"},oe={key:0,class:"empty-list"},ie=te(()=>l("img",{src:A},null,-1)),ce={class:"empty-list-title"},de={class:"empty-list-description"},re={key:2},ue=B({__name:"CrudView",props:{loading:{type:Boolean},title:null,description:null,createButtonText:null,emptyTitle:null,entityName:null,fields:null,table:null},emits:["create"],setup(e,{emit:u}){const p=e,i=I(null),d=()=>{var r;p.fields?(r=i.value)==null||r.open():u("create",{})};async function b(r){u("create",r)}const g=E(()=>({"--columnCount":`${p.table.columns.length}`}));return(r,w)=>{const _=q("router-link");return t(),s(m,null,[e.loading?(t(),f(H,{key:0})):(t(),s("div",ne,[l("div",se,[l("div",ae,[l("h1",null,o(e.title),1),l("p",le,o(e.description),1),e.createButtonText?(t(),s("button",{key:0,onClick:d},o(e.createButtonText),1)):v("",!0)])]),e.table.rows.length===0?(t(),s("div",oe,[ie,l("div",ce,o(e.emptyTitle),1),l("div",de,[F(r.$slots,"empty-description",{},void 0,!0)]),e.createButtonText?(t(),s("button",{key:0,onClick:d},o(e.createButtonText),1)):v("",!0)])):(t(),s("table",{key:1,style:W(j(g))},[l("th",null,[(t(!0),s(m,null,h(e.table.columns,(y,c)=>(t(),s("td",{key:c,class:"cell"},o(y.name),1))),128))]),(t(!0),s(m,null,h(e.table.rows,(y,c)=>{var x;return t(),s("tr",{key:c,class:S((x=y.classes)!=null?x:[])},[(t(!0),s(m,null,h(y.cells,(n,k)=>{var a;return t(),s("td",{key:k,class:S((a=n.classes)!=null?a:[])},[n.actions?(t(),f(T,{key:0,title:"Actions","highlight-last":!0,options:n.actions,payload:{key:y.key}},null,8,["options","payload"])):n.link?(t(),f(_,{key:1,to:n.link,class:"runtime-title"},{default:C(()=>[D(o(n.text),1)]),_:2},1032,["to"])):(t(),s("div",re,o(n.text),1))],2)}),128))],2)}),128))],4))])),e.fields?(t(),f(ee,{key:2,ref_key:"modalRef",ref:i,fields:e.fields,"entity-name":e.entityName,onCreate:b},null,8,["fields","entity-name"])):v("",!0)],64)}}});const fe=M(ue,[["__scopeId","data-v-8365dfdd"]]);export{fe as C}; +//# sourceMappingURL=CrudView.87a92735.js.map diff --git a/abstra_statics/dist/assets/DashEditor.45000c34.js b/abstra_statics/dist/assets/DashEditor.695e56d1.js similarity index 98% rename from abstra_statics/dist/assets/DashEditor.45000c34.js rename to abstra_statics/dist/assets/DashEditor.695e56d1.js index 6a245ecab3..ca29aee818 100644 --- a/abstra_statics/dist/assets/DashEditor.45000c34.js +++ b/abstra_statics/dist/assets/DashEditor.695e56d1.js @@ -1,4 +1,4 @@ -var $t=Object.defineProperty;var Gt=(s,e,t)=>e in s?$t(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var v=(s,e,t)=>(Gt(s,typeof e!="symbol"?e+"":e,t),t);import{r as Ht}from"./index.776642db.js";import{T as Bt,a as st}from"./Tab.7855495c.js";import{r as k,d as z,b as y,c as E,x as w,W as fe,Z as pt,e as L,O as $e,Q as Ge,q as U,K as G,a2 as ce,ac as He,N as W,z as m,F as de,L as he,A as ue,D as M,v as gt,Y as ft,a as Ee,af as zt,G as ee,t as X,ae as Be,V as H,o as vt,al as Ut,E as Ft,am as jt,an as Kt,w as re,U as Vt,R as Zt,H as Jt,J as Qt,S as qt}from"./registerWidgets.3fe0df5a.js";import{d as Yt,D as Xt,w as B,r as ze,i as Oe,a as es,v as ts,b as mt,p as rt,c as ss,m as rs}from"./DashPlayer.0888e5b9.js";import{R as os,S as is,_ as ns,L as as}from"./UnsavedChangesHandler.vue_vue_type_script_setup_true_lang.a909e3ed.js";import{L as ls}from"./CircularLoading.2fb746db.js";import{i as D,w as j,g as cs,s as ds,a as Q,b as C,c as me,f as oe,e as Ue,h as hs,j as us,k as ps}from"./runnerData.331b4b09.js";import{p as gs,i as fs,x as Ie,y as Pe,z as vs,t as ms,A as ys}from"./icons.9d575a00.js";import{a as ws}from"./asyncComputed.4b275614.js";import{D as Ss}from"./dashes.9a4cf820.js";import{W as Es}from"./workspaces.220ebb5a.js";import{B as _s}from"./BackButton.38e76e75.js";import{S as bs}from"./SaveButton.e20203fa.js";import{P as Is}from"./PreviewButton.f29c359b.js";import{D as Ps}from"./DocsButton.0b9b3a67.js";import{u as _e}from"./uuid.8e57fc19.js";import{P as Fe}from"./pubsub.909df758.js";import"./executeJs.9eb1c025.js";import"./PlayerNavbar.9ff5d98a.js";import"./WidgetsFrame.c900894c.js";import"./colors.b2406923.js";import"./Modal.32a3d62d.js";import"./passwordlessManager.f53316a7.js";import"./Passwordless.15dd7595.js";import"./forms.9088f82a.js";import"./activeRecord.2bc1b71f.js";import"./hooks.56004b79.js";import"./jobs.99d61147.js";import"./login.7c65daa3.js";import"./lottie.8f58e4c7.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="bd91ae3f-04d6-4560-bf68-8c6914bcd319",s._sentryDebugIdIdentifier="sentry-dbid-bd91ae3f-04d6-4560-bf68-8c6914bcd319")}catch{}})();const T={left:20,right:20,top:20,bottom:200};class je{constructor(e){v(this,"_state");v(this,"_projectedElement",null);v(this,"grid");this.grid=e,this._state=k({x:0,y:0,zoom:1})}get x(){return this._state.value.x}set x(e){if(Number.isNaN(e))throw new Error("x is NaN");this._state.value.x=e}get y(){return this._state.value.y}set y(e){if(Number.isNaN(e))throw new Error("y is NaN");this._state.value.y=e}static create(e){return new je(e)}setProjectedCanvas(e){this._projectedElement=e,this.fit()}get projectedElement(){if(!this._projectedElement)throw new Error("Camera has no projected element");return this._projectedElement}updateGrid(e){this.grid=e}get zoom(){return this._state.value.zoom}set zoom(e){if(e<=0)throw new Error("Zoom must be positive");this._state.value.zoom=e}fit(){if(!this.grid.width)throw new Error(`Grid width is ${this.grid.width}}`);if(!this.grid.height)throw new Error(`Grid height is ${this.grid.height}`);const e=this.canvasRect,t=Math.max(e.width-T.left-T.right,1),r=Math.max(e.height-T.top-T.bottom,1);this.zoom=1;const o=Math.min(t/this.grid.width,r/this.grid.height);this.zoomIn(o,{x:e.x+e.width/2,y:e.y+e.height/2,referential:"screen"}),this.x=t>this.grid.width*o?-(e.x+e.width/2-o*this.grid.width/2)/o:-(e.x+T.left)/o,this.y=rt.x+T.left,o=e.x+e.widtht.width,l=e.height>t.height,c=e.y+e.heightt.y+T.top,u=e.y+e.height/2-(t.y+t.height/2),p=this.screenDelta2world({dx:n?o&&r?0:r?e.x-t.x-T.right:o?e.x+e.width-(t.x+t.width)+T.left:0:i,dy:l?c&&a?0:a?e.y-t.y-T.top:c?e.y+e.height-(t.y+t.height)+T.bottom:0:u,referential:"screen"});this.x+=p.dx,this.y+=p.dy}}const xs=s=>($e("data-v-fb3c93ab"),s=s(),Ge(),s),Rs={class:"dash-settings"},Ls={class:"dash-property"},Os=xs(()=>w("label",{class:"property-label"},"Name",-1)),Ns=z({__name:"DashSettings",props:{dash:null},setup(s){return(e,t)=>(y(),E("div",Rs,[w("div",Ls,[Os,fe(w("input",{"onUpdate:modelValue":t[0]||(t[0]=r=>s.dash.title=r),class:"property-input",placeholder:"Enter a name"},null,512),[[pt,s.dash.title]])]),L(os,{runtime:s.dash},null,8,["runtime"])]))}});const As=U(Ns,[["__scopeId","data-v-fb3c93ab"]]),Ts={class:"zoom-bar"},Cs={class:"zoom-value"},ks=z({__name:"ZoomBar",props:{camera:null},emits:["hover","leave"],setup(s,{emit:e}){const t=s,r=k(!1),o=k(null),i=()=>{var a;(a=t.camera)==null||a.zoomIn(1.1,{x:document.body.offsetWidth/2,y:document.body.offsetHeight/2,referential:"screen"})},n=()=>{var a;(a=t.camera)==null||a.zoomIn(.9,{x:document.body.offsetWidth/2,y:document.body.offsetHeight/2,referential:"screen"})},l=G(()=>{var c,a;return`${Math.floor(((a=(c=t.camera)==null?void 0:c.zoom)!=null?a:1)*100)}%`});return ce(()=>{var c;return(c=t.camera)==null?void 0:c.zoom},()=>{clearTimeout(o.value),r.value=!0,o.value=setTimeout(()=>r.value=!1,3e3)}),(c,a)=>fe((y(),E("div",{class:"zoom-bar-wrapper",onMouseover:a[0]||(a[0]=u=>e("hover")),onMouseleave:a[1]||(a[1]=u=>e("leave"))},[w("div",Ts,[w("span",{class:"zoom-control",onClick:n},"-"),w("span",Cs,W(m(l)),1),w("span",{class:"zoom-control",onClick:i},"+")])],544)),[[He,s.camera&&r.value]])}});const Ds=U(ks,[["__scopeId","data-v-f937a967"]]),ot={PandasDataFrame:"https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html",PlotlyFigure:"https://plotly.com/python-api-reference/generated/plotly.graph_objects.Figure.html","datetime.time":"https://docs.python.org/3/library/datetime.html#datetime.time","datetime.date":"https://docs.python.org/3/library/datetime.html#datetime.date","io.IOBase":"https://docs.python.org/3/library/io.html#io.IOBase","time.struct_time":"https://docs.python.org/3/library/time.html#time.struct_time"},Ws="#E286A3",Ms="#EF9542",$s="#B462DB",Gs="#40B6D3",Hs="#6FB96E",Bs=[Ws,Ms,$s,Gs,Hs];function it(s){let e=s;return Object.keys(ot).forEach(t=>{if(s.includes(t)){const r=ot[t];e=e.replace(t,`${t}`)}}),e}const ie={},zs=s=>e=>{if(ie[e])return ie[e];const t=Object.keys(ie).length%s.length;return ie[e]=s[t],s[t]},nt=zs([...Bs]),Us=()=>{Object.keys(ie).forEach(s=>delete ie[s])};class Fs{constructor(){v(this,"globalEventListeners",[])}addGlobalEventListener(e,t){addEventListener(e,t),this.globalEventListeners.find(r=>r.evt===e)||this.globalEventListeners.push({evt:e,handler:t})}removeGlobalEventListeners(){this.globalEventListeners.forEach(({evt:e,handler:t})=>{removeEventListener(e,t)}),this.globalEventListeners=[]}}const js={class:"param-types"},Ks=["innerHTML"],Vs={key:1,class:"prop-type"},Zs=["innerHTML"],Js=z({__name:"ParamTypes",props:{param:null},setup(s){return(e,t)=>(y(),E("div",js,[s.param&&s.param.typeDescription?(y(!0),E(de,{key:0},he(s.param.typeDescription,r=>(y(),E("div",{key:r,class:"prop-type"},[w("p",{class:"type",style:ue({color:m(nt)(r)}),innerHTML:m(it)(r)},null,12,Ks)]))),128)):s.param&&s.param.typeName?(y(),E("div",Vs,[w("p",{class:"type",style:ue({color:m(nt)(s.param.typeName)}),innerHTML:m(it)(s.param.typeName)},null,12,Zs)])):M("",!0)]))}});const at=U(Js,[["__scopeId","data-v-d6aed39d"]]),Qs=["value","placeholder"],qs=["value","placeholder"],Ys=z({__name:"PythonPropInputRaw",props:{hasError:{type:Boolean},placeholder:null,value:null,paramName:null,isCode:{type:Boolean},commit:{type:Function}},emits:["input","change","clearSuggestions"],setup(s,{emit:e}){const t=s,r=gt({isActive:!1,hasChanges:!1}),o=c=>{e("input",c),r.hasChanges=!0},i=()=>{r.isActive=!1,e("clearSuggestions")},n=c=>{c.preventDefault();const a=c.target,u=a.selectionStart,p=a.selectionEnd,d=a.value;a.value=d.substring(0,u)+" "+d.substring(p),a.selectionStart=a.selectionEnd=u+1,a.dispatchEvent(new Event("input"))},l=c=>{t.commit(c),r.hasChanges=!1};return ft(()=>{r.hasChanges&&t.commit(t.value)}),(c,a)=>{var p,d;const u=Ee("icon");return y(),E("div",{class:ee(["input-container",{error:s.hasError}])},[L(u,{path:m(gs),class:"icon",fill:s.hasError?"#D35249":r.isActive?"#3482E5":void 0},null,8,["path","fill"]),s.isCode?(y(),E("textarea",{key:0,value:s.value,class:"prop-input",placeholder:(p=s.placeholder)!=null?p:void 0,onInput:a[0]||(a[0]=h=>o(h.target.value)),onClick:a[1]||(a[1]=h=>r.isActive=!0),onBlur:i,onKeydown:a[2]||(a[2]=zt(h=>n(h),["tab"])),onChange:a[3]||(a[3]=h=>l(h.target.value))},null,40,Qs)):(y(),E("input",{key:1,value:s.value,class:"prop-input",placeholder:(d=s.placeholder)!=null?d:void 0,onInput:a[4]||(a[4]=h=>o(h.target.value)),onClick:a[5]||(a[5]=h=>r.isActive=!0),onBlur:i,onChange:a[6]||(a[6]=h=>l(h.target.value))},null,40,qs))],2)}}});const Xs=U(Ys,[["__scopeId","data-v-d30fa88e"]]),er={class:"suggestions"},tr=["onMousedown"],sr=z({__name:"PythonAutoCompleteSuggestions",props:{suggestions:null},emits:["select"],setup(s,{emit:e}){return(t,r)=>fe((y(),E("div",er,[(y(!0),E(de,null,he(s.suggestions,o=>(y(),E("div",{key:o,class:"suggestion",onMousedown:i=>e("select",o)},W(o),41,tr))),128))],512)),[[He,s.suggestions.length]])}});const rr=U(sr,[["__scopeId","data-v-afec000d"]]),or={class:"python-wrapper"},ir=z({__name:"PythonPropInput",props:{hasError:{type:Boolean},placeholder:null,value:null,paramName:null,dashPlayerService:null,isCode:{type:Boolean},commit:{type:Function}},emits:["input"],setup(s,{emit:e}){const t=s,r=G(()=>t.dashPlayerService.suggestionsFor),o=G(()=>t.dashPlayerService.suggestions),i=a=>{l(t.paramName,a),e("input",a)},n=a=>{c(),e("input",a),t.commit(a)},l=async(a,u)=>{!u||t.dashPlayerService.getAutocompleteSuggestions(a,u)},c=async()=>{await Be(),t.dashPlayerService.clearSuggestions()};return(a,u)=>(y(),E("div",or,[L(Xs,{value:s.value,commit:s.commit,"is-code":s.isCode,"param-name":s.paramName,"dash-player-service":s.dashPlayerService,onInput:i,onClearSuggestions:c},null,8,["value","commit","is-code","param-name","dash-player-service"]),m(r)===s.paramName?(y(),X(rr,{key:0,suggestions:m(o),onSelect:n},null,8,["suggestions"])):M("",!0)]))}});const xe=U(ir,[["__scopeId","data-v-63688ff1"]]),nr={name:"If Block",description:"A block of elements that is only rendered depending on a condition",params:[{typeName:"Boolean",argName:"condition",isKwarg:!1,default:null}],defaultEditProps:{condition:!0},thumbname:"IfBlock.svg"},ae={"if-block":nr},Z=s=>($e("data-v-718f02de"),s=s(),Ge(),s),ar={class:"wrapper"},lr={class:"title"},cr={key:0,class:"widget-prop"},dr=Z(()=>w("h2",null,"Error",-1)),hr=Z(()=>w("p",{class:"section-description"},"Some errors were found while computing the widget.",-1)),ur=["textContent"],pr={key:1,class:"section"},gr=Z(()=>w("h2",null,"VARIABLE",-1)),fr={key:0,class:"section-content"},vr={class:"widget-prop"},mr=Z(()=>w("p",{class:"prop-label"},"Bind a variable",-1)),yr=Z(()=>w("p",{class:"prop-description"},"Create a variable to be controlled by this widget.",-1)),wr={class:"input-container"},Sr={key:0,class:"variable-error prop-error"},Er=Z(()=>w("pre",null,"Variable not defined",-1)),_r={key:1,class:"prop-error",textContent:"SyntaxError: This field must be a variable name"},br=["textContent"],Ir={key:2,class:"section"},Pr=Z(()=>w("h2",null,"EVENTS",-1)),xr={key:0,class:"section-content"},Rr=Z(()=>w("p",{class:"section-description"}," Each event is a Python code that runs on specified situations ",-1)),Lr={class:"prop-label"},Or={class:"prop-description"},Nr={class:"section"},Ar=Z(()=>w("h2",null,"PROPERTIES",-1)),Tr={key:0,class:"section-content"},Cr=Z(()=>w("p",{class:"section-description"}," Each property is a Python expression, make sure to use the correct syntax. ",-1)),kr={class:"prop-label"},Dr={class:"prop-description"},Wr=["textContent"],Mr=Z(()=>w("div",{class:"feedback"},null,-1)),$r=[Mr],Gr=z({__name:"WidgetEditor",props:{selectedWidgetErrors:null,layoutModel:null,selectedWidgets:null,dashPlayerService:null},emits:["close","create-variable"],setup(s,{emit:e}){const t=s,r=k(null);ce(()=>t.selectedWidgetErrors,()=>{r.value=null});const o=S=>{f.openedSections.includes(S)?f.openedSections=f.openedSections.filter(b=>b!==S):f.openedSections.push(S)},i=S=>f.openedSections.includes(S),n=S=>D(S)?j[S.type].name:ae[S.type].name,l=G(()=>r.value===null?t.selectedWidgetErrors:r.value==="variable"?H.exports.omit(t.selectedWidgetErrors,"variable"):{...t.selectedWidgetErrors,props:H.exports.omit(t.selectedWidgetErrors.props,r.value)}),c=G(()=>a.value.type.includes("-input")&&a.value.type!=="click-input"),a=G(()=>t.selectedWidgets[0]),u=G(()=>{var I;if(!D(a.value))return;const b=((I=j[a.value.type].pythonAPI.params)!=null?I:[]).find(O=>O.argName==="initial_value");return b||null});function p(S){this.style.height="0",this.style.height=this.scrollHeight-24+"px"}const d=new Fs,h=k(null),g=402,f=gt({isActive:!1,resizing:!1,width:g,openedSections:["properties","variable"]});vt(()=>{h.value&&(d.addGlobalEventListener("mouseup",()=>f.resizing=!1),d.addGlobalEventListener("mousemove",I=>P(I))),document.querySelectorAll(".widget-props-editor textarea").forEach(I=>{!I||(I.setAttribute("style","height:"+(I.scrollHeight-24)+"px;overflow-y:hidden;"),I.addEventListener("input",p,!1))})}),Ut(()=>{Us(),d.removeGlobalEventListeners()});const P=S=>{f.resizing&&(f.width=Math.max(f.width-S.movementX,g))},_=G(()=>({width:`${f.width}px`})),x=S=>ae[S.type].params,q=G(()=>{const S=(O,F)=>O.argName===F.argName&&O.typeName===F.typeName,b=(O,F,R)=>R.findIndex(se=>S(O,se))===F,I=O=>!O.formOnly;return t.selectedWidgets.flatMap(O=>{var F;return D(O)?(F=j[O.type])==null?void 0:F.pythonAPI.params:x(O)}).filter(Boolean).filter(I).filter(b)}),tt=G(()=>{const S=(I,O)=>I.key===O.key,b=(I,O,F)=>F.findIndex(R=>S(I,R))===O;return t.selectedWidgets.flatMap(I=>{var O;return D(I)?(O=j[I.type])==null?void 0:O.events:[]}).filter(Boolean).filter(b).filter(I=>I.key!=="change")}),Lt=S=>{t.layoutModel.updateVariable(S,a.value.id),r.value="variable"},Ot=S=>b=>{t.layoutModel.updateProp({param:S,value:b},t.selectedWidgets.map(I=>I.id)),r.value=S.argName},Nt=S=>b=>{t.layoutModel.updateEvent({event:S,value:b},t.selectedWidgets.map(I=>I.id))},At=()=>{var S,b;return(b=(S=l.value.variable)==null?void 0:S.repr)==null?void 0:b.includes("SyntaxError")},Tt=()=>{var S,b;return(b=(S=l.value.variable)==null?void 0:S.repr)==null?void 0:b.includes("NameError")},Ct=S=>{!S||(t.dashPlayerService.sendVariableCreated(S),e("create-variable",S))},kt=()=>{var S,b;return((S=l.value.widget)==null?void 0:S.repr)&&!Object.values((b=l.value.props)!=null?b:{}).some(I=>I.repr)},Dt=()=>{var S;return(S=l.value.widget)==null?void 0:S.repr},be=S=>{var b,I;return(I=(b=l.value.props)==null?void 0:b[S])==null?void 0:I.repr},Wt=S=>H.exports.upperFirst(S.replace(/_/g," "));return(S,b)=>{var O,F;const I=Ee("icon");return y(),E("div",{class:"widget-props-editor",style:ue(m(_))},[w("div",ar,[w("div",lr,[w("h1",null,W(n(m(a))),1),L(I,{path:m(fs),fill:"#414A58",class:"close-icon",width:"16",height:"16",onClick:b[0]||(b[0]=R=>e("close"))},null,8,["path"])]),kt()?(y(),E("div",cr,[dr,hr,w("pre",{class:"prop-error",textContent:W(Dt())},null,8,ur)])):M("",!0),m(c)?(y(),E("div",pr,[w("div",{class:"section-header",onClick:b[1]||(b[1]=R=>o("variable"))},[L(I,{path:i("variable")?m(Ie):m(Pe),fill:"#414A58",class:"chevron-icon",width:"16",height:"16"},null,8,["path"]),gr]),i("variable")?(y(),E("div",fr,[w("div",vr,[mr,yr,w("div",wr,[L(xe,{placeholder:"variable_name","param-name":"variable","dash-player-service":s.dashPlayerService,value:(O=m(a).variable)!=null?O:"",commit:Lt,"is-code":!1,onInput:b[2]||(b[2]=R=>m(a).variable=R)},null,8,["dash-player-service","value"])]),Tt()&&m(a).variable?(y(),E("div",Sr,[Er,w("button",{onClick:b[3]||(b[3]=R=>Ct(m(a).variable))}," Create ")])):At()?(y(),E("pre",_r)):(F=m(l).variable)!=null&&F.repr?(y(),E("pre",{key:2,class:"prop-error",textContent:W(m(l).variable.repr)},null,8,br)):M("",!0),L(at,{param:m(u)},null,8,["param"])])])):M("",!0)])):M("",!0),m(tt).length?(y(),E("div",Ir,[w("div",{class:"section-header",onClick:b[4]||(b[4]=R=>o("events"))},[L(I,{path:i("events")?m(Ie):m(Pe),fill:"#414A58",class:"chevron-icon",width:"16",height:"16"},null,8,["path"]),Pr]),i("events")?(y(),E("div",xr,[Rr,(y(!0),E(de,null,he(m(tt),R=>(y(),E("div",{key:R.key,class:"widget-prop"},[w("label",Lr,"On "+W(R.key),1),w("p",Or,"Executed after "+W(R.key),1),L(xe,{"param-name":R.key,"dash-player-service":s.dashPlayerService,value:m(a).events[R.key],commit:Nt(R),"is-code":!0,onInput:se=>m(a).events[R.key]=se},null,8,["param-name","dash-player-service","value","commit","onInput"])]))),128))])):M("",!0)])):M("",!0),w("div",Nr,[w("div",{class:"section-header",onClick:b[5]||(b[5]=R=>o("properties"))},[L(I,{path:i("properties")?m(Ie):m(Pe),fill:"#414A58",class:"chevron-icon",width:"16",height:"16"},null,8,["path"]),Ar]),i("properties")?(y(),E("div",Tr,[Cr,(y(!0),E(de,null,he(m(q),R=>{var se;return y(),E("div",{key:R.argName,class:"widget-prop"},[w("p",kr,W(Wt(R.argName)),1),w("p",Dr,W(R.description),1),L(xe,{"has-error":!!be(R.argName),placeholder:(se=R.default)!=null?se:void 0,"param-name":R.argName,"dash-player-service":s.dashPlayerService,value:m(a).props[R.argName],commit:Ot(R),"is-code":!0,onInput:Mt=>m(a).props[R.argName]=Mt},null,8,["has-error","placeholder","param-name","dash-player-service","value","commit","onInput"]),be(R.argName)?(y(),E("pre",{key:0,class:"prop-error",textContent:W(be(R.argName))},null,8,Wr)):M("",!0),L(at,{param:R},null,8,["param"])])}),128))])):M("",!0)])]),w("div",{ref_key:"handlerRef",ref:h,class:"handler",onMousedown:b[6]||(b[6]=Ft(R=>f.resizing=!0,["stop"]))},$r,544)],4)}}});const Hr=U(Gr,[["__scopeId","data-v-718f02de"]]),yt=s=>($e("data-v-0d595f79"),s=s(),Ge(),s),Br={class:"interact-menu"},zr={class:"icon-container"},Ur=yt(()=>w("span",{class:"edit"},"Edit [Shift + P]",-1)),Fr={class:"icon-container"},jr=yt(()=>w("span",null,"Interact [Shift + P]",-1)),Kr=z({__name:"InteractMenu",props:{isPreview:{type:Boolean}},emits:["changePreview"],setup(s,{emit:e}){return(t,r)=>{const o=Ee("icon");return y(),E("div",Br,[w("div",zr,[L(o,{class:ee(["icon",{active:!s.isPreview}]),path:m(vs),fill:"#5A677A",onClick:r[0]||(r[0]=i=>e("changePreview",!1))},null,8,["class","path"]),Ur]),w("div",Fr,[L(o,{class:ee(["icon",{active:s.isPreview}]),path:m(ms),fill:"#5A677A",onClick:r[1]||(r[1]=i=>e("changePreview",!0))},null,8,["class","path"]),jr])])}}});const Vr=U(Kr,[["__scopeId","data-v-0d595f79"]]),Zr={class:"header"},Jr={key:0},Qr={key:1},qr={key:2,class:"state"},Yr={key:3,class:"state"},Xr={key:4,class:"state"},eo={key:5},to={key:6},so=z({__name:"RuntimeHeader",props:{dash:null,dashPlayerService:null},setup(s){return(e,t)=>(y(),E("div",Zr,[s.dash.title?(y(),E("p",Jr,W(s.dash.title),1)):(y(),E("p",Qr,W(s.dash.path),1)),s.dashPlayerService.state.type==="RUNNING"?(y(),E("p",qr,"\u{1F7E2} running")):s.dashPlayerService.state.type==="ERROR"?(y(),E("p",Yr,"\u274C error")):s.dashPlayerService.state.type==="AUTHENTICATING"?(y(),E("p",Xr," \u{1F510} authenticating ")):s.dashPlayerService.state.type==="IDLE"?(y(),E("p",eo,"\u26AA\uFE0F idle")):s.dashPlayerService.state.type==="READY"?(y(),E("p",to,"\u23F3 loading")):M("",!0)]))}});const ro=U(so,[["__scopeId","data-v-b5964f37"]]),oo={key:0,class:"widget-metadata-card"},io=["src"],no={class:"metadata-title"},ao={class:"metadata-description"},lo={key:1,class:"collapsed-widget-metadata-card"},co=["src"],ho=z({__name:"WidgetMetadataCard",props:{metadata:null,collapsed:{type:Boolean}},setup(s){const e=window.__baseURL?`${window.__baseURL}/media`:"",t=o=>o in ae?`${e}/${ae[o].thumbname}`:`${e}/widget-thumbs/${cs(o)}.svg`,r=window.__vscodeTheme===2?"dark":"light";return(o,i)=>s.collapsed?(y(),E("div",lo,[w("img",{class:"metadata-thumbnail",src:t(s.metadata.type),style:ue(m(r)==="dark"?{filter:"invert(1)"}:"")},null,12,co)])):(y(),E("div",oo,[w("img",{class:"metadata-thumbnail",src:t(s.metadata.type),style:ue(m(r)==="dark"?{filter:"invert(1)"}:"")},null,12,io),w("div",no,W(s.metadata.name),1),w("div",ao,W(s.metadata.description),1)]))}});const uo=U(ho,[["__scopeId","data-v-2b654c57"]]),ve={"click-input":-1,"text-output":0,"number-input":1,"text-input":2,"link-output":3,"multiple-choice-input":4,"file-input":5,"email-input":6,"markdown-output":7,"dropdown-input":8,"date-input":9,"cards-input":10,"textarea-input":11,"list-input":12,"file-output":13,"html-output":14,"pandas-output":15,"checkbox-input":16,"cnpj-input":17,"code-input":18,"progress-output":19,"pandas-row-selection-input":20,"image-input":21,"password-input":22,"currency-input":23,"iframe-output":24,"checklist-input":25,"image-output":26,"nps-input":27,"phone-input":28},po=z({__name:"WidgetsMetadataList",emits:["dragstart","hover","leave"],setup(s,{emit:e}){const t=k(""),r=k(),o=k(!0),i=()=>{o.value=!1},n=()=>{o.value=!0,c()},l=async()=>{await Be(),r.value&&r.value.focus()},c=()=>{t.value=""},a=Object.values(j).concat(Object.entries(ae).map(([d,h])=>({type:d,...h}))).reduce((d,h)=>h.formOnly?d:{...d,[h.type]:h},{}),u=G(()=>t.value?Object.values(a).map(d=>({widget:d,score:ds(d,t.value.split(" "))})).filter(({score:d})=>d>0).sort(({score:d},{score:h})=>h-d).map(({widget:d})=>d):Object.values(a).sort((d,h)=>{const g=d.type,f=h.type;if(g in ve){if(!(f in ve))return-1}else return 1;return ve[g]-ve[f]}));function p(d,h){e("dragstart",d,h)}return(d,h)=>{const g=Ee("icon");return y(),E("div",{class:"widgets-metadata",onMouseover:i,onMouseleave:n},[w("div",jt({class:["search",{collapsed:o.value}]},Kt(o.value?{click:l}:{},!0)),[L(g,{path:m(ys),class:"search-icon"},null,8,["path"]),o.value?M("",!0):fe((y(),E("input",{key:0,ref_key:"searchInput",ref:r,"onUpdate:modelValue":h[0]||(h[0]=f=>t.value=f),type:"search",class:"widgets-metadata-filter",placeholder:"Find widgets"},null,512)),[[pt,t.value]])],16),w("div",{class:ee(["widgets-metadata-list",{collapsed:o.value}])},[(y(!0),E(de,null,he(m(u),f=>(y(),X(uo,{key:f.type,metadata:f,draggable:!0,collapsed:o.value,onDragstart:P=>p(P,f.type)},{default:re(()=>[Vt(W(f.type),1)]),_:2},1032,["metadata","collapsed","onDragstart"]))),128))],2)],32)}}});const go=U(po,[["__scopeId","data-v-a17e6382"]]),fo={class:"dash-layout-editor"},vo=z({__name:"DashLayoutEditor",props:{dash:null,params:null,dashEditorService:null,workspace:null},emits:["navigate","create-variable","change-preview"],setup(s,{emit:e}){const t=s;console.log(t);const r=k(null),o=k(null),i=(_,x)=>t.dashEditorService.metadataDragStart(_,x),n=_=>e("navigate",_),l=_=>e("create-variable",_),c=_=>e("change-preview",_);t.dashEditorService.pubsub.subscribe("change-preview",c);const a=()=>{t.dashEditorService.hoverZoomBar()},u=()=>{t.dashEditorService.leaveZoomBar()};ce(t.dash.layout,()=>{t.dashEditorService.layoutModel.setLayout(t.dash.layout)}),t.dashEditorService.setupOnSave(),ce(t.dashEditorService.layoutModel,()=>t.dashEditorService.setupOnSave());const p=G(()=>t.dashEditorService.getWidgetsWithErrors()),d=G(()=>t.dashEditorService.getSelectedWidgetErrors()),h=k(null),g=k(null),f=k(null),P=k(null);return vt(()=>{t.dashEditorService.selection.setLayoutModel(t.dashEditorService.layoutModel),f.value&&P.value&&g.value&&o.value&&r.value&&h.value&&t.dashEditorService.setup(f.value,P.value,g.value,o.value,r.value,h.value)}),ft(()=>{t.dashEditorService.tearDown()}),ce(()=>t.dashEditorService.dashPlayerService.isAuthenticating(),_=>{_&&(t.dashEditorService.isPreview=!0)}),(_,x)=>(y(),E("div",fo,[fe(L(go,{onDragstart:i},null,512),[[He,!s.dashEditorService.isPreview]]),w("div",{ref_key:"editor",ref:f,class:ee(["editor"])},[w("div",{ref_key:"listeners",ref:P,class:"listeners",tabindex:"0"},[L(Xt,{ref_key:"player",ref:r,class:ee(["player",{preview:s.dashEditorService.isPreview}]),style:{top:0,left:0,height:"unset"},"is-preview":!0,params:s.params,camera:s.dashEditorService.camera,"editing-mode":!s.dashEditorService.isPreview,"force-responsivity":"desktop","widgets-with-errors":m(p),"dash-player-service":s.dashEditorService.dashPlayerService,onNavigate:n},null,8,["class","params","camera","editing-mode","widgets-with-errors","dash-player-service"]),w("canvas",{ref_key:"canvas",ref:g,class:ee(["layout-canvas",{hide:s.dashEditorService.isPreview}])},null,2)],512),L(ro,{ref_key:"runtimeHeader",ref:h,dash:s.dash,"dash-player-service":s.dashEditorService.dashPlayerService},null,8,["dash","dash-player-service"]),L(Vr,{ref_key:"interactMenu",ref:o,class:"interact-menu","is-preview":s.dashEditorService.isPreview,onChangePreview:c},null,8,["is-preview"])],512),(s.dashEditorService.selection.selectedWidgetsIds.length>0||s.dashEditorService.selection.selectedSlottableId)&&!s.dashEditorService.isPreview&&s.dashEditorService.mouseState.state==="IDLE"?(y(),X(Hr,{key:0,"selected-widget-errors":m(d),"layout-model":s.dashEditorService.layoutModel,"selected-widgets":s.dashEditorService.selection.selectedSlottable?[s.dashEditorService.selection.selectedSlottable]:s.dashEditorService.selection.selectedWidgets,"dash-player-service":s.dashEditorService.dashPlayerService,onClose:x[0]||(x[0]=q=>s.dashEditorService.selection.resetSelection()),onCreateVariable:l},null,8,["selected-widget-errors","layout-model","selected-widgets","dash-player-service"])):M("",!0),L(Ds,{camera:s.dashEditorService.camera,class:"zoom-bar",onHover:a,onLeave:u},null,8,["camera"])]))}});const mo=U(vo,[["__scopeId","data-v-7661d381"]]),yo="rgba(0, 128, 233, 0.05)";class pe{constructor(e,t){v(this,"context");this.canvas=e,this.context=this.canvas.getContext("2d"),t.slottableRenderer.setContext(this.context)}static create(e,t){return new pe(e,t)}render({mouseState:e,dashEditorService:t,hoverState:r,resizeHandlerRects:o,widgetsInRectangularSelection:i,selectedWidgets:n,computedState:l,isPreview:c,calculatedPositions:a,selectedSlottable:u}){const p=t.camera,d=t.dashPlayerService.layoutGrid,h=t.dashPlayerService.calculatePositions();if(t.dashPlayerService.state.type==="RUNNING"){if(!p)throw new Error("No camera value yet");this.renderFrame(d,p),this.renderGrid(d,p,e),this.renderWidgetShadow(l,d,p,a.widgets),this.renderInvisibleWidgets(p,a,d,h),this.renderWidgetHoverBorders(r,e,p,d,a.widgets),this.renderSelectionHull(e,p,d,n,a.widgets),this.renderWidgetsSelectionBorders(e,n,p,d,a.widgets),this.renderRectangularSelection(e),this.renderRectangularSelectionHovers(e,i,p,d,a.widgets),this.renderResizeHandlers(e,o),c||(t.slottableRenderer.slottables=a.slottables,t.slottableRenderer.renderSlottables(u))}}renderFrame(e,t){const r={x:0,y:0,width:e.width,height:e.height+e.navbarLength,referential:"world"};this.context.fillStyle="transparent",this.context.shadowColor="rgba(0,0,0,0.1)",this.context.shadowBlur=15;const o=t.worldRect2screen(r);this.context.fillRect(o.x,o.y,o.width,o.height),this.context.clearRect(o.x,o.y,o.width,o.height)}getGridDots(e,t){var u;const r=[];if(!e)return[];const o=t.worldPoint2screen({y:0,x:0,referential:"world"}),i=(u=t.projectedElement)==null?void 0:u.getBoundingClientRect(),n=e.margin*t.zoom,l=e.gap*t.zoom,c=e.cellHeight*t.zoom,a=(i.y+i.height-o.y-n)/(c+l);for(const p in Array(e.columns+1).fill(null))for(const d in Array(Math.ceil(a+1)).fill(null))r.push(t.worldPoint2screen({x:e.margin+parseInt(p)*(e.cellWidth+e.gap),y:e.margin+parseInt(d)*(e.cellHeight+e.gap)+e.navbarLength,referential:"world"}));return r}renderGrid(e,t,r){if(r.state==="MOVING"||r.state==="RESIZING"||r.state==="SLOTTABLE_RESIZING"||r.state==="MOVING_SLOTTABLE"||r.state==="DRAGGING_SLOTTABLE"||r.state==="DRAGGING"){this.context.fillStyle="rgba(0,0,0,0.1)";for(const o of this.getGridDots(e,t))this.context.beginPath(),this.context.ellipse(o.x,o.y,2,2,0,0,2*Math.PI),this.context.fill()}}renderWidgetShadow(e,t,r,o){this.context.fillStyle="rgba(0, 0, 0, 0.1)";for(const i in o){if(!e.operations.some(c=>c.path.includes(i)))continue;const n=o[i],l=r.worldRect2screen(B(n.position,t));this.context.fillRect(l.x,l.y,l.width,l.height)}}renderInvisibleWidgets(e,t,r,o){const n=t.widgets;for(const l in n){if(l in o.widgets)continue;const c=n[l],a=B(c.position,r),u={x:a.x+5,y:a.y+5,width:a.width-2*5,height:a.height-2*5,referential:"world"},p=e.worldRect2screen(u);this.context.fillStyle="rgba(0, 0, 0, 0.1)",this.context.fillRect(p.x,p.y,p.width,p.height),this.context.fillStyle="black",this.context.font="15px sans-serif",this.context.textAlign="center",this.context.textBaseline="middle",this.context.fillText(j[c.type].name,p.x+p.width/2,p.y+p.height/2)}}renderWidgetHoverBorders(e,t,r,o,i){if(this.context.strokeStyle="#ababab",e.state==="HOVERING_WIDGET"&&t.state==="IDLE"){const n=i[e.widgetId];if(!n)return;const l=r.worldRect2screen(B(n.position,o));this.context.strokeRect(l.x,l.y,l.width,l.height)}else(t.state==="MOVING"||t.state==="RESIZING"||t.state==="DRAGGING"||t.state==="SELECTING")&&Object.keys(i).forEach(n=>{const l=i[n],c=r.worldRect2screen(B(l.position,o));this.context.strokeRect(c.x,c.y,c.width,c.height)})}renderWidgetsSelectionBorders(e,t,r,o,i){if(e.state==="IDLE"||e.state==="SELECTING"){this.context.strokeStyle="#3482E5",this.context.lineWidth=2;for(const n of t){const l=i[n],c=r.worldRect2screen(B(l.position,o));this.context.strokeRect(c.x,c.y,c.width,c.height)}}}renderRectangularSelection(e){if(this.context.fillStyle=yo,e.state==="SELECTING"){const t=Math.min(e.initialMousePos.x,e.mousePos.x),r=Math.min(e.initialMousePos.y,e.mousePos.y),o=Math.abs(e.initialMousePos.x-e.mousePos.x),i=Math.abs(e.initialMousePos.y-e.mousePos.y),n={x:t,y:r,width:o,height:i};this.context.fillRect(n.x,n.y,o,i)}}renderRectangularSelectionHovers(e,t,r,o,i){if(this.context.strokeStyle="#3482E5",e.state==="SELECTING")for(const n of t){const l=i[n],c=r.worldRect2screen(B(l.position,o));this.context.strokeRect(c.x,c.y,c.width,c.height)}}renderSelectionHull(e,t,r,o,i){const n=ze(Object.entries(i).filter(([c])=>o.has(c)).map(([c,a])=>B(a.position,r)).filter(c=>c!==null));if(e.state!=="IDLE"||!n)return;this.context.strokeStyle="#3482E5";const l=t.worldRect2screen(n);this.context.strokeRect(l.x,l.y,l.width,l.height)}static drawResizeHandler(e,t){e.fillStyle="white",e.strokeStyle="#3482E5",e.lineWidth=1,e.fillRect(t.x,t.y,t.width,t.height),e.strokeRect(t.x,t.y,t.width,t.height)}renderResizeHandlers(e,t){if(e.state!=="MOVING")for(const{rect:r}of t)pe.drawResizeHandler(this.context,r)}cursor(e,t){if(e.state==="MOVING")return"grabbing";if(e.state==="SELECTING")return"crosshair";if(e.state==="RESIZING")switch(e.side){case"bottom":case"top":return"ns-resize";case"left":case"right":return"ew-resize"}else{if(e.state==="START_PANNING")return"grab";if(e.state==="PANNING")return"grabbing";if(e.state==="JUST_CLICKED_TOGGLE")return"grabbing";if(t.state==="HOVERING_WIDGET")return"grab";if(t.state==="HOVERING_RESIZE_HANDLER")switch(t.side){case"bottom":case"top":return"ns-resize";case"left":case"right":return"ew-resize";case"top-left":case"bottom-right":return"nwse-resize";case"top-right":case"bottom-left":return"nesw-resize"}else return t.state==="HOVERING_TOGGLE"?"pointer":t.state==="HOVERING_SLOTTABLE_RESIZE_HANDLER"?"ns-resize":t.state==="HOVERING_SLOTTABLE_SELECTOR"?"pointer":"default"}}}const Ne=()=>document.body.classList.contains("vscode-dark"),Ae=window.__baseURL?`${window.__baseURL}/media`:"",wo=(s,e,t,r,o,i)=>{let n=[];return wt(e)||(i||(n=n.concat(bo(s,t,r,o))),i&&(n=n.concat(So(s,t,r,o)).concat(Eo(s,t,r,o)))),n.concat(Io(s,t,r,e,o)).concat(xo(s,t,r,o))},wt=s=>{var e;return!((e=s.condition)==null||e)},So=(s,e,t,r)=>{const{row:o,height:i}=s.position,{x:n,y:l,height:c,width:a}=e.getCell(0,o),u=i*c,p=a*e.columns,d={x:n,y:l,width:p,height:u,referential:"world"},h=3,g=2,f=t.worldRect2screen(d);return r.strokeStyle="#3482E5",r.lineWidth=g,r.strokeRect(f.x+h,f.y,f.width-2*h,f.height),[]},Eo=(s,e,t,r)=>{const o=_o(s,e,t);return pe.drawResizeHandler(r,o),[{type:"resizer",position:o,elementId:s.id}]},_o=(s,e,t)=>{const{row:i,height:n}=s.position,{x:l,y:c,height:a,width:u}=e.getCell(0,i),p=n*a,d=u*e.columns,h=t.worldRect2screen({x:l,y:c,width:d,height:p,referential:"world"});return{x:h.x+h.width/2-20/2,y:h.y+h.height-6/2,width:20,height:6,referential:"screen"}},bo=(s,e,t,r)=>{const{row:o,height:i}=s.position,{x:n,y:l,height:c,width:a}=e.getCell(0,o),u=i*c,p=a*e.columns,d={x:n,y:l,width:p,height:u,referential:"world"},h=4,g=3,f=2,P=t.worldRect2screen(d);return r.strokeStyle="rgb(39, 67, 255, 0.13)",r.lineWidth=f,r.beginPath(),r.roundRect(P.x+g,P.y,P.width-2*g,P.height,h),r.stroke(),[]},Io=(s,e,t,r,o)=>{const{row:i,height:n}=s.position,l=Po(i,n,e,t),c=new Image(l.width,l.height);return c.src=wt(r)?`${Ae}/chevron-down-${Ne()?"dark":"light"}.svg`:`${Ae}/chevron-up-${Ne()?"dark":"light"}.svg`,c.style.viewBox=`0 0 ${l.width} ${l.height}`,o.drawImage(c,l.x,l.y,l.width,l.height),[{type:"toggle",position:l,elementId:s.id}]},Po=(s,e,t,r)=>{const{y:o}=t.getCell(0,e),i=24,n=24,l={x:-30,y:o+t.cellHeight*s-n,width:i,height:n,referential:"world"};return r.worldRect2screen(l)},xo=(s,e,t,r)=>{const{row:o}=s.position,i=Ro(o,e,t),n=new Image(i.width,i.height);return n.src=`${Ae}/drag-${Ne()?"dark":"light"}.svg`,r.drawImage(n,i.x,i.y,i.width,i.height),[{type:"selector",position:i,elementId:s.id}]},Ro=(s,e,t)=>{const{y:r}=e.getCell(0,s),o={x:-30,y:r,width:24,height:24,referential:"world"};return t.worldRect2screen(o)},Lo={"if-block":wo};class Ke{constructor(e,t){v(this,"context",null);v(this,"_slottables",[]);v(this,"selectableElements",[]);v(this,"getSlottableRenderedElement",(e,t)=>{var r;return(r=this.selectableElements.find(o=>o.elementId===e&&o.type===t))!=null?r:null});v(this,"getRenderedElementUnderCursor",(e,t)=>this._slottables.find(r=>{var i,n;const o=(n=(i=this.getSlottableRenderedElement(r.id,e))==null?void 0:i.position)!=null?n:null;return o?Oe(t,o):!1})||null);v(this,"getSelectorUnderCursor",e=>this.getRenderedElementUnderCursor("selector",e));v(this,"getToggleUnderCursor",e=>this.getRenderedElementUnderCursor("toggle",e));v(this,"getResizerUnderCursor",e=>this.getRenderedElementUnderCursor("resizer",e));this.layoutGrid=e,this.camera=t}static create(e,t){return new Ke(e,t)}setContext(e){this.context=e}set slottables(e){if(!this.context)throw new Error("No context set yet");this._slottables=Object.values(e)}renderSlottables(e){if(this.selectableElements=[],this._slottables.length!==0)for(const t of this._slottables)this.selectableElements=this.selectableElements.concat(this.renderSlottable(t,e===t.id))}renderSlottable(e,t){return Lo[e.type](e,e.props,this.layoutGrid,this.camera,this.context,t)}}const Oo=s=>e=>e[s],No=s=>[...new Set(s)];class Ve{constructor(){v(this,"_selectedWidgetsIds");v(this,"_selectedSlottableId");v(this,"layoutModel");this.layoutModel=null,this._selectedSlottableId=k(null),this._selectedWidgetsIds=k([])}static create(){return new Ve}setLayoutModel(e){this.layoutModel=e}get selectedWidgetsIds(){return this._selectedWidgetsIds.value}set selectedWidgetsIds(e){e.length!==0&&this.resetSelection(),this._selectedWidgetsIds.value=No(e)}get selectedWidgetId(){return this.selectedWidgetsIds[0]}get selectedWidget(){return this.layoutModel&&this.selectedWidgetId?this.layoutModel.getWidget(this.selectedWidgetId):null}get selectedWidgets(){return this.layoutModel?this.selectedWidgetsIds.map(e=>this.layoutModel.getWidget(e)):[]}addWidget(e){this.selectedWidgetsIds=[...this.selectedWidgetsIds,e]}addToSelectedWidgets(e){if(!this.layoutModel)return;const t=this.layoutModel.getWidgetOrSlottable(e);(!D(t)||this.selectedWidget&&!D(this.selectedWidget))&&this.clearWidgetSelection(),this.addWidget(e)}toggleWidgetSelection(e){this.selectedWidgetsIds.includes(e)?this.removeWidget(e):this.addWidget(e)}removeWidget(e){this.selectedWidgetsIds=this.selectedWidgetsIds.filter(t=>t!==e)}clearWidgetSelection(){this.selectedWidgetsIds=[]}selectAll(){!this.layoutModel||(this.selectedWidgetsIds=Object.keys(this.layoutModel.allWidgets))}get selectedSlottableId(){return this._selectedSlottableId.value}set selectedSlottableId(e){e&&this.resetSelection(),this._selectedSlottableId.value=e}get selectedSlottable(){return this.layoutModel&&this.selectedSlottableId?this.layoutModel.getSlottable(this.selectedSlottableId):null}has(e){return this.selectedWidgetsIds.includes(e)}resetSelection(){this.clearWidgetSelection(),this.selectedSlottableId=null}}class Ze{static get isMac(){return navigator.userAgent.includes("Mac OS X")}static get buildPlatform(){return{}.CURRENT_PLATFORM||"web"}}const Ao=s=>Ze.isMac&&s.ctrlKey,le=s=>Ze.isMac?s.metaKey:s.ctrlKey,Te=s=>s.altKey,J=s=>s.shiftKey,Re={alt:Te,"arrow-up":s=>s.code==="ArrowUp","arrow-down":s=>s.code==="ArrowDown","arrow-left":s=>s.code==="ArrowLeft","arrow-right":s=>s.code==="ArrowRight",ctrl:le,delete:s=>Ze.isMac?s.code==="Backspace":s.code==="Delete",enter:s=>s.code==="Enter",escape:s=>s.code==="Escape",shift:J,space:s=>s.code==="Space",a:s=>s.code==="KeyA",b:s=>s.code==="KeyB",c:s=>s.code==="KeyC",d:s=>s.code==="KeyD",f:s=>s.code==="KeyF",g:s=>s.code==="KeyG",h:s=>s.code==="KeyH",k:s=>s.code==="KeyK",p:s=>s.code==="KeyP",v:s=>s.code==="KeyV",x:s=>s.code==="KeyX",z:s=>s.code==="KeyZ",0:s=>s.code==="Digit0","[":s=>s.code==="BracketLeft","]":s=>s.code==="BracketRight"};class To{constructor(e){v(this,"pressedKeys");v(this,"evt");this.evt=e,this.pressedKeys={};const t=r=>o=>{Object.keys(Re).forEach(i=>{Re[i](o)&&this.setPressed(i,r)})};this.evt||(window.addEventListener("keydown",t(!0)),window.addEventListener("keyup",t(!1)))}setPressed(e,t){this.pressedKeys[e]=t}isPressed(e){var t;return this.evt?Re[e](this.evt):(t=this.pressedKeys[e])!=null?t:!1}}const Co=new To,ko=s=>e=>H.exports.uniq(s.map(Oo(e))).length===1,Do=s=>s.some(e=>j[e.type].autoHeight);function Wo(s,e){const t=ko(s),r=Do(s),o=[],i=16,n=6;return t("colStart")&&o.push({rect:{x:e.x-n/2,y:e.y+e.height/2-i/2,width:n,height:i,referential:"screen"},side:"left"}),t("colEnd")&&o.push({rect:{x:e.x+e.width-n/2,y:e.y+e.height/2-i/2,width:n,height:i,referential:"screen"},side:"right"}),t("colStart")&&t("rowStart")&&!r&&o.push({rect:{x:e.x-n/2,y:e.y-n/2,width:n,height:n,referential:"screen"},side:"top-left"}),t("colEnd")&&t("rowStart")&&!r&&o.push({rect:{x:e.x+e.width-n/2,y:e.y-n/2,width:n,height:n,referential:"screen"},side:"top-right"}),t("colStart")&&t("rowEnd")&&!r&&o.push({rect:{x:e.x-n/2,y:e.y+e.height-n/2,width:n,height:n,referential:"screen"},side:"bottom-left"}),t("colEnd")&&t("rowEnd")&&!r&&o.push({rect:{x:e.x+e.width-n/2,y:e.y+e.height-n/2,width:n,height:n,referential:"screen"},side:"bottom-right"}),t("rowStart")&&!r&&o.push({rect:{x:e.x+e.width/2-i/2,y:e.y-n/2,width:i,height:n,referential:"screen"},side:"top"}),t("rowEnd")&&!r&&o.push({rect:{x:e.x+e.width/2-i/2,y:e.y+e.height-n/2,width:i,height:n,referential:"screen"},side:"bottom"}),o}/*! +var $t=Object.defineProperty;var Gt=(s,e,t)=>e in s?$t(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var v=(s,e,t)=>(Gt(s,typeof e!="symbol"?e+"":e,t),t);import{r as Ht}from"./index.7d1457d9.js";import{T as Bt,a as st}from"./Tab.27dc38aa.js";import{r as k,d as z,b as y,c as E,x as w,W as fe,Z as pt,e as L,O as $e,Q as Ge,q as U,K as G,a2 as ce,ac as He,N as W,z as m,F as de,L as he,A as ue,D as M,v as gt,Y as ft,a as Ee,af as zt,G as ee,t as X,ae as Be,V as H,o as vt,al as Ut,E as Ft,am as jt,an as Kt,w as re,U as Vt,R as Zt,H as Jt,J as Qt,S as qt}from"./registerWidgets.cb3a7b8d.js";import{d as Yt,D as Xt,w as B,r as ze,i as Oe,a as es,v as ts,b as mt,p as rt,c as ss,m as rs}from"./DashPlayer.6d1530bb.js";import{R as os,S as is,_ as ns,L as as}from"./UnsavedChangesHandler.vue_vue_type_script_setup_true_lang.35587b62.js";import{L as ls}from"./CircularLoading.1e68d2b1.js";import{i as D,w as j,g as cs,s as ds,a as Q,b as C,c as me,f as oe,e as Ue,h as hs,j as us,k as ps}from"./runnerData.7b7cb682.js";import{p as gs,i as fs,x as Ie,y as Pe,z as vs,t as ms,A as ys}from"./icons.39dfa322.js";import{a as ws}from"./asyncComputed.31994732.js";import{D as Ss}from"./dashes.3c9b04b3.js";import{W as Es}from"./workspaces.5f21a554.js";import{B as _s}from"./BackButton.677abc51.js";import{S as bs}from"./SaveButton.b678d3d3.js";import{P as Is}from"./PreviewButton.70ce525c.js";import{D as Ps}from"./DocsButton.495d0473.js";import{u as _e}from"./uuid.0e63ad64.js";import{P as Fe}from"./pubsub.f85a17d2.js";import"./executeJs.87b204c8.js";import"./PlayerNavbar.fe11d508.js";import"./WidgetsFrame.aac2edff.js";import"./colors.868ae049.js";import"./Modal.43c3d47a.js";import"./passwordlessManager.afd7d1d0.js";import"./Passwordless.7161b834.js";import"./forms.f5353181.js";import"./activeRecord.adfc6223.js";import"./hooks.fd4bb08f.js";import"./jobs.d0693d2f.js";import"./login.ce8787fb.js";import"./lottie.234eb92e.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="8ac9be68-a95f-4216-8af5-1485d08c3e84",s._sentryDebugIdIdentifier="sentry-dbid-8ac9be68-a95f-4216-8af5-1485d08c3e84")}catch{}})();const T={left:20,right:20,top:20,bottom:200};class je{constructor(e){v(this,"_state");v(this,"_projectedElement",null);v(this,"grid");this.grid=e,this._state=k({x:0,y:0,zoom:1})}get x(){return this._state.value.x}set x(e){if(Number.isNaN(e))throw new Error("x is NaN");this._state.value.x=e}get y(){return this._state.value.y}set y(e){if(Number.isNaN(e))throw new Error("y is NaN");this._state.value.y=e}static create(e){return new je(e)}setProjectedCanvas(e){this._projectedElement=e,this.fit()}get projectedElement(){if(!this._projectedElement)throw new Error("Camera has no projected element");return this._projectedElement}updateGrid(e){this.grid=e}get zoom(){return this._state.value.zoom}set zoom(e){if(e<=0)throw new Error("Zoom must be positive");this._state.value.zoom=e}fit(){if(!this.grid.width)throw new Error(`Grid width is ${this.grid.width}}`);if(!this.grid.height)throw new Error(`Grid height is ${this.grid.height}`);const e=this.canvasRect,t=Math.max(e.width-T.left-T.right,1),r=Math.max(e.height-T.top-T.bottom,1);this.zoom=1;const o=Math.min(t/this.grid.width,r/this.grid.height);this.zoomIn(o,{x:e.x+e.width/2,y:e.y+e.height/2,referential:"screen"}),this.x=t>this.grid.width*o?-(e.x+e.width/2-o*this.grid.width/2)/o:-(e.x+T.left)/o,this.y=rt.x+T.left,o=e.x+e.widtht.width,l=e.height>t.height,c=e.y+e.heightt.y+T.top,u=e.y+e.height/2-(t.y+t.height/2),p=this.screenDelta2world({dx:n?o&&r?0:r?e.x-t.x-T.right:o?e.x+e.width-(t.x+t.width)+T.left:0:i,dy:l?c&&a?0:a?e.y-t.y-T.top:c?e.y+e.height-(t.y+t.height)+T.bottom:0:u,referential:"screen"});this.x+=p.dx,this.y+=p.dy}}const xs=s=>($e("data-v-fb3c93ab"),s=s(),Ge(),s),Rs={class:"dash-settings"},Ls={class:"dash-property"},Os=xs(()=>w("label",{class:"property-label"},"Name",-1)),Ns=z({__name:"DashSettings",props:{dash:null},setup(s){return(e,t)=>(y(),E("div",Rs,[w("div",Ls,[Os,fe(w("input",{"onUpdate:modelValue":t[0]||(t[0]=r=>s.dash.title=r),class:"property-input",placeholder:"Enter a name"},null,512),[[pt,s.dash.title]])]),L(os,{runtime:s.dash},null,8,["runtime"])]))}});const As=U(Ns,[["__scopeId","data-v-fb3c93ab"]]),Ts={class:"zoom-bar"},Cs={class:"zoom-value"},ks=z({__name:"ZoomBar",props:{camera:null},emits:["hover","leave"],setup(s,{emit:e}){const t=s,r=k(!1),o=k(null),i=()=>{var a;(a=t.camera)==null||a.zoomIn(1.1,{x:document.body.offsetWidth/2,y:document.body.offsetHeight/2,referential:"screen"})},n=()=>{var a;(a=t.camera)==null||a.zoomIn(.9,{x:document.body.offsetWidth/2,y:document.body.offsetHeight/2,referential:"screen"})},l=G(()=>{var c,a;return`${Math.floor(((a=(c=t.camera)==null?void 0:c.zoom)!=null?a:1)*100)}%`});return ce(()=>{var c;return(c=t.camera)==null?void 0:c.zoom},()=>{clearTimeout(o.value),r.value=!0,o.value=setTimeout(()=>r.value=!1,3e3)}),(c,a)=>fe((y(),E("div",{class:"zoom-bar-wrapper",onMouseover:a[0]||(a[0]=u=>e("hover")),onMouseleave:a[1]||(a[1]=u=>e("leave"))},[w("div",Ts,[w("span",{class:"zoom-control",onClick:n},"-"),w("span",Cs,W(m(l)),1),w("span",{class:"zoom-control",onClick:i},"+")])],544)),[[He,s.camera&&r.value]])}});const Ds=U(ks,[["__scopeId","data-v-f937a967"]]),ot={PandasDataFrame:"https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html",PlotlyFigure:"https://plotly.com/python-api-reference/generated/plotly.graph_objects.Figure.html","datetime.time":"https://docs.python.org/3/library/datetime.html#datetime.time","datetime.date":"https://docs.python.org/3/library/datetime.html#datetime.date","io.IOBase":"https://docs.python.org/3/library/io.html#io.IOBase","time.struct_time":"https://docs.python.org/3/library/time.html#time.struct_time"},Ws="#E286A3",Ms="#EF9542",$s="#B462DB",Gs="#40B6D3",Hs="#6FB96E",Bs=[Ws,Ms,$s,Gs,Hs];function it(s){let e=s;return Object.keys(ot).forEach(t=>{if(s.includes(t)){const r=ot[t];e=e.replace(t,`${t}`)}}),e}const ie={},zs=s=>e=>{if(ie[e])return ie[e];const t=Object.keys(ie).length%s.length;return ie[e]=s[t],s[t]},nt=zs([...Bs]),Us=()=>{Object.keys(ie).forEach(s=>delete ie[s])};class Fs{constructor(){v(this,"globalEventListeners",[])}addGlobalEventListener(e,t){addEventListener(e,t),this.globalEventListeners.find(r=>r.evt===e)||this.globalEventListeners.push({evt:e,handler:t})}removeGlobalEventListeners(){this.globalEventListeners.forEach(({evt:e,handler:t})=>{removeEventListener(e,t)}),this.globalEventListeners=[]}}const js={class:"param-types"},Ks=["innerHTML"],Vs={key:1,class:"prop-type"},Zs=["innerHTML"],Js=z({__name:"ParamTypes",props:{param:null},setup(s){return(e,t)=>(y(),E("div",js,[s.param&&s.param.typeDescription?(y(!0),E(de,{key:0},he(s.param.typeDescription,r=>(y(),E("div",{key:r,class:"prop-type"},[w("p",{class:"type",style:ue({color:m(nt)(r)}),innerHTML:m(it)(r)},null,12,Ks)]))),128)):s.param&&s.param.typeName?(y(),E("div",Vs,[w("p",{class:"type",style:ue({color:m(nt)(s.param.typeName)}),innerHTML:m(it)(s.param.typeName)},null,12,Zs)])):M("",!0)]))}});const at=U(Js,[["__scopeId","data-v-d6aed39d"]]),Qs=["value","placeholder"],qs=["value","placeholder"],Ys=z({__name:"PythonPropInputRaw",props:{hasError:{type:Boolean},placeholder:null,value:null,paramName:null,isCode:{type:Boolean},commit:{type:Function}},emits:["input","change","clearSuggestions"],setup(s,{emit:e}){const t=s,r=gt({isActive:!1,hasChanges:!1}),o=c=>{e("input",c),r.hasChanges=!0},i=()=>{r.isActive=!1,e("clearSuggestions")},n=c=>{c.preventDefault();const a=c.target,u=a.selectionStart,p=a.selectionEnd,d=a.value;a.value=d.substring(0,u)+" "+d.substring(p),a.selectionStart=a.selectionEnd=u+1,a.dispatchEvent(new Event("input"))},l=c=>{t.commit(c),r.hasChanges=!1};return ft(()=>{r.hasChanges&&t.commit(t.value)}),(c,a)=>{var p,d;const u=Ee("icon");return y(),E("div",{class:ee(["input-container",{error:s.hasError}])},[L(u,{path:m(gs),class:"icon",fill:s.hasError?"#D35249":r.isActive?"#3482E5":void 0},null,8,["path","fill"]),s.isCode?(y(),E("textarea",{key:0,value:s.value,class:"prop-input",placeholder:(p=s.placeholder)!=null?p:void 0,onInput:a[0]||(a[0]=h=>o(h.target.value)),onClick:a[1]||(a[1]=h=>r.isActive=!0),onBlur:i,onKeydown:a[2]||(a[2]=zt(h=>n(h),["tab"])),onChange:a[3]||(a[3]=h=>l(h.target.value))},null,40,Qs)):(y(),E("input",{key:1,value:s.value,class:"prop-input",placeholder:(d=s.placeholder)!=null?d:void 0,onInput:a[4]||(a[4]=h=>o(h.target.value)),onClick:a[5]||(a[5]=h=>r.isActive=!0),onBlur:i,onChange:a[6]||(a[6]=h=>l(h.target.value))},null,40,qs))],2)}}});const Xs=U(Ys,[["__scopeId","data-v-d30fa88e"]]),er={class:"suggestions"},tr=["onMousedown"],sr=z({__name:"PythonAutoCompleteSuggestions",props:{suggestions:null},emits:["select"],setup(s,{emit:e}){return(t,r)=>fe((y(),E("div",er,[(y(!0),E(de,null,he(s.suggestions,o=>(y(),E("div",{key:o,class:"suggestion",onMousedown:i=>e("select",o)},W(o),41,tr))),128))],512)),[[He,s.suggestions.length]])}});const rr=U(sr,[["__scopeId","data-v-afec000d"]]),or={class:"python-wrapper"},ir=z({__name:"PythonPropInput",props:{hasError:{type:Boolean},placeholder:null,value:null,paramName:null,dashPlayerService:null,isCode:{type:Boolean},commit:{type:Function}},emits:["input"],setup(s,{emit:e}){const t=s,r=G(()=>t.dashPlayerService.suggestionsFor),o=G(()=>t.dashPlayerService.suggestions),i=a=>{l(t.paramName,a),e("input",a)},n=a=>{c(),e("input",a),t.commit(a)},l=async(a,u)=>{!u||t.dashPlayerService.getAutocompleteSuggestions(a,u)},c=async()=>{await Be(),t.dashPlayerService.clearSuggestions()};return(a,u)=>(y(),E("div",or,[L(Xs,{value:s.value,commit:s.commit,"is-code":s.isCode,"param-name":s.paramName,"dash-player-service":s.dashPlayerService,onInput:i,onClearSuggestions:c},null,8,["value","commit","is-code","param-name","dash-player-service"]),m(r)===s.paramName?(y(),X(rr,{key:0,suggestions:m(o),onSelect:n},null,8,["suggestions"])):M("",!0)]))}});const xe=U(ir,[["__scopeId","data-v-63688ff1"]]),nr={name:"If Block",description:"A block of elements that is only rendered depending on a condition",params:[{typeName:"Boolean",argName:"condition",isKwarg:!1,default:null}],defaultEditProps:{condition:!0},thumbname:"IfBlock.svg"},ae={"if-block":nr},Z=s=>($e("data-v-718f02de"),s=s(),Ge(),s),ar={class:"wrapper"},lr={class:"title"},cr={key:0,class:"widget-prop"},dr=Z(()=>w("h2",null,"Error",-1)),hr=Z(()=>w("p",{class:"section-description"},"Some errors were found while computing the widget.",-1)),ur=["textContent"],pr={key:1,class:"section"},gr=Z(()=>w("h2",null,"VARIABLE",-1)),fr={key:0,class:"section-content"},vr={class:"widget-prop"},mr=Z(()=>w("p",{class:"prop-label"},"Bind a variable",-1)),yr=Z(()=>w("p",{class:"prop-description"},"Create a variable to be controlled by this widget.",-1)),wr={class:"input-container"},Sr={key:0,class:"variable-error prop-error"},Er=Z(()=>w("pre",null,"Variable not defined",-1)),_r={key:1,class:"prop-error",textContent:"SyntaxError: This field must be a variable name"},br=["textContent"],Ir={key:2,class:"section"},Pr=Z(()=>w("h2",null,"EVENTS",-1)),xr={key:0,class:"section-content"},Rr=Z(()=>w("p",{class:"section-description"}," Each event is a Python code that runs on specified situations ",-1)),Lr={class:"prop-label"},Or={class:"prop-description"},Nr={class:"section"},Ar=Z(()=>w("h2",null,"PROPERTIES",-1)),Tr={key:0,class:"section-content"},Cr=Z(()=>w("p",{class:"section-description"}," Each property is a Python expression, make sure to use the correct syntax. ",-1)),kr={class:"prop-label"},Dr={class:"prop-description"},Wr=["textContent"],Mr=Z(()=>w("div",{class:"feedback"},null,-1)),$r=[Mr],Gr=z({__name:"WidgetEditor",props:{selectedWidgetErrors:null,layoutModel:null,selectedWidgets:null,dashPlayerService:null},emits:["close","create-variable"],setup(s,{emit:e}){const t=s,r=k(null);ce(()=>t.selectedWidgetErrors,()=>{r.value=null});const o=S=>{f.openedSections.includes(S)?f.openedSections=f.openedSections.filter(b=>b!==S):f.openedSections.push(S)},i=S=>f.openedSections.includes(S),n=S=>D(S)?j[S.type].name:ae[S.type].name,l=G(()=>r.value===null?t.selectedWidgetErrors:r.value==="variable"?H.exports.omit(t.selectedWidgetErrors,"variable"):{...t.selectedWidgetErrors,props:H.exports.omit(t.selectedWidgetErrors.props,r.value)}),c=G(()=>a.value.type.includes("-input")&&a.value.type!=="click-input"),a=G(()=>t.selectedWidgets[0]),u=G(()=>{var I;if(!D(a.value))return;const b=((I=j[a.value.type].pythonAPI.params)!=null?I:[]).find(O=>O.argName==="initial_value");return b||null});function p(S){this.style.height="0",this.style.height=this.scrollHeight-24+"px"}const d=new Fs,h=k(null),g=402,f=gt({isActive:!1,resizing:!1,width:g,openedSections:["properties","variable"]});vt(()=>{h.value&&(d.addGlobalEventListener("mouseup",()=>f.resizing=!1),d.addGlobalEventListener("mousemove",I=>P(I))),document.querySelectorAll(".widget-props-editor textarea").forEach(I=>{!I||(I.setAttribute("style","height:"+(I.scrollHeight-24)+"px;overflow-y:hidden;"),I.addEventListener("input",p,!1))})}),Ut(()=>{Us(),d.removeGlobalEventListeners()});const P=S=>{f.resizing&&(f.width=Math.max(f.width-S.movementX,g))},_=G(()=>({width:`${f.width}px`})),x=S=>ae[S.type].params,q=G(()=>{const S=(O,F)=>O.argName===F.argName&&O.typeName===F.typeName,b=(O,F,R)=>R.findIndex(se=>S(O,se))===F,I=O=>!O.formOnly;return t.selectedWidgets.flatMap(O=>{var F;return D(O)?(F=j[O.type])==null?void 0:F.pythonAPI.params:x(O)}).filter(Boolean).filter(I).filter(b)}),tt=G(()=>{const S=(I,O)=>I.key===O.key,b=(I,O,F)=>F.findIndex(R=>S(I,R))===O;return t.selectedWidgets.flatMap(I=>{var O;return D(I)?(O=j[I.type])==null?void 0:O.events:[]}).filter(Boolean).filter(b).filter(I=>I.key!=="change")}),Lt=S=>{t.layoutModel.updateVariable(S,a.value.id),r.value="variable"},Ot=S=>b=>{t.layoutModel.updateProp({param:S,value:b},t.selectedWidgets.map(I=>I.id)),r.value=S.argName},Nt=S=>b=>{t.layoutModel.updateEvent({event:S,value:b},t.selectedWidgets.map(I=>I.id))},At=()=>{var S,b;return(b=(S=l.value.variable)==null?void 0:S.repr)==null?void 0:b.includes("SyntaxError")},Tt=()=>{var S,b;return(b=(S=l.value.variable)==null?void 0:S.repr)==null?void 0:b.includes("NameError")},Ct=S=>{!S||(t.dashPlayerService.sendVariableCreated(S),e("create-variable",S))},kt=()=>{var S,b;return((S=l.value.widget)==null?void 0:S.repr)&&!Object.values((b=l.value.props)!=null?b:{}).some(I=>I.repr)},Dt=()=>{var S;return(S=l.value.widget)==null?void 0:S.repr},be=S=>{var b,I;return(I=(b=l.value.props)==null?void 0:b[S])==null?void 0:I.repr},Wt=S=>H.exports.upperFirst(S.replace(/_/g," "));return(S,b)=>{var O,F;const I=Ee("icon");return y(),E("div",{class:"widget-props-editor",style:ue(m(_))},[w("div",ar,[w("div",lr,[w("h1",null,W(n(m(a))),1),L(I,{path:m(fs),fill:"#414A58",class:"close-icon",width:"16",height:"16",onClick:b[0]||(b[0]=R=>e("close"))},null,8,["path"])]),kt()?(y(),E("div",cr,[dr,hr,w("pre",{class:"prop-error",textContent:W(Dt())},null,8,ur)])):M("",!0),m(c)?(y(),E("div",pr,[w("div",{class:"section-header",onClick:b[1]||(b[1]=R=>o("variable"))},[L(I,{path:i("variable")?m(Ie):m(Pe),fill:"#414A58",class:"chevron-icon",width:"16",height:"16"},null,8,["path"]),gr]),i("variable")?(y(),E("div",fr,[w("div",vr,[mr,yr,w("div",wr,[L(xe,{placeholder:"variable_name","param-name":"variable","dash-player-service":s.dashPlayerService,value:(O=m(a).variable)!=null?O:"",commit:Lt,"is-code":!1,onInput:b[2]||(b[2]=R=>m(a).variable=R)},null,8,["dash-player-service","value"])]),Tt()&&m(a).variable?(y(),E("div",Sr,[Er,w("button",{onClick:b[3]||(b[3]=R=>Ct(m(a).variable))}," Create ")])):At()?(y(),E("pre",_r)):(F=m(l).variable)!=null&&F.repr?(y(),E("pre",{key:2,class:"prop-error",textContent:W(m(l).variable.repr)},null,8,br)):M("",!0),L(at,{param:m(u)},null,8,["param"])])])):M("",!0)])):M("",!0),m(tt).length?(y(),E("div",Ir,[w("div",{class:"section-header",onClick:b[4]||(b[4]=R=>o("events"))},[L(I,{path:i("events")?m(Ie):m(Pe),fill:"#414A58",class:"chevron-icon",width:"16",height:"16"},null,8,["path"]),Pr]),i("events")?(y(),E("div",xr,[Rr,(y(!0),E(de,null,he(m(tt),R=>(y(),E("div",{key:R.key,class:"widget-prop"},[w("label",Lr,"On "+W(R.key),1),w("p",Or,"Executed after "+W(R.key),1),L(xe,{"param-name":R.key,"dash-player-service":s.dashPlayerService,value:m(a).events[R.key],commit:Nt(R),"is-code":!0,onInput:se=>m(a).events[R.key]=se},null,8,["param-name","dash-player-service","value","commit","onInput"])]))),128))])):M("",!0)])):M("",!0),w("div",Nr,[w("div",{class:"section-header",onClick:b[5]||(b[5]=R=>o("properties"))},[L(I,{path:i("properties")?m(Ie):m(Pe),fill:"#414A58",class:"chevron-icon",width:"16",height:"16"},null,8,["path"]),Ar]),i("properties")?(y(),E("div",Tr,[Cr,(y(!0),E(de,null,he(m(q),R=>{var se;return y(),E("div",{key:R.argName,class:"widget-prop"},[w("p",kr,W(Wt(R.argName)),1),w("p",Dr,W(R.description),1),L(xe,{"has-error":!!be(R.argName),placeholder:(se=R.default)!=null?se:void 0,"param-name":R.argName,"dash-player-service":s.dashPlayerService,value:m(a).props[R.argName],commit:Ot(R),"is-code":!0,onInput:Mt=>m(a).props[R.argName]=Mt},null,8,["has-error","placeholder","param-name","dash-player-service","value","commit","onInput"]),be(R.argName)?(y(),E("pre",{key:0,class:"prop-error",textContent:W(be(R.argName))},null,8,Wr)):M("",!0),L(at,{param:R},null,8,["param"])])}),128))])):M("",!0)])]),w("div",{ref_key:"handlerRef",ref:h,class:"handler",onMousedown:b[6]||(b[6]=Ft(R=>f.resizing=!0,["stop"]))},$r,544)],4)}}});const Hr=U(Gr,[["__scopeId","data-v-718f02de"]]),yt=s=>($e("data-v-0d595f79"),s=s(),Ge(),s),Br={class:"interact-menu"},zr={class:"icon-container"},Ur=yt(()=>w("span",{class:"edit"},"Edit [Shift + P]",-1)),Fr={class:"icon-container"},jr=yt(()=>w("span",null,"Interact [Shift + P]",-1)),Kr=z({__name:"InteractMenu",props:{isPreview:{type:Boolean}},emits:["changePreview"],setup(s,{emit:e}){return(t,r)=>{const o=Ee("icon");return y(),E("div",Br,[w("div",zr,[L(o,{class:ee(["icon",{active:!s.isPreview}]),path:m(vs),fill:"#5A677A",onClick:r[0]||(r[0]=i=>e("changePreview",!1))},null,8,["class","path"]),Ur]),w("div",Fr,[L(o,{class:ee(["icon",{active:s.isPreview}]),path:m(ms),fill:"#5A677A",onClick:r[1]||(r[1]=i=>e("changePreview",!0))},null,8,["class","path"]),jr])])}}});const Vr=U(Kr,[["__scopeId","data-v-0d595f79"]]),Zr={class:"header"},Jr={key:0},Qr={key:1},qr={key:2,class:"state"},Yr={key:3,class:"state"},Xr={key:4,class:"state"},eo={key:5},to={key:6},so=z({__name:"RuntimeHeader",props:{dash:null,dashPlayerService:null},setup(s){return(e,t)=>(y(),E("div",Zr,[s.dash.title?(y(),E("p",Jr,W(s.dash.title),1)):(y(),E("p",Qr,W(s.dash.path),1)),s.dashPlayerService.state.type==="RUNNING"?(y(),E("p",qr,"\u{1F7E2} running")):s.dashPlayerService.state.type==="ERROR"?(y(),E("p",Yr,"\u274C error")):s.dashPlayerService.state.type==="AUTHENTICATING"?(y(),E("p",Xr," \u{1F510} authenticating ")):s.dashPlayerService.state.type==="IDLE"?(y(),E("p",eo,"\u26AA\uFE0F idle")):s.dashPlayerService.state.type==="READY"?(y(),E("p",to,"\u23F3 loading")):M("",!0)]))}});const ro=U(so,[["__scopeId","data-v-b5964f37"]]),oo={key:0,class:"widget-metadata-card"},io=["src"],no={class:"metadata-title"},ao={class:"metadata-description"},lo={key:1,class:"collapsed-widget-metadata-card"},co=["src"],ho=z({__name:"WidgetMetadataCard",props:{metadata:null,collapsed:{type:Boolean}},setup(s){const e=window.__baseURL?`${window.__baseURL}/media`:"",t=o=>o in ae?`${e}/${ae[o].thumbname}`:`${e}/widget-thumbs/${cs(o)}.svg`,r=window.__vscodeTheme===2?"dark":"light";return(o,i)=>s.collapsed?(y(),E("div",lo,[w("img",{class:"metadata-thumbnail",src:t(s.metadata.type),style:ue(m(r)==="dark"?{filter:"invert(1)"}:"")},null,12,co)])):(y(),E("div",oo,[w("img",{class:"metadata-thumbnail",src:t(s.metadata.type),style:ue(m(r)==="dark"?{filter:"invert(1)"}:"")},null,12,io),w("div",no,W(s.metadata.name),1),w("div",ao,W(s.metadata.description),1)]))}});const uo=U(ho,[["__scopeId","data-v-2b654c57"]]),ve={"click-input":-1,"text-output":0,"number-input":1,"text-input":2,"link-output":3,"multiple-choice-input":4,"file-input":5,"email-input":6,"markdown-output":7,"dropdown-input":8,"date-input":9,"cards-input":10,"textarea-input":11,"list-input":12,"file-output":13,"html-output":14,"pandas-output":15,"checkbox-input":16,"cnpj-input":17,"code-input":18,"progress-output":19,"pandas-row-selection-input":20,"image-input":21,"password-input":22,"currency-input":23,"iframe-output":24,"checklist-input":25,"image-output":26,"nps-input":27,"phone-input":28},po=z({__name:"WidgetsMetadataList",emits:["dragstart","hover","leave"],setup(s,{emit:e}){const t=k(""),r=k(),o=k(!0),i=()=>{o.value=!1},n=()=>{o.value=!0,c()},l=async()=>{await Be(),r.value&&r.value.focus()},c=()=>{t.value=""},a=Object.values(j).concat(Object.entries(ae).map(([d,h])=>({type:d,...h}))).reduce((d,h)=>h.formOnly?d:{...d,[h.type]:h},{}),u=G(()=>t.value?Object.values(a).map(d=>({widget:d,score:ds(d,t.value.split(" "))})).filter(({score:d})=>d>0).sort(({score:d},{score:h})=>h-d).map(({widget:d})=>d):Object.values(a).sort((d,h)=>{const g=d.type,f=h.type;if(g in ve){if(!(f in ve))return-1}else return 1;return ve[g]-ve[f]}));function p(d,h){e("dragstart",d,h)}return(d,h)=>{const g=Ee("icon");return y(),E("div",{class:"widgets-metadata",onMouseover:i,onMouseleave:n},[w("div",jt({class:["search",{collapsed:o.value}]},Kt(o.value?{click:l}:{},!0)),[L(g,{path:m(ys),class:"search-icon"},null,8,["path"]),o.value?M("",!0):fe((y(),E("input",{key:0,ref_key:"searchInput",ref:r,"onUpdate:modelValue":h[0]||(h[0]=f=>t.value=f),type:"search",class:"widgets-metadata-filter",placeholder:"Find widgets"},null,512)),[[pt,t.value]])],16),w("div",{class:ee(["widgets-metadata-list",{collapsed:o.value}])},[(y(!0),E(de,null,he(m(u),f=>(y(),X(uo,{key:f.type,metadata:f,draggable:!0,collapsed:o.value,onDragstart:P=>p(P,f.type)},{default:re(()=>[Vt(W(f.type),1)]),_:2},1032,["metadata","collapsed","onDragstart"]))),128))],2)],32)}}});const go=U(po,[["__scopeId","data-v-a17e6382"]]),fo={class:"dash-layout-editor"},vo=z({__name:"DashLayoutEditor",props:{dash:null,params:null,dashEditorService:null,workspace:null},emits:["navigate","create-variable","change-preview"],setup(s,{emit:e}){const t=s;console.log(t);const r=k(null),o=k(null),i=(_,x)=>t.dashEditorService.metadataDragStart(_,x),n=_=>e("navigate",_),l=_=>e("create-variable",_),c=_=>e("change-preview",_);t.dashEditorService.pubsub.subscribe("change-preview",c);const a=()=>{t.dashEditorService.hoverZoomBar()},u=()=>{t.dashEditorService.leaveZoomBar()};ce(t.dash.layout,()=>{t.dashEditorService.layoutModel.setLayout(t.dash.layout)}),t.dashEditorService.setupOnSave(),ce(t.dashEditorService.layoutModel,()=>t.dashEditorService.setupOnSave());const p=G(()=>t.dashEditorService.getWidgetsWithErrors()),d=G(()=>t.dashEditorService.getSelectedWidgetErrors()),h=k(null),g=k(null),f=k(null),P=k(null);return vt(()=>{t.dashEditorService.selection.setLayoutModel(t.dashEditorService.layoutModel),f.value&&P.value&&g.value&&o.value&&r.value&&h.value&&t.dashEditorService.setup(f.value,P.value,g.value,o.value,r.value,h.value)}),ft(()=>{t.dashEditorService.tearDown()}),ce(()=>t.dashEditorService.dashPlayerService.isAuthenticating(),_=>{_&&(t.dashEditorService.isPreview=!0)}),(_,x)=>(y(),E("div",fo,[fe(L(go,{onDragstart:i},null,512),[[He,!s.dashEditorService.isPreview]]),w("div",{ref_key:"editor",ref:f,class:ee(["editor"])},[w("div",{ref_key:"listeners",ref:P,class:"listeners",tabindex:"0"},[L(Xt,{ref_key:"player",ref:r,class:ee(["player",{preview:s.dashEditorService.isPreview}]),style:{top:0,left:0,height:"unset"},"is-preview":!0,params:s.params,camera:s.dashEditorService.camera,"editing-mode":!s.dashEditorService.isPreview,"force-responsivity":"desktop","widgets-with-errors":m(p),"dash-player-service":s.dashEditorService.dashPlayerService,onNavigate:n},null,8,["class","params","camera","editing-mode","widgets-with-errors","dash-player-service"]),w("canvas",{ref_key:"canvas",ref:g,class:ee(["layout-canvas",{hide:s.dashEditorService.isPreview}])},null,2)],512),L(ro,{ref_key:"runtimeHeader",ref:h,dash:s.dash,"dash-player-service":s.dashEditorService.dashPlayerService},null,8,["dash","dash-player-service"]),L(Vr,{ref_key:"interactMenu",ref:o,class:"interact-menu","is-preview":s.dashEditorService.isPreview,onChangePreview:c},null,8,["is-preview"])],512),(s.dashEditorService.selection.selectedWidgetsIds.length>0||s.dashEditorService.selection.selectedSlottableId)&&!s.dashEditorService.isPreview&&s.dashEditorService.mouseState.state==="IDLE"?(y(),X(Hr,{key:0,"selected-widget-errors":m(d),"layout-model":s.dashEditorService.layoutModel,"selected-widgets":s.dashEditorService.selection.selectedSlottable?[s.dashEditorService.selection.selectedSlottable]:s.dashEditorService.selection.selectedWidgets,"dash-player-service":s.dashEditorService.dashPlayerService,onClose:x[0]||(x[0]=q=>s.dashEditorService.selection.resetSelection()),onCreateVariable:l},null,8,["selected-widget-errors","layout-model","selected-widgets","dash-player-service"])):M("",!0),L(Ds,{camera:s.dashEditorService.camera,class:"zoom-bar",onHover:a,onLeave:u},null,8,["camera"])]))}});const mo=U(vo,[["__scopeId","data-v-7661d381"]]),yo="rgba(0, 128, 233, 0.05)";class pe{constructor(e,t){v(this,"context");this.canvas=e,this.context=this.canvas.getContext("2d"),t.slottableRenderer.setContext(this.context)}static create(e,t){return new pe(e,t)}render({mouseState:e,dashEditorService:t,hoverState:r,resizeHandlerRects:o,widgetsInRectangularSelection:i,selectedWidgets:n,computedState:l,isPreview:c,calculatedPositions:a,selectedSlottable:u}){const p=t.camera,d=t.dashPlayerService.layoutGrid,h=t.dashPlayerService.calculatePositions();if(t.dashPlayerService.state.type==="RUNNING"){if(!p)throw new Error("No camera value yet");this.renderFrame(d,p),this.renderGrid(d,p,e),this.renderWidgetShadow(l,d,p,a.widgets),this.renderInvisibleWidgets(p,a,d,h),this.renderWidgetHoverBorders(r,e,p,d,a.widgets),this.renderSelectionHull(e,p,d,n,a.widgets),this.renderWidgetsSelectionBorders(e,n,p,d,a.widgets),this.renderRectangularSelection(e),this.renderRectangularSelectionHovers(e,i,p,d,a.widgets),this.renderResizeHandlers(e,o),c||(t.slottableRenderer.slottables=a.slottables,t.slottableRenderer.renderSlottables(u))}}renderFrame(e,t){const r={x:0,y:0,width:e.width,height:e.height+e.navbarLength,referential:"world"};this.context.fillStyle="transparent",this.context.shadowColor="rgba(0,0,0,0.1)",this.context.shadowBlur=15;const o=t.worldRect2screen(r);this.context.fillRect(o.x,o.y,o.width,o.height),this.context.clearRect(o.x,o.y,o.width,o.height)}getGridDots(e,t){var u;const r=[];if(!e)return[];const o=t.worldPoint2screen({y:0,x:0,referential:"world"}),i=(u=t.projectedElement)==null?void 0:u.getBoundingClientRect(),n=e.margin*t.zoom,l=e.gap*t.zoom,c=e.cellHeight*t.zoom,a=(i.y+i.height-o.y-n)/(c+l);for(const p in Array(e.columns+1).fill(null))for(const d in Array(Math.ceil(a+1)).fill(null))r.push(t.worldPoint2screen({x:e.margin+parseInt(p)*(e.cellWidth+e.gap),y:e.margin+parseInt(d)*(e.cellHeight+e.gap)+e.navbarLength,referential:"world"}));return r}renderGrid(e,t,r){if(r.state==="MOVING"||r.state==="RESIZING"||r.state==="SLOTTABLE_RESIZING"||r.state==="MOVING_SLOTTABLE"||r.state==="DRAGGING_SLOTTABLE"||r.state==="DRAGGING"){this.context.fillStyle="rgba(0,0,0,0.1)";for(const o of this.getGridDots(e,t))this.context.beginPath(),this.context.ellipse(o.x,o.y,2,2,0,0,2*Math.PI),this.context.fill()}}renderWidgetShadow(e,t,r,o){this.context.fillStyle="rgba(0, 0, 0, 0.1)";for(const i in o){if(!e.operations.some(c=>c.path.includes(i)))continue;const n=o[i],l=r.worldRect2screen(B(n.position,t));this.context.fillRect(l.x,l.y,l.width,l.height)}}renderInvisibleWidgets(e,t,r,o){const n=t.widgets;for(const l in n){if(l in o.widgets)continue;const c=n[l],a=B(c.position,r),u={x:a.x+5,y:a.y+5,width:a.width-2*5,height:a.height-2*5,referential:"world"},p=e.worldRect2screen(u);this.context.fillStyle="rgba(0, 0, 0, 0.1)",this.context.fillRect(p.x,p.y,p.width,p.height),this.context.fillStyle="black",this.context.font="15px sans-serif",this.context.textAlign="center",this.context.textBaseline="middle",this.context.fillText(j[c.type].name,p.x+p.width/2,p.y+p.height/2)}}renderWidgetHoverBorders(e,t,r,o,i){if(this.context.strokeStyle="#ababab",e.state==="HOVERING_WIDGET"&&t.state==="IDLE"){const n=i[e.widgetId];if(!n)return;const l=r.worldRect2screen(B(n.position,o));this.context.strokeRect(l.x,l.y,l.width,l.height)}else(t.state==="MOVING"||t.state==="RESIZING"||t.state==="DRAGGING"||t.state==="SELECTING")&&Object.keys(i).forEach(n=>{const l=i[n],c=r.worldRect2screen(B(l.position,o));this.context.strokeRect(c.x,c.y,c.width,c.height)})}renderWidgetsSelectionBorders(e,t,r,o,i){if(e.state==="IDLE"||e.state==="SELECTING"){this.context.strokeStyle="#3482E5",this.context.lineWidth=2;for(const n of t){const l=i[n],c=r.worldRect2screen(B(l.position,o));this.context.strokeRect(c.x,c.y,c.width,c.height)}}}renderRectangularSelection(e){if(this.context.fillStyle=yo,e.state==="SELECTING"){const t=Math.min(e.initialMousePos.x,e.mousePos.x),r=Math.min(e.initialMousePos.y,e.mousePos.y),o=Math.abs(e.initialMousePos.x-e.mousePos.x),i=Math.abs(e.initialMousePos.y-e.mousePos.y),n={x:t,y:r,width:o,height:i};this.context.fillRect(n.x,n.y,o,i)}}renderRectangularSelectionHovers(e,t,r,o,i){if(this.context.strokeStyle="#3482E5",e.state==="SELECTING")for(const n of t){const l=i[n],c=r.worldRect2screen(B(l.position,o));this.context.strokeRect(c.x,c.y,c.width,c.height)}}renderSelectionHull(e,t,r,o,i){const n=ze(Object.entries(i).filter(([c])=>o.has(c)).map(([c,a])=>B(a.position,r)).filter(c=>c!==null));if(e.state!=="IDLE"||!n)return;this.context.strokeStyle="#3482E5";const l=t.worldRect2screen(n);this.context.strokeRect(l.x,l.y,l.width,l.height)}static drawResizeHandler(e,t){e.fillStyle="white",e.strokeStyle="#3482E5",e.lineWidth=1,e.fillRect(t.x,t.y,t.width,t.height),e.strokeRect(t.x,t.y,t.width,t.height)}renderResizeHandlers(e,t){if(e.state!=="MOVING")for(const{rect:r}of t)pe.drawResizeHandler(this.context,r)}cursor(e,t){if(e.state==="MOVING")return"grabbing";if(e.state==="SELECTING")return"crosshair";if(e.state==="RESIZING")switch(e.side){case"bottom":case"top":return"ns-resize";case"left":case"right":return"ew-resize"}else{if(e.state==="START_PANNING")return"grab";if(e.state==="PANNING")return"grabbing";if(e.state==="JUST_CLICKED_TOGGLE")return"grabbing";if(t.state==="HOVERING_WIDGET")return"grab";if(t.state==="HOVERING_RESIZE_HANDLER")switch(t.side){case"bottom":case"top":return"ns-resize";case"left":case"right":return"ew-resize";case"top-left":case"bottom-right":return"nwse-resize";case"top-right":case"bottom-left":return"nesw-resize"}else return t.state==="HOVERING_TOGGLE"?"pointer":t.state==="HOVERING_SLOTTABLE_RESIZE_HANDLER"?"ns-resize":t.state==="HOVERING_SLOTTABLE_SELECTOR"?"pointer":"default"}}}const Ne=()=>document.body.classList.contains("vscode-dark"),Ae=window.__baseURL?`${window.__baseURL}/media`:"",wo=(s,e,t,r,o,i)=>{let n=[];return wt(e)||(i||(n=n.concat(bo(s,t,r,o))),i&&(n=n.concat(So(s,t,r,o)).concat(Eo(s,t,r,o)))),n.concat(Io(s,t,r,e,o)).concat(xo(s,t,r,o))},wt=s=>{var e;return!((e=s.condition)==null||e)},So=(s,e,t,r)=>{const{row:o,height:i}=s.position,{x:n,y:l,height:c,width:a}=e.getCell(0,o),u=i*c,p=a*e.columns,d={x:n,y:l,width:p,height:u,referential:"world"},h=3,g=2,f=t.worldRect2screen(d);return r.strokeStyle="#3482E5",r.lineWidth=g,r.strokeRect(f.x+h,f.y,f.width-2*h,f.height),[]},Eo=(s,e,t,r)=>{const o=_o(s,e,t);return pe.drawResizeHandler(r,o),[{type:"resizer",position:o,elementId:s.id}]},_o=(s,e,t)=>{const{row:i,height:n}=s.position,{x:l,y:c,height:a,width:u}=e.getCell(0,i),p=n*a,d=u*e.columns,h=t.worldRect2screen({x:l,y:c,width:d,height:p,referential:"world"});return{x:h.x+h.width/2-20/2,y:h.y+h.height-6/2,width:20,height:6,referential:"screen"}},bo=(s,e,t,r)=>{const{row:o,height:i}=s.position,{x:n,y:l,height:c,width:a}=e.getCell(0,o),u=i*c,p=a*e.columns,d={x:n,y:l,width:p,height:u,referential:"world"},h=4,g=3,f=2,P=t.worldRect2screen(d);return r.strokeStyle="rgb(39, 67, 255, 0.13)",r.lineWidth=f,r.beginPath(),r.roundRect(P.x+g,P.y,P.width-2*g,P.height,h),r.stroke(),[]},Io=(s,e,t,r,o)=>{const{row:i,height:n}=s.position,l=Po(i,n,e,t),c=new Image(l.width,l.height);return c.src=wt(r)?`${Ae}/chevron-down-${Ne()?"dark":"light"}.svg`:`${Ae}/chevron-up-${Ne()?"dark":"light"}.svg`,c.style.viewBox=`0 0 ${l.width} ${l.height}`,o.drawImage(c,l.x,l.y,l.width,l.height),[{type:"toggle",position:l,elementId:s.id}]},Po=(s,e,t,r)=>{const{y:o}=t.getCell(0,e),i=24,n=24,l={x:-30,y:o+t.cellHeight*s-n,width:i,height:n,referential:"world"};return r.worldRect2screen(l)},xo=(s,e,t,r)=>{const{row:o}=s.position,i=Ro(o,e,t),n=new Image(i.width,i.height);return n.src=`${Ae}/drag-${Ne()?"dark":"light"}.svg`,r.drawImage(n,i.x,i.y,i.width,i.height),[{type:"selector",position:i,elementId:s.id}]},Ro=(s,e,t)=>{const{y:r}=e.getCell(0,s),o={x:-30,y:r,width:24,height:24,referential:"world"};return t.worldRect2screen(o)},Lo={"if-block":wo};class Ke{constructor(e,t){v(this,"context",null);v(this,"_slottables",[]);v(this,"selectableElements",[]);v(this,"getSlottableRenderedElement",(e,t)=>{var r;return(r=this.selectableElements.find(o=>o.elementId===e&&o.type===t))!=null?r:null});v(this,"getRenderedElementUnderCursor",(e,t)=>this._slottables.find(r=>{var i,n;const o=(n=(i=this.getSlottableRenderedElement(r.id,e))==null?void 0:i.position)!=null?n:null;return o?Oe(t,o):!1})||null);v(this,"getSelectorUnderCursor",e=>this.getRenderedElementUnderCursor("selector",e));v(this,"getToggleUnderCursor",e=>this.getRenderedElementUnderCursor("toggle",e));v(this,"getResizerUnderCursor",e=>this.getRenderedElementUnderCursor("resizer",e));this.layoutGrid=e,this.camera=t}static create(e,t){return new Ke(e,t)}setContext(e){this.context=e}set slottables(e){if(!this.context)throw new Error("No context set yet");this._slottables=Object.values(e)}renderSlottables(e){if(this.selectableElements=[],this._slottables.length!==0)for(const t of this._slottables)this.selectableElements=this.selectableElements.concat(this.renderSlottable(t,e===t.id))}renderSlottable(e,t){return Lo[e.type](e,e.props,this.layoutGrid,this.camera,this.context,t)}}const Oo=s=>e=>e[s],No=s=>[...new Set(s)];class Ve{constructor(){v(this,"_selectedWidgetsIds");v(this,"_selectedSlottableId");v(this,"layoutModel");this.layoutModel=null,this._selectedSlottableId=k(null),this._selectedWidgetsIds=k([])}static create(){return new Ve}setLayoutModel(e){this.layoutModel=e}get selectedWidgetsIds(){return this._selectedWidgetsIds.value}set selectedWidgetsIds(e){e.length!==0&&this.resetSelection(),this._selectedWidgetsIds.value=No(e)}get selectedWidgetId(){return this.selectedWidgetsIds[0]}get selectedWidget(){return this.layoutModel&&this.selectedWidgetId?this.layoutModel.getWidget(this.selectedWidgetId):null}get selectedWidgets(){return this.layoutModel?this.selectedWidgetsIds.map(e=>this.layoutModel.getWidget(e)):[]}addWidget(e){this.selectedWidgetsIds=[...this.selectedWidgetsIds,e]}addToSelectedWidgets(e){if(!this.layoutModel)return;const t=this.layoutModel.getWidgetOrSlottable(e);(!D(t)||this.selectedWidget&&!D(this.selectedWidget))&&this.clearWidgetSelection(),this.addWidget(e)}toggleWidgetSelection(e){this.selectedWidgetsIds.includes(e)?this.removeWidget(e):this.addWidget(e)}removeWidget(e){this.selectedWidgetsIds=this.selectedWidgetsIds.filter(t=>t!==e)}clearWidgetSelection(){this.selectedWidgetsIds=[]}selectAll(){!this.layoutModel||(this.selectedWidgetsIds=Object.keys(this.layoutModel.allWidgets))}get selectedSlottableId(){return this._selectedSlottableId.value}set selectedSlottableId(e){e&&this.resetSelection(),this._selectedSlottableId.value=e}get selectedSlottable(){return this.layoutModel&&this.selectedSlottableId?this.layoutModel.getSlottable(this.selectedSlottableId):null}has(e){return this.selectedWidgetsIds.includes(e)}resetSelection(){this.clearWidgetSelection(),this.selectedSlottableId=null}}class Ze{static get isMac(){return navigator.userAgent.includes("Mac OS X")}static get buildPlatform(){return{}.CURRENT_PLATFORM||"web"}}const Ao=s=>Ze.isMac&&s.ctrlKey,le=s=>Ze.isMac?s.metaKey:s.ctrlKey,Te=s=>s.altKey,J=s=>s.shiftKey,Re={alt:Te,"arrow-up":s=>s.code==="ArrowUp","arrow-down":s=>s.code==="ArrowDown","arrow-left":s=>s.code==="ArrowLeft","arrow-right":s=>s.code==="ArrowRight",ctrl:le,delete:s=>Ze.isMac?s.code==="Backspace":s.code==="Delete",enter:s=>s.code==="Enter",escape:s=>s.code==="Escape",shift:J,space:s=>s.code==="Space",a:s=>s.code==="KeyA",b:s=>s.code==="KeyB",c:s=>s.code==="KeyC",d:s=>s.code==="KeyD",f:s=>s.code==="KeyF",g:s=>s.code==="KeyG",h:s=>s.code==="KeyH",k:s=>s.code==="KeyK",p:s=>s.code==="KeyP",v:s=>s.code==="KeyV",x:s=>s.code==="KeyX",z:s=>s.code==="KeyZ",0:s=>s.code==="Digit0","[":s=>s.code==="BracketLeft","]":s=>s.code==="BracketRight"};class To{constructor(e){v(this,"pressedKeys");v(this,"evt");this.evt=e,this.pressedKeys={};const t=r=>o=>{Object.keys(Re).forEach(i=>{Re[i](o)&&this.setPressed(i,r)})};this.evt||(window.addEventListener("keydown",t(!0)),window.addEventListener("keyup",t(!1)))}setPressed(e,t){this.pressedKeys[e]=t}isPressed(e){var t;return this.evt?Re[e](this.evt):(t=this.pressedKeys[e])!=null?t:!1}}const Co=new To,ko=s=>e=>H.exports.uniq(s.map(Oo(e))).length===1,Do=s=>s.some(e=>j[e.type].autoHeight);function Wo(s,e){const t=ko(s),r=Do(s),o=[],i=16,n=6;return t("colStart")&&o.push({rect:{x:e.x-n/2,y:e.y+e.height/2-i/2,width:n,height:i,referential:"screen"},side:"left"}),t("colEnd")&&o.push({rect:{x:e.x+e.width-n/2,y:e.y+e.height/2-i/2,width:n,height:i,referential:"screen"},side:"right"}),t("colStart")&&t("rowStart")&&!r&&o.push({rect:{x:e.x-n/2,y:e.y-n/2,width:n,height:n,referential:"screen"},side:"top-left"}),t("colEnd")&&t("rowStart")&&!r&&o.push({rect:{x:e.x+e.width-n/2,y:e.y-n/2,width:n,height:n,referential:"screen"},side:"top-right"}),t("colStart")&&t("rowEnd")&&!r&&o.push({rect:{x:e.x-n/2,y:e.y+e.height-n/2,width:n,height:n,referential:"screen"},side:"bottom-left"}),t("colEnd")&&t("rowEnd")&&!r&&o.push({rect:{x:e.x+e.width-n/2,y:e.y+e.height-n/2,width:n,height:n,referential:"screen"},side:"bottom-right"}),t("rowStart")&&!r&&o.push({rect:{x:e.x+e.width/2-i/2,y:e.y-n/2,width:i,height:n,referential:"screen"},side:"top"}),t("rowEnd")&&!r&&o.push({rect:{x:e.x+e.width/2-i/2,y:e.y+e.height-n/2,width:i,height:n,referential:"screen"},side:"bottom"}),o}/*! * https://github.com/Starcounter-Jack/JSON-Patch * (c) 2017-2022 Joachim Wester * MIT licensed @@ -8,4 +8,4 @@ var $t=Object.defineProperty;var Gt=(s,e,t)=>e in s?$t(s,e,{enumerable:!0,config * (c) 2017-2021 Joachim Wester * MIT license */var Je=new WeakMap,Uo=function(){function s(e){this.observers=new Map,this.obj=e}return s}(),Fo=function(){function s(e,t){this.callback=e,this.observer=t}return s}();function jo(s){return Je.get(s)}function Ko(s,e){return s.observers.get(e)}function Vo(s,e){s.observers.delete(e.callback)}function Zo(s,e){e.unobserve()}function Jo(s,e){var t=[],r,o=jo(s);if(!o)o=new Uo(s),Je.set(s,o);else{var i=Ko(o,e);r=i&&i.observer}if(r)return r;if(r={},o.value=$(s),e){r.callback=e,r.next=null;var n=function(){Me(r)},l=function(){clearTimeout(r.next),r.next=setTimeout(n)};typeof window<"u"&&(window.addEventListener("mouseup",l),window.addEventListener("keyup",l),window.addEventListener("mousedown",l),window.addEventListener("keydown",l),window.addEventListener("change",l))}return r.patches=t,r.object=s,r.unobserve=function(){Me(r),clearTimeout(r.next),Vo(o,r),typeof window<"u"&&(window.removeEventListener("mouseup",l),window.removeEventListener("keyup",l),window.removeEventListener("mousedown",l),window.removeEventListener("keydown",l),window.removeEventListener("change",l))},o.observers.set(e,new Fo(e,r)),r}function Me(s,e){e===void 0&&(e=!1);var t=Je.get(s.object);Qe(t.value,s.object,s.patches,"",e),s.patches.length&&A(t.value,s.patches);var r=s.patches;return r.length>0&&(s.patches=[],s.callback&&s.callback(r)),r}function Qe(s,e,t,r,o){if(e!==s){typeof e.toJSON=="function"&&(e=e.toJSON());for(var i=ke(e),n=ke(s),l=!1,c=n.length-1;c>=0;c--){var a=n[c],u=s[a];if(Ce(e,a)&&!(e[a]===void 0&&u!==void 0&&Array.isArray(e)===!1)){var p=e[a];typeof u=="object"&&u!=null&&typeof p=="object"&&p!=null&&Array.isArray(u)===Array.isArray(p)?Qe(u,p,t,r+"/"+Y(a),o):u!==p&&(o&&t.push({op:"test",path:r+"/"+Y(a),value:$(u)}),t.push({op:"replace",path:r+"/"+Y(a),value:$(p)}))}else Array.isArray(s)===Array.isArray(e)?(o&&t.push({op:"test",path:r+"/"+Y(a),value:$(u)}),t.push({op:"remove",path:r+"/"+Y(a)}),l=!0):(o&&t.push({op:"test",path:r,value:s}),t.push({op:"replace",path:r,value:e}))}if(!(!l&&i.length==n.length))for(var c=0;c{var h,g;return(g=(h=Q(d,e))==null?void 0:h.colStart)!=null?g:null}).filter(d=>d!==null)),c=Math.max(...n.map(d=>{var h,g;return(g=(h=Q(d,e))==null?void 0:h.colEnd)!=null?g:null}).filter(d=>d!==null)),a=Math.min(...n.map(d=>{var h,g;return(g=(h=Q(d,e))==null?void 0:h.rowStart)!=null?g:null}).filter(d=>d!==null)),u=c>i.columns-1?i.columns-1-c:l<0?-l:0,p=a<0?-a:0;return n.flatMap(d=>{const h=Q(d,e);if(u===0&&p===0)return[];if(!h||!D(h))return[];const g=V(K(d,C(e)),e);return[{op:"replace",path:`${g}/${d}/colStart`,backup:h,value:h.colStart+u},{op:"replace",path:`${g}/${d}/colEnd`,backup:h,value:h.colEnd+u},{op:"replace",path:`${g}/${d}/rowStart`,backup:h,value:h.rowStart+p},{op:"replace",path:`${g}/${d}/rowEnd`,backup:h,value:h.rowEnd+p}]})}const K=(s,e,t=null)=>{for(const r in e){const o=e[r];if(D(o)){if(r==s)return t}else{const i=K(s,o.slot,r);if(i)return i}}return null},Yo=(s,e)=>s.rowStart>=e.row&&s.rowStart{var t;return(t=Object.keys(e.slottables).find(r=>Yo(s,e.slottables[r].position)))!=null?t:null},ct=(s,e)=>{const t=C(e),r=(i,n,l)=>{for(const c in n){if(c==i)return l;const a=n[c];if(D(a))continue;const u=r(i,a.slot,`${l}/${c}/slot`);if(u)return u}return null},o=r(s,t,me(e));if(!o)throw new Error("Widget not found in layout");return o},V=(s,e)=>s?`${me(e)}/${s}/slot`:me(e),Se=(s,e,t)=>{if(t){const o=e.slottables[t];return{...s,rowStart:s.rowStart-o.position.row,rowEnd:s.rowEnd-o.position.row}}const r=Object.values(e.slottables).reduce((o,i)=>o+(i.position.row{const r=t.dashPlayerService.layoutGrid;return ze(Object.entries(e.widgets).filter(([o])=>s.has(o)).map(([o,i])=>B(e.widgets[o].position,r)).filter(o=>o!==null))};function ri(s){const{mouseState:e,dashEditorService:t,calculatedPositions:r}=s,o=t.dashPlayerService.layoutGrid;if(e.state!=="SLOTTABLE_RESIZING")return[];const i=r.slottables[e.slottableId],n={colStart:0,rowStart:i.position.row,colEnd:o.columns,rowEnd:i.position.row+i.position.height},l=o.rectFromArea(n);if(!l)return[];const c=It(s,l,o.width,o.cellHeight);if(!c)return[];const a=o.areaFromRect(c);return[{op:"replace",path:`/slot/${e.slottableId}/height`,backup:i.position.height,value:a.rowEnd-a.rowStart+1}]}function oi(s){const{mouseState:e,selectedWidgets:t,dashEditorService:r,workingLayout:o,calculatedPositions:i}=s,n=r.dashPlayerService.layoutGrid;if(e.state!=="RESIZING")return[];const l=e.side,c=si(s);if(!c)return[];const a=Array.from(t).filter(d=>{const h=i.widgets[d];return es(B(h.position,n),c,l)}),{minWidth:u,minHeight:p}=j[e.type].dashProperties;return a.flatMap(d=>{const h=i.widgets[d],g=B(h.position,n),f=It(s,g,u,p);if(!f)return[];const P=K(d,C(o.layout)),_=V(P,o.layout),x=n.areaFromRect(g),q=Se(n.areaFromRect(f),i,P);return[{op:"replace",path:`${_}/${d}/colStart`,backup:x.colStart,value:Math.max(q.colStart,0)},{op:"replace",path:`${_}/${d}/colEnd`,backup:x.colEnd,value:Math.min(q.colEnd,n.columns-1)},{op:"replace",path:`${_}/${d}/rowStart`,backup:x.rowStart,value:Math.max(q.rowStart,0)},{op:"replace",path:`${_}/${d}/rowEnd`,backup:x.rowEnd,value:q.rowEnd}]})}function ii(s){const{mouseState:e,dashEditorService:t,calculatedPositions:r}=s,o=t.dashPlayerService.layoutGrid;if(e.state!=="DRAGGING")return{operations:[]};const i=Object.values(j[e.type].pythonAPI.params).reduce((g,f)=>(f.isKwarg||!f.dashesInitialValue||(g[f.argName]=f.dashesInitialValue),g),{}),{initialWidth:n,initialHeight:l}=j[e.type].dashProperties,c=o.areaFromRect({x:e.x,y:e.y,width:n,height:l,referential:"world"}),a=bt(c,r),u=V(a,s.workingLayout.layout),p=_e(),d={id:p,type:e.type,props:{...i},...Se(c,r,a),events:{}};return{operations:[{op:"add",path:`${u}/${p}`,value:d}],widgetId:p}}const Pt=({j:s},e)=>({row:s,height:e,order:0}),ni=(s,e)=>Object.keys(s).reduce((t,r)=>(r===e||(t[r]=s[r]),t),{}),xt=(s,e,t)=>{const r=t?{...e,slottables:ni(e.slottables,t)}:e,o=Math.max(Object.values(r.slottables).reduce((n,l)=>l.position.row>=s.row?n:l.position.row+l.position.height<=s.row?n-l.position.height:n-(s.row-l.position.row),s.row),0),i=ai(s,r);return{...s,row:o,order:i}},dt=(s,e,t)=>Object.values(e.slottables).filter(r=>r.id!==t).find(r=>s.row>=r.position.row+r.position.height/2&&s.row<=r.position.row+r.position.height),ht=(s,e,t)=>Object.values(e.slottables).filter(r=>r.id!==t).filter(r=>r.position.row+r.position.height/2>s.row&&r.position.row<=s.row+s.height).reduce((r,o)=>!r||o.position.order{var u,p;const t=dt(s,e),r=ht(s,e),o=t?ht(t.position,e,t.id):null,i=r?dt(r.position,e,r.id):null,n=[t,i].reduce((d,h)=>d?h&&d.position.order>h.position.order?h:d:h,null),l=[r,o].reduce((d,h)=>d?h&&d.position.order!r.has(p)&&!(t!=null&&t.some(d=>p==d))&&D(n[p])).sort((p,d)=>ts(oe(p,C(e)),oe(d,C(e)))),a=[...r,...t||[]].map(p=>oe(p,C(e))).filter(p=>p!=null),u=[];return c.forEach(p=>{const d=oe(p,C(e));if(!d||!D(d))return;let h=0,g={...d};const f=()=>a.some(P=>mt(g,P));for(;f();)h++,g={...d,rowStart:d.rowStart+h,rowEnd:d.rowEnd+h};if(h){const P=V(i,e);u.push({op:"replace",path:`${P}/${p}/rowStart`,backup:d.rowStart,value:d.rowStart+h}),u.push({op:"replace",path:`${P}/${p}/rowEnd`,backup:d.rowEnd,value:d.rowEnd+h})}a.push(g)}),u}function di(s,e,t,r){const o=s.selectedWidgets;if(!o.size)return[];const i=[...o],n=[];return i.some(c=>{const a=K(c,C(r)),u=a?Ue(a,r).slot:C(r),p=Object.keys(u).filter(h=>!o.has(h)&&D(u[h])),d=Q(c,r);return p.some(h=>mt(d,u[h]))})&&o.forEach(c=>{const a=oe(c,C(r)),u=V(K(c,C(r)),r);!a||!D(a)||(n.push({op:"replace",path:`${u}/${c}/rowStart`,backup:a.rowStart,value:a.rowStart-t}),n.push({op:"replace",path:`${u}/${c}/rowEnd`,backup:a.rowEnd,value:a.rowEnd-t}),n.push({op:"replace",path:`${u}/${c}/colStart`,backup:a.colStart,value:a.colStart-e}),n.push({op:"replace",path:`${u}/${c}/colEnd`,backup:a.colEnd,value:a.colEnd-e}))}),n}function hi(s,e){const t=[],r=[];for(const o of e){const i=_e();t.push({op:"add",path:`/slot/${i}`,value:{...H.exports.cloneDeep(o),id:i}}),r.push(i)}return{operations:t,widgetsId:r}}function ui(s){const e=$(s.workingLayout.layout),t=ci(s,e);A(e,t);const r=Xo(s);A(e,r);const o=ei(s,e);A(e,o);const i=oi(s);A(e,i);const n=ri(s);A(e,n);const l=ii(s);A(e,l.operations);const c=li(s);A(e,c.operations);const a=qe(s,e,l.widgetId?[l.widgetId]:[]);A(e,a);const u=Rt(s,e,l.widgetId?[l.widgetId]:[]);return A(e,u),{layout:e,operations:[...t,...o,...r,...i,...n,...l.operations,...a,...u,...c.operations]}}function pi(s,e,t){const r=s.workingLayout.layout,o=ti(s,e,t,r);A(r,o);const i=di(s,e,t,r);A(r,i);const n=qe(s,r);return A(r,n),[...o,...i,...n]}function gi(s,e){const t=s.workingLayout.layout,r=hi(s,e);A(t,r.operations);const o=qe(s,t,r.widgetsId);A(t,o);const i=Rt(s,t,r.widgetsId);return A(t,i),[...r.operations,...o,...i]}const fi=()=>window.location.href.startsWith("vscode-webview://"),vi=(s,e)=>{!fi()||window.vscode.postMessage({type:"usage-event",event:{type:s,payload:e}})},mi=async({operations:s,name:e})=>{vi("widgets_updated",{checkpoint:e,operations:$(s)})};class Ye{constructor(e,t){v(this,"pubsub");v(this,"checkpointHistory",{undos:[],redos:[]});v(this,"_save",null);this.workingLayout=e,this.dashEditorService=t,this.pubsub=new Fe}static create(e,t){return new Ye(e,t)}setWorkingLayout(e){this.workingLayout=e}undo(){if(this.dashEditorService.isPreview||!this.checkpointHistory.undos.length)return;const e=this.checkpointHistory.undos.pop();if(e)return A(this.workingLayout,e.operations),this.checkpointHistory.redos.push(Le(e)),e}redo(){if(this.dashEditorService.isPreview)return;const e=this.checkpointHistory.redos.pop();if(e)return A(this.workingLayout,e.operations),this.checkpointHistory.undos.push(Le(e)),e}execute(e){this.dashEditorService.isPreview||(A(this.workingLayout,e.operations),this.checkpointHistory.undos.push(Le(e)),this.checkpointHistory.redos=[],this.save(),this.pubsub.publish("updated"),mi(e))}onSave(e){this._save=e}save(){var e;(e=this._save)==null||e.call(this)}}const Le=s=>({selection:s.selection,name:`RE: ${s.name}`,operations:s.operations.slice().reverse().map(e=>yi(e))}),yi=s=>{switch(s.op){case"add":return{op:"remove",backup:s.value,path:s.path};case"remove":return{op:"add",path:s.path,value:s.backup};case"replace":return{op:"replace",backup:s.value,path:s.path,value:s.backup}}};class Xe{constructor(e,t){v(this,"operationQueue");v(this,"pubsub");this.layout=e,this.pubsub=new Fe,this.operationQueue=Ye.create(e,t)}getRootSlot(){return C(this.layout)}getRootSlotPath(){return me(this.layout)}setLayout(e){this.operationQueue.setWorkingLayout(e)}static create(e,t){return new Xe(e,t)}getWidget(e){return Q(e,this.layout)}getWidgetOrSlottable(e){const t=hs(e,this.layout);if(!t)throw new Error(`Could not find widget or slottable with id ${e}`);return t}get widgets(){return this.getRootSlot()}get allWidgets(){const e=t=>Object.entries(t).reduce((r,[o,i])=>D(i)?{...r,[o]:i}:{...r,...e(i.slot)},{});return e(this.widgets)}getSlottable(e){return Ue(e,this.layout)}redo(){let e=this.operationQueue.redo();for(;e&&e.operations.length===0;)e=this.operationQueue.redo();return this.operationQueue.save(),e}undo(){let e=this.operationQueue.undo();for(;e&&e.operations.length===0;)e=this.operationQueue.undo();return this.operationQueue.save(),e}updateVariable(e,t){const r=this.getWidget(t);if(!D(r))return;const o=V(K(t,this.getRootSlot()),this.layout);this.operationQueue.execute({name:"update variable",selection:new Set([t]),operations:[{op:"replace",backup:r.variable,value:e,path:`${o}/${t}/variable`}]})}updateProp({param:e,value:t},r){const o=n=>this.getWidgetOrSlottable(n).props,i=(n,l,c)=>{const a=ct(n,this.layout);return[{op:"replace",backup:o(n)[l],value:c,path:`${a}/${n}/props/${l}`}]};this.operationQueue.execute({name:"update props",operations:r.flatMap(n=>i(n,e.argName,t)),selection:new Set(r)})}updateEvent({event:e,value:t},r){const o=n=>this.getWidget(n).events,i=(n,l,c)=>{const a=V(K(n,this.getRootSlot()),this.layout);return[{op:"replace",backup:o(n)[l],value:c,path:`${a}/${n}/events/${l}`}]};this.operationQueue.execute({name:"update events",operations:r.flatMap(n=>i(n,e.key,t)),selection:new Set(r)})}delete(e){this.operationQueue.execute({name:"widgets deleted",operations:e.map(t=>{const r=ct(t,this.layout);return{op:"remove",backup:this.getWidgetOrSlottable(t),path:`${r}/${t}`}}),selection:new Set(e)})}onSave(e){this.operationQueue.onSave(e)}updateVersion(){this.layout.version!=="0.2"&&this.operationQueue.execute({name:"Version updated",operations:[{op:"replace",backup:this.layout.version,value:"0.2",path:"/version"},{op:"add",value:this.layout.widgets,path:"/slot"},{op:"remove",path:"/widgets",backup:this.layout.widgets}],selection:new Set})}}const wi=s=>({type:"copyAndPaste",selectedWidgets:s});function Si(s,e){return s.setData("text/plain",JSON.stringify(wi(e))),!0}function Ei(s,e,t){const r=s.getData("text/plain");try{const o=r&&JSON.parse(r);if(!(o&&"type"in o&&o.type==="copyAndPaste"&&"selectedWidgets"in o&&Array.isArray(o.selectedWidgets)))return!1;const n=gi(e,o.selectedWidgets);return t.operationQueue.execute({name:"paste",operations:n,selection:e.selectedWidgets}),!0}catch{return!1}}class _i{constructor(e){v(this,"event");this.event=e}setData(e,t){var r;(r=this.event.clipboardData)==null||r.setData(e,t)}getData(e){var t,r;return(r=(t=this.event.clipboardData)==null?void 0:t.getData(e))!=null?r:null}getTransferItems(){var e,t;return Object.values((t=(e=this.event.clipboardData)==null?void 0:e.items)!=null?t:[]).map(Ii)}}class bi{constructor(e){v(this,"item");this.item=e}get type(){return this.item.type}getAsString(){return new Promise(e=>this.item.getAsString(t=>e(t)))}getJSONValue(){return this.getAsString().then(e=>{try{return e?JSON.parse(e):null}catch{return null}})}getAsFile(){return this.item.getAsFile()}}function Ii(s){return new bi(s)}function ut(s){return new _i(s)}function Pi(s){var t;const e=(t=document.getSelection())==null?void 0:t.toString();return(s==null?void 0:s.selectionStart)!==void 0||!!e}class et{constructor(e,t,r){v(this,"dash");v(this,"zoom");v(this,"prevSlot");v(this,"_collapsedSlottables");v(this,"_isPreview");v(this,"camera");v(this,"slottableRenderer");v(this,"selection");v(this,"dashPlayerService");v(this,"layoutModel");v(this,"workspace");v(this,"_mouseState");v(this,"_hoverState");v(this,"pubsub");v(this,"editor");v(this,"listener");v(this,"canvas");v(this,"interactMenu");v(this,"dashPlayer");v(this,"runtimeHeader");v(this,"canvasService");v(this,"computedState");v(this,"throttledWidgetsChangedSend",H.exports.throttle(()=>{H.exports.isEqual(this.dash.rootSlot,this.prevSlot)||(this.prevSlot=H.exports.cloneDeep(this.dash.rootSlot),this.dashPlayerService.sendWidgetsChanged(this.dash.rootSlot))},500));v(this,"startPanning",()=>{this.mouseState.state!=="PANNING"&&(this.mouseState.state="START_PANNING")});v(this,"onKeyDownEvents",e=>({escape:()=>this.escapeEvent(),backspace:()=>this.backspaceEvent(),delete:()=>this.backspaceEvent(),z:()=>this.undoEvent(e),arrowup:()=>this.arrowUpEvent(),arrowdown:()=>this.arrowDownEvent(),arrowleft:()=>this.arrowLeftEvent(),arrowright:()=>this.arrowRightEvent(),a:()=>this.selectAllEvent(e),p:()=>this.togglePreviewEvent(e),space:()=>this.startPanning()}));v(this,"resizeEventListener",e=>function(t){e.centerCanvasHandler(t)});v(this,"copyEventListener",e=>function(t){e.copyHandler(t)});v(this,"pasteEventListener",e=>function(t){e.pasteHandler(t)});v(this,"mousemoveEventListener",e=>function(t){e.mouseMoveHandler(t)});v(this,"mouseupEventListener",e=>function(t){e.mouseup(t)});v(this,"updateHoverStateOnResizeHandler",e=>{for(const t of this.getResizeHandlerRects())if(Oe(e,t.rect)){this.hoverState={state:"HOVERING_RESIZE_HANDLER",side:t.side};return}});v(this,"updateHoverStateOnWidget",e=>{var o;if(this.dashPlayerService.state.type!=="RUNNING")return;const{widgets:t}=this.calculatePositions(),r=(o=Object.keys(t).find(i=>Oe(this.camera.screenPoint2world(e),B(t[i].position,this.dashPlayerService.layoutGrid))))!=null?o:null;r?this.hoverState={state:"HOVERING_WIDGET",widgetId:r}:this.hoverState={state:"NONE"}});window.__dashEditorService=this,this.zoom={active:!1,hoverZoomBar:!1},this._isPreview=k(!1),this.dashPlayerService=e,this.dashPlayerService.layoutGrid.calculatePositions=()=>this.isPreview?this.dashPlayerService.calculatePositions():this.calculatePositions(),this.camera=je.create(this.dashPlayerService.layoutGrid),this.slottableRenderer=Ke.create(this.dashPlayerService.layoutGrid,this.camera),this._collapsedSlottables=Zt({}),this._mouseState={state:"IDLE"},this._hoverState={state:"NONE"},this.selection=Ve.create(),this.dash=t,this.workspace=r,this.pubsub=new Fe,this.layoutModel=Xe.create(H.exports.cloneDeep(this.dash.layout),this),this.layoutModel.updateVersion(),this.prevSlot=H.exports.cloneDeep(us(this.getRootWidgets(),j)),this.dashPlayerService.onWidgetsComputedMessage(o=>{var l;const i=Object.keys(this.dashPlayerService.runnerData.layout.slot),n=Object.keys((l=o.props)!=null?l:{});ps(i,n)})}overloadCollapsedSlottablesCondition(e){return Object.entries(e).reduce((t,[r,o])=>r in this.collapsedSlottables?{...t,[r]:{condition:!0}}:{...t,[r]:o},{})}get collapsedSlottables(){return this._collapsedSlottables.value}set collapsedSlottables(e){console.log("set collapsedSlottables",e),this._collapsedSlottables.value=e}get isPreview(){return this._isPreview.value}set isPreview(e){this._isPreview.value=e}get mouseState(){return this._mouseState}set mouseState(e){this._mouseState=e}get hoverState(){return this._hoverState}set hoverState(e){this._hoverState=e}getWidgetsWithErrors(){const e=this.dashPlayerService.state;return e?e.type!=="RUNNING"?[]:Object.keys(this.layoutModel.widgets).reduce((t,r)=>{var l,c,a;const o=(l=e.errors.props)==null?void 0:l[r],i=(c=e.errors.variables)==null?void 0:c[r],n=(a=e.errors.widgets)==null?void 0:a[r];return!o&&!i&&!n||!Object.keys({...o,...i,...n}).length?t:t?[...t,r]:[r]},[]):[]}getSelectedWidgetErrors(){var r,o,i,n,l,c;const e={},t=this.dashPlayerService.state;return!t||t.type!=="RUNNING"?e:{props:(o=t.errors.props)==null?void 0:o[(r=this.selection.selectedSlottableId)!=null?r:this.selection.selectedWidgetId],widget:(n=t.errors.widgets)==null?void 0:n[(i=this.selection.selectedSlottableId)!=null?i:this.selection.selectedWidgetId],variable:(c=t.errors.variables)==null?void 0:c[(l=this.selection.selectedSlottableId)!=null?l:this.selection.selectedWidgetId]}}setupOnSave(){this.layoutModel.onSave(async()=>{!this.workspace||(this.dash.layout=this.layoutModel.layout,this.dashPlayerService.updateDashData(this.dash.makeRunnerData(this.workspace)),this.throttledWidgetsChangedSend())})}hoverZoomBar(){this.zoom.hoverZoomBar=!0}leaveZoomBar(){this.zoom.hoverZoomBar=!1}getRootWidgets(){return Object.keys(this.dash.rootSlot).reduce((e,t)=>{const r=this.dash.rootSlot[t];return r.position&&(e[t]=r),e},{})}static create(e,t,r){return new et(e,t,r)}metadataDragStart(e,t){if(!this.camera)return;const r=this.camera.screenPoint2world({x:e.pageX,y:e.pageY,referential:"screen"});this.selection.resetSelection(),t in ae?this.mouseState={state:"DRAGGING_SLOTTABLE",...r,type:t}:this.mouseState={state:"DRAGGING",...r,type:t}}fixPosition(e){if(!this.canvas)return;const{origin:t,element:r,ignoreZoom:o}=e;if(!this.camera||!r||!r.style)return;const i=this.camera.worldPoint2screen(t),n=this.canvas.getBoundingClientRect(),l=[`translate(${i.x-n.x}px, ${i.y-n.y}px)`,o?null:`scale(${this.camera.zoom})`].filter(c=>c).join(" ");Object.assign(r.style,{transform:l,transformOrigin:"top left"})}fixCanvasRectPosition(){var i,n,l,c,a,u,p,d,h,g;const e=this.camera.screenRect2world(this.camera.canvasRect),t=this.camera.screenDelta2world({dx:8,dy:8,referential:"screen"}),r=this.camera.screenRect2world({x:(i=this.interactMenu)==null?void 0:i.$el.getBoundingClientRect().x,y:(n=this.interactMenu)==null?void 0:n.$el.getBoundingClientRect().y,width:(l=this.interactMenu)==null?void 0:l.$el.getBoundingClientRect().width,height:(c=this.interactMenu)==null?void 0:c.$el.getBoundingClientRect().height,referential:"screen"});this.fixPosition({origin:{x:Math.min(this.dashPlayerService.layoutGrid.width+t.dx,e.x+e.width-r.width-t.dx),y:Math.max(e.y+t.dy,0),referential:"world"},element:(a=this.interactMenu)==null?void 0:a.$el,ignoreZoom:!0});const o=this.camera.screenRect2world({x:(u=this.runtimeHeader)==null?void 0:u.$el.getBoundingClientRect().x,y:(p=this.runtimeHeader)==null?void 0:p.$el.getBoundingClientRect().y,width:(d=this.runtimeHeader)==null?void 0:d.$el.getBoundingClientRect().width,height:(h=this.runtimeHeader)==null?void 0:h.$el.getBoundingClientRect().height,referential:"screen"});this.fixPosition({origin:{x:0,y:-o.height-t.dy,referential:"world"},element:(g=this.runtimeHeader)==null?void 0:g.$el,ignoreZoom:!0})}canvasMousedown(e){var o;if(!this.camera)return;const t={x:e.pageX,y:e.pageY,referential:"screen"};if(e.button==1||e.button==0&&Co.isPressed("space")){this.mouseState={state:"PANNING",initialMousePos:t,mousePos:t};return}const r=this.camera.screenPoint2world(t);this.hoverState.state==="HOVERING_WIDGET"?this.mouseState={state:"JUST_CLICKED",pos:r,widgetId:this.hoverState.widgetId}:this.hoverState.state==="HOVERING_RESIZE_HANDLER"?this.mouseState={state:"RESIZING",side:this.hoverState.side,initialMousePos:t,mousePos:t,type:(o=this.selection.selectedWidget)==null?void 0:o.type}:this.hoverState.state==="HOVERING_TOGGLE"?this.mouseState={state:"JUST_CLICKED_TOGGLE",mousePos:t,slottable:this.hoverState.slottable}:this.hoverState.state==="HOVERING_SLOTTABLE_RESIZE_HANDLER"?this.mouseState={state:"SLOTTABLE_RESIZING",initialMousePos:t,mousePos:t,slottableId:this.hoverState.slottableId,side:"bottom"}:this.hoverState.state==="HOVERING_SLOTTABLE_SELECTOR"?this.mouseState={state:"JUST_CLICKED_SLOTTABLE_SELECTOR",slottableId:this.hoverState.slottableId,mousePos:t}:(J(e)||this.selection.resetSelection(),this.mouseState={state:"SELECTING",initialMousePos:t,mousePos:t})}mouseMoveHandler(e){if(!this.camera)return;const t={x:e.pageX,y:e.pageY,referential:"screen"},r=this.camera.screenPoint2world(t);if(this.mouseState.state==="PANNING"){const o={dx:-e.movementX,dy:-e.movementY},i=this.camera.screenDelta2world({dx:o.dx,dy:o.dy,referential:"screen"});this.camera.translate(i),e.preventDefault(),e.stopPropagation();return}this.mouseState.state==="MOVING"&&(this.mouseState.mousePos=r,this.mouseState.duplicating=Te(e)),this.mouseState.state==="MOVING_SLOTTABLE"&&(this.mouseState.mousePos=r),this.mouseState.state==="JUST_CLICKED"&&rt(this.mouseState.pos,r)*this.camera.zoom>5&&(this.selection.has(this.mouseState.widgetId)||(J(e)?this.selection.addToSelectedWidgets(this.mouseState.widgetId):(this.selection.resetSelection(),this.selection.addToSelectedWidgets(this.mouseState.widgetId))),this.mouseState={state:"MOVING",initialMousePos:this.mouseState.pos,mousePos:r,duplicating:Te(e)}),this.mouseState.state==="JUST_CLICKED_SLOTTABLE_SELECTOR"&&rt(this.mouseState.mousePos,r)*this.camera.zoom>5&&(this.mouseState={state:"MOVING_SLOTTABLE",initialMousePos:this.camera.screenPoint2world(this.mouseState.mousePos),mousePos:r,slottableId:this.mouseState.slottableId}),this.mouseState.state==="SELECTING"&&(this.mouseState.mousePos=t),this.mouseState.state==="RESIZING"&&(this.mouseState.mousePos=t),this.mouseState.state==="SLOTTABLE_RESIZING"&&(this.mouseState.mousePos=t),this.computeHoverState(t)}everySelectedWidgetInPreviewState(){const e=this.dashPlayerService.state;return e.type!=="RUNNING"?!1:this.selection.selectedWidgetsIds.every(t=>Object.keys(e.widgets).includes(t))}getRectangularHull(){const e=this.dashPlayerService.state;return e.type!=="RUNNING"?null:ze(Object.entries(e.widgets).filter(([t])=>this.selection.has(t)).map(([t,r])=>B(r.position,this.dashPlayerService.layoutGrid)))}selectionRect(){if(this.mouseState.state!=="SELECTING")return null;const{x:e,y:t}=this.mouseState.initialMousePos,{x:r,y:o}=this.mouseState.mousePos;return{x:Math.min(e,r),y:Math.min(t,o),width:Math.abs(e-r),height:Math.abs(t-o),referential:"screen"}}pasteHandler(e){Ei(ut(e),this.getInput(),this.layoutModel)&&e.preventDefault()}renderScreenPositioning(){var r;if(!this.camera||!this.workspace||!this.canvas)return;this.fixPosition({origin:{x:0,y:0,referential:"world"},element:(r=this.dashPlayer)==null?void 0:r.$el}),this.fixCanvasRectPosition();const e=this.canvas.getContext("2d");if(!e)return;const t=this.canvas.getBoundingClientRect();this.canvas.width=this.canvas.offsetWidth,this.canvas.height=this.canvas.offsetHeight,e.clearRect(0,0,this.canvas.width,this.canvas.height),e.translate(-t.x,-t.y)}renderComputeCursor(){var e,t;!this.canvas||(this.canvas.style.cursor=(t=(e=this.canvasService)==null?void 0:e.cursor(this.mouseState,this.hoverState))!=null?t:"default")}renderPreviewState(){var o,i;if(this.dashPlayerService.state.type!=="RUNNING")return;const e=this.getInput(),t=ui(e);(!H.exports.isEqual(t.operations,(o=this.computedState)==null?void 0:o.operations)||!H.exports.isEqual(t.layout,(i=this.computedState)==null?void 0:i.layout))&&(this.computedState=t),this.computedState&&this.canvasService&&this.canvasService.render({...e,computedState:this.computedState,isPreview:this.isPreview,calculatedPositions:this.calculatePositions(this.dash.makeRunnerData(this.workspace,this.computedState.layout).layout.slot)})}render(){try{this.renderScreenPositioning(),this.renderComputeCursor(),this.renderPreviewState()}catch(e){console.error(e)}finally{requestAnimationFrame(()=>this.render())}}onDragover(e){if(!this.camera)return;e.preventDefault();const t=this.camera.screenPoint2world({x:e.pageX,y:e.pageY,referential:"screen"});this.mouseState={...this.mouseState,...t}}canvasWheel(e){if(!this.camera)return;const t={x:e.pageX,y:e.pageY,referential:"screen"};if(le(e)||Ao(e))this.camera.zoomIn(Math.exp(-Math.sign(e.deltaY)*.05),t),e.preventDefault();else{const r=J(e)?{dx:e.deltaY,dy:0}:{dx:e.deltaX,dy:e.deltaY},o=this.camera.screenDelta2world({dx:r.dx,dy:r.dy,referential:"screen"});this.camera.translate(o)}e.stopPropagation()}togglePreviewEvent(e){J(e)&&this.pubsub.publish("change-preview",!this.isPreview)}resetEditingState(e){this.mouseState={state:"IDLE"},this.computeHoverState(e)}escapeEvent(){this.mouseState.state==="IDLE"&&this.selection.resetSelection(),this.resetEditingState({referential:"screen",x:0,y:0})}backspaceEvent(){this.selection.selectedSlottableId?this.layoutModel.delete([this.selection.selectedSlottableId]):this.layoutModel.delete(this.selection.selectedWidgetsIds),this.selection.resetSelection()}undoEvent(e){if(le(e)&&J(e)){e.preventDefault(),e.stopPropagation();const t=this.layoutModel.redo();if(t){if(t.operations.some(r=>r.op==="remove")){this.selection.resetSelection();return}this.selection.selectedWidgetsIds=[...Array.from(t.selection)]}return}else if(le(e)){e.preventDefault(),e.stopPropagation();const t=this.layoutModel.undo();if(t){if(t.operations.some(r=>r.op==="remove")){this.selection.resetSelection();return}this.selection.selectedWidgetsIds=[...Array.from(t.selection)]}return}}selectAllEvent(e){le(e)&&(e.preventDefault(),e.stopPropagation(),this.selection.selectAll())}move(e,t){const[r,o]={up:[0,-1],down:[0,1],left:[-1,0],right:[1,0]}[t],i=pi(e,r,o);this.layoutModel.operationQueue.execute({name:`move ${t}`,operations:i,selection:e.selectedWidgets})}arrowUpEvent(){this.move(this.getInput(),"up")}arrowDownEvent(){this.move(this.getInput(),"down")}arrowLeftEvent(){this.move(this.getInput(),"left")}arrowRightEvent(){this.move(this.getInput(),"right")}selectingOnMouseUp(e){J(e)?this.widgetsInRectangularSelection().forEach(t=>{this.selection.toggleWidgetSelection(t)}):(this.selection.resetSelection(),this.widgetsInRectangularSelection().forEach(t=>{this.selection.addToSelectedWidgets(t)}))}toggleSlottable(e){this.collapsedSlottables={...this.collapsedSlottables,[e]:!this.collapsedSlottables[e]}}mouseup(e){var r;(r=this.computedState)!=null&&r.operations.length&&this.layoutModel.operationQueue.execute({name:"mouse up",operations:this.computedState.operations,selection:new Set(this.selection.selectedWidgetsIds)}),this.mouseState.state==="SELECTING"&&this.selectingOnMouseUp(e),this.mouseState.state==="JUST_CLICKED"&&(J(e)?this.selection.toggleWidgetSelection(this.mouseState.widgetId):(this.selection.resetSelection(),this.selection.selectedSlottableId=null,this.selection.addToSelectedWidgets(this.mouseState.widgetId))),this.mouseState.state==="JUST_CLICKED_TOGGLE"&&this.toggleSlottable(this.mouseState.slottable),this.mouseState.state==="JUST_CLICKED_SLOTTABLE_SELECTOR"&&(this.selection.selectedSlottableId=this.mouseState.slottableId);const t={x:e.pageX,y:e.pageY,referential:"screen"};this.resetEditingState(t)}onKeydown(e){var t,r;(r=(t=this.onKeyDownEvents(e))[e.key.toLowerCase().trim()?e.key.toLowerCase():e.code.toLowerCase()])==null||r.call(t)}onKeyup(e){this.mouseState={state:"IDLE"}}copyHandler(e){Pi(e==null?void 0:e.target)||Si(ut(e),this.selection.selectedWidgets)&&e.preventDefault()}centerCanvasHandler(e){var t;(t=this.camera)==null||t.correct()}addGlobalEventListeners(){addEventListener("resize",this.resizeEventListener(this)),addEventListener("copy",this.copyEventListener(this)),addEventListener("paste",this.pasteEventListener(this)),addEventListener("mousemove",this.mousemoveEventListener(this)),addEventListener("mouseup",this.mouseupEventListener(this))}removeGlobalEventListeners(){removeEventListener("resize",this.resizeEventListener(this)),removeEventListener("copy",this.copyEventListener(this)),removeEventListener("paste",this.pasteEventListener(this)),removeEventListener("mousemove",this.mousemoveEventListener(this)),removeEventListener("mouseup",this.mouseupEventListener(this))}async setup(e,t,r,o,i,n){var c,a;if(this.editor=e,this.listener=t,this.interactMenu=o,this.dashPlayer=i,this.runtimeHeader=n,this.canvas=r,this.camera.setProjectedCanvas(r),this.camera.correct(),t.addEventListener("wheel",u=>this.canvasWheel(u)),r.addEventListener("mousedown",u=>this.canvasMousedown(u)),r.addEventListener("drop",u=>this.mouseup(u)),r.addEventListener("dragover",u=>this.onDragover(u)),(c=r.parentElement)==null||c.addEventListener("keydown",u=>this.onKeydown(u)),(a=r.parentElement)==null||a.addEventListener("keyup",u=>this.onKeyup(u)),!r.getContext("2d"))throw new Error(`I can't get no context 2d ${r}`);this.canvasService=pe.create(r,this),this.addGlobalEventListeners(),Be(()=>{this.camera.fit(),this.render()})}tearDown(){this.removeGlobalEventListeners()}widgetsInRectangularSelection(){if(!this.camera)throw new Error("No camera value yet");if(this.dashPlayerService.state.type!=="RUNNING")return new Set;const{widgets:e}=this.calculatePositions(),t=this.selectionRect();return t?new Set(Object.keys(e).filter(r=>ss(this.camera.worldRect2screen(B(e[r].position,this.dashPlayerService.layoutGrid)),t))):new Set}calculatePositions(e){return this.dashPlayerService.state.type!=="RUNNING"?{widgets:{},slottables:{}}:this.dashPlayerService.calculatePositions(this.overloadCollapsedSlottablesCondition(this.dashPlayerService.state.props),e)}getInput(){switch(this.dashPlayerService.state.type){case"AUTHENTICATING":case"RUNNING":return{mouseState:this.mouseState,dashEditorService:this,workingLayout:this.layoutModel,hoverState:this.hoverState,resizeHandlerRects:this.getResizeHandlerRects(),widgetsInRectangularSelection:this.widgetsInRectangularSelection(),selectedWidgets:new Set(this.selection.selectedWidgetsIds),dash:this.dash,calculatedPositions:this.calculatePositions(),selectedSlottable:this.selection.selectedSlottableId};default:throw new Error(`Invalid state ${JSON.stringify(this.dashPlayerService.state.type)} for getInput`)}}getResizeHandlerRects(){if(!this.camera)throw new Error("No camera value yet");const e=this.getRectangularHull();return!e||!this.everySelectedWidgetInPreviewState()?[]:Wo(this.selection.selectedWidgets,this.camera.worldRect2screen(e))}updateHoverStateOnToggle(e){const t=this.slottableRenderer.getToggleUnderCursor(e);t&&(this.hoverState={state:"HOVERING_TOGGLE",slottable:t.id})}updateHoverStateOnSlottableSelector(e){const t=this.slottableRenderer.getSelectorUnderCursor(e);t&&(this.hoverState={state:"HOVERING_SLOTTABLE_SELECTOR",slottableId:t.id})}updateHoverStateOnSlottableResizeHandler(e){const t=this.slottableRenderer.getResizerUnderCursor(e);t&&(this.hoverState={state:"HOVERING_SLOTTABLE_RESIZE_HANDLER",slottableId:t.id})}computeHoverState(e){!this.camera||(this.updateHoverStateOnWidget(e),this.updateHoverStateOnResizeHandler(e),this.updateHoverStateOnToggle(e),this.updateHoverStateOnSlottableSelector(e),this.updateHoverStateOnSlottableResizeHandler(e))}}const xi={class:"dash-editor"},Ri=z({__name:"DashEditor",setup(s){const e=Jt(),t=Qt(),r=({id:d,type:h})=>{h==="dash"?(e.push({name:"dashEditor",params:{dashId:d},query:t.query}),n()):e.push({name:"editor",params:{formId:d},query:t.query})},{loading:o,result:i,refetch:n}=ws(()=>Promise.all([Es.get(),Ss.get(t.params.dashPath)]).then(([d,h])=>qt({workspace:d,dash:h,...a(d,h)}))),l=d=>{i.value&&(i.value.dashEditorService.isPreview=d)},c=d=>{var h;return(h=i.value)==null?void 0:h.dash.addVariableToCode(d)};function a(d,h){const g=rs(h.makeRunnerData(d)),f=as.create(),P=et.create(g,h,d);return g.onRedirect(({url:_,queryParams:x})=>Ht(e,_,x)),g.on("eval-return",_=>{_.repr&&f.log({type:"eval-output",log:_.repr})}),g.on("eval-error",_=>{f.log({type:"eval-output",log:_.repr})}),g.on("stderr",_=>{f.log({type:"stderr",log:_.log})}),g.on("stdout",_=>{f.log({type:"stdout",log:_.log})}),g.on("widgets-computed",_=>{var x;(x=_.errors)!=null&&x.general&&f.log({type:"stderr",log:_.errors.general.repr})}),g.on("program-start-failed",_=>{var x;f.log({type:"stderr",log:(x=_.error)!=null?x:""})}),{dashPlayerService:g,logService:f,dashEditorService:P}}function u(d){var h;(h=i.value)==null||h.dashPlayerService.sendEvalRequest(d)}const p=()=>{!i.value||i.value.dashPlayerService.resetState()};return(d,h)=>{var g,f,P;return y(),E("div",xi,[m(o)||!((g=m(i))!=null&&g.dash)||!((f=m(i))!=null&&f.workspace)?(y(),X(ls,{key:0,class:"loading",justify:"center"})):(y(),X(Bt,{key:1},{left:re(()=>[L(_s,{link:"/_editor/dashes"})]),right:re(()=>[L(Ps,{path:"dashes/overview"}),L(Is,{model:m(i).dash},null,8,["model"]),L(bs,{model:m(i).dash},null,8,["model"])]),default:re(()=>[L(st,{title:"Layout editor"},{default:re(()=>{var _;return[(_=m(i))!=null&&_.dashPlayerService?(y(),X(mo,{key:0,workspace:m(i).workspace,dash:m(i).dash,"dash-editor-service":m(i).dashEditorService,params:m(t).query,onNavigate:r,onChangePreview:l,onCreateVariable:c},null,8,["workspace","dash","dash-editor-service","params"])):M("",!0)]}),_:1}),L(st,{title:"Settings"},{default:re(()=>[L(As,{dash:m(i).dash},null,8,["dash"])]),_:1})]),_:1})),m(i)?(y(),X(is,{key:2,"log-service":m(i).logService,runtime:"dashes",onRestart:p,onEvalRequest:u},null,8,["log-service"])):M("",!0),L(ns,{"has-changes":(P=m(i))==null?void 0:P.dash.hasChanges()},null,8,["has-changes"])])}}});const nn=U(Ri,[["__scopeId","data-v-41d35da0"]]);export{nn as default}; -//# sourceMappingURL=DashEditor.45000c34.js.map +//# sourceMappingURL=DashEditor.695e56d1.js.map diff --git a/abstra_statics/dist/assets/DashPlayer.0888e5b9.js b/abstra_statics/dist/assets/DashPlayer.6d1530bb.js similarity index 93% rename from abstra_statics/dist/assets/DashPlayer.0888e5b9.js rename to abstra_statics/dist/assets/DashPlayer.6d1530bb.js index ad61e799a5..81abf9b8a4 100644 --- a/abstra_statics/dist/assets/DashPlayer.0888e5b9.js +++ b/abstra_statics/dist/assets/DashPlayer.6d1530bb.js @@ -1,2 +1,2 @@ -var B=Object.defineProperty;var z=(s,t,e)=>t in s?B(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var r=(s,t,e)=>(z(s,typeof t!="symbol"?t+"":t,e),e);import{R as V,ao as U,q as P,b as p,c as b,O as q,Q as J,x as C,d as M,K as y,r as R,a as Y,F as K,L as Q,A as I,e as k,z as m,D as L,t as S,am as X,an as Z,a8 as tt,G as H,y as et,w as E,B as G,ap as st,aq as it}from"./registerWidgets.3fe0df5a.js";import{w as O,l as w,m as at}from"./runnerData.331b4b09.js";import{e as nt,R as ot}from"./executeJs.9eb1c025.js";import{p as rt}from"./passwordlessManager.f53316a7.js";import{P as lt}from"./Passwordless.15dd7595.js";import{W as ht}from"./WidgetsFrame.c900894c.js";import{e as ct}from"./icons.9d575a00.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[t]="eca1cf98-bb24-47f3-b3d5-e536638a0962",s._sentryDebugIdIdentifier="sentry-dbid-eca1cf98-bb24-47f3-b3d5-e536638a0962")}catch{}})();function se(s,t){return{dx:t.x-s.x,dy:t.y-s.y,referential:s.referential}}function dt(s,t){return s.rowEnd=s.x&&t.y<=s.y&&t.y+t.height>=s.y:t.xs.x&&t.ys.y}function ne(s,t){return!(s.x>t.x+t.width||t.x>s.x+s.width||s.y>t.y+t.height||t.y>s.y+s.height)}function oe(s,t){return!(s.colStart>t.colEnd||t.colStart>s.colEnd||s.rowStart>t.rowEnd||t.rowStart>s.rowEnd)}function re(s,t,e){const i=s.y===t.y,a=s.x===t.x,n=s.x+s.width===t.x+t.width,o=s.y+s.height===t.y+t.height;switch(e){case"left":return a;case"right":return n;case"top":return i;case"bottom":return o;case"top-left":return i&&a;case"top-right":return i&&n;case"bottom-left":return o&&a;case"bottom-right":return o&&n}}const le=s=>s.reduce((t,e)=>{const i=t?Math.min(t.x,e.x):e.x,a=t?Math.min(t.y,e.y):e.y,n=t?Math.max(t.x+t.width,e.x+e.width):e.x+e.width,o=t?Math.max(t.y+t.height,e.y+e.height):e.y+e.height;return{x:i,y:a,width:n-i,height:o-a,referential:e.referential}},null);function he(s,t){return Math.sqrt((s.x-t.x)**2+(s.y-t.y)**2)}function gt(s){const t=[];let e=0;for(const i in s){const[a,n]=s[i];e+=s.filter(([c,d,f],l)=>!(n.position.colStart>d.position.colEnd||d.position.colStart>n.position.colEnd)&&d.position.rowEnd+f>n.position.rowStart&&l<+i).reduce((c,d)=>c+Math.max(d[2],0),0);const o=ut(n,{deltaJ:e,deltaI:0});t.push([a,o])}return t}function pt(s,t){const e=Object.entries(s).sort((n,o)=>dt(n[1].position,o[1].position)),i=n=>document.querySelector(`[widget-id='${n}']`);return gt(e.map(([n,o])=>[n,o,i(n)?t.height2rows(i(n).offsetHeight)-(o.position.rowEnd-o.position.rowStart):0])).reduce((n,[o,c])=>({...n,[o]:{...c,position:{...c.position,rowEnd:O[c.type].autoHeight&&i(o)?c.position.rowStart+t.height2rows(i(o).offsetHeight):c.position.rowEnd}}}),{})}const wt=(s,t,e)=>t&&!t.condition?{computedElement:{...s,position:{...s.position,row:s.position.row+e,height:0}},updateOffset:0,addOffset:0,slot:{}}:{computedElement:{...s,position:{...s.position,row:s.position.row+e}},updateOffset:s.position.height,addOffset:s.position.row,slot:s.slot},yt={"if-block":wt},mt=(s,t,e)=>ft(T(Object.values(s),{widgets:[],slottables:[]},0,t),e),ft=(s,t)=>({widgets:pt(s.widgets.reduce((e,i)=>({...e,[i.id]:i}),{}),t),slottables:s.slottables.reduce((e,i)=>({...e,[i.id]:i}),{})}),vt=(s,t)=>{if(w(s)&&w(t))return t.position.rowStart-s.position.rowStart;if(w(s)&&!w(t))return t.position.row-s.position.rowStart===0?-1:t.position.row-s.position.rowStart;if(!w(s)&&w(t))return t.position.rowStart-s.position.row===0?1:t.position.rowStart-s.position.row;if(!w(s)&&!w(t)){if(t.position.row-s.position.row===0){if(t.position.order===s.position.order)throw new Error("Two slottables with the same order in the same row");return t.position.order-s.position.order}return t.position.row-s.position.row}return 0},T=(s,t,e,i)=>s.sort(vt).reduce((a,n)=>bt(n,e,a,i),t),bt=(s,t,e,i)=>w(s)?St(s,t,e):Ct(s,t,e,i),St=(s,t,e)=>(e.widgets.push({...s,position:j(s.position,t)}),e),Ct=(s,t,e,i)=>{const{computedElement:a,slot:n,updateOffset:o,addOffset:c}=yt[s.type](s,i[s.id],t),d=kt(e,o);return d.slottables.push(a),T(Object.values(n),d,t+c,i)},kt=(s,t)=>({widgets:Et(s.widgets,t),slottables:xt(s.slottables,t)}),Et=(s,t)=>s.map(e=>({...e,position:j(e.position,t)})),xt=(s,t)=>s.map(e=>({...e,position:{...e.position,row:e.position.row+t}})),j=(s,t)=>({...s,rowStart:s.rowStart+t,rowEnd:s.rowEnd+t}),Pt=960,$=12,Nt=0,Wt=24,Rt=32,It=8;class D{constructor(t,e){r(this,"width");r(this,"columns");r(this,"gap");r(this,"margin");r(this,"padding");r(this,"calculatePositions");r(this,"_cellHeight");r(this,"dashPlayerService");this.dashPlayerService=t,this.width=Pt,this.columns=$,this.gap=Nt,this.margin=Wt,this.padding=It,this._cellHeight=Rt,this.calculatePositions=e}static create(t,e){return new D(t,e)}static get columns(){return $}get cellHeight(){return this._cellHeight}get navbarLength(){return this.dashPlayerService.navbarVisible?48:0}get cellWidth(){const t=this.columns-1;return(this.width-2*this.margin-t*this.gap)/this.columns}get rows(){const{widgets:t,slottables:e}=this.calculatePositions();return Math.max(Object.values(t!=null?t:{}).map(i=>i.position.rowEnd).reduce((i,a)=>Math.max(i,a),0)+4,Object.values(e!=null?e:{}).map(i=>i.position.row+i.position.height).reduce((i,a)=>Math.max(i,a),0)+4,20)}get sidebarWidth(){return this.dashPlayerService.hasSidebar?240:0}getCell(t,e){return{x:this.margin+t*(this.cellWidth+(t>0?this.gap:0)),y:this.margin+this.navbarLength+e*(this._cellHeight+(e>0?this.gap:0)),width:this.cellWidth,height:this._cellHeight,referential:"world"}}getCellFrom(t,e){const i=this.getCell(t.i,t.j);return this.cellAt(i.x+e.dx,i.y+e.dy)}areaFromRect(t){const e=this.cellAt(t.x,t.y),i={dx:t.width-1,dy:t.height-1,referential:"world"},a=this.getCellFrom(e,i);return{colStart:e.i,rowStart:e.j,colEnd:a.i,rowEnd:a.j}}rectFromArea(t){const e=this.getCell(t.colStart,t.rowStart),i=this.getCell(t.colEnd,t.rowEnd);return{x:e.x,y:e.y,width:i.x+i.width-e.x,height:i.y+i.height-e.y,referential:"world"}}get height(){return this.rows*(this._cellHeight+this.gap)-this.gap+2*this.margin}cellAt(t,e){return{i:Math.floor((t-this.margin)/(this.cellWidth+this.gap)),j:Math.floor((e-this.margin-this.navbarLength)/(this._cellHeight+this.gap))}}snap(t,e){const i=e==="bottom-right"||e==="top-right"?1:0,a=e==="bottom-left"||e==="bottom-right"?1:0,n=this.cellWidth+this.gap,o=this._cellHeight+this.gap,c=this.margin+this.cellWidth*i,d=this.margin+this.navbarLength+this.cellHeight*a,f=t.x-c,l=t.y-d;return{x:c+n*Math.round(f/n),y:d+o*Math.round(l/o),referential:"world"}}snapDelta(t){const e=this.cellWidth+this.gap,i=this._cellHeight+this.gap;return{dx:e*Math.round(t.dx/e),dy:i*Math.round(t.dy/i),referential:"world"}}height2rows(t){return Math.ceil((t+this.gap)/(this.cellHeight+this.gap))}}class _{constructor(t,e,i){r(this,"_stateTimestamp",Date.now());r(this,"_state");r(this,"runnerData");r(this,"passwordlessManager");r(this,"websocketClient");r(this,"_autocompleteState");r(this,"layoutGrid");r(this,"stateChangeCallbacks",[]);r(this,"updateUserCallbacks",[]);r(this,"onWidgetsComputedCallbacks",[]);r(this,"onCloseCallbacks",[]);r(this,"onNoCreditsMessageCallbacks",[]);r(this,"onRedirectCallback",null);this._state=V({type:"IDLE"}),this._autocompleteState={suggestionsFor:null,suggestions:[]},this.runnerData=t,this.passwordlessManager=e,this.websocketClient=i,this.layoutGrid=D.create(this,()=>this.calculatePositions()),window.__playerService=()=>this}notifyStateChange(t){this.stateChangeCallbacks.forEach(e=>e(t))}onStateChange(t){this.stateChangeCallbacks.push(t)}setState(t){this._state.value=t,this.notifyStateChange(t)}get state(){return this._state.value}static create(t,e,i){return new _(t,e,i)}updateRunnerData(t){this.runnerData=t}resetState(){this.websocketClient.close(),this.clearSuggestions(),this.start()}get brokerIsClosed(){var t;return(t=this.websocketClient.isClosed)!=null?t:!0}calculatePositions(t,e){const i=t||(this.state.type==="RUNNING"?this.state.props:{}),a=e!=null?e:this.runnerData.layout.slot;return mt(a,i,this.layoutGrid)}updateDashData(t){if(!t)throw new Error("dash is null");if(!t.layout)throw new Error("dash.layout is null");switch(this.state.type){case"RUNNING":{this.runnerData=t;const{widgets:e}=this.calculatePositions();this.setState({...this.state,widgets:e});break}default:throw new Error(`Invalid state ${this.state.type} for updateDashData`)}}start(t={}){this.websocketClient.onClose(e=>{this.closeCallback(e)}),this.websocketClient.on("execution-id",()=>{this.websocketClient.send({type:"client-start",state:{widgets:at(this.runnerData.layout).reduce((e,i)=>({...e,[i]:{value:null}}),{})},params:t}),this.setState({type:"READY"})}),this.websocketClient.on("program-start-failed",e=>{this.setState({...e,type:"ERROR",cause:"PROGRAM_START_FAILED"})}),this.websocketClient.on("widgets-computed",e=>{const{widgets:i,slottables:a}=this.calculatePositions(e.props);if(this.state.type==="READY"){const n={};if(e.variables)for(const o in e.variables){if(!(o in e.variables)){console.warn(`widget ${o} not found in layout`);continue}n[o]=new U(e.props[o]),n[o].setValue(e.variables[o])}this.setState({...e,type:"RUNNING",eventProcessing:!1,alerts:[],widgets:i,responses:n,slottables:a,authenticatedUser:this.passwordlessManager.getUser()})}if(this.passwordlessManager.pubsub.subscribe("authenticated",()=>this.endAuth()),this.state.type==="RUNNING"){const n={...this.state.responses};for(const o in e.variables)if(!n[o]){if(!(o in e.variables)){console.warn(`widget ${o} not found in layout`);continue}n[o]=new U(e.props[o]),n[o].setValue(e.variables[o])}this.setState({...this.state,eventProcessing:!1,widgets:i,props:e.props})}this.widgetsComputedMessage(e)}),this.websocketClient.on("not-enough-credits",()=>{this.noCreditsMessage()}),this.websocketClient.on("redirect",e=>{this.redirect(e)}),this.websocketClient.on("auth:require-info",()=>{this.passwordlessManager.getUser()?this.endAuth():this.startAuth()}),this.websocketClient.on("auth:valid-jwt",()=>{this.setState({type:"READY"})}),this.websocketClient.on("auth:invalid-jwt",()=>{console.warn("invalid jwt"),this.badAuth()}),this.websocketClient.on("autocomplete:suggestions",({suggestionsFor:e,suggestions:i})=>{this._autocompleteState={suggestionsFor:e,suggestions:i}}),this.websocketClient.on("alert",e=>{this.state.type==="RUNNING"&&this.setState({...this.state,alerts:[...this.state.alerts,{message:e.message,severity:e.severity,id:this.state.alerts.length}]})}),this.websocketClient.on("execute-js:request",async e=>{this.websocketClient.send({type:"execute-js:response",value:await nt(e)})}),this.websocketClient.connect()}sendWidgetsChanged(t){this.websocketClient.send({type:"widgets-changed",state:this.apiPageState,dashDefinition:{slot:t}})}sendEvalRequest(t){this.websocketClient.send({type:"eval",expression:t,state:this.apiPageState})}sendVariableCreated(t){this.websocketClient.send({name:t,value:null,type:"variable-created",state:this.apiPageState})}makeWidgetsError(t){return{widgets:Object.keys(this.runnerData.layout.slot).reduce((i,a)=>(i[a]={repr:t},i),{}),props:{},variables:{}}}onUpdateUser(t){this.updateUserCallbacks.push(t)}onWidgetsComputedMessage(t){this.onWidgetsComputedCallbacks.push(t)}widgetsComputedMessage(t){this.onWidgetsComputedCallbacks.forEach(e=>e(t))}onClose(t){this.onCloseCallbacks.push(t)}closeCallback(t){this.onCloseCallbacks.forEach(e=>e(t))}onNoCreditsMessage(t){this.onNoCreditsMessageCallbacks.push(t)}noCreditsMessage(){this.onNoCreditsMessageCallbacks.forEach(t=>t())}onRedirect(t){this.onRedirectCallback=t}redirect(t){!this.onRedirectCallback||this.onRedirectCallback(t)}on(t,e){this.websocketClient.on(t,e)}onMany(t,e){t.forEach(i=>this.on(i,e))}get apiPageState(){switch(this.state.type){case"RUNNING":{const t=this.state.responses,e=Object.keys(this.state.widgets).reduce((i,a)=>{var n,o;return{...i,[a]:{value:(o=(n=t[a])==null?void 0:n.value)!=null?o:null}}},{});return{timestamp:this._stateTimestamp,widgets:e}}default:throw new Error(`Invalid state ${this.state.type} for apiPageState`)}}getUserEmail(){var t,e;switch(this.state.type){case"RUNNING":return(e=(t=this.state.authenticatedUser)==null?void 0:t.claims.email)!=null?e:null;default:return null}}startAuth(){switch(this.state.type){case"RUNNING":if(this.state.authenticatedUser)return;this.setState({type:"AUTHENTICATING",previousState:this.state});break;case"READY":this.setState({type:"AUTHENTICATING",previousState:this.state});break;default:throw new Error(`Invalid state ${this.state.type} for startAuth`)}}endAuth(){this.websocketClient.send({type:"auth:saved-jwt",jwt:this.passwordlessManager.getUser().jwt})}badAuth(){if(this.state.type!=="AUTHENTICATING")throw new Error(`Invalid state ${this.state.type} for badAuth`);this.state.previousState.type==="RUNNING"?this.setState({...this.state.previousState,authenticatedUser:null}):this.state.previousState.type==="READY"&&this.setState({...this.state.previousState})}logout(){this.passwordlessManager.removeUser(),this.resetState()}isAuthenticating(){return this.state.type==="AUTHENTICATING"}get suggestionsFor(){return this._autocompleteState.suggestionsFor}get suggestions(){return this._autocompleteState.suggestions}clearSuggestions(){this._autocompleteState={suggestionsFor:null,suggestions:[]}}getAutocompleteSuggestions(t,e){t!==this.suggestionsFor&&this.clearSuggestions(),this.websocketClient.send({type:"autocomplete:load",suggestionsFor:t,code:e})}get navbarVisible(){const{logoUrl:t,brandName:e}=this.runnerData,i=this.getUserEmail();return!!(this.hasSidebar||t||e||i)}get hasSidebar(){const t=this.runnerData.sidebar;return!t||t.length==0?!1:t.some(e=>e.visible)}getWidgetsListeners(){switch(this.state.type){case"RUNNING":return Object.entries(this.state.widgets).reduce((t,[e,i])=>({...t,[e]:this.listenersFromWidget(e,i.type)}),{});default:return{}}}listenersFromWidget(t,e){return O[e].events.reduce((i,a)=>({...i,[a.key]:n=>{this.sendWidgetInputMessage(t),this.sendWidgetEventMessage(t,a.key,n)}}),{})}sendWidgetInputMessage(t){!this.websocketClient||this.websocketClient.send({type:"widget-input",widgetId:t,state:this.apiPageState})}sendWidgetEventMessage(t,e,i){if(!this.websocketClient||this.state.type!=="RUNNING")return;const a=this.apiPageState;this.websocketClient.send({type:"widget-event",event:{type:e,payload:i},widgetId:t,state:a}),this.setState({...this.state,eventProcessing:!0})}}function Mt(s,t){const e=s[t.type];if(!e){console.warn("no callback for",t.type);return}e.forEach(i=>i(t))}const Dt=s=>({wasClean:s.wasClean,code:s.code,reason:s.reason});class A{constructor(t){r(this,"ws");r(this,"callbacks");r(this,"onCloseCallbacks",[]);r(this,"dash");this.callbacks={},this.ws=null,this.dash=t}static create(t){return new A(t)}get url(){return`${location.protocol==="https:"?"wss:":"ws:"}//${location.host}/_socket?dashPath=${encodeURIComponent(this.dash.path)}`}get isClosed(){return this.ws?this.ws.readyState!==WebSocket.OPEN:!0}on(t,e){this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e)}clearWSEvents(){!this.ws||(this.ws.onclose=()=>{},this.ws.onerror=()=>{},this.ws.onmessage=()=>{})}async connect(t=1){t>3||await new Promise(e=>{this.clearWSEvents(),this.ws=new WebSocket(this.url),this.ws.onopen=()=>{e()},this.ws.onclose=i=>{this.onCloseCallbacks.forEach(a=>a(Dt(i)))},this.ws.onmessage=i=>{const a=JSON.parse(i.data);Mt(this.callbacks,a)}}).catch(e=>{console.error(e),this.connect(t+1)})}onClose(t){this.onCloseCallbacks.push(t)}close(){if(!this.ws){console.warn("no websocket to close");return}this.clearWSEvents(),this.ws.close()}async send(t){if(!this.ws){console.warn("no websocket to send");return}this.isClosed&&await this.connect(),this.ws.send(JSON.stringify(t))}}function ce(s){const t=A.create(s);return _.create(s,rt,t)}const _t={},At=s=>(q("data-v-5d7ea65b"),s=s(),J(),s),Ut={class:"dash-loading"},Gt=At(()=>C("div",{class:"dash-loading-container"},[C("div",{class:"loading-bar-background"}),C("div",{class:"loading-bar"})],-1)),$t=[Gt];function Lt(s,t){return p(),b("div",Ut,$t)}const Ht=P(_t,[["render",Lt],["__scopeId","data-v-5d7ea65b"]]);function x(){return window.matchMedia("(min-width: 1200px)").matches}const Ot={key:0,class:"error-widget"},Tt={key:0},jt={key:2,class:"loading"},Ft=M({__name:"WidgetsGrid",props:{camera:null,isPreview:{type:Boolean},widgetsWithErrors:null,grid:null,widgetsListeners:null,widgetsProps:null,widgetsResponses:null,widgets:null,forceResponsivity:null},setup(s){const t=s,e=y(()=>({...i.value,padding:`${t.grid.margin}px`,gap:`${t.grid.gap}px`,maxWidth:`${t.grid.width}px`,height:`${t.grid.height}px`,gridTemplateColumns:`repeat(${t.grid.columns}, ${t.grid.cellWidth}px)`,gridTemplateRows:`repeat(auto-fill, ${t.grid.cellHeight}px)`})),i=y(()=>{const l=x()?t.grid.sidebarWidth+(a.value-t.grid.sidebarWidth-960)/2:(a.value-960)/2;return{"--dash-right-margin":`${x()?(a.value-t.grid.sidebarWidth-960)/2:(a.value-960)/2}px`,"--dash-left-margin":`${l}px`}}),a=R(window.innerWidth);window.addEventListener("resize",()=>{a.value=window.innerWidth});const n=l=>{const u=l.target;u.scrollHeight>u.clientHeight&&l.stopPropagation()};function o(l){return{gridColumnStart:`${l.position.colStart+1}`,gridColumnEnd:`${l.position.colEnd+2}`,gridRowStart:`${l.position.rowStart+1}`,gridRowEnd:`${l.position.rowEnd+2}`,padding:`${t.grid.padding}px`}}const c=l=>{const u=l.position.rowEnd-l.position.rowStart+1;return u*t.grid.cellHeight+(u-1)*t.grid.gap-2*t.grid.padding},d=l=>{const u=l.position.colEnd-l.position.colStart+1;return u*t.grid.cellWidth+(u-1)*t.grid.gap-2*t.grid.padding},f=l=>{var u;return l in((u=t.widgetsProps)!=null?u:{})};return(l,u)=>{const N=Y("icon");return p(),b("div",{class:H(["dash",s.forceResponsivity]),style:I(m(e))},[(p(!0),b(K,null,Q(s.widgets,(h,g)=>{var v,W;return p(),b("div",{key:g,class:"widget",style:I(o(h)),onWheel:n},[((v=s.widgetsWithErrors)==null?void 0:v.find(F=>F==g))&&s.isPreview?(p(),b("div",Ot,[k(N,{width:"20",height:"20",path:m(ct),fill:"#D35249"},null,8,["path"]),d(h)>=160&&c(h)>=120?(p(),b("p",Tt," Ops! There is an error in this widget's properties ")):L("",!0)])):f(g)?(p(),S(tt(h.type),X({key:1,data:s.widgetsProps[g],response:s.widgetsResponses[g],runtime:"dash","container-width":d(h),"container-height":c(h),zoom:(W=s.camera)==null?void 0:W.zoom,"widget-id":g},Z(s.widgetsListeners[g])),null,16,["data","response","container-width","container-height","zoom","widget-id"])):(p(),b("div",jt))],36)}),128))],6)}}});const Bt=P(Ft,[["__scopeId","data-v-4d2eaf45"]]),zt=M({__name:"LayoutPresenter",props:{widgets:null,props:null,responses:null,widgetsListeners:null,camera:null,forceResponsivity:null,grid:null,widgetsWithErrors:null,runnerData:null,isPreview:{type:Boolean}},setup(s){const t=et();return(e,i)=>(p(),S(ht,{class:"dash-player","main-color":s.runnerData.mainColor,"font-family":s.runnerData.fontFamily,theme:s.runnerData.theme,runtime:"dash"},{default:E(()=>[G(e.$slots,"header",{},void 0,!0),m(t).overrideMain?G(e.$slots,"overrideMain",{key:1},void 0,!0):(p(),S(Bt,{key:0,camera:s.camera,"is-preview":s.isPreview,"widgets-with-errors":s.widgetsWithErrors,grid:s.grid,"widgets-listeners":s.widgetsListeners,"widgets-props":s.props,"widgets-responses":s.responses,widgets:s.widgets,"force-responsivity":s.forceResponsivity},null,8,["camera","is-preview","widgets-with-errors","grid","widgets-listeners","widgets-props","widgets-responses","widgets","force-responsivity"]))]),_:3},8,["main-color","font-family","theme"]))}});const Vt=P(zt,[["__scopeId","data-v-4c9ad021"]]),qt=M({__name:"DashPlayer",props:{isPreview:{type:Boolean},dashPlayerService:null,forceResponsivity:null,camera:null,widgetsWithErrors:null,editingMode:{type:Boolean},params:null},emits:["navigate","logout"],setup(s,{emit:t}){const e=s,i=R(null),a=R(window.innerWidth);window.addEventListener("resize",()=>{a.value=window.innerWidth});const n=h=>t("navigate",h),o=y(()=>{var h;return(h=e.dashPlayerService.getUserEmail())!=null?h:void 0}),c=y(()=>e.dashPlayerService.state.type==="RUNNING"?e.dashPlayerService.state.widgets:Object.entries(e.dashPlayerService.runnerData.layout.slot).reduce((h,[g,v])=>Object.assign(h,{[g]:v}),{})),d=y(()=>e.dashPlayerService.state.type==="RUNNING"?e.dashPlayerService.state.responses:{}),f=y(()=>e.dashPlayerService.state.type==="RUNNING"?e.dashPlayerService.state.alerts:[]),l=y(()=>e.dashPlayerService.state.type==="RUNNING"?e.dashPlayerService.state.props:{}),u=y(()=>{const h=x()?e.dashPlayerService.layoutGrid.sidebarWidth+(a.value-e.dashPlayerService.layoutGrid.sidebarWidth-960)/2:(a.value-960)/2;return{"--dash-right-margin":`${x()?(a.value-e.dashPlayerService.layoutGrid.sidebarWidth-960)/2:(a.value-960)/2}px`,"--dash-left-margin":`${h}px`}}),N=y(()=>({...u.value,padding:`${e.dashPlayerService.layoutGrid.margin}px`,width:`${e.dashPlayerService.layoutGrid.width}px`,gap:`${e.dashPlayerService.layoutGrid.gap}px`,height:"100%",boxSizing:"border-box"}));return e.dashPlayerService.start(e.params),e.dashPlayerService.onNoCreditsMessage(()=>{var h;(h=i.value)==null||h.open()}),(h,g)=>{var v;return p(),S(Vt,{widgets:m(c),props:m(l),responses:m(d),"widgets-listeners":s.dashPlayerService.getWidgetsListeners(),camera:s.camera,"force-responsivity":s.forceResponsivity,grid:s.dashPlayerService.layoutGrid,"widgets-with-errors":(v=s.widgetsWithErrors)!=null?v:[],"runner-data":s.dashPlayerService.runnerData,"is-preview":s.isPreview},st({header:E(()=>[k(ot,{ref_key:"runtimeCommonsRef",ref:i,type:"dashes",runtime:s.dashPlayerService.runnerData,"full-width":!0,"is-preview":s.isPreview,"user-email":m(o),"force-responsivity":s.forceResponsivity,alerts:m(f),onNavigate:n,onLogout:g[0]||(g[0]=W=>s.dashPlayerService.logout())},null,8,["runtime","is-preview","user-email","force-responsivity","alerts"]),k(it,null,{default:E(()=>[s.dashPlayerService.state.type==="RUNNING"&&s.dashPlayerService.state.eventProcessing?(p(),S(Ht,{key:0})):L("",!0)]),_:1})]),_:2},[s.dashPlayerService.isAuthenticating()?{name:"overrideMain",fn:E(()=>[C("div",{class:H(["auth-form",s.forceResponsivity]),style:I(m(N))},[k(lt,{class:"form-auth"})],6)]),key:"0"}:void 0]),1032,["widgets","props","responses","widgets-listeners","camera","force-responsivity","grid","widgets-with-errors","runner-data","is-preview"])}}});const de=P(qt,[["__scopeId","data-v-541764d8"]]);export{de as D,re as a,oe as b,ne as c,se as d,ae as i,ce as m,he as p,le as r,dt as v,ie as w}; -//# sourceMappingURL=DashPlayer.0888e5b9.js.map +var B=Object.defineProperty;var z=(s,t,e)=>t in s?B(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var r=(s,t,e)=>(z(s,typeof t!="symbol"?t+"":t,e),e);import{R as V,ao as U,q as P,b as p,c as S,O as q,Q as J,x as C,d as M,K as y,r as R,a as Y,F as K,L as Q,A as I,e as k,z as m,D as L,t as b,am as X,an as Z,a8 as tt,G as H,y as et,w as E,B as G,ap as st,aq as it}from"./registerWidgets.cb3a7b8d.js";import{w as O,l as w,m as at}from"./runnerData.7b7cb682.js";import{e as nt,R as ot}from"./executeJs.87b204c8.js";import{p as rt}from"./passwordlessManager.afd7d1d0.js";import{P as lt}from"./Passwordless.7161b834.js";import{W as ht}from"./WidgetsFrame.aac2edff.js";import{e as ct}from"./icons.39dfa322.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[t]="a2df752d-3f8c-4e6a-a691-ef47f4e90f58",s._sentryDebugIdIdentifier="sentry-dbid-a2df752d-3f8c-4e6a-a691-ef47f4e90f58")}catch{}})();function se(s,t){return{dx:t.x-s.x,dy:t.y-s.y,referential:s.referential}}function dt(s,t){return s.rowEnd=s.x&&t.y<=s.y&&t.y+t.height>=s.y:t.xs.x&&t.ys.y}function ne(s,t){return!(s.x>t.x+t.width||t.x>s.x+s.width||s.y>t.y+t.height||t.y>s.y+s.height)}function oe(s,t){return!(s.colStart>t.colEnd||t.colStart>s.colEnd||s.rowStart>t.rowEnd||t.rowStart>s.rowEnd)}function re(s,t,e){const i=s.y===t.y,a=s.x===t.x,n=s.x+s.width===t.x+t.width,o=s.y+s.height===t.y+t.height;switch(e){case"left":return a;case"right":return n;case"top":return i;case"bottom":return o;case"top-left":return i&&a;case"top-right":return i&&n;case"bottom-left":return o&&a;case"bottom-right":return o&&n}}const le=s=>s.reduce((t,e)=>{const i=t?Math.min(t.x,e.x):e.x,a=t?Math.min(t.y,e.y):e.y,n=t?Math.max(t.x+t.width,e.x+e.width):e.x+e.width,o=t?Math.max(t.y+t.height,e.y+e.height):e.y+e.height;return{x:i,y:a,width:n-i,height:o-a,referential:e.referential}},null);function he(s,t){return Math.sqrt((s.x-t.x)**2+(s.y-t.y)**2)}function gt(s){const t=[];let e=0;for(const i in s){const[a,n]=s[i];e+=s.filter(([c,d,f],l)=>!(n.position.colStart>d.position.colEnd||d.position.colStart>n.position.colEnd)&&d.position.rowEnd+f>n.position.rowStart&&l<+i).reduce((c,d)=>c+Math.max(d[2],0),0);const o=ut(n,{deltaJ:e,deltaI:0});t.push([a,o])}return t}function pt(s,t){const e=Object.entries(s).sort((n,o)=>dt(n[1].position,o[1].position)),i=n=>document.querySelector(`[widget-id='${n}']`);return gt(e.map(([n,o])=>[n,o,i(n)?t.height2rows(i(n).offsetHeight)-(o.position.rowEnd-o.position.rowStart):0])).reduce((n,[o,c])=>({...n,[o]:{...c,position:{...c.position,rowEnd:O[c.type].autoHeight&&i(o)?c.position.rowStart+t.height2rows(i(o).offsetHeight):c.position.rowEnd}}}),{})}const wt=(s,t,e)=>t&&!t.condition?{computedElement:{...s,position:{...s.position,row:s.position.row+e,height:0}},updateOffset:0,addOffset:0,slot:{}}:{computedElement:{...s,position:{...s.position,row:s.position.row+e}},updateOffset:s.position.height,addOffset:s.position.row,slot:s.slot},yt={"if-block":wt},mt=(s,t,e)=>ft(T(Object.values(s),{widgets:[],slottables:[]},0,t),e),ft=(s,t)=>({widgets:pt(s.widgets.reduce((e,i)=>({...e,[i.id]:i}),{}),t),slottables:s.slottables.reduce((e,i)=>({...e,[i.id]:i}),{})}),vt=(s,t)=>{if(w(s)&&w(t))return t.position.rowStart-s.position.rowStart;if(w(s)&&!w(t))return t.position.row-s.position.rowStart===0?-1:t.position.row-s.position.rowStart;if(!w(s)&&w(t))return t.position.rowStart-s.position.row===0?1:t.position.rowStart-s.position.row;if(!w(s)&&!w(t)){if(t.position.row-s.position.row===0){if(t.position.order===s.position.order)throw new Error("Two slottables with the same order in the same row");return t.position.order-s.position.order}return t.position.row-s.position.row}return 0},T=(s,t,e,i)=>s.sort(vt).reduce((a,n)=>St(n,e,a,i),t),St=(s,t,e,i)=>w(s)?bt(s,t,e):Ct(s,t,e,i),bt=(s,t,e)=>(e.widgets.push({...s,position:j(s.position,t)}),e),Ct=(s,t,e,i)=>{const{computedElement:a,slot:n,updateOffset:o,addOffset:c}=yt[s.type](s,i[s.id],t),d=kt(e,o);return d.slottables.push(a),T(Object.values(n),d,t+c,i)},kt=(s,t)=>({widgets:Et(s.widgets,t),slottables:xt(s.slottables,t)}),Et=(s,t)=>s.map(e=>({...e,position:j(e.position,t)})),xt=(s,t)=>s.map(e=>({...e,position:{...e.position,row:e.position.row+t}})),j=(s,t)=>({...s,rowStart:s.rowStart+t,rowEnd:s.rowEnd+t}),Pt=960,$=12,Nt=0,Wt=24,Rt=32,It=8;class D{constructor(t,e){r(this,"width");r(this,"columns");r(this,"gap");r(this,"margin");r(this,"padding");r(this,"calculatePositions");r(this,"_cellHeight");r(this,"dashPlayerService");this.dashPlayerService=t,this.width=Pt,this.columns=$,this.gap=Nt,this.margin=Wt,this.padding=It,this._cellHeight=Rt,this.calculatePositions=e}static create(t,e){return new D(t,e)}static get columns(){return $}get cellHeight(){return this._cellHeight}get navbarLength(){return this.dashPlayerService.navbarVisible?48:0}get cellWidth(){const t=this.columns-1;return(this.width-2*this.margin-t*this.gap)/this.columns}get rows(){const{widgets:t,slottables:e}=this.calculatePositions();return Math.max(Object.values(t!=null?t:{}).map(i=>i.position.rowEnd).reduce((i,a)=>Math.max(i,a),0)+4,Object.values(e!=null?e:{}).map(i=>i.position.row+i.position.height).reduce((i,a)=>Math.max(i,a),0)+4,20)}get sidebarWidth(){return this.dashPlayerService.hasSidebar?240:0}getCell(t,e){return{x:this.margin+t*(this.cellWidth+(t>0?this.gap:0)),y:this.margin+this.navbarLength+e*(this._cellHeight+(e>0?this.gap:0)),width:this.cellWidth,height:this._cellHeight,referential:"world"}}getCellFrom(t,e){const i=this.getCell(t.i,t.j);return this.cellAt(i.x+e.dx,i.y+e.dy)}areaFromRect(t){const e=this.cellAt(t.x,t.y),i={dx:t.width-1,dy:t.height-1,referential:"world"},a=this.getCellFrom(e,i);return{colStart:e.i,rowStart:e.j,colEnd:a.i,rowEnd:a.j}}rectFromArea(t){const e=this.getCell(t.colStart,t.rowStart),i=this.getCell(t.colEnd,t.rowEnd);return{x:e.x,y:e.y,width:i.x+i.width-e.x,height:i.y+i.height-e.y,referential:"world"}}get height(){return this.rows*(this._cellHeight+this.gap)-this.gap+2*this.margin}cellAt(t,e){return{i:Math.floor((t-this.margin)/(this.cellWidth+this.gap)),j:Math.floor((e-this.margin-this.navbarLength)/(this._cellHeight+this.gap))}}snap(t,e){const i=e==="bottom-right"||e==="top-right"?1:0,a=e==="bottom-left"||e==="bottom-right"?1:0,n=this.cellWidth+this.gap,o=this._cellHeight+this.gap,c=this.margin+this.cellWidth*i,d=this.margin+this.navbarLength+this.cellHeight*a,f=t.x-c,l=t.y-d;return{x:c+n*Math.round(f/n),y:d+o*Math.round(l/o),referential:"world"}}snapDelta(t){const e=this.cellWidth+this.gap,i=this._cellHeight+this.gap;return{dx:e*Math.round(t.dx/e),dy:i*Math.round(t.dy/i),referential:"world"}}height2rows(t){return Math.ceil((t+this.gap)/(this.cellHeight+this.gap))}}class _{constructor(t,e,i){r(this,"_stateTimestamp",Date.now());r(this,"_state");r(this,"runnerData");r(this,"passwordlessManager");r(this,"websocketClient");r(this,"_autocompleteState");r(this,"layoutGrid");r(this,"stateChangeCallbacks",[]);r(this,"updateUserCallbacks",[]);r(this,"onWidgetsComputedCallbacks",[]);r(this,"onCloseCallbacks",[]);r(this,"onNoCreditsMessageCallbacks",[]);r(this,"onRedirectCallback",null);this._state=V({type:"IDLE"}),this._autocompleteState={suggestionsFor:null,suggestions:[]},this.runnerData=t,this.passwordlessManager=e,this.websocketClient=i,this.layoutGrid=D.create(this,()=>this.calculatePositions()),window.__playerService=()=>this}notifyStateChange(t){this.stateChangeCallbacks.forEach(e=>e(t))}onStateChange(t){this.stateChangeCallbacks.push(t)}setState(t){this._state.value=t,this.notifyStateChange(t)}get state(){return this._state.value}static create(t,e,i){return new _(t,e,i)}updateRunnerData(t){this.runnerData=t}resetState(){this.websocketClient.close(),this.clearSuggestions(),this.start()}get brokerIsClosed(){var t;return(t=this.websocketClient.isClosed)!=null?t:!0}calculatePositions(t,e){const i=t||(this.state.type==="RUNNING"?this.state.props:{}),a=e!=null?e:this.runnerData.layout.slot;return mt(a,i,this.layoutGrid)}updateDashData(t){if(!t)throw new Error("dash is null");if(!t.layout)throw new Error("dash.layout is null");switch(this.state.type){case"RUNNING":{this.runnerData=t;const{widgets:e}=this.calculatePositions();this.setState({...this.state,widgets:e});break}default:throw new Error(`Invalid state ${this.state.type} for updateDashData`)}}start(t={}){this.websocketClient.onClose(e=>{this.closeCallback(e)}),this.websocketClient.on("execution-id",()=>{this.websocketClient.send({type:"client-start",state:{widgets:at(this.runnerData.layout).reduce((e,i)=>({...e,[i]:{value:null}}),{})},params:t}),this.setState({type:"READY"})}),this.websocketClient.on("program-start-failed",e=>{this.setState({...e,type:"ERROR",cause:"PROGRAM_START_FAILED"})}),this.websocketClient.on("widgets-computed",e=>{const{widgets:i,slottables:a}=this.calculatePositions(e.props);if(this.state.type==="READY"){const n={};if(e.variables)for(const o in e.variables){if(!(o in e.variables)){console.warn(`widget ${o} not found in layout`);continue}n[o]=new U(e.props[o]),n[o].setValue(e.variables[o])}this.setState({...e,type:"RUNNING",eventProcessing:!1,alerts:[],widgets:i,responses:n,slottables:a,authenticatedUser:this.passwordlessManager.getUser()})}if(this.passwordlessManager.pubsub.subscribe("authenticated",()=>this.endAuth()),this.state.type==="RUNNING"){const n={...this.state.responses};for(const o in e.variables)if(!n[o]){if(!(o in e.variables)){console.warn(`widget ${o} not found in layout`);continue}n[o]=new U(e.props[o]),n[o].setValue(e.variables[o])}this.setState({...this.state,eventProcessing:!1,widgets:i,props:e.props})}this.widgetsComputedMessage(e)}),this.websocketClient.on("not-enough-credits",()=>{this.noCreditsMessage()}),this.websocketClient.on("redirect",e=>{this.redirect(e)}),this.websocketClient.on("auth:require-info",()=>{this.passwordlessManager.getUser()?this.endAuth():this.startAuth()}),this.websocketClient.on("auth:valid-jwt",()=>{this.setState({type:"READY"})}),this.websocketClient.on("auth:invalid-jwt",()=>{console.warn("invalid jwt"),this.badAuth()}),this.websocketClient.on("autocomplete:suggestions",({suggestionsFor:e,suggestions:i})=>{this._autocompleteState={suggestionsFor:e,suggestions:i}}),this.websocketClient.on("alert",e=>{this.state.type==="RUNNING"&&this.setState({...this.state,alerts:[...this.state.alerts,{message:e.message,severity:e.severity,id:this.state.alerts.length}]})}),this.websocketClient.on("execute-js:request",async e=>{this.websocketClient.send({type:"execute-js:response",value:await nt(e)})}),this.websocketClient.connect()}sendWidgetsChanged(t){this.websocketClient.send({type:"widgets-changed",state:this.apiPageState,dashDefinition:{slot:t}})}sendEvalRequest(t){this.websocketClient.send({type:"eval",expression:t,state:this.apiPageState})}sendVariableCreated(t){this.websocketClient.send({name:t,value:null,type:"variable-created",state:this.apiPageState})}makeWidgetsError(t){return{widgets:Object.keys(this.runnerData.layout.slot).reduce((i,a)=>(i[a]={repr:t},i),{}),props:{},variables:{}}}onUpdateUser(t){this.updateUserCallbacks.push(t)}onWidgetsComputedMessage(t){this.onWidgetsComputedCallbacks.push(t)}widgetsComputedMessage(t){this.onWidgetsComputedCallbacks.forEach(e=>e(t))}onClose(t){this.onCloseCallbacks.push(t)}closeCallback(t){this.onCloseCallbacks.forEach(e=>e(t))}onNoCreditsMessage(t){this.onNoCreditsMessageCallbacks.push(t)}noCreditsMessage(){this.onNoCreditsMessageCallbacks.forEach(t=>t())}onRedirect(t){this.onRedirectCallback=t}redirect(t){!this.onRedirectCallback||this.onRedirectCallback(t)}on(t,e){this.websocketClient.on(t,e)}onMany(t,e){t.forEach(i=>this.on(i,e))}get apiPageState(){switch(this.state.type){case"RUNNING":{const t=this.state.responses,e=Object.keys(this.state.widgets).reduce((i,a)=>{var n,o;return{...i,[a]:{value:(o=(n=t[a])==null?void 0:n.value)!=null?o:null}}},{});return{timestamp:this._stateTimestamp,widgets:e}}default:throw new Error(`Invalid state ${this.state.type} for apiPageState`)}}getUserEmail(){var t,e;switch(this.state.type){case"RUNNING":return(e=(t=this.state.authenticatedUser)==null?void 0:t.claims.email)!=null?e:null;default:return null}}startAuth(){switch(this.state.type){case"RUNNING":if(this.state.authenticatedUser)return;this.setState({type:"AUTHENTICATING",previousState:this.state});break;case"READY":this.setState({type:"AUTHENTICATING",previousState:this.state});break;default:throw new Error(`Invalid state ${this.state.type} for startAuth`)}}endAuth(){this.websocketClient.send({type:"auth:saved-jwt",jwt:this.passwordlessManager.getUser().jwt})}badAuth(){if(this.state.type!=="AUTHENTICATING")throw new Error(`Invalid state ${this.state.type} for badAuth`);this.state.previousState.type==="RUNNING"?this.setState({...this.state.previousState,authenticatedUser:null}):this.state.previousState.type==="READY"&&this.setState({...this.state.previousState})}logout(){this.passwordlessManager.removeUser(),this.resetState()}isAuthenticating(){return this.state.type==="AUTHENTICATING"}get suggestionsFor(){return this._autocompleteState.suggestionsFor}get suggestions(){return this._autocompleteState.suggestions}clearSuggestions(){this._autocompleteState={suggestionsFor:null,suggestions:[]}}getAutocompleteSuggestions(t,e){t!==this.suggestionsFor&&this.clearSuggestions(),this.websocketClient.send({type:"autocomplete:load",suggestionsFor:t,code:e})}get navbarVisible(){const{logoUrl:t,brandName:e}=this.runnerData,i=this.getUserEmail();return!!(this.hasSidebar||t||e||i)}get hasSidebar(){const t=this.runnerData.sidebar;return!t||t.length==0?!1:t.some(e=>e.visible)}getWidgetsListeners(){switch(this.state.type){case"RUNNING":return Object.entries(this.state.widgets).reduce((t,[e,i])=>({...t,[e]:this.listenersFromWidget(e,i.type)}),{});default:return{}}}listenersFromWidget(t,e){return O[e].events.reduce((i,a)=>({...i,[a.key]:n=>{this.sendWidgetInputMessage(t),this.sendWidgetEventMessage(t,a.key,n)}}),{})}sendWidgetInputMessage(t){!this.websocketClient||this.websocketClient.send({type:"widget-input",widgetId:t,state:this.apiPageState})}sendWidgetEventMessage(t,e,i){if(!this.websocketClient||this.state.type!=="RUNNING")return;const a=this.apiPageState;this.websocketClient.send({type:"widget-event",event:{type:e,payload:i},widgetId:t,state:a}),this.setState({...this.state,eventProcessing:!0})}}function Mt(s,t){const e=s[t.type];if(!e){console.warn("no callback for",t.type);return}e.forEach(i=>i(t))}const Dt=s=>({wasClean:s.wasClean,code:s.code,reason:s.reason});class A{constructor(t){r(this,"ws");r(this,"callbacks");r(this,"onCloseCallbacks",[]);r(this,"dash");this.callbacks={},this.ws=null,this.dash=t}static create(t){return new A(t)}get url(){return`${location.protocol==="https:"?"wss:":"ws:"}//${location.host}/_socket?dashPath=${encodeURIComponent(this.dash.path)}`}get isClosed(){return this.ws?this.ws.readyState!==WebSocket.OPEN:!0}on(t,e){this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e)}clearWSEvents(){!this.ws||(this.ws.onclose=()=>{},this.ws.onerror=()=>{},this.ws.onmessage=()=>{})}async connect(t=1){t>3||await new Promise(e=>{this.clearWSEvents(),this.ws=new WebSocket(this.url),this.ws.onopen=()=>{e()},this.ws.onclose=i=>{this.onCloseCallbacks.forEach(a=>a(Dt(i)))},this.ws.onmessage=i=>{const a=JSON.parse(i.data);Mt(this.callbacks,a)}}).catch(e=>{console.error(e),this.connect(t+1)})}onClose(t){this.onCloseCallbacks.push(t)}close(){if(!this.ws){console.warn("no websocket to close");return}this.clearWSEvents(),this.ws.close()}async send(t){if(!this.ws){console.warn("no websocket to send");return}this.isClosed&&await this.connect(),this.ws.send(JSON.stringify(t))}}function ce(s){const t=A.create(s);return _.create(s,rt,t)}const _t={},At=s=>(q("data-v-5d7ea65b"),s=s(),J(),s),Ut={class:"dash-loading"},Gt=At(()=>C("div",{class:"dash-loading-container"},[C("div",{class:"loading-bar-background"}),C("div",{class:"loading-bar"})],-1)),$t=[Gt];function Lt(s,t){return p(),S("div",Ut,$t)}const Ht=P(_t,[["render",Lt],["__scopeId","data-v-5d7ea65b"]]);function x(){return window.matchMedia("(min-width: 1200px)").matches}const Ot={key:0,class:"error-widget"},Tt={key:0},jt={key:2,class:"loading"},Ft=M({__name:"WidgetsGrid",props:{camera:null,isPreview:{type:Boolean},widgetsWithErrors:null,grid:null,widgetsListeners:null,widgetsProps:null,widgetsResponses:null,widgets:null,forceResponsivity:null},setup(s){const t=s,e=y(()=>({...i.value,padding:`${t.grid.margin}px`,gap:`${t.grid.gap}px`,maxWidth:`${t.grid.width}px`,height:`${t.grid.height}px`,gridTemplateColumns:`repeat(${t.grid.columns}, ${t.grid.cellWidth}px)`,gridTemplateRows:`repeat(auto-fill, ${t.grid.cellHeight}px)`})),i=y(()=>{const l=x()?t.grid.sidebarWidth+(a.value-t.grid.sidebarWidth-960)/2:(a.value-960)/2;return{"--dash-right-margin":`${x()?(a.value-t.grid.sidebarWidth-960)/2:(a.value-960)/2}px`,"--dash-left-margin":`${l}px`}}),a=R(window.innerWidth);window.addEventListener("resize",()=>{a.value=window.innerWidth});const n=l=>{const u=l.target;u.scrollHeight>u.clientHeight&&l.stopPropagation()};function o(l){return{gridColumnStart:`${l.position.colStart+1}`,gridColumnEnd:`${l.position.colEnd+2}`,gridRowStart:`${l.position.rowStart+1}`,gridRowEnd:`${l.position.rowEnd+2}`,padding:`${t.grid.padding}px`}}const c=l=>{const u=l.position.rowEnd-l.position.rowStart+1;return u*t.grid.cellHeight+(u-1)*t.grid.gap-2*t.grid.padding},d=l=>{const u=l.position.colEnd-l.position.colStart+1;return u*t.grid.cellWidth+(u-1)*t.grid.gap-2*t.grid.padding},f=l=>{var u;return l in((u=t.widgetsProps)!=null?u:{})};return(l,u)=>{const N=Y("icon");return p(),S("div",{class:H(["dash",s.forceResponsivity]),style:I(m(e))},[(p(!0),S(K,null,Q(s.widgets,(h,g)=>{var v,W;return p(),S("div",{key:g,class:"widget",style:I(o(h)),onWheel:n},[((v=s.widgetsWithErrors)==null?void 0:v.find(F=>F==g))&&s.isPreview?(p(),S("div",Ot,[k(N,{width:"20",height:"20",path:m(ct),fill:"#D35249"},null,8,["path"]),d(h)>=160&&c(h)>=120?(p(),S("p",Tt," Ops! There is an error in this widget's properties ")):L("",!0)])):f(g)?(p(),b(tt(h.type),X({key:1,data:s.widgetsProps[g],response:s.widgetsResponses[g],runtime:"dash","container-width":d(h),"container-height":c(h),zoom:(W=s.camera)==null?void 0:W.zoom,"widget-id":g},Z(s.widgetsListeners[g])),null,16,["data","response","container-width","container-height","zoom","widget-id"])):(p(),S("div",jt))],36)}),128))],6)}}});const Bt=P(Ft,[["__scopeId","data-v-4d2eaf45"]]),zt=M({__name:"LayoutPresenter",props:{widgets:null,props:null,responses:null,widgetsListeners:null,camera:null,forceResponsivity:null,grid:null,widgetsWithErrors:null,runnerData:null,isPreview:{type:Boolean}},setup(s){const t=et();return(e,i)=>(p(),b(ht,{class:"dash-player","main-color":s.runnerData.mainColor,"font-family":s.runnerData.fontFamily,theme:s.runnerData.theme,runtime:"dash"},{default:E(()=>[G(e.$slots,"header",{},void 0,!0),m(t).overrideMain?G(e.$slots,"overrideMain",{key:1},void 0,!0):(p(),b(Bt,{key:0,camera:s.camera,"is-preview":s.isPreview,"widgets-with-errors":s.widgetsWithErrors,grid:s.grid,"widgets-listeners":s.widgetsListeners,"widgets-props":s.props,"widgets-responses":s.responses,widgets:s.widgets,"force-responsivity":s.forceResponsivity},null,8,["camera","is-preview","widgets-with-errors","grid","widgets-listeners","widgets-props","widgets-responses","widgets","force-responsivity"]))]),_:3},8,["main-color","font-family","theme"]))}});const Vt=P(zt,[["__scopeId","data-v-4c9ad021"]]),qt=M({__name:"DashPlayer",props:{isPreview:{type:Boolean},dashPlayerService:null,forceResponsivity:null,camera:null,widgetsWithErrors:null,editingMode:{type:Boolean},params:null},emits:["navigate","logout"],setup(s,{emit:t}){const e=s,i=R(null),a=R(window.innerWidth);window.addEventListener("resize",()=>{a.value=window.innerWidth});const n=h=>t("navigate",h),o=y(()=>{var h;return(h=e.dashPlayerService.getUserEmail())!=null?h:void 0}),c=y(()=>e.dashPlayerService.state.type==="RUNNING"?e.dashPlayerService.state.widgets:Object.entries(e.dashPlayerService.runnerData.layout.slot).reduce((h,[g,v])=>Object.assign(h,{[g]:v}),{})),d=y(()=>e.dashPlayerService.state.type==="RUNNING"?e.dashPlayerService.state.responses:{}),f=y(()=>e.dashPlayerService.state.type==="RUNNING"?e.dashPlayerService.state.alerts:[]),l=y(()=>e.dashPlayerService.state.type==="RUNNING"?e.dashPlayerService.state.props:{}),u=y(()=>{const h=x()?e.dashPlayerService.layoutGrid.sidebarWidth+(a.value-e.dashPlayerService.layoutGrid.sidebarWidth-960)/2:(a.value-960)/2;return{"--dash-right-margin":`${x()?(a.value-e.dashPlayerService.layoutGrid.sidebarWidth-960)/2:(a.value-960)/2}px`,"--dash-left-margin":`${h}px`}}),N=y(()=>({...u.value,padding:`${e.dashPlayerService.layoutGrid.margin}px`,width:`${e.dashPlayerService.layoutGrid.width}px`,gap:`${e.dashPlayerService.layoutGrid.gap}px`,height:"100%",boxSizing:"border-box"}));return e.dashPlayerService.start(e.params),e.dashPlayerService.onNoCreditsMessage(()=>{var h;(h=i.value)==null||h.open()}),(h,g)=>{var v;return p(),b(Vt,{widgets:m(c),props:m(l),responses:m(d),"widgets-listeners":s.dashPlayerService.getWidgetsListeners(),camera:s.camera,"force-responsivity":s.forceResponsivity,grid:s.dashPlayerService.layoutGrid,"widgets-with-errors":(v=s.widgetsWithErrors)!=null?v:[],"runner-data":s.dashPlayerService.runnerData,"is-preview":s.isPreview},st({header:E(()=>[k(ot,{ref_key:"runtimeCommonsRef",ref:i,type:"dashes",runtime:s.dashPlayerService.runnerData,"full-width":!0,"is-preview":s.isPreview,"user-email":m(o),"force-responsivity":s.forceResponsivity,alerts:m(f),onNavigate:n,onLogout:g[0]||(g[0]=W=>s.dashPlayerService.logout())},null,8,["runtime","is-preview","user-email","force-responsivity","alerts"]),k(it,null,{default:E(()=>[s.dashPlayerService.state.type==="RUNNING"&&s.dashPlayerService.state.eventProcessing?(p(),b(Ht,{key:0})):L("",!0)]),_:1})]),_:2},[s.dashPlayerService.isAuthenticating()?{name:"overrideMain",fn:E(()=>[C("div",{class:H(["auth-form",s.forceResponsivity]),style:I(m(N))},[k(lt,{class:"form-auth"})],6)]),key:"0"}:void 0]),1032,["widgets","props","responses","widgets-listeners","camera","force-responsivity","grid","widgets-with-errors","runner-data","is-preview"])}}});const de=P(qt,[["__scopeId","data-v-541764d8"]]);export{de as D,re as a,oe as b,ne as c,se as d,ae as i,ce as m,he as p,le as r,dt as v,ie as w}; +//# sourceMappingURL=DashPlayer.6d1530bb.js.map diff --git a/abstra_statics/dist/assets/DashPreview.252c24e9.js b/abstra_statics/dist/assets/DashPreview.252c24e9.js new file mode 100644 index 0000000000..c4785d4f16 --- /dev/null +++ b/abstra_statics/dist/assets/DashPreview.252c24e9.js @@ -0,0 +1,2 @@ +import{d as _,K as g,b as i,c as w,z as t,t as d,D as c,F as D,J as k,H as b,q as I}from"./registerWidgets.cb3a7b8d.js";import{D as P,m as q}from"./DashPlayer.6d1530bb.js";import{L as x}from"./CircularLoading.1e68d2b1.js";import{r as B}from"./index.7d1457d9.js";import{B as R}from"./BackButton.ec736006.js";import{a as m}from"./asyncComputed.31994732.js";import{D as C}from"./dashes.3c9b04b3.js";import{W as F}from"./workspaces.5f21a554.js";import"./runnerData.7b7cb682.js";import"./executeJs.87b204c8.js";import"./PlayerNavbar.fe11d508.js";import"./icons.39dfa322.js";import"./WidgetsFrame.aac2edff.js";import"./colors.868ae049.js";import"./Modal.43c3d47a.js";import"./passwordlessManager.afd7d1d0.js";import"./pubsub.f85a17d2.js";import"./Passwordless.7161b834.js";import"./lottie.234eb92e.js";import"./activeRecord.adfc6223.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[r]="0a90b828-6e96-4a99-920f-601726ea2c46",s._sentryDebugIdIdentifier="sentry-dbid-0a90b828-6e96-4a99-920f-601726ea2c46")}catch{}})();const E=_({__name:"DashPreview",setup(s){const r=k(),o=b(),l=({id:e,type:n})=>{n==="dash"?(o.push({name:"dashPreview",params:{dashId:e},query:r.query}),y()):o.push({name:"form-preview",params:{formId:e},query:r.query})},f=()=>{var e;!((e=a.value)!=null&&e.path)||o.push(`/_editor/dash/${encodeURIComponent(a.value.path)}`)},{loading:h,result:a,refetch:y}=m(()=>C.get(r.params.dashPath)),{result:u}=m(()=>F.get()),p=g(()=>{if(!a.value||!u.value||!a.value.makeRunnerData(u.value))return null;const e=q(a.value.makeRunnerData(u.value));return e.onRedirect(({url:n,queryParams:v})=>B(o,n,v)),e});return(e,n)=>(i(),w(D,null,[t(h)||!t(a)?(i(),d(x,{key:0,class:"loading",justify:"center"})):c("",!0),t(p)?(i(),d(P,{key:1,class:"player",dash:t(p).runnerData,"widgets-with-errors":[],"is-preview":!0,params:t(r).query,"dash-player-service":t(p),onNavigate:l},null,8,["dash","params","dash-player-service"])):c("",!0),t(a)?(i(),d(R,{key:2,onExitFullscreenPreview:f})):c("",!0)],64))}});const Z=I(E,[["__scopeId","data-v-7fc555dd"]]);export{Z as default}; +//# sourceMappingURL=DashPreview.252c24e9.js.map diff --git a/abstra_statics/dist/assets/DashPreview.848902c1.js b/abstra_statics/dist/assets/DashPreview.848902c1.js deleted file mode 100644 index c5ff7b7707..0000000000 --- a/abstra_statics/dist/assets/DashPreview.848902c1.js +++ /dev/null @@ -1,2 +0,0 @@ -import{d as _,K as g,b as i,c as w,z as t,t as c,D as p,F as D,J as b,H as k,q as I}from"./registerWidgets.3fe0df5a.js";import{D as P,m as q}from"./DashPlayer.0888e5b9.js";import{L as x}from"./CircularLoading.2fb746db.js";import{r as B}from"./index.776642db.js";import{B as R}from"./BackButton.cd31ec0c.js";import{a as m}from"./asyncComputed.4b275614.js";import{D as C}from"./dashes.9a4cf820.js";import{W as F}from"./workspaces.220ebb5a.js";import"./runnerData.331b4b09.js";import"./executeJs.9eb1c025.js";import"./PlayerNavbar.9ff5d98a.js";import"./icons.9d575a00.js";import"./WidgetsFrame.c900894c.js";import"./colors.b2406923.js";import"./Modal.32a3d62d.js";import"./passwordlessManager.f53316a7.js";import"./pubsub.909df758.js";import"./Passwordless.15dd7595.js";import"./lottie.8f58e4c7.js";import"./activeRecord.2bc1b71f.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[r]="ca5ed312-b455-47b9-8739-eae9cb924ea6",s._sentryDebugIdIdentifier="sentry-dbid-ca5ed312-b455-47b9-8739-eae9cb924ea6")}catch{}})();const E=_({__name:"DashPreview",setup(s){const r=b(),o=k(),l=({id:e,type:n})=>{n==="dash"?(o.push({name:"dashPreview",params:{dashId:e},query:r.query}),y()):o.push({name:"form-preview",params:{formId:e},query:r.query})},f=()=>{var e;!((e=a.value)!=null&&e.path)||o.push(`/_editor/dash/${encodeURIComponent(a.value.path)}`)},{loading:h,result:a,refetch:y}=m(()=>C.get(r.params.dashPath)),{result:u}=m(()=>F.get()),d=g(()=>{if(!a.value||!u.value||!a.value.makeRunnerData(u.value))return null;const e=q(a.value.makeRunnerData(u.value));return e.onRedirect(({url:n,queryParams:v})=>B(o,n,v)),e});return(e,n)=>(i(),w(D,null,[t(h)||!t(a)?(i(),c(x,{key:0,class:"loading",justify:"center"})):p("",!0),t(d)?(i(),c(P,{key:1,class:"player",dash:t(d).runnerData,"widgets-with-errors":[],"is-preview":!0,params:t(r).query,"dash-player-service":t(d),onNavigate:l},null,8,["dash","params","dash-player-service"])):p("",!0),t(a)?(i(),c(R,{key:2,onExitFullscreenPreview:f})):p("",!0)],64))}});const Z=I(E,[["__scopeId","data-v-7fc555dd"]]);export{Z as default}; -//# sourceMappingURL=DashPreview.848902c1.js.map diff --git a/abstra_statics/dist/assets/Dashes.9d06c0b5.js b/abstra_statics/dist/assets/Dashes.9d06c0b5.js new file mode 100644 index 0000000000..f749b66651 --- /dev/null +++ b/abstra_statics/dist/assets/Dashes.9d06c0b5.js @@ -0,0 +1,2 @@ +import{d as y,K as b,b as D,t as w,z as l,H as g}from"./registerWidgets.cb3a7b8d.js";import{f as _,g as k,h as C}from"./icons.39dfa322.js";import{a as x}from"./asyncComputed.31994732.js";import{D as p}from"./dashes.3c9b04b3.js";import{R as I}from"./RuntimeList.ec9e2b4b.js";import"./activeRecord.adfc6223.js";import"./pubsub.f85a17d2.js";import"./runnerData.7b7cb682.js";import"./DropdownMenu.c973057b.js";import"./CircularLoading.1e68d2b1.js";import"./lottie.234eb92e.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[s]="063a43c2-941f-4abc-bd19-97cc2402fc15",o._sentryDebugIdIdentifier="sentry-dbid-063a43c2-941f-4abc-bd19-97cc2402fc15")}catch{}})();const L=y({__name:"Dashes",setup(o){const s=g(),{loading:r,result:n,refetch:c}=x(()=>p.list()),d=({key:e})=>s.push({name:"dashEditor",params:{dashPath:e}}),u=async({key:e})=>{var a,t;await((t=(a=n.value)==null?void 0:a.find(i=>i.path===e))==null?void 0:t.duplicate()),c()},h=async()=>{const e=await p.create();d({key:e.path})},m=async({key:e})=>{var a,t;confirm("Are you sure you want to delete this dash?")&&(await((t=(a=n.value)==null?void 0:a.find(i=>i.path===e))==null?void 0:t.delete()),c())},f=b(()=>{var e,a;return{columns:[{name:"Dash Name"},{name:"Path"},{name:"Dash Actions"}],rows:(a=(e=n.value)==null?void 0:e.map(t=>({key:t.path,cells:[{text:t.title,classes:["title","centered"],link:`/_editor/dash/${encodeURIComponent(t.path)}`},{text:t.path},{text:"",classes:["centered"],actions:[{icon:_,label:"Delete",onClick:m,dangerous:!0},{icon:k,label:"Edit Dash",onClick:d},{icon:C,label:"Duplicate",onClick:u}]}]})))!=null?a:[]}});return(e,a)=>(D(),w(I,{loading:l(r),title:"Python Dashes",description:"Create a dashboard page with charts and inputs interacting with your python code.","create-button-text":"Create Dash","empty-title":"No dashes here yet","video-url":"https://www.youtube.com/embed/oYMptrk7QNE",table:l(f),onCreate:h},null,8,["loading","table"]))}});export{L as default}; +//# sourceMappingURL=Dashes.9d06c0b5.js.map diff --git a/abstra_statics/dist/assets/Dashes.c57c633c.js b/abstra_statics/dist/assets/Dashes.c57c633c.js deleted file mode 100644 index 53063761f4..0000000000 --- a/abstra_statics/dist/assets/Dashes.c57c633c.js +++ /dev/null @@ -1,2 +0,0 @@ -import{d as f,K as y,b as D,t as w,z as d,H as g}from"./registerWidgets.3fe0df5a.js";import{f as _,g as k,h as C}from"./icons.9d575a00.js";import{a as x}from"./asyncComputed.4b275614.js";import{D as p}from"./dashes.9a4cf820.js";import{R as I}from"./RuntimeList.8704ae12.js";import"./activeRecord.2bc1b71f.js";import"./pubsub.909df758.js";import"./runnerData.331b4b09.js";import"./DropdownMenu.9edc1223.js";import"./CircularLoading.2fb746db.js";import"./lottie.8f58e4c7.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[s]="2697b7ca-227b-476b-96a2-14b0cec5be31",o._sentryDebugIdIdentifier="sentry-dbid-2697b7ca-227b-476b-96a2-14b0cec5be31")}catch{}})();const L=f({__name:"Dashes",setup(o){const s=g(),{loading:r,result:n,refetch:c}=x(()=>p.list()),l=({key:e})=>s.push({name:"dashEditor",params:{dashPath:e}}),u=async({key:e})=>{var a,t;await((t=(a=n.value)==null?void 0:a.find(i=>i.path===e))==null?void 0:t.duplicate()),c()},h=async()=>{const e=await p.create();l({key:e.path})},m=async({key:e})=>{var a,t;confirm("Are you sure you want to delete this dash?")&&(await((t=(a=n.value)==null?void 0:a.find(i=>i.path===e))==null?void 0:t.delete()),c())},b=y(()=>{var e,a;return{columns:[{name:"Dash Name"},{name:"Path"},{name:"Dash Actions"}],rows:(a=(e=n.value)==null?void 0:e.map(t=>({key:t.path,cells:[{text:t.title,classes:["title","centered"],link:`/_editor/dash/${encodeURIComponent(t.path)}`},{text:t.path},{text:"",classes:["centered"],actions:[{icon:_,label:"Delete",onClick:m,dangerous:!0},{icon:k,label:"Edit Dash",onClick:l},{icon:C,label:"Duplicate",onClick:u}]}]})))!=null?a:[]}});return(e,a)=>(D(),w(I,{loading:d(r),title:"Python Dashes",description:"Create a dashboard page with charts and inputs interacting with your python code.","create-button-text":"Create Dash","empty-title":"No dashes here yet","video-url":"https://www.youtube.com/embed/oYMptrk7QNE",table:d(b),onCreate:h},null,8,["loading","table"]))}});export{L as default}; -//# sourceMappingURL=Dashes.c57c633c.js.map diff --git a/abstra_statics/dist/assets/DocsButton.0b9b3a67.js b/abstra_statics/dist/assets/DocsButton.0b9b3a67.js deleted file mode 100644 index 292ce0f50b..0000000000 --- a/abstra_statics/dist/assets/DocsButton.0b9b3a67.js +++ /dev/null @@ -1,2 +0,0 @@ -import{d as o,b as c,c as d,q as _}from"./registerWidgets.3fe0df5a.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9341cedb-d74e-4499-9ce1-c67b97c71f56",e._sentryDebugIdIdentifier="sentry-dbid-9341cedb-d74e-4499-9ce1-c67b97c71f56")}catch{}})();const a=["href"],r=o({__name:"DocsButton",props:{path:null},setup(e){return(t,n)=>{var s;return c(),d("a",{class:"docs-button",href:`https://docs.abstra.io/${(s=e.path)!=null?s:""}`,target:"_blank"}," Docs ",8,a)}}});const u=_(r,[["__scopeId","data-v-9fec5678"]]);export{u as D}; -//# sourceMappingURL=DocsButton.0b9b3a67.js.map diff --git a/abstra_statics/dist/assets/DocsButton.495d0473.js b/abstra_statics/dist/assets/DocsButton.495d0473.js new file mode 100644 index 0000000000..b1535f0694 --- /dev/null +++ b/abstra_statics/dist/assets/DocsButton.495d0473.js @@ -0,0 +1,2 @@ +import{d as o,b as a,c,q as d}from"./registerWidgets.cb3a7b8d.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9a598f60-7ef3-4db6-87e9-a52b29a4bb1e",e._sentryDebugIdIdentifier="sentry-dbid-9a598f60-7ef3-4db6-87e9-a52b29a4bb1e")}catch{}})();const _=["href"],r=o({__name:"DocsButton",props:{path:null},setup(e){return(t,n)=>{var s;return a(),c("a",{class:"docs-button",href:`https://docs.abstra.io/${(s=e.path)!=null?s:""}`,target:"_blank"}," Docs ",8,_)}}});const b=d(r,[["__scopeId","data-v-9fec5678"]]);export{b as D}; +//# sourceMappingURL=DocsButton.495d0473.js.map diff --git a/abstra_statics/dist/assets/DropdownMenu.9edc1223.js b/abstra_statics/dist/assets/DropdownMenu.c973057b.js similarity index 88% rename from abstra_statics/dist/assets/DropdownMenu.9edc1223.js rename to abstra_statics/dist/assets/DropdownMenu.c973057b.js index be2c898619..48549cda23 100644 --- a/abstra_statics/dist/assets/DropdownMenu.9edc1223.js +++ b/abstra_statics/dist/assets/DropdownMenu.c973057b.js @@ -1,2 +1,2 @@ -import{d as h,K as m,b as n,c as o,A as w,z as c,q as g,B as k,G as y,v as C,e as d,w as x,N as u,D as p,t as b,I as _,F as B,L as D,x as f}from"./registerWidgets.3fe0df5a.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3dfd145c-960b-4f2e-9eda-cde8990d9aed",e._sentryDebugIdIdentifier="sentry-dbid-3dfd145c-960b-4f2e-9eda-cde8990d9aed")}catch{}})();const j="/assets/empty-box.758770e4.svg",I=h({__name:"Triangle",props:{color:{type:String,required:!1}},setup(e){const t=e,s=m(()=>t.color?{borderColor:`${t.color} transparent transparent transparent`}:{});return(l,i)=>(n(),o("div",{class:"triangle",style:w(c(s))},null,4))}});const S=g(I,[["__scopeId","data-v-7ca41e33"]]),q=h({__name:"BoxShadowButton",props:{active:{type:Boolean}},setup(e){return(t,s)=>(n(),o("button",{class:y(["box-shadow-button",{active:e.active}])},[k(t.$slots,"default",{},void 0,!0)],2))}});const $=g(q,[["__scopeId","data-v-04d82775"]]),L={class:"dropdown-menu"},N={key:0},z={key:0,class:"options"},A=["onClick"],M={key:0,class:"line"},O=h({__name:"DropdownMenu",props:{title:{type:String,required:!1},options:{type:Array,required:!0},highlightLast:{type:Boolean,required:!1,default:!1},selectIcon:{type:Object,required:!1},payload:{required:!1,default:()=>({}),type:Object}},setup(e){const t=e,s=C({open:!1}),l=m(()=>t.options[t.options.length-1]),i=async v=>{await v(t.payload),s.open=!1};return(v,r)=>(n(),o("div",L,[d($,{class:"title",active:s.open,onClick:r[0]||(r[0]=a=>s.open=!s.open)},{default:x(()=>[e.title?(n(),o("span",N,u(e.title),1)):p("",!0),e.selectIcon?(n(),b(_,{key:1,class:"select-icon",width:"18",height:"18",path:e.selectIcon,fill:"#6D7C93"},null,8,["path"])):(n(),b(S,{key:2,class:"icon",color:"#414a58"}))]),_:1},8,["active"]),s.open?(n(),o("div",z,[(n(!0),o(B,null,D(e.options.slice(0,-1),a=>(n(),o("div",{key:a.label,class:y(["option",{dangerous:!!a.dangerous}]),onClick:T=>i(a.onClick)},[d(_,{class:"option-icon",width:"14",height:"14",path:a.icon,fill:"#6D7C93"},null,8,["path"]),f("span",null,u(a.label),1)],10,A))),128)),e.highlightLast?(n(),o("div",M)):p("",!0),f("div",{class:y(["option",{dangerous:!!c(l).dangerous}]),onClick:r[1]||(r[1]=a=>i(c(l).onClick))},[d(_,{class:"option-icon",width:"14",height:"14",path:c(l).icon,fill:"#6D7C93"},null,8,["path"]),f("span",null,u(c(l).label),1)],2)])):p("",!0)]))}});const E=g(O,[["__scopeId","data-v-c4232f59"]]);export{E as D,j as _}; -//# sourceMappingURL=DropdownMenu.9edc1223.js.map +import{d as h,K as m,b as n,c as o,A as w,z as c,q as g,B as k,G as y,v as C,e as d,w as x,N as u,D as p,t as b,I as _,F as B,L as D,x as f}from"./registerWidgets.cb3a7b8d.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="1b5e4a6e-1df7-4a92-8c27-61c3e2fb480a",e._sentryDebugIdIdentifier="sentry-dbid-1b5e4a6e-1df7-4a92-8c27-61c3e2fb480a")}catch{}})();const j="/assets/empty-box.758770e4.svg",I=h({__name:"Triangle",props:{color:{type:String,required:!1}},setup(e){const t=e,s=m(()=>t.color?{borderColor:`${t.color} transparent transparent transparent`}:{});return(l,i)=>(n(),o("div",{class:"triangle",style:w(c(s))},null,4))}});const S=g(I,[["__scopeId","data-v-7ca41e33"]]),q=h({__name:"BoxShadowButton",props:{active:{type:Boolean}},setup(e){return(t,s)=>(n(),o("button",{class:y(["box-shadow-button",{active:e.active}])},[k(t.$slots,"default",{},void 0,!0)],2))}});const $=g(q,[["__scopeId","data-v-04d82775"]]),L={class:"dropdown-menu"},N={key:0},z={key:0,class:"options"},A=["onClick"],M={key:0,class:"line"},O=h({__name:"DropdownMenu",props:{title:{type:String,required:!1},options:{type:Array,required:!0},highlightLast:{type:Boolean,required:!1,default:!1},selectIcon:{type:Object,required:!1},payload:{required:!1,default:()=>({}),type:Object}},setup(e){const t=e,s=C({open:!1}),l=m(()=>t.options[t.options.length-1]),i=async v=>{await v(t.payload),s.open=!1};return(v,r)=>(n(),o("div",L,[d($,{class:"title",active:s.open,onClick:r[0]||(r[0]=a=>s.open=!s.open)},{default:x(()=>[e.title?(n(),o("span",N,u(e.title),1)):p("",!0),e.selectIcon?(n(),b(_,{key:1,class:"select-icon",width:"18",height:"18",path:e.selectIcon,fill:"#6D7C93"},null,8,["path"])):(n(),b(S,{key:2,class:"icon",color:"#414a58"}))]),_:1},8,["active"]),s.open?(n(),o("div",z,[(n(!0),o(B,null,D(e.options.slice(0,-1),a=>(n(),o("div",{key:a.label,class:y(["option",{dangerous:!!a.dangerous}]),onClick:T=>i(a.onClick)},[d(_,{class:"option-icon",width:"14",height:"14",path:a.icon,fill:"#6D7C93"},null,8,["path"]),f("span",null,u(a.label),1)],10,A))),128)),e.highlightLast?(n(),o("div",M)):p("",!0),f("div",{class:y(["option",{dangerous:!!c(l).dangerous}]),onClick:r[1]||(r[1]=a=>i(c(l).onClick))},[d(_,{class:"option-icon",width:"14",height:"14",path:c(l).icon,fill:"#6D7C93"},null,8,["path"]),f("span",null,u(c(l).label),1)],2)])):p("",!0)]))}});const E=g(O,[["__scopeId","data-v-c4232f59"]]);export{E as D,j as _}; +//# sourceMappingURL=DropdownMenu.c973057b.js.map diff --git a/abstra_statics/dist/assets/EnvVars.3d3c8ce6.js b/abstra_statics/dist/assets/EnvVars.6a0b7ff6.js similarity index 60% rename from abstra_statics/dist/assets/EnvVars.3d3c8ce6.js rename to abstra_statics/dist/assets/EnvVars.6a0b7ff6.js index 3a0d49352b..1f506753ef 100644 --- a/abstra_statics/dist/assets/EnvVars.3d3c8ce6.js +++ b/abstra_statics/dist/assets/EnvVars.6a0b7ff6.js @@ -1,2 +1,2 @@ -var b=Object.defineProperty;var w=(a,e,t)=>e in a?b(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var u=(a,e,t)=>(w(a,typeof e!="symbol"?e+"":e,t),t);import{d as g,K as v,b as k,t as $,z as p,J as C}from"./registerWidgets.3fe0df5a.js";import{a as I}from"./asyncComputed.4b275614.js";import{C as l}from"./gateway.63e02d1d.js";import{A as _}from"./activeRecord.2bc1b71f.js";import"./index.24c9f37d.js";import{C as j}from"./CrudView.674ca9db.js";import{r as A}from"./icons.9d575a00.js";import"./passwordlessManager.f53316a7.js";import"./pubsub.909df758.js";import"./DropdownMenu.9edc1223.js";import"./Modal.32a3d62d.js";import"./LoadingIndicator.a20841c3.js";import"./lottie.8f58e4c7.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="973c7049-e0d1-4798-b635-f7e21394600c",a._sentryDebugIdIdentifier="sentry-dbid-973c7049-e0d1-4798-b635-f7e21394600c")}catch{}})();class P{constructor(){u(this,"urlPath","env-vars")}async create(e){return l.post(`projects/${e.projectId}/${this.urlPath}`,{name:e.name,value:e.value})}async delete(e,t){await l.delete(`projects/${e}/${this.urlPath}/${t}`)}async list(e){return l.get(`projects/${e}/${this.urlPath}`)}async get(e){return l.get(`${this.urlPath}/${e}`)}async update(e,t){return l.patch(`${this.urlPath}/${e}`,t)}}const n=new P;class s{constructor(e,t){u(this,"record");this.projectId=e,this.record=_.create(n,t,"id")}static async list(e){return(await n.list(e)).map(r=>new s(e,r))}static async create(e,t,r){const o=await n.create({projectId:e,name:t,value:r});return new s(e,o)}static async get(e,t){const r=await n.get(t);return new s(e,r)}static async update(e,t,r){const o=await n.update(t,r);return new s(e,o)}get key(){return this.record.get("name")}get value(){return this.record.get("value")}set value(e){this.record.set("value",e)}async save(){await this.record.save()}async delete(){await n.delete(this.projectId,this.key)}hasChanges(){return this.record.hasChanges()}}const H=g({__name:"EnvVars",setup(a){const t=C().params.projectId,{loading:r,result:o,refetch:m}=I(()=>s.list(t)),y=[{label:"Variable name",key:"key"},{label:"Variable value",key:"value",type:"password"}];async function f({key:c,value:i}){await s.create(t,c,i),m()}const h=v(()=>{var c,i;return{columns:[{name:"Key"},{name:"Actions"}],rows:(i=(c=o.value)==null?void 0:c.map(d=>({key:d.key,cells:[{text:d.key,classes:["title","centered"]},{text:"Actions",classes:["centered"],actions:[{icon:A,label:"Delete",async onClick(){await d.delete(),m()},dangerous:!0}]}]})))!=null?i:[]}});return(c,i)=>(k(),$(j,{"entity-name":"env-vars",loading:p(r),title:"Environment Variables",description:"Set environment variables for your project.","empty-title":"No environment variables set",table:p(h),"create-button-text":"Add Environment Variable",fields:p(y),onCreate:f},null,8,["loading","table","fields"]))}});export{H as default}; -//# sourceMappingURL=EnvVars.3d3c8ce6.js.map +var f=Object.defineProperty;var w=(a,e,t)=>e in a?f(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var u=(a,e,t)=>(w(a,typeof e!="symbol"?e+"":e,t),t);import{d as g,K as v,b as k,t as $,z as p,J as C}from"./registerWidgets.cb3a7b8d.js";import{a as I}from"./asyncComputed.31994732.js";import{C as l}from"./gateway.2edca867.js";import{A as _}from"./activeRecord.adfc6223.js";import"./index.7fea4022.js";import{C as j}from"./CrudView.87a92735.js";import{r as A}from"./icons.39dfa322.js";import"./passwordlessManager.afd7d1d0.js";import"./pubsub.f85a17d2.js";import"./DropdownMenu.c973057b.js";import"./Modal.43c3d47a.js";import"./LoadingIndicator.d4ffd545.js";import"./lottie.234eb92e.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="561eeb9b-e25b-44a6-b947-169317347ac3",a._sentryDebugIdIdentifier="sentry-dbid-561eeb9b-e25b-44a6-b947-169317347ac3")}catch{}})();class P{constructor(){u(this,"urlPath","env-vars")}async create(e){return l.post(`projects/${e.projectId}/${this.urlPath}`,{name:e.name,value:e.value})}async delete(e,t){await l.delete(`projects/${e}/${this.urlPath}/${t}`)}async list(e){return l.get(`projects/${e}/${this.urlPath}`)}async get(e){return l.get(`${this.urlPath}/${e}`)}async update(e,t){return l.patch(`${this.urlPath}/${e}`,t)}}const n=new P;class s{constructor(e,t){u(this,"record");this.projectId=e,this.record=_.create(n,t,"id")}static async list(e){return(await n.list(e)).map(r=>new s(e,r))}static async create(e,t,r){const o=await n.create({projectId:e,name:t,value:r});return new s(e,o)}static async get(e,t){const r=await n.get(t);return new s(e,r)}static async update(e,t,r){const o=await n.update(t,r);return new s(e,o)}get key(){return this.record.get("name")}get value(){return this.record.get("value")}set value(e){this.record.set("value",e)}async save(){await this.record.save()}async delete(){await n.delete(this.projectId,this.key)}hasChanges(){return this.record.hasChanges()}}const H=g({__name:"EnvVars",setup(a){const t=C().params.projectId,{loading:r,result:o,refetch:m}=I(()=>s.list(t)),y=[{label:"Variable name",key:"key"},{label:"Variable value",key:"value",type:"password"}];async function b({key:i,value:c}){await s.create(t,i,c),m()}const h=v(()=>{var i,c;return{columns:[{name:"Key"},{name:"Actions"}],rows:(c=(i=o.value)==null?void 0:i.map(d=>({key:d.key,cells:[{text:d.key,classes:["title","centered"]},{text:"Actions",classes:["centered"],actions:[{icon:A,label:"Delete",async onClick(){await d.delete(),m()},dangerous:!0}]}]})))!=null?c:[]}});return(i,c)=>(k(),$(j,{"entity-name":"env-vars",loading:p(r),title:"Environment Variables",description:"Set environment variables for your project.","empty-title":"No environment variables set",table:p(h),"create-button-text":"Add Environment Variable",fields:p(y),onCreate:b},null,8,["loading","table","fields"]))}});export{H as default}; +//# sourceMappingURL=EnvVars.6a0b7ff6.js.map diff --git a/abstra_statics/dist/assets/Error.0e8ed62a.js b/abstra_statics/dist/assets/Error.ecdc8e8a.js similarity index 76% rename from abstra_statics/dist/assets/Error.0e8ed62a.js rename to abstra_statics/dist/assets/Error.ecdc8e8a.js index 969981b567..8d13f1c7ae 100644 --- a/abstra_statics/dist/assets/Error.0e8ed62a.js +++ b/abstra_statics/dist/assets/Error.ecdc8e8a.js @@ -1,2 +1,2 @@ -import{d as c,K as i,b as l,c as _,x as r,N as s,z as p,O as u,Q as f,q as y}from"./registerWidgets.3fe0df5a.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="11a8552f-6a85-42b7-82f4-04471603e2ff",e._sentryDebugIdIdentifier="sentry-dbid-11a8552f-6a85-42b7-82f4-04471603e2ff")}catch{}})();const a=e=>(u("data-v-d3846761"),e=e(),f(),e),b={class:"error"},h=a(()=>r("h1",{class:"error-header"},"Error",-1)),g={class:"error-body"},m={class:"error-message"},v={class:"error-details"},I=a(()=>r("span",null,"Reload",-1)),E=[I],w=c({__name:"Error",props:{error:{type:Object,required:!0},repeated:{type:Boolean,required:!1}},emits:["reload"],setup(e,{emit:o}){const t=e,d=i(()=>t.repeated?"Ooops. The same error occured, please try again later.":"An error occurred while loading.");function n(){o("reload")}return(x,D)=>(l(),_("div",b,[h,r("div",g,[r("div",m,[r("p",null,s(p(d)),1),r("p",v,s(e.error.name)+": "+s(e.error.message),1)]),r("div",{class:"error-actions"},[r("button",{class:"btn btn-primary",onClick:n},E)])])]))}});const B=y(w,[["__scopeId","data-v-d3846761"]]);export{B as E}; -//# sourceMappingURL=Error.0e8ed62a.js.map +import{d as c,K as i,b as l,c as _,x as r,N as s,z as p,O as u,Q as f,q as y}from"./registerWidgets.cb3a7b8d.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="b2932cfe-fc64-4fe7-a9a5-cf282448c6d5",e._sentryDebugIdIdentifier="sentry-dbid-b2932cfe-fc64-4fe7-a9a5-cf282448c6d5")}catch{}})();const a=e=>(u("data-v-d3846761"),e=e(),f(),e),b={class:"error"},h=a(()=>r("h1",{class:"error-header"},"Error",-1)),g={class:"error-body"},m={class:"error-message"},v={class:"error-details"},I=a(()=>r("span",null,"Reload",-1)),E=[I],w=c({__name:"Error",props:{error:{type:Object,required:!0},repeated:{type:Boolean,required:!1}},emits:["reload"],setup(e,{emit:o}){const t=e,d=i(()=>t.repeated?"Ooops. The same error occured, please try again later.":"An error occurred while loading.");function n(){o("reload")}return(x,D)=>(l(),_("div",b,[h,r("div",g,[r("div",m,[r("p",null,s(p(d)),1),r("p",v,s(e.error.name)+": "+s(e.error.message),1)]),r("div",{class:"error-actions"},[r("button",{class:"btn btn-primary",onClick:n},E)])])]))}});const B=y(w,[["__scopeId","data-v-d3846761"]]);export{B as E}; +//# sourceMappingURL=Error.ecdc8e8a.js.map diff --git a/abstra_statics/dist/assets/FormEditor.1f8c0fb4.js b/abstra_statics/dist/assets/FormEditor.f43de75d.js similarity index 50% rename from abstra_statics/dist/assets/FormEditor.1f8c0fb4.js rename to abstra_statics/dist/assets/FormEditor.f43de75d.js index 539faf114a..e3d0724cc4 100644 --- a/abstra_statics/dist/assets/FormEditor.1f8c0fb4.js +++ b/abstra_statics/dist/assets/FormEditor.f43de75d.js @@ -1,2 +1,2 @@ -import{d as $,r as x,v as H,b as i,c as f,x as a,F as C,L as T,N as q,W as M,a3 as N,e as n,O as Q,Q as j,q as A,K as X,z as t,t as w,w as y,D as V,H as Y,J as Z,S as ee}from"./registerWidgets.3fe0df5a.js";import{L as te}from"./CircularLoading.2fb746db.js";import{E as oe}from"./Error.0e8ed62a.js";import{R as re,F as ae}from"./broker.4d1bc0fe.js";import{R as se,S as le,_ as ne,L as ie}from"./UnsavedChangesHandler.vue_vue_type_script_setup_true_lang.a909e3ed.js";import{T as ue,a as W}from"./Tab.7855495c.js";import{a as me}from"./asyncComputed.4b275614.js";import{F as ce}from"./forms.9088f82a.js";import{W as de}from"./workspaces.220ebb5a.js";import{B as pe}from"./BackButton.38e76e75.js";import{S as fe}from"./SaveButton.e20203fa.js";import{D as _e}from"./DocsButton.0b9b3a67.js";import{P as ve}from"./PreviewButton.f29c359b.js";import"./lottie.8f58e4c7.js";import"./passwordlessManager.f53316a7.js";import"./pubsub.909df758.js";import"./icons.9d575a00.js";import"./ActionButton.vue_vue_type_script_setup_true_lang.9bc2be06.js";import"./Passwordless.15dd7595.js";import"./executeJs.9eb1c025.js";import"./PlayerNavbar.9ff5d98a.js";import"./index.776642db.js";import"./WidgetsFrame.c900894c.js";import"./colors.b2406923.js";import"./Modal.32a3d62d.js";import"./dashes.9a4cf820.js";import"./activeRecord.2bc1b71f.js";import"./runnerData.331b4b09.js";import"./hooks.56004b79.js";import"./jobs.99d61147.js";import"./uuid.8e57fc19.js";import"./login.7c65daa3.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new Error().stack;d&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[d]="5ff54215-b90f-40ab-a397-c060bebd8f86",s._sentryDebugIdIdentifier="sentry-dbid-5ff54215-b90f-40ab-a397-c060bebd8f86")}catch{}})();const ye="forms_workspace_id_path_key",U=s=>(Q("data-v-89e322ed"),s=s(),j(),s),he={class:"form-settings"},be={class:"content"},ge={class:"subsection-label"},ke={class:"property-label"},we=["value","onChange"],Se={class:"content"},xe={class:"property"},Ce=U(()=>a("div",{class:"property-label"},"Start smart form automatically",-1)),Ee={class:"property"},Fe=U(()=>a("div",{class:"property-label"},"Allow the user to restart the smart form after it is over",-1)),Re=$({__name:"FormSettings",props:{form:null},setup(s){const o=x(s.form),h=[{label:"General",props:[{label:"Form name",valueKey:"title"}]},{label:"Welcome Screen",props:[{label:"Title",valueKey:"welcome_title"},{label:"Subtitle",valueKey:"start_message"},{label:"Start button text",valueKey:"start_button_text"}]},{label:"Ending Screen",props:[{label:"Title",valueKey:"end_message"},{label:"Restart button text",valueKey:"restart_button_text"}]},{label:"Alert Messages",props:[{label:"Error message",valueKey:"error_message"}]}],b=H({pathError:null,sectionsShown:[!0,!1,!1]}),S=_=>{_.detail.includes(ye)&&(b.pathError=r)},r="This path is already being used by another form or dash on your workspace";return addEventListener("hasura-error",S),(_,c)=>(i(),f("div",he,[a("div",be,[(i(),f(C,null,T(h,l=>a("div",{key:l.label,class:"subsection"},[a("div",ge,q(l.label),1),(i(!0),f(C,null,T(l.props,p=>(i(),f("div",{key:p.label,class:"property column"},[a("div",ke,q(p.label),1),a("input",{class:"property-input",type:"text",value:o.value.get(p.valueKey),onChange:u=>o.value.set(p.valueKey,u.target.value)},null,40,we)]))),128))])),64))]),a("div",Se,[a("div",xe,[M(a("input",{"onUpdate:modelValue":c[0]||(c[0]=l=>o.value.autoStart=l),class:"checkbox-input",type:"checkbox"},null,512),[[N,o.value.autoStart]]),Ce]),a("div",Ee,[M(a("input",{"onUpdate:modelValue":c[1]||(c[1]=l=>o.value.allowRestart=l),class:"checkbox-input",type:"checkbox"},null,512),[[N,o.value.allowRestart]]),Fe])]),n(se,{runtime:o.value},null,8,["runtime"])]))}});const Ke=A(Re,[["__scopeId","data-v-89e322ed"]]),Pe={class:"page"},Be={key:1,class:"error"},De=$({__name:"FormEditor",setup(s){var F,R,K;const d=Y(),o=Z(),h=H({fullscreen:!1,rightPanelCollapsed:!1,hasChanges:!1,started:!1});addEventListener("keydown",e=>{(e.ctrlKey||e.metaKey)&&e.key==="s"&&(e.preventDefault(),p())});const b=x(null),{loading:S,result:r,error:_,refetch:c}=me(()=>Promise.all([de.get(),ce.get(o.params.formPath)]).then(([e,k])=>ee({workspace:e,form:k}))),l=x(!1);async function p(){var e;l.value=!0;try{await((e=r.value)==null?void 0:e.form.save())}finally{l.value=!1}}const u=ie.create(),g=X(()=>re.create({formPath:o.params.formPath}));(F=g.value)==null||F.on("stdout",e=>{u.log({type:"stdout",log:e.log})}),(R=g.value)==null||R.on("stderr",e=>{u.log({type:"stderr",log:e.log})}),(K=g.value)==null||K.onClose(()=>{u.log({type:"stderr",log:"Program closed"})});const z=()=>{u.clear()},E=async()=>{var e;return u.log({type:"restart"}),(e=b.value)==null?void 0:e.run()},G=({path:e,type:k})=>{k==="dash"?d.push({name:"dashEditor",params:{dashPath:e},query:o.query}):(d.push({name:"editor",params:{formPath:e},query:o.query}),c())},J=()=>{h.started=!0},O=()=>{h.started=!1};return(e,k)=>{var P,B,D,I,L;return i(),f(C,null,[a("div",Pe,[t(S)||!((P=t(r))!=null&&P.form)||!((B=t(r))!=null&&B.workspace)?(i(),w(te,{key:0})):t(_)?(i(),f("div",Be,[n(oe,{error:t(_),onReload:t(c)},null,8,["error","onReload"])])):(i(),w(ue,{key:2},{left:y(()=>[n(pe,{link:"/_editor/forms"})]),right:y(()=>{var m,v;return[n(_e),n(ve,{model:(m=t(r))==null?void 0:m.form},null,8,["model"]),n(fe,{model:(v=t(r))==null?void 0:v.form},null,8,["model"])]}),default:y(()=>[n(W,{title:"Preview"},{default:y(()=>{var m,v;return[n(ae,{ref_key:"runner",ref:b,form:(v=t(r))==null?void 0:v.form.makeRunnerData((m=t(r))==null?void 0:m.workspace),params:t(o).query,"is-preview":!0,"enable-auto-focus":!1,broker:t(g),style:{height:"unset",flex:1,overflow:"hidden"},onNavigate:G,onLogout:E,onExit:O,onStart:J},null,8,["form","params","broker"])]}),_:1}),n(W,{title:"Settings"},{default:y(()=>{var m;return[(m=t(r))!=null&&m.form?(i(),w(Ke,{key:0,form:t(r).form},null,8,["form"])):V("",!0)]}),_:1})]),_:1})),(D=t(r))!=null&&D.form?(i(),w(le,{key:3,runtime:"forms","log-service":t(u),onRestart:E,onClearTerminal:z},null,8,["log-service"])):V("",!0)]),n(ne,{"has-changes":(L=(I=t(r))==null?void 0:I.form)==null?void 0:L.hasChanges()},null,8,["has-changes"])],64)}}});const ct=A(De,[["__scopeId","data-v-8b7849de"]]);export{ct as default}; -//# sourceMappingURL=FormEditor.1f8c0fb4.js.map +import{d as $,r as x,v as H,b as i,c as f,x as a,F as C,L as T,N as q,W as M,a3 as N,e as n,O as Q,Q as j,q as A,K as X,z as t,t as w,w as y,D as V,H as Y,J as Z,S as ee}from"./registerWidgets.cb3a7b8d.js";import{L as te}from"./CircularLoading.1e68d2b1.js";import{E as oe}from"./Error.ecdc8e8a.js";import{R as re,F as ae}from"./broker.988d8f9b.js";import{R as se,S as le,_ as ne,L as ie}from"./UnsavedChangesHandler.vue_vue_type_script_setup_true_lang.35587b62.js";import{T as ue,a as W}from"./Tab.27dc38aa.js";import{a as ce}from"./asyncComputed.31994732.js";import{F as me}from"./forms.f5353181.js";import{W as de}from"./workspaces.5f21a554.js";import{B as pe}from"./BackButton.677abc51.js";import{S as fe}from"./SaveButton.b678d3d3.js";import{D as _e}from"./DocsButton.495d0473.js";import{P as ve}from"./PreviewButton.70ce525c.js";import"./lottie.234eb92e.js";import"./passwordlessManager.afd7d1d0.js";import"./pubsub.f85a17d2.js";import"./icons.39dfa322.js";import"./ActionButton.vue_vue_type_script_setup_true_lang.9a3f9909.js";import"./Passwordless.7161b834.js";import"./executeJs.87b204c8.js";import"./PlayerNavbar.fe11d508.js";import"./index.7d1457d9.js";import"./WidgetsFrame.aac2edff.js";import"./colors.868ae049.js";import"./Modal.43c3d47a.js";import"./dashes.3c9b04b3.js";import"./activeRecord.adfc6223.js";import"./runnerData.7b7cb682.js";import"./hooks.fd4bb08f.js";import"./jobs.d0693d2f.js";import"./uuid.0e63ad64.js";import"./login.ce8787fb.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new Error().stack;d&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[d]="54b432af-22e0-49a7-a6ec-afc4eaf29230",s._sentryDebugIdIdentifier="sentry-dbid-54b432af-22e0-49a7-a6ec-afc4eaf29230")}catch{}})();const ye="forms_workspace_id_path_key",U=s=>(Q("data-v-89e322ed"),s=s(),j(),s),he={class:"form-settings"},ge={class:"content"},be={class:"subsection-label"},ke={class:"property-label"},we=["value","onChange"],Se={class:"content"},xe={class:"property"},Ce=U(()=>a("div",{class:"property-label"},"Start smart form automatically",-1)),Ee={class:"property"},Fe=U(()=>a("div",{class:"property-label"},"Allow the user to restart the smart form after it is over",-1)),Re=$({__name:"FormSettings",props:{form:null},setup(s){const o=x(s.form),h=[{label:"General",props:[{label:"Form name",valueKey:"title"}]},{label:"Welcome Screen",props:[{label:"Title",valueKey:"welcome_title"},{label:"Subtitle",valueKey:"start_message"},{label:"Start button text",valueKey:"start_button_text"}]},{label:"Ending Screen",props:[{label:"Title",valueKey:"end_message"},{label:"Restart button text",valueKey:"restart_button_text"}]},{label:"Alert Messages",props:[{label:"Error message",valueKey:"error_message"}]}],g=H({pathError:null,sectionsShown:[!0,!1,!1]}),S=_=>{_.detail.includes(ye)&&(g.pathError=r)},r="This path is already being used by another form or dash on your workspace";return addEventListener("hasura-error",S),(_,m)=>(i(),f("div",he,[a("div",ge,[(i(),f(C,null,T(h,l=>a("div",{key:l.label,class:"subsection"},[a("div",be,q(l.label),1),(i(!0),f(C,null,T(l.props,p=>(i(),f("div",{key:p.label,class:"property column"},[a("div",ke,q(p.label),1),a("input",{class:"property-input",type:"text",value:o.value.get(p.valueKey),onChange:u=>o.value.set(p.valueKey,u.target.value)},null,40,we)]))),128))])),64))]),a("div",Se,[a("div",xe,[M(a("input",{"onUpdate:modelValue":m[0]||(m[0]=l=>o.value.autoStart=l),class:"checkbox-input",type:"checkbox"},null,512),[[N,o.value.autoStart]]),Ce]),a("div",Ee,[M(a("input",{"onUpdate:modelValue":m[1]||(m[1]=l=>o.value.allowRestart=l),class:"checkbox-input",type:"checkbox"},null,512),[[N,o.value.allowRestart]]),Fe])]),n(se,{runtime:o.value},null,8,["runtime"])]))}});const Ke=A(Re,[["__scopeId","data-v-89e322ed"]]),Pe={class:"page"},Be={key:1,class:"error"},De=$({__name:"FormEditor",setup(s){var F,R,K;const d=Y(),o=Z(),h=H({fullscreen:!1,rightPanelCollapsed:!1,hasChanges:!1,started:!1});addEventListener("keydown",e=>{(e.ctrlKey||e.metaKey)&&e.key==="s"&&(e.preventDefault(),p())});const g=x(null),{loading:S,result:r,error:_,refetch:m}=ce(()=>Promise.all([de.get(),me.get(o.params.formPath)]).then(([e,k])=>ee({workspace:e,form:k}))),l=x(!1);async function p(){var e;l.value=!0;try{await((e=r.value)==null?void 0:e.form.save())}finally{l.value=!1}}const u=ie.create(),b=X(()=>re.create({formPath:o.params.formPath}));(F=b.value)==null||F.on("stdout",e=>{u.log({type:"stdout",log:e.log})}),(R=b.value)==null||R.on("stderr",e=>{u.log({type:"stderr",log:e.log})}),(K=b.value)==null||K.onClose(()=>{u.log({type:"stderr",log:"Program closed"})});const z=()=>{u.clear()},E=async()=>{var e;return u.log({type:"restart"}),(e=g.value)==null?void 0:e.run()},G=({path:e,type:k})=>{k==="dash"?d.push({name:"dashEditor",params:{dashPath:e},query:o.query}):(d.push({name:"editor",params:{formPath:e},query:o.query}),m())},J=()=>{h.started=!0},O=()=>{h.started=!1};return(e,k)=>{var P,B,D,I,L;return i(),f(C,null,[a("div",Pe,[t(S)||!((P=t(r))!=null&&P.form)||!((B=t(r))!=null&&B.workspace)?(i(),w(te,{key:0})):t(_)?(i(),f("div",Be,[n(oe,{error:t(_),onReload:t(m)},null,8,["error","onReload"])])):(i(),w(ue,{key:2},{left:y(()=>[n(pe,{link:"/_editor/forms"})]),right:y(()=>{var c,v;return[n(_e),n(ve,{model:(c=t(r))==null?void 0:c.form},null,8,["model"]),n(fe,{model:(v=t(r))==null?void 0:v.form},null,8,["model"])]}),default:y(()=>[n(W,{title:"Preview"},{default:y(()=>{var c,v;return[n(ae,{ref_key:"runner",ref:g,form:(v=t(r))==null?void 0:v.form.makeRunnerData((c=t(r))==null?void 0:c.workspace),params:t(o).query,"is-preview":!0,"enable-auto-focus":!1,broker:t(b),style:{height:"unset",flex:1,overflow:"hidden"},onNavigate:G,onLogout:E,onExit:O,onStart:J},null,8,["form","params","broker"])]}),_:1}),n(W,{title:"Settings"},{default:y(()=>{var c;return[(c=t(r))!=null&&c.form?(i(),w(Ke,{key:0,form:t(r).form},null,8,["form"])):V("",!0)]}),_:1})]),_:1})),(D=t(r))!=null&&D.form?(i(),w(le,{key:3,runtime:"forms","log-service":t(u),onRestart:E,onClearTerminal:z},null,8,["log-service"])):V("",!0)]),n(ne,{"has-changes":(L=(I=t(r))==null?void 0:I.form)==null?void 0:L.hasChanges()},null,8,["has-changes"])],64)}}});const mt=A(De,[["__scopeId","data-v-8b7849de"]]);export{mt as default}; +//# sourceMappingURL=FormEditor.f43de75d.js.map diff --git a/abstra_statics/dist/assets/FormPreview.66f90019.js b/abstra_statics/dist/assets/FormPreview.66f90019.js new file mode 100644 index 0000000000..cc85b17fb2 --- /dev/null +++ b/abstra_statics/dist/assets/FormPreview.66f90019.js @@ -0,0 +1,2 @@ +import{d as x,v as P,r as F,K as R,b as n,c as i,z as e,t as B,e as d,x as I,H as q,J as E,q as D}from"./registerWidgets.cb3a7b8d.js";import{L as C}from"./CircularLoading.1e68d2b1.js";import{E as L}from"./Error.ecdc8e8a.js";import{F as N,R as H}from"./broker.988d8f9b.js";import{B as M}from"./BackButton.ec736006.js";import{a as _}from"./asyncComputed.31994732.js";import{F as V}from"./forms.f5353181.js";import{W}from"./workspaces.5f21a554.js";import"./lottie.234eb92e.js";import"./passwordlessManager.afd7d1d0.js";import"./pubsub.f85a17d2.js";import"./icons.39dfa322.js";import"./ActionButton.vue_vue_type_script_setup_true_lang.9a3f9909.js";import"./Passwordless.7161b834.js";import"./executeJs.87b204c8.js";import"./PlayerNavbar.fe11d508.js";import"./index.7d1457d9.js";import"./WidgetsFrame.aac2edff.js";import"./colors.868ae049.js";import"./Modal.43c3d47a.js";import"./activeRecord.adfc6223.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[t]="0f6b374c-e035-4978-9417-90ba75e5b3f1",s._sentryDebugIdIdentifier="sentry-dbid-0f6b374c-e035-4978-9417-90ba75e5b3f1")}catch{}})();const z={class:"page"},J={key:1,class:"error"},K={key:2,style:{width:"100%",height:"100%",display:"flex"}},S={style:{width:"100%",height:"100%",display:"flex"}},U=x({__name:"FormPreview",setup(s){const t=q(),r=E(),a=P({started:!1}),m=F(null),{loading:h,result:c,error:u,refetch:p}=_(()=>V.get(r.params.formPath)),{result:f}=_(()=>W.get()),y=R(()=>H.create({formPath:r.params.formPath})),v=async()=>{var o;if(!a.started){(o=m.value)==null||o.run();return}a.started=!1},b=({path:o,type:l})=>{l==="dash"?t.push({name:"dashPreview",params:{dashPath:o},query:r.query}):(t.push({name:"form-preview",params:{formPath:o},query:r.query}),p())},g=()=>{t.push(`/_editor/form/${encodeURIComponent(r.params.formPath)}`)},w=()=>{a.started=!0},k=()=>{a.started=!1};return(o,l)=>(n(),i("div",z,[e(h)||!e(c)||!e(f)?(n(),B(C,{key:0})):e(u)?(n(),i("div",J,[d(L,{error:e(u),onReload:e(p)},null,8,["error","onReload"])])):(n(),i("main",K,[I("div",S,[d(N,{ref_key:"runner",ref:m,form:e(c).makeRunnerData(e(f)),params:e(r).query,"is-preview":!0,"enable-auto-focus":!0,broker:e(y),style:{height:"unset",flex:1,overflow:"hidden"},onNavigate:b,onLogout:v,onExit:k,onStart:w},null,8,["form","params","broker"]),d(M,{onExitFullscreenPreview:g})])]))]))}});const ue=D(U,[["__scopeId","data-v-2cdbdd7a"]]);export{ue as default}; +//# sourceMappingURL=FormPreview.66f90019.js.map diff --git a/abstra_statics/dist/assets/FormPreview.bbe125e7.js b/abstra_statics/dist/assets/FormPreview.bbe125e7.js deleted file mode 100644 index 6f263bc7e1..0000000000 --- a/abstra_statics/dist/assets/FormPreview.bbe125e7.js +++ /dev/null @@ -1,2 +0,0 @@ -import{d as x,v as P,r as F,K as R,b as n,c as i,z as e,t as B,e as d,x as I,H as q,J as E,q as D}from"./registerWidgets.3fe0df5a.js";import{L as C}from"./CircularLoading.2fb746db.js";import{E as L}from"./Error.0e8ed62a.js";import{F as N,R as H}from"./broker.4d1bc0fe.js";import{B as M}from"./BackButton.cd31ec0c.js";import{a as _}from"./asyncComputed.4b275614.js";import{F as V}from"./forms.9088f82a.js";import{W}from"./workspaces.220ebb5a.js";import"./lottie.8f58e4c7.js";import"./passwordlessManager.f53316a7.js";import"./pubsub.909df758.js";import"./icons.9d575a00.js";import"./ActionButton.vue_vue_type_script_setup_true_lang.9bc2be06.js";import"./Passwordless.15dd7595.js";import"./executeJs.9eb1c025.js";import"./PlayerNavbar.9ff5d98a.js";import"./index.776642db.js";import"./WidgetsFrame.c900894c.js";import"./colors.b2406923.js";import"./Modal.32a3d62d.js";import"./activeRecord.2bc1b71f.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="41242c2a-7e0c-4e59-a08d-9ebe803e2b47",a._sentryDebugIdIdentifier="sentry-dbid-41242c2a-7e0c-4e59-a08d-9ebe803e2b47")}catch{}})();const z={class:"page"},J={key:1,class:"error"},K={key:2,style:{width:"100%",height:"100%",display:"flex"}},S={style:{width:"100%",height:"100%",display:"flex"}},U=x({__name:"FormPreview",setup(a){const t=q(),r=E(),s=P({started:!1}),m=F(null),{loading:h,result:c,error:u,refetch:p}=_(()=>V.get(r.params.formPath)),{result:l}=_(()=>W.get()),y=R(()=>H.create({formPath:r.params.formPath})),v=async()=>{var o;if(!s.started){(o=m.value)==null||o.run();return}s.started=!1},b=({path:o,type:f})=>{f==="dash"?t.push({name:"dashPreview",params:{dashPath:o},query:r.query}):(t.push({name:"form-preview",params:{formPath:o},query:r.query}),p())},g=()=>{t.push(`/_editor/form/${encodeURIComponent(r.params.formPath)}`)},w=()=>{s.started=!0},k=()=>{s.started=!1};return(o,f)=>(n(),i("div",z,[e(h)||!e(c)||!e(l)?(n(),B(C,{key:0})):e(u)?(n(),i("div",J,[d(L,{error:e(u),onReload:e(p)},null,8,["error","onReload"])])):(n(),i("main",K,[I("div",S,[d(N,{ref_key:"runner",ref:m,form:e(c).makeRunnerData(e(l)),params:e(r).query,"is-preview":!0,"enable-auto-focus":!0,broker:e(y),style:{height:"unset",flex:1,overflow:"hidden"},onNavigate:b,onLogout:v,onExit:k,onStart:w},null,8,["form","params","broker"]),d(M,{onExitFullscreenPreview:g})])]))]))}});const ue=D(U,[["__scopeId","data-v-2cdbdd7a"]]);export{ue as default}; -//# sourceMappingURL=FormPreview.bbe125e7.js.map diff --git a/abstra_statics/dist/assets/Forms.282bf526.js b/abstra_statics/dist/assets/Forms.eb14daf1.js similarity index 70% rename from abstra_statics/dist/assets/Forms.282bf526.js rename to abstra_statics/dist/assets/Forms.eb14daf1.js index 475820a38a..4e66b28043 100644 --- a/abstra_statics/dist/assets/Forms.282bf526.js +++ b/abstra_statics/dist/assets/Forms.eb14daf1.js @@ -1,2 +1,2 @@ -import{d as b,K as h,b as g,t as w,z as d,H as _}from"./registerWidgets.3fe0df5a.js";import{f as F,g as C,h as k}from"./icons.9d575a00.js";import{a as D}from"./asyncComputed.4b275614.js";import{F as m}from"./forms.9088f82a.js";import{R as I}from"./RuntimeList.8704ae12.js";import"./activeRecord.2bc1b71f.js";import"./pubsub.909df758.js";import"./DropdownMenu.9edc1223.js";import"./CircularLoading.2fb746db.js";import"./lottie.8f58e4c7.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[n]="70ece4d1-474e-4182-8660-4343a63aa647",a._sentryDebugIdIdentifier="sentry-dbid-70ece4d1-474e-4182-8660-4343a63aa647")}catch{}})();const z=b({__name:"Forms",setup(a){const n=_(),{loading:i,result:r,refetch:c}=D(()=>m.list()),l=({key:e})=>n.push({path:`/_editor/form/${encodeURIComponent(e)}`}),u=async({key:e})=>{var o,t;await((t=(o=r.value)==null?void 0:o.find(s=>s.path===e))==null?void 0:t.duplicate()),c()},p=async()=>{const e=await m.create();l({key:e.path})},f=async({key:e})=>{var o,t;confirm("Are you sure you want to delete this form?")&&(await((t=(o=r.value)==null?void 0:o.find(s=>s.path===e))==null?void 0:t.delete()),c())},y=h(()=>{var e,o;return{columns:[{name:"Form Name"},{name:"Path"},{name:"Form Actions"}],rows:(o=(e=r.value)==null?void 0:e.map(t=>({key:t.path,cells:[{text:t.title,classes:["title","centered"],link:`/_editor/form/${encodeURIComponent(t.path)}`},{text:t.path},{text:"",classes:["centered"],actions:[{icon:F,label:"Delete",onClick:f,dangerous:!0},{icon:C,label:"Edit Form",onClick:l},{icon:k,label:"Duplicate",onClick:u}]}]})))!=null?o:[]}});return(e,o)=>(g(),w(I,{loading:d(i),title:"Dynamic Python forms",description:"Create forms with advanced logic, easy integrations and custom branding.","create-button-text":"Create Form","empty-title":"No forms here yet","video-url":"https://www.youtube.com/embed/tN7SRGmVPwc",table:d(y),onCreate:p},null,8,["loading","table"]))}});export{z as default}; -//# sourceMappingURL=Forms.282bf526.js.map +import{d as b,K as h,b as g,t as w,z as d,H as _}from"./registerWidgets.cb3a7b8d.js";import{f as F,g as C,h as k}from"./icons.39dfa322.js";import{a as D}from"./asyncComputed.31994732.js";import{F as m}from"./forms.f5353181.js";import{R as I}from"./RuntimeList.ec9e2b4b.js";import"./activeRecord.adfc6223.js";import"./pubsub.f85a17d2.js";import"./DropdownMenu.c973057b.js";import"./CircularLoading.1e68d2b1.js";import"./lottie.234eb92e.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[n]="3e9af772-09f3-41bb-81f7-8085471d9663",a._sentryDebugIdIdentifier="sentry-dbid-3e9af772-09f3-41bb-81f7-8085471d9663")}catch{}})();const z=b({__name:"Forms",setup(a){const n=_(),{loading:i,result:r,refetch:c}=D(()=>m.list()),l=({key:e})=>n.push({path:`/_editor/form/${encodeURIComponent(e)}`}),u=async({key:e})=>{var o,t;await((t=(o=r.value)==null?void 0:o.find(s=>s.path===e))==null?void 0:t.duplicate()),c()},p=async()=>{const e=await m.create();l({key:e.path})},f=async({key:e})=>{var o,t;confirm("Are you sure you want to delete this form?")&&(await((t=(o=r.value)==null?void 0:o.find(s=>s.path===e))==null?void 0:t.delete()),c())},y=h(()=>{var e,o;return{columns:[{name:"Form Name"},{name:"Path"},{name:"Form Actions"}],rows:(o=(e=r.value)==null?void 0:e.map(t=>({key:t.path,cells:[{text:t.title,classes:["title","centered"],link:`/_editor/form/${encodeURIComponent(t.path)}`},{text:t.path},{text:"",classes:["centered"],actions:[{icon:F,label:"Delete",onClick:f,dangerous:!0},{icon:C,label:"Edit Form",onClick:l},{icon:k,label:"Duplicate",onClick:u}]}]})))!=null?o:[]}});return(e,o)=>(g(),w(I,{loading:d(i),title:"Dynamic Python forms",description:"Create forms with advanced logic, easy integrations and custom branding.","create-button-text":"Create Form","empty-title":"No forms here yet","video-url":"https://www.youtube.com/embed/tN7SRGmVPwc",table:d(y),onCreate:p},null,8,["loading","table"]))}});export{z as default}; +//# sourceMappingURL=Forms.eb14daf1.js.map diff --git a/abstra_statics/dist/assets/Home.07e12688.js b/abstra_statics/dist/assets/Home.07e12688.js deleted file mode 100644 index feb7842c42..0000000000 --- a/abstra_statics/dist/assets/Home.07e12688.js +++ /dev/null @@ -1,2 +0,0 @@ -import{M as r}from"./Modal.32a3d62d.js";import{d as a,v as c,r as d,b as _,c as f,e as n,w as l,F as i,a as m,x as u,q as b}from"./registerWidgets.3fe0df5a.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="e232e875-0fb1-494d-b601-7af00b544690",e._sentryDebugIdIdentifier="sentry-dbid-e232e875-0fb1-494d-b601-7af00b544690")}catch{}})();const p=["src"],y=a({__name:"Home",setup(e){const o=c({onboardingForm:""}),t=d(null);return(g,v)=>{const s=m("router-view");return _(),f(i,null,[n(s,{class:"router"}),n(r,{ref_key:"modal",ref:t},{content:l(()=>[u("iframe",{class:"form",src:o.onboardingForm},null,8,p)]),_:1},512)],64)}}});const I=b(y,[["__scopeId","data-v-8c8bc27e"]]);export{I as default}; -//# sourceMappingURL=Home.07e12688.js.map diff --git a/abstra_statics/dist/assets/Home.c2515fd7.js b/abstra_statics/dist/assets/Home.c2515fd7.js new file mode 100644 index 0000000000..c255d894d1 --- /dev/null +++ b/abstra_statics/dist/assets/Home.c2515fd7.js @@ -0,0 +1,2 @@ +import{M as r}from"./Modal.43c3d47a.js";import{d as a,v as d,r as c,b as _,c as l,e as n,w as f,F as i,a as m,x as u,q as p}from"./registerWidgets.cb3a7b8d.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="d7e23cdc-6add-47e4-9fe7-d250b32e1cad",e._sentryDebugIdIdentifier="sentry-dbid-d7e23cdc-6add-47e4-9fe7-d250b32e1cad")}catch{}})();const b=["src"],y=a({__name:"Home",setup(e){const o=d({onboardingForm:""}),t=c(null);return(g,v)=>{const s=m("router-view");return _(),l(i,null,[n(s,{class:"router"}),n(r,{ref_key:"modal",ref:t},{content:f(()=>[u("iframe",{class:"form",src:o.onboardingForm},null,8,b)]),_:1},512)],64)}}});const I=p(y,[["__scopeId","data-v-8c8bc27e"]]);export{I as default}; +//# sourceMappingURL=Home.c2515fd7.js.map diff --git a/abstra_statics/dist/assets/HookEditor.737124d4.js b/abstra_statics/dist/assets/HookEditor.737124d4.js new file mode 100644 index 0000000000..72a48d7ba0 --- /dev/null +++ b/abstra_statics/dist/assets/HookEditor.737124d4.js @@ -0,0 +1,2 @@ +import{d as w,b as o,c as a,e as n,q as S,r as R,U as k,N as f,x as t,F as x,L as P,v as U,a as V,t as $,z as c,W as g,Z as B,a3 as q,D as H,O,Q as J,w as y,J as L}from"./registerWidgets.cb3a7b8d.js";import{T as N,a as I}from"./Tab.27dc38aa.js";import{L as D}from"./CircularLoading.1e68d2b1.js";import{R as A,L as E,S as G,_ as M}from"./UnsavedChangesHandler.vue_vue_type_script_setup_true_lang.35587b62.js";import{a as Q}from"./asyncComputed.31994732.js";import{H as F}from"./hooks.fd4bb08f.js";import{B as j}from"./BackButton.677abc51.js";import{B as z,C as W,f as Z}from"./icons.39dfa322.js";import{S as K}from"./SaveButton.b678d3d3.js";import{D as X}from"./DocsButton.495d0473.js";import"./lottie.234eb92e.js";import"./forms.f5353181.js";import"./activeRecord.adfc6223.js";import"./pubsub.f85a17d2.js";import"./dashes.3c9b04b3.js";import"./runnerData.7b7cb682.js";import"./jobs.d0693d2f.js";import"./workspaces.5f21a554.js";import"./uuid.0e63ad64.js";import"./login.ce8787fb.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new Error().stack;d&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[d]="4f8db17c-9b0a-4087-8d21-a042b2f4a27d",s._sentryDebugIdIdentifier="sentry-dbid-4f8db17c-9b0a-4087-8d21-a042b2f4a27d")}catch{}})();const Y={class:"hook-settings"},ee=w({__name:"HookSettings",props:{hook:null},setup(s){return(d,u)=>(o(),a("div",Y,[n(A,{runtime:s.hook},null,8,["runtime"])]))}});const oe=S(ee,[["__scopeId","data-v-6e8accf0"]]),te={class:"options-wrapper"},se=["onClick"],ae=w({__name:"ADropdown",props:{options:null,value:null},emits:["select"],setup(s,{emit:d}){const u=R(null),e=i=>{var m;d("select",i),(m=u.value)==null||m.blur()};return(i,m)=>(o(),a("div",{ref_key:"dropdown",ref:u,class:"dropdown",tabindex:"1"},[k(f(s.value)+" ",1),t("div",te,[(o(!0),a(x,null,P(s.options,p=>(o(),a("div",{key:p.value,class:"option",onClick:T=>e(p.value)},f(p.label),9,se))),128))])],512))}});const ne=S(ae,[["__scopeId","data-v-cac46a2e"]]),C=s=>(O("data-v-36cb1667"),s=s(),J(),s),le={class:"hook-runner"},ie={class:"title"},re={class:"section"},ce=C(()=>t("div",{class:"section-header"},"Request configuration",-1)),de=C(()=>t("div",{class:"subsection-label"},"Method",-1)),ue={class:"subsection-label"},pe=["onUpdate:modelValue"],_e=["onUpdate:modelValue"],he={key:0,class:"subsection-label"},me={class:"property"},ve=C(()=>t("div",{class:"property-label"},"Body is JSON",-1)),fe={class:"section"},ye=C(()=>t("div",{class:"section-header"},"Response",-1)),ke={key:0,class:"section"},be={class:"no-execution-message"},ge={key:1,class:"section"},xe=w({__name:"HookRunner",props:{hook:null},setup(s){const d=s,u=[{label:"GET",value:"GET"},{label:"POST",value:"POST"},{label:"PUT",value:"PUT"},{label:"PATCH",value:"PATCH"}],e=U({queryParams:[{name:"",value:""}],method:"GET",body:"",loading:!1,isBodyJson:!0}),i=E.create(),m=async()=>{const v={"Content-Type":e.isBodyJson?"application/json":"text/plain"},r=await d.hook.test({method:e.method,query:e.queryParams.reduce((_,{name:l,value:h})=>(l&&h&&(_[l]=h),_),{}),body:e.body,headers:{...v}});e.response=r,r.stderr&&i.log({type:"stderr",log:r.stderr}),r.stdout&&i.log({type:"stdout",log:r.stdout})},p=()=>{e.queryParams.push({name:"",value:""})},T=v=>{e.queryParams=e.queryParams.filter((r,_)=>_!==v)};return(v,r)=>{const _=V("icon");return o(),a("div",le,[t("div",ie,[k(" Test your hook here "),e.loading?(o(),$(D,{key:0})):(o(),a("button",{key:1,class:"execution-button",onClick:m},[n(_,{path:c(z),width:"14",height:"14",fill:"#ffffff"},null,8,["path"]),k(" Run ")]))]),t("div",re,[ce,de,n(ne,{value:e.method,options:u,onSelect:r[0]||(r[0]=l=>e.method=l)},null,8,["value"]),t("div",ue,[k(" Query Params "),n(_,{class:"action-icon",path:c(W),width:"16",height:"16","fill-hover":"#777777",onClick:p},null,8,["path"])]),(o(!0),a(x,null,P(e.queryParams,(l,h)=>(o(),a("div",{key:h,class:"params-input"},[g(t("input",{"onUpdate:modelValue":b=>l.name=b,type:"text",placeholder:"name"},null,8,pe),[[B,l.name]]),g(t("input",{"onUpdate:modelValue":b=>l.value=b,type:"text",placeholder:"value"},null,8,_e),[[B,l.value]]),n(_,{class:"delete-icon",path:c(Z),"fill-hover":"#777777",onClick:b=>T(h)},null,8,["path","onClick"])]))),128)),e.method!=="GET"?(o(),a("div",he,[k(" Request Body "),t("div",me,[g(t("input",{"onUpdate:modelValue":r[1]||(r[1]=l=>e.isBodyJson=l),class:"checkbox-input",type:"checkbox"},null,512),[[q,e.isBodyJson]]),ve])])):H("",!0),e.method!=="GET"?g((o(),a("textarea",{key:1,"onUpdate:modelValue":r[2]||(r[2]=l=>e.body=l)},null,512)),[[B,e.body]]):H("",!0)]),t("div",fe,[ye,e.loading?(o(),a("div",ke,[t("div",be,[n(D)])])):e.response?(o(),a("div",ge,[t("pre",null,"Status: "+f(e.response.status),1),(o(!0),a(x,null,P(e.response.headers,(l,h)=>(o(),a("pre",{key:h},f(h)+": "+f(l),1))),128)),t("pre",null,f(e.response.body),1)])):H("",!0)])])}}});const we=S(xe,[["__scopeId","data-v-36cb1667"]]),Se={class:"page"},Ce={key:0,class:"loading"},Te=w({__name:"HookEditor",setup(s){const d=L(),u=E.create(),{loading:e,result:i}=Q(async()=>await F.get(d.params.hookPath)),m=async p=>{i.value&&(i.value.path=p,await i.value.save())};return(p,T)=>{var v;return o(),a(x,null,[t("div",Se,[c(e)||!c(i)?(o(),a("div",Ce,[n(D)])):(o(),$(N,{key:1,class:"editor"},{left:y(()=>[n(j,{link:"/_editor/hooks"})]),right:y(()=>[n(X,{path:"hooks"}),n(K,{model:c(i)},null,8,["model"])]),default:y(()=>[n(I,{title:"Debug"},{default:y(()=>[n(we,{hook:c(i)},null,8,["hook"])]),_:1}),n(I,{title:"Settings"},{default:y(()=>[n(oe,{hook:c(i),onUpdatePath:m},null,8,["hook"])]),_:1})]),_:1})),n(G,{"log-service":c(u),runtime:"hooks"},null,8,["log-service"])]),n(M,{"has-changes":(v=c(i))==null?void 0:v.hasChanges()},null,8,["has-changes"])],64)}}});const je=S(Te,[["__scopeId","data-v-69cc27ff"]]);export{je as default}; +//# sourceMappingURL=HookEditor.737124d4.js.map diff --git a/abstra_statics/dist/assets/HookEditor.c565851d.js b/abstra_statics/dist/assets/HookEditor.c565851d.js deleted file mode 100644 index b66e27591b..0000000000 --- a/abstra_statics/dist/assets/HookEditor.c565851d.js +++ /dev/null @@ -1,2 +0,0 @@ -import{d as w,b as o,c as n,e as a,q as S,r as R,U as k,N as f,x as t,F as x,L as P,v as U,a as V,t as $,z as r,W as g,Z as B,a3 as q,D as H,O,Q as J,w as y,J as L}from"./registerWidgets.3fe0df5a.js";import{T as N,a as I}from"./Tab.7855495c.js";import{L as D}from"./CircularLoading.2fb746db.js";import{R as A,L as E,S as G,_ as M}from"./UnsavedChangesHandler.vue_vue_type_script_setup_true_lang.a909e3ed.js";import{a as Q}from"./asyncComputed.4b275614.js";import{H as F}from"./hooks.56004b79.js";import{B as j}from"./BackButton.38e76e75.js";import{B as z,C as W,f as Z}from"./icons.9d575a00.js";import{S as K}from"./SaveButton.e20203fa.js";import{D as X}from"./DocsButton.0b9b3a67.js";import"./lottie.8f58e4c7.js";import"./forms.9088f82a.js";import"./activeRecord.2bc1b71f.js";import"./pubsub.909df758.js";import"./dashes.9a4cf820.js";import"./runnerData.331b4b09.js";import"./jobs.99d61147.js";import"./workspaces.220ebb5a.js";import"./uuid.8e57fc19.js";import"./login.7c65daa3.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new Error().stack;d&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[d]="a434f296-b82f-4f2b-bcc5-6797c40e90db",s._sentryDebugIdIdentifier="sentry-dbid-a434f296-b82f-4f2b-bcc5-6797c40e90db")}catch{}})();const Y={class:"hook-settings"},ee=w({__name:"HookSettings",props:{hook:null},setup(s){return(d,u)=>(o(),n("div",Y,[a(A,{runtime:s.hook},null,8,["runtime"])]))}});const oe=S(ee,[["__scopeId","data-v-6e8accf0"]]),te={class:"options-wrapper"},se=["onClick"],ne=w({__name:"ADropdown",props:{options:null,value:null},emits:["select"],setup(s,{emit:d}){const u=R(null),e=c=>{var m;d("select",c),(m=u.value)==null||m.blur()};return(c,m)=>(o(),n("div",{ref_key:"dropdown",ref:u,class:"dropdown",tabindex:"1"},[k(f(s.value)+" ",1),t("div",te,[(o(!0),n(x,null,P(s.options,p=>(o(),n("div",{key:p.value,class:"option",onClick:T=>e(p.value)},f(p.label),9,se))),128))])],512))}});const ae=S(ne,[["__scopeId","data-v-cac46a2e"]]),C=s=>(O("data-v-36cb1667"),s=s(),J(),s),le={class:"hook-runner"},ce={class:"title"},ie={class:"section"},re=C(()=>t("div",{class:"section-header"},"Request configuration",-1)),de=C(()=>t("div",{class:"subsection-label"},"Method",-1)),ue={class:"subsection-label"},pe=["onUpdate:modelValue"],_e=["onUpdate:modelValue"],he={key:0,class:"subsection-label"},me={class:"property"},ve=C(()=>t("div",{class:"property-label"},"Body is JSON",-1)),fe={class:"section"},ye=C(()=>t("div",{class:"section-header"},"Response",-1)),ke={key:0,class:"section"},be={class:"no-execution-message"},ge={key:1,class:"section"},xe=w({__name:"HookRunner",props:{hook:null},setup(s){const d=s,u=[{label:"GET",value:"GET"},{label:"POST",value:"POST"},{label:"PUT",value:"PUT"},{label:"PATCH",value:"PATCH"}],e=U({queryParams:[{name:"",value:""}],method:"GET",body:"",loading:!1,isBodyJson:!0}),c=E.create(),m=async()=>{const v={"Content-Type":e.isBodyJson?"application/json":"text/plain"},i=await d.hook.test({method:e.method,query:e.queryParams.reduce((_,{name:l,value:h})=>(l&&h&&(_[l]=h),_),{}),body:e.body,headers:{...v}});e.response=i,i.stderr&&c.log({type:"stderr",log:i.stderr}),i.stdout&&c.log({type:"stdout",log:i.stdout})},p=()=>{e.queryParams.push({name:"",value:""})},T=v=>{e.queryParams=e.queryParams.filter((i,_)=>_!==v)};return(v,i)=>{const _=V("icon");return o(),n("div",le,[t("div",ce,[k(" Test your hook here "),e.loading?(o(),$(D,{key:0})):(o(),n("button",{key:1,class:"execution-button",onClick:m},[a(_,{path:r(z),width:"14",height:"14",fill:"#ffffff"},null,8,["path"]),k(" Run ")]))]),t("div",ie,[re,de,a(ae,{value:e.method,options:u,onSelect:i[0]||(i[0]=l=>e.method=l)},null,8,["value"]),t("div",ue,[k(" Query Params "),a(_,{class:"action-icon",path:r(W),width:"16",height:"16","fill-hover":"#777777",onClick:p},null,8,["path"])]),(o(!0),n(x,null,P(e.queryParams,(l,h)=>(o(),n("div",{key:h,class:"params-input"},[g(t("input",{"onUpdate:modelValue":b=>l.name=b,type:"text",placeholder:"name"},null,8,pe),[[B,l.name]]),g(t("input",{"onUpdate:modelValue":b=>l.value=b,type:"text",placeholder:"value"},null,8,_e),[[B,l.value]]),a(_,{class:"delete-icon",path:r(Z),"fill-hover":"#777777",onClick:b=>T(h)},null,8,["path","onClick"])]))),128)),e.method!=="GET"?(o(),n("div",he,[k(" Request Body "),t("div",me,[g(t("input",{"onUpdate:modelValue":i[1]||(i[1]=l=>e.isBodyJson=l),class:"checkbox-input",type:"checkbox"},null,512),[[q,e.isBodyJson]]),ve])])):H("",!0),e.method!=="GET"?g((o(),n("textarea",{key:1,"onUpdate:modelValue":i[2]||(i[2]=l=>e.body=l)},null,512)),[[B,e.body]]):H("",!0)]),t("div",fe,[ye,e.loading?(o(),n("div",ke,[t("div",be,[a(D)])])):e.response?(o(),n("div",ge,[t("pre",null,"Status: "+f(e.response.status),1),(o(!0),n(x,null,P(e.response.headers,(l,h)=>(o(),n("pre",{key:h},f(h)+": "+f(l),1))),128)),t("pre",null,f(e.response.body),1)])):H("",!0)])])}}});const we=S(xe,[["__scopeId","data-v-36cb1667"]]),Se={class:"page"},Ce={key:0,class:"loading"},Te=w({__name:"HookEditor",setup(s){const d=L(),u=E.create(),{loading:e,result:c}=Q(async()=>await F.get(d.params.hookPath)),m=async p=>{c.value&&(c.value.path=p,await c.value.save())};return(p,T)=>{var v;return o(),n(x,null,[t("div",Se,[r(e)||!r(c)?(o(),n("div",Ce,[a(D)])):(o(),$(N,{key:1,class:"editor"},{left:y(()=>[a(j,{link:"/_editor/hooks"})]),right:y(()=>[a(X,{path:"hooks"}),a(K,{model:r(c)},null,8,["model"])]),default:y(()=>[a(I,{title:"Debug"},{default:y(()=>[a(we,{hook:r(c)},null,8,["hook"])]),_:1}),a(I,{title:"Settings"},{default:y(()=>[a(oe,{hook:r(c),onUpdatePath:m},null,8,["hook"])]),_:1})]),_:1})),a(G,{"log-service":r(u),runtime:"hooks"},null,8,["log-service"])]),a(M,{"has-changes":(v=r(c))==null?void 0:v.hasChanges()},null,8,["has-changes"])],64)}}});const je=S(Te,[["__scopeId","data-v-69cc27ff"]]);export{je as default}; -//# sourceMappingURL=HookEditor.c565851d.js.map diff --git a/abstra_statics/dist/assets/Hooks.45caa7ab.js b/abstra_statics/dist/assets/Hooks.45caa7ab.js deleted file mode 100644 index 93b619a027..0000000000 --- a/abstra_statics/dist/assets/Hooks.45caa7ab.js +++ /dev/null @@ -1,2 +0,0 @@ -import{d as y,K as h,b,t as g,z as d,H as _}from"./registerWidgets.3fe0df5a.js";import{f as H,g as w,h as C}from"./icons.9d575a00.js";import{a as I}from"./asyncComputed.4b275614.js";import{H as p}from"./hooks.56004b79.js";import{R as x}from"./RuntimeList.8704ae12.js";import"./activeRecord.2bc1b71f.js";import"./pubsub.909df758.js";import"./DropdownMenu.9edc1223.js";import"./CircularLoading.2fb746db.js";import"./lottie.8f58e4c7.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[n]="9d5aa9ef-ac76-4698-b108-5776ce29c655",a._sentryDebugIdIdentifier="sentry-dbid-9d5aa9ef-ac76-4698-b108-5776ce29c655")}catch{}})();const $=y({__name:"Hooks",setup(a){const n=_(),{loading:r,result:s,refetch:c}=I(()=>p.list()),l=({key:e})=>n.push({path:`/_editor/hook/${encodeURIComponent(e)}`}),u=async({key:e})=>{var o,t;await((t=(o=s.value)==null?void 0:o.find(i=>i.path===e))==null?void 0:t.duplicate()),c()},m=async()=>{const e=await p.create();l({key:e.path})},f=async({key:e})=>{var o,t;confirm("Are you sure you want to delete this hook?")&&(await((t=(o=s.value)==null?void 0:o.find(i=>i.path===e))==null?void 0:t.delete()),c())},k=h(()=>{var e,o;return{columns:[{name:"Hook Name"},{name:"Path"},{name:"Hook Actions"}],rows:(o=(e=s.value)==null?void 0:e.map(t=>({key:t.path,cells:[{text:t.title,classes:["title","centered"],link:`/_editor/hook/${encodeURIComponent(t.path)}`},{text:t.path},{text:"",classes:["centered"],actions:[{icon:H,label:"Delete",onClick:f,dangerous:!0},{icon:w,label:"Edit Hook",onClick:l},{icon:C,label:"Duplicate",onClick:u}]}]})))!=null?o:[]}});return(e,o)=>(b(),g(x,{loading:d(r),title:"Python Hooks",description:"Trigger your Python scripts with a request.","create-button-text":"Create Hook","empty-title":"No hooks here yet",table:d(k),onCreate:m},null,8,["loading","table"]))}});export{$ as default}; -//# sourceMappingURL=Hooks.45caa7ab.js.map diff --git a/abstra_statics/dist/assets/Hooks.c53952b8.js b/abstra_statics/dist/assets/Hooks.c53952b8.js new file mode 100644 index 0000000000..c2d675dd73 --- /dev/null +++ b/abstra_statics/dist/assets/Hooks.c53952b8.js @@ -0,0 +1,2 @@ +import{d as k,K as y,b as h,t as g,z as d,H as _}from"./registerWidgets.cb3a7b8d.js";import{f as H,g as w,h as C}from"./icons.39dfa322.js";import{a as I}from"./asyncComputed.31994732.js";import{H as p}from"./hooks.fd4bb08f.js";import{R as x}from"./RuntimeList.ec9e2b4b.js";import"./activeRecord.adfc6223.js";import"./pubsub.f85a17d2.js";import"./DropdownMenu.c973057b.js";import"./CircularLoading.1e68d2b1.js";import"./lottie.234eb92e.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[a]="c5ce1b87-c640-4e9b-b385-6087def9bc32",n._sentryDebugIdIdentifier="sentry-dbid-c5ce1b87-c640-4e9b-b385-6087def9bc32")}catch{}})();const $=k({__name:"Hooks",setup(n){const a=_(),{loading:r,result:s,refetch:c}=I(()=>p.list()),l=({key:e})=>a.push({path:`/_editor/hook/${encodeURIComponent(e)}`}),u=async({key:e})=>{var o,t;await((t=(o=s.value)==null?void 0:o.find(i=>i.path===e))==null?void 0:t.duplicate()),c()},m=async()=>{const e=await p.create();l({key:e.path})},f=async({key:e})=>{var o,t;confirm("Are you sure you want to delete this hook?")&&(await((t=(o=s.value)==null?void 0:o.find(i=>i.path===e))==null?void 0:t.delete()),c())},b=y(()=>{var e,o;return{columns:[{name:"Hook Name"},{name:"Path"},{name:"Hook Actions"}],rows:(o=(e=s.value)==null?void 0:e.map(t=>({key:t.path,cells:[{text:t.title,classes:["title","centered"],link:`/_editor/hook/${encodeURIComponent(t.path)}`},{text:t.path},{text:"",classes:["centered"],actions:[{icon:H,label:"Delete",onClick:f,dangerous:!0},{icon:w,label:"Edit Hook",onClick:l},{icon:C,label:"Duplicate",onClick:u}]}]})))!=null?o:[]}});return(e,o)=>(h(),g(x,{loading:d(r),title:"Python Hooks",description:"Trigger your Python scripts with a request.","create-button-text":"Create Hook","empty-title":"No hooks here yet",table:d(b),onCreate:m},null,8,["loading","table"]))}});export{$ as default}; +//# sourceMappingURL=Hooks.c53952b8.js.map diff --git a/abstra_statics/dist/assets/JobEditor.750a19ad.js b/abstra_statics/dist/assets/JobEditor.57ef240b.js similarity index 96% rename from abstra_statics/dist/assets/JobEditor.750a19ad.js rename to abstra_statics/dist/assets/JobEditor.57ef240b.js index fb3ff779e0..05940c9486 100644 --- a/abstra_statics/dist/assets/JobEditor.750a19ad.js +++ b/abstra_statics/dist/assets/JobEditor.57ef240b.js @@ -1,2 +1,2 @@ -import{a1 as ie,d as H,o as ne,v as q,r as $,b as k,c as X,x as _,F as x,L as A,N as C,z as T,W as j,ac as L,U as N,O as K,Q,q as R,a2 as ee,K as U,e as D,G as te,t as P,D as se,w as F,J as ue}from"./registerWidgets.3fe0df5a.js";import{T as ce,a as le}from"./Tab.7855495c.js";import{L as de}from"./CircularLoading.2fb746db.js";import{a as he}from"./asyncComputed.4b275614.js";import{J as pe}from"./jobs.99d61147.js";import{S as fe}from"./SaveButton.e20203fa.js";import{B as ve}from"./BackButton.38e76e75.js";import{S as me,_ as ye,R as _e,L as ge}from"./UnsavedChangesHandler.vue_vue_type_script_setup_true_lang.a909e3ed.js";import{D as be}from"./DocsButton.0b9b3a67.js";import"./lottie.8f58e4c7.js";import"./activeRecord.2bc1b71f.js";import"./pubsub.909df758.js";import"./icons.9d575a00.js";import"./forms.9088f82a.js";import"./dashes.9a4cf820.js";import"./runnerData.331b4b09.js";import"./hooks.56004b79.js";import"./workspaces.220ebb5a.js";import"./uuid.8e57fc19.js";import"./login.7c65daa3.js";(function(){try{var p=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},g=new Error().stack;g&&(p._sentryDebugIds=p._sentryDebugIds||{},p._sentryDebugIds[g]="26195265-f444-4449-a996-9b71e9d7fbe0",p._sentryDebugIdIdentifier="sentry-dbid-26195265-f444-4449-a996-9b71e9d7fbe0")}catch{}})();var oe={exports:{}};(function(p,g){(function(f,h){p.exports=h()})(globalThis,function(){return(()=>{var l={794:(m,u,b)=>{Object.defineProperty(u,"__esModule",{value:!0}),u.CronParser=void 0;var n=b(586),y=function(){function c(t,e,i){e===void 0&&(e=!0),i===void 0&&(i=!1),this.expression=t,this.dayOfWeekStartIndexZero=e,this.monthStartIndexZero=i}return c.prototype.parse=function(){var t=this.extractParts(this.expression);return this.normalize(t),this.validate(t),t},c.prototype.extractParts=function(t){if(!this.expression)throw new Error("Expression is empty");var e=t.trim().split(/[ ]+/);if(e.length<5)throw new Error("Expression has only ".concat(e.length," part").concat(e.length==1?"":"s",". At least 5 parts are required."));if(e.length==5)e.unshift(""),e.push("");else if(e.length==6){var i=/\d{4}$/.test(e[5])||e[4]=="?"||e[2]=="?";i?e.unshift(""):e.push("")}else if(e.length>7)throw new Error("Expression has ".concat(e.length," parts; too many!"));return e},c.prototype.normalize=function(t){var e=this;if(t[3]=t[3].replace("?","*"),t[5]=t[5].replace("?","*"),t[2]=t[2].replace("?","*"),t[0].indexOf("0/")==0&&(t[0]=t[0].replace("0/","*/")),t[1].indexOf("0/")==0&&(t[1]=t[1].replace("0/","*/")),t[2].indexOf("0/")==0&&(t[2]=t[2].replace("0/","*/")),t[3].indexOf("1/")==0&&(t[3]=t[3].replace("1/","*/")),t[4].indexOf("1/")==0&&(t[4]=t[4].replace("1/","*/")),t[6].indexOf("1/")==0&&(t[6]=t[6].replace("1/","*/")),t[5]=t[5].replace(/(^\d)|([^#/\s]\d)/g,function(O){var M=O.replace(/\D/,""),w=M;return e.dayOfWeekStartIndexZero?M=="7"&&(w="0"):w=(parseInt(M)-1).toString(),O.replace(M,w)}),t[5]=="L"&&(t[5]="6"),t[3]=="?"&&(t[3]="*"),t[3].indexOf("W")>-1&&(t[3].indexOf(",")>-1||t[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var i={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var o in i)t[5]=t[5].replace(new RegExp(o,"gi"),i[o].toString());t[4]=t[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(O){var M=O.replace(/\D/,""),w=M;return e.monthStartIndexZero&&(w=(parseInt(M)+1).toString()),O.replace(M,w)});var r={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var a in r)t[4]=t[4].replace(new RegExp(a,"gi"),r[a].toString());t[0]=="0"&&(t[0]=""),!/\*|\-|\,|\//.test(t[2])&&(/\*|\//.test(t[1])||/\*|\//.test(t[0]))&&(t[2]+="-".concat(t[2]));for(var s=0;s-1&&!/^\*|\-|\,/.test(t[s])){var d=null;switch(s){case 4:d="12";break;case 5:d="6";break;case 6:d="9999";break;default:d=null;break}if(d!==null){var S=t[s].split("/");t[s]="".concat(S[0],"-").concat(d,"/").concat(S[1])}}},c.prototype.validate=function(t){this.assertNoInvalidCharacters("DOW",t[5]),this.assertNoInvalidCharacters("DOM",t[3]),this.validateRange(t)},c.prototype.validateRange=function(t){n.default.secondRange(t[0]),n.default.minuteRange(t[1]),n.default.hourRange(t[2]),n.default.dayOfMonthRange(t[3]),n.default.monthRange(t[4],this.monthStartIndexZero),n.default.dayOfWeekRange(t[5],this.dayOfWeekStartIndexZero)},c.prototype.assertNoInvalidCharacters=function(t,e){var i=e.match(/[A-KM-VX-Z]+/gi);if(i&&i.length)throw new Error("".concat(t," part contains invalid values: '").concat(i.toString(),"'"))},c}();u.CronParser=y},728:(m,u,b)=>{Object.defineProperty(u,"__esModule",{value:!0}),u.ExpressionDescriptor=void 0;var n=b(910),y=b(794),c=function(){function t(e,i){if(this.expression=e,this.options=i,this.expressionParts=new Array(5),!this.options.locale&&t.defaultLocale&&(this.options.locale=t.defaultLocale),!t.locales[this.options.locale]){var o=Object.keys(t.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(o,"'.")),this.options.locale=o}this.i18n=t.locales[this.options.locale],i.use24HourTimeFormat===void 0&&(i.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return t.toString=function(e,i){var o=i===void 0?{}:i,r=o.throwExceptionOnParseError,a=r===void 0?!0:r,s=o.verbose,d=s===void 0?!1:s,S=o.dayOfWeekStartIndexZero,O=S===void 0?!0:S,M=o.monthStartIndexZero,w=M===void 0?!1:M,I=o.use24HourTimeFormat,E=o.locale,J=E===void 0?null:E,W={throwExceptionOnParseError:a,verbose:d,dayOfWeekStartIndexZero:O,monthStartIndexZero:w,use24HourTimeFormat:I,locale:J},V=new t(e,W);return V.getFullDescription()},t.initialize=function(e,i){i===void 0&&(i="en"),t.specialCharacters=["/","-",",","*"],t.defaultLocale=i,e.load(t.locales)},t.prototype.getFullDescription=function(){var e="";try{var i=new y.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);this.expressionParts=i.parse();var o=this.getTimeOfDayDescription(),r=this.getDayOfMonthDescription(),a=this.getMonthDescription(),s=this.getDayOfWeekDescription(),d=this.getYearDescription();e+=o+r+s+a+d,e=this.transformVerbosity(e,!!this.options.verbose),e=e.charAt(0).toLocaleUpperCase()+e.substr(1)}catch(S){if(!this.options.throwExceptionOnParseError)e=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(S)}return e},t.prototype.getTimeOfDayDescription=function(){var e=this.expressionParts[0],i=this.expressionParts[1],o=this.expressionParts[2],r="";if(!n.StringUtilities.containsAny(i,t.specialCharacters)&&!n.StringUtilities.containsAny(o,t.specialCharacters)&&!n.StringUtilities.containsAny(e,t.specialCharacters))r+=this.i18n.atSpace()+this.formatTime(o,i,e);else if(!e&&i.indexOf("-")>-1&&!(i.indexOf(",")>-1)&&!(i.indexOf("/")>-1)&&!n.StringUtilities.containsAny(o,t.specialCharacters)){var a=i.split("-");r+=n.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(o,a[0],""),this.formatTime(o,a[1],""))}else if(!e&&o.indexOf(",")>-1&&o.indexOf("-")==-1&&o.indexOf("/")==-1&&!n.StringUtilities.containsAny(i,t.specialCharacters)){var s=o.split(",");r+=this.i18n.at();for(var d=0;d1){var a=r[r.length-1].index;o=o.substring(0,a)+":59"+o.substring(a+3)}}return o},t.prototype.getDayOfWeekDescription=function(){var e=this,i=this.i18n.daysOfTheWeek(),o=null;return this.expressionParts[5]=="*"?o="":o=this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(r,a){var s=r;return r.indexOf("#")>-1?s=r.substr(0,r.indexOf("#")):r.indexOf("L")>-1&&(s=s.replace("L","")),e.i18n.daysOfTheWeekInCase?e.i18n.daysOfTheWeekInCase(a)[parseInt(s)]:i[parseInt(s)]},function(r){return parseInt(r)==1?"":n.StringUtilities.format(e.i18n.commaEveryX0DaysOfTheWeek(r),r)},function(r){var a=r.substring(0,r.indexOf("-")),s=e.expressionParts[3]!="*";return s?e.i18n.commaAndX0ThroughX1(a):e.i18n.commaX0ThroughX1(a)},function(r){var a=null;if(r.indexOf("#")>-1){var s=r.substring(r.indexOf("#")+1),d=r.substring(0,r.indexOf("#")),S=null;switch(s){case"1":S=e.i18n.first(d);break;case"2":S=e.i18n.second(d);break;case"3":S=e.i18n.third(d);break;case"4":S=e.i18n.fourth(d);break;case"5":S=e.i18n.fifth(d);break}a=e.i18n.commaOnThe(s)+S+e.i18n.spaceX0OfTheMonth()}else if(r.indexOf("L")>-1)a=e.i18n.commaOnTheLastX0OfTheMonth(r.replace("L",""));else{var O=e.expressionParts[3]!="*";a=O?e.i18n.commaAndOnX0():e.i18n.commaOnlyOnX0(r)}return a}),o},t.prototype.getMonthDescription=function(){var e=this,i=this.i18n.monthsOfTheYear(),o=this.getSegmentDescription(this.expressionParts[4],"",function(r,a){return a&&e.i18n.monthsOfTheYearInCase?e.i18n.monthsOfTheYearInCase(a)[parseInt(r)-1]:i[parseInt(r)-1]},function(r){return parseInt(r)==1?"":n.StringUtilities.format(e.i18n.commaEveryX0Months(r),r)},function(r){return e.i18n.commaMonthX0ThroughMonthX1()||e.i18n.commaX0ThroughX1()},function(r){return e.i18n.commaOnlyInMonthX0?e.i18n.commaOnlyInMonthX0():e.i18n.commaOnlyInX0()});return o},t.prototype.getDayOfMonthDescription=function(){var e=this,i=null,o=this.expressionParts[3];switch(o){case"L":i=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":i=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var r=o.match(/(\d{1,2}W)|(W\d{1,2})/);if(r){var a=parseInt(r[0].replace("W","")),s=a==1?this.i18n.firstWeekday():n.StringUtilities.format(this.i18n.weekdayNearestDayX0(),a.toString());i=n.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),s);break}else{var d=o.match(/L-(\d{1,2})/);if(d){var S=d[1];i=n.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(S),S);break}else{if(o=="*"&&this.expressionParts[5]!="*")return"";i=this.getSegmentDescription(o,this.i18n.commaEveryDay(),function(O){return O=="L"?e.i18n.lastDay():e.i18n.dayX0?n.StringUtilities.format(e.i18n.dayX0(),O):O},function(O){return O=="1"?e.i18n.commaEveryDay():e.i18n.commaEveryX0Days(O)},function(O){return e.i18n.commaBetweenDayX0AndX1OfTheMonth(O)},function(O){return e.i18n.commaOnDayX0OfTheMonth(O)})}break}}return i},t.prototype.getYearDescription=function(){var e=this,i=this.getSegmentDescription(this.expressionParts[6],"",function(o){return/^\d+$/.test(o)?new Date(parseInt(o),1).getFullYear().toString():o},function(o){return n.StringUtilities.format(e.i18n.commaEveryX0Years(o),o)},function(o){return e.i18n.commaYearX0ThroughYearX1()||e.i18n.commaX0ThroughX1()},function(o){return e.i18n.commaOnlyInYearX0?e.i18n.commaOnlyInYearX0():e.i18n.commaOnlyInX0()});return i},t.prototype.getSegmentDescription=function(e,i,o,r,a,s){var d=null,S=e.indexOf("/")>-1,O=e.indexOf("-")>-1,M=e.indexOf(",")>-1;if(!e)d="";else if(e==="*")d=i;else if(!S&&!O&&!M)d=n.StringUtilities.format(s(e),o(e));else if(M){for(var w=e.split(","),I="",E=0;E0&&w.length>2&&(I+=",",E0&&w.length>1&&(E==w.length-1||w.length==2)&&(I+="".concat(this.i18n.spaceAnd()," ")),w[E].indexOf("/")>-1||w[E].indexOf("-")>-1){var J=w[E].indexOf("-")>-1&&w[E].indexOf("/")==-1,W=this.getSegmentDescription(w[E],i,o,r,J?this.i18n.commaX0ThroughX1:a,s);J&&(W=W.replace(", ","")),I+=W}else S?I+=this.getSegmentDescription(w[E],i,o,r,a,s):I+=o(w[E]);S?d=I:d=n.StringUtilities.format(s(e),I)}else if(S){var w=e.split("/");if(d=n.StringUtilities.format(r(w[1]),w[1]),w[0].indexOf("-")>-1){var V=this.generateRangeSegmentDescription(w[0],a,o);V.indexOf(", ")!=0&&(d+=", "),d+=V}else if(w[0].indexOf("*")==-1){var Z=n.StringUtilities.format(s(w[0]),o(w[0]));Z=Z.replace(", ",""),d+=n.StringUtilities.format(this.i18n.commaStartingX0(),Z)}}else O&&(d=this.generateRangeSegmentDescription(e,a,o));return d},t.prototype.generateRangeSegmentDescription=function(e,i,o){var r="",a=e.split("-"),s=o(a[0],1),d=o(a[1],2),S=i(e);return r+=n.StringUtilities.format(S,s,d),r},t.prototype.formatTime=function(e,i,o){var r=parseInt(e),a="",s=!1;this.options.use24HourTimeFormat||(s=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),a=s?"".concat(this.getPeriod(r)," "):" ".concat(this.getPeriod(r)),r>12&&(r-=12),r===0&&(r=12));var d=i,S="";return o&&(S=":".concat(("00"+o).substring(o.length))),"".concat(s?a:"").concat(("00"+r.toString()).substring(r.toString().length),":").concat(("00"+d.toString()).substring(d.toString().length)).concat(S).concat(s?"":a)},t.prototype.transformVerbosity=function(e,i){return i||(e=e.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),e=e.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),e=e.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),e=e.replace(/\, ?$/,"")),e},t.prototype.getPeriod=function(e){return e>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},t.locales={},t}();u.ExpressionDescriptor=c},336:(m,u,b)=>{Object.defineProperty(u,"__esModule",{value:!0}),u.enLocaleLoader=void 0;var n=b(751),y=function(){function c(){}return c.prototype.load=function(t){t.en=new n.en},c}();u.enLocaleLoader=y},751:(m,u)=>{Object.defineProperty(u,"__esModule",{value:!0}),u.en=void 0;var b=function(){function n(){}return n.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},n.prototype.atX0MinutesPastTheHourGt20=function(){return null},n.prototype.commaMonthX0ThroughMonthX1=function(){return null},n.prototype.commaYearX0ThroughYearX1=function(){return null},n.prototype.use24HourTimeFormatByDefault=function(){return!1},n.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occured when generating the expression description. Check the cron expression syntax."},n.prototype.everyMinute=function(){return"every minute"},n.prototype.everyHour=function(){return"every hour"},n.prototype.atSpace=function(){return"At "},n.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},n.prototype.at=function(){return"At"},n.prototype.spaceAnd=function(){return" and"},n.prototype.everySecond=function(){return"every second"},n.prototype.everyX0Seconds=function(){return"every %s seconds"},n.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},n.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},n.prototype.everyX0Minutes=function(){return"every %s minutes"},n.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},n.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},n.prototype.everyX0Hours=function(){return"every %s hours"},n.prototype.betweenX0AndX1=function(){return"between %s and %s"},n.prototype.atX0=function(){return"at %s"},n.prototype.commaEveryDay=function(){return", every day"},n.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},n.prototype.commaX0ThroughX1=function(){return", %s through %s"},n.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},n.prototype.first=function(){return"first"},n.prototype.second=function(){return"second"},n.prototype.third=function(){return"third"},n.prototype.fourth=function(){return"fourth"},n.prototype.fifth=function(){return"fifth"},n.prototype.commaOnThe=function(){return", on the "},n.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},n.prototype.lastDay=function(){return"the last day"},n.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},n.prototype.commaOnlyOnX0=function(){return", only on %s"},n.prototype.commaAndOnX0=function(){return", and on %s"},n.prototype.commaEveryX0Months=function(){return", every %s months"},n.prototype.commaOnlyInX0=function(){return", only in %s"},n.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},n.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},n.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},n.prototype.firstWeekday=function(){return"first weekday"},n.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},n.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},n.prototype.commaEveryX0Days=function(){return", every %s days"},n.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},n.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},n.prototype.commaEveryHour=function(){return", every hour"},n.prototype.commaEveryX0Years=function(){return", every %s years"},n.prototype.commaStartingX0=function(){return", starting %s"},n.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},n.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},n}();u.en=b},586:(m,u)=>{Object.defineProperty(u,"__esModule",{value:!0});function b(y,c){if(!y)throw new Error(c)}var n=function(){function y(){}return y.secondRange=function(c){for(var t=c.split(","),e=0;e=0&&i<=59,"seconds part must be >= 0 and <= 59")}},y.minuteRange=function(c){for(var t=c.split(","),e=0;e=0&&i<=59,"minutes part must be >= 0 and <= 59")}},y.hourRange=function(c){for(var t=c.split(","),e=0;e=0&&i<=23,"hours part must be >= 0 and <= 23")}},y.dayOfMonthRange=function(c){for(var t=c.split(","),e=0;e=1&&i<=31,"DOM part must be >= 1 and <= 31")}},y.monthRange=function(c,t){for(var e=c.split(","),i=0;i=1&&o<=12,t?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},y.dayOfWeekRange=function(c,t){for(var e=c.split(","),i=0;i=0&&o<=6,t?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},y}();u.default=n},910:(m,u)=>{Object.defineProperty(u,"__esModule",{value:!0}),u.StringUtilities=void 0;var b=function(){function n(){}return n.format=function(y){for(var c=[],t=1;t-1})},n}();u.StringUtilities=b}},f={};function h(m){var u=f[m];if(u!==void 0)return u.exports;var b=f[m]={exports:{}};return l[m](b,b.exports,h),b.exports}var v={};return(()=>{var m=v;Object.defineProperty(m,"__esModule",{value:!0}),m.toString=void 0;var u=h(728),b=h(336);u.ExpressionDescriptor.initialize(new b.enLocaleLoader),m.default=u.ExpressionDescriptor;var n=u.ExpressionDescriptor.toString;m.toString=n})(),v})()})})(oe);const re=ie(oe.exports),Se=p=>{const[g,l,f,h,v]=p.split(" ");return{minute:g,hour:l,day:f,month:h,weekday:v}};function B(p){if(p==="*")return{values:[-1]};{const l=p.split(","),f=[];for(let h=0;h[...Array(60).keys()].reduce((p,g)=>(g%15||p.push(g),p),[]),we=()=>[...Array(31).keys()].map(p=>p+1),G=()=>{const p=[];for(let g=0;g<24;g++)for(let l=0;l<60;l+=30)g<12?l<10?p.push(`${g}:0${l} AM`):p.push(`${g}:${l} AM`):g===12?l<10?p.push(`${g}:0${l} PM`):p.push(`${g}:${l} PM`):l<10?p.push(`${g-12}:0${l} PM`):p.push(`${g-12}:${l} PM`);return p},Te={0:"0",1:"01",2:"02",3:"03",4:"04",5:"05",6:"06",7:"07",8:"08",9:"09",10:"10",11:"11",12:"12",13:"13",14:"14",15:"15",16:"16",17:"17",18:"18",19:"19",20:"20",21:"21",22:"22",23:"23",24:"24",25:"25",26:"26",27:"27",28:"28",29:"29",30:"30",31:"31",32:"32",33:"33",34:"34",35:"35",36:"36",37:"37",38:"38",39:"39",40:"40",41:"41",42:"42",43:"43",44:"44",45:"45",46:"46",47:"47",48:"48",49:"49",50:"50",51:"51",52:"52",53:"53",54:"54",55:"55",56:"56",57:"57",58:"58",59:"59"},ke={0:"0",1:"01",2:"02",3:"03",4:"04",5:"05",6:"06",7:"07",8:"08",9:"09",10:"10",11:"11",12:"12",13:"13",14:"14",15:"15",16:"16",17:"17",18:"18",19:"19",20:"20",21:"21",22:"22",23:"23"},Xe={1:"01",2:"02",3:"03",4:"04",5:"05",6:"06",7:"07",8:"08",9:"09",10:"10",11:"11",12:"12",13:"13",14:"14",15:"15",16:"16",17:"17",18:"18",19:"19",20:"20",21:"21",22:"22",23:"23",24:"24",25:"25",26:"26",27:"27",28:"28",29:"29",30:"30",31:"31"},Me={1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"},z={0:"Sunday",1:"Monday",2:"Tuesday",3:"Wednesday",4:"Thursday",5:"Friday",6:"Saturday"},Ee=["hourly","daily","weekly","monthly"],De={hourly:{minute:"0",hour:"*",day:"*",month:"*",weekday:"*"},daily:{minute:"0",hour:"6",day:"*",month:"*",weekday:"*"},weekly:{minute:"0",hour:"6",day:"*",month:"*",weekday:"1"},monthly:{minute:"0",hour:"6",day:"1",month:"*",weekday:"*"}},Ce=p=>(K("data-v-4a09321b"),p=p(),Q(),p),Ie={class:"cron-settings-wrapper"},$e={class:"cron-selector"},xe={class:"periodicity"},Ae=Ce(()=>_("div",{class:"label"},"Recurrence",-1)),je=["selected"],Le=["selected"],Ue=["value","selected"],Ne={class:"periodicity"},He={class:"schedule"},Re=["value","selected"],We={class:"schedule"},Be=["value","selected"],Ye={class:"schedule"},Je=["value","selected"],Ve=["value","selected"],Fe={class:"schedule"},Ze=["value","selected"],Ge=["value","selected"],Pe=H({__name:"CronEditor",props:{crontab:null},emits:["changeCrontab","saveCrontab","showAdvancedSettings"],setup(p,{emit:g}){const l=p;function f(o,r){const a=parseInt(o),s=parseInt(r),d=a>=12?"PM":"AM",S=a%12,O=s<10?`0${s}`:s;return`${S}:${O} ${d}`}ne(()=>{const{hour:o,day:r,weekday:a,month:s,minute:d}=l.crontab;s=="*"&&a==="*"&&r!=="*"&&!u([r,o,d])?v.value="monthly":s==="*"&&r==="*"&&a!=="*"&&!u([a,o,d])?v.value="weekly":r==="*"&&a==="*"&&s==="*"&&o!=="*"&&!u([o,d])?v.value="daily":o=="*"&&r==="*"&&a==="*"&&s==="*"&&!u([d])?v.value="hourly":v.value="custom"});const h=q({minute:l.crontab.minute,hour:l.crontab.hour,day:l.crontab.day,month:l.crontab.month,weekday:l.crontab.weekday}),v=$(""),m=$(1),u=o=>o.some(r=>r.includes("-")||r.includes(",")),b=o=>{h.minute=o.minute,h.hour=o.hour,h.day=o.day,h.month=o.month,h.weekday=o.weekday},n=o=>{m.value=0,v.value=o.target.value,b(De[v.value]),g("changeCrontab",h)},y=o=>{m.value=0;const r=o.target.value;h.minute=r,g("changeCrontab",h)},c=o=>{m.value=0;const r=o.target.value;let a=r.split(":")[0],s=r.split(":")[1];a=r.split(" ")[1]==="AM"||a==="12"?a:(Number(a)+12).toString(),s=s.split(" ")[0],h.minute=s,h.hour=a,g("changeCrontab",h)},t=o=>{m.value=0;const r=o.target.value;h.weekday=r,g("changeCrontab",h)},e=o=>{m.value=0;const r=o.target.value;h.day=r,g("changeCrontab",h)},i=()=>{v.value="custom",g("showAdvancedSettings")};return(o,r)=>(k(),X("div",Ie,[_("div",$e,[_("div",xe,[Ae,_("select",{class:"select",onChange:n},[_("option",{value:"",selected:!v.value,disabled:"",hidden:""}," Choose a periodicity ",8,je),_("option",{value:"",selected:v.value=="custom",disabled:"",hidden:""}," Custom ",8,Le),(k(!0),X(x,null,A(T(Ee),(a,s)=>(k(),X("option",{key:s,value:a,selected:a==v.value},C(a),9,Ue))),128))],32)]),_("div",Ne,[j(_("div",He,[N(" at "),_("select",{class:"select",onChange:y},[(k(!0),X(x,null,A(T(Oe)(),(a,s)=>(k(),X("option",{key:s,value:a,selected:a==parseInt(h.minute)},C(a),9,Re))),128))],32),N(" minutes ")],512),[[L,v.value==="hourly"]]),j(_("div",We,[N(" at "),_("select",{class:"select",onChange:c},[(k(!0),X(x,null,A(T(G)(),(a,s)=>(k(),X("option",{key:s,value:a,selected:a===f(h.hour,h.minute)},C(a),9,Be))),128))],32)],512),[[L,v.value==="daily"]]),j(_("div",Ye,[N(" on "),_("select",{class:"select",onChange:t},[(k(!0),X(x,null,A(T(z),(a,s)=>(k(),X("option",{key:s,value:s,selected:a===Object.values(T(z))[parseInt(h.weekday)]},C(a),9,Je))),128))],32),N(" at "),_("select",{class:"select",onChange:c},[(k(!0),X(x,null,A(T(G)(),(a,s)=>(k(),X("option",{key:s,value:a,selected:a===f(h.hour,h.minute)},C(a),9,Ve))),128))],32)],512),[[L,v.value==="weekly"]]),j(_("div",Fe,[N(" on "),_("select",{class:"select",onChange:e},[(k(!0),X(x,null,A(T(we)(),(a,s)=>(k(),X("option",{key:s,value:a,selected:a===parseInt(h.day)},C(a),9,Ze))),128))],32),N(" at "),_("select",{class:"select",onChange:c},[(k(!0),X(x,null,A(T(G)(),(a,s)=>(k(),X("option",{key:s,value:a,selected:a===f(h.hour,h.minute)},C(a),9,Ge))),128))],32)],512),[[L,v.value==="monthly"]])]),_("span",{class:"advanced-settings",onClick:i},"Advanced settings")])]))}});const ze=R(Pe,[["__scopeId","data-v-4a09321b"]]),qe=p=>(K("data-v-a5e38138"),p=p(),Q(),p),Ke={class:"container"},Qe=qe(()=>_("div",{class:"header"},[_("span",null,"Choice")],-1)),et={class:"body"},tt={class:"checkbox"},nt=["id","checked"],ot=["for"],rt={class:"name"},at=H({__name:"Choice",props:{choiceOptions:null,values:null},emits:["changeValues"],setup(p,{emit:g}){const l=p,f=$([]),h=$(l.choiceOptions);ne(()=>{l.values&&(f.value=l.values,l.values[0]===-1?f.value=[...Object.keys(l.choiceOptions).map(Number)]:f.value=l.values)}),ee(()=>l.values,()=>{l.values&&(l.values[0]!==-1?f.value=l.values:f.value=[...Object.keys(l.choiceOptions).map(Number)])});const v=U(()=>u.value.join(",")),m=U(()=>[...f.value].sort((y,c)=>y-c)),u=U(()=>{var y=[],c,t;for(let e=0;ef.value.includes(Number(y)),n=y=>{if(y.preventDefault(),f.value.length===1&&y&&y.target&&!y.target.checked){alert("You must select at least one item"),y.target.checked=!0;return}const c=y.target.id;b(c)?f.value=f.value.filter(t=>t!==Number(c)):f.value.push(Number(c)),g("changeValues",v.value?v.value:"*")};return(y,c)=>(k(),X("div",Ke,[Qe,_("div",et,[(k(!0),X(x,null,A(h.value,(t,e)=>(k(),X("div",{key:e,class:"item"},[_("div",tt,[_("input",{id:e,type:"checkbox",checked:b(e),onInput:n},null,40,nt),_("label",{for:`${e}`},null,8,ot)]),_("div",rt,C(t),1)]))),128))])]))}});const it=R(at,[["__scopeId","data-v-a5e38138"]]),st={class:"wrapper"},ut=H({__name:"TimeSelector",props:{initialValue:null,options:null,type:null},emits:["change"],setup(p,{emit:g}){const l=p,f=$(l.initialValue),h=v=>{g("change",l.type,v)};return ee(()=>l.initialValue,v=>{f.value=v}),(v,m)=>(k(),X("div",st,[D(it,{"choice-options":p.options,values:f.value.values,onChangeValues:h},null,8,["choice-options","values"])]))}});const Y=R(ut,[["__scopeId","data-v-a1b10267"]]),ct={class:"cron-settings-wrapper"},lt={class:"cron-settings"},dt={class:"human-readable"},ht={class:"cron-editor"},pt={class:"cron-tabs"},ft=["onClick"],vt={class:"actions"},mt=H({__name:"AdvancedCronEditor",props:{job:null},emits:["updateSchedule"],setup(p,{emit:g}){const f=$(p.job),{minute:h,hour:v,day:m,month:u,weekday:b}=Se(f.value.schedule),n=q({weekday:b,month:u,day:m,hour:v,minute:h}),y=["Month","Day of Month","Hours","Minutes","Days of week"],c=$(0),t=d=>{c.value=d},e=U(()=>o.value===f.value.schedule),i=U(()=>re.toString(o.value)),o=U(()=>`${n.minute} ${n.hour} ${n.day} ${n.month} ${n.weekday}`),r=(d,S)=>{n[d]=S},a=()=>{g("updateSchedule",o.value)},s=()=>{n.minute=h,n.hour=v,n.day=m,n.month=u,n.weekday=b};return(d,S)=>(k(),X("div",ct,[_("div",lt,[_("p",dt,'"'+C(T(i))+'" - GMT+0',1),_("div",ht,[_("div",pt,[(k(),X(x,null,A(y,(O,M)=>_("span",{key:M,class:te(["cron-tab",{active:c.value===M}]),onClick:w=>t(M)},C(O),11,ft)),64))]),j(D(Y,{"initial-value":T(B)(n.month),options:T(Me),type:"month",onChange:r},null,8,["initial-value","options"]),[[L,c.value===0]]),j(D(Y,{"initial-value":T(B)(n.day),options:T(Xe),type:"day",onChange:r},null,8,["initial-value","options"]),[[L,c.value===1]]),j(D(Y,{"initial-value":T(B)(n.hour),options:T(ke),type:"hour",onChange:r},null,8,["initial-value","options"]),[[L,c.value===2]]),j(D(Y,{"initial-value":T(B)(n.minute),options:T(Te),type:"minute",onChange:r},null,8,["initial-value","options"]),[[L,c.value===3]]),j(D(Y,{"initial-value":T(B)(n.weekday),options:T(z),type:"weekday",onChange:r},null,8,["initial-value","options"]),[[L,c.value===4]]),_("div",vt,[_("button",{class:"save-button button",onClick:s}," Reset changes "),_("button",{class:te(["save-button","button",T(e)?"disabled":""]),onClick:a}," Set changes ",2)])])])]))}});const yt=R(mt,[["__scopeId","data-v-07f4693a"]]),_t={class:"modal-wrapper"},gt={class:"modal"},bt={class:"modal-content-wrapper"},St=H({__name:"AdvancedSettingsModal",props:{job:null},emits:["close","saveCrontab"],setup(p,{emit:g}){const f=$(p.job),h=m=>{g("saveCrontab",m)},v=()=>{g("close")};return(m,u)=>(k(),X("div",_t,[_("div",gt,[_("span",{class:"close",onClick:v},"\xD7"),_("div",bt,[D(yt,{job:f.value,onUpdateSchedule:h},null,8,["job"])])])]))}});const Ot=R(St,[["__scopeId","data-v-184784f2"]]),ae=p=>(K("data-v-53b723be"),p=p(),Q(),p),wt={class:"schedule-editor"},Tt={class:"schedule-settings"},kt=ae(()=>_("div",{class:"title"},"Schedule settings",-1)),Xt=ae(()=>_("div",{class:"subtitle"},"Time Zone: GMT+0000",-1)),Mt={class:"readable-cron"},Et=H({__name:"ScheduleEditor",props:{job:null},setup(p){const g=p,l=$(!1),f=$(g.job),h=()=>{l.value=!l.value},v=()=>{l.value=!1},m=t=>({weekday:t.split(" ")[4],month:t.split(" ")[3],day:t.split(" ")[2],hour:t.split(" ")[1],minute:t.split(" ")[0]}),u=q(m(f.value.schedule)),b=U(()=>re.toString(n.value)),n=U(()=>`${u.minute} ${u.hour} ${u.day} ${u.month} ${u.weekday}`),y=t=>{u.minute==t.minute&&u.hour==t.hour&&u.day==t.day&&u.month==t.month&&u.weekday==t.weekday||(u.minute=t.minute,u.hour=t.hour,u.day=t.day,u.month=t.month,u.weekday=t.weekday,f.value.schedule=n.value)},c=t=>{t?(f.value.schedule=t,Object.assign(u,m(t))):f.value.schedule=n.value,v()};return ee(()=>f.value.schedule,t=>{y({minute:t.split(" ")[0],hour:t.split(" ")[1],day:t.split(" ")[2],month:t.split(" ")[3],weekday:t.split(" ")[4]})}),(t,e)=>(k(),X("div",wt,[_("div",Tt,[kt,Xt,D(ze,{class:"recurrence-settings",crontab:u,onChangeCrontab:y,onSaveCrontab:c,onShowAdvancedSettings:h},null,8,["crontab"])]),_("div",Mt,C(T(b)),1),l.value?(k(),P(Ot,{key:0,job:f.value,onClose:v,onSaveCrontab:c},null,8,["job"])):se("",!0)]))}});const Dt=R(Et,[["__scopeId","data-v-53b723be"]]),Ct={class:"job-editor"},It={class:"settings"},$t=H({__name:"JobEditor",setup(p){const g=ue(),{result:l,loading:f}=he(()=>pe.get(g.params.jobId)),h=ge.create();async function v(){if(!l.value)return;const{stdout:m,stderr:u}=await l.value.test();h.log({type:"stdout",log:m}),h.log({type:"stderr",log:u})}return(m,u)=>{var b;return k(),X("div",Ct,[T(f)||!T(l)?(k(),P(de,{key:0})):(k(),P(ce,{key:1},{left:F(()=>[D(ve,{link:"/_editor/jobs"})]),right:F(()=>[D(be,{path:"jobs"}),D(fe,{model:T(l)},null,8,["model"])]),default:F(()=>[D(le,{title:"Settings"},{default:F(()=>[_("div",It,[D(_e,{runtime:T(l)},null,8,["runtime"]),D(Dt,{style:{width:"100%",height:"100%"},job:T(l)},null,8,["job"])])]),_:1})]),_:1})),D(me,{"log-service":T(h),runtime:"jobs",onRestart:v},null,8,["log-service"]),D(ye,{"has-changes":(b=T(l))==null?void 0:b.hasChanges()},null,8,["has-changes"])])}}});const Qt=R($t,[["__scopeId","data-v-e13d5fde"]]);export{Qt as default}; -//# sourceMappingURL=JobEditor.750a19ad.js.map +import{a1 as ie,d as H,o as ne,v as q,r as $,b as k,c as X,x as _,F as x,L as A,N as C,z as T,W as j,ac as L,U as N,O as K,Q,q as R,a2 as ee,K as U,e as D,G as te,t as P,D as se,w as F,J as ue}from"./registerWidgets.cb3a7b8d.js";import{T as ce,a as le}from"./Tab.27dc38aa.js";import{L as de}from"./CircularLoading.1e68d2b1.js";import{a as he}from"./asyncComputed.31994732.js";import{J as pe}from"./jobs.d0693d2f.js";import{S as fe}from"./SaveButton.b678d3d3.js";import{B as ve}from"./BackButton.677abc51.js";import{S as me,_ as ye,R as _e,L as ge}from"./UnsavedChangesHandler.vue_vue_type_script_setup_true_lang.35587b62.js";import{D as be}from"./DocsButton.495d0473.js";import"./lottie.234eb92e.js";import"./activeRecord.adfc6223.js";import"./pubsub.f85a17d2.js";import"./icons.39dfa322.js";import"./forms.f5353181.js";import"./dashes.3c9b04b3.js";import"./runnerData.7b7cb682.js";import"./hooks.fd4bb08f.js";import"./workspaces.5f21a554.js";import"./uuid.0e63ad64.js";import"./login.ce8787fb.js";(function(){try{var p=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},g=new Error().stack;g&&(p._sentryDebugIds=p._sentryDebugIds||{},p._sentryDebugIds[g]="0d790a9c-6103-4ff9-976b-319912c48064",p._sentryDebugIdIdentifier="sentry-dbid-0d790a9c-6103-4ff9-976b-319912c48064")}catch{}})();var oe={exports:{}};(function(p,g){(function(f,h){p.exports=h()})(globalThis,function(){return(()=>{var l={794:(m,u,b)=>{Object.defineProperty(u,"__esModule",{value:!0}),u.CronParser=void 0;var n=b(586),y=function(){function c(t,e,i){e===void 0&&(e=!0),i===void 0&&(i=!1),this.expression=t,this.dayOfWeekStartIndexZero=e,this.monthStartIndexZero=i}return c.prototype.parse=function(){var t=this.extractParts(this.expression);return this.normalize(t),this.validate(t),t},c.prototype.extractParts=function(t){if(!this.expression)throw new Error("Expression is empty");var e=t.trim().split(/[ ]+/);if(e.length<5)throw new Error("Expression has only ".concat(e.length," part").concat(e.length==1?"":"s",". At least 5 parts are required."));if(e.length==5)e.unshift(""),e.push("");else if(e.length==6){var i=/\d{4}$/.test(e[5])||e[4]=="?"||e[2]=="?";i?e.unshift(""):e.push("")}else if(e.length>7)throw new Error("Expression has ".concat(e.length," parts; too many!"));return e},c.prototype.normalize=function(t){var e=this;if(t[3]=t[3].replace("?","*"),t[5]=t[5].replace("?","*"),t[2]=t[2].replace("?","*"),t[0].indexOf("0/")==0&&(t[0]=t[0].replace("0/","*/")),t[1].indexOf("0/")==0&&(t[1]=t[1].replace("0/","*/")),t[2].indexOf("0/")==0&&(t[2]=t[2].replace("0/","*/")),t[3].indexOf("1/")==0&&(t[3]=t[3].replace("1/","*/")),t[4].indexOf("1/")==0&&(t[4]=t[4].replace("1/","*/")),t[6].indexOf("1/")==0&&(t[6]=t[6].replace("1/","*/")),t[5]=t[5].replace(/(^\d)|([^#/\s]\d)/g,function(O){var M=O.replace(/\D/,""),w=M;return e.dayOfWeekStartIndexZero?M=="7"&&(w="0"):w=(parseInt(M)-1).toString(),O.replace(M,w)}),t[5]=="L"&&(t[5]="6"),t[3]=="?"&&(t[3]="*"),t[3].indexOf("W")>-1&&(t[3].indexOf(",")>-1||t[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var i={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var o in i)t[5]=t[5].replace(new RegExp(o,"gi"),i[o].toString());t[4]=t[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(O){var M=O.replace(/\D/,""),w=M;return e.monthStartIndexZero&&(w=(parseInt(M)+1).toString()),O.replace(M,w)});var r={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var a in r)t[4]=t[4].replace(new RegExp(a,"gi"),r[a].toString());t[0]=="0"&&(t[0]=""),!/\*|\-|\,|\//.test(t[2])&&(/\*|\//.test(t[1])||/\*|\//.test(t[0]))&&(t[2]+="-".concat(t[2]));for(var s=0;s-1&&!/^\*|\-|\,/.test(t[s])){var d=null;switch(s){case 4:d="12";break;case 5:d="6";break;case 6:d="9999";break;default:d=null;break}if(d!==null){var S=t[s].split("/");t[s]="".concat(S[0],"-").concat(d,"/").concat(S[1])}}},c.prototype.validate=function(t){this.assertNoInvalidCharacters("DOW",t[5]),this.assertNoInvalidCharacters("DOM",t[3]),this.validateRange(t)},c.prototype.validateRange=function(t){n.default.secondRange(t[0]),n.default.minuteRange(t[1]),n.default.hourRange(t[2]),n.default.dayOfMonthRange(t[3]),n.default.monthRange(t[4],this.monthStartIndexZero),n.default.dayOfWeekRange(t[5],this.dayOfWeekStartIndexZero)},c.prototype.assertNoInvalidCharacters=function(t,e){var i=e.match(/[A-KM-VX-Z]+/gi);if(i&&i.length)throw new Error("".concat(t," part contains invalid values: '").concat(i.toString(),"'"))},c}();u.CronParser=y},728:(m,u,b)=>{Object.defineProperty(u,"__esModule",{value:!0}),u.ExpressionDescriptor=void 0;var n=b(910),y=b(794),c=function(){function t(e,i){if(this.expression=e,this.options=i,this.expressionParts=new Array(5),!this.options.locale&&t.defaultLocale&&(this.options.locale=t.defaultLocale),!t.locales[this.options.locale]){var o=Object.keys(t.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(o,"'.")),this.options.locale=o}this.i18n=t.locales[this.options.locale],i.use24HourTimeFormat===void 0&&(i.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return t.toString=function(e,i){var o=i===void 0?{}:i,r=o.throwExceptionOnParseError,a=r===void 0?!0:r,s=o.verbose,d=s===void 0?!1:s,S=o.dayOfWeekStartIndexZero,O=S===void 0?!0:S,M=o.monthStartIndexZero,w=M===void 0?!1:M,I=o.use24HourTimeFormat,E=o.locale,J=E===void 0?null:E,W={throwExceptionOnParseError:a,verbose:d,dayOfWeekStartIndexZero:O,monthStartIndexZero:w,use24HourTimeFormat:I,locale:J},V=new t(e,W);return V.getFullDescription()},t.initialize=function(e,i){i===void 0&&(i="en"),t.specialCharacters=["/","-",",","*"],t.defaultLocale=i,e.load(t.locales)},t.prototype.getFullDescription=function(){var e="";try{var i=new y.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);this.expressionParts=i.parse();var o=this.getTimeOfDayDescription(),r=this.getDayOfMonthDescription(),a=this.getMonthDescription(),s=this.getDayOfWeekDescription(),d=this.getYearDescription();e+=o+r+s+a+d,e=this.transformVerbosity(e,!!this.options.verbose),e=e.charAt(0).toLocaleUpperCase()+e.substr(1)}catch(S){if(!this.options.throwExceptionOnParseError)e=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(S)}return e},t.prototype.getTimeOfDayDescription=function(){var e=this.expressionParts[0],i=this.expressionParts[1],o=this.expressionParts[2],r="";if(!n.StringUtilities.containsAny(i,t.specialCharacters)&&!n.StringUtilities.containsAny(o,t.specialCharacters)&&!n.StringUtilities.containsAny(e,t.specialCharacters))r+=this.i18n.atSpace()+this.formatTime(o,i,e);else if(!e&&i.indexOf("-")>-1&&!(i.indexOf(",")>-1)&&!(i.indexOf("/")>-1)&&!n.StringUtilities.containsAny(o,t.specialCharacters)){var a=i.split("-");r+=n.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(o,a[0],""),this.formatTime(o,a[1],""))}else if(!e&&o.indexOf(",")>-1&&o.indexOf("-")==-1&&o.indexOf("/")==-1&&!n.StringUtilities.containsAny(i,t.specialCharacters)){var s=o.split(",");r+=this.i18n.at();for(var d=0;d1){var a=r[r.length-1].index;o=o.substring(0,a)+":59"+o.substring(a+3)}}return o},t.prototype.getDayOfWeekDescription=function(){var e=this,i=this.i18n.daysOfTheWeek(),o=null;return this.expressionParts[5]=="*"?o="":o=this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(r,a){var s=r;return r.indexOf("#")>-1?s=r.substr(0,r.indexOf("#")):r.indexOf("L")>-1&&(s=s.replace("L","")),e.i18n.daysOfTheWeekInCase?e.i18n.daysOfTheWeekInCase(a)[parseInt(s)]:i[parseInt(s)]},function(r){return parseInt(r)==1?"":n.StringUtilities.format(e.i18n.commaEveryX0DaysOfTheWeek(r),r)},function(r){var a=r.substring(0,r.indexOf("-")),s=e.expressionParts[3]!="*";return s?e.i18n.commaAndX0ThroughX1(a):e.i18n.commaX0ThroughX1(a)},function(r){var a=null;if(r.indexOf("#")>-1){var s=r.substring(r.indexOf("#")+1),d=r.substring(0,r.indexOf("#")),S=null;switch(s){case"1":S=e.i18n.first(d);break;case"2":S=e.i18n.second(d);break;case"3":S=e.i18n.third(d);break;case"4":S=e.i18n.fourth(d);break;case"5":S=e.i18n.fifth(d);break}a=e.i18n.commaOnThe(s)+S+e.i18n.spaceX0OfTheMonth()}else if(r.indexOf("L")>-1)a=e.i18n.commaOnTheLastX0OfTheMonth(r.replace("L",""));else{var O=e.expressionParts[3]!="*";a=O?e.i18n.commaAndOnX0():e.i18n.commaOnlyOnX0(r)}return a}),o},t.prototype.getMonthDescription=function(){var e=this,i=this.i18n.monthsOfTheYear(),o=this.getSegmentDescription(this.expressionParts[4],"",function(r,a){return a&&e.i18n.monthsOfTheYearInCase?e.i18n.monthsOfTheYearInCase(a)[parseInt(r)-1]:i[parseInt(r)-1]},function(r){return parseInt(r)==1?"":n.StringUtilities.format(e.i18n.commaEveryX0Months(r),r)},function(r){return e.i18n.commaMonthX0ThroughMonthX1()||e.i18n.commaX0ThroughX1()},function(r){return e.i18n.commaOnlyInMonthX0?e.i18n.commaOnlyInMonthX0():e.i18n.commaOnlyInX0()});return o},t.prototype.getDayOfMonthDescription=function(){var e=this,i=null,o=this.expressionParts[3];switch(o){case"L":i=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":i=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var r=o.match(/(\d{1,2}W)|(W\d{1,2})/);if(r){var a=parseInt(r[0].replace("W","")),s=a==1?this.i18n.firstWeekday():n.StringUtilities.format(this.i18n.weekdayNearestDayX0(),a.toString());i=n.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),s);break}else{var d=o.match(/L-(\d{1,2})/);if(d){var S=d[1];i=n.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(S),S);break}else{if(o=="*"&&this.expressionParts[5]!="*")return"";i=this.getSegmentDescription(o,this.i18n.commaEveryDay(),function(O){return O=="L"?e.i18n.lastDay():e.i18n.dayX0?n.StringUtilities.format(e.i18n.dayX0(),O):O},function(O){return O=="1"?e.i18n.commaEveryDay():e.i18n.commaEveryX0Days(O)},function(O){return e.i18n.commaBetweenDayX0AndX1OfTheMonth(O)},function(O){return e.i18n.commaOnDayX0OfTheMonth(O)})}break}}return i},t.prototype.getYearDescription=function(){var e=this,i=this.getSegmentDescription(this.expressionParts[6],"",function(o){return/^\d+$/.test(o)?new Date(parseInt(o),1).getFullYear().toString():o},function(o){return n.StringUtilities.format(e.i18n.commaEveryX0Years(o),o)},function(o){return e.i18n.commaYearX0ThroughYearX1()||e.i18n.commaX0ThroughX1()},function(o){return e.i18n.commaOnlyInYearX0?e.i18n.commaOnlyInYearX0():e.i18n.commaOnlyInX0()});return i},t.prototype.getSegmentDescription=function(e,i,o,r,a,s){var d=null,S=e.indexOf("/")>-1,O=e.indexOf("-")>-1,M=e.indexOf(",")>-1;if(!e)d="";else if(e==="*")d=i;else if(!S&&!O&&!M)d=n.StringUtilities.format(s(e),o(e));else if(M){for(var w=e.split(","),I="",E=0;E0&&w.length>2&&(I+=",",E0&&w.length>1&&(E==w.length-1||w.length==2)&&(I+="".concat(this.i18n.spaceAnd()," ")),w[E].indexOf("/")>-1||w[E].indexOf("-")>-1){var J=w[E].indexOf("-")>-1&&w[E].indexOf("/")==-1,W=this.getSegmentDescription(w[E],i,o,r,J?this.i18n.commaX0ThroughX1:a,s);J&&(W=W.replace(", ","")),I+=W}else S?I+=this.getSegmentDescription(w[E],i,o,r,a,s):I+=o(w[E]);S?d=I:d=n.StringUtilities.format(s(e),I)}else if(S){var w=e.split("/");if(d=n.StringUtilities.format(r(w[1]),w[1]),w[0].indexOf("-")>-1){var V=this.generateRangeSegmentDescription(w[0],a,o);V.indexOf(", ")!=0&&(d+=", "),d+=V}else if(w[0].indexOf("*")==-1){var Z=n.StringUtilities.format(s(w[0]),o(w[0]));Z=Z.replace(", ",""),d+=n.StringUtilities.format(this.i18n.commaStartingX0(),Z)}}else O&&(d=this.generateRangeSegmentDescription(e,a,o));return d},t.prototype.generateRangeSegmentDescription=function(e,i,o){var r="",a=e.split("-"),s=o(a[0],1),d=o(a[1],2),S=i(e);return r+=n.StringUtilities.format(S,s,d),r},t.prototype.formatTime=function(e,i,o){var r=parseInt(e),a="",s=!1;this.options.use24HourTimeFormat||(s=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),a=s?"".concat(this.getPeriod(r)," "):" ".concat(this.getPeriod(r)),r>12&&(r-=12),r===0&&(r=12));var d=i,S="";return o&&(S=":".concat(("00"+o).substring(o.length))),"".concat(s?a:"").concat(("00"+r.toString()).substring(r.toString().length),":").concat(("00"+d.toString()).substring(d.toString().length)).concat(S).concat(s?"":a)},t.prototype.transformVerbosity=function(e,i){return i||(e=e.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),e=e.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),e=e.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),e=e.replace(/\, ?$/,"")),e},t.prototype.getPeriod=function(e){return e>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},t.locales={},t}();u.ExpressionDescriptor=c},336:(m,u,b)=>{Object.defineProperty(u,"__esModule",{value:!0}),u.enLocaleLoader=void 0;var n=b(751),y=function(){function c(){}return c.prototype.load=function(t){t.en=new n.en},c}();u.enLocaleLoader=y},751:(m,u)=>{Object.defineProperty(u,"__esModule",{value:!0}),u.en=void 0;var b=function(){function n(){}return n.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},n.prototype.atX0MinutesPastTheHourGt20=function(){return null},n.prototype.commaMonthX0ThroughMonthX1=function(){return null},n.prototype.commaYearX0ThroughYearX1=function(){return null},n.prototype.use24HourTimeFormatByDefault=function(){return!1},n.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occured when generating the expression description. Check the cron expression syntax."},n.prototype.everyMinute=function(){return"every minute"},n.prototype.everyHour=function(){return"every hour"},n.prototype.atSpace=function(){return"At "},n.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},n.prototype.at=function(){return"At"},n.prototype.spaceAnd=function(){return" and"},n.prototype.everySecond=function(){return"every second"},n.prototype.everyX0Seconds=function(){return"every %s seconds"},n.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},n.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},n.prototype.everyX0Minutes=function(){return"every %s minutes"},n.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},n.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},n.prototype.everyX0Hours=function(){return"every %s hours"},n.prototype.betweenX0AndX1=function(){return"between %s and %s"},n.prototype.atX0=function(){return"at %s"},n.prototype.commaEveryDay=function(){return", every day"},n.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},n.prototype.commaX0ThroughX1=function(){return", %s through %s"},n.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},n.prototype.first=function(){return"first"},n.prototype.second=function(){return"second"},n.prototype.third=function(){return"third"},n.prototype.fourth=function(){return"fourth"},n.prototype.fifth=function(){return"fifth"},n.prototype.commaOnThe=function(){return", on the "},n.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},n.prototype.lastDay=function(){return"the last day"},n.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},n.prototype.commaOnlyOnX0=function(){return", only on %s"},n.prototype.commaAndOnX0=function(){return", and on %s"},n.prototype.commaEveryX0Months=function(){return", every %s months"},n.prototype.commaOnlyInX0=function(){return", only in %s"},n.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},n.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},n.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},n.prototype.firstWeekday=function(){return"first weekday"},n.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},n.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},n.prototype.commaEveryX0Days=function(){return", every %s days"},n.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},n.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},n.prototype.commaEveryHour=function(){return", every hour"},n.prototype.commaEveryX0Years=function(){return", every %s years"},n.prototype.commaStartingX0=function(){return", starting %s"},n.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},n.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},n}();u.en=b},586:(m,u)=>{Object.defineProperty(u,"__esModule",{value:!0});function b(y,c){if(!y)throw new Error(c)}var n=function(){function y(){}return y.secondRange=function(c){for(var t=c.split(","),e=0;e=0&&i<=59,"seconds part must be >= 0 and <= 59")}},y.minuteRange=function(c){for(var t=c.split(","),e=0;e=0&&i<=59,"minutes part must be >= 0 and <= 59")}},y.hourRange=function(c){for(var t=c.split(","),e=0;e=0&&i<=23,"hours part must be >= 0 and <= 23")}},y.dayOfMonthRange=function(c){for(var t=c.split(","),e=0;e=1&&i<=31,"DOM part must be >= 1 and <= 31")}},y.monthRange=function(c,t){for(var e=c.split(","),i=0;i=1&&o<=12,t?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},y.dayOfWeekRange=function(c,t){for(var e=c.split(","),i=0;i=0&&o<=6,t?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},y}();u.default=n},910:(m,u)=>{Object.defineProperty(u,"__esModule",{value:!0}),u.StringUtilities=void 0;var b=function(){function n(){}return n.format=function(y){for(var c=[],t=1;t-1})},n}();u.StringUtilities=b}},f={};function h(m){var u=f[m];if(u!==void 0)return u.exports;var b=f[m]={exports:{}};return l[m](b,b.exports,h),b.exports}var v={};return(()=>{var m=v;Object.defineProperty(m,"__esModule",{value:!0}),m.toString=void 0;var u=h(728),b=h(336);u.ExpressionDescriptor.initialize(new b.enLocaleLoader),m.default=u.ExpressionDescriptor;var n=u.ExpressionDescriptor.toString;m.toString=n})(),v})()})})(oe);const re=ie(oe.exports),Se=p=>{const[g,l,f,h,v]=p.split(" ");return{minute:g,hour:l,day:f,month:h,weekday:v}};function B(p){if(p==="*")return{values:[-1]};{const l=p.split(","),f=[];for(let h=0;h[...Array(60).keys()].reduce((p,g)=>(g%15||p.push(g),p),[]),we=()=>[...Array(31).keys()].map(p=>p+1),G=()=>{const p=[];for(let g=0;g<24;g++)for(let l=0;l<60;l+=30)g<12?l<10?p.push(`${g}:0${l} AM`):p.push(`${g}:${l} AM`):g===12?l<10?p.push(`${g}:0${l} PM`):p.push(`${g}:${l} PM`):l<10?p.push(`${g-12}:0${l} PM`):p.push(`${g-12}:${l} PM`);return p},Te={0:"0",1:"01",2:"02",3:"03",4:"04",5:"05",6:"06",7:"07",8:"08",9:"09",10:"10",11:"11",12:"12",13:"13",14:"14",15:"15",16:"16",17:"17",18:"18",19:"19",20:"20",21:"21",22:"22",23:"23",24:"24",25:"25",26:"26",27:"27",28:"28",29:"29",30:"30",31:"31",32:"32",33:"33",34:"34",35:"35",36:"36",37:"37",38:"38",39:"39",40:"40",41:"41",42:"42",43:"43",44:"44",45:"45",46:"46",47:"47",48:"48",49:"49",50:"50",51:"51",52:"52",53:"53",54:"54",55:"55",56:"56",57:"57",58:"58",59:"59"},ke={0:"0",1:"01",2:"02",3:"03",4:"04",5:"05",6:"06",7:"07",8:"08",9:"09",10:"10",11:"11",12:"12",13:"13",14:"14",15:"15",16:"16",17:"17",18:"18",19:"19",20:"20",21:"21",22:"22",23:"23"},Xe={1:"01",2:"02",3:"03",4:"04",5:"05",6:"06",7:"07",8:"08",9:"09",10:"10",11:"11",12:"12",13:"13",14:"14",15:"15",16:"16",17:"17",18:"18",19:"19",20:"20",21:"21",22:"22",23:"23",24:"24",25:"25",26:"26",27:"27",28:"28",29:"29",30:"30",31:"31"},Me={1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"},z={0:"Sunday",1:"Monday",2:"Tuesday",3:"Wednesday",4:"Thursday",5:"Friday",6:"Saturday"},Ee=["hourly","daily","weekly","monthly"],De={hourly:{minute:"0",hour:"*",day:"*",month:"*",weekday:"*"},daily:{minute:"0",hour:"6",day:"*",month:"*",weekday:"*"},weekly:{minute:"0",hour:"6",day:"*",month:"*",weekday:"1"},monthly:{minute:"0",hour:"6",day:"1",month:"*",weekday:"*"}},Ce=p=>(K("data-v-4a09321b"),p=p(),Q(),p),Ie={class:"cron-settings-wrapper"},$e={class:"cron-selector"},xe={class:"periodicity"},Ae=Ce(()=>_("div",{class:"label"},"Recurrence",-1)),je=["selected"],Le=["selected"],Ue=["value","selected"],Ne={class:"periodicity"},He={class:"schedule"},Re=["value","selected"],We={class:"schedule"},Be=["value","selected"],Ye={class:"schedule"},Je=["value","selected"],Ve=["value","selected"],Fe={class:"schedule"},Ze=["value","selected"],Ge=["value","selected"],Pe=H({__name:"CronEditor",props:{crontab:null},emits:["changeCrontab","saveCrontab","showAdvancedSettings"],setup(p,{emit:g}){const l=p;function f(o,r){const a=parseInt(o),s=parseInt(r),d=a>=12?"PM":"AM",S=a%12,O=s<10?`0${s}`:s;return`${S}:${O} ${d}`}ne(()=>{const{hour:o,day:r,weekday:a,month:s,minute:d}=l.crontab;s=="*"&&a==="*"&&r!=="*"&&!u([r,o,d])?v.value="monthly":s==="*"&&r==="*"&&a!=="*"&&!u([a,o,d])?v.value="weekly":r==="*"&&a==="*"&&s==="*"&&o!=="*"&&!u([o,d])?v.value="daily":o=="*"&&r==="*"&&a==="*"&&s==="*"&&!u([d])?v.value="hourly":v.value="custom"});const h=q({minute:l.crontab.minute,hour:l.crontab.hour,day:l.crontab.day,month:l.crontab.month,weekday:l.crontab.weekday}),v=$(""),m=$(1),u=o=>o.some(r=>r.includes("-")||r.includes(",")),b=o=>{h.minute=o.minute,h.hour=o.hour,h.day=o.day,h.month=o.month,h.weekday=o.weekday},n=o=>{m.value=0,v.value=o.target.value,b(De[v.value]),g("changeCrontab",h)},y=o=>{m.value=0;const r=o.target.value;h.minute=r,g("changeCrontab",h)},c=o=>{m.value=0;const r=o.target.value;let a=r.split(":")[0],s=r.split(":")[1];a=r.split(" ")[1]==="AM"||a==="12"?a:(Number(a)+12).toString(),s=s.split(" ")[0],h.minute=s,h.hour=a,g("changeCrontab",h)},t=o=>{m.value=0;const r=o.target.value;h.weekday=r,g("changeCrontab",h)},e=o=>{m.value=0;const r=o.target.value;h.day=r,g("changeCrontab",h)},i=()=>{v.value="custom",g("showAdvancedSettings")};return(o,r)=>(k(),X("div",Ie,[_("div",$e,[_("div",xe,[Ae,_("select",{class:"select",onChange:n},[_("option",{value:"",selected:!v.value,disabled:"",hidden:""}," Choose a periodicity ",8,je),_("option",{value:"",selected:v.value=="custom",disabled:"",hidden:""}," Custom ",8,Le),(k(!0),X(x,null,A(T(Ee),(a,s)=>(k(),X("option",{key:s,value:a,selected:a==v.value},C(a),9,Ue))),128))],32)]),_("div",Ne,[j(_("div",He,[N(" at "),_("select",{class:"select",onChange:y},[(k(!0),X(x,null,A(T(Oe)(),(a,s)=>(k(),X("option",{key:s,value:a,selected:a==parseInt(h.minute)},C(a),9,Re))),128))],32),N(" minutes ")],512),[[L,v.value==="hourly"]]),j(_("div",We,[N(" at "),_("select",{class:"select",onChange:c},[(k(!0),X(x,null,A(T(G)(),(a,s)=>(k(),X("option",{key:s,value:a,selected:a===f(h.hour,h.minute)},C(a),9,Be))),128))],32)],512),[[L,v.value==="daily"]]),j(_("div",Ye,[N(" on "),_("select",{class:"select",onChange:t},[(k(!0),X(x,null,A(T(z),(a,s)=>(k(),X("option",{key:s,value:s,selected:a===Object.values(T(z))[parseInt(h.weekday)]},C(a),9,Je))),128))],32),N(" at "),_("select",{class:"select",onChange:c},[(k(!0),X(x,null,A(T(G)(),(a,s)=>(k(),X("option",{key:s,value:a,selected:a===f(h.hour,h.minute)},C(a),9,Ve))),128))],32)],512),[[L,v.value==="weekly"]]),j(_("div",Fe,[N(" on "),_("select",{class:"select",onChange:e},[(k(!0),X(x,null,A(T(we)(),(a,s)=>(k(),X("option",{key:s,value:a,selected:a===parseInt(h.day)},C(a),9,Ze))),128))],32),N(" at "),_("select",{class:"select",onChange:c},[(k(!0),X(x,null,A(T(G)(),(a,s)=>(k(),X("option",{key:s,value:a,selected:a===f(h.hour,h.minute)},C(a),9,Ge))),128))],32)],512),[[L,v.value==="monthly"]])]),_("span",{class:"advanced-settings",onClick:i},"Advanced settings")])]))}});const ze=R(Pe,[["__scopeId","data-v-4a09321b"]]),qe=p=>(K("data-v-a5e38138"),p=p(),Q(),p),Ke={class:"container"},Qe=qe(()=>_("div",{class:"header"},[_("span",null,"Choice")],-1)),et={class:"body"},tt={class:"checkbox"},nt=["id","checked"],ot=["for"],rt={class:"name"},at=H({__name:"Choice",props:{choiceOptions:null,values:null},emits:["changeValues"],setup(p,{emit:g}){const l=p,f=$([]),h=$(l.choiceOptions);ne(()=>{l.values&&(f.value=l.values,l.values[0]===-1?f.value=[...Object.keys(l.choiceOptions).map(Number)]:f.value=l.values)}),ee(()=>l.values,()=>{l.values&&(l.values[0]!==-1?f.value=l.values:f.value=[...Object.keys(l.choiceOptions).map(Number)])});const v=U(()=>u.value.join(",")),m=U(()=>[...f.value].sort((y,c)=>y-c)),u=U(()=>{var y=[],c,t;for(let e=0;ef.value.includes(Number(y)),n=y=>{if(y.preventDefault(),f.value.length===1&&y&&y.target&&!y.target.checked){alert("You must select at least one item"),y.target.checked=!0;return}const c=y.target.id;b(c)?f.value=f.value.filter(t=>t!==Number(c)):f.value.push(Number(c)),g("changeValues",v.value?v.value:"*")};return(y,c)=>(k(),X("div",Ke,[Qe,_("div",et,[(k(!0),X(x,null,A(h.value,(t,e)=>(k(),X("div",{key:e,class:"item"},[_("div",tt,[_("input",{id:e,type:"checkbox",checked:b(e),onInput:n},null,40,nt),_("label",{for:`${e}`},null,8,ot)]),_("div",rt,C(t),1)]))),128))])]))}});const it=R(at,[["__scopeId","data-v-a5e38138"]]),st={class:"wrapper"},ut=H({__name:"TimeSelector",props:{initialValue:null,options:null,type:null},emits:["change"],setup(p,{emit:g}){const l=p,f=$(l.initialValue),h=v=>{g("change",l.type,v)};return ee(()=>l.initialValue,v=>{f.value=v}),(v,m)=>(k(),X("div",st,[D(it,{"choice-options":p.options,values:f.value.values,onChangeValues:h},null,8,["choice-options","values"])]))}});const Y=R(ut,[["__scopeId","data-v-a1b10267"]]),ct={class:"cron-settings-wrapper"},lt={class:"cron-settings"},dt={class:"human-readable"},ht={class:"cron-editor"},pt={class:"cron-tabs"},ft=["onClick"],vt={class:"actions"},mt=H({__name:"AdvancedCronEditor",props:{job:null},emits:["updateSchedule"],setup(p,{emit:g}){const f=$(p.job),{minute:h,hour:v,day:m,month:u,weekday:b}=Se(f.value.schedule),n=q({weekday:b,month:u,day:m,hour:v,minute:h}),y=["Month","Day of Month","Hours","Minutes","Days of week"],c=$(0),t=d=>{c.value=d},e=U(()=>o.value===f.value.schedule),i=U(()=>re.toString(o.value)),o=U(()=>`${n.minute} ${n.hour} ${n.day} ${n.month} ${n.weekday}`),r=(d,S)=>{n[d]=S},a=()=>{g("updateSchedule",o.value)},s=()=>{n.minute=h,n.hour=v,n.day=m,n.month=u,n.weekday=b};return(d,S)=>(k(),X("div",ct,[_("div",lt,[_("p",dt,'"'+C(T(i))+'" - GMT+0',1),_("div",ht,[_("div",pt,[(k(),X(x,null,A(y,(O,M)=>_("span",{key:M,class:te(["cron-tab",{active:c.value===M}]),onClick:w=>t(M)},C(O),11,ft)),64))]),j(D(Y,{"initial-value":T(B)(n.month),options:T(Me),type:"month",onChange:r},null,8,["initial-value","options"]),[[L,c.value===0]]),j(D(Y,{"initial-value":T(B)(n.day),options:T(Xe),type:"day",onChange:r},null,8,["initial-value","options"]),[[L,c.value===1]]),j(D(Y,{"initial-value":T(B)(n.hour),options:T(ke),type:"hour",onChange:r},null,8,["initial-value","options"]),[[L,c.value===2]]),j(D(Y,{"initial-value":T(B)(n.minute),options:T(Te),type:"minute",onChange:r},null,8,["initial-value","options"]),[[L,c.value===3]]),j(D(Y,{"initial-value":T(B)(n.weekday),options:T(z),type:"weekday",onChange:r},null,8,["initial-value","options"]),[[L,c.value===4]]),_("div",vt,[_("button",{class:"save-button button",onClick:s}," Reset changes "),_("button",{class:te(["save-button","button",T(e)?"disabled":""]),onClick:a}," Set changes ",2)])])])]))}});const yt=R(mt,[["__scopeId","data-v-07f4693a"]]),_t={class:"modal-wrapper"},gt={class:"modal"},bt={class:"modal-content-wrapper"},St=H({__name:"AdvancedSettingsModal",props:{job:null},emits:["close","saveCrontab"],setup(p,{emit:g}){const f=$(p.job),h=m=>{g("saveCrontab",m)},v=()=>{g("close")};return(m,u)=>(k(),X("div",_t,[_("div",gt,[_("span",{class:"close",onClick:v},"\xD7"),_("div",bt,[D(yt,{job:f.value,onUpdateSchedule:h},null,8,["job"])])])]))}});const Ot=R(St,[["__scopeId","data-v-184784f2"]]),ae=p=>(K("data-v-53b723be"),p=p(),Q(),p),wt={class:"schedule-editor"},Tt={class:"schedule-settings"},kt=ae(()=>_("div",{class:"title"},"Schedule settings",-1)),Xt=ae(()=>_("div",{class:"subtitle"},"Time Zone: GMT+0000",-1)),Mt={class:"readable-cron"},Et=H({__name:"ScheduleEditor",props:{job:null},setup(p){const g=p,l=$(!1),f=$(g.job),h=()=>{l.value=!l.value},v=()=>{l.value=!1},m=t=>({weekday:t.split(" ")[4],month:t.split(" ")[3],day:t.split(" ")[2],hour:t.split(" ")[1],minute:t.split(" ")[0]}),u=q(m(f.value.schedule)),b=U(()=>re.toString(n.value)),n=U(()=>`${u.minute} ${u.hour} ${u.day} ${u.month} ${u.weekday}`),y=t=>{u.minute==t.minute&&u.hour==t.hour&&u.day==t.day&&u.month==t.month&&u.weekday==t.weekday||(u.minute=t.minute,u.hour=t.hour,u.day=t.day,u.month=t.month,u.weekday=t.weekday,f.value.schedule=n.value)},c=t=>{t?(f.value.schedule=t,Object.assign(u,m(t))):f.value.schedule=n.value,v()};return ee(()=>f.value.schedule,t=>{y({minute:t.split(" ")[0],hour:t.split(" ")[1],day:t.split(" ")[2],month:t.split(" ")[3],weekday:t.split(" ")[4]})}),(t,e)=>(k(),X("div",wt,[_("div",Tt,[kt,Xt,D(ze,{class:"recurrence-settings",crontab:u,onChangeCrontab:y,onSaveCrontab:c,onShowAdvancedSettings:h},null,8,["crontab"])]),_("div",Mt,C(T(b)),1),l.value?(k(),P(Ot,{key:0,job:f.value,onClose:v,onSaveCrontab:c},null,8,["job"])):se("",!0)]))}});const Dt=R(Et,[["__scopeId","data-v-53b723be"]]),Ct={class:"job-editor"},It={class:"settings"},$t=H({__name:"JobEditor",setup(p){const g=ue(),{result:l,loading:f}=he(()=>pe.get(g.params.jobId)),h=ge.create();async function v(){if(!l.value)return;const{stdout:m,stderr:u}=await l.value.test();h.log({type:"stdout",log:m}),h.log({type:"stderr",log:u})}return(m,u)=>{var b;return k(),X("div",Ct,[T(f)||!T(l)?(k(),P(de,{key:0})):(k(),P(ce,{key:1},{left:F(()=>[D(ve,{link:"/_editor/jobs"})]),right:F(()=>[D(be,{path:"jobs"}),D(fe,{model:T(l)},null,8,["model"])]),default:F(()=>[D(le,{title:"Settings"},{default:F(()=>[_("div",It,[D(_e,{runtime:T(l)},null,8,["runtime"]),D(Dt,{style:{width:"100%",height:"100%"},job:T(l)},null,8,["job"])])]),_:1})]),_:1})),D(me,{"log-service":T(h),runtime:"jobs",onRestart:v},null,8,["log-service"]),D(ye,{"has-changes":(b=T(l))==null?void 0:b.hasChanges()},null,8,["has-changes"])])}}});const Qt=R($t,[["__scopeId","data-v-e13d5fde"]]);export{Qt as default}; +//# sourceMappingURL=JobEditor.57ef240b.js.map diff --git a/abstra_statics/dist/assets/Jobs.3054743d.js b/abstra_statics/dist/assets/Jobs.3054743d.js deleted file mode 100644 index cc8ac5dd22..0000000000 --- a/abstra_statics/dist/assets/Jobs.3054743d.js +++ /dev/null @@ -1,2 +0,0 @@ -import{d as y,K as _,b as g,t as h,z as l,H as J}from"./registerWidgets.3fe0df5a.js";import{f as k,g as w,h as C}from"./icons.9d575a00.js";import{a as I}from"./asyncComputed.4b275614.js";import{J as u}from"./jobs.99d61147.js";import{R as x}from"./RuntimeList.8704ae12.js";import"./activeRecord.2bc1b71f.js";import"./pubsub.909df758.js";import"./DropdownMenu.9edc1223.js";import"./CircularLoading.2fb746db.js";import"./lottie.8f58e4c7.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[i]="631b49be-2a87-47bf-b4da-cd90a1137dc4",n._sentryDebugIdIdentifier="sentry-dbid-631b49be-2a87-47bf-b4da-cd90a1137dc4")}catch{}})();const $=y({__name:"Jobs",setup(n){const i=J(),{loading:r,result:a,refetch:c}=I(()=>u.list()),d=({key:e})=>i.push({path:`/_editor/job/${encodeURIComponent(e)}`}),b=async({key:e})=>{var o,t;await((t=(o=a.value)==null?void 0:o.find(s=>s.identifier===e))==null?void 0:t.duplicate()),c()},f=async()=>{const e=await u.create();d({key:e.identifier})},p=async({key:e})=>{var o,t;confirm("Are you sure you want to delete this job?")&&(await((t=(o=a.value)==null?void 0:o.find(s=>s.identifier===e))==null?void 0:t.delete()),c())},m=_(()=>{var e,o;return{columns:[{name:"Job Name"},{name:"Path"},{name:"Job Actions"}],rows:(o=(e=a.value)==null?void 0:e.map(t=>({key:t.identifier,cells:[{text:t.title,classes:["title","centered"],link:`/_editor/job/${encodeURIComponent(t.identifier)}`},{text:t.identifier},{text:"",classes:["centered"],actions:[{icon:k,label:"Delete",onClick:p,dangerous:!0},{icon:w,label:"Edit Job",onClick:d},{icon:C,label:"Duplicate",onClick:b}]}]})))!=null?o:[]}});return(e,o)=>(g(),h(x,{loading:l(r),title:"Python Jobs",description:"Schedule Python scripts like events on a calendar","create-button-text":"Create Job","empty-title":"No jobs here yet",table:l(m),onCreate:f},null,8,["loading","table"]))}});export{$ as default}; -//# sourceMappingURL=Jobs.3054743d.js.map diff --git a/abstra_statics/dist/assets/Jobs.d903c57a.js b/abstra_statics/dist/assets/Jobs.d903c57a.js new file mode 100644 index 0000000000..084743c053 --- /dev/null +++ b/abstra_statics/dist/assets/Jobs.d903c57a.js @@ -0,0 +1,2 @@ +import{d as y,K as _,b as g,t as h,z as d,H as J}from"./registerWidgets.cb3a7b8d.js";import{f as k,g as w,h as C}from"./icons.39dfa322.js";import{a as I}from"./asyncComputed.31994732.js";import{J as u}from"./jobs.d0693d2f.js";import{R as x}from"./RuntimeList.ec9e2b4b.js";import"./activeRecord.adfc6223.js";import"./pubsub.f85a17d2.js";import"./DropdownMenu.c973057b.js";import"./CircularLoading.1e68d2b1.js";import"./lottie.234eb92e.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[i]="ab0b7666-d279-41e5-92f3-252505284f5f",n._sentryDebugIdIdentifier="sentry-dbid-ab0b7666-d279-41e5-92f3-252505284f5f")}catch{}})();const $=y({__name:"Jobs",setup(n){const i=J(),{loading:r,result:a,refetch:l}=I(()=>u.list()),c=({key:e})=>i.push({path:`/_editor/job/${encodeURIComponent(e)}`}),f=async({key:e})=>{var o,t;await((t=(o=a.value)==null?void 0:o.find(s=>s.identifier===e))==null?void 0:t.duplicate()),l()},b=async()=>{const e=await u.create();c({key:e.identifier})},p=async({key:e})=>{var o,t;confirm("Are you sure you want to delete this job?")&&(await((t=(o=a.value)==null?void 0:o.find(s=>s.identifier===e))==null?void 0:t.delete()),l())},m=_(()=>{var e,o;return{columns:[{name:"Job Name"},{name:"Path"},{name:"Job Actions"}],rows:(o=(e=a.value)==null?void 0:e.map(t=>({key:t.identifier,cells:[{text:t.title,classes:["title","centered"],link:`/_editor/job/${encodeURIComponent(t.identifier)}`},{text:t.identifier},{text:"",classes:["centered"],actions:[{icon:k,label:"Delete",onClick:p,dangerous:!0},{icon:w,label:"Edit Job",onClick:c},{icon:C,label:"Duplicate",onClick:f}]}]})))!=null?o:[]}});return(e,o)=>(g(),h(x,{loading:d(r),title:"Python Jobs",description:"Schedule Python scripts like events on a calendar","create-button-text":"Create Job","empty-title":"No jobs here yet",table:d(m),onCreate:b},null,8,["loading","table"]))}});export{$ as default}; +//# sourceMappingURL=Jobs.d903c57a.js.map diff --git a/abstra_statics/dist/assets/LoadingIndicator.a20841c3.js b/abstra_statics/dist/assets/LoadingIndicator.a20841c3.js deleted file mode 100644 index 09d32aea3d..0000000000 --- a/abstra_statics/dist/assets/LoadingIndicator.a20841c3.js +++ /dev/null @@ -1,2 +0,0 @@ -import{L as a}from"./lottie.8f58e4c7.js";import{d as t,r,o as d,b as s,c as i,x as c,B as _,q as l}from"./registerWidgets.3fe0df5a.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="ad6929d2-89f1-4e5b-9257-6091f2be99a0",n._sentryDebugIdIdentifier="sentry-dbid-ad6929d2-89f1-4e5b-9257-6091f2be99a0")}catch{}})();const u={class:"container"},f=t({__name:"LoadingIndicator",setup(n){const e=r(null);return d(()=>{!e.value||a.loadAnimation({container:e.value,renderer:"svg",loop:!0,autoplay:!0,path:"/circularLoading.json"})}),(o,p)=>(s(),i("div",u,[c("div",{ref_key:"animation",ref:e,class:"animation"},null,512),_(o.$slots,"default",{},void 0,!0)]))}});const g=l(f,[["__scopeId","data-v-c30401d8"]]);export{g as L}; -//# sourceMappingURL=LoadingIndicator.a20841c3.js.map diff --git a/abstra_statics/dist/assets/LoadingIndicator.d4ffd545.js b/abstra_statics/dist/assets/LoadingIndicator.d4ffd545.js new file mode 100644 index 0000000000..838e8489ac --- /dev/null +++ b/abstra_statics/dist/assets/LoadingIndicator.d4ffd545.js @@ -0,0 +1,2 @@ +import{L as a}from"./lottie.234eb92e.js";import{d as t,r,o as s,b as d,c as i,x as c,B as _,q as l}from"./registerWidgets.cb3a7b8d.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="54b9c694-9c71-43b8-8747-78dba210af1e",n._sentryDebugIdIdentifier="sentry-dbid-54b9c694-9c71-43b8-8747-78dba210af1e")}catch{}})();const u={class:"container"},f=t({__name:"LoadingIndicator",setup(n){const e=r(null);return s(()=>{!e.value||a.loadAnimation({container:e.value,renderer:"svg",loop:!0,autoplay:!0,path:"/circularLoading.json"})}),(o,p)=>(d(),i("div",u,[c("div",{ref_key:"animation",ref:e,class:"animation"},null,512),_(o.$slots,"default",{},void 0,!0)]))}});const g=l(f,[["__scopeId","data-v-c30401d8"]]);export{g as L}; +//# sourceMappingURL=LoadingIndicator.d4ffd545.js.map diff --git a/abstra_statics/dist/assets/Login.9fadb45e.js b/abstra_statics/dist/assets/Login.9fadb45e.js new file mode 100644 index 0000000000..d2d444c577 --- /dev/null +++ b/abstra_statics/dist/assets/Login.9fadb45e.js @@ -0,0 +1,2 @@ +import{P as r}from"./Passwordless.7161b834.js";import{N as a}from"./Navbar.03aff786.js";import{d,b as i,c,e as t,H as p,q as _}from"./registerWidgets.cb3a7b8d.js";import{M as m}from"./member.f9b469b1.js";import"./CircularLoading.1e68d2b1.js";import"./lottie.234eb92e.js";import"./icons.39dfa322.js";import"./passwordlessManager.afd7d1d0.js";import"./pubsub.f85a17d2.js";import"./logo.084e5d7c.js";import"./asyncComputed.31994732.js";import"./gateway.2edca867.js";import"./activeRecord.adfc6223.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="8dbe2f21-d952-46b5-841c-ad4c96a390e9",e._sentryDebugIdIdentifier="sentry-dbid-8dbe2f21-d952-46b5-841c-ad4c96a390e9")}catch{}})();const f={class:"login"},l=d({__name:"Login",setup(e){const o=p();async function s(n){await m.login(),o.push({name:"home"})}return(n,u)=>(i(),c("div",f,[t(a,{class:"nav"}),t(r,{class:"passwordless",onDone:s})]))}});const B=_(l,[["__scopeId","data-v-c9b2b4e6"]]);export{B as default}; +//# sourceMappingURL=Login.9fadb45e.js.map diff --git a/abstra_statics/dist/assets/Login.f9c518ef.js b/abstra_statics/dist/assets/Login.f9c518ef.js deleted file mode 100644 index dc5f426fde..0000000000 --- a/abstra_statics/dist/assets/Login.f9c518ef.js +++ /dev/null @@ -1,2 +0,0 @@ -import{P as r}from"./Passwordless.15dd7595.js";import{N as a}from"./Navbar.2ae068c3.js";import{d,b as i,c,e as t,H as p,q as _}from"./registerWidgets.3fe0df5a.js";import{M as b}from"./member.6c1a1ede.js";import"./CircularLoading.2fb746db.js";import"./lottie.8f58e4c7.js";import"./icons.9d575a00.js";import"./passwordlessManager.f53316a7.js";import"./pubsub.909df758.js";import"./logo.084e5d7c.js";import"./asyncComputed.4b275614.js";import"./gateway.63e02d1d.js";import"./activeRecord.2bc1b71f.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="75db1d41-e34b-479b-9fd1-e219b83cbdca",e._sentryDebugIdIdentifier="sentry-dbid-75db1d41-e34b-479b-9fd1-e219b83cbdca")}catch{}})();const m={class:"login"},f=d({__name:"Login",setup(e){const o=p();async function s(n){await b.login(),o.push({name:"home"})}return(n,l)=>(i(),c("div",m,[t(a,{class:"nav"}),t(r,{class:"passwordless",onDone:s})]))}});const B=_(f,[["__scopeId","data-v-c9b2b4e6"]]);export{B as default}; -//# sourceMappingURL=Login.f9c518ef.js.map diff --git a/abstra_statics/dist/assets/Logs.f1fbf60c.js b/abstra_statics/dist/assets/Logs.38d26f92.js similarity index 98% rename from abstra_statics/dist/assets/Logs.f1fbf60c.js rename to abstra_statics/dist/assets/Logs.38d26f92.js index 4c7c53a831..14c131ac20 100644 --- a/abstra_statics/dist/assets/Logs.f1fbf60c.js +++ b/abstra_statics/dist/assets/Logs.38d26f92.js @@ -1,4 +1,4 @@ -import{at as P,au as B,av as y,aw as p,ax as N,ay as j,az as W,aA as Z,aB as J,aC as Q,a as U,aD as q,b as d,c as u,am as S,B as b,U as F,N as c,D as I,x as o,G as _,e as K,w as k,aq as X,A as D,ap as Y,F as H,L as R,W as E,d as $,v as G,z as O,t as ee,Z as A,ai as te,J as ie,O as se,Q as le,q as ne}from"./registerWidgets.3fe0df5a.js";import{C as oe}from"./gateway.63e02d1d.js";import{B as ae}from"./build.dca4605d.js";import"./index.24c9f37d.js";import{a as re}from"./asyncComputed.4b275614.js";import{L as de}from"./LoadingIndicator.a20841c3.js";import"./passwordlessManager.f53316a7.js";import"./pubsub.909df758.js";import"./activeRecord.2bc1b71f.js";import"./lottie.8f58e4c7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d6c76e43-a659-4a60-829f-4d6a82bfabb1",e._sentryDebugIdIdentifier="sentry-dbid-d6c76e43-a659-4a60-829f-4d6a82bfabb1")}catch{}})();class ue{list(t){const s=new URLSearchParams({offset:t.offset.toString(),limit:t.limit.toString(),from:t.from.getTime().toString(),to:t.to.getTime().toString(),search:t.search});return oe.get(`projects/${t.projectId}/builds/${t.buildId}/logs?${s}`)}}const ce=new ue;class M{constructor(t,s,r,l,i,m,L){this.executionId=t,this.runtimeType=s,this.runtimeName=r,this.payload=l,this.event=i,this.buildId=m,this.createdAt=L}static fromDTO(t){return new M(t.executionId,t.runtimeType,t.runtimeName,t.payload,t.event,t.buildId,new Date(t.createdAt))}static async list(t){return(await ce.list(t)).logs.map(M.fromDTO)}}var z={name:"Dropdown",emits:["update:modelValue","change","focus","blur","before-show","before-hide","show","hide","filter"],props:{modelValue:null,options:Array,optionLabel:null,optionValue:null,optionDisabled:null,optionGroupLabel:null,optionGroupChildren:null,scrollHeight:{type:String,default:"200px"},filter:Boolean,filterPlaceholder:String,filterLocale:String,filterMatchMode:{type:String,default:"contains"},filterFields:{type:Array,default:null},editable:Boolean,placeholder:{type:String,default:null},disabled:{type:Boolean,default:!1},dataKey:null,showClear:{type:Boolean,default:!1},inputId:{type:String,default:null},inputClass:{type:String,default:null},inputStyle:{type:null,default:null},inputProps:{type:null,default:null},panelClass:{type:String,default:null},panelStyle:{type:null,default:null},panelProps:{type:null,default:null},filterInputProps:{type:null,default:null},clearIconProps:{type:null,default:null},appendTo:{type:String,default:"body"},loading:{type:Boolean,default:!1},clearIcon:{type:String,default:"pi pi-times"},dropdownIcon:{type:String,default:"pi pi-chevron-down"},filterIcon:{type:String,default:"pi pi-search"},loadingIcon:{type:String,default:"pi pi-spinner pi-spin"},resetFilterOnHide:{type:Boolean,default:!1},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!0},autoFilterFocus:{type:Boolean,default:!1},selectOnFocus:{type:Boolean,default:!1},filterMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptyFilterMessage:{type:String,default:null},emptyMessage:{type:String,default:null},tabindex:{type:Number,default:0},"aria-label":{type:String,default:null},"aria-labelledby":{type:String,default:null}},outsideClickListener:null,scrollHandler:null,resizeListener:null,overlay:null,list:null,virtualScroller:null,searchTimeout:null,searchValue:null,isModelValueChanged:!1,focusOnHover:!1,data(){return{id:this.$attrs.id,focused:!1,focusedOptionIndex:-1,filterValue:null,overlayVisible:!1}},watch:{"$attrs.id":function(e){this.id=e||P()},modelValue(){this.isModelValueChanged=!0},options(){this.autoUpdateModel()}},mounted(){this.id=this.id||P(),this.autoUpdateModel()},updated(){this.overlayVisible&&this.isModelValueChanged&&this.scrollInView(this.findSelectedOptionIndex()),this.isModelValueChanged=!1},beforeUnmount(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(B.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex(e,t){return this.virtualScrollerDisabled?e:t&&t(e).index},getOptionLabel(e){return this.optionLabel?y.resolveFieldData(e,this.optionLabel):e},getOptionValue(e){return this.optionValue?y.resolveFieldData(e,this.optionValue):e},getOptionRenderKey(e,t){return(this.dataKey?y.resolveFieldData(e,this.dataKey):this.getOptionLabel(e))+"_"+t},isOptionDisabled(e){return this.optionDisabled?y.resolveFieldData(e,this.optionDisabled):!1},isOptionGroup(e){return this.optionGroupLabel&&e.optionGroup&&e.group},getOptionGroupLabel(e){return y.resolveFieldData(e,this.optionGroupLabel)},getOptionGroupChildren(e){return y.resolveFieldData(e,this.optionGroupChildren)},getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions.slice(0,e).filter(t=>this.isOptionGroup(t)).length:e)+1},show(e){this.$emit("before-show"),this.overlayVisible=!0,this.focusedOptionIndex=this.focusedOptionIndex!==-1?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,e&&p.focus(this.$refs.focusInput)},hide(e){const t=()=>{this.$emit("before-hide"),this.overlayVisible=!1,this.focusedOptionIndex=-1,this.searchValue="",this.resetFilterOnHide&&(this.filterValue=null),e&&p.focus(this.$refs.focusInput)};setTimeout(()=>{t()},0)},onFocus(e){this.disabled||(this.focused=!0,this.focusedOptionIndex=this.focusedOptionIndex!==-1?this.focusedOptionIndex:this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,this.overlayVisible&&this.scrollInView(this.focusedOptionIndex),this.$emit("focus",e))},onBlur(e){this.focused=!1,this.focusedOptionIndex=-1,this.searchValue="",this.$emit("blur",e)},onKeyDown(e){if(this.disabled){e.preventDefault();return}const t=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,this.editable);break;case"Home":this.onHomeKey(e,this.editable);break;case"End":this.onEndKey(e,this.editable);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Space":this.onSpaceKey(e,this.editable);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!t&&y.isPrintableCharacter(e.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(e,e.key));break}},onEditableInput(e){const t=e.target.value;this.searchValue="",!this.searchOptions(e,t)&&(this.focusedOptionIndex=-1),this.$emit("update:modelValue",t)},onContainerClick(e){this.disabled||this.loading||p.hasClass(e.target,"p-dropdown-clear-icon")||e.target.tagName==="INPUT"||(!this.overlay||!this.overlay.contains(e.target))&&(this.overlayVisible?this.hide(!0):this.show(!0))},onClearClick(e){this.updateModel(e,null)},onFirstHiddenFocus(e){const t=e.relatedTarget===this.$refs.focusInput?p.getFirstFocusableElement(this.overlay,":not(.p-hidden-focusable)"):this.$refs.focusInput;p.focus(t)},onLastHiddenFocus(e){const t=e.relatedTarget===this.$refs.focusInput?p.getLastFocusableElement(this.overlay,":not(.p-hidden-focusable)"):this.$refs.focusInput;p.focus(t)},onOptionSelect(e,t,s=!0){const r=this.getOptionValue(t);this.updateModel(e,r),s&&this.hide(!0)},onOptionMouseMove(e,t){this.focusOnHover&&this.changeFocusedOptionIndex(e,t)},onFilterChange(e){const t=e.target.value;this.filterValue=t,this.focusedOptionIndex=-1,this.$emit("filter",{originalEvent:e,value:t}),!this.virtualScrollerDisabled&&this.virtualScroller.scrollToIndex(0)},onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0);break}},onFilterBlur(){this.focusedOptionIndex=-1},onFilterUpdated(){this.overlayVisible&&this.alignOverlay()},onOverlayClick(e){N.emit("overlay-click",{originalEvent:e,target:this.$el})},onOverlayKeyDown(e){switch(e.code){case"Escape":this.onEscapeKey(e);break}},onArrowDownKey(e){const t=this.focusedOptionIndex!==-1?this.findNextOptionIndex(this.focusedOptionIndex):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,t),!this.overlayVisible&&this.show(),e.preventDefault()},onArrowUpKey(e,t=!1){if(e.altKey&&!t)this.focusedOptionIndex!==-1&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),e.preventDefault();else{const s=this.focusedOptionIndex!==-1?this.findPrevOptionIndex(this.focusedOptionIndex):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,s),!this.overlayVisible&&this.show(),e.preventDefault()}},onArrowLeftKey(e,t=!1){t&&(this.focusedOptionIndex=-1)},onHomeKey(e,t=!1){t?(e.currentTarget.setSelectionRange(0,0),this.focusedOptionIndex=-1):(this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show()),e.preventDefault()},onEndKey(e,t=!1){if(t){const s=e.currentTarget,r=s.value.length;s.setSelectionRange(r,r),this.focusedOptionIndex=-1}else this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()},onPageUpKey(e){this.scrollInView(0),e.preventDefault()},onPageDownKey(e){this.scrollInView(this.visibleOptions.length-1),e.preventDefault()},onEnterKey(e){this.overlayVisible?(this.focusedOptionIndex!==-1&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.hide()):this.onArrowDownKey(e),e.preventDefault()},onSpaceKey(e,t=!1){!t&&this.onEnterKey(e)},onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.preventDefault()},onTabKey(e,t=!1){t||(this.overlayVisible&&this.hasFocusableElements()?(p.focus(this.$refs.firstHiddenFocusableElementOnOverlay),e.preventDefault()):(this.focusedOptionIndex!==-1&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(this.filter)))},onBackspaceKey(e,t=!1){t&&!this.overlayVisible&&this.show()},onOverlayEnter(e){B.set("overlay",e,this.$primevue.config.zIndex.overlay),this.alignOverlay(),this.scrollInView(),this.autoFilterFocus&&p.focus(this.$refs.filterInput)},onOverlayAfterEnter(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit("show")},onOverlayLeave(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit("hide"),this.overlay=null},onOverlayAfterLeave(e){B.clear(e)},alignOverlay(){this.appendTo==="self"?p.relativePosition(this.overlay,this.$el):(this.overlay.style.minWidth=p.getOuterWidth(this.$el)+"px",p.absolutePosition(this.overlay,this.$el))},bindOutsideClickListener(){this.outsideClickListener||(this.outsideClickListener=e=>{this.overlayVisible&&this.overlay&&!this.$el.contains(e.target)&&!this.overlay.contains(e.target)&&this.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener(){this.scrollHandler||(this.scrollHandler=new j(this.$refs.container,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener()},unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener(){this.resizeListener||(this.resizeListener=()=>{this.overlayVisible&&!p.isTouchDevice()&&this.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},hasFocusableElements(){return p.getFocusableElements(this.overlay,":not(.p-hidden-focusable)").length>0},isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))},isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))},isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)},isSelected(e){return y.equals(this.modelValue,this.getOptionValue(e),this.equalityKey)},findFirstOptionIndex(){return this.visibleOptions.findIndex(e=>this.isValidOption(e))},findLastOptionIndex(){return y.findLastIndex(this.visibleOptions,e=>this.isValidOption(e))},findNextOptionIndex(e){const t=ethis.isValidOption(s)):-1;return t>-1?t+e+1:e},findPrevOptionIndex(e){const t=e>0?y.findLastIndex(this.visibleOptions.slice(0,e),s=>this.isValidOption(s)):-1;return t>-1?t:e},findSelectedOptionIndex(){return this.hasSelectedOption?this.visibleOptions.findIndex(e=>this.isValidSelectedOption(e)):-1},findFirstFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e},findLastFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e},searchOptions(e,t){this.searchValue=(this.searchValue||"")+t;let s=-1,r=!1;return this.focusedOptionIndex!==-1?(s=this.visibleOptions.slice(this.focusedOptionIndex).findIndex(l=>this.isOptionMatched(l)),s=s===-1?this.visibleOptions.slice(0,this.focusedOptionIndex).findIndex(l=>this.isOptionMatched(l)):s+this.focusedOptionIndex):s=this.visibleOptions.findIndex(l=>this.isOptionMatched(l)),s!==-1&&(r=!0),s===-1&&this.focusedOptionIndex===-1&&(s=this.findFirstFocusedOptionIndex()),s!==-1&&this.changeFocusedOptionIndex(e,s),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),r},changeFocusedOptionIndex(e,t){this.focusedOptionIndex!==t&&(this.focusedOptionIndex=t,this.scrollInView(),this.selectOnFocus&&this.onOptionSelect(e,this.visibleOptions[t],!1))},scrollInView(e=-1){const t=e!==-1?`${this.id}_${e}`:this.focusedOptionId,s=p.findSingle(this.list,`li[id="${t}"]`);s?s.scrollIntoView&&s.scrollIntoView({block:"nearest",inline:"start"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroller&&this.virtualScroller.scrollToIndex(e!==-1?e:this.focusedOptionIndex)},0)},autoUpdateModel(){this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex(),this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1))},updateModel(e,t){this.$emit("update:modelValue",t),this.$emit("change",{originalEvent:e,value:t})},flatOptions(e){return(e||[]).reduce((t,s,r)=>{t.push({optionGroup:s,group:!0,index:r});const l=this.getOptionGroupChildren(s);return l&&l.forEach(i=>t.push(i)),t},[])},overlayRef(e){this.overlay=e},listRef(e,t){this.list=e,t&&t(e)},virtualScrollerRef(e){this.virtualScroller=e}},computed:{containerClass(){return["p-dropdown p-component p-inputwrapper",{"p-disabled":this.disabled,"p-dropdown-clearable":this.showClear&&!this.disabled,"p-focus":this.focused,"p-inputwrapper-filled":this.modelValue,"p-inputwrapper-focus":this.focused||this.overlayVisible,"p-overlay-open":this.overlayVisible}]},inputStyleClass(){return["p-dropdown-label p-inputtext",this.inputClass,{"p-placeholder":!this.editable&&this.label===this.placeholder,"p-dropdown-label-empty":!this.editable&&!this.$slots.value&&(this.label==="p-emptylabel"||this.label.length===0)}]},panelStyleClass(){return["p-dropdown-panel p-component",this.panelClass,{"p-input-filled":this.$primevue.config.inputStyle==="filled","p-ripple-disabled":this.$primevue.config.ripple===!1}]},dropdownIconClass(){return["p-dropdown-trigger-icon",this.loading?this.loadingIcon:this.dropdownIcon]},visibleOptions(){const e=this.optionGroupLabel?this.flatOptions(this.options):this.options||[];if(this.filterValue){const t=W.filter(e,this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale);if(this.optionGroupLabel){const s=this.options||[],r=[];return s.forEach(l=>{const i=l.items.filter(m=>t.includes(m));i.length>0&&r.push({...l,items:[...i]})}),this.flatOptions(r)}return t}return e},hasSelectedOption(){return y.isNotEmpty(this.modelValue)},label(){const e=this.findSelectedOptionIndex();return e!==-1?this.getOptionLabel(this.visibleOptions[e]):this.placeholder||"p-emptylabel"},editableInputValue(){const e=this.findSelectedOptionIndex();return e!==-1?this.getOptionLabel(this.visibleOptions[e]):this.modelValue||""},equalityKey(){return this.optionValue?null:this.dataKey},searchFields(){return this.filterFields||[this.optionLabel]},filterResultMessageText(){return y.isNotEmpty(this.visibleOptions)?this.filterMessageText.replaceAll("{0}",this.visibleOptions.length):this.emptyFilterMessageText},filterMessageText(){return this.filterMessage||this.$primevue.config.locale.searchMessage||""},emptyFilterMessageText(){return this.emptyFilterMessage||this.$primevue.config.locale.emptySearchMessage||this.$primevue.config.locale.emptyFilterMessage||""},emptyMessageText(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage||""},selectionMessageText(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||""},emptySelectionMessageText(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||""},selectedMessageText(){return this.hasSelectedOption?this.selectionMessageText.replaceAll("{0}","1"):this.emptySelectionMessageText},focusedOptionId(){return this.focusedOptionIndex!==-1?`${this.id}_${this.focusedOptionIndex}`:null},ariaSetSize(){return this.visibleOptions.filter(e=>!this.isOptionGroup(e)).length},virtualScrollerDisabled(){return!this.virtualScrollerOptions}},directives:{ripple:Z},components:{VirtualScroller:J,Portal:Q}};const he=["id"],pe=["id","value","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant"],fe=["id","tabindex","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant","aria-disabled"],ye={class:"p-dropdown-trigger"},be={key:0,class:"p-dropdown-header"},ge={class:"p-dropdown-filter-container"},me=["value","placeholder","aria-owns","aria-activedescendant"],ve={role:"status","aria-live":"polite",class:"p-hidden-accessible"},Oe=["id"],Ie=["id"],we=["id","aria-label","aria-selected","aria-disabled","aria-setsize","aria-posinset","onClick","onMousemove"],xe={key:0,class:"p-dropdown-empty-message",role:"option"},Se={key:1,class:"p-dropdown-empty-message",role:"option"},Le={key:1,role:"status","aria-live":"polite",class:"p-hidden-accessible"},Ve={role:"status","aria-live":"polite",class:"p-hidden-accessible"};function Fe(e,t,s,r,l,i){const m=U("VirtualScroller"),L=U("Portal"),V=q("ripple");return d(),u("div",{ref:"container",id:l.id,class:_(i.containerClass),onClick:t[16]||(t[16]=(...n)=>i.onContainerClick&&i.onContainerClick(...n))},[s.editable?(d(),u("input",S({key:0,ref:"focusInput",id:s.inputId,type:"text",style:s.inputStyle,class:i.inputStyleClass,value:i.editableInputValue,placeholder:s.placeholder,tabindex:s.disabled?-1:s.tabindex,disabled:s.disabled,autocomplete:"off",role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-expanded":l.overlayVisible,"aria-controls":l.id+"_list","aria-activedescendant":l.focused?i.focusedOptionId:void 0,onFocus:t[0]||(t[0]=(...n)=>i.onFocus&&i.onFocus(...n)),onBlur:t[1]||(t[1]=(...n)=>i.onBlur&&i.onBlur(...n)),onKeydown:t[2]||(t[2]=(...n)=>i.onKeyDown&&i.onKeyDown(...n)),onInput:t[3]||(t[3]=(...n)=>i.onEditableInput&&i.onEditableInput(...n))},s.inputProps),null,16,pe)):(d(),u("span",S({key:1,ref:"focusInput",id:s.inputId,style:s.inputStyle,class:i.inputStyleClass,tabindex:s.disabled?-1:s.tabindex,role:"combobox","aria-label":e.ariaLabel||(i.label==="p-emptylabel"?void 0:i.label),"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-expanded":l.overlayVisible,"aria-controls":l.id+"_list","aria-activedescendant":l.focused?i.focusedOptionId:void 0,"aria-disabled":s.disabled,onFocus:t[4]||(t[4]=(...n)=>i.onFocus&&i.onFocus(...n)),onBlur:t[5]||(t[5]=(...n)=>i.onBlur&&i.onBlur(...n)),onKeydown:t[6]||(t[6]=(...n)=>i.onKeyDown&&i.onKeyDown(...n))},s.inputProps),[b(e.$slots,"value",{value:s.modelValue,placeholder:s.placeholder},()=>[F(c(i.label==="p-emptylabel"?"\xA0":i.label||"empty"),1)])],16,fe)),s.showClear&&s.modelValue!=null?(d(),u("i",S({key:2,class:["p-dropdown-clear-icon",s.clearIcon],onClick:t[7]||(t[7]=(...n)=>i.onClearClick&&i.onClearClick(...n))},s.clearIconProps),null,16)):I("",!0),o("div",ye,[b(e.$slots,"indicator",{},()=>[o("span",{class:_(i.dropdownIconClass),"aria-hidden":"true"},null,2)])]),K(L,{appendTo:s.appendTo},{default:k(()=>[K(X,{name:"p-connected-overlay",onEnter:i.onOverlayEnter,onAfterEnter:i.onOverlayAfterEnter,onLeave:i.onOverlayLeave,onAfterLeave:i.onOverlayAfterLeave},{default:k(()=>[l.overlayVisible?(d(),u("div",S({key:0,ref:i.overlayRef,style:s.panelStyle,class:i.panelStyleClass,onClick:t[14]||(t[14]=(...n)=>i.onOverlayClick&&i.onOverlayClick(...n)),onKeydown:t[15]||(t[15]=(...n)=>i.onOverlayKeyDown&&i.onOverlayKeyDown(...n))},s.panelProps),[o("span",{ref:"firstHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:t[8]||(t[8]=(...n)=>i.onFirstHiddenFocus&&i.onFirstHiddenFocus(...n))},null,544),b(e.$slots,"header",{value:s.modelValue,options:i.visibleOptions}),s.filter?(d(),u("div",be,[o("div",ge,[o("input",S({ref:"filterInput",type:"text",value:l.filterValue,onVnodeUpdated:t[9]||(t[9]=(...n)=>i.onFilterUpdated&&i.onFilterUpdated(...n)),class:"p-dropdown-filter p-inputtext p-component",placeholder:s.filterPlaceholder,role:"searchbox",autocomplete:"off","aria-owns":l.id+"_list","aria-activedescendant":i.focusedOptionId,onKeydown:t[10]||(t[10]=(...n)=>i.onFilterKeyDown&&i.onFilterKeyDown(...n)),onBlur:t[11]||(t[11]=(...n)=>i.onFilterBlur&&i.onFilterBlur(...n)),onInput:t[12]||(t[12]=(...n)=>i.onFilterChange&&i.onFilterChange(...n))},s.filterInputProps),null,16,me),o("span",{class:_(["p-dropdown-filter-icon",s.filterIcon])},null,2)]),o("span",ve,c(i.filterResultMessageText),1)])):I("",!0),o("div",{class:"p-dropdown-items-wrapper",style:D({"max-height":i.virtualScrollerDisabled?s.scrollHeight:""})},[K(m,S({ref:i.virtualScrollerRef},s.virtualScrollerOptions,{items:i.visibleOptions,style:{height:s.scrollHeight},tabindex:-1,disabled:i.virtualScrollerDisabled}),Y({content:k(({styleClass:n,contentRef:x,items:h,getItemOptions:a,contentStyle:C,itemSize:v})=>[o("ul",{ref:f=>i.listRef(f,x),id:l.id+"_list",class:_(["p-dropdown-items",n]),style:D(C),role:"listbox"},[(d(!0),u(H,null,R(h,(f,g)=>(d(),u(H,{key:i.getOptionRenderKey(f,i.getOptionIndex(g,a))},[i.isOptionGroup(f)?(d(),u("li",{key:0,id:l.id+"_"+i.getOptionIndex(g,a),style:D({height:v?v+"px":void 0}),class:"p-dropdown-item-group",role:"option"},[b(e.$slots,"optiongroup",{option:f.optionGroup,index:i.getOptionIndex(g,a)},()=>[F(c(i.getOptionGroupLabel(f.optionGroup)),1)])],12,Ie)):E((d(),u("li",{key:1,id:l.id+"_"+i.getOptionIndex(g,a),style:D({height:v?v+"px":void 0}),class:_(["p-dropdown-item",{"p-highlight":i.isSelected(f),"p-focus":l.focusedOptionIndex===i.getOptionIndex(g,a),"p-disabled":i.isOptionDisabled(f)}]),role:"option","aria-label":i.getOptionLabel(f),"aria-selected":i.isSelected(f),"aria-disabled":i.isOptionDisabled(f),"aria-setsize":i.ariaSetSize,"aria-posinset":i.getAriaPosInset(i.getOptionIndex(g,a)),onClick:T=>i.onOptionSelect(T,f),onMousemove:T=>i.onOptionMouseMove(T,i.getOptionIndex(g,a))},[b(e.$slots,"option",{option:f,index:i.getOptionIndex(g,a)},()=>[F(c(i.getOptionLabel(f)),1)])],46,we)),[[V]])],64))),128)),l.filterValue&&(!h||h&&h.length===0)?(d(),u("li",xe,[b(e.$slots,"emptyfilter",{},()=>[F(c(i.emptyFilterMessageText),1)])])):!s.options||s.options&&s.options.length===0?(d(),u("li",Se,[b(e.$slots,"empty",{},()=>[F(c(i.emptyMessageText),1)])])):I("",!0)],14,Oe)]),_:2},[e.$slots.loader?{name:"loader",fn:k(({options:n})=>[b(e.$slots,"loader",{options:n})]),key:"0"}:void 0]),1040,["items","style","disabled"])],4),b(e.$slots,"footer",{value:s.modelValue,options:i.visibleOptions}),!s.options||s.options&&s.options.length===0?(d(),u("span",Le,c(i.emptyMessageText),1)):I("",!0),o("span",Ve,c(i.selectedMessageText),1),o("span",{ref:"lastHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:t[13]||(t[13]=(...n)=>i.onLastHiddenFocus&&i.onLastHiddenFocus(...n))},null,544)],16)):I("",!0)]),_:3},8,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]),_:3},8,["appendTo"])],10,he)}function _e(e,t){t===void 0&&(t={});var s=t.insertAt;if(!(!e||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css",s==="top"&&r.firstChild?r.insertBefore(l,r.firstChild):r.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e))}}var Ce=` +import{at as P,au as B,av as y,aw as p,ax as N,ay as j,az as W,aA as Z,aB as J,aC as Q,a as U,aD as q,b as d,c as u,am as S,B as b,U as F,N as c,D as I,x as o,G as _,e as K,w as k,aq as X,A as D,ap as Y,F as H,L as R,W as E,d as $,v as G,z as O,t as ee,Z as A,ai as te,J as ie,O as se,Q as le,q as ne}from"./registerWidgets.cb3a7b8d.js";import{C as oe}from"./gateway.2edca867.js";import{B as ae}from"./build.56ee1e90.js";import"./index.7fea4022.js";import{a as re}from"./asyncComputed.31994732.js";import{L as de}from"./LoadingIndicator.d4ffd545.js";import"./passwordlessManager.afd7d1d0.js";import"./pubsub.f85a17d2.js";import"./activeRecord.adfc6223.js";import"./lottie.234eb92e.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a3fe2e9d-fc3b-475e-8a02-fb1123a94080",e._sentryDebugIdIdentifier="sentry-dbid-a3fe2e9d-fc3b-475e-8a02-fb1123a94080")}catch{}})();class ue{list(t){const s=new URLSearchParams({offset:t.offset.toString(),limit:t.limit.toString(),from:t.from.getTime().toString(),to:t.to.getTime().toString(),search:t.search});return oe.get(`projects/${t.projectId}/builds/${t.buildId}/logs?${s}`)}}const ce=new ue;class M{constructor(t,s,r,l,i,m,L){this.executionId=t,this.runtimeType=s,this.runtimeName=r,this.payload=l,this.event=i,this.buildId=m,this.createdAt=L}static fromDTO(t){return new M(t.executionId,t.runtimeType,t.runtimeName,t.payload,t.event,t.buildId,new Date(t.createdAt))}static async list(t){return(await ce.list(t)).logs.map(M.fromDTO)}}var z={name:"Dropdown",emits:["update:modelValue","change","focus","blur","before-show","before-hide","show","hide","filter"],props:{modelValue:null,options:Array,optionLabel:null,optionValue:null,optionDisabled:null,optionGroupLabel:null,optionGroupChildren:null,scrollHeight:{type:String,default:"200px"},filter:Boolean,filterPlaceholder:String,filterLocale:String,filterMatchMode:{type:String,default:"contains"},filterFields:{type:Array,default:null},editable:Boolean,placeholder:{type:String,default:null},disabled:{type:Boolean,default:!1},dataKey:null,showClear:{type:Boolean,default:!1},inputId:{type:String,default:null},inputClass:{type:String,default:null},inputStyle:{type:null,default:null},inputProps:{type:null,default:null},panelClass:{type:String,default:null},panelStyle:{type:null,default:null},panelProps:{type:null,default:null},filterInputProps:{type:null,default:null},clearIconProps:{type:null,default:null},appendTo:{type:String,default:"body"},loading:{type:Boolean,default:!1},clearIcon:{type:String,default:"pi pi-times"},dropdownIcon:{type:String,default:"pi pi-chevron-down"},filterIcon:{type:String,default:"pi pi-search"},loadingIcon:{type:String,default:"pi pi-spinner pi-spin"},resetFilterOnHide:{type:Boolean,default:!1},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!0},autoFilterFocus:{type:Boolean,default:!1},selectOnFocus:{type:Boolean,default:!1},filterMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptyFilterMessage:{type:String,default:null},emptyMessage:{type:String,default:null},tabindex:{type:Number,default:0},"aria-label":{type:String,default:null},"aria-labelledby":{type:String,default:null}},outsideClickListener:null,scrollHandler:null,resizeListener:null,overlay:null,list:null,virtualScroller:null,searchTimeout:null,searchValue:null,isModelValueChanged:!1,focusOnHover:!1,data(){return{id:this.$attrs.id,focused:!1,focusedOptionIndex:-1,filterValue:null,overlayVisible:!1}},watch:{"$attrs.id":function(e){this.id=e||P()},modelValue(){this.isModelValueChanged=!0},options(){this.autoUpdateModel()}},mounted(){this.id=this.id||P(),this.autoUpdateModel()},updated(){this.overlayVisible&&this.isModelValueChanged&&this.scrollInView(this.findSelectedOptionIndex()),this.isModelValueChanged=!1},beforeUnmount(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(B.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex(e,t){return this.virtualScrollerDisabled?e:t&&t(e).index},getOptionLabel(e){return this.optionLabel?y.resolveFieldData(e,this.optionLabel):e},getOptionValue(e){return this.optionValue?y.resolveFieldData(e,this.optionValue):e},getOptionRenderKey(e,t){return(this.dataKey?y.resolveFieldData(e,this.dataKey):this.getOptionLabel(e))+"_"+t},isOptionDisabled(e){return this.optionDisabled?y.resolveFieldData(e,this.optionDisabled):!1},isOptionGroup(e){return this.optionGroupLabel&&e.optionGroup&&e.group},getOptionGroupLabel(e){return y.resolveFieldData(e,this.optionGroupLabel)},getOptionGroupChildren(e){return y.resolveFieldData(e,this.optionGroupChildren)},getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions.slice(0,e).filter(t=>this.isOptionGroup(t)).length:e)+1},show(e){this.$emit("before-show"),this.overlayVisible=!0,this.focusedOptionIndex=this.focusedOptionIndex!==-1?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,e&&p.focus(this.$refs.focusInput)},hide(e){const t=()=>{this.$emit("before-hide"),this.overlayVisible=!1,this.focusedOptionIndex=-1,this.searchValue="",this.resetFilterOnHide&&(this.filterValue=null),e&&p.focus(this.$refs.focusInput)};setTimeout(()=>{t()},0)},onFocus(e){this.disabled||(this.focused=!0,this.focusedOptionIndex=this.focusedOptionIndex!==-1?this.focusedOptionIndex:this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,this.overlayVisible&&this.scrollInView(this.focusedOptionIndex),this.$emit("focus",e))},onBlur(e){this.focused=!1,this.focusedOptionIndex=-1,this.searchValue="",this.$emit("blur",e)},onKeyDown(e){if(this.disabled){e.preventDefault();return}const t=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,this.editable);break;case"Home":this.onHomeKey(e,this.editable);break;case"End":this.onEndKey(e,this.editable);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Space":this.onSpaceKey(e,this.editable);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!t&&y.isPrintableCharacter(e.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(e,e.key));break}},onEditableInput(e){const t=e.target.value;this.searchValue="",!this.searchOptions(e,t)&&(this.focusedOptionIndex=-1),this.$emit("update:modelValue",t)},onContainerClick(e){this.disabled||this.loading||p.hasClass(e.target,"p-dropdown-clear-icon")||e.target.tagName==="INPUT"||(!this.overlay||!this.overlay.contains(e.target))&&(this.overlayVisible?this.hide(!0):this.show(!0))},onClearClick(e){this.updateModel(e,null)},onFirstHiddenFocus(e){const t=e.relatedTarget===this.$refs.focusInput?p.getFirstFocusableElement(this.overlay,":not(.p-hidden-focusable)"):this.$refs.focusInput;p.focus(t)},onLastHiddenFocus(e){const t=e.relatedTarget===this.$refs.focusInput?p.getLastFocusableElement(this.overlay,":not(.p-hidden-focusable)"):this.$refs.focusInput;p.focus(t)},onOptionSelect(e,t,s=!0){const r=this.getOptionValue(t);this.updateModel(e,r),s&&this.hide(!0)},onOptionMouseMove(e,t){this.focusOnHover&&this.changeFocusedOptionIndex(e,t)},onFilterChange(e){const t=e.target.value;this.filterValue=t,this.focusedOptionIndex=-1,this.$emit("filter",{originalEvent:e,value:t}),!this.virtualScrollerDisabled&&this.virtualScroller.scrollToIndex(0)},onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0);break}},onFilterBlur(){this.focusedOptionIndex=-1},onFilterUpdated(){this.overlayVisible&&this.alignOverlay()},onOverlayClick(e){N.emit("overlay-click",{originalEvent:e,target:this.$el})},onOverlayKeyDown(e){switch(e.code){case"Escape":this.onEscapeKey(e);break}},onArrowDownKey(e){const t=this.focusedOptionIndex!==-1?this.findNextOptionIndex(this.focusedOptionIndex):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,t),!this.overlayVisible&&this.show(),e.preventDefault()},onArrowUpKey(e,t=!1){if(e.altKey&&!t)this.focusedOptionIndex!==-1&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),e.preventDefault();else{const s=this.focusedOptionIndex!==-1?this.findPrevOptionIndex(this.focusedOptionIndex):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,s),!this.overlayVisible&&this.show(),e.preventDefault()}},onArrowLeftKey(e,t=!1){t&&(this.focusedOptionIndex=-1)},onHomeKey(e,t=!1){t?(e.currentTarget.setSelectionRange(0,0),this.focusedOptionIndex=-1):(this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show()),e.preventDefault()},onEndKey(e,t=!1){if(t){const s=e.currentTarget,r=s.value.length;s.setSelectionRange(r,r),this.focusedOptionIndex=-1}else this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()},onPageUpKey(e){this.scrollInView(0),e.preventDefault()},onPageDownKey(e){this.scrollInView(this.visibleOptions.length-1),e.preventDefault()},onEnterKey(e){this.overlayVisible?(this.focusedOptionIndex!==-1&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.hide()):this.onArrowDownKey(e),e.preventDefault()},onSpaceKey(e,t=!1){!t&&this.onEnterKey(e)},onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.preventDefault()},onTabKey(e,t=!1){t||(this.overlayVisible&&this.hasFocusableElements()?(p.focus(this.$refs.firstHiddenFocusableElementOnOverlay),e.preventDefault()):(this.focusedOptionIndex!==-1&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(this.filter)))},onBackspaceKey(e,t=!1){t&&!this.overlayVisible&&this.show()},onOverlayEnter(e){B.set("overlay",e,this.$primevue.config.zIndex.overlay),this.alignOverlay(),this.scrollInView(),this.autoFilterFocus&&p.focus(this.$refs.filterInput)},onOverlayAfterEnter(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit("show")},onOverlayLeave(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit("hide"),this.overlay=null},onOverlayAfterLeave(e){B.clear(e)},alignOverlay(){this.appendTo==="self"?p.relativePosition(this.overlay,this.$el):(this.overlay.style.minWidth=p.getOuterWidth(this.$el)+"px",p.absolutePosition(this.overlay,this.$el))},bindOutsideClickListener(){this.outsideClickListener||(this.outsideClickListener=e=>{this.overlayVisible&&this.overlay&&!this.$el.contains(e.target)&&!this.overlay.contains(e.target)&&this.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener(){this.scrollHandler||(this.scrollHandler=new j(this.$refs.container,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener()},unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener(){this.resizeListener||(this.resizeListener=()=>{this.overlayVisible&&!p.isTouchDevice()&&this.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},hasFocusableElements(){return p.getFocusableElements(this.overlay,":not(.p-hidden-focusable)").length>0},isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))},isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))},isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)},isSelected(e){return y.equals(this.modelValue,this.getOptionValue(e),this.equalityKey)},findFirstOptionIndex(){return this.visibleOptions.findIndex(e=>this.isValidOption(e))},findLastOptionIndex(){return y.findLastIndex(this.visibleOptions,e=>this.isValidOption(e))},findNextOptionIndex(e){const t=ethis.isValidOption(s)):-1;return t>-1?t+e+1:e},findPrevOptionIndex(e){const t=e>0?y.findLastIndex(this.visibleOptions.slice(0,e),s=>this.isValidOption(s)):-1;return t>-1?t:e},findSelectedOptionIndex(){return this.hasSelectedOption?this.visibleOptions.findIndex(e=>this.isValidSelectedOption(e)):-1},findFirstFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e},findLastFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e},searchOptions(e,t){this.searchValue=(this.searchValue||"")+t;let s=-1,r=!1;return this.focusedOptionIndex!==-1?(s=this.visibleOptions.slice(this.focusedOptionIndex).findIndex(l=>this.isOptionMatched(l)),s=s===-1?this.visibleOptions.slice(0,this.focusedOptionIndex).findIndex(l=>this.isOptionMatched(l)):s+this.focusedOptionIndex):s=this.visibleOptions.findIndex(l=>this.isOptionMatched(l)),s!==-1&&(r=!0),s===-1&&this.focusedOptionIndex===-1&&(s=this.findFirstFocusedOptionIndex()),s!==-1&&this.changeFocusedOptionIndex(e,s),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),r},changeFocusedOptionIndex(e,t){this.focusedOptionIndex!==t&&(this.focusedOptionIndex=t,this.scrollInView(),this.selectOnFocus&&this.onOptionSelect(e,this.visibleOptions[t],!1))},scrollInView(e=-1){const t=e!==-1?`${this.id}_${e}`:this.focusedOptionId,s=p.findSingle(this.list,`li[id="${t}"]`);s?s.scrollIntoView&&s.scrollIntoView({block:"nearest",inline:"start"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroller&&this.virtualScroller.scrollToIndex(e!==-1?e:this.focusedOptionIndex)},0)},autoUpdateModel(){this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex(),this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1))},updateModel(e,t){this.$emit("update:modelValue",t),this.$emit("change",{originalEvent:e,value:t})},flatOptions(e){return(e||[]).reduce((t,s,r)=>{t.push({optionGroup:s,group:!0,index:r});const l=this.getOptionGroupChildren(s);return l&&l.forEach(i=>t.push(i)),t},[])},overlayRef(e){this.overlay=e},listRef(e,t){this.list=e,t&&t(e)},virtualScrollerRef(e){this.virtualScroller=e}},computed:{containerClass(){return["p-dropdown p-component p-inputwrapper",{"p-disabled":this.disabled,"p-dropdown-clearable":this.showClear&&!this.disabled,"p-focus":this.focused,"p-inputwrapper-filled":this.modelValue,"p-inputwrapper-focus":this.focused||this.overlayVisible,"p-overlay-open":this.overlayVisible}]},inputStyleClass(){return["p-dropdown-label p-inputtext",this.inputClass,{"p-placeholder":!this.editable&&this.label===this.placeholder,"p-dropdown-label-empty":!this.editable&&!this.$slots.value&&(this.label==="p-emptylabel"||this.label.length===0)}]},panelStyleClass(){return["p-dropdown-panel p-component",this.panelClass,{"p-input-filled":this.$primevue.config.inputStyle==="filled","p-ripple-disabled":this.$primevue.config.ripple===!1}]},dropdownIconClass(){return["p-dropdown-trigger-icon",this.loading?this.loadingIcon:this.dropdownIcon]},visibleOptions(){const e=this.optionGroupLabel?this.flatOptions(this.options):this.options||[];if(this.filterValue){const t=W.filter(e,this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale);if(this.optionGroupLabel){const s=this.options||[],r=[];return s.forEach(l=>{const i=l.items.filter(m=>t.includes(m));i.length>0&&r.push({...l,items:[...i]})}),this.flatOptions(r)}return t}return e},hasSelectedOption(){return y.isNotEmpty(this.modelValue)},label(){const e=this.findSelectedOptionIndex();return e!==-1?this.getOptionLabel(this.visibleOptions[e]):this.placeholder||"p-emptylabel"},editableInputValue(){const e=this.findSelectedOptionIndex();return e!==-1?this.getOptionLabel(this.visibleOptions[e]):this.modelValue||""},equalityKey(){return this.optionValue?null:this.dataKey},searchFields(){return this.filterFields||[this.optionLabel]},filterResultMessageText(){return y.isNotEmpty(this.visibleOptions)?this.filterMessageText.replaceAll("{0}",this.visibleOptions.length):this.emptyFilterMessageText},filterMessageText(){return this.filterMessage||this.$primevue.config.locale.searchMessage||""},emptyFilterMessageText(){return this.emptyFilterMessage||this.$primevue.config.locale.emptySearchMessage||this.$primevue.config.locale.emptyFilterMessage||""},emptyMessageText(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage||""},selectionMessageText(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||""},emptySelectionMessageText(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||""},selectedMessageText(){return this.hasSelectedOption?this.selectionMessageText.replaceAll("{0}","1"):this.emptySelectionMessageText},focusedOptionId(){return this.focusedOptionIndex!==-1?`${this.id}_${this.focusedOptionIndex}`:null},ariaSetSize(){return this.visibleOptions.filter(e=>!this.isOptionGroup(e)).length},virtualScrollerDisabled(){return!this.virtualScrollerOptions}},directives:{ripple:Z},components:{VirtualScroller:J,Portal:Q}};const he=["id"],pe=["id","value","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant"],fe=["id","tabindex","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant","aria-disabled"],ye={class:"p-dropdown-trigger"},be={key:0,class:"p-dropdown-header"},ge={class:"p-dropdown-filter-container"},me=["value","placeholder","aria-owns","aria-activedescendant"],ve={role:"status","aria-live":"polite",class:"p-hidden-accessible"},Oe=["id"],Ie=["id"],we=["id","aria-label","aria-selected","aria-disabled","aria-setsize","aria-posinset","onClick","onMousemove"],xe={key:0,class:"p-dropdown-empty-message",role:"option"},Se={key:1,class:"p-dropdown-empty-message",role:"option"},Le={key:1,role:"status","aria-live":"polite",class:"p-hidden-accessible"},Ve={role:"status","aria-live":"polite",class:"p-hidden-accessible"};function Fe(e,t,s,r,l,i){const m=U("VirtualScroller"),L=U("Portal"),V=q("ripple");return d(),u("div",{ref:"container",id:l.id,class:_(i.containerClass),onClick:t[16]||(t[16]=(...n)=>i.onContainerClick&&i.onContainerClick(...n))},[s.editable?(d(),u("input",S({key:0,ref:"focusInput",id:s.inputId,type:"text",style:s.inputStyle,class:i.inputStyleClass,value:i.editableInputValue,placeholder:s.placeholder,tabindex:s.disabled?-1:s.tabindex,disabled:s.disabled,autocomplete:"off",role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-expanded":l.overlayVisible,"aria-controls":l.id+"_list","aria-activedescendant":l.focused?i.focusedOptionId:void 0,onFocus:t[0]||(t[0]=(...n)=>i.onFocus&&i.onFocus(...n)),onBlur:t[1]||(t[1]=(...n)=>i.onBlur&&i.onBlur(...n)),onKeydown:t[2]||(t[2]=(...n)=>i.onKeyDown&&i.onKeyDown(...n)),onInput:t[3]||(t[3]=(...n)=>i.onEditableInput&&i.onEditableInput(...n))},s.inputProps),null,16,pe)):(d(),u("span",S({key:1,ref:"focusInput",id:s.inputId,style:s.inputStyle,class:i.inputStyleClass,tabindex:s.disabled?-1:s.tabindex,role:"combobox","aria-label":e.ariaLabel||(i.label==="p-emptylabel"?void 0:i.label),"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-expanded":l.overlayVisible,"aria-controls":l.id+"_list","aria-activedescendant":l.focused?i.focusedOptionId:void 0,"aria-disabled":s.disabled,onFocus:t[4]||(t[4]=(...n)=>i.onFocus&&i.onFocus(...n)),onBlur:t[5]||(t[5]=(...n)=>i.onBlur&&i.onBlur(...n)),onKeydown:t[6]||(t[6]=(...n)=>i.onKeyDown&&i.onKeyDown(...n))},s.inputProps),[b(e.$slots,"value",{value:s.modelValue,placeholder:s.placeholder},()=>[F(c(i.label==="p-emptylabel"?"\xA0":i.label||"empty"),1)])],16,fe)),s.showClear&&s.modelValue!=null?(d(),u("i",S({key:2,class:["p-dropdown-clear-icon",s.clearIcon],onClick:t[7]||(t[7]=(...n)=>i.onClearClick&&i.onClearClick(...n))},s.clearIconProps),null,16)):I("",!0),o("div",ye,[b(e.$slots,"indicator",{},()=>[o("span",{class:_(i.dropdownIconClass),"aria-hidden":"true"},null,2)])]),K(L,{appendTo:s.appendTo},{default:k(()=>[K(X,{name:"p-connected-overlay",onEnter:i.onOverlayEnter,onAfterEnter:i.onOverlayAfterEnter,onLeave:i.onOverlayLeave,onAfterLeave:i.onOverlayAfterLeave},{default:k(()=>[l.overlayVisible?(d(),u("div",S({key:0,ref:i.overlayRef,style:s.panelStyle,class:i.panelStyleClass,onClick:t[14]||(t[14]=(...n)=>i.onOverlayClick&&i.onOverlayClick(...n)),onKeydown:t[15]||(t[15]=(...n)=>i.onOverlayKeyDown&&i.onOverlayKeyDown(...n))},s.panelProps),[o("span",{ref:"firstHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:t[8]||(t[8]=(...n)=>i.onFirstHiddenFocus&&i.onFirstHiddenFocus(...n))},null,544),b(e.$slots,"header",{value:s.modelValue,options:i.visibleOptions}),s.filter?(d(),u("div",be,[o("div",ge,[o("input",S({ref:"filterInput",type:"text",value:l.filterValue,onVnodeUpdated:t[9]||(t[9]=(...n)=>i.onFilterUpdated&&i.onFilterUpdated(...n)),class:"p-dropdown-filter p-inputtext p-component",placeholder:s.filterPlaceholder,role:"searchbox",autocomplete:"off","aria-owns":l.id+"_list","aria-activedescendant":i.focusedOptionId,onKeydown:t[10]||(t[10]=(...n)=>i.onFilterKeyDown&&i.onFilterKeyDown(...n)),onBlur:t[11]||(t[11]=(...n)=>i.onFilterBlur&&i.onFilterBlur(...n)),onInput:t[12]||(t[12]=(...n)=>i.onFilterChange&&i.onFilterChange(...n))},s.filterInputProps),null,16,me),o("span",{class:_(["p-dropdown-filter-icon",s.filterIcon])},null,2)]),o("span",ve,c(i.filterResultMessageText),1)])):I("",!0),o("div",{class:"p-dropdown-items-wrapper",style:D({"max-height":i.virtualScrollerDisabled?s.scrollHeight:""})},[K(m,S({ref:i.virtualScrollerRef},s.virtualScrollerOptions,{items:i.visibleOptions,style:{height:s.scrollHeight},tabindex:-1,disabled:i.virtualScrollerDisabled}),Y({content:k(({styleClass:n,contentRef:x,items:h,getItemOptions:a,contentStyle:C,itemSize:v})=>[o("ul",{ref:f=>i.listRef(f,x),id:l.id+"_list",class:_(["p-dropdown-items",n]),style:D(C),role:"listbox"},[(d(!0),u(H,null,R(h,(f,g)=>(d(),u(H,{key:i.getOptionRenderKey(f,i.getOptionIndex(g,a))},[i.isOptionGroup(f)?(d(),u("li",{key:0,id:l.id+"_"+i.getOptionIndex(g,a),style:D({height:v?v+"px":void 0}),class:"p-dropdown-item-group",role:"option"},[b(e.$slots,"optiongroup",{option:f.optionGroup,index:i.getOptionIndex(g,a)},()=>[F(c(i.getOptionGroupLabel(f.optionGroup)),1)])],12,Ie)):E((d(),u("li",{key:1,id:l.id+"_"+i.getOptionIndex(g,a),style:D({height:v?v+"px":void 0}),class:_(["p-dropdown-item",{"p-highlight":i.isSelected(f),"p-focus":l.focusedOptionIndex===i.getOptionIndex(g,a),"p-disabled":i.isOptionDisabled(f)}]),role:"option","aria-label":i.getOptionLabel(f),"aria-selected":i.isSelected(f),"aria-disabled":i.isOptionDisabled(f),"aria-setsize":i.ariaSetSize,"aria-posinset":i.getAriaPosInset(i.getOptionIndex(g,a)),onClick:T=>i.onOptionSelect(T,f),onMousemove:T=>i.onOptionMouseMove(T,i.getOptionIndex(g,a))},[b(e.$slots,"option",{option:f,index:i.getOptionIndex(g,a)},()=>[F(c(i.getOptionLabel(f)),1)])],46,we)),[[V]])],64))),128)),l.filterValue&&(!h||h&&h.length===0)?(d(),u("li",xe,[b(e.$slots,"emptyfilter",{},()=>[F(c(i.emptyFilterMessageText),1)])])):!s.options||s.options&&s.options.length===0?(d(),u("li",Se,[b(e.$slots,"empty",{},()=>[F(c(i.emptyMessageText),1)])])):I("",!0)],14,Oe)]),_:2},[e.$slots.loader?{name:"loader",fn:k(({options:n})=>[b(e.$slots,"loader",{options:n})]),key:"0"}:void 0]),1040,["items","style","disabled"])],4),b(e.$slots,"footer",{value:s.modelValue,options:i.visibleOptions}),!s.options||s.options&&s.options.length===0?(d(),u("span",Le,c(i.emptyMessageText),1)):I("",!0),o("span",Ve,c(i.selectedMessageText),1),o("span",{ref:"lastHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:t[13]||(t[13]=(...n)=>i.onLastHiddenFocus&&i.onLastHiddenFocus(...n))},null,544)],16)):I("",!0)]),_:3},8,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]),_:3},8,["appendTo"])],10,he)}function _e(e,t){t===void 0&&(t={});var s=t.insertAt;if(!(!e||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css",s==="top"&&r.firstChild?r.insertBefore(l,r.firstChild):r.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e))}}var Ce=` .p-dropdown { display: inline-flex; cursor: pointer; @@ -76,4 +76,4 @@ input.p-dropdown-label { width: 1%; } `;_e(Ce);z.render=Fe;const w=e=>(se("data-v-9cea6de7"),e=e(),le(),e),ke={key:1,class:"logs"},De=w(()=>o("h1",null,"Logs",-1)),Ke={class:"filters"},Ee={class:"field field-build"},Me=w(()=>o("label",null,"Build",-1)),Te={class:"field"},Be=w(()=>o("label",null,"From",-1)),Ae={class:"field"},He=w(()=>o("label",null,"To",-1)),Pe={class:"field"},Ue=w(()=>o("label",null,"Search",-1)),Ge={key:0,class:"log-list"},Re={class:"search-summary"},ze={class:"log"},Ne={class:"log-header"},je={key:0,class:"log-date log-header-item"},We=w(()=>o("span",{class:"log-header-item-name"},"Build",-1)),Ze=[We],Je=te('
Date
Runtime
Execution
Event
',4),Qe={class:"log-header"},qe={key:0,class:"log-date log-header-item"},Xe={class:"log-header-item-value"},Ye={class:"log-date log-header-item"},$e={class:"log-header-item-value"},et={class:"log-runtime log-header-item"},tt={class:"log-header-item-value"},it={class:"log-execution log-header-item"},st={class:"log-header-item-value"},lt={class:"log-event log-header-item"},nt={class:"log-header-item-value"},ot={class:"log-payload"},at=["textContent"],rt=["textContent"],dt=["textContent"],ut=["textContent"],ct=["textContent"],ht={key:1,class:"no-logs"},pt=w(()=>o("p",null,"No logs found.",-1)),ft=[pt],yt=$({__name:"Logs",setup(e){const s=ie().params.projectId,r=G({buildOptions:[{label:"Latest",value:"latest"},{label:"All",value:"all"}],buildsLoading:!1,buildLoaded:!1}),l=G({selectedBuild:"all",from:new Date(Date.now()-1e3*60*60*24*7).toISOString().slice(0,16),to:new Date().toISOString().slice(0,16),search:"",limit:50,offset:0}),i=async()=>{if(r.buildLoaded)return;r.buildsLoading=!0;const x=await ae.list(s);r.buildOptions=[...r.buildOptions,...x.map(h=>({label:h.label,value:h.id}))],r.buildLoaded=!0,r.buildsLoading=!1},m=x=>{l.selectedBuild=x.value,n()},{loading:L,result:V,refetch:n}=re(()=>M.list({projectId:s,limit:l.limit,offset:l.offset,buildId:l.selectedBuild,from:new Date(l.from),to:new Date(l.to),search:l.search}));return(x,h)=>O(L)||!O(V)?(d(),ee(de,{key:0})):(d(),u("div",ke,[De,o("div",Ke,[o("div",Ee,[Me,K(O(z),{modelValue:l.selectedBuild,"onUpdate:modelValue":h[0]||(h[0]=a=>l.selectedBuild=a),class:"build-dropdown",options:r.buildOptions,"option-label":"label","option-value":"value",loading:r.buildsLoading,filter:!1,onShow:i,onChange:m},null,8,["modelValue","options","loading"])]),o("div",Te,[Be,E(o("input",{"onUpdate:modelValue":h[1]||(h[1]=a=>l.from=a),type:"datetime-local"},null,512),[[A,l.from]])]),o("div",Ae,[He,E(o("input",{"onUpdate:modelValue":h[2]||(h[2]=a=>l.to=a),type:"datetime-local"},null,512),[[A,l.to]])]),o("div",Pe,[Ue,E(o("input",{"onUpdate:modelValue":h[3]||(h[3]=a=>l.search=a),type:"search"},null,512),[[A,l.search]])]),o("button",{onClick:h[4]||(h[4]=(...a)=>O(n)&&O(n)(...a))},"Filter")]),O(V).length>0?(d(),u("div",Ge,[o("div",Re," Showing from "+c(l.offset+1)+" to "+c(l.offset+l.limit),1),o("details",ze,[o("summary",Ne,[l.selectedBuild=="all"?(d(),u("div",je,Ze)):I("",!0),Je])]),(d(!0),u(H,null,R(O(V),a=>{var C,v;return d(),u("details",{key:a.createdAt.toString(),class:"log"},[o("summary",Qe,[l.selectedBuild=="all"?(d(),u("div",qe,[o("span",Xe,c(a.buildId.split("-")[0]),1)])):I("",!0),o("div",Ye,[o("span",$e,c(a.createdAt.toISOString()),1)]),o("div",et,[o("span",tt,c(a.runtimeType)+":"+c(a.runtimeName),1)]),o("div",it,[o("span",st,c(a.executionId.slice(0,8)),1)]),o("div",lt,[o("span",nt,c(a.event),1)])]),o("div",ot,[a.event==="stdout"?(d(),u("pre",{key:0,class:"log-payload-content",textContent:c(a.payload.log)},null,8,at)):a.event==="stderr"?(d(),u("pre",{key:1,class:"log-payload-content",textContent:c(a.payload.log)},null,8,rt)):a.event==="program-start-failed"?(d(),u("pre",{key:2,class:"log-payload-content",textContent:c(a.payload.error)},null,8,dt)):a.event==="widgets-computed"&&((v=(C=a.payload.errors)==null?void 0:C.general)==null?void 0:v.repr)?(d(),u("pre",{key:3,class:"log-payload-content",textContent:c(a.payload.errors.general.repr)},null,8,ut)):(d(),u("pre",{key:4,class:"log-payload-content",textContent:c(a.payload)},null,8,ct))])])}),128))])):(d(),u("div",ht,ft))]))}});const Vt=ne(yt,[["__scopeId","data-v-9cea6de7"]]);export{Vt as default}; -//# sourceMappingURL=Logs.f1fbf60c.js.map +//# sourceMappingURL=Logs.38d26f92.js.map diff --git a/abstra_statics/dist/assets/Members.af8492bb.js b/abstra_statics/dist/assets/Members.af8492bb.js new file mode 100644 index 0000000000..5e88f38d20 --- /dev/null +++ b/abstra_statics/dist/assets/Members.af8492bb.js @@ -0,0 +1,2 @@ +import{d as u,K as b,b as y,t as g,z as s,J as _}from"./registerWidgets.cb3a7b8d.js";import{a as w}from"./asyncComputed.31994732.js";import"./gateway.2edca867.js";import{M as i}from"./member.f9b469b1.js";import"./index.7fea4022.js";import{C as I}from"./CrudView.87a92735.js";import"./passwordlessManager.afd7d1d0.js";import"./pubsub.f85a17d2.js";import"./activeRecord.adfc6223.js";import"./DropdownMenu.c973057b.js";import"./Modal.43c3d47a.js";import"./LoadingIndicator.d4ffd545.js";import"./lottie.234eb92e.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="8b3441fd-947f-408e-b4c0-f7089882d236",e._sentryDebugIdIdentifier="sentry-dbid-8b3441fd-947f-408e-b4c0-f7089882d236")}catch{}})();const K=u({__name:"Members",setup(e){const r=_().params.organizationId,m=[{key:"email",label:"Email"}],l=async t=>{await i.create(r,t.email),p()},{loading:d,result:c,refetch:p}=w(()=>i.list(r)),f=b(()=>{var t,a;return{columns:[{name:"Email"},{name:"Role"}],rows:(a=(t=c.value)==null?void 0:t.map(n=>({key:n.email,cells:[{text:n.email,classes:["title","centered"]},{text:n.role,classes:["centered"]}]})))!=null?a:[]}});return(t,a)=>(y(),g(I,{"entity-name":"members",loading:s(d),title:"Organization members",description:"List all organization members.","empty-title":"No members yet",table:s(f),"create-button-text":"Add members",fields:m,onCreate:l},null,8,["loading","table"]))}});export{K as default}; +//# sourceMappingURL=Members.af8492bb.js.map diff --git a/abstra_statics/dist/assets/Members.fc190008.js b/abstra_statics/dist/assets/Members.fc190008.js deleted file mode 100644 index 554c8435ce..0000000000 --- a/abstra_statics/dist/assets/Members.fc190008.js +++ /dev/null @@ -1,2 +0,0 @@ -import{d as f,K as u,b as y,t as g,z as s,J as _}from"./registerWidgets.3fe0df5a.js";import{a as w}from"./asyncComputed.4b275614.js";import"./gateway.63e02d1d.js";import{M as i}from"./member.6c1a1ede.js";import"./index.24c9f37d.js";import{C as I}from"./CrudView.674ca9db.js";import"./passwordlessManager.f53316a7.js";import"./pubsub.909df758.js";import"./activeRecord.2bc1b71f.js";import"./DropdownMenu.9edc1223.js";import"./Modal.32a3d62d.js";import"./LoadingIndicator.a20841c3.js";import"./lottie.8f58e4c7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="805121bb-e483-4fb2-a6f8-f166622dab2b",e._sentryDebugIdIdentifier="sentry-dbid-805121bb-e483-4fb2-a6f8-f166622dab2b")}catch{}})();const K=f({__name:"Members",setup(e){const o=_().params.organizationId,m=[{key:"email",label:"Email"}],l=async t=>{await i.create(o,t.email),b()},{loading:d,result:c,refetch:b}=w(()=>i.list(o)),p=u(()=>{var t,r;return{columns:[{name:"Email"},{name:"Role"}],rows:(r=(t=c.value)==null?void 0:t.map(n=>({key:n.email,cells:[{text:n.email,classes:["title","centered"]},{text:n.role,classes:["centered"]}]})))!=null?r:[]}});return(t,r)=>(y(),g(I,{"entity-name":"members",loading:s(d),title:"Organization members",description:"List all organization members.","empty-title":"No members yet",table:s(p),"create-button-text":"Add members",fields:m,onCreate:l},null,8,["loading","table"]))}});export{K as default}; -//# sourceMappingURL=Members.fc190008.js.map diff --git a/abstra_statics/dist/assets/Modal.32a3d62d.js b/abstra_statics/dist/assets/Modal.32a3d62d.js deleted file mode 100644 index 7b304fad07..0000000000 --- a/abstra_statics/dist/assets/Modal.32a3d62d.js +++ /dev/null @@ -1,2 +0,0 @@ -import{d as p,y as _,v as b,b as r,c,x as i,z as v,A as o,B as f,D as m,E as S,G as g,q as k}from"./registerWidgets.3fe0df5a.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="6b4efd31-7a19-4b89-8f60-5144da37cd37",e._sentryDebugIdIdentifier="sentry-dbid-6b4efd31-7a19-4b89-8f60-5144da37cd37")}catch{}})();const h=p({__name:"Modal",props:{containerStyle:null,headerStyle:null,contentStyle:null},emits:["open","close"],setup(e,{expose:s,emit:t}){const u=_(),y=()=>{n.isOpened=!0,t("open")},a=()=>{n.isOpened=!1,t("close")};s({open:y,close:a});const n=b({isOpened:!1});return(d,l)=>(r(),c("div",{class:g(["background",n.isOpened&&"visible"]),onClick:a},[i("div",{class:"container",style:o(e.containerStyle),onClick:l[0]||(l[0]=S(()=>{},["stop"]))},[v(u).header?(r(),c("div",{key:0,class:"header",style:o(e.headerStyle)},[f(d.$slots,"header",{},void 0,!0)],4)):m("",!0),i("div",{class:"content",style:o(e.contentStyle)},[f(d.$slots,"content",{},void 0,!0)],4)],4)],2))}});const I=k(h,[["__scopeId","data-v-24f739ca"]]);export{I as M}; -//# sourceMappingURL=Modal.32a3d62d.js.map diff --git a/abstra_statics/dist/assets/Modal.43c3d47a.js b/abstra_statics/dist/assets/Modal.43c3d47a.js new file mode 100644 index 0000000000..22dd96f16b --- /dev/null +++ b/abstra_statics/dist/assets/Modal.43c3d47a.js @@ -0,0 +1,2 @@ +import{d as b,y as p,v as _,b as r,c,x as i,z as v,A as o,B as u,D as m,E as S,G as g,q as k}from"./registerWidgets.cb3a7b8d.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="291bb84d-9402-4ebb-a212-283b54f8ce38",e._sentryDebugIdIdentifier="sentry-dbid-291bb84d-9402-4ebb-a212-283b54f8ce38")}catch{}})();const h=b({__name:"Modal",props:{containerStyle:null,headerStyle:null,contentStyle:null},emits:["open","close"],setup(e,{expose:s,emit:t}){const y=p(),f=()=>{n.isOpened=!0,t("open")},a=()=>{n.isOpened=!1,t("close")};s({open:f,close:a});const n=_({isOpened:!1});return(l,d)=>(r(),c("div",{class:g(["background",n.isOpened&&"visible"]),onClick:a},[i("div",{class:"container",style:o(e.containerStyle),onClick:d[0]||(d[0]=S(()=>{},["stop"]))},[v(y).header?(r(),c("div",{key:0,class:"header",style:o(e.headerStyle)},[u(l.$slots,"header",{},void 0,!0)],4)):m("",!0),i("div",{class:"content",style:o(e.contentStyle)},[u(l.$slots,"content",{},void 0,!0)],4)],4)],2))}});const I=k(h,[["__scopeId","data-v-24f739ca"]]);export{I as M}; +//# sourceMappingURL=Modal.43c3d47a.js.map diff --git a/abstra_statics/dist/assets/Navbar.03aff786.js b/abstra_statics/dist/assets/Navbar.03aff786.js new file mode 100644 index 0000000000..f899ce2fc6 --- /dev/null +++ b/abstra_statics/dist/assets/Navbar.03aff786.js @@ -0,0 +1,2 @@ +import{_ as k}from"./logo.084e5d7c.js";import{q as i,b as s,c as o,O as u,Q as b,x as t,d as p,H as I,a as x,z as _,N as g,e as r,w as m,U as f,F as $,L as w,D as L,ar as N}from"./registerWidgets.cb3a7b8d.js";import{p as l}from"./passwordlessManager.afd7d1d0.js";import{a as C}from"./asyncComputed.31994732.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="be79b0f5-461d-468b-b6d7-3773dd4af834",e._sentryDebugIdIdentifier="sentry-dbid-be79b0f5-461d-468b-b6d7-3773dd4af834")}catch{}})();const B={},v=e=>(u("data-v-439be421"),e=e(),b(),e),D={class:"logo"},S=v(()=>t("img",{class:"logo-img",src:k,alt:"Abstra cloud logo"},null,-1)),V=v(()=>t("span",null,"Abstra Cloud",-1)),U=[S,V];function A(e,a){return s(),o("div",D,U)}const E=i(B,[["render",A],["__scopeId","data-v-439be421"]]),F={key:0},R={key:1,class:"logged"},q={class:"author-email"},z={key:2},H=p({__name:"LoginBlock",setup(e){const a=I(),{result:n,loading:c,refetch:d}=C(async()=>l.getUser());function h(){l.removeUser(),d(),a.push({name:"login"})}return(P,W)=>{const y=x("router-link");return _(c)?(s(),o("div",F,"loading...")):_(n)?(s(),o("div",R,[t("span",q,g(_(n).claims.email),1),t("button",{class:"btn",onClick:h},"Logout")])):(s(),o("div",z,[r(y,{class:"btn",to:"/login"},{default:m(()=>[f("Login")]),_:1})]))}}});const M=i(H,[["__scopeId","data-v-6c08207b"]]),O=e=>(u("data-v-cf48b8cc"),e=e(),b(),e),Q={class:"nav"},T={class:"left"},j={key:0,class:"breadcrumb-container"},G=O(()=>t("span",{class:"divider"},">",-1)),J={class:"right"},K=p({__name:"Navbar",props:{breadcrumb:null},setup(e){return(a,n)=>(s(),o("nav",Q,[t("div",T,[r(E),e.breadcrumb?(s(),o("div",j,[(s(!0),o($,null,w(e.breadcrumb,(c,d)=>(s(),o("span",{key:d,class:"breadcrumb-item"},[r(_(N),{class:"breadcrumb-link",to:c.path},{default:m(()=>[f(g(c.label),1)]),_:2},1032,["to"]),G]))),128))])):L("",!0)]),t("div",J,[r(M)])]))}});const se=i(K,[["__scopeId","data-v-cf48b8cc"]]);export{se as N}; +//# sourceMappingURL=Navbar.03aff786.js.map diff --git a/abstra_statics/dist/assets/Navbar.2ae068c3.js b/abstra_statics/dist/assets/Navbar.2ae068c3.js deleted file mode 100644 index d19db7b857..0000000000 --- a/abstra_statics/dist/assets/Navbar.2ae068c3.js +++ /dev/null @@ -1,2 +0,0 @@ -import{_ as k}from"./logo.084e5d7c.js";import{q as i,b as s,c as o,O as u,Q as p,x as t,d as b,H as I,a as x,z as _,N as f,e as r,w as g,U as m,F as $,L as w,D as L,ar as N}from"./registerWidgets.3fe0df5a.js";import{p as l}from"./passwordlessManager.f53316a7.js";import{a as C}from"./asyncComputed.4b275614.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="ee19b58e-f4ca-445f-b056-5f08dacc672f",e._sentryDebugIdIdentifier="sentry-dbid-ee19b58e-f4ca-445f-b056-5f08dacc672f")}catch{}})();const B={},v=e=>(u("data-v-439be421"),e=e(),p(),e),D={class:"logo"},S=v(()=>t("img",{class:"logo-img",src:k,alt:"Abstra cloud logo"},null,-1)),V=v(()=>t("span",null,"Abstra Cloud",-1)),U=[S,V];function A(e,a){return s(),o("div",D,U)}const E=i(B,[["render",A],["__scopeId","data-v-439be421"]]),F={key:0},R={key:1,class:"logged"},q={class:"author-email"},z={key:2},H=b({__name:"LoginBlock",setup(e){const a=I(),{result:c,loading:n,refetch:d}=C(async()=>l.getUser());function h(){l.removeUser(),d(),a.push({name:"login"})}return(P,W)=>{const y=x("router-link");return _(n)?(s(),o("div",F,"loading...")):_(c)?(s(),o("div",R,[t("span",q,f(_(c).claims.email),1),t("button",{class:"btn",onClick:h},"Logout")])):(s(),o("div",z,[r(y,{class:"btn",to:"/login"},{default:g(()=>[m("Login")]),_:1})]))}}});const M=i(H,[["__scopeId","data-v-6c08207b"]]),O=e=>(u("data-v-cf48b8cc"),e=e(),p(),e),Q={class:"nav"},T={class:"left"},j={key:0,class:"breadcrumb-container"},G=O(()=>t("span",{class:"divider"},">",-1)),J={class:"right"},K=b({__name:"Navbar",props:{breadcrumb:null},setup(e){return(a,c)=>(s(),o("nav",Q,[t("div",T,[r(E),e.breadcrumb?(s(),o("div",j,[(s(!0),o($,null,w(e.breadcrumb,(n,d)=>(s(),o("span",{key:d,class:"breadcrumb-item"},[r(_(N),{class:"breadcrumb-link",to:n.path},{default:g(()=>[m(f(n.label),1)]),_:2},1032,["to"]),G]))),128))])):L("",!0)]),t("div",J,[r(M)])]))}});const se=i(K,[["__scopeId","data-v-cf48b8cc"]]);export{se as N}; -//# sourceMappingURL=Navbar.2ae068c3.js.map diff --git a/abstra_statics/dist/assets/Organization.36311c7f.js b/abstra_statics/dist/assets/Organization.36311c7f.js new file mode 100644 index 0000000000..2f6b512fa3 --- /dev/null +++ b/abstra_statics/dist/assets/Organization.36311c7f.js @@ -0,0 +1,2 @@ +import{S as d}from"./Sidebar.2a0e2b35.js";import{N as m}from"./Navbar.03aff786.js";import{E as p,F as l,G as u}from"./icons.39dfa322.js";import{d as b,K as _,b as f,c as g,e as t,z as r,x as v,F as y,J as z,a as w,q as I}from"./registerWidgets.cb3a7b8d.js";import{a as h}from"./asyncComputed.31994732.js";import"./gateway.2edca867.js";import{O}from"./organization.abd54459.js";import"./index.7fea4022.js";import"./Tooltip.f700ff7d.js";import"./logo.084e5d7c.js";import"./passwordlessManager.afd7d1d0.js";import"./pubsub.f85a17d2.js";import"./activeRecord.adfc6223.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="d2b258c6-c07a-4738-9266-9b9dbb978391",e._sentryDebugIdIdentifier="sentry-dbid-d2b258c6-c07a-4738-9266-9b9dbb978391")}catch{}})();const x={class:"organization"},k=b({__name:"Organization",setup(e){const n=z().params.organizationId,{result:a}=h(()=>O.get(n)),s=_(()=>a.value?[{label:a.value.name,path:`/organizations/${a.value.id}`}]:void 0),i=[{name:"Organization",items:[{name:"Projects",icon:p,path:"projects"},{name:"Members",icon:l,path:"members"},{name:"Billing",icon:u,path:"billing",unavailable:!0}]}];return(B,D)=>{const c=w("router-view");return f(),g(y,null,[t(m,{breadcrumb:r(s)},null,8,["breadcrumb"]),v("div",x,[t(d,{class:"sidebar",sections:r(i)},null,8,["sections"]),t(c)])],64)}}});const R=I(k,[["__scopeId","data-v-7eef90b7"]]);export{R as default}; +//# sourceMappingURL=Organization.36311c7f.js.map diff --git a/abstra_statics/dist/assets/Organization.4b6159bc.js b/abstra_statics/dist/assets/Organization.4b6159bc.js deleted file mode 100644 index e5d1250568..0000000000 --- a/abstra_statics/dist/assets/Organization.4b6159bc.js +++ /dev/null @@ -1,2 +0,0 @@ -import{S as d}from"./Sidebar.09692155.js";import{N as m}from"./Navbar.2ae068c3.js";import{E as p,F as l,G as u}from"./icons.9d575a00.js";import{d as b,K as _,b as f,c as g,e as t,z as r,x as v,F as y,J as z,a as w,q as I}from"./registerWidgets.3fe0df5a.js";import{a as h}from"./asyncComputed.4b275614.js";import"./gateway.63e02d1d.js";import{O}from"./organization.dde8e095.js";import"./index.24c9f37d.js";import"./Tooltip.93ae2394.js";import"./logo.084e5d7c.js";import"./passwordlessManager.f53316a7.js";import"./pubsub.909df758.js";import"./activeRecord.2bc1b71f.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="12d17be3-91db-4c98-9278-969895ac715a",e._sentryDebugIdIdentifier="sentry-dbid-12d17be3-91db-4c98-9278-969895ac715a")}catch{}})();const x={class:"organization"},k=b({__name:"Organization",setup(e){const n=z().params.organizationId,{result:o}=h(()=>O.get(n)),s=_(()=>o.value?[{label:o.value.name,path:`/organizations/${o.value.id}`}]:void 0),i=[{name:"Organization",items:[{name:"Projects",icon:p,path:"projects"},{name:"Members",icon:l,path:"members"},{name:"Billing",icon:u,path:"billing",unavailable:!0}]}];return(B,D)=>{const c=w("router-view");return f(),g(y,null,[t(m,{breadcrumb:r(s)},null,8,["breadcrumb"]),v("div",x,[t(d,{class:"sidebar",sections:r(i)},null,8,["sections"]),t(c)])],64)}}});const R=I(k,[["__scopeId","data-v-7eef90b7"]]);export{R as default}; -//# sourceMappingURL=Organization.4b6159bc.js.map diff --git a/abstra_statics/dist/assets/OrganizationSettings.5fbb0747.js b/abstra_statics/dist/assets/OrganizationSettings.5fbb0747.js deleted file mode 100644 index 5687522c33..0000000000 --- a/abstra_statics/dist/assets/OrganizationSettings.5fbb0747.js +++ /dev/null @@ -1,2 +0,0 @@ -import{q as t,b as s,c as o}from"./registerWidgets.3fe0df5a.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="2e2b41b0-f001-4906-a5ce-d38f06dac001",e._sentryDebugIdIdentifier="sentry-dbid-2e2b41b0-f001-4906-a5ce-d38f06dac001")}catch{}})();const r={},a={class:"organization-settings"};function d(e,n){return s(),o("div",a,"Organization settings")}const f=t(r,[["render",d]]);export{f as default}; -//# sourceMappingURL=OrganizationSettings.5fbb0747.js.map diff --git a/abstra_statics/dist/assets/OrganizationSettings.7da565f5.js b/abstra_statics/dist/assets/OrganizationSettings.7da565f5.js new file mode 100644 index 0000000000..1675153e0e --- /dev/null +++ b/abstra_statics/dist/assets/OrganizationSettings.7da565f5.js @@ -0,0 +1,2 @@ +import{q as t,b as s,c as o}from"./registerWidgets.cb3a7b8d.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="1863b120-256a-46ad-864e-6ed2be7f24ce",e._sentryDebugIdIdentifier="sentry-dbid-1863b120-256a-46ad-864e-6ed2be7f24ce")}catch{}})();const r={},a={class:"organization-settings"};function d(e,n){return s(),o("div",a,"Organization settings")}const f=t(r,[["render",d]]);export{f as default}; +//# sourceMappingURL=OrganizationSettings.7da565f5.js.map diff --git a/abstra_statics/dist/assets/Organizations.224909fb.js b/abstra_statics/dist/assets/Organizations.224909fb.js new file mode 100644 index 0000000000..07847bd142 --- /dev/null +++ b/abstra_statics/dist/assets/Organizations.224909fb.js @@ -0,0 +1,2 @@ +import{d as y,K as b,b as z,c as O,e as c,x as w,z as d,F as k,H as h,q as x}from"./registerWidgets.cb3a7b8d.js";import{f as C,g as v}from"./icons.39dfa322.js";import{a as I}from"./asyncComputed.31994732.js";import"./gateway.2edca867.js";import{O as l}from"./organization.abd54459.js";import"./index.7fea4022.js";import{C as N}from"./CrudView.87a92735.js";import{N as D}from"./Navbar.03aff786.js";import"./passwordlessManager.afd7d1d0.js";import"./pubsub.f85a17d2.js";import"./activeRecord.adfc6223.js";import"./DropdownMenu.c973057b.js";import"./Modal.43c3d47a.js";import"./LoadingIndicator.d4ffd545.js";import"./lottie.234eb92e.js";import"./logo.084e5d7c.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[o]="ebf99d6e-fed8-48cc-b3a6-97bed78c49e7",n._sentryDebugIdIdentifier="sentry-dbid-ebf99d6e-fed8-48cc-b3a6-97bed78c49e7")}catch{}})();const A={class:"organizations"},B=y({__name:"Organizations",setup(n){const o=[{key:"name",label:"Organization Name"}],i=h(),{loading:m,result:r,refetch:p}=I(()=>l.list()),s=({key:e})=>{i.push({name:"organization",params:{organizationId:e}})},u=async e=>{const t=await l.create(e.name);s({key:t.id})},g=async({key:e})=>{var t,a;confirm("Are you sure you want to delete this organization?")&&(await((a=(t=r.value)==null?void 0:t.find(_=>_.id===e))==null?void 0:a.delete()),p())},f=b(()=>{var e,t;return{columns:[{name:"Organization Name"},{name:"Path"},{name:"Organization Actions"}],rows:(t=(e=r.value)==null?void 0:e.map(a=>({key:a.id,cells:[{text:a.name,classes:["title","centered"],link:`/organizations/${encodeURIComponent(a.id)}`},{text:a.id},{text:"",classes:["centered"],actions:[{icon:C,label:"Delete",onClick:g,dangerous:!0},{icon:v,label:"Edit Organization",onClick:s}]}]})))!=null?t:[]}});return(e,t)=>(z(),O(k,null,[c(D),w("div",A,[c(N,{"entity-name":"organization",loading:d(m),title:"My organizations",description:"An organization is your company\u2019s account. Add co-workers, manage their access, organize projects and billing.","create-button-text":"Create Organization","empty-title":"No organizations here yet",table:d(f),fields:o,onCreate:u},null,8,["loading","table"])])],64))}});const Q=x(B,[["__scopeId","data-v-360ce05c"]]);export{Q as default}; +//# sourceMappingURL=Organizations.224909fb.js.map diff --git a/abstra_statics/dist/assets/Organizations.712a63f6.js b/abstra_statics/dist/assets/Organizations.712a63f6.js deleted file mode 100644 index b31cc9a85c..0000000000 --- a/abstra_statics/dist/assets/Organizations.712a63f6.js +++ /dev/null @@ -1,2 +0,0 @@ -import{d as y,K as z,b,c as O,e as c,x as w,z as d,F as k,H as h,q as x}from"./registerWidgets.3fe0df5a.js";import{f as C,g as v}from"./icons.9d575a00.js";import{a as I}from"./asyncComputed.4b275614.js";import"./gateway.63e02d1d.js";import{O as l}from"./organization.dde8e095.js";import"./index.24c9f37d.js";import{C as N}from"./CrudView.674ca9db.js";import{N as D}from"./Navbar.2ae068c3.js";import"./passwordlessManager.f53316a7.js";import"./pubsub.909df758.js";import"./activeRecord.2bc1b71f.js";import"./DropdownMenu.9edc1223.js";import"./Modal.32a3d62d.js";import"./LoadingIndicator.a20841c3.js";import"./lottie.8f58e4c7.js";import"./logo.084e5d7c.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[o]="7cf55e01-de76-4981-b1e3-af71ce06441f",n._sentryDebugIdIdentifier="sentry-dbid-7cf55e01-de76-4981-b1e3-af71ce06441f")}catch{}})();const A={class:"organizations"},B=y({__name:"Organizations",setup(n){const o=[{key:"name",label:"Organization Name"}],i=h(),{loading:m,result:r,refetch:p}=I(()=>l.list()),s=({key:e})=>{i.push({name:"organization",params:{organizationId:e}})},u=async e=>{const t=await l.create(e.name);s({key:t.id})},g=async({key:e})=>{var t,a;confirm("Are you sure you want to delete this organization?")&&(await((a=(t=r.value)==null?void 0:t.find(_=>_.id===e))==null?void 0:a.delete()),p())},f=z(()=>{var e,t;return{columns:[{name:"Organization Name"},{name:"Path"},{name:"Organization Actions"}],rows:(t=(e=r.value)==null?void 0:e.map(a=>({key:a.id,cells:[{text:a.name,classes:["title","centered"],link:`/organizations/${encodeURIComponent(a.id)}`},{text:a.id},{text:"",classes:["centered"],actions:[{icon:C,label:"Delete",onClick:g,dangerous:!0},{icon:v,label:"Edit Organization",onClick:s}]}]})))!=null?t:[]}});return(e,t)=>(b(),O(k,null,[c(D),w("div",A,[c(N,{"entity-name":"organization",loading:d(m),title:"My organizations",description:"An organization is your company\u2019s account. Add co-workers, manage their access, organize projects and billing.","create-button-text":"Create Organization","empty-title":"No organizations here yet",table:d(f),fields:o,onCreate:u},null,8,["loading","table"])])],64))}});const Q=x(B,[["__scopeId","data-v-360ce05c"]]);export{Q as default}; -//# sourceMappingURL=Organizations.712a63f6.js.map diff --git a/abstra_statics/dist/assets/Passwordless.15dd7595.js b/abstra_statics/dist/assets/Passwordless.7161b834.js similarity index 69% rename from abstra_statics/dist/assets/Passwordless.15dd7595.js rename to abstra_statics/dist/assets/Passwordless.7161b834.js index dfcede5c3e..fcf5c01a20 100644 --- a/abstra_statics/dist/assets/Passwordless.15dd7595.js +++ b/abstra_statics/dist/assets/Passwordless.7161b834.js @@ -1,2 +1,2 @@ -import{L as S}from"./CircularLoading.2fb746db.js";import{d as h,v,b as s,c as a,x as o,N as b,W as g,Z as w,af as I,D as p,O as T,Q as x,q as y,z as V,U as B,e as f}from"./registerWidgets.3fe0df5a.js";import{u as C}from"./icons.9d575a00.js";import{p as k}from"./passwordlessManager.f53316a7.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="ee0eb7ba-dfff-474d-aff2-8b0aaeb1a53c",t._sentryDebugIdIdentifier="sentry-dbid-ee0eb7ba-dfff-474d-aff2-8b0aaeb1a53c")}catch{}})();const $=t=>(T("data-v-1b435c3a"),t=t(),x(),t),D={class:"auth-info"},E={class:"auth-header"},K={class:"auth-label"},N=$(()=>o("div",{class:"description"},"To continue we need you to authenticate",-1)),P=["onKeyup"],R={key:0,class:"span-error"},U=$(()=>o("div",{class:"spacer"},null,-1)),L=h({__name:"AuthInfo",props:{invalid:{type:Boolean,default:!1},header:{type:String}},emits:["sendAuthInfo"],setup(t,{emit:n}){const e=v({email:""}),c=()=>{n("sendAuthInfo",e)};return(_,l)=>(s(),a("div",D,[o("div",E,[o("div",K,b(t.header),1),N]),g(o("input",{"onUpdate:modelValue":l[0]||(l[0]=u=>e.email=u),type:"email",placeholder:"Email address",class:"input email-input",onKeyup:I(c,["enter"])},null,40,P),[[w,e.email]]),t.invalid?(s(),a("span",R," Email invalid, please try again. ")):p("",!0),U,o("button",{class:"next-button",onClick:c}," Send a verification email ")]))}});const M=y(L,[["__scopeId","data-v-1b435c3a"]]),A=t=>(T("data-v-9316d802"),t=t(),x(),t),q={class:"auth-token"},z={class:"auth-label"},O=["onKeyup"],Q={key:0,class:"span-error"},W={key:1,class:"span-error"},Z=A(()=>o("div",{class:"spacer"},null,-1)),j={class:"button-icon",viewBox:"0 0 24 24"},F=["d"],G=A(()=>o("div",{class:"footer"}," If you haven't received the verification code, try again or choose another email ",-1)),H=h({__name:"AuthToken",props:{expired:{type:Boolean},invalid:{type:Boolean},email:null},emits:["sendToken","restartAuth","resendToken"],setup(t,{emit:n}){const e=v({token:""}),c=()=>{n("restartAuth")},_=()=>{n("resendToken")},l=()=>{n("sendToken",e.token)};return(u,i)=>(s(),a("div",q,[o("div",z," Check "+b(t.email)+"'s inbox and enter your verification code below ",1),g(o("input",{"onUpdate:modelValue":i[0]||(i[0]=d=>e.token=d),type:"text",placeholder:"Type your verification code",class:"input",onKeyup:I(l,["enter"])},null,40,O),[[w,e.token]]),t.expired?(s(),a("span",Q," Token expired, try to resend it. ")):p("",!0),t.invalid?(s(),a("span",W," Token invalid, please try again or go back and alter you email address. ")):p("",!0),Z,o("button",{class:"next-button",onClick:l},"Verify Email"),o("button",{class:"secondary-button back",onClick:c},[(s(),a("svg",j,[o("path",{d:V(C)},null,8,F)])),B(" Try Again ")]),o("button",{class:"secondary-button back",onClick:_}," Resend Email "),G]))}});const J=y(H,[["__scopeId","data-v-9316d802"]]),X={key:0,class:"form"},Y={class:"form-wrapper"},ee={class:"widget"},te={key:1,class:"form"},oe={class:"form-wrapper"},ne={class:"widget"},se={key:2,class:"form"},ae={class:"form-wrapper"},ie={class:"loading"},de=h({__name:"Passwordless",props:{header:{type:String,default:"Validate your email"}},emits:["done"],setup(t,{emit:n}){const e=v({stage:"collect-info",info:null,token:null,invalid:!1}),c=async i=>{e.info=i,e.stage="loading";const d=await k.authenticate(i.email);e.invalid=!!d,d?e.stage="collect-info":e.stage="collect-token"},_=async i=>{var d;if(!!((d=e.info)!=null&&d.email)){e.token=i,e.stage="loading";try{const r=await k.verify(e.info.email,e.token);if(!r)throw new Error("no user");n("done",r),e.stage="done"}catch{e.invalid=!0,e.stage="collect-token"}}},l=()=>{e.info&&c(e.info)},u=()=>{e.stage="collect-info",e.info=null,e.token=null,e.invalid=!1};return(i,d)=>{var r,m;return e.stage==="collect-info"?(s(),a("div",X,[o("div",Y,[o("div",ee,[f(M,{invalid:e.invalid,header:t.header,onSendAuthInfo:c},null,8,["invalid","header"])])])])):e.stage==="collect-token"?(s(),a("div",te,[o("div",oe,[o("div",ne,[f(J,{invalid:e.invalid,email:(m=(r=e.info)==null?void 0:r.email)!=null?m:"",onSendToken:_,onResendToken:l,onRestartAuth:u},null,8,["invalid","email"])])])])):(s(),a("div",se,[o("div",ae,[o("div",ie,[f(S)])])]))}}});const ue=y(de,[["__scopeId","data-v-c7662bee"]]);export{ue as P}; -//# sourceMappingURL=Passwordless.15dd7595.js.map +import{L as S}from"./CircularLoading.1e68d2b1.js";import{d as f,v,b as s,c as a,x as o,N as g,W as b,Z as w,af as I,D as h,O as T,Q as x,q as y,z as V,U as B,e as p}from"./registerWidgets.cb3a7b8d.js";import{u as C}from"./icons.39dfa322.js";import{p as k}from"./passwordlessManager.afd7d1d0.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="3f58294b-639c-468d-b268-786324cc2a06",t._sentryDebugIdIdentifier="sentry-dbid-3f58294b-639c-468d-b268-786324cc2a06")}catch{}})();const $=t=>(T("data-v-1b435c3a"),t=t(),x(),t),D={class:"auth-info"},E={class:"auth-header"},K={class:"auth-label"},N=$(()=>o("div",{class:"description"},"To continue we need you to authenticate",-1)),P=["onKeyup"],R={key:0,class:"span-error"},U=$(()=>o("div",{class:"spacer"},null,-1)),L=f({__name:"AuthInfo",props:{invalid:{type:Boolean,default:!1},header:{type:String}},emits:["sendAuthInfo"],setup(t,{emit:n}){const e=v({email:""}),c=()=>{n("sendAuthInfo",e)};return(_,l)=>(s(),a("div",D,[o("div",E,[o("div",K,g(t.header),1),N]),b(o("input",{"onUpdate:modelValue":l[0]||(l[0]=u=>e.email=u),type:"email",placeholder:"Email address",class:"input email-input",onKeyup:I(c,["enter"])},null,40,P),[[w,e.email]]),t.invalid?(s(),a("span",R," Email invalid, please try again. ")):h("",!0),U,o("button",{class:"next-button",onClick:c}," Send a verification email ")]))}});const M=y(L,[["__scopeId","data-v-1b435c3a"]]),A=t=>(T("data-v-9316d802"),t=t(),x(),t),q={class:"auth-token"},z={class:"auth-label"},O=["onKeyup"],Q={key:0,class:"span-error"},W={key:1,class:"span-error"},Z=A(()=>o("div",{class:"spacer"},null,-1)),j={class:"button-icon",viewBox:"0 0 24 24"},F=["d"],G=A(()=>o("div",{class:"footer"}," If you haven't received the verification code, try again or choose another email ",-1)),H=f({__name:"AuthToken",props:{expired:{type:Boolean},invalid:{type:Boolean},email:null},emits:["sendToken","restartAuth","resendToken"],setup(t,{emit:n}){const e=v({token:""}),c=()=>{n("restartAuth")},_=()=>{n("resendToken")},l=()=>{n("sendToken",e.token)};return(u,i)=>(s(),a("div",q,[o("div",z," Check "+g(t.email)+"'s inbox and enter your verification code below ",1),b(o("input",{"onUpdate:modelValue":i[0]||(i[0]=d=>e.token=d),type:"text",placeholder:"Type your verification code",class:"input",onKeyup:I(l,["enter"])},null,40,O),[[w,e.token]]),t.expired?(s(),a("span",Q," Token expired, try to resend it. ")):h("",!0),t.invalid?(s(),a("span",W," Token invalid, please try again or go back and alter you email address. ")):h("",!0),Z,o("button",{class:"next-button",onClick:l},"Verify Email"),o("button",{class:"secondary-button back",onClick:c},[(s(),a("svg",j,[o("path",{d:V(C)},null,8,F)])),B(" Try Again ")]),o("button",{class:"secondary-button back",onClick:_}," Resend Email "),G]))}});const J=y(H,[["__scopeId","data-v-9316d802"]]),X={key:0,class:"form"},Y={class:"form-wrapper"},ee={class:"widget"},te={key:1,class:"form"},oe={class:"form-wrapper"},ne={class:"widget"},se={key:2,class:"form"},ae={class:"form-wrapper"},ie={class:"loading"},de=f({__name:"Passwordless",props:{header:{type:String,default:"Validate your email"}},emits:["done"],setup(t,{emit:n}){const e=v({stage:"collect-info",info:null,token:null,invalid:!1}),c=async i=>{e.info=i,e.stage="loading";const d=await k.authenticate(i.email);e.invalid=!!d,d?e.stage="collect-info":e.stage="collect-token"},_=async i=>{var d;if(!!((d=e.info)!=null&&d.email)){e.token=i,e.stage="loading";try{const r=await k.verify(e.info.email,e.token);if(!r)throw new Error("no user");n("done",r),e.stage="done"}catch{e.invalid=!0,e.stage="collect-token"}}},l=()=>{e.info&&c(e.info)},u=()=>{e.stage="collect-info",e.info=null,e.token=null,e.invalid=!1};return(i,d)=>{var r,m;return e.stage==="collect-info"?(s(),a("div",X,[o("div",Y,[o("div",ee,[p(M,{invalid:e.invalid,header:t.header,onSendAuthInfo:c},null,8,["invalid","header"])])])])):e.stage==="collect-token"?(s(),a("div",te,[o("div",oe,[o("div",ne,[p(J,{invalid:e.invalid,email:(m=(r=e.info)==null?void 0:r.email)!=null?m:"",onSendToken:_,onResendToken:l,onRestartAuth:u},null,8,["invalid","email"])])])])):(s(),a("div",se,[o("div",ae,[o("div",ie,[p(S)])])]))}}});const ue=y(de,[["__scopeId","data-v-c7662bee"]]);export{ue as P}; +//# sourceMappingURL=Passwordless.7161b834.js.map diff --git a/abstra_statics/dist/assets/Player.616482e5.js b/abstra_statics/dist/assets/Player.4d7db160.js similarity index 68% rename from abstra_statics/dist/assets/Player.616482e5.js rename to abstra_statics/dist/assets/Player.4d7db160.js index f79306cb18..3689837444 100644 --- a/abstra_statics/dist/assets/Player.616482e5.js +++ b/abstra_statics/dist/assets/Player.4d7db160.js @@ -1,2 +1,2 @@ -import{r as q}from"./index.776642db.js";import{u as b}from"./uuid.8e57fc19.js";import{F as x,R as S}from"./broker.4d1bc0fe.js";import{d as B,v as K,a2 as m,K as f,z as a,b as s,c as u,e as E,t as k,J as N,H as O,O as T,Q as F,x as d,q as L}from"./registerWidgets.3fe0df5a.js";import{D as C,m as V}from"./DashPlayer.0888e5b9.js";import{a as j}from"./asyncComputed.4b275614.js";import{r as z,n as A}from"./runnerData.331b4b09.js";import{L as H}from"./CircularLoading.2fb746db.js";import"./passwordlessManager.f53316a7.js";import"./pubsub.909df758.js";import"./icons.9d575a00.js";import"./ActionButton.vue_vue_type_script_setup_true_lang.9bc2be06.js";import"./Passwordless.15dd7595.js";import"./executeJs.9eb1c025.js";import"./PlayerNavbar.9ff5d98a.js";import"./WidgetsFrame.c900894c.js";import"./colors.b2406923.js";import"./Modal.32a3d62d.js";import"./lottie.8f58e4c7.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="cce27eae-8d33-4109-a422-a574b8fce485",r._sentryDebugIdIdentifier="sentry-dbid-cce27eae-8d33-4109-a422-a574b8fce485")}catch{}})();async function J(r){const e=await fetch(`/_api/${r}`);if(e.status==404)return null;if(!e.ok)throw new Error(await e.text());const{form:n,dash:c}=await e.json();return{form:n&&z(n),dash:c&&A(c)}}const p=r=>(T("data-v-5d17475b"),r=r(),F(),r),Q={key:0,class:"loading"},$={key:1,class:"error"},G=p(()=>d("h1",null,"Oops! Something went wrong",-1)),M=p(()=>d("p",null,"An unknown error ocurred. Please try again or contact support.",-1)),U=[G,M],W={key:2,class:"form"},X={key:3,class:"dash-wrapper"},Y={key:4,class:"error not-found"},Z=p(()=>d("h1",null,"Page not found",-1)),ee=p(()=>d("p",null,"The page you requested could not be found.",-1)),te=[Z,ee],re=B({__name:"Player",setup(r){const e=N(),n=O(),c=K({playerKey:b()});m(e,()=>I());const _=({path:t})=>{n.push({name:"player",query:e.query,params:{path:t.split("/")}})},y=async()=>{c.playerKey=b()};m([()=>e.path,()=>e.query],()=>y());const{loading:w,result:o,error:D,refetch:I}=j(()=>{var t;return J((t=e.path.slice(1))!=null?t:"")}),h=f(()=>l.value?S.create({formPath:l.value.path}):null),l=f(()=>{var t,i;return(i=(t=o.value)==null?void 0:t.form)!=null?i:null}),v=f(()=>{var i,g;if(!((i=o.value)!=null&&i.dash))return null;const t=V((g=o.value)==null?void 0:g.dash);return t.onRedirect(({url:P,queryParams:R})=>q(n,P,R)),t});return m(o,()=>{var t;!o.value||(o.value.form?document.title=(t=o.value.form.welcomeTitle)!=null?t:o.value.form.title:o.value.dash&&(document.title=o.value.dash.title))}),(t,i)=>a(w)?(s(),u("div",Q,[E(H)])):a(D)?(s(),u("div",$,U)):a(l)&&a(h)?(s(),u("div",W,[(s(),k(x,{key:c.playerKey,class:"player",form:a(l),params:a(e).query,broker:a(h),"enable-auto-focus":!0,onNavigate:_,onLogout:y},null,8,["form","params","broker"]))])):a(v)?(s(),u("div",X,[(s(),k(C,{key:c.playerKey,class:"player","is-preview":!1,params:a(e).query,"dash-player-service":a(v),onNavigate:_},null,8,["params","dash-player-service"]))])):(s(),u("div",Y,te))}});const we=L(re,[["__scopeId","data-v-5d17475b"]]);export{we as default}; -//# sourceMappingURL=Player.616482e5.js.map +import{r as q}from"./index.7d1457d9.js";import{u as b}from"./uuid.0e63ad64.js";import{F as x,R as S}from"./broker.988d8f9b.js";import{d as B,v as K,a2 as m,K as f,z as a,b as s,c as u,e as E,t as k,J as N,H as O,O as T,Q as F,x as d,q as L}from"./registerWidgets.cb3a7b8d.js";import{D as C,m as V}from"./DashPlayer.6d1530bb.js";import{a as j}from"./asyncComputed.31994732.js";import{r as z,n as A}from"./runnerData.7b7cb682.js";import{L as H}from"./CircularLoading.1e68d2b1.js";import"./passwordlessManager.afd7d1d0.js";import"./pubsub.f85a17d2.js";import"./icons.39dfa322.js";import"./ActionButton.vue_vue_type_script_setup_true_lang.9a3f9909.js";import"./Passwordless.7161b834.js";import"./executeJs.87b204c8.js";import"./PlayerNavbar.fe11d508.js";import"./WidgetsFrame.aac2edff.js";import"./colors.868ae049.js";import"./Modal.43c3d47a.js";import"./lottie.234eb92e.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="23fc8d5a-cdc7-4380-b2c2-f1d685725c45",r._sentryDebugIdIdentifier="sentry-dbid-23fc8d5a-cdc7-4380-b2c2-f1d685725c45")}catch{}})();async function J(r){const e=await fetch(`/_api/${r}`);if(e.status==404)return null;if(!e.ok)throw new Error(await e.text());const{form:n,dash:c}=await e.json();return{form:n&&z(n),dash:c&&A(c)}}const p=r=>(T("data-v-5d17475b"),r=r(),F(),r),Q={key:0,class:"loading"},$={key:1,class:"error"},G=p(()=>d("h1",null,"Oops! Something went wrong",-1)),M=p(()=>d("p",null,"An unknown error ocurred. Please try again or contact support.",-1)),U=[G,M],W={key:2,class:"form"},X={key:3,class:"dash-wrapper"},Y={key:4,class:"error not-found"},Z=p(()=>d("h1",null,"Page not found",-1)),ee=p(()=>d("p",null,"The page you requested could not be found.",-1)),te=[Z,ee],re=B({__name:"Player",setup(r){const e=N(),n=O(),c=K({playerKey:b()});m(e,()=>I());const _=({path:t})=>{n.push({name:"player",query:e.query,params:{path:t.split("/")}})},y=async()=>{c.playerKey=b()};m([()=>e.path,()=>e.query],()=>y());const{loading:w,result:o,error:D,refetch:I}=j(()=>{var t;return J((t=e.path.slice(1))!=null?t:"")}),h=f(()=>l.value?S.create({formPath:l.value.path}):null),l=f(()=>{var t,i;return(i=(t=o.value)==null?void 0:t.form)!=null?i:null}),v=f(()=>{var i,g;if(!((i=o.value)!=null&&i.dash))return null;const t=V((g=o.value)==null?void 0:g.dash);return t.onRedirect(({url:P,queryParams:R})=>q(n,P,R)),t});return m(o,()=>{var t;!o.value||(o.value.form?document.title=(t=o.value.form.welcomeTitle)!=null?t:o.value.form.title:o.value.dash&&(document.title=o.value.dash.title))}),(t,i)=>a(w)?(s(),u("div",Q,[E(H)])):a(D)?(s(),u("div",$,U)):a(l)&&a(h)?(s(),u("div",W,[(s(),k(x,{key:c.playerKey,class:"player",form:a(l),params:a(e).query,broker:a(h),"enable-auto-focus":!0,onNavigate:_,onLogout:y},null,8,["form","params","broker"]))])):a(v)?(s(),u("div",X,[(s(),k(C,{key:c.playerKey,class:"player","is-preview":!1,params:a(e).query,"dash-player-service":a(v),onNavigate:_},null,8,["params","dash-player-service"]))])):(s(),u("div",Y,te))}});const we=L(re,[["__scopeId","data-v-5d17475b"]]);export{we as default}; +//# sourceMappingURL=Player.4d7db160.js.map diff --git a/abstra_statics/dist/assets/PlayerNavbar.9ff5d98a.js b/abstra_statics/dist/assets/PlayerNavbar.fe11d508.js similarity index 75% rename from abstra_statics/dist/assets/PlayerNavbar.9ff5d98a.js rename to abstra_statics/dist/assets/PlayerNavbar.fe11d508.js index 2499bb3efa..65d8e9f804 100644 --- a/abstra_statics/dist/assets/PlayerNavbar.9ff5d98a.js +++ b/abstra_statics/dist/assets/PlayerNavbar.fe11d508.js @@ -1,2 +1,2 @@ -import{m as k,l as S}from"./icons.9d575a00.js";import{d as h,K as v,b as s,c as a,x as l,F as p,L as R,z as i,G as m,N as f,q as _,v as I,D as d,e as N,I as w,t as x,O as C,Q as D}from"./registerWidgets.3fe0df5a.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="b2a85ad7-5977-4ce8-9107-4d31aee5431d",e._sentryDebugIdIdentifier="sentry-dbid-b2a85ad7-5977-4ce8-9107-4d31aee5431d")}catch{}})();const $={class:"sidebar-content"},B={class:"section"},E=["onClick"],P=h({__name:"Sidebar",props:{currentRuntime:null,displaySidebar:{type:Boolean},forceResponsivity:null},emits:["selectRuntime","closeSidebar"],setup(e,{emit:r}){const o=e,u=v(()=>o.currentRuntime.runtimeType==="dash"),c=t=>{n(t.id)||r("selectRuntime",t)},b=v(()=>o.currentRuntime.sidebar.filter(t=>t.visible)),n=t=>t===o.currentRuntime.id;return(t,g)=>(s(),a("div",{class:m(["sidebar",e.forceResponsivity,{open:e.displaySidebar,dash:i(u)}])},[l("div",$,[l("div",B,[(s(!0),a(p,null,R(i(b),y=>(s(),a("div",{key:y.id,class:m(["item",{active:n(y.id)}]),onClick:Q=>c(y)},[l("div",{class:m(["item-title",{open:e.displaySidebar}])},f(y.name),3)],10,E))),128))])])],2))}});const U=_(P,[["__scopeId","data-v-09ca60c8"]]),T=e=>(C("data-v-a92d79dd"),e=e(),D(),e),V={class:"left-side"},z=["d"],F={key:1,class:"brand"},L=["src"],q={key:1,class:"brand-name"},G=T(()=>l("div",null,null,-1)),K={key:0,class:"signed-email"},O=h({__name:"PlayerNavbar",props:{runtime:null,brandName:null,userEmail:null,forceResponsivity:null},emits:["logout","navigate"],setup(e,{emit:r}){const o=e,u=I({displaySidebar:!1}),c=v(()=>{const n=o.runtime.sidebar;return!n||n.length==0?!1:n.some(t=>t.visible)}),b=n=>r("navigate",n);return(n,t)=>(s(),a(p,null,[i(c)||e.runtime.logoUrl||e.runtime.brandName||e.userEmail?(s(),a("div",{key:0,class:m(["navbar",(e.runtime.runtimeType=="dash"||i(c))&&"background"])},[l("div",V,[i(c)?(s(),a("svg",{key:0,class:m(["sidebar-menu-icon",e.forceResponsivity,{dash:e.runtime.runtimeType=="dash"}]),viewBox:"0 0 24 24",fill:"var(--color-main)",onClick:t[0]||(t[0]=g=>u.displaySidebar=!u.displaySidebar)},[l("path",{d:i(k)},null,8,z)],2)):d("",!0),e.runtime.logoUrl||e.runtime.brandName?(s(),a("div",F,[e.runtime.logoUrl?(s(),a("img",{key:0,src:e.runtime.logoUrl,class:"logo-image"},null,8,L)):d("",!0),e.runtime.brandName?(s(),a("p",q,f(e.runtime.brandName),1)):d("",!0)])):d("",!0)]),G,e.userEmail?(s(),a("div",K,[l("span",null,f(e.userEmail),1),N(w,{width:"20",height:"20",class:"logout",path:i(S),fill:"var(--color-main)",onClick:t[1]||(t[1]=g=>r("logout"))},null,8,["path"])])):d("",!0)],2)):d("",!0),i(c)?(s(),x(U,{key:1,"current-runtime":e.runtime,"display-sidebar":u.displaySidebar,"force-responsivity":e.forceResponsivity,onSelectRuntime:b},null,8,["current-runtime","display-sidebar","force-responsivity"])):d("",!0)],64))}});const H=_(O,[["__scopeId","data-v-a92d79dd"]]);export{H as P}; -//# sourceMappingURL=PlayerNavbar.9ff5d98a.js.map +import{m as k,l as S}from"./icons.39dfa322.js";import{d as h,K as v,b as s,c as a,x as l,F as p,L as R,z as i,G as m,N as f,q as _,v as I,D as d,e as N,I as w,t as x,O as C,Q as D}from"./registerWidgets.cb3a7b8d.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="7c8e3fab-cf42-408c-9d0f-1caa9cbd13df",e._sentryDebugIdIdentifier="sentry-dbid-7c8e3fab-cf42-408c-9d0f-1caa9cbd13df")}catch{}})();const $={class:"sidebar-content"},B={class:"section"},E=["onClick"],P=h({__name:"Sidebar",props:{currentRuntime:null,displaySidebar:{type:Boolean},forceResponsivity:null},emits:["selectRuntime","closeSidebar"],setup(e,{emit:r}){const o=e,u=v(()=>o.currentRuntime.runtimeType==="dash"),c=t=>{n(t.id)||r("selectRuntime",t)},y=v(()=>o.currentRuntime.sidebar.filter(t=>t.visible)),n=t=>t===o.currentRuntime.id;return(t,g)=>(s(),a("div",{class:m(["sidebar",e.forceResponsivity,{open:e.displaySidebar,dash:i(u)}])},[l("div",$,[l("div",B,[(s(!0),a(p,null,R(i(y),b=>(s(),a("div",{key:b.id,class:m(["item",{active:n(b.id)}]),onClick:Q=>c(b)},[l("div",{class:m(["item-title",{open:e.displaySidebar}])},f(b.name),3)],10,E))),128))])])],2))}});const U=_(P,[["__scopeId","data-v-09ca60c8"]]),T=e=>(C("data-v-a92d79dd"),e=e(),D(),e),V={class:"left-side"},z=["d"],F={key:1,class:"brand"},L=["src"],q={key:1,class:"brand-name"},G=T(()=>l("div",null,null,-1)),K={key:0,class:"signed-email"},O=h({__name:"PlayerNavbar",props:{runtime:null,brandName:null,userEmail:null,forceResponsivity:null},emits:["logout","navigate"],setup(e,{emit:r}){const o=e,u=I({displaySidebar:!1}),c=v(()=>{const n=o.runtime.sidebar;return!n||n.length==0?!1:n.some(t=>t.visible)}),y=n=>r("navigate",n);return(n,t)=>(s(),a(p,null,[i(c)||e.runtime.logoUrl||e.runtime.brandName||e.userEmail?(s(),a("div",{key:0,class:m(["navbar",(e.runtime.runtimeType=="dash"||i(c))&&"background"])},[l("div",V,[i(c)?(s(),a("svg",{key:0,class:m(["sidebar-menu-icon",e.forceResponsivity,{dash:e.runtime.runtimeType=="dash"}]),viewBox:"0 0 24 24",fill:"var(--color-main)",onClick:t[0]||(t[0]=g=>u.displaySidebar=!u.displaySidebar)},[l("path",{d:i(k)},null,8,z)],2)):d("",!0),e.runtime.logoUrl||e.runtime.brandName?(s(),a("div",F,[e.runtime.logoUrl?(s(),a("img",{key:0,src:e.runtime.logoUrl,class:"logo-image"},null,8,L)):d("",!0),e.runtime.brandName?(s(),a("p",q,f(e.runtime.brandName),1)):d("",!0)])):d("",!0)]),G,e.userEmail?(s(),a("div",K,[l("span",null,f(e.userEmail),1),N(w,{width:"20",height:"20",class:"logout",path:i(S),fill:"var(--color-main)",onClick:t[1]||(t[1]=g=>r("logout"))},null,8,["path"])])):d("",!0)],2)):d("",!0),i(c)?(s(),x(U,{key:1,"current-runtime":e.runtime,"display-sidebar":u.displaySidebar,"force-responsivity":e.forceResponsivity,onSelectRuntime:y},null,8,["current-runtime","display-sidebar","force-responsivity"])):d("",!0)],64))}});const H=_(O,[["__scopeId","data-v-a92d79dd"]]);export{H as P}; +//# sourceMappingURL=PlayerNavbar.fe11d508.js.map diff --git a/abstra_statics/dist/assets/PreviewButton.70ce525c.js b/abstra_statics/dist/assets/PreviewButton.70ce525c.js new file mode 100644 index 0000000000..d6e0ea9a30 --- /dev/null +++ b/abstra_statics/dist/assets/PreviewButton.70ce525c.js @@ -0,0 +1,2 @@ +import{t as d}from"./icons.39dfa322.js";import{d as c,J as u,H as i,a as p,b as _,c as l,e as f,z as b,U as m,q as y}from"./registerWidgets.cb3a7b8d.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="dfb9d8e8-5adb-4b84-bad7-79f8cf035e2a",e._sentryDebugIdIdentifier="sentry-dbid-dfb9d8e8-5adb-4b84-bad7-79f8cf035e2a")}catch{}})();const v=c({__name:"PreviewButton",props:{model:null},setup(e){const t=e,o=u(),s=i(),a=()=>{const n=o.query;s.push({path:`/_editor/${t.model.routeName}/${encodeURIComponent(t.model.path)}/preview`,query:n})};return(n,w)=>{const r=p("icon");return _(),l("button",{class:"preview-button",onClick:a},[f(r,{class:"icon",path:b(d),width:"20",height:"20",fill:"#5A677A"},null,8,["path"]),m(" Preview ")])}}});const I=y(v,[["__scopeId","data-v-4b4c109d"]]);export{I as P}; +//# sourceMappingURL=PreviewButton.70ce525c.js.map diff --git a/abstra_statics/dist/assets/PreviewButton.f29c359b.js b/abstra_statics/dist/assets/PreviewButton.f29c359b.js deleted file mode 100644 index 53e5fdeebe..0000000000 --- a/abstra_statics/dist/assets/PreviewButton.f29c359b.js +++ /dev/null @@ -1,2 +0,0 @@ -import{t as c}from"./icons.9d575a00.js";import{d,J as u,H as i,a as p,b as _,c as l,e as f,z as b,U as m,q as y}from"./registerWidgets.3fe0df5a.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="801d94eb-ed3c-4134-8fea-45733160be8d",e._sentryDebugIdIdentifier="sentry-dbid-801d94eb-ed3c-4134-8fea-45733160be8d")}catch{}})();const v=d({__name:"PreviewButton",props:{model:null},setup(e){const t=e,o=u(),s=i(),r=()=>{const n=o.query;s.push({path:`/_editor/${t.model.routeName}/${encodeURIComponent(t.model.path)}/preview`,query:n})};return(n,w)=>{const a=p("icon");return _(),l("button",{class:"preview-button",onClick:r},[f(a,{class:"icon",path:b(c),width:"20",height:"20",fill:"#5A677A"},null,8,["path"]),m(" Preview ")])}}});const I=y(v,[["__scopeId","data-v-4b4c109d"]]);export{I as P}; -//# sourceMappingURL=PreviewButton.f29c359b.js.map diff --git a/abstra_statics/dist/assets/Project.119b9b1c.js b/abstra_statics/dist/assets/Project.119b9b1c.js deleted file mode 100644 index 0791a30ce1..0000000000 --- a/abstra_statics/dist/assets/Project.119b9b1c.js +++ /dev/null @@ -1,2 +0,0 @@ -import{d as b,K as i,b as _,c as g,e as s,z as c,x as l,F as v,J as f,a as y,q as h}from"./registerWidgets.3fe0df5a.js";import{a as p}from"./asyncComputed.4b275614.js";import{P as I}from"./project.71f5fd7c.js";import"./gateway.63e02d1d.js";import{O as j}from"./organization.dde8e095.js";import"./index.24c9f37d.js";import{N as z}from"./Navbar.2ae068c3.js";import{S as w}from"./Sidebar.09692155.js";import{H as P,I as k,D as x,J as B,K as D,L as $,E as C,F as E,G as N}from"./icons.9d575a00.js";import"./activeRecord.2bc1b71f.js";import"./pubsub.909df758.js";import"./passwordlessManager.f53316a7.js";import"./logo.084e5d7c.js";import"./Tooltip.93ae2394.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[o]="6a16ed07-01f4-447e-aad6-60eba6be2278",a._sentryDebugIdIdentifier="sentry-dbid-6a16ed07-01f4-447e-aad6-60eba6be2278")}catch{}})();const S={class:"project"},F={class:"content-wrapper"},K=b({__name:"Project",setup(a){const r=f().params.projectId,{result:e}=p(()=>I.get(r)),{result:t}=p(()=>e.value?j.get(e.value.organizationId):Promise.resolve(null)),m=i(()=>{var n;return t.value&&e.value?[{label:(n=t.value)==null?void 0:n.name,path:`/organizations/${t.value.id}`},{label:e.value.name,path:`/projects/${e.value.id}`}]:void 0}),d=i(()=>e.value?[{name:"Project",items:[{name:"Builds",path:"builds",icon:P},{name:"Connectors",path:"connectors",icon:k},{name:"API Keys",path:"api-keys",icon:x},{name:"Env Vars",path:"env-vars",icon:B},{name:"Logs",icon:D,path:"logs",beta:!0},{name:"Settings",icon:$,path:"settings"}]},{name:"Organization",items:[{name:"Projects",icon:C,path:`/organizations/${e.value.organizationId}/projects`},{name:"Members",icon:E,path:`/organizations/${e.value.organizationId}/members`},{name:"Billing",icon:N,path:`/organizations/${e.value.organizationId}/billing`,unavailable:!0}]}]:[]);return(n,L)=>{const u=y("router-view");return _(),g(v,null,[s(z,{class:"nav",breadcrumb:c(m)},null,8,["breadcrumb"]),l("div",S,[s(w,{class:"sidebar",sections:c(d)},null,8,["sections"]),l("div",F,[s(u)])])],64)}}});const Y=h(K,[["__scopeId","data-v-f3927501"]]);export{Y as default}; -//# sourceMappingURL=Project.119b9b1c.js.map diff --git a/abstra_statics/dist/assets/Project.5e72a606.js b/abstra_statics/dist/assets/Project.5e72a606.js new file mode 100644 index 0000000000..a717fb1875 --- /dev/null +++ b/abstra_statics/dist/assets/Project.5e72a606.js @@ -0,0 +1,2 @@ +import{d as _,K as i,b,c as g,e as s,z as c,x as l,F as v,J as f,a as y,q as h}from"./registerWidgets.cb3a7b8d.js";import{a as d}from"./asyncComputed.31994732.js";import{P as I}from"./project.af2b2708.js";import"./gateway.2edca867.js";import{O as j}from"./organization.abd54459.js";import"./index.7fea4022.js";import{N as z}from"./Navbar.03aff786.js";import{S as w}from"./Sidebar.2a0e2b35.js";import{H as P,I as k,D as x,J as B,K as D,L as $,E as C,F as E,G as N}from"./icons.39dfa322.js";import"./activeRecord.adfc6223.js";import"./pubsub.f85a17d2.js";import"./passwordlessManager.afd7d1d0.js";import"./logo.084e5d7c.js";import"./Tooltip.f700ff7d.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[o]="2e7bdf84-14ed-489d-a5d9-ea2713a2fea0",a._sentryDebugIdIdentifier="sentry-dbid-2e7bdf84-14ed-489d-a5d9-ea2713a2fea0")}catch{}})();const S={class:"project"},F={class:"content-wrapper"},K=_({__name:"Project",setup(a){const r=f().params.projectId,{result:e}=d(()=>I.get(r)),{result:t}=d(()=>e.value?j.get(e.value.organizationId):Promise.resolve(null)),p=i(()=>{var n;return t.value&&e.value?[{label:(n=t.value)==null?void 0:n.name,path:`/organizations/${t.value.id}`},{label:e.value.name,path:`/projects/${e.value.id}`}]:void 0}),m=i(()=>e.value?[{name:"Project",items:[{name:"Builds",path:"builds",icon:P},{name:"Connectors",path:"connectors",icon:k},{name:"API Keys",path:"api-keys",icon:x},{name:"Env Vars",path:"env-vars",icon:B},{name:"Logs",icon:D,path:"logs",beta:!0},{name:"Settings",icon:$,path:"settings"}]},{name:"Organization",items:[{name:"Projects",icon:C,path:`/organizations/${e.value.organizationId}/projects`},{name:"Members",icon:E,path:`/organizations/${e.value.organizationId}/members`},{name:"Billing",icon:N,path:`/organizations/${e.value.organizationId}/billing`,unavailable:!0}]}]:[]);return(n,L)=>{const u=y("router-view");return b(),g(v,null,[s(z,{class:"nav",breadcrumb:c(p)},null,8,["breadcrumb"]),l("div",S,[s(w,{class:"sidebar",sections:c(m)},null,8,["sections"]),l("div",F,[s(u)])])],64)}}});const Y=h(K,[["__scopeId","data-v-f3927501"]]);export{Y as default}; +//# sourceMappingURL=Project.5e72a606.js.map diff --git a/abstra_statics/dist/assets/ProjectSettings.0c36ee31.js b/abstra_statics/dist/assets/ProjectSettings.c0546396.js similarity index 82% rename from abstra_statics/dist/assets/ProjectSettings.0c36ee31.js rename to abstra_statics/dist/assets/ProjectSettings.c0546396.js index 26ae528872..32212c5010 100644 --- a/abstra_statics/dist/assets/ProjectSettings.0c36ee31.js +++ b/abstra_statics/dist/assets/ProjectSettings.c0546396.js @@ -1,2 +1,2 @@ -import{a as S}from"./asyncComputed.4b275614.js";import{P as I}from"./project.71f5fd7c.js";import"./gateway.63e02d1d.js";import{d as v,v as C,b as n,c,x as t,e as l,z as r,U as a,N as p,D as _,t as x,a as D,O as f,Q as g,q as y,J as E}from"./registerWidgets.3fe0df5a.js";import"./index.24c9f37d.js";import{s as P}from"./index.776642db.js";import{L as N}from"./CircularLoading.2fb746db.js";import{M as B,e as A,N as V}from"./icons.9d575a00.js";import"./activeRecord.2bc1b71f.js";import"./pubsub.909df758.js";import"./passwordlessManager.f53316a7.js";import"./lottie.8f58e4c7.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[o]="51d50913-673b-4b1a-ad97-6adea8c1ed51",s._sentryDebugIdIdentifier="sentry-dbid-51d50913-673b-4b1a-ad97-6adea8c1ed51")}catch{}})();const i=s=>(f("data-v-263381f5"),s=s(),g(),s),$={class:"subdomain-editor"},H={class:"title"},L=i(()=>t("div",{class:"subtitle"}," Every project in Abstra Cloud comes with a default subdomain, which will appear on all shared project links. ",-1)),T={key:0,class:"subdomain-presenter"},z={class:"link-item"},M=i(()=>t("div",{class:"link-title"},"Forms and Dashes available at:",-1)),O={class:"link"},R={class:"custom-subdomain"},U={class:"link-item"},q=i(()=>t("div",{class:"link-title"},"Hooks available at:",-1)),F={class:"link"},J={class:"custom-subdomain"},Q={key:1,class:"subdomain-value-editor"},G={class:"subdomain-change-warning"},K={class:"section-title"},W=i(()=>t("div",{class:"section-body"}," Changing the project's subdomain will result in the replacement of the previous URL, which may break any links you've shared previously. ",-1)),X={class:"input-section"},Y={class:"subdomain-value-input"},Z=i(()=>t("span",null,"https://",-1)),tt=["value"],et=i(()=>t("span",null,".abstra.app",-1)),st={key:0,class:"error"},ot={class:"option-buttons"},at=v({__name:"SubdomainEditor",props:{project:null},setup(s){const o=s,e=C({name:o.project.subdomain,error:"",editing:!1,loading:!1}),d=()=>e.editing=!0,m=()=>{k(),e.editing=!1,e.error=""},h=async()=>{e.error="",e.loading=!0,await j(),e.error||(e.editing=!1),e.loading=!1},j=async()=>{if(!(!o.project||o.project.subdomain===e.name)){if(!e.name){e.error="Subdomain cannot be empty";return}o.project.subdomain=e.name,await o.project.save()}},k=()=>e.name=o.project.subdomain,w=b=>{e.name=P(b.target.value,{replacement:"-",lower:!0,strict:!0})};return(b,lt)=>{const u=D("icon");return n(),c("div",$,[t("h2",H,[l(u,{width:"22",height:"22",path:r(B),fill:"#414A58"},null,8,["path"]),a("Subdomain ")]),L,e.editing?(n(),c("div",Q,[t("div",G,[t("div",K,[l(u,{path:r(A),width:"12",height:"12",fill:"#D35249"},null,8,["path"]),a(" Be careful ")]),W]),t("div",X,[t("div",Y,[Z,t("input",{value:e.name,type:"text",onInput:w},null,40,tt),et]),e.error?(n(),c("div",st,[l(u,{path:r(V),fill:"#D35249",width:"12",height:"12"},null,8,["path"]),a(" "+p(e.error),1)])):_("",!0),t("div",ot,[t("button",{class:"cancel-button",onClick:m},"Cancel"),t("button",{class:"save-button",onClick:h},[a(" Save Changes "),e.loading?(n(),x(N,{key:0,size:"16"})):_("",!0)])])])])):(n(),c("div",T,[t("div",z,[M,t("div",O,[a(" https://"),t("span",R,p(s.project.subdomain),1),a(".abstra.app/[PATH] ")])]),t("div",U,[q,t("div",F,[a(" https://"),t("span",J,p(s.project.subdomain),1),a(".abstra.app/_hooks/[PATH] ")])]),t("button",{onClick:d},"Edit Subdomain")]))])}}});const nt=y(at,[["__scopeId","data-v-263381f5"]]),it=s=>(f("data-v-0990f6ef"),s=s(),g(),s),ct={key:0,class:"project-settings"},rt=it(()=>t("div",{class:"header"},[t("div",{class:"title-wrapper"},[t("h1",null,"Project Settings")])],-1)),dt=v({__name:"ProjectSettings",setup(s){const e=E().params.projectId,{result:d}=S(()=>I.get(e));return(m,h)=>r(d)?(n(),c("div",ct,[rt,l(nt,{project:r(d)},null,8,["project"])])):_("",!0)}});const wt=y(dt,[["__scopeId","data-v-0990f6ef"]]);export{wt as default}; -//# sourceMappingURL=ProjectSettings.0c36ee31.js.map +import{a as S}from"./asyncComputed.31994732.js";import{P as I}from"./project.af2b2708.js";import"./gateway.2edca867.js";import{d as v,v as C,b as n,c,x as t,e as l,z as r,U as a,N as p,D as _,t as x,a as D,O as f,Q as g,q as y,J as E}from"./registerWidgets.cb3a7b8d.js";import"./index.7fea4022.js";import{s as P}from"./index.7d1457d9.js";import{L as N}from"./CircularLoading.1e68d2b1.js";import{M as B,e as A,N as V}from"./icons.39dfa322.js";import"./activeRecord.adfc6223.js";import"./pubsub.f85a17d2.js";import"./passwordlessManager.afd7d1d0.js";import"./lottie.234eb92e.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[o]="9a3a833e-14d7-4915-8184-70c5a6cbc0cd",s._sentryDebugIdIdentifier="sentry-dbid-9a3a833e-14d7-4915-8184-70c5a6cbc0cd")}catch{}})();const i=s=>(f("data-v-263381f5"),s=s(),g(),s),$={class:"subdomain-editor"},H={class:"title"},L=i(()=>t("div",{class:"subtitle"}," Every project in Abstra Cloud comes with a default subdomain, which will appear on all shared project links. ",-1)),T={key:0,class:"subdomain-presenter"},z={class:"link-item"},M=i(()=>t("div",{class:"link-title"},"Forms and Dashes available at:",-1)),O={class:"link"},R={class:"custom-subdomain"},U={class:"link-item"},q=i(()=>t("div",{class:"link-title"},"Hooks available at:",-1)),F={class:"link"},J={class:"custom-subdomain"},Q={key:1,class:"subdomain-value-editor"},G={class:"subdomain-change-warning"},K={class:"section-title"},W=i(()=>t("div",{class:"section-body"}," Changing the project's subdomain will result in the replacement of the previous URL, which may break any links you've shared previously. ",-1)),X={class:"input-section"},Y={class:"subdomain-value-input"},Z=i(()=>t("span",null,"https://",-1)),tt=["value"],et=i(()=>t("span",null,".abstra.app",-1)),st={key:0,class:"error"},ot={class:"option-buttons"},at=v({__name:"SubdomainEditor",props:{project:null},setup(s){const o=s,e=C({name:o.project.subdomain,error:"",editing:!1,loading:!1}),d=()=>e.editing=!0,m=()=>{k(),e.editing=!1,e.error=""},h=async()=>{e.error="",e.loading=!0,await j(),e.error||(e.editing=!1),e.loading=!1},j=async()=>{if(!(!o.project||o.project.subdomain===e.name)){if(!e.name){e.error="Subdomain cannot be empty";return}o.project.subdomain=e.name,await o.project.save()}},k=()=>e.name=o.project.subdomain,w=b=>{e.name=P(b.target.value,{replacement:"-",lower:!0,strict:!0})};return(b,lt)=>{const u=D("icon");return n(),c("div",$,[t("h2",H,[l(u,{width:"22",height:"22",path:r(B),fill:"#414A58"},null,8,["path"]),a("Subdomain ")]),L,e.editing?(n(),c("div",Q,[t("div",G,[t("div",K,[l(u,{path:r(A),width:"12",height:"12",fill:"#D35249"},null,8,["path"]),a(" Be careful ")]),W]),t("div",X,[t("div",Y,[Z,t("input",{value:e.name,type:"text",onInput:w},null,40,tt),et]),e.error?(n(),c("div",st,[l(u,{path:r(V),fill:"#D35249",width:"12",height:"12"},null,8,["path"]),a(" "+p(e.error),1)])):_("",!0),t("div",ot,[t("button",{class:"cancel-button",onClick:m},"Cancel"),t("button",{class:"save-button",onClick:h},[a(" Save Changes "),e.loading?(n(),x(N,{key:0,size:"16"})):_("",!0)])])])])):(n(),c("div",T,[t("div",z,[M,t("div",O,[a(" https://"),t("span",R,p(s.project.subdomain),1),a(".abstra.app/[PATH] ")])]),t("div",U,[q,t("div",F,[a(" https://"),t("span",J,p(s.project.subdomain),1),a(".abstra.app/_hooks/[PATH] ")])]),t("button",{onClick:d},"Edit Subdomain")]))])}}});const nt=y(at,[["__scopeId","data-v-263381f5"]]),it=s=>(f("data-v-0990f6ef"),s=s(),g(),s),ct={key:0,class:"project-settings"},rt=it(()=>t("div",{class:"header"},[t("div",{class:"title-wrapper"},[t("h1",null,"Project Settings")])],-1)),dt=v({__name:"ProjectSettings",setup(s){const e=E().params.projectId,{result:d}=S(()=>I.get(e));return(m,h)=>r(d)?(n(),c("div",ct,[rt,l(nt,{project:r(d)},null,8,["project"])])):_("",!0)}});const wt=y(dt,[["__scopeId","data-v-0990f6ef"]]);export{wt as default}; +//# sourceMappingURL=ProjectSettings.c0546396.js.map diff --git a/abstra_statics/dist/assets/Projects.b96ed09a.js b/abstra_statics/dist/assets/Projects.b96ed09a.js new file mode 100644 index 0000000000..52b5fd2424 --- /dev/null +++ b/abstra_statics/dist/assets/Projects.b96ed09a.js @@ -0,0 +1,2 @@ +import{d as j,K as P,z as s,b as w,t as _,D as k,J as h,H as C}from"./registerWidgets.cb3a7b8d.js";import{f as I,g as x}from"./icons.39dfa322.js";import{a as z}from"./asyncComputed.31994732.js";import{P as d}from"./project.af2b2708.js";import"./gateway.2edca867.js";import{O as D}from"./organization.abd54459.js";import"./index.7fea4022.js";import{C as N}from"./CrudView.87a92735.js";import"./activeRecord.adfc6223.js";import"./pubsub.f85a17d2.js";import"./passwordlessManager.afd7d1d0.js";import"./DropdownMenu.c973057b.js";import"./Modal.43c3d47a.js";import"./LoadingIndicator.d4ffd545.js";import"./lottie.234eb92e.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[r]="a8144906-be4d-4568-8b8d-edab9efca3be",a._sentryDebugIdIdentifier="sentry-dbid-a8144906-be4d-4568-8b8d-edab9efca3be")}catch{}})();const F=j({__name:"Projects",setup(a){const r=[{key:"name",label:"Project Name"}],i=h().params.organizationId,m=C(),{loading:p,result:n,refetch:u}=z(()=>Promise.all([d.list(i),D.get(i)]).then(([e,t])=>({projects:e,organization:t}))),c=({key:e})=>m.push({name:"project",params:{projectId:e}}),f=async e=>{const t=await d.create({organizationId:i,name:e.name});c({key:t.id})},b=async({key:e})=>{var t,o;confirm("Are you sure you want to delete this project?")&&(await((o=(t=n.value)==null?void 0:t.projects.find(g=>g.id===e))==null?void 0:o.delete()),u())},y=P(()=>{var e,t;return{columns:[{name:"Project Name"},{name:"Path"},{name:"Project Actions"}],rows:(t=(e=n.value)==null?void 0:e.projects.map(o=>({key:o.id,cells:[{text:o.name,classes:["title","centered"],link:`/projects/${encodeURIComponent(o.id)}`},{text:o.id},{text:"",classes:["centered"],actions:[{icon:I,label:"Delete",onClick:b,dangerous:!0},{icon:x,label:"Edit Project",onClick:c}]}]})))!=null?t:[]}});return(e,t)=>s(n)?(w(),_(N,{key:0,"entity-name":"project",loading:s(p),title:`${s(n).organization.name}'s Projects`,description:"Organize your team's work into different Projects, each with it's own subdomain.","create-button-text":"Create Project","empty-title":"No projects here yet",table:s(y),fields:r,onCreate:f},null,8,["loading","title","table"])):k("",!0)}});export{F as default}; +//# sourceMappingURL=Projects.b96ed09a.js.map diff --git a/abstra_statics/dist/assets/Projects.c6bacab0.js b/abstra_statics/dist/assets/Projects.c6bacab0.js deleted file mode 100644 index 2eaea45cae..0000000000 --- a/abstra_statics/dist/assets/Projects.c6bacab0.js +++ /dev/null @@ -1,2 +0,0 @@ -import{d as j,K as P,z as s,b as w,t as _,D as k,J as h,H as C}from"./registerWidgets.3fe0df5a.js";import{f as I,g as x}from"./icons.9d575a00.js";import{a as z}from"./asyncComputed.4b275614.js";import{P as d}from"./project.71f5fd7c.js";import"./gateway.63e02d1d.js";import{O as D}from"./organization.dde8e095.js";import"./index.24c9f37d.js";import{C as N}from"./CrudView.674ca9db.js";import"./activeRecord.2bc1b71f.js";import"./pubsub.909df758.js";import"./passwordlessManager.f53316a7.js";import"./DropdownMenu.9edc1223.js";import"./Modal.32a3d62d.js";import"./LoadingIndicator.a20841c3.js";import"./lottie.8f58e4c7.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[n]="96dd884d-60bd-4d7d-b8f9-8dd82ce537e9",r._sentryDebugIdIdentifier="sentry-dbid-96dd884d-60bd-4d7d-b8f9-8dd82ce537e9")}catch{}})();const F=j({__name:"Projects",setup(r){const n=[{key:"name",label:"Project Name"}],i=h().params.organizationId,m=C(),{loading:p,result:a,refetch:u}=z(()=>Promise.all([d.list(i),D.get(i)]).then(([e,t])=>({projects:e,organization:t}))),c=({key:e})=>m.push({name:"project",params:{projectId:e}}),f=async e=>{const t=await d.create({organizationId:i,name:e.name});c({key:t.id})},y=async({key:e})=>{var t,o;confirm("Are you sure you want to delete this project?")&&(await((o=(t=a.value)==null?void 0:t.projects.find(g=>g.id===e))==null?void 0:o.delete()),u())},b=P(()=>{var e,t;return{columns:[{name:"Project Name"},{name:"Path"},{name:"Project Actions"}],rows:(t=(e=a.value)==null?void 0:e.projects.map(o=>({key:o.id,cells:[{text:o.name,classes:["title","centered"],link:`/projects/${encodeURIComponent(o.id)}`},{text:o.id},{text:"",classes:["centered"],actions:[{icon:I,label:"Delete",onClick:y,dangerous:!0},{icon:x,label:"Edit Project",onClick:c}]}]})))!=null?t:[]}});return(e,t)=>s(a)?(w(),_(N,{key:0,"entity-name":"project",loading:s(p),title:`${s(a).organization.name}'s Projects`,description:"Organize your team's work into different Projects, each with it's own subdomain.","create-button-text":"Create Project","empty-title":"No projects here yet",table:s(b),fields:n,onCreate:f},null,8,["loading","title","table"])):k("",!0)}});export{F as default}; -//# sourceMappingURL=Projects.c6bacab0.js.map diff --git a/abstra_statics/dist/assets/RuntimeList.8704ae12.js b/abstra_statics/dist/assets/RuntimeList.8704ae12.js deleted file mode 100644 index 39af8bf166..0000000000 --- a/abstra_statics/dist/assets/RuntimeList.8704ae12.js +++ /dev/null @@ -1,2 +0,0 @@ -import{D as v,_ as g}from"./DropdownMenu.9edc1223.js";import{L as w}from"./CircularLoading.2fb746db.js";import{d as x,b as t,t as d,c as n,x as s,N as a,B as I,F as u,L as m,D as B,a as D,G as _,w as C,U as L,O as S,Q as T,q as N}from"./registerWidgets.3fe0df5a.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},l=new Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="661e474f-9302-475e-9412-b4a9df110a19",e._sentryDebugIdIdentifier="sentry-dbid-661e474f-9302-475e-9412-b4a9df110a19")}catch{}})();const f=e=>(S("data-v-a0aa59f6"),e=e(),T(),e),R={key:1,class:"runtimes-container"},U={class:"header"},V={class:"title-wrapper"},E={class:"description"},F={key:0,class:"empty-list"},j=f(()=>s("img",{src:g},null,-1)),q={class:"empty-list-title"},z={class:"empty-list-description"},A={key:1},G={key:2},M={key:2,class:"video-section"},O=f(()=>s("h1",null,"See it in action",-1)),Q=["src"],$=x({__name:"RuntimeList",props:{loading:{type:Boolean},title:null,description:null,createButtonText:null,emptyTitle:null,videoUrl:null,table:null},emits:["create"],setup(e,{emit:l}){async function c(){l("create")}return(h,H)=>{const k=D("router-link");return e.loading?(t(),d(w,{key:0,class:"loading-wrapper",justify:"center"})):(t(),n("div",R,[s("div",U,[s("div",V,[s("h1",null,a(e.title),1),s("p",E,a(e.description),1),s("button",{onClick:c},a(e.createButtonText),1)])]),e.table.rows.length===0?(t(),n("div",F,[j,s("div",q,a(e.emptyTitle),1),s("div",z,[I(h.$slots,"empty-description",{},void 0,!0)]),s("button",{onClick:c},a(e.createButtonText),1)])):(t(),n("table",A,[s("thead",null,[(t(!0),n(u,null,m(e.table.columns,(i,r)=>(t(),n("td",{key:r,class:"cell"},a(i.name),1))),128))]),(t(!0),n(u,null,m(e.table.rows,(i,r)=>{var y;return t(),n("tr",{key:r,class:_((y=i.classes)!=null?y:[])},[(t(!0),n(u,null,m(i.cells,(o,b)=>{var p;return t(),n("td",{key:b,class:_((p=o.classes)!=null?p:[])},[o.actions?(t(),d(v,{key:0,title:"Actions","highlight-last":!0,options:o.actions,payload:{key:i.key}},null,8,["options","payload"])):o.link?(t(),d(k,{key:1,to:o.link,class:"runtime-title"},{default:C(()=>[L(a(o.text),1)]),_:2},1032,["to"])):(t(),n("div",G,a(o.text),1))],2)}),128))],2)}),128))])),e.videoUrl?(t(),n("section",M,[O,s("iframe",{class:"runtimes-example-video",src:e.videoUrl,title:"runtimes example",frameborder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowfullscreen:""},null,8,Q)])):B("",!0)]))}}});const W=N($,[["__scopeId","data-v-a0aa59f6"]]);export{W as R}; -//# sourceMappingURL=RuntimeList.8704ae12.js.map diff --git a/abstra_statics/dist/assets/RuntimeList.ec9e2b4b.js b/abstra_statics/dist/assets/RuntimeList.ec9e2b4b.js new file mode 100644 index 0000000000..b90236c134 --- /dev/null +++ b/abstra_statics/dist/assets/RuntimeList.ec9e2b4b.js @@ -0,0 +1,2 @@ +import{D as v,_ as g}from"./DropdownMenu.c973057b.js";import{L as w}from"./CircularLoading.1e68d2b1.js";import{d as x,b as t,t as d,c as a,x as s,N as n,B as I,F as u,L as m,D as B,a as D,G as _,w as C,U as L,O as S,Q as T,q as N}from"./registerWidgets.cb3a7b8d.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},l=new Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="a5d5d1b8-e380-4f31-aa34-2adf18b87676",e._sentryDebugIdIdentifier="sentry-dbid-a5d5d1b8-e380-4f31-aa34-2adf18b87676")}catch{}})();const f=e=>(S("data-v-a0aa59f6"),e=e(),T(),e),R={key:1,class:"runtimes-container"},U={class:"header"},V={class:"title-wrapper"},E={class:"description"},F={key:0,class:"empty-list"},j=f(()=>s("img",{src:g},null,-1)),q={class:"empty-list-title"},z={class:"empty-list-description"},A={key:1},G={key:2},M={key:2,class:"video-section"},O=f(()=>s("h1",null,"See it in action",-1)),Q=["src"],$=x({__name:"RuntimeList",props:{loading:{type:Boolean},title:null,description:null,createButtonText:null,emptyTitle:null,videoUrl:null,table:null},emits:["create"],setup(e,{emit:l}){async function c(){l("create")}return(h,H)=>{const k=D("router-link");return e.loading?(t(),d(w,{key:0,class:"loading-wrapper",justify:"center"})):(t(),a("div",R,[s("div",U,[s("div",V,[s("h1",null,n(e.title),1),s("p",E,n(e.description),1),s("button",{onClick:c},n(e.createButtonText),1)])]),e.table.rows.length===0?(t(),a("div",F,[j,s("div",q,n(e.emptyTitle),1),s("div",z,[I(h.$slots,"empty-description",{},void 0,!0)]),s("button",{onClick:c},n(e.createButtonText),1)])):(t(),a("table",A,[s("thead",null,[(t(!0),a(u,null,m(e.table.columns,(i,r)=>(t(),a("td",{key:r,class:"cell"},n(i.name),1))),128))]),(t(!0),a(u,null,m(e.table.rows,(i,r)=>{var y;return t(),a("tr",{key:r,class:_((y=i.classes)!=null?y:[])},[(t(!0),a(u,null,m(i.cells,(o,b)=>{var p;return t(),a("td",{key:b,class:_((p=o.classes)!=null?p:[])},[o.actions?(t(),d(v,{key:0,title:"Actions","highlight-last":!0,options:o.actions,payload:{key:i.key}},null,8,["options","payload"])):o.link?(t(),d(k,{key:1,to:o.link,class:"runtime-title"},{default:C(()=>[L(n(o.text),1)]),_:2},1032,["to"])):(t(),a("div",G,n(o.text),1))],2)}),128))],2)}),128))])),e.videoUrl?(t(),a("section",M,[O,s("iframe",{class:"runtimes-example-video",src:e.videoUrl,title:"runtimes example",frameborder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowfullscreen:""},null,8,Q)])):B("",!0)]))}}});const W=N($,[["__scopeId","data-v-a0aa59f6"]]);export{W as R}; +//# sourceMappingURL=RuntimeList.ec9e2b4b.js.map diff --git a/abstra_statics/dist/assets/SaveButton.b678d3d3.js b/abstra_statics/dist/assets/SaveButton.b678d3d3.js new file mode 100644 index 0000000000..563615aa5e --- /dev/null +++ b/abstra_statics/dist/assets/SaveButton.b678d3d3.js @@ -0,0 +1,2 @@ +import{s as f}from"./icons.39dfa322.js";import{d as i,r as c,b as u,c as v,e as p,z as y,U as _,N as m,G as g,a as b,q as h}from"./registerWidgets.cb3a7b8d.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="cb5958f5-d0f5-41fd-8aad-34588a367900",e._sentryDebugIdIdentifier="sentry-dbid-cb5958f5-d0f5-41fd-8aad-34588a367900")}catch{}})();const w=i({__name:"SaveButton",props:{model:null},setup(e){const n=e,t=c(!1);async function s(){t.value=!0;try{await n.model.save()}finally{t.value=!1}}return addEventListener("keydown",a=>{(a.metaKey||a.ctrlKey)&&a.key==="s"&&(a.preventDefault(),s())}),addEventListener("beforeunload",a=>{n.model.hasChanges()&&(a.preventDefault(),a.returnValue="")}),(a,o)=>{var d,l;const r=b("icon");return u(),v("button",{class:g(["save-button",{changes:(d=e.model)==null?void 0:d.hasChanges()}]),onClick:o[0]||(o[0]=S=>s())},[p(r,{class:"icon",path:y(f),width:"20",height:"20",fill:"#5A677A"},null,8,["path"]),_(" "+m(t.value?"Saving ...":(l=e.model)!=null&&l.hasChanges()?"Save":"Saved"),1)],2)}}});const k=h(w,[["__scopeId","data-v-15752ff4"]]);export{k as S}; +//# sourceMappingURL=SaveButton.b678d3d3.js.map diff --git a/abstra_statics/dist/assets/SaveButton.e20203fa.js b/abstra_statics/dist/assets/SaveButton.e20203fa.js deleted file mode 100644 index 079a3c81e5..0000000000 --- a/abstra_statics/dist/assets/SaveButton.e20203fa.js +++ /dev/null @@ -1,2 +0,0 @@ -import{s as c}from"./icons.9d575a00.js";import{d as f,r as i,b as u,c as v,e as p,z as y,U as _,N as m,G as b,a as g,q as h}from"./registerWidgets.3fe0df5a.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9d35ed36-39c1-4519-b863-4f7a1e2803bc",e._sentryDebugIdIdentifier="sentry-dbid-9d35ed36-39c1-4519-b863-4f7a1e2803bc")}catch{}})();const w=f({__name:"SaveButton",props:{model:null},setup(e){const t=e,a=i(!1);async function s(){a.value=!0;try{await t.model.save()}finally{a.value=!1}}return addEventListener("keydown",n=>{(n.metaKey||n.ctrlKey)&&n.key==="s"&&(n.preventDefault(),s())}),addEventListener("beforeunload",n=>{t.model.hasChanges()&&(n.preventDefault(),n.returnValue="")}),(n,o)=>{var l,d;const r=g("icon");return u(),v("button",{class:b(["save-button",{changes:(l=e.model)==null?void 0:l.hasChanges()}]),onClick:o[0]||(o[0]=S=>s())},[p(r,{class:"icon",path:y(c),width:"20",height:"20",fill:"#5A677A"},null,8,["path"]),_(" "+m(a.value?"Saving ...":(d=e.model)!=null&&d.hasChanges()?"Save":"Saved"),1)],2)}}});const k=h(w,[["__scopeId","data-v-15752ff4"]]);export{k as S}; -//# sourceMappingURL=SaveButton.e20203fa.js.map diff --git a/abstra_statics/dist/assets/Sidebar.09692155.js b/abstra_statics/dist/assets/Sidebar.09692155.js deleted file mode 100644 index 906f2ca089..0000000000 --- a/abstra_statics/dist/assets/Sidebar.09692155.js +++ /dev/null @@ -1,2 +0,0 @@ -import{d as v,r as w,b as a,c as s,F as u,L as _,H as k,J as m,x as p,N as b,G as f,e as h,I as g,D as r,t as x,w as D,z as I,q as C}from"./registerWidgets.3fe0df5a.js";import{e as S}from"./icons.9d575a00.js";import{T as B}from"./Tooltip.93ae2394.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="c7bc7678-cac4-49af-bb08-97e9e9a48285",t._sentryDebugIdIdentifier="sentry-dbid-c7bc7678-cac4-49af-bb08-97e9e9a48285")}catch{}})();const N={class:"sidebar"},T={class:"section-name"},O=["onClick"],E={class:"item-name"},L={key:0,class:"tag soon"},V={key:1,class:"tag beta"},z={key:2,class:"tag cloud"},F=v({__name:"Sidebar",props:{sections:null},setup(t){var i;const n=k(),d=m(),l=w((i=d.name)!=null?i:"forms"),y=o=>{o.unavailable||(n.push(o.path),l.value=o.path)};return(o,R)=>(a(),s("div",N,[(a(!0),s(u,null,_(t.sections,c=>(a(),s("div",{key:c.name,class:"section"},[p("span",T,b(c.name),1),(a(!0),s(u,null,_(c.items,e=>(a(),s("div",{key:e.name,role:"button",class:f(["item",{active:l.value===e.path,disabled:e.unavailable||c.cloud}]),tabindex:"0",onClick:q=>y(e)},[h(g,{class:f(["icon",{disabled:e.unavailable,active:l.value===e.path}]),path:e.icon,width:"20",height:"20"},null,8,["class","path"]),p("span",E,b(e.name),1),e.unavailable?(a(),s("span",L,"SOON")):r("",!0),e.beta?(a(),s("span",V,"BETA")):r("",!0),e.cloud?(a(),s("span",z,"CLOUD")):r("",!0),e.warning?(a(),x(B,{key:3,class:"warning",text:e.warning,fixed:!0,top:18,left:18},{default:D(()=>[h(g,{path:I(S),fill:"#D35249",width:"20",height:"20"},null,8,["path"])]),_:2},1032,["text"])):r("",!0)],10,O))),128))]))),128))]))}});const J=C(F,[["__scopeId","data-v-65839ebd"]]);export{J as S}; -//# sourceMappingURL=Sidebar.09692155.js.map diff --git a/abstra_statics/dist/assets/Sidebar.2a0e2b35.js b/abstra_statics/dist/assets/Sidebar.2a0e2b35.js new file mode 100644 index 0000000000..7600292f22 --- /dev/null +++ b/abstra_statics/dist/assets/Sidebar.2a0e2b35.js @@ -0,0 +1,2 @@ +import{d as v,r as w,b as a,c as s,F as u,L as _,H as k,J as m,x as b,N as p,G as f,e as h,I as g,D as l,t as x,w as D,z as I,q as C}from"./registerWidgets.cb3a7b8d.js";import{e as S}from"./icons.39dfa322.js";import{T as B}from"./Tooltip.f700ff7d.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="0b3f2e5f-a1f6-44da-b3be-f65bdbd05331",t._sentryDebugIdIdentifier="sentry-dbid-0b3f2e5f-a1f6-44da-b3be-f65bdbd05331")}catch{}})();const N={class:"sidebar"},T={class:"section-name"},O=["onClick"],E={class:"item-name"},L={key:0,class:"tag soon"},V={key:1,class:"tag beta"},z={key:2,class:"tag cloud"},F=v({__name:"Sidebar",props:{sections:null},setup(t){var i;const n=k(),c=m(),d=w((i=c.name)!=null?i:"forms"),y=o=>{o.unavailable||(n.push(o.path),d.value=o.path)};return(o,R)=>(a(),s("div",N,[(a(!0),s(u,null,_(t.sections,r=>(a(),s("div",{key:r.name,class:"section"},[b("span",T,p(r.name),1),(a(!0),s(u,null,_(r.items,e=>(a(),s("div",{key:e.name,role:"button",class:f(["item",{active:d.value===e.path,disabled:e.unavailable||r.cloud}]),tabindex:"0",onClick:q=>y(e)},[h(g,{class:f(["icon",{disabled:e.unavailable,active:d.value===e.path}]),path:e.icon,width:"20",height:"20"},null,8,["class","path"]),b("span",E,p(e.name),1),e.unavailable?(a(),s("span",L,"SOON")):l("",!0),e.beta?(a(),s("span",V,"BETA")):l("",!0),e.cloud?(a(),s("span",z,"CLOUD")):l("",!0),e.warning?(a(),x(B,{key:3,class:"warning",text:e.warning,fixed:!0,top:18,left:18},{default:D(()=>[h(g,{path:I(S),fill:"#D35249",width:"20",height:"20"},null,8,["path"])]),_:2},1032,["text"])):l("",!0)],10,O))),128))]))),128))]))}});const J=C(F,[["__scopeId","data-v-65839ebd"]]);export{J as S}; +//# sourceMappingURL=Sidebar.2a0e2b35.js.map diff --git a/abstra_statics/dist/assets/SidebarEditor.852ccd89.js b/abstra_statics/dist/assets/SidebarEditor.62de4759.js similarity index 99% rename from abstra_statics/dist/assets/SidebarEditor.852ccd89.js rename to abstra_statics/dist/assets/SidebarEditor.62de4759.js index efc0767375..d4634aa1cc 100644 --- a/abstra_statics/dist/assets/SidebarEditor.852ccd89.js +++ b/abstra_statics/dist/assets/SidebarEditor.62de4759.js @@ -1,4 +1,4 @@ -import{$ as qr,a0 as _r,p as tn,a1 as en,d as jr,r as rn,a2 as nn,o as on,V as _e,b as ur,c as wr,e as Ge,w as an,z as ee,x as jt,N as Er,W as sn,a3 as ln,O as Fr,Q as Lr,q as Ur,t as fn}from"./registerWidgets.3fe0df5a.js";import{W as un}from"./workspaces.220ebb5a.js";import{a as cn}from"./asyncComputed.4b275614.js";import{L as dn}from"./CircularLoading.2fb746db.js";import{S as vn}from"./SaveButton.e20203fa.js";import{S as hn}from"./SidebarPreview.f7a44b42.js";import"./activeRecord.2bc1b71f.js";import"./pubsub.909df758.js";import"./lottie.8f58e4c7.js";import"./icons.9d575a00.js";import"./PlayerNavbar.9ff5d98a.js";import"./runnerData.331b4b09.js";import"./colors.b2406923.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[r]="f8f98441-3b98-492d-9e3e-2bdff942edd9",s._sentryDebugIdIdentifier="sentry-dbid-f8f98441-3b98-492d-9e3e-2bdff942edd9")}catch{}})();var $r={exports:{}};/**! +import{$ as qr,a0 as _r,p as tn,a1 as en,d as jr,r as rn,a2 as nn,o as on,V as _e,b as ur,c as wr,e as Ge,w as an,z as ee,x as jt,N as Er,W as sn,a3 as ln,O as Fr,Q as Lr,q as Ur,t as fn}from"./registerWidgets.cb3a7b8d.js";import{W as un}from"./workspaces.5f21a554.js";import{a as cn}from"./asyncComputed.31994732.js";import{L as dn}from"./CircularLoading.1e68d2b1.js";import{S as vn}from"./SaveButton.b678d3d3.js";import{S as hn}from"./SidebarPreview.693e60b3.js";import"./activeRecord.adfc6223.js";import"./pubsub.f85a17d2.js";import"./lottie.234eb92e.js";import"./icons.39dfa322.js";import"./PlayerNavbar.fe11d508.js";import"./runnerData.7b7cb682.js";import"./colors.868ae049.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[r]="8d99a62e-7f0d-49d6-8ada-07bf474acf4a",s._sentryDebugIdIdentifier="sentry-dbid-8d99a62e-7f0d-49d6-8ada-07bf474acf4a")}catch{}})();var $r={exports:{}};/**! * Sortable 1.14.0 * @author RubaXa * @author owenm @@ -8,4 +8,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `)&&(I="(?: "+I+")",j=" "+j,N++),x=new RegExp("^(?:"+I+")",U)),h&&(x=new RegExp("^"+I+"$(?!\\s)",U)),d&&(T=b.lastIndex),D=l.call(F?x:b,j),F?D?(D.input=D.input.slice(N),D[0]=D[0].slice(N),D.index=b.lastIndex,b.lastIndex+=D[0].length):b.lastIndex=0:d&&D&&(b.lastIndex=b.global?D.index+D[0].length:T),h&&D&&D.length>1&&c.call(D[0],x,function(){for(O=1;O=51||!a(function(){var I=[];return I[b]=!1,I.concat()[0]!==I}),O=p("concat"),F=function(I){if(!c(I))return!1;var N=I[b];return N!==void 0?!!N:l(I)},U=!D||!O;o({target:"Array",proto:!0,forced:U},{concat:function(N){var j=u(this),X=h(j,0),C=0,R,W,M,G,_;for(R=-1,M=arguments.length;RT)throw TypeError(x);for(W=0;W=T)throw TypeError(x);v(X,C++,_)}return X.length=C,X}})},"9bdd":function(e,f,t){var o=t("825a");e.exports=function(a,l,c,u){try{return u?l(o(c)[0],c[1]):l(c)}catch(v){var d=a.return;throw d!==void 0&&o(d.call(a)),v}}},"9bf2":function(e,f,t){var o=t("83ab"),a=t("0cfb"),l=t("825a"),c=t("c04e"),u=Object.defineProperty;f.f=o?u:function(v,h,p){if(l(v),h=c(h,!0),l(p),a)try{return u(v,h,p)}catch{}if("get"in p||"set"in p)throw TypeError("Accessors not supported");return"value"in p&&(v[h]=p.value),v}},"9ed3":function(e,f,t){var o=t("ae93").IteratorPrototype,a=t("7c73"),l=t("5c6c"),c=t("d44e"),u=t("3f8c"),d=function(){return this};e.exports=function(v,h,p){var g=h+" Iterator";return v.prototype=a(o,{next:l(1,p)}),c(v,g,!1,!0),u[g]=d,v}},"9f7f":function(e,f,t){var o=t("d039");function a(l,c){return RegExp(l,c)}f.UNSUPPORTED_Y=o(function(){var l=a("a","y");return l.lastIndex=2,l.exec("abcd")!=null}),f.BROKEN_CARET=o(function(){var l=a("^r","gy");return l.lastIndex=2,l.exec("str")!=null})},a2bf:function(e,f,t){var o=t("e8b5"),a=t("50c4"),l=t("0366"),c=function(u,d,v,h,p,g,S,b){for(var T=p,x=0,D=S?l(S,b,3):!1,O;x0&&o(O))T=c(u,d,O,a(O.length),T,g-1)-1;else{if(T>=9007199254740991)throw TypeError("Exceed the acceptable array length");u[T]=O}T++}x++}return T};e.exports=c},a352:function(e,f){e.exports=i},a434:function(e,f,t){var o=t("23e7"),a=t("23cb"),l=t("a691"),c=t("50c4"),u=t("7b0b"),d=t("65f0"),v=t("8418"),h=t("1dde"),p=t("ae40"),g=h("splice"),S=p("splice",{ACCESSORS:!0,0:0,1:2}),b=Math.max,T=Math.min,x=9007199254740991,D="Maximum allowed length exceeded";o({target:"Array",proto:!0,forced:!g||!S},{splice:function(F,U){var I=u(this),N=c(I.length),j=a(F,N),X=arguments.length,C,R,W,M,G,_;if(X===0?C=R=0:X===1?(C=0,R=N-j):(C=X-2,R=T(b(l(U),0),N-j)),N+C-R>x)throw TypeError(D);for(W=d(I,R),M=0;MN-R+C;M--)delete I[M-1]}else if(C>R)for(M=N-R;M>j;M--)G=M+R-1,_=M+C-1,G in I?I[_]=I[G]:delete I[_];for(M=0;MDt;)q.push(arguments[Dt++]);if(qe=B,!(!S(B)&&$===void 0||y($)))return g(B)||(B=function(kr,Me){if(typeof qe=="function"&&(Me=qe.call(this,kr,Me)),!y(Me))return Me}),q[1]=B,qt.apply(null,q)}})}bt[It][Vt]||W(bt[It],Vt,bt[It].valueOf),mt(bt,At),rt[it]=!0},a630:function(e,f,t){var o=t("23e7"),a=t("4df4"),l=t("1c7e"),c=!l(function(u){Array.from(u)});o({target:"Array",stat:!0,forced:c},{from:a})},a640:function(e,f,t){var o=t("d039");e.exports=function(a,l){var c=[][a];return!!c&&o(function(){c.call(null,l||function(){throw 1},1)})}},a691:function(e,f){var t=Math.ceil,o=Math.floor;e.exports=function(a){return isNaN(a=+a)?0:(a>0?o:t)(a)}},ab13:function(e,f,t){var o=t("b622"),a=o("match");e.exports=function(l){var c=/./;try{"/./"[l](c)}catch{try{return c[a]=!1,"/./"[l](c)}catch{}}return!1}},ac1f:function(e,f,t){var o=t("23e7"),a=t("9263");o({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},ad6d:function(e,f,t){var o=t("825a");e.exports=function(){var a=o(this),l="";return a.global&&(l+="g"),a.ignoreCase&&(l+="i"),a.multiline&&(l+="m"),a.dotAll&&(l+="s"),a.unicode&&(l+="u"),a.sticky&&(l+="y"),l}},ae40:function(e,f,t){var o=t("83ab"),a=t("d039"),l=t("5135"),c=Object.defineProperty,u={},d=function(v){throw v};e.exports=function(v,h){if(l(u,v))return u[v];h||(h={});var p=[][v],g=l(h,"ACCESSORS")?h.ACCESSORS:!1,S=l(h,0)?h[0]:d,b=l(h,1)?h[1]:void 0;return u[v]=!!p&&!a(function(){if(g&&!o)return!0;var T={length:-1};g?c(T,1,{enumerable:!0,get:d}):T[1]=1,p.call(T,S,b)})}},ae93:function(e,f,t){var o=t("e163"),a=t("9112"),l=t("5135"),c=t("b622"),u=t("c430"),d=c("iterator"),v=!1,h=function(){return this},p,g,S;[].keys&&(S=[].keys(),"next"in S?(g=o(o(S)),g!==Object.prototype&&(p=g)):v=!0),p==null&&(p={}),!u&&!l(p,d)&&a(p,d,h),e.exports={IteratorPrototype:p,BUGGY_SAFARI_ITERATORS:v}},b041:function(e,f,t){var o=t("00ee"),a=t("f5df");e.exports=o?{}.toString:function(){return"[object "+a(this)+"]"}},b0c0:function(e,f,t){var o=t("83ab"),a=t("9bf2").f,l=Function.prototype,c=l.toString,u=/^\s*function ([^ (]*)/,d="name";o&&!(d in l)&&a(l,d,{configurable:!0,get:function(){try{return c.call(this).match(u)[1]}catch{return""}}})},b622:function(e,f,t){var o=t("da84"),a=t("5692"),l=t("5135"),c=t("90e3"),u=t("4930"),d=t("fdbf"),v=a("wks"),h=o.Symbol,p=d?h:h&&h.withoutSetter||c;e.exports=function(g){return l(v,g)||(u&&l(h,g)?v[g]=h[g]:v[g]=p("Symbol."+g)),v[g]}},b64b:function(e,f,t){var o=t("23e7"),a=t("7b0b"),l=t("df75"),c=t("d039"),u=c(function(){l(1)});o({target:"Object",stat:!0,forced:u},{keys:function(v){return l(a(v))}})},b727:function(e,f,t){var o=t("0366"),a=t("44ad"),l=t("7b0b"),c=t("50c4"),u=t("65f0"),d=[].push,v=function(h){var p=h==1,g=h==2,S=h==3,b=h==4,T=h==6,x=h==5||T;return function(D,O,F,U){for(var I=l(D),N=a(I),j=o(O,F,3),X=c(N.length),C=0,R=U||u,W=p?R(D,X):g?R(D,0):void 0,M,G;X>C;C++)if((x||C in N)&&(M=N[C],G=j(M,C,I),h)){if(p)W[C]=G;else if(G)switch(h){case 3:return!0;case 5:return M;case 6:return C;case 2:d.call(W,M)}else if(b)return!1}return T?-1:S||b?b:W}};e.exports={forEach:v(0),map:v(1),filter:v(2),some:v(3),every:v(4),find:v(5),findIndex:v(6)}},c04e:function(e,f,t){var o=t("861d");e.exports=function(a,l){if(!o(a))return a;var c,u;if(l&&typeof(c=a.toString)=="function"&&!o(u=c.call(a))||typeof(c=a.valueOf)=="function"&&!o(u=c.call(a))||!l&&typeof(c=a.toString)=="function"&&!o(u=c.call(a)))return u;throw TypeError("Can't convert object to primitive value")}},c430:function(e,f){e.exports=!1},c6b6:function(e,f){var t={}.toString;e.exports=function(o){return t.call(o).slice(8,-1)}},c6cd:function(e,f,t){var o=t("da84"),a=t("ce4e"),l="__core-js_shared__",c=o[l]||a(l,{});e.exports=c},c740:function(e,f,t){var o=t("23e7"),a=t("b727").findIndex,l=t("44d2"),c=t("ae40"),u="findIndex",d=!0,v=c(u);u in[]&&Array(1)[u](function(){d=!1}),o({target:"Array",proto:!0,forced:d||!v},{findIndex:function(p){return a(this,p,arguments.length>1?arguments[1]:void 0)}}),l(u)},c8ba:function(e,f){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch{typeof window=="object"&&(t=window)}e.exports=t},c975:function(e,f,t){var o=t("23e7"),a=t("4d64").indexOf,l=t("a640"),c=t("ae40"),u=[].indexOf,d=!!u&&1/[1].indexOf(1,-0)<0,v=l("indexOf"),h=c("indexOf",{ACCESSORS:!0,1:0});o({target:"Array",proto:!0,forced:d||!v||!h},{indexOf:function(g){return d?u.apply(this,arguments)||0:a(this,g,arguments.length>1?arguments[1]:void 0)}})},ca84:function(e,f,t){var o=t("5135"),a=t("fc6a"),l=t("4d64").indexOf,c=t("d012");e.exports=function(u,d){var v=a(u),h=0,p=[],g;for(g in v)!o(c,g)&&o(v,g)&&p.push(g);for(;d.length>h;)o(v,g=d[h++])&&(~l(p,g)||p.push(g));return p}},caad:function(e,f,t){var o=t("23e7"),a=t("4d64").includes,l=t("44d2"),c=t("ae40"),u=c("indexOf",{ACCESSORS:!0,1:0});o({target:"Array",proto:!0,forced:!u},{includes:function(v){return a(this,v,arguments.length>1?arguments[1]:void 0)}}),l("includes")},cc12:function(e,f,t){var o=t("da84"),a=t("861d"),l=o.document,c=a(l)&&a(l.createElement);e.exports=function(u){return c?l.createElement(u):{}}},ce4e:function(e,f,t){var o=t("da84"),a=t("9112");e.exports=function(l,c){try{a(o,l,c)}catch{o[l]=c}return c}},d012:function(e,f){e.exports={}},d039:function(e,f){e.exports=function(t){try{return!!t()}catch{return!0}}},d066:function(e,f,t){var o=t("428f"),a=t("da84"),l=function(c){return typeof c=="function"?c:void 0};e.exports=function(c,u){return arguments.length<2?l(o[c])||l(a[c]):o[c]&&o[c][u]||a[c]&&a[c][u]}},d1e7:function(e,f,t){var o={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,l=a&&!o.call({1:2},1);f.f=l?function(u){var d=a(this,u);return!!d&&d.enumerable}:o},d28b:function(e,f,t){var o=t("746f");o("iterator")},d2bb:function(e,f,t){var o=t("825a"),a=t("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var l=!1,c={},u;try{u=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,u.call(c,[]),l=c instanceof Array}catch{}return function(v,h){return o(v),a(h),l?u.call(v,h):v.__proto__=h,v}}():void 0)},d3b7:function(e,f,t){var o=t("00ee"),a=t("6eeb"),l=t("b041");o||a(Object.prototype,"toString",l,{unsafe:!0})},d44e:function(e,f,t){var o=t("9bf2").f,a=t("5135"),l=t("b622"),c=l("toStringTag");e.exports=function(u,d,v){u&&!a(u=v?u:u.prototype,c)&&o(u,c,{configurable:!0,value:d})}},d58f:function(e,f,t){var o=t("1c0b"),a=t("7b0b"),l=t("44ad"),c=t("50c4"),u=function(d){return function(v,h,p,g){o(h);var S=a(v),b=l(S),T=c(S.length),x=d?T-1:0,D=d?-1:1;if(p<2)for(;;){if(x in b){g=b[x],x+=D;break}if(x+=D,d?x<0:T<=x)throw TypeError("Reduce of empty array with no initial value")}for(;d?x>=0:T>x;x+=D)x in b&&(g=h(g,b[x],x,S));return g}};e.exports={left:u(!1),right:u(!0)}},d784:function(e,f,t){t("ac1f");var o=t("6eeb"),a=t("d039"),l=t("b622"),c=t("9263"),u=t("9112"),d=l("species"),v=!a(function(){var b=/./;return b.exec=function(){var T=[];return T.groups={a:"7"},T},"".replace(b,"$")!=="7"}),h=function(){return"a".replace(/./,"$0")==="$0"}(),p=l("replace"),g=function(){return/./[p]?/./[p]("a","$0")==="":!1}(),S=!a(function(){var b=/(?:)/,T=b.exec;b.exec=function(){return T.apply(this,arguments)};var x="ab".split(b);return x.length!==2||x[0]!=="a"||x[1]!=="b"});e.exports=function(b,T,x,D){var O=l(b),F=!a(function(){var C={};return C[O]=function(){return 7},""[b](C)!=7}),U=F&&!a(function(){var C=!1,R=/a/;return b==="split"&&(R={},R.constructor={},R.constructor[d]=function(){return R},R.flags="",R[O]=/./[O]),R.exec=function(){return C=!0,null},R[O](""),!C});if(!F||!U||b==="replace"&&!(v&&h&&!g)||b==="split"&&!S){var I=/./[O],N=x(O,""[b],function(C,R,W,M,G){return R.exec===c?F&&!G?{done:!0,value:I.call(R,W,M)}:{done:!0,value:C.call(W,R,M)}:{done:!1}},{REPLACE_KEEPS_$0:h,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:g}),j=N[0],X=N[1];o(String.prototype,b,j),o(RegExp.prototype,O,T==2?function(C,R){return X.call(C,this,R)}:function(C){return X.call(C,this)})}D&&u(RegExp.prototype[O],"sham",!0)}},d81d:function(e,f,t){var o=t("23e7"),a=t("b727").map,l=t("1dde"),c=t("ae40"),u=l("map"),d=c("map");o({target:"Array",proto:!0,forced:!u||!d},{map:function(h){return a(this,h,arguments.length>1?arguments[1]:void 0)}})},da84:function(e,f,t){(function(o){var a=function(l){return l&&l.Math==Math&&l};e.exports=a(typeof globalThis=="object"&&globalThis)||a(typeof window=="object"&&window)||a(typeof self=="object"&&self)||a(typeof o=="object"&&o)||Function("return this")()}).call(this,t("c8ba"))},dbb4:function(e,f,t){var o=t("23e7"),a=t("83ab"),l=t("56ef"),c=t("fc6a"),u=t("06cf"),d=t("8418");o({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(h){for(var p=c(h),g=u.f,S=l(p),b={},T=0,x,D;S.length>T;)D=g(p,x=S[T++]),D!==void 0&&d(b,x,D);return b}})},dbf1:function(e,f,t){(function(o){t.d(f,"a",function(){return l});function a(){return typeof window<"u"?window.console:o.console}var l=a()}).call(this,t("c8ba"))},ddb0:function(e,f,t){var o=t("da84"),a=t("fdbc"),l=t("e260"),c=t("9112"),u=t("b622"),d=u("iterator"),v=u("toStringTag"),h=l.values;for(var p in a){var g=o[p],S=g&&g.prototype;if(S){if(S[d]!==h)try{c(S,d,h)}catch{S[d]=h}if(S[v]||c(S,v,p),a[p]){for(var b in l)if(S[b]!==l[b])try{c(S,b,l[b])}catch{S[b]=l[b]}}}}},df75:function(e,f,t){var o=t("ca84"),a=t("7839");e.exports=Object.keys||function(c){return o(c,a)}},e01a:function(e,f,t){var o=t("23e7"),a=t("83ab"),l=t("da84"),c=t("5135"),u=t("861d"),d=t("9bf2").f,v=t("e893"),h=l.Symbol;if(a&&typeof h=="function"&&(!("description"in h.prototype)||h().description!==void 0)){var p={},g=function(){var O=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),F=this instanceof g?new h(O):O===void 0?h():h(O);return O===""&&(p[F]=!0),F};v(g,h);var S=g.prototype=h.prototype;S.constructor=g;var b=S.toString,T=String(h("test"))=="Symbol(test)",x=/^Symbol\((.*)\)[^)]+$/;d(S,"description",{configurable:!0,get:function(){var O=u(this)?this.valueOf():this,F=b.call(O);if(c(p,O))return"";var U=T?F.slice(7,-1):F.replace(x,"$1");return U===""?void 0:U}}),o({global:!0,forced:!0},{Symbol:g})}},e163:function(e,f,t){var o=t("5135"),a=t("7b0b"),l=t("f772"),c=t("e177"),u=l("IE_PROTO"),d=Object.prototype;e.exports=c?Object.getPrototypeOf:function(v){return v=a(v),o(v,u)?v[u]:typeof v.constructor=="function"&&v instanceof v.constructor?v.constructor.prototype:v instanceof Object?d:null}},e177:function(e,f,t){var o=t("d039");e.exports=!o(function(){function a(){}return a.prototype.constructor=null,Object.getPrototypeOf(new a)!==a.prototype})},e260:function(e,f,t){var o=t("fc6a"),a=t("44d2"),l=t("3f8c"),c=t("69f3"),u=t("7dd0"),d="Array Iterator",v=c.set,h=c.getterFor(d);e.exports=u(Array,"Array",function(p,g){v(this,{type:d,target:o(p),index:0,kind:g})},function(){var p=h(this),g=p.target,S=p.kind,b=p.index++;return!g||b>=g.length?(p.target=void 0,{value:void 0,done:!0}):S=="keys"?{value:b,done:!1}:S=="values"?{value:g[b],done:!1}:{value:[b,g[b]],done:!1}},"values"),l.Arguments=l.Array,a("keys"),a("values"),a("entries")},e439:function(e,f,t){var o=t("23e7"),a=t("d039"),l=t("fc6a"),c=t("06cf").f,u=t("83ab"),d=a(function(){c(1)}),v=!u||d;o({target:"Object",stat:!0,forced:v,sham:!u},{getOwnPropertyDescriptor:function(p,g){return c(l(p),g)}})},e538:function(e,f,t){var o=t("b622");f.f=o},e893:function(e,f,t){var o=t("5135"),a=t("56ef"),l=t("06cf"),c=t("9bf2");e.exports=function(u,d){for(var v=a(d),h=c.f,p=l.f,g=0;g"u"||!(Symbol.iterator in Object(y)))){var E=[],P=!0,w=!1,H=void 0;try{for(var J=y[Symbol.iterator](),tt;!(P=(tt=J.next()).done)&&(E.push(tt.value),!(m&&E.length===m));P=!0);}catch(vt){w=!0,H=vt}finally{try{!P&&J.return!=null&&J.return()}finally{if(w)throw H}}return E}}t("a630"),t("fb6a"),t("b0c0"),t("25f0");function p(y,m){(m==null||m>y.length)&&(m=y.length);for(var E=0,P=new Array(m);E(Fr("data-v-f4ca2d64"),s=s(),Lr(),s),_n={class:"sidebar-editor"},to={class:"sidebar-item draggable"},eo={class:"property"},ro=br(()=>jt("span",{class:"property-name"},"Route:",-1)),no={class:"property-value"},oo={class:"property"},ao=br(()=>jt("span",{class:"property-name"},"Name:",-1)),io={class:"property-value"},so={class:"property"},lo=br(()=>jt("span",{class:"property-name"},"Visible:",-1)),fo=["onUpdate:modelValue"],uo=jr({__name:"SidebarEditor",props:{modelValue:null},emits:["update:modelValue"],setup(s,{emit:r}){const n=s,i=rn([]),e=()=>r("update:modelValue",i.value);return nn(()=>n.modelValue,(f,t)=>{_e.exports.isEqual(f,t)||(i.value=_e.exports.cloneDeep(f))}),on(()=>{i.value=_e.exports.cloneDeep(n.modelValue)}),(f,t)=>(ur(),wr("div",_n,[Ge(ee(qn),{modelValue:i.value,"onUpdate:modelValue":t[0]||(t[0]=o=>i.value=o),style:{width:"100%"},onChange:e},{item:an(({element:o})=>[jt("div",to,[jt("div",eo,[ro,jt("span",no,"/"+Er(o.path),1)]),jt("div",oo,[ao,jt("span",io,Er(o.name),1)]),jt("div",so,[lo,sn(jt("input",{"onUpdate:modelValue":a=>o.visible=a,class:"property-value",type:"checkbox",onChange:e},null,40,fo),[[ln,o.visible]])])])]),_:1},8,["modelValue"])]))}});const co=Ur(uo,[["__scopeId","data-v-f4ca2d64"]]),Zr=s=>(Fr("data-v-c55f20f4"),s=s(),Lr(),s),vo={key:1,class:"sidebar-editor"},ho=Zr(()=>jt("h1",null,"Sidebar Editor",-1)),po=Zr(()=>jt("h2",null,"Preview",-1)),go=jr({__name:"SidebarEditor",setup(s){const{result:r,loading:n}=cn(()=>un.get());return(i,e)=>ee(n)||!ee(r)?(ur(),fn(dn,{key:0})):(ur(),wr("div",vo,[ho,Ge(co,{modelValue:ee(r).sidebar,"onUpdate:modelValue":e[0]||(e[0]=f=>ee(r).sidebar=f)},null,8,["modelValue"]),po,Ge(hn,{workspace:ee(r)},null,8,["workspace"]),Ge(vn,{model:ee(r)},null,8,["model"])]))}});const Ro=Ur(go,[["__scopeId","data-v-c55f20f4"]]);export{Ro as default}; -//# sourceMappingURL=SidebarEditor.852ccd89.js.map +//# sourceMappingURL=SidebarEditor.62de4759.js.map diff --git a/abstra_statics/dist/assets/SidebarPreview.f7a44b42.js b/abstra_statics/dist/assets/SidebarPreview.693e60b3.js similarity index 80% rename from abstra_statics/dist/assets/SidebarPreview.f7a44b42.js rename to abstra_statics/dist/assets/SidebarPreview.693e60b3.js index d2cb919ca0..bfc9239571 100644 --- a/abstra_statics/dist/assets/SidebarPreview.f7a44b42.js +++ b/abstra_statics/dist/assets/SidebarPreview.693e60b3.js @@ -1,2 +1,2 @@ -import{P as m}from"./PlayerNavbar.9ff5d98a.js";import{d as u}from"./runnerData.331b4b09.js";import{l as p,a as i,b}from"./colors.b2406923.js";import{d as k,K as s,b as l,c as f,x as y,z as a,t as g,D as w,A as _,q as h}from"./registerWidgets.3fe0df5a.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="5ad5d02e-2e19-45ce-a9fe-87cbb80a9ebd",r._sentryDebugIdIdentifier="sentry-dbid-5ad5d02e-2e19-45ce-a9fe-87cbb80a9ebd")}catch{}})();function v(r){return r.startsWith("#")||r.match(/^(rgb|hsl)/)}function C(r){return r.startsWith("http://")||r.startsWith("https://")}function I(r){return C(r)?"external-image":v(r)?"color":"hosted-image"}function P(r,e="/_assets/background"){switch(I(r)){case"external-image":return{backgroundImage:`url(${r})`,backgroundSize:"cover",backgroundPosition:"center"};case"color":return{backgroundColor:r};case"hosted-image":return{backgroundImage:`url(${e})`,backgroundSize:"cover",backgroundPosition:"center"}}}const x={class:"sidebar-preview"},D=k({__name:"SidebarPreview",props:{workspace:null},setup(r){const e=r,o=s(()=>e.workspace.makeRunnerData()),d=s(()=>(document.documentElement.style.setProperty("--ac-global-font-family",e.workspace.fontFamily),{"--color-main":e.workspace.mainColor,"--color-main-light":p(e.workspace.mainColor,.15),"--color-main-hover":i(e.workspace.mainColor),"--color-main-active":i(e.workspace.mainColor),"--color-secondary":"transparent","--color-secondary-lighter":"transparent","--color-secondary-darker":"transparent","--button-font-color-main":b(e.workspace.mainColor),"--font-family":e.workspace.fontFamily,...P(e.workspace.theme,`/_editor/api/assets/${e.workspace.theme}`)})),c=s(()=>{var t,n;return e.workspace?{id:"mockId",path:"mockPath",title:"mockTitle",theme:e.workspace.theme,brandName:(t=e.workspace.brandName)!=null?t:null,logoUrl:(n=e.workspace.logoUrl)!=null?n:null,mainColor:e.workspace.mainColor,fontFamily:e.workspace.fontFamily,layout:u({props:{},slot:{},version:"0.2"}),workspaceName:"Untitled Workspace",sidebar:e.workspace.sidebar,runtimeType:"dash"}:null});return(t,n)=>(l(),f("div",x,[y("div",{class:"sidebar-frame",style:_(a(d))},[a(c)?(l(),g(m,{key:0,runtime:a(c),"brand-name":a(o).brandName,"user-email":"user@email.com","force-responsivity":"desktop"},null,8,["runtime","brand-name"])):w("",!0)],4)]))}});const z=h(D,[["__scopeId","data-v-e4bddb5d"]]);export{z as S,I as b}; -//# sourceMappingURL=SidebarPreview.f7a44b42.js.map +import{P as m}from"./PlayerNavbar.fe11d508.js";import{d as u}from"./runnerData.7b7cb682.js";import{l as p,a as i,b}from"./colors.868ae049.js";import{d as k,K as s,b as l,c as f,x as y,z as a,t as g,D as w,A as _,q as h}from"./registerWidgets.cb3a7b8d.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="a6dc6890-add8-4ed1-a471-902d589ba5b3",r._sentryDebugIdIdentifier="sentry-dbid-a6dc6890-add8-4ed1-a471-902d589ba5b3")}catch{}})();function v(r){return r.startsWith("#")||r.match(/^(rgb|hsl)/)}function C(r){return r.startsWith("http://")||r.startsWith("https://")}function I(r){return C(r)?"external-image":v(r)?"color":"hosted-image"}function P(r,e="/_assets/background"){switch(I(r)){case"external-image":return{backgroundImage:`url(${r})`,backgroundSize:"cover",backgroundPosition:"center"};case"color":return{backgroundColor:r};case"hosted-image":return{backgroundImage:`url(${e})`,backgroundSize:"cover",backgroundPosition:"center"}}}const x={class:"sidebar-preview"},D=k({__name:"SidebarPreview",props:{workspace:null},setup(r){const e=r,o=s(()=>e.workspace.makeRunnerData()),d=s(()=>(document.documentElement.style.setProperty("--ac-global-font-family",e.workspace.fontFamily),{"--color-main":e.workspace.mainColor,"--color-main-light":p(e.workspace.mainColor,.15),"--color-main-hover":i(e.workspace.mainColor),"--color-main-active":i(e.workspace.mainColor),"--color-secondary":"transparent","--color-secondary-lighter":"transparent","--color-secondary-darker":"transparent","--button-font-color-main":b(e.workspace.mainColor),"--font-family":e.workspace.fontFamily,...P(e.workspace.theme,`/_editor/api/assets/${e.workspace.theme}`)})),c=s(()=>{var t,n;return e.workspace?{id:"mockId",path:"mockPath",title:"mockTitle",theme:e.workspace.theme,brandName:(t=e.workspace.brandName)!=null?t:null,logoUrl:(n=e.workspace.logoUrl)!=null?n:null,mainColor:e.workspace.mainColor,fontFamily:e.workspace.fontFamily,layout:u({props:{},slot:{},version:"0.2"}),workspaceName:"Untitled Workspace",sidebar:e.workspace.sidebar,runtimeType:"dash"}:null});return(t,n)=>(l(),f("div",x,[y("div",{class:"sidebar-frame",style:_(a(d))},[a(c)?(l(),g(m,{key:0,runtime:a(c),"brand-name":a(o).brandName,"user-email":"user@email.com","force-responsivity":"desktop"},null,8,["runtime","brand-name"])):w("",!0)],4)]))}});const z=h(D,[["__scopeId","data-v-e4bddb5d"]]);export{z as S,I as b}; +//# sourceMappingURL=SidebarPreview.693e60b3.js.map diff --git a/abstra_statics/dist/assets/StyleEditor.acc5581f.js b/abstra_statics/dist/assets/StyleEditor.2dd12e40.js similarity index 94% rename from abstra_statics/dist/assets/StyleEditor.acc5581f.js rename to abstra_statics/dist/assets/StyleEditor.2dd12e40.js index ad81d1ca77..e7d2dd8155 100644 --- a/abstra_statics/dist/assets/StyleEditor.acc5581f.js +++ b/abstra_statics/dist/assets/StyleEditor.2dd12e40.js @@ -1,6 +1,6 @@ -import{d as g,r as O,W as $,X as ee,b as h,c as C,F as _,L as T,z as d,N as J,q as L,v as ae,K as F,o as oe,Y as q,x as c,B as H,A as X,t as m,e as u,E as G,D as B,Z as R,a as M,w as j,U as te,O as ne,Q as ie}from"./registerWidgets.3fe0df5a.js";import{a as re}from"./asyncComputed.4b275614.js";import{W as se}from"./workspaces.220ebb5a.js";import{L as le}from"./CircularLoading.2fb746db.js";import{i as ue}from"./icons.9d575a00.js";import{b as P,S as ce}from"./SidebarPreview.f7a44b42.js";import{S as de}from"./SaveButton.e20203fa.js";import"./activeRecord.2bc1b71f.js";import"./pubsub.909df758.js";import"./lottie.8f58e4c7.js";import"./PlayerNavbar.9ff5d98a.js";import"./runnerData.331b4b09.js";import"./colors.b2406923.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="f9492a13-b935-4089-9d1b-f4116686ca76",e._sentryDebugIdIdentifier="sentry-dbid-f9492a13-b935-4089-9d1b-f4116686ca76")}catch{}})();const he=["ABeeZee","Abel","Abhaya Libre","Abril Fatface","Aclonica","Acme","Actor","Adamina","Advent Pro","Aguafina Script","Akaya Kanadaka","Akaya Telivigala","Akronim","Aladin","Alata","Alatsi","Aldrich","Alef","Alegreya","Alegreya SC","Alegreya Sans","Alegreya Sans SC","Aleo","Alex Brush","Alfa Slab One","Alice","Alike","Alike Angular","Allan","Allerta","Allerta Stencil","Allison","Allura","Almarai","Almendra","Almendra Display","Almendra SC","Alumni Sans","Amarante","Amaranth","Amatic SC","Amethysta","Amiko","Amiri","Amita","Anaheim","Andada Pro","Andika","Andika New Basic","Angkor","Annie Use Your Telescope","Anonymous Pro","Antic","Antic Didone","Antic Slab","Anton","Antonio","Arapey","Arbutus","Arbutus Slab","Architects Daughter","Archivo","Archivo Black","Archivo Narrow","Are You Serious","Aref Ruqaa","Arima Madurai","Arimo","Arizonia","Armata","Arsenal","Artifika","Arvo","Arya","Asap","Asap Condensed","Asar","Asset","Assistant","Astloch","Asul","Athiti","Atkinson Hyperlegible","Atma","Atomic Age","Aubrey","Audiowide","Autour One","Average","Average Sans","Averia Gruesa Libre","Averia Libre","Averia Sans Libre","Averia Serif Libre","Azeret Mono","B612","B612 Mono","Bad Script","Bahiana","Bahianita","Bai Jamjuree","Ballet","Baloo 2","Baloo Bhai 2","Baloo Bhaina 2","Baloo Chettan 2","Baloo Da 2","Baloo Paaji 2","Baloo Tamma 2","Baloo Tammudu 2","Baloo Thambi 2","Balsamiq Sans","Balthazar","Bangers","Barlow","Barlow Condensed","Barlow Semi Condensed","Barriecito","Barrio","Basic","Baskervville","Battambang","Baumans","Bayon","Be Vietnam","Be Vietnam Pro","Bebas Neue","Belgrano","Bellefair","Belleza","Bellota","Bellota Text","BenchNine","Benne","Bentham","Berkshire Swash","Besley","Beth Ellen","Bevan","Big Shoulders Display","Big Shoulders Inline Display","Big Shoulders Inline Text","Big Shoulders Stencil Display","Big Shoulders Stencil Text","Big Shoulders Text","Bigelow Rules","Bigshot One","Bilbo","Bilbo Swash Caps","BioRhyme","BioRhyme Expanded","Birthstone","Birthstone Bounce","Biryani","Bitter","Black And White Picture","Black Han Sans","Black Ops One","Blinker","Bodoni Moda","Bokor","Bona Nova","Bonbon","Bonheur Royale","Boogaloo","Bowlby One","Bowlby One SC","Brawler","Bree Serif","Brygada 1918","Bubblegum Sans","Bubbler One","Buenard","Bungee","Bungee Hairline","Bungee Inline","Bungee Outline","Bungee Shade","Butcherman","Butterfly Kids","Cabin","Cabin Condensed","Cabin Sketch","Caesar Dressing","Cagliostro","Cairo","Caladea","Calistoga","Calligraffitti","Cambay","Cambo","Candal","Cantarell","Cantata One","Cantora One","Capriola","Caramel","Carattere","Cardo","Carme","Carrois Gothic","Carrois Gothic SC","Carter One","Castoro","Catamaran","Caudex","Caveat","Caveat Brush","Cedarville Cursive","Ceviche One","Chakra Petch","Changa","Changa One","Chango","Charm","Charmonman","Chathura","Chau Philomene One","Chela One","Chelsea Market","Chenla","Cherish","Cherry Cream Soda","Cherry Swash","Chewy","Chicle","Chilanka","Chivo","Chonburi","Cinzel","Cinzel Decorative","Clicker Script","Coda","Coda Caption","Codystar","Coiny","Combo","Comfortaa","Comic Neue","Coming Soon","Commissioner","Concert One","Condiment","Content","Contrail One","Convergence","Cookie","Copse","Corben","Cormorant","Cormorant Garamond","Cormorant Infant","Cormorant SC","Cormorant Unicase","Cormorant Upright","Courgette","Courier Prime","Cousine","Coustard","Covered By Your Grace","Crafty Girls","Creepster","Crete Round","Crimson Pro","Crimson Text","Croissant One","Crushed","Cuprum","Cute Font","Cutive","Cutive Mono","DM Mono","DM Sans","DM Serif Display","DM Serif Text","Damion","Dancing Script","Dangrek","Darker Grotesque","David Libre","Dawning of a New Day","Days One","Dekko","Dela Gothic One","Delius","Delius Swash Caps","Delius Unicase","Della Respira","Denk One","Devonshire","Dhurjati","Didact Gothic","Diplomata","Diplomata SC","Do Hyeon","Dokdo","Domine","Donegal One","Doppio One","Dorsa","Dosis","DotGothic16","Dr Sugiyama","Duru Sans","Dynalight","EB Garamond","Eagle Lake","East Sea Dokdo","Eater","Economica","Eczar","El Messiri","Electrolize","Elsie","Elsie Swash Caps","Emblema One","Emilys Candy","Encode Sans","Encode Sans Condensed","Encode Sans Expanded","Encode Sans SC","Encode Sans Semi Condensed","Encode Sans Semi Expanded","Engagement","Englebert","Enriqueta","Ephesis","Epilogue","Erica One","Esteban","Euphoria Script","Ewert","Exo","Exo 2","Expletus Sans","Explora","Fahkwang","Fanwood Text","Farro","Farsan","Fascinate","Fascinate Inline","Faster One","Fasthand","Fauna One","Faustina","Federant","Federo","Felipa","Fenix","Festive","Finger Paint","Fira Code","Fira Mono","Fira Sans","Fira Sans Condensed","Fira Sans Extra Condensed","Fjalla One","Fjord One","Flamenco","Flavors","Fleur De Leah","Fondamento","Fontdiner Swanky","Forum","Francois One","Frank Ruhl Libre","Fraunces","Freckle Face","Fredericka the Great","Fredoka One","Freehand","Fresca","Frijole","Fruktur","Fugaz One","Fuggles","GFS Didot","GFS Neohellenic","Gabriela","Gaegu","Gafata","Galada","Galdeano","Galindo","Gamja Flower","Gayathri","Gelasio","Gemunu Libre","Gentium Basic","Gentium Book Basic","Geo","Georama","Geostar","Geostar Fill","Germania One","Gideon Roman","Gidugu","Gilda Display","Girassol","Give You Glory","Glass Antiqua","Glegoo","Gloria Hallelujah","Glory","Gluten","Goblin One","Gochi Hand","Goldman","Gorditas","Gothic A1","Gotu","Goudy Bookletter 1911","Gowun Batang","Gowun Dodum","Graduate","Grand Hotel","Grandstander","Gravitas One","Great Vibes","Grechen Fuemen","Grenze","Grenze Gotisch","Grey Qo","Griffy","Gruppo","Gudea","Gugi","Gupter","Gurajada","Habibi","Hachi Maru Pop","Hahmlet","Halant","Hammersmith One","Hanalei","Hanalei Fill","Handlee","Hanuman","Happy Monkey","Harmattan","Headland One","Heebo","Henny Penny","Hepta Slab","Herr Von Muellerhoff","Hi Melody","Hina Mincho","Hind","Hind Guntur","Hind Madurai","Hind Siliguri","Hind Vadodara","Holtwood One SC","Homemade Apple","Homenaje","IBM Plex Mono","IBM Plex Sans","IBM Plex Sans Arabic","IBM Plex Sans Condensed","IBM Plex Sans Devanagari","IBM Plex Sans Hebrew","IBM Plex Sans KR","IBM Plex Sans Thai","IBM Plex Sans Thai Looped","IBM Plex Serif","IM Fell DW Pica","IM Fell DW Pica SC","IM Fell Double Pica","IM Fell Double Pica SC","IM Fell English","IM Fell English SC","IM Fell French Canon","IM Fell French Canon SC","IM Fell Great Primer","IM Fell Great Primer SC","Ibarra Real Nova","Iceberg","Iceland","Imbue","Imprima","Inconsolata","Inder","Indie Flower","Inika","Inknut Antiqua","Inria Sans","Inria Serif","Inter","Irish Grover","Istok Web","Italiana","Italianno","Itim","Jacques Francois","Jacques Francois Shadow","Jaldi","JetBrains Mono","Jim Nightshade","Jockey One","Jolly Lodger","Jomhuria","Jomolhari","Josefin Sans","Josefin Slab","Jost","Joti One","Jua","Judson","Julee","Julius Sans One","Junge","Jura","Just Another Hand","Just Me Again Down Here","K2D","Kadwa","Kaisei Decol","Kaisei HarunoUmi","Kaisei Opti","Kaisei Tokumin","Kalam","Kameron","Kanit","Kantumruy","Karantina","Karla","Karma","Katibeh","Kaushan Script","Kavivanar","Kavoon","Kdam Thmor","Keania One","Kelly Slab","Kenia","Khand","Khmer","Khula","Kirang Haerang","Kite One","Kiwi Maru","Klee One","Knewave","KoHo","Kodchasan","Koh Santepheap","Kosugi","Kosugi Maru","Kotta One","Koulen","Kranky","Kreon","Kristi","Krona One","Krub","Kufam","Kulim Park","Kumar One","Kumar One Outline","Kumbh Sans","Kurale","La Belle Aurore","Lacquer","Laila","Lakki Reddy","Lalezar","Lancelot","Langar","Lateef","Lato","League Script","Leckerli One","Ledger","Lekton","Lemon","Lemonada","Lexend","Lexend Deca","Lexend Exa","Lexend Giga","Lexend Mega","Lexend Peta","Lexend Tera","Lexend Zetta","Libre Barcode 128","Libre Barcode 128 Text","Libre Barcode 39","Libre Barcode 39 Extended","Libre Barcode 39 Extended Text","Libre Barcode 39 Text","Libre Barcode EAN13 Text","Libre Baskerville","Libre Caslon Display","Libre Caslon Text","Libre Franklin","Life Savers","Lilita One","Lily Script One","Limelight","Linden Hill","Literata","Liu Jian Mao Cao","Livvic","Lobster","Lobster Two","Londrina Outline","Londrina Shadow","Londrina Sketch","Londrina Solid","Long Cang","Lora","Love Ya Like A Sister","Loved by the King","Lovers Quarrel","Luckiest Guy","Lusitana","Lustria","M PLUS 1p","M PLUS Rounded 1c","Ma Shan Zheng","Macondo","Macondo Swash Caps","Mada","Magra","Maiden Orange","Maitree","Major Mono Display","Mako","Mali","Mallanna","Mandali","Manjari","Manrope","Mansalva","Manuale","Marcellus","Marcellus SC","Marck Script","Margarine","Markazi Text","Marko One","Marmelad","Martel","Martel Sans","Marvel","Mate","Mate SC","Material Icons","Maven Pro","McLaren","Meddon","MedievalSharp","Medula One","Meera Inimai","Megrim","Meie Script","Merienda","Merienda One","Merriweather","Merriweather Sans","Metal","Metal Mania","Metamorphous","Metrophobic","Michroma","Milonga","Miltonian","Miltonian Tattoo","Mina","Miniver","Miriam Libre","Mirza","Miss Fajardose","Mitr","Modak","Modern Antiqua","Mogra","Molengo","Monda","Monofett","Monoton","Monsieur La Doulaise","Montaga","MonteCarlo","Montez","Montserrat","Montserrat Alternates","Montserrat Subrayada","Moul","Moulpali","Mountains of Christmas","Mouse Memoirs","Mr Bedfort","Mr Dafoe","Mr De Haviland","Mrs Saint Delafield","Mrs Sheppards","Mukta","Mukta Mahee","Mukta Malar","Mukta Vaani","Mulish","MuseoModerno","Mystery Quest","NTR","Nanum Brush Script","Nanum Gothic","Nanum Gothic Coding","Nanum Myeongjo","Nanum Pen Script","Nerko One","Neucha","Neuton","New Rocker","New Tegomin","News Cycle","Newsreader","Niconne","Niramit","Nixie One","Nobile","Nokora","Norican","Nosifer","Notable","Nothing You Could Do","Noticia Text","Noto Kufi Arabic","Noto Music","Noto Naskh Arabic","Noto Nastaliq Urdu","Noto Rashi Hebrew","Noto Sans","Noto Sans Adlam","Noto Sans Adlam Unjoined","Noto Sans Anatolian Hieroglyphs","Noto Sans Arabic","Noto Sans Armenian","Noto Sans Avestan","Noto Sans Balinese","Noto Sans Bamum","Noto Sans Bassa Vah","Noto Sans Batak","Noto Sans Bengali","Noto Sans Bhaiksuki","Noto Sans Brahmi","Noto Sans Buginese","Noto Sans Buhid","Noto Sans Canadian Aboriginal","Noto Sans Carian","Noto Sans Caucasian Albanian","Noto Sans Chakma","Noto Sans Cham","Noto Sans Cherokee","Noto Sans Coptic","Noto Sans Cuneiform","Noto Sans Cypriot","Noto Sans Deseret","Noto Sans Devanagari","Noto Sans Display","Noto Sans Duployan","Noto Sans Egyptian Hieroglyphs","Noto Sans Elbasan","Noto Sans Elymaic","Noto Sans Georgian","Noto Sans Glagolitic","Noto Sans Gothic","Noto Sans Grantha","Noto Sans Gujarati","Noto Sans Gunjala Gondi","Noto Sans Gurmukhi","Noto Sans HK","Noto Sans Hanifi Rohingya","Noto Sans Hanunoo","Noto Sans Hatran","Noto Sans Hebrew","Noto Sans Imperial Aramaic","Noto Sans Indic Siyaq Numbers","Noto Sans Inscriptional Pahlavi","Noto Sans Inscriptional Parthian","Noto Sans JP","Noto Sans Javanese","Noto Sans KR","Noto Sans Kaithi","Noto Sans Kannada","Noto Sans Kayah Li","Noto Sans Kharoshthi","Noto Sans Khmer","Noto Sans Khojki","Noto Sans Khudawadi","Noto Sans Lao","Noto Sans Lepcha","Noto Sans Limbu","Noto Sans Linear A","Noto Sans Linear B","Noto Sans Lisu","Noto Sans Lycian","Noto Sans Lydian","Noto Sans Mahajani","Noto Sans Malayalam","Noto Sans Mandaic","Noto Sans Manichaean","Noto Sans Marchen","Noto Sans Masaram Gondi","Noto Sans Math","Noto Sans Mayan Numerals","Noto Sans Medefaidrin","Noto Sans Meroitic","Noto Sans Miao","Noto Sans Modi","Noto Sans Mongolian","Noto Sans Mono","Noto Sans Mro","Noto Sans Multani","Noto Sans Myanmar","Noto Sans N Ko","Noto Sans Nabataean","Noto Sans New Tai Lue","Noto Sans Newa","Noto Sans Nushu","Noto Sans Ogham","Noto Sans Ol Chiki","Noto Sans Old Hungarian","Noto Sans Old Italic","Noto Sans Old North Arabian","Noto Sans Old Permic","Noto Sans Old Persian","Noto Sans Old Sogdian","Noto Sans Old South Arabian","Noto Sans Old Turkic","Noto Sans Oriya","Noto Sans Osage","Noto Sans Osmanya","Noto Sans Pahawh Hmong","Noto Sans Palmyrene","Noto Sans Pau Cin Hau","Noto Sans Phags Pa","Noto Sans Phoenician","Noto Sans Psalter Pahlavi","Noto Sans Rejang","Noto Sans Runic","Noto Sans SC","Noto Sans Samaritan","Noto Sans Saurashtra","Noto Sans Sharada","Noto Sans Shavian","Noto Sans Siddham","Noto Sans Sinhala","Noto Sans Sogdian","Noto Sans Sora Sompeng","Noto Sans Soyombo","Noto Sans Sundanese","Noto Sans Syloti Nagri","Noto Sans Symbols","Noto Sans Symbols 2","Noto Sans Syriac","Noto Sans TC","Noto Sans Tagalog","Noto Sans Tagbanwa","Noto Sans Tai Le","Noto Sans Tai Tham","Noto Sans Tai Viet","Noto Sans Takri","Noto Sans Tamil","Noto Sans Tamil Supplement","Noto Sans Telugu","Noto Sans Thaana","Noto Sans Thai","Noto Sans Thai Looped","Noto Sans Tifinagh","Noto Sans Tirhuta","Noto Sans Ugaritic","Noto Sans Vai","Noto Sans Wancho","Noto Sans Warang Citi","Noto Sans Yi","Noto Sans Zanabazar Square","Noto Serif","Noto Serif Ahom","Noto Serif Armenian","Noto Serif Balinese","Noto Serif Bengali","Noto Serif Devanagari","Noto Serif Display","Noto Serif Dogra","Noto Serif Ethiopic","Noto Serif Georgian","Noto Serif Grantha","Noto Serif Gujarati","Noto Serif Gurmukhi","Noto Serif Hebrew","Noto Serif JP","Noto Serif KR","Noto Serif Kannada","Noto Serif Khmer","Noto Serif Lao","Noto Serif Malayalam","Noto Serif Myanmar","Noto Serif Nyiakeng Puachue Hmong","Noto Serif SC","Noto Serif Sinhala","Noto Serif TC","Noto Serif Tamil","Noto Serif Tangut","Noto Serif Telugu","Noto Serif Thai","Noto Serif Tibetan","Noto Serif Yezidi","Noto Traditional Nushu","Nova Cut","Nova Flat","Nova Mono","Nova Oval","Nova Round","Nova Script","Nova Slim","Nova Square","Numans","Nunito","Nunito Sans","Odibee Sans","Odor Mean Chey","Offside","Oi","Old Standard TT","Oldenburg","Oleo Script","Oleo Script Swash Caps","Open Sans","Open Sans Condensed","Oranienbaum","Orbitron","Oregano","Orelega One","Orienta","Original Surfer","Oswald","Otomanopee One","Over the Rainbow","Overlock","Overlock SC","Overpass","Overpass Mono","Ovo","Oxanium","Oxygen","Oxygen Mono","PT Mono","PT Sans","PT Sans Caption","PT Sans Narrow","PT Serif","PT Serif Caption","Pacifico","Padauk","Palanquin","Palanquin Dark","Palette Mosaic","Pangolin","Paprika","Parisienne","Passero One","Passion One","Pathway Gothic One","Patrick Hand","Patrick Hand SC","Pattaya","Patua One","Pavanam","Paytone One","Peddana","Peralta","Permanent Marker","Petit Formal Script","Petrona","Philosopher","Piazzolla","Piedra","Pinyon Script","Pirata One","Plaster","Play","Playball","Playfair Display","Playfair Display SC","Podkova","Poiret One","Poller One","Poly","Pompiere","Pontano Sans","Poor Story","Poppins","Port Lligat Sans","Port Lligat Slab","Potta One","Pragati Narrow","Prata","Preahvihear","Press Start 2P","Pridi","Princess Sofia","Prociono","Prompt","Prosto One","Proza Libre","Public Sans","Puritan","Purple Purse","Qahiri","Quando","Quantico","Quattrocento","Quattrocento Sans","Questrial","Quicksand","Quintessential","Qwigley","Racing Sans One","Radley","Rajdhani","Rakkas","Raleway","Raleway Dots","Ramabhadra","Ramaraja","Rambla","Rammetto One","Rampart One","Ranchers","Rancho","Ranga","Rasa","Rationale","Ravi Prakash","Recursive","Red Hat Display","Red Hat Text","Red Rose","Redressed","Reem Kufi","Reenie Beanie","Reggae One","Revalia","Rhodium Libre","Ribeye","Ribeye Marrow","Righteous","Risque","Roboto","Roboto Condensed","Roboto Mono","Roboto Slab","Rochester","Rock Salt","RocknRoll One","Rokkitt","Romanesco","Ropa Sans","Rosario","Rosarivo","Rouge Script","Rowdies","Rozha One","Rubik","Rubik Beastly","Rubik Mono One","Ruda","Rufina","Ruge Boogie","Ruluko","Rum Raisin","Ruslan Display","Russo One","Ruthie","Rye","STIX Two Text","Sacramento","Sahitya","Sail","Saira","Saira Condensed","Saira Extra Condensed","Saira Semi Condensed","Saira Stencil One","Salsa","Sanchez","Sancreek","Sansita","Sansita Swashed","Sarabun","Sarala","Sarina","Sarpanch","Satisfy","Sawarabi Gothic","Sawarabi Mincho","Scada","Scheherazade","Scheherazade New","Schoolbell","Scope One","Seaweed Script","Secular One","Sedgwick Ave","Sedgwick Ave Display","Sen","Sevillana","Seymour One","Shadows Into Light","Shadows Into Light Two","Shanti","Share","Share Tech","Share Tech Mono","Shippori Mincho","Shippori Mincho B1","Shojumaru","Short Stack","Shrikhand","Siemreap","Sigmar One","Signika","Signika Negative","Simonetta","Single Day","Sintony","Sirin Stencil","Six Caps","Skranji","Slabo 13px","Slabo 27px","Slackey","Smokum","Smythe","Sniglet","Snippet","Snowburst One","Sofadi One","Sofia","Solway","Song Myung","Sonsie One","Sora","Sorts Mill Goudy","Source Code Pro","Source Sans Pro","Source Serif Pro","Space Grotesk","Space Mono","Spartan","Special Elite","Spectral","Spectral SC","Spicy Rice","Spinnaker","Spirax","Squada One","Sree Krushnadevaraya","Sriracha","Srisakdi","Staatliches","Stalemate","Stalinist One","Stardos Stencil","Stick","Stick No Bills","Stint Ultra Condensed","Stint Ultra Expanded","Stoke","Strait","Style Script","Stylish","Sue Ellen Francisco","Suez One","Sulphur Point","Sumana","Sunflower","Sunshiney","Supermercado One","Sura","Suranna","Suravaram","Suwannaphum","Swanky and Moo Moo","Syncopate","Syne","Syne Mono","Syne Tactile","Tajawal","Tangerine","Taprom","Tauri","Taviraj","Teko","Telex","Tenali Ramakrishna","Tenor Sans","Text Me One","Texturina","Thasadith","The Girl Next Door","Tienne","Tillana","Timmana","Tinos","Titan One","Titillium Web","Tomorrow","Tourney","Trade Winds","Train One","Trirong","Trispace","Trocchi","Trochut","Truculenta","Trykker","Tulpen One","Turret Road","Ubuntu","Ubuntu Condensed","Ubuntu Mono","Uchen","Ultra","Uncial Antiqua","Underdog","Unica One","UnifrakturCook","UnifrakturMaguntia","Unkempt","Unlock","Unna","Urbanist","VT323","Vampiro One","Varela","Varela Round","Varta","Vast Shadow","Vesper Libre","Viaoda Libre","Vibes","Vibur","Vidaloka","Viga","Voces","Volkhov","Vollkorn","Vollkorn SC","Voltaire","Waiting for the Sunrise","Wallpoet","Walter Turncoat","Warnes","Wellfleet","Wendy One","WindSong","Wire One","Work Sans","Xanh Mono","Yaldevi","Yanone Kaffeesatz","Yantramanav","Yatra One","Yellowtail","Yeon Sung","Yeseva One","Yesteryear","Yomogi","Yrsa","Yusei Magic","ZCOOL KuaiLe","ZCOOL QingKe HuangYou","ZCOOL XiaoWei","Zen Antique","Zen Antique Soft","Zen Dots","Zen Kaku Gothic Antique","Zen Kaku Gothic New","Zen Kurenaido","Zen Loop","Zen Maru Gothic","Zen Old Mincho","Zen Tokyo Zoo","Zeyada","Zhi Mang Xing","Zilla Slab","Zilla Slab Highlight"],Se=["value"],pe=g({__name:"FontInput",props:{modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(e,{emit:a}){const r=O(e.modelValue),t=he,n=()=>a("update:modelValue",r.value);return(i,s)=>$((h(),C("select",{"onUpdate:modelValue":s[0]||(s[0]=l=>r.value=l),class:"select",onChange:n},[(h(!0),C(_,null,T(d(t),l=>(h(),C("option",{key:l,value:l},J(l),9,Se))),128))],544)),[[ee,r.value]])}});const me=L(pe,[["__scopeId","data-v-7aef3563"]]),ge={class:"header-content"},ve=["d"],ye={class:"body"},fe={class:"body-content"},Ce=g({__name:"PopOver",emits:["open","hide"],setup(e,{expose:a,emit:o}){const r=O(null),t=ae({visible:!1,originX:0,originY:0,dragging:null}),n=F(()=>({visibility:t.visible?"visible":"hidden",top:`${t.originY}px`,left:`${t.originX}px`}));oe(()=>{document.addEventListener("mousemove",v),document.addEventListener("mouseup",y)}),q(()=>{document.removeEventListener("mousemove",v),document.removeEventListener("mousemove",y)});const i=()=>{t.visible=!1,o("hide")},s=S=>S>window.innerWidth/2,l=S=>{var k;if(t.visible=!0,!r.value)return;const f=(k=r==null?void 0:r.value)==null?void 0:k.getBoundingClientRect();if(S)if(s(S.clientX)?t.originX=S.clientX-f.width-32:t.originX=S.clientX+f.width+32,S.clientY+f.height>window.innerHeight){const Q=S.clientY+f.height-window.innerHeight;t.originY=S.clientY-Q-32}else t.originY=S.clientY;else t.originX=(window.innerWidth-f.width)/2,t.originY=(window.innerHeight-f.height)/2},p=S=>{t.dragging={initialX:t.originX,initialY:t.originY,clientX:S.clientX,clientY:S.clientY}},v=S=>{t.dragging&&(t.originX=t.dragging.initialX+S.clientX-t.dragging.clientX,t.originY=t.dragging.initialY+S.clientY-t.dragging.clientY)},y=()=>{t.dragging=null};return a({open:l}),(S,f)=>(h(),C("div",{ref_key:"popover",ref:r,class:"pop-over",style:X(d(n))},[c("div",{class:"header",onMousedown:p},[c("span",ge,[H(S.$slots,"header",{},void 0,!0)]),(h(),C("svg",{class:"icon",viewBox:"0 0 24 24",onClick:i},[c("path",{d:d(ue)},null,8,ve)]))],32),c("div",ye,[c("div",fe,[H(S.$slots,"body",{},void 0,!0)])])],4))}});const ke=L(Ce,[["__scopeId","data-v-dacbc73d"]]);/*! +import{d as g,r as O,W as $,X as ee,b as h,c as C,F as _,L as T,z as d,N as J,q as L,v as ae,K as F,o as oe,Y as q,x as c,B as H,A as X,t as m,e as u,E as G,D as B,Z as R,a as M,w as j,U as te,O as ne,Q as ie}from"./registerWidgets.cb3a7b8d.js";import{a as re}from"./asyncComputed.31994732.js";import{W as se}from"./workspaces.5f21a554.js";import{L as le}from"./CircularLoading.1e68d2b1.js";import{i as ue}from"./icons.39dfa322.js";import{b as P,S as ce}from"./SidebarPreview.693e60b3.js";import{S as de}from"./SaveButton.b678d3d3.js";import"./activeRecord.adfc6223.js";import"./pubsub.f85a17d2.js";import"./lottie.234eb92e.js";import"./PlayerNavbar.fe11d508.js";import"./runnerData.7b7cb682.js";import"./colors.868ae049.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="f6334d8f-cc59-423e-9ceb-00f7c904c00b",e._sentryDebugIdIdentifier="sentry-dbid-f6334d8f-cc59-423e-9ceb-00f7c904c00b")}catch{}})();const he=["ABeeZee","Abel","Abhaya Libre","Abril Fatface","Aclonica","Acme","Actor","Adamina","Advent Pro","Aguafina Script","Akaya Kanadaka","Akaya Telivigala","Akronim","Aladin","Alata","Alatsi","Aldrich","Alef","Alegreya","Alegreya SC","Alegreya Sans","Alegreya Sans SC","Aleo","Alex Brush","Alfa Slab One","Alice","Alike","Alike Angular","Allan","Allerta","Allerta Stencil","Allison","Allura","Almarai","Almendra","Almendra Display","Almendra SC","Alumni Sans","Amarante","Amaranth","Amatic SC","Amethysta","Amiko","Amiri","Amita","Anaheim","Andada Pro","Andika","Andika New Basic","Angkor","Annie Use Your Telescope","Anonymous Pro","Antic","Antic Didone","Antic Slab","Anton","Antonio","Arapey","Arbutus","Arbutus Slab","Architects Daughter","Archivo","Archivo Black","Archivo Narrow","Are You Serious","Aref Ruqaa","Arima Madurai","Arimo","Arizonia","Armata","Arsenal","Artifika","Arvo","Arya","Asap","Asap Condensed","Asar","Asset","Assistant","Astloch","Asul","Athiti","Atkinson Hyperlegible","Atma","Atomic Age","Aubrey","Audiowide","Autour One","Average","Average Sans","Averia Gruesa Libre","Averia Libre","Averia Sans Libre","Averia Serif Libre","Azeret Mono","B612","B612 Mono","Bad Script","Bahiana","Bahianita","Bai Jamjuree","Ballet","Baloo 2","Baloo Bhai 2","Baloo Bhaina 2","Baloo Chettan 2","Baloo Da 2","Baloo Paaji 2","Baloo Tamma 2","Baloo Tammudu 2","Baloo Thambi 2","Balsamiq Sans","Balthazar","Bangers","Barlow","Barlow Condensed","Barlow Semi Condensed","Barriecito","Barrio","Basic","Baskervville","Battambang","Baumans","Bayon","Be Vietnam","Be Vietnam Pro","Bebas Neue","Belgrano","Bellefair","Belleza","Bellota","Bellota Text","BenchNine","Benne","Bentham","Berkshire Swash","Besley","Beth Ellen","Bevan","Big Shoulders Display","Big Shoulders Inline Display","Big Shoulders Inline Text","Big Shoulders Stencil Display","Big Shoulders Stencil Text","Big Shoulders Text","Bigelow Rules","Bigshot One","Bilbo","Bilbo Swash Caps","BioRhyme","BioRhyme Expanded","Birthstone","Birthstone Bounce","Biryani","Bitter","Black And White Picture","Black Han Sans","Black Ops One","Blinker","Bodoni Moda","Bokor","Bona Nova","Bonbon","Bonheur Royale","Boogaloo","Bowlby One","Bowlby One SC","Brawler","Bree Serif","Brygada 1918","Bubblegum Sans","Bubbler One","Buenard","Bungee","Bungee Hairline","Bungee Inline","Bungee Outline","Bungee Shade","Butcherman","Butterfly Kids","Cabin","Cabin Condensed","Cabin Sketch","Caesar Dressing","Cagliostro","Cairo","Caladea","Calistoga","Calligraffitti","Cambay","Cambo","Candal","Cantarell","Cantata One","Cantora One","Capriola","Caramel","Carattere","Cardo","Carme","Carrois Gothic","Carrois Gothic SC","Carter One","Castoro","Catamaran","Caudex","Caveat","Caveat Brush","Cedarville Cursive","Ceviche One","Chakra Petch","Changa","Changa One","Chango","Charm","Charmonman","Chathura","Chau Philomene One","Chela One","Chelsea Market","Chenla","Cherish","Cherry Cream Soda","Cherry Swash","Chewy","Chicle","Chilanka","Chivo","Chonburi","Cinzel","Cinzel Decorative","Clicker Script","Coda","Coda Caption","Codystar","Coiny","Combo","Comfortaa","Comic Neue","Coming Soon","Commissioner","Concert One","Condiment","Content","Contrail One","Convergence","Cookie","Copse","Corben","Cormorant","Cormorant Garamond","Cormorant Infant","Cormorant SC","Cormorant Unicase","Cormorant Upright","Courgette","Courier Prime","Cousine","Coustard","Covered By Your Grace","Crafty Girls","Creepster","Crete Round","Crimson Pro","Crimson Text","Croissant One","Crushed","Cuprum","Cute Font","Cutive","Cutive Mono","DM Mono","DM Sans","DM Serif Display","DM Serif Text","Damion","Dancing Script","Dangrek","Darker Grotesque","David Libre","Dawning of a New Day","Days One","Dekko","Dela Gothic One","Delius","Delius Swash Caps","Delius Unicase","Della Respira","Denk One","Devonshire","Dhurjati","Didact Gothic","Diplomata","Diplomata SC","Do Hyeon","Dokdo","Domine","Donegal One","Doppio One","Dorsa","Dosis","DotGothic16","Dr Sugiyama","Duru Sans","Dynalight","EB Garamond","Eagle Lake","East Sea Dokdo","Eater","Economica","Eczar","El Messiri","Electrolize","Elsie","Elsie Swash Caps","Emblema One","Emilys Candy","Encode Sans","Encode Sans Condensed","Encode Sans Expanded","Encode Sans SC","Encode Sans Semi Condensed","Encode Sans Semi Expanded","Engagement","Englebert","Enriqueta","Ephesis","Epilogue","Erica One","Esteban","Euphoria Script","Ewert","Exo","Exo 2","Expletus Sans","Explora","Fahkwang","Fanwood Text","Farro","Farsan","Fascinate","Fascinate Inline","Faster One","Fasthand","Fauna One","Faustina","Federant","Federo","Felipa","Fenix","Festive","Finger Paint","Fira Code","Fira Mono","Fira Sans","Fira Sans Condensed","Fira Sans Extra Condensed","Fjalla One","Fjord One","Flamenco","Flavors","Fleur De Leah","Fondamento","Fontdiner Swanky","Forum","Francois One","Frank Ruhl Libre","Fraunces","Freckle Face","Fredericka the Great","Fredoka One","Freehand","Fresca","Frijole","Fruktur","Fugaz One","Fuggles","GFS Didot","GFS Neohellenic","Gabriela","Gaegu","Gafata","Galada","Galdeano","Galindo","Gamja Flower","Gayathri","Gelasio","Gemunu Libre","Gentium Basic","Gentium Book Basic","Geo","Georama","Geostar","Geostar Fill","Germania One","Gideon Roman","Gidugu","Gilda Display","Girassol","Give You Glory","Glass Antiqua","Glegoo","Gloria Hallelujah","Glory","Gluten","Goblin One","Gochi Hand","Goldman","Gorditas","Gothic A1","Gotu","Goudy Bookletter 1911","Gowun Batang","Gowun Dodum","Graduate","Grand Hotel","Grandstander","Gravitas One","Great Vibes","Grechen Fuemen","Grenze","Grenze Gotisch","Grey Qo","Griffy","Gruppo","Gudea","Gugi","Gupter","Gurajada","Habibi","Hachi Maru Pop","Hahmlet","Halant","Hammersmith One","Hanalei","Hanalei Fill","Handlee","Hanuman","Happy Monkey","Harmattan","Headland One","Heebo","Henny Penny","Hepta Slab","Herr Von Muellerhoff","Hi Melody","Hina Mincho","Hind","Hind Guntur","Hind Madurai","Hind Siliguri","Hind Vadodara","Holtwood One SC","Homemade Apple","Homenaje","IBM Plex Mono","IBM Plex Sans","IBM Plex Sans Arabic","IBM Plex Sans Condensed","IBM Plex Sans Devanagari","IBM Plex Sans Hebrew","IBM Plex Sans KR","IBM Plex Sans Thai","IBM Plex Sans Thai Looped","IBM Plex Serif","IM Fell DW Pica","IM Fell DW Pica SC","IM Fell Double Pica","IM Fell Double Pica SC","IM Fell English","IM Fell English SC","IM Fell French Canon","IM Fell French Canon SC","IM Fell Great Primer","IM Fell Great Primer SC","Ibarra Real Nova","Iceberg","Iceland","Imbue","Imprima","Inconsolata","Inder","Indie Flower","Inika","Inknut Antiqua","Inria Sans","Inria Serif","Inter","Irish Grover","Istok Web","Italiana","Italianno","Itim","Jacques Francois","Jacques Francois Shadow","Jaldi","JetBrains Mono","Jim Nightshade","Jockey One","Jolly Lodger","Jomhuria","Jomolhari","Josefin Sans","Josefin Slab","Jost","Joti One","Jua","Judson","Julee","Julius Sans One","Junge","Jura","Just Another Hand","Just Me Again Down Here","K2D","Kadwa","Kaisei Decol","Kaisei HarunoUmi","Kaisei Opti","Kaisei Tokumin","Kalam","Kameron","Kanit","Kantumruy","Karantina","Karla","Karma","Katibeh","Kaushan Script","Kavivanar","Kavoon","Kdam Thmor","Keania One","Kelly Slab","Kenia","Khand","Khmer","Khula","Kirang Haerang","Kite One","Kiwi Maru","Klee One","Knewave","KoHo","Kodchasan","Koh Santepheap","Kosugi","Kosugi Maru","Kotta One","Koulen","Kranky","Kreon","Kristi","Krona One","Krub","Kufam","Kulim Park","Kumar One","Kumar One Outline","Kumbh Sans","Kurale","La Belle Aurore","Lacquer","Laila","Lakki Reddy","Lalezar","Lancelot","Langar","Lateef","Lato","League Script","Leckerli One","Ledger","Lekton","Lemon","Lemonada","Lexend","Lexend Deca","Lexend Exa","Lexend Giga","Lexend Mega","Lexend Peta","Lexend Tera","Lexend Zetta","Libre Barcode 128","Libre Barcode 128 Text","Libre Barcode 39","Libre Barcode 39 Extended","Libre Barcode 39 Extended Text","Libre Barcode 39 Text","Libre Barcode EAN13 Text","Libre Baskerville","Libre Caslon Display","Libre Caslon Text","Libre Franklin","Life Savers","Lilita One","Lily Script One","Limelight","Linden Hill","Literata","Liu Jian Mao Cao","Livvic","Lobster","Lobster Two","Londrina Outline","Londrina Shadow","Londrina Sketch","Londrina Solid","Long Cang","Lora","Love Ya Like A Sister","Loved by the King","Lovers Quarrel","Luckiest Guy","Lusitana","Lustria","M PLUS 1p","M PLUS Rounded 1c","Ma Shan Zheng","Macondo","Macondo Swash Caps","Mada","Magra","Maiden Orange","Maitree","Major Mono Display","Mako","Mali","Mallanna","Mandali","Manjari","Manrope","Mansalva","Manuale","Marcellus","Marcellus SC","Marck Script","Margarine","Markazi Text","Marko One","Marmelad","Martel","Martel Sans","Marvel","Mate","Mate SC","Material Icons","Maven Pro","McLaren","Meddon","MedievalSharp","Medula One","Meera Inimai","Megrim","Meie Script","Merienda","Merienda One","Merriweather","Merriweather Sans","Metal","Metal Mania","Metamorphous","Metrophobic","Michroma","Milonga","Miltonian","Miltonian Tattoo","Mina","Miniver","Miriam Libre","Mirza","Miss Fajardose","Mitr","Modak","Modern Antiqua","Mogra","Molengo","Monda","Monofett","Monoton","Monsieur La Doulaise","Montaga","MonteCarlo","Montez","Montserrat","Montserrat Alternates","Montserrat Subrayada","Moul","Moulpali","Mountains of Christmas","Mouse Memoirs","Mr Bedfort","Mr Dafoe","Mr De Haviland","Mrs Saint Delafield","Mrs Sheppards","Mukta","Mukta Mahee","Mukta Malar","Mukta Vaani","Mulish","MuseoModerno","Mystery Quest","NTR","Nanum Brush Script","Nanum Gothic","Nanum Gothic Coding","Nanum Myeongjo","Nanum Pen Script","Nerko One","Neucha","Neuton","New Rocker","New Tegomin","News Cycle","Newsreader","Niconne","Niramit","Nixie One","Nobile","Nokora","Norican","Nosifer","Notable","Nothing You Could Do","Noticia Text","Noto Kufi Arabic","Noto Music","Noto Naskh Arabic","Noto Nastaliq Urdu","Noto Rashi Hebrew","Noto Sans","Noto Sans Adlam","Noto Sans Adlam Unjoined","Noto Sans Anatolian Hieroglyphs","Noto Sans Arabic","Noto Sans Armenian","Noto Sans Avestan","Noto Sans Balinese","Noto Sans Bamum","Noto Sans Bassa Vah","Noto Sans Batak","Noto Sans Bengali","Noto Sans Bhaiksuki","Noto Sans Brahmi","Noto Sans Buginese","Noto Sans Buhid","Noto Sans Canadian Aboriginal","Noto Sans Carian","Noto Sans Caucasian Albanian","Noto Sans Chakma","Noto Sans Cham","Noto Sans Cherokee","Noto Sans Coptic","Noto Sans Cuneiform","Noto Sans Cypriot","Noto Sans Deseret","Noto Sans Devanagari","Noto Sans Display","Noto Sans Duployan","Noto Sans Egyptian Hieroglyphs","Noto Sans Elbasan","Noto Sans Elymaic","Noto Sans Georgian","Noto Sans Glagolitic","Noto Sans Gothic","Noto Sans Grantha","Noto Sans Gujarati","Noto Sans Gunjala Gondi","Noto Sans Gurmukhi","Noto Sans HK","Noto Sans Hanifi Rohingya","Noto Sans Hanunoo","Noto Sans Hatran","Noto Sans Hebrew","Noto Sans Imperial Aramaic","Noto Sans Indic Siyaq Numbers","Noto Sans Inscriptional Pahlavi","Noto Sans Inscriptional Parthian","Noto Sans JP","Noto Sans Javanese","Noto Sans KR","Noto Sans Kaithi","Noto Sans Kannada","Noto Sans Kayah Li","Noto Sans Kharoshthi","Noto Sans Khmer","Noto Sans Khojki","Noto Sans Khudawadi","Noto Sans Lao","Noto Sans Lepcha","Noto Sans Limbu","Noto Sans Linear A","Noto Sans Linear B","Noto Sans Lisu","Noto Sans Lycian","Noto Sans Lydian","Noto Sans Mahajani","Noto Sans Malayalam","Noto Sans Mandaic","Noto Sans Manichaean","Noto Sans Marchen","Noto Sans Masaram Gondi","Noto Sans Math","Noto Sans Mayan Numerals","Noto Sans Medefaidrin","Noto Sans Meroitic","Noto Sans Miao","Noto Sans Modi","Noto Sans Mongolian","Noto Sans Mono","Noto Sans Mro","Noto Sans Multani","Noto Sans Myanmar","Noto Sans N Ko","Noto Sans Nabataean","Noto Sans New Tai Lue","Noto Sans Newa","Noto Sans Nushu","Noto Sans Ogham","Noto Sans Ol Chiki","Noto Sans Old Hungarian","Noto Sans Old Italic","Noto Sans Old North Arabian","Noto Sans Old Permic","Noto Sans Old Persian","Noto Sans Old Sogdian","Noto Sans Old South Arabian","Noto Sans Old Turkic","Noto Sans Oriya","Noto Sans Osage","Noto Sans Osmanya","Noto Sans Pahawh Hmong","Noto Sans Palmyrene","Noto Sans Pau Cin Hau","Noto Sans Phags Pa","Noto Sans Phoenician","Noto Sans Psalter Pahlavi","Noto Sans Rejang","Noto Sans Runic","Noto Sans SC","Noto Sans Samaritan","Noto Sans Saurashtra","Noto Sans Sharada","Noto Sans Shavian","Noto Sans Siddham","Noto Sans Sinhala","Noto Sans Sogdian","Noto Sans Sora Sompeng","Noto Sans Soyombo","Noto Sans Sundanese","Noto Sans Syloti Nagri","Noto Sans Symbols","Noto Sans Symbols 2","Noto Sans Syriac","Noto Sans TC","Noto Sans Tagalog","Noto Sans Tagbanwa","Noto Sans Tai Le","Noto Sans Tai Tham","Noto Sans Tai Viet","Noto Sans Takri","Noto Sans Tamil","Noto Sans Tamil Supplement","Noto Sans Telugu","Noto Sans Thaana","Noto Sans Thai","Noto Sans Thai Looped","Noto Sans Tifinagh","Noto Sans Tirhuta","Noto Sans Ugaritic","Noto Sans Vai","Noto Sans Wancho","Noto Sans Warang Citi","Noto Sans Yi","Noto Sans Zanabazar Square","Noto Serif","Noto Serif Ahom","Noto Serif Armenian","Noto Serif Balinese","Noto Serif Bengali","Noto Serif Devanagari","Noto Serif Display","Noto Serif Dogra","Noto Serif Ethiopic","Noto Serif Georgian","Noto Serif Grantha","Noto Serif Gujarati","Noto Serif Gurmukhi","Noto Serif Hebrew","Noto Serif JP","Noto Serif KR","Noto Serif Kannada","Noto Serif Khmer","Noto Serif Lao","Noto Serif Malayalam","Noto Serif Myanmar","Noto Serif Nyiakeng Puachue Hmong","Noto Serif SC","Noto Serif Sinhala","Noto Serif TC","Noto Serif Tamil","Noto Serif Tangut","Noto Serif Telugu","Noto Serif Thai","Noto Serif Tibetan","Noto Serif Yezidi","Noto Traditional Nushu","Nova Cut","Nova Flat","Nova Mono","Nova Oval","Nova Round","Nova Script","Nova Slim","Nova Square","Numans","Nunito","Nunito Sans","Odibee Sans","Odor Mean Chey","Offside","Oi","Old Standard TT","Oldenburg","Oleo Script","Oleo Script Swash Caps","Open Sans","Open Sans Condensed","Oranienbaum","Orbitron","Oregano","Orelega One","Orienta","Original Surfer","Oswald","Otomanopee One","Over the Rainbow","Overlock","Overlock SC","Overpass","Overpass Mono","Ovo","Oxanium","Oxygen","Oxygen Mono","PT Mono","PT Sans","PT Sans Caption","PT Sans Narrow","PT Serif","PT Serif Caption","Pacifico","Padauk","Palanquin","Palanquin Dark","Palette Mosaic","Pangolin","Paprika","Parisienne","Passero One","Passion One","Pathway Gothic One","Patrick Hand","Patrick Hand SC","Pattaya","Patua One","Pavanam","Paytone One","Peddana","Peralta","Permanent Marker","Petit Formal Script","Petrona","Philosopher","Piazzolla","Piedra","Pinyon Script","Pirata One","Plaster","Play","Playball","Playfair Display","Playfair Display SC","Podkova","Poiret One","Poller One","Poly","Pompiere","Pontano Sans","Poor Story","Poppins","Port Lligat Sans","Port Lligat Slab","Potta One","Pragati Narrow","Prata","Preahvihear","Press Start 2P","Pridi","Princess Sofia","Prociono","Prompt","Prosto One","Proza Libre","Public Sans","Puritan","Purple Purse","Qahiri","Quando","Quantico","Quattrocento","Quattrocento Sans","Questrial","Quicksand","Quintessential","Qwigley","Racing Sans One","Radley","Rajdhani","Rakkas","Raleway","Raleway Dots","Ramabhadra","Ramaraja","Rambla","Rammetto One","Rampart One","Ranchers","Rancho","Ranga","Rasa","Rationale","Ravi Prakash","Recursive","Red Hat Display","Red Hat Text","Red Rose","Redressed","Reem Kufi","Reenie Beanie","Reggae One","Revalia","Rhodium Libre","Ribeye","Ribeye Marrow","Righteous","Risque","Roboto","Roboto Condensed","Roboto Mono","Roboto Slab","Rochester","Rock Salt","RocknRoll One","Rokkitt","Romanesco","Ropa Sans","Rosario","Rosarivo","Rouge Script","Rowdies","Rozha One","Rubik","Rubik Beastly","Rubik Mono One","Ruda","Rufina","Ruge Boogie","Ruluko","Rum Raisin","Ruslan Display","Russo One","Ruthie","Rye","STIX Two Text","Sacramento","Sahitya","Sail","Saira","Saira Condensed","Saira Extra Condensed","Saira Semi Condensed","Saira Stencil One","Salsa","Sanchez","Sancreek","Sansita","Sansita Swashed","Sarabun","Sarala","Sarina","Sarpanch","Satisfy","Sawarabi Gothic","Sawarabi Mincho","Scada","Scheherazade","Scheherazade New","Schoolbell","Scope One","Seaweed Script","Secular One","Sedgwick Ave","Sedgwick Ave Display","Sen","Sevillana","Seymour One","Shadows Into Light","Shadows Into Light Two","Shanti","Share","Share Tech","Share Tech Mono","Shippori Mincho","Shippori Mincho B1","Shojumaru","Short Stack","Shrikhand","Siemreap","Sigmar One","Signika","Signika Negative","Simonetta","Single Day","Sintony","Sirin Stencil","Six Caps","Skranji","Slabo 13px","Slabo 27px","Slackey","Smokum","Smythe","Sniglet","Snippet","Snowburst One","Sofadi One","Sofia","Solway","Song Myung","Sonsie One","Sora","Sorts Mill Goudy","Source Code Pro","Source Sans Pro","Source Serif Pro","Space Grotesk","Space Mono","Spartan","Special Elite","Spectral","Spectral SC","Spicy Rice","Spinnaker","Spirax","Squada One","Sree Krushnadevaraya","Sriracha","Srisakdi","Staatliches","Stalemate","Stalinist One","Stardos Stencil","Stick","Stick No Bills","Stint Ultra Condensed","Stint Ultra Expanded","Stoke","Strait","Style Script","Stylish","Sue Ellen Francisco","Suez One","Sulphur Point","Sumana","Sunflower","Sunshiney","Supermercado One","Sura","Suranna","Suravaram","Suwannaphum","Swanky and Moo Moo","Syncopate","Syne","Syne Mono","Syne Tactile","Tajawal","Tangerine","Taprom","Tauri","Taviraj","Teko","Telex","Tenali Ramakrishna","Tenor Sans","Text Me One","Texturina","Thasadith","The Girl Next Door","Tienne","Tillana","Timmana","Tinos","Titan One","Titillium Web","Tomorrow","Tourney","Trade Winds","Train One","Trirong","Trispace","Trocchi","Trochut","Truculenta","Trykker","Tulpen One","Turret Road","Ubuntu","Ubuntu Condensed","Ubuntu Mono","Uchen","Ultra","Uncial Antiqua","Underdog","Unica One","UnifrakturCook","UnifrakturMaguntia","Unkempt","Unlock","Unna","Urbanist","VT323","Vampiro One","Varela","Varela Round","Varta","Vast Shadow","Vesper Libre","Viaoda Libre","Vibes","Vibur","Vidaloka","Viga","Voces","Volkhov","Vollkorn","Vollkorn SC","Voltaire","Waiting for the Sunrise","Wallpoet","Walter Turncoat","Warnes","Wellfleet","Wendy One","WindSong","Wire One","Work Sans","Xanh Mono","Yaldevi","Yanone Kaffeesatz","Yantramanav","Yatra One","Yellowtail","Yeon Sung","Yeseva One","Yesteryear","Yomogi","Yrsa","Yusei Magic","ZCOOL KuaiLe","ZCOOL QingKe HuangYou","ZCOOL XiaoWei","Zen Antique","Zen Antique Soft","Zen Dots","Zen Kaku Gothic Antique","Zen Kaku Gothic New","Zen Kurenaido","Zen Loop","Zen Maru Gothic","Zen Old Mincho","Zen Tokyo Zoo","Zeyada","Zhi Mang Xing","Zilla Slab","Zilla Slab Highlight"],Se=["value"],pe=g({__name:"FontInput",props:{modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(e,{emit:a}){const r=O(e.modelValue),t=he,n=()=>a("update:modelValue",r.value);return(i,s)=>$((h(),C("select",{"onUpdate:modelValue":s[0]||(s[0]=l=>r.value=l),class:"select",onChange:n},[(h(!0),C(_,null,T(d(t),l=>(h(),C("option",{key:l,value:l},J(l),9,Se))),128))],544)),[[ee,r.value]])}});const me=L(pe,[["__scopeId","data-v-7aef3563"]]),ge={class:"header-content"},ve=["d"],fe={class:"body"},ye={class:"body-content"},Ce=g({__name:"PopOver",emits:["open","hide"],setup(e,{expose:a,emit:o}){const r=O(null),t=ae({visible:!1,originX:0,originY:0,dragging:null}),n=F(()=>({visibility:t.visible?"visible":"hidden",top:`${t.originY}px`,left:`${t.originX}px`}));oe(()=>{document.addEventListener("mousemove",v),document.addEventListener("mouseup",f)}),q(()=>{document.removeEventListener("mousemove",v),document.removeEventListener("mousemove",f)});const i=()=>{t.visible=!1,o("hide")},s=S=>S>window.innerWidth/2,l=S=>{var k;if(t.visible=!0,!r.value)return;const y=(k=r==null?void 0:r.value)==null?void 0:k.getBoundingClientRect();if(S)if(s(S.clientX)?t.originX=S.clientX-y.width-32:t.originX=S.clientX+y.width+32,S.clientY+y.height>window.innerHeight){const Q=S.clientY+y.height-window.innerHeight;t.originY=S.clientY-Q-32}else t.originY=S.clientY;else t.originX=(window.innerWidth-y.width)/2,t.originY=(window.innerHeight-y.height)/2},p=S=>{t.dragging={initialX:t.originX,initialY:t.originY,clientX:S.clientX,clientY:S.clientY}},v=S=>{t.dragging&&(t.originX=t.dragging.initialX+S.clientX-t.dragging.clientX,t.originY=t.dragging.initialY+S.clientY-t.dragging.clientY)},f=()=>{t.dragging=null};return a({open:l}),(S,y)=>(h(),C("div",{ref_key:"popover",ref:r,class:"pop-over",style:X(d(n))},[c("div",{class:"header",onMousedown:p},[c("span",ge,[H(S.$slots,"header",{},void 0,!0)]),(h(),C("svg",{class:"icon",viewBox:"0 0 24 24",onClick:i},[c("path",{d:d(ue)},null,8,ve)]))],32),c("div",fe,[c("div",ye,[H(S.$slots,"body",{},void 0,!0)])])],4))}});const ke=L(Ce,[["__scopeId","data-v-dacbc73d"]]);/*! * vue-color-kit v1.0.4 * (c) 2021 * @license MIT - */function w(e){let a={r:0,g:0,b:0,a:1};/#/.test(e)?a=be(e):/rgb/.test(e)?a=W(e):typeof e=="string"?a=W(`rgba(${e})`):Object.prototype.toString.call(e)==="[object Object]"&&(a=e);const{r:o,g:r,b:t,a:n}=a,{h:i,s,v:l}=Me(a);return{r:o,g:r,b:t,a:n===void 0?1:n,h:i,s,v:l}}function D(e){const a=document.createElement("canvas"),o=a.getContext("2d"),r=e*2;return a.width=r,a.height=r,o.fillStyle="#ffffff",o.fillRect(0,0,r,r),o.fillStyle="#ccd5db",o.fillRect(0,0,e,e),o.fillRect(e,e,e,e),a}function x(e,a,o,r,t,n){const i=e==="l",s=a.createLinearGradient(0,0,i?o:0,i?0:r);s.addColorStop(.01,t),s.addColorStop(.99,n),a.fillStyle=s,a.fillRect(0,0,o,r)}function Ne({r:e,g:a,b:o},r){const t=i=>("0"+Number(i).toString(16)).slice(-2),n=`#${t(e)}${t(a)}${t(o)}`;return r?n.toUpperCase():n}function be(e){e=e.slice(1);const a=o=>parseInt(o,16)||0;return{r:a(e.slice(0,2)),g:a(e.slice(2,4)),b:a(e.slice(4,6))}}function W(e){return typeof e=="string"?(e=(/rgba?\((.*?)\)/.exec(e)||["","0,0,0,1"])[1].split(","),{r:Number(e[0])||0,g:Number(e[1])||0,b:Number(e[2])||0,a:Number(e[3]?e[3]:1)}):e}function Me({r:e,g:a,b:o}){e=e/255,a=a/255,o=o/255;const r=Math.max(e,a,o),t=Math.min(e,a,o),n=r-t;let i=0;r===t?i=0:r===e?a>=o?i=60*(a-o)/n:i=60*(a-o)/n+360:r===a?i=60*(o-e)/n+120:r===o&&(i=60*(e-a)/n+240),i=Math.floor(i);let s=parseFloat((r===0?0:1-t/r).toFixed(2)),l=parseFloat(r.toFixed(2));return{h:i,s,v:l}}var I=g({props:{color:{type:String,default:"#000000"},hsv:{type:Object,default:null},size:{type:Number,default:152}},emits:["selectSaturation"],data(){return{slideSaturationStyle:{}}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const e=this.$refs.canvasSaturation,a=this.size,o=e.getContext("2d");e.width=a,e.height=a,o.fillStyle=this.color,o.fillRect(0,0,a,a),x("l",o,a,a,"#FFFFFF","rgba(255,255,255,0)"),x("p",o,a,a,"rgba(0,0,0,0)","#000000")},renderSlide(){this.slideSaturationStyle={left:this.hsv.s*this.size-5+"px",top:(1-this.hsv.v)*this.size-5+"px"}},selectSaturation(e){const{top:a,left:o}=this.$el.getBoundingClientRect(),r=e.target.getContext("2d"),t=i=>{let s=i.clientX-o,l=i.clientY-a;s<0&&(s=0),l<0&&(l=0),s>this.size&&(s=this.size),l>this.size&&(l=this.size),this.slideSaturationStyle={left:s-5+"px",top:l-5+"px"};const p=r.getImageData(Math.min(s,this.size-1),Math.min(l,this.size-1),1,1),[v,y,S]=p.data;this.$emit("selectSaturation",{r:v,g:y,b:S})};t(e);const n=()=>{document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",n)};document.addEventListener("mousemove",t),document.addEventListener("mouseup",n)}}});const we={ref:"canvasSaturation"};function Oe(e,a,o,r,t,n){return h(),m("div",{class:"saturation",onMousedown:a[1]||(a[1]=G((...i)=>e.selectSaturation&&e.selectSaturation(...i),["prevent","stop"]))},[u("canvas",we,null,512),u("div",{style:e.slideSaturationStyle,class:"slide"},null,4)],32)}I.render=Oe;I.__file="src/color/Saturation.vue";var E=g({props:{hsv:{type:Object,default:null},width:{type:Number,default:15},height:{type:Number,default:152}},emits:["selectHue"],data(){return{slideHueStyle:{}}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const e=this.$refs.canvasHue,a=this.width,o=this.height,r=e.getContext("2d");e.width=a,e.height=o;const t=r.createLinearGradient(0,0,0,o);t.addColorStop(0,"#FF0000"),t.addColorStop(.17*1,"#FF00FF"),t.addColorStop(.17*2,"#0000FF"),t.addColorStop(.17*3,"#00FFFF"),t.addColorStop(.17*4,"#00FF00"),t.addColorStop(.17*5,"#FFFF00"),t.addColorStop(1,"#FF0000"),r.fillStyle=t,r.fillRect(0,0,a,o)},renderSlide(){this.slideHueStyle={top:(1-this.hsv.h/360)*this.height-2+"px"}},selectHue(e){const{top:a}=this.$el.getBoundingClientRect(),o=e.target.getContext("2d"),r=n=>{let i=n.clientY-a;i<0&&(i=0),i>this.height&&(i=this.height),this.slideHueStyle={top:i-2+"px"};const s=o.getImageData(0,Math.min(i,this.height-1),1,1),[l,p,v]=s.data;this.$emit("selectHue",{r:l,g:p,b:v})};r(e);const t=()=>{document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",t)};document.addEventListener("mousemove",r),document.addEventListener("mouseup",t)}}});const Ae={ref:"canvasHue"};function Be(e,a,o,r,t,n){return h(),m("div",{class:"hue",onMousedown:a[1]||(a[1]=G((...i)=>e.selectHue&&e.selectHue(...i),["prevent","stop"]))},[u("canvas",Ae,null,512),u("div",{style:e.slideHueStyle,class:"slide"},null,4)],32)}E.render=Be;E.__file="src/color/Hue.vue";var K=g({props:{color:{type:String,default:"#000000"},rgba:{type:Object,default:null},width:{type:Number,default:15},height:{type:Number,default:152}},emits:["selectAlpha"],data(){return{slideAlphaStyle:{},alphaSize:5}},watch:{color(){this.renderColor()},"rgba.a"(){this.renderSlide()}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const e=this.$refs.canvasAlpha,a=this.width,o=this.height,r=this.alphaSize,t=D(r),n=e.getContext("2d");e.width=a,e.height=o,n.fillStyle=n.createPattern(t,"repeat"),n.fillRect(0,0,a,o),x("p",n,a,o,"rgba(255,255,255,0)",this.color)},renderSlide(){this.slideAlphaStyle={top:this.rgba.a*this.height-2+"px"}},selectAlpha(e){const{top:a}=this.$el.getBoundingClientRect(),o=t=>{let n=t.clientY-a;n<0&&(n=0),n>this.height&&(n=this.height);let i=parseFloat((n/this.height).toFixed(2));this.$emit("selectAlpha",i)};o(e);const r=()=>{document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",r)};document.addEventListener("mousemove",o),document.addEventListener("mouseup",r)}}});const Pe={ref:"canvasAlpha"};function Fe(e,a,o,r,t,n){return h(),m("div",{class:"color-alpha",onMousedown:a[1]||(a[1]=G((...i)=>e.selectAlpha&&e.selectAlpha(...i),["prevent","stop"]))},[u("canvas",Pe,null,512),u("div",{style:e.slideAlphaStyle,class:"slide"},null,4)],32)}K.render=Fe;K.__file="src/color/Alpha.vue";var V=g({props:{color:{type:String,default:"#000000"},width:{type:Number,default:100},height:{type:Number,default:30}},data(){return{alphaSize:5}},watch:{color(){this.renderColor()}},mounted(){this.renderColor()},methods:{renderColor(){const e=this.$el,a=this.width,o=this.height,r=this.alphaSize,t=D(r),n=e.getContext("2d");e.width=a,e.height=o,n.fillStyle=n.createPattern(t,"repeat"),n.fillRect(0,0,a,o),n.fillStyle=this.color,n.fillRect(0,0,a,o)}}});function Le(e,a,o,r,t,n){return h(),m("canvas")}V.render=Le;V.__file="src/color/Preview.vue";var U=g({props:{suckerCanvas:{type:Object,default:null},suckerArea:{type:Array,default:()=>[]}},data(){return{isOpenSucker:!1,suckerPreview:null,isSucking:!1}},watch:{suckerCanvas(e){this.isSucking=!1,this.suckColor(e)}},methods:{openSucker(){this.isOpenSucker?this.keydownHandler({keyCode:27}):(this.isOpenSucker=!0,this.isSucking=!0,this.$emit("openSucker",!0),document.addEventListener("keydown",this.keydownHandler))},keydownHandler(e){e.keyCode===27&&(this.isOpenSucker=!1,this.isSucking=!1,this.$emit("openSucker",!1),document.removeEventListener("keydown",this.keydownHandler),document.removeEventListener("mousemove",this.mousemoveHandler),document.removeEventListener("mouseup",this.mousemoveHandler),this.suckerPreview&&(document.body.removeChild(this.suckerPreview),this.suckerPreview=null))},mousemoveHandler(e){const{clientX:a,clientY:o}=e,{top:r,left:t,width:n,height:i}=this.suckerCanvas.getBoundingClientRect(),s=a-t,l=o-r,v=this.suckerCanvas.getContext("2d").getImageData(Math.min(s,n-1),Math.min(l,i-1),1,1);let[y,S,f,k]=v.data;k=parseFloat((k/255).toFixed(2));const N=this.suckerPreview.style;Object.assign(N,{position:"absolute",left:a+20+"px",top:o-36+"px",width:"24px",height:"24px",borderRadius:"50%",border:"2px solid #fff",boxShadow:"0 0 8px 0 rgba(0, 0, 0, 0.16)",background:`rgba(${y}, ${S}, ${f}, ${k})`,zIndex:95}),this.suckerArea.length&&a>=this.suckerArea[0]&&o>=this.suckerArea[1]&&a<=this.suckerArea[2]&&o<=this.suckerArea[3]?N.display="":N.display="none"},suckColor(e){e&&e.tagName!=="CANVAS"||(this.suckerPreview=document.createElement("div"),this.suckerPreview&&document.body.appendChild(this.suckerPreview),document.addEventListener("mousemove",this.mousemoveHandler),document.addEventListener("mouseup",this.mousemoveHandler),e.addEventListener("click",a=>{const{clientX:o,clientY:r}=a,{top:t,left:n,width:i,height:s}=e.getBoundingClientRect(),l=o-n,p=r-t,y=e.getContext("2d").getImageData(Math.min(l,i-1),Math.min(p,s-1),1,1);let[S,f,k,N]=y.data;N=parseFloat((N/255).toFixed(2)),this.$emit("selectSucker",{r:S,g:f,b:k,a:N})}))}}});const $e=u("path",{d:"M13.1,8.2l5.6,5.6c0.4,0.4,0.5,1.1,0.1,1.5s-1.1,0.5-1.5,0.1c0,0-0.1,0-0.1-0.1l-1.4-1.4l-7.7,7.7C7.9,21.9,7.6,22,7.3,22H3.1C2.5,22,2,21.5,2,20.9l0,0v-4.2c0-0.3,0.1-0.6,0.3-0.8l5.8-5.8C8.5,9.7,9.2,9.6,9.7,10s0.5,1.1,0.1,1.5c0,0,0,0.1-0.1,0.1l-5.5,5.5v2.7h2.7l7.4-7.4L8.7,6.8c-0.5-0.4-0.5-1-0.1-1.5s1.1-0.5,1.5-0.1c0,0,0.1,0,0.1,0.1l1.4,1.4l3.5-3.5c1.6-1.6,4.1-1.6,5.8-0.1c1.6,1.6,1.6,4.1,0.1,5.8L20.9,9l-3.6,3.6c-0.4,0.4-1.1,0.5-1.5,0.1"},null,-1),_e={key:1,class:"sucker",viewBox:"-16 -16 68 68",xmlns:"http://www.w3.org/2000/svg",stroke:"#9099a4"},Te=u("g",{fill:"none","fill-rule":"evenodd"},[u("g",{transform:"translate(1 1)","stroke-width":"4"},[u("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),u("path",{d:"M36 18c0-9.94-8.06-18-18-18"},[u("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})])])],-1);function He(e,a,o,r,t,n){return h(),m("div",null,[e.isSucking?B("v-if",!0):(h(),m("svg",{key:0,class:[{active:e.isOpenSucker},"sucker"],xmlns:"http://www.w3.org/2000/svg",viewBox:"-12 -12 48 48",onClick:a[1]||(a[1]=(...i)=>e.openSucker&&e.openSucker(...i))},[$e],2)),e.isSucking?(h(),m("svg",_e,[Te])):B("v-if",!0)])}U.render=He;U.__file="src/color/Sucker.vue";var z=g({props:{name:{type:String,default:""},color:{type:String,default:""}},emits:["inputColor"],setup(e,{emit:a}){return{modelColor:F({get(){return e.color||""},set(r){a("inputColor",r)}})}}});const Re={class:"color-type"},xe={class:"name"};function Ge(e,a,o,r,t,n){return h(),m("div",Re,[u("span",xe,J(e.name),1),$(u("input",{"onUpdate:modelValue":a[1]||(a[1]=i=>e.modelColor=i),class:"value"},null,512),[[R,e.modelColor]])])}z.render=Ge;z.__file="src/color/Box.vue";var Y=g({name:"ColorPicker",props:{color:{type:String,default:"#000000"},colorsDefault:{type:Array,default:()=>[]},colorsHistoryKey:{type:String,default:""}},emits:["selectColor"],setup(e,{emit:a}){const o=O(),r=O([]),t=O();e.colorsHistoryKey&&localStorage&&(r.value=JSON.parse(localStorage.getItem(e.colorsHistoryKey))||[]),t.value=D(4).toDataURL(),q(()=>{n(o.value)});function n(s){if(!s)return;const l=r.value||[],p=l.indexOf(s);p>=0&&l.splice(p,1),l.length>=8&&(l.length=7),l.unshift(s),r.value=l||[],localStorage&&e.colorsHistoryKey&&localStorage.setItem(e.colorsHistoryKey,JSON.stringify(l))}function i(s){a("selectColor",s)}return{setColorsHistory:n,colorsHistory:r,color:o,imgAlphaBase64:t,selectColor:i}}});const De={class:"colors"},Ie={key:0,class:"colors history"};function Ee(e,a,o,r,t,n){return h(),m("div",null,[u("ul",De,[(h(!0),m(_,null,T(e.colorsDefault,i=>(h(),m("li",{key:i,class:"item",onClick:s=>e.selectColor(i)},[u("div",{style:{background:`url(${e.imgAlphaBase64})`},class:"alpha"},null,4),u("div",{style:{background:i},class:"color"},null,4)],8,["onClick"]))),128))]),e.colorsHistory.length?(h(),m("ul",Ie,[(h(!0),m(_,null,T(e.colorsHistory,i=>(h(),m("li",{key:i,class:"item",onClick:s=>e.selectColor(i)},[u("div",{style:{background:`url(${e.imgAlphaBase64})`},class:"alpha"},null,4),u("div",{style:{background:i},class:"color"},null,4)],8,["onClick"]))),128))])):B("v-if",!0)])}Y.render=Ee;Y.__file="src/color/Colors.vue";var A=g({components:{Saturation:I,Hue:E,Alpha:K,Preview:V,Sucker:U,Box:z,Colors:Y},emits:["changeColor","openSucker"],props:{color:{type:String,default:"#000000"},theme:{type:String,default:"dark"},suckerHide:{type:Boolean,default:!0},suckerCanvas:{type:null,default:null},suckerArea:{type:Array,default:()=>[]},colorsDefault:{type:Array,default:()=>["#000000","#FFFFFF","#FF1900","#F47365","#FFB243","#FFE623","#6EFF2A","#1BC7B1","#00BEFF","#2E81FF","#5D61FF","#FF89CF","#FC3CAD","#BF3DCE","#8E00A7","rgba(0,0,0,0)"]},colorsHistoryKey:{type:String,default:"vue-colorpicker-history"}},data(){return{hueWidth:15,hueHeight:152,previewHeight:30,modelRgba:"",modelHex:"",r:0,g:0,b:0,a:1,h:0,s:0,v:0}},computed:{isLightTheme(){return this.theme==="light"},totalWidth(){return this.hueHeight+(this.hueWidth+8)*2},previewWidth(){return this.totalWidth-(this.suckerHide?0:this.previewHeight)},rgba(){return{r:this.r,g:this.g,b:this.b,a:this.a}},hsv(){return{h:this.h,s:this.s,v:this.v}},rgbString(){return`rgb(${this.r}, ${this.g}, ${this.b})`},rgbaStringShort(){return`${this.r}, ${this.g}, ${this.b}, ${this.a}`},rgbaString(){return`rgba(${this.rgbaStringShort})`},hexString(){return Ne(this.rgba,!0)}},created(){Object.assign(this,w(this.color)),this.setText(),this.$watch("rgba",()=>{this.$emit("changeColor",{rgba:this.rgba,hsv:this.hsv,hex:this.modelHex})})},methods:{selectSaturation(e){const{r:a,g:o,b:r,h:t,s:n,v:i}=w(e);Object.assign(this,{r:a,g:o,b:r,h:t,s:n,v:i}),this.setText()},selectHue(e){const{r:a,g:o,b:r,h:t,s:n,v:i}=w(e);Object.assign(this,{r:a,g:o,b:r,h:t,s:n,v:i}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide()})},selectAlpha(e){this.a=e,this.setText()},inputHex(e){const{r:a,g:o,b:r,a:t,h:n,s:i,v:s}=w(e);Object.assign(this,{r:a,g:o,b:r,a:t,h:n,s:i,v:s}),this.modelHex=e,this.modelRgba=this.rgbaStringShort,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},inputRgba(e){const{r:a,g:o,b:r,a:t,h:n,s:i,v:s}=w(e);Object.assign(this,{r:a,g:o,b:r,a:t,h:n,s:i,v:s}),this.modelHex=this.hexString,this.modelRgba=e,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},setText(){this.modelHex=this.hexString,this.modelRgba=this.rgbaStringShort},openSucker(e){this.$emit("openSucker",e)},selectSucker(e){const{r:a,g:o,b:r,a:t,h:n,s:i,v:s}=w(e);Object.assign(this,{r:a,g:o,b:r,a:t,h:n,s:i,v:s}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},selectColor(e){const{r:a,g:o,b:r,a:t,h:n,s:i,v:s}=w(e);Object.assign(this,{r:a,g:o,b:r,a:t,h:n,s:i,v:s}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})}}});const Ke={class:"color-set"};function Ve(e,a,o,r,t,n){const i=M("Saturation"),s=M("Hue"),l=M("Alpha"),p=M("Preview"),v=M("Sucker"),y=M("Box"),S=M("Colors");return h(),m("div",{class:["hu-color-picker",{light:e.isLightTheme}],style:{width:e.totalWidth+"px"}},[u("div",Ke,[u(i,{ref:"saturation",color:e.rgbString,hsv:e.hsv,size:e.hueHeight,onSelectSaturation:e.selectSaturation},null,8,["color","hsv","size","onSelectSaturation"]),u(s,{ref:"hue",hsv:e.hsv,width:e.hueWidth,height:e.hueHeight,onSelectHue:e.selectHue},null,8,["hsv","width","height","onSelectHue"]),u(l,{ref:"alpha",color:e.rgbString,rgba:e.rgba,width:e.hueWidth,height:e.hueHeight,onSelectAlpha:e.selectAlpha},null,8,["color","rgba","width","height","onSelectAlpha"])]),u("div",{style:{height:e.previewHeight+"px"},class:"color-show"},[u(p,{color:e.rgbaString,width:e.previewWidth,height:e.previewHeight},null,8,["color","width","height"]),e.suckerHide?B("v-if",!0):(h(),m(v,{key:0,"sucker-canvas":e.suckerCanvas,"sucker-area":e.suckerArea,onOpenSucker:e.openSucker,onSelectSucker:e.selectSucker},null,8,["sucker-canvas","sucker-area","onOpenSucker","onSelectSucker"]))],4),u(y,{name:"HEX",color:e.modelHex,onInputColor:e.inputHex},null,8,["color","onInputColor"]),u(y,{name:"RGBA",color:e.modelRgba,onInputColor:e.inputRgba},null,8,["color","onInputColor"]),u(S,{color:e.rgbaString,"colors-default":e.colorsDefault,"colors-history-key":e.colorsHistoryKey,onSelectColor:e.selectColor},null,8,["color","colors-default","colors-history-key","onSelectColor"]),B(" custom options "),H(e.$slots,"default")],6)}A.render=Ve;A.__file="src/color/ColorPicker.vue";A.install=e=>{e.component(A.name,A)};const Ue={class:"color-input"},ze={class:"color-picker-wrapper"},Ye=g({__name:"ColorInput",props:{value:null},emits:["input","change"],setup(e,{emit:a}){const o=O(null),r=n=>{var i;return(i=o.value)==null?void 0:i.open(n)},t=({hex:n})=>{a("input",n),a("change",n)};return(n,i)=>(h(),C("div",Ue,[c("div",{class:"color-input-container",style:X({backgroundColor:e.value}),onClick:r},null,4),u(ke,{ref_key:"popover",ref:o},{header:j(()=>[te(" Pick a Color ")]),body:j(()=>[c("div",ze,[u(d(A),{color:e.value,theme:"light",onChangeColor:t},null,8,["color"])])]),_:1},512)]))}});const Z=L(Ye,[["__scopeId","data-v-0ab26bad"]]),je={class:"background-selector"},We=["selected"],Je=["selected"],qe=["value"],Xe=g({__name:"BackgroundSelector",props:{modelValue:null},emits:["update:modelValue"],setup(e,{emit:a}){const o=e,r=s=>a("update:modelValue",s),t=s=>{const l=s.options,p=l[l.selectedIndex].value;r(p==="color"?"#ffffff":"")},n=F(()=>P(o.modelValue)==="color"?o.modelValue:""),i=F(()=>o.modelValue);return(s,l)=>(h(),C("div",je,[c("select",{class:"background-type-select",onChange:l[0]||(l[0]=p=>t(p.target))},[c("option",{value:"color",selected:d(P)(e.modelValue)==="color"}," Color ",8,We),c("option",{value:"image",selected:d(P)(e.modelValue)==="hosted-image"||d(P)(e.modelValue)==="external-image"}," Image ",8,Je)],32),d(P)(e.modelValue)==="color"?(h(),m(Z,{key:0,value:d(n),class:"input-container color",onChange:r},null,8,["value"])):(h(),C("input",{key:1,value:d(i),class:"image-input",type:"text",onInput:l[1]||(l[1]=p=>r(p.target.value))},null,40,qe))]))}});const Ze=L(Xe,[["__scopeId","data-v-2d6b0e05"]]),Qe=e=>{try{return new URL(e),!0}catch{return!1}},b=e=>(ne("data-v-0f97b45f"),e=e(),ie(),e),ea={key:1,class:"workspace-style"},aa=b(()=>c("h1",null,"Workspace Style",-1)),oa={class:"logo-property"},ta=["src"],na={class:"logo-input-container"},ia=b(()=>c("div",{class:"instructions"},[c("p",null,"SVG or transparent PNG recommended. GIF, JPG also supported.")],-1)),ra=b(()=>c("div",{class:"logo-label"},"Logo url",-1)),sa={class:"logo-input"},la={class:"content-row"},ua={class:"property column"},ca=b(()=>c("div",{class:"property-label"},"Brand Name",-1)),da={class:"content-row"},ha={class:"property column"},Sa=b(()=>c("div",{class:"property-label"},"Select font",-1)),pa={class:"property column"},ma=b(()=>c("div",{class:"property-label"},"Main color",-1)),ga={class:"content-row"},va={class:"property column"},ya=b(()=>c("div",{class:"property-label"},"Background",-1)),fa=b(()=>c("h2",null,"Preview",-1)),Ca=g({__name:"StyleEditor",setup(e){const{result:a,loading:o}=re(()=>se.get()),r=F(()=>{var t,n,i;return!a.value||!a.value.logoUrl?"":Qe((t=a.value)==null?void 0:t.logoUrl)?(n=a.value)==null?void 0:n.logoUrl:(i=a.value)!=null&&i.logoUrl?`/_editor/api/assets/${a.value.logoUrl}`:""});return(t,n)=>d(o)||!d(a)?(h(),m(le,{key:0})):(h(),C("div",ea,[aa,c("div",oa,[d(a).logoUrl?(h(),C("img",{key:0,src:d(r),class:"logo-image"},null,8,ta)):B("",!0),c("div",na,[ia,ra,c("div",sa,[$(c("input",{"onUpdate:modelValue":n[0]||(n[0]=i=>d(a).logoUrl=i),class:"property-input",type:"text"},null,512),[[R,d(a).logoUrl]])])])]),c("div",la,[c("div",ua,[ca,$(c("input",{"onUpdate:modelValue":n[1]||(n[1]=i=>d(a).brandName=i),class:"property-input",type:"text"},null,512),[[R,d(a).brandName]])])]),c("div",da,[c("div",ha,[Sa,u(me,{modelValue:d(a).fontFamily,"onUpdate:modelValue":n[2]||(n[2]=i=>d(a).fontFamily=i)},null,8,["modelValue"])]),c("div",pa,[ma,u(Z,{value:d(a).mainColor,onInput:n[3]||(n[3]=i=>d(a).mainColor=i),onChange:n[4]||(n[4]=i=>d(a).mainColor=d(a).mainColor)},null,8,["value"])])]),c("div",ga,[c("div",va,[ya,u(Ze,{modelValue:d(a).theme,"onUpdate:modelValue":n[5]||(n[5]=i=>d(a).theme=i)},null,8,["modelValue"])])]),fa,u(ce,{workspace:d(a)},null,8,["workspace"]),u(de,{model:d(a)},null,8,["model"])]))}});const Ta=L(Ca,[["__scopeId","data-v-0f97b45f"]]);export{Ta as default}; -//# sourceMappingURL=StyleEditor.acc5581f.js.map + */function w(e){let a={r:0,g:0,b:0,a:1};/#/.test(e)?a=be(e):/rgb/.test(e)?a=W(e):typeof e=="string"?a=W(`rgba(${e})`):Object.prototype.toString.call(e)==="[object Object]"&&(a=e);const{r:o,g:r,b:t,a:n}=a,{h:i,s,v:l}=Me(a);return{r:o,g:r,b:t,a:n===void 0?1:n,h:i,s,v:l}}function D(e){const a=document.createElement("canvas"),o=a.getContext("2d"),r=e*2;return a.width=r,a.height=r,o.fillStyle="#ffffff",o.fillRect(0,0,r,r),o.fillStyle="#ccd5db",o.fillRect(0,0,e,e),o.fillRect(e,e,e,e),a}function x(e,a,o,r,t,n){const i=e==="l",s=a.createLinearGradient(0,0,i?o:0,i?0:r);s.addColorStop(.01,t),s.addColorStop(.99,n),a.fillStyle=s,a.fillRect(0,0,o,r)}function Ne({r:e,g:a,b:o},r){const t=i=>("0"+Number(i).toString(16)).slice(-2),n=`#${t(e)}${t(a)}${t(o)}`;return r?n.toUpperCase():n}function be(e){e=e.slice(1);const a=o=>parseInt(o,16)||0;return{r:a(e.slice(0,2)),g:a(e.slice(2,4)),b:a(e.slice(4,6))}}function W(e){return typeof e=="string"?(e=(/rgba?\((.*?)\)/.exec(e)||["","0,0,0,1"])[1].split(","),{r:Number(e[0])||0,g:Number(e[1])||0,b:Number(e[2])||0,a:Number(e[3]?e[3]:1)}):e}function Me({r:e,g:a,b:o}){e=e/255,a=a/255,o=o/255;const r=Math.max(e,a,o),t=Math.min(e,a,o),n=r-t;let i=0;r===t?i=0:r===e?a>=o?i=60*(a-o)/n:i=60*(a-o)/n+360:r===a?i=60*(o-e)/n+120:r===o&&(i=60*(e-a)/n+240),i=Math.floor(i);let s=parseFloat((r===0?0:1-t/r).toFixed(2)),l=parseFloat(r.toFixed(2));return{h:i,s,v:l}}var I=g({props:{color:{type:String,default:"#000000"},hsv:{type:Object,default:null},size:{type:Number,default:152}},emits:["selectSaturation"],data(){return{slideSaturationStyle:{}}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const e=this.$refs.canvasSaturation,a=this.size,o=e.getContext("2d");e.width=a,e.height=a,o.fillStyle=this.color,o.fillRect(0,0,a,a),x("l",o,a,a,"#FFFFFF","rgba(255,255,255,0)"),x("p",o,a,a,"rgba(0,0,0,0)","#000000")},renderSlide(){this.slideSaturationStyle={left:this.hsv.s*this.size-5+"px",top:(1-this.hsv.v)*this.size-5+"px"}},selectSaturation(e){const{top:a,left:o}=this.$el.getBoundingClientRect(),r=e.target.getContext("2d"),t=i=>{let s=i.clientX-o,l=i.clientY-a;s<0&&(s=0),l<0&&(l=0),s>this.size&&(s=this.size),l>this.size&&(l=this.size),this.slideSaturationStyle={left:s-5+"px",top:l-5+"px"};const p=r.getImageData(Math.min(s,this.size-1),Math.min(l,this.size-1),1,1),[v,f,S]=p.data;this.$emit("selectSaturation",{r:v,g:f,b:S})};t(e);const n=()=>{document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",n)};document.addEventListener("mousemove",t),document.addEventListener("mouseup",n)}}});const we={ref:"canvasSaturation"};function Oe(e,a,o,r,t,n){return h(),m("div",{class:"saturation",onMousedown:a[1]||(a[1]=G((...i)=>e.selectSaturation&&e.selectSaturation(...i),["prevent","stop"]))},[u("canvas",we,null,512),u("div",{style:e.slideSaturationStyle,class:"slide"},null,4)],32)}I.render=Oe;I.__file="src/color/Saturation.vue";var E=g({props:{hsv:{type:Object,default:null},width:{type:Number,default:15},height:{type:Number,default:152}},emits:["selectHue"],data(){return{slideHueStyle:{}}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const e=this.$refs.canvasHue,a=this.width,o=this.height,r=e.getContext("2d");e.width=a,e.height=o;const t=r.createLinearGradient(0,0,0,o);t.addColorStop(0,"#FF0000"),t.addColorStop(.17*1,"#FF00FF"),t.addColorStop(.17*2,"#0000FF"),t.addColorStop(.17*3,"#00FFFF"),t.addColorStop(.17*4,"#00FF00"),t.addColorStop(.17*5,"#FFFF00"),t.addColorStop(1,"#FF0000"),r.fillStyle=t,r.fillRect(0,0,a,o)},renderSlide(){this.slideHueStyle={top:(1-this.hsv.h/360)*this.height-2+"px"}},selectHue(e){const{top:a}=this.$el.getBoundingClientRect(),o=e.target.getContext("2d"),r=n=>{let i=n.clientY-a;i<0&&(i=0),i>this.height&&(i=this.height),this.slideHueStyle={top:i-2+"px"};const s=o.getImageData(0,Math.min(i,this.height-1),1,1),[l,p,v]=s.data;this.$emit("selectHue",{r:l,g:p,b:v})};r(e);const t=()=>{document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",t)};document.addEventListener("mousemove",r),document.addEventListener("mouseup",t)}}});const Ae={ref:"canvasHue"};function Be(e,a,o,r,t,n){return h(),m("div",{class:"hue",onMousedown:a[1]||(a[1]=G((...i)=>e.selectHue&&e.selectHue(...i),["prevent","stop"]))},[u("canvas",Ae,null,512),u("div",{style:e.slideHueStyle,class:"slide"},null,4)],32)}E.render=Be;E.__file="src/color/Hue.vue";var K=g({props:{color:{type:String,default:"#000000"},rgba:{type:Object,default:null},width:{type:Number,default:15},height:{type:Number,default:152}},emits:["selectAlpha"],data(){return{slideAlphaStyle:{},alphaSize:5}},watch:{color(){this.renderColor()},"rgba.a"(){this.renderSlide()}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const e=this.$refs.canvasAlpha,a=this.width,o=this.height,r=this.alphaSize,t=D(r),n=e.getContext("2d");e.width=a,e.height=o,n.fillStyle=n.createPattern(t,"repeat"),n.fillRect(0,0,a,o),x("p",n,a,o,"rgba(255,255,255,0)",this.color)},renderSlide(){this.slideAlphaStyle={top:this.rgba.a*this.height-2+"px"}},selectAlpha(e){const{top:a}=this.$el.getBoundingClientRect(),o=t=>{let n=t.clientY-a;n<0&&(n=0),n>this.height&&(n=this.height);let i=parseFloat((n/this.height).toFixed(2));this.$emit("selectAlpha",i)};o(e);const r=()=>{document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",r)};document.addEventListener("mousemove",o),document.addEventListener("mouseup",r)}}});const Pe={ref:"canvasAlpha"};function Fe(e,a,o,r,t,n){return h(),m("div",{class:"color-alpha",onMousedown:a[1]||(a[1]=G((...i)=>e.selectAlpha&&e.selectAlpha(...i),["prevent","stop"]))},[u("canvas",Pe,null,512),u("div",{style:e.slideAlphaStyle,class:"slide"},null,4)],32)}K.render=Fe;K.__file="src/color/Alpha.vue";var V=g({props:{color:{type:String,default:"#000000"},width:{type:Number,default:100},height:{type:Number,default:30}},data(){return{alphaSize:5}},watch:{color(){this.renderColor()}},mounted(){this.renderColor()},methods:{renderColor(){const e=this.$el,a=this.width,o=this.height,r=this.alphaSize,t=D(r),n=e.getContext("2d");e.width=a,e.height=o,n.fillStyle=n.createPattern(t,"repeat"),n.fillRect(0,0,a,o),n.fillStyle=this.color,n.fillRect(0,0,a,o)}}});function Le(e,a,o,r,t,n){return h(),m("canvas")}V.render=Le;V.__file="src/color/Preview.vue";var U=g({props:{suckerCanvas:{type:Object,default:null},suckerArea:{type:Array,default:()=>[]}},data(){return{isOpenSucker:!1,suckerPreview:null,isSucking:!1}},watch:{suckerCanvas(e){this.isSucking=!1,this.suckColor(e)}},methods:{openSucker(){this.isOpenSucker?this.keydownHandler({keyCode:27}):(this.isOpenSucker=!0,this.isSucking=!0,this.$emit("openSucker",!0),document.addEventListener("keydown",this.keydownHandler))},keydownHandler(e){e.keyCode===27&&(this.isOpenSucker=!1,this.isSucking=!1,this.$emit("openSucker",!1),document.removeEventListener("keydown",this.keydownHandler),document.removeEventListener("mousemove",this.mousemoveHandler),document.removeEventListener("mouseup",this.mousemoveHandler),this.suckerPreview&&(document.body.removeChild(this.suckerPreview),this.suckerPreview=null))},mousemoveHandler(e){const{clientX:a,clientY:o}=e,{top:r,left:t,width:n,height:i}=this.suckerCanvas.getBoundingClientRect(),s=a-t,l=o-r,v=this.suckerCanvas.getContext("2d").getImageData(Math.min(s,n-1),Math.min(l,i-1),1,1);let[f,S,y,k]=v.data;k=parseFloat((k/255).toFixed(2));const N=this.suckerPreview.style;Object.assign(N,{position:"absolute",left:a+20+"px",top:o-36+"px",width:"24px",height:"24px",borderRadius:"50%",border:"2px solid #fff",boxShadow:"0 0 8px 0 rgba(0, 0, 0, 0.16)",background:`rgba(${f}, ${S}, ${y}, ${k})`,zIndex:95}),this.suckerArea.length&&a>=this.suckerArea[0]&&o>=this.suckerArea[1]&&a<=this.suckerArea[2]&&o<=this.suckerArea[3]?N.display="":N.display="none"},suckColor(e){e&&e.tagName!=="CANVAS"||(this.suckerPreview=document.createElement("div"),this.suckerPreview&&document.body.appendChild(this.suckerPreview),document.addEventListener("mousemove",this.mousemoveHandler),document.addEventListener("mouseup",this.mousemoveHandler),e.addEventListener("click",a=>{const{clientX:o,clientY:r}=a,{top:t,left:n,width:i,height:s}=e.getBoundingClientRect(),l=o-n,p=r-t,f=e.getContext("2d").getImageData(Math.min(l,i-1),Math.min(p,s-1),1,1);let[S,y,k,N]=f.data;N=parseFloat((N/255).toFixed(2)),this.$emit("selectSucker",{r:S,g:y,b:k,a:N})}))}}});const $e=u("path",{d:"M13.1,8.2l5.6,5.6c0.4,0.4,0.5,1.1,0.1,1.5s-1.1,0.5-1.5,0.1c0,0-0.1,0-0.1-0.1l-1.4-1.4l-7.7,7.7C7.9,21.9,7.6,22,7.3,22H3.1C2.5,22,2,21.5,2,20.9l0,0v-4.2c0-0.3,0.1-0.6,0.3-0.8l5.8-5.8C8.5,9.7,9.2,9.6,9.7,10s0.5,1.1,0.1,1.5c0,0,0,0.1-0.1,0.1l-5.5,5.5v2.7h2.7l7.4-7.4L8.7,6.8c-0.5-0.4-0.5-1-0.1-1.5s1.1-0.5,1.5-0.1c0,0,0.1,0,0.1,0.1l1.4,1.4l3.5-3.5c1.6-1.6,4.1-1.6,5.8-0.1c1.6,1.6,1.6,4.1,0.1,5.8L20.9,9l-3.6,3.6c-0.4,0.4-1.1,0.5-1.5,0.1"},null,-1),_e={key:1,class:"sucker",viewBox:"-16 -16 68 68",xmlns:"http://www.w3.org/2000/svg",stroke:"#9099a4"},Te=u("g",{fill:"none","fill-rule":"evenodd"},[u("g",{transform:"translate(1 1)","stroke-width":"4"},[u("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),u("path",{d:"M36 18c0-9.94-8.06-18-18-18"},[u("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})])])],-1);function He(e,a,o,r,t,n){return h(),m("div",null,[e.isSucking?B("v-if",!0):(h(),m("svg",{key:0,class:[{active:e.isOpenSucker},"sucker"],xmlns:"http://www.w3.org/2000/svg",viewBox:"-12 -12 48 48",onClick:a[1]||(a[1]=(...i)=>e.openSucker&&e.openSucker(...i))},[$e],2)),e.isSucking?(h(),m("svg",_e,[Te])):B("v-if",!0)])}U.render=He;U.__file="src/color/Sucker.vue";var z=g({props:{name:{type:String,default:""},color:{type:String,default:""}},emits:["inputColor"],setup(e,{emit:a}){return{modelColor:F({get(){return e.color||""},set(r){a("inputColor",r)}})}}});const Re={class:"color-type"},xe={class:"name"};function Ge(e,a,o,r,t,n){return h(),m("div",Re,[u("span",xe,J(e.name),1),$(u("input",{"onUpdate:modelValue":a[1]||(a[1]=i=>e.modelColor=i),class:"value"},null,512),[[R,e.modelColor]])])}z.render=Ge;z.__file="src/color/Box.vue";var Y=g({name:"ColorPicker",props:{color:{type:String,default:"#000000"},colorsDefault:{type:Array,default:()=>[]},colorsHistoryKey:{type:String,default:""}},emits:["selectColor"],setup(e,{emit:a}){const o=O(),r=O([]),t=O();e.colorsHistoryKey&&localStorage&&(r.value=JSON.parse(localStorage.getItem(e.colorsHistoryKey))||[]),t.value=D(4).toDataURL(),q(()=>{n(o.value)});function n(s){if(!s)return;const l=r.value||[],p=l.indexOf(s);p>=0&&l.splice(p,1),l.length>=8&&(l.length=7),l.unshift(s),r.value=l||[],localStorage&&e.colorsHistoryKey&&localStorage.setItem(e.colorsHistoryKey,JSON.stringify(l))}function i(s){a("selectColor",s)}return{setColorsHistory:n,colorsHistory:r,color:o,imgAlphaBase64:t,selectColor:i}}});const De={class:"colors"},Ie={key:0,class:"colors history"};function Ee(e,a,o,r,t,n){return h(),m("div",null,[u("ul",De,[(h(!0),m(_,null,T(e.colorsDefault,i=>(h(),m("li",{key:i,class:"item",onClick:s=>e.selectColor(i)},[u("div",{style:{background:`url(${e.imgAlphaBase64})`},class:"alpha"},null,4),u("div",{style:{background:i},class:"color"},null,4)],8,["onClick"]))),128))]),e.colorsHistory.length?(h(),m("ul",Ie,[(h(!0),m(_,null,T(e.colorsHistory,i=>(h(),m("li",{key:i,class:"item",onClick:s=>e.selectColor(i)},[u("div",{style:{background:`url(${e.imgAlphaBase64})`},class:"alpha"},null,4),u("div",{style:{background:i},class:"color"},null,4)],8,["onClick"]))),128))])):B("v-if",!0)])}Y.render=Ee;Y.__file="src/color/Colors.vue";var A=g({components:{Saturation:I,Hue:E,Alpha:K,Preview:V,Sucker:U,Box:z,Colors:Y},emits:["changeColor","openSucker"],props:{color:{type:String,default:"#000000"},theme:{type:String,default:"dark"},suckerHide:{type:Boolean,default:!0},suckerCanvas:{type:null,default:null},suckerArea:{type:Array,default:()=>[]},colorsDefault:{type:Array,default:()=>["#000000","#FFFFFF","#FF1900","#F47365","#FFB243","#FFE623","#6EFF2A","#1BC7B1","#00BEFF","#2E81FF","#5D61FF","#FF89CF","#FC3CAD","#BF3DCE","#8E00A7","rgba(0,0,0,0)"]},colorsHistoryKey:{type:String,default:"vue-colorpicker-history"}},data(){return{hueWidth:15,hueHeight:152,previewHeight:30,modelRgba:"",modelHex:"",r:0,g:0,b:0,a:1,h:0,s:0,v:0}},computed:{isLightTheme(){return this.theme==="light"},totalWidth(){return this.hueHeight+(this.hueWidth+8)*2},previewWidth(){return this.totalWidth-(this.suckerHide?0:this.previewHeight)},rgba(){return{r:this.r,g:this.g,b:this.b,a:this.a}},hsv(){return{h:this.h,s:this.s,v:this.v}},rgbString(){return`rgb(${this.r}, ${this.g}, ${this.b})`},rgbaStringShort(){return`${this.r}, ${this.g}, ${this.b}, ${this.a}`},rgbaString(){return`rgba(${this.rgbaStringShort})`},hexString(){return Ne(this.rgba,!0)}},created(){Object.assign(this,w(this.color)),this.setText(),this.$watch("rgba",()=>{this.$emit("changeColor",{rgba:this.rgba,hsv:this.hsv,hex:this.modelHex})})},methods:{selectSaturation(e){const{r:a,g:o,b:r,h:t,s:n,v:i}=w(e);Object.assign(this,{r:a,g:o,b:r,h:t,s:n,v:i}),this.setText()},selectHue(e){const{r:a,g:o,b:r,h:t,s:n,v:i}=w(e);Object.assign(this,{r:a,g:o,b:r,h:t,s:n,v:i}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide()})},selectAlpha(e){this.a=e,this.setText()},inputHex(e){const{r:a,g:o,b:r,a:t,h:n,s:i,v:s}=w(e);Object.assign(this,{r:a,g:o,b:r,a:t,h:n,s:i,v:s}),this.modelHex=e,this.modelRgba=this.rgbaStringShort,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},inputRgba(e){const{r:a,g:o,b:r,a:t,h:n,s:i,v:s}=w(e);Object.assign(this,{r:a,g:o,b:r,a:t,h:n,s:i,v:s}),this.modelHex=this.hexString,this.modelRgba=e,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},setText(){this.modelHex=this.hexString,this.modelRgba=this.rgbaStringShort},openSucker(e){this.$emit("openSucker",e)},selectSucker(e){const{r:a,g:o,b:r,a:t,h:n,s:i,v:s}=w(e);Object.assign(this,{r:a,g:o,b:r,a:t,h:n,s:i,v:s}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},selectColor(e){const{r:a,g:o,b:r,a:t,h:n,s:i,v:s}=w(e);Object.assign(this,{r:a,g:o,b:r,a:t,h:n,s:i,v:s}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})}}});const Ke={class:"color-set"};function Ve(e,a,o,r,t,n){const i=M("Saturation"),s=M("Hue"),l=M("Alpha"),p=M("Preview"),v=M("Sucker"),f=M("Box"),S=M("Colors");return h(),m("div",{class:["hu-color-picker",{light:e.isLightTheme}],style:{width:e.totalWidth+"px"}},[u("div",Ke,[u(i,{ref:"saturation",color:e.rgbString,hsv:e.hsv,size:e.hueHeight,onSelectSaturation:e.selectSaturation},null,8,["color","hsv","size","onSelectSaturation"]),u(s,{ref:"hue",hsv:e.hsv,width:e.hueWidth,height:e.hueHeight,onSelectHue:e.selectHue},null,8,["hsv","width","height","onSelectHue"]),u(l,{ref:"alpha",color:e.rgbString,rgba:e.rgba,width:e.hueWidth,height:e.hueHeight,onSelectAlpha:e.selectAlpha},null,8,["color","rgba","width","height","onSelectAlpha"])]),u("div",{style:{height:e.previewHeight+"px"},class:"color-show"},[u(p,{color:e.rgbaString,width:e.previewWidth,height:e.previewHeight},null,8,["color","width","height"]),e.suckerHide?B("v-if",!0):(h(),m(v,{key:0,"sucker-canvas":e.suckerCanvas,"sucker-area":e.suckerArea,onOpenSucker:e.openSucker,onSelectSucker:e.selectSucker},null,8,["sucker-canvas","sucker-area","onOpenSucker","onSelectSucker"]))],4),u(f,{name:"HEX",color:e.modelHex,onInputColor:e.inputHex},null,8,["color","onInputColor"]),u(f,{name:"RGBA",color:e.modelRgba,onInputColor:e.inputRgba},null,8,["color","onInputColor"]),u(S,{color:e.rgbaString,"colors-default":e.colorsDefault,"colors-history-key":e.colorsHistoryKey,onSelectColor:e.selectColor},null,8,["color","colors-default","colors-history-key","onSelectColor"]),B(" custom options "),H(e.$slots,"default")],6)}A.render=Ve;A.__file="src/color/ColorPicker.vue";A.install=e=>{e.component(A.name,A)};const Ue={class:"color-input"},ze={class:"color-picker-wrapper"},Ye=g({__name:"ColorInput",props:{value:null},emits:["input","change"],setup(e,{emit:a}){const o=O(null),r=n=>{var i;return(i=o.value)==null?void 0:i.open(n)},t=({hex:n})=>{a("input",n),a("change",n)};return(n,i)=>(h(),C("div",Ue,[c("div",{class:"color-input-container",style:X({backgroundColor:e.value}),onClick:r},null,4),u(ke,{ref_key:"popover",ref:o},{header:j(()=>[te(" Pick a Color ")]),body:j(()=>[c("div",ze,[u(d(A),{color:e.value,theme:"light",onChangeColor:t},null,8,["color"])])]),_:1},512)]))}});const Z=L(Ye,[["__scopeId","data-v-0ab26bad"]]),je={class:"background-selector"},We=["selected"],Je=["selected"],qe=["value"],Xe=g({__name:"BackgroundSelector",props:{modelValue:null},emits:["update:modelValue"],setup(e,{emit:a}){const o=e,r=s=>a("update:modelValue",s),t=s=>{const l=s.options,p=l[l.selectedIndex].value;r(p==="color"?"#ffffff":"")},n=F(()=>P(o.modelValue)==="color"?o.modelValue:""),i=F(()=>o.modelValue);return(s,l)=>(h(),C("div",je,[c("select",{class:"background-type-select",onChange:l[0]||(l[0]=p=>t(p.target))},[c("option",{value:"color",selected:d(P)(e.modelValue)==="color"}," Color ",8,We),c("option",{value:"image",selected:d(P)(e.modelValue)==="hosted-image"||d(P)(e.modelValue)==="external-image"}," Image ",8,Je)],32),d(P)(e.modelValue)==="color"?(h(),m(Z,{key:0,value:d(n),class:"input-container color",onChange:r},null,8,["value"])):(h(),C("input",{key:1,value:d(i),class:"image-input",type:"text",onInput:l[1]||(l[1]=p=>r(p.target.value))},null,40,qe))]))}});const Ze=L(Xe,[["__scopeId","data-v-2d6b0e05"]]),Qe=e=>{try{return new URL(e),!0}catch{return!1}},b=e=>(ne("data-v-0f97b45f"),e=e(),ie(),e),ea={key:1,class:"workspace-style"},aa=b(()=>c("h1",null,"Workspace Style",-1)),oa={class:"logo-property"},ta=["src"],na={class:"logo-input-container"},ia=b(()=>c("div",{class:"instructions"},[c("p",null,"SVG or transparent PNG recommended. GIF, JPG also supported.")],-1)),ra=b(()=>c("div",{class:"logo-label"},"Logo url",-1)),sa={class:"logo-input"},la={class:"content-row"},ua={class:"property column"},ca=b(()=>c("div",{class:"property-label"},"Brand Name",-1)),da={class:"content-row"},ha={class:"property column"},Sa=b(()=>c("div",{class:"property-label"},"Select font",-1)),pa={class:"property column"},ma=b(()=>c("div",{class:"property-label"},"Main color",-1)),ga={class:"content-row"},va={class:"property column"},fa=b(()=>c("div",{class:"property-label"},"Background",-1)),ya=b(()=>c("h2",null,"Preview",-1)),Ca=g({__name:"StyleEditor",setup(e){const{result:a,loading:o}=re(()=>se.get()),r=F(()=>{var t,n,i;return!a.value||!a.value.logoUrl?"":Qe((t=a.value)==null?void 0:t.logoUrl)?(n=a.value)==null?void 0:n.logoUrl:(i=a.value)!=null&&i.logoUrl?`/_editor/api/assets/${a.value.logoUrl}`:""});return(t,n)=>d(o)||!d(a)?(h(),m(le,{key:0})):(h(),C("div",ea,[aa,c("div",oa,[d(a).logoUrl?(h(),C("img",{key:0,src:d(r),class:"logo-image"},null,8,ta)):B("",!0),c("div",na,[ia,ra,c("div",sa,[$(c("input",{"onUpdate:modelValue":n[0]||(n[0]=i=>d(a).logoUrl=i),class:"property-input",type:"text"},null,512),[[R,d(a).logoUrl]])])])]),c("div",la,[c("div",ua,[ca,$(c("input",{"onUpdate:modelValue":n[1]||(n[1]=i=>d(a).brandName=i),class:"property-input",type:"text"},null,512),[[R,d(a).brandName]])])]),c("div",da,[c("div",ha,[Sa,u(me,{modelValue:d(a).fontFamily,"onUpdate:modelValue":n[2]||(n[2]=i=>d(a).fontFamily=i)},null,8,["modelValue"])]),c("div",pa,[ma,u(Z,{value:d(a).mainColor,onInput:n[3]||(n[3]=i=>d(a).mainColor=i),onChange:n[4]||(n[4]=i=>d(a).mainColor=d(a).mainColor)},null,8,["value"])])]),c("div",ga,[c("div",va,[fa,u(Ze,{modelValue:d(a).theme,"onUpdate:modelValue":n[5]||(n[5]=i=>d(a).theme=i)},null,8,["modelValue"])])]),ya,u(ce,{workspace:d(a)},null,8,["workspace"]),u(de,{model:d(a)},null,8,["model"])]))}});const Ta=L(Ca,[["__scopeId","data-v-0f97b45f"]]);export{Ta as default}; +//# sourceMappingURL=StyleEditor.2dd12e40.js.map diff --git a/abstra_statics/dist/assets/Tab.27dc38aa.js b/abstra_statics/dist/assets/Tab.27dc38aa.js new file mode 100644 index 0000000000..44829512c9 --- /dev/null +++ b/abstra_statics/dist/assets/Tab.27dc38aa.js @@ -0,0 +1,2 @@ +import{d as v,v as h,y as g,K as T,o as y,b as o,c,x as _,z as u,B as r,D as b,F as k,L as I,aa as w,a as D,G as $,t as A,U as C,N as x,q as m,ab as B,W as M,ac as N}from"./registerWidgets.cb3a7b8d.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="253742d9-f487-4c6e-b0bb-57ba18c4aee0",s._sentryDebugIdIdentifier="sentry-dbid-253742d9-f487-4c6e-b0bb-57ba18c4aee0")}catch{}})();const S={class:"tab-menu"},E={class:"tabs"},U={key:0,class:"group"},V={class:"group"},z=["onClick"],F={key:1,class:"group"},L={class:"content"},j=v({__name:"TabMenuUnderline",setup(s){const e=h([]),a=g(),d=t=>{const p=i=>i==t;e.forEach((i,n)=>{i.isActive=p(n)})},l=T(()=>e.findIndex(t=>t.isActive));return w("addTab",t=>{e.push(t)}),y(()=>{d(0)}),(t,p)=>{const i=D("icon");return o(),c("div",S,[_("div",E,[u(a).left?(o(),c("div",U,[r(t.$slots,"left",{},void 0,!0)])):b("",!0),_("div",V,[(o(!0),c(k,null,I(e,(n,f)=>(o(),c("button",{key:n.title,class:$(["form-tab",u(l)==f&&"active"]),onClick:K=>d(f)},[n.icon?(o(),A(i,{key:0,path:n.icon,fill:"#8692A5",width:"10",height:"10"},null,8,["path"])):b("",!0),C(" "+x(n.title),1)],10,z))),128))]),u(a).right?(o(),c("div",F,[r(t.$slots,"right",{},void 0,!0)])):b("",!0)]),_("div",L,[r(t.$slots,"default",{},void 0,!0)])])}}});const H=m(j,[["__scopeId","data-v-60b2affa"]]),q={class:"tab"},G=v({__name:"Tab",props:{title:null,icon:null},setup(s){const e=s,a=h({isActive:!1,title:e.title,icon:e.icon}),d=B("addTab");return y(()=>{d(a)}),(l,t)=>M((o(),c("div",q,[r(l.$slots,"default",{},void 0,!0)],512)),[[N,a.isActive]])}});const J=m(G,[["__scopeId","data-v-9c2e92c2"]]);export{H as T,J as a}; +//# sourceMappingURL=Tab.27dc38aa.js.map diff --git a/abstra_statics/dist/assets/Tab.7855495c.js b/abstra_statics/dist/assets/Tab.7855495c.js deleted file mode 100644 index b3d46835a8..0000000000 --- a/abstra_statics/dist/assets/Tab.7855495c.js +++ /dev/null @@ -1,2 +0,0 @@ -import{d as v,v as h,y as g,K as T,o as y,b as a,c,x as _,z as u,B as r,D as f,F as k,L as I,aa as w,a as D,G as $,t as A,U as C,N as x,q as m,ab as B,W as M,ac as N}from"./registerWidgets.3fe0df5a.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="c2b01c6a-af9b-440c-867f-2fbba031ac59",s._sentryDebugIdIdentifier="sentry-dbid-c2b01c6a-af9b-440c-867f-2fbba031ac59")}catch{}})();const S={class:"tab-menu"},E={class:"tabs"},U={key:0,class:"group"},V={class:"group"},z=["onClick"],F={key:1,class:"group"},L={class:"content"},j=v({__name:"TabMenuUnderline",setup(s){const e=h([]),o=g(),d=t=>{const b=i=>i==t;e.forEach((i,n)=>{i.isActive=b(n)})},l=T(()=>e.findIndex(t=>t.isActive));return w("addTab",t=>{e.push(t)}),y(()=>{d(0)}),(t,b)=>{const i=D("icon");return a(),c("div",S,[_("div",E,[u(o).left?(a(),c("div",U,[r(t.$slots,"left",{},void 0,!0)])):f("",!0),_("div",V,[(a(!0),c(k,null,I(e,(n,p)=>(a(),c("button",{key:n.title,class:$(["form-tab",u(l)==p&&"active"]),onClick:K=>d(p)},[n.icon?(a(),A(i,{key:0,path:n.icon,fill:"#8692A5",width:"10",height:"10"},null,8,["path"])):f("",!0),C(" "+x(n.title),1)],10,z))),128))]),u(o).right?(a(),c("div",F,[r(t.$slots,"right",{},void 0,!0)])):f("",!0)]),_("div",L,[r(t.$slots,"default",{},void 0,!0)])])}}});const H=m(j,[["__scopeId","data-v-60b2affa"]]),q={class:"tab"},G=v({__name:"Tab",props:{title:null,icon:null},setup(s){const e=s,o=h({isActive:!1,title:e.title,icon:e.icon}),d=B("addTab");return y(()=>{d(o)}),(l,t)=>M((a(),c("div",q,[r(l.$slots,"default",{},void 0,!0)],512)),[[N,o.isActive]])}});const J=m(G,[["__scopeId","data-v-9c2e92c2"]]);export{H as T,J as a}; -//# sourceMappingURL=Tab.7855495c.js.map diff --git a/abstra_statics/dist/assets/TableEditor.271a6f83.js b/abstra_statics/dist/assets/TableEditor.271a6f83.js deleted file mode 100644 index dcddd22899..0000000000 --- a/abstra_statics/dist/assets/TableEditor.271a6f83.js +++ /dev/null @@ -1,2 +0,0 @@ -import{a as S}from"./asyncComputed.4b275614.js";import{d as B,H as q,b as e,c as n,x as t,W as h,Z as x,F as k,L as w,t as I,z as d,I as R,D as T,X as z,N as $,a3 as H,e as m,U as M,O as J,Q as K,q as Q,r as D,ad as U,w as C,J as W}from"./registerWidgets.3fe0df5a.js";import{T as A}from"./tables.7792ead3.js";import{L}from"./CircularLoading.2fb746db.js";import{T as X,a as E}from"./Tab.7855495c.js";import{B as Z}from"./BackButton.38e76e75.js";import{D as G,r as F,C as P,g as Y,i as ee}from"./icons.9d575a00.js";import{D as te}from"./DocsButton.0b9b3a67.js";import{S as ae}from"./SaveButton.e20203fa.js";import"./activeRecord.2bc1b71f.js";import"./pubsub.909df758.js";import"./lottie.8f58e4c7.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[o]="f98a631b-9be6-472e-b4c9-94a3aa86d445",a._sentryDebugIdIdentifier="sentry-dbid-f98a631b-9be6-472e-b4c9-94a3aa86d445")}catch{}})();const N=a=>(J("data-v-36a6e10a"),a=a(),K(),a),le={class:"table-settings"},ne=N(()=>t("label",null,"Name",-1)),oe={class:"table-field"},se={class:"columns"},ue=N(()=>t("label",null,"Columns",-1)),de=["onUpdate:modelValue"],re=["onUpdate:modelValue"],ie=["onUpdate:modelValue"],ce=["onUpdate:modelValue","disabled"],pe=N(()=>t("label",null,"Not null",-1)),me=["onClick"],be=B({__name:"TableSettings",props:{table:null},setup(a){var b;const o=a,{result:c}=S(()=>A.dbTypes()),g=q();(b=o.table)==null||b.onUpdate(()=>{g.replace({name:"tableEditor",params:{tableName:o.table.name}})});function v(p){confirm(`Are you sure you want to delete column "${p}"?`)&&o.table.deleteColumn(p)}function u(){if(!c.value)return;const p=c.value[0].type,_=prompt("Enter column name");!_||o.table.addColumn(_,p)}return(p,_)=>(e(),n("div",le,[ne,t("div",oe,[h(t("input",{"onUpdate:modelValue":_[0]||(_[0]=l=>a.table.name=l),class:"table-name"},null,512),[[x,a.table.name]])]),t("div",se,[ue,(e(!0),n(k,null,w(a.table.getColumns(),l=>(e(),n("div",{key:l.id,class:"column"},[l.primary_key?(e(),I(R,{key:0,class:"column-primary-key",path:d(G)},null,8,["path"])):T("",!0),d(c)?h((e(),n("select",{key:1,"onUpdate:modelValue":i=>l.type=i,class:"column-type"},[(e(!0),n(k,null,w(d(c),i=>(e(),n("option",{key:i.type},$(i.type),1))),128))],8,de)),[[z,l.type]]):T("",!0),h(t("input",{"onUpdate:modelValue":i=>l.name=i,class:"column-name",placeholder:"Column name"},null,8,re),[[x,l.name]]),h(t("input",{"onUpdate:modelValue":i=>l.default=i,class:"column-default",placeholder:"Default value"},null,8,ie),[[x,l.default]]),h(t("input",{"onUpdate:modelValue":i=>l.not_null=i,type:"checkbox",disabled:!l.default},null,8,ce),[[H,l.not_null]]),pe,l.primary_key?T("",!0):(e(),n("button",{key:2,class:"button delete",onClick:i=>v(l.name)},[m(R,{path:d(F)},null,8,["path"])],8,me))]))),128)),t("button",{class:"button add",onClick:_[1]||(_[1]=l=>u())},[m(R,{path:d(P)},null,8,["path"]),M(" Add Column")])])]))}});const _e=Q(be,[["__scopeId","data-v-36a6e10a"]]),ve={class:"table-data"},ye={class:"column-header"},fe={class:"column-name"},he=t("th",null,null,-1),ke={key:1},we=["open"],ge={key:0,class:"editing-row-content"},Ce={class:"editing-row-header"},$e=["onUpdate:modelValue"],Te={key:0,class:"row-error"},Ve=B({__name:"TableData",props:{table:null},setup(a){const o=a,{result:c,loading:g,refetch:v}=S(()=>o.table.select()),u=D(null),b=D(null),p=D(null);function _(){!o.table||(u.value={},p.value=null,b.value=null)}function l(r){return Object.keys(r).reduce((V,s)=>{var y;return(y=o.table.getColumns().find(f=>f.name===s))!=null&&y.primary_key?{[s]:r[s]}:V},{})}async function i(){if(!(!o.table||!u.value))if(p.value){const r=await o.table.updateRow(l(p.value),u.value);r.type==="update-row:error"?b.value=r.reason:(u.value=null,p.value=null,b.value=null,v())}else{const r=await o.table.insertRow(u.value);r.type==="insert-row:error"?b.value=r.reason:(u.value=null,p.value=null,b.value=null,v())}}function O(r){!o.table||(u.value={...r},p.value={...r},b.value=null)}async function j(r){confirm("Are you sure you want to delete this row?")&&(await o.table.deleteRow(l(r)),v())}return(r,V)=>(e(),n("div",ve,[t("button",{class:"add-row",onClick:_},"Add Row"),t("table",null,[t("thead",null,[t("tr",null,[(e(!0),n(k,null,w(a.table.getColumns(),s=>(e(),n("th",{key:s.id},[t("div",ye,[t("div",fe,$(s.name),1)])]))),128)),he])]),d(g)?(e(),I(L,{key:0})):(e(),n("tbody",ke,[(e(!0),n(k,null,w(d(c),(s,y)=>(e(),n("tr",{key:y},[(e(!0),n(k,null,w(a.table.getColumns(),f=>(e(),n("td",{key:f.id},$(s[f.name]),1))),128)),t("td",null,[m(U,{class:"delete-row",path:d(F),onClick:f=>j(s)},null,8,["path","onClick"]),m(U,{class:"edit-row",path:d(Y),onClick:f=>O(s)},null,8,["path","onClick"])])]))),128))]))]),t("dialog",{class:"editing-row-container",open:!!u.value},[u.value?(e(),n("div",ge,[t("div",Ce,[M(" New Row "),m(U,{path:d(ee),class:"close",onClick:V[0]||(V[0]=s=>u.value=null)},null,8,["path"])]),(e(!0),n(k,null,w(a.table.getColumns(),s=>(e(),n("div",{key:s.id,class:"column"},[t("label",null,$(s.name),1),h(t("input",{"onUpdate:modelValue":y=>u.value[s.name]=y,type:"text"},null,8,$e),[[x,u.value[s.name]]])]))),128)),t("button",{class:"button save",onClick:i},"Save"),b.value?(e(),n("div",Te,$(b.value),1)):T("",!0)])):T("",!0)],8,we)]))}});const Fe=B({__name:"TableEditor",setup(a){const o=W(),{result:c,loading:g}=S(()=>A.get(o.params.tableName));return(v,u)=>d(g)||!d(c)?(e(),I(L,{key:0})):(e(),I(X,{key:1,class:"editor"},{left:C(()=>[m(Z,{link:"/_editor/tables"})]),right:C(()=>[m(te,{path:"tables/overview"}),m(ae,{model:d(c)},null,8,["model"])]),default:C(()=>[m(E,{title:"Table data"},{default:C(()=>[m(Ve,{table:d(c)},null,8,["table"])]),_:1}),m(E,{title:"Settings"},{default:C(()=>[m(_e,{table:d(c)},null,8,["table"])]),_:1})]),_:1}))}});export{Fe as default}; -//# sourceMappingURL=TableEditor.271a6f83.js.map diff --git a/abstra_statics/dist/assets/TableEditor.b499e372.js b/abstra_statics/dist/assets/TableEditor.b499e372.js new file mode 100644 index 0000000000..7030ce9c8f --- /dev/null +++ b/abstra_statics/dist/assets/TableEditor.b499e372.js @@ -0,0 +1,2 @@ +import{a as S}from"./asyncComputed.31994732.js";import{d as B,H as q,b as e,c as n,x as t,W as h,Z as x,F as k,L as w,t as I,z as d,I as R,D as T,X as z,N as $,a3 as H,e as m,U as M,O as J,Q as K,q as Q,r as D,ad as U,w as C,J as W}from"./registerWidgets.cb3a7b8d.js";import{T as A}from"./tables.b367c7a5.js";import{L}from"./CircularLoading.1e68d2b1.js";import{T as X,a as E}from"./Tab.27dc38aa.js";import{B as Z}from"./BackButton.677abc51.js";import{D as G,r as F,C as P,g as Y,i as ee}from"./icons.39dfa322.js";import{D as te}from"./DocsButton.495d0473.js";import{S as le}from"./SaveButton.b678d3d3.js";import"./activeRecord.adfc6223.js";import"./pubsub.f85a17d2.js";import"./lottie.234eb92e.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[o]="917c7d1c-001a-4474-a808-5dfc34c3cd99",l._sentryDebugIdIdentifier="sentry-dbid-917c7d1c-001a-4474-a808-5dfc34c3cd99")}catch{}})();const N=l=>(J("data-v-36a6e10a"),l=l(),K(),l),ae={class:"table-settings"},ne=N(()=>t("label",null,"Name",-1)),oe={class:"table-field"},se={class:"columns"},ue=N(()=>t("label",null,"Columns",-1)),de=["onUpdate:modelValue"],re=["onUpdate:modelValue"],ie=["onUpdate:modelValue"],ce=["onUpdate:modelValue","disabled"],pe=N(()=>t("label",null,"Not null",-1)),me=["onClick"],_e=B({__name:"TableSettings",props:{table:null},setup(l){var _;const o=l,{result:c}=S(()=>A.dbTypes()),g=q();(_=o.table)==null||_.onUpdate(()=>{g.replace({name:"tableEditor",params:{tableName:o.table.name}})});function v(p){confirm(`Are you sure you want to delete column "${p}"?`)&&o.table.deleteColumn(p)}function u(){if(!c.value)return;const p=c.value[0].type,b=prompt("Enter column name");!b||o.table.addColumn(b,p)}return(p,b)=>(e(),n("div",ae,[ne,t("div",oe,[h(t("input",{"onUpdate:modelValue":b[0]||(b[0]=a=>l.table.name=a),class:"table-name"},null,512),[[x,l.table.name]])]),t("div",se,[ue,(e(!0),n(k,null,w(l.table.getColumns(),a=>(e(),n("div",{key:a.id,class:"column"},[a.primary_key?(e(),I(R,{key:0,class:"column-primary-key",path:d(G)},null,8,["path"])):T("",!0),d(c)?h((e(),n("select",{key:1,"onUpdate:modelValue":i=>a.type=i,class:"column-type"},[(e(!0),n(k,null,w(d(c),i=>(e(),n("option",{key:i.type},$(i.type),1))),128))],8,de)),[[z,a.type]]):T("",!0),h(t("input",{"onUpdate:modelValue":i=>a.name=i,class:"column-name",placeholder:"Column name"},null,8,re),[[x,a.name]]),h(t("input",{"onUpdate:modelValue":i=>a.default=i,class:"column-default",placeholder:"Default value"},null,8,ie),[[x,a.default]]),h(t("input",{"onUpdate:modelValue":i=>a.not_null=i,type:"checkbox",disabled:!a.default},null,8,ce),[[H,a.not_null]]),pe,a.primary_key?T("",!0):(e(),n("button",{key:2,class:"button delete",onClick:i=>v(a.name)},[m(R,{path:d(F)},null,8,["path"])],8,me))]))),128)),t("button",{class:"button add",onClick:b[1]||(b[1]=a=>u())},[m(R,{path:d(P)},null,8,["path"]),M(" Add Column")])])]))}});const be=Q(_e,[["__scopeId","data-v-36a6e10a"]]),ve={class:"table-data"},ye={class:"column-header"},fe={class:"column-name"},he=t("th",null,null,-1),ke={key:1},we=["open"],ge={key:0,class:"editing-row-content"},Ce={class:"editing-row-header"},$e=["onUpdate:modelValue"],Te={key:0,class:"row-error"},Ve=B({__name:"TableData",props:{table:null},setup(l){const o=l,{result:c,loading:g,refetch:v}=S(()=>o.table.select()),u=D(null),_=D(null),p=D(null);function b(){!o.table||(u.value={},p.value=null,_.value=null)}function a(r){return Object.keys(r).reduce((V,s)=>{var y;return(y=o.table.getColumns().find(f=>f.name===s))!=null&&y.primary_key?{[s]:r[s]}:V},{})}async function i(){if(!(!o.table||!u.value))if(p.value){const r=await o.table.updateRow(a(p.value),u.value);r.type==="update-row:error"?_.value=r.reason:(u.value=null,p.value=null,_.value=null,v())}else{const r=await o.table.insertRow(u.value);r.type==="insert-row:error"?_.value=r.reason:(u.value=null,p.value=null,_.value=null,v())}}function O(r){!o.table||(u.value={...r},p.value={...r},_.value=null)}async function j(r){confirm("Are you sure you want to delete this row?")&&(await o.table.deleteRow(a(r)),v())}return(r,V)=>(e(),n("div",ve,[t("button",{class:"add-row",onClick:b},"Add Row"),t("table",null,[t("thead",null,[t("tr",null,[(e(!0),n(k,null,w(l.table.getColumns(),s=>(e(),n("th",{key:s.id},[t("div",ye,[t("div",fe,$(s.name),1)])]))),128)),he])]),d(g)?(e(),I(L,{key:0})):(e(),n("tbody",ke,[(e(!0),n(k,null,w(d(c),(s,y)=>(e(),n("tr",{key:y},[(e(!0),n(k,null,w(l.table.getColumns(),f=>(e(),n("td",{key:f.id},$(s[f.name]),1))),128)),t("td",null,[m(U,{class:"delete-row",path:d(F),onClick:f=>j(s)},null,8,["path","onClick"]),m(U,{class:"edit-row",path:d(Y),onClick:f=>O(s)},null,8,["path","onClick"])])]))),128))]))]),t("dialog",{class:"editing-row-container",open:!!u.value},[u.value?(e(),n("div",ge,[t("div",Ce,[M(" New Row "),m(U,{path:d(ee),class:"close",onClick:V[0]||(V[0]=s=>u.value=null)},null,8,["path"])]),(e(!0),n(k,null,w(l.table.getColumns(),s=>(e(),n("div",{key:s.id,class:"column"},[t("label",null,$(s.name),1),h(t("input",{"onUpdate:modelValue":y=>u.value[s.name]=y,type:"text"},null,8,$e),[[x,u.value[s.name]]])]))),128)),t("button",{class:"button save",onClick:i},"Save"),_.value?(e(),n("div",Te,$(_.value),1)):T("",!0)])):T("",!0)],8,we)]))}});const Fe=B({__name:"TableEditor",setup(l){const o=W(),{result:c,loading:g}=S(()=>A.get(o.params.tableName));return(v,u)=>d(g)||!d(c)?(e(),I(L,{key:0})):(e(),I(X,{key:1,class:"editor"},{left:C(()=>[m(Z,{link:"/_editor/tables"})]),right:C(()=>[m(te,{path:"tables/overview"}),m(le,{model:d(c)},null,8,["model"])]),default:C(()=>[m(E,{title:"Table data"},{default:C(()=>[m(Ve,{table:d(c)},null,8,["table"])]),_:1}),m(E,{title:"Settings"},{default:C(()=>[m(be,{table:d(c)},null,8,["table"])]),_:1})]),_:1}))}});export{Fe as default}; +//# sourceMappingURL=TableEditor.b499e372.js.map diff --git a/abstra_statics/dist/assets/Tables.bc03580c.js b/abstra_statics/dist/assets/Tables.bc03580c.js deleted file mode 100644 index 2cf45c1acd..0000000000 --- a/abstra_statics/dist/assets/Tables.bc03580c.js +++ /dev/null @@ -1,2 +0,0 @@ -import{d as y,K as _,b as g,t as T,z as d,H as w}from"./registerWidgets.3fe0df5a.js";import{f as C,g as h,h as k}from"./icons.9d575a00.js";import{a as D}from"./asyncComputed.4b275614.js";import{T as u}from"./tables.7792ead3.js";import{R as I}from"./RuntimeList.8704ae12.js";import"./activeRecord.2bc1b71f.js";import"./pubsub.909df758.js";import"./DropdownMenu.9edc1223.js";import"./CircularLoading.2fb746db.js";import"./lottie.8f58e4c7.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[o]="a44f42cd-c23c-4d92-99c4-4f09b4e0de04",n._sentryDebugIdIdentifier="sentry-dbid-a44f42cd-c23c-4d92-99c4-4f09b4e0de04")}catch{}})();const H=y({__name:"Tables",setup(n){const o=w(),{loading:c,result:l,refetch:r}=D(()=>u.list()),i=({key:e})=>o.push({path:`/_editor/table/${encodeURIComponent(e)}`}),m=async({key:e})=>{var t,a;await((a=(t=l.value)==null?void 0:t.find(s=>s.name===e))==null?void 0:a.duplicate()),r()},b=async()=>{const e=await u.create();i({key:e.name})},p=async({key:e})=>{var t,a;confirm("Are you sure you want to delete this table?")&&(await((a=(t=l.value)==null?void 0:t.find(s=>s.name===e))==null?void 0:a.delete()),r())},f=_(()=>{var e,t;return{columns:[{name:"Table Name"},{name:"Table Actions"}],rows:(t=(e=l.value)==null?void 0:e.map(a=>({key:a.name,cells:[{text:a.name,classes:["title","centered"],link:`/_editor/table/${encodeURIComponent(a.name)}`},{text:"",classes:["centered"],actions:[{icon:C,label:"Delete",onClick:p,dangerous:!0},{icon:h,label:"Edit Table",onClick:i},{icon:k,label:"Duplicate",onClick:m}]}]})))!=null?t:[]}});return(e,t)=>(g(),T(I,{loading:d(c),title:"Database Tables",description:"Create and manage your database tables here.","create-button-text":"Create Table","empty-title":"No tables here yet",table:d(f),onCreate:b},null,8,["loading","table"]))}});export{H as default}; -//# sourceMappingURL=Tables.bc03580c.js.map diff --git a/abstra_statics/dist/assets/Tables.d21da407.js b/abstra_statics/dist/assets/Tables.d21da407.js new file mode 100644 index 0000000000..94ec3c533b --- /dev/null +++ b/abstra_statics/dist/assets/Tables.d21da407.js @@ -0,0 +1,2 @@ +import{d as y,K as _,b as g,t as T,z as d,H as w}from"./registerWidgets.cb3a7b8d.js";import{f as C,g as h,h as k}from"./icons.39dfa322.js";import{a as D}from"./asyncComputed.31994732.js";import{T as u}from"./tables.b367c7a5.js";import{R as I}from"./RuntimeList.ec9e2b4b.js";import"./activeRecord.adfc6223.js";import"./pubsub.f85a17d2.js";import"./DropdownMenu.c973057b.js";import"./CircularLoading.1e68d2b1.js";import"./lottie.234eb92e.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[o]="f631f9ff-93aa-4954-b7d0-f6818ea4ad60",n._sentryDebugIdIdentifier="sentry-dbid-f631f9ff-93aa-4954-b7d0-f6818ea4ad60")}catch{}})();const H=y({__name:"Tables",setup(n){const o=w(),{loading:r,result:l,refetch:i}=D(()=>u.list()),c=({key:e})=>o.push({path:`/_editor/table/${encodeURIComponent(e)}`}),m=async({key:e})=>{var t,a;await((a=(t=l.value)==null?void 0:t.find(s=>s.name===e))==null?void 0:a.duplicate()),i()},b=async()=>{const e=await u.create();c({key:e.name})},f=async({key:e})=>{var t,a;confirm("Are you sure you want to delete this table?")&&(await((a=(t=l.value)==null?void 0:t.find(s=>s.name===e))==null?void 0:a.delete()),i())},p=_(()=>{var e,t;return{columns:[{name:"Table Name"},{name:"Table Actions"}],rows:(t=(e=l.value)==null?void 0:e.map(a=>({key:a.name,cells:[{text:a.name,classes:["title","centered"],link:`/_editor/table/${encodeURIComponent(a.name)}`},{text:"",classes:["centered"],actions:[{icon:C,label:"Delete",onClick:f,dangerous:!0},{icon:h,label:"Edit Table",onClick:c},{icon:k,label:"Duplicate",onClick:m}]}]})))!=null?t:[]}});return(e,t)=>(g(),T(I,{loading:d(r),title:"Database Tables",description:"Create and manage your database tables here.","create-button-text":"Create Table","empty-title":"No tables here yet",table:d(p),onCreate:b},null,8,["loading","table"]))}});export{H as default}; +//# sourceMappingURL=Tables.d21da407.js.map diff --git a/abstra_statics/dist/assets/Tooltip.93ae2394.js b/abstra_statics/dist/assets/Tooltip.93ae2394.js deleted file mode 100644 index 05c0360f43..0000000000 --- a/abstra_statics/dist/assets/Tooltip.93ae2394.js +++ /dev/null @@ -1,2 +0,0 @@ -import{d as y,r as p,K as x,b,c as g,B as m,x as d,N as v,A as B,z as w,q as D}from"./registerWidgets.3fe0df5a.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="a20f598f-7e09-4fd3-8e6c-c131308be129",t._sentryDebugIdIdentifier="sentry-dbid-a20f598f-7e09-4fd3-8e6c-c131308be129")}catch{}})();const k={class:"text"},I=y({__name:"Tooltip",props:{text:{type:String,required:!0},left:{type:Number},top:{type:Number},fixed:{type:Boolean,default:!1}},setup(t){const e=t,s=p(Date.now()),f=()=>{s.value=Date.now()},n=p(null),c=()=>{var a,l,i;const o=(a=n.value)==null?void 0:a.getBoundingClientRect();if(!o)return{};const{x:r,y:_}=o;return s.value,{position:"fixed",top:`${_+((l=e.top)!=null?l:0)}px`,left:`${r+((i=e.left)!=null?i:0)}px`}},u=x(()=>{var o;return e.fixed?c():{left:`${(o=e.left)!=null?o:-14}px`,...e.top?{top:`${e.top}px`}:{}}});return(o,r)=>(b(),g("div",{ref_key:"tooltipBox",ref:n,class:"tooltip-box",onMouseenter:f},[m(o.$slots,"default",{},void 0,!0),d("div",{class:"tooltip",style:B(w(u))},[d("span",k,v(t.text),1)],4)],544))}});const $=D(I,[["__scopeId","data-v-74636348"]]);export{$ as T}; -//# sourceMappingURL=Tooltip.93ae2394.js.map diff --git a/abstra_statics/dist/assets/Tooltip.f700ff7d.js b/abstra_statics/dist/assets/Tooltip.f700ff7d.js new file mode 100644 index 0000000000..752d251b80 --- /dev/null +++ b/abstra_statics/dist/assets/Tooltip.f700ff7d.js @@ -0,0 +1,2 @@ +import{d as y,r as i,K as b,b as x,c as g,B as m,x as p,N as v,A as B,z as w,q as D}from"./registerWidgets.cb3a7b8d.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="fe0ebb52-64c1-44da-bbea-f3dc72ea8fd5",t._sentryDebugIdIdentifier="sentry-dbid-fe0ebb52-64c1-44da-bbea-f3dc72ea8fd5")}catch{}})();const k={class:"text"},I=y({__name:"Tooltip",props:{text:{type:String,required:!0},left:{type:Number},top:{type:Number},fixed:{type:Boolean,default:!1}},setup(t){const e=t,s=i(Date.now()),f=()=>{s.value=Date.now()},n=i(null),c=()=>{var r,l,d;const o=(r=n.value)==null?void 0:r.getBoundingClientRect();if(!o)return{};const{x:a,y:_}=o;return s.value,{position:"fixed",top:`${_+((l=e.top)!=null?l:0)}px`,left:`${a+((d=e.left)!=null?d:0)}px`}},u=b(()=>{var o;return e.fixed?c():{left:`${(o=e.left)!=null?o:-14}px`,...e.top?{top:`${e.top}px`}:{}}});return(o,a)=>(x(),g("div",{ref_key:"tooltipBox",ref:n,class:"tooltip-box",onMouseenter:f},[m(o.$slots,"default",{},void 0,!0),p("div",{class:"tooltip",style:B(w(u))},[p("span",k,v(t.text),1)],4)],544))}});const $=D(I,[["__scopeId","data-v-74636348"]]);export{$ as T}; +//# sourceMappingURL=Tooltip.f700ff7d.js.map diff --git a/abstra_statics/dist/assets/UnsavedChangesHandler.vue_vue_type_script_setup_true_lang.a909e3ed.js b/abstra_statics/dist/assets/UnsavedChangesHandler.vue_vue_type_script_setup_true_lang.35587b62.js similarity index 81% rename from abstra_statics/dist/assets/UnsavedChangesHandler.vue_vue_type_script_setup_true_lang.a909e3ed.js rename to abstra_statics/dist/assets/UnsavedChangesHandler.vue_vue_type_script_setup_true_lang.35587b62.js index 2b251b6a56..d39cb77439 100644 --- a/abstra_statics/dist/assets/UnsavedChangesHandler.vue_vue_type_script_setup_true_lang.a909e3ed.js +++ b/abstra_statics/dist/assets/UnsavedChangesHandler.vue_vue_type_script_setup_true_lang.35587b62.js @@ -1,2 +1,2 @@ -var le=Object.defineProperty;var ie=(s,e,t)=>e in s?le(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var L=(s,e,t)=>(ie(s,typeof e!="symbol"?e+"":e,t),t);import{d as T,v as K,K as q,H as ue,b as d,c as h,z as c,W as F,Z as P,x as n,D as M,N as I,e as C,ad as ce,U as J,O as W,Q as Y,q as j,r as _,a2 as G,ae as de,o as Q,Y as Z,I as S,G as R,A as pe,F as ve,L as he,af as fe,J as me,a as ge,t as _e,ag as ye,ah as be}from"./registerWidgets.3fe0df5a.js";import{p as we,n as z,o as H,q as N,r as ke}from"./icons.9d575a00.js";import{a as V}from"./asyncComputed.4b275614.js";import{F as Ce}from"./forms.9088f82a.js";import{D as Se}from"./dashes.9a4cf820.js";import{H as Ie}from"./hooks.56004b79.js";import{J as O}from"./jobs.99d61147.js";import{W as $e}from"./workspaces.220ebb5a.js";import{u as D}from"./uuid.8e57fc19.js";import{L as xe}from"./login.7c65daa3.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="33afea8a-94b3-4b9b-94b8-c2871e9e4d50",s._sentryDebugIdIdentifier="sentry-dbid-33afea8a-94b3-4b9b-94b8-c2871e9e4d50")}catch{}})();const X=s=>(W("data-v-0dfc8705"),s=s(),Y(),s),Ee={class:"runtime-settings"},Le={key:0,class:"field"},Re=X(()=>n("div",{class:"label"},"Path",-1)),Me={class:"field"},De=X(()=>n("div",{class:"label"},"Code",-1)),Te={class:"input-row"},Ue={key:1,class:"root-path loading"},Ae={class:"path-feedback"},Be={key:1,class:"error"},Fe=T({__name:"RuntimeCommonSettings",props:{runtime:null},setup(s){const e=s,t=K({pathError:null}),{result:o}=V(()=>$e.get()),l=()=>{!o.value||!e.runtime.file||o.value.openFile(e.runtime.file)},g=q(()=>{var a;return(a=e.runtime.file)!=null&&a.endsWith(".py")?null:"It should be a .py file"}),p=()=>{!o.value||!y.value||o.value.openFile(".")},i=ue(),{result:y}=V(()=>fetch("/_editor/api/workspace/root-path").then(a=>a.text()));return e.runtime.onUpdate(a=>{if(e.runtime instanceof O||!a||!("path"in a)||!(a!=null&&a.path))return;const u=[{runtime:Ce,basePath:"form"},{runtime:Ie,basePath:"hook"},{runtime:Se,basePath:"dash"}].find(b=>e.runtime instanceof b.runtime);if(!u)throw new Error(`Unknown runtime type ${e.runtime}`);i.push({path:`/_editor/${u.basePath}/${encodeURIComponent(a.path)}`})}),(a,v)=>(d(),h("div",Ee,[s.runtime instanceof c(O)?M("",!0):(d(),h("div",Le,[Re,F(n("input",{"onUpdate:modelValue":v[0]||(v[0]=u=>s.runtime.path=u),class:"path-input",type:"text"},null,512),[[P,s.runtime.path]])])),n("div",Me,[De,n("div",Te,[c(y)?(d(),h("button",{key:0,class:"root-path",onClick:v[1]||(v[1]=u=>p())},I(c(y)),1)):(d(),h("span",Ue," Loading... ")),F(n("input",{"onUpdate:modelValue":v[2]||(v[2]=u=>s.runtime.file=u),type:"text"},null,512),[[P,s.runtime.file]]),n("button",{class:"open-file-icon",onClick:v[3]||(v[3]=u=>l())},[C(ce,{path:c(we)},null,8,["path"]),J(" Open in editor ")])]),n("div",Ae,I(c(g)),1)]),t.pathError?(d(),h("div",Be,I(t.pathError),1)):M("",!0)]))}});const ct=j(Fe,[["__scopeId","data-v-0dfc8705"]]);class ee{constructor(){L(this,"logState",K({log:[]}));L(this,"_listeners",{})}static create(){return new ee}get logs(){return this.logState.log}log(e,t){if(e.type!=="restart"&&e.log.trim()==="")return;const o=t?this.logs.find(l=>l.id===t):null;return o?Object.assign(o,e):this.logs.push({...e,id:t||D()}),this.notifyListeners(e),t}clear(){this.logState.log=[]}listen(e){const t=D();return this._listeners[t]=e,t}unlisten(e){delete this._listeners[e]}notifyListeners(e){Object.values(this._listeners).forEach(t=>t(e))}}class Pe{static async*sendMessage(e,t){var g;const l=(g=(await fetch("/_editor/api/ai/message",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:e,runtime:t})})).body)==null?void 0:g.getReader();if(!l)throw new Error("No response body");for(;;){const p=await l.read();if(p.done)break;yield new TextDecoder().decode(p.value)}}}const ze=s=>(W("data-v-09991f14"),s=s(),Y(),s),He={class:"smart-console"},Ne={class:"header"},Ve={class:"left"},Oe={class:"right"},Ke={class:"cli"},qe={class:"left"},Je=ze(()=>n("div",{class:"entry ai-output"}," Hello there! I'm both an output console and AI assistant. You can ask me anything. ",-1)),We={key:1,class:"local-entry"},Ye={class:"input"},je=["pointer-events","onKeydown"],Ge={class:"right"},Qe=T({__name:"SmartConsole",props:{inputEnabled:{type:Boolean},formCode:null,runtime:null,logService:null},emits:["eval-request","clear-terminal","restart","enter"],setup(s,{emit:e}){const t=s,o=_(""),l=_(null),g=me(),p=_(!1),i=_(!1),y=()=>{t.logService.clear(),e("restart")},a=()=>{b.value=b.value==="assistant"?"debugger":"assistant"};function v(r){switch(r.type){case"ai-input":return{role:"user",content:r.log};case"ai-output":return{role:"assistant",content:r.log};case"stderr":case"stdout":return{role:"user",content:r.log};case"restart":return{role:"user",content:"-- new session --"};default:throw new Error(`Unknown log type: ${r.type}`)}}G(g,()=>{t.logService.clear(),e("clear-terminal")});const u=_(null),b=_("assistant"),te=async r=>{var f;if(r.preventDefault(),o.value=((f=u.value)==null?void 0:f.innerText)||"",r.shiftKey){document.execCommand("insertLineBreak");return}u.value&&(u.value.innerText=""),b.value==="assistant"?await se():await ne()},se=async()=>{var f;if(e("enter",o.value),t.logService.log({type:"ai-input",log:o.value}),o.value="",!i.value){t.logService.log({type:"stderr",log:"Please login to use the AI assistant."});return}p.value=!0;const r={role:"user",content:(f=t.formCode)!=null?f:""};try{const k=D();let m="";const x=Pe.sendMessage([r,...t.logService.logs.map(E=>v(E)),{role:"user",content:o.value}],t.runtime);for await(const E of x)m+=E,t.logService.log({type:"ai-output",log:m},k)}catch(k){t.logService.log({type:"ai-output",log:"Sorry, I don't know how to answer that."}),console.error(k),ye(k)}finally{p.value=!1}},ne=async()=>{o.value&&(t.logService.log({type:"eval-input",log:`>>> ${o.value}`}),e("eval-request",o.value),o.value="")},oe=()=>{t.logService.clear()};t.logService.listen(async r=>{r.type!=="restart"&&(w.value=!0,await de(),l.value&&(l.value.scrollTop=l.value.scrollHeight))});const w=_(!1),U=_(400),ae=q(()=>({height:`${U.value}px`})),$=_(!1),re=()=>$.value=!0,A=r=>{!$.value||(U.value=document.body.clientHeight-r.clientY)},B=()=>$.value=!1;return Q(()=>{document.addEventListener("mousemove",A),document.addEventListener("mouseup",B),xe.get().then(r=>i.value=!!r)}),Z(()=>{document.removeEventListener("mousemove",A),document.removeEventListener("mouseup",B)}),(r,f)=>{const k=ge("Markdown");return d(),h("div",He,[n("div",Ne,[n("div",Ve,[C(S,{path:b.value==="assistant"?c(z):c(H)},null,8,["path"]),J(" Smart Console ")]),n("div",Oe,[n("div",{class:"changes-container"},[n("button",{class:"header-button",onClick:y},"Restart")]),n("div",{class:"toggle-button",onClick:f[0]||(f[0]=m=>w.value=!w.value)},[C(S,{class:R(["icon",{open:w.value}]),path:c(N),fill:"#fff"},null,8,["class","path"])])])]),w.value?(d(),h("div",{key:0,class:"terminal",style:pe(c(ae))},[n("div",{class:"resize-handler",onMousedown:re},null,32),n("div",Ke,[n("div",qe,[n("div",{ref_key:"entriesContainer",ref:l,class:"entries"},[Je,(d(!0),h(ve,null,he(t.logService.logs,(m,x)=>(d(),h("div",{key:x,class:R([m.type,"entry"])},[m.type==="ai-output"?(d(),_e(k,{key:0,source:m.log},null,8,["source"])):(d(),h("div",We,I(m.type==="restart"?"-- restarted --":m.log),1))],2))),128))],512),n("div",Ye,[C(S,{class:R(["icon",{open:w.value}]),path:c(N)},null,8,["class","path"]),n("div",{ref_key:"inputRef",ref:u,class:"input-text",contenteditable:"","pointer-events":p.value?"none":"auto",placeholder:"Ask AI anything",onKeydown:fe(te,["enter"])},null,40,je)])]),n("div",Ge,[n("div",{class:"icons",onClick:oe},[C(S,{class:"icon",path:c(ke)},null,8,["path"])]),n("div",null,[C(S,{class:"icon clickable",path:b.value==="assistant"?c(z):c(H),onClick:f[1]||(f[1]=m=>a())},null,8,["path"])])])])],4)):M("",!0)])}}});const dt=j(Qe,[["__scopeId","data-v-09991f14"]]),Ze={class:"unsaved-changes-handler"},pt=T({__name:"UnsavedChangesHandler",props:{hasChanges:{type:Boolean}},setup(s){const e=s,t="You have unsaved changes. Are you sure you want to leave?",o=i=>(i=i||window.event,i&&(i.returnValue=t),t),l=()=>{window.addEventListener("beforeunload",o)};be((i,y,a)=>{if(!e.hasChanges)return a();confirm(t)?a():a(!1)});const g=()=>window.removeEventListener("beforeunload",o),p=i=>i?l():g();return G(()=>e.hasChanges,p),Q(()=>p(e.hasChanges)),Z(g),(i,y)=>(d(),h("div",Ze))}});export{ee as L,ct as R,dt as S,pt as _}; -//# sourceMappingURL=UnsavedChangesHandler.vue_vue_type_script_setup_true_lang.a909e3ed.js.map +var le=Object.defineProperty;var ie=(s,e,t)=>e in s?le(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var L=(s,e,t)=>(ie(s,typeof e!="symbol"?e+"":e,t),t);import{d as T,v as K,K as q,H as ue,b as d,c as h,z as c,W as F,Z as P,x as n,D as M,N as I,e as C,ad as ce,U as J,O as W,Q as Y,q as j,r as _,a2 as G,ae as de,o as Q,Y as Z,I as S,G as R,A as pe,F as ve,L as he,af as fe,J as me,a as ge,t as _e,ag as ye,ah as we}from"./registerWidgets.cb3a7b8d.js";import{p as be,n as z,o as H,q as N,r as ke}from"./icons.39dfa322.js";import{a as V}from"./asyncComputed.31994732.js";import{F as Ce}from"./forms.f5353181.js";import{D as Se}from"./dashes.3c9b04b3.js";import{H as Ie}from"./hooks.fd4bb08f.js";import{J as O}from"./jobs.d0693d2f.js";import{W as $e}from"./workspaces.5f21a554.js";import{u as D}from"./uuid.0e63ad64.js";import{L as xe}from"./login.ce8787fb.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="7ad43b94-0666-49c7-aae6-bea2ad5d7a42",s._sentryDebugIdIdentifier="sentry-dbid-7ad43b94-0666-49c7-aae6-bea2ad5d7a42")}catch{}})();const X=s=>(W("data-v-0dfc8705"),s=s(),Y(),s),Ee={class:"runtime-settings"},Le={key:0,class:"field"},Re=X(()=>n("div",{class:"label"},"Path",-1)),Me={class:"field"},De=X(()=>n("div",{class:"label"},"Code",-1)),Te={class:"input-row"},Ue={key:1,class:"root-path loading"},Ae={class:"path-feedback"},Be={key:1,class:"error"},Fe=T({__name:"RuntimeCommonSettings",props:{runtime:null},setup(s){const e=s,t=K({pathError:null}),{result:o}=V(()=>$e.get()),l=()=>{!o.value||!e.runtime.file||o.value.openFile(e.runtime.file)},g=q(()=>{var a;return(a=e.runtime.file)!=null&&a.endsWith(".py")?null:"It should be a .py file"}),p=()=>{!o.value||!y.value||o.value.openFile(".")},i=ue(),{result:y}=V(()=>fetch("/_editor/api/workspace/root-path").then(a=>a.text()));return e.runtime.onUpdate(a=>{if(e.runtime instanceof O||!a||!("path"in a)||!(a!=null&&a.path))return;const u=[{runtime:Ce,basePath:"form"},{runtime:Ie,basePath:"hook"},{runtime:Se,basePath:"dash"}].find(w=>e.runtime instanceof w.runtime);if(!u)throw new Error(`Unknown runtime type ${e.runtime}`);i.push({path:`/_editor/${u.basePath}/${encodeURIComponent(a.path)}`})}),(a,v)=>(d(),h("div",Ee,[s.runtime instanceof c(O)?M("",!0):(d(),h("div",Le,[Re,F(n("input",{"onUpdate:modelValue":v[0]||(v[0]=u=>s.runtime.path=u),class:"path-input",type:"text"},null,512),[[P,s.runtime.path]])])),n("div",Me,[De,n("div",Te,[c(y)?(d(),h("button",{key:0,class:"root-path",onClick:v[1]||(v[1]=u=>p())},I(c(y)),1)):(d(),h("span",Ue," Loading... ")),F(n("input",{"onUpdate:modelValue":v[2]||(v[2]=u=>s.runtime.file=u),type:"text"},null,512),[[P,s.runtime.file]]),n("button",{class:"open-file-icon",onClick:v[3]||(v[3]=u=>l())},[C(ce,{path:c(be)},null,8,["path"]),J(" Open in editor ")])]),n("div",Ae,I(c(g)),1)]),t.pathError?(d(),h("div",Be,I(t.pathError),1)):M("",!0)]))}});const ct=j(Fe,[["__scopeId","data-v-0dfc8705"]]);class ee{constructor(){L(this,"logState",K({log:[]}));L(this,"_listeners",{})}static create(){return new ee}get logs(){return this.logState.log}log(e,t){if(e.type!=="restart"&&e.log.trim()==="")return;const o=t?this.logs.find(l=>l.id===t):null;return o?Object.assign(o,e):this.logs.push({...e,id:t||D()}),this.notifyListeners(e),t}clear(){this.logState.log=[]}listen(e){const t=D();return this._listeners[t]=e,t}unlisten(e){delete this._listeners[e]}notifyListeners(e){Object.values(this._listeners).forEach(t=>t(e))}}class Pe{static async*sendMessage(e,t){var g;const l=(g=(await fetch("/_editor/api/ai/message",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:e,runtime:t})})).body)==null?void 0:g.getReader();if(!l)throw new Error("No response body");for(;;){const p=await l.read();if(p.done)break;yield new TextDecoder().decode(p.value)}}}const ze=s=>(W("data-v-09991f14"),s=s(),Y(),s),He={class:"smart-console"},Ne={class:"header"},Ve={class:"left"},Oe={class:"right"},Ke={class:"cli"},qe={class:"left"},Je=ze(()=>n("div",{class:"entry ai-output"}," Hello there! I'm both an output console and AI assistant. You can ask me anything. ",-1)),We={key:1,class:"local-entry"},Ye={class:"input"},je=["pointer-events","onKeydown"],Ge={class:"right"},Qe=T({__name:"SmartConsole",props:{inputEnabled:{type:Boolean},formCode:null,runtime:null,logService:null},emits:["eval-request","clear-terminal","restart","enter"],setup(s,{emit:e}){const t=s,o=_(""),l=_(null),g=me(),p=_(!1),i=_(!1),y=()=>{t.logService.clear(),e("restart")},a=()=>{w.value=w.value==="assistant"?"debugger":"assistant"};function v(r){switch(r.type){case"ai-input":return{role:"user",content:r.log};case"ai-output":return{role:"assistant",content:r.log};case"stderr":case"stdout":return{role:"user",content:r.log};case"restart":return{role:"user",content:"-- new session --"};default:throw new Error(`Unknown log type: ${r.type}`)}}G(g,()=>{t.logService.clear(),e("clear-terminal")});const u=_(null),w=_("assistant"),te=async r=>{var f;if(r.preventDefault(),o.value=((f=u.value)==null?void 0:f.innerText)||"",r.shiftKey){document.execCommand("insertLineBreak");return}u.value&&(u.value.innerText=""),w.value==="assistant"?await se():await ne()},se=async()=>{var f;if(e("enter",o.value),t.logService.log({type:"ai-input",log:o.value}),o.value="",!i.value){t.logService.log({type:"stderr",log:"Please login to use the AI assistant."});return}p.value=!0;const r={role:"user",content:(f=t.formCode)!=null?f:""};try{const k=D();let m="";const x=Pe.sendMessage([r,...t.logService.logs.map(E=>v(E)),{role:"user",content:o.value}],t.runtime);for await(const E of x)m+=E,t.logService.log({type:"ai-output",log:m},k)}catch(k){t.logService.log({type:"ai-output",log:"Sorry, I don't know how to answer that."}),console.error(k),ye(k)}finally{p.value=!1}},ne=async()=>{o.value&&(t.logService.log({type:"eval-input",log:`>>> ${o.value}`}),e("eval-request",o.value),o.value="")},oe=()=>{t.logService.clear()};t.logService.listen(async r=>{r.type!=="restart"&&(b.value=!0,await de(),l.value&&(l.value.scrollTop=l.value.scrollHeight))});const b=_(!1),U=_(400),ae=q(()=>({height:`${U.value}px`})),$=_(!1),re=()=>$.value=!0,A=r=>{!$.value||(U.value=document.body.clientHeight-r.clientY)},B=()=>$.value=!1;return Q(()=>{document.addEventListener("mousemove",A),document.addEventListener("mouseup",B),xe.get().then(r=>i.value=!!r)}),Z(()=>{document.removeEventListener("mousemove",A),document.removeEventListener("mouseup",B)}),(r,f)=>{const k=ge("Markdown");return d(),h("div",He,[n("div",Ne,[n("div",Ve,[C(S,{path:w.value==="assistant"?c(z):c(H)},null,8,["path"]),J(" Smart Console ")]),n("div",Oe,[n("div",{class:"changes-container"},[n("button",{class:"header-button",onClick:y},"Restart")]),n("div",{class:"toggle-button",onClick:f[0]||(f[0]=m=>b.value=!b.value)},[C(S,{class:R(["icon",{open:b.value}]),path:c(N),fill:"#fff"},null,8,["class","path"])])])]),b.value?(d(),h("div",{key:0,class:"terminal",style:pe(c(ae))},[n("div",{class:"resize-handler",onMousedown:re},null,32),n("div",Ke,[n("div",qe,[n("div",{ref_key:"entriesContainer",ref:l,class:"entries"},[Je,(d(!0),h(ve,null,he(t.logService.logs,(m,x)=>(d(),h("div",{key:x,class:R([m.type,"entry"])},[m.type==="ai-output"?(d(),_e(k,{key:0,source:m.log},null,8,["source"])):(d(),h("div",We,I(m.type==="restart"?"-- restarted --":m.log),1))],2))),128))],512),n("div",Ye,[C(S,{class:R(["icon",{open:b.value}]),path:c(N)},null,8,["class","path"]),n("div",{ref_key:"inputRef",ref:u,class:"input-text",contenteditable:"","pointer-events":p.value?"none":"auto",placeholder:"Ask AI anything",onKeydown:fe(te,["enter"])},null,40,je)])]),n("div",Ge,[n("div",{class:"icons",onClick:oe},[C(S,{class:"icon",path:c(ke)},null,8,["path"])]),n("div",null,[C(S,{class:"icon clickable",path:w.value==="assistant"?c(z):c(H),onClick:f[1]||(f[1]=m=>a())},null,8,["path"])])])])],4)):M("",!0)])}}});const dt=j(Qe,[["__scopeId","data-v-09991f14"]]),Ze={class:"unsaved-changes-handler"},pt=T({__name:"UnsavedChangesHandler",props:{hasChanges:{type:Boolean}},setup(s){const e=s,t="You have unsaved changes. Are you sure you want to leave?",o=i=>(i=i||window.event,i&&(i.returnValue=t),t),l=()=>{window.addEventListener("beforeunload",o)};we((i,y,a)=>{if(!e.hasChanges)return a();confirm(t)?a():a(!1)});const g=()=>window.removeEventListener("beforeunload",o),p=i=>i?l():g();return G(()=>e.hasChanges,p),Q(()=>p(e.hasChanges)),Z(g),(i,y)=>(d(),h("div",Ze))}});export{ee as L,ct as R,dt as S,pt as _}; +//# sourceMappingURL=UnsavedChangesHandler.vue_vue_type_script_setup_true_lang.35587b62.js.map diff --git a/abstra_statics/dist/assets/WidgetPreview.b91d684d.js b/abstra_statics/dist/assets/WidgetPreview.d19ff7f7.js similarity index 59% rename from abstra_statics/dist/assets/WidgetPreview.b91d684d.js rename to abstra_statics/dist/assets/WidgetPreview.d19ff7f7.js index 5cafee0515..d21e4b25f4 100644 --- a/abstra_statics/dist/assets/WidgetPreview.b91d684d.js +++ b/abstra_statics/dist/assets/WidgetPreview.d19ff7f7.js @@ -1,2 +1,2 @@ -import{_ as w}from"./ActionButton.vue_vue_type_script_setup_true_lang.9bc2be06.js";import{W as v,S as h}from"./WidgetsFrame.c900894c.js";import{d as k,b as t,t as a,w as W,J as I,D as f,x as l,c as u,L as p,a8 as B,F as _,ao as D,l as q,m as x,q as S}from"./registerWidgets.3fe0df5a.js";import"./colors.b2406923.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[s]="77febe4e-76e8-4f70-b6a7-cc2ec31e6bdb",o._sentryDebugIdIdentifier="sentry-dbid-77febe4e-76e8-4f70-b6a7-cc2ec31e6bdb")}catch{}})();const A={class:"form"},C={class:"form-wrapper"},L={key:0,class:"buttons"},P=k({__name:"WidgetPreview",setup(o){const s=I();function i(e){return q[e]||x[e]||null}function c(e){try{const n=JSON.parse(e);return n.component=i(n.type),n.response=new D,n.component?n:null}catch{return null}}function m(){const e=s.query.widget;return Array.isArray(e)?e.map(c).filter(Boolean):[c(e)]}function y(){return s.query.steps==="true"}function d(){const e=s.query.button;return e?Array.isArray(e)?e:[e]:[]}const g=e=>({name:e,isDefault:!1,isFocused:!1,focusOnButton:()=>{},addKeydownListener:()=>{},setElement:()=>{}});return(e,n)=>(t(),a(v,{"main-color":"#d14056",class:"preview",theme:"#fbfbfb",runtime:"dash","font-family":"Inter"},{default:W(()=>[y()?(t(),a(h,{key:0,"steps-info":{current:2,total:3}})):f("",!0),l("div",A,[l("div",C,[(t(!0),u(_,null,p(m(),(r,b)=>(t(),u("div",{key:b,class:"widget"},[(t(),a(B(r.component),{data:r.props,response:r.response},null,8,["data","response"]))]))),128))]),d().length?(t(),u("div",L,[(t(!0),u(_,null,p(d(),r=>(t(),a(w,{key:r,action:g(r)},null,8,["action"]))),128))])):f("",!0)])]),_:1}))}});const J=S(P,[["__scopeId","data-v-f3f8afa8"]]);export{J as default}; -//# sourceMappingURL=WidgetPreview.b91d684d.js.map +import{_ as v}from"./ActionButton.vue_vue_type_script_setup_true_lang.9a3f9909.js";import{W as b,S as h}from"./WidgetsFrame.aac2edff.js";import{d as k,b as t,t as a,w as W,J as I,D as l,x as f,c as u,L as p,a8 as B,F as _,ao as D,l as q,m as x,q as S}from"./registerWidgets.cb3a7b8d.js";import"./colors.868ae049.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[s]="21d52e01-d293-496a-accd-edc7edc65022",o._sentryDebugIdIdentifier="sentry-dbid-21d52e01-d293-496a-accd-edc7edc65022")}catch{}})();const A={class:"form"},C={class:"form-wrapper"},L={key:0,class:"buttons"},P=k({__name:"WidgetPreview",setup(o){const s=I();function i(e){return q[e]||x[e]||null}function c(e){try{const n=JSON.parse(e);return n.component=i(n.type),n.response=new D,n.component?n:null}catch{return null}}function m(){const e=s.query.widget;return Array.isArray(e)?e.map(c).filter(Boolean):[c(e)]}function y(){return s.query.steps==="true"}function d(){const e=s.query.button;return e?Array.isArray(e)?e:[e]:[]}const g=e=>({name:e,isDefault:!1,isFocused:!1,focusOnButton:()=>{},addKeydownListener:()=>{},setElement:()=>{}});return(e,n)=>(t(),a(b,{"main-color":"#d14056",class:"preview",theme:"#fbfbfb",runtime:"dash","font-family":"Inter"},{default:W(()=>[y()?(t(),a(h,{key:0,"steps-info":{current:2,total:3}})):l("",!0),f("div",A,[f("div",C,[(t(!0),u(_,null,p(m(),(r,w)=>(t(),u("div",{key:w,class:"widget"},[(t(),a(B(r.component),{data:r.props,response:r.response},null,8,["data","response"]))]))),128))]),d().length?(t(),u("div",L,[(t(!0),u(_,null,p(d(),r=>(t(),a(v,{key:r,action:g(r)},null,8,["action"]))),128))])):l("",!0)])]),_:1}))}});const J=S(P,[["__scopeId","data-v-f3f8afa8"]]);export{J as default}; +//# sourceMappingURL=WidgetPreview.d19ff7f7.js.map diff --git a/abstra_statics/dist/assets/WidgetsFrame.aac2edff.js b/abstra_statics/dist/assets/WidgetsFrame.aac2edff.js new file mode 100644 index 0000000000..ab3cf17da1 --- /dev/null +++ b/abstra_statics/dist/assets/WidgetsFrame.aac2edff.js @@ -0,0 +1,2 @@ +import{d as y,K as h,b as r,c as l,x as c,F as b,L as k,G as v,N as C,z as i,D as F,q as g,ak as d,v as I,o as S,a2 as D,B as L,A as O}from"./registerWidgets.cb3a7b8d.js";import{l as w,a as p,b as R,D as $,c as A,i as T,d as U,e as W,L as _,f}from"./colors.868ae049.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="15cd9d8d-5c53-4140-a698-1db794f4bcd5",e._sentryDebugIdIdentifier="sentry-dbid-15cd9d8d-5c53-4140-a698-1db794f4bcd5")}catch{}})();const q={key:0,class:"p-steps p-component"},x={class:"p-steps-list"},E={class:"p-menuitem-link"},N={class:"p-steps-number"},z=y({__name:"Steps",props:{stepsInfo:{type:Object,default:null}},setup(e){const t=e,s=h(()=>t.stepsInfo?Array(t.stepsInfo.total).fill(null).map(()=>({label:"",to:""})):[]);return(u,m)=>e.stepsInfo?(r(),l("nav",q,[c("ol",x,[(r(!0),l(b,null,k(i(s),(n,o)=>(r(),l("li",{key:o,class:v(["p-steps-item",{"p-highlight":o+1===e.stepsInfo.current}])},[c("span",E,[c("span",N,C(o+1),1)])],2))),128))])])):F("",!0)}});const X=g(z,[["__scopeId","data-v-c6d9488a"]]),B=e=>`https://fonts.googleapis.com/css2?family=${e.split(" ").join("+")}:wght@300;400;500;700;900&display=swap`;function G(e){return e.startsWith("#")||e.match(/^(rgb|hsl)/)}function H(e){try{return new URL(e),!0}catch{return!1}}function j(e){return H(e)?{backgroundImage:`url(${e})`,backgroundSize:"cover"}:G(e)?{backgroundColor:e}:{backgroundColor:"/_assets/background"}}const K=["theme"],M=["href"],V=y({__name:"WidgetsFrame",props:{theme:{type:String,required:!0},mainColor:{type:String,required:!0},fontFamily:{type:String,required:!0},runtime:{type:String,required:!0,validator:e=>["form","dash"].includes(e)}},setup(e){const t=e,s=d(()=>B(t.fontFamily)),u=d(()=>(typeof document<"u"&&document.documentElement.style.setProperty("--ac-global-font-family",t.fontFamily),{"--color-main":t.mainColor,"--color-main-light":w(t.mainColor,.15),"--color-main-hover":p(t.mainColor),"--color-main-active":p(t.mainColor),"--color-secondary":"transparent","--color-secondary-lighter":"transparent","--color-secondary-darker":"transparent","--button-font-color-main":R(t.mainColor),"--font-family":t.fontFamily,...j(t.theme)})),m=d(()=>t.runtime==="dash"?$:A),n=I({"--font-color":m.value,"--background-color":"transparent"}),o=async()=>{const a=T(t.theme)?await U(t.theme):W(t.theme);n["--font-color"]=a?_:f,n["--background-color"]=a?f:_};return S(o),D(()=>t.theme,o),(a,P)=>(r(),l("div",{class:"frame background-theme",theme:e.theme,style:O({...i(u),...i(n)})},[c("link",{href:i(s),rel:"stylesheet"},null,8,M),L(a.$slots,"default",{},void 0,!0)],12,K))}});const Y=g(V,[["__scopeId","data-v-ca2408ab"]]);export{X as S,Y as W}; +//# sourceMappingURL=WidgetsFrame.aac2edff.js.map diff --git a/abstra_statics/dist/assets/WidgetsFrame.c900894c.js b/abstra_statics/dist/assets/WidgetsFrame.c900894c.js deleted file mode 100644 index 6f8e4793cc..0000000000 --- a/abstra_statics/dist/assets/WidgetsFrame.c900894c.js +++ /dev/null @@ -1,2 +0,0 @@ -import{d as y,K as h,b as r,c as l,x as c,F as b,L as k,G as v,N as C,z as i,D as F,q as g,ak as u,v as I,o as S,a2 as D,B as L,A as O}from"./registerWidgets.3fe0df5a.js";import{l as w,a as f,b as R,D as $,c as A,i as T,d as U,e as W,L as p,f as _}from"./colors.b2406923.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b49b0175-bf47-4532-89e3-8750217bfcff",e._sentryDebugIdIdentifier="sentry-dbid-b49b0175-bf47-4532-89e3-8750217bfcff")}catch{}})();const q={key:0,class:"p-steps p-component"},x={class:"p-steps-list"},E={class:"p-menuitem-link"},N={class:"p-steps-number"},z=y({__name:"Steps",props:{stepsInfo:{type:Object,default:null}},setup(e){const t=e,s=h(()=>t.stepsInfo?Array(t.stepsInfo.total).fill(null).map(()=>({label:"",to:""})):[]);return(d,m)=>e.stepsInfo?(r(),l("nav",q,[c("ol",x,[(r(!0),l(b,null,k(i(s),(n,o)=>(r(),l("li",{key:o,class:v(["p-steps-item",{"p-highlight":o+1===e.stepsInfo.current}])},[c("span",E,[c("span",N,C(o+1),1)])],2))),128))])])):F("",!0)}});const X=g(z,[["__scopeId","data-v-c6d9488a"]]),B=e=>`https://fonts.googleapis.com/css2?family=${e.split(" ").join("+")}:wght@300;400;500;700;900&display=swap`;function G(e){return e.startsWith("#")||e.match(/^(rgb|hsl)/)}function H(e){try{return new URL(e),!0}catch{return!1}}function j(e){return H(e)?{backgroundImage:`url(${e})`,backgroundSize:"cover"}:G(e)?{backgroundColor:e}:{backgroundColor:"/_assets/background"}}const K=["theme"],M=["href"],V=y({__name:"WidgetsFrame",props:{theme:{type:String,required:!0},mainColor:{type:String,required:!0},fontFamily:{type:String,required:!0},runtime:{type:String,required:!0,validator:e=>["form","dash"].includes(e)}},setup(e){const t=e,s=u(()=>B(t.fontFamily)),d=u(()=>(typeof document<"u"&&document.documentElement.style.setProperty("--ac-global-font-family",t.fontFamily),{"--color-main":t.mainColor,"--color-main-light":w(t.mainColor,.15),"--color-main-hover":f(t.mainColor),"--color-main-active":f(t.mainColor),"--color-secondary":"transparent","--color-secondary-lighter":"transparent","--color-secondary-darker":"transparent","--button-font-color-main":R(t.mainColor),"--font-family":t.fontFamily,...j(t.theme)})),m=u(()=>t.runtime==="dash"?$:A),n=I({"--font-color":m.value,"--background-color":"transparent"}),o=async()=>{const a=T(t.theme)?await U(t.theme):W(t.theme);n["--font-color"]=a?p:_,n["--background-color"]=a?_:p};return S(o),D(()=>t.theme,o),(a,P)=>(r(),l("div",{class:"frame background-theme",theme:e.theme,style:O({...i(d),...i(n)})},[c("link",{href:i(s),rel:"stylesheet"},null,8,M),L(a.$slots,"default",{},void 0,!0)],12,K))}});const Y=g(V,[["__scopeId","data-v-ca2408ab"]]);export{X as S,Y as W}; -//# sourceMappingURL=WidgetsFrame.c900894c.js.map diff --git a/abstra_statics/dist/assets/Workspace.3ed16c97.js b/abstra_statics/dist/assets/Workspace.a75d1f25.js similarity index 71% rename from abstra_statics/dist/assets/Workspace.3ed16c97.js rename to abstra_statics/dist/assets/Workspace.a75d1f25.js index 91ba17e1aa..a197629383 100644 --- a/abstra_statics/dist/assets/Workspace.3ed16c97.js +++ b/abstra_statics/dist/assets/Workspace.a75d1f25.js @@ -1,4 +1,4 @@ -import{d as g,H as S,J as B,r as x,K as A,b as o,c as t,F as y,L as v,x as c,N as k,G as w,e as r,I,D as h,t as j,w as T,z as _,q as b,O as L,Q as D,a as N}from"./registerWidgets.3fe0df5a.js";import{d as O,w as W,a as E,b as F,c as R,m as K,e as P}from"./icons.9d575a00.js";import{T as V}from"./Tooltip.93ae2394.js";import{_ as z}from"./logo.084e5d7c.js";import{a as G}from"./asyncComputed.4b275614.js";import{W as H}from"./workspaces.220ebb5a.js";import{L as $}from"./login.7c65daa3.js";import{D as M}from"./DocsButton.0b9b3a67.js";import"./activeRecord.2bc1b71f.js";import"./pubsub.909df758.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="628fd744-71fa-43df-91eb-0d4f99507739",e._sentryDebugIdIdentifier="sentry-dbid-628fd744-71fa-43df-91eb-0d4f99507739")}catch{}})();const q={class:"sidebar"},J={class:"section-name"},Q=["onClick"],U={class:"item-name"},X={key:0,class:"tag soon"},Y={key:1,class:"tag beta"},Z={key:2,class:"tag cloud"},ee=g({__name:"Sidebar",setup(e){var p;const n=S(),i=B(),a=x((p=i.name)!=null?p:"forms"),u=A(()=>[{name:"Runtime",items:[{name:"Forms",icon:O,path:"forms"},{name:"Hooks",icon:W,path:"hooks"},{name:"Dashes",icon:E,path:"dashes",beta:!0}]},{name:"Resources",items:[{name:"Tables",icon:F,path:"tables",beta:!0}]},{name:"Settings",items:[{name:"Style",icon:R,path:"style"},{name:"Sidebar",icon:K,path:"sidebar"}]}]),m=l=>{l.unavailable||(n.push(l.path),a.value=l.path)};return(l,f)=>(o(),t("div",q,[(o(!0),t(y,null,v(_(u),d=>(o(),t("div",{key:d.name,class:"section"},[c("span",J,k(d.name),1),(o(!0),t(y,null,v(d.items,s=>(o(),t("div",{key:s.name,role:"button",class:w(["item",{active:a.value===s.path,disabled:s.unavailable||d.cloud}]),tabindex:"0",onClick:ve=>m(s)},[r(I,{class:w(["icon",{disabled:s.unavailable,active:a.value===s.path}]),path:s.icon,width:"20",height:"20"},null,8,["class","path"]),c("span",U,k(s.name),1),s.unavailable?(o(),t("span",X,"SOON")):h("",!0),s.beta?(o(),t("span",Y,"BETA")):h("",!0),s.cloud?(o(),t("span",Z,"CLOUD")):h("",!0),s.warning?(o(),j(V,{key:3,class:"warning",text:s.warning,fixed:!0,top:18,left:18},{default:T(()=>[r(I,{path:_(P),fill:"#D35249",width:"20",height:"20"},null,8,["path"])]),_:2},1032,["text"])):h("",!0)],10,Q))),128))]))),128))]))}});const oe=b(ee,[["__scopeId","data-v-50de59cf"]]);const te={},C=e=>(L("data-v-ccfb70ef"),e=e(),D(),e),se={class:"logo"},ae=C(()=>c("img",{src:z,alt:"Abstra cloud logo"},null,-1)),ne=C(()=>c("span",null," Abstra ",-1)),ce=[ae,ne];function re(e,n){return o(),t("div",se,ce)}const le=b(te,[["render",re],["__scopeId","data-v-ccfb70ef"]]),ie={key:0,class:"login-block"},de={key:1,class:"login-block"},_e=["href"],ue={key:1,class:"button"},pe={key:2,class:"login-block"},fe=g({__name:"LoginBlock",setup(e){const n=x(!1),{loading:i,result:a,refetch:u}=G(()=>$.get());async function m(){const f=prompt(`Login to our console at https://cloud.abstra.io and get an API Key to deploy your Projects. +import{d as g,H as S,J as B,r as x,K as A,b as o,c as t,F as y,L as v,x as c,N as k,G as w,e as r,I,D as h,t as j,w as T,z as _,q as f,O as L,Q as D,a as N}from"./registerWidgets.cb3a7b8d.js";import{d as O,w as W,a as E,b as F,c as R,m as K,e as P}from"./icons.39dfa322.js";import{T as V}from"./Tooltip.f700ff7d.js";import{_ as z}from"./logo.084e5d7c.js";import{a as G}from"./asyncComputed.31994732.js";import{W as H}from"./workspaces.5f21a554.js";import{L as $}from"./login.ce8787fb.js";import{D as M}from"./DocsButton.495d0473.js";import"./activeRecord.adfc6223.js";import"./pubsub.f85a17d2.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b864a4b8-97c8-4845-9918-3dc017c35feb",e._sentryDebugIdIdentifier="sentry-dbid-b864a4b8-97c8-4845-9918-3dc017c35feb")}catch{}})();const q={class:"sidebar"},J={class:"section-name"},Q=["onClick"],U={class:"item-name"},X={key:0,class:"tag soon"},Y={key:1,class:"tag beta"},Z={key:2,class:"tag cloud"},ee=g({__name:"Sidebar",setup(e){var p;const n=S(),i=B(),a=x((p=i.name)!=null?p:"forms"),u=A(()=>[{name:"Runtime",items:[{name:"Forms",icon:O,path:"forms"},{name:"Hooks",icon:W,path:"hooks"},{name:"Dashes",icon:E,path:"dashes",beta:!0}]},{name:"Resources",items:[{name:"Tables",icon:F,path:"tables",beta:!0}]},{name:"Settings",items:[{name:"Style",icon:R,path:"style"},{name:"Sidebar",icon:K,path:"sidebar"}]}]),m=l=>{l.unavailable||(n.push(l.path),a.value=l.path)};return(l,b)=>(o(),t("div",q,[(o(!0),t(y,null,v(_(u),d=>(o(),t("div",{key:d.name,class:"section"},[c("span",J,k(d.name),1),(o(!0),t(y,null,v(d.items,s=>(o(),t("div",{key:s.name,role:"button",class:w(["item",{active:a.value===s.path,disabled:s.unavailable||d.cloud}]),tabindex:"0",onClick:ve=>m(s)},[r(I,{class:w(["icon",{disabled:s.unavailable,active:a.value===s.path}]),path:s.icon,width:"20",height:"20"},null,8,["class","path"]),c("span",U,k(s.name),1),s.unavailable?(o(),t("span",X,"SOON")):h("",!0),s.beta?(o(),t("span",Y,"BETA")):h("",!0),s.cloud?(o(),t("span",Z,"CLOUD")):h("",!0),s.warning?(o(),j(V,{key:3,class:"warning",text:s.warning,fixed:!0,top:18,left:18},{default:T(()=>[r(I,{path:_(P),fill:"#D35249",width:"20",height:"20"},null,8,["path"])]),_:2},1032,["text"])):h("",!0)],10,Q))),128))]))),128))]))}});const oe=f(ee,[["__scopeId","data-v-50de59cf"]]);const te={},C=e=>(L("data-v-ccfb70ef"),e=e(),D(),e),se={class:"logo"},ae=C(()=>c("img",{src:z,alt:"Abstra cloud logo"},null,-1)),ne=C(()=>c("span",null," Abstra ",-1)),ce=[ae,ne];function re(e,n){return o(),t("div",se,ce)}const le=f(te,[["render",re],["__scopeId","data-v-ccfb70ef"]]),ie={key:0,class:"login-block"},de={key:1,class:"login-block"},_e=["href"],ue={key:1,class:"button"},pe={key:2,class:"login-block"},be=g({__name:"LoginBlock",setup(e){const n=x(!1),{loading:i,result:a,refetch:u}=G(()=>$.get());async function m(){const b=prompt(`Login to our console at https://cloud.abstra.io and get an API Key to deploy your Projects. -Enter your API Key here:`);!f||(await $.create(f),u())}async function p(){!a.value||(await a.value.delete(),u())}async function l(){!a.value||(n.value=!0,confirm("Are you sure you want to deploy this project to Abstra Cloud?")&&(await H.deploy(),window.open(`https://cloud.abstra.io/projects/${a.value.projectId}/builds`,"_blank")),n.value=!1)}return(f,d)=>_(i)?(o(),t("div",ie,"loading...")):_(a)?(o(),t("div",de,[c("a",{class:"button",href:`https://cloud.abstra.io/projects/${_(a).projectId}`,target:"_blank"},"Go to console ",8,_e),n.value?(o(),t("button",ue,"Deploying...")):(o(),t("button",{key:0,class:"button",onClick:l},"Deploy")),c("button",{class:"button",onClick:p},"Logout")])):(o(),t("div",pe,[c("button",{class:"button",onClick:m},"Login to deploy")]))}});const he=b(fe,[["__scopeId","data-v-d5de8b44"]]),be=e=>(L("data-v-77e07499"),e=e(),D(),e),me=be(()=>c("div",{class:"grow"},null,-1)),ye={class:"workspace"},ge=g({__name:"Workspace",setup(e){return(n,i)=>{const a=N("router-view");return o(),t(y,null,[c("nav",null,[r(le),me,r(M),r(he)]),c("div",ye,[r(oe,{class:"sidebar"}),r(a)])],64)}}});const Ae=b(ge,[["__scopeId","data-v-77e07499"]]);export{Ae as default}; -//# sourceMappingURL=Workspace.3ed16c97.js.map +Enter your API Key here:`);!b||(await $.create(b),u())}async function p(){!a.value||(await a.value.delete(),u())}async function l(){!a.value||(n.value=!0,confirm("Are you sure you want to deploy this project to Abstra Cloud?")&&(await H.deploy(),window.open(`https://cloud.abstra.io/projects/${a.value.projectId}/builds`,"_blank")),n.value=!1)}return(b,d)=>_(i)?(o(),t("div",ie,"loading...")):_(a)?(o(),t("div",de,[c("a",{class:"button",href:`https://cloud.abstra.io/projects/${_(a).projectId}`,target:"_blank"},"Go to console ",8,_e),n.value?(o(),t("button",ue,"Deploying...")):(o(),t("button",{key:0,class:"button",onClick:l},"Deploy")),c("button",{class:"button",onClick:p},"Logout")])):(o(),t("div",pe,[c("button",{class:"button",onClick:m},"Login to deploy")]))}});const he=f(be,[["__scopeId","data-v-d5de8b44"]]),fe=e=>(L("data-v-77e07499"),e=e(),D(),e),me=fe(()=>c("div",{class:"grow"},null,-1)),ye={class:"workspace"},ge=g({__name:"Workspace",setup(e){return(n,i)=>{const a=N("router-view");return o(),t(y,null,[c("nav",null,[r(le),me,r(M),r(he)]),c("div",ye,[r(oe,{class:"sidebar"}),r(a)])],64)}}});const Ae=f(ge,[["__scopeId","data-v-77e07499"]]);export{Ae as default}; +//# sourceMappingURL=Workspace.a75d1f25.js.map diff --git a/abstra_statics/dist/assets/activeRecord.2bc1b71f.js b/abstra_statics/dist/assets/activeRecord.adfc6223.js similarity index 64% rename from abstra_statics/dist/assets/activeRecord.2bc1b71f.js rename to abstra_statics/dist/assets/activeRecord.adfc6223.js index b5c6ca40b1..f42cb2ffba 100644 --- a/abstra_statics/dist/assets/activeRecord.2bc1b71f.js +++ b/abstra_statics/dist/assets/activeRecord.adfc6223.js @@ -1,2 +1,2 @@ -var h=Object.defineProperty;var r=(s,t,e)=>t in s?h(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var i=(s,t,e)=>(r(s,typeof t!="symbol"?t+"":t,e),e);import{P as c}from"./pubsub.909df758.js";import{R as u,S as g}from"./registerWidgets.3fe0df5a.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[t]="f4130cac-9024-4bd0-8ed7-253f3c4aa225",s._sentryDebugIdIdentifier="sentry-dbid-f4130cac-9024-4bd0-8ed7-253f3c4aa225")}catch{}})();class n{constructor(t,e,a){i(this,"initialState");i(this,"_changes");i(this,"api");i(this,"idKey");i(this,"pubsub");this.initialState=e,this._changes=u({}),this.api=t,this.idKey=a,this.pubsub=new c}static create(t,e,a=null){return g(new n(t,e,a))}get changes(){return this._changes.value}get(t){var e;return(e=this.changes[t])!=null?e:this.initialState[t]}set(t,e){this._changes.value={...this.changes,[t]:e}}async save(){if(Object.keys(this.changes).length===0)return;this.initialState=await this.api.update(this.idKey?this.initialState[this.idKey]:null,this.changes);const t={...this.changes};this._changes.value={},this.pubsub.publish("update",t)}hasChanges(){return Object.keys(this.changes).length>0}get state(){return{...this.initialState,...this.changes}}}export{n as A}; -//# sourceMappingURL=activeRecord.2bc1b71f.js.map +var h=Object.defineProperty;var r=(s,t,e)=>t in s?h(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var i=(s,t,e)=>(r(s,typeof t!="symbol"?t+"":t,e),e);import{P as u}from"./pubsub.f85a17d2.js";import{R as c,S as b}from"./registerWidgets.cb3a7b8d.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[t]="b3bfb4fa-020f-4933-8d9c-fda62b864875",s._sentryDebugIdIdentifier="sentry-dbid-b3bfb4fa-020f-4933-8d9c-fda62b864875")}catch{}})();class n{constructor(t,e,a){i(this,"initialState");i(this,"_changes");i(this,"api");i(this,"idKey");i(this,"pubsub");this.initialState=e,this._changes=c({}),this.api=t,this.idKey=a,this.pubsub=new u}static create(t,e,a=null){return b(new n(t,e,a))}get changes(){return this._changes.value}get(t){var e;return(e=this.changes[t])!=null?e:this.initialState[t]}set(t,e){this._changes.value={...this.changes,[t]:e}}async save(){if(Object.keys(this.changes).length===0)return;this.initialState=await this.api.update(this.idKey?this.initialState[this.idKey]:null,this.changes);const t={...this.changes};this._changes.value={},this.pubsub.publish("update",t)}hasChanges(){return Object.keys(this.changes).length>0}get state(){return{...this.initialState,...this.changes}}}export{n as A}; +//# sourceMappingURL=activeRecord.adfc6223.js.map diff --git a/abstra_statics/dist/assets/asyncComputed.31994732.js b/abstra_statics/dist/assets/asyncComputed.31994732.js new file mode 100644 index 0000000000..d8888fec1d --- /dev/null +++ b/abstra_statics/dist/assets/asyncComputed.31994732.js @@ -0,0 +1,2 @@ +import{R as c,K as t}from"./registerWidgets.cb3a7b8d.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="fb65b8e3-921f-4cbb-831d-52dc05ad036c",r._sentryDebugIdIdentifier="sentry-dbid-fb65b8e3-921f-4cbb-831d-52dc05ad036c")}catch{}})();const i=r=>{const e=c({loading:!0,result:null,error:null}),n=l=>(e.value={loading:!1,result:l,error:null},l),s=l=>{e.value={loading:!1,result:null,error:l}},o=()=>{e.value={loading:!0,result:null,error:null},r().then(n).catch(s)};o();const u=t(()=>e.value.loading),a=t(()=>e.value.result),d=t(()=>e.value.error);return{loading:u,result:a,error:d,refetch:o}};export{i as a}; +//# sourceMappingURL=asyncComputed.31994732.js.map diff --git a/abstra_statics/dist/assets/asyncComputed.4b275614.js b/abstra_statics/dist/assets/asyncComputed.4b275614.js deleted file mode 100644 index cfeb001af7..0000000000 --- a/abstra_statics/dist/assets/asyncComputed.4b275614.js +++ /dev/null @@ -1,2 +0,0 @@ -import{R as f,K as t}from"./registerWidgets.3fe0df5a.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="623a83a5-eafd-4488-9d06-2f45d4f5527f",r._sentryDebugIdIdentifier="sentry-dbid-623a83a5-eafd-4488-9d06-2f45d4f5527f")}catch{}})();const i=r=>{const e=f({loading:!0,result:null,error:null}),n=l=>(e.value={loading:!1,result:l,error:null},l),a=l=>{e.value={loading:!1,result:null,error:l}},o=()=>{e.value={loading:!0,result:null,error:null},r().then(n).catch(a)};o();const s=t(()=>e.value.loading),u=t(()=>e.value.result),d=t(()=>e.value.error);return{loading:s,result:u,error:d,refetch:o}};export{i as a}; -//# sourceMappingURL=asyncComputed.4b275614.js.map diff --git a/abstra_statics/dist/assets/broker.4d1bc0fe.js b/abstra_statics/dist/assets/broker.988d8f9b.js similarity index 95% rename from abstra_statics/dist/assets/broker.4d1bc0fe.js rename to abstra_statics/dist/assets/broker.988d8f9b.js index e43e5001d2..cd630ee98f 100644 --- a/abstra_statics/dist/assets/broker.4d1bc0fe.js +++ b/abstra_statics/dist/assets/broker.988d8f9b.js @@ -1,3 +1,3 @@ -var ae=Object.defineProperty;var ie=(r,e,n)=>e in r?ae(r,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[e]=n;var u=(r,e,n)=>(ie(r,typeof e!="symbol"?e+"":e,n),n);import{d as L,b as f,c as y,x as E,z as T,N as U,D as P,q as C,a as le,t as w,B as ue,r as N,w as re,U as ce,V as $,a4 as de,K as F,a2 as he,v as Q,a5 as X,a6 as fe,a7 as pe,o as me,Y as ve,G as Z,e as R,F as ee,L as te,a8 as ge,a9 as ye}from"./registerWidgets.3fe0df5a.js";import{p as j}from"./passwordlessManager.f53316a7.js";import{j as we,k as be}from"./icons.9d575a00.js";import{_ as _e}from"./ActionButton.vue_vue_type_script_setup_true_lang.9bc2be06.js";import{P as ke}from"./Passwordless.15dd7595.js";import{e as Ee,R as Pe}from"./executeJs.9eb1c025.js";import{W as Ie}from"./WidgetsFrame.c900894c.js";import{L as De}from"./CircularLoading.2fb746db.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="8259b7e2-0b36-4029-a38c-c74dbe646771",r._sentryDebugIdIdentifier="sentry-dbid-8259b7e2-0b36-4029-a38c-c74dbe646771")}catch{}})();const xe={key:0,class:"hint"},Le={class:"icon",viewBox:"0 0 24 24",style:{width:"20px",height:"20px"}},Ce=["d"],Se={class:"hint-content"},Ae=L({__name:"WidgetHint",props:{hint:null},setup(r){return(e,n)=>r.hint?(f(),y("div",xe,[(f(),y("svg",Le,[E("path",{d:T(we)},null,8,Ce)])),E("div",Se,U(r.hint),1)])):P("",!0)}});const We=C(Ae,[["__scopeId","data-v-419a518f"]]),Be={class:"outline-button"},Fe=L({__name:"OutlineButton",props:{iconPath:null,noShadow:{type:Boolean},status:null},setup(r){return(e,n)=>{const t=le("icon");return f(),y("button",Be,[r.iconPath?(f(),w(t,{key:0,path:r.iconPath,fill:"#fff",class:"icon"},null,8,["path"])):P("",!0),ue(e.$slots,"default",{},void 0,!0)])}}});const Re=C(Fe,[["__scopeId","data-v-d16448de"]]),je=L({__name:"FormAutoFill",props:{broker:null,form:null},setup(r){const e=r,n=window.__runs||(window.__runs={previous:[],current:[]});e.broker.on("start",()=>{n.previous=n.current,n.current=[]});const t=N(null);function o(){for(const h in n.current){const c=n.previous[h],i=n.current[h];if(!c||c.type!==i.type||c.type=="form"&&!$.exports.isEqual(c.widgets,i.widgets)||c.type=="form-response"&&!$.exports.isEqual(c.payload,i.payload))return null}const a=n.previous[n.current.length];if((a==null?void 0:a.type)!=="form-response")return null;t.value=a}function d(){const a=t.value;a&&e.broker.send(a)}return e.broker.on("form",a=>{n.current.push(a),o()}),e.broker.on("form-response",a=>{n.current.push(a),t.value=null}),(a,h)=>t.value?(f(),w(Re,{key:0,"icon-path":T(be),class:"form-auto-fill-btn",onClick:d},{default:re(()=>[ce(" Repeat last answer ")]),_:1},8,["icon-path"])):P("",!0)}});const Oe=C(je,[["__scopeId","data-v-9590d96b"]]);class _{constructor(e,n){u(this,"element",null);this.name=e,this.isDefault=n}static fromDto(e){return typeof e=="string"?new _(e,!1):new _(e.name,e.is_default)}setElement(e){e instanceof HTMLElement&&(this.element=e)}get isFocused(){return this.element===document.activeElement}focusOnButton(){var e;(e=this.element)==null||e.focus()}addKeydownListener(e){var n;(n=this.element)==null||n.addEventListener("keydown",e)}}class H{constructor(e){this.form=e}static from(e){return new H(e)}get startAction(){var e;return[_.fromDto((e=this.form.startButtonText)!=null?e:"Start")]}get restartAction(){var n;const e=(n=this.form.restartButtonText)!=null?n:"Restart";return this.form.allowRestart?[_.fromDto(e)]:[]}fromPageActionsDto(e){return e.filter(n=>!!n).map(n=>_.fromDto(n))}}async function Ue(r){window.should_ask_before_leave=!1,window.location.href=r.url}const Ne={redirect:Ue,"execute-js":Ee};class V{constructor(e,n){u(this,"loading",!1);u(this,"endedByPage",!1);u(this,"reactivePollInterval",null);u(this,"programEnded",!1);u(this,"widgetError",()=>{this.newPageDefinition({widgets:[{type:"error"}],actions:[],fullWidth:!1,hasError:!1,steps:null})});u(this,"widgetEnd",()=>{this.endedByPage||this.newPageDefinition({widgets:[{type:"end"}],actions:this.pageActionFactory.restartAction,fullWidth:!1,hasError:!1,steps:null})});u(this,"sendUser",e=>{this.broker.send({type:"auth:saved-jwt",jwt:e.jwt}),this.broker.send({type:"metadata",payload:{authenticated_user:e.claims.email}})});u(this,"sendBrowserTryDisconnect",()=>{this.broker.send({type:"browser:try-disconnect"})});u(this,"newPageDefinitionListener",()=>{});u(this,"updatePageDefinitionListener",()=>{});u(this,"onReactivePollListener",()=>{});u(this,"onErrorListener",()=>{});u(this,"onExitListener",()=>{});u(this,"onStartAuthListener");u(this,"onEndAuthListener");u(this,"onBadAuthListener");this.broker=e,this.pageActionFactory=n}static create(e,n){const t=new V(e,n);return t.broker.onClose(()=>{if(t.programEnded)return;const o="Connection with service closed before program ended";t.widgetError(),t.error(o)}),t.broker.on("form",({widgets:o,actions:d,buttonText:a,endProgram:h,reactivePollingInterval:c,steps:i})=>{t.loading=!1,t.newPageDefinition({widgets:o,actions:t.pageActionFactory.fromPageActionsDto(a?[a]:d!=null?d:[]),fullWidth:o.some(v=>"fullWidth"in v&&v.fullWidth),hasError:!1,steps:i}),c&&(t.reactivePollInterval=setInterval(t.onReactivePollListener,c*1e3)),h&&(t.endedByPage=!0,t.broker.send({type:"form-response",payload:{},secrets:[]}))}),t.broker.on("action",async({action:o})=>{var h;let d=null,a;try{const{type:c}=o;d=(h=await Ne[c](o))!=null?h:null}catch(c){a=c.message}t.broker.send({type:"action-response",value:d,errorMessage:a})}),t.broker.on("auth:require-info",()=>{t.newPageDefinition({widgets:[],actions:[],fullWidth:!1,hasError:!1,steps:null}),t.onStartAuthListener&&t.onStartAuthListener()}),t.broker.on("auth:valid-jwt",()=>{t.onEndAuthListener&&t.onEndAuthListener()}),t.broker.on("auth:invalid-jwt",()=>{console.warn("invalid jwt"),t.onBadAuthListener&&t.onBadAuthListener()}),t.broker.on("program:connection-error",o=>{t.widgetError(),t.error(o)}),t.broker.on("program:end",o=>{t.programEnded=!0,o.exitCode||o.exception?(t.widgetError(),t.error(o)):(t.widgetEnd(),t.exit(o))}),t.broker.on("program:disconnect",o=>{t.exit(o)}),t.broker.on("not-enough-credits",()=>{t.error({error:"not-enough-credits"}),t.programEnded=!0}),t.broker.on("heartbeat",()=>{t.broker.resetHeartbeatCounter()}),t.broker.on("user-response-event",({widgets:o,validation:d})=>{t.updatePageDefinition({widgets:o,validation:{message:d.message,status:d.status},fullWidth:o.some(a=>"fullWidth"in a&&a.fullWidth)})}),t}next(e,n,t,o){if((de(Object.values(e))||!t)&&(n==null?void 0:n.name)!=="Back"){this.updatePageDefinition({hasError:!0});return}this.reactivePollInterval&&clearInterval(this.reactivePollInterval);const a={};Object.keys(e).forEach(h=>{a[h]=e[h].value}),this.loading=!0,this.broker.send({type:"form-response",payload:a,action:n==null?void 0:n.name,secrets:o}),this.newPageDefinition({widgets:[],fullWidth:!1,hasError:!1,actions:[],steps:null})}sendUserEvent(e,n){const t={};Object.keys(e).forEach(o=>{t[o]=e[o].value}),this.broker.send({type:"user-event",payload:t,secrets:n})}init(e){this.broker.resetState(),this.newPageDefinition({widgets:[],actions:[],fullWidth:!1,hasError:!1,steps:null}),this.broker.connect(e!=null?e:{})}newPageDefinition(e){this.newPageDefinitionListener(e)}updatePageDefinition(e){this.loading||this.updatePageDefinitionListener(e)}listenToNewPageDefinition(e){this.newPageDefinitionListener=e}listenToPageDefinitionUpdate(e){this.updatePageDefinitionListener=e}onReactivePoll(e){this.onReactivePollListener=e}error(e){this.reactivePollInterval&&clearInterval(this.reactivePollInterval),this.onErrorListener(e)}onError(e){this.onErrorListener=e}exit(e){this.reactivePollInterval&&clearInterval(this.reactivePollInterval),this.onExitListener(e)}onExit(e){this.onExitListener=e}onStartAuth(e){this.onStartAuthListener=e}onEndAuth(e){this.onEndAuthListener=e}onBadAuth(e){this.onBadAuthListener=e}}const $e={key:0,class:"form-wrapper"},Te=["id"],He={key:0,class:"span-error"},Ve={key:1,class:"loading-wrapper"},Me={class:"span-error"},qe={class:"buttons"},ze=L({__name:"FormRunner",props:{form:{type:Object,required:!0},params:Object,isPreview:Boolean,enableAutoFocus:{type:Boolean,required:!0},broker:{type:Object,required:!0}},emits:["log","error","exit","navigate","logout","start"],setup(r,{expose:e,emit:n}){const t=r,o=N(null),d=F(()=>H.from(t.form)),a=s=>n("navigate",s),h=()=>{i.value={widgets:[{type:"start"}],actions:d.value.startAction,fullWidth:!1,hasError:!1,steps:null}};he(()=>t.form,()=>{var s;((s=i.value.widgets[0])==null?void 0:s.type)=="start"&&h()});const c=Q({user:null,authenticating:!1}),i=N({widgets:[],fullWidth:!1,hasError:!1,actions:[],steps:null}),v=Q({responses:{},formState:"idle"}),S=F(()=>i.value.widgets.reduce((s,l)=>("key"in l&&(s[l.key]=v.responses[l.key]),s),{})),A=F(()=>i.value.widgets.filter(s=>"secret"in s).reduce((s,l)=>"key"in l&&"secret"in l?[...s,{key:l.key,secret:l.secret}]:s,[]));M();function M(){c.user=j.getUser()}const se=()=>{j.removeUser(),M(),n("logout")},p=V.create(t.broker,d.value);p.onError(s=>{var l;if(n("error",s),v.formState="error",s.error==="not-enough-credits"){(l=o.value)==null||l.open(),h();return}}),p.onExit(s=>{n("exit",s),v.formState="over"}),p.onStartAuth(()=>{c.user?p.sendUser(c.user):c.authenticating=!0}),p.onEndAuth(()=>{c.authenticating=!1}),p.onBadAuth(()=>{j.removeUser(),c.user=null,c.authenticating=!0}),p.onReactivePoll(()=>{p.sendUserEvent(S.value,A.value)});const oe=s=>{c.user=s,p.sendUser(s)};p.listenToNewPageDefinition(s=>{var l,g;i.value=s,X.init(t.enableAutoFocus,()=>I()),v.responses=fe((g=(l=i.value)==null?void 0:l.widgets)!=null?g:[])}),p.listenToPageDefinitionUpdate(s=>{var l,g;i.value={...i.value,...s},v.responses=pe((g=(l=i.value)==null?void 0:l.widgets)!=null?g:[],v.responses)});const q=s=>{var l;if(!(v.formState!=="running"||t.isPreview||!((l=window.should_ask_before_leave)==null||l)))return p.sendBrowserTryDisconnect(),s.preventDefault(),s.returnValue="Are you sure?",""};me(async()=>{window.addEventListener("beforeunload",q),h(),X.init(t.enableAutoFocus,s=>I(s)),t.form.autoStart&&W()}),ve(()=>{t.broker.close(),window.removeEventListener("beforeunload",q)});const I=s=>{var l,g;if(v.formState!=="running")return W();p.next(S.value,s,(g=(l=i.value.validation)==null?void 0:l.status)!=null?g:!0,A.value)},W=async()=>{p.init(t.params),v.formState="running",n("start")},D=s=>ye(s.type)?v.responses[s.key]:null;function z(s,l,g){if(p.sendUserEvent(S.value,g),l===i.value.widgets.length-1&&["multiple-choice-input","cards-input"].includes(i.value.widgets[l].type)&&i.value.actions.filter(x=>!!x).length===0&&s.value!==null&&(!$.exports.isArray(s.value)||s.value.length)){I();return}}return e({run:W}),(s,l)=>(f(),w(Ie,{class:Z([{preview:r.isPreview},"runner"]),"main-color":r.form.mainColor,theme:r.form.theme,"font-family":r.form.fontFamily,runtime:"form"},{default:re(()=>{var g,x;return[r.isPreview?(f(),w(Oe,{key:0,class:"auto-fill-btn",broker:r.broker,form:r.form,style:{"z-index":1}},null,8,["broker","form"])):P("",!0),R(Pe,{ref_key:"runtimeCommonsRef",ref:o,runtime:r.form,"full-width":i.value.fullWidth,"steps-info":i.value.steps,"is-preview":r.isPreview,"user-email":(g=c.user)==null?void 0:g.claims.email,type:"forms",onLogout:se,onNavigate:a},null,8,["runtime","full-width","steps-info","is-preview","user-email"]),E("main",null,[c.authenticating?(f(),w(ke,{key:1,class:"form-auth",onDone:oe})):(f(),y("div",{key:0,class:Z(["form",{"full-width":i.value.fullWidth}])},[i.value.widgets.length>0?(f(),y("div",$e,[(f(!0),y(ee,null,te(i.value.widgets,(m,k)=>{var J,G,K,Y;return f(),y("div",{id:m.type+k,key:(J=m.key)!=null?J:m.type+k,class:"widget"},[(f(),w(ge(m.type),{data:m,response:D(m),form:r.form,page:i.value,"has-error":((G=D(m))==null?void 0:G.isInvalid())&&i.value.hasError,runtime:"form",onChange:B=>z(B,k,T(A)),onSetInitialValue:B=>z(B,k)},null,40,["data","response","form","page","has-error","onChange","onSetInitialValue"])),R(We,{hint:"hint"in m?m.hint:null},null,8,["hint"]),((K=D(m))==null?void 0:K.isInvalid())&&i.value.hasError?(f(),y("span",He,U((Y=D(m))==null?void 0:Y.errorMessages().join(` +var ae=Object.defineProperty;var ie=(r,e,n)=>e in r?ae(r,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[e]=n;var u=(r,e,n)=>(ie(r,typeof e!="symbol"?e+"":e,n),n);import{d as L,b as f,c as y,x as E,z as T,N as U,D as P,q as C,a as le,t as w,B as ue,r as N,w as re,U as ce,V as $,a4 as de,K as F,a2 as he,v as Q,a5 as X,a6 as fe,a7 as pe,o as me,Y as ve,G as Z,e as R,F as ee,L as te,a8 as ge,a9 as ye}from"./registerWidgets.cb3a7b8d.js";import{p as j}from"./passwordlessManager.afd7d1d0.js";import{j as we,k as be}from"./icons.39dfa322.js";import{_ as _e}from"./ActionButton.vue_vue_type_script_setup_true_lang.9a3f9909.js";import{P as ke}from"./Passwordless.7161b834.js";import{e as Ee,R as Pe}from"./executeJs.87b204c8.js";import{W as Ie}from"./WidgetsFrame.aac2edff.js";import{L as De}from"./CircularLoading.1e68d2b1.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="4128c5dc-53e9-409f-8a6f-a83c57726f2b",r._sentryDebugIdIdentifier="sentry-dbid-4128c5dc-53e9-409f-8a6f-a83c57726f2b")}catch{}})();const xe={key:0,class:"hint"},Le={class:"icon",viewBox:"0 0 24 24",style:{width:"20px",height:"20px"}},Ce=["d"],Se={class:"hint-content"},Ae=L({__name:"WidgetHint",props:{hint:null},setup(r){return(e,n)=>r.hint?(f(),y("div",xe,[(f(),y("svg",Le,[E("path",{d:T(we)},null,8,Ce)])),E("div",Se,U(r.hint),1)])):P("",!0)}});const We=C(Ae,[["__scopeId","data-v-419a518f"]]),Be={class:"outline-button"},Fe=L({__name:"OutlineButton",props:{iconPath:null,noShadow:{type:Boolean},status:null},setup(r){return(e,n)=>{const t=le("icon");return f(),y("button",Be,[r.iconPath?(f(),w(t,{key:0,path:r.iconPath,fill:"#fff",class:"icon"},null,8,["path"])):P("",!0),ue(e.$slots,"default",{},void 0,!0)])}}});const Re=C(Fe,[["__scopeId","data-v-d16448de"]]),je=L({__name:"FormAutoFill",props:{broker:null,form:null},setup(r){const e=r,n=window.__runs||(window.__runs={previous:[],current:[]});e.broker.on("start",()=>{n.previous=n.current,n.current=[]});const t=N(null);function o(){for(const h in n.current){const c=n.previous[h],i=n.current[h];if(!c||c.type!==i.type||c.type=="form"&&!$.exports.isEqual(c.widgets,i.widgets)||c.type=="form-response"&&!$.exports.isEqual(c.payload,i.payload))return null}const a=n.previous[n.current.length];if((a==null?void 0:a.type)!=="form-response")return null;t.value=a}function d(){const a=t.value;a&&e.broker.send(a)}return e.broker.on("form",a=>{n.current.push(a),o()}),e.broker.on("form-response",a=>{n.current.push(a),t.value=null}),(a,h)=>t.value?(f(),w(Re,{key:0,"icon-path":T(be),class:"form-auto-fill-btn",onClick:d},{default:re(()=>[ce(" Repeat last answer ")]),_:1},8,["icon-path"])):P("",!0)}});const Oe=C(je,[["__scopeId","data-v-9590d96b"]]);class _{constructor(e,n){u(this,"element",null);this.name=e,this.isDefault=n}static fromDto(e){return typeof e=="string"?new _(e,!1):new _(e.name,e.is_default)}setElement(e){e instanceof HTMLElement&&(this.element=e)}get isFocused(){return this.element===document.activeElement}focusOnButton(){var e;(e=this.element)==null||e.focus()}addKeydownListener(e){var n;(n=this.element)==null||n.addEventListener("keydown",e)}}class H{constructor(e){this.form=e}static from(e){return new H(e)}get startAction(){var e;return[_.fromDto((e=this.form.startButtonText)!=null?e:"Start")]}get restartAction(){var n;const e=(n=this.form.restartButtonText)!=null?n:"Restart";return this.form.allowRestart?[_.fromDto(e)]:[]}fromPageActionsDto(e){return e.filter(n=>!!n).map(n=>_.fromDto(n))}}async function Ue(r){window.should_ask_before_leave=!1,window.location.href=r.url}const Ne={redirect:Ue,"execute-js":Ee};class V{constructor(e,n){u(this,"loading",!1);u(this,"endedByPage",!1);u(this,"reactivePollInterval",null);u(this,"programEnded",!1);u(this,"widgetError",()=>{this.newPageDefinition({widgets:[{type:"error"}],actions:[],fullWidth:!1,hasError:!1,steps:null})});u(this,"widgetEnd",()=>{this.endedByPage||this.newPageDefinition({widgets:[{type:"end"}],actions:this.pageActionFactory.restartAction,fullWidth:!1,hasError:!1,steps:null})});u(this,"sendUser",e=>{this.broker.send({type:"auth:saved-jwt",jwt:e.jwt}),this.broker.send({type:"metadata",payload:{authenticated_user:e.claims.email}})});u(this,"sendBrowserTryDisconnect",()=>{this.broker.send({type:"browser:try-disconnect"})});u(this,"newPageDefinitionListener",()=>{});u(this,"updatePageDefinitionListener",()=>{});u(this,"onReactivePollListener",()=>{});u(this,"onErrorListener",()=>{});u(this,"onExitListener",()=>{});u(this,"onStartAuthListener");u(this,"onEndAuthListener");u(this,"onBadAuthListener");this.broker=e,this.pageActionFactory=n}static create(e,n){const t=new V(e,n);return t.broker.onClose(()=>{if(t.programEnded)return;const o="Connection with service closed before program ended";t.widgetError(),t.error(o)}),t.broker.on("form",({widgets:o,actions:d,buttonText:a,endProgram:h,reactivePollingInterval:c,steps:i})=>{t.loading=!1,t.newPageDefinition({widgets:o,actions:t.pageActionFactory.fromPageActionsDto(a?[a]:d!=null?d:[]),fullWidth:o.some(v=>"fullWidth"in v&&v.fullWidth),hasError:!1,steps:i}),c&&(t.reactivePollInterval=setInterval(t.onReactivePollListener,c*1e3)),h&&(t.endedByPage=!0,t.broker.send({type:"form-response",payload:{},secrets:[]}))}),t.broker.on("action",async({action:o})=>{var h;let d=null,a;try{const{type:c}=o;d=(h=await Ne[c](o))!=null?h:null}catch(c){a=c.message}t.broker.send({type:"action-response",value:d,errorMessage:a})}),t.broker.on("auth:require-info",()=>{t.newPageDefinition({widgets:[],actions:[],fullWidth:!1,hasError:!1,steps:null}),t.onStartAuthListener&&t.onStartAuthListener()}),t.broker.on("auth:valid-jwt",()=>{t.onEndAuthListener&&t.onEndAuthListener()}),t.broker.on("auth:invalid-jwt",()=>{console.warn("invalid jwt"),t.onBadAuthListener&&t.onBadAuthListener()}),t.broker.on("program:connection-error",o=>{t.widgetError(),t.error(o)}),t.broker.on("program:end",o=>{t.programEnded=!0,o.exitCode||o.exception?(t.widgetError(),t.error(o)):(t.widgetEnd(),t.exit(o))}),t.broker.on("program:disconnect",o=>{t.exit(o)}),t.broker.on("not-enough-credits",()=>{t.error({error:"not-enough-credits"}),t.programEnded=!0}),t.broker.on("heartbeat",()=>{t.broker.resetHeartbeatCounter()}),t.broker.on("user-response-event",({widgets:o,validation:d})=>{t.updatePageDefinition({widgets:o,validation:{message:d.message,status:d.status},fullWidth:o.some(a=>"fullWidth"in a&&a.fullWidth)})}),t}next(e,n,t,o){if((de(Object.values(e))||!t)&&(n==null?void 0:n.name)!=="Back"){this.updatePageDefinition({hasError:!0});return}this.reactivePollInterval&&clearInterval(this.reactivePollInterval);const a={};Object.keys(e).forEach(h=>{a[h]=e[h].value}),this.loading=!0,this.broker.send({type:"form-response",payload:a,action:n==null?void 0:n.name,secrets:o}),this.newPageDefinition({widgets:[],fullWidth:!1,hasError:!1,actions:[],steps:null})}sendUserEvent(e,n){const t={};Object.keys(e).forEach(o=>{t[o]=e[o].value}),this.broker.send({type:"user-event",payload:t,secrets:n})}init(e){this.broker.resetState(),this.newPageDefinition({widgets:[],actions:[],fullWidth:!1,hasError:!1,steps:null}),this.broker.connect(e!=null?e:{})}newPageDefinition(e){this.newPageDefinitionListener(e)}updatePageDefinition(e){this.loading||this.updatePageDefinitionListener(e)}listenToNewPageDefinition(e){this.newPageDefinitionListener=e}listenToPageDefinitionUpdate(e){this.updatePageDefinitionListener=e}onReactivePoll(e){this.onReactivePollListener=e}error(e){this.reactivePollInterval&&clearInterval(this.reactivePollInterval),this.onErrorListener(e)}onError(e){this.onErrorListener=e}exit(e){this.reactivePollInterval&&clearInterval(this.reactivePollInterval),this.onExitListener(e)}onExit(e){this.onExitListener=e}onStartAuth(e){this.onStartAuthListener=e}onEndAuth(e){this.onEndAuthListener=e}onBadAuth(e){this.onBadAuthListener=e}}const $e={key:0,class:"form-wrapper"},Te=["id"],He={key:0,class:"span-error"},Ve={key:1,class:"loading-wrapper"},Me={class:"span-error"},qe={class:"buttons"},ze=L({__name:"FormRunner",props:{form:{type:Object,required:!0},params:Object,isPreview:Boolean,enableAutoFocus:{type:Boolean,required:!0},broker:{type:Object,required:!0}},emits:["log","error","exit","navigate","logout","start"],setup(r,{expose:e,emit:n}){const t=r,o=N(null),d=F(()=>H.from(t.form)),a=s=>n("navigate",s),h=()=>{i.value={widgets:[{type:"start"}],actions:d.value.startAction,fullWidth:!1,hasError:!1,steps:null}};he(()=>t.form,()=>{var s;((s=i.value.widgets[0])==null?void 0:s.type)=="start"&&h()});const c=Q({user:null,authenticating:!1}),i=N({widgets:[],fullWidth:!1,hasError:!1,actions:[],steps:null}),v=Q({responses:{},formState:"idle"}),S=F(()=>i.value.widgets.reduce((s,l)=>("key"in l&&(s[l.key]=v.responses[l.key]),s),{})),A=F(()=>i.value.widgets.filter(s=>"secret"in s).reduce((s,l)=>"key"in l&&"secret"in l?[...s,{key:l.key,secret:l.secret}]:s,[]));M();function M(){c.user=j.getUser()}const se=()=>{j.removeUser(),M(),n("logout")},p=V.create(t.broker,d.value);p.onError(s=>{var l;if(n("error",s),v.formState="error",s.error==="not-enough-credits"){(l=o.value)==null||l.open(),h();return}}),p.onExit(s=>{n("exit",s),v.formState="over"}),p.onStartAuth(()=>{c.user?p.sendUser(c.user):c.authenticating=!0}),p.onEndAuth(()=>{c.authenticating=!1}),p.onBadAuth(()=>{j.removeUser(),c.user=null,c.authenticating=!0}),p.onReactivePoll(()=>{p.sendUserEvent(S.value,A.value)});const oe=s=>{c.user=s,p.sendUser(s)};p.listenToNewPageDefinition(s=>{var l,g;i.value=s,X.init(t.enableAutoFocus,()=>I()),v.responses=fe((g=(l=i.value)==null?void 0:l.widgets)!=null?g:[])}),p.listenToPageDefinitionUpdate(s=>{var l,g;i.value={...i.value,...s},v.responses=pe((g=(l=i.value)==null?void 0:l.widgets)!=null?g:[],v.responses)});const q=s=>{var l;if(!(v.formState!=="running"||t.isPreview||!((l=window.should_ask_before_leave)==null||l)))return p.sendBrowserTryDisconnect(),s.preventDefault(),s.returnValue="Are you sure?",""};me(async()=>{window.addEventListener("beforeunload",q),h(),X.init(t.enableAutoFocus,s=>I(s)),t.form.autoStart&&W()}),ve(()=>{t.broker.close(),window.removeEventListener("beforeunload",q)});const I=s=>{var l,g;if(v.formState!=="running")return W();p.next(S.value,s,(g=(l=i.value.validation)==null?void 0:l.status)!=null?g:!0,A.value)},W=async()=>{p.init(t.params),v.formState="running",n("start")},D=s=>ye(s.type)?v.responses[s.key]:null;function z(s,l,g){if(p.sendUserEvent(S.value,g),l===i.value.widgets.length-1&&["multiple-choice-input","cards-input"].includes(i.value.widgets[l].type)&&i.value.actions.filter(x=>!!x).length===0&&s.value!==null&&(!$.exports.isArray(s.value)||s.value.length)){I();return}}return e({run:W}),(s,l)=>(f(),w(Ie,{class:Z([{preview:r.isPreview},"runner"]),"main-color":r.form.mainColor,theme:r.form.theme,"font-family":r.form.fontFamily,runtime:"form"},{default:re(()=>{var g,x;return[r.isPreview?(f(),w(Oe,{key:0,class:"auto-fill-btn",broker:r.broker,form:r.form,style:{"z-index":1}},null,8,["broker","form"])):P("",!0),R(Pe,{ref_key:"runtimeCommonsRef",ref:o,runtime:r.form,"full-width":i.value.fullWidth,"steps-info":i.value.steps,"is-preview":r.isPreview,"user-email":(g=c.user)==null?void 0:g.claims.email,type:"forms",onLogout:se,onNavigate:a},null,8,["runtime","full-width","steps-info","is-preview","user-email"]),E("main",null,[c.authenticating?(f(),w(ke,{key:1,class:"form-auth",onDone:oe})):(f(),y("div",{key:0,class:Z(["form",{"full-width":i.value.fullWidth}])},[i.value.widgets.length>0?(f(),y("div",$e,[(f(!0),y(ee,null,te(i.value.widgets,(m,k)=>{var J,G,K,Y;return f(),y("div",{id:m.type+k,key:(J=m.key)!=null?J:m.type+k,class:"widget"},[(f(),w(ge(m.type),{data:m,response:D(m),form:r.form,page:i.value,"has-error":((G=D(m))==null?void 0:G.isInvalid())&&i.value.hasError,runtime:"form",onChange:B=>z(B,k,T(A)),onSetInitialValue:B=>z(B,k)},null,40,["data","response","form","page","has-error","onChange","onSetInitialValue"])),R(We,{hint:"hint"in m?m.hint:null},null,8,["hint"]),((K=D(m))==null?void 0:K.isInvalid())&&i.value.hasError?(f(),y("span",He,U((Y=D(m))==null?void 0:Y.errorMessages().join(` `)),1)):P("",!0)],8,Te)}),128))])):(f(),y("div",Ve,[R(De)])),E("span",Me,U((x=i.value.validation)==null?void 0:x.message),1),E("div",qe,[(f(!0),y(ee,null,te(i.value.actions,m=>(f(),w(_e,{key:m.name,action:m,onNext:k=>I(m)},null,8,["action","onNext"]))),128))])],2))])]}),_:1},8,["class","main-color","theme","font-family"]))}});const st=C(ze,[["__scopeId","data-v-468c1eb1"]]);function Je(r){return r.type==="form"&&r.payload?{...r,type:"form-response"}:r.type==="user-event"&&r.widgets?{...r,type:"user-response-event"}:r}const Ge=[WebSocket.CLOSING,WebSocket.CLOSED];function ne(r,e){const n=r[e.type];if(!n){console.warn("no callback for",e.type);return}n.forEach(t=>t(e))}const b=class{constructor(e){u(this,"formPath",null);u(this,"ws",null);u(this,"callbacks",{"form-response":[],"user-response-event":[],start:[],"auth:info":[],"auth:saved-jwt":[],"auth:restart":[],"auth:validate-token":[],"auth:resend-token":[],heartbeat:[],metadata:[],"executed-by":[],"action-response":[],"user-event":[],"program:end":[],"program:disconnect":[],"program:connection-error":[],stderr:[],stdout:[],form:[],action:[],"not-enough-credits":[],"auth:require-info":[],"auth:expecting-token":[],"auth:token-expired":[],"auth:invalid-token":[],"auth:invalid-jwt":[],"auth:valid-token":[],"auth:valid-jwt":[],"browser:disconnect":[],"browser:try-disconnect":[]});u(this,"onCloseCallbacks",[]);u(this,"heartbeatCounter",0);u(this,"heartbeatInterval");u(this,"params",{});var n;"formPath"in e&&(this.formPath=(n=e.formPath)!=null?n:null)}static create(e){return b._instance&&b._instance.close(),b._instance=new b(e),b._instance}get url(){return`${location.protocol==="https:"?"wss:":"ws:"}//${location.host}/_socket?formPath=${encodeURIComponent(this.formPath)}`}resetState(){this.close()}resetHeartbeatCounter(){this.heartbeatCounter=0}on(e,n){this.callbacks[e].push(n)}clearWSEvents(){!this.ws||(clearInterval(this.heartbeatInterval),this.ws.onclose=()=>{},this.ws.onerror=()=>{},this.ws.onmessage=()=>{})}async connect(e,n=1){if(!(n>3))return this.params=e!=null?e:this.params,new Promise(t=>{this.clearWSEvents(),this.ws=new WebSocket(this.url),this.ws.onopen=()=>{t(),this.resetHeartbeatCounter(),this.send({type:"start",params:this.params})};let o=!1;const d=()=>{o||(o=!0)};this.ws.onclose=a=>{if(a.code===1006||!a.wasClean)return d();clearInterval(this.heartbeatInterval),this.onCloseCallbacks.forEach(h=>h())},this.ws.onerror=()=>d(),this.ws.onmessage=a=>{const h=JSON.parse(a.data);ne(this.callbacks,Je(h))},this.heartbeatInterval=setInterval(()=>{if(!(!this.ws||this.ws.readyState!==this.ws.OPEN)){if(this.heartbeatCounter++,this.heartbeatCounter>3)return this.ws.onclose=()=>{},clearInterval(this.heartbeatInterval),d();this.send({type:"heartbeat"})}},2e3)}).catch(()=>{this.connect(this.params,n+1)})}onClose(e){this.onCloseCallbacks.push(e)}close(){if(!this.ws){console.warn("no websocket to close");return}this.clearWSEvents(),this.ws.close()}async send(e){if(!this.ws){console.warn("no websocket to send");return}Ge.includes(this.ws.readyState)&&await this.connect(),this.ws.send(JSON.stringify(e)),ne(this.callbacks,e)}};let O=b;u(O,"_instance");export{st as F,O as R}; -//# sourceMappingURL=broker.4d1bc0fe.js.map +//# sourceMappingURL=broker.988d8f9b.js.map diff --git a/abstra_statics/dist/assets/build.dca4605d.js b/abstra_statics/dist/assets/build.56ee1e90.js similarity index 61% rename from abstra_statics/dist/assets/build.dca4605d.js rename to abstra_statics/dist/assets/build.56ee1e90.js index b6a20511c0..0a53eadb63 100644 --- a/abstra_statics/dist/assets/build.dca4605d.js +++ b/abstra_statics/dist/assets/build.56ee1e90.js @@ -1,2 +1,2 @@ -var d=Object.defineProperty;var o=(r,t,e)=>t in r?d(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var i=(r,t,e)=>(o(r,typeof t!="symbol"?t+"":t,e),e);import{C as s}from"./gateway.63e02d1d.js";import{A as u}from"./activeRecord.2bc1b71f.js";import"./registerWidgets.3fe0df5a.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[t]="96955b59-2ce8-46c5-8586-c9ea51dc4c74",r._sentryDebugIdIdentifier="sentry-dbid-96955b59-2ce8-46c5-8586-c9ea51dc4c74")}catch{}})();class h{constructor(){i(this,"urlPath","builds")}async create(t){return s.post(`projects/${t.projectId}/${this.urlPath}`,{})}async delete(t){await s.delete(`${this.urlPath}/${t}`)}async list(t){return s.get(`projects/${t}/${this.urlPath}`)}async get(t){return s.get(`${this.urlPath}/${t}`)}async update(t,e){return s.patch(`${this.urlPath}/${t}`,e)}async duplicate(t){return s.post(`${this.urlPath}/${t}/duplicate`,{})}}const a=new h;class c{constructor(t){i(this,"record");this.record=u.create(a,t,"id")}static async list(t){return(await a.list(t)).map(n=>new c(n))}static async create(t){const e=await a.create({projectId:t});return new c(e)}static async get(t){const e=await a.get(t);return new c(e)}async delete(){await a.delete(this.id)}async save(){this.record.save()}hasChanges(){return this.record.hasChanges()}get id(){return this.record.get("id")}set id(t){this.record.set("id",t)}async duplicate(){return await a.duplicate(this.id)}get label(){return`${this.createdAt.toString().slice(0,16).replace("T"," ")} (${this.id.split("-")[0]})`}get name(){return this.record.get("name")}set name(t){this.record.set("name",t)}get projectId(){return this.record.get("projectId")}get createdAt(){return this.record.get("createdAt")}get status(){return this.record.get("status")}get log(){return this.record.get("log")}}export{c as B}; -//# sourceMappingURL=build.dca4605d.js.map +var n=Object.defineProperty;var o=(r,t,e)=>t in r?n(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var c=(r,t,e)=>(o(r,typeof t!="symbol"?t+"":t,e),e);import{C as s}from"./gateway.2edca867.js";import{A as u}from"./activeRecord.adfc6223.js";import"./registerWidgets.cb3a7b8d.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[t]="629dd0af-30f4-44d9-b539-87fec84d0186",r._sentryDebugIdIdentifier="sentry-dbid-629dd0af-30f4-44d9-b539-87fec84d0186")}catch{}})();class h{constructor(){c(this,"urlPath","builds")}async create(t){return s.post(`projects/${t.projectId}/${this.urlPath}`,{})}async delete(t){await s.delete(`${this.urlPath}/${t}`)}async list(t){return s.get(`projects/${t}/${this.urlPath}`)}async get(t){return s.get(`${this.urlPath}/${t}`)}async update(t,e){return s.patch(`${this.urlPath}/${t}`,e)}async duplicate(t){return s.post(`${this.urlPath}/${t}/duplicate`,{})}}const a=new h;class i{constructor(t){c(this,"record");this.record=u.create(a,t,"id")}static async list(t){return(await a.list(t)).map(d=>new i(d))}static async create(t){const e=await a.create({projectId:t});return new i(e)}static async get(t){const e=await a.get(t);return new i(e)}async delete(){await a.delete(this.id)}async save(){this.record.save()}hasChanges(){return this.record.hasChanges()}get id(){return this.record.get("id")}set id(t){this.record.set("id",t)}async duplicate(){return await a.duplicate(this.id)}get label(){return`${this.createdAt.toString().slice(0,16).replace("T"," ")} (${this.id.split("-")[0]})`}get name(){return this.record.get("name")}set name(t){this.record.set("name",t)}get projectId(){return this.record.get("projectId")}get createdAt(){return this.record.get("createdAt")}get status(){return this.record.get("status")}get log(){return this.record.get("log")}}export{i as B}; +//# sourceMappingURL=build.56ee1e90.js.map diff --git a/abstra_statics/dist/assets/colors.b2406923.js b/abstra_statics/dist/assets/colors.868ae049.js similarity index 88% rename from abstra_statics/dist/assets/colors.b2406923.js rename to abstra_statics/dist/assets/colors.868ae049.js index 652939a946..9c48320b85 100644 --- a/abstra_statics/dist/assets/colors.b2406923.js +++ b/abstra_statics/dist/assets/colors.868ae049.js @@ -1,2 +1,2 @@ -import"./registerWidgets.3fe0df5a.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="9d713dfa-ed2d-412b-86ab-a3ae450f86c5",e._sentryDebugIdIdentifier="sentry-dbid-9d713dfa-ed2d-412b-86ab-a3ae450f86c5")}catch{}})();const _={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},x="#000",A="#272D35",C="#ffffff",I="#1b1b23";function w(e,r){const{r:n,g:t,b:a,usePound:i}=h(e);return b(g(n,-r),g(t,-r),g(a,-r),i)}function g(e,r){const n=e*(100+r*100)/100;return n>255?255:n<0?0:Math.round(n)}const L=(e,r)=>p(w(p(e),r)),F=e=>{if(q(e))return d(e);const r=_[e.toLowerCase()];if(!r)return!1;const[n,t,a]=r;return d(b(n,t,a))},E=e=>d(e)?C:I,M=e=>d(e)?L(e,.1):w(e,.1);function d(e){const{r,g:n,b:t}=h(e);return r*.299+n*.587+t*.114<186}function h(e){let r=!1;e[0]=="#"&&(e=e.slice(1),r=!0);const n=parseInt(e,16);return{r:n>>16&255,g:n>>8&255,b:n&255,usePound:r}}function p(e){const{r,g:n,b:t,usePound:a}=h(e);return b(255-r,255-n,255-t,a)}const b=(e,r,n,t=!0)=>(t?"#":"")+(n|r<<8|e<<16).toString(16).padStart(6,"0");function q(e){if(e.length>9)return!1;const r=e.startsWith("#")?e.slice(1):e;return/[0-9A-Fa-f]{6}/g.test(r)}function T(e){return/https?:\/\/[^\s]+/g.test(e)}const c={};function H(e){return e in c||(c[e]=new Promise(r=>{const n=document.createElement("img");n.src=e,n.crossOrigin="Anonymous",n.style.display="none",document.body.appendChild(n);let t=0;n.onload=()=>{const{width:a,height:i}=n,o=document.createElement("canvas");o.width=a,o.height=i;const u=o.getContext("2d");if(!u)return r(!1);u.drawImage(n,0,0);const v=u.getImageData(0,0,o.width,o.height),{data:s}=v;let m,f,y,k;for(let l=0,O=s.length;l255?255:n<0?0:Math.round(n)}const L=(e,r)=>p(w(p(e),r)),F=e=>{if(q(e))return d(e);const r=_[e.toLowerCase()];if(!r)return!1;const[n,t,a]=r;return d(f(n,t,a))},E=e=>d(e)?C:I,M=e=>d(e)?L(e,.1):w(e,.1);function d(e){const{r,g:n,b:t}=h(e);return r*.299+n*.587+t*.114<186}function h(e){let r=!1;e[0]=="#"&&(e=e.slice(1),r=!0);const n=parseInt(e,16);return{r:n>>16&255,g:n>>8&255,b:n&255,usePound:r}}function p(e){const{r,g:n,b:t,usePound:a}=h(e);return f(255-r,255-n,255-t,a)}const f=(e,r,n,t=!0)=>(t?"#":"")+(n|r<<8|e<<16).toString(16).padStart(6,"0");function q(e){if(e.length>9)return!1;const r=e.startsWith("#")?e.slice(1):e;return/[0-9A-Fa-f]{6}/g.test(r)}function T(e){return/https?:\/\/[^\s]+/g.test(e)}const c={};function H(e){return e in c||(c[e]=new Promise(r=>{const n=document.createElement("img");n.src=e,n.crossOrigin="Anonymous",n.style.display="none",document.body.appendChild(n);let t=0;n.onload=()=>{const{width:a,height:i}=n,o=document.createElement("canvas");o.width=a,o.height=i;const u=o.getContext("2d");if(!u)return r(!1);u.drawImage(n,0,0);const v=u.getImageData(0,0,o.width,o.height),{data:s}=v;let b,m,y,k;for(let l=0,O=s.length;lt in r?o(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var c=(r,t,e)=>(u(r,typeof t!="symbol"?t+"":t,e),e);import{A as h}from"./activeRecord.2bc1b71f.js";import{C as a}from"./gateway.63e02d1d.js";import{b as g}from"./index.24c9f37d.js";import"./registerWidgets.3fe0df5a.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[t]="b0d6a859-93bf-4c9e-a75d-3c6008fde021",r._sentryDebugIdIdentifier="sentry-dbid-b0d6a859-93bf-4c9e-a75d-3c6008fde021")}catch{}})();class y{constructor(){c(this,"urlPath","connectors")}async create(t){return a.post(`projects/${t.projectId}/${this.urlPath}`,t)}async delete(t){await a.delete(`${this.urlPath}/${t}`)}async list(t){return a.get(`projects/${t}/${this.urlPath}`)}async get(t){return a.get(`${this.urlPath}/${t}`)}async update(t,e){return a.patch(`${this.urlPath}/${t}`,e)}async test(t,e,s){return await a.post(`${this.urlPath}/${t}/test`,{method:e,params:s})}}const n=new y;class i{constructor(t){c(this,"record");this.record=h.create(n,t,"id")}static async list(t){return(await n.list(t)).map(s=>new i(s))}static async create(t,e,s){const d=await n.create({projectId:t,name:e,type:s});return new i(d)}static async get(t){const e=await n.get(t);return new i(e)}async delete(){await n.delete(this.id)}async test(t,e){return await n.test(this.id,t,e)}async save(){this.record.save()}hasChanges(){return this.record.hasChanges()}get id(){return this.record.get("id")}set id(t){this.record.set("id",t)}get name(){return this.record.get("name")}set name(t){this.record.set("name",t)}get projectId(){return this.record.get("projectId")}get type(){return this.record.get("type")}get settings(){return new Proxy(this.record.get("settings"),{set:(t,e,s)=>(t[e]=s,this.record.set("settings",t),!0)})}get schema(){return g.schema[this.type]}}export{i as C}; -//# sourceMappingURL=connector.01592434.js.map +var o=Object.defineProperty;var u=(r,t,e)=>t in r?o(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var c=(r,t,e)=>(u(r,typeof t!="symbol"?t+"":t,e),e);import{A as h}from"./activeRecord.adfc6223.js";import{C as a}from"./gateway.2edca867.js";import{b as g}from"./index.7fea4022.js";import"./registerWidgets.cb3a7b8d.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[t]="039f1201-86f3-4095-b057-ad94137c2442",r._sentryDebugIdIdentifier="sentry-dbid-039f1201-86f3-4095-b057-ad94137c2442")}catch{}})();class y{constructor(){c(this,"urlPath","connectors")}async create(t){return a.post(`projects/${t.projectId}/${this.urlPath}`,t)}async delete(t){await a.delete(`${this.urlPath}/${t}`)}async list(t){return a.get(`projects/${t}/${this.urlPath}`)}async get(t){return a.get(`${this.urlPath}/${t}`)}async update(t,e){return a.patch(`${this.urlPath}/${t}`,e)}async test(t,e,s){return await a.post(`${this.urlPath}/${t}/test`,{method:e,params:s})}}const n=new y;class i{constructor(t){c(this,"record");this.record=h.create(n,t,"id")}static async list(t){return(await n.list(t)).map(s=>new i(s))}static async create(t,e,s){const d=await n.create({projectId:t,name:e,type:s});return new i(d)}static async get(t){const e=await n.get(t);return new i(e)}async delete(){await n.delete(this.id)}async test(t,e){return await n.test(this.id,t,e)}async save(){this.record.save()}hasChanges(){return this.record.hasChanges()}get id(){return this.record.get("id")}set id(t){this.record.set("id",t)}get name(){return this.record.get("name")}set name(t){this.record.set("name",t)}get projectId(){return this.record.get("projectId")}get type(){return this.record.get("type")}get settings(){return new Proxy(this.record.get("settings"),{set:(t,e,s)=>(t[e]=s,this.record.set("settings",t),!0)})}get schema(){return g.schema[this.type]}}export{i as C}; +//# sourceMappingURL=connector.83eaa2db.js.map diff --git a/abstra_statics/dist/assets/console.3ec2403f.js b/abstra_statics/dist/assets/console.3ec2403f.js new file mode 100644 index 0000000000..5a611be7a0 --- /dev/null +++ b/abstra_statics/dist/assets/console.3ec2403f.js @@ -0,0 +1,2 @@ +import{q as i,a as s,b as _,c as p,e as c,f as m,g as d,_ as t,h as u,T as h,i as l,P as g,C as E,M as v,I,s as f,j as a,k as b,l as w,m as y,n as D}from"./registerWidgets.cb3a7b8d.js";import{p as A}from"./passwordlessManager.afd7d1d0.js";import{u as P}from"./index.7d1457d9.js";import"./pubsub.f85a17d2.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="ab3edfde-950d-4ea9-b100-853e944df988",e._sentryDebugIdIdentifier="sentry-dbid-ab3edfde-950d-4ea9-b100-853e944df988")}catch{}})();const T={},V={style:{height:"100vh","box-sizing":"border-box",width:"100%"}};function R(e,o){const n=s("router-view");return _(),p("div",V,[c(n)])}const L=i(T,[["render",R]]),r=m({history:d("/"),routes:[{path:"/widget-preview",name:"widget-preview",meta:{allowUnauthenticated:!0},component:()=>t(()=>import("./WidgetPreview.d19ff7f7.js"),["assets/WidgetPreview.d19ff7f7.js","assets/ActionButton.vue_vue_type_script_setup_true_lang.9a3f9909.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css","assets/WidgetsFrame.aac2edff.js","assets/colors.868ae049.js","assets/WidgetsFrame.701a818b.css","assets/WidgetPreview.83bab6c7.css"])},{path:"/login",name:"login",meta:{allowUnauthenticated:!0},component:()=>t(()=>import("./Login.9fadb45e.js"),["assets/Login.9fadb45e.js","assets/Passwordless.7161b834.js","assets/CircularLoading.1e68d2b1.js","assets/lottie.234eb92e.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css","assets/CircularLoading.f81b57b4.css","assets/icons.39dfa322.js","assets/passwordlessManager.afd7d1d0.js","assets/pubsub.f85a17d2.js","assets/Passwordless.86ac0c56.css","assets/Navbar.03aff786.js","assets/logo.084e5d7c.js","assets/asyncComputed.31994732.js","assets/Navbar.a5a179d1.css","assets/member.f9b469b1.js","assets/gateway.2edca867.js","assets/activeRecord.adfc6223.js","assets/Login.8e4eb3db.css"])},{path:"/",name:"home",redirect:{name:"organizations"}},{path:"/organizations",name:"organizations",component:()=>t(()=>import("./Organizations.224909fb.js"),["assets/Organizations.224909fb.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css","assets/icons.39dfa322.js","assets/asyncComputed.31994732.js","assets/gateway.2edca867.js","assets/passwordlessManager.afd7d1d0.js","assets/pubsub.f85a17d2.js","assets/organization.abd54459.js","assets/activeRecord.adfc6223.js","assets/index.7fea4022.js","assets/CrudView.87a92735.js","assets/DropdownMenu.c973057b.js","assets/DropdownMenu.4f69c722.css","assets/Modal.43c3d47a.js","assets/Modal.5aaf8eba.css","assets/LoadingIndicator.d4ffd545.js","assets/lottie.234eb92e.js","assets/LoadingIndicator.f4d31167.css","assets/CrudView.47836ec6.css","assets/Navbar.03aff786.js","assets/logo.084e5d7c.js","assets/Navbar.a5a179d1.css","assets/Organizations.07de1b82.css"])},{path:"/organizations/:organizationId",name:"organization",component:()=>t(()=>import("./Organization.36311c7f.js"),["assets/Organization.36311c7f.js","assets/Sidebar.2a0e2b35.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css","assets/icons.39dfa322.js","assets/Tooltip.f700ff7d.js","assets/Tooltip.63c4352e.css","assets/Sidebar.054bea37.css","assets/Navbar.03aff786.js","assets/logo.084e5d7c.js","assets/passwordlessManager.afd7d1d0.js","assets/pubsub.f85a17d2.js","assets/asyncComputed.31994732.js","assets/Navbar.a5a179d1.css","assets/gateway.2edca867.js","assets/organization.abd54459.js","assets/activeRecord.adfc6223.js","assets/index.7fea4022.js","assets/Organization.b3fd9094.css"]),redirect:{name:"projects"},children:[{path:"projects",name:"projects",component:()=>t(()=>import("./Projects.b96ed09a.js"),["assets/Projects.b96ed09a.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css","assets/icons.39dfa322.js","assets/asyncComputed.31994732.js","assets/project.af2b2708.js","assets/gateway.2edca867.js","assets/passwordlessManager.afd7d1d0.js","assets/pubsub.f85a17d2.js","assets/activeRecord.adfc6223.js","assets/organization.abd54459.js","assets/index.7fea4022.js","assets/CrudView.87a92735.js","assets/DropdownMenu.c973057b.js","assets/DropdownMenu.4f69c722.css","assets/Modal.43c3d47a.js","assets/Modal.5aaf8eba.css","assets/LoadingIndicator.d4ffd545.js","assets/lottie.234eb92e.js","assets/LoadingIndicator.f4d31167.css","assets/CrudView.47836ec6.css"])},{path:"settings",name:"organization-settings",component:()=>t(()=>import("./OrganizationSettings.7da565f5.js"),["assets/OrganizationSettings.7da565f5.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css"])},{path:"members",name:"members",component:()=>t(()=>import("./Members.af8492bb.js"),["assets/Members.af8492bb.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css","assets/asyncComputed.31994732.js","assets/gateway.2edca867.js","assets/passwordlessManager.afd7d1d0.js","assets/pubsub.f85a17d2.js","assets/member.f9b469b1.js","assets/activeRecord.adfc6223.js","assets/index.7fea4022.js","assets/CrudView.87a92735.js","assets/DropdownMenu.c973057b.js","assets/DropdownMenu.4f69c722.css","assets/Modal.43c3d47a.js","assets/Modal.5aaf8eba.css","assets/LoadingIndicator.d4ffd545.js","assets/lottie.234eb92e.js","assets/LoadingIndicator.f4d31167.css","assets/CrudView.47836ec6.css"])}]},{path:"/projects/:projectId",name:"project",component:()=>t(()=>import("./Project.5e72a606.js"),["assets/Project.5e72a606.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css","assets/asyncComputed.31994732.js","assets/project.af2b2708.js","assets/gateway.2edca867.js","assets/passwordlessManager.afd7d1d0.js","assets/pubsub.f85a17d2.js","assets/activeRecord.adfc6223.js","assets/organization.abd54459.js","assets/index.7fea4022.js","assets/Navbar.03aff786.js","assets/logo.084e5d7c.js","assets/Navbar.a5a179d1.css","assets/Sidebar.2a0e2b35.js","assets/icons.39dfa322.js","assets/Tooltip.f700ff7d.js","assets/Tooltip.63c4352e.css","assets/Sidebar.054bea37.css","assets/Project.efdfb078.css"]),redirect:{name:"builds"},children:[{path:"builds",name:"builds",component:()=>t(()=>import("./Builds.f10692eb.js"),["assets/Builds.f10692eb.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css","assets/asyncComputed.31994732.js","assets/gateway.2edca867.js","assets/passwordlessManager.afd7d1d0.js","assets/pubsub.f85a17d2.js","assets/build.56ee1e90.js","assets/activeRecord.adfc6223.js","assets/index.7fea4022.js","assets/CrudView.87a92735.js","assets/DropdownMenu.c973057b.js","assets/DropdownMenu.4f69c722.css","assets/Modal.43c3d47a.js","assets/Modal.5aaf8eba.css","assets/LoadingIndicator.d4ffd545.js","assets/lottie.234eb92e.js","assets/LoadingIndicator.f4d31167.css","assets/CrudView.47836ec6.css","assets/Builds.65f9d2c9.css"])},{path:"connectors",name:"connectors",component:()=>t(()=>import("./Connectors.8da89729.js"),["assets/Connectors.8da89729.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css","assets/index.7fea4022.js","assets/gateway.2edca867.js","assets/passwordlessManager.afd7d1d0.js","assets/pubsub.f85a17d2.js","assets/connector.83eaa2db.js","assets/activeRecord.adfc6223.js","assets/asyncComputed.31994732.js","assets/icons.39dfa322.js","assets/CrudView.87a92735.js","assets/DropdownMenu.c973057b.js","assets/DropdownMenu.4f69c722.css","assets/Modal.43c3d47a.js","assets/Modal.5aaf8eba.css","assets/LoadingIndicator.d4ffd545.js","assets/lottie.234eb92e.js","assets/LoadingIndicator.f4d31167.css","assets/CrudView.47836ec6.css"])},{path:"api-keys",name:"api-keys",component:()=>t(()=>import("./ApiKeys.cd17e8f1.js"),["assets/ApiKeys.cd17e8f1.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css","assets/asyncComputed.31994732.js","assets/project.af2b2708.js","assets/gateway.2edca867.js","assets/passwordlessManager.afd7d1d0.js","assets/pubsub.f85a17d2.js","assets/activeRecord.adfc6223.js","assets/member.f9b469b1.js","assets/index.7fea4022.js","assets/CrudView.87a92735.js","assets/DropdownMenu.c973057b.js","assets/DropdownMenu.4f69c722.css","assets/Modal.43c3d47a.js","assets/Modal.5aaf8eba.css","assets/LoadingIndicator.d4ffd545.js","assets/lottie.234eb92e.js","assets/LoadingIndicator.f4d31167.css","assets/CrudView.47836ec6.css","assets/icons.39dfa322.js","assets/ApiKeys.1adf158a.css"])},{path:"logs",name:"logs",component:()=>t(()=>import("./Logs.38d26f92.js"),["assets/Logs.38d26f92.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css","assets/gateway.2edca867.js","assets/passwordlessManager.afd7d1d0.js","assets/pubsub.f85a17d2.js","assets/build.56ee1e90.js","assets/activeRecord.adfc6223.js","assets/index.7fea4022.js","assets/asyncComputed.31994732.js","assets/LoadingIndicator.d4ffd545.js","assets/lottie.234eb92e.js","assets/LoadingIndicator.f4d31167.css","assets/Logs.364fcb0a.css"])},{path:"settings",name:"project-settings",component:()=>t(()=>import("./ProjectSettings.c0546396.js"),["assets/ProjectSettings.c0546396.js","assets/asyncComputed.31994732.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css","assets/project.af2b2708.js","assets/gateway.2edca867.js","assets/passwordlessManager.afd7d1d0.js","assets/pubsub.f85a17d2.js","assets/activeRecord.adfc6223.js","assets/index.7fea4022.js","assets/index.7d1457d9.js","assets/CircularLoading.1e68d2b1.js","assets/lottie.234eb92e.js","assets/CircularLoading.f81b57b4.css","assets/icons.39dfa322.js","assets/ProjectSettings.b8d779fa.css"])},{path:"env-vars",name:"env-vars",component:()=>t(()=>import("./EnvVars.6a0b7ff6.js"),["assets/EnvVars.6a0b7ff6.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css","assets/asyncComputed.31994732.js","assets/gateway.2edca867.js","assets/passwordlessManager.afd7d1d0.js","assets/pubsub.f85a17d2.js","assets/activeRecord.adfc6223.js","assets/index.7fea4022.js","assets/CrudView.87a92735.js","assets/DropdownMenu.c973057b.js","assets/DropdownMenu.4f69c722.css","assets/Modal.43c3d47a.js","assets/Modal.5aaf8eba.css","assets/LoadingIndicator.d4ffd545.js","assets/lottie.234eb92e.js","assets/LoadingIndicator.f4d31167.css","assets/CrudView.47836ec6.css","assets/icons.39dfa322.js"])}]},{path:"/connectors/:connectorId",name:"connectorEditor",component:()=>t(()=>import("./ConnectorEditor.6f621852.js"),["assets/ConnectorEditor.6f621852.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css","assets/index.7fea4022.js","assets/gateway.2edca867.js","assets/passwordlessManager.afd7d1d0.js","assets/pubsub.f85a17d2.js","assets/connector.83eaa2db.js","assets/activeRecord.adfc6223.js","assets/asyncComputed.31994732.js","assets/BackButton.677abc51.js","assets/BackButton.40348456.css","assets/SaveButton.b678d3d3.js","assets/icons.39dfa322.js","assets/SaveButton.c5392044.css","assets/CircularLoading.1e68d2b1.js","assets/lottie.234eb92e.js","assets/CircularLoading.f81b57b4.css","assets/ConnectorEditor.93911b56.css"])}],scrollBehavior(e){if(e.hash)return{el:e.hash}}});r.beforeEach(async(e,o)=>{P(e,o);const n=A.getUser();if(!e.meta.allowUnauthenticated&&!n){await r.push({name:"login"});return}});(async()=>{const e=u({render:()=>b(L)});h.init(),l(e,r),e.use(r),e.use(g),e.mount("#app"),e.component("VSelect",E),e.component("Markdown",v),e.component("Icon",I),e.component("Message",f),a(e,w),a(e,y),a(e,D)})(); +//# sourceMappingURL=console.3ec2403f.js.map diff --git a/abstra_statics/dist/assets/console.f6e915fa.js b/abstra_statics/dist/assets/console.f6e915fa.js deleted file mode 100644 index 7e075c6b5e..0000000000 --- a/abstra_statics/dist/assets/console.f6e915fa.js +++ /dev/null @@ -1,2 +0,0 @@ -import{q as i,a as s,b as _,c as p,e as c,f as m,g as d,_ as t,h as u,T as h,i as l,P as g,C as E,M as v,I as f,s as I,j as r,k as b,l as w,m as y,n as D}from"./registerWidgets.3fe0df5a.js";import{p as A}from"./passwordlessManager.f53316a7.js";import{u as P}from"./index.776642db.js";import"./pubsub.909df758.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="8a663277-dc3a-4ab6-81fa-a667f956fb5d",e._sentryDebugIdIdentifier="sentry-dbid-8a663277-dc3a-4ab6-81fa-a667f956fb5d")}catch{}})();const T={},V={style:{height:"100vh","box-sizing":"border-box",width:"100%"}};function R(e,o){const n=s("router-view");return _(),p("div",V,[c(n)])}const L=i(T,[["render",R]]),a=m({history:d("/"),routes:[{path:"/widget-preview",name:"widget-preview",meta:{allowUnauthenticated:!0},component:()=>t(()=>import("./WidgetPreview.b91d684d.js"),["assets/WidgetPreview.b91d684d.js","assets/ActionButton.vue_vue_type_script_setup_true_lang.9bc2be06.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css","assets/WidgetsFrame.c900894c.js","assets/colors.b2406923.js","assets/WidgetsFrame.701a818b.css","assets/WidgetPreview.83bab6c7.css"])},{path:"/login",name:"login",meta:{allowUnauthenticated:!0},component:()=>t(()=>import("./Login.f9c518ef.js"),["assets/Login.f9c518ef.js","assets/Passwordless.15dd7595.js","assets/CircularLoading.2fb746db.js","assets/lottie.8f58e4c7.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css","assets/CircularLoading.f81b57b4.css","assets/icons.9d575a00.js","assets/passwordlessManager.f53316a7.js","assets/pubsub.909df758.js","assets/Passwordless.86ac0c56.css","assets/Navbar.2ae068c3.js","assets/logo.084e5d7c.js","assets/asyncComputed.4b275614.js","assets/Navbar.a5a179d1.css","assets/member.6c1a1ede.js","assets/gateway.63e02d1d.js","assets/activeRecord.2bc1b71f.js","assets/Login.8e4eb3db.css"])},{path:"/",name:"home",redirect:{name:"organizations"}},{path:"/organizations",name:"organizations",component:()=>t(()=>import("./Organizations.712a63f6.js"),["assets/Organizations.712a63f6.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css","assets/icons.9d575a00.js","assets/asyncComputed.4b275614.js","assets/gateway.63e02d1d.js","assets/passwordlessManager.f53316a7.js","assets/pubsub.909df758.js","assets/organization.dde8e095.js","assets/activeRecord.2bc1b71f.js","assets/index.24c9f37d.js","assets/CrudView.674ca9db.js","assets/DropdownMenu.9edc1223.js","assets/DropdownMenu.4f69c722.css","assets/Modal.32a3d62d.js","assets/Modal.5aaf8eba.css","assets/LoadingIndicator.a20841c3.js","assets/lottie.8f58e4c7.js","assets/LoadingIndicator.f4d31167.css","assets/CrudView.47836ec6.css","assets/Navbar.2ae068c3.js","assets/logo.084e5d7c.js","assets/Navbar.a5a179d1.css","assets/Organizations.07de1b82.css"])},{path:"/organizations/:organizationId",name:"organization",component:()=>t(()=>import("./Organization.4b6159bc.js"),["assets/Organization.4b6159bc.js","assets/Sidebar.09692155.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css","assets/icons.9d575a00.js","assets/Tooltip.93ae2394.js","assets/Tooltip.63c4352e.css","assets/Sidebar.054bea37.css","assets/Navbar.2ae068c3.js","assets/logo.084e5d7c.js","assets/passwordlessManager.f53316a7.js","assets/pubsub.909df758.js","assets/asyncComputed.4b275614.js","assets/Navbar.a5a179d1.css","assets/gateway.63e02d1d.js","assets/organization.dde8e095.js","assets/activeRecord.2bc1b71f.js","assets/index.24c9f37d.js","assets/Organization.b3fd9094.css"]),redirect:{name:"projects"},children:[{path:"projects",name:"projects",component:()=>t(()=>import("./Projects.c6bacab0.js"),["assets/Projects.c6bacab0.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css","assets/icons.9d575a00.js","assets/asyncComputed.4b275614.js","assets/project.71f5fd7c.js","assets/gateway.63e02d1d.js","assets/passwordlessManager.f53316a7.js","assets/pubsub.909df758.js","assets/activeRecord.2bc1b71f.js","assets/organization.dde8e095.js","assets/index.24c9f37d.js","assets/CrudView.674ca9db.js","assets/DropdownMenu.9edc1223.js","assets/DropdownMenu.4f69c722.css","assets/Modal.32a3d62d.js","assets/Modal.5aaf8eba.css","assets/LoadingIndicator.a20841c3.js","assets/lottie.8f58e4c7.js","assets/LoadingIndicator.f4d31167.css","assets/CrudView.47836ec6.css"])},{path:"settings",name:"organization-settings",component:()=>t(()=>import("./OrganizationSettings.5fbb0747.js"),["assets/OrganizationSettings.5fbb0747.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css"])},{path:"members",name:"members",component:()=>t(()=>import("./Members.fc190008.js"),["assets/Members.fc190008.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css","assets/asyncComputed.4b275614.js","assets/gateway.63e02d1d.js","assets/passwordlessManager.f53316a7.js","assets/pubsub.909df758.js","assets/member.6c1a1ede.js","assets/activeRecord.2bc1b71f.js","assets/index.24c9f37d.js","assets/CrudView.674ca9db.js","assets/DropdownMenu.9edc1223.js","assets/DropdownMenu.4f69c722.css","assets/Modal.32a3d62d.js","assets/Modal.5aaf8eba.css","assets/LoadingIndicator.a20841c3.js","assets/lottie.8f58e4c7.js","assets/LoadingIndicator.f4d31167.css","assets/CrudView.47836ec6.css"])}]},{path:"/projects/:projectId",name:"project",component:()=>t(()=>import("./Project.119b9b1c.js"),["assets/Project.119b9b1c.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css","assets/asyncComputed.4b275614.js","assets/project.71f5fd7c.js","assets/gateway.63e02d1d.js","assets/passwordlessManager.f53316a7.js","assets/pubsub.909df758.js","assets/activeRecord.2bc1b71f.js","assets/organization.dde8e095.js","assets/index.24c9f37d.js","assets/Navbar.2ae068c3.js","assets/logo.084e5d7c.js","assets/Navbar.a5a179d1.css","assets/Sidebar.09692155.js","assets/icons.9d575a00.js","assets/Tooltip.93ae2394.js","assets/Tooltip.63c4352e.css","assets/Sidebar.054bea37.css","assets/Project.efdfb078.css"]),redirect:{name:"builds"},children:[{path:"builds",name:"builds",component:()=>t(()=>import("./Builds.ddad88aa.js"),["assets/Builds.ddad88aa.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css","assets/asyncComputed.4b275614.js","assets/gateway.63e02d1d.js","assets/passwordlessManager.f53316a7.js","assets/pubsub.909df758.js","assets/build.dca4605d.js","assets/activeRecord.2bc1b71f.js","assets/index.24c9f37d.js","assets/CrudView.674ca9db.js","assets/DropdownMenu.9edc1223.js","assets/DropdownMenu.4f69c722.css","assets/Modal.32a3d62d.js","assets/Modal.5aaf8eba.css","assets/LoadingIndicator.a20841c3.js","assets/lottie.8f58e4c7.js","assets/LoadingIndicator.f4d31167.css","assets/CrudView.47836ec6.css","assets/Builds.65f9d2c9.css"])},{path:"connectors",name:"connectors",component:()=>t(()=>import("./Connectors.31312640.js"),["assets/Connectors.31312640.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css","assets/index.24c9f37d.js","assets/gateway.63e02d1d.js","assets/passwordlessManager.f53316a7.js","assets/pubsub.909df758.js","assets/connector.01592434.js","assets/activeRecord.2bc1b71f.js","assets/asyncComputed.4b275614.js","assets/icons.9d575a00.js","assets/CrudView.674ca9db.js","assets/DropdownMenu.9edc1223.js","assets/DropdownMenu.4f69c722.css","assets/Modal.32a3d62d.js","assets/Modal.5aaf8eba.css","assets/LoadingIndicator.a20841c3.js","assets/lottie.8f58e4c7.js","assets/LoadingIndicator.f4d31167.css","assets/CrudView.47836ec6.css"])},{path:"api-keys",name:"api-keys",component:()=>t(()=>import("./ApiKeys.ee011ffc.js"),["assets/ApiKeys.ee011ffc.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css","assets/asyncComputed.4b275614.js","assets/project.71f5fd7c.js","assets/gateway.63e02d1d.js","assets/passwordlessManager.f53316a7.js","assets/pubsub.909df758.js","assets/activeRecord.2bc1b71f.js","assets/member.6c1a1ede.js","assets/index.24c9f37d.js","assets/CrudView.674ca9db.js","assets/DropdownMenu.9edc1223.js","assets/DropdownMenu.4f69c722.css","assets/Modal.32a3d62d.js","assets/Modal.5aaf8eba.css","assets/LoadingIndicator.a20841c3.js","assets/lottie.8f58e4c7.js","assets/LoadingIndicator.f4d31167.css","assets/CrudView.47836ec6.css","assets/icons.9d575a00.js","assets/ApiKeys.1adf158a.css"])},{path:"logs",name:"logs",component:()=>t(()=>import("./Logs.f1fbf60c.js"),["assets/Logs.f1fbf60c.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css","assets/gateway.63e02d1d.js","assets/passwordlessManager.f53316a7.js","assets/pubsub.909df758.js","assets/build.dca4605d.js","assets/activeRecord.2bc1b71f.js","assets/index.24c9f37d.js","assets/asyncComputed.4b275614.js","assets/LoadingIndicator.a20841c3.js","assets/lottie.8f58e4c7.js","assets/LoadingIndicator.f4d31167.css","assets/Logs.364fcb0a.css"])},{path:"settings",name:"project-settings",component:()=>t(()=>import("./ProjectSettings.0c36ee31.js"),["assets/ProjectSettings.0c36ee31.js","assets/asyncComputed.4b275614.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css","assets/project.71f5fd7c.js","assets/gateway.63e02d1d.js","assets/passwordlessManager.f53316a7.js","assets/pubsub.909df758.js","assets/activeRecord.2bc1b71f.js","assets/index.24c9f37d.js","assets/index.776642db.js","assets/CircularLoading.2fb746db.js","assets/lottie.8f58e4c7.js","assets/CircularLoading.f81b57b4.css","assets/icons.9d575a00.js","assets/ProjectSettings.b8d779fa.css"])},{path:"env-vars",name:"env-vars",component:()=>t(()=>import("./EnvVars.3d3c8ce6.js"),["assets/EnvVars.3d3c8ce6.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css","assets/asyncComputed.4b275614.js","assets/gateway.63e02d1d.js","assets/passwordlessManager.f53316a7.js","assets/pubsub.909df758.js","assets/activeRecord.2bc1b71f.js","assets/index.24c9f37d.js","assets/CrudView.674ca9db.js","assets/DropdownMenu.9edc1223.js","assets/DropdownMenu.4f69c722.css","assets/Modal.32a3d62d.js","assets/Modal.5aaf8eba.css","assets/LoadingIndicator.a20841c3.js","assets/lottie.8f58e4c7.js","assets/LoadingIndicator.f4d31167.css","assets/CrudView.47836ec6.css","assets/icons.9d575a00.js"])}]},{path:"/connectors/:connectorId",name:"connectorEditor",component:()=>t(()=>import("./ConnectorEditor.8079edd8.js"),["assets/ConnectorEditor.8079edd8.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css","assets/index.24c9f37d.js","assets/gateway.63e02d1d.js","assets/passwordlessManager.f53316a7.js","assets/pubsub.909df758.js","assets/connector.01592434.js","assets/activeRecord.2bc1b71f.js","assets/asyncComputed.4b275614.js","assets/BackButton.38e76e75.js","assets/BackButton.40348456.css","assets/SaveButton.e20203fa.js","assets/icons.9d575a00.js","assets/SaveButton.c5392044.css","assets/CircularLoading.2fb746db.js","assets/lottie.8f58e4c7.js","assets/CircularLoading.f81b57b4.css","assets/ConnectorEditor.93911b56.css"])}],scrollBehavior(e){if(e.hash)return{el:e.hash}}});a.beforeEach(async(e,o)=>{P(e,o);const n=A.getUser();if(!e.meta.allowUnauthenticated&&!n){await a.push({name:"login"});return}});(async()=>{const e=u({render:()=>b(L)});h.init(),l(e,a),e.use(a),e.use(g),e.mount("#app"),e.component("VSelect",E),e.component("Markdown",v),e.component("Icon",f),e.component("Message",I),r(e,w),r(e,y),r(e,D)})(); -//# sourceMappingURL=console.f6e915fa.js.map diff --git a/abstra_statics/dist/assets/cssMode.f4931ed2.js b/abstra_statics/dist/assets/cssMode.427d9b2f.js similarity index 99% rename from abstra_statics/dist/assets/cssMode.f4931ed2.js rename to abstra_statics/dist/assets/cssMode.427d9b2f.js index 890577851c..79a5fa990a 100644 --- a/abstra_statics/dist/assets/cssMode.f4931ed2.js +++ b/abstra_statics/dist/assets/cssMode.427d9b2f.js @@ -1,4 +1,4 @@ -var Le=Object.defineProperty;var je=(e,n,i)=>n in e?Le(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>(je(e,typeof n!="symbol"?n+"":n,i),i);import{m as Ne}from"./editor.main.aa43f13b.js";import"./registerWidgets.3fe0df5a.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a745de0c-dacd-4735-a536-fd5431fa4087",e._sentryDebugIdIdentifier="sentry-dbid-a745de0c-dacd-4735-a536-fd5431fa4087")}catch{}})();/*!----------------------------------------------------------------------------- +var Le=Object.defineProperty;var je=(e,n,i)=>n in e?Le(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>(je(e,typeof n!="symbol"?n+"":n,i),i);import{m as Ne}from"./editor.main.2331c6e5.js";import"./registerWidgets.cb3a7b8d.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ff018c22-f0d3-4181-a989-dbc47ee0dfab",e._sentryDebugIdIdentifier="sentry-dbid-ff018c22-f0d3-4181-a989-dbc47ee0dfab")}catch{}})();/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license @@ -7,4 +7,4 @@ var Le=Object.defineProperty;var je=(e,n,i)=>n in e?Le(e,n,{enumerable:!0,config `,a==="\r"&&t+10&&n.push(i.length),this._lineOffsets=n}return this._lineOffsets},e.prototype.positionAt=function(n){n=Math.max(Math.min(n,this._content.length),0);var i=this.getLineOffsets(),r=0,t=i.length;if(t===0)return k.create(0,n);for(;rn?t=a:r=a+1}var o=r-1;return k.create(o,n-i[o])},e.prototype.offsetAt=function(n){var i=this.getLineOffsets();if(n.line>=i.length)return this._content.length;if(n.line<0)return 0;var r=i[n.line],t=n.line+1"u"}e.undefined=r;function t(f){return f===!0||f===!1}e.boolean=t;function a(f){return n.call(f)==="[object String]"}e.string=a;function o(f){return n.call(f)==="[object Number]"}e.number=o;function u(f,A,N){return n.call(f)==="[object Number]"&&A<=f&&f<=N}e.numberRange=u;function g(f){return n.call(f)==="[object Number]"&&-2147483648<=f&&f<=2147483647}e.integer=g;function d(f){return n.call(f)==="[object Number]"&&0<=f&&f<=2147483647}e.uinteger=d;function v(f){return n.call(f)==="[object Function]"}e.func=v;function w(f){return f!==null&&typeof f=="object"}e.objectLiteral=w;function b(f,A){return Array.isArray(f)&&f.every(A)}e.typedArray=b})(s||(s={}));var $e=class{constructor(e,n,i){E(this,"_disposables",[]);E(this,"_listener",Object.create(null));this._languageId=e,this._worker=n;const r=a=>{let o=a.getLanguageId();if(o!==this._languageId)return;let u;this._listener[a.uri.toString()]=a.onDidChangeContent(()=>{window.clearTimeout(u),u=window.setTimeout(()=>this._doValidate(a.uri,o),500)}),this._doValidate(a.uri,o)},t=a=>{c.editor.setModelMarkers(a,this._languageId,[]);let o=a.uri.toString(),u=this._listener[o];u&&(u.dispose(),delete this._listener[o])};this._disposables.push(c.editor.onDidCreateModel(r)),this._disposables.push(c.editor.onWillDisposeModel(t)),this._disposables.push(c.editor.onDidChangeModelLanguage(a=>{t(a.model),r(a.model)})),this._disposables.push(i(a=>{c.editor.getModels().forEach(o=>{o.getLanguageId()===this._languageId&&(t(o),r(o))})})),this._disposables.push({dispose:()=>{c.editor.getModels().forEach(t);for(let a in this._listener)this._listener[a].dispose()}}),c.editor.getModels().forEach(r)}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,n){this._worker(e).then(i=>i.doValidation(e.toString())).then(i=>{const r=i.map(a=>Qe(e,a));let t=c.editor.getModel(e);t&&t.getLanguageId()===n&&c.editor.setModelMarkers(t,n,r)}).then(void 0,i=>{console.error(i)})}};function qe(e){switch(e){case I.Error:return c.MarkerSeverity.Error;case I.Warning:return c.MarkerSeverity.Warning;case I.Information:return c.MarkerSeverity.Info;case I.Hint:return c.MarkerSeverity.Hint;default:return c.MarkerSeverity.Info}}function Qe(e,n){let i=typeof n.code=="number"?String(n.code):n.code;return{severity:qe(n.severity),startLineNumber:n.range.start.line+1,startColumn:n.range.start.character+1,endLineNumber:n.range.end.line+1,endColumn:n.range.end.character+1,message:n.message,code:i,source:n.source}}var Ge=class{constructor(e,n){this._worker=e,this._triggerCharacters=n}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doComplete(t.toString(),y(n))).then(a=>{if(!a)return;const o=e.getWordUntilPosition(n),u=new c.Range(n.lineNumber,o.startColumn,n.lineNumber,o.endColumn),g=a.items.map(d=>{const v={label:d.label,insertText:d.insertText||d.label,sortText:d.sortText,filterText:d.filterText,documentation:d.documentation,detail:d.detail,command:Ze(d.command),range:u,kind:Ye(d.kind)};return d.textEdit&&(Je(d.textEdit)?v.range={insert:m(d.textEdit.insert),replace:m(d.textEdit.replace)}:v.range=m(d.textEdit.range),v.insertText=d.textEdit.newText),d.additionalTextEdits&&(v.additionalTextEdits=d.additionalTextEdits.map(j)),d.insertTextFormat===G.Snippet&&(v.insertTextRules=c.languages.CompletionItemInsertTextRule.InsertAsSnippet),v});return{isIncomplete:a.isIncomplete,suggestions:g}})}};function y(e){if(!!e)return{character:e.column-1,line:e.lineNumber-1}}function Me(e){if(!!e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function m(e){if(!!e)return new c.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function Je(e){return typeof e.insert<"u"&&typeof e.replace<"u"}function Ye(e){const n=c.languages.CompletionItemKind;switch(e){case l.Text:return n.Text;case l.Method:return n.Method;case l.Function:return n.Function;case l.Constructor:return n.Constructor;case l.Field:return n.Field;case l.Variable:return n.Variable;case l.Class:return n.Class;case l.Interface:return n.Interface;case l.Module:return n.Module;case l.Property:return n.Property;case l.Unit:return n.Unit;case l.Value:return n.Value;case l.Enum:return n.Enum;case l.Keyword:return n.Keyword;case l.Snippet:return n.Snippet;case l.Color:return n.Color;case l.File:return n.File;case l.Reference:return n.Reference}return n.Property}function j(e){if(!!e)return{range:m(e.range),text:e.newText}}function Ze(e){return e&&e.command==="editor.action.triggerSuggest"?{id:e.command,title:e.title,arguments:e.arguments}:void 0}var Ke=class{constructor(e){this._worker=e}provideHover(e,n,i){let r=e.uri;return this._worker(r).then(t=>t.doHover(r.toString(),y(n))).then(t=>{if(!!t)return{range:m(t.range),contents:tt(t.contents)}})}};function et(e){return e&&typeof e=="object"&&typeof e.kind=="string"}function De(e){return typeof e=="string"?{value:e}:et(e)?e.kind==="plaintext"?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+` `+e.value+"\n```\n"}}function tt(e){if(!!e)return Array.isArray(e)?e.map(De):[De(e)]}var rt=class{constructor(e){this._worker=e}provideDocumentHighlights(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDocumentHighlights(r.toString(),y(n))).then(t=>{if(!!t)return t.map(a=>({range:m(a.range),kind:nt(a.kind)}))})}};function nt(e){switch(e){case P.Read:return c.languages.DocumentHighlightKind.Read;case P.Write:return c.languages.DocumentHighlightKind.Write;case P.Text:return c.languages.DocumentHighlightKind.Text}return c.languages.DocumentHighlightKind.Text}var it=class{constructor(e){this._worker=e}provideDefinition(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDefinition(r.toString(),y(n))).then(t=>{if(!!t)return[Te(t)]})}};function Te(e){return{uri:c.Uri.parse(e.uri),range:m(e.range)}}var at=class{constructor(e){this._worker=e}provideReferences(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.findReferences(t.toString(),y(n))).then(a=>{if(!!a)return a.map(Te)})}},ot=class{constructor(e){this._worker=e}provideRenameEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doRename(t.toString(),y(n),i)).then(a=>st(a))}};function st(e){if(!e||!e.changes)return;let n=[];for(let i in e.changes){const r=c.Uri.parse(i);for(let t of e.changes[i])n.push({resource:r,versionId:void 0,textEdit:{range:m(t.range),text:t.newText}})}return{edits:n}}var ut=class{constructor(e){this._worker=e}provideDocumentSymbols(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentSymbols(i.toString())).then(r=>{if(!!r)return r.map(t=>({name:t.name,detail:"",containerName:t.containerName,kind:ct(t.kind),range:m(t.location.range),selectionRange:m(t.location.range),tags:[]}))})}};function ct(e){let n=c.languages.SymbolKind;switch(e){case h.File:return n.Array;case h.Module:return n.Module;case h.Namespace:return n.Namespace;case h.Package:return n.Package;case h.Class:return n.Class;case h.Method:return n.Method;case h.Property:return n.Property;case h.Field:return n.Field;case h.Constructor:return n.Constructor;case h.Enum:return n.Enum;case h.Interface:return n.Interface;case h.Function:return n.Function;case h.Variable:return n.Variable;case h.Constant:return n.Constant;case h.String:return n.String;case h.Number:return n.Number;case h.Boolean:return n.Boolean;case h.Array:return n.Array}return n.Function}var wt=class{constructor(e){this._worker=e}provideLinks(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentLinks(i.toString())).then(r=>{if(!!r)return{links:r.map(t=>({range:m(t.range),url:t.target}))}})}},dt=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.format(r.toString(),null,Se(n)).then(a=>{if(!(!a||a.length===0))return a.map(j)}))}},ft=class{constructor(e){this._worker=e}provideDocumentRangeFormattingEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.format(t.toString(),Me(n),Se(i)).then(o=>{if(!(!o||o.length===0))return o.map(j)}))}};function Se(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var gt=class{constructor(e){this._worker=e}provideDocumentColors(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentColors(i.toString())).then(r=>{if(!!r)return r.map(t=>({color:t.color,range:m(t.range)}))})}provideColorPresentations(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getColorPresentations(r.toString(),n.color,Me(n.range))).then(t=>{if(!!t)return t.map(a=>{let o={label:a.label};return a.textEdit&&(o.textEdit=j(a.textEdit)),a.additionalTextEdits&&(o.additionalTextEdits=a.additionalTextEdits.map(j)),o})})}},lt=class{constructor(e){this._worker=e}provideFoldingRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getFoldingRanges(r.toString(),n)).then(t=>{if(!!t)return t.map(a=>{const o={start:a.startLine+1,end:a.endLine+1};return typeof a.kind<"u"&&(o.kind=ht(a.kind)),o})})}};function ht(e){switch(e){case D.Comment:return c.languages.FoldingRangeKind.Comment;case D.Imports:return c.languages.FoldingRangeKind.Imports;case D.Region:return c.languages.FoldingRangeKind.Region}}var vt=class{constructor(e){this._worker=e}provideSelectionRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getSelectionRanges(r.toString(),n.map(y))).then(t=>{if(!!t)return t.map(a=>{const o=[];for(;a;)o.push({range:m(a.range)}),a=a.parent;return o})})}};function kt(e){const n=[],i=[],r=new Xe(e);n.push(r);const t=(...o)=>r.getLanguageServiceWorker(...o);function a(){const{languageId:o,modeConfiguration:u}=e;Fe(i),u.completionItems&&i.push(c.languages.registerCompletionItemProvider(o,new Ge(t,["/","-",":"]))),u.hovers&&i.push(c.languages.registerHoverProvider(o,new Ke(t))),u.documentHighlights&&i.push(c.languages.registerDocumentHighlightProvider(o,new rt(t))),u.definitions&&i.push(c.languages.registerDefinitionProvider(o,new it(t))),u.references&&i.push(c.languages.registerReferenceProvider(o,new at(t))),u.documentSymbols&&i.push(c.languages.registerDocumentSymbolProvider(o,new ut(t))),u.rename&&i.push(c.languages.registerRenameProvider(o,new ot(t))),u.colors&&i.push(c.languages.registerColorProvider(o,new gt(t))),u.foldingRanges&&i.push(c.languages.registerFoldingRangeProvider(o,new lt(t))),u.diagnostics&&i.push(new $e(o,t,e.onDidChange)),u.selectionRanges&&i.push(c.languages.registerSelectionRangeProvider(o,new vt(t))),u.documentFormattingEdits&&i.push(c.languages.registerDocumentFormattingEditProvider(o,new dt(t))),u.documentRangeFormattingEdits&&i.push(c.languages.registerDocumentRangeFormattingEditProvider(o,new ft(t)))}return a(),n.push(Pe(i)),Pe(n)}function Pe(e){return{dispose:()=>Fe(e)}}function Fe(e){for(;e.length;)e.pop().dispose()}export{Ge as CompletionAdapter,it as DefinitionAdapter,$e as DiagnosticsAdapter,gt as DocumentColorAdapter,dt as DocumentFormattingEditProvider,rt as DocumentHighlightAdapter,wt as DocumentLinkAdapter,ft as DocumentRangeFormattingEditProvider,ut as DocumentSymbolAdapter,lt as FoldingRangeAdapter,Ke as HoverAdapter,at as ReferenceAdapter,ot as RenameAdapter,vt as SelectionRangeAdapter,Xe as WorkerManager,y as fromPosition,Me as fromRange,kt as setupMode,m as toRange,j as toTextEdit}; -//# sourceMappingURL=cssMode.f4931ed2.js.map +//# sourceMappingURL=cssMode.427d9b2f.js.map diff --git a/abstra_statics/dist/assets/dashes.9a4cf820.js b/abstra_statics/dist/assets/dashes.3c9b04b3.js similarity index 90% rename from abstra_statics/dist/assets/dashes.9a4cf820.js rename to abstra_statics/dist/assets/dashes.3c9b04b3.js index 2aad370da3..367c8f47ee 100644 --- a/abstra_statics/dist/assets/dashes.9a4cf820.js +++ b/abstra_statics/dist/assets/dashes.3c9b04b3.js @@ -1,2 +1,2 @@ -var l=Object.defineProperty;var u=(s,t,r)=>t in s?l(s,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[t]=r;var d=(s,t,r)=>(u(s,typeof t!="symbol"?t+"":t,r),r);import{A as w}from"./activeRecord.2bc1b71f.js";import{d as y,w as c}from"./runnerData.331b4b09.js";import"./registerWidgets.3fe0df5a.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[t]="327ea8dc-7005-48d0-b9c8-9dc9494e4903",s._sentryDebugIdIdentifier="sentry-dbid-327ea8dc-7005-48d0-b9c8-9dc9494e4903")}catch{}})();function p(s){return Object.entries(s).reduce((t,[r,o])=>{var n;if(o.type in c){const e=o;if(!e.id)throw new Error("Widget must have an id");return{...t,[r]:{events:e.events,id:e.id,props:e.props,position:{rowStart:e.rowStart,rowEnd:e.rowEnd,colStart:e.colStart,colEnd:e.colEnd},type:e.type,variable:(n=e.variable)!=null?n:null}}}else{const e=o;return{...t,[r]:{id:e.id,props:e.props,row:e.row,height:e.height,type:e.type,slot:p(e.slot),order:e.order}}}},{})}function h(s){return Object.entries(s).reduce((t,[r,o])=>{var n;if(o.type in c){const e=o;return{...t,[r]:{id:e.id,name:e.id,type:e.type,colStart:e.position.colStart,colEnd:e.position.colEnd,rowStart:e.position.rowStart,rowEnd:e.position.rowEnd,props:e.props,events:e.events,variable:(n=e.variable)!=null?n:void 0}}}else{const e=o;return{...t,[r]:{id:e.id,type:e.type,row:e.row,height:e.height,order:0,props:e.props,slot:h(e.slot)}}}},{})}class f{async list(){return await(await fetch("/_editor/api/dashes")).json()}async create(){return await(await fetch("/_editor/api/dashes",{method:"POST",headers:{"Content-Type":"application/json"}})).json()}async get(t){return await(await fetch(`/_editor/api/dashes/${t}`)).json()}async update(t,r){return await(await fetch(`/_editor/api/dashes/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)})).json()}async delete(t){await fetch(`/_editor/api/dashes/${t}`,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async duplicate(t){return await(await fetch(`/_editor/api/dashes/${t}/duplicate`,{method:"POST",headers:{"Content-Type":"application/json"}})).json()}async addVariableToCode(t,r){await fetch(`/_editor/api/dashes/${t}/add-variable`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({variable:r})})}}const a=new f;class i{constructor(t){d(this,"record");this.record=w.create(a,t,"path")}static from(t){return new i(t)}static async list(){return(await a.list()).map(r=>new i(r))}static async create(){const t=await a.create();return new i(t)}static async get(t){const r=await a.get(t);return new i(r)}get path(){return this.record.get("path")}set path(t){this.record.set("path",t)}get file(){return this.record.get("file")}set file(t){this.record.set("file",t)}get title(){return this.record.get("title")}set title(t){this.record.set("title",t)}get layout(){const t=this.record.get("layout");return{version:"0.2",props:t.props,slot:h(t.slot)}}set layout(t){if(t.version==="0.1")throw new Error("TODO: convert 0.1 to 0.2");const r={version:"0.2",props:t.props,slot:p(t.slot)};this.record.set("layout",r)}async save(){await this.record.save()}onUpdate(t){this.record.pubsub.subscribe("update",t)}hasChanges(){return this.record.hasChanges()}async delete(){await a.delete(this.path)}async duplicate(){const t=await a.duplicate(this.path);return new i(t)}async addVariableToCode(t){await a.addVariableToCode(this.path,t)}get rootSlot(){if(this.layout.version==="0.1")throw new Error("TODO: convert 0.1 to 0.2");return this.layout.slot}makeRunnerData(t,r){return{...t.makeRunnerData(),id:this.path,path:this.path,title:this.title,layout:y(r!=null?r:this.layout),workspaceName:"Untitled Workspace",runtimeType:"dash"}}get routeName(){return"dash"}}export{i as D}; -//# sourceMappingURL=dashes.9a4cf820.js.map +var l=Object.defineProperty;var u=(s,t,r)=>t in s?l(s,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[t]=r;var d=(s,t,r)=>(u(s,typeof t!="symbol"?t+"":t,r),r);import{A as w}from"./activeRecord.adfc6223.js";import{d as y,w as c}from"./runnerData.7b7cb682.js";import"./registerWidgets.cb3a7b8d.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[t]="8a4a00b8-4046-4c66-a900-75c1755f9b9d",s._sentryDebugIdIdentifier="sentry-dbid-8a4a00b8-4046-4c66-a900-75c1755f9b9d")}catch{}})();function p(s){return Object.entries(s).reduce((t,[r,o])=>{var n;if(o.type in c){const e=o;if(!e.id)throw new Error("Widget must have an id");return{...t,[r]:{events:e.events,id:e.id,props:e.props,position:{rowStart:e.rowStart,rowEnd:e.rowEnd,colStart:e.colStart,colEnd:e.colEnd},type:e.type,variable:(n=e.variable)!=null?n:null}}}else{const e=o;return{...t,[r]:{id:e.id,props:e.props,row:e.row,height:e.height,type:e.type,slot:p(e.slot),order:e.order}}}},{})}function h(s){return Object.entries(s).reduce((t,[r,o])=>{var n;if(o.type in c){const e=o;return{...t,[r]:{id:e.id,name:e.id,type:e.type,colStart:e.position.colStart,colEnd:e.position.colEnd,rowStart:e.position.rowStart,rowEnd:e.position.rowEnd,props:e.props,events:e.events,variable:(n=e.variable)!=null?n:void 0}}}else{const e=o;return{...t,[r]:{id:e.id,type:e.type,row:e.row,height:e.height,order:0,props:e.props,slot:h(e.slot)}}}},{})}class f{async list(){return await(await fetch("/_editor/api/dashes")).json()}async create(){return await(await fetch("/_editor/api/dashes",{method:"POST",headers:{"Content-Type":"application/json"}})).json()}async get(t){return await(await fetch(`/_editor/api/dashes/${t}`)).json()}async update(t,r){return await(await fetch(`/_editor/api/dashes/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)})).json()}async delete(t){await fetch(`/_editor/api/dashes/${t}`,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async duplicate(t){return await(await fetch(`/_editor/api/dashes/${t}/duplicate`,{method:"POST",headers:{"Content-Type":"application/json"}})).json()}async addVariableToCode(t,r){await fetch(`/_editor/api/dashes/${t}/add-variable`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({variable:r})})}}const a=new f;class i{constructor(t){d(this,"record");this.record=w.create(a,t,"path")}static from(t){return new i(t)}static async list(){return(await a.list()).map(r=>new i(r))}static async create(){const t=await a.create();return new i(t)}static async get(t){const r=await a.get(t);return new i(r)}get path(){return this.record.get("path")}set path(t){this.record.set("path",t)}get file(){return this.record.get("file")}set file(t){this.record.set("file",t)}get title(){return this.record.get("title")}set title(t){this.record.set("title",t)}get layout(){const t=this.record.get("layout");return{version:"0.2",props:t.props,slot:h(t.slot)}}set layout(t){if(t.version==="0.1")throw new Error("TODO: convert 0.1 to 0.2");const r={version:"0.2",props:t.props,slot:p(t.slot)};this.record.set("layout",r)}async save(){await this.record.save()}onUpdate(t){this.record.pubsub.subscribe("update",t)}hasChanges(){return this.record.hasChanges()}async delete(){await a.delete(this.path)}async duplicate(){const t=await a.duplicate(this.path);return new i(t)}async addVariableToCode(t){await a.addVariableToCode(this.path,t)}get rootSlot(){if(this.layout.version==="0.1")throw new Error("TODO: convert 0.1 to 0.2");return this.layout.slot}makeRunnerData(t,r){return{...t.makeRunnerData(),id:this.path,path:this.path,title:this.title,layout:y(r!=null?r:this.layout),workspaceName:"Untitled Workspace",runtimeType:"dash"}}get routeName(){return"dash"}}export{i as D}; +//# sourceMappingURL=dashes.3c9b04b3.js.map diff --git a/abstra_statics/dist/assets/editor.725428d3.js b/abstra_statics/dist/assets/editor.725428d3.js deleted file mode 100644 index 815099396f..0000000000 --- a/abstra_statics/dist/assets/editor.725428d3.js +++ /dev/null @@ -1,2 +0,0 @@ -import{r as _,d as m,o as d,a as p,b as c,c as h,e as l,f as b,g as u,_ as t,h as E,T as v,i as A,P as f,C as P,M as I,I as D,s as w,j as a,k as T,l as y,m as V,n as R}from"./registerWidgets.3fe0df5a.js";import{u as L}from"./index.776642db.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="c9de4120-dce1-4690-bc80-0a99f26db583",e._sentryDebugIdIdentifier="sentry-dbid-c9de4120-dce1-4690-bc80-0a99f26db583")}catch{}})();const s=_(!1),g=()=>{window.innerWidth<780?s.value=!0:s.value=!1},O={style:{height:"100vh","box-sizing":"border-box",width:"100%"}},k=m({__name:"App",setup(e){return d(()=>{window.addEventListener("resize",g)}),(o,n)=>{const i=p("router-view");return c(),h("div",O,[l(i)])}}});const r=b({history:u("/"),routes:[{path:"/_editor/",name:"app",component:()=>t(()=>import("./Home.07e12688.js"),["assets/Home.07e12688.js","assets/Modal.32a3d62d.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css","assets/Modal.5aaf8eba.css","assets/Home.1c04d83a.css"]),redirect:{name:"workspace"},children:[{path:"",name:"workspace",component:()=>t(()=>import("./Workspace.3ed16c97.js"),["assets/Workspace.3ed16c97.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css","assets/icons.9d575a00.js","assets/Tooltip.93ae2394.js","assets/Tooltip.63c4352e.css","assets/logo.084e5d7c.js","assets/asyncComputed.4b275614.js","assets/workspaces.220ebb5a.js","assets/activeRecord.2bc1b71f.js","assets/pubsub.909df758.js","assets/login.7c65daa3.js","assets/DocsButton.0b9b3a67.js","assets/DocsButton.d2184c76.css","assets/Workspace.b7d4a3bf.css"]),redirect:()=>({name:"forms"}),children:[{path:"forms",name:"forms",component:()=>t(()=>import("./Forms.282bf526.js"),["assets/Forms.282bf526.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css","assets/icons.9d575a00.js","assets/asyncComputed.4b275614.js","assets/forms.9088f82a.js","assets/activeRecord.2bc1b71f.js","assets/pubsub.909df758.js","assets/RuntimeList.8704ae12.js","assets/DropdownMenu.9edc1223.js","assets/DropdownMenu.4f69c722.css","assets/CircularLoading.2fb746db.js","assets/lottie.8f58e4c7.js","assets/CircularLoading.f81b57b4.css","assets/RuntimeList.bab136d4.css"]),meta:{title:"Abstra - Forms"}},{path:"dashes",name:"dashes",component:()=>t(()=>import("./Dashes.c57c633c.js"),["assets/Dashes.c57c633c.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css","assets/icons.9d575a00.js","assets/asyncComputed.4b275614.js","assets/dashes.9a4cf820.js","assets/activeRecord.2bc1b71f.js","assets/pubsub.909df758.js","assets/runnerData.331b4b09.js","assets/RuntimeList.8704ae12.js","assets/DropdownMenu.9edc1223.js","assets/DropdownMenu.4f69c722.css","assets/CircularLoading.2fb746db.js","assets/lottie.8f58e4c7.js","assets/CircularLoading.f81b57b4.css","assets/RuntimeList.bab136d4.css"]),meta:{title:"Abstra - Dashes"}},{path:"jobs",name:"jobs",component:()=>t(()=>import("./Jobs.3054743d.js"),["assets/Jobs.3054743d.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css","assets/icons.9d575a00.js","assets/asyncComputed.4b275614.js","assets/jobs.99d61147.js","assets/activeRecord.2bc1b71f.js","assets/pubsub.909df758.js","assets/RuntimeList.8704ae12.js","assets/DropdownMenu.9edc1223.js","assets/DropdownMenu.4f69c722.css","assets/CircularLoading.2fb746db.js","assets/lottie.8f58e4c7.js","assets/CircularLoading.f81b57b4.css","assets/RuntimeList.bab136d4.css"]),meta:{title:"Abstra - Jobs"}},{path:"hooks",name:"hooks",component:()=>t(()=>import("./Hooks.45caa7ab.js"),["assets/Hooks.45caa7ab.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css","assets/icons.9d575a00.js","assets/asyncComputed.4b275614.js","assets/hooks.56004b79.js","assets/activeRecord.2bc1b71f.js","assets/pubsub.909df758.js","assets/RuntimeList.8704ae12.js","assets/DropdownMenu.9edc1223.js","assets/DropdownMenu.4f69c722.css","assets/CircularLoading.2fb746db.js","assets/lottie.8f58e4c7.js","assets/CircularLoading.f81b57b4.css","assets/RuntimeList.bab136d4.css"]),meta:{title:"Abstra - Hooks"}},{path:"tables",name:"tables",component:()=>t(()=>import("./Tables.bc03580c.js"),["assets/Tables.bc03580c.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css","assets/icons.9d575a00.js","assets/asyncComputed.4b275614.js","assets/tables.7792ead3.js","assets/activeRecord.2bc1b71f.js","assets/pubsub.909df758.js","assets/RuntimeList.8704ae12.js","assets/DropdownMenu.9edc1223.js","assets/DropdownMenu.4f69c722.css","assets/CircularLoading.2fb746db.js","assets/lottie.8f58e4c7.js","assets/CircularLoading.f81b57b4.css","assets/RuntimeList.bab136d4.css"]),meta:{title:"Abstra - Tables"}},{path:"style",name:"style",component:()=>t(()=>import("./StyleEditor.acc5581f.js"),["assets/StyleEditor.acc5581f.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css","assets/asyncComputed.4b275614.js","assets/workspaces.220ebb5a.js","assets/activeRecord.2bc1b71f.js","assets/pubsub.909df758.js","assets/CircularLoading.2fb746db.js","assets/lottie.8f58e4c7.js","assets/CircularLoading.f81b57b4.css","assets/icons.9d575a00.js","assets/SidebarPreview.f7a44b42.js","assets/PlayerNavbar.9ff5d98a.js","assets/PlayerNavbar.adff8b48.css","assets/runnerData.331b4b09.js","assets/colors.b2406923.js","assets/SidebarPreview.12212654.css","assets/SaveButton.e20203fa.js","assets/SaveButton.c5392044.css","assets/StyleEditor.b552686c.css"]),meta:{title:"Abstra - Style"}},{path:"sidebar",name:"sidebar",component:()=>t(()=>import("./SidebarEditor.852ccd89.js"),["assets/SidebarEditor.852ccd89.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css","assets/workspaces.220ebb5a.js","assets/activeRecord.2bc1b71f.js","assets/pubsub.909df758.js","assets/asyncComputed.4b275614.js","assets/CircularLoading.2fb746db.js","assets/lottie.8f58e4c7.js","assets/CircularLoading.f81b57b4.css","assets/SaveButton.e20203fa.js","assets/icons.9d575a00.js","assets/SaveButton.c5392044.css","assets/SidebarPreview.f7a44b42.js","assets/PlayerNavbar.9ff5d98a.js","assets/PlayerNavbar.adff8b48.css","assets/runnerData.331b4b09.js","assets/colors.b2406923.js","assets/SidebarPreview.12212654.css","assets/SidebarEditor.f65d95bf.css"]),meta:{title:"Abstra - Sidebar"}}]},{path:"form/:formPath",name:"editor",component:()=>t(()=>import("./FormEditor.1f8c0fb4.js"),["assets/FormEditor.1f8c0fb4.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css","assets/CircularLoading.2fb746db.js","assets/lottie.8f58e4c7.js","assets/CircularLoading.f81b57b4.css","assets/Error.0e8ed62a.js","assets/Error.5cfc41d8.css","assets/broker.4d1bc0fe.js","assets/passwordlessManager.f53316a7.js","assets/pubsub.909df758.js","assets/icons.9d575a00.js","assets/ActionButton.vue_vue_type_script_setup_true_lang.9bc2be06.js","assets/Passwordless.15dd7595.js","assets/Passwordless.86ac0c56.css","assets/executeJs.9eb1c025.js","assets/PlayerNavbar.9ff5d98a.js","assets/PlayerNavbar.adff8b48.css","assets/index.776642db.js","assets/WidgetsFrame.c900894c.js","assets/colors.b2406923.js","assets/WidgetsFrame.701a818b.css","assets/Modal.32a3d62d.js","assets/Modal.5aaf8eba.css","assets/executeJs.887e9a58.css","assets/broker.5f3abad8.css","assets/UnsavedChangesHandler.vue_vue_type_script_setup_true_lang.a909e3ed.js","assets/asyncComputed.4b275614.js","assets/forms.9088f82a.js","assets/activeRecord.2bc1b71f.js","assets/dashes.9a4cf820.js","assets/runnerData.331b4b09.js","assets/hooks.56004b79.js","assets/jobs.99d61147.js","assets/workspaces.220ebb5a.js","assets/uuid.8e57fc19.js","assets/login.7c65daa3.js","assets/UnsavedChangesHandler.6c0ea770.css","assets/Tab.7855495c.js","assets/Tab.68f29dcc.css","assets/BackButton.38e76e75.js","assets/BackButton.40348456.css","assets/SaveButton.e20203fa.js","assets/SaveButton.c5392044.css","assets/DocsButton.0b9b3a67.js","assets/DocsButton.d2184c76.css","assets/PreviewButton.f29c359b.js","assets/PreviewButton.52324bbf.css","assets/FormEditor.6172d866.css"]),meta:{title:"Abstra - Smart Form Editor"}},{path:"form/:formPath/preview",name:"form-preview",component:()=>t(()=>import("./FormPreview.bbe125e7.js"),["assets/FormPreview.bbe125e7.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css","assets/CircularLoading.2fb746db.js","assets/lottie.8f58e4c7.js","assets/CircularLoading.f81b57b4.css","assets/Error.0e8ed62a.js","assets/Error.5cfc41d8.css","assets/broker.4d1bc0fe.js","assets/passwordlessManager.f53316a7.js","assets/pubsub.909df758.js","assets/icons.9d575a00.js","assets/ActionButton.vue_vue_type_script_setup_true_lang.9bc2be06.js","assets/Passwordless.15dd7595.js","assets/Passwordless.86ac0c56.css","assets/executeJs.9eb1c025.js","assets/PlayerNavbar.9ff5d98a.js","assets/PlayerNavbar.adff8b48.css","assets/index.776642db.js","assets/WidgetsFrame.c900894c.js","assets/colors.b2406923.js","assets/WidgetsFrame.701a818b.css","assets/Modal.32a3d62d.js","assets/Modal.5aaf8eba.css","assets/executeJs.887e9a58.css","assets/broker.5f3abad8.css","assets/BackButton.cd31ec0c.js","assets/BackButton.dd542746.css","assets/asyncComputed.4b275614.js","assets/forms.9088f82a.js","assets/activeRecord.2bc1b71f.js","assets/workspaces.220ebb5a.js","assets/FormPreview.6d0d0d3a.css"]),meta:{title:"Abstra - Smart Form Preview"}},{path:"job/:jobId",name:"jobEditor",component:()=>t(()=>import("./JobEditor.750a19ad.js"),["assets/JobEditor.750a19ad.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css","assets/Tab.7855495c.js","assets/Tab.68f29dcc.css","assets/CircularLoading.2fb746db.js","assets/lottie.8f58e4c7.js","assets/CircularLoading.f81b57b4.css","assets/asyncComputed.4b275614.js","assets/jobs.99d61147.js","assets/activeRecord.2bc1b71f.js","assets/pubsub.909df758.js","assets/SaveButton.e20203fa.js","assets/icons.9d575a00.js","assets/SaveButton.c5392044.css","assets/BackButton.38e76e75.js","assets/BackButton.40348456.css","assets/UnsavedChangesHandler.vue_vue_type_script_setup_true_lang.a909e3ed.js","assets/forms.9088f82a.js","assets/dashes.9a4cf820.js","assets/runnerData.331b4b09.js","assets/hooks.56004b79.js","assets/workspaces.220ebb5a.js","assets/uuid.8e57fc19.js","assets/login.7c65daa3.js","assets/UnsavedChangesHandler.6c0ea770.css","assets/DocsButton.0b9b3a67.js","assets/DocsButton.d2184c76.css","assets/JobEditor.d8bbc89c.css"]),meta:{title:"Abstra - Job Editor"}},{path:"dash/:dashPath",name:"dashEditor",component:()=>t(()=>import("./DashEditor.45000c34.js"),["assets/DashEditor.45000c34.js","assets/index.776642db.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css","assets/Tab.7855495c.js","assets/Tab.68f29dcc.css","assets/DashPlayer.0888e5b9.js","assets/runnerData.331b4b09.js","assets/executeJs.9eb1c025.js","assets/PlayerNavbar.9ff5d98a.js","assets/icons.9d575a00.js","assets/PlayerNavbar.adff8b48.css","assets/WidgetsFrame.c900894c.js","assets/colors.b2406923.js","assets/WidgetsFrame.701a818b.css","assets/Modal.32a3d62d.js","assets/Modal.5aaf8eba.css","assets/executeJs.887e9a58.css","assets/passwordlessManager.f53316a7.js","assets/pubsub.909df758.js","assets/Passwordless.15dd7595.js","assets/CircularLoading.2fb746db.js","assets/lottie.8f58e4c7.js","assets/CircularLoading.f81b57b4.css","assets/Passwordless.86ac0c56.css","assets/DashPlayer.ef4a798d.css","assets/UnsavedChangesHandler.vue_vue_type_script_setup_true_lang.a909e3ed.js","assets/asyncComputed.4b275614.js","assets/forms.9088f82a.js","assets/activeRecord.2bc1b71f.js","assets/dashes.9a4cf820.js","assets/hooks.56004b79.js","assets/jobs.99d61147.js","assets/workspaces.220ebb5a.js","assets/uuid.8e57fc19.js","assets/login.7c65daa3.js","assets/UnsavedChangesHandler.6c0ea770.css","assets/BackButton.38e76e75.js","assets/BackButton.40348456.css","assets/SaveButton.e20203fa.js","assets/SaveButton.c5392044.css","assets/PreviewButton.f29c359b.js","assets/PreviewButton.52324bbf.css","assets/DocsButton.0b9b3a67.js","assets/DocsButton.d2184c76.css","assets/DashEditor.4380b9a2.css"]),meta:{title:"Abstra - Dash Editor"}},{path:"dash/:dashPath/preview",name:"dashPreview",component:()=>t(()=>import("./DashPreview.848902c1.js"),["assets/DashPreview.848902c1.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css","assets/DashPlayer.0888e5b9.js","assets/runnerData.331b4b09.js","assets/executeJs.9eb1c025.js","assets/PlayerNavbar.9ff5d98a.js","assets/icons.9d575a00.js","assets/PlayerNavbar.adff8b48.css","assets/index.776642db.js","assets/WidgetsFrame.c900894c.js","assets/colors.b2406923.js","assets/WidgetsFrame.701a818b.css","assets/Modal.32a3d62d.js","assets/Modal.5aaf8eba.css","assets/executeJs.887e9a58.css","assets/passwordlessManager.f53316a7.js","assets/pubsub.909df758.js","assets/Passwordless.15dd7595.js","assets/CircularLoading.2fb746db.js","assets/lottie.8f58e4c7.js","assets/CircularLoading.f81b57b4.css","assets/Passwordless.86ac0c56.css","assets/DashPlayer.ef4a798d.css","assets/BackButton.cd31ec0c.js","assets/BackButton.dd542746.css","assets/asyncComputed.4b275614.js","assets/dashes.9a4cf820.js","assets/activeRecord.2bc1b71f.js","assets/workspaces.220ebb5a.js","assets/DashPreview.999196e0.css"]),meta:{title:"Abstra - Dash Editor"}},{path:"hook/:hookPath",name:"hookEditor",component:()=>t(()=>import("./HookEditor.c565851d.js"),["assets/HookEditor.c565851d.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css","assets/Tab.7855495c.js","assets/Tab.68f29dcc.css","assets/CircularLoading.2fb746db.js","assets/lottie.8f58e4c7.js","assets/CircularLoading.f81b57b4.css","assets/UnsavedChangesHandler.vue_vue_type_script_setup_true_lang.a909e3ed.js","assets/icons.9d575a00.js","assets/asyncComputed.4b275614.js","assets/forms.9088f82a.js","assets/activeRecord.2bc1b71f.js","assets/pubsub.909df758.js","assets/dashes.9a4cf820.js","assets/runnerData.331b4b09.js","assets/hooks.56004b79.js","assets/jobs.99d61147.js","assets/workspaces.220ebb5a.js","assets/uuid.8e57fc19.js","assets/login.7c65daa3.js","assets/UnsavedChangesHandler.6c0ea770.css","assets/BackButton.38e76e75.js","assets/BackButton.40348456.css","assets/SaveButton.e20203fa.js","assets/SaveButton.c5392044.css","assets/DocsButton.0b9b3a67.js","assets/DocsButton.d2184c76.css","assets/HookEditor.1c22dc94.css"]),meta:{title:"Abstra - Hook Editor"}},{path:"table/:tableName",name:"tableEditor",component:()=>t(()=>import("./TableEditor.271a6f83.js"),["assets/TableEditor.271a6f83.js","assets/asyncComputed.4b275614.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css","assets/tables.7792ead3.js","assets/activeRecord.2bc1b71f.js","assets/pubsub.909df758.js","assets/CircularLoading.2fb746db.js","assets/lottie.8f58e4c7.js","assets/CircularLoading.f81b57b4.css","assets/Tab.7855495c.js","assets/Tab.68f29dcc.css","assets/BackButton.38e76e75.js","assets/BackButton.40348456.css","assets/icons.9d575a00.js","assets/DocsButton.0b9b3a67.js","assets/DocsButton.d2184c76.css","assets/SaveButton.e20203fa.js","assets/SaveButton.c5392044.css","assets/TableEditor.66877c31.css"]),meta:{title:"Abstra - Table Editor"}}]}],scrollBehavior(e){if(e.hash)return{el:e.hash}}});r.beforeEach(async(e,o)=>{L(e,o)});(async()=>{const e=E({render:()=>T(k)});v.init(),A(e,r),e.use(r),e.use(f),e.mount("#app"),e.component("VSelect",P),e.component("Markdown",I),e.component("Icon",D),e.component("Message",w),a(e,y),a(e,V),a(e,R)})(); -//# sourceMappingURL=editor.725428d3.js.map diff --git a/abstra_statics/dist/assets/editor.e185cc3f.js b/abstra_statics/dist/assets/editor.e185cc3f.js new file mode 100644 index 0000000000..2700ae7bd8 --- /dev/null +++ b/abstra_statics/dist/assets/editor.e185cc3f.js @@ -0,0 +1,2 @@ +import{r as _,d as m,o as p,a as d,b as c,c as h,e as l,f as b,g as u,_ as t,h as E,T as v,i as f,P as A,C as P,M as I,I as D,s as w,j as a,k as T,l as y,m as V,n as R}from"./registerWidgets.cb3a7b8d.js";import{u as L}from"./index.7d1457d9.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="e28462ee-c70c-4780-abe3-04c4beefd46f",e._sentryDebugIdIdentifier="sentry-dbid-e28462ee-c70c-4780-abe3-04c4beefd46f")}catch{}})();const s=_(!1),g=()=>{window.innerWidth<780?s.value=!0:s.value=!1},O={style:{height:"100vh","box-sizing":"border-box",width:"100%"}},k=m({__name:"App",setup(e){return p(()=>{window.addEventListener("resize",g)}),(o,n)=>{const i=d("router-view");return c(),h("div",O,[l(i)])}}});const r=b({history:u("/"),routes:[{path:"/_editor/",name:"app",component:()=>t(()=>import("./Home.c2515fd7.js"),["assets/Home.c2515fd7.js","assets/Modal.43c3d47a.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css","assets/Modal.5aaf8eba.css","assets/Home.1c04d83a.css"]),redirect:{name:"workspace"},children:[{path:"",name:"workspace",component:()=>t(()=>import("./Workspace.a75d1f25.js"),["assets/Workspace.a75d1f25.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css","assets/icons.39dfa322.js","assets/Tooltip.f700ff7d.js","assets/Tooltip.63c4352e.css","assets/logo.084e5d7c.js","assets/asyncComputed.31994732.js","assets/workspaces.5f21a554.js","assets/activeRecord.adfc6223.js","assets/pubsub.f85a17d2.js","assets/login.ce8787fb.js","assets/DocsButton.495d0473.js","assets/DocsButton.d2184c76.css","assets/Workspace.b7d4a3bf.css"]),redirect:()=>({name:"forms"}),children:[{path:"forms",name:"forms",component:()=>t(()=>import("./Forms.eb14daf1.js"),["assets/Forms.eb14daf1.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css","assets/icons.39dfa322.js","assets/asyncComputed.31994732.js","assets/forms.f5353181.js","assets/activeRecord.adfc6223.js","assets/pubsub.f85a17d2.js","assets/RuntimeList.ec9e2b4b.js","assets/DropdownMenu.c973057b.js","assets/DropdownMenu.4f69c722.css","assets/CircularLoading.1e68d2b1.js","assets/lottie.234eb92e.js","assets/CircularLoading.f81b57b4.css","assets/RuntimeList.bab136d4.css"]),meta:{title:"Abstra - Forms"}},{path:"dashes",name:"dashes",component:()=>t(()=>import("./Dashes.9d06c0b5.js"),["assets/Dashes.9d06c0b5.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css","assets/icons.39dfa322.js","assets/asyncComputed.31994732.js","assets/dashes.3c9b04b3.js","assets/activeRecord.adfc6223.js","assets/pubsub.f85a17d2.js","assets/runnerData.7b7cb682.js","assets/RuntimeList.ec9e2b4b.js","assets/DropdownMenu.c973057b.js","assets/DropdownMenu.4f69c722.css","assets/CircularLoading.1e68d2b1.js","assets/lottie.234eb92e.js","assets/CircularLoading.f81b57b4.css","assets/RuntimeList.bab136d4.css"]),meta:{title:"Abstra - Dashes"}},{path:"jobs",name:"jobs",component:()=>t(()=>import("./Jobs.d903c57a.js"),["assets/Jobs.d903c57a.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css","assets/icons.39dfa322.js","assets/asyncComputed.31994732.js","assets/jobs.d0693d2f.js","assets/activeRecord.adfc6223.js","assets/pubsub.f85a17d2.js","assets/RuntimeList.ec9e2b4b.js","assets/DropdownMenu.c973057b.js","assets/DropdownMenu.4f69c722.css","assets/CircularLoading.1e68d2b1.js","assets/lottie.234eb92e.js","assets/CircularLoading.f81b57b4.css","assets/RuntimeList.bab136d4.css"]),meta:{title:"Abstra - Jobs"}},{path:"hooks",name:"hooks",component:()=>t(()=>import("./Hooks.c53952b8.js"),["assets/Hooks.c53952b8.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css","assets/icons.39dfa322.js","assets/asyncComputed.31994732.js","assets/hooks.fd4bb08f.js","assets/activeRecord.adfc6223.js","assets/pubsub.f85a17d2.js","assets/RuntimeList.ec9e2b4b.js","assets/DropdownMenu.c973057b.js","assets/DropdownMenu.4f69c722.css","assets/CircularLoading.1e68d2b1.js","assets/lottie.234eb92e.js","assets/CircularLoading.f81b57b4.css","assets/RuntimeList.bab136d4.css"]),meta:{title:"Abstra - Hooks"}},{path:"tables",name:"tables",component:()=>t(()=>import("./Tables.d21da407.js"),["assets/Tables.d21da407.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css","assets/icons.39dfa322.js","assets/asyncComputed.31994732.js","assets/tables.b367c7a5.js","assets/activeRecord.adfc6223.js","assets/pubsub.f85a17d2.js","assets/RuntimeList.ec9e2b4b.js","assets/DropdownMenu.c973057b.js","assets/DropdownMenu.4f69c722.css","assets/CircularLoading.1e68d2b1.js","assets/lottie.234eb92e.js","assets/CircularLoading.f81b57b4.css","assets/RuntimeList.bab136d4.css"]),meta:{title:"Abstra - Tables"}},{path:"style",name:"style",component:()=>t(()=>import("./StyleEditor.2dd12e40.js"),["assets/StyleEditor.2dd12e40.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css","assets/asyncComputed.31994732.js","assets/workspaces.5f21a554.js","assets/activeRecord.adfc6223.js","assets/pubsub.f85a17d2.js","assets/CircularLoading.1e68d2b1.js","assets/lottie.234eb92e.js","assets/CircularLoading.f81b57b4.css","assets/icons.39dfa322.js","assets/SidebarPreview.693e60b3.js","assets/PlayerNavbar.fe11d508.js","assets/PlayerNavbar.adff8b48.css","assets/runnerData.7b7cb682.js","assets/colors.868ae049.js","assets/SidebarPreview.12212654.css","assets/SaveButton.b678d3d3.js","assets/SaveButton.c5392044.css","assets/StyleEditor.b552686c.css"]),meta:{title:"Abstra - Style"}},{path:"sidebar",name:"sidebar",component:()=>t(()=>import("./SidebarEditor.62de4759.js"),["assets/SidebarEditor.62de4759.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css","assets/workspaces.5f21a554.js","assets/activeRecord.adfc6223.js","assets/pubsub.f85a17d2.js","assets/asyncComputed.31994732.js","assets/CircularLoading.1e68d2b1.js","assets/lottie.234eb92e.js","assets/CircularLoading.f81b57b4.css","assets/SaveButton.b678d3d3.js","assets/icons.39dfa322.js","assets/SaveButton.c5392044.css","assets/SidebarPreview.693e60b3.js","assets/PlayerNavbar.fe11d508.js","assets/PlayerNavbar.adff8b48.css","assets/runnerData.7b7cb682.js","assets/colors.868ae049.js","assets/SidebarPreview.12212654.css","assets/SidebarEditor.f65d95bf.css"]),meta:{title:"Abstra - Sidebar"}}]},{path:"form/:formPath",name:"editor",component:()=>t(()=>import("./FormEditor.f43de75d.js"),["assets/FormEditor.f43de75d.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css","assets/CircularLoading.1e68d2b1.js","assets/lottie.234eb92e.js","assets/CircularLoading.f81b57b4.css","assets/Error.ecdc8e8a.js","assets/Error.5cfc41d8.css","assets/broker.988d8f9b.js","assets/passwordlessManager.afd7d1d0.js","assets/pubsub.f85a17d2.js","assets/icons.39dfa322.js","assets/ActionButton.vue_vue_type_script_setup_true_lang.9a3f9909.js","assets/Passwordless.7161b834.js","assets/Passwordless.86ac0c56.css","assets/executeJs.87b204c8.js","assets/PlayerNavbar.fe11d508.js","assets/PlayerNavbar.adff8b48.css","assets/index.7d1457d9.js","assets/WidgetsFrame.aac2edff.js","assets/colors.868ae049.js","assets/WidgetsFrame.701a818b.css","assets/Modal.43c3d47a.js","assets/Modal.5aaf8eba.css","assets/executeJs.887e9a58.css","assets/broker.5f3abad8.css","assets/UnsavedChangesHandler.vue_vue_type_script_setup_true_lang.35587b62.js","assets/asyncComputed.31994732.js","assets/forms.f5353181.js","assets/activeRecord.adfc6223.js","assets/dashes.3c9b04b3.js","assets/runnerData.7b7cb682.js","assets/hooks.fd4bb08f.js","assets/jobs.d0693d2f.js","assets/workspaces.5f21a554.js","assets/uuid.0e63ad64.js","assets/login.ce8787fb.js","assets/UnsavedChangesHandler.6c0ea770.css","assets/Tab.27dc38aa.js","assets/Tab.68f29dcc.css","assets/BackButton.677abc51.js","assets/BackButton.40348456.css","assets/SaveButton.b678d3d3.js","assets/SaveButton.c5392044.css","assets/DocsButton.495d0473.js","assets/DocsButton.d2184c76.css","assets/PreviewButton.70ce525c.js","assets/PreviewButton.52324bbf.css","assets/FormEditor.6172d866.css"]),meta:{title:"Abstra - Smart Form Editor"}},{path:"form/:formPath/preview",name:"form-preview",component:()=>t(()=>import("./FormPreview.66f90019.js"),["assets/FormPreview.66f90019.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css","assets/CircularLoading.1e68d2b1.js","assets/lottie.234eb92e.js","assets/CircularLoading.f81b57b4.css","assets/Error.ecdc8e8a.js","assets/Error.5cfc41d8.css","assets/broker.988d8f9b.js","assets/passwordlessManager.afd7d1d0.js","assets/pubsub.f85a17d2.js","assets/icons.39dfa322.js","assets/ActionButton.vue_vue_type_script_setup_true_lang.9a3f9909.js","assets/Passwordless.7161b834.js","assets/Passwordless.86ac0c56.css","assets/executeJs.87b204c8.js","assets/PlayerNavbar.fe11d508.js","assets/PlayerNavbar.adff8b48.css","assets/index.7d1457d9.js","assets/WidgetsFrame.aac2edff.js","assets/colors.868ae049.js","assets/WidgetsFrame.701a818b.css","assets/Modal.43c3d47a.js","assets/Modal.5aaf8eba.css","assets/executeJs.887e9a58.css","assets/broker.5f3abad8.css","assets/BackButton.ec736006.js","assets/BackButton.dd542746.css","assets/asyncComputed.31994732.js","assets/forms.f5353181.js","assets/activeRecord.adfc6223.js","assets/workspaces.5f21a554.js","assets/FormPreview.6d0d0d3a.css"]),meta:{title:"Abstra - Smart Form Preview"}},{path:"job/:jobId",name:"jobEditor",component:()=>t(()=>import("./JobEditor.57ef240b.js"),["assets/JobEditor.57ef240b.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css","assets/Tab.27dc38aa.js","assets/Tab.68f29dcc.css","assets/CircularLoading.1e68d2b1.js","assets/lottie.234eb92e.js","assets/CircularLoading.f81b57b4.css","assets/asyncComputed.31994732.js","assets/jobs.d0693d2f.js","assets/activeRecord.adfc6223.js","assets/pubsub.f85a17d2.js","assets/SaveButton.b678d3d3.js","assets/icons.39dfa322.js","assets/SaveButton.c5392044.css","assets/BackButton.677abc51.js","assets/BackButton.40348456.css","assets/UnsavedChangesHandler.vue_vue_type_script_setup_true_lang.35587b62.js","assets/forms.f5353181.js","assets/dashes.3c9b04b3.js","assets/runnerData.7b7cb682.js","assets/hooks.fd4bb08f.js","assets/workspaces.5f21a554.js","assets/uuid.0e63ad64.js","assets/login.ce8787fb.js","assets/UnsavedChangesHandler.6c0ea770.css","assets/DocsButton.495d0473.js","assets/DocsButton.d2184c76.css","assets/JobEditor.d8bbc89c.css"]),meta:{title:"Abstra - Job Editor"}},{path:"dash/:dashPath",name:"dashEditor",component:()=>t(()=>import("./DashEditor.695e56d1.js"),["assets/DashEditor.695e56d1.js","assets/index.7d1457d9.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css","assets/Tab.27dc38aa.js","assets/Tab.68f29dcc.css","assets/DashPlayer.6d1530bb.js","assets/runnerData.7b7cb682.js","assets/executeJs.87b204c8.js","assets/PlayerNavbar.fe11d508.js","assets/icons.39dfa322.js","assets/PlayerNavbar.adff8b48.css","assets/WidgetsFrame.aac2edff.js","assets/colors.868ae049.js","assets/WidgetsFrame.701a818b.css","assets/Modal.43c3d47a.js","assets/Modal.5aaf8eba.css","assets/executeJs.887e9a58.css","assets/passwordlessManager.afd7d1d0.js","assets/pubsub.f85a17d2.js","assets/Passwordless.7161b834.js","assets/CircularLoading.1e68d2b1.js","assets/lottie.234eb92e.js","assets/CircularLoading.f81b57b4.css","assets/Passwordless.86ac0c56.css","assets/DashPlayer.ef4a798d.css","assets/UnsavedChangesHandler.vue_vue_type_script_setup_true_lang.35587b62.js","assets/asyncComputed.31994732.js","assets/forms.f5353181.js","assets/activeRecord.adfc6223.js","assets/dashes.3c9b04b3.js","assets/hooks.fd4bb08f.js","assets/jobs.d0693d2f.js","assets/workspaces.5f21a554.js","assets/uuid.0e63ad64.js","assets/login.ce8787fb.js","assets/UnsavedChangesHandler.6c0ea770.css","assets/BackButton.677abc51.js","assets/BackButton.40348456.css","assets/SaveButton.b678d3d3.js","assets/SaveButton.c5392044.css","assets/PreviewButton.70ce525c.js","assets/PreviewButton.52324bbf.css","assets/DocsButton.495d0473.js","assets/DocsButton.d2184c76.css","assets/DashEditor.4380b9a2.css"]),meta:{title:"Abstra - Dash Editor"}},{path:"dash/:dashPath/preview",name:"dashPreview",component:()=>t(()=>import("./DashPreview.252c24e9.js"),["assets/DashPreview.252c24e9.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css","assets/DashPlayer.6d1530bb.js","assets/runnerData.7b7cb682.js","assets/executeJs.87b204c8.js","assets/PlayerNavbar.fe11d508.js","assets/icons.39dfa322.js","assets/PlayerNavbar.adff8b48.css","assets/index.7d1457d9.js","assets/WidgetsFrame.aac2edff.js","assets/colors.868ae049.js","assets/WidgetsFrame.701a818b.css","assets/Modal.43c3d47a.js","assets/Modal.5aaf8eba.css","assets/executeJs.887e9a58.css","assets/passwordlessManager.afd7d1d0.js","assets/pubsub.f85a17d2.js","assets/Passwordless.7161b834.js","assets/CircularLoading.1e68d2b1.js","assets/lottie.234eb92e.js","assets/CircularLoading.f81b57b4.css","assets/Passwordless.86ac0c56.css","assets/DashPlayer.ef4a798d.css","assets/BackButton.ec736006.js","assets/BackButton.dd542746.css","assets/asyncComputed.31994732.js","assets/dashes.3c9b04b3.js","assets/activeRecord.adfc6223.js","assets/workspaces.5f21a554.js","assets/DashPreview.999196e0.css"]),meta:{title:"Abstra - Dash Editor"}},{path:"hook/:hookPath",name:"hookEditor",component:()=>t(()=>import("./HookEditor.737124d4.js"),["assets/HookEditor.737124d4.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css","assets/Tab.27dc38aa.js","assets/Tab.68f29dcc.css","assets/CircularLoading.1e68d2b1.js","assets/lottie.234eb92e.js","assets/CircularLoading.f81b57b4.css","assets/UnsavedChangesHandler.vue_vue_type_script_setup_true_lang.35587b62.js","assets/icons.39dfa322.js","assets/asyncComputed.31994732.js","assets/forms.f5353181.js","assets/activeRecord.adfc6223.js","assets/pubsub.f85a17d2.js","assets/dashes.3c9b04b3.js","assets/runnerData.7b7cb682.js","assets/hooks.fd4bb08f.js","assets/jobs.d0693d2f.js","assets/workspaces.5f21a554.js","assets/uuid.0e63ad64.js","assets/login.ce8787fb.js","assets/UnsavedChangesHandler.6c0ea770.css","assets/BackButton.677abc51.js","assets/BackButton.40348456.css","assets/SaveButton.b678d3d3.js","assets/SaveButton.c5392044.css","assets/DocsButton.495d0473.js","assets/DocsButton.d2184c76.css","assets/HookEditor.1c22dc94.css"]),meta:{title:"Abstra - Hook Editor"}},{path:"table/:tableName",name:"tableEditor",component:()=>t(()=>import("./TableEditor.b499e372.js"),["assets/TableEditor.b499e372.js","assets/asyncComputed.31994732.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css","assets/tables.b367c7a5.js","assets/activeRecord.adfc6223.js","assets/pubsub.f85a17d2.js","assets/CircularLoading.1e68d2b1.js","assets/lottie.234eb92e.js","assets/CircularLoading.f81b57b4.css","assets/Tab.27dc38aa.js","assets/Tab.68f29dcc.css","assets/BackButton.677abc51.js","assets/BackButton.40348456.css","assets/icons.39dfa322.js","assets/DocsButton.495d0473.js","assets/DocsButton.d2184c76.css","assets/SaveButton.b678d3d3.js","assets/SaveButton.c5392044.css","assets/TableEditor.66877c31.css"]),meta:{title:"Abstra - Table Editor"}}]}],scrollBehavior(e){if(e.hash)return{el:e.hash}}});r.beforeEach(async(e,o)=>{L(e,o)});(async()=>{const e=E({render:()=>T(k)});v.init(),f(e,r),e.use(r),e.use(A),e.mount("#app"),e.component("VSelect",P),e.component("Markdown",I),e.component("Icon",D),e.component("Message",w),a(e,y),a(e,V),a(e,R)})(); +//# sourceMappingURL=editor.e185cc3f.js.map diff --git a/abstra_statics/dist/assets/editor.main.aa43f13b.js b/abstra_statics/dist/assets/editor.main.2331c6e5.js similarity index 99% rename from abstra_statics/dist/assets/editor.main.aa43f13b.js rename to abstra_statics/dist/assets/editor.main.2331c6e5.js index 9e3673f043..1fed38a4aa 100644 --- a/abstra_statics/dist/assets/editor.main.aa43f13b.js +++ b/abstra_statics/dist/assets/editor.main.2331c6e5.js @@ -1,4 +1,4 @@ -var E8=Object.defineProperty;var N8=(o,e,t)=>e in o?E8(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var qt=(o,e,t)=>(N8(o,typeof e!="symbol"?e+"":e,t),t);import{_ as ue}from"./registerWidgets.3fe0df5a.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="bad18a7e-c78e-4acc-80be-8e35283d6f98",o._sentryDebugIdIdentifier="sentry-dbid-bad18a7e-c78e-4acc-80be-8e35283d6f98")}catch{}})();globalThis&&globalThis.__awaiter;let T8=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function A8(o,e){let t;return e.length===0?t=o:t=o.replace(/\{(\d+)\}/g,(i,n)=>{const s=n[0],r=e[s];let a=i;return typeof r=="string"?a=r:(typeof r=="number"||typeof r=="boolean"||r===void 0||r===null)&&(a=String(r)),a}),T8&&(t="\uFF3B"+t.replace(/[aouei]/g,"$&$&")+"\uFF3D"),t}function p(o,e,...t){return A8(e,t)}var Ow;const Vf="en";let U0=!1,$0=!1,h0=!1,TO=!1,sI=!1,oI=!1,q_,u0=Vf,M8,Cl;const ni=typeof self=="object"?self:typeof global=="object"?global:{};let Sn;typeof ni.vscode<"u"&&typeof ni.vscode.process<"u"?Sn=ni.vscode.process:typeof process<"u"&&(Sn=process);const R8=typeof((Ow=Sn==null?void 0:Sn.versions)===null||Ow===void 0?void 0:Ow.electron)=="string",O8=R8&&(Sn==null?void 0:Sn.type)==="renderer";if(typeof navigator=="object"&&!O8)Cl=navigator.userAgent,U0=Cl.indexOf("Windows")>=0,$0=Cl.indexOf("Macintosh")>=0,oI=(Cl.indexOf("Macintosh")>=0||Cl.indexOf("iPad")>=0||Cl.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,h0=Cl.indexOf("Linux")>=0,sI=!0,p({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),q_=Vf,u0=q_;else if(typeof Sn=="object"){U0=Sn.platform==="win32",$0=Sn.platform==="darwin",h0=Sn.platform==="linux",h0&&!!Sn.env.SNAP&&Sn.env.SNAP_REVISION,Sn.env.CI||Sn.env.BUILD_ARTIFACTSTAGINGDIRECTORY,q_=Vf,u0=Vf;const o=Sn.env.VSCODE_NLS_CONFIG;if(o)try{const e=JSON.parse(o),t=e.availableLanguages["*"];q_=e.locale,u0=t||Vf,M8=e._translationsConfigFile}catch{}TO=!0}else console.error("Unable to resolve platform.");const Yi=U0,Ge=$0,dn=h0,jo=TO,Sc=sI,P8=sI&&typeof ni.importScripts=="function",Ur=oI,$r=Cl,F8=u0,B8=typeof ni.postMessage=="function"&&!ni.importScripts,AO=(()=>{if(B8){const o=[];ni.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=o.length;i{const i=++e;o.push({id:i,callback:t}),ni.postMessage({vscodeScheduleAsyncWork:i},"*")}}return o=>setTimeout(o)})(),Os=$0||oI?2:U0?1:3;let yT=!0,LT=!1;function MO(){if(!LT){LT=!0;const o=new Uint8Array(2);o[0]=1,o[1]=2,yT=new Uint16Array(o.buffer)[0]===(2<<8)+1}return yT}const RO=!!($r&&$r.indexOf("Chrome")>=0),W8=!!($r&&$r.indexOf("Firefox")>=0),V8=!!(!RO&&$r&&$r.indexOf("Safari")>=0),H8=!!($r&&$r.indexOf("Edg/")>=0);$r&&$r.indexOf("Android")>=0;var je;(function(o){function e(S){return S&&typeof S=="object"&&typeof S[Symbol.iterator]=="function"}o.is=e;const t=Object.freeze([]);function i(){return t}o.empty=i;function*n(S){yield S}o.single=n;function s(S){return S||t}o.from=s;function r(S){return!S||S[Symbol.iterator]().next().done===!0}o.isEmpty=r;function a(S){return S[Symbol.iterator]().next().value}o.first=a;function l(S,k){for(const x of S)if(k(x))return!0;return!1}o.some=l;function c(S,k){for(const x of S)if(k(x))return x}o.find=c;function*d(S,k){for(const x of S)k(x)&&(yield x)}o.filter=d;function*h(S,k){let x=0;for(const y of S)yield k(y,x++)}o.map=h;function*u(...S){for(const k of S)for(const x of k)yield x}o.concat=u;function*g(S){for(const k of S)for(const x of k)yield x}o.concatNested=g;function f(S,k,x){let y=x;for(const D of S)y=k(y,D);return y}o.reduce=f;function _(S,k){let x=0;for(const y of S)k(y,x++)}o.forEach=_;function*b(S,k,x=S.length){for(k<0&&(k+=S.length),x<0?x+=S.length:x>S.length&&(x=S.length);ky===D){const y=S[Symbol.iterator](),D=k[Symbol.iterator]();for(;;){const I=y.next(),O=D.next();if(I.done!==O.done)return!1;if(I.done)return!0;if(!x(I.value,O.value))return!1}}o.equals=w})(je||(je={}));class Gt{constructor(e){this.element=e,this.next=Gt.Undefined,this.prev=Gt.Undefined}}Gt.Undefined=new Gt(void 0);class Dn{constructor(){this._first=Gt.Undefined,this._last=Gt.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Gt.Undefined}clear(){let e=this._first;for(;e!==Gt.Undefined;){const t=e.next;e.prev=Gt.Undefined,e.next=Gt.Undefined,e=t}this._first=Gt.Undefined,this._last=Gt.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new Gt(e);if(this._first===Gt.Undefined)this._first=i,this._last=i;else if(t){const s=this._last;this._last=i,i.prev=s,s.next=i}else{const s=this._first;this._first=i,i.next=s,s.prev=i}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(i))}}shift(){if(this._first!==Gt.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Gt.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Gt.Undefined&&e.next!==Gt.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Gt.Undefined&&e.next===Gt.Undefined?(this._first=Gt.Undefined,this._last=Gt.Undefined):e.next===Gt.Undefined?(this._last=this._last.prev,this._last.next=Gt.Undefined):e.prev===Gt.Undefined&&(this._first=this._first.next,this._first.prev=Gt.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Gt.Undefined;)yield e.element,e=e.next}}const OO="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function z8(o=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of OO)o.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const rI=z8();function PO(o){let e=rI;if(o&&o instanceof RegExp)if(o.global)e=o;else{let t="g";o.ignoreCase&&(t+="i"),o.multiline&&(t+="m"),o.unicode&&(t+="u"),e=new RegExp(o.source,t)}return e.lastIndex=0,e}const FO=new Dn;FO.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Mp(o,e,t,i,n){if(n||(n=je.first(FO)),t.length>n.maxLen){let c=o-n.maxLen/2;return c<0?c=0:i+=c,t=t.substring(c,o+n.maxLen/2),Mp(o,e,t,i,n)}const s=Date.now(),r=o-1-i;let a=-1,l=null;for(let c=1;!(Date.now()-s>=n.timeBudget);c++){const d=r-n.windowSize*c;e.lastIndex=Math.max(0,d);const h=U8(e,t,r,a);if(!h&&l||(l=h,d<=0))break;a=d}if(l){const c={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function U8(o,e,t,i){let n;for(;n=o.exec(e);){const s=n.index||0;if(s<=t&&o.lastIndex>=t)return n;if(i>0&&s>i)return null}return null}function Ts(o,e=0){return o[o.length-(1+e)]}function $8(o){if(o.length===0)throw new Error("Invalid tail call");return[o.slice(0,o.length-1),o[o.length-1]]}function Ss(o,e,t=(i,n)=>i===n){if(o===e)return!0;if(!o||!e||o.length!==e.length)return!1;for(let i=0,n=o.length;it(o[i],e))}function K8(o,e){let t=0,i=o-1;for(;t<=i;){const n=(t+i)/2|0,s=e(n);if(s<0)t=n+1;else if(s>0)i=n-1;else return n}return-(t+1)}function BO(o,e){let t=0,i=o.length;if(i===0)return 0;for(;t=e.length)throw new TypeError("invalid index");const i=e[Math.floor(e.length*Math.random())],n=[],s=[],r=[];for(const a of e){const l=t(a,i);l<0?n.push(a):l>0?s.push(a):r.push(a)}return o!!e)}function WO(o){return!Array.isArray(o)||o.length===0}function rn(o){return Array.isArray(o)&&o.length>0}function Qa(o,e=t=>t){const t=new Set;return o.filter(i=>{const n=e(i);return t.has(n)?!1:(t.add(n),!0)})}function j0(o,e){const t=q8(o,e);if(t!==-1)return o[t]}function q8(o,e){for(let t=o.length-1;t>=0;t--){const i=o[t];if(e(i))return t}return-1}function VO(o,e){return o.length>0?o[0]:e}function Cn(o,e){let t=typeof e=="number"?o:0;typeof e=="number"?t=o:(t=0,e=o);const i=[];if(t<=e)for(let n=t;ne;n--)i.push(n);return i}function RC(o,e,t){const i=o.slice(0,e),n=o.slice(e);return i.concat(t,n)}function Pw(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.unshift(e))}function G_(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.push(e))}function kT(o,e){for(const t of e)o.push(t)}function lI(o){return Array.isArray(o)?o:[o]}function G8(o,e,t){const i=HO(o,e),n=o.length,s=t.length;o.length=n+s;for(let r=n-1;r>=i;r--)o[r+s]=o[r];for(let r=0;r0}o.isGreaterThan=t;function i(n){return n===0}o.isNeitherLessOrGreaterThan=i,o.greaterThan=1,o.lessThan=-1,o.neitherLessOrGreaterThan=0})(IT||(IT={}));function op(o,e){return(t,i)=>e(o(t),o(i))}const Z8=(o,e)=>o-e;function zO(o,e){if(o.length===0)return;let t=o[0];for(let i=1;i0&&(t=n)}return t}function UO(o,e){if(o.length===0)return;let t=o[0];for(let i=1;i=0&&(t=n)}return t}function Y8(o,e){return zO(o,(t,i)=>-e(t,i))}class Rp{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}function $O(o){return Array.isArray(o)}function Un(o){return typeof o=="string"}function Hn(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)&&!(o instanceof RegExp)&&!(o instanceof Date)}function Q8(o){const e=Object.getPrototypeOf(Uint8Array);return typeof o=="object"&&o instanceof e}function tc(o){return typeof o=="number"&&!isNaN(o)}function ET(o){return!!o&&typeof o[Symbol.iterator]=="function"}function jO(o){return o===!0||o===!1}function Xn(o){return typeof o>"u"}function X8(o){return!ms(o)}function ms(o){return Xn(o)||o===null}function pt(o,e){if(!o)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function Z_(o){if(ms(o))throw new Error("Assertion Failed: argument is undefined or null");return o}function K0(o){return typeof o=="function"}function J8(o,e){const t=Math.min(o.length,e.length);for(let i=0;ifunction(){const s=Array.prototype.slice.call(arguments,0);return e(n,s)},i={};for(const n of o)i[n]=t(n);return i}function Wn(o){return o===null?void 0:o}function OC(o,e="Unreachable"){throw new Error(e)}function La(o){if(!o||typeof o!="object"||o instanceof RegExp)return o;const e=Array.isArray(o)?[]:{};return Object.keys(o).forEach(t=>{o[t]&&typeof o[t]=="object"?e[t]=La(o[t]):e[t]=o[t]}),e}function n6(o){if(!o||typeof o!="object")return o;const e=[o];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(KO.call(t,i)){const n=t[i];typeof n=="object"&&!Object.isFrozen(n)&&!Q8(n)&&e.push(n)}}return o}const KO=Object.prototype.hasOwnProperty;function qO(o,e){return $y(o,e,new Set)}function $y(o,e,t){if(ms(o))return o;const i=e(o);if(typeof i<"u")return i;if($O(o)){const n=[];for(const s of o)n.push($y(s,e,t));return n}if(Hn(o)){if(t.has(o))throw new Error("Cannot clone recursive data-structure");t.add(o);const n={};for(const s in o)KO.call(o,s)&&(n[s]=$y(o[s],e,t));return t.delete(o),n}return o}function Jr(o,e,t=!0){return Hn(o)?(Hn(e)&&Object.keys(e).forEach(i=>{i in o?t&&(Hn(o[i])&&Hn(e[i])?Jr(o[i],e[i],t):o[i]=e[i]):o[i]=e[i]}),o):e}function $s(o,e){if(o===e)return!0;if(o==null||e===null||e===void 0||typeof o!=typeof e||typeof o!="object"||Array.isArray(o)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(o)){if(o.length!==e.length)return!1;for(t=0;t"u"?this.defaultValue:e}compute(e,t,i){return i}}function we(o,e){return typeof o>"u"?e:o==="false"?!1:Boolean(o)}class Qe extends uh{constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return we(e,this.defaultValue)}}function jy(o,e,t,i){if(typeof o>"u")return e;let n=parseInt(o,10);return isNaN(n)?e:(n=Math.max(t,n),n=Math.min(i,n),n|0)}class Tt extends uh{constructor(e,t,i,n,s,r=void 0){typeof r<"u"&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=s),super(e,t,i,r),this.minimum=n,this.maximum=s}static clampedInt(e,t,i,n){return jy(e,t,i,n)}validate(e){return Tt.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class Ar extends uh{constructor(e,t,i,n,s){typeof s<"u"&&(s.type="number",s.default=i),super(e,t,i,s),this.validationFn=n}static clamp(e,t,i){return ei?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}validate(e){return this.validationFn(Ar.float(e,this.defaultValue))}}class Yn extends uh{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return Yn.string(e,this.defaultValue)}}function Ki(o,e,t){return typeof o!="string"||t.indexOf(o)===-1?e:o}class vi extends uh{constructor(e,t,i,n,s=void 0){typeof s<"u"&&(s.type="string",s.enum=n,s.default=i),super(e,t,i,s),this._allowedValues=n}validate(e){return Ki(e,this.defaultValue,this._allowedValues)}}class ff extends fi{constructor(e,t,i,n,s,r,a=void 0){typeof a<"u"&&(a.type="string",a.enum=s,a.default=n),super(e,t,i,a),this._allowedValues=s,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function s6(o){switch(o){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class o6 extends fi{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[p("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),p("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader. Word wrapping will be disabled."),p("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:p("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers. Setting to on will disable word wrapping.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class r6 extends fi{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(19,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:p("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:p("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:we(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:we(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function a6(o){switch(o){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var Hi;(function(o){o[o.Line=1]="Line",o[o.Block=2]="Block",o[o.Underline=3]="Underline",o[o.LineThin=4]="LineThin",o[o.BlockOutline=5]="BlockOutline",o[o.UnderlineThin=6]="UnderlineThin"})(Hi||(Hi={}));function l6(o){switch(o){case"line":return Hi.Line;case"block":return Hi.Block;case"underline":return Hi.Underline;case"line-thin":return Hi.LineThin;case"block-outline":return Hi.BlockOutline;case"underline-thin":return Hi.UnderlineThin}}class c6 extends Vg{constructor(){super(130)}compute(e,t,i){const n=["monaco-editor"];return t.get(35)&&n.push(t.get(35)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(68)==="default"?n.push("mouse-default"):t.get(68)==="copy"&&n.push("mouse-copy"),t.get(102)&&n.push("showUnused"),t.get(128)&&n.push("showDeprecated"),n.join(" ")}}class d6 extends Qe{constructor(){super(33,"emptySelectionClipboard",!0,{description:p("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class h6 extends fi{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(37,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:p("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[p("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),p("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),p("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:p("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[p("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),p("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),p("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:p("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:p("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:Ge},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:p("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:p("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:we(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":Ki(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":Ki(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:we(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:we(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:we(t.loop,this.defaultValue.loop)}}}class _s extends fi{constructor(){super(47,"fontLigatures",_s.OFF,{anyOf:[{type:"boolean",description:p("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:p("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:p("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?_s.OFF:e==="true"?_s.ON:e:Boolean(e)?_s.ON:_s.OFF}}_s.OFF='"liga" off, "calt" off';_s.ON='"liga" on, "calt" on';class u6 extends Vg{constructor(){super(46)}compute(e,t,i){return e.fontInfo}}class g6 extends uh{constructor(){super(48,"fontSize",ts.fontSize,{type:"number",minimum:6,maximum:100,default:ts.fontSize,description:p("fontSize","Controls the font size in pixels.")})}validate(e){const t=Ar.float(e,this.defaultValue);return t===0?ts.fontSize:Ar.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class kr extends fi{constructor(){super(49,"fontWeight",ts.fontWeight,{anyOf:[{type:"number",minimum:kr.MINIMUM_VALUE,maximum:kr.MAXIMUM_VALUE,errorMessage:p("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:kr.SUGGESTION_VALUES}],default:ts.fontWeight,description:p("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(Tt.clampedInt(e,ts.fontWeight,kr.MINIMUM_VALUE,kr.MAXIMUM_VALUE))}}kr.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];kr.MINIMUM_VALUE=1;kr.MAXIMUM_VALUE=1e3;class f6 extends fi{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[p("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),p("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),p("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(53,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:p("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:p("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:p("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:p("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:p("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:p("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:p("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:p("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:p("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:p("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:p("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,s,r;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:Ki(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:Ki(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:Ki(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(n=a.multipleDeclarations)!==null&&n!==void 0?n:Ki(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(s=a.multipleImplementations)!==null&&s!==void 0?s:Ki(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(r=a.multipleReferences)!==null&&r!==void 0?r:Ki(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:Yn.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:Yn.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:Yn.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:Yn.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:Yn.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class p6 extends fi{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(55,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:p("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:p("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:p("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:p("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),delay:Tt.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:we(t.sticky,this.defaultValue.sticky),above:we(t.above,this.defaultValue.above)}}}class Eu extends Vg{constructor(){super(133)}compute(e,t,i){return Eu.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=e.scrollBeyondLastLine?t-1:0,n=(e.viewLineCount+i)/(e.pixelRatio*e.height),s=Math.floor(e.viewLineCount/n);return{typicalViewportLineCount:t,extraLinesBeyondLastLine:i,desiredRatio:n,minimapLineCount:s}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,s=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(s*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,d=e.scrollBeyondLastLine,h=e.minimap.renderCharacters;let u=s>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const g=e.minimap.maxColumn,f=e.minimap.size,_=e.minimap.side,b=e.verticalScrollbarWidth,v=e.viewLineCount,C=e.remainingWidth,w=e.isViewportWrapping,S=h?2:3;let k=Math.floor(s*n);const x=k/s;let y=!1,D=!1,I=S*u,O=u/s,F=1;if(f==="fill"||f==="fit"){const{typicalViewportLineCount:xe,extraLinesBeyondLastLine:He,desiredRatio:Mt,minimapLineCount:yt}=Eu.computeContainedMinimapLineCount({viewLineCount:v,scrollBeyondLastLine:d,height:n,lineHeight:l,pixelRatio:s});if(v/yt>1)y=!0,D=!0,u=1,I=1,O=u/s;else{let me=!1,Nt=u+1;if(f==="fit"){const Fi=Math.ceil((v+He)*I);w&&a&&C<=t.stableFitRemainingWidth?(me=!0,Nt=t.stableFitMaxMinimapScale):me=Fi>k}if(f==="fill"||me){y=!0;const Fi=u;I=Math.min(l*s,Math.max(1,Math.floor(1/Mt))),w&&a&&C<=t.stableFitRemainingWidth&&(Nt=t.stableFitMaxMinimapScale),u=Math.min(Nt,Math.max(1,Math.floor(I/S))),u>Fi&&(F=Math.min(2,u/Fi)),O=u/s/F,k=Math.ceil(Math.max(xe,v+He)*I),w?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=C,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const z=Math.floor(g*O),j=Math.min(z,Math.max(0,Math.floor((C-b-2)*O/(c+O)))+wl);let re=Math.floor(s*j);const he=re/s;re=Math.floor(re*F);const Se=h?1:2,ye=_==="left"?0:i-j-b;return{renderMinimap:Se,minimapLeft:ye,minimapWidth:j,minimapHeightIsEditorHeight:y,minimapIsSampling:D,minimapScale:u,minimapLineHeight:I,minimapCanvasInnerWidth:re,minimapCanvasInnerHeight:k,minimapCanvasOuterWidth:he,minimapCanvasOuterHeight:x}}static computeLayout(e,t){const i=t.outerWidth|0,n=t.outerHeight|0,s=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,c=t.pixelRatio,d=t.viewLineCount,h=e.get(125),u=h==="inherit"?e.get(124):h,g=u==="inherit"?e.get(120):u,f=e.get(123),_=e.get(2),b=t.isDominatedByLongLines,v=e.get(52),C=e.get(62).renderType!==0,w=e.get(63),S=e.get(96),k=e.get(67),x=e.get(94),y=x.verticalScrollbarSize,D=x.verticalHasArrows,I=x.arrowSize,O=x.horizontalScrollbarSize,F=e.get(60),z=e.get(39),j=e.get(101)!=="never";let re;if(typeof F=="string"&&/^\d+(\.\d+)?ch$/.test(F)){const xo=parseFloat(F.substr(0,F.length-2));re=Tt.clampedInt(xo*a,0,0,1e3)}else re=Tt.clampedInt(F,0,0,1e3);z&&j&&(re+=16);let he=0;if(C){const xo=Math.max(r,w);he=Math.round(xo*l)}let Se=0;v&&(Se=s);let ye=0,xe=ye+Se,He=xe+he,Mt=He+re;const yt=i-Se-he-re;let ve=!1,me=!1,Nt=-1;_!==2&&(u==="inherit"&&b?(ve=!0,me=!0):g==="on"||g==="bounded"?me=!0:g==="wordWrapColumn"&&(Nt=f));const Fi=Eu._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:s,typicalHalfwidthCharacterWidth:a,pixelRatio:c,scrollBeyondLastLine:S,minimap:k,verticalScrollbarWidth:y,viewLineCount:d,remainingWidth:yt,isViewportWrapping:me},t.memory||new ZO);Fi.renderMinimap!==0&&Fi.minimapLeft===0&&(ye+=Fi.minimapWidth,xe+=Fi.minimapWidth,He+=Fi.minimapWidth,Mt+=Fi.minimapWidth);const In=yt-Fi.minimapWidth,ko=Math.max(1,Math.floor((In-y-2)/a)),oa=D?I:0;return me&&(Nt=Math.max(1,ko),g==="bounded"&&(Nt=Math.min(Nt,f))),{width:i,height:n,glyphMarginLeft:ye,glyphMarginWidth:Se,lineNumbersLeft:xe,lineNumbersWidth:he,decorationsLeft:He,decorationsWidth:re,contentLeft:Mt,contentWidth:In,minimap:Fi,viewportColumn:ko,isWordWrapMinified:ve,isViewportWrapping:me,wrappingColumn:Nt,verticalScrollbarWidth:y,horizontalScrollbarHeight:O,overviewRuler:{top:oa,width:y,height:n-2*oa,right:0}}}}class m6 extends fi{constructor(){const e={enabled:!0};super(59,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:p("codeActions","Enables the code action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:we(e.enabled,this.defaultValue.enabled)}}}class _6 extends fi{constructor(){const e={stickyScroll:{enabled:!1}};super(34,"experimental",e,{"editor.experimental.stickyScroll.enabled":{type:"boolean",default:e.stickyScroll.enabled,description:p("editor.experimental.stickyScroll","Shows the nested current scopes during the scroll at the top of the editor.")}})}validate(e){var t;return!e||typeof e!="object"?this.defaultValue:{stickyScroll:{enabled:we((t=e.stickyScroll)===null||t===void 0?void 0:t.enabled,this.defaultValue.stickyScroll.enabled)}}}}class b6 extends fi{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(129,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:p("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[p("editor.inlayHints.on","Inlay hints are enabled"),p("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding `Ctrl+Alt`"),p("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding `Ctrl+Alt`"),p("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:p("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:p("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:p("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return typeof t.enabled=="boolean"&&(t.enabled=t.enabled?"on":"off"),{enabled:Ki(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:Tt.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:Yn.string(t.fontFamily,this.defaultValue.fontFamily),padding:we(t.padding,this.defaultValue.padding)}}}class v6 extends Ar{constructor(){super(61,"lineHeight",ts.lineHeight,e=>Ar.clamp(e,0,150),{markdownDescription:p("lineHeight",`Controls the line height. +var E8=Object.defineProperty;var N8=(o,e,t)=>e in o?E8(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var qt=(o,e,t)=>(N8(o,typeof e!="symbol"?e+"":e,t),t);import{_ as ue}from"./registerWidgets.cb3a7b8d.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="0734c08a-5bc9-4aa4-9e7e-49601bda78d5",o._sentryDebugIdIdentifier="sentry-dbid-0734c08a-5bc9-4aa4-9e7e-49601bda78d5")}catch{}})();globalThis&&globalThis.__awaiter;let T8=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function A8(o,e){let t;return e.length===0?t=o:t=o.replace(/\{(\d+)\}/g,(i,n)=>{const s=n[0],r=e[s];let a=i;return typeof r=="string"?a=r:(typeof r=="number"||typeof r=="boolean"||r===void 0||r===null)&&(a=String(r)),a}),T8&&(t="\uFF3B"+t.replace(/[aouei]/g,"$&$&")+"\uFF3D"),t}function p(o,e,...t){return A8(e,t)}var Ow;const Vf="en";let U0=!1,$0=!1,h0=!1,TO=!1,sI=!1,oI=!1,q_,u0=Vf,M8,Cl;const ni=typeof self=="object"?self:typeof global=="object"?global:{};let Sn;typeof ni.vscode<"u"&&typeof ni.vscode.process<"u"?Sn=ni.vscode.process:typeof process<"u"&&(Sn=process);const R8=typeof((Ow=Sn==null?void 0:Sn.versions)===null||Ow===void 0?void 0:Ow.electron)=="string",O8=R8&&(Sn==null?void 0:Sn.type)==="renderer";if(typeof navigator=="object"&&!O8)Cl=navigator.userAgent,U0=Cl.indexOf("Windows")>=0,$0=Cl.indexOf("Macintosh")>=0,oI=(Cl.indexOf("Macintosh")>=0||Cl.indexOf("iPad")>=0||Cl.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,h0=Cl.indexOf("Linux")>=0,sI=!0,p({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),q_=Vf,u0=q_;else if(typeof Sn=="object"){U0=Sn.platform==="win32",$0=Sn.platform==="darwin",h0=Sn.platform==="linux",h0&&!!Sn.env.SNAP&&Sn.env.SNAP_REVISION,Sn.env.CI||Sn.env.BUILD_ARTIFACTSTAGINGDIRECTORY,q_=Vf,u0=Vf;const o=Sn.env.VSCODE_NLS_CONFIG;if(o)try{const e=JSON.parse(o),t=e.availableLanguages["*"];q_=e.locale,u0=t||Vf,M8=e._translationsConfigFile}catch{}TO=!0}else console.error("Unable to resolve platform.");const Yi=U0,Ge=$0,dn=h0,jo=TO,Sc=sI,P8=sI&&typeof ni.importScripts=="function",Ur=oI,$r=Cl,F8=u0,B8=typeof ni.postMessage=="function"&&!ni.importScripts,AO=(()=>{if(B8){const o=[];ni.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=o.length;i{const i=++e;o.push({id:i,callback:t}),ni.postMessage({vscodeScheduleAsyncWork:i},"*")}}return o=>setTimeout(o)})(),Os=$0||oI?2:U0?1:3;let yT=!0,LT=!1;function MO(){if(!LT){LT=!0;const o=new Uint8Array(2);o[0]=1,o[1]=2,yT=new Uint16Array(o.buffer)[0]===(2<<8)+1}return yT}const RO=!!($r&&$r.indexOf("Chrome")>=0),W8=!!($r&&$r.indexOf("Firefox")>=0),V8=!!(!RO&&$r&&$r.indexOf("Safari")>=0),H8=!!($r&&$r.indexOf("Edg/")>=0);$r&&$r.indexOf("Android")>=0;var je;(function(o){function e(S){return S&&typeof S=="object"&&typeof S[Symbol.iterator]=="function"}o.is=e;const t=Object.freeze([]);function i(){return t}o.empty=i;function*n(S){yield S}o.single=n;function s(S){return S||t}o.from=s;function r(S){return!S||S[Symbol.iterator]().next().done===!0}o.isEmpty=r;function a(S){return S[Symbol.iterator]().next().value}o.first=a;function l(S,k){for(const x of S)if(k(x))return!0;return!1}o.some=l;function c(S,k){for(const x of S)if(k(x))return x}o.find=c;function*d(S,k){for(const x of S)k(x)&&(yield x)}o.filter=d;function*h(S,k){let x=0;for(const y of S)yield k(y,x++)}o.map=h;function*u(...S){for(const k of S)for(const x of k)yield x}o.concat=u;function*g(S){for(const k of S)for(const x of k)yield x}o.concatNested=g;function f(S,k,x){let y=x;for(const D of S)y=k(y,D);return y}o.reduce=f;function _(S,k){let x=0;for(const y of S)k(y,x++)}o.forEach=_;function*b(S,k,x=S.length){for(k<0&&(k+=S.length),x<0?x+=S.length:x>S.length&&(x=S.length);ky===D){const y=S[Symbol.iterator](),D=k[Symbol.iterator]();for(;;){const I=y.next(),O=D.next();if(I.done!==O.done)return!1;if(I.done)return!0;if(!x(I.value,O.value))return!1}}o.equals=w})(je||(je={}));class Gt{constructor(e){this.element=e,this.next=Gt.Undefined,this.prev=Gt.Undefined}}Gt.Undefined=new Gt(void 0);class Dn{constructor(){this._first=Gt.Undefined,this._last=Gt.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Gt.Undefined}clear(){let e=this._first;for(;e!==Gt.Undefined;){const t=e.next;e.prev=Gt.Undefined,e.next=Gt.Undefined,e=t}this._first=Gt.Undefined,this._last=Gt.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new Gt(e);if(this._first===Gt.Undefined)this._first=i,this._last=i;else if(t){const s=this._last;this._last=i,i.prev=s,s.next=i}else{const s=this._first;this._first=i,i.next=s,s.prev=i}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(i))}}shift(){if(this._first!==Gt.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Gt.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Gt.Undefined&&e.next!==Gt.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Gt.Undefined&&e.next===Gt.Undefined?(this._first=Gt.Undefined,this._last=Gt.Undefined):e.next===Gt.Undefined?(this._last=this._last.prev,this._last.next=Gt.Undefined):e.prev===Gt.Undefined&&(this._first=this._first.next,this._first.prev=Gt.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Gt.Undefined;)yield e.element,e=e.next}}const OO="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function z8(o=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of OO)o.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const rI=z8();function PO(o){let e=rI;if(o&&o instanceof RegExp)if(o.global)e=o;else{let t="g";o.ignoreCase&&(t+="i"),o.multiline&&(t+="m"),o.unicode&&(t+="u"),e=new RegExp(o.source,t)}return e.lastIndex=0,e}const FO=new Dn;FO.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Mp(o,e,t,i,n){if(n||(n=je.first(FO)),t.length>n.maxLen){let c=o-n.maxLen/2;return c<0?c=0:i+=c,t=t.substring(c,o+n.maxLen/2),Mp(o,e,t,i,n)}const s=Date.now(),r=o-1-i;let a=-1,l=null;for(let c=1;!(Date.now()-s>=n.timeBudget);c++){const d=r-n.windowSize*c;e.lastIndex=Math.max(0,d);const h=U8(e,t,r,a);if(!h&&l||(l=h,d<=0))break;a=d}if(l){const c={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function U8(o,e,t,i){let n;for(;n=o.exec(e);){const s=n.index||0;if(s<=t&&o.lastIndex>=t)return n;if(i>0&&s>i)return null}return null}function Ts(o,e=0){return o[o.length-(1+e)]}function $8(o){if(o.length===0)throw new Error("Invalid tail call");return[o.slice(0,o.length-1),o[o.length-1]]}function Ss(o,e,t=(i,n)=>i===n){if(o===e)return!0;if(!o||!e||o.length!==e.length)return!1;for(let i=0,n=o.length;it(o[i],e))}function K8(o,e){let t=0,i=o-1;for(;t<=i;){const n=(t+i)/2|0,s=e(n);if(s<0)t=n+1;else if(s>0)i=n-1;else return n}return-(t+1)}function BO(o,e){let t=0,i=o.length;if(i===0)return 0;for(;t=e.length)throw new TypeError("invalid index");const i=e[Math.floor(e.length*Math.random())],n=[],s=[],r=[];for(const a of e){const l=t(a,i);l<0?n.push(a):l>0?s.push(a):r.push(a)}return o!!e)}function WO(o){return!Array.isArray(o)||o.length===0}function rn(o){return Array.isArray(o)&&o.length>0}function Qa(o,e=t=>t){const t=new Set;return o.filter(i=>{const n=e(i);return t.has(n)?!1:(t.add(n),!0)})}function j0(o,e){const t=q8(o,e);if(t!==-1)return o[t]}function q8(o,e){for(let t=o.length-1;t>=0;t--){const i=o[t];if(e(i))return t}return-1}function VO(o,e){return o.length>0?o[0]:e}function Cn(o,e){let t=typeof e=="number"?o:0;typeof e=="number"?t=o:(t=0,e=o);const i=[];if(t<=e)for(let n=t;ne;n--)i.push(n);return i}function RC(o,e,t){const i=o.slice(0,e),n=o.slice(e);return i.concat(t,n)}function Pw(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.unshift(e))}function G_(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.push(e))}function kT(o,e){for(const t of e)o.push(t)}function lI(o){return Array.isArray(o)?o:[o]}function G8(o,e,t){const i=HO(o,e),n=o.length,s=t.length;o.length=n+s;for(let r=n-1;r>=i;r--)o[r+s]=o[r];for(let r=0;r0}o.isGreaterThan=t;function i(n){return n===0}o.isNeitherLessOrGreaterThan=i,o.greaterThan=1,o.lessThan=-1,o.neitherLessOrGreaterThan=0})(IT||(IT={}));function op(o,e){return(t,i)=>e(o(t),o(i))}const Z8=(o,e)=>o-e;function zO(o,e){if(o.length===0)return;let t=o[0];for(let i=1;i0&&(t=n)}return t}function UO(o,e){if(o.length===0)return;let t=o[0];for(let i=1;i=0&&(t=n)}return t}function Y8(o,e){return zO(o,(t,i)=>-e(t,i))}class Rp{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}function $O(o){return Array.isArray(o)}function Un(o){return typeof o=="string"}function Hn(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)&&!(o instanceof RegExp)&&!(o instanceof Date)}function Q8(o){const e=Object.getPrototypeOf(Uint8Array);return typeof o=="object"&&o instanceof e}function tc(o){return typeof o=="number"&&!isNaN(o)}function ET(o){return!!o&&typeof o[Symbol.iterator]=="function"}function jO(o){return o===!0||o===!1}function Xn(o){return typeof o>"u"}function X8(o){return!ms(o)}function ms(o){return Xn(o)||o===null}function pt(o,e){if(!o)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function Z_(o){if(ms(o))throw new Error("Assertion Failed: argument is undefined or null");return o}function K0(o){return typeof o=="function"}function J8(o,e){const t=Math.min(o.length,e.length);for(let i=0;ifunction(){const s=Array.prototype.slice.call(arguments,0);return e(n,s)},i={};for(const n of o)i[n]=t(n);return i}function Wn(o){return o===null?void 0:o}function OC(o,e="Unreachable"){throw new Error(e)}function La(o){if(!o||typeof o!="object"||o instanceof RegExp)return o;const e=Array.isArray(o)?[]:{};return Object.keys(o).forEach(t=>{o[t]&&typeof o[t]=="object"?e[t]=La(o[t]):e[t]=o[t]}),e}function n6(o){if(!o||typeof o!="object")return o;const e=[o];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(KO.call(t,i)){const n=t[i];typeof n=="object"&&!Object.isFrozen(n)&&!Q8(n)&&e.push(n)}}return o}const KO=Object.prototype.hasOwnProperty;function qO(o,e){return $y(o,e,new Set)}function $y(o,e,t){if(ms(o))return o;const i=e(o);if(typeof i<"u")return i;if($O(o)){const n=[];for(const s of o)n.push($y(s,e,t));return n}if(Hn(o)){if(t.has(o))throw new Error("Cannot clone recursive data-structure");t.add(o);const n={};for(const s in o)KO.call(o,s)&&(n[s]=$y(o[s],e,t));return t.delete(o),n}return o}function Jr(o,e,t=!0){return Hn(o)?(Hn(e)&&Object.keys(e).forEach(i=>{i in o?t&&(Hn(o[i])&&Hn(e[i])?Jr(o[i],e[i],t):o[i]=e[i]):o[i]=e[i]}),o):e}function $s(o,e){if(o===e)return!0;if(o==null||e===null||e===void 0||typeof o!=typeof e||typeof o!="object"||Array.isArray(o)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(o)){if(o.length!==e.length)return!1;for(t=0;t"u"?this.defaultValue:e}compute(e,t,i){return i}}function we(o,e){return typeof o>"u"?e:o==="false"?!1:Boolean(o)}class Qe extends uh{constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return we(e,this.defaultValue)}}function jy(o,e,t,i){if(typeof o>"u")return e;let n=parseInt(o,10);return isNaN(n)?e:(n=Math.max(t,n),n=Math.min(i,n),n|0)}class Tt extends uh{constructor(e,t,i,n,s,r=void 0){typeof r<"u"&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=s),super(e,t,i,r),this.minimum=n,this.maximum=s}static clampedInt(e,t,i,n){return jy(e,t,i,n)}validate(e){return Tt.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class Ar extends uh{constructor(e,t,i,n,s){typeof s<"u"&&(s.type="number",s.default=i),super(e,t,i,s),this.validationFn=n}static clamp(e,t,i){return ei?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}validate(e){return this.validationFn(Ar.float(e,this.defaultValue))}}class Yn extends uh{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return Yn.string(e,this.defaultValue)}}function Ki(o,e,t){return typeof o!="string"||t.indexOf(o)===-1?e:o}class vi extends uh{constructor(e,t,i,n,s=void 0){typeof s<"u"&&(s.type="string",s.enum=n,s.default=i),super(e,t,i,s),this._allowedValues=n}validate(e){return Ki(e,this.defaultValue,this._allowedValues)}}class ff extends fi{constructor(e,t,i,n,s,r,a=void 0){typeof a<"u"&&(a.type="string",a.enum=s,a.default=n),super(e,t,i,a),this._allowedValues=s,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function s6(o){switch(o){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class o6 extends fi{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[p("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),p("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader. Word wrapping will be disabled."),p("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:p("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers. Setting to on will disable word wrapping.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class r6 extends fi{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(19,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:p("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:p("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:we(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:we(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function a6(o){switch(o){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var Hi;(function(o){o[o.Line=1]="Line",o[o.Block=2]="Block",o[o.Underline=3]="Underline",o[o.LineThin=4]="LineThin",o[o.BlockOutline=5]="BlockOutline",o[o.UnderlineThin=6]="UnderlineThin"})(Hi||(Hi={}));function l6(o){switch(o){case"line":return Hi.Line;case"block":return Hi.Block;case"underline":return Hi.Underline;case"line-thin":return Hi.LineThin;case"block-outline":return Hi.BlockOutline;case"underline-thin":return Hi.UnderlineThin}}class c6 extends Vg{constructor(){super(130)}compute(e,t,i){const n=["monaco-editor"];return t.get(35)&&n.push(t.get(35)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(68)==="default"?n.push("mouse-default"):t.get(68)==="copy"&&n.push("mouse-copy"),t.get(102)&&n.push("showUnused"),t.get(128)&&n.push("showDeprecated"),n.join(" ")}}class d6 extends Qe{constructor(){super(33,"emptySelectionClipboard",!0,{description:p("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class h6 extends fi{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(37,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:p("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[p("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),p("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),p("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:p("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[p("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),p("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),p("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:p("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:p("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:Ge},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:p("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:p("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:we(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":Ki(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":Ki(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:we(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:we(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:we(t.loop,this.defaultValue.loop)}}}class _s extends fi{constructor(){super(47,"fontLigatures",_s.OFF,{anyOf:[{type:"boolean",description:p("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:p("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:p("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?_s.OFF:e==="true"?_s.ON:e:Boolean(e)?_s.ON:_s.OFF}}_s.OFF='"liga" off, "calt" off';_s.ON='"liga" on, "calt" on';class u6 extends Vg{constructor(){super(46)}compute(e,t,i){return e.fontInfo}}class g6 extends uh{constructor(){super(48,"fontSize",ts.fontSize,{type:"number",minimum:6,maximum:100,default:ts.fontSize,description:p("fontSize","Controls the font size in pixels.")})}validate(e){const t=Ar.float(e,this.defaultValue);return t===0?ts.fontSize:Ar.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class kr extends fi{constructor(){super(49,"fontWeight",ts.fontWeight,{anyOf:[{type:"number",minimum:kr.MINIMUM_VALUE,maximum:kr.MAXIMUM_VALUE,errorMessage:p("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:kr.SUGGESTION_VALUES}],default:ts.fontWeight,description:p("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(Tt.clampedInt(e,ts.fontWeight,kr.MINIMUM_VALUE,kr.MAXIMUM_VALUE))}}kr.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];kr.MINIMUM_VALUE=1;kr.MAXIMUM_VALUE=1e3;class f6 extends fi{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[p("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),p("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),p("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(53,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:p("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:p("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:p("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:p("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:p("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:p("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:p("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:p("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:p("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:p("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:p("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,s,r;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:Ki(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:Ki(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:Ki(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(n=a.multipleDeclarations)!==null&&n!==void 0?n:Ki(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(s=a.multipleImplementations)!==null&&s!==void 0?s:Ki(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(r=a.multipleReferences)!==null&&r!==void 0?r:Ki(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:Yn.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:Yn.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:Yn.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:Yn.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:Yn.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class p6 extends fi{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(55,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:p("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:p("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:p("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:p("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),delay:Tt.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:we(t.sticky,this.defaultValue.sticky),above:we(t.above,this.defaultValue.above)}}}class Eu extends Vg{constructor(){super(133)}compute(e,t,i){return Eu.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=e.scrollBeyondLastLine?t-1:0,n=(e.viewLineCount+i)/(e.pixelRatio*e.height),s=Math.floor(e.viewLineCount/n);return{typicalViewportLineCount:t,extraLinesBeyondLastLine:i,desiredRatio:n,minimapLineCount:s}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,s=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(s*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,d=e.scrollBeyondLastLine,h=e.minimap.renderCharacters;let u=s>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const g=e.minimap.maxColumn,f=e.minimap.size,_=e.minimap.side,b=e.verticalScrollbarWidth,v=e.viewLineCount,C=e.remainingWidth,w=e.isViewportWrapping,S=h?2:3;let k=Math.floor(s*n);const x=k/s;let y=!1,D=!1,I=S*u,O=u/s,F=1;if(f==="fill"||f==="fit"){const{typicalViewportLineCount:xe,extraLinesBeyondLastLine:He,desiredRatio:Mt,minimapLineCount:yt}=Eu.computeContainedMinimapLineCount({viewLineCount:v,scrollBeyondLastLine:d,height:n,lineHeight:l,pixelRatio:s});if(v/yt>1)y=!0,D=!0,u=1,I=1,O=u/s;else{let me=!1,Nt=u+1;if(f==="fit"){const Fi=Math.ceil((v+He)*I);w&&a&&C<=t.stableFitRemainingWidth?(me=!0,Nt=t.stableFitMaxMinimapScale):me=Fi>k}if(f==="fill"||me){y=!0;const Fi=u;I=Math.min(l*s,Math.max(1,Math.floor(1/Mt))),w&&a&&C<=t.stableFitRemainingWidth&&(Nt=t.stableFitMaxMinimapScale),u=Math.min(Nt,Math.max(1,Math.floor(I/S))),u>Fi&&(F=Math.min(2,u/Fi)),O=u/s/F,k=Math.ceil(Math.max(xe,v+He)*I),w?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=C,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const z=Math.floor(g*O),j=Math.min(z,Math.max(0,Math.floor((C-b-2)*O/(c+O)))+wl);let re=Math.floor(s*j);const he=re/s;re=Math.floor(re*F);const Se=h?1:2,ye=_==="left"?0:i-j-b;return{renderMinimap:Se,minimapLeft:ye,minimapWidth:j,minimapHeightIsEditorHeight:y,minimapIsSampling:D,minimapScale:u,minimapLineHeight:I,minimapCanvasInnerWidth:re,minimapCanvasInnerHeight:k,minimapCanvasOuterWidth:he,minimapCanvasOuterHeight:x}}static computeLayout(e,t){const i=t.outerWidth|0,n=t.outerHeight|0,s=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,c=t.pixelRatio,d=t.viewLineCount,h=e.get(125),u=h==="inherit"?e.get(124):h,g=u==="inherit"?e.get(120):u,f=e.get(123),_=e.get(2),b=t.isDominatedByLongLines,v=e.get(52),C=e.get(62).renderType!==0,w=e.get(63),S=e.get(96),k=e.get(67),x=e.get(94),y=x.verticalScrollbarSize,D=x.verticalHasArrows,I=x.arrowSize,O=x.horizontalScrollbarSize,F=e.get(60),z=e.get(39),j=e.get(101)!=="never";let re;if(typeof F=="string"&&/^\d+(\.\d+)?ch$/.test(F)){const xo=parseFloat(F.substr(0,F.length-2));re=Tt.clampedInt(xo*a,0,0,1e3)}else re=Tt.clampedInt(F,0,0,1e3);z&&j&&(re+=16);let he=0;if(C){const xo=Math.max(r,w);he=Math.round(xo*l)}let Se=0;v&&(Se=s);let ye=0,xe=ye+Se,He=xe+he,Mt=He+re;const yt=i-Se-he-re;let ve=!1,me=!1,Nt=-1;_!==2&&(u==="inherit"&&b?(ve=!0,me=!0):g==="on"||g==="bounded"?me=!0:g==="wordWrapColumn"&&(Nt=f));const Fi=Eu._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:s,typicalHalfwidthCharacterWidth:a,pixelRatio:c,scrollBeyondLastLine:S,minimap:k,verticalScrollbarWidth:y,viewLineCount:d,remainingWidth:yt,isViewportWrapping:me},t.memory||new ZO);Fi.renderMinimap!==0&&Fi.minimapLeft===0&&(ye+=Fi.minimapWidth,xe+=Fi.minimapWidth,He+=Fi.minimapWidth,Mt+=Fi.minimapWidth);const In=yt-Fi.minimapWidth,ko=Math.max(1,Math.floor((In-y-2)/a)),oa=D?I:0;return me&&(Nt=Math.max(1,ko),g==="bounded"&&(Nt=Math.min(Nt,f))),{width:i,height:n,glyphMarginLeft:ye,glyphMarginWidth:Se,lineNumbersLeft:xe,lineNumbersWidth:he,decorationsLeft:He,decorationsWidth:re,contentLeft:Mt,contentWidth:In,minimap:Fi,viewportColumn:ko,isWordWrapMinified:ve,isViewportWrapping:me,wrappingColumn:Nt,verticalScrollbarWidth:y,horizontalScrollbarHeight:O,overviewRuler:{top:oa,width:y,height:n-2*oa,right:0}}}}class m6 extends fi{constructor(){const e={enabled:!0};super(59,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:p("codeActions","Enables the code action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:we(e.enabled,this.defaultValue.enabled)}}}class _6 extends fi{constructor(){const e={stickyScroll:{enabled:!1}};super(34,"experimental",e,{"editor.experimental.stickyScroll.enabled":{type:"boolean",default:e.stickyScroll.enabled,description:p("editor.experimental.stickyScroll","Shows the nested current scopes during the scroll at the top of the editor.")}})}validate(e){var t;return!e||typeof e!="object"?this.defaultValue:{stickyScroll:{enabled:we((t=e.stickyScroll)===null||t===void 0?void 0:t.enabled,this.defaultValue.stickyScroll.enabled)}}}}class b6 extends fi{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(129,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:p("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[p("editor.inlayHints.on","Inlay hints are enabled"),p("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding `Ctrl+Alt`"),p("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding `Ctrl+Alt`"),p("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:p("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:p("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:p("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return typeof t.enabled=="boolean"&&(t.enabled=t.enabled?"on":"off"),{enabled:Ki(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:Tt.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:Yn.string(t.fontFamily,this.defaultValue.fontFamily),padding:we(t.padding,this.defaultValue.padding)}}}class v6 extends Ar{constructor(){super(61,"lineHeight",ts.lineHeight,e=>Ar.clamp(e,0,150),{markdownDescription:p("lineHeight",`Controls the line height. - Use 0 to automatically compute the line height from the font size. - Values between 0 and 8 will be used as a multiplier with the font size. - Values greater than or equal to 8 will be used as effective values.`)})}compute(e,t,i){return e.fontInfo.lineHeight}}class C6 extends fi{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1};super(67,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:p("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:p("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[p("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),p("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),p("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:p("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:p("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:p("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:p("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:p("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:p("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),autohide:we(t.autohide,this.defaultValue.autohide),size:Ki(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:Ki(t.side,this.defaultValue.side,["right","left"]),showSlider:Ki(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:we(t.renderCharacters,this.defaultValue.renderCharacters),scale:Tt.clampedInt(t.scale,1,1,3),maxColumn:Tt.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}function w6(o){return o==="ctrlCmd"?Ge?"metaKey":"ctrlKey":"altKey"}class S6 extends fi{constructor(){super(77,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:p("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:p("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{top:Tt.clampedInt(t.top,0,0,1e3),bottom:Tt.clampedInt(t.bottom,0,0,1e3)}}}class y6 extends fi{constructor(){const e={enabled:!0,cycle:!1};super(78,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:p("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:p("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),cycle:we(t.cycle,this.defaultValue.cycle)}}}class L6 extends Vg{constructor(){super(131)}compute(e,t,i){return e.pixelRatio}}class D6 extends fi{constructor(){const e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[p("on","Quick suggestions show inside the suggest widget"),p("inline","Quick suggestions show as ghost text"),p("off","Quick suggestions are disabled")]}];super(81,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:p("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:p("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:p("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:p("quickSuggestions","Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the '{0}'-setting which controls if suggestions are triggered by special characters.","#editor.suggestOnTriggerCharacters#")}),this.defaultValue=e}validate(e){if(typeof e=="boolean"){const c=e?"on":"off";return{comments:c,strings:c,other:c}}if(!e||typeof e!="object")return this.defaultValue;const{other:t,comments:i,strings:n}=e,s=["on","inline","off"];let r,a,l;return typeof t=="boolean"?r=t?"on":"off":r=Ki(t,this.defaultValue.other,s),typeof i=="boolean"?a=i?"on":"off":a=Ki(i,this.defaultValue.comments,s),typeof n=="boolean"?l=n?"on":"off":l=Ki(n,this.defaultValue.strings,s),{other:r,comments:a,strings:l}}}class k6 extends fi{constructor(){super(62,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[p("lineNumbers.off","Line numbers are not rendered."),p("lineNumbers.on","Line numbers are rendered as absolute number."),p("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),p("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:p("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return typeof e<"u"&&(typeof e=="function"?(t=4,i=e):e==="interval"?t=3:e==="relative"?t=2:e==="on"?t=1:t=0),{renderType:t,renderFn:i}}}function q0(o){const e=o.get(89);return e==="editable"?o.get(83):e!=="on"}class x6 extends fi{constructor(){const e=[],t={type:"number",description:p("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(93,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:p("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:p("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const t=[];for(const i of e)if(typeof i=="number")t.push({column:Tt.clampedInt(i,0,0,1e4),color:null});else if(i&&typeof i=="object"){const n=i;t.push({column:Tt.clampedInt(n.column,0,0,1e4),color:n.color})}return t.sort((i,n)=>i.column-n.column),t}return this.defaultValue}}function NT(o,e){if(typeof o!="string")return e;switch(o){case"hidden":return 2;case"visible":return 3;default:return 1}}class I6 extends fi{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1};super(94,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[p("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),p("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),p("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:p("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[p("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),p("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),p("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:p("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:p("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:p("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:p("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e,i=Tt.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),n=Tt.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:Tt.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:NT(t.vertical,this.defaultValue.vertical),horizontal:NT(t.horizontal,this.defaultValue.horizontal),useShadows:we(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:we(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:we(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:we(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:we(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:Tt.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:n,verticalSliderSize:Tt.clampedInt(t.verticalSliderSize,n,0,1e3),scrollByPage:we(t.scrollByPage,this.defaultValue.scrollByPage)}}}const gs="inUntrustedWorkspace",On={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};class E6 extends fi{constructor(){const e={nonBasicASCII:gs,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:gs,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(115,"unicodeHighlight",e,{[On.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,gs],default:e.nonBasicASCII,description:p("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[On.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:p("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[On.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:p("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[On.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,gs],default:e.includeComments,description:p("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to unicode highlighting.")},[On.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,gs],default:e.includeStrings,description:p("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to unicode highlighting.")},[On.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:p("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[On.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:p("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let i=!1;t.allowedCharacters&&e&&($s(e.allowedCharacters,t.allowedCharacters)||(e=Object.assign(Object.assign({},e),{allowedCharacters:t.allowedCharacters}),i=!0)),t.allowedLocales&&e&&($s(e.allowedLocales,t.allowedLocales)||(e=Object.assign(Object.assign({},e),{allowedLocales:t.allowedLocales}),i=!0));const n=super.applyUpdate(e,t);return i?new rp(n.newValue,!0):n}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{nonBasicASCII:Nu(t.nonBasicASCII,gs,[!0,!1,gs]),invisibleCharacters:we(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:we(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:Nu(t.includeComments,gs,[!0,!1,gs]),includeStrings:Nu(t.includeStrings,gs,[!0,!1,gs]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,t){if(typeof e!="object"||!e)return t;const i={};for(const[n,s]of Object.entries(e))s===!0&&(i[n]=!0);return i}}class N6 extends fi{constructor(){const e={enabled:!0,mode:"subwordSmart"};super(57,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:p("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),mode:Ki(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"])}}}class T6 extends fi{constructor(){const e={enabled:sn.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:sn.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(12,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:p("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:p("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:we(t.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class A6 extends fi{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(13,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[p("editor.guides.bracketPairs.true","Enables bracket pair guides."),p("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),p("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:p("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[p("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),p("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),p("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:p("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:p("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:p("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[p("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),p("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),p("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:p("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{bracketPairs:Nu(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:Nu(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:we(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:we(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:Nu(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function Nu(o,e,t){const i=t.indexOf(o);return i===-1?e:t[i]}class M6 extends fi{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(108,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[p("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),p("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:p("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:p("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:p("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:p("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:p("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:p("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:p("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:p("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:p("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:p("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:p("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertMode:Ki(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:we(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:we(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:we(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:we(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),showIcons:we(t.showIcons,this.defaultValue.showIcons),showStatusBar:we(t.showStatusBar,this.defaultValue.showStatusBar),preview:we(t.preview,this.defaultValue.preview),previewMode:Ki(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:we(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:we(t.showMethods,this.defaultValue.showMethods),showFunctions:we(t.showFunctions,this.defaultValue.showFunctions),showConstructors:we(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:we(t.showDeprecated,this.defaultValue.showDeprecated),showFields:we(t.showFields,this.defaultValue.showFields),showVariables:we(t.showVariables,this.defaultValue.showVariables),showClasses:we(t.showClasses,this.defaultValue.showClasses),showStructs:we(t.showStructs,this.defaultValue.showStructs),showInterfaces:we(t.showInterfaces,this.defaultValue.showInterfaces),showModules:we(t.showModules,this.defaultValue.showModules),showProperties:we(t.showProperties,this.defaultValue.showProperties),showEvents:we(t.showEvents,this.defaultValue.showEvents),showOperators:we(t.showOperators,this.defaultValue.showOperators),showUnits:we(t.showUnits,this.defaultValue.showUnits),showValues:we(t.showValues,this.defaultValue.showValues),showConstants:we(t.showConstants,this.defaultValue.showConstants),showEnums:we(t.showEnums,this.defaultValue.showEnums),showEnumMembers:we(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:we(t.showKeywords,this.defaultValue.showKeywords),showWords:we(t.showWords,this.defaultValue.showWords),showColors:we(t.showColors,this.defaultValue.showColors),showFiles:we(t.showFiles,this.defaultValue.showFiles),showReferences:we(t.showReferences,this.defaultValue.showReferences),showFolders:we(t.showFolders,this.defaultValue.showFolders),showTypeParameters:we(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:we(t.showSnippets,this.defaultValue.showSnippets),showUsers:we(t.showUsers,this.defaultValue.showUsers),showIssues:we(t.showIssues,this.defaultValue.showIssues)}}}class R6 extends fi{constructor(){super(104,"smartSelect",{selectLeadingAndTrailingWhitespace:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:p("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:we(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace)}}}class O6 extends Vg{constructor(){super(132)}compute(e,t,i){return t.get(83)?!0:e.tabFocusMode}}function P6(o){switch(o){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}}class F6 extends Vg{constructor(){super(134)}compute(e,t,i){const n=t.get(133);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:n.isWordWrapMinified,isViewportWrapping:n.isViewportWrapping,wrappingColumn:n.wrappingColumn}}}class B6 extends fi{constructor(){const e={enabled:!0};super(32,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:p("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down `shift` (instead of opening the file in an editor).")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:we(e.enabled,this.defaultValue.enabled)}}}const W6="Consolas, 'Courier New', monospace",V6="Menlo, Monaco, 'Courier New', monospace",H6="'Droid Sans Mono', 'monospace', monospace",ts={fontFamily:Ge?V6:dn?H6:W6,fontWeight:"normal",fontSize:Ge?12:14,lineHeight:0,letterSpacing:0},ru=[];function te(o){return ru[o.id]=o,o}const nr={acceptSuggestionOnCommitCharacter:te(new Qe(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:p("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`; `) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:te(new vi(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",p("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:p("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:te(new o6),accessibilityPageSize:te(new Tt(3,"accessibilityPageSize",10,1,1073741824,{description:p("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default.")})),ariaLabel:te(new Yn(4,"ariaLabel",p("editorViewAccessibleLabel","Editor content"))),autoClosingBrackets:te(new vi(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",p("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),p("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:p("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingDelete:te(new vi(6,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",p("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:p("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:te(new vi(7,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",p("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:p("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:te(new vi(8,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",p("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),p("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:p("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:te(new ff(9,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],s6,{enumDescriptions:[p("editor.autoIndent.none","The editor will not insert indentation automatically."),p("editor.autoIndent.keep","The editor will keep the current line's indentation."),p("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),p("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),p("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:p("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:te(new Qe(10,"automaticLayout",!1)),autoSurround:te(new vi(11,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[p("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),p("editor.autoSurround.quotes","Surround with quotes but not brackets."),p("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:p("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:te(new T6),bracketPairGuides:te(new A6),stickyTabStops:te(new Qe(106,"stickyTabStops",!1,{description:p("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:te(new Qe(14,"codeLens",!0,{description:p("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:te(new Yn(15,"codeLensFontFamily","",{description:p("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:te(new Tt(16,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:p("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to `0`, 90% of `#editor.fontSize#` is used.")})),colorDecorators:te(new Qe(17,"colorDecorators",!0,{description:p("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),columnSelection:te(new Qe(18,"columnSelection",!1,{description:p("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:te(new r6),contextmenu:te(new Qe(20,"contextmenu",!0)),copyWithSyntaxHighlighting:te(new Qe(21,"copyWithSyntaxHighlighting",!0,{description:p("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:te(new ff(22,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],a6,{description:p("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:te(new Qe(23,"cursorSmoothCaretAnimation",!1,{description:p("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:te(new ff(24,"cursorStyle",Hi.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],l6,{description:p("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:te(new Tt(25,"cursorSurroundingLines",0,0,1073741824,{description:p("cursorSurroundingLines","Controls the minimal number of visible leading and trailing lines surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:te(new vi(26,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[p("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),p("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:p("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:te(new Tt(27,"cursorWidth",0,0,1073741824,{markdownDescription:p("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:te(new Qe(28,"disableLayerHinting",!1)),disableMonospaceOptimizations:te(new Qe(29,"disableMonospaceOptimizations",!1)),domReadOnly:te(new Qe(30,"domReadOnly",!1)),dragAndDrop:te(new Qe(31,"dragAndDrop",!0,{description:p("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:te(new d6),dropIntoEditor:te(new B6),experimental:te(new _6),extraEditorClassName:te(new Yn(35,"extraEditorClassName","")),fastScrollSensitivity:te(new Ar(36,"fastScrollSensitivity",5,o=>o<=0?5:o,{markdownDescription:p("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:te(new h6),fixedOverflowWidgets:te(new Qe(38,"fixedOverflowWidgets",!1)),folding:te(new Qe(39,"folding",!0,{description:p("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:te(new vi(40,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[p("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),p("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:p("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:te(new Qe(41,"foldingHighlight",!0,{description:p("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:te(new Qe(42,"foldingImportsByDefault",!1,{description:p("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:te(new Tt(43,"foldingMaximumRegions",5e3,10,65e3,{description:p("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:te(new Qe(44,"unfoldOnClickAfterEndOfLine",!1,{description:p("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:te(new Yn(45,"fontFamily",ts.fontFamily,{description:p("fontFamily","Controls the font family.")})),fontInfo:te(new u6),fontLigatures2:te(new _s),fontSize:te(new g6),fontWeight:te(new kr),formatOnPaste:te(new Qe(50,"formatOnPaste",!1,{description:p("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:te(new Qe(51,"formatOnType",!1,{description:p("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:te(new Qe(52,"glyphMargin",!0,{description:p("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:te(new f6),hideCursorInOverviewRuler:te(new Qe(54,"hideCursorInOverviewRuler",!1,{description:p("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:te(new p6),inDiffEditor:te(new Qe(56,"inDiffEditor",!1)),letterSpacing:te(new Ar(58,"letterSpacing",ts.letterSpacing,o=>Ar.clamp(o,-5,20),{description:p("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:te(new m6),lineDecorationsWidth:te(new uh(60,"lineDecorationsWidth",10)),lineHeight:te(new v6),lineNumbers:te(new k6),lineNumbersMinChars:te(new Tt(63,"lineNumbersMinChars",5,1,300)),linkedEditing:te(new Qe(64,"linkedEditing",!1,{description:p("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols, e.g. HTML tags, are updated while editing.")})),links:te(new Qe(65,"links",!0,{description:p("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:te(new vi(66,"matchBrackets","always",["always","near","never"],{description:p("matchBrackets","Highlight matching brackets.")})),minimap:te(new C6),mouseStyle:te(new vi(68,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:te(new Ar(69,"mouseWheelScrollSensitivity",1,o=>o===0?1:o,{markdownDescription:p("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:te(new Qe(70,"mouseWheelZoom",!1,{markdownDescription:p("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:te(new Qe(71,"multiCursorMergeOverlapping",!0,{description:p("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:te(new ff(72,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],w6,{markdownEnumDescriptions:[p("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),p("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:p({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:te(new vi(73,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[p("multiCursorPaste.spread","Each cursor pastes a single line of the text."),p("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:p("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),occurrencesHighlight:te(new Qe(74,"occurrencesHighlight",!0,{description:p("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:te(new Qe(75,"overviewRulerBorder",!0,{description:p("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:te(new Tt(76,"overviewRulerLanes",3,0,3)),padding:te(new S6),parameterHints:te(new y6),peekWidgetDefaultFocus:te(new vi(79,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[p("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),p("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:p("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:te(new Qe(80,"definitionLinkOpensInPeek",!1,{description:p("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:te(new D6),quickSuggestionsDelay:te(new Tt(82,"quickSuggestionsDelay",10,0,1073741824,{description:p("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:te(new Qe(83,"readOnly",!1)),renameOnType:te(new Qe(84,"renameOnType",!1,{description:p("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:p("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:te(new Qe(85,"renderControlCharacters",!0,{description:p("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:te(new Qe(86,"renderFinalNewline",!0,{description:p("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:te(new vi(87,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",p("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:p("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:te(new Qe(88,"renderLineHighlightOnlyWhenFocus",!1,{description:p("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:te(new vi(89,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:te(new vi(90,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",p("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),p("renderWhitespace.selection","Render whitespace characters only on selected text."),p("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:p("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:te(new Tt(91,"revealHorizontalRightPadding",30,0,1e3)),roundedSelection:te(new Qe(92,"roundedSelection",!0,{description:p("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:te(new x6),scrollbar:te(new I6),scrollBeyondLastColumn:te(new Tt(95,"scrollBeyondLastColumn",4,0,1073741824,{description:p("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:te(new Qe(96,"scrollBeyondLastLine",!0,{description:p("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:te(new Qe(97,"scrollPredominantAxis",!0,{description:p("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:te(new Qe(98,"selectionClipboard",!0,{description:p("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:dn})),selectionHighlight:te(new Qe(99,"selectionHighlight",!0,{description:p("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:te(new Qe(100,"selectOnLineNumbers",!0)),showFoldingControls:te(new vi(101,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[p("showFoldingControls.always","Always show the folding controls."),p("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),p("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:p("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:te(new Qe(102,"showUnused",!0,{description:p("showUnused","Controls fading out of unused code.")})),showDeprecated:te(new Qe(128,"showDeprecated",!0,{description:p("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:te(new b6),snippetSuggestions:te(new vi(103,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[p("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),p("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),p("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),p("snippetSuggestions.none","Do not show snippet suggestions.")],description:p("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:te(new R6),smoothScrolling:te(new Qe(105,"smoothScrolling",!1,{description:p("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:te(new Tt(107,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:te(new M6),inlineSuggest:te(new N6),suggestFontSize:te(new Tt(109,"suggestFontSize",0,0,1e3,{markdownDescription:p("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:te(new Tt(110,"suggestLineHeight",0,0,1e3,{markdownDescription:p("suggestLineHeight","Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:te(new Qe(111,"suggestOnTriggerCharacters",!0,{description:p("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:te(new vi(112,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[p("suggestSelection.first","Always select the first suggestion."),p("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),p("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:p("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:te(new vi(113,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[p("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),p("tabCompletion.off","Disable tab completions."),p("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:p("tabCompletion","Enables tab completions.")})),tabIndex:te(new Tt(114,"tabIndex",0,-1,1073741824)),unicodeHighlight:te(new E6),unusualLineTerminators:te(new vi(116,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[p("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),p("unusualLineTerminators.off","Unusual line terminators are ignored."),p("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:p("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:te(new Qe(117,"useShadowDOM",!0)),useTabStops:te(new Qe(118,"useTabStops",!0,{description:p("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordSeparators:te(new Yn(119,"wordSeparators",OO,{description:p("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:te(new vi(120,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[p("wordWrap.off","Lines will never wrap."),p("wordWrap.on","Lines will wrap at the viewport width."),p({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),p({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:p({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:te(new Yn(121,"wordWrapBreakAfterCharacters"," })]?|/&.,;\xA2\xB0\u2032\u2033\u2030\u2103\u3001\u3002\uFF61\uFF64\uFFE0\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF01\uFF05\u30FB\uFF65\u309D\u309E\u30FD\u30FE\u30FC\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u31F0\u31F1\u31F2\u31F3\u31F4\u31F5\u31F6\u31F7\u31F8\u31F9\u31FA\u31FB\u31FC\u31FD\u31FE\u31FF\u3005\u303B\uFF67\uFF68\uFF69\uFF6A\uFF6B\uFF6C\uFF6D\uFF6E\uFF6F\uFF70\u201D\u3009\u300B\u300D\u300F\u3011\u3015\uFF09\uFF3D\uFF5D\uFF63")),wordWrapBreakBeforeCharacters:te(new Yn(122,"wordWrapBreakBeforeCharacters","([{\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\xA3\xA5\uFF04\uFFE1\uFFE5+\uFF0B")),wordWrapColumn:te(new Tt(123,"wordWrapColumn",80,1,1073741824,{markdownDescription:p({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:te(new vi(124,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:te(new vi(125,"wordWrapOverride2","inherit",["off","on","inherit"])),wrappingIndent:te(new ff(126,"wrappingIndent",1,"same",["none","same","indent","deepIndent"],P6,{enumDescriptions:[p("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),p("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),p("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),p("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:p("wrappingIndent","Controls the indentation of wrapped lines.")})),wrappingStrategy:te(new vi(127,"wrappingStrategy","simple",["simple","advanced"],{enumDescriptions:[p("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),p("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],description:p("wrappingStrategy","Controls the algorithm that computes wrapping points.")})),editorClassName:te(new c6),pixelRatio:te(new L6),tabFocusMode:te(new O6),layoutInfo:te(new Eu),wrappingInfo:te(new F6)};class z6{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?Xu.isErrorNoTelemetry(e)?new Xu(e.message+` @@ -608,27 +608,27 @@ ${e.toString()}`}}class xN{constructor(e=new k1,t=!1,i){this._activeInstantiatio * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var Fte=Object.defineProperty,Bte=Object.getOwnPropertyDescriptor,Wte=Object.getOwnPropertyNames,Vte=Object.prototype.hasOwnProperty,sR=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Wte(e))!Vte.call(o,n)&&n!==t&&Fte(o,n,{get:()=>e[n],enumerable:!(i=Bte(e,n))||i.enumerable});return o},Hte=(o,e,t)=>(sR(o,e,"default"),t&&sR(t,e,"default")),tp={};Hte(tp,D_);var N3={},ny={},T3=class{constructor(o){qt(this,"_languageId");qt(this,"_loadingTriggered");qt(this,"_lazyLoadPromise");qt(this,"_lazyLoadPromiseResolve");qt(this,"_lazyLoadPromiseReject");this._languageId=o,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t})}static getOrCreate(o){return ny[o]||(ny[o]=new T3(o)),ny[o]}load(){return this._loadingTriggered||(this._loadingTriggered=!0,N3[this._languageId].loader().then(o=>this._lazyLoadPromiseResolve(o),o=>this._lazyLoadPromiseReject(o))),this._lazyLoadPromise}};function pe(o){const e=o.id;N3[e]=o,tp.languages.register(o);const t=T3.getOrCreate(e);tp.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),tp.languages.onLanguage(e,async()=>{const i=await t.load();tp.languages.setLanguageConfiguration(e,i.conf)})}pe({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>ue(()=>import("./abap.15cc56c3.js"),[])});pe({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>ue(()=>import("./apex.3097bfba.js"),[])});pe({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>ue(()=>import("./azcli.b70fb9b3.js"),[])});pe({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>ue(()=>import("./bat.4e83862e.js"),[])});pe({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>ue(()=>import("./bicep.107c4876.js"),[])});pe({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>ue(()=>import("./cameligo.9b7ef084.js"),[])});pe({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>ue(()=>import("./clojure.9b9ce362.js"),[])});pe({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>ue(()=>import("./coffee.3343db4b.js"),[])});pe({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>ue(()=>import("./cpp.5842f29e.js"),[])});pe({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>ue(()=>import("./cpp.5842f29e.js"),[])});pe({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>ue(()=>import("./csharp.711e6ef5.js"),[])});pe({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>ue(()=>import("./csp.1454e635.js"),[])});pe({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>ue(()=>import("./css.0f39058b.js"),[])});pe({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>ue(()=>import("./cypher.8b877bda.js"),[])});pe({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>ue(()=>import("./dart.d9ca4827.js"),[])});pe({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>ue(()=>import("./dockerfile.b12c8d75.js"),[])});pe({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>ue(()=>import("./ecl.5841a83e.js"),[])});pe({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>ue(()=>import("./elixir.837d31f3.js"),[])});pe({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>ue(()=>import("./flow9.02cb4afd.js"),[])});pe({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>ue(()=>import("./fsharp.c6cc3d99.js"),[])});pe({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>ue(()=>import("./freemarker2.e187740c.js"),["assets/freemarker2.e187740c.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css"]).then(o=>o.TagAutoInterpolationDollar)});pe({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>ue(()=>import("./freemarker2.e187740c.js"),["assets/freemarker2.e187740c.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css"]).then(o=>o.TagAngleInterpolationDollar)});pe({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>ue(()=>import("./freemarker2.e187740c.js"),["assets/freemarker2.e187740c.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css"]).then(o=>o.TagBracketInterpolationDollar)});pe({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>ue(()=>import("./freemarker2.e187740c.js"),["assets/freemarker2.e187740c.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css"]).then(o=>o.TagAngleInterpolationBracket)});pe({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>ue(()=>import("./freemarker2.e187740c.js"),["assets/freemarker2.e187740c.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css"]).then(o=>o.TagBracketInterpolationBracket)});pe({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>ue(()=>import("./freemarker2.e187740c.js"),["assets/freemarker2.e187740c.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css"]).then(o=>o.TagAutoInterpolationDollar)});pe({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>ue(()=>import("./freemarker2.e187740c.js"),["assets/freemarker2.e187740c.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css"]).then(o=>o.TagAutoInterpolationBracket)});pe({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>ue(()=>import("./go.e18cc8fd.js"),[])});pe({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>ue(()=>import("./graphql.91865f29.js"),[])});pe({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>ue(()=>import("./handlebars.c84277e3.js"),["assets/handlebars.c84277e3.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css"])});pe({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>ue(()=>import("./hcl.89542f1d.js"),[])});pe({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>ue(()=>import("./html.4ba9e625.js"),["assets/html.4ba9e625.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css"])});pe({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>ue(()=>import("./ini.927d4958.js"),[])});pe({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>ue(()=>import("./java.cae92986.js"),[])});pe({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>ue(()=>import("./javascript.faa450b6.js"),["assets/javascript.faa450b6.js","assets/typescript.71d17c95.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css"])});pe({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>ue(()=>import("./julia.1ab2c6a6.js"),[])});pe({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>ue(()=>import("./kotlin.567012b4.js"),[])});pe({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>ue(()=>import("./less.8ff15de1.js"),[])});pe({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>ue(()=>import("./lexon.892ac9e8.js"),[])});pe({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>ue(()=>import("./lua.84919ba3.js"),[])});pe({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>ue(()=>import("./liquid.daa84413.js"),["assets/liquid.daa84413.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css"])});pe({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>ue(()=>import("./m3.dbd6d890.js"),[])});pe({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>ue(()=>import("./markdown.0bd269fb.js"),[])});pe({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>ue(()=>import("./mips.5b57214f.js"),[])});pe({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>ue(()=>import("./msdax.664f04d4.js"),[])});pe({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>ue(()=>import("./mysql.b3be80b5.js"),[])});pe({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>ue(()=>import("./objective-c.f61689b5.js"),[])});pe({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>ue(()=>import("./pascal.63810ab2.js"),[])});pe({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>ue(()=>import("./pascaligo.f3c373fd.js"),[])});pe({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:()=>ue(()=>import("./perl.7a13b920.js"),[])});pe({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>ue(()=>import("./pgsql.231377e2.js"),[])});pe({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>ue(()=>import("./php.f75fab85.js"),[])});pe({id:"pla",extensions:[".pla"],loader:()=>ue(()=>import("./pla.53add393.js"),[])});pe({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>ue(()=>import("./postiats.b78836c4.js"),[])});pe({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>ue(()=>import("./powerquery.40e0a8e5.js"),[])});pe({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>ue(()=>import("./powershell.b2dc53b1.js"),[])});pe({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>ue(()=>import("./protobuf.bce7ad87.js"),[])});pe({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>ue(()=>import("./pug.e7bd8f2e.js"),[])});pe({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>ue(()=>import("./python.cbb8b35a.js"),["assets/python.cbb8b35a.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css"])});pe({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>ue(()=>import("./qsharp.9d22faff.js"),[])});pe({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>ue(()=>import("./r.77bb7e19.js"),[])});pe({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>ue(()=>import("./razor.10cd3c04.js"),["assets/razor.10cd3c04.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css"])});pe({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>ue(()=>import("./redis.d60fd379.js"),[])});pe({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>ue(()=>import("./redshift.3c32617e.js"),[])});pe({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>ue(()=>import("./restructuredtext.6d30740a.js"),[])});pe({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>ue(()=>import("./ruby.10c929d1.js"),[])});pe({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>ue(()=>import("./rust.abc56d3e.js"),[])});pe({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>ue(()=>import("./sb.4973b57f.js"),[])});pe({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>ue(()=>import("./scala.2026dee1.js"),[])});pe({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>ue(()=>import("./scheme.fe55144d.js"),[])});pe({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>ue(()=>import("./scss.4ba8f803.js"),[])});pe({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>ue(()=>import("./shell.2643570b.js"),[])});pe({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>ue(()=>import("./solidity.9a85e4e7.js"),[])});pe({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>ue(()=>import("./sophia.ae3e217e.js"),[])});pe({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>ue(()=>import("./sparql.6944fd44.js"),[])});pe({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>ue(()=>import("./sql.4f48b9c1.js"),[])});pe({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:()=>ue(()=>import("./st.7c961594.js"),[])});pe({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>ue(()=>import("./swift.23da7225.js"),[])});pe({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>ue(()=>import("./systemverilog.0eef8e45.js"),[])});pe({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>ue(()=>import("./systemverilog.0eef8e45.js"),[])});pe({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>ue(()=>import("./tcl.236460f4.js"),[])});pe({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>ue(()=>import("./twig.b70b7ae1.js"),[])});pe({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>ue(()=>import("./typescript.71d17c95.js"),["assets/typescript.71d17c95.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css"])});pe({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>ue(()=>import("./vb.5502a104.js"),[])});pe({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\ue(()=>import("./xml.67d02d73.js"),["assets/xml.67d02d73.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css"])});pe({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>ue(()=>import("./yaml.d30cc4b0.js"),["assets/yaml.d30cc4b0.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css"])});/*!----------------------------------------------------------------------------- + *-----------------------------------------------------------------------------*/var Fte=Object.defineProperty,Bte=Object.getOwnPropertyDescriptor,Wte=Object.getOwnPropertyNames,Vte=Object.prototype.hasOwnProperty,sR=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Wte(e))!Vte.call(o,n)&&n!==t&&Fte(o,n,{get:()=>e[n],enumerable:!(i=Bte(e,n))||i.enumerable});return o},Hte=(o,e,t)=>(sR(o,e,"default"),t&&sR(t,e,"default")),tp={};Hte(tp,D_);var N3={},ny={},T3=class{constructor(o){qt(this,"_languageId");qt(this,"_loadingTriggered");qt(this,"_lazyLoadPromise");qt(this,"_lazyLoadPromiseResolve");qt(this,"_lazyLoadPromiseReject");this._languageId=o,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t})}static getOrCreate(o){return ny[o]||(ny[o]=new T3(o)),ny[o]}load(){return this._loadingTriggered||(this._loadingTriggered=!0,N3[this._languageId].loader().then(o=>this._lazyLoadPromiseResolve(o),o=>this._lazyLoadPromiseReject(o))),this._lazyLoadPromise}};function pe(o){const e=o.id;N3[e]=o,tp.languages.register(o);const t=T3.getOrCreate(e);tp.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),tp.languages.onLanguage(e,async()=>{const i=await t.load();tp.languages.setLanguageConfiguration(e,i.conf)})}pe({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>ue(()=>import("./abap.15cc56c3.js"),[])});pe({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>ue(()=>import("./apex.3097bfba.js"),[])});pe({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>ue(()=>import("./azcli.b70fb9b3.js"),[])});pe({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>ue(()=>import("./bat.4e83862e.js"),[])});pe({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>ue(()=>import("./bicep.107c4876.js"),[])});pe({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>ue(()=>import("./cameligo.9b7ef084.js"),[])});pe({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>ue(()=>import("./clojure.9b9ce362.js"),[])});pe({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>ue(()=>import("./coffee.3343db4b.js"),[])});pe({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>ue(()=>import("./cpp.5842f29e.js"),[])});pe({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>ue(()=>import("./cpp.5842f29e.js"),[])});pe({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>ue(()=>import("./csharp.711e6ef5.js"),[])});pe({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>ue(()=>import("./csp.1454e635.js"),[])});pe({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>ue(()=>import("./css.0f39058b.js"),[])});pe({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>ue(()=>import("./cypher.8b877bda.js"),[])});pe({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>ue(()=>import("./dart.d9ca4827.js"),[])});pe({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>ue(()=>import("./dockerfile.b12c8d75.js"),[])});pe({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>ue(()=>import("./ecl.5841a83e.js"),[])});pe({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>ue(()=>import("./elixir.837d31f3.js"),[])});pe({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>ue(()=>import("./flow9.02cb4afd.js"),[])});pe({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>ue(()=>import("./fsharp.c6cc3d99.js"),[])});pe({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>ue(()=>import("./freemarker2.52d23530.js"),["assets/freemarker2.52d23530.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css"]).then(o=>o.TagAutoInterpolationDollar)});pe({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>ue(()=>import("./freemarker2.52d23530.js"),["assets/freemarker2.52d23530.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css"]).then(o=>o.TagAngleInterpolationDollar)});pe({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>ue(()=>import("./freemarker2.52d23530.js"),["assets/freemarker2.52d23530.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css"]).then(o=>o.TagBracketInterpolationDollar)});pe({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>ue(()=>import("./freemarker2.52d23530.js"),["assets/freemarker2.52d23530.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css"]).then(o=>o.TagAngleInterpolationBracket)});pe({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>ue(()=>import("./freemarker2.52d23530.js"),["assets/freemarker2.52d23530.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css"]).then(o=>o.TagBracketInterpolationBracket)});pe({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>ue(()=>import("./freemarker2.52d23530.js"),["assets/freemarker2.52d23530.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css"]).then(o=>o.TagAutoInterpolationDollar)});pe({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>ue(()=>import("./freemarker2.52d23530.js"),["assets/freemarker2.52d23530.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css"]).then(o=>o.TagAutoInterpolationBracket)});pe({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>ue(()=>import("./go.e18cc8fd.js"),[])});pe({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>ue(()=>import("./graphql.91865f29.js"),[])});pe({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>ue(()=>import("./handlebars.77e555cf.js"),["assets/handlebars.77e555cf.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css"])});pe({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>ue(()=>import("./hcl.89542f1d.js"),[])});pe({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>ue(()=>import("./html.e9b85501.js"),["assets/html.e9b85501.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css"])});pe({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>ue(()=>import("./ini.927d4958.js"),[])});pe({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>ue(()=>import("./java.cae92986.js"),[])});pe({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>ue(()=>import("./javascript.15f651ca.js"),["assets/javascript.15f651ca.js","assets/typescript.b253befb.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css"])});pe({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>ue(()=>import("./julia.1ab2c6a6.js"),[])});pe({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>ue(()=>import("./kotlin.567012b4.js"),[])});pe({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>ue(()=>import("./less.8ff15de1.js"),[])});pe({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>ue(()=>import("./lexon.892ac9e8.js"),[])});pe({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>ue(()=>import("./lua.84919ba3.js"),[])});pe({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>ue(()=>import("./liquid.7ed43a30.js"),["assets/liquid.7ed43a30.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css"])});pe({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>ue(()=>import("./m3.dbd6d890.js"),[])});pe({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>ue(()=>import("./markdown.0bd269fb.js"),[])});pe({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>ue(()=>import("./mips.5b57214f.js"),[])});pe({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>ue(()=>import("./msdax.664f04d4.js"),[])});pe({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>ue(()=>import("./mysql.b3be80b5.js"),[])});pe({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>ue(()=>import("./objective-c.f61689b5.js"),[])});pe({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>ue(()=>import("./pascal.63810ab2.js"),[])});pe({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>ue(()=>import("./pascaligo.f3c373fd.js"),[])});pe({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:()=>ue(()=>import("./perl.7a13b920.js"),[])});pe({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>ue(()=>import("./pgsql.231377e2.js"),[])});pe({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>ue(()=>import("./php.f75fab85.js"),[])});pe({id:"pla",extensions:[".pla"],loader:()=>ue(()=>import("./pla.53add393.js"),[])});pe({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>ue(()=>import("./postiats.b78836c4.js"),[])});pe({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>ue(()=>import("./powerquery.40e0a8e5.js"),[])});pe({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>ue(()=>import("./powershell.b2dc53b1.js"),[])});pe({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>ue(()=>import("./protobuf.bce7ad87.js"),[])});pe({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>ue(()=>import("./pug.e7bd8f2e.js"),[])});pe({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>ue(()=>import("./python.621b12c7.js"),["assets/python.621b12c7.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css"])});pe({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>ue(()=>import("./qsharp.9d22faff.js"),[])});pe({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>ue(()=>import("./r.77bb7e19.js"),[])});pe({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>ue(()=>import("./razor.0216e359.js"),["assets/razor.0216e359.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css"])});pe({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>ue(()=>import("./redis.d60fd379.js"),[])});pe({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>ue(()=>import("./redshift.3c32617e.js"),[])});pe({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>ue(()=>import("./restructuredtext.6d30740a.js"),[])});pe({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>ue(()=>import("./ruby.10c929d1.js"),[])});pe({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>ue(()=>import("./rust.abc56d3e.js"),[])});pe({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>ue(()=>import("./sb.4973b57f.js"),[])});pe({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>ue(()=>import("./scala.2026dee1.js"),[])});pe({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>ue(()=>import("./scheme.fe55144d.js"),[])});pe({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>ue(()=>import("./scss.4ba8f803.js"),[])});pe({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>ue(()=>import("./shell.2643570b.js"),[])});pe({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>ue(()=>import("./solidity.9a85e4e7.js"),[])});pe({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>ue(()=>import("./sophia.ae3e217e.js"),[])});pe({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>ue(()=>import("./sparql.6944fd44.js"),[])});pe({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>ue(()=>import("./sql.4f48b9c1.js"),[])});pe({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:()=>ue(()=>import("./st.7c961594.js"),[])});pe({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>ue(()=>import("./swift.23da7225.js"),[])});pe({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>ue(()=>import("./systemverilog.0eef8e45.js"),[])});pe({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>ue(()=>import("./systemverilog.0eef8e45.js"),[])});pe({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>ue(()=>import("./tcl.236460f4.js"),[])});pe({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>ue(()=>import("./twig.b70b7ae1.js"),[])});pe({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>ue(()=>import("./typescript.b253befb.js"),["assets/typescript.b253befb.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css"])});pe({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>ue(()=>import("./vb.5502a104.js"),[])});pe({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\ue(()=>import("./xml.22301ab3.js"),["assets/xml.22301ab3.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css"])});pe({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>ue(()=>import("./yaml.1fee6ec9.js"),["assets/yaml.1fee6ec9.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css"])});/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var zte=Object.defineProperty,Ute=Object.getOwnPropertyDescriptor,$te=Object.getOwnPropertyNames,jte=Object.prototype.hasOwnProperty,oR=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of $te(e))!jte.call(o,n)&&n!==t&&zte(o,n,{get:()=>e[n],enumerable:!(i=Ute(e,n))||i.enumerable});return o},Kte=(o,e,t)=>(oR(o,e,"default"),t&&oR(t,e,"default")),Xg={};Kte(Xg,D_);var MN=class{constructor(o,e,t){qt(this,"_onDidChange",new Xg.Emitter);qt(this,"_options");qt(this,"_modeConfiguration");qt(this,"_languageId");this._languageId=o,this.setOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(o){this._options=o||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(o){this.setOptions(o)}setModeConfiguration(o){this._modeConfiguration=o||Object.create(null),this._onDidChange.fire(this)}},RN={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},ON={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},A3=new MN("css",RN,ON),M3=new MN("scss",RN,ON),R3=new MN("less",RN,ON);Xg.languages.css={cssDefaults:A3,lessDefaults:R3,scssDefaults:M3};function PN(){return ue(()=>import("./cssMode.f4931ed2.js"),["assets/cssMode.f4931ed2.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css"])}Xg.languages.onLanguage("less",()=>{PN().then(o=>o.setupMode(R3))});Xg.languages.onLanguage("scss",()=>{PN().then(o=>o.setupMode(M3))});Xg.languages.onLanguage("css",()=>{PN().then(o=>o.setupMode(A3))});/*!----------------------------------------------------------------------------- + *-----------------------------------------------------------------------------*/var zte=Object.defineProperty,Ute=Object.getOwnPropertyDescriptor,$te=Object.getOwnPropertyNames,jte=Object.prototype.hasOwnProperty,oR=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of $te(e))!jte.call(o,n)&&n!==t&&zte(o,n,{get:()=>e[n],enumerable:!(i=Ute(e,n))||i.enumerable});return o},Kte=(o,e,t)=>(oR(o,e,"default"),t&&oR(t,e,"default")),Xg={};Kte(Xg,D_);var MN=class{constructor(o,e,t){qt(this,"_onDidChange",new Xg.Emitter);qt(this,"_options");qt(this,"_modeConfiguration");qt(this,"_languageId");this._languageId=o,this.setOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(o){this._options=o||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(o){this.setOptions(o)}setModeConfiguration(o){this._modeConfiguration=o||Object.create(null),this._onDidChange.fire(this)}},RN={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},ON={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},A3=new MN("css",RN,ON),M3=new MN("scss",RN,ON),R3=new MN("less",RN,ON);Xg.languages.css={cssDefaults:A3,lessDefaults:R3,scssDefaults:M3};function PN(){return ue(()=>import("./cssMode.427d9b2f.js"),["assets/cssMode.427d9b2f.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css"])}Xg.languages.onLanguage("less",()=>{PN().then(o=>o.setupMode(R3))});Xg.languages.onLanguage("scss",()=>{PN().then(o=>o.setupMode(M3))});Xg.languages.onLanguage("css",()=>{PN().then(o=>o.setupMode(A3))});/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var qte=Object.defineProperty,Gte=Object.getOwnPropertyDescriptor,Zte=Object.getOwnPropertyNames,Yte=Object.prototype.hasOwnProperty,rR=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Zte(e))!Yte.call(o,n)&&n!==t&&qte(o,n,{get:()=>e[n],enumerable:!(i=Gte(e,n))||i.enumerable});return o},Qte=(o,e,t)=>(rR(o,e,"default"),t&&rR(t,e,"default")),q1={};Qte(q1,D_);var Xte=class{constructor(o,e,t){qt(this,"_onDidChange",new q1.Emitter);qt(this,"_options");qt(this,"_modeConfiguration");qt(this,"_languageId");this._languageId=o,this.setOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(o){this._options=o||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(o){this._modeConfiguration=o||Object.create(null),this._onDidChange.fire(this)}},Jte={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},G1={format:Jte,suggest:{},data:{useDefaultDataProvider:!0}};function Z1(o){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:o===xp,documentFormattingEdits:o===xp,documentRangeFormattingEdits:o===xp}}var xp="html",aR="handlebars",lR="razor",O3=Y1(xp,G1,Z1(xp)),eie=O3.defaults,P3=Y1(aR,G1,Z1(aR)),tie=P3.defaults,F3=Y1(lR,G1,Z1(lR)),iie=F3.defaults;q1.languages.html={htmlDefaults:eie,razorDefaults:iie,handlebarDefaults:tie,htmlLanguageService:O3,handlebarLanguageService:P3,razorLanguageService:F3,registerHTMLLanguageService:Y1};function nie(){return ue(()=>import("./htmlMode.c0ca6de5.js"),["assets/htmlMode.c0ca6de5.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css"])}function Y1(o,e=G1,t=Z1(o)){const i=new Xte(o,e,t);let n;const s=q1.languages.onLanguage(o,async()=>{n=(await nie()).setupMode(i)});return{defaults:i,dispose(){s.dispose(),n==null||n.dispose(),n=void 0}}}/*!----------------------------------------------------------------------------- + *-----------------------------------------------------------------------------*/var qte=Object.defineProperty,Gte=Object.getOwnPropertyDescriptor,Zte=Object.getOwnPropertyNames,Yte=Object.prototype.hasOwnProperty,rR=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Zte(e))!Yte.call(o,n)&&n!==t&&qte(o,n,{get:()=>e[n],enumerable:!(i=Gte(e,n))||i.enumerable});return o},Qte=(o,e,t)=>(rR(o,e,"default"),t&&rR(t,e,"default")),q1={};Qte(q1,D_);var Xte=class{constructor(o,e,t){qt(this,"_onDidChange",new q1.Emitter);qt(this,"_options");qt(this,"_modeConfiguration");qt(this,"_languageId");this._languageId=o,this.setOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(o){this._options=o||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(o){this._modeConfiguration=o||Object.create(null),this._onDidChange.fire(this)}},Jte={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},G1={format:Jte,suggest:{},data:{useDefaultDataProvider:!0}};function Z1(o){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:o===xp,documentFormattingEdits:o===xp,documentRangeFormattingEdits:o===xp}}var xp="html",aR="handlebars",lR="razor",O3=Y1(xp,G1,Z1(xp)),eie=O3.defaults,P3=Y1(aR,G1,Z1(aR)),tie=P3.defaults,F3=Y1(lR,G1,Z1(lR)),iie=F3.defaults;q1.languages.html={htmlDefaults:eie,razorDefaults:iie,handlebarDefaults:tie,htmlLanguageService:O3,handlebarLanguageService:P3,razorLanguageService:F3,registerHTMLLanguageService:Y1};function nie(){return ue(()=>import("./htmlMode.ca51a268.js"),["assets/htmlMode.ca51a268.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css"])}function Y1(o,e=G1,t=Z1(o)){const i=new Xte(o,e,t);let n;const s=q1.languages.onLanguage(o,async()=>{n=(await nie()).setupMode(i)});return{defaults:i,dispose(){s.dispose(),n==null||n.dispose(),n=void 0}}}/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var sie=Object.defineProperty,oie=Object.getOwnPropertyDescriptor,rie=Object.getOwnPropertyNames,aie=Object.prototype.hasOwnProperty,cR=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of rie(e))!aie.call(o,n)&&n!==t&&sie(o,n,{get:()=>e[n],enumerable:!(i=oie(e,n))||i.enumerable});return o},lie=(o,e,t)=>(cR(o,e,"default"),t&&cR(t,e,"default")),k_={};lie(k_,D_);var cie=class{constructor(o,e,t){qt(this,"_onDidChange",new k_.Emitter);qt(this,"_diagnosticsOptions");qt(this,"_modeConfiguration");qt(this,"_languageId");this._languageId=o,this.setDiagnosticsOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(o){this._diagnosticsOptions=o||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(o){this._modeConfiguration=o||Object.create(null),this._onDidChange.fire(this)}},die={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},hie={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},B3=new cie("json",die,hie);k_.languages.json={jsonDefaults:B3};function uie(){return ue(()=>import("./jsonMode.437d5ffb.js"),["assets/jsonMode.437d5ffb.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css"])}k_.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});k_.languages.onLanguage("json",()=>{uie().then(o=>o.setupMode(B3))});/*!----------------------------------------------------------------------------- + *-----------------------------------------------------------------------------*/var sie=Object.defineProperty,oie=Object.getOwnPropertyDescriptor,rie=Object.getOwnPropertyNames,aie=Object.prototype.hasOwnProperty,cR=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of rie(e))!aie.call(o,n)&&n!==t&&sie(o,n,{get:()=>e[n],enumerable:!(i=oie(e,n))||i.enumerable});return o},lie=(o,e,t)=>(cR(o,e,"default"),t&&cR(t,e,"default")),k_={};lie(k_,D_);var cie=class{constructor(o,e,t){qt(this,"_onDidChange",new k_.Emitter);qt(this,"_diagnosticsOptions");qt(this,"_modeConfiguration");qt(this,"_languageId");this._languageId=o,this.setDiagnosticsOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(o){this._diagnosticsOptions=o||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(o){this._modeConfiguration=o||Object.create(null),this._onDidChange.fire(this)}},die={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},hie={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},B3=new cie("json",die,hie);k_.languages.json={jsonDefaults:B3};function uie(){return ue(()=>import("./jsonMode.5e64dbdf.js"),["assets/jsonMode.5e64dbdf.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css"])}k_.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});k_.languages.onLanguage("json",()=>{uie().then(o=>o.setupMode(B3))});/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var gie=Object.defineProperty,fie=Object.getOwnPropertyDescriptor,pie=Object.getOwnPropertyNames,mie=Object.prototype.hasOwnProperty,dR=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of pie(e))!mie.call(o,n)&&n!==t&&gie(o,n,{get:()=>e[n],enumerable:!(i=fie(e,n))||i.enumerable});return o},_ie=(o,e,t)=>(dR(o,e,"default"),t&&dR(t,e,"default")),bie="4.5.5",Dg={};_ie(Dg,D_);var W3=(o=>(o[o.None=0]="None",o[o.CommonJS=1]="CommonJS",o[o.AMD=2]="AMD",o[o.UMD=3]="UMD",o[o.System=4]="System",o[o.ES2015=5]="ES2015",o[o.ESNext=99]="ESNext",o))(W3||{}),V3=(o=>(o[o.None=0]="None",o[o.Preserve=1]="Preserve",o[o.React=2]="React",o[o.ReactNative=3]="ReactNative",o[o.ReactJSX=4]="ReactJSX",o[o.ReactJSXDev=5]="ReactJSXDev",o))(V3||{}),H3=(o=>(o[o.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",o[o.LineFeed=1]="LineFeed",o))(H3||{}),z3=(o=>(o[o.ES3=0]="ES3",o[o.ES5=1]="ES5",o[o.ES2015=2]="ES2015",o[o.ES2016=3]="ES2016",o[o.ES2017=4]="ES2017",o[o.ES2018=5]="ES2018",o[o.ES2019=6]="ES2019",o[o.ES2020=7]="ES2020",o[o.ESNext=99]="ESNext",o[o.JSON=100]="JSON",o[o.Latest=99]="Latest",o))(z3||{}),U3=(o=>(o[o.Classic=1]="Classic",o[o.NodeJs=2]="NodeJs",o))(U3||{}),$3=class{constructor(o,e,t,i){qt(this,"_onDidChange",new Dg.Emitter);qt(this,"_onDidExtraLibsChange",new Dg.Emitter);qt(this,"_extraLibs");qt(this,"_removedExtraLibs");qt(this,"_eagerModelSync");qt(this,"_compilerOptions");qt(this,"_diagnosticsOptions");qt(this,"_workerOptions");qt(this,"_onDidExtraLibsChangeTimeout");qt(this,"_inlayHintsOptions");this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(o),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(o,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===o)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:o,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let n=this._extraLibs[t];!n||n.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(o){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),o&&o.length>0)for(const e of o){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let n=1;this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(o){this._compilerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(o){this._diagnosticsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(o){this._workerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(o){this._inlayHintsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(o){}setEagerModelSync(o){this._eagerModelSync=o}getEagerModelSync(){return this._eagerModelSync}},vie=bie,j3=new $3({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{}),K3=new $3({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{}),Cie=()=>Q1().then(o=>o.getTypeScriptWorker()),wie=()=>Q1().then(o=>o.getJavaScriptWorker());Dg.languages.typescript={ModuleKind:W3,JsxEmit:V3,NewLineKind:H3,ScriptTarget:z3,ModuleResolutionKind:U3,typescriptVersion:vie,typescriptDefaults:j3,javascriptDefaults:K3,getTypeScriptWorker:Cie,getJavaScriptWorker:wie};function Q1(){return ue(()=>import("./tsMode.a31fb17b.js"),["assets/tsMode.a31fb17b.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css"])}Dg.languages.onLanguage("typescript",()=>Q1().then(o=>o.setupTypeScript(j3)));Dg.languages.onLanguage("javascript",()=>Q1().then(o=>o.setupJavaScript(K3)));var Sie=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},yie=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},X1=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const J1=new le("selectionAnchorSet",!1);let sl=class q3{constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=J1.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}static get(e){return e.getContribution(q3.ID)}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(oe.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new Fn().appendText(p("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),Gi(p("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(oe.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};sl.ID="editor.contrib.selectionAnchorController";sl=Sie([yie(1,Ee)],sl);class Lie extends ce{constructor(){super({id:"editor.action.setSelectionAnchor",label:p("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:yi(2089,2080),weight:100}})}run(e,t){var i;return X1(this,void 0,void 0,function*(){(i=sl.get(t))===null||i===void 0||i.setSelectionAnchor()})}}class Die extends ce{constructor(){super({id:"editor.action.goToSelectionAnchor",label:p("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:J1})}run(e,t){var i;return X1(this,void 0,void 0,function*(){(i=sl.get(t))===null||i===void 0||i.goToSelectionAnchor()})}}class kie extends ce{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:p("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:J1,kbOpts:{kbExpr:N.editorTextFocus,primary:yi(2089,2089),weight:100}})}run(e,t){var i;return X1(this,void 0,void 0,function*(){(i=sl.get(t))===null||i===void 0||i.selectFromAnchorToCursor()})}}class xie extends ce{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:p("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:J1,kbOpts:{kbExpr:N.editorTextFocus,primary:9,weight:100}})}run(e,t){var i;return X1(this,void 0,void 0,function*(){(i=sl.get(t))===null||i===void 0||i.cancelSelectionAnchor()})}}tt(sl.ID,sl);ie(Lie);ie(Die);ie(kie);ie(xie);const Iie=T("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},p("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class Eie extends ce{constructor(){super({id:"editor.action.jumpToBracket",label:p("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:3160,weight:100}})}run(e,t){var i;(i=Yo.get(t))===null||i===void 0||i.jumpToBracket()}}class Nie extends ce{constructor(){super({id:"editor.action.selectToBracket",label:p("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var n;let s=!0;i&&i.selectBrackets===!1&&(s=!1),(n=Yo.get(t))===null||n===void 0||n.selectToBracket(s)}}class Tie{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class Yo extends H{constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new mt(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(66),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(66)&&(this._matchBrackets=this._editor.getOption(66),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}static get(e){return e.getContribution(Yo.ID)}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),s=e.bracketPairs.matchBracket(n);let r=null;if(s)s[0].containsPosition(n)&&!s[1].containsPosition(n)?r=s[1].getStartPosition():s[1].containsPosition(n)&&(r=s[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(n);if(a)r=a[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(n);l&&l.range&&(r=l.range.getStartPosition())}}return r?new oe(r.lineNumber,r.column,r.lineNumber,r.column):new oe(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const s=n.getStartPosition();let r=t.bracketPairs.matchBracket(s);if(!r&&(r=t.bracketPairs.findEnclosingBrackets(s),!r)){const c=t.bracketPairs.findNextBracket(s);c&&c.range&&(r=t.bracketPairs.matchBracket(c.range.getStartPosition()))}let a=null,l=null;if(r){r.sort(L.compareRangesUsingStarts);const[c,d]=r;if(a=e?c.getStartPosition():c.getEndPosition(),l=e?d.getEndPosition():d.getStartPosition(),d.containsPosition(s)){const h=a;a=l,l=h}}a&&l&&i.push(new oe(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const s=[];let r=0;for(let h=0,u=e.length;h1&&s.sort(B.compare);const a=[];let l=0,c=0;const d=n.length;for(let h=0,u=s.length;h{const t=o.getColor(A$);t&&e.addRule(`.monaco-editor .bracket-match { background-color: ${t}; }`);const i=o.getColor(z4);i&&e.addRule(`.monaco-editor .bracket-match { border: 1px solid ${i}; }`)});qs.appendMenuItem(M.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:p({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2});class Aie{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,n=this._selection.startColumn,s=this._selection.endColumn;if(!(this._isMovingLeft&&n===1)&&!(!this._isMovingLeft&&s===e.getLineMaxColumn(i)))if(this._isMovingLeft){const r=new L(i,n-1,i,n),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new L(i,s,i,s),a)}else{const r=new L(i,s,i,s+1),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new L(i,n,i,n),a)}}computeCursorState(e,t){return this._isMovingLeft?new oe(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new oe(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class G3 extends ce{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;const i=[],n=t.getSelections();for(const s of n)i.push(new Aie(s,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}class Mie extends G3{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:p("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:N.writable})}}class Rie extends G3{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:p("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:N.writable})}}ie(Mie);ie(Rie);class Oie extends ce{constructor(){super({id:"editor.action.transposeLetters",label:p("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:N.writable,kbOpts:{kbExpr:N.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;const i=t.getModel(),n=[],s=t.getSelections();for(const r of s){if(!r.isEmpty())continue;const a=r.startLineNumber,l=r.startColumn,c=i.getLineMaxColumn(a);if(a===1&&(l===1||l===2&&c===2))continue;const d=l===c?r.getPosition():lt.rightPosition(i,r.getPosition().lineNumber,r.getPosition().column),h=lt.leftPosition(i,d),u=lt.leftPosition(i,h),g=i.getValueInRange(L.fromPositions(u,h)),f=i.getValueInRange(L.fromPositions(h,d)),_=L.fromPositions(u,d);n.push(new zi(_,f+g))}n.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}ie(Oie);var Pie=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Zd="9_cutcopypaste",Fie=jo||document.queryCommandSupported("cut"),Z3=jo||document.queryCommandSupported("copy"),Bie=typeof navigator.clipboard>"u"||Ls?document.queryCommandSupported("paste"):!0;function FN(o){return o.register(),o}const Wie=Fie?FN(new Ug({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:jo?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:M.MenubarEditMenu,group:"2_ccp",title:p({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:M.EditorContext,group:Zd,title:p("actions.clipboard.cutLabel","Cut"),when:N.writable,order:1},{menuId:M.CommandPalette,group:"",title:p("actions.clipboard.cutLabel","Cut"),order:1},{menuId:M.SimpleEditorContext,group:Zd,title:p("actions.clipboard.cutLabel","Cut"),when:N.writable,order:1}]})):void 0,Vie=Z3?FN(new Ug({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:jo?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:M.MenubarEditMenu,group:"2_ccp",title:p({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:M.EditorContext,group:Zd,title:p("actions.clipboard.copyLabel","Copy"),order:2},{menuId:M.CommandPalette,group:"",title:p("actions.clipboard.copyLabel","Copy"),order:1},{menuId:M.SimpleEditorContext,group:Zd,title:p("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;qs.appendMenuItem(M.MenubarEditMenu,{submenu:M.MenubarCopy,title:{value:p("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3});qs.appendMenuItem(M.EditorContext,{submenu:M.EditorContextCopy,title:{value:p("copy as","Copy As"),original:"Copy As"},group:Zd,order:3});qs.appendMenuItem(M.EditorContext,{submenu:M.EditorContextShare,title:{value:p("share","Share"),original:"Share"},group:"11_share",order:-1});const sy=Bie?FN(new Ug({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:jo?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:M.MenubarEditMenu,group:"2_ccp",title:p({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:M.EditorContext,group:Zd,title:p("actions.clipboard.pasteLabel","Paste"),when:N.writable,order:4},{menuId:M.CommandPalette,group:"",title:p("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:M.SimpleEditorContext,group:Zd,title:p("actions.clipboard.pasteLabel","Paste"),when:N.writable,order:4}]})):void 0;class Hie extends ce{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:p("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(33)&&t.getSelection().isEmpty()||(gD.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),gD.forceCopyWithSyntaxHighlighting=!1)}}function Y3(o,e){!o||(o.addImplementation(1e4,"code-editor",(t,i)=>{const n=t.get(ct).getFocusedCodeEditor();if(n&&n.hasTextFocus()){const s=n.getOption(33),r=n.getSelection();return r&&r.isEmpty()&&!s||document.execCommand(e),!0}return!1}),o.addImplementation(0,"generic-dom",(t,i)=>(document.execCommand(e),!0)))}Y3(Wie,"cut");Y3(Vie,"copy");sy&&(sy.addImplementation(1e4,"code-editor",(o,e)=>{const t=o.get(ct),i=o.get(cl),n=t.getFocusedCodeEditor();return n&&n.hasTextFocus()?!document.execCommand("paste")&&Sc?(()=>Pie(void 0,void 0,void 0,function*(){const r=yield i.readText();if(r!==""){const a=im.INSTANCE.get(r);let l=!1,c=null,d=null;a&&(l=n.getOption(33)&&!!a.isFromEmptySelection,c=typeof a.multicursorText<"u"?a.multicursorText:null,d=a.mode),n.trigger("keyboard","paste",{text:r,pasteOnNewLine:l,multicursorText:c,mode:d})}}))():!0:!1}),sy.addImplementation(0,"generic-dom",(o,e)=>(document.execCommand("paste"),!0)));Z3&&ie(Hie);class Ze{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+Ze.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new Ze(this.value+Ze.sep+e)}}Ze.sep=".";Ze.None=new Ze("@@none@@");Ze.Empty=new Ze("");Ze.QuickFix=new Ze("quickfix");Ze.Refactor=new Ze("refactor");Ze.Source=new Ze("source");Ze.SourceOrganizeImports=Ze.Source.append("organizeImports");Ze.SourceFixAll=Ze.Source.append("fixAll");var bn;(function(o){o.Refactor="refactor",o.RefactorPreview="refactor preview",o.Lightbulb="lightbulb",o.Default="other (default)",o.SourceAction="source action",o.QuickFix="quick fix action",o.FixAll="fix all",o.OrganizeImports="organize imports",o.AutoFix="auto fix",o.QuickFixHover="quick fix hover window",o.OnSave="save participants",o.ProblemsView="problems view"})(bn||(bn={}));function zie(o,e){return!(o.include&&!o.include.intersects(e)||o.excludes&&o.excludes.some(t=>Q3(e,t,o.include))||!o.includeSourceActions&&Ze.Source.contains(e))}function Uie(o,e){const t=e.kind?new Ze(e.kind):void 0;return!(o.include&&(!t||!o.include.contains(t))||o.excludes&&t&&o.excludes.some(i=>Q3(t,i,o.include))||!o.includeSourceActions&&t&&Ze.Source.contains(t)||o.onlyIncludePreferredActions&&!e.isPreferred)}function Q3(o,e,t){return!(!e.contains(o)||t&&e.contains(t))}class Nr{constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}static fromUser(e,t){return!e||typeof e!="object"?new Nr(t.kind,t.apply,!1):new Nr(Nr.getKindFromUser(e,t.kind),Nr.getApplyFromUser(e,t.apply),Nr.getPreferredUser(e))}static getApplyFromUser(e,t){switch(typeof e.apply=="string"?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return typeof e.kind=="string"?new Ze(e.kind):t}static getPreferredUser(e){return typeof e.preferred=="boolean"?e.preferred:!1}}var BN=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const X3="editor.action.codeAction",J3="editor.action.refactor",$ie="editor.action.refactor.preview",e7="editor.action.sourceAction",WN="editor.action.organizeImports",VN="editor.action.fixAll";class t7{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t;return BN(this,void 0,void 0,function*(){if(((t=this.provider)===null||t===void 0?void 0:t.resolveCodeAction)&&!this.action.edit){let i;try{i=yield this.provider.resolveCodeAction(this.action,e)}catch(n){Pi(n)}i&&(this.action.edit=i.edit)}return this})}}class HN extends H{constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(HN.codeActionsComparator),this.validActions=this.allActions.filter(({action:n})=>!n.disabled)}static codeActionsComparator({action:e},{action:t}){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:rn(e.diagnostics)?rn(t.diagnostics)?e.diagnostics[0].message.localeCompare(t.diagnostics[0].message):-1:rn(t.diagnostics)?1:0}get hasAutoFix(){return this.validActions.some(({action:e})=>!!e.kind&&Ze.QuickFix.contains(new Ze(e.kind))&&!!e.isPreferred)}}const hR={actions:[],documentation:void 0};function zN(o,e,t,i,n,s){var r;const a=i.filter||{},l={only:(r=a.include)===null||r===void 0?void 0:r.value,trigger:i.type},c=new TN(e,s),d=jie(o,e,a),h=new Q,u=d.map(f=>BN(this,void 0,void 0,function*(){try{n.report(f);const _=yield f.provideCodeActions(e,t,l,c.token);if(_&&h.add(_),c.token.isCancellationRequested)return hR;const b=((_==null?void 0:_.actions)||[]).filter(C=>C&&Uie(a,C)),v=Kie(f,b,a.include);return{actions:b.map(C=>new t7(C,f)),documentation:v}}catch(_){if(ea(_))throw _;return Pi(_),hR}})),g=o.onDidChange(()=>{const f=o.all(e);Ss(f,d)||c.cancel()});return Promise.all(u).then(f=>{const _=f.map(v=>v.actions).flat(),b=i_(f.map(v=>v.documentation));return new HN(_,b,h)}).finally(()=>{g.dispose(),c.dispose()})}function jie(o,e,t){return o.all(e).filter(i=>i.providedCodeActionKinds?i.providedCodeActionKinds.some(n=>zie(t,new Ze(n))):!0)}function Kie(o,e,t){if(!o.documentation)return;const i=o.documentation.map(n=>({kind:new Ze(n.kind),command:n.command}));if(t){let n;for(const s of i)s.kind.contains(t)&&(n?n.kind.contains(s.kind)&&(n=s):n=s);if(n)return n==null?void 0:n.command}for(const n of e)if(!!n.kind){for(const s of i)if(s.kind.contains(new Ze(n.kind)))return s.command}}Xe.registerCommand("_executeCodeActionProvider",function(o,e,t,i,n){return BN(this,void 0,void 0,function*(){if(!(e instanceof _e))throw Ko();const{codeActionProvider:s}=o.get(de),r=o.get(Ut).getModel(e);if(!r)throw Ko();const a=oe.isISelection(t)?oe.liftSelection(t):L.isIRange(t)?r.validateRange(t):void 0;if(!a)throw Ko();const l=typeof i=="string"?new Ze(i):void 0,c=yield zN(s,r,a,{type:1,triggerAction:bn.Default,filter:{includeSourceActions:!0,include:l}},Ch.None,ze.None),d=[],h=Math.min(c.validActions.length,typeof n=="number"?n:0);for(let u=0;uu.action)}finally{setTimeout(()=>c.dispose(),100)}})});var qie=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Gie=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let os=class Wk{constructor(e,t){this._messageWidget=new _n,this._messageListeners=new Q,this._editor=e,this._visible=Wk.MESSAGE_VISIBLE.bindTo(t)}static get(e){return e.getContribution(Wk.ID)}dispose(){this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){Gi(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new uR(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(new xs(()=>this.closeMessage(),3e3));let i;this._messageListeners.add(this._editor.onMouseMove(n=>{!n.target.position||(i?i.containsPosition(n.target.position)||this.closeMessage():i=new L(t.lineNumber-3,1,n.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(uR.fadeOut(this._messageWidget.value))}};os.ID="editor.contrib.messageController";os.MESSAGE_VISIBLE=new le("messageVisible",!1,p("messageVisible","Whether the editor is currently showing an inline message"));os=qie([Gie(1,Ee)],os);const Zie=xi.bindToContribution(os.get);ee(new Zie({id:"leaveEditorMessage",precondition:os.MESSAGE_VISIBLE,handler:o=>o.closeMessage(),kbOpts:{weight:100+30,primary:9}}));class uR{constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const s=document.createElement("div");s.classList.add("anchor","top"),this._domNode.appendChild(s);const r=document.createElement("div");r.classList.add("message"),r.textContent=n,this._domNode.appendChild(r);const a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",e===2)}}tt(os.ID,os);var i7=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},_a=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Yie=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Jg={Visible:new le("CodeActionMenuVisible",!1,p("CodeActionMenuVisible","Whether the code action list widget is visible"))};class oy extends is{constructor(e,t){super(e.command?e.command.id:e.title,Qie(e.title),void 0,!e.disabled,t),this.action=e}}function Qie(o){return o.replace(/\r\n|\r|\n/g," ")}const Xie="codeActionWidget",ry=26;let Vk=class{constructor(e,t){this.acceptKeybindings=e,this.keybindingService=t}get templateId(){return Xie}renderTemplate(e){const t=Object.create(null);return t.disposables=[],t.root=e,t.text=document.createElement("span"),e.append(t.text),t}renderElement(e,t,i){const n=i,s=e.title,r=e.isEnabled,a=e.isSeparator,l=e.isDocumentation;n.text.textContent=s,r?n.root.classList.remove("option-disabled"):(n.root.classList.add("option-disabled"),n.root.style.backgroundColor="transparent !important"),a&&(n.root.classList.add("separator"),n.root.style.height="10px"),l||(()=>{var d,h;const[u,g]=this.acceptKeybindings;n.root.title=p({key:"label",comment:['placeholders are keybindings, e.g "F2 to Refactor, Shift+F2 to Preview"']},"{0} to Refactor, {1} to Preview",(d=this.keybindingService.lookupKeybinding(u))===null||d===void 0?void 0:d.getLabel(),(h=this.keybindingService.lookupKeybinding(g))===null||h===void 0?void 0:h.getLabel())})()}disposeTemplate(e){e.disposables=nt(e.disposables)}};Vk=i7([_a(1,_i)],Vk);let uC=class Hk extends H{constructor(e,t,i,n,s,r,a,l,c,d){super(),this._editor=e,this._delegate=t,this._contextMenuService=i,this._languageFeaturesService=s,this._telemetryService=r,this._configurationService=l,this._contextViewService=c,this._contextKeyService=d,this._showingActions=this._register(new _n),this.codeActionList=this._register(new _n),this.options=[],this._visible=!1,this.viewItems=[],this.hasSeperator=!1,this._keybindingResolver=new ew({getKeybindings:()=>n.getKeybindings()}),this._ctxMenuWidgetVisible=Jg.Visible.bindTo(this._contextKeyService),this.listRenderer=new Vk(["onEnterSelectCodeAction","onEnterSelectCodeActionWithPreview"],n)}get isVisible(){return this._visible}isCodeActionWidgetEnabled(e){return this._configurationService.getValue("editor.experimental.useCustomCodeActionMenu",{resource:e.uri})}_onListSelection(e){e.elements.length&&e.elements.forEach(t=>{t.isEnabled&&(t.action.run(),this.hideCodeActionWidget())})}_onListHover(e){var t,i,n,s;e.element?!((i=e.element)===null||i===void 0)&&i.isEnabled?((n=this.codeActionList.value)===null||n===void 0||n.setFocus([e.element.index]),this.focusedEnabledItem=this.viewItems.indexOf(e.element),this.currSelectedItem=e.element.index):(this.currSelectedItem=void 0,(s=this.codeActionList.value)===null||s===void 0||s.setFocus([e.element.index])):(this.currSelectedItem=void 0,(t=this.codeActionList.value)===null||t===void 0||t.setFocus([]))}renderCodeActionMenuList(e,t){var i;const n=new Q,s=document.createElement("div"),r=document.createElement("div");this.block=e.appendChild(r),this.block.classList.add("context-view-block"),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",n.add(G(this.block,ae.MOUSE_DOWN,u=>u.stopPropagation())),s.id="codeActionMenuWidget",s.classList.add("codeActionMenuWidget"),e.appendChild(s),this.codeActionList.value=new rr("codeActionWidget",s,{getHeight(u){return u.isSeparator?10:ry},getTemplateId(u){return"codeActionWidget"}},[this.listRenderer],{keyboardSupport:!1}),n.add(this.codeActionList.value.onMouseOver(u=>this._onListHover(u))),n.add(this.codeActionList.value.onDidChangeFocus(u=>{var g;return(g=this.codeActionList.value)===null||g===void 0?void 0:g.domFocus()})),n.add(this.codeActionList.value.onDidChangeSelection(u=>this._onListSelection(u))),n.add(this._editor.onDidLayoutChange(u=>this.hideCodeActionWidget())),t.forEach((u,g)=>{const f=u.class==="separator";let _=!1;u instanceof oy&&(_=u.action.kind===Hk.documentationID),f&&(this.hasSeperator=!0);const b={title:u.label,detail:u.tooltip,action:t[g],isEnabled:u.enabled,isSeparator:f,index:g,isDocumentation:_};u.enabled&&this.viewItems.push(b),this.options.push(b)}),this.codeActionList.value.splice(0,this.codeActionList.value.length,this.options);const a=this.hasSeperator?(t.length-1)*ry+10:t.length*ry;s.style.height=String(a)+"px",this.codeActionList.value.layout(a);const l=[];this.options.forEach((u,g)=>{var f,_;if(!this.codeActionList.value)return;const b=(_=document.getElementById((f=this.codeActionList.value)===null||f===void 0?void 0:f.getElementID(g)))===null||_===void 0?void 0:_.getElementsByTagName("span")[0].offsetWidth;l.push(Number(b))});const c=Math.max(...l);s.style.width=c+52+"px",(i=this.codeActionList.value)===null||i===void 0||i.layout(a,c),this.viewItems.length<1||this.viewItems.every(u=>u.isDocumentation)?this.currSelectedItem=void 0:(this.focusedEnabledItem=0,this.currSelectedItem=this.viewItems[0].index,this.codeActionList.value.setFocus([this.currSelectedItem])),this.codeActionList.value.domFocus();const d=Od(e),h=d.onDidBlur(()=>{this.hideCodeActionWidget()});return n.add(h),n.add(d),this._ctxMenuWidgetVisible.set(!0),n}focusPrevious(){var e;if(typeof this.focusedEnabledItem>"u")this.focusedEnabledItem=this.viewItems[0].index;else if(this.viewItems.length<1)return!1;const t=this.focusedEnabledItem;let i;do this.focusedEnabledItem=this.focusedEnabledItem-1,this.focusedEnabledItem<0&&(this.focusedEnabledItem=this.viewItems.length-1),i=this.viewItems[this.focusedEnabledItem],(e=this.codeActionList.value)===null||e===void 0||e.setFocus([i.index]),this.currSelectedItem=i.index;while(this.focusedEnabledItem!==t&&(!i.isEnabled||i.action.id===ln.ID));return!0}focusNext(){var e;if(typeof this.focusedEnabledItem>"u")this.focusedEnabledItem=this.viewItems.length-1;else if(this.viewItems.length<1)return!1;const t=this.focusedEnabledItem;let i;do this.focusedEnabledItem=(this.focusedEnabledItem+1)%this.viewItems.length,i=this.viewItems[this.focusedEnabledItem],(e=this.codeActionList.value)===null||e===void 0||e.setFocus([i.index]),this.currSelectedItem=i.index;while(this.focusedEnabledItem!==t&&(!i.isEnabled||i.action.id===ln.ID));return!0}navigateListWithKeysUp(){this.focusPrevious()}navigateListWithKeysDown(){this.focusNext()}onEnterSet(){var e;typeof this.currSelectedItem=="number"&&((e=this.codeActionList.value)===null||e===void 0||e.setSelection([this.currSelectedItem]))}dispose(){super.dispose()}hideCodeActionWidget(){this._ctxMenuWidgetVisible.reset(),this.options=[],this.viewItems=[],this.focusedEnabledItem=0,this.currSelectedItem=void 0,this.hasSeperator=!1,this._contextViewService.hideContextView({source:this})}codeActionTelemetry(e,t,i){this._telemetryService.publicLog2("codeAction.applyCodeAction",{codeActionFrom:e,validCodeActions:i.validActions.length,cancelled:t})}show(e,t,i,n){return Yie(this,void 0,void 0,function*(){const s=this._editor.getModel();if(!s)return;const r=n.includeDisabledActions?t.allActions:t.validActions;if(!r.length){this._visible=!1;return}if(!this._editor.getDomNode())throw this._visible=!1,QO();this._visible=!0,this._showingActions.value=t;const a=this.getMenuActions(e,r,t.documentation),l=B.isIPosition(i)?this._toCoords(i):i||{x:0,y:0},c=this._keybindingResolver.getResolver(),d=this._editor.getOption(117);this.isCodeActionWidgetEnabled(s)?this._contextViewService.showContextView({getAnchor:()=>l,render:h=>this.renderCodeActionMenuList(h,a),onHide:h=>{const u=n.fromLightbulb?bn.Lightbulb:e.triggerAction;this.codeActionTelemetry(u,h,t),this._visible=!1,this._editor.focus()}},this._editor.getDomNode(),!1):this._contextMenuService.showContextMenu({domForShadowRoot:d?this._editor.getDomNode():void 0,getAnchor:()=>l,getActions:()=>a,onHide:h=>{const u=n.fromLightbulb?bn.Lightbulb:e.triggerAction;this.codeActionTelemetry(u,h,t),this._visible=!1,this._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:h=>h instanceof oy?c(h.action):void 0})})}getMenuActions(e,t,i){var n,s;const r=d=>new oy(d.action,()=>this._delegate.onSelectCodeAction(d,e)),a=t.map(r),l=[...i],c=this._editor.getModel();if(c&&a.length)for(const d of this._languageFeaturesService.codeActionProvider.all(c))d._getAdditionalMenuItems&&l.push(...d._getAdditionalMenuItems({trigger:e.type,only:(s=(n=e.filter)===null||n===void 0?void 0:n.include)===null||s===void 0?void 0:s.value},t.map(h=>h.action)));return l.length&&a.push(new ln,...l.map(d=>r(new t7({title:d.title,command:d,kind:Hk.documentationID},void 0)))),a}_toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),i=on(this._editor.getDomNode()),n=i.left+t.left,s=i.top+t.top+t.height;return{x:n,y:s}}};uC.documentationID="_documentation";uC=i7([_a(2,ll),_a(3,_i),_a(4,de),_a(5,sr),_a(6,Ct),_a(7,ot),_a(8,vh),_a(9,Ee)],uC);class ew{constructor(e){this._keybindingProvider=e}getResolver(){const e=new Ju(()=>this._keybindingProvider.getKeybindings().filter(t=>ew.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let i=t.commandArgs;return t.command===WN?i={kind:Ze.SourceOrganizeImports.value}:t.command===VN&&(i={kind:Ze.SourceFixAll.value}),Object.assign({resolvedKeybinding:t.resolvedKeybinding},Nr.fromUser(i,{kind:Ze.None,apply:"never"}))}));return t=>{if(t.kind){const i=this.bestKeybindingForCodeAction(t,e.getValue());return i==null?void 0:i.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new Ze(e.kind);return t.filter(n=>n.kind.contains(i)).filter(n=>n.preferred?e.isPreferred:!0).reduceRight((n,s)=>n?n.kind.contains(s.kind)?s:n:s,void 0)}}ew.codeActionCommands=[J3,X3,e7,WN,VN];var Jie=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},ene=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Ip;(function(o){o.Hidden={type:0};class e{constructor(i,n,s,r){this.actions=i,this.trigger=n,this.editorPosition=s,this.widgetPosition=r,this.type=1}}o.Showing=e})(Ip||(Ip={}));let gC=class n7 extends H{constructor(e,t,i,n){super(),this._editor=e,this._quickFixActionId=t,this._preferredFixActionId=i,this._keybindingService=n,this._onClick=this._register(new R),this.onClick=this._onClick.event,this._state=Ip.Hidden,this._domNode=document.createElement("div"),this._domNode.className=m.lightBulb.classNames,this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(s=>{const r=this._editor.getModel();(this.state.type!==1||!r||this.state.editorPosition.lineNumber>=r.getLineCount())&&this.hide()})),ft.ignoreTarget(this._domNode),this._register(zH(this._domNode,s=>{if(this.state.type!==1)return;this._editor.focus(),s.preventDefault();const{top:r,height:a}=on(this._domNode),l=this._editor.getOption(61);let c=Math.floor(l/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber{(s.buttons&1)===1&&this.hide()})),this._register(this._editor.onDidChangeConfiguration(s=>{s.hasChanged(59)&&!this._editor.getOption(59).enabled&&this.hide()})),this._updateLightBulbTitleAndIcon(),this._register(this._keybindingService.onDidUpdateKeybindings(this._updateLightBulbTitleAndIcon,this))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return this._state.type===1?this._state.widgetPosition:null}update(e,t,i){if(e.validActions.length<=0)return this.hide();const n=this._editor.getOptions();if(!n.get(59).enabled)return this.hide();const s=this._editor.getModel();if(!s)return this.hide();const{lineNumber:r,column:a}=s.validatePosition(i),l=s.getOptions().tabSize,c=n.get(46),d=s.getLineContent(r),h=S1(d,l),u=c.spaceWidth*h>22,g=_=>_>2&&this._editor.getTopForLineNumber(_)===this._editor.getTopForLineNumber(_-1);let f=r;if(!u){if(r>1&&!g(r-1))f-=1;else if(!g(r+1))f+=1;else if(a*c.spaceWidth<22)return this.hide()}this.state=new Ip.Showing(e,t,i,{position:{lineNumber:f,column:1},preference:n7._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state=Ip.Hidden,this._editor.layoutContentWidget(this)}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this.state.type===1&&this.state.actions.hasAutoFix){this._domNode.classList.remove(...m.lightBulb.classNamesArray),this._domNode.classList.add(...m.lightbulbAutofix.classNamesArray);const t=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(t){this.title=p("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",t.getLabel());return}}this._domNode.classList.remove(...m.lightbulbAutofix.classNamesArray),this._domNode.classList.add(...m.lightBulb.classNamesArray);const e=this._keybindingService.lookupKeybinding(this._quickFixActionId);e?this.title=p("codeActionWithKb","Show Code Actions ({0})",e.getLabel()):this.title=p("codeAction","Show Code Actions")}set title(e){this._domNode.title=e}};gC._posPref=[0];gC=Jie([ene(3,_i)],gC);Et((o,e)=>{var t;const i=(t=o.getColor(wi))===null||t===void 0?void 0:t.transparent(.7),n=o.getColor(nU);n&&e.addRule(` + *-----------------------------------------------------------------------------*/var gie=Object.defineProperty,fie=Object.getOwnPropertyDescriptor,pie=Object.getOwnPropertyNames,mie=Object.prototype.hasOwnProperty,dR=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of pie(e))!mie.call(o,n)&&n!==t&&gie(o,n,{get:()=>e[n],enumerable:!(i=fie(e,n))||i.enumerable});return o},_ie=(o,e,t)=>(dR(o,e,"default"),t&&dR(t,e,"default")),bie="4.5.5",Dg={};_ie(Dg,D_);var W3=(o=>(o[o.None=0]="None",o[o.CommonJS=1]="CommonJS",o[o.AMD=2]="AMD",o[o.UMD=3]="UMD",o[o.System=4]="System",o[o.ES2015=5]="ES2015",o[o.ESNext=99]="ESNext",o))(W3||{}),V3=(o=>(o[o.None=0]="None",o[o.Preserve=1]="Preserve",o[o.React=2]="React",o[o.ReactNative=3]="ReactNative",o[o.ReactJSX=4]="ReactJSX",o[o.ReactJSXDev=5]="ReactJSXDev",o))(V3||{}),H3=(o=>(o[o.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",o[o.LineFeed=1]="LineFeed",o))(H3||{}),z3=(o=>(o[o.ES3=0]="ES3",o[o.ES5=1]="ES5",o[o.ES2015=2]="ES2015",o[o.ES2016=3]="ES2016",o[o.ES2017=4]="ES2017",o[o.ES2018=5]="ES2018",o[o.ES2019=6]="ES2019",o[o.ES2020=7]="ES2020",o[o.ESNext=99]="ESNext",o[o.JSON=100]="JSON",o[o.Latest=99]="Latest",o))(z3||{}),U3=(o=>(o[o.Classic=1]="Classic",o[o.NodeJs=2]="NodeJs",o))(U3||{}),$3=class{constructor(o,e,t,i){qt(this,"_onDidChange",new Dg.Emitter);qt(this,"_onDidExtraLibsChange",new Dg.Emitter);qt(this,"_extraLibs");qt(this,"_removedExtraLibs");qt(this,"_eagerModelSync");qt(this,"_compilerOptions");qt(this,"_diagnosticsOptions");qt(this,"_workerOptions");qt(this,"_onDidExtraLibsChangeTimeout");qt(this,"_inlayHintsOptions");this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(o),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(o,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===o)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:o,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let n=this._extraLibs[t];!n||n.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(o){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),o&&o.length>0)for(const e of o){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let n=1;this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(o){this._compilerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(o){this._diagnosticsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(o){this._workerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(o){this._inlayHintsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(o){}setEagerModelSync(o){this._eagerModelSync=o}getEagerModelSync(){return this._eagerModelSync}},vie=bie,j3=new $3({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{}),K3=new $3({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{}),Cie=()=>Q1().then(o=>o.getTypeScriptWorker()),wie=()=>Q1().then(o=>o.getJavaScriptWorker());Dg.languages.typescript={ModuleKind:W3,JsxEmit:V3,NewLineKind:H3,ScriptTarget:z3,ModuleResolutionKind:U3,typescriptVersion:vie,typescriptDefaults:j3,javascriptDefaults:K3,getTypeScriptWorker:Cie,getJavaScriptWorker:wie};function Q1(){return ue(()=>import("./tsMode.2820b8e7.js"),["assets/tsMode.2820b8e7.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css"])}Dg.languages.onLanguage("typescript",()=>Q1().then(o=>o.setupTypeScript(j3)));Dg.languages.onLanguage("javascript",()=>Q1().then(o=>o.setupJavaScript(K3)));var Sie=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},yie=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},X1=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const J1=new le("selectionAnchorSet",!1);let sl=class q3{constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=J1.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}static get(e){return e.getContribution(q3.ID)}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(oe.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new Fn().appendText(p("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),Gi(p("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(oe.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};sl.ID="editor.contrib.selectionAnchorController";sl=Sie([yie(1,Ee)],sl);class Lie extends ce{constructor(){super({id:"editor.action.setSelectionAnchor",label:p("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:yi(2089,2080),weight:100}})}run(e,t){var i;return X1(this,void 0,void 0,function*(){(i=sl.get(t))===null||i===void 0||i.setSelectionAnchor()})}}class Die extends ce{constructor(){super({id:"editor.action.goToSelectionAnchor",label:p("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:J1})}run(e,t){var i;return X1(this,void 0,void 0,function*(){(i=sl.get(t))===null||i===void 0||i.goToSelectionAnchor()})}}class kie extends ce{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:p("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:J1,kbOpts:{kbExpr:N.editorTextFocus,primary:yi(2089,2089),weight:100}})}run(e,t){var i;return X1(this,void 0,void 0,function*(){(i=sl.get(t))===null||i===void 0||i.selectFromAnchorToCursor()})}}class xie extends ce{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:p("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:J1,kbOpts:{kbExpr:N.editorTextFocus,primary:9,weight:100}})}run(e,t){var i;return X1(this,void 0,void 0,function*(){(i=sl.get(t))===null||i===void 0||i.cancelSelectionAnchor()})}}tt(sl.ID,sl);ie(Lie);ie(Die);ie(kie);ie(xie);const Iie=T("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},p("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class Eie extends ce{constructor(){super({id:"editor.action.jumpToBracket",label:p("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:3160,weight:100}})}run(e,t){var i;(i=Yo.get(t))===null||i===void 0||i.jumpToBracket()}}class Nie extends ce{constructor(){super({id:"editor.action.selectToBracket",label:p("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var n;let s=!0;i&&i.selectBrackets===!1&&(s=!1),(n=Yo.get(t))===null||n===void 0||n.selectToBracket(s)}}class Tie{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class Yo extends H{constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new mt(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(66),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(66)&&(this._matchBrackets=this._editor.getOption(66),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}static get(e){return e.getContribution(Yo.ID)}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),s=e.bracketPairs.matchBracket(n);let r=null;if(s)s[0].containsPosition(n)&&!s[1].containsPosition(n)?r=s[1].getStartPosition():s[1].containsPosition(n)&&(r=s[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(n);if(a)r=a[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(n);l&&l.range&&(r=l.range.getStartPosition())}}return r?new oe(r.lineNumber,r.column,r.lineNumber,r.column):new oe(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const s=n.getStartPosition();let r=t.bracketPairs.matchBracket(s);if(!r&&(r=t.bracketPairs.findEnclosingBrackets(s),!r)){const c=t.bracketPairs.findNextBracket(s);c&&c.range&&(r=t.bracketPairs.matchBracket(c.range.getStartPosition()))}let a=null,l=null;if(r){r.sort(L.compareRangesUsingStarts);const[c,d]=r;if(a=e?c.getStartPosition():c.getEndPosition(),l=e?d.getEndPosition():d.getStartPosition(),d.containsPosition(s)){const h=a;a=l,l=h}}a&&l&&i.push(new oe(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const s=[];let r=0;for(let h=0,u=e.length;h1&&s.sort(B.compare);const a=[];let l=0,c=0;const d=n.length;for(let h=0,u=s.length;h{const t=o.getColor(A$);t&&e.addRule(`.monaco-editor .bracket-match { background-color: ${t}; }`);const i=o.getColor(z4);i&&e.addRule(`.monaco-editor .bracket-match { border: 1px solid ${i}; }`)});qs.appendMenuItem(M.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:p({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2});class Aie{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,n=this._selection.startColumn,s=this._selection.endColumn;if(!(this._isMovingLeft&&n===1)&&!(!this._isMovingLeft&&s===e.getLineMaxColumn(i)))if(this._isMovingLeft){const r=new L(i,n-1,i,n),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new L(i,s,i,s),a)}else{const r=new L(i,s,i,s+1),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new L(i,n,i,n),a)}}computeCursorState(e,t){return this._isMovingLeft?new oe(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new oe(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class G3 extends ce{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;const i=[],n=t.getSelections();for(const s of n)i.push(new Aie(s,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}class Mie extends G3{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:p("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:N.writable})}}class Rie extends G3{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:p("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:N.writable})}}ie(Mie);ie(Rie);class Oie extends ce{constructor(){super({id:"editor.action.transposeLetters",label:p("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:N.writable,kbOpts:{kbExpr:N.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;const i=t.getModel(),n=[],s=t.getSelections();for(const r of s){if(!r.isEmpty())continue;const a=r.startLineNumber,l=r.startColumn,c=i.getLineMaxColumn(a);if(a===1&&(l===1||l===2&&c===2))continue;const d=l===c?r.getPosition():lt.rightPosition(i,r.getPosition().lineNumber,r.getPosition().column),h=lt.leftPosition(i,d),u=lt.leftPosition(i,h),g=i.getValueInRange(L.fromPositions(u,h)),f=i.getValueInRange(L.fromPositions(h,d)),_=L.fromPositions(u,d);n.push(new zi(_,f+g))}n.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}ie(Oie);var Pie=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Zd="9_cutcopypaste",Fie=jo||document.queryCommandSupported("cut"),Z3=jo||document.queryCommandSupported("copy"),Bie=typeof navigator.clipboard>"u"||Ls?document.queryCommandSupported("paste"):!0;function FN(o){return o.register(),o}const Wie=Fie?FN(new Ug({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:jo?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:M.MenubarEditMenu,group:"2_ccp",title:p({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:M.EditorContext,group:Zd,title:p("actions.clipboard.cutLabel","Cut"),when:N.writable,order:1},{menuId:M.CommandPalette,group:"",title:p("actions.clipboard.cutLabel","Cut"),order:1},{menuId:M.SimpleEditorContext,group:Zd,title:p("actions.clipboard.cutLabel","Cut"),when:N.writable,order:1}]})):void 0,Vie=Z3?FN(new Ug({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:jo?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:M.MenubarEditMenu,group:"2_ccp",title:p({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:M.EditorContext,group:Zd,title:p("actions.clipboard.copyLabel","Copy"),order:2},{menuId:M.CommandPalette,group:"",title:p("actions.clipboard.copyLabel","Copy"),order:1},{menuId:M.SimpleEditorContext,group:Zd,title:p("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;qs.appendMenuItem(M.MenubarEditMenu,{submenu:M.MenubarCopy,title:{value:p("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3});qs.appendMenuItem(M.EditorContext,{submenu:M.EditorContextCopy,title:{value:p("copy as","Copy As"),original:"Copy As"},group:Zd,order:3});qs.appendMenuItem(M.EditorContext,{submenu:M.EditorContextShare,title:{value:p("share","Share"),original:"Share"},group:"11_share",order:-1});const sy=Bie?FN(new Ug({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:jo?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:M.MenubarEditMenu,group:"2_ccp",title:p({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:M.EditorContext,group:Zd,title:p("actions.clipboard.pasteLabel","Paste"),when:N.writable,order:4},{menuId:M.CommandPalette,group:"",title:p("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:M.SimpleEditorContext,group:Zd,title:p("actions.clipboard.pasteLabel","Paste"),when:N.writable,order:4}]})):void 0;class Hie extends ce{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:p("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(33)&&t.getSelection().isEmpty()||(gD.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),gD.forceCopyWithSyntaxHighlighting=!1)}}function Y3(o,e){!o||(o.addImplementation(1e4,"code-editor",(t,i)=>{const n=t.get(ct).getFocusedCodeEditor();if(n&&n.hasTextFocus()){const s=n.getOption(33),r=n.getSelection();return r&&r.isEmpty()&&!s||document.execCommand(e),!0}return!1}),o.addImplementation(0,"generic-dom",(t,i)=>(document.execCommand(e),!0)))}Y3(Wie,"cut");Y3(Vie,"copy");sy&&(sy.addImplementation(1e4,"code-editor",(o,e)=>{const t=o.get(ct),i=o.get(cl),n=t.getFocusedCodeEditor();return n&&n.hasTextFocus()?!document.execCommand("paste")&&Sc?(()=>Pie(void 0,void 0,void 0,function*(){const r=yield i.readText();if(r!==""){const a=im.INSTANCE.get(r);let l=!1,c=null,d=null;a&&(l=n.getOption(33)&&!!a.isFromEmptySelection,c=typeof a.multicursorText<"u"?a.multicursorText:null,d=a.mode),n.trigger("keyboard","paste",{text:r,pasteOnNewLine:l,multicursorText:c,mode:d})}}))():!0:!1}),sy.addImplementation(0,"generic-dom",(o,e)=>(document.execCommand("paste"),!0)));Z3&&ie(Hie);class Ze{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+Ze.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new Ze(this.value+Ze.sep+e)}}Ze.sep=".";Ze.None=new Ze("@@none@@");Ze.Empty=new Ze("");Ze.QuickFix=new Ze("quickfix");Ze.Refactor=new Ze("refactor");Ze.Source=new Ze("source");Ze.SourceOrganizeImports=Ze.Source.append("organizeImports");Ze.SourceFixAll=Ze.Source.append("fixAll");var bn;(function(o){o.Refactor="refactor",o.RefactorPreview="refactor preview",o.Lightbulb="lightbulb",o.Default="other (default)",o.SourceAction="source action",o.QuickFix="quick fix action",o.FixAll="fix all",o.OrganizeImports="organize imports",o.AutoFix="auto fix",o.QuickFixHover="quick fix hover window",o.OnSave="save participants",o.ProblemsView="problems view"})(bn||(bn={}));function zie(o,e){return!(o.include&&!o.include.intersects(e)||o.excludes&&o.excludes.some(t=>Q3(e,t,o.include))||!o.includeSourceActions&&Ze.Source.contains(e))}function Uie(o,e){const t=e.kind?new Ze(e.kind):void 0;return!(o.include&&(!t||!o.include.contains(t))||o.excludes&&t&&o.excludes.some(i=>Q3(t,i,o.include))||!o.includeSourceActions&&t&&Ze.Source.contains(t)||o.onlyIncludePreferredActions&&!e.isPreferred)}function Q3(o,e,t){return!(!e.contains(o)||t&&e.contains(t))}class Nr{constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}static fromUser(e,t){return!e||typeof e!="object"?new Nr(t.kind,t.apply,!1):new Nr(Nr.getKindFromUser(e,t.kind),Nr.getApplyFromUser(e,t.apply),Nr.getPreferredUser(e))}static getApplyFromUser(e,t){switch(typeof e.apply=="string"?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return typeof e.kind=="string"?new Ze(e.kind):t}static getPreferredUser(e){return typeof e.preferred=="boolean"?e.preferred:!1}}var BN=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const X3="editor.action.codeAction",J3="editor.action.refactor",$ie="editor.action.refactor.preview",e7="editor.action.sourceAction",WN="editor.action.organizeImports",VN="editor.action.fixAll";class t7{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t;return BN(this,void 0,void 0,function*(){if(((t=this.provider)===null||t===void 0?void 0:t.resolveCodeAction)&&!this.action.edit){let i;try{i=yield this.provider.resolveCodeAction(this.action,e)}catch(n){Pi(n)}i&&(this.action.edit=i.edit)}return this})}}class HN extends H{constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(HN.codeActionsComparator),this.validActions=this.allActions.filter(({action:n})=>!n.disabled)}static codeActionsComparator({action:e},{action:t}){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:rn(e.diagnostics)?rn(t.diagnostics)?e.diagnostics[0].message.localeCompare(t.diagnostics[0].message):-1:rn(t.diagnostics)?1:0}get hasAutoFix(){return this.validActions.some(({action:e})=>!!e.kind&&Ze.QuickFix.contains(new Ze(e.kind))&&!!e.isPreferred)}}const hR={actions:[],documentation:void 0};function zN(o,e,t,i,n,s){var r;const a=i.filter||{},l={only:(r=a.include)===null||r===void 0?void 0:r.value,trigger:i.type},c=new TN(e,s),d=jie(o,e,a),h=new Q,u=d.map(f=>BN(this,void 0,void 0,function*(){try{n.report(f);const _=yield f.provideCodeActions(e,t,l,c.token);if(_&&h.add(_),c.token.isCancellationRequested)return hR;const b=((_==null?void 0:_.actions)||[]).filter(C=>C&&Uie(a,C)),v=Kie(f,b,a.include);return{actions:b.map(C=>new t7(C,f)),documentation:v}}catch(_){if(ea(_))throw _;return Pi(_),hR}})),g=o.onDidChange(()=>{const f=o.all(e);Ss(f,d)||c.cancel()});return Promise.all(u).then(f=>{const _=f.map(v=>v.actions).flat(),b=i_(f.map(v=>v.documentation));return new HN(_,b,h)}).finally(()=>{g.dispose(),c.dispose()})}function jie(o,e,t){return o.all(e).filter(i=>i.providedCodeActionKinds?i.providedCodeActionKinds.some(n=>zie(t,new Ze(n))):!0)}function Kie(o,e,t){if(!o.documentation)return;const i=o.documentation.map(n=>({kind:new Ze(n.kind),command:n.command}));if(t){let n;for(const s of i)s.kind.contains(t)&&(n?n.kind.contains(s.kind)&&(n=s):n=s);if(n)return n==null?void 0:n.command}for(const n of e)if(!!n.kind){for(const s of i)if(s.kind.contains(new Ze(n.kind)))return s.command}}Xe.registerCommand("_executeCodeActionProvider",function(o,e,t,i,n){return BN(this,void 0,void 0,function*(){if(!(e instanceof _e))throw Ko();const{codeActionProvider:s}=o.get(de),r=o.get(Ut).getModel(e);if(!r)throw Ko();const a=oe.isISelection(t)?oe.liftSelection(t):L.isIRange(t)?r.validateRange(t):void 0;if(!a)throw Ko();const l=typeof i=="string"?new Ze(i):void 0,c=yield zN(s,r,a,{type:1,triggerAction:bn.Default,filter:{includeSourceActions:!0,include:l}},Ch.None,ze.None),d=[],h=Math.min(c.validActions.length,typeof n=="number"?n:0);for(let u=0;uu.action)}finally{setTimeout(()=>c.dispose(),100)}})});var qie=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Gie=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let os=class Wk{constructor(e,t){this._messageWidget=new _n,this._messageListeners=new Q,this._editor=e,this._visible=Wk.MESSAGE_VISIBLE.bindTo(t)}static get(e){return e.getContribution(Wk.ID)}dispose(){this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){Gi(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new uR(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(new xs(()=>this.closeMessage(),3e3));let i;this._messageListeners.add(this._editor.onMouseMove(n=>{!n.target.position||(i?i.containsPosition(n.target.position)||this.closeMessage():i=new L(t.lineNumber-3,1,n.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(uR.fadeOut(this._messageWidget.value))}};os.ID="editor.contrib.messageController";os.MESSAGE_VISIBLE=new le("messageVisible",!1,p("messageVisible","Whether the editor is currently showing an inline message"));os=qie([Gie(1,Ee)],os);const Zie=xi.bindToContribution(os.get);ee(new Zie({id:"leaveEditorMessage",precondition:os.MESSAGE_VISIBLE,handler:o=>o.closeMessage(),kbOpts:{weight:100+30,primary:9}}));class uR{constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const s=document.createElement("div");s.classList.add("anchor","top"),this._domNode.appendChild(s);const r=document.createElement("div");r.classList.add("message"),r.textContent=n,this._domNode.appendChild(r);const a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",e===2)}}tt(os.ID,os);var i7=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},_a=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Yie=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Jg={Visible:new le("CodeActionMenuVisible",!1,p("CodeActionMenuVisible","Whether the code action list widget is visible"))};class oy extends is{constructor(e,t){super(e.command?e.command.id:e.title,Qie(e.title),void 0,!e.disabled,t),this.action=e}}function Qie(o){return o.replace(/\r\n|\r|\n/g," ")}const Xie="codeActionWidget",ry=26;let Vk=class{constructor(e,t){this.acceptKeybindings=e,this.keybindingService=t}get templateId(){return Xie}renderTemplate(e){const t=Object.create(null);return t.disposables=[],t.root=e,t.text=document.createElement("span"),e.append(t.text),t}renderElement(e,t,i){const n=i,s=e.title,r=e.isEnabled,a=e.isSeparator,l=e.isDocumentation;n.text.textContent=s,r?n.root.classList.remove("option-disabled"):(n.root.classList.add("option-disabled"),n.root.style.backgroundColor="transparent !important"),a&&(n.root.classList.add("separator"),n.root.style.height="10px"),l||(()=>{var d,h;const[u,g]=this.acceptKeybindings;n.root.title=p({key:"label",comment:['placeholders are keybindings, e.g "F2 to Refactor, Shift+F2 to Preview"']},"{0} to Refactor, {1} to Preview",(d=this.keybindingService.lookupKeybinding(u))===null||d===void 0?void 0:d.getLabel(),(h=this.keybindingService.lookupKeybinding(g))===null||h===void 0?void 0:h.getLabel())})()}disposeTemplate(e){e.disposables=nt(e.disposables)}};Vk=i7([_a(1,_i)],Vk);let uC=class Hk extends H{constructor(e,t,i,n,s,r,a,l,c,d){super(),this._editor=e,this._delegate=t,this._contextMenuService=i,this._languageFeaturesService=s,this._telemetryService=r,this._configurationService=l,this._contextViewService=c,this._contextKeyService=d,this._showingActions=this._register(new _n),this.codeActionList=this._register(new _n),this.options=[],this._visible=!1,this.viewItems=[],this.hasSeperator=!1,this._keybindingResolver=new ew({getKeybindings:()=>n.getKeybindings()}),this._ctxMenuWidgetVisible=Jg.Visible.bindTo(this._contextKeyService),this.listRenderer=new Vk(["onEnterSelectCodeAction","onEnterSelectCodeActionWithPreview"],n)}get isVisible(){return this._visible}isCodeActionWidgetEnabled(e){return this._configurationService.getValue("editor.experimental.useCustomCodeActionMenu",{resource:e.uri})}_onListSelection(e){e.elements.length&&e.elements.forEach(t=>{t.isEnabled&&(t.action.run(),this.hideCodeActionWidget())})}_onListHover(e){var t,i,n,s;e.element?!((i=e.element)===null||i===void 0)&&i.isEnabled?((n=this.codeActionList.value)===null||n===void 0||n.setFocus([e.element.index]),this.focusedEnabledItem=this.viewItems.indexOf(e.element),this.currSelectedItem=e.element.index):(this.currSelectedItem=void 0,(s=this.codeActionList.value)===null||s===void 0||s.setFocus([e.element.index])):(this.currSelectedItem=void 0,(t=this.codeActionList.value)===null||t===void 0||t.setFocus([]))}renderCodeActionMenuList(e,t){var i;const n=new Q,s=document.createElement("div"),r=document.createElement("div");this.block=e.appendChild(r),this.block.classList.add("context-view-block"),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",n.add(G(this.block,ae.MOUSE_DOWN,u=>u.stopPropagation())),s.id="codeActionMenuWidget",s.classList.add("codeActionMenuWidget"),e.appendChild(s),this.codeActionList.value=new rr("codeActionWidget",s,{getHeight(u){return u.isSeparator?10:ry},getTemplateId(u){return"codeActionWidget"}},[this.listRenderer],{keyboardSupport:!1}),n.add(this.codeActionList.value.onMouseOver(u=>this._onListHover(u))),n.add(this.codeActionList.value.onDidChangeFocus(u=>{var g;return(g=this.codeActionList.value)===null||g===void 0?void 0:g.domFocus()})),n.add(this.codeActionList.value.onDidChangeSelection(u=>this._onListSelection(u))),n.add(this._editor.onDidLayoutChange(u=>this.hideCodeActionWidget())),t.forEach((u,g)=>{const f=u.class==="separator";let _=!1;u instanceof oy&&(_=u.action.kind===Hk.documentationID),f&&(this.hasSeperator=!0);const b={title:u.label,detail:u.tooltip,action:t[g],isEnabled:u.enabled,isSeparator:f,index:g,isDocumentation:_};u.enabled&&this.viewItems.push(b),this.options.push(b)}),this.codeActionList.value.splice(0,this.codeActionList.value.length,this.options);const a=this.hasSeperator?(t.length-1)*ry+10:t.length*ry;s.style.height=String(a)+"px",this.codeActionList.value.layout(a);const l=[];this.options.forEach((u,g)=>{var f,_;if(!this.codeActionList.value)return;const b=(_=document.getElementById((f=this.codeActionList.value)===null||f===void 0?void 0:f.getElementID(g)))===null||_===void 0?void 0:_.getElementsByTagName("span")[0].offsetWidth;l.push(Number(b))});const c=Math.max(...l);s.style.width=c+52+"px",(i=this.codeActionList.value)===null||i===void 0||i.layout(a,c),this.viewItems.length<1||this.viewItems.every(u=>u.isDocumentation)?this.currSelectedItem=void 0:(this.focusedEnabledItem=0,this.currSelectedItem=this.viewItems[0].index,this.codeActionList.value.setFocus([this.currSelectedItem])),this.codeActionList.value.domFocus();const d=Od(e),h=d.onDidBlur(()=>{this.hideCodeActionWidget()});return n.add(h),n.add(d),this._ctxMenuWidgetVisible.set(!0),n}focusPrevious(){var e;if(typeof this.focusedEnabledItem>"u")this.focusedEnabledItem=this.viewItems[0].index;else if(this.viewItems.length<1)return!1;const t=this.focusedEnabledItem;let i;do this.focusedEnabledItem=this.focusedEnabledItem-1,this.focusedEnabledItem<0&&(this.focusedEnabledItem=this.viewItems.length-1),i=this.viewItems[this.focusedEnabledItem],(e=this.codeActionList.value)===null||e===void 0||e.setFocus([i.index]),this.currSelectedItem=i.index;while(this.focusedEnabledItem!==t&&(!i.isEnabled||i.action.id===ln.ID));return!0}focusNext(){var e;if(typeof this.focusedEnabledItem>"u")this.focusedEnabledItem=this.viewItems.length-1;else if(this.viewItems.length<1)return!1;const t=this.focusedEnabledItem;let i;do this.focusedEnabledItem=(this.focusedEnabledItem+1)%this.viewItems.length,i=this.viewItems[this.focusedEnabledItem],(e=this.codeActionList.value)===null||e===void 0||e.setFocus([i.index]),this.currSelectedItem=i.index;while(this.focusedEnabledItem!==t&&(!i.isEnabled||i.action.id===ln.ID));return!0}navigateListWithKeysUp(){this.focusPrevious()}navigateListWithKeysDown(){this.focusNext()}onEnterSet(){var e;typeof this.currSelectedItem=="number"&&((e=this.codeActionList.value)===null||e===void 0||e.setSelection([this.currSelectedItem]))}dispose(){super.dispose()}hideCodeActionWidget(){this._ctxMenuWidgetVisible.reset(),this.options=[],this.viewItems=[],this.focusedEnabledItem=0,this.currSelectedItem=void 0,this.hasSeperator=!1,this._contextViewService.hideContextView({source:this})}codeActionTelemetry(e,t,i){this._telemetryService.publicLog2("codeAction.applyCodeAction",{codeActionFrom:e,validCodeActions:i.validActions.length,cancelled:t})}show(e,t,i,n){return Yie(this,void 0,void 0,function*(){const s=this._editor.getModel();if(!s)return;const r=n.includeDisabledActions?t.allActions:t.validActions;if(!r.length){this._visible=!1;return}if(!this._editor.getDomNode())throw this._visible=!1,QO();this._visible=!0,this._showingActions.value=t;const a=this.getMenuActions(e,r,t.documentation),l=B.isIPosition(i)?this._toCoords(i):i||{x:0,y:0},c=this._keybindingResolver.getResolver(),d=this._editor.getOption(117);this.isCodeActionWidgetEnabled(s)?this._contextViewService.showContextView({getAnchor:()=>l,render:h=>this.renderCodeActionMenuList(h,a),onHide:h=>{const u=n.fromLightbulb?bn.Lightbulb:e.triggerAction;this.codeActionTelemetry(u,h,t),this._visible=!1,this._editor.focus()}},this._editor.getDomNode(),!1):this._contextMenuService.showContextMenu({domForShadowRoot:d?this._editor.getDomNode():void 0,getAnchor:()=>l,getActions:()=>a,onHide:h=>{const u=n.fromLightbulb?bn.Lightbulb:e.triggerAction;this.codeActionTelemetry(u,h,t),this._visible=!1,this._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:h=>h instanceof oy?c(h.action):void 0})})}getMenuActions(e,t,i){var n,s;const r=d=>new oy(d.action,()=>this._delegate.onSelectCodeAction(d,e)),a=t.map(r),l=[...i],c=this._editor.getModel();if(c&&a.length)for(const d of this._languageFeaturesService.codeActionProvider.all(c))d._getAdditionalMenuItems&&l.push(...d._getAdditionalMenuItems({trigger:e.type,only:(s=(n=e.filter)===null||n===void 0?void 0:n.include)===null||s===void 0?void 0:s.value},t.map(h=>h.action)));return l.length&&a.push(new ln,...l.map(d=>r(new t7({title:d.title,command:d,kind:Hk.documentationID},void 0)))),a}_toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),i=on(this._editor.getDomNode()),n=i.left+t.left,s=i.top+t.top+t.height;return{x:n,y:s}}};uC.documentationID="_documentation";uC=i7([_a(2,ll),_a(3,_i),_a(4,de),_a(5,sr),_a(6,Ct),_a(7,ot),_a(8,vh),_a(9,Ee)],uC);class ew{constructor(e){this._keybindingProvider=e}getResolver(){const e=new Ju(()=>this._keybindingProvider.getKeybindings().filter(t=>ew.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let i=t.commandArgs;return t.command===WN?i={kind:Ze.SourceOrganizeImports.value}:t.command===VN&&(i={kind:Ze.SourceFixAll.value}),Object.assign({resolvedKeybinding:t.resolvedKeybinding},Nr.fromUser(i,{kind:Ze.None,apply:"never"}))}));return t=>{if(t.kind){const i=this.bestKeybindingForCodeAction(t,e.getValue());return i==null?void 0:i.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new Ze(e.kind);return t.filter(n=>n.kind.contains(i)).filter(n=>n.preferred?e.isPreferred:!0).reduceRight((n,s)=>n?n.kind.contains(s.kind)?s:n:s,void 0)}}ew.codeActionCommands=[J3,X3,e7,WN,VN];var Jie=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},ene=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Ip;(function(o){o.Hidden={type:0};class e{constructor(i,n,s,r){this.actions=i,this.trigger=n,this.editorPosition=s,this.widgetPosition=r,this.type=1}}o.Showing=e})(Ip||(Ip={}));let gC=class n7 extends H{constructor(e,t,i,n){super(),this._editor=e,this._quickFixActionId=t,this._preferredFixActionId=i,this._keybindingService=n,this._onClick=this._register(new R),this.onClick=this._onClick.event,this._state=Ip.Hidden,this._domNode=document.createElement("div"),this._domNode.className=m.lightBulb.classNames,this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(s=>{const r=this._editor.getModel();(this.state.type!==1||!r||this.state.editorPosition.lineNumber>=r.getLineCount())&&this.hide()})),ft.ignoreTarget(this._domNode),this._register(zH(this._domNode,s=>{if(this.state.type!==1)return;this._editor.focus(),s.preventDefault();const{top:r,height:a}=on(this._domNode),l=this._editor.getOption(61);let c=Math.floor(l/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber{(s.buttons&1)===1&&this.hide()})),this._register(this._editor.onDidChangeConfiguration(s=>{s.hasChanged(59)&&!this._editor.getOption(59).enabled&&this.hide()})),this._updateLightBulbTitleAndIcon(),this._register(this._keybindingService.onDidUpdateKeybindings(this._updateLightBulbTitleAndIcon,this))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return this._state.type===1?this._state.widgetPosition:null}update(e,t,i){if(e.validActions.length<=0)return this.hide();const n=this._editor.getOptions();if(!n.get(59).enabled)return this.hide();const s=this._editor.getModel();if(!s)return this.hide();const{lineNumber:r,column:a}=s.validatePosition(i),l=s.getOptions().tabSize,c=n.get(46),d=s.getLineContent(r),h=S1(d,l),u=c.spaceWidth*h>22,g=_=>_>2&&this._editor.getTopForLineNumber(_)===this._editor.getTopForLineNumber(_-1);let f=r;if(!u){if(r>1&&!g(r-1))f-=1;else if(!g(r+1))f+=1;else if(a*c.spaceWidth<22)return this.hide()}this.state=new Ip.Showing(e,t,i,{position:{lineNumber:f,column:1},preference:n7._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state=Ip.Hidden,this._editor.layoutContentWidget(this)}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this.state.type===1&&this.state.actions.hasAutoFix){this._domNode.classList.remove(...m.lightBulb.classNamesArray),this._domNode.classList.add(...m.lightbulbAutofix.classNamesArray);const t=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(t){this.title=p("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",t.getLabel());return}}this._domNode.classList.remove(...m.lightbulbAutofix.classNamesArray),this._domNode.classList.add(...m.lightBulb.classNamesArray);const e=this._keybindingService.lookupKeybinding(this._quickFixActionId);e?this.title=p("codeActionWithKb","Show Code Actions ({0})",e.getLabel()):this.title=p("codeAction","Show Code Actions")}set title(e){this._domNode.title=e}};gC._posPref=[0];gC=Jie([ene(3,_i)],gC);Et((o,e)=>{var t;const i=(t=o.getColor(wi))===null||t===void 0?void 0:t.transparent(.7),n=o.getColor(nU);n&&e.addRule(` .monaco-editor .contentWidgets ${m.lightBulb.cssSelector} { color: ${n}; background-color: ${i}; @@ -795,4 +795,4 @@ The flag will not be saved for the future. `+hi.outroMsg,this._contentDomNode.domNode.appendChild(CF(n)),this._contentDomNode.domNode.setAttribute("aria-label",n)}hide(){!this._isVisible||(this._isVisible=!1,this._isVisibleKey.reset(),this._domNode.setDisplay("none"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode.domNode.tabIndex=-1,Si(this._contentDomNode.domNode),this._editor.focus())}_layout(){const e=this._editor.getLayoutInfo(),t=Math.max(5,Math.min(V0.WIDTH,e.width-40)),i=Math.max(5,Math.min(V0.HEIGHT,e.height-40));this._domNode.setWidth(t),this._domNode.setHeight(i);const n=Math.round((e.height-i)/2);this._domNode.setTop(n);const s=Math.round((e.width-t)/2);this._domNode.setLeft(s)}};Bg.ID="editor.contrib.accessibilityHelpWidget";Bg.WIDTH=500;Bg.HEIGHT=300;Bg=_8([W0(1,Ee),W0(2,_i),W0(3,io)],Bg);class Vhe extends ce{constructor(){super({id:"editor.action.showAccessibilityHelp",label:hi.showAccessibilityHelpAction,alias:"Show Accessibility Help",precondition:void 0,kbOpts:{primary:571,weight:100,linux:{primary:1595,secondary:[571]}}})}run(e,t){const i=dh.get(t);i&&i.show()}}tt(dh.ID,dh);ie(Vhe);const Hhe=xi.bindToContribution(dh.get);ee(new Hhe({id:"closeAccessibilityHelp",precondition:b8,handler:o=>o.hide(),kbOpts:{weight:100+100,kbExpr:N.focus,primary:9,secondary:[1033]}}));Et((o,e)=>{const t=o.getColor(li);t&&e.addRule(`.monaco-editor .accessibilityHelpWidget { background-color: ${t}; }`);const i=o.getColor(zo);i&&e.addRule(`.monaco-editor .accessibilityHelpWidget { color: ${i}; }`);const n=o.getColor(Ho);n&&e.addRule(`.monaco-editor .accessibilityHelpWidget { box-shadow: 0 2px 8px ${n}; }`);const s=o.getColor(We);s&&e.addRule(`.monaco-editor .accessibilityHelpWidget { border: 2px solid ${s}; }`)});class Jx extends H{constructor(e){super(),this.editor=e,this.widget=null,Ur&&(this._register(e.onDidChangeConfiguration(()=>this.update())),this.update())}update(){const e=!this.editor.getOption(83);!this.widget&&e?this.widget=new Tw(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}}Jx.ID="editor.contrib.iPadShowKeyboard";class Tw extends H{constructor(e){super(),this.editor=e,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._register(G(this._domNode,"touchstart",t=>{this.editor.focus()})),this._register(G(this._domNode,"focus",t=>{this.editor.focus()})),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return Tw.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}}Tw.ID="editor.contrib.ShowKeyboardWidget";tt(Jx.ID,Jx);var zhe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},SO=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Wg=class C8 extends H{constructor(e,t,i){super(),this._editor=e,this._languageService=i,this._widget=null,this._register(this._editor.onDidChangeModel(n=>this.stop())),this._register(this._editor.onDidChangeModelLanguage(n=>this.stop())),this._register(Wt.onDidChange(n=>this.stop())),this._register(this._editor.onKeyUp(n=>n.keyCode===9&&this.stop()))}static get(e){return e.getContribution(C8.ID)}dispose(){this.stop(),super.dispose()}launch(){this._widget||!this._editor.hasModel()||(this._widget=new Aw(this._editor,this._languageService))}stop(){this._widget&&(this._widget.dispose(),this._widget=null)}};Wg.ID="editor.contrib.inspectTokens";Wg=zhe([SO(1,Es),SO(2,Ht)],Wg);class Uhe extends ce{constructor(){super({id:"editor.action.inspectTokens",label:zD.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})}run(e,t){const i=Wg.get(t);i&&i.launch()}}function $he(o){let e="";for(let t=0,i=o.length;tng,tokenize:(n,s,r)=>AI(e,r),tokenizeEncoded:(n,s,r)=>qC(i,r)}}class Aw extends H{constructor(e,t){super(),this.allowEditorOverflow=!0,this._editor=e,this._languageService=t,this._model=this._editor.getModel(),this._domNode=document.createElement("div"),this._domNode.className="tokens-inspect-widget",this._tokenizationSupport=jhe(this._languageService.languageIdCodec,this._model.getLanguageId()),this._compute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition(i=>this._compute(this._editor.getPosition()))),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),super.dispose()}getId(){return Aw._ID}_compute(e){const t=this._getTokensAtLine(e.lineNumber);let i=0;for(let l=t.tokens1.length-1;l>=0;l--){const c=t.tokens1[l];if(e.column-1>=c.offset){i=l;break}}let n=0;for(let l=t.tokens2.length>>>1;l>=0;l--)if(e.column-1>=t.tokens2[l<<1]){n=l;break}const s=this._model.getLineContent(e.lineNumber);let r="";if(i{const t=o.getColor(aE);if(t){const s=cn(o.type)?2:1;e.addRule(`.monaco-editor .tokens-inspect-widget { border: ${s}px solid ${t}; }`),e.addRule(`.monaco-editor .tokens-inspect-widget .tokens-inspect-separator { background-color: ${t}; }`)}const i=o.getColor(Bd);i&&e.addRule(`.monaco-editor .tokens-inspect-widget { background-color: ${i}; }`);const n=o.getColor(rE);n&&e.addRule(`.monaco-editor .tokens-inspect-widget { color: ${n}; }`)});var Khe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},yO=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let MC=class H0{constructor(e,t){this.quickInputService=e,this.keybindingService=t,this.registry=zt.as(yh.Quickaccess)}provide(e){const t=new Q;return t.add(e.onDidAccept(()=>{const[i]=e.selectedItems;i&&this.quickInputService.quickAccess.show(i.prefix,{preserveValue:!0})})),t.add(e.onDidChangeValue(i=>{const n=this.registry.getQuickAccessProvider(i.substr(H0.PREFIX.length));n&&n.prefix&&n.prefix!==H0.PREFIX&&this.quickInputService.quickAccess.show(n.prefix,{preserveValue:!0})})),e.items=this.getQuickAccessProviders(),t}getQuickAccessProviders(){const e=[];for(const t of this.registry.getQuickAccessProviders().sort((i,n)=>i.prefix.localeCompare(n.prefix)))if(t.prefix!==H0.PREFIX)for(const i of t.helpEntries){const n=i.prefix||t.prefix,s=n||"\u2026";e.push({prefix:n,label:s,keybinding:i.commandId?this.keybindingService.lookupKeybinding(i.commandId):void 0,ariaLabel:p("helpPickAriaLabel","{0}, {1}",s,i.description),description:i.description})}return e}};MC.PREFIX="?";MC=Khe([yO(0,dl),yO(1,_i)],MC);zt.as(yh.Quickaccess).registerQuickAccessProvider({ctor:MC,prefix:"",helpEntries:[{description:UD.helpQuickAccessActionLabel}]});class w8{constructor(e){this.options=e,this.rangeHighlightDecorationId=void 0}provide(e,t){var i;const n=new Q;e.canAcceptInBackground=!!(!((i=this.options)===null||i===void 0)&&i.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;const s=n.add(new _n);return s.value=this.doProvide(e,t),n.add(this.onDidActiveTextEditorControlChange(()=>{s.value=void 0,s.value=this.doProvide(e,t)})),n}doProvide(e,t){const i=new Q,n=this.activeTextEditorControl;if(n&&this.canProvideWithTextEditor(n)){const s={editor:n},r=u3(n);if(r){let a=Wn(n.saveViewState());i.add(r.onDidChangeCursorPosition(()=>{a=Wn(n.saveViewState())})),s.restoreViewState=()=>{a&&n===this.activeTextEditorControl&&n.restoreViewState(a)},i.add(Xa(t.onCancellationRequested)(()=>{var l;return(l=s.restoreViewState)===null||l===void 0?void 0:l.call(s)}))}i.add(Be(()=>this.clearDecorations(n))),i.add(this.provideWithTextEditor(s,e,t))}else i.add(this.provideWithoutTextEditor(e,t));return i}canProvideWithTextEditor(e){return!0}gotoLocation({editor:e},t){e.setSelection(t.range),e.revealRangeInCenter(t.range,0),t.preserveFocus||e.focus()}getModel(e){var t;return h3(e)?(t=e.getModel())===null||t===void 0?void 0:t.modified:e.getModel()}addDecorations(e,t){e.changeDecorations(i=>{const n=[];this.rangeHighlightDecorationId&&(n.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),n.push(this.rangeHighlightDecorationId.rangeHighlightId),this.rangeHighlightDecorationId=void 0);const s=[{range:t,options:{description:"quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"quick-access-range-highlight-overview",overviewRuler:{color:Qt(H$),position:Zs.Full}}}],[r,a]=i.deltaDecorations(n,s);this.rangeHighlightDecorationId={rangeHighlightId:r,overviewRulerDecorationId:a}})}clearDecorations(e){const t=this.rangeHighlightDecorationId;t&&(e.changeDecorations(i=>{i.deltaDecorations([t.overviewRulerDecorationId,t.rangeHighlightId],[])}),this.rangeHighlightDecorationId=void 0)}}class Mw extends w8{constructor(){super({canAcceptInBackground:!0})}provideWithoutTextEditor(e){const t=p("cannotRunGotoLine","Open a text editor first to go to a line.");return e.items=[{label:t}],e.ariaLabel=t,H.None}provideWithTextEditor(e,t,i){const n=e.editor,s=new Q;s.add(t.onDidAccept(l=>{const[c]=t.selectedItems;if(c){if(!this.isValidLineNumber(n,c.lineNumber))return;this.gotoLocation(e,{range:this.toRange(c.lineNumber,c.column),keyMods:t.keyMods,preserveFocus:l.inBackground}),l.inBackground||t.hide()}}));const r=()=>{const l=this.parsePosition(n,t.value.trim().substr(Mw.PREFIX.length)),c=this.getPickLabel(n,l.lineNumber,l.column);if(t.items=[{lineNumber:l.lineNumber,column:l.column,label:c}],t.ariaLabel=c,!this.isValidLineNumber(n,l.lineNumber)){this.clearDecorations(n);return}const d=this.toRange(l.lineNumber,l.column);n.revealRangeInCenter(d,0),this.addDecorations(n,d)};r(),s.add(t.onDidChangeValue(()=>r()));const a=u3(n);return a&&a.getOptions().get(62).renderType===2&&(a.updateOptions({lineNumbers:"on"}),s.add(Be(()=>a.updateOptions({lineNumbers:"relative"})))),s}toRange(e=1,t=1){return{startLineNumber:e,startColumn:t,endLineNumber:e,endColumn:t}}parsePosition(e,t){const i=t.split(/,|:|#/).map(s=>parseInt(s,10)).filter(s=>!isNaN(s)),n=this.lineCount(e)+1;return{lineNumber:i[0]>0?i[0]:n+i[0],column:i[1]}}getPickLabel(e,t,i){if(this.isValidLineNumber(e,t))return this.isValidColumn(e,t,i)?p("gotoLineColumnLabel","Go to line {0} and character {1}.",t,i):p("gotoLineLabel","Go to line {0}.",t);const n=e.getPosition()||{lineNumber:1,column:1},s=this.lineCount(e);return s>1?p("gotoLineLabelEmptyWithLimit","Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.",n.lineNumber,n.column,s):p("gotoLineLabelEmpty","Current Line: {0}, Character: {1}. Type a line number to navigate to.",n.lineNumber,n.column)}isValidLineNumber(e,t){return!t||typeof t!="number"?!1:t>0&&t<=this.lineCount(e)}isValidColumn(e,t,i){if(!i||typeof i!="number")return!1;const n=this.getModel(e);if(!n)return!1;const s={lineNumber:t,column:i};return n.validatePosition(s).equals(s)}lineCount(e){var t,i;return(i=(t=this.getModel(e))===null||t===void 0?void 0:t.getLineCount())!==null&&i!==void 0?i:0}}Mw.PREFIX=":";var qhe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ghe=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Jm=class extends Mw{constructor(e){super(),this.editorService=e,this.onDidActiveTextEditorControlChange=ge.None}get activeTextEditorControl(){return Wn(this.editorService.getFocusedCodeEditor())}};Jm=qhe([Ghe(0,ct)],Jm);class V_ extends ce{constructor(){super({id:V_.ID,label:qv.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:2085,mac:{primary:293},weight:100}})}run(e){e.get(dl).quickAccess.show(Jm.PREFIX)}}V_.ID="editor.action.gotoLine";ie(V_);zt.as(yh.Quickaccess).registerQuickAccessProvider({ctor:Jm,prefix:Jm.PREFIX,helpEntries:[{description:qv.gotoLineActionLabel,commandId:V_.ID}]});const S8=[void 0,[]];function Fy(o,e,t=0,i=0){const n=e;return n.values&&n.values.length>1?Zhe(o,n.values,t,i):y8(o,e,t,i)}function Zhe(o,e,t,i){let n=0;const s=[];for(const r of e){const[a,l]=y8(o,r,t,i);if(typeof a!="number")return S8;n+=a,s.push(...l)}return[n,Yhe(s)]}function y8(o,e,t,i){const n=mg(e.original,e.originalLowercase,t,o,o.toLowerCase(),i,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return n?[n[0],E1(n)]:S8}Object.freeze({score:0});function Yhe(o){const e=o.sort((n,s)=>n.start-s.start),t=[];let i;for(const n of e)!i||!Qhe(i,n)?(i=n,t.push(n)):(i.start=Math.min(i.start,n.start),i.end=Math.max(i.end,n.end));return t}function Qhe(o,e){return!(o.end=0,r=LO(o);let a;const l=o.split(L8);if(l.length>1)for(const c of l){const d=LO(c),{pathNormalized:h,normalized:u,normalizedLowercase:g}=DO(c);u&&(a||(a=[]),a.push({original:c,originalLowercase:c.toLowerCase(),pathNormalized:h,normalized:u,normalizedLowercase:g,expectContiguousMatch:d}))}return{original:o,originalLowercase:e,pathNormalized:t,normalized:i,normalizedLowercase:n,values:a,containsPathSeparator:s,expectContiguousMatch:r}}function DO(o){let e;Yi?e=o.replace(/\//g,Br):e=o.replace(/\\/g,Br);const t=kB(e).replace(/\s|"/g,"");return{pathNormalized:e,normalized:t,normalizedLowercase:t.toLowerCase()}}function kO(o){return Array.isArray(o)?eI(o.map(e=>e.original).join(L8)):eI(o.original)}var Xhe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},xO=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Wf=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let Co=class tI extends w8{constructor(e,t,i=Object.create(null)){super(i),this._languageFeaturesService=e,this._outlineModelService=t,this.options=i,this.options.canAcceptInBackground=!0}provideWithoutTextEditor(e){return this.provideLabelPick(e,p("cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),H.None}provideWithTextEditor(e,t,i){const n=e.editor,s=this.getModel(n);return s?this._languageFeaturesService.documentSymbolProvider.has(s)?this.doProvideWithEditorSymbols(e,s,t,i):this.doProvideWithoutEditorSymbols(e,s,t,i):H.None}doProvideWithoutEditorSymbols(e,t,i,n){const s=new Q;return this.provideLabelPick(i,p("cannotRunGotoSymbolWithoutSymbolProvider","The active text editor does not provide symbol information.")),Wf(this,void 0,void 0,function*(){!(yield this.waitForLanguageSymbolRegistry(t,s))||n.isCancellationRequested||s.add(this.doProvideWithEditorSymbols(e,t,i,n))}),s}provideLabelPick(e,t){e.items=[{label:t,index:0,kind:14}],e.ariaLabel=t}waitForLanguageSymbolRegistry(e,t){return Wf(this,void 0,void 0,function*(){if(this._languageFeaturesService.documentSymbolProvider.has(e))return!0;const i=new RI,n=t.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>{this._languageFeaturesService.documentSymbolProvider.has(e)&&(n.dispose(),i.complete(!0))}));return t.add(Be(()=>i.complete(!1))),i.p})}doProvideWithEditorSymbols(e,t,i,n){var s;const r=e.editor,a=new Q;a.add(i.onDidAccept(u=>{const[g]=i.selectedItems;g&&g.range&&(this.gotoLocation(e,{range:g.range.selection,keyMods:i.keyMods,preserveFocus:u.inBackground}),u.inBackground||i.hide())})),a.add(i.onDidTriggerItemButton(({item:u})=>{u&&u.range&&(this.gotoLocation(e,{range:u.range.selection,keyMods:i.keyMods,forceSideBySide:!0}),i.hide())}));const l=this.getDocumentSymbols(t,n);let c;const d=u=>Wf(this,void 0,void 0,function*(){c==null||c.dispose(!0),i.busy=!1,c=new Qi(n),i.busy=!0;try{const g=eI(i.value.substr(tI.PREFIX.length).trim()),f=yield this.doGetSymbolPicks(l,g,void 0,c.token);if(n.isCancellationRequested)return;if(f.length>0){if(i.items=f,u&&g.original.length===0){const _=j0(f,b=>Boolean(b.type!=="separator"&&b.range&&L.containsPosition(b.range.decoration,u)));_&&(i.activeItems=[_])}}else g.original.length>0?this.provideLabelPick(i,p("noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(i,p("noSymbolResults","No editor symbols"))}finally{n.isCancellationRequested||(i.busy=!1)}});a.add(i.onDidChangeValue(()=>d(void 0))),d((s=r.getSelection())===null||s===void 0?void 0:s.getPosition());let h=2;return a.add(i.onDidChangeActive(()=>{const[u]=i.activeItems;if(u&&u.range){if(h-- >0)return;r.revealRangeInCenter(u.range.selection,0),this.addDecorations(r,u.range.decoration)}})),a}doGetSymbolPicks(e,t,i,n){return Wf(this,void 0,void 0,function*(){const s=yield e;if(n.isCancellationRequested)return[];const r=t.original.indexOf(tI.SCOPE_PREFIX)===0,a=r?1:0;let l,c;t.values&&t.values.length>1?(l=kO(t.values[0]),c=kO(t.values.slice(1))):l=t;const d=[];for(let g=0;ga){let D=!1;if(l!==t&&([w,S]=Fy(b,Object.assign(Object.assign({},t),{values:void 0}),a,v),typeof w=="number"&&(D=!0)),typeof w!="number"&&([w,S]=Fy(b,l,a,v),typeof w!="number"))continue;if(!D&&c){if(C&&c.original.length>0&&([k,x]=Fy(C,c)),typeof k!="number")continue;typeof w=="number"&&(w+=k)}}const y=f.tags&&f.tags.indexOf(1)>=0;d.push({index:g,kind:f.kind,score:w,label:b,ariaLabel:_,description:C,highlights:y?void 0:{label:S,description:x},range:{selection:L.collapseToStart(f.selectionRange),decoration:f.range},strikethrough:y,buttons:(()=>{var D,I;const O=!((D=this.options)===null||D===void 0)&&D.openSideBySideDirection?(I=this.options)===null||I===void 0?void 0:I.openSideBySideDirection():void 0;if(!!O)return[{iconClass:O==="right"?m.splitHorizontal.classNames:m.splitVertical.classNames,tooltip:O==="right"?p("openToSide","Open to the Side"):p("openToBottom","Open to the Bottom")}]})()})}const h=d.sort((g,f)=>r?this.compareByKindAndScore(g,f):this.compareByScore(g,f));let u=[];if(r){let b=function(){f&&typeof g=="number"&&_>0&&(f.label=Vs(Wy[g]||By,_))},g,f,_=0;for(const v of h)g!==v.kind?(b(),g=v.kind,_=1,f={type:"separator"},u.push(f)):_++,u.push(v);b()}else h.length>0&&(u=[{label:p("symbols","symbols ({0})",d.length),type:"separator"},...h]);return u})}compareByScore(e,t){if(typeof e.score!="number"&&typeof t.score=="number")return 1;if(typeof e.score=="number"&&typeof t.score!="number")return-1;if(typeof e.score=="number"&&typeof t.score=="number"){if(e.score>t.score)return-1;if(e.scoret.index?1:0}compareByKindAndScore(e,t){const i=Wy[e.kind]||By,n=Wy[t.kind]||By,s=i.localeCompare(n);return s===0?this.compareByScore(e,t):s}getDocumentSymbols(e,t){return Wf(this,void 0,void 0,function*(){const i=yield this._outlineModelService.getOrCreate(e,t);return t.isCancellationRequested?[]:i.asListOfDocumentSymbols()})}};Co.PREFIX="@";Co.SCOPE_PREFIX=":";Co.PREFIX_BY_CATEGORY=`${Co.PREFIX}${Co.SCOPE_PREFIX}`;Co=Xhe([xO(0,de),xO(1,pw)],Co);const By=p("property","properties ({0})"),Wy={[5]:p("method","methods ({0})"),[11]:p("function","functions ({0})"),[8]:p("_constructor","constructors ({0})"),[12]:p("variable","variables ({0})"),[4]:p("class","classes ({0})"),[22]:p("struct","structs ({0})"),[23]:p("event","events ({0})"),[24]:p("operator","operators ({0})"),[10]:p("interface","interfaces ({0})"),[2]:p("namespace","namespaces ({0})"),[3]:p("package","packages ({0})"),[25]:p("typeParameter","type parameters ({0})"),[1]:p("modules","modules ({0})"),[6]:p("property","properties ({0})"),[9]:p("enum","enumerations ({0})"),[21]:p("enumMember","enumeration members ({0})"),[14]:p("string","strings ({0})"),[0]:p("file","files ({0})"),[17]:p("array","arrays ({0})"),[15]:p("number","numbers ({0})"),[16]:p("boolean","booleans ({0})"),[18]:p("object","objects ({0})"),[19]:p("key","keys ({0})"),[7]:p("field","fields ({0})"),[13]:p("constant","constants ({0})")};var Jhe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Vy=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let iI=class extends Co{constructor(e,t,i){super(t,i),this.editorService=e,this.onDidActiveTextEditorControlChange=ge.None}get activeTextEditorControl(){return Wn(this.editorService.getFocusedCodeEditor())}};iI=Jhe([Vy(0,ct),Vy(1,de),Vy(2,pw)],iI);class H_ extends ce{constructor(){super({id:H_.ID,label:bm.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:N.hasDocumentSymbolProvider,kbOpts:{kbExpr:N.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})}run(e){e.get(dl).quickAccess.show(Co.PREFIX)}}H_.ID="editor.action.quickOutline";ie(H_);zt.as(yh.Quickaccess).registerQuickAccessProvider({ctor:iI,prefix:Co.PREFIX,helpEntries:[{description:bm.quickOutlineActionLabel,prefix:Co.PREFIX,commandId:H_.ID},{description:bm.quickOutlineByCategoryActionLabel,prefix:Co.PREFIX_BY_CATEGORY}]});function Hy(o,e){return e&&(o.stack||o.stacktrace)?p("stackTrace.format","{0}: {1}",EO(o),IO(o.stack)||IO(o.stacktrace)):EO(o)}function IO(o){return Array.isArray(o)?o.join(` `):o}function EO(o){return typeof o.code=="string"&&typeof o.errno=="number"&&typeof o.syscall=="string"?p("nodeExceptionMessage","A system error occurred ({0})",o.message):o.message||p("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function D8(o=null,e=!1){if(!o)return p("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(o)){const t=i_(o),i=D8(t[0],e);return t.length>1?p("error.moreErrors","{0} ({1} errors in total)",i,t.length):i}if(Un(o))return o;if(o.detail){const t=o.detail;if(t.error)return Hy(t.error,e);if(t.exception)return Hy(t.exception,e)}return o.stack?Hy(o,e):o.message?o.message:p("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}var d0=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},Iu;(function(o){o[o.NO_ACTION=0]="NO_ACTION",o[o.CLOSE_PICKER=1]="CLOSE_PICKER",o[o.REFRESH_PICKER=2]="REFRESH_PICKER",o[o.REMOVE_ITEM=3]="REMOVE_ITEM"})(Iu||(Iu={}));function zy(o){const e=o;return Array.isArray(e.items)}function eue(o){const e=o;return!!e.picks&&e.additionalPicks instanceof Promise}class Rw extends H{constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t){var i;const n=new Q;e.canAcceptInBackground=!!(!((i=this.options)===null||i===void 0)&&i.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let s;const r=n.add(new _n),a=()=>d0(this,void 0,void 0,function*(){const l=r.value=new Q;s==null||s.dispose(!0),e.busy=!1,s=new Qi(t);const c=s.token,d=e.value.substr(this.prefix.length).trim(),h=this._getPicks(d,l,c),u=(g,f)=>{var _;let b,v;if(zy(g)?(b=g.items,v=g.active):b=g,b.length===0){if(f)return!1;d.length>0&&((_=this.options)===null||_===void 0?void 0:_.noResultsPick)&&(b=[this.options.noResultsPick])}return e.items=b,v&&(e.activeItems=[v]),!0};if(h!==null)if(eue(h)){let g=!1,f=!1;yield Promise.all([(()=>d0(this,void 0,void 0,function*(){yield sc(Rw.FAST_PICKS_RACE_DELAY),!c.isCancellationRequested&&(f||(g=u(h.picks,!0)))}))(),(()=>d0(this,void 0,void 0,function*(){e.busy=!0;try{const _=yield h.additionalPicks;if(c.isCancellationRequested)return;let b,v;zy(h.picks)?(b=h.picks.items,v=h.picks.active):b=h.picks;let C,w;if(zy(_)?(C=_.items,w=_.active):C=_,C.length>0||!g){let S;if(!v&&!w){const k=e.activeItems[0];k&&b.indexOf(k)!==-1&&(S=k)}u({items:[...b,...C],active:v||w||S})}}finally{c.isCancellationRequested||(e.busy=!1),f=!0}}))()])}else if(!(h instanceof Promise))u(h);else{e.busy=!0;try{const g=yield h;if(c.isCancellationRequested)return;u(g)}finally{c.isCancellationRequested||(e.busy=!1)}}});return n.add(e.onDidChangeValue(()=>a())),a(),n.add(e.onDidAccept(l=>{const[c]=e.selectedItems;typeof(c==null?void 0:c.accept)=="function"&&(l.inBackground||e.hide(),c.accept(e.keyMods,l))})),n.add(e.onDidTriggerItemButton(({button:l,item:c})=>d0(this,void 0,void 0,function*(){var d,h;if(typeof c.trigger=="function"){const u=(h=(d=c.buttons)===null||d===void 0?void 0:d.indexOf(l))!==null&&h!==void 0?h:-1;if(u>=0){const g=c.trigger(u,e.keyMods),f=typeof g=="number"?g:yield g;if(t.isCancellationRequested)return;switch(f){case Iu.NO_ACTION:break;case Iu.CLOSE_PICKER:e.hide();break;case Iu.REFRESH_PICKER:a();break;case Iu.REMOVE_ITEM:{const _=e.items.indexOf(c);if(_!==-1){const b=e.items.slice(),v=b.splice(_,1),C=e.activeItems.filter(S=>S!==v[0]),w=e.keepScrollPosition;e.keepScrollPosition=!0,e.items=b,C&&(e.activeItems=C),e.keepScrollPosition=w}break}}}}}))),n}}Rw.FAST_PICKS_RACE_DELAY=200;var k8=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},nd=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},NO=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let e_=class z0 extends Rw{constructor(e,t,i,n,s,r){super(z0.PREFIX,e),this.instantiationService=t,this.keybindingService=i,this.commandService=n,this.telemetryService=s,this.dialogService=r,this.commandsHistory=this._register(this.instantiationService.createInstance(hh)),this.options=e}_getPicks(e,t,i){return NO(this,void 0,void 0,function*(){const n=yield this.getCommandPicks(t,i);if(i.isCancellationRequested)return[];const s=[];for(const c of n){const d=Wn(z0.WORD_FILTER(e,c.label)),h=c.commandAlias?Wn(z0.WORD_FILTER(e,c.commandAlias)):void 0;d||h?(c.highlights={label:d,detail:this.options.showAlias?h:void 0},s.push(c)):e===c.commandId&&s.push(c)}const r=new Map;for(const c of s){const d=r.get(c.label);d?(c.description=c.commandId,d.description=d.commandId):r.set(c.label,c)}s.sort((c,d)=>{const h=this.commandsHistory.peek(c.commandId),u=this.commandsHistory.peek(d.commandId);return h&&u?h>u?-1:1:h?-1:u?1:c.label.localeCompare(d.label)});const a=[];let l=!1;for(let c=0;cNO(this,void 0,void 0,function*(){this.commandsHistory.push(d.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:d.commandId,from:"quick open"});try{yield this.commandService.executeCommand(d.commandId)}catch(g){ea(g)||this.dialogService.show(Bt.Error,p("canNotRun","Command '{0}' resulted in an error ({1})",d.label,D8(g)))}})}))}return a})}};e_.PREFIX=">";e_.WORD_FILTER=WE(x1,gZ,T5);e_=k8([nd(1,Ae),nd(2,_i),nd(3,ci),nd(4,sr),nd(5,b_)],e_);let hh=class Ii extends H{constructor(e,t){super(),this.storageService=e,this.configurationService=t,this.configuredCommandsHistoryLength=0,this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(()=>this.updateConfiguration()))}updateConfiguration(){this.configuredCommandsHistoryLength=Ii.getConfiguredCommandHistoryLength(this.configurationService),Ii.cache&&Ii.cache.limit!==this.configuredCommandsHistoryLength&&(Ii.cache.limit=this.configuredCommandsHistoryLength,Ii.saveState(this.storageService))}load(){const e=this.storageService.get(Ii.PREF_KEY_CACHE,0);let t;if(e)try{t=JSON.parse(e)}catch{}const i=Ii.cache=new Dc(this.configuredCommandsHistoryLength,1);if(t){let n;t.usesLRU?n=t.entries:n=t.entries.sort((s,r)=>s.value-r.value),n.forEach(s=>i.set(s.key,s.value))}Ii.counter=this.storageService.getNumber(Ii.PREF_KEY_COUNTER,0,Ii.counter)}push(e){!Ii.cache||(Ii.cache.set(e,Ii.counter++),Ii.saveState(this.storageService))}peek(e){var t;return(t=Ii.cache)===null||t===void 0?void 0:t.peek(e)}static saveState(e){if(!Ii.cache)return;const t={usesLRU:!0,entries:[]};Ii.cache.forEach((i,n)=>t.entries.push({key:n,value:i})),e.store(Ii.PREF_KEY_CACHE,JSON.stringify(t),0,0),e.store(Ii.PREF_KEY_COUNTER,Ii.counter,0,0)}static getConfiguredCommandHistoryLength(e){var t,i;const s=(i=(t=e.getValue().workbench)===null||t===void 0?void 0:t.commandPalette)===null||i===void 0?void 0:i.history;return typeof s=="number"?s:Ii.DEFAULT_COMMANDS_HISTORY_LENGTH}};hh.DEFAULT_COMMANDS_HISTORY_LENGTH=50;hh.PREF_KEY_CACHE="commandPalette.mru.cache";hh.PREF_KEY_COUNTER="commandPalette.mru.counter";hh.counter=1;hh=k8([nd(0,Do),nd(1,ot)],hh);class tue extends e_{constructor(e,t,i,n,s,r){super(e,t,i,n,s,r)}getCodeEditorCommandPicks(){const e=this.activeTextEditorControl;if(!e)return[];const t=[];for(const i of e.getSupportedActions())t.push({commandId:i.id,commandAlias:i.alias,label:KE(i.label)||i.id});return t}}var iue=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Qh=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},nue=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let t_=class extends tue{constructor(e,t,i,n,s,r){super({showAlias:!1},e,i,n,s,r),this.codeEditorService=t}get activeTextEditorControl(){return Wn(this.codeEditorService.getFocusedCodeEditor())}getCommandPicks(){return nue(this,void 0,void 0,function*(){return this.getCodeEditorCommandPicks()})}};t_=iue([Qh(0,Ae),Qh(1,ct),Qh(2,_i),Qh(3,ci),Qh(4,sr),Qh(5,b_)],t_);class z_ extends ce{constructor(){super({id:z_.ID,label:Gv.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(e){e.get(dl).quickAccess.show(t_.PREFIX)}}z_.ID="editor.action.quickCommand";ie(z_);zt.as(yh.Quickaccess).registerQuickAccessProvider({ctor:t_,prefix:t_.PREFIX,helpEntries:[{description:Gv.quickCommandHelp,commandId:z_.ID}]});var sue=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Xh=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let nI=class extends mc{constructor(e,t,i,n,s,r,a){super(!0,e,t,i,n,s,r,a)}};nI=sue([Xh(1,Ee),Xh(2,ct),Xh(3,di),Xh(4,Ae),Xh(5,Do),Xh(6,ot)],nI);tt(mc.ID,nI);class oue extends ce{constructor(){super({id:"editor.action.toggleHighContrast",label:$D.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(e,t){const i=e.get(Es),n=i.getColorTheme();cn(n.type)?(i.setTheme(this._originalThemeName||(Xp(n.type)?Ku:Ra)),this._originalThemeName=null):(i.setTheme(Xp(n.type)?Sd:yd),this._originalThemeName=n.themeName)}}ie(oue);const ffe=Object.freeze(Object.defineProperty({__proto__:null,CancellationTokenSource:m3,Emitter:_3,KeyCode:b3,KeyMod:v3,Position:C3,Range:w3,Selection:S3,SelectionDirection:y3,MarkerSeverity:L3,MarkerTag:D3,Uri:k3,Token:x3,editor:I3,languages:E3},Symbol.toStringTag,{value:"Module"}));export{ffe as e,D_ as m,j3 as t}; -//# sourceMappingURL=editor.main.aa43f13b.js.map +//# sourceMappingURL=editor.main.2331c6e5.js.map diff --git a/abstra_statics/dist/assets/executeJs.9eb1c025.js b/abstra_statics/dist/assets/executeJs.87b204c8.js similarity index 94% rename from abstra_statics/dist/assets/executeJs.9eb1c025.js rename to abstra_statics/dist/assets/executeJs.87b204c8.js index 5576913345..db6421a7fe 100644 --- a/abstra_statics/dist/assets/executeJs.9eb1c025.js +++ b/abstra_statics/dist/assets/executeJs.87b204c8.js @@ -1,2 +1,2 @@ -import{P as PlayerNavbar}from"./PlayerNavbar.9ff5d98a.js";import{g as getCname}from"./index.776642db.js";import{d as defineComponent,b as openBlock,c as createElementBlock,U as createTextVNode,z as unref,D as createCommentVNode,ai as createStaticVNode,q as _export_sfc,r as ref,t as createBlock,w as withCtx,x as createBaseVNode,O as pushScopeId,Q as popScopeId,a as resolveComponent,e as createVNode,F as Fragment,L as renderList,N as toDisplayString,aj as TransitionGroup,G as normalizeClass}from"./registerWidgets.3fe0df5a.js";import{S as Steps}from"./WidgetsFrame.c900894c.js";import{M as Modal}from"./Modal.32a3d62d.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ac81423d-5c14-4fd2-a56e-60cba85b75ac",e._sentryDebugIdIdentifier="sentry-dbid-ac81423d-5c14-4fd2-a56e-60cba85b75ac")}catch{}})();const _hoisted_1$2=["href"],_hoisted_2$1=createStaticVNode('Abstra Cloud',2),_sfc_main$3=defineComponent({__name:"Watermark",props:{runtime:null,type:null},setup(e){const t=window.location.hostname.split(".")[0],a=!getCname();return(s,o)=>a?(openBlock(),createElementBlock("a",{key:0,href:`https://www.abstracloud.com/${e.type}?utm_source=abstra_pages&utm_medium=badge&utm_campaign=${e.runtime.id}&origin_subdomain=${unref(t)}`,target:"_blank",class:"watermark"},[createTextVNode(" Coded in Python with "),_hoisted_2$1],8,_hoisted_1$2)):createCommentVNode("",!0)}}),Watermark_vue_vue_type_style_index_0_scoped_f8a478c3_lang="",Watermark=_export_sfc(_sfc_main$3,[["__scopeId","data-v-f8a478c3"]]),_withScopeId=e=>(pushScopeId("data-v-54969e59"),e=e(),popScopeId(),e),_hoisted_1$1={class:"no-credits-message"},_hoisted_2={class:"image-container"},_hoisted_3={key:0,class:"no-credit-image",src:"https://abstra-cloud-assets.s3.amazonaws.com/no-credit.svg"},_hoisted_4=_withScopeId(()=>createBaseVNode("div",{class:"title"},"Insufficient credits to start this page",-1)),_hoisted_5=_withScopeId(()=>createBaseVNode("div",{class:"message"}," Please contact the creator for more information. ",-1)),_sfc_main$2=defineComponent({__name:"NoCreditsMessage",props:{runner:null},setup(e,{expose:t}){const a=ref(null),s={width:"380px",height:"unset",padding:"30px"},o={borderBottom:"none",color:"#D35249",fontSize:"20px",justifyContent:"flex-start",marginBottom:"17px"},i={color:"#414A58",fontSize:"14px"};return t({open:()=>{var r;(r=a.value)==null||r.open()}}),(r,c)=>(openBlock(),createBlock(Modal,{ref_key:"modalRef",ref:a,"container-style":s,"header-style":o,"content-style":i},{content:withCtx(()=>[createBaseVNode("div",_hoisted_1$1,[createBaseVNode("div",_hoisted_2,[e.runner.logoUrl?(openBlock(),createElementBlock("img",_hoisted_3)):createCommentVNode("",!0)]),_hoisted_4,_hoisted_5])]),_:1},512))}}),NoCreditsMessage_vue_vue_type_style_index_0_scoped_54969e59_lang="",NoCreditsMessage=_export_sfc(_sfc_main$2,[["__scopeId","data-v-54969e59"]]),_hoisted_1={class:"alert"},_sfc_main$1=defineComponent({__name:"Alerts",props:{alerts:null},setup(e){return(t,a)=>{const s=resolveComponent("Message");return openBlock(),createElementBlock("div",_hoisted_1,[createVNode(TransitionGroup,{name:"p-message",tag:"div"},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.alerts,o=>(openBlock(),createBlock(s,{key:o.id,severity:o.severity,closable:!1,sticky:!1},{default:withCtx(()=>[createTextVNode(toDisplayString(o.message),1)]),_:2},1032,["severity"]))),128))]),_:1})])}}}),Alerts_vue_vue_type_style_index_0_scoped_62dd7843_lang="",AlertsComponent=_export_sfc(_sfc_main$1,[["__scopeId","data-v-62dd7843"]]),_sfc_main=defineComponent({__name:"RuntimeCommons",props:{runtime:null,fullWidth:{type:Boolean},isPreview:{type:Boolean},type:null,forceResponsivity:null,userEmail:null,stepsInfo:null,alerts:null},emits:["navigate","logout"],setup(e,{expose:t,emit:a}){const s=ref(null),o=n=>a("navigate",n);return t({open:()=>{var n;return(n=s.value)==null?void 0:n.open()}}),(n,r)=>{var c;return openBlock(),createElementBlock(Fragment,null,[createBaseVNode("header",null,[createVNode(PlayerNavbar,{runtime:e.runtime,"user-email":e.userEmail,"force-responsivity":e.forceResponsivity,onLogout:r[0]||(r[0]=l=>a("logout")),onNavigate:o},null,8,["runtime","user-email","force-responsivity"])]),e.type==="forms"?(openBlock(),createBlock(Steps,{key:0,class:"steps","steps-info":e.stepsInfo},null,8,["steps-info"])):createCommentVNode("",!0),createVNode(NoCreditsMessage,{ref_key:"noCreditsMessageModalRef",ref:s,class:normalizeClass({"full-width":e.fullWidth}),runner:e.runtime},null,8,["class","runner"]),e.isPreview?createCommentVNode("",!0):(openBlock(),createBlock(Watermark,{key:1,class:normalizeClass(["watermark",{"viewport-attached":!e.isPreview}]),runtime:e.runtime,type:e.type},null,8,["class","runtime","type"])),(c=e.alerts)!=null&&c.length?(openBlock(),createBlock(AlertsComponent,{key:2,class:"alerts",alerts:e.alerts},null,8,["alerts"])):createCommentVNode("",!0)],64)}}}),RuntimeCommons_vue_vue_type_style_index_0_scoped_3fc00cc0_lang="",RuntimeCommons=_export_sfc(_sfc_main,[["__scopeId","data-v-3fc00cc0"]]),executeCode=($context,code)=>{let evaluatedCode;try{evaluatedCode=eval(code)}catch(e){throw console.error(`[Error: execute_js]: ${e.message}, context: ${$context}`),e}return isSerializable(evaluatedCode)?evaluatedCode:null};async function executeJs(e){return executeCode(e.context,e.code)}const isSerializable=e=>{try{return JSON.stringify(e),!0}catch{return!1}};export{RuntimeCommons as R,executeJs as e}; -//# sourceMappingURL=executeJs.9eb1c025.js.map +import{P as PlayerNavbar}from"./PlayerNavbar.fe11d508.js";import{g as getCname}from"./index.7d1457d9.js";import{d as defineComponent,b as openBlock,c as createElementBlock,U as createTextVNode,z as unref,D as createCommentVNode,ai as createStaticVNode,q as _export_sfc,r as ref,t as createBlock,w as withCtx,x as createBaseVNode,O as pushScopeId,Q as popScopeId,a as resolveComponent,e as createVNode,F as Fragment,L as renderList,N as toDisplayString,aj as TransitionGroup,G as normalizeClass}from"./registerWidgets.cb3a7b8d.js";import{S as Steps}from"./WidgetsFrame.aac2edff.js";import{M as Modal}from"./Modal.43c3d47a.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e59830c8-f17b-4ffa-ad80-dcdabc9583a7",e._sentryDebugIdIdentifier="sentry-dbid-e59830c8-f17b-4ffa-ad80-dcdabc9583a7")}catch{}})();const _hoisted_1$2=["href"],_hoisted_2$1=createStaticVNode('Abstra Cloud',2),_sfc_main$3=defineComponent({__name:"Watermark",props:{runtime:null,type:null},setup(e){const t=window.location.hostname.split(".")[0],a=!getCname();return(s,o)=>a?(openBlock(),createElementBlock("a",{key:0,href:`https://www.abstracloud.com/${e.type}?utm_source=abstra_pages&utm_medium=badge&utm_campaign=${e.runtime.id}&origin_subdomain=${unref(t)}`,target:"_blank",class:"watermark"},[createTextVNode(" Coded in Python with "),_hoisted_2$1],8,_hoisted_1$2)):createCommentVNode("",!0)}}),Watermark_vue_vue_type_style_index_0_scoped_f8a478c3_lang="",Watermark=_export_sfc(_sfc_main$3,[["__scopeId","data-v-f8a478c3"]]),_withScopeId=e=>(pushScopeId("data-v-54969e59"),e=e(),popScopeId(),e),_hoisted_1$1={class:"no-credits-message"},_hoisted_2={class:"image-container"},_hoisted_3={key:0,class:"no-credit-image",src:"https://abstra-cloud-assets.s3.amazonaws.com/no-credit.svg"},_hoisted_4=_withScopeId(()=>createBaseVNode("div",{class:"title"},"Insufficient credits to start this page",-1)),_hoisted_5=_withScopeId(()=>createBaseVNode("div",{class:"message"}," Please contact the creator for more information. ",-1)),_sfc_main$2=defineComponent({__name:"NoCreditsMessage",props:{runner:null},setup(e,{expose:t}){const a=ref(null),s={width:"380px",height:"unset",padding:"30px"},o={borderBottom:"none",color:"#D35249",fontSize:"20px",justifyContent:"flex-start",marginBottom:"17px"},i={color:"#414A58",fontSize:"14px"};return t({open:()=>{var r;(r=a.value)==null||r.open()}}),(r,c)=>(openBlock(),createBlock(Modal,{ref_key:"modalRef",ref:a,"container-style":s,"header-style":o,"content-style":i},{content:withCtx(()=>[createBaseVNode("div",_hoisted_1$1,[createBaseVNode("div",_hoisted_2,[e.runner.logoUrl?(openBlock(),createElementBlock("img",_hoisted_3)):createCommentVNode("",!0)]),_hoisted_4,_hoisted_5])]),_:1},512))}}),NoCreditsMessage_vue_vue_type_style_index_0_scoped_54969e59_lang="",NoCreditsMessage=_export_sfc(_sfc_main$2,[["__scopeId","data-v-54969e59"]]),_hoisted_1={class:"alert"},_sfc_main$1=defineComponent({__name:"Alerts",props:{alerts:null},setup(e){return(t,a)=>{const s=resolveComponent("Message");return openBlock(),createElementBlock("div",_hoisted_1,[createVNode(TransitionGroup,{name:"p-message",tag:"div"},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.alerts,o=>(openBlock(),createBlock(s,{key:o.id,severity:o.severity,closable:!1,sticky:!1},{default:withCtx(()=>[createTextVNode(toDisplayString(o.message),1)]),_:2},1032,["severity"]))),128))]),_:1})])}}}),Alerts_vue_vue_type_style_index_0_scoped_62dd7843_lang="",AlertsComponent=_export_sfc(_sfc_main$1,[["__scopeId","data-v-62dd7843"]]),_sfc_main=defineComponent({__name:"RuntimeCommons",props:{runtime:null,fullWidth:{type:Boolean},isPreview:{type:Boolean},type:null,forceResponsivity:null,userEmail:null,stepsInfo:null,alerts:null},emits:["navigate","logout"],setup(e,{expose:t,emit:a}){const s=ref(null),o=n=>a("navigate",n);return t({open:()=>{var n;return(n=s.value)==null?void 0:n.open()}}),(n,r)=>{var c;return openBlock(),createElementBlock(Fragment,null,[createBaseVNode("header",null,[createVNode(PlayerNavbar,{runtime:e.runtime,"user-email":e.userEmail,"force-responsivity":e.forceResponsivity,onLogout:r[0]||(r[0]=l=>a("logout")),onNavigate:o},null,8,["runtime","user-email","force-responsivity"])]),e.type==="forms"?(openBlock(),createBlock(Steps,{key:0,class:"steps","steps-info":e.stepsInfo},null,8,["steps-info"])):createCommentVNode("",!0),createVNode(NoCreditsMessage,{ref_key:"noCreditsMessageModalRef",ref:s,class:normalizeClass({"full-width":e.fullWidth}),runner:e.runtime},null,8,["class","runner"]),e.isPreview?createCommentVNode("",!0):(openBlock(),createBlock(Watermark,{key:1,class:normalizeClass(["watermark",{"viewport-attached":!e.isPreview}]),runtime:e.runtime,type:e.type},null,8,["class","runtime","type"])),(c=e.alerts)!=null&&c.length?(openBlock(),createBlock(AlertsComponent,{key:2,class:"alerts",alerts:e.alerts},null,8,["alerts"])):createCommentVNode("",!0)],64)}}}),RuntimeCommons_vue_vue_type_style_index_0_scoped_3fc00cc0_lang="",RuntimeCommons=_export_sfc(_sfc_main,[["__scopeId","data-v-3fc00cc0"]]),executeCode=($context,code)=>{let evaluatedCode;try{evaluatedCode=eval(code)}catch(e){throw console.error(`[Error: execute_js]: ${e.message}, context: ${$context}`),e}return isSerializable(evaluatedCode)?evaluatedCode:null};async function executeJs(e){return executeCode(e.context,e.code)}const isSerializable=e=>{try{return JSON.stringify(e),!0}catch{return!1}};export{RuntimeCommons as R,executeJs as e}; +//# sourceMappingURL=executeJs.87b204c8.js.map diff --git a/abstra_statics/dist/assets/forms.9088f82a.js b/abstra_statics/dist/assets/forms.f5353181.js similarity index 91% rename from abstra_statics/dist/assets/forms.9088f82a.js rename to abstra_statics/dist/assets/forms.f5353181.js index bfe18b7cb6..3da4d64ac7 100644 --- a/abstra_statics/dist/assets/forms.9088f82a.js +++ b/abstra_statics/dist/assets/forms.f5353181.js @@ -1,2 +1,2 @@ -var i=Object.defineProperty;var n=(s,t,e)=>t in s?i(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var o=(s,t,e)=>(n(s,typeof t!="symbol"?t+"":t,e),e);import{A as c}from"./activeRecord.2bc1b71f.js";import"./registerWidgets.3fe0df5a.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[t]="db9bc3f6-aeda-4941-b381-b615888fb386",s._sentryDebugIdIdentifier="sentry-dbid-db9bc3f6-aeda-4941-b381-b615888fb386")}catch{}})();class d{async list(){return await(await fetch("/_editor/api/forms")).json()}async create(){return await(await fetch("/_editor/api/forms",{method:"POST",headers:{"Content-Type":"application/json"}})).json()}async get(t){return await(await fetch(`/_editor/api/forms/${t}`)).json()}async update(t,e){return await(await fetch(`/_editor/api/forms/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async delete(t){await fetch(`/_editor/api/forms/${t}`,{method:"DELETE"})}async duplicate(t){return await(await fetch(`/_editor/api/forms/${t}/duplicate`,{method:"POST"})).json()}}const r=new d;class a{constructor(t){o(this,"record");this.record=c.create(r,t,"path")}static async list(){return(await r.list()).map(e=>new a(e))}static async create(){const t=await r.create();return new a(t)}static async get(t){const e=await r.get(t);return new a(e)}get allowRestart(){return this.record.get("allow_restart")}set allowRestart(t){this.record.set("allow_restart",t)}get file(){return this.record.get("file")}set file(t){this.record.set("file",t)}get autoStart(){return this.record.get("auto_start")}set autoStart(t){this.record.set("auto_start",t)}get endMessage(){return this.record.get("end_message")}set endMessage(t){this.record.set("end_message",t)}get errorMessage(){return this.record.get("error_message")}set errorMessage(t){this.record.set("error_message",t)}get path(){return this.record.get("path")}set path(t){this.record.set("path",t)}get restartButtonText(){return this.record.get("restart_button_text")}set restartButtonText(t){this.record.set("restart_button_text",t)}get startButtonText(){return this.record.get("start_button_text")}set startButtonText(t){this.record.set("start_button_text",t)}get startMessage(){return this.record.get("start_message")}set startMessage(t){this.record.set("start_message",t)}get timeoutMessage(){return this.record.get("timeout_message")}set timeoutMessage(t){this.record.set("timeout_message",t)}get(t){return this.record.get(t)}set(t,e){this.record.set(t,e)}get title(){return this.record.get("title")}set title(t){this.record.set("title",t)}get welcomeTitle(){return this.record.get("welcome_title")}set welcomeTitle(t){this.record.set("welcome_title",t)}async save(){await this.record.save()}onUpdate(t){this.record.pubsub.subscribe("update",t)}hasChanges(){return this.record.hasChanges()}async delete(){await r.delete(this.path)}async duplicate(){const t=await r.duplicate(this.path);return new a(t)}makeRunnerData(t){return{...t.makeRunnerData(),runtimeType:"form",id:this.path,isLocal:!0,path:this.path,allowRestart:this.allowRestart,autoStart:this.autoStart,endMessage:this.endMessage,errorMessage:this.errorMessage,restartButtonText:this.restartButtonText,startButtonText:this.startButtonText,startMessage:this.startMessage,timeoutMessage:this.timeoutMessage,title:this.title,welcomeTitle:this.welcomeTitle}}get routeName(){return"form"}}export{a as F}; -//# sourceMappingURL=forms.9088f82a.js.map +var i=Object.defineProperty;var n=(s,t,e)=>t in s?i(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var o=(s,t,e)=>(n(s,typeof t!="symbol"?t+"":t,e),e);import{A as c}from"./activeRecord.adfc6223.js";import"./registerWidgets.cb3a7b8d.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[t]="063d7c42-7db1-4310-b7fc-6deb6dc1320f",s._sentryDebugIdIdentifier="sentry-dbid-063d7c42-7db1-4310-b7fc-6deb6dc1320f")}catch{}})();class d{async list(){return await(await fetch("/_editor/api/forms")).json()}async create(){return await(await fetch("/_editor/api/forms",{method:"POST",headers:{"Content-Type":"application/json"}})).json()}async get(t){return await(await fetch(`/_editor/api/forms/${t}`)).json()}async update(t,e){return await(await fetch(`/_editor/api/forms/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async delete(t){await fetch(`/_editor/api/forms/${t}`,{method:"DELETE"})}async duplicate(t){return await(await fetch(`/_editor/api/forms/${t}/duplicate`,{method:"POST"})).json()}}const r=new d;class a{constructor(t){o(this,"record");this.record=c.create(r,t,"path")}static async list(){return(await r.list()).map(e=>new a(e))}static async create(){const t=await r.create();return new a(t)}static async get(t){const e=await r.get(t);return new a(e)}get allowRestart(){return this.record.get("allow_restart")}set allowRestart(t){this.record.set("allow_restart",t)}get file(){return this.record.get("file")}set file(t){this.record.set("file",t)}get autoStart(){return this.record.get("auto_start")}set autoStart(t){this.record.set("auto_start",t)}get endMessage(){return this.record.get("end_message")}set endMessage(t){this.record.set("end_message",t)}get errorMessage(){return this.record.get("error_message")}set errorMessage(t){this.record.set("error_message",t)}get path(){return this.record.get("path")}set path(t){this.record.set("path",t)}get restartButtonText(){return this.record.get("restart_button_text")}set restartButtonText(t){this.record.set("restart_button_text",t)}get startButtonText(){return this.record.get("start_button_text")}set startButtonText(t){this.record.set("start_button_text",t)}get startMessage(){return this.record.get("start_message")}set startMessage(t){this.record.set("start_message",t)}get timeoutMessage(){return this.record.get("timeout_message")}set timeoutMessage(t){this.record.set("timeout_message",t)}get(t){return this.record.get(t)}set(t,e){this.record.set(t,e)}get title(){return this.record.get("title")}set title(t){this.record.set("title",t)}get welcomeTitle(){return this.record.get("welcome_title")}set welcomeTitle(t){this.record.set("welcome_title",t)}async save(){await this.record.save()}onUpdate(t){this.record.pubsub.subscribe("update",t)}hasChanges(){return this.record.hasChanges()}async delete(){await r.delete(this.path)}async duplicate(){const t=await r.duplicate(this.path);return new a(t)}makeRunnerData(t){return{...t.makeRunnerData(),runtimeType:"form",id:this.path,isLocal:!0,path:this.path,allowRestart:this.allowRestart,autoStart:this.autoStart,endMessage:this.endMessage,errorMessage:this.errorMessage,restartButtonText:this.restartButtonText,startButtonText:this.startButtonText,startMessage:this.startMessage,timeoutMessage:this.timeoutMessage,title:this.title,welcomeTitle:this.welcomeTitle}}get routeName(){return"form"}}export{a as F}; +//# sourceMappingURL=forms.f5353181.js.map diff --git a/abstra_statics/dist/assets/freemarker2.e187740c.js b/abstra_statics/dist/assets/freemarker2.52d23530.js similarity index 98% rename from abstra_statics/dist/assets/freemarker2.e187740c.js rename to abstra_statics/dist/assets/freemarker2.52d23530.js index 40ff9158c0..1d083e3d6a 100644 --- a/abstra_statics/dist/assets/freemarker2.e187740c.js +++ b/abstra_statics/dist/assets/freemarker2.52d23530.js @@ -1,4 +1,4 @@ -import{m as b}from"./editor.main.aa43f13b.js";import"./registerWidgets.3fe0df5a.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="652b11e4-62ba-4068-8028-1ad99e60e92b",t._sentryDebugIdIdentifier="sentry-dbid-652b11e4-62ba-4068-8028-1ad99e60e92b")}catch{}})();/*!----------------------------------------------------------------------------- +import{m as b}from"./editor.main.2331c6e5.js";import"./registerWidgets.cb3a7b8d.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="bdb24bfa-3dd6-4021-ab87-b0aec52fc3e4",t._sentryDebugIdIdentifier="sentry-dbid-bdb24bfa-3dd6-4021-ab87-b0aec52fc3e4")}catch{}})();/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license @@ -6,4 +6,4 @@ import{m as b}from"./editor.main.aa43f13b.js";import"./registerWidgets.3fe0df5a. *-----------------------------------------------------------------------------*/var F=Object.defineProperty,x=Object.getOwnPropertyDescriptor,$=Object.getOwnPropertyNames,v=Object.prototype.hasOwnProperty,g=(t,n,_,e)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of $(n))!v.call(t,o)&&o!==_&&F(t,o,{get:()=>n[o],enumerable:!(e=x(n,o))||e.enumerable});return t},E=(t,n,_)=>(g(t,n,"default"),_&&g(_,n,"default")),r={};E(r,b);var d=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],s=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],a={close:">",id:"angle",open:"<"},u={close:"\\]",id:"bracket",open:"\\["},D={close:"[>\\]]",id:"auto",open:"[<\\[]"},k={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},p={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function l(t){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${t.open}--`,`--${t.close}`]},autoCloseBefore:` \r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`${t.open}#(?:${s.join("|")})([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),end:new RegExp(`${t.open}/#(?:${s.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`${t.open}#(?!(?:${d.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),afterText:new RegExp(`^${t.open}/#([a-zA-Z_]+)[\\r\\n\\t ]*${t.close}$`),action:{indentAction:r.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`${t.open}#(?!(?:${d.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),action:{indentAction:r.languages.IndentAction.Indent}}]}}function A(){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],autoCloseBefore:` \r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`[<\\[]#(?:${s.join("|")})([^/>\\]]*(?!/)[>\\]])[^<\\[]*$`),end:new RegExp(`[<\\[]/#(?:${s.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`[<\\[]#(?!(?:${d.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),afterText:new RegExp("^[<\\[]/#([a-zA-Z_]+)[\\r\\n\\t ]*[>\\]]$"),action:{indentAction:r.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`[<\\[]#(?!(?:${d.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),action:{indentAction:r.languages.IndentAction.Indent}}]}}function i(t,n){const _=`_${t.id}_${n.id}`,e=c=>c.replace(/__id__/g,_),o=c=>{const f=c.source.replace(/__id__/g,_);return new RegExp(f,c.flags)};return{unicode:!0,includeLF:!1,start:e("default__id__"),ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],[e("open__id__")]:new RegExp(t.open),[e("close__id__")]:new RegExp(t.close),[e("iOpen1__id__")]:new RegExp(n.open1),[e("iOpen2__id__")]:new RegExp(n.open2),[e("iClose__id__")]:new RegExp(n.close),[e("startTag__id__")]:o(/(@open__id__)(#)/),[e("endTag__id__")]:o(/(@open__id__)(\/#)/),[e("startOrEndTag__id__")]:o(/(@open__id__)(\/?#)/),[e("closeTag1__id__")]:o(/((?:@blank)*)(@close__id__)/),[e("closeTag2__id__")]:o(/((?:@blank)*\/?)(@close__id__)/),blank:/[ \t\n\r]/,keywords:["false","true","in","as","using"],directiveStartCloseTag1:/attempt|recover|sep|auto[eE]sc|no(?:autoe|AutoE)sc|compress|default|no[eE]scape|comment|no[pP]arse/,directiveStartCloseTag2:/else|break|continue|return|stop|flush|t|lt|rt|nt|nested|recurse|fallback|ftl/,directiveStartBlank:/if|else[iI]f|list|for[eE]ach|switch|case|assign|global|local|include|import|function|macro|transform|visit|stop|return|call|setting|output[fF]ormat|nested|recurse|escape|ftl|items/,directiveEndCloseTag1:/if|list|items|sep|recover|attempt|for[eE]ach|local|global|assign|function|macro|output[fF]ormat|auto[eE]sc|no(?:autoe|AutoE)sc|compress|transform|switch|escape|no[eE]scape/,escapedChar:/\\(?:[ntrfbgla\\'"\{=]|(?:x[0-9A-Fa-f]{1,4}))/,asciiDigit:/[0-9]/,integer:/[0-9]+/,nonEscapedIdStartChar:/[\$@-Z_a-z\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u1FFF\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3040-\u318F\u31A0-\u31BA\u31F0-\u31FF\u3300-\u337F\u3400-\u4DB5\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,escapedIdChar:/\\[\-\.:#]/,idStartChar:/(?:@nonEscapedIdStartChar)|(?:@escapedIdChar)/,id:/(?:@idStartChar)(?:(?:@idStartChar)|(?:@asciiDigit))*/,specialHashKeys:/\*\*|\*|false|true|in|as|using/,namedSymbols:/<=|>=|\\lte|\\lt|<|\\gte|\\gt|>|&&|\\and|->|->|==|!=|\+=|-=|\*=|\/=|%=|\+\+|--|<=|&&|\|\||:|\.\.\.|\.\.\*|\.\.<|\.\.!|\?\?|=|<|\+|-|\*|\/|%|\||\.\.|\?|!|&|\.|,|;/,arrows:["->","->"],delimiters:[";",":",",","."],stringOperators:["lte","lt","gte","gt"],noParseTags:["noparse","noParse","comment"],tokenizer:{[e("default__id__")]:[{include:e("@directive_token__id__")},{include:e("@interpolation_and_text_token__id__")}],[e("fmExpression__id__.directive")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("fmExpression__id__.interpolation")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("inParen__id__.plain")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("inParen__id__.gt")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("noSpaceExpression__id__")]:[{include:e("@no_space_expression_end_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("unifiedCall__id__")]:[{include:e("@unified_call_token__id__")}],[e("singleString__id__")]:[{include:e("@string_single_token__id__")}],[e("doubleString__id__")]:[{include:e("@string_double_token__id__")}],[e("rawSingleString__id__")]:[{include:e("@string_single_raw_token__id__")}],[e("rawDoubleString__id__")]:[{include:e("@string_double_raw_token__id__")}],[e("expressionComment__id__")]:[{include:e("@expression_comment_token__id__")}],[e("noParse__id__")]:[{include:e("@no_parse_token__id__")}],[e("terseComment__id__")]:[{include:e("@terse_comment_token__id__")}],[e("directive_token__id__")]:[[o(/(?:@startTag__id__)(@directiveStartCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{cases:{"@noParseTags":{token:"tag",next:e("@noParse__id__.$3")},"@default":{token:"tag"}}},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartCloseTag2)(?:@closeTag2__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartBlank)(@blank)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(?:@endTag__id__)(@directiveEndCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)(@)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive",next:e("@unifiedCall__id__")}]],[o(/(@open__id__)(\/@)((?:(?:@id)(?:\.(?:@id))*)?)(?:@closeTag1__id__)/),[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)#--/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:{token:"comment",next:e("@terseComment__id__")}],[o(/(?:@startOrEndTag__id__)([a-zA-Z_]+)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag.invalid",next:e("@fmExpression__id__.directive")}]]],[e("interpolation_and_text_token__id__")]:[[o(/(@iOpen1__id__)(@iOpen2__id__)/),[{token:n.id==="bracket"?"@brackets.interpolation":"delimiter.interpolation"},{token:n.id==="bracket"?"delimiter.interpolation":"@brackets.interpolation",next:e("@fmExpression__id__.interpolation")}]],[/[\$#<\[\{]|(?:@blank)+|[^\$<#\[\{\n\r\t ]+/,{token:"source"}]],[e("string_single_token__id__")]:[[/[^'\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/'/,{token:"string",next:"@pop"}]],[e("string_double_token__id__")]:[[/[^"\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/"/,{token:"string",next:"@pop"}]],[e("string_single_raw_token__id__")]:[[/[^']+/,{token:"string.raw"}],[/'/,{token:"string.raw",next:"@pop"}]],[e("string_double_raw_token__id__")]:[[/[^"]+/,{token:"string.raw"}],[/"/,{token:"string.raw",next:"@pop"}]],[e("expression_token__id__")]:[[/(r?)(['"])/,{cases:{"r'":[{token:"keyword"},{token:"string.raw",next:e("@rawSingleString__id__")}],'r"':[{token:"keyword"},{token:"string.raw",next:e("@rawDoubleString__id__")}],"'":[{token:"source"},{token:"string",next:e("@singleString__id__")}],'"':[{token:"source"},{token:"string",next:e("@doubleString__id__")}]}}],[/(?:@integer)(?:\.(?:@integer))?/,{cases:{"(?:@integer)":{token:"number"},"@default":{token:"number.float"}}}],[/(\.)(@blank*)(@specialHashKeys)/,[{token:"delimiter"},{token:""},{token:"identifier"}]],[/(?:@namedSymbols)/,{cases:{"@arrows":{token:"meta.arrow"},"@delimiters":{token:"delimiter"},"@default":{token:"operators"}}}],[/@id/,{cases:{"@keywords":{token:"keyword.$0"},"@stringOperators":{token:"operators"},"@default":{token:"identifier"}}}],[/[\[\]\(\)\{\}]/,{cases:{"\\[":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\]":{cases:{...n.id==="bracket"?{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}}:{},...t.id==="bracket"?{"$S2==directive":{token:"@brackets.directive",next:"@popall"}}:{},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\(":{token:"@brackets",next:e("@inParen__id__.gt")},"\\)":{cases:{[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\{":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\}":{cases:{...n.id==="bracket"?{}:{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}}}}],[/\$\{/,{token:"delimiter.invalid"}]],[e("blank_and_expression_comment_token__id__")]:[[/(?:@blank)+/,{token:""}],[/[<\[][#!]--/,{token:"comment",next:e("@expressionComment__id__")}]],[e("directive_end_token__id__")]:[[/>/,t.id==="bracket"?{token:"operators"}:{token:"@brackets.directive",next:"@popall"}],[o(/(\/)(@close__id__)/),[{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]]],[e("greater_operators_token__id__")]:[[/>/,{token:"operators"}],[/>=/,{token:"operators"}]],[e("no_space_expression_end_token__id__")]:[[/(?:@blank)+/,{token:"",switchTo:e("@fmExpression__id__.directive")}]],[e("unified_call_token__id__")]:[[/(@id)((?:@blank)+)/,[{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(@id)(\/?)(@close__id__)/),[{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]],[/./,{token:"@rematch",next:e("@noSpaceExpression__id__")}]],[e("no_parse_token__id__")]:[[o(/(@open__id__)(\/#?)([a-zA-Z]+)((?:@blank)*)(@close__id__)/),{cases:{"$S2==$3":[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:""},{token:"@brackets.directive",next:"@popall"}],"$S2==comment":[{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"}],"@default":[{token:"source"},{token:"source"},{token:"source"},{token:"source"},{token:"source"}]}}],[/[^<\[\-]+|[<\[\-]/,{cases:{"$S2==comment":{token:"comment"},"@default":{token:"source"}}}]],[e("expression_comment_token__id__")]:[[/--[>\]]/,{token:"comment",next:"@pop"}],[/[^\->\]]+|[>\]\-]/,{token:"comment"}]],[e("terse_comment_token__id__")]:[[o(/--(?:@close__id__)/),{token:"comment",next:"@popall"}],[/[^<\[\-]+|[<\[\-]/,{token:"comment"}]]}}}function m(t){const n=i(a,t),_=i(u,t),e=i(D,t);return{...n,..._,...e,unicode:!0,includeLF:!1,start:`default_auto_${t.id}`,ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{...n.tokenizer,..._.tokenizer,...e.tokenizer}}}var w={conf:l(a),language:i(a,k)},h={conf:l(u),language:i(u,k)},T={conf:l(a),language:i(a,p)},S={conf:l(u),language:i(u,p)},y={conf:A(),language:m(k)},P={conf:A(),language:m(p)};export{T as TagAngleInterpolationBracket,w as TagAngleInterpolationDollar,P as TagAutoInterpolationBracket,y as TagAutoInterpolationDollar,S as TagBracketInterpolationBracket,h as TagBracketInterpolationDollar}; -//# sourceMappingURL=freemarker2.e187740c.js.map +//# sourceMappingURL=freemarker2.52d23530.js.map diff --git a/abstra_statics/dist/assets/gateway.2edca867.js b/abstra_statics/dist/assets/gateway.2edca867.js new file mode 100644 index 0000000000..35fbc8f229 --- /dev/null +++ b/abstra_statics/dist/assets/gateway.2edca867.js @@ -0,0 +1,2 @@ +import{t as i,p as a}from"./passwordlessManager.afd7d1d0.js";import"./registerWidgets.cb3a7b8d.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="ab42df13-3e8f-47c4-ab59-549d181f1164",t._sentryDebugIdIdentifier="sentry-dbid-ab42df13-3e8f-47c4-ab59-549d181f1164")}catch{}})();const n=i("cloud-api");class p{static async get(e){const r=await(await fetch(`${n}/console/${e}`,{headers:{...a.getUserHeaders("Author-Authorization")}})).text();return r?JSON.parse(r):null}static async post(e,s){const o=await(await fetch(`${n}/console/${e}`,{method:"POST",headers:{"Content-Type":"application/json",...a.getUserHeaders("Author-Authorization")},body:JSON.stringify(s)})).text();return o?JSON.parse(o):null}static async patch(e,s){const o=await(await fetch(`${n}/console/${e}`,{method:"PATCH",headers:{"Content-Type":"application/json",...a.getUserHeaders("Author-Authorization")},body:JSON.stringify(s)})).text();return o?JSON.parse(o):null}static async delete(e){await fetch(`${n}/console/${e}`,{method:"DELETE",headers:{"Content-Type":"application/json",...a.getUserHeaders("Author-Authorization")}})}}export{p as C}; +//# sourceMappingURL=gateway.2edca867.js.map diff --git a/abstra_statics/dist/assets/gateway.63e02d1d.js b/abstra_statics/dist/assets/gateway.63e02d1d.js deleted file mode 100644 index 89d2bd9ffe..0000000000 --- a/abstra_statics/dist/assets/gateway.63e02d1d.js +++ /dev/null @@ -1,2 +0,0 @@ -import{t as i,p as n}from"./passwordlessManager.f53316a7.js";import"./registerWidgets.3fe0df5a.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="3469d595-d16b-471c-9382-afc66fb8565e",t._sentryDebugIdIdentifier="sentry-dbid-3469d595-d16b-471c-9382-afc66fb8565e")}catch{}})();const a=i("cloud-api");class p{static async get(e){const r=await(await fetch(`${a}/console/${e}`,{headers:{...n.getUserHeaders("Author-Authorization")}})).text();return r?JSON.parse(r):null}static async post(e,s){const o=await(await fetch(`${a}/console/${e}`,{method:"POST",headers:{"Content-Type":"application/json",...n.getUserHeaders("Author-Authorization")},body:JSON.stringify(s)})).text();return o?JSON.parse(o):null}static async patch(e,s){const o=await(await fetch(`${a}/console/${e}`,{method:"PATCH",headers:{"Content-Type":"application/json",...n.getUserHeaders("Author-Authorization")},body:JSON.stringify(s)})).text();return o?JSON.parse(o):null}static async delete(e){await fetch(`${a}/console/${e}`,{method:"DELETE",headers:{"Content-Type":"application/json",...n.getUserHeaders("Author-Authorization")}})}}export{p as C}; -//# sourceMappingURL=gateway.63e02d1d.js.map diff --git a/abstra_statics/dist/assets/handlebars.c84277e3.js b/abstra_statics/dist/assets/handlebars.77e555cf.js similarity index 86% rename from abstra_statics/dist/assets/handlebars.c84277e3.js rename to abstra_statics/dist/assets/handlebars.77e555cf.js index 7b84a38038..21f0a17e88 100644 --- a/abstra_statics/dist/assets/handlebars.c84277e3.js +++ b/abstra_statics/dist/assets/handlebars.77e555cf.js @@ -1,7 +1,7 @@ -import{m as l}from"./editor.main.aa43f13b.js";import"./registerWidgets.3fe0df5a.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="b340ad33-7504-4038-87a9-81d580a8947c",t._sentryDebugIdIdentifier="sentry-dbid-b340ad33-7504-4038-87a9-81d580a8947c")}catch{}})();/*!----------------------------------------------------------------------------- +import{m}from"./editor.main.2331c6e5.js";import"./registerWidgets.cb3a7b8d.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="41ddd3a4-2b1c-4ba1-adf1-bb5bd1a92fa1",t._sentryDebugIdIdentifier="sentry-dbid-41ddd3a4-2b1c-4ba1-adf1-bb5bd1a92fa1")}catch{}})();/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var d=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,i=(t,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of c(e))!p.call(t,r)&&r!==n&&d(t,r,{get:()=>e[r],enumerable:!(o=s(e,r))||o.enumerable});return t},h=(t,e,n)=>(i(t,e,"default"),n&&i(n,e,"default")),a={};h(a,l);var m=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],y={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[[""],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:a.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:a.languages.IndentAction.Indent}}]},k={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{y as conf,k as language}; -//# sourceMappingURL=handlebars.c84277e3.js.map + *-----------------------------------------------------------------------------*/var l=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,i=(t,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of c(e))!p.call(t,a)&&a!==n&&l(t,a,{get:()=>e[a],enumerable:!(o=s(e,a))||o.enumerable});return t},h=(t,e,n)=>(i(t,e,"default"),n&&i(n,e,"default")),r={};h(r,m);var d=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],y={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[[""],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${d.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:r.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${d.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:r.languages.IndentAction.Indent}}]},k={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{y as conf,k as language}; +//# sourceMappingURL=handlebars.77e555cf.js.map diff --git a/abstra_statics/dist/assets/hooks.56004b79.js b/abstra_statics/dist/assets/hooks.fd4bb08f.js similarity index 87% rename from abstra_statics/dist/assets/hooks.56004b79.js rename to abstra_statics/dist/assets/hooks.fd4bb08f.js index f338e16f03..8aa02ec006 100644 --- a/abstra_statics/dist/assets/hooks.56004b79.js +++ b/abstra_statics/dist/assets/hooks.fd4bb08f.js @@ -1,2 +1,2 @@ -var y=Object.defineProperty;var l=(a,t,e)=>t in a?y(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var o=(a,t,e)=>(l(a,typeof t!="symbol"?t+"":t,e),e);import{A as f}from"./activeRecord.2bc1b71f.js";import"./registerWidgets.3fe0df5a.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="79431cc0-8abf-42ab-8a04-9409d7fde0f4",a._sentryDebugIdIdentifier="sentry-dbid-79431cc0-8abf-42ab-8a04-9409d7fde0f4")}catch{}})();class w{async list(){return await(await fetch("/_editor/api/hooks")).json()}async create(){return await(await fetch("/_editor/api/hooks",{method:"POST",headers:{"Content-Type":"application/json"}})).json()}async get(t){return await(await fetch(`/_editor/api/hooks/${t}`)).json()}async update(t,e){return await(await fetch(`/_editor/api/hooks/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async delete(t){await fetch(`/_editor/api/hooks/${t}`,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async test(t,e){const n=new URLSearchParams(e.query),i=await fetch(`/_editor/api/hooks/${t}/test?${n.toString()}`,{method:e.method,headers:{"Content-Type":"application/json",...e.headers},body:e.method==="GET"?void 0:e.body}),{status:d,headers:c,body:h,stderr:p,stdout:u}=await i.json();return{status:d,headers:c,body:h,stderr:p,stdout:u}}}const s=new w;class r{constructor(t){o(this,"record");this.record=f.create(s,t,"path")}static async list(){return(await s.list()).map(e=>new r(e))}static async create(){const t=await s.create();return new r(t)}static async get(t){const e=await s.get(t);return new r(e)}async delete(){await s.delete(this.path)}async duplicate(){return this}disable(){return s.update(this.path,{enabled:!1})}enable(){return s.update(this.path,{enabled:!0})}async save(){await this.record.save(),console.log("save ",this.path)}onUpdate(t){this.record.pubsub.subscribe("update",t)}hasChanges(){return this.record.hasChanges()}get path(){return this.record.get("path")}set path(t){this.record.set("path",t)}get title(){return this.record.get("title")}get enabled(){return this.record.get("enabled")}get file(){return this.record.get("file")}set file(t){this.record.set("file",t)}async test(t){return s.test(this.path,t)}get routeName(){return"hooks"}}export{r as H}; -//# sourceMappingURL=hooks.56004b79.js.map +var y=Object.defineProperty;var l=(a,t,e)=>t in a?y(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var o=(a,t,e)=>(l(a,typeof t!="symbol"?t+"":t,e),e);import{A as f}from"./activeRecord.adfc6223.js";import"./registerWidgets.cb3a7b8d.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="b05e4a15-76b2-4648-90e2-7fa304312f60",a._sentryDebugIdIdentifier="sentry-dbid-b05e4a15-76b2-4648-90e2-7fa304312f60")}catch{}})();class w{async list(){return await(await fetch("/_editor/api/hooks")).json()}async create(){return await(await fetch("/_editor/api/hooks",{method:"POST",headers:{"Content-Type":"application/json"}})).json()}async get(t){return await(await fetch(`/_editor/api/hooks/${t}`)).json()}async update(t,e){return await(await fetch(`/_editor/api/hooks/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async delete(t){await fetch(`/_editor/api/hooks/${t}`,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async test(t,e){const n=new URLSearchParams(e.query),i=await fetch(`/_editor/api/hooks/${t}/test?${n.toString()}`,{method:e.method,headers:{"Content-Type":"application/json",...e.headers},body:e.method==="GET"?void 0:e.body}),{status:d,headers:c,body:h,stderr:p,stdout:u}=await i.json();return{status:d,headers:c,body:h,stderr:p,stdout:u}}}const s=new w;class r{constructor(t){o(this,"record");this.record=f.create(s,t,"path")}static async list(){return(await s.list()).map(e=>new r(e))}static async create(){const t=await s.create();return new r(t)}static async get(t){const e=await s.get(t);return new r(e)}async delete(){await s.delete(this.path)}async duplicate(){return this}disable(){return s.update(this.path,{enabled:!1})}enable(){return s.update(this.path,{enabled:!0})}async save(){await this.record.save(),console.log("save ",this.path)}onUpdate(t){this.record.pubsub.subscribe("update",t)}hasChanges(){return this.record.hasChanges()}get path(){return this.record.get("path")}set path(t){this.record.set("path",t)}get title(){return this.record.get("title")}get enabled(){return this.record.get("enabled")}get file(){return this.record.get("file")}set file(t){this.record.set("file",t)}async test(t){return s.test(this.path,t)}get routeName(){return"hooks"}}export{r as H}; +//# sourceMappingURL=hooks.fd4bb08f.js.map diff --git a/abstra_statics/dist/assets/html.4ba9e625.js b/abstra_statics/dist/assets/html.e9b85501.js similarity index 91% rename from abstra_statics/dist/assets/html.4ba9e625.js rename to abstra_statics/dist/assets/html.e9b85501.js index 1a94da225f..d250fe2ed6 100644 --- a/abstra_statics/dist/assets/html.4ba9e625.js +++ b/abstra_statics/dist/assets/html.e9b85501.js @@ -1,7 +1,7 @@ -import{m as s}from"./editor.main.aa43f13b.js";import"./registerWidgets.3fe0df5a.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="88da2781-0495-4e1b-bd5f-cc7dd0019ca6",t._sentryDebugIdIdentifier="sentry-dbid-88da2781-0495-4e1b-bd5f-cc7dd0019ca6")}catch{}})();/*!----------------------------------------------------------------------------- +import{m as d}from"./editor.main.2331c6e5.js";import"./registerWidgets.cb3a7b8d.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="2760d080-b237-47e4-9e2e-c2ec5e3020fb",t._sentryDebugIdIdentifier="sentry-dbid-2760d080-b237-47e4-9e2e-c2ec5e3020fb")}catch{}})();/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var p=Object.defineProperty,l=Object.getOwnPropertyDescriptor,m=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,a=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of m(e))!c.call(t,n)&&n!==r&&p(t,n,{get:()=>e[n],enumerable:!(o=l(e,n))||o.enumerable});return t},u=(t,e,r)=>(a(t,e,"default"),r&&a(r,e,"default")),i={};u(i,s);var d=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],x={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:[""]},brackets:[[""],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${d.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:i.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${d.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:i.languages.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*"),end:new RegExp("^\\s*")}}},g={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{x as conf,g as language}; -//# sourceMappingURL=html.4ba9e625.js.map + *-----------------------------------------------------------------------------*/var p=Object.defineProperty,l=Object.getOwnPropertyDescriptor,m=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,a=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of m(e))!c.call(t,n)&&n!==r&&p(t,n,{get:()=>e[n],enumerable:!(o=l(e,n))||o.enumerable});return t},u=(t,e,r)=>(a(t,e,"default"),r&&a(r,e,"default")),i={};u(i,d);var s=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],x={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:[""]},brackets:[[""],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${s.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:i.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${s.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:i.languages.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*"),end:new RegExp("^\\s*")}}},g={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{x as conf,g as language}; +//# sourceMappingURL=html.e9b85501.js.map diff --git a/abstra_statics/dist/assets/htmlMode.c0ca6de5.js b/abstra_statics/dist/assets/htmlMode.ca51a268.js similarity index 99% rename from abstra_statics/dist/assets/htmlMode.c0ca6de5.js rename to abstra_statics/dist/assets/htmlMode.ca51a268.js index 77de25289e..32b37a96a3 100644 --- a/abstra_statics/dist/assets/htmlMode.c0ca6de5.js +++ b/abstra_statics/dist/assets/htmlMode.ca51a268.js @@ -1,4 +1,4 @@ -var $e=Object.defineProperty;var qe=(e,n,i)=>n in e?$e(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>(qe(e,typeof n!="symbol"?n+"":n,i),i);import{m as Qe}from"./editor.main.aa43f13b.js";import"./registerWidgets.3fe0df5a.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e39d97f0-7b9d-450f-85bd-9b567a4a26c8",e._sentryDebugIdIdentifier="sentry-dbid-e39d97f0-7b9d-450f-85bd-9b567a4a26c8")}catch{}})();/*!----------------------------------------------------------------------------- +var $e=Object.defineProperty;var qe=(e,n,i)=>n in e?$e(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>(qe(e,typeof n!="symbol"?n+"":n,i),i);import{m as Qe}from"./editor.main.2331c6e5.js";import"./registerWidgets.cb3a7b8d.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a968346a-d482-4732-85a7-cdd0e2b3c71f",e._sentryDebugIdIdentifier="sentry-dbid-a968346a-d482-4732-85a7-cdd0e2b3c71f")}catch{}})();/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license @@ -7,4 +7,4 @@ var $e=Object.defineProperty;var qe=(e,n,i)=>n in e?$e(e,n,{enumerable:!0,config `,a==="\r"&&t+10&&n.push(i.length),this._lineOffsets=n}return this._lineOffsets},e.prototype.positionAt=function(n){n=Math.max(Math.min(n,this._content.length),0);var i=this.getLineOffsets(),r=0,t=i.length;if(t===0)return k.create(0,n);for(;rn?t=a:r=a+1}var o=r-1;return k.create(o,n-i[o])},e.prototype.offsetAt=function(n){var i=this.getLineOffsets();if(n.line>=i.length)return this._content.length;if(n.line<0)return 0;var r=i[n.line],t=n.line+1"u"}e.undefined=r;function t(f){return f===!0||f===!1}e.boolean=t;function a(f){return n.call(f)==="[object String]"}e.string=a;function o(f){return n.call(f)==="[object Number]"}e.number=o;function u(f,I,N){return n.call(f)==="[object Number]"&&I<=f&&f<=N}e.numberRange=u;function g(f){return n.call(f)==="[object Number]"&&-2147483648<=f&&f<=2147483647}e.integer=g;function d(f){return n.call(f)==="[object Number]"&&0<=f&&f<=2147483647}e.uinteger=d;function v(f){return n.call(f)==="[object Function]"}e.func=v;function w(f){return f!==null&&typeof f=="object"}e.objectLiteral=w;function b(f,I){return Array.isArray(f)&&f.every(I)}e.typedArray=b})(s||(s={}));var mt=class{constructor(e,n,i){E(this,"_disposables",[]);E(this,"_listener",Object.create(null));this._languageId=e,this._worker=n;const r=a=>{let o=a.getLanguageId();if(o!==this._languageId)return;let u;this._listener[a.uri.toString()]=a.onDidChangeContent(()=>{window.clearTimeout(u),u=window.setTimeout(()=>this._doValidate(a.uri,o),500)}),this._doValidate(a.uri,o)},t=a=>{c.editor.setModelMarkers(a,this._languageId,[]);let o=a.uri.toString(),u=this._listener[o];u&&(u.dispose(),delete this._listener[o])};this._disposables.push(c.editor.onDidCreateModel(r)),this._disposables.push(c.editor.onWillDisposeModel(t)),this._disposables.push(c.editor.onDidChangeModelLanguage(a=>{t(a.model),r(a.model)})),this._disposables.push(i(a=>{c.editor.getModels().forEach(o=>{o.getLanguageId()===this._languageId&&(t(o),r(o))})})),this._disposables.push({dispose:()=>{c.editor.getModels().forEach(t);for(let a in this._listener)this._listener[a].dispose()}}),c.editor.getModels().forEach(r)}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,n){this._worker(e).then(i=>i.doValidation(e.toString())).then(i=>{const r=i.map(a=>nt(e,a));let t=c.editor.getModel(e);t&&t.getLanguageId()===n&&c.editor.setModelMarkers(t,n,r)}).then(void 0,i=>{console.error(i)})}};function rt(e){switch(e){case A.Error:return c.MarkerSeverity.Error;case A.Warning:return c.MarkerSeverity.Warning;case A.Information:return c.MarkerSeverity.Info;case A.Hint:return c.MarkerSeverity.Hint;default:return c.MarkerSeverity.Info}}function nt(e,n){let i=typeof n.code=="number"?String(n.code):n.code;return{severity:rt(n.severity),startLineNumber:n.range.start.line+1,startColumn:n.range.start.character+1,endLineNumber:n.range.end.line+1,endColumn:n.range.end.character+1,message:n.message,code:i,source:n.source}}var it=class{constructor(e,n){this._worker=e,this._triggerCharacters=n}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doComplete(t.toString(),C(n))).then(a=>{if(!a)return;const o=e.getWordUntilPosition(n),u=new c.Range(n.lineNumber,o.startColumn,n.lineNumber,o.endColumn),g=a.items.map(d=>{const v={label:d.label,insertText:d.insertText||d.label,sortText:d.sortText,filterText:d.filterText,documentation:d.documentation,detail:d.detail,command:st(d.command),range:u,kind:ot(d.kind)};return d.textEdit&&(at(d.textEdit)?v.range={insert:_(d.textEdit.insert),replace:_(d.textEdit.replace)}:v.range=_(d.textEdit.range),v.insertText=d.textEdit.newText),d.additionalTextEdits&&(v.additionalTextEdits=d.additionalTextEdits.map(j)),d.insertTextFormat===G.Snippet&&(v.insertTextRules=c.languages.CompletionItemInsertTextRule.InsertAsSnippet),v});return{isIncomplete:a.isIncomplete,suggestions:g}})}};function C(e){if(!!e)return{character:e.column-1,line:e.lineNumber-1}}function Se(e){if(!!e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function _(e){if(!!e)return new c.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function at(e){return typeof e.insert<"u"&&typeof e.replace<"u"}function ot(e){const n=c.languages.CompletionItemKind;switch(e){case l.Text:return n.Text;case l.Method:return n.Method;case l.Function:return n.Function;case l.Constructor:return n.Constructor;case l.Field:return n.Field;case l.Variable:return n.Variable;case l.Class:return n.Class;case l.Interface:return n.Interface;case l.Module:return n.Module;case l.Property:return n.Property;case l.Unit:return n.Unit;case l.Value:return n.Value;case l.Enum:return n.Enum;case l.Keyword:return n.Keyword;case l.Snippet:return n.Snippet;case l.Color:return n.Color;case l.File:return n.File;case l.Reference:return n.Reference}return n.Property}function j(e){if(!!e)return{range:_(e.range),text:e.newText}}function st(e){return e&&e.command==="editor.action.triggerSuggest"?{id:e.command,title:e.title,arguments:e.arguments}:void 0}var Te=class{constructor(e){this._worker=e}provideHover(e,n,i){let r=e.uri;return this._worker(r).then(t=>t.doHover(r.toString(),C(n))).then(t=>{if(!!t)return{range:_(t.range),contents:ct(t.contents)}})}};function ut(e){return e&&typeof e=="object"&&typeof e.kind=="string"}function Re(e){return typeof e=="string"?{value:e}:ut(e)?e.kind==="plaintext"?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+` `+e.value+"\n```\n"}}function ct(e){if(!!e)return Array.isArray(e)?e.map(Re):[Re(e)]}var Fe=class{constructor(e){this._worker=e}provideDocumentHighlights(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDocumentHighlights(r.toString(),C(n))).then(t=>{if(!!t)return t.map(a=>({range:_(a.range),kind:dt(a.kind)}))})}};function dt(e){switch(e){case D.Read:return c.languages.DocumentHighlightKind.Read;case D.Write:return c.languages.DocumentHighlightKind.Write;case D.Text:return c.languages.DocumentHighlightKind.Text}return c.languages.DocumentHighlightKind.Text}var _t=class{constructor(e){this._worker=e}provideDefinition(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDefinition(r.toString(),C(n))).then(t=>{if(!!t)return[Le(t)]})}};function Le(e){return{uri:c.Uri.parse(e.uri),range:_(e.range)}}var wt=class{constructor(e){this._worker=e}provideReferences(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.findReferences(t.toString(),C(n))).then(a=>{if(!!a)return a.map(Le)})}},je=class{constructor(e){this._worker=e}provideRenameEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doRename(t.toString(),C(n),i)).then(a=>ft(a))}};function ft(e){if(!e||!e.changes)return;let n=[];for(let i in e.changes){const r=c.Uri.parse(i);for(let t of e.changes[i])n.push({resource:r,versionId:void 0,textEdit:{range:_(t.range),text:t.newText}})}return{edits:n}}var Ne=class{constructor(e){this._worker=e}provideDocumentSymbols(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentSymbols(i.toString())).then(r=>{if(!!r)return r.map(t=>({name:t.name,detail:"",containerName:t.containerName,kind:gt(t.kind),range:_(t.location.range),selectionRange:_(t.location.range),tags:[]}))})}};function gt(e){let n=c.languages.SymbolKind;switch(e){case h.File:return n.Array;case h.Module:return n.Module;case h.Namespace:return n.Namespace;case h.Package:return n.Package;case h.Class:return n.Class;case h.Method:return n.Method;case h.Property:return n.Property;case h.Field:return n.Field;case h.Constructor:return n.Constructor;case h.Enum:return n.Enum;case h.Interface:return n.Interface;case h.Function:return n.Function;case h.Variable:return n.Variable;case h.Constant:return n.Constant;case h.String:return n.String;case h.Number:return n.Number;case h.Boolean:return n.Boolean;case h.Array:return n.Array}return n.Function}var We=class{constructor(e){this._worker=e}provideLinks(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentLinks(i.toString())).then(r=>{if(!!r)return{links:r.map(t=>({range:_(t.range),url:t.target}))}})}},He=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.format(r.toString(),null,Oe(n)).then(a=>{if(!(!a||a.length===0))return a.map(j)}))}},Ue=class{constructor(e){this._worker=e}provideDocumentRangeFormattingEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.format(t.toString(),Se(n),Oe(i)).then(o=>{if(!(!o||o.length===0))return o.map(j)}))}};function Oe(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var kt=class{constructor(e){this._worker=e}provideDocumentColors(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentColors(i.toString())).then(r=>{if(!!r)return r.map(t=>({color:t.color,range:_(t.range)}))})}provideColorPresentations(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getColorPresentations(r.toString(),n.color,Se(n.range))).then(t=>{if(!!t)return t.map(a=>{let o={label:a.label};return a.textEdit&&(o.textEdit=j(a.textEdit)),a.additionalTextEdits&&(o.additionalTextEdits=a.additionalTextEdits.map(j)),o})})}},Ve=class{constructor(e){this._worker=e}provideFoldingRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getFoldingRanges(r.toString(),n)).then(t=>{if(!!t)return t.map(a=>{const o={start:a.startLine+1,end:a.endLine+1};return typeof a.kind<"u"&&(o.kind=lt(a.kind)),o})})}};function lt(e){switch(e){case R.Comment:return c.languages.FoldingRangeKind.Comment;case R.Imports:return c.languages.FoldingRangeKind.Imports;case R.Region:return c.languages.FoldingRangeKind.Region}}var ze=class{constructor(e){this._worker=e}provideSelectionRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getSelectionRanges(r.toString(),n.map(C))).then(t=>{if(!!t)return t.map(a=>{const o=[];for(;a;)o.push({range:_(a.range)}),a=a.parent;return o})})}},Xe=class extends it{constructor(e){super(e,[".",":","<",'"',"=","/"])}};function bt(e){const n=new Me(e),i=(...t)=>n.getLanguageServiceWorker(...t);let r=e.languageId;c.languages.registerCompletionItemProvider(r,new Xe(i)),c.languages.registerHoverProvider(r,new Te(i)),c.languages.registerDocumentHighlightProvider(r,new Fe(i)),c.languages.registerLinkProvider(r,new We(i)),c.languages.registerFoldingRangeProvider(r,new Ve(i)),c.languages.registerDocumentSymbolProvider(r,new Ne(i)),c.languages.registerSelectionRangeProvider(r,new ze(i)),c.languages.registerRenameProvider(r,new je(i)),r==="html"&&(c.languages.registerDocumentFormattingEditProvider(r,new He(i)),c.languages.registerDocumentRangeFormattingEditProvider(r,new Ue(i)))}function Et(e){const n=[],i=[],r=new Me(e);n.push(r);const t=(...o)=>r.getLanguageServiceWorker(...o);function a(){const{languageId:o,modeConfiguration:u}=e;Be(i),u.completionItems&&i.push(c.languages.registerCompletionItemProvider(o,new Xe(t))),u.hovers&&i.push(c.languages.registerHoverProvider(o,new Te(t))),u.documentHighlights&&i.push(c.languages.registerDocumentHighlightProvider(o,new Fe(t))),u.links&&i.push(c.languages.registerLinkProvider(o,new We(t))),u.documentSymbols&&i.push(c.languages.registerDocumentSymbolProvider(o,new Ne(t))),u.rename&&i.push(c.languages.registerRenameProvider(o,new je(t))),u.foldingRanges&&i.push(c.languages.registerFoldingRangeProvider(o,new Ve(t))),u.selectionRanges&&i.push(c.languages.registerSelectionRangeProvider(o,new ze(t))),u.documentFormattingEdits&&i.push(c.languages.registerDocumentFormattingEditProvider(o,new He(t))),u.documentRangeFormattingEdits&&i.push(c.languages.registerDocumentRangeFormattingEditProvider(o,new Ue(t)))}return a(),n.push(De(i)),De(n)}function De(e){return{dispose:()=>Be(e)}}function Be(e){for(;e.length;)e.pop().dispose()}export{it as CompletionAdapter,_t as DefinitionAdapter,mt as DiagnosticsAdapter,kt as DocumentColorAdapter,He as DocumentFormattingEditProvider,Fe as DocumentHighlightAdapter,We as DocumentLinkAdapter,Ue as DocumentRangeFormattingEditProvider,Ne as DocumentSymbolAdapter,Ve as FoldingRangeAdapter,Te as HoverAdapter,wt as ReferenceAdapter,je as RenameAdapter,ze as SelectionRangeAdapter,Me as WorkerManager,C as fromPosition,Se as fromRange,Et as setupMode,bt as setupMode1,_ as toRange,j as toTextEdit}; -//# sourceMappingURL=htmlMode.c0ca6de5.js.map +//# sourceMappingURL=htmlMode.ca51a268.js.map diff --git a/abstra_statics/dist/assets/icons.9d575a00.js b/abstra_statics/dist/assets/icons.39dfa322.js similarity index 96% rename from abstra_statics/dist/assets/icons.9d575a00.js rename to abstra_statics/dist/assets/icons.39dfa322.js index e498c319a0..f531c1ebf9 100644 --- a/abstra_statics/dist/assets/icons.9d575a00.js +++ b/abstra_statics/dist/assets/icons.39dfa322.js @@ -1,2 +1,2 @@ -import"./registerWidgets.3fe0df5a.js";(function(){try{var C=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},L=new Error().stack;L&&(C._sentryDebugIds=C._sentryDebugIds||{},C._sentryDebugIds[L]="f818fcf3-5f18-468e-932d-d9408a796a98",C._sentryDebugIdIdentifier="sentry-dbid-f818fcf3-5f18-468e-932d-d9408a796a98")}catch{}})();const M="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",Z="M6 19C6 20.1 6.9 21 8 21H16C17.1 21 18 20.1 18 19V7H6V19ZM8 9H16V19H8V9ZM15.5 4L14.5 3H9.5L8.5 4H5V6H19V4H15.5Z",s="M18.15 7.23525C16.7 5.78525 14.71 4.88525 12.5 4.88525C8.08001 4.88525 4.51001 8.46525 4.51001 12.8853C4.51001 17.3053 8.08001 20.8853 12.5 20.8853C16.23 20.8853 19.34 18.3353 20.23 14.8853H18.15C17.33 17.2153 15.11 18.8853 12.5 18.8853C9.19001 18.8853 6.50001 16.1953 6.50001 12.8853C6.50001 9.57525 9.19001 6.88525 12.5 6.88525C14.16 6.88525 15.64 7.57525 16.72 8.66525L13.5 11.8853H20.5V4.88525L18.15 7.23525Z",n="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",o="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",e="M7 14C5.9 14 5 13.1 5 12S5.9 10 7 10 9 10.9 9 12 8.1 14 7 14M12.6 10C11.8 7.7 9.6 6 7 6C3.7 6 1 8.7 1 12S3.7 18 7 18C9.6 18 11.8 16.3 12.6 14H16V18H20V14H23V10H12.6Z",c="M10.4122 15.9425L14.9037 12.2121C14.9338 12.1869 14.958 12.1549 14.9747 12.1184C14.9913 12.0819 15 12.0419 15 12.0014C15 11.9609 14.9913 11.9209 14.9747 11.8845C14.958 11.848 14.9338 11.8159 14.9037 11.7908L10.4122 8.058C10.2455 7.91993 10 8.04372 10 8.2675V15.7306C10 15.9544 10.2455 16.0805 10.4122 15.9425Z M20.28 3H3.72C3.32175 3 3 3.32175 3 3.72V20.28C3 20.6783 3.32175 21 3.72 21H20.28C20.6783 21 21 20.6783 21 20.28V3.72C21 3.32175 20.6783 3 20.28 3ZM19.38 19.38H4.62V4.62H19.38V19.38Z",t="M12.1373 17.7157C12.1373 17.8719 12.2539 17.9997 12.3946 17.9997H18.7426C18.8833 17.9997 19 17.8719 19 17.7157V16.0116C19 15.8553 18.8833 15.7275 18.7426 15.7275H12.3946C12.2539 15.7275 12.1373 15.8553 12.1373 16.0116V17.7157ZM5.44951 17.9323L12.0377 12.2163C12.1681 12.1027 12.1681 11.8932 12.0377 11.7796L5.44951 6.06723C5.40974 6.03224 5.3611 6.00979 5.30936 6.00255C5.25763 5.99531 5.20497 6.00358 5.15764 6.02638C5.11031 6.04918 5.0703 6.08556 5.04236 6.13119C5.01442 6.17681 4.99972 6.22978 5 6.2838V8.50982C5 8.59503 5.03432 8.67313 5.09951 8.72639L8.86716 11.9997L5.09951 15.2731C5.06884 15.2997 5.04407 15.3328 5.0269 15.3701C5.00973 15.4075 5.00055 15.4483 5 15.4897V17.7157C5 17.9571 5.27108 18.0885 5.44951 17.9323Z",a="M15 18H3V16H15V18ZM21 13H3V11H21V13ZM15 8H3V6H15V8Z",d="M13.5,4A1.5,1.5 0 0,0 12,5.5A1.5,1.5 0 0,0 13.5,7A1.5,1.5 0 0,0 15,5.5A1.5,1.5 0 0,0 13.5,4M13.14,8.77C11.95,8.87 8.7,11.46 8.7,11.46C8.5,11.61 8.56,11.6 8.72,11.88C8.88,12.15 8.86,12.17 9.05,12.04C9.25,11.91 9.58,11.7 10.13,11.36C12.25,10 10.47,13.14 9.56,18.43C9.2,21.05 11.56,19.7 12.17,19.3C12.77,18.91 14.38,17.8 14.54,17.69C14.76,17.54 14.6,17.42 14.43,17.17C14.31,17 14.19,17.12 14.19,17.12C13.54,17.55 12.35,18.45 12.19,17.88C12,17.31 13.22,13.4 13.89,10.71C14,10.07 14.3,8.67 13.14,8.77Z",l="M18.7375 11.0838C18.1142 8.06508 15.3367 5.79883 12 5.79883C9.35083 5.79883 7.05 7.23383 5.90417 9.33383C3.145 9.61383 1 11.8451 1 14.5488C1 17.4451 3.46583 19.7988 6.5 19.7988H18.4167C20.9467 19.7988 23 17.8388 23 15.4238C23 13.1138 21.1208 11.2413 18.7375 11.0838ZM18.4167 18.0488H6.5C4.47417 18.0488 2.83333 16.4826 2.83333 14.5488C2.83333 12.7551 4.23583 11.2588 6.09667 11.0751L7.0775 10.9788L7.53583 10.1476C8.40667 8.54633 10.1117 7.54883 12 7.54883C14.4017 7.54883 16.4733 9.17633 16.9408 11.4251L17.2158 12.7376L18.6183 12.8338C20.0483 12.9213 21.1667 14.0676 21.1667 15.4238C21.1667 16.8676 19.9292 18.0488 18.4167 18.0488ZM8.33333 13.6738H10.6708V16.2988H13.3292V13.6738H15.6667L12 10.1738L8.33333 13.6738Z",r="M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",i="M12 22C6.49 22 2 17.51 2 12C2 6.49 6.49 2 12 2C17.51 2 22 6.04 22 11C22 14.31 19.31 17 16 17H14.23C13.95 17 13.73 17.22 13.73 17.5C13.73 17.62 13.78 17.73 13.86 17.83C14.27 18.3 14.5 18.89 14.5 19.5C14.5 20.88 13.38 22 12 22ZM12 4C7.59 4 4 7.59 4 12C4 16.41 7.59 20 12 20C12.28 20 12.5 19.78 12.5 19.5C12.5 19.34 12.42 19.22 12.36 19.15C11.95 18.69 11.73 18.1 11.73 17.5C11.73 16.12 12.85 15 14.23 15H16C18.21 15 20 13.21 20 11C20 7.14 16.41 4 12 4Z M6.5 13C7.32843 13 8 12.3284 8 11.5C8 10.6716 7.32843 10 6.5 10C5.67157 10 5 10.6716 5 11.5C5 12.3284 5.67157 13 6.5 13Z M9.5 9C10.3284 9 11 8.32843 11 7.5C11 6.67157 10.3284 6 9.5 6C8.67157 6 8 6.67157 8 7.5C8 8.32843 8.67157 9 9.5 9Z M14.5 9C15.3284 9 16 8.32843 16 7.5C16 6.67157 15.3284 6 14.5 6C13.6716 6 13 6.67157 13 7.5C13 8.32843 13.6716 9 14.5 9Z M17.5 13C18.3284 13 19 12.3284 19 11.5C19 10.6716 18.3284 10 17.5 10C16.6716 10 16 10.6716 16 11.5C16 12.3284 16.6716 13 17.5 13Z",A="M21 11.11V5C21 3.9 20.11 3 19 3H14.82C14.4 1.84 13.3 1 12 1S9.6 1.84 9.18 3H5C3.9 3 3 3.9 3 5V19C3 20.11 3.9 21 5 21H11.11C12.37 22.24 14.09 23 16 23C19.87 23 23 19.87 23 16C23 14.09 22.24 12.37 21 11.11M12 3C12.55 3 13 3.45 13 4S12.55 5 12 5 11 4.55 11 4 11.45 3 12 3M5 19V5H7V7H17V5H19V9.68C18.09 9.25 17.08 9 16 9H7V11H11.1C10.5 11.57 10.04 12.25 9.68 13H7V15H9.08C9.03 15.33 9 15.66 9 16C9 17.08 9.25 18.09 9.68 19H5M16 21C13.24 21 11 18.76 11 16S13.24 11 16 11 21 13.24 21 16 18.76 21 16 21M16.5 16.25L19.36 17.94L18.61 19.16L15 17V12H16.5V16.25Z",f="M12.0125 2C11.0798 2 10.1926 2.18775 9.32834 2.56324C5.75685 4.06509 4.05085 8.31251 5.52933 11.9967C6.62119 14.7189 9.16906 16.4788 12.0125 16.4788C12.9452 16.4788 13.8323 16.2911 14.6966 15.9156C18.2681 14.3904 19.9741 10.1663 18.4956 6.45862C17.4036 3.7599 14.8559 2 12.0125 2ZM6.43928 11.1988C6.00704 9.93174 6.00704 8.57065 6.43928 7.27995H7.94068C7.82691 7.91359 7.75868 8.59403 7.75868 9.22766C7.75868 9.83775 7.82691 10.4948 7.98622 11.1754L6.43929 11.1752L6.43928 11.1988ZM8.89605 9.22754C8.89605 8.54709 8.96428 7.88987 9.10074 7.27982H11.4438V11.1987L9.14628 11.1989C8.98697 10.5417 8.89605 9.86117 8.89605 9.22754ZM12.5812 3.47826C13.3774 3.80678 14.1053 4.81593 14.583 6.10646H12.5812V3.47826ZM11.4438 3.47826V6.10646H9.44191C9.9197 4.81593 10.6475 3.80679 11.4438 3.47826ZM11.4438 12.372V14.9768C10.6931 14.6249 9.9879 13.5923 9.51012 12.372H11.4438ZM12.5812 14.9768V12.372H14.5148C14.037 13.5922 13.3319 14.6247 12.5812 14.9768ZM12.5812 11.1987V7.2797H14.9242C15.0606 7.91333 15.1289 8.57039 15.1289 9.22741C15.1289 9.86105 15.0379 10.5181 14.8786 11.1751H12.5811L12.5812 11.1987ZM16.0842 7.2797H17.5856C18.0179 8.59378 17.995 9.95487 17.5856 11.1986H16.0389C16.1982 10.5182 16.2664 9.83754 16.2664 9.25088C16.2662 8.59399 16.198 7.91333 16.0842 7.2797ZM17.0625 6.10638H15.7886C15.5384 5.26158 15.1744 4.48715 14.7195 3.85351C15.6749 4.36994 16.4938 5.14438 17.0625 6.10638ZM9.30547 3.85368C8.87322 4.48732 8.50921 5.26175 8.23632 6.10654H6.98515C7.53114 5.14438 8.32739 4.36998 9.30547 3.85368ZM6.96244 12.372H8.30452C8.60029 13.2402 8.987 14.0616 9.48745 14.7421C8.46384 14.2258 7.57667 13.4044 6.96244 12.372ZM14.5375 14.7186C15.0152 14.0382 15.4246 13.2168 15.6976 12.372H17.0396C16.4711 13.3576 15.6067 14.2024 14.5375 14.7186ZM5.09509 22C5.70932 22 6.30072 21.7184 6.71027 21.2256C6.89227 20.9908 7.02873 20.7327 7.11965 20.4277H10.0106C10.2609 21.3429 11.0571 22 12.0125 22C12.9679 22 13.7641 21.3429 14.0143 20.4277H16.9054C17.1556 21.3429 17.9518 22 18.9072 22C20.0673 22 21 21.0378 21 19.8411C21 18.6443 20.0673 17.6822 18.9072 17.6822C17.9518 17.6822 17.1556 18.3392 16.9054 19.2544L14.0143 19.2543C13.8097 18.5268 13.2637 17.9636 12.5812 17.7758V17.2619C12.5812 16.9333 12.331 16.6752 12.0125 16.6752C11.694 16.6752 11.4438 16.9333 11.4438 17.2619V17.7758C10.7387 17.987 10.1926 18.5502 10.0106 19.2543H7.0969C6.8922 18.4799 6.25527 17.8698 5.50459 17.729C4.75391 17.5883 3.98049 17.8698 3.48004 18.48C3.07066 18.9729 2.91134 19.6299 3.04779 20.2634C3.2071 21.1082 3.86671 21.8123 4.68563 21.953C4.82209 22 4.95864 22 5.09509 22ZM18.9298 18.8553C19.453 18.8553 19.8852 19.3012 19.8852 19.8409C19.8852 20.3806 19.453 20.8265 18.9298 20.8265C18.4294 20.8265 18.02 20.4276 17.9744 19.9113V19.8409V19.7705C18.02 19.2778 18.4293 18.8553 18.9298 18.8553ZM12.0125 18.8553C12.5356 18.8553 12.9679 19.3012 12.9679 19.8409C12.9679 20.3806 12.5356 20.8265 12.0125 20.8265C11.4893 20.8265 11.057 20.3806 11.057 19.8409C11.057 19.3012 11.4893 18.8553 12.0125 18.8553ZM4.16243 20.0522C4.11689 19.7471 4.18512 19.4655 4.36712 19.2308C4.54913 18.9961 4.82204 18.8789 5.09513 18.8789C5.16337 18.8789 5.2316 18.8789 5.27714 18.9023C5.64114 18.9727 5.95961 19.2778 6.02782 19.6767C6.07336 19.9818 6.00512 20.2633 5.82312 20.4981C5.59558 20.7796 5.25443 20.897 4.89042 20.8266C4.52642 20.7326 4.23067 20.4275 4.16243 20.0522Z",u="m 14.6454,15.0573 2.5899,-2.3906 H 7 V 11.3333 H 17.2353 L 14.6454,8.94267 15.6667,8 20,12 15.6667,16 Z M 5.375,22 h 8.25 c 0.3646,-4e-4 0.7141,-0.151 0.9719,-0.4188 0.2578,-0.2679 0.4027,-0.631 0.4031,-1.0098 v -2.1428 h -1.375 v 2.1428 H 5.375 V 3.42857 h 8.25 V 5.57143 H 15 V 3.42857 C 14.9996,3.04981 14.8547,2.68666 14.5969,2.41884 14.3391,2.15101 13.9896,2.00038 13.625,2 H 5.375 C 5.01044,2.00038 4.66091,2.15101 4.40313,2.41884 4.14535,2.68666 4.00036,3.04981 4,3.42857 V 20.5714 c 3.6e-4,0.3788 0.14535,0.7419 0.40313,1.0098 C 4.66091,21.849 5.01044,21.9996 5.375,22 Z",h="m 20.348814,20.43092 c 2.2301,-2.2386 3.4802,-5.2708 3.4759,-8.4304 -0.0024,-0.1951 -0.0815,-0.3813 -0.2202,-0.5184 -0.1388,-0.1371 -0.3259,-0.2139 -0.5209,-0.2139 -0.1952,0 -0.3823,0.0768 -0.5211,0.2139 -0.1388,0.1371 -0.2178,0.3233 -0.2202,0.5184 0.0031,2.769 -1.093,5.4261 -3.0475,7.3876 -0.9488,0.9741 -2.0832,1.7483 -3.3361,2.277 -1.2529,0.5286 -2.599,0.801 -3.9588,0.801 -1.3599,0 -2.7059994,-0.2724 -3.9588994,-0.801 -1.2528999,-0.5287 -2.3871999,-1.3029 -3.3360399,-2.277 -1.9519,-1.9634 -3.0475,-4.6195 -3.0475,-7.3881 0,-2.7686005 1.0956,-5.4247 3.0475,-7.38813 0.94334,-0.96663 2.06914,-1.73639 3.3121399,-2.26465 1.2431,-0.52825 2.5785994,-0.8045 3.9291994,-0.81272 0.2884,0.00903 0.5618,0.13038 0.762,0.33815 0.2003,0.20776 0.3113,0.48553 0.3096,0.77404 -0.0016,0.28852 -0.1159,0.56496 -0.3185,0.7704 -0.2026,0.20543 -0.4775,0.32357 -0.7659,0.32925 -0.0268,6e-5 -0.0535,0.00154 -0.08,0.00444 -2.0547994,0.06617 -4.0044994,0.92415 -5.4413993,2.39452 -1.5175,1.5276 -2.36911,3.5933995 -2.36911,5.7466 0,2.1532 0.85161,4.2189 2.36911,5.7465 0.7414,0.7594 1.6270999,1.3629 2.6050999,1.7749 0.978,0.412 2.0285994,0.6242 3.0897994,0.6242 1.0612,0 2.1117,-0.2122 3.0898,-0.6242 0.9779,-0.412 1.8636,-1.0155 2.605,-1.7749 1.5198,-1.526 2.3718,-3.5928 2.3688,-5.7465 0.0031,-0.3392 -0.061,-0.6759 -0.1887,-0.9902 -0.1277,-0.3143 -0.3163,-0.6002 -0.5552,-0.8412 -0.2388,-0.2410005 -0.5229,-0.4323005 -0.8361,-0.5628005 -0.3131,-0.1306 -0.649,-0.1978 -0.9883,-0.1978 -0.3393,0 -0.6751,0.0672 -0.9883,0.1978 -0.3131,0.1305 -0.5972,0.3218 -0.8361,0.5628005 -0.2388,0.241 -0.4274,0.5269 -0.5552,0.8412 -0.1276,0.3143 -0.1917,0.651 -0.1886,0.9902 0,0.0216 0.0014,0.0419 0.0031,0.0627 -0.0017,0.0208 -0.0031,0.0415 -0.0031,0.0627 0.0049,0.5915 -0.1662,1.171 -0.4913,1.6652 -0.325,0.4941 -0.7896,0.8805 -1.3346,1.1102 -0.5451,0.2296 -1.1461,0.2923 -1.7268,0.1799 -0.5807,-0.1125 -1.1149,-0.3948 -1.5347994,-0.8114 -0.42,-0.4165 -0.7067,-0.9483 -0.8239,-1.5281 -0.1172,-0.5798 -0.0595,-1.1813 0.1657,-1.7281 0.2252,-0.547 0.6079,-1.0147005 1.0992994,-1.3438005 0.4915,-0.3291 1.0696,-0.5048 1.6611,-0.5049 0.0981,0.0012 0.1954,-0.0171 0.2864,-0.0538 0.0909,-0.0367 0.1737,-0.0911 0.2435,-0.1601 0.0697,-0.0689 0.1252,-0.151 0.163,-0.2415 0.0378,-0.0905 0.0573,-0.1877 0.0573,-0.2858 0,-0.0981 -0.0195,-0.1951995 -0.0573,-0.2856995 -0.0378,-0.0905 -0.0933,-0.1726 -0.163,-0.2416 -0.0698,-0.0689 -0.1526,-0.1233 -0.2435,-0.16 -0.091,-0.0367 -0.1883,-0.055 -0.2864,-0.0539 -0.8778,0.0049 -1.7345,0.2697 -2.4619994,0.7608995 -0.7274,0.4912 -1.2931,1.1869 -1.6257,1.9992005 -0.3325,0.8124 -0.417,1.7051 -0.2428,2.5654 0.1743,0.8603 0.5994,1.6497 1.2218,2.2687 0.6225,0.619 1.4142994,1.0397 2.2755994,1.2092 0.8612,0.1694 1.7534,0.0799 2.5639,-0.2571 0.8105,-0.337 1.5031,-0.9065 1.9902,-1.6367 0.4872,-0.7303 0.7471,-1.5884 0.7471,-2.4662 0,-0.0216 -0.0014,-0.0419 -0.0031,-0.0627 0.0017,-0.0208 0.0031,-0.0415 0.0031,-0.0627 -0.0029,-0.1444 0.023,-0.288 0.0764,-0.4223 0.0532,-0.1343 0.1328,-0.2566 0.2338,-0.3597 0.1012,-0.1032 0.2219,-0.1851 0.355,-0.2411 0.1332,-0.0559 0.2763,-0.0847 0.4207,-0.0847 0.1444,0 0.2875,0.0288 0.4206,0.0847 0.1332,0.056 0.2539,0.1379 0.355,0.2411 0.101,0.1031 0.1806,0.2254 0.2339,0.3597 0.0533,0.1343 0.0792,0.2779 0.0763,0.4223 0.002,1.7632 -0.696,3.4551 -1.9407,4.7041 -0.6034,0.62 -1.325,1.1127 -2.122,1.4492 -0.7971,0.3365 -1.6535,0.5098 -2.5187,0.5098 -0.8651,0 -1.7215,-0.1733 -2.5185994,-0.5098 -0.7971,-0.3365 -1.5186,-0.8292 -2.1221,-1.4492 -1.2429999,-1.25 -1.9406999,-2.9413 -1.9406999,-4.7041 0,-1.7629 0.6977,-3.4541005 1.9406999,-4.7042 0.6039,-0.6192 1.3255,-1.1115 2.1224,-1.4479 0.7967994,-0.3364 1.6527994,-0.5101 2.5177994,-0.5111 0.0666,-2e-4 0.1328,-0.0093 0.1969,-0.0272 0.631,-0.0968 1.204,-0.42314 1.6092,-0.91644 0.4051,-0.4933 0.6139,-1.11882 0.5862,-1.75657 -0.0277,-0.63776 -0.29,-1.24283 -0.7364,-1.69914 -0.4464,-0.45632 -1.0455,-0.73175 -1.6825,-0.77346 -0.0266,-0.0029 -0.0534,-0.00438 -0.0802,-0.00443 -0.015,0 -0.0298,0 -0.0447,0 -0.0074,0 -0.0145,0 -0.0216,0 -0.0072,0 -0.0145,8.6e-4 -0.0217,0.00108 -1.5409,0.01212 -3.0640994,0.32913 -4.4818994,0.93276 -1.4178999,0.60363 -2.7021399,1.48195 -3.7788799,2.5843 -2.22634,2.2409 -3.47585998,5.2714995 -3.47585998,8.4304 0,3.1588 1.24951998,6.1894 3.47585998,8.4303 1.08669,1.1136 2.38518,1.9986 3.8189799,2.6027 1.4338,0.6042 2.9740994,0.9155 4.5299994,0.9155 1.5559,0 3.0961,-0.3113 4.53,-0.9155 1.4338,-0.6041 2.7322,-1.4891 3.819,-2.6027 z",g="M11.4352 10.5208C10.6865 11.8758 9.96921 13.1879 9.23694 14.4902C9.04888 14.8246 8.9558 15.0969 9.10604 15.5219C9.52083 16.6959 8.93569 17.8385 7.83598 18.1486C6.79886 18.4411 5.78841 17.7073 5.58264 16.5119C5.4003 15.4539 6.16298 14.4167 7.2466 14.2513C7.33735 14.2373 7.43008 14.2357 7.58264 14.2234L9.23094 11.2478C8.19425 10.138 7.57721 8.84086 7.71376 7.23333C7.81029 6.09705 8.22537 5.11506 8.98396 4.31023C10.4369 2.76895 12.6536 2.51939 14.3644 3.70239C16.0075 4.83875 16.76 7.05222 16.1185 8.94669C15.6349 8.80553 15.1478 8.66317 14.6124 8.50682C14.8138 7.45349 14.6649 6.50767 14.005 5.69737C13.569 5.16239 13.0096 4.88198 12.3735 4.77866C11.0982 4.57126 9.84614 5.45328 9.47461 6.80083C9.0529 8.33011 9.69118 9.57944 11.4352 10.5209V10.5208Z M13.5743 8.91924C14.1018 9.92105 14.6374 10.938 15.1682 11.9456C17.8511 11.0519 19.874 12.6509 20.5997 14.3627C21.4763 16.4306 20.8771 18.8797 19.1556 20.1554C17.3886 21.465 15.1539 21.2413 13.5884 19.559C13.9874 19.1994 14.3884 18.8383 14.8168 18.4524C16.363 19.5306 17.7154 19.4798 18.7195 18.2031C19.5757 17.1139 19.5571 15.4899 18.6761 14.4236C17.6593 13.1931 16.2975 13.1556 14.6513 14.3367C13.9684 13.0325 13.2737 11.7386 12.6124 10.425C12.3894 9.98221 12.1433 9.72528 11.6407 9.63161C10.8015 9.47496 10.2597 8.69907 10.2271 7.82982C10.1952 6.97015 10.6656 6.19305 11.4009 5.89031C12.1293 5.5903 12.9841 5.83242 13.474 6.49913C13.8744 7.04384 14.0017 7.65692 13.791 8.32872C13.7324 8.51606 13.6565 8.69733 13.5743 8.91931V8.91924Z M14.8345 17.1074H11.6046C11.295 18.4782 10.6264 19.5849 9.47421 20.2887C8.57851 20.8357 7.61316 21.0211 6.58571 20.8425C4.69395 20.5141 3.14713 18.6807 3.01094 16.6163C2.85682 14.2776 4.34994 12.1988 6.34013 11.7319C6.47753 12.2691 6.6164 12.8115 6.7538 13.3474C4.92781 14.3503 4.29581 15.614 4.80686 17.1942C5.25672 18.5847 6.53462 19.347 7.92217 19.0522C9.33915 18.7512 10.0536 17.4834 9.96635 15.4488C11.3097 15.4488 12.6541 15.4338 13.9975 15.4561C14.5221 15.465 14.9271 15.4065 15.3223 14.9085C15.9729 14.0893 17.1705 14.1632 17.8712 14.937C18.5873 15.7277 18.5531 17.0001 17.7952 17.7575C17.0641 18.4883 15.909 18.4493 15.2249 17.6618C15.0843 17.4995 14.9736 17.3068 14.8345 17.1074Z",y="M12 22C7.664 22 4 19.965 4 17.556V6.444C4 4.035 7.664 2 12 2C16.336 2 20 4.035 20 6.444V17.556C20 19.965 16.337 22 12 22ZM6 14.9V17.559C6.07 18.112 8.309 19.781 12 19.781C15.691 19.781 17.931 18.107 18 17.553V14.9C16.1794 15.9554 14.1039 16.4905 12 16.447C9.89606 16.4906 7.82058 15.9554 6 14.9ZM6 9.341V12C6.07 12.553 8.309 14.222 12 14.222C15.691 14.222 17.931 12.548 18 11.994V9.341C16.1795 10.3968 14.104 10.9323 12 10.889C9.89596 10.9323 7.82046 10.3968 6 9.341ZM12 4.222C8.308 4.222 6.069 5.896 6 6.451C6.07 7 8.311 8.666 12 8.666C15.689 8.666 17.931 6.992 18 6.438C17.93 5.887 15.689 4.222 12 4.222Z",p="M14 2C15.8299 1.99913 17.6049 2.62567 19.0288 3.77513C20.4527 4.92458 21.4395 6.52748 21.8246 8.31647C22.2097 10.1055 21.9699 11.9724 21.145 13.6059C20.3202 15.2395 18.9602 16.5408 17.292 17.293C16.7587 18.4719 15.9475 19.5039 14.9278 20.3004C13.9082 21.097 12.7105 21.6343 11.4376 21.8663C10.1647 22.0984 8.85446 22.0182 7.61933 21.6327C6.3842 21.2472 5.261 20.5678 4.34608 19.6529C3.43115 18.738 2.7518 17.6148 2.36628 16.3796C1.98076 15.1445 1.90058 13.8343 2.13262 12.5614C2.36466 11.2884 2.90199 10.0908 3.69854 9.07114C4.49508 8.05148 5.52705 7.24024 6.70596 6.707C7.34011 5.30389 8.36555 4.1135 9.65931 3.27861C10.9531 2.44371 12.4602 1.99976 14 2ZM9.99996 8C9.21203 8 8.43182 8.1552 7.70386 8.45672C6.97591 8.75825 6.31447 9.20021 5.75732 9.75736C5.20017 10.3145 4.75822 10.9759 4.45669 11.7039C4.15516 12.4319 3.99996 13.2121 3.99996 14C3.99996 14.7879 4.15516 15.5681 4.45669 16.2961C4.75822 17.0241 5.20017 17.6855 5.75732 18.2426C6.31447 18.7998 6.97591 19.2417 7.70386 19.5433C8.43182 19.8448 9.21203 20 9.99996 20C11.5913 20 13.1174 19.3679 14.2426 18.2426C15.3678 17.1174 16 15.5913 16 14C16 12.4087 15.3678 10.8826 14.2426 9.75736C13.1174 8.63214 11.5913 8 9.99996 8ZM11 9V10H13V12H8.99996C8.87502 11.9998 8.75451 12.0463 8.66218 12.1305C8.56985 12.2147 8.51238 12.3304 8.50109 12.4548C8.4898 12.5793 8.52551 12.7034 8.60118 12.8028C8.67686 12.9023 8.78702 12.9697 8.90996 12.992L8.99996 13H11C11.663 13 12.2989 13.2634 12.7677 13.7322C13.2366 14.2011 13.5 14.837 13.5 15.5C13.5 16.163 13.2366 16.7989 12.7677 17.2678C12.2989 17.7366 11.663 18 11 18V19H8.99996V18H6.99996V16H11C11.1249 16.0002 11.2454 15.9537 11.3377 15.8695C11.4301 15.7853 11.4875 15.6696 11.4988 15.5452C11.5101 15.4207 11.4744 15.2966 11.3987 15.1972C11.3231 15.0977 11.2129 15.0303 11.09 15.008L11 15H8.99996C8.33692 15 7.70104 14.7366 7.2322 14.2678C6.76336 13.7989 6.49996 13.163 6.49996 12.5C6.49996 11.837 6.76336 11.2011 7.2322 10.7322C7.70104 10.2634 8.33692 10 8.99996 10V9H11ZM14 4C13.1526 3.99901 12.3148 4.17794 11.5418 4.52496C10.7688 4.87198 10.0783 5.37918 9.51596 6.013C10.6462 5.94439 11.7782 6.1165 12.837 6.51795C13.8958 6.9194 14.8573 7.54105 15.6579 8.34178C16.4586 9.14252 17.0801 10.1041 17.4814 11.1629C17.8827 12.2218 18.0547 13.3537 17.986 14.484C18.8952 13.6756 19.5372 12.6099 19.8268 11.4283C20.1164 10.2467 20.04 9.00492 19.6076 7.86772C19.1752 6.73053 18.4074 5.75164 17.4059 5.06088C16.4044 4.37013 15.2166 4.00014 14 4Z",b="m 18.081457,19.819029 h -1.737539 c 0,-2.398996 -1.944783,-4.343914 -4.343913,-4.343914 -2.3990779,0 -4.3439269,1.944918 -4.3439269,4.343914 H 5.9185126 c 0,-3.358595 2.7227765,-6.081452 6.0814924,-6.081452 3.358729,0 6.081452,2.722857 6.081452,6.081452 z m 3.473595,0 c 0,-0.456099 -0.08995,-0.907754 -0.264475,-1.329245 -0.174522,-0.421356 -0.430379,-0.804333 -0.752893,-1.126848 -0.322649,-0.322514 -0.705492,-0.578371 -1.126983,-0.752893 -0.421356,-0.174656 -0.873011,-0.264475 -1.329244,-0.264475 v -1.739155 c 0.592645,0 1.180174,0.100997 1.737673,0.298141 0.08645,0.03057 0.172232,0.06343 0.257203,0.09857 0.632371,0.262052 1.207107,0.645972 1.691081,1.13008 0.484108,0.483974 0.868028,1.058575 1.129945,1.691081 0.03528,0.08497 0.06814,0.170751 0.09871,0.257203 0.197144,0.557499 0.298141,1.145028 0.298141,1.737539 z M 18.870708,8.714525 C 18.626297,8.5899091 18.355897,8.5249484 18.081457,8.5249484 V 6.787383 c 0.548746,0 1.089681,0.1298811 1.578503,0.3791262 0.05386,0.027444 0.106921,0.056262 0.15917,0.086399 0.421625,0.2434681 0.788039,0.573214 1.074868,0.9683919 0.322246,0.4441004 0.534876,0.958198 0.620252,1.5002243 0.08537,0.5420396 0.04134,1.0965896 -0.128871,1.6182816 -0.170078,0.521679 -0.461351,0.995674 -0.84985,1.38323 -0.388498,0.387422 -0.86318,0.677483 -1.385398,0.846214 -0.464583,0.150147 -0.95502,0.200511 -1.439128,0.148532 -0.05993,-0.0065 -0.119715,-0.01441 -0.17937,-0.02397 -0.541474,-0.08672 -1.054669,-0.30043 -1.497706,-0.623483 l -9.43e-4,-6.74e-4 1.024236,-1.403618 c 0.221653,0.161729 0.478453,0.268637 0.749258,0.312051 0.270939,0.04336 0.548342,0.02209 0.809316,-0.06231 0.261109,-0.08437 0.498517,-0.229356 0.692699,-0.423094 0.194317,-0.193751 0.339886,-0.430742 0.424857,-0.691568 0.08511,-0.260839 0.107191,-0.538107 0.0645,-0.8091135 C 19.755165,9.7209991 19.648917,9.4639571 19.487728,9.2419136 19.326538,9.0198701 19.115119,8.8391543 18.870708,8.714525 Z M 12.000005,4.1809675 c -2.3990779,0 -4.3439269,1.94485 -4.3439269,4.343927 0,2.3990765 1.944849,4.3439805 4.3439269,4.3439805 2.39913,0 4.343913,-1.944904 4.343913,-4.3439805 0,-2.399077 -1.944783,-4.343927 -4.343913,-4.343927 z m -2.6063489,4.343927 c 0,-1.4394516 1.1668969,-2.6063481 2.6063489,-2.6063481 1.439397,0 2.606375,1.1668965 2.606375,2.6063481 0,1.4394516 -1.166978,2.6063475 -2.606375,2.6063475 -1.439452,0 -2.6063489,-1.1668959 -2.6063489,-2.6063475 z M 2.4450112,19.819029 c 0,-0.456099 0.089846,-0.907754 0.264408,-1.329245 0.1745483,-0.421356 0.4304054,-0.804333 0.7529468,-1.126848 0.3225414,-0.322514 0.7054651,-0.578371 1.1268886,-0.753028 0.4214234,-0.174521 0.8731053,-0.26434 1.3292445,-0.26434 v -1.739289 c -0.5925783,0 -1.1801338,0.101131 -1.7375654,0.29814 -0.086507,0.03057 -0.172286,0.06356 -0.2572575,0.09871 -0.6324247,0.261917 -1.2070796,0.645972 -1.6911206,1.129946 -0.4840411,0.484108 -0.8680017,1.058709 -1.1299724,1.691215 -0.035187,0.08484 -0.068085,0.170616 -0.098666,0.257203 -0.1970907,0.557365 -0.2981273,1.145028 -0.2981273,1.737539 z M 5.1292745,8.7144846 C 5.3736987,8.5898687 5.6441531,8.5248945 5.9184991,8.5248945 V 6.7873291 c -0.548719,0 -1.0896412,0.1298811 -1.5784897,0.3791262 -0.053838,0.027457 -0.1068809,0.056262 -0.1590757,0.086399 C 3.7592275,7.4963224 3.3927864,7.8260682 3.1059841,8.2212461 2.7836851,8.6653465 2.5711352,9.1794441 2.4857194,9.7214839 2.4003034,10.26351 2.4444594,10.81806 2.614577,11.339752 c 0.1701045,0.521693 0.4613372,0.995728 0.8498493,1.38315 0.3885122,0.387556 0.8632616,0.677482 1.3853984,0.846213 0.4646229,0.150148 0.9550066,0.200511 1.4391688,0.148667 0.059924,-0.0065 0.1197546,-0.01441 0.1794231,-0.02397 0.5414475,-0.08686 1.0546565,-0.30043 1.4976925,-0.623618 l 9.16e-4,-6.73e-4 -1.024263,-1.403524 c -0.221626,0.161715 -0.4784122,0.268623 -0.7493109,0.312038 -0.2708988,0.04341 -0.5482208,0.022 -0.8092758,-0.06231 C 5.1231204,11.831361 4.8857525,11.686371 4.6915031,11.492633 4.4972538,11.298882 4.3516442,11.061905 4.2665919,10.801065 4.1815397,10.540226 4.1594552,10.262958 4.2021564,9.9919515 4.244871,9.7209453 4.3511459,9.4639032 4.512282,9.2418597 4.6734315,9.0198162 4.8848637,8.8391004 5.1292745,8.7144846 Z",m="M21.2664 20.9981H2.73337C2.37611 20.9981 2.04599 20.8075 1.86737 20.4981C1.68874 20.1887 1.68874 19.8075 1.86737 19.4981L11.1334 3.49811C11.3121 3.18923 11.642 2.99902 11.9989 2.99902C12.3558 2.99902 12.6856 3.18923 12.8644 3.49811L22.1304 19.4981C22.3089 19.8074 22.309 20.1883 22.1306 20.4977C21.9522 20.807 21.6225 20.9977 21.2654 20.9981H21.2664ZM12.0004 5.99811L4.46937 18.9981H19.5334L12.0004 5.99811ZM12.9954 14.9991H10.9954V9.99811H12.9954V14.9991Z M11.0004 16.0001H13.0004V18.0001H11.0004V16.0001Z",v="M10 16.5L16 12L10 7.5V16.5ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20Z",w="M14.06 9.02L14.98 9.94L5.92 19H5V18.08L14.06 9.02ZM17.66 3C17.41 3 17.15 3.1 16.96 3.29L15.13 5.12L18.88 8.87L20.71 7.04C21.1 6.65 21.1 6.02 20.71 5.63L18.37 3.29C18.17 3.09 17.92 3 17.66 3ZM14.06 6.19L3 17.25V21H6.75L17.81 9.94L14.06 6.19Z",z="M17.001 20H6.00098C4.89641 20 4.00098 19.1046 4.00098 18V7C4.00098 5.89543 4.89641 5 6.00098 5H10.001V7H6.00098V18H17.001V14H19.001V18C19.001 19.1046 18.1055 20 17.001 20ZM11.701 13.707L10.291 12.293L16.584 6H13.001V4H20.001V11H18.001V7.415L11.701 13.707Z",D="M19.14,7.5A2.86,2.86 0 0,1 22,10.36V14.14A2.86,2.86 0 0,1 19.14,17H12C12,17.39 12.32,17.96 12.71,17.96H17V19.64A2.86,2.86 0 0,1 14.14,22.5H9.86A2.86,2.86 0 0,1 7,19.64V15.89C7,14.31 8.28,13.04 9.86,13.04H15.11C16.69,13.04 17.96,11.76 17.96,10.18V7.5H19.14M14.86,19.29C14.46,19.29 14.14,19.59 14.14,20.18C14.14,20.77 14.46,20.89 14.86,20.89A0.71,0.71 0 0,0 15.57,20.18C15.57,19.59 15.25,19.29 14.86,19.29M4.86,17.5C3.28,17.5 2,16.22 2,14.64V10.86C2,9.28 3.28,8 4.86,8H12C12,7.61 11.68,7.04 11.29,7.04H7V5.36C7,3.78 8.28,2.5 9.86,2.5H14.14C15.72,2.5 17,3.78 17,5.36V9.11C17,10.69 15.72,11.96 14.14,11.96H8.89C7.31,11.96 6.04,13.24 6.04,14.82V17.5H4.86M9.14,5.71C9.54,5.71 9.86,5.41 9.86,4.82C9.86,4.23 9.54,4.11 9.14,4.11C8.75,4.11 8.43,4.23 8.43,4.82C8.43,5.41 8.75,5.71 9.14,5.71Z",I="M12 2.79883C6.48 2.79883 2 7.27883 2 12.7988C2 18.3188 6.48 22.7988 12 22.7988C17.52 22.7988 22 18.3188 22 12.7988C22 7.27883 17.52 2.79883 12 2.79883ZM13 17.7988H11V15.7988H13V17.7988ZM13 13.7988H11V7.79883H13V13.7988Z",k="M4 6.79883H2V20.7988C2 21.8988 2.9 22.7988 4 22.7988H18V20.7988H4V6.79883ZM20 2.79883H8C6.9 2.79883 6 3.69883 6 4.79883V16.7988C6 17.8988 6.9 18.7988 8 18.7988H20C21.1 18.7988 22 17.8988 22 16.7988V4.79883C22 3.69883 21.1 2.79883 20 2.79883ZM20 16.7988H8V4.79883H20V16.7988ZM13 15.7988H15V11.7988H19V9.79883H15V5.79883H13V9.79883H9V11.7988H13V15.7988Z",S="M15.5 14H14.71L14.43 13.73C15.41 12.59 16 11.11 16 9.5C16 5.91 13.09 3 9.5 3C5.91 3 3 5.91 3 9.5C3 13.09 5.91 16 9.5 16C11.11 16 12.59 15.41 13.73 14.43L14 14.71V15.5L19 20.49L20.49 19L15.5 14ZM9.5 14C7.01 14 5 11.99 5 9.5C5 7.01 7.01 5 9.5 5C11.99 5 14 7.01 14 9.5C14 11.99 11.99 14 9.5 14Z",R="M12.0106 3C12.7162 3.00738 13.419 3.08585 14.1073 3.23355C14.2539 3.26498 14.3867 3.33961 14.487 3.44702C14.5873 3.55444 14.6502 3.68926 14.6668 3.83264L14.8302 5.24223C14.8533 5.44108 14.9246 5.63196 15.0385 5.79949C15.1524 5.96702 15.3057 6.10652 15.4861 6.20675C15.6664 6.30698 15.8687 6.36514 16.0768 6.37655C16.2848 6.38795 16.4927 6.35229 16.6837 6.27242L18.0296 5.70471C18.1664 5.64687 18.3185 5.63127 18.4649 5.66004C18.6112 5.68882 18.7447 5.76055 18.8468 5.86533C19.8196 6.86331 20.544 8.06013 20.9656 9.36575C21.0098 9.50296 21.0085 9.64997 20.9618 9.78642C20.9151 9.92287 20.8254 10.042 20.7051 10.1273L19.5111 10.9729C19.3431 11.0913 19.2064 11.246 19.1123 11.4245C19.0182 11.6031 18.9691 11.8004 18.9692 12.0005C18.9693 12.2007 19.0185 12.3979 19.1128 12.5764C19.2071 12.7549 19.3439 12.9095 19.5121 13.0277L20.707 13.8724C20.8275 13.9577 20.9174 14.077 20.9641 14.2137C21.0108 14.3503 21.012 14.4975 20.9676 14.6349C20.5461 15.9403 19.822 17.1371 18.8497 18.1353C18.7478 18.24 18.6145 18.3118 18.4683 18.3407C18.3222 18.3697 18.1702 18.3543 18.0335 18.2968L16.6818 17.7273C16.491 17.6468 16.2832 17.6106 16.0751 17.6216C15.867 17.6326 15.6646 17.6905 15.4842 17.7907C15.3038 17.8908 15.1504 18.0304 15.0367 18.198C14.9229 18.3657 14.8518 18.5567 14.8293 18.7556L14.6668 20.1643C14.6504 20.3061 14.5888 20.4396 14.4904 20.5465C14.3919 20.6534 14.2615 20.7285 14.1169 20.7615C12.7247 21.0795 11.2743 21.0795 9.88213 20.7615C9.73754 20.7285 9.60711 20.6534 9.50867 20.5465C9.41024 20.4396 9.34861 20.3061 9.33223 20.1643L9.1688 18.7575C9.14515 18.5594 9.07349 18.3694 8.95956 18.2027C8.84564 18.0361 8.69262 17.8974 8.51278 17.7977C8.33294 17.6981 8.13129 17.6403 7.924 17.6291C7.71671 17.6178 7.50955 17.6533 7.31915 17.7328L5.96651 18.3014C5.82979 18.359 5.67785 18.3743 5.53165 18.3454C5.38546 18.3164 5.25222 18.2446 5.15032 18.1399C4.17749 17.1407 3.45337 15.9426 3.03245 14.6358C2.98803 14.4984 2.98924 14.3512 3.03593 14.2146C3.08262 14.078 3.17246 13.9587 3.29298 13.8733L4.48891 13.0277C4.657 12.9094 4.79369 12.7547 4.88792 12.5762C4.98214 12.3977 5.03125 12.2004 5.03125 12.0003C5.03125 11.8002 4.98214 11.6029 4.88792 11.4244C4.79369 11.2459 4.657 11.0912 4.48891 10.9729L3.29394 10.1292C3.17325 10.0439 3.08322 9.92468 3.03635 9.78803C2.98949 9.65138 2.98813 9.50411 3.03245 9.36668C3.45431 8.06097 4.17909 6.86414 5.15224 5.86625C5.25425 5.76167 5.38755 5.69005 5.53373 5.66128C5.67992 5.63251 5.83181 5.64801 5.96844 5.70563L7.31434 6.27334C7.50567 6.35298 7.71378 6.38842 7.92196 6.37681C8.13014 6.3652 8.33259 6.30687 8.51303 6.2065C8.69347 6.10614 8.84689 5.96653 8.96094 5.7989C9.075 5.63127 9.14652 5.44029 9.16976 5.24131L9.33319 3.83264C9.34969 3.68897 9.4126 3.55385 9.51312 3.44624C9.61363 3.33864 9.7467 3.26394 9.89366 3.23262C10.5839 3.08585 11.2876 3.00831 12.0106 3ZM12.0106 4.38466C11.5742 4.38953 11.1387 4.42563 10.7079 4.49267L10.6031 5.39454C10.5552 5.80954 10.4062 6.20789 10.1684 6.55746C9.93062 6.90704 9.61056 7.19804 9.23408 7.407C8.85761 7.61596 8.43525 7.73702 8.00108 7.76042C7.56692 7.78381 7.1331 7.70889 6.73464 7.54169L5.87134 7.17799C5.32143 7.81874 4.88375 8.54112 4.57543 9.31683L5.34259 9.8587C5.69273 10.1058 5.97742 10.4285 6.17363 10.8008C6.36985 11.1731 6.47209 11.5845 6.47209 12.0017C6.47209 12.4189 6.36985 12.8303 6.17363 13.2026C5.97742 13.5749 5.69273 13.8976 5.34259 14.1447L4.57543 14.6875C4.88306 15.4647 5.32048 16.1884 5.87038 16.8309L6.74137 16.4645C7.13888 16.2978 7.57159 16.2231 8.00466 16.2463C8.43774 16.2696 8.85908 16.3902 9.23476 16.5983C9.61045 16.8065 9.92999 17.0964 10.1677 17.4448C10.4053 17.7932 10.5545 18.1904 10.6031 18.6042L10.707 19.5126C11.5626 19.651 12.4365 19.651 13.2921 19.5126L13.3959 18.6042C13.4435 18.1895 13.592 17.7913 13.8295 17.442C14.0671 17.0926 14.3869 16.8018 14.7631 16.5931C15.1394 16.3844 15.5615 16.2637 15.9954 16.2407C16.4293 16.2177 16.8627 16.2931 17.2606 16.4608L18.1296 16.8263C18.6792 16.1852 19.1165 15.4625 19.4246 14.6866L18.6574 14.1438C18.3071 13.8968 18.0222 13.5741 17.8259 13.2018C17.6296 12.8295 17.5272 12.4181 17.5272 12.0008C17.5272 11.5835 17.6296 11.172 17.8259 10.7997C18.0222 10.4274 18.3071 10.1047 18.6574 9.85777L19.4226 9.31591C19.1143 8.5402 18.6766 7.81781 18.1267 7.17706L17.2654 7.53985C16.8671 7.70725 16.4335 7.78239 15.9994 7.75919C15.5653 7.73599 15.143 7.61511 14.7666 7.4063C14.3902 7.1975 14.0701 6.90662 13.8324 6.55715C13.5946 6.20769 13.4457 5.80943 13.3978 5.39454L13.2921 4.49359C12.8683 4.42707 12.4399 4.39097 12.0106 4.38559V4.38466ZM11.9981 8.53865C12.9542 8.53865 13.8712 8.90336 14.5473 9.55255C15.2233 10.2017 15.6032 11.0822 15.6032 12.0003C15.6032 12.9184 15.2233 13.7989 14.5473 14.4481C13.8712 15.0973 12.9542 15.462 11.9981 15.462C11.0419 15.462 10.125 15.0973 9.44889 14.4481C8.7728 13.7989 8.39298 12.9184 8.39298 12.0003C8.39298 11.0822 8.7728 10.2017 9.44889 9.55255C10.125 8.90336 11.0419 8.53865 11.9981 8.53865ZM11.9981 9.92331C11.4244 9.92331 10.8742 10.1421 10.4686 10.5316C10.0629 10.9212 9.83502 11.4495 9.83502 12.0003C9.83502 12.5512 10.0629 13.0794 10.4686 13.469C10.8742 13.8585 11.4244 14.0773 11.9981 14.0773C12.5718 14.0773 13.1219 13.8585 13.5276 13.469C13.9332 13.0794 14.1611 12.5512 14.1611 12.0003C14.1611 11.4495 13.9332 10.9212 13.5276 10.5316C13.1219 10.1421 12.5718 9.92331 11.9981 9.92331Z",_="M7.5,5.6L5,7L6.4,4.5L5,2L7.5,3.4L10,2L8.6,4.5L10,7L7.5,5.6M19.5,15.4L22,14L20.6,16.5L22,19L19.5,17.6L17,19L18.4,16.5L17,14L19.5,15.4M22,2L20.6,4.5L22,7L19.5,5.6L17,7L18.4,4.5L17,2L19.5,3.4L22,2M13.34,12.78L15.78,10.34L13.66,8.22L11.22,10.66L13.34,12.78M14.37,7.29L16.71,9.63C17.1,10 17.1,10.65 16.71,11.04L5.04,22.71C4.65,23.1 4,23.1 3.63,22.71L1.29,20.37C0.9,20 0.9,19.35 1.29,18.96L12.96,7.29C13.35,6.9 14,6.9 14.37,7.29Z",x="M21.4 7.5C22.2 8.3 22.2 9.6 21.4 10.3L18.6 13.1L10.8 5.3L13.6 2.5C14.4 1.7 15.7 1.7 16.4 2.5L18.2 4.3L21.2 1.3L22.6 2.7L19.6 5.7L21.4 7.5M15.6 13.3L14.2 11.9L11.4 14.7L9.3 12.6L12.1 9.8L10.7 8.4L7.9 11.2L6.4 9.8L3.6 12.6C2.8 13.4 2.8 14.7 3.6 15.4L5.4 17.2L1.4 21.2L2.8 22.6L6.8 18.6L8.6 20.4C9.4 21.2 10.7 21.2 11.4 20.4L14.2 17.6L12.8 16.2L15.6 13.3Z",O="M12 6.5C15.79 6.5 19.17 8.63 20.82 12C19.17 15.37 15.8 17.5 12 17.5C8.2 17.5 4.83 15.37 3.18 12C4.83 8.63 8.21 6.5 12 6.5ZM12 4.5C7 4.5 2.73 7.61 1 12C2.73 16.39 7 19.5 12 19.5C17 19.5 21.27 16.39 23 12C21.27 7.61 17 4.5 12 4.5ZM12 9.5C13.38 9.5 14.5 10.62 14.5 12C14.5 13.38 13.38 14.5 12 14.5C10.62 14.5 9.5 13.38 9.5 12C9.5 10.62 10.62 9.5 12 9.5ZM12 7.5C9.52 7.5 7.5 9.52 7.5 12C7.5 14.48 9.52 16.5 12 16.5C14.48 16.5 16.5 14.48 16.5 12C16.5 9.52 14.48 7.5 12 7.5Z",E={d:"M2 3C2 2.44772 2.44772 2 3 2H21C21.5523 2 22 2.44772 22 3V10C22 10.5523 21.5523 11 21 11H3C2.44772 11 2 10.5523 2 10V3ZM4 4V9H20V4H4ZM10 14C10 13.4477 10.4477 13 11 13H21C21.5523 13 22 13.4477 22 14V21C22 21.5523 21.5523 22 21 22H11C10.4477 22 10 21.5523 10 21V14ZM12 15V20H20V15H12ZM3 13C2.44772 13 2 13.4477 2 14V21C2 21.5523 2.44772 22 3 22H7C7.55228 22 8 21.5523 8 21V14C8 13.4477 7.55228 13 7 13H3ZM4 20V15H6V20H4Z",fillRule:"evenodd",clipRule:"evenodd"},F="M12.4142 18.2114L10.9992 16.7984L15.5992 12.1984L10.9992 7.59841L12.4142 6.19141L18.4242 12.2014L12.4152 18.2114H12.4142ZM6.9892 18.2114L5.5752 16.7984L10.1752 12.1984L5.5752 7.60541L6.9892 6.19141L13.0002 12.2014L6.9902 18.2114H6.9892Z",j="M10.0719 8.02397L5.7146 3.66666L6.33332 3.04794L11 7.71461V8.33333L6.33332 13L5.7146 12.3813L10.0719 8.02397Z",q="M7.97612 10.0719L12.3334 5.7146L12.9521 6.33332L8.28548 11L7.66676 11L3.0001 6.33332L3.61882 5.7146L7.97612 10.0719Z",B="M15.4286 9.33333V18.2222H8.57143V9.33333H15.4286ZM14.1429 4H9.85714L9 4.88889H6V6.66667H18V4.88889H15L14.1429 4ZM17.1429 7.55556H6.85714V18.2222C6.85714 19.2 7.62857 20 8.57143 20H15.4286C16.3714 20 17.1429 19.2 17.1429 18.2222V7.55556Z",G="M12,2A2,2 0 0,1 14,4C14,4.74 13.6,5.39 13,5.73V7H14A7,7 0 0,1 21,14H22A1,1 0 0,1 23,15V18A1,1 0 0,1 22,19H21V20A2,2 0 0,1 19,22H5A2,2 0 0,1 3,20V19H2A1,1 0 0,1 1,18V15A1,1 0 0,1 2,14H3A7,7 0 0,1 10,7H11V5.73C10.4,5.39 10,4.74 10,4A2,2 0 0,1 12,2M7.5,13A2.5,2.5 0 0,0 5,15.5A2.5,2.5 0 0,0 7.5,18A2.5,2.5 0 0,0 10,15.5A2.5,2.5 0 0,0 7.5,13M16.5,13A2.5,2.5 0 0,0 14,15.5A2.5,2.5 0 0,0 16.5,18A2.5,2.5 0 0,0 19,15.5A2.5,2.5 0 0,0 16.5,13Z",J="M20 8H17.19C16.74 7.22 16.12 6.55 15.37 6.04L17 4.41L15.59 3L13.42 5.17C12.96 5.06 12.49 5 12 5C11.51 5 11.04 5.06 10.59 5.17L8.41 3L7 4.41L8.62 6.04C7.88 6.55 7.26 7.22 6.81 8H4V10H6.09C6.04 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20V8ZM16 12V15C16 15.22 15.97 15.47 15.93 15.7L15.83 16.35L15.46 17C14.74 18.24 13.42 19 12 19C10.58 19 9.26 18.23 8.54 17L8.17 16.36L8.07 15.71C8.03 15.48 8 15.23 8 15V11C8 10.77 8.03 10.52 8.07 10.3L8.17 9.65L8.54 9C8.84 8.48 9.26 8.03 9.75 7.69L10.32 7.3L11.06 7.12C11.37 7.04 11.69 7 12 7C12.32 7 12.63 7.04 12.95 7.12L13.63 7.28L14.24 7.7C14.74 8.04 15.15 8.48 15.45 9.01L15.83 9.66L15.93 10.31C15.97 10.53 16 10.78 16 11V12ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z";export{S as A,v as B,n as C,e as D,h as E,b as F,p as G,z as H,x as I,t as J,A as K,R as L,f as M,I as N,E as a,y as b,i as c,c as d,m as e,Z as f,w as g,k as h,o as i,d as j,_ as k,u as l,a as m,G as n,J as o,D as p,F as q,B as r,l as s,O as t,s as u,M as v,g as w,q as x,j as y,r as z}; -//# sourceMappingURL=icons.9d575a00.js.map +import"./registerWidgets.cb3a7b8d.js";(function(){try{var C=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},L=new Error().stack;L&&(C._sentryDebugIds=C._sentryDebugIds||{},C._sentryDebugIds[L]="e440b8ef-84c7-4ea3-a880-dd3c80a0bdcf",C._sentryDebugIdIdentifier="sentry-dbid-e440b8ef-84c7-4ea3-a880-dd3c80a0bdcf")}catch{}})();const M="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",Z="M6 19C6 20.1 6.9 21 8 21H16C17.1 21 18 20.1 18 19V7H6V19ZM8 9H16V19H8V9ZM15.5 4L14.5 3H9.5L8.5 4H5V6H19V4H15.5Z",s="M18.15 7.23525C16.7 5.78525 14.71 4.88525 12.5 4.88525C8.08001 4.88525 4.51001 8.46525 4.51001 12.8853C4.51001 17.3053 8.08001 20.8853 12.5 20.8853C16.23 20.8853 19.34 18.3353 20.23 14.8853H18.15C17.33 17.2153 15.11 18.8853 12.5 18.8853C9.19001 18.8853 6.50001 16.1953 6.50001 12.8853C6.50001 9.57525 9.19001 6.88525 12.5 6.88525C14.16 6.88525 15.64 7.57525 16.72 8.66525L13.5 11.8853H20.5V4.88525L18.15 7.23525Z",n="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",e="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",c="M7 14C5.9 14 5 13.1 5 12S5.9 10 7 10 9 10.9 9 12 8.1 14 7 14M12.6 10C11.8 7.7 9.6 6 7 6C3.7 6 1 8.7 1 12S3.7 18 7 18C9.6 18 11.8 16.3 12.6 14H16V18H20V14H23V10H12.6Z",o="M10.4122 15.9425L14.9037 12.2121C14.9338 12.1869 14.958 12.1549 14.9747 12.1184C14.9913 12.0819 15 12.0419 15 12.0014C15 11.9609 14.9913 11.9209 14.9747 11.8845C14.958 11.848 14.9338 11.8159 14.9037 11.7908L10.4122 8.058C10.2455 7.91993 10 8.04372 10 8.2675V15.7306C10 15.9544 10.2455 16.0805 10.4122 15.9425Z M20.28 3H3.72C3.32175 3 3 3.32175 3 3.72V20.28C3 20.6783 3.32175 21 3.72 21H20.28C20.6783 21 21 20.6783 21 20.28V3.72C21 3.32175 20.6783 3 20.28 3ZM19.38 19.38H4.62V4.62H19.38V19.38Z",t="M12.1373 17.7157C12.1373 17.8719 12.2539 17.9997 12.3946 17.9997H18.7426C18.8833 17.9997 19 17.8719 19 17.7157V16.0116C19 15.8553 18.8833 15.7275 18.7426 15.7275H12.3946C12.2539 15.7275 12.1373 15.8553 12.1373 16.0116V17.7157ZM5.44951 17.9323L12.0377 12.2163C12.1681 12.1027 12.1681 11.8932 12.0377 11.7796L5.44951 6.06723C5.40974 6.03224 5.3611 6.00979 5.30936 6.00255C5.25763 5.99531 5.20497 6.00358 5.15764 6.02638C5.11031 6.04918 5.0703 6.08556 5.04236 6.13119C5.01442 6.17681 4.99972 6.22978 5 6.2838V8.50982C5 8.59503 5.03432 8.67313 5.09951 8.72639L8.86716 11.9997L5.09951 15.2731C5.06884 15.2997 5.04407 15.3328 5.0269 15.3701C5.00973 15.4075 5.00055 15.4483 5 15.4897V17.7157C5 17.9571 5.27108 18.0885 5.44951 17.9323Z",a="M15 18H3V16H15V18ZM21 13H3V11H21V13ZM15 8H3V6H15V8Z",d="M13.5,4A1.5,1.5 0 0,0 12,5.5A1.5,1.5 0 0,0 13.5,7A1.5,1.5 0 0,0 15,5.5A1.5,1.5 0 0,0 13.5,4M13.14,8.77C11.95,8.87 8.7,11.46 8.7,11.46C8.5,11.61 8.56,11.6 8.72,11.88C8.88,12.15 8.86,12.17 9.05,12.04C9.25,11.91 9.58,11.7 10.13,11.36C12.25,10 10.47,13.14 9.56,18.43C9.2,21.05 11.56,19.7 12.17,19.3C12.77,18.91 14.38,17.8 14.54,17.69C14.76,17.54 14.6,17.42 14.43,17.17C14.31,17 14.19,17.12 14.19,17.12C13.54,17.55 12.35,18.45 12.19,17.88C12,17.31 13.22,13.4 13.89,10.71C14,10.07 14.3,8.67 13.14,8.77Z",l="M18.7375 11.0838C18.1142 8.06508 15.3367 5.79883 12 5.79883C9.35083 5.79883 7.05 7.23383 5.90417 9.33383C3.145 9.61383 1 11.8451 1 14.5488C1 17.4451 3.46583 19.7988 6.5 19.7988H18.4167C20.9467 19.7988 23 17.8388 23 15.4238C23 13.1138 21.1208 11.2413 18.7375 11.0838ZM18.4167 18.0488H6.5C4.47417 18.0488 2.83333 16.4826 2.83333 14.5488C2.83333 12.7551 4.23583 11.2588 6.09667 11.0751L7.0775 10.9788L7.53583 10.1476C8.40667 8.54633 10.1117 7.54883 12 7.54883C14.4017 7.54883 16.4733 9.17633 16.9408 11.4251L17.2158 12.7376L18.6183 12.8338C20.0483 12.9213 21.1667 14.0676 21.1667 15.4238C21.1667 16.8676 19.9292 18.0488 18.4167 18.0488ZM8.33333 13.6738H10.6708V16.2988H13.3292V13.6738H15.6667L12 10.1738L8.33333 13.6738Z",r="M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",i="M12 22C6.49 22 2 17.51 2 12C2 6.49 6.49 2 12 2C17.51 2 22 6.04 22 11C22 14.31 19.31 17 16 17H14.23C13.95 17 13.73 17.22 13.73 17.5C13.73 17.62 13.78 17.73 13.86 17.83C14.27 18.3 14.5 18.89 14.5 19.5C14.5 20.88 13.38 22 12 22ZM12 4C7.59 4 4 7.59 4 12C4 16.41 7.59 20 12 20C12.28 20 12.5 19.78 12.5 19.5C12.5 19.34 12.42 19.22 12.36 19.15C11.95 18.69 11.73 18.1 11.73 17.5C11.73 16.12 12.85 15 14.23 15H16C18.21 15 20 13.21 20 11C20 7.14 16.41 4 12 4Z M6.5 13C7.32843 13 8 12.3284 8 11.5C8 10.6716 7.32843 10 6.5 10C5.67157 10 5 10.6716 5 11.5C5 12.3284 5.67157 13 6.5 13Z M9.5 9C10.3284 9 11 8.32843 11 7.5C11 6.67157 10.3284 6 9.5 6C8.67157 6 8 6.67157 8 7.5C8 8.32843 8.67157 9 9.5 9Z M14.5 9C15.3284 9 16 8.32843 16 7.5C16 6.67157 15.3284 6 14.5 6C13.6716 6 13 6.67157 13 7.5C13 8.32843 13.6716 9 14.5 9Z M17.5 13C18.3284 13 19 12.3284 19 11.5C19 10.6716 18.3284 10 17.5 10C16.6716 10 16 10.6716 16 11.5C16 12.3284 16.6716 13 17.5 13Z",A="M21 11.11V5C21 3.9 20.11 3 19 3H14.82C14.4 1.84 13.3 1 12 1S9.6 1.84 9.18 3H5C3.9 3 3 3.9 3 5V19C3 20.11 3.9 21 5 21H11.11C12.37 22.24 14.09 23 16 23C19.87 23 23 19.87 23 16C23 14.09 22.24 12.37 21 11.11M12 3C12.55 3 13 3.45 13 4S12.55 5 12 5 11 4.55 11 4 11.45 3 12 3M5 19V5H7V7H17V5H19V9.68C18.09 9.25 17.08 9 16 9H7V11H11.1C10.5 11.57 10.04 12.25 9.68 13H7V15H9.08C9.03 15.33 9 15.66 9 16C9 17.08 9.25 18.09 9.68 19H5M16 21C13.24 21 11 18.76 11 16S13.24 11 16 11 21 13.24 21 16 18.76 21 16 21M16.5 16.25L19.36 17.94L18.61 19.16L15 17V12H16.5V16.25Z",u="M12.0125 2C11.0798 2 10.1926 2.18775 9.32834 2.56324C5.75685 4.06509 4.05085 8.31251 5.52933 11.9967C6.62119 14.7189 9.16906 16.4788 12.0125 16.4788C12.9452 16.4788 13.8323 16.2911 14.6966 15.9156C18.2681 14.3904 19.9741 10.1663 18.4956 6.45862C17.4036 3.7599 14.8559 2 12.0125 2ZM6.43928 11.1988C6.00704 9.93174 6.00704 8.57065 6.43928 7.27995H7.94068C7.82691 7.91359 7.75868 8.59403 7.75868 9.22766C7.75868 9.83775 7.82691 10.4948 7.98622 11.1754L6.43929 11.1752L6.43928 11.1988ZM8.89605 9.22754C8.89605 8.54709 8.96428 7.88987 9.10074 7.27982H11.4438V11.1987L9.14628 11.1989C8.98697 10.5417 8.89605 9.86117 8.89605 9.22754ZM12.5812 3.47826C13.3774 3.80678 14.1053 4.81593 14.583 6.10646H12.5812V3.47826ZM11.4438 3.47826V6.10646H9.44191C9.9197 4.81593 10.6475 3.80679 11.4438 3.47826ZM11.4438 12.372V14.9768C10.6931 14.6249 9.9879 13.5923 9.51012 12.372H11.4438ZM12.5812 14.9768V12.372H14.5148C14.037 13.5922 13.3319 14.6247 12.5812 14.9768ZM12.5812 11.1987V7.2797H14.9242C15.0606 7.91333 15.1289 8.57039 15.1289 9.22741C15.1289 9.86105 15.0379 10.5181 14.8786 11.1751H12.5811L12.5812 11.1987ZM16.0842 7.2797H17.5856C18.0179 8.59378 17.995 9.95487 17.5856 11.1986H16.0389C16.1982 10.5182 16.2664 9.83754 16.2664 9.25088C16.2662 8.59399 16.198 7.91333 16.0842 7.2797ZM17.0625 6.10638H15.7886C15.5384 5.26158 15.1744 4.48715 14.7195 3.85351C15.6749 4.36994 16.4938 5.14438 17.0625 6.10638ZM9.30547 3.85368C8.87322 4.48732 8.50921 5.26175 8.23632 6.10654H6.98515C7.53114 5.14438 8.32739 4.36998 9.30547 3.85368ZM6.96244 12.372H8.30452C8.60029 13.2402 8.987 14.0616 9.48745 14.7421C8.46384 14.2258 7.57667 13.4044 6.96244 12.372ZM14.5375 14.7186C15.0152 14.0382 15.4246 13.2168 15.6976 12.372H17.0396C16.4711 13.3576 15.6067 14.2024 14.5375 14.7186ZM5.09509 22C5.70932 22 6.30072 21.7184 6.71027 21.2256C6.89227 20.9908 7.02873 20.7327 7.11965 20.4277H10.0106C10.2609 21.3429 11.0571 22 12.0125 22C12.9679 22 13.7641 21.3429 14.0143 20.4277H16.9054C17.1556 21.3429 17.9518 22 18.9072 22C20.0673 22 21 21.0378 21 19.8411C21 18.6443 20.0673 17.6822 18.9072 17.6822C17.9518 17.6822 17.1556 18.3392 16.9054 19.2544L14.0143 19.2543C13.8097 18.5268 13.2637 17.9636 12.5812 17.7758V17.2619C12.5812 16.9333 12.331 16.6752 12.0125 16.6752C11.694 16.6752 11.4438 16.9333 11.4438 17.2619V17.7758C10.7387 17.987 10.1926 18.5502 10.0106 19.2543H7.0969C6.8922 18.4799 6.25527 17.8698 5.50459 17.729C4.75391 17.5883 3.98049 17.8698 3.48004 18.48C3.07066 18.9729 2.91134 19.6299 3.04779 20.2634C3.2071 21.1082 3.86671 21.8123 4.68563 21.953C4.82209 22 4.95864 22 5.09509 22ZM18.9298 18.8553C19.453 18.8553 19.8852 19.3012 19.8852 19.8409C19.8852 20.3806 19.453 20.8265 18.9298 20.8265C18.4294 20.8265 18.02 20.4276 17.9744 19.9113V19.8409V19.7705C18.02 19.2778 18.4293 18.8553 18.9298 18.8553ZM12.0125 18.8553C12.5356 18.8553 12.9679 19.3012 12.9679 19.8409C12.9679 20.3806 12.5356 20.8265 12.0125 20.8265C11.4893 20.8265 11.057 20.3806 11.057 19.8409C11.057 19.3012 11.4893 18.8553 12.0125 18.8553ZM4.16243 20.0522C4.11689 19.7471 4.18512 19.4655 4.36712 19.2308C4.54913 18.9961 4.82204 18.8789 5.09513 18.8789C5.16337 18.8789 5.2316 18.8789 5.27714 18.9023C5.64114 18.9727 5.95961 19.2778 6.02782 19.6767C6.07336 19.9818 6.00512 20.2633 5.82312 20.4981C5.59558 20.7796 5.25443 20.897 4.89042 20.8266C4.52642 20.7326 4.23067 20.4275 4.16243 20.0522Z",f="m 14.6454,15.0573 2.5899,-2.3906 H 7 V 11.3333 H 17.2353 L 14.6454,8.94267 15.6667,8 20,12 15.6667,16 Z M 5.375,22 h 8.25 c 0.3646,-4e-4 0.7141,-0.151 0.9719,-0.4188 0.2578,-0.2679 0.4027,-0.631 0.4031,-1.0098 v -2.1428 h -1.375 v 2.1428 H 5.375 V 3.42857 h 8.25 V 5.57143 H 15 V 3.42857 C 14.9996,3.04981 14.8547,2.68666 14.5969,2.41884 14.3391,2.15101 13.9896,2.00038 13.625,2 H 5.375 C 5.01044,2.00038 4.66091,2.15101 4.40313,2.41884 4.14535,2.68666 4.00036,3.04981 4,3.42857 V 20.5714 c 3.6e-4,0.3788 0.14535,0.7419 0.40313,1.0098 C 4.66091,21.849 5.01044,21.9996 5.375,22 Z",b="m 20.348814,20.43092 c 2.2301,-2.2386 3.4802,-5.2708 3.4759,-8.4304 -0.0024,-0.1951 -0.0815,-0.3813 -0.2202,-0.5184 -0.1388,-0.1371 -0.3259,-0.2139 -0.5209,-0.2139 -0.1952,0 -0.3823,0.0768 -0.5211,0.2139 -0.1388,0.1371 -0.2178,0.3233 -0.2202,0.5184 0.0031,2.769 -1.093,5.4261 -3.0475,7.3876 -0.9488,0.9741 -2.0832,1.7483 -3.3361,2.277 -1.2529,0.5286 -2.599,0.801 -3.9588,0.801 -1.3599,0 -2.7059994,-0.2724 -3.9588994,-0.801 -1.2528999,-0.5287 -2.3871999,-1.3029 -3.3360399,-2.277 -1.9519,-1.9634 -3.0475,-4.6195 -3.0475,-7.3881 0,-2.7686005 1.0956,-5.4247 3.0475,-7.38813 0.94334,-0.96663 2.06914,-1.73639 3.3121399,-2.26465 1.2431,-0.52825 2.5785994,-0.8045 3.9291994,-0.81272 0.2884,0.00903 0.5618,0.13038 0.762,0.33815 0.2003,0.20776 0.3113,0.48553 0.3096,0.77404 -0.0016,0.28852 -0.1159,0.56496 -0.3185,0.7704 -0.2026,0.20543 -0.4775,0.32357 -0.7659,0.32925 -0.0268,6e-5 -0.0535,0.00154 -0.08,0.00444 -2.0547994,0.06617 -4.0044994,0.92415 -5.4413993,2.39452 -1.5175,1.5276 -2.36911,3.5933995 -2.36911,5.7466 0,2.1532 0.85161,4.2189 2.36911,5.7465 0.7414,0.7594 1.6270999,1.3629 2.6050999,1.7749 0.978,0.412 2.0285994,0.6242 3.0897994,0.6242 1.0612,0 2.1117,-0.2122 3.0898,-0.6242 0.9779,-0.412 1.8636,-1.0155 2.605,-1.7749 1.5198,-1.526 2.3718,-3.5928 2.3688,-5.7465 0.0031,-0.3392 -0.061,-0.6759 -0.1887,-0.9902 -0.1277,-0.3143 -0.3163,-0.6002 -0.5552,-0.8412 -0.2388,-0.2410005 -0.5229,-0.4323005 -0.8361,-0.5628005 -0.3131,-0.1306 -0.649,-0.1978 -0.9883,-0.1978 -0.3393,0 -0.6751,0.0672 -0.9883,0.1978 -0.3131,0.1305 -0.5972,0.3218 -0.8361,0.5628005 -0.2388,0.241 -0.4274,0.5269 -0.5552,0.8412 -0.1276,0.3143 -0.1917,0.651 -0.1886,0.9902 0,0.0216 0.0014,0.0419 0.0031,0.0627 -0.0017,0.0208 -0.0031,0.0415 -0.0031,0.0627 0.0049,0.5915 -0.1662,1.171 -0.4913,1.6652 -0.325,0.4941 -0.7896,0.8805 -1.3346,1.1102 -0.5451,0.2296 -1.1461,0.2923 -1.7268,0.1799 -0.5807,-0.1125 -1.1149,-0.3948 -1.5347994,-0.8114 -0.42,-0.4165 -0.7067,-0.9483 -0.8239,-1.5281 -0.1172,-0.5798 -0.0595,-1.1813 0.1657,-1.7281 0.2252,-0.547 0.6079,-1.0147005 1.0992994,-1.3438005 0.4915,-0.3291 1.0696,-0.5048 1.6611,-0.5049 0.0981,0.0012 0.1954,-0.0171 0.2864,-0.0538 0.0909,-0.0367 0.1737,-0.0911 0.2435,-0.1601 0.0697,-0.0689 0.1252,-0.151 0.163,-0.2415 0.0378,-0.0905 0.0573,-0.1877 0.0573,-0.2858 0,-0.0981 -0.0195,-0.1951995 -0.0573,-0.2856995 -0.0378,-0.0905 -0.0933,-0.1726 -0.163,-0.2416 -0.0698,-0.0689 -0.1526,-0.1233 -0.2435,-0.16 -0.091,-0.0367 -0.1883,-0.055 -0.2864,-0.0539 -0.8778,0.0049 -1.7345,0.2697 -2.4619994,0.7608995 -0.7274,0.4912 -1.2931,1.1869 -1.6257,1.9992005 -0.3325,0.8124 -0.417,1.7051 -0.2428,2.5654 0.1743,0.8603 0.5994,1.6497 1.2218,2.2687 0.6225,0.619 1.4142994,1.0397 2.2755994,1.2092 0.8612,0.1694 1.7534,0.0799 2.5639,-0.2571 0.8105,-0.337 1.5031,-0.9065 1.9902,-1.6367 0.4872,-0.7303 0.7471,-1.5884 0.7471,-2.4662 0,-0.0216 -0.0014,-0.0419 -0.0031,-0.0627 0.0017,-0.0208 0.0031,-0.0415 0.0031,-0.0627 -0.0029,-0.1444 0.023,-0.288 0.0764,-0.4223 0.0532,-0.1343 0.1328,-0.2566 0.2338,-0.3597 0.1012,-0.1032 0.2219,-0.1851 0.355,-0.2411 0.1332,-0.0559 0.2763,-0.0847 0.4207,-0.0847 0.1444,0 0.2875,0.0288 0.4206,0.0847 0.1332,0.056 0.2539,0.1379 0.355,0.2411 0.101,0.1031 0.1806,0.2254 0.2339,0.3597 0.0533,0.1343 0.0792,0.2779 0.0763,0.4223 0.002,1.7632 -0.696,3.4551 -1.9407,4.7041 -0.6034,0.62 -1.325,1.1127 -2.122,1.4492 -0.7971,0.3365 -1.6535,0.5098 -2.5187,0.5098 -0.8651,0 -1.7215,-0.1733 -2.5185994,-0.5098 -0.7971,-0.3365 -1.5186,-0.8292 -2.1221,-1.4492 -1.2429999,-1.25 -1.9406999,-2.9413 -1.9406999,-4.7041 0,-1.7629 0.6977,-3.4541005 1.9406999,-4.7042 0.6039,-0.6192 1.3255,-1.1115 2.1224,-1.4479 0.7967994,-0.3364 1.6527994,-0.5101 2.5177994,-0.5111 0.0666,-2e-4 0.1328,-0.0093 0.1969,-0.0272 0.631,-0.0968 1.204,-0.42314 1.6092,-0.91644 0.4051,-0.4933 0.6139,-1.11882 0.5862,-1.75657 -0.0277,-0.63776 -0.29,-1.24283 -0.7364,-1.69914 -0.4464,-0.45632 -1.0455,-0.73175 -1.6825,-0.77346 -0.0266,-0.0029 -0.0534,-0.00438 -0.0802,-0.00443 -0.015,0 -0.0298,0 -0.0447,0 -0.0074,0 -0.0145,0 -0.0216,0 -0.0072,0 -0.0145,8.6e-4 -0.0217,0.00108 -1.5409,0.01212 -3.0640994,0.32913 -4.4818994,0.93276 -1.4178999,0.60363 -2.7021399,1.48195 -3.7788799,2.5843 -2.22634,2.2409 -3.47585998,5.2714995 -3.47585998,8.4304 0,3.1588 1.24951998,6.1894 3.47585998,8.4303 1.08669,1.1136 2.38518,1.9986 3.8189799,2.6027 1.4338,0.6042 2.9740994,0.9155 4.5299994,0.9155 1.5559,0 3.0961,-0.3113 4.53,-0.9155 1.4338,-0.6041 2.7322,-1.4891 3.819,-2.6027 z",h="M11.4352 10.5208C10.6865 11.8758 9.96921 13.1879 9.23694 14.4902C9.04888 14.8246 8.9558 15.0969 9.10604 15.5219C9.52083 16.6959 8.93569 17.8385 7.83598 18.1486C6.79886 18.4411 5.78841 17.7073 5.58264 16.5119C5.4003 15.4539 6.16298 14.4167 7.2466 14.2513C7.33735 14.2373 7.43008 14.2357 7.58264 14.2234L9.23094 11.2478C8.19425 10.138 7.57721 8.84086 7.71376 7.23333C7.81029 6.09705 8.22537 5.11506 8.98396 4.31023C10.4369 2.76895 12.6536 2.51939 14.3644 3.70239C16.0075 4.83875 16.76 7.05222 16.1185 8.94669C15.6349 8.80553 15.1478 8.66317 14.6124 8.50682C14.8138 7.45349 14.6649 6.50767 14.005 5.69737C13.569 5.16239 13.0096 4.88198 12.3735 4.77866C11.0982 4.57126 9.84614 5.45328 9.47461 6.80083C9.0529 8.33011 9.69118 9.57944 11.4352 10.5209V10.5208Z M13.5743 8.91924C14.1018 9.92105 14.6374 10.938 15.1682 11.9456C17.8511 11.0519 19.874 12.6509 20.5997 14.3627C21.4763 16.4306 20.8771 18.8797 19.1556 20.1554C17.3886 21.465 15.1539 21.2413 13.5884 19.559C13.9874 19.1994 14.3884 18.8383 14.8168 18.4524C16.363 19.5306 17.7154 19.4798 18.7195 18.2031C19.5757 17.1139 19.5571 15.4899 18.6761 14.4236C17.6593 13.1931 16.2975 13.1556 14.6513 14.3367C13.9684 13.0325 13.2737 11.7386 12.6124 10.425C12.3894 9.98221 12.1433 9.72528 11.6407 9.63161C10.8015 9.47496 10.2597 8.69907 10.2271 7.82982C10.1952 6.97015 10.6656 6.19305 11.4009 5.89031C12.1293 5.5903 12.9841 5.83242 13.474 6.49913C13.8744 7.04384 14.0017 7.65692 13.791 8.32872C13.7324 8.51606 13.6565 8.69733 13.5743 8.91931V8.91924Z M14.8345 17.1074H11.6046C11.295 18.4782 10.6264 19.5849 9.47421 20.2887C8.57851 20.8357 7.61316 21.0211 6.58571 20.8425C4.69395 20.5141 3.14713 18.6807 3.01094 16.6163C2.85682 14.2776 4.34994 12.1988 6.34013 11.7319C6.47753 12.2691 6.6164 12.8115 6.7538 13.3474C4.92781 14.3503 4.29581 15.614 4.80686 17.1942C5.25672 18.5847 6.53462 19.347 7.92217 19.0522C9.33915 18.7512 10.0536 17.4834 9.96635 15.4488C11.3097 15.4488 12.6541 15.4338 13.9975 15.4561C14.5221 15.465 14.9271 15.4065 15.3223 14.9085C15.9729 14.0893 17.1705 14.1632 17.8712 14.937C18.5873 15.7277 18.5531 17.0001 17.7952 17.7575C17.0641 18.4883 15.909 18.4493 15.2249 17.6618C15.0843 17.4995 14.9736 17.3068 14.8345 17.1074Z",g="M12 22C7.664 22 4 19.965 4 17.556V6.444C4 4.035 7.664 2 12 2C16.336 2 20 4.035 20 6.444V17.556C20 19.965 16.337 22 12 22ZM6 14.9V17.559C6.07 18.112 8.309 19.781 12 19.781C15.691 19.781 17.931 18.107 18 17.553V14.9C16.1794 15.9554 14.1039 16.4905 12 16.447C9.89606 16.4906 7.82058 15.9554 6 14.9ZM6 9.341V12C6.07 12.553 8.309 14.222 12 14.222C15.691 14.222 17.931 12.548 18 11.994V9.341C16.1795 10.3968 14.104 10.9323 12 10.889C9.89596 10.9323 7.82046 10.3968 6 9.341ZM12 4.222C8.308 4.222 6.069 5.896 6 6.451C6.07 7 8.311 8.666 12 8.666C15.689 8.666 17.931 6.992 18 6.438C17.93 5.887 15.689 4.222 12 4.222Z",y="M14 2C15.8299 1.99913 17.6049 2.62567 19.0288 3.77513C20.4527 4.92458 21.4395 6.52748 21.8246 8.31647C22.2097 10.1055 21.9699 11.9724 21.145 13.6059C20.3202 15.2395 18.9602 16.5408 17.292 17.293C16.7587 18.4719 15.9475 19.5039 14.9278 20.3004C13.9082 21.097 12.7105 21.6343 11.4376 21.8663C10.1647 22.0984 8.85446 22.0182 7.61933 21.6327C6.3842 21.2472 5.261 20.5678 4.34608 19.6529C3.43115 18.738 2.7518 17.6148 2.36628 16.3796C1.98076 15.1445 1.90058 13.8343 2.13262 12.5614C2.36466 11.2884 2.90199 10.0908 3.69854 9.07114C4.49508 8.05148 5.52705 7.24024 6.70596 6.707C7.34011 5.30389 8.36555 4.1135 9.65931 3.27861C10.9531 2.44371 12.4602 1.99976 14 2ZM9.99996 8C9.21203 8 8.43182 8.1552 7.70386 8.45672C6.97591 8.75825 6.31447 9.20021 5.75732 9.75736C5.20017 10.3145 4.75822 10.9759 4.45669 11.7039C4.15516 12.4319 3.99996 13.2121 3.99996 14C3.99996 14.7879 4.15516 15.5681 4.45669 16.2961C4.75822 17.0241 5.20017 17.6855 5.75732 18.2426C6.31447 18.7998 6.97591 19.2417 7.70386 19.5433C8.43182 19.8448 9.21203 20 9.99996 20C11.5913 20 13.1174 19.3679 14.2426 18.2426C15.3678 17.1174 16 15.5913 16 14C16 12.4087 15.3678 10.8826 14.2426 9.75736C13.1174 8.63214 11.5913 8 9.99996 8ZM11 9V10H13V12H8.99996C8.87502 11.9998 8.75451 12.0463 8.66218 12.1305C8.56985 12.2147 8.51238 12.3304 8.50109 12.4548C8.4898 12.5793 8.52551 12.7034 8.60118 12.8028C8.67686 12.9023 8.78702 12.9697 8.90996 12.992L8.99996 13H11C11.663 13 12.2989 13.2634 12.7677 13.7322C13.2366 14.2011 13.5 14.837 13.5 15.5C13.5 16.163 13.2366 16.7989 12.7677 17.2678C12.2989 17.7366 11.663 18 11 18V19H8.99996V18H6.99996V16H11C11.1249 16.0002 11.2454 15.9537 11.3377 15.8695C11.4301 15.7853 11.4875 15.6696 11.4988 15.5452C11.5101 15.4207 11.4744 15.2966 11.3987 15.1972C11.3231 15.0977 11.2129 15.0303 11.09 15.008L11 15H8.99996C8.33692 15 7.70104 14.7366 7.2322 14.2678C6.76336 13.7989 6.49996 13.163 6.49996 12.5C6.49996 11.837 6.76336 11.2011 7.2322 10.7322C7.70104 10.2634 8.33692 10 8.99996 10V9H11ZM14 4C13.1526 3.99901 12.3148 4.17794 11.5418 4.52496C10.7688 4.87198 10.0783 5.37918 9.51596 6.013C10.6462 5.94439 11.7782 6.1165 12.837 6.51795C13.8958 6.9194 14.8573 7.54105 15.6579 8.34178C16.4586 9.14252 17.0801 10.1041 17.4814 11.1629C17.8827 12.2218 18.0547 13.3537 17.986 14.484C18.8952 13.6756 19.5372 12.6099 19.8268 11.4283C20.1164 10.2467 20.04 9.00492 19.6076 7.86772C19.1752 6.73053 18.4074 5.75164 17.4059 5.06088C16.4044 4.37013 15.2166 4.00014 14 4Z",p="m 18.081457,19.819029 h -1.737539 c 0,-2.398996 -1.944783,-4.343914 -4.343913,-4.343914 -2.3990779,0 -4.3439269,1.944918 -4.3439269,4.343914 H 5.9185126 c 0,-3.358595 2.7227765,-6.081452 6.0814924,-6.081452 3.358729,0 6.081452,2.722857 6.081452,6.081452 z m 3.473595,0 c 0,-0.456099 -0.08995,-0.907754 -0.264475,-1.329245 -0.174522,-0.421356 -0.430379,-0.804333 -0.752893,-1.126848 -0.322649,-0.322514 -0.705492,-0.578371 -1.126983,-0.752893 -0.421356,-0.174656 -0.873011,-0.264475 -1.329244,-0.264475 v -1.739155 c 0.592645,0 1.180174,0.100997 1.737673,0.298141 0.08645,0.03057 0.172232,0.06343 0.257203,0.09857 0.632371,0.262052 1.207107,0.645972 1.691081,1.13008 0.484108,0.483974 0.868028,1.058575 1.129945,1.691081 0.03528,0.08497 0.06814,0.170751 0.09871,0.257203 0.197144,0.557499 0.298141,1.145028 0.298141,1.737539 z M 18.870708,8.714525 C 18.626297,8.5899091 18.355897,8.5249484 18.081457,8.5249484 V 6.787383 c 0.548746,0 1.089681,0.1298811 1.578503,0.3791262 0.05386,0.027444 0.106921,0.056262 0.15917,0.086399 0.421625,0.2434681 0.788039,0.573214 1.074868,0.9683919 0.322246,0.4441004 0.534876,0.958198 0.620252,1.5002243 0.08537,0.5420396 0.04134,1.0965896 -0.128871,1.6182816 -0.170078,0.521679 -0.461351,0.995674 -0.84985,1.38323 -0.388498,0.387422 -0.86318,0.677483 -1.385398,0.846214 -0.464583,0.150147 -0.95502,0.200511 -1.439128,0.148532 -0.05993,-0.0065 -0.119715,-0.01441 -0.17937,-0.02397 -0.541474,-0.08672 -1.054669,-0.30043 -1.497706,-0.623483 l -9.43e-4,-6.74e-4 1.024236,-1.403618 c 0.221653,0.161729 0.478453,0.268637 0.749258,0.312051 0.270939,0.04336 0.548342,0.02209 0.809316,-0.06231 0.261109,-0.08437 0.498517,-0.229356 0.692699,-0.423094 0.194317,-0.193751 0.339886,-0.430742 0.424857,-0.691568 0.08511,-0.260839 0.107191,-0.538107 0.0645,-0.8091135 C 19.755165,9.7209991 19.648917,9.4639571 19.487728,9.2419136 19.326538,9.0198701 19.115119,8.8391543 18.870708,8.714525 Z M 12.000005,4.1809675 c -2.3990779,0 -4.3439269,1.94485 -4.3439269,4.343927 0,2.3990765 1.944849,4.3439805 4.3439269,4.3439805 2.39913,0 4.343913,-1.944904 4.343913,-4.3439805 0,-2.399077 -1.944783,-4.343927 -4.343913,-4.343927 z m -2.6063489,4.343927 c 0,-1.4394516 1.1668969,-2.6063481 2.6063489,-2.6063481 1.439397,0 2.606375,1.1668965 2.606375,2.6063481 0,1.4394516 -1.166978,2.6063475 -2.606375,2.6063475 -1.439452,0 -2.6063489,-1.1668959 -2.6063489,-2.6063475 z M 2.4450112,19.819029 c 0,-0.456099 0.089846,-0.907754 0.264408,-1.329245 0.1745483,-0.421356 0.4304054,-0.804333 0.7529468,-1.126848 0.3225414,-0.322514 0.7054651,-0.578371 1.1268886,-0.753028 0.4214234,-0.174521 0.8731053,-0.26434 1.3292445,-0.26434 v -1.739289 c -0.5925783,0 -1.1801338,0.101131 -1.7375654,0.29814 -0.086507,0.03057 -0.172286,0.06356 -0.2572575,0.09871 -0.6324247,0.261917 -1.2070796,0.645972 -1.6911206,1.129946 -0.4840411,0.484108 -0.8680017,1.058709 -1.1299724,1.691215 -0.035187,0.08484 -0.068085,0.170616 -0.098666,0.257203 -0.1970907,0.557365 -0.2981273,1.145028 -0.2981273,1.737539 z M 5.1292745,8.7144846 C 5.3736987,8.5898687 5.6441531,8.5248945 5.9184991,8.5248945 V 6.7873291 c -0.548719,0 -1.0896412,0.1298811 -1.5784897,0.3791262 -0.053838,0.027457 -0.1068809,0.056262 -0.1590757,0.086399 C 3.7592275,7.4963224 3.3927864,7.8260682 3.1059841,8.2212461 2.7836851,8.6653465 2.5711352,9.1794441 2.4857194,9.7214839 2.4003034,10.26351 2.4444594,10.81806 2.614577,11.339752 c 0.1701045,0.521693 0.4613372,0.995728 0.8498493,1.38315 0.3885122,0.387556 0.8632616,0.677482 1.3853984,0.846213 0.4646229,0.150148 0.9550066,0.200511 1.4391688,0.148667 0.059924,-0.0065 0.1197546,-0.01441 0.1794231,-0.02397 0.5414475,-0.08686 1.0546565,-0.30043 1.4976925,-0.623618 l 9.16e-4,-6.73e-4 -1.024263,-1.403524 c -0.221626,0.161715 -0.4784122,0.268623 -0.7493109,0.312038 -0.2708988,0.04341 -0.5482208,0.022 -0.8092758,-0.06231 C 5.1231204,11.831361 4.8857525,11.686371 4.6915031,11.492633 4.4972538,11.298882 4.3516442,11.061905 4.2665919,10.801065 4.1815397,10.540226 4.1594552,10.262958 4.2021564,9.9919515 4.244871,9.7209453 4.3511459,9.4639032 4.512282,9.2418597 4.6734315,9.0198162 4.8848637,8.8391004 5.1292745,8.7144846 Z",m="M21.2664 20.9981H2.73337C2.37611 20.9981 2.04599 20.8075 1.86737 20.4981C1.68874 20.1887 1.68874 19.8075 1.86737 19.4981L11.1334 3.49811C11.3121 3.18923 11.642 2.99902 11.9989 2.99902C12.3558 2.99902 12.6856 3.18923 12.8644 3.49811L22.1304 19.4981C22.3089 19.8074 22.309 20.1883 22.1306 20.4977C21.9522 20.807 21.6225 20.9977 21.2654 20.9981H21.2664ZM12.0004 5.99811L4.46937 18.9981H19.5334L12.0004 5.99811ZM12.9954 14.9991H10.9954V9.99811H12.9954V14.9991Z M11.0004 16.0001H13.0004V18.0001H11.0004V16.0001Z",v="M10 16.5L16 12L10 7.5V16.5ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20Z",w="M14.06 9.02L14.98 9.94L5.92 19H5V18.08L14.06 9.02ZM17.66 3C17.41 3 17.15 3.1 16.96 3.29L15.13 5.12L18.88 8.87L20.71 7.04C21.1 6.65 21.1 6.02 20.71 5.63L18.37 3.29C18.17 3.09 17.92 3 17.66 3ZM14.06 6.19L3 17.25V21H6.75L17.81 9.94L14.06 6.19Z",z="M17.001 20H6.00098C4.89641 20 4.00098 19.1046 4.00098 18V7C4.00098 5.89543 4.89641 5 6.00098 5H10.001V7H6.00098V18H17.001V14H19.001V18C19.001 19.1046 18.1055 20 17.001 20ZM11.701 13.707L10.291 12.293L16.584 6H13.001V4H20.001V11H18.001V7.415L11.701 13.707Z",D="M19.14,7.5A2.86,2.86 0 0,1 22,10.36V14.14A2.86,2.86 0 0,1 19.14,17H12C12,17.39 12.32,17.96 12.71,17.96H17V19.64A2.86,2.86 0 0,1 14.14,22.5H9.86A2.86,2.86 0 0,1 7,19.64V15.89C7,14.31 8.28,13.04 9.86,13.04H15.11C16.69,13.04 17.96,11.76 17.96,10.18V7.5H19.14M14.86,19.29C14.46,19.29 14.14,19.59 14.14,20.18C14.14,20.77 14.46,20.89 14.86,20.89A0.71,0.71 0 0,0 15.57,20.18C15.57,19.59 15.25,19.29 14.86,19.29M4.86,17.5C3.28,17.5 2,16.22 2,14.64V10.86C2,9.28 3.28,8 4.86,8H12C12,7.61 11.68,7.04 11.29,7.04H7V5.36C7,3.78 8.28,2.5 9.86,2.5H14.14C15.72,2.5 17,3.78 17,5.36V9.11C17,10.69 15.72,11.96 14.14,11.96H8.89C7.31,11.96 6.04,13.24 6.04,14.82V17.5H4.86M9.14,5.71C9.54,5.71 9.86,5.41 9.86,4.82C9.86,4.23 9.54,4.11 9.14,4.11C8.75,4.11 8.43,4.23 8.43,4.82C8.43,5.41 8.75,5.71 9.14,5.71Z",I="M12 2.79883C6.48 2.79883 2 7.27883 2 12.7988C2 18.3188 6.48 22.7988 12 22.7988C17.52 22.7988 22 18.3188 22 12.7988C22 7.27883 17.52 2.79883 12 2.79883ZM13 17.7988H11V15.7988H13V17.7988ZM13 13.7988H11V7.79883H13V13.7988Z",k="M4 6.79883H2V20.7988C2 21.8988 2.9 22.7988 4 22.7988H18V20.7988H4V6.79883ZM20 2.79883H8C6.9 2.79883 6 3.69883 6 4.79883V16.7988C6 17.8988 6.9 18.7988 8 18.7988H20C21.1 18.7988 22 17.8988 22 16.7988V4.79883C22 3.69883 21.1 2.79883 20 2.79883ZM20 16.7988H8V4.79883H20V16.7988ZM13 15.7988H15V11.7988H19V9.79883H15V5.79883H13V9.79883H9V11.7988H13V15.7988Z",S="M15.5 14H14.71L14.43 13.73C15.41 12.59 16 11.11 16 9.5C16 5.91 13.09 3 9.5 3C5.91 3 3 5.91 3 9.5C3 13.09 5.91 16 9.5 16C11.11 16 12.59 15.41 13.73 14.43L14 14.71V15.5L19 20.49L20.49 19L15.5 14ZM9.5 14C7.01 14 5 11.99 5 9.5C5 7.01 7.01 5 9.5 5C11.99 5 14 7.01 14 9.5C14 11.99 11.99 14 9.5 14Z",R="M12.0106 3C12.7162 3.00738 13.419 3.08585 14.1073 3.23355C14.2539 3.26498 14.3867 3.33961 14.487 3.44702C14.5873 3.55444 14.6502 3.68926 14.6668 3.83264L14.8302 5.24223C14.8533 5.44108 14.9246 5.63196 15.0385 5.79949C15.1524 5.96702 15.3057 6.10652 15.4861 6.20675C15.6664 6.30698 15.8687 6.36514 16.0768 6.37655C16.2848 6.38795 16.4927 6.35229 16.6837 6.27242L18.0296 5.70471C18.1664 5.64687 18.3185 5.63127 18.4649 5.66004C18.6112 5.68882 18.7447 5.76055 18.8468 5.86533C19.8196 6.86331 20.544 8.06013 20.9656 9.36575C21.0098 9.50296 21.0085 9.64997 20.9618 9.78642C20.9151 9.92287 20.8254 10.042 20.7051 10.1273L19.5111 10.9729C19.3431 11.0913 19.2064 11.246 19.1123 11.4245C19.0182 11.6031 18.9691 11.8004 18.9692 12.0005C18.9693 12.2007 19.0185 12.3979 19.1128 12.5764C19.2071 12.7549 19.3439 12.9095 19.5121 13.0277L20.707 13.8724C20.8275 13.9577 20.9174 14.077 20.9641 14.2137C21.0108 14.3503 21.012 14.4975 20.9676 14.6349C20.5461 15.9403 19.822 17.1371 18.8497 18.1353C18.7478 18.24 18.6145 18.3118 18.4683 18.3407C18.3222 18.3697 18.1702 18.3543 18.0335 18.2968L16.6818 17.7273C16.491 17.6468 16.2832 17.6106 16.0751 17.6216C15.867 17.6326 15.6646 17.6905 15.4842 17.7907C15.3038 17.8908 15.1504 18.0304 15.0367 18.198C14.9229 18.3657 14.8518 18.5567 14.8293 18.7556L14.6668 20.1643C14.6504 20.3061 14.5888 20.4396 14.4904 20.5465C14.3919 20.6534 14.2615 20.7285 14.1169 20.7615C12.7247 21.0795 11.2743 21.0795 9.88213 20.7615C9.73754 20.7285 9.60711 20.6534 9.50867 20.5465C9.41024 20.4396 9.34861 20.3061 9.33223 20.1643L9.1688 18.7575C9.14515 18.5594 9.07349 18.3694 8.95956 18.2027C8.84564 18.0361 8.69262 17.8974 8.51278 17.7977C8.33294 17.6981 8.13129 17.6403 7.924 17.6291C7.71671 17.6178 7.50955 17.6533 7.31915 17.7328L5.96651 18.3014C5.82979 18.359 5.67785 18.3743 5.53165 18.3454C5.38546 18.3164 5.25222 18.2446 5.15032 18.1399C4.17749 17.1407 3.45337 15.9426 3.03245 14.6358C2.98803 14.4984 2.98924 14.3512 3.03593 14.2146C3.08262 14.078 3.17246 13.9587 3.29298 13.8733L4.48891 13.0277C4.657 12.9094 4.79369 12.7547 4.88792 12.5762C4.98214 12.3977 5.03125 12.2004 5.03125 12.0003C5.03125 11.8002 4.98214 11.6029 4.88792 11.4244C4.79369 11.2459 4.657 11.0912 4.48891 10.9729L3.29394 10.1292C3.17325 10.0439 3.08322 9.92468 3.03635 9.78803C2.98949 9.65138 2.98813 9.50411 3.03245 9.36668C3.45431 8.06097 4.17909 6.86414 5.15224 5.86625C5.25425 5.76167 5.38755 5.69005 5.53373 5.66128C5.67992 5.63251 5.83181 5.64801 5.96844 5.70563L7.31434 6.27334C7.50567 6.35298 7.71378 6.38842 7.92196 6.37681C8.13014 6.3652 8.33259 6.30687 8.51303 6.2065C8.69347 6.10614 8.84689 5.96653 8.96094 5.7989C9.075 5.63127 9.14652 5.44029 9.16976 5.24131L9.33319 3.83264C9.34969 3.68897 9.4126 3.55385 9.51312 3.44624C9.61363 3.33864 9.7467 3.26394 9.89366 3.23262C10.5839 3.08585 11.2876 3.00831 12.0106 3ZM12.0106 4.38466C11.5742 4.38953 11.1387 4.42563 10.7079 4.49267L10.6031 5.39454C10.5552 5.80954 10.4062 6.20789 10.1684 6.55746C9.93062 6.90704 9.61056 7.19804 9.23408 7.407C8.85761 7.61596 8.43525 7.73702 8.00108 7.76042C7.56692 7.78381 7.1331 7.70889 6.73464 7.54169L5.87134 7.17799C5.32143 7.81874 4.88375 8.54112 4.57543 9.31683L5.34259 9.8587C5.69273 10.1058 5.97742 10.4285 6.17363 10.8008C6.36985 11.1731 6.47209 11.5845 6.47209 12.0017C6.47209 12.4189 6.36985 12.8303 6.17363 13.2026C5.97742 13.5749 5.69273 13.8976 5.34259 14.1447L4.57543 14.6875C4.88306 15.4647 5.32048 16.1884 5.87038 16.8309L6.74137 16.4645C7.13888 16.2978 7.57159 16.2231 8.00466 16.2463C8.43774 16.2696 8.85908 16.3902 9.23476 16.5983C9.61045 16.8065 9.92999 17.0964 10.1677 17.4448C10.4053 17.7932 10.5545 18.1904 10.6031 18.6042L10.707 19.5126C11.5626 19.651 12.4365 19.651 13.2921 19.5126L13.3959 18.6042C13.4435 18.1895 13.592 17.7913 13.8295 17.442C14.0671 17.0926 14.3869 16.8018 14.7631 16.5931C15.1394 16.3844 15.5615 16.2637 15.9954 16.2407C16.4293 16.2177 16.8627 16.2931 17.2606 16.4608L18.1296 16.8263C18.6792 16.1852 19.1165 15.4625 19.4246 14.6866L18.6574 14.1438C18.3071 13.8968 18.0222 13.5741 17.8259 13.2018C17.6296 12.8295 17.5272 12.4181 17.5272 12.0008C17.5272 11.5835 17.6296 11.172 17.8259 10.7997C18.0222 10.4274 18.3071 10.1047 18.6574 9.85777L19.4226 9.31591C19.1143 8.5402 18.6766 7.81781 18.1267 7.17706L17.2654 7.53985C16.8671 7.70725 16.4335 7.78239 15.9994 7.75919C15.5653 7.73599 15.143 7.61511 14.7666 7.4063C14.3902 7.1975 14.0701 6.90662 13.8324 6.55715C13.5946 6.20769 13.4457 5.80943 13.3978 5.39454L13.2921 4.49359C12.8683 4.42707 12.4399 4.39097 12.0106 4.38559V4.38466ZM11.9981 8.53865C12.9542 8.53865 13.8712 8.90336 14.5473 9.55255C15.2233 10.2017 15.6032 11.0822 15.6032 12.0003C15.6032 12.9184 15.2233 13.7989 14.5473 14.4481C13.8712 15.0973 12.9542 15.462 11.9981 15.462C11.0419 15.462 10.125 15.0973 9.44889 14.4481C8.7728 13.7989 8.39298 12.9184 8.39298 12.0003C8.39298 11.0822 8.7728 10.2017 9.44889 9.55255C10.125 8.90336 11.0419 8.53865 11.9981 8.53865ZM11.9981 9.92331C11.4244 9.92331 10.8742 10.1421 10.4686 10.5316C10.0629 10.9212 9.83502 11.4495 9.83502 12.0003C9.83502 12.5512 10.0629 13.0794 10.4686 13.469C10.8742 13.8585 11.4244 14.0773 11.9981 14.0773C12.5718 14.0773 13.1219 13.8585 13.5276 13.469C13.9332 13.0794 14.1611 12.5512 14.1611 12.0003C14.1611 11.4495 13.9332 10.9212 13.5276 10.5316C13.1219 10.1421 12.5718 9.92331 11.9981 9.92331Z",_="M7.5,5.6L5,7L6.4,4.5L5,2L7.5,3.4L10,2L8.6,4.5L10,7L7.5,5.6M19.5,15.4L22,14L20.6,16.5L22,19L19.5,17.6L17,19L18.4,16.5L17,14L19.5,15.4M22,2L20.6,4.5L22,7L19.5,5.6L17,7L18.4,4.5L17,2L19.5,3.4L22,2M13.34,12.78L15.78,10.34L13.66,8.22L11.22,10.66L13.34,12.78M14.37,7.29L16.71,9.63C17.1,10 17.1,10.65 16.71,11.04L5.04,22.71C4.65,23.1 4,23.1 3.63,22.71L1.29,20.37C0.9,20 0.9,19.35 1.29,18.96L12.96,7.29C13.35,6.9 14,6.9 14.37,7.29Z",x="M21.4 7.5C22.2 8.3 22.2 9.6 21.4 10.3L18.6 13.1L10.8 5.3L13.6 2.5C14.4 1.7 15.7 1.7 16.4 2.5L18.2 4.3L21.2 1.3L22.6 2.7L19.6 5.7L21.4 7.5M15.6 13.3L14.2 11.9L11.4 14.7L9.3 12.6L12.1 9.8L10.7 8.4L7.9 11.2L6.4 9.8L3.6 12.6C2.8 13.4 2.8 14.7 3.6 15.4L5.4 17.2L1.4 21.2L2.8 22.6L6.8 18.6L8.6 20.4C9.4 21.2 10.7 21.2 11.4 20.4L14.2 17.6L12.8 16.2L15.6 13.3Z",O="M12 6.5C15.79 6.5 19.17 8.63 20.82 12C19.17 15.37 15.8 17.5 12 17.5C8.2 17.5 4.83 15.37 3.18 12C4.83 8.63 8.21 6.5 12 6.5ZM12 4.5C7 4.5 2.73 7.61 1 12C2.73 16.39 7 19.5 12 19.5C17 19.5 21.27 16.39 23 12C21.27 7.61 17 4.5 12 4.5ZM12 9.5C13.38 9.5 14.5 10.62 14.5 12C14.5 13.38 13.38 14.5 12 14.5C10.62 14.5 9.5 13.38 9.5 12C9.5 10.62 10.62 9.5 12 9.5ZM12 7.5C9.52 7.5 7.5 9.52 7.5 12C7.5 14.48 9.52 16.5 12 16.5C14.48 16.5 16.5 14.48 16.5 12C16.5 9.52 14.48 7.5 12 7.5Z",E={d:"M2 3C2 2.44772 2.44772 2 3 2H21C21.5523 2 22 2.44772 22 3V10C22 10.5523 21.5523 11 21 11H3C2.44772 11 2 10.5523 2 10V3ZM4 4V9H20V4H4ZM10 14C10 13.4477 10.4477 13 11 13H21C21.5523 13 22 13.4477 22 14V21C22 21.5523 21.5523 22 21 22H11C10.4477 22 10 21.5523 10 21V14ZM12 15V20H20V15H12ZM3 13C2.44772 13 2 13.4477 2 14V21C2 21.5523 2.44772 22 3 22H7C7.55228 22 8 21.5523 8 21V14C8 13.4477 7.55228 13 7 13H3ZM4 20V15H6V20H4Z",fillRule:"evenodd",clipRule:"evenodd"},F="M12.4142 18.2114L10.9992 16.7984L15.5992 12.1984L10.9992 7.59841L12.4142 6.19141L18.4242 12.2014L12.4152 18.2114H12.4142ZM6.9892 18.2114L5.5752 16.7984L10.1752 12.1984L5.5752 7.60541L6.9892 6.19141L13.0002 12.2014L6.9902 18.2114H6.9892Z",j="M10.0719 8.02397L5.7146 3.66666L6.33332 3.04794L11 7.71461V8.33333L6.33332 13L5.7146 12.3813L10.0719 8.02397Z",q="M7.97612 10.0719L12.3334 5.7146L12.9521 6.33332L8.28548 11L7.66676 11L3.0001 6.33332L3.61882 5.7146L7.97612 10.0719Z",B="M15.4286 9.33333V18.2222H8.57143V9.33333H15.4286ZM14.1429 4H9.85714L9 4.88889H6V6.66667H18V4.88889H15L14.1429 4ZM17.1429 7.55556H6.85714V18.2222C6.85714 19.2 7.62857 20 8.57143 20H15.4286C16.3714 20 17.1429 19.2 17.1429 18.2222V7.55556Z",G="M12,2A2,2 0 0,1 14,4C14,4.74 13.6,5.39 13,5.73V7H14A7,7 0 0,1 21,14H22A1,1 0 0,1 23,15V18A1,1 0 0,1 22,19H21V20A2,2 0 0,1 19,22H5A2,2 0 0,1 3,20V19H2A1,1 0 0,1 1,18V15A1,1 0 0,1 2,14H3A7,7 0 0,1 10,7H11V5.73C10.4,5.39 10,4.74 10,4A2,2 0 0,1 12,2M7.5,13A2.5,2.5 0 0,0 5,15.5A2.5,2.5 0 0,0 7.5,18A2.5,2.5 0 0,0 10,15.5A2.5,2.5 0 0,0 7.5,13M16.5,13A2.5,2.5 0 0,0 14,15.5A2.5,2.5 0 0,0 16.5,18A2.5,2.5 0 0,0 19,15.5A2.5,2.5 0 0,0 16.5,13Z",J="M20 8H17.19C16.74 7.22 16.12 6.55 15.37 6.04L17 4.41L15.59 3L13.42 5.17C12.96 5.06 12.49 5 12 5C11.51 5 11.04 5.06 10.59 5.17L8.41 3L7 4.41L8.62 6.04C7.88 6.55 7.26 7.22 6.81 8H4V10H6.09C6.04 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20V8ZM16 12V15C16 15.22 15.97 15.47 15.93 15.7L15.83 16.35L15.46 17C14.74 18.24 13.42 19 12 19C10.58 19 9.26 18.23 8.54 17L8.17 16.36L8.07 15.71C8.03 15.48 8 15.23 8 15V11C8 10.77 8.03 10.52 8.07 10.3L8.17 9.65L8.54 9C8.84 8.48 9.26 8.03 9.75 7.69L10.32 7.3L11.06 7.12C11.37 7.04 11.69 7 12 7C12.32 7 12.63 7.04 12.95 7.12L13.63 7.28L14.24 7.7C14.74 8.04 15.15 8.48 15.45 9.01L15.83 9.66L15.93 10.31C15.97 10.53 16 10.78 16 11V12ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z";export{S as A,v as B,n as C,c as D,b as E,p as F,y as G,z as H,x as I,t as J,A as K,R as L,u as M,I as N,E as a,g as b,i as c,o as d,m as e,Z as f,w as g,k as h,e as i,d as j,_ as k,f as l,a as m,G as n,J as o,D as p,F as q,B as r,l as s,O as t,s as u,M as v,h as w,q as x,j as y,r as z}; +//# sourceMappingURL=icons.39dfa322.js.map diff --git a/abstra_statics/dist/assets/index.776642db.js b/abstra_statics/dist/assets/index.7d1457d9.js similarity index 94% rename from abstra_statics/dist/assets/index.776642db.js rename to abstra_statics/dist/assets/index.7d1457d9.js index c148c5d9d6..726f6203e2 100644 --- a/abstra_statics/dist/assets/index.776642db.js +++ b/abstra_statics/dist/assets/index.7d1457d9.js @@ -1,2 +1,2 @@ -import{p as y}from"./registerWidgets.3fe0df5a.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="3ff1a4b0-d494-4333-a2b2-91cebda443f6",e._sentryDebugIdIdentifier="sentry-dbid-3ff1a4b0-d494-4333-a2b2-91cebda443f6")}catch{}})();var d={exports:{}};(function(e,i){(function(r,s,t){e.exports=t(),e.exports.default=t()})("slugify",y,function(){var r=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","\xA2":"cent","\xA3":"pound","\xA4":"currency","\xA5":"yen","\xA9":"(c)","\xAA":"a","\xAE":"(r)","\xBA":"o","\xC0":"A","\xC1":"A","\xC2":"A","\xC3":"A","\xC4":"A","\xC5":"A","\xC6":"AE","\xC7":"C","\xC8":"E","\xC9":"E","\xCA":"E","\xCB":"E","\xCC":"I","\xCD":"I","\xCE":"I","\xCF":"I","\xD0":"D","\xD1":"N","\xD2":"O","\xD3":"O","\xD4":"O","\xD5":"O","\xD6":"O","\xD8":"O","\xD9":"U","\xDA":"U","\xDB":"U","\xDC":"U","\xDD":"Y","\xDE":"TH","\xDF":"ss","\xE0":"a","\xE1":"a","\xE2":"a","\xE3":"a","\xE4":"a","\xE5":"a","\xE6":"ae","\xE7":"c","\xE8":"e","\xE9":"e","\xEA":"e","\xEB":"e","\xEC":"i","\xED":"i","\xEE":"i","\xEF":"i","\xF0":"d","\xF1":"n","\xF2":"o","\xF3":"o","\xF4":"o","\xF5":"o","\xF6":"o","\xF8":"o","\xF9":"u","\xFA":"u","\xFB":"u","\xFC":"u","\xFD":"y","\xFE":"th","\xFF":"y","\u0100":"A","\u0101":"a","\u0102":"A","\u0103":"a","\u0104":"A","\u0105":"a","\u0106":"C","\u0107":"c","\u010C":"C","\u010D":"c","\u010E":"D","\u010F":"d","\u0110":"DJ","\u0111":"dj","\u0112":"E","\u0113":"e","\u0116":"E","\u0117":"e","\u0118":"e","\u0119":"e","\u011A":"E","\u011B":"e","\u011E":"G","\u011F":"g","\u0122":"G","\u0123":"g","\u0128":"I","\u0129":"i","\u012A":"i","\u012B":"i","\u012E":"I","\u012F":"i","\u0130":"I","\u0131":"i","\u0136":"k","\u0137":"k","\u013B":"L","\u013C":"l","\u013D":"L","\u013E":"l","\u0141":"L","\u0142":"l","\u0143":"N","\u0144":"n","\u0145":"N","\u0146":"n","\u0147":"N","\u0148":"n","\u014C":"O","\u014D":"o","\u0150":"O","\u0151":"o","\u0152":"OE","\u0153":"oe","\u0154":"R","\u0155":"r","\u0158":"R","\u0159":"r","\u015A":"S","\u015B":"s","\u015E":"S","\u015F":"s","\u0160":"S","\u0161":"s","\u0162":"T","\u0163":"t","\u0164":"T","\u0165":"t","\u0168":"U","\u0169":"u","\u016A":"u","\u016B":"u","\u016E":"U","\u016F":"u","\u0170":"U","\u0171":"u","\u0172":"U","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017A":"z","\u017B":"Z","\u017C":"z","\u017D":"Z","\u017E":"z","\u018F":"E","\u0192":"f","\u01A0":"O","\u01A1":"o","\u01AF":"U","\u01B0":"u","\u01C8":"LJ","\u01C9":"lj","\u01CB":"NJ","\u01CC":"nj","\u0218":"S","\u0219":"s","\u021A":"T","\u021B":"t","\u0259":"e","\u02DA":"o","\u0386":"A","\u0388":"E","\u0389":"H","\u038A":"I","\u038C":"O","\u038E":"Y","\u038F":"W","\u0390":"i","\u0391":"A","\u0392":"B","\u0393":"G","\u0394":"D","\u0395":"E","\u0396":"Z","\u0397":"H","\u0398":"8","\u0399":"I","\u039A":"K","\u039B":"L","\u039C":"M","\u039D":"N","\u039E":"3","\u039F":"O","\u03A0":"P","\u03A1":"R","\u03A3":"S","\u03A4":"T","\u03A5":"Y","\u03A6":"F","\u03A7":"X","\u03A8":"PS","\u03A9":"W","\u03AA":"I","\u03AB":"Y","\u03AC":"a","\u03AD":"e","\u03AE":"h","\u03AF":"i","\u03B0":"y","\u03B1":"a","\u03B2":"b","\u03B3":"g","\u03B4":"d","\u03B5":"e","\u03B6":"z","\u03B7":"h","\u03B8":"8","\u03B9":"i","\u03BA":"k","\u03BB":"l","\u03BC":"m","\u03BD":"n","\u03BE":"3","\u03BF":"o","\u03C0":"p","\u03C1":"r","\u03C2":"s","\u03C3":"s","\u03C4":"t","\u03C5":"y","\u03C6":"f","\u03C7":"x","\u03C8":"ps","\u03C9":"w","\u03CA":"i","\u03CB":"y","\u03CC":"o","\u03CD":"y","\u03CE":"w","\u0401":"Yo","\u0402":"DJ","\u0404":"Ye","\u0406":"I","\u0407":"Yi","\u0408":"J","\u0409":"LJ","\u040A":"NJ","\u040B":"C","\u040F":"DZ","\u0410":"A","\u0411":"B","\u0412":"V","\u0413":"G","\u0414":"D","\u0415":"E","\u0416":"Zh","\u0417":"Z","\u0418":"I","\u0419":"J","\u041A":"K","\u041B":"L","\u041C":"M","\u041D":"N","\u041E":"O","\u041F":"P","\u0420":"R","\u0421":"S","\u0422":"T","\u0423":"U","\u0424":"F","\u0425":"H","\u0426":"C","\u0427":"Ch","\u0428":"Sh","\u0429":"Sh","\u042A":"U","\u042B":"Y","\u042C":"","\u042D":"E","\u042E":"Yu","\u042F":"Ya","\u0430":"a","\u0431":"b","\u0432":"v","\u0433":"g","\u0434":"d","\u0435":"e","\u0436":"zh","\u0437":"z","\u0438":"i","\u0439":"j","\u043A":"k","\u043B":"l","\u043C":"m","\u043D":"n","\u043E":"o","\u043F":"p","\u0440":"r","\u0441":"s","\u0442":"t","\u0443":"u","\u0444":"f","\u0445":"h","\u0446":"c","\u0447":"ch","\u0448":"sh","\u0449":"sh","\u044A":"u","\u044B":"y","\u044C":"","\u044D":"e","\u044E":"yu","\u044F":"ya","\u0451":"yo","\u0452":"dj","\u0454":"ye","\u0456":"i","\u0457":"yi","\u0458":"j","\u0459":"lj","\u045A":"nj","\u045B":"c","\u045D":"u","\u045F":"dz","\u0490":"G","\u0491":"g","\u0492":"GH","\u0493":"gh","\u049A":"KH","\u049B":"kh","\u04A2":"NG","\u04A3":"ng","\u04AE":"UE","\u04AF":"ue","\u04B0":"U","\u04B1":"u","\u04BA":"H","\u04BB":"h","\u04D8":"AE","\u04D9":"ae","\u04E8":"OE","\u04E9":"oe","\u0531":"A","\u0532":"B","\u0533":"G","\u0534":"D","\u0535":"E","\u0536":"Z","\u0537":"E'","\u0538":"Y'","\u0539":"T'","\u053A":"JH","\u053B":"I","\u053C":"L","\u053D":"X","\u053E":"C'","\u053F":"K","\u0540":"H","\u0541":"D'","\u0542":"GH","\u0543":"TW","\u0544":"M","\u0545":"Y","\u0546":"N","\u0547":"SH","\u0549":"CH","\u054A":"P","\u054B":"J","\u054C":"R'","\u054D":"S","\u054E":"V","\u054F":"T","\u0550":"R","\u0551":"C","\u0553":"P'","\u0554":"Q'","\u0555":"O''","\u0556":"F","\u0587":"EV","\u0621":"a","\u0622":"aa","\u0623":"a","\u0624":"u","\u0625":"i","\u0626":"e","\u0627":"a","\u0628":"b","\u0629":"h","\u062A":"t","\u062B":"th","\u062C":"j","\u062D":"h","\u062E":"kh","\u062F":"d","\u0630":"th","\u0631":"r","\u0632":"z","\u0633":"s","\u0634":"sh","\u0635":"s","\u0636":"dh","\u0637":"t","\u0638":"z","\u0639":"a","\u063A":"gh","\u0641":"f","\u0642":"q","\u0643":"k","\u0644":"l","\u0645":"m","\u0646":"n","\u0647":"h","\u0648":"w","\u0649":"a","\u064A":"y","\u064B":"an","\u064C":"on","\u064D":"en","\u064E":"a","\u064F":"u","\u0650":"e","\u0652":"","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u067E":"p","\u0686":"ch","\u0698":"zh","\u06A9":"k","\u06AF":"g","\u06CC":"y","\u06F0":"0","\u06F1":"1","\u06F2":"2","\u06F3":"3","\u06F4":"4","\u06F5":"5","\u06F6":"6","\u06F7":"7","\u06F8":"8","\u06F9":"9","\u0E3F":"baht","\u10D0":"a","\u10D1":"b","\u10D2":"g","\u10D3":"d","\u10D4":"e","\u10D5":"v","\u10D6":"z","\u10D7":"t","\u10D8":"i","\u10D9":"k","\u10DA":"l","\u10DB":"m","\u10DC":"n","\u10DD":"o","\u10DE":"p","\u10DF":"zh","\u10E0":"r","\u10E1":"s","\u10E2":"t","\u10E3":"u","\u10E4":"f","\u10E5":"k","\u10E6":"gh","\u10E7":"q","\u10E8":"sh","\u10E9":"ch","\u10EA":"ts","\u10EB":"dz","\u10EC":"ts","\u10ED":"ch","\u10EE":"kh","\u10EF":"j","\u10F0":"h","\u1E62":"S","\u1E63":"s","\u1E80":"W","\u1E81":"w","\u1E82":"W","\u1E83":"w","\u1E84":"W","\u1E85":"w","\u1E9E":"SS","\u1EA0":"A","\u1EA1":"a","\u1EA2":"A","\u1EA3":"a","\u1EA4":"A","\u1EA5":"a","\u1EA6":"A","\u1EA7":"a","\u1EA8":"A","\u1EA9":"a","\u1EAA":"A","\u1EAB":"a","\u1EAC":"A","\u1EAD":"a","\u1EAE":"A","\u1EAF":"a","\u1EB0":"A","\u1EB1":"a","\u1EB2":"A","\u1EB3":"a","\u1EB4":"A","\u1EB5":"a","\u1EB6":"A","\u1EB7":"a","\u1EB8":"E","\u1EB9":"e","\u1EBA":"E","\u1EBB":"e","\u1EBC":"E","\u1EBD":"e","\u1EBE":"E","\u1EBF":"e","\u1EC0":"E","\u1EC1":"e","\u1EC2":"E","\u1EC3":"e","\u1EC4":"E","\u1EC5":"e","\u1EC6":"E","\u1EC7":"e","\u1EC8":"I","\u1EC9":"i","\u1ECA":"I","\u1ECB":"i","\u1ECC":"O","\u1ECD":"o","\u1ECE":"O","\u1ECF":"o","\u1ED0":"O","\u1ED1":"o","\u1ED2":"O","\u1ED3":"o","\u1ED4":"O","\u1ED5":"o","\u1ED6":"O","\u1ED7":"o","\u1ED8":"O","\u1ED9":"o","\u1EDA":"O","\u1EDB":"o","\u1EDC":"O","\u1EDD":"o","\u1EDE":"O","\u1EDF":"o","\u1EE0":"O","\u1EE1":"o","\u1EE2":"O","\u1EE3":"o","\u1EE4":"U","\u1EE5":"u","\u1EE6":"U","\u1EE7":"u","\u1EE8":"U","\u1EE9":"u","\u1EEA":"U","\u1EEB":"u","\u1EEC":"U","\u1EED":"u","\u1EEE":"U","\u1EEF":"u","\u1EF0":"U","\u1EF1":"u","\u1EF2":"Y","\u1EF3":"y","\u1EF4":"Y","\u1EF5":"y","\u1EF6":"Y","\u1EF7":"y","\u1EF8":"Y","\u1EF9":"y","\u2013":"-","\u2018":"'","\u2019":"'","\u201C":"\\"","\u201D":"\\"","\u201E":"\\"","\u2020":"+","\u2022":"*","\u2026":"...","\u20A0":"ecu","\u20A2":"cruzeiro","\u20A3":"french franc","\u20A4":"lira","\u20A5":"mill","\u20A6":"naira","\u20A7":"peseta","\u20A8":"rupee","\u20A9":"won","\u20AA":"new shequel","\u20AB":"dong","\u20AC":"euro","\u20AD":"kip","\u20AE":"tugrik","\u20AF":"drachma","\u20B0":"penny","\u20B1":"peso","\u20B2":"guarani","\u20B3":"austral","\u20B4":"hryvnia","\u20B5":"cedi","\u20B8":"kazakhstani tenge","\u20B9":"indian rupee","\u20BA":"turkish lira","\u20BD":"russian ruble","\u20BF":"bitcoin","\u2120":"sm","\u2122":"tm","\u2202":"d","\u2206":"delta","\u2211":"sum","\u221E":"infinity","\u2665":"love","\u5143":"yuan","\u5186":"yen","\uFDFC":"rial","\uFEF5":"laa","\uFEF7":"laa","\uFEF9":"lai","\uFEFB":"la"}`),s=JSON.parse('{"bg":{"\u0419":"Y","\u0426":"Ts","\u0429":"Sht","\u042A":"A","\u042C":"Y","\u0439":"y","\u0446":"ts","\u0449":"sht","\u044A":"a","\u044C":"y"},"de":{"\xC4":"AE","\xE4":"ae","\xD6":"OE","\xF6":"oe","\xDC":"UE","\xFC":"ue","\xDF":"ss","%":"prozent","&":"und","|":"oder","\u2211":"summe","\u221E":"unendlich","\u2665":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","\xA2":"centavos","\xA3":"libras","\xA4":"moneda","\u20A3":"francos","\u2211":"suma","\u221E":"infinito","\u2665":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","\xA2":"centime","\xA3":"livre","\xA4":"devise","\u20A3":"franc","\u2211":"somme","\u221E":"infini","\u2665":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","\xA2":"centavo","\u2211":"soma","\xA3":"libra","\u221E":"infinito","\u2665":"amor"},"uk":{"\u0418":"Y","\u0438":"y","\u0419":"Y","\u0439":"y","\u0426":"Ts","\u0446":"ts","\u0425":"Kh","\u0445":"kh","\u0429":"Shch","\u0449":"shch","\u0413":"H","\u0433":"h"},"vi":{"\u0110":"D","\u0111":"d"},"da":{"\xD8":"OE","\xF8":"oe","\xC5":"AA","\xE5":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"st\xF8rre end"},"nb":{"&":"og","\xC5":"AA","\xC6":"AE","\xD8":"OE","\xE5":"aa","\xE6":"ae","\xF8":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","\xC5":"AA","\xC4":"AE","\xD6":"OE","\xE5":"aa","\xE4":"ae","\xF6":"oe"}}');function t(n,a){if(typeof n!="string")throw new Error("slugify: string argument expected");a=typeof a=="string"?{replacement:a}:a||{};var h=s[a.locale]||{},c=a.replacement===void 0?"-":a.replacement,f=a.trim===void 0?!0:a.trim,o=n.normalize().split("").reduce(function(m,u){var l=h[u]||r[u]||u;return l===c&&(l=" "),m+l.replace(a.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return a.strict&&(o=o.replace(/[^A-Za-z0-9\s]/g,"")),f&&(o=o.trim()),o=o.replace(/\s+/g,c),a.lower&&(o=o.toLowerCase()),o}return t.extend=function(n){Object.assign(r,n)},t})})(d);const g=d.exports,E=()=>{const{hostname:e}=window.location;return e.includes("abstra.run")?null:e.startsWith("localhost")?{}.VITE_CNAME?{}.VITE_CNAME:null:e};function A(e,i){const r=document,s=e.matched.slice().reverse().find(n=>n.meta&&n.meta.title),t=i.matched.slice().reverse().find(n=>n.meta&&n.meta.metaTags);s?r.title=s.meta.title:t&&(r.title=t.meta.title)}function O(e,i,r={}){if(i.startsWith("http")){const s=new URLSearchParams(r),t=new URL(i);t.search=s.toString(),window.location.href=t.toString()}else e.push({path:i,query:r})}export{E as g,O as r,g as s,A as u}; -//# sourceMappingURL=index.776642db.js.map +import{p as y}from"./registerWidgets.cb3a7b8d.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="ac933c35-5017-48ce-8b72-93814e8eb18c",e._sentryDebugIdIdentifier="sentry-dbid-ac933c35-5017-48ce-8b72-93814e8eb18c")}catch{}})();var h={exports:{}};(function(e,i){(function(r,s,t){e.exports=t(),e.exports.default=t()})("slugify",y,function(){var r=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","\xA2":"cent","\xA3":"pound","\xA4":"currency","\xA5":"yen","\xA9":"(c)","\xAA":"a","\xAE":"(r)","\xBA":"o","\xC0":"A","\xC1":"A","\xC2":"A","\xC3":"A","\xC4":"A","\xC5":"A","\xC6":"AE","\xC7":"C","\xC8":"E","\xC9":"E","\xCA":"E","\xCB":"E","\xCC":"I","\xCD":"I","\xCE":"I","\xCF":"I","\xD0":"D","\xD1":"N","\xD2":"O","\xD3":"O","\xD4":"O","\xD5":"O","\xD6":"O","\xD8":"O","\xD9":"U","\xDA":"U","\xDB":"U","\xDC":"U","\xDD":"Y","\xDE":"TH","\xDF":"ss","\xE0":"a","\xE1":"a","\xE2":"a","\xE3":"a","\xE4":"a","\xE5":"a","\xE6":"ae","\xE7":"c","\xE8":"e","\xE9":"e","\xEA":"e","\xEB":"e","\xEC":"i","\xED":"i","\xEE":"i","\xEF":"i","\xF0":"d","\xF1":"n","\xF2":"o","\xF3":"o","\xF4":"o","\xF5":"o","\xF6":"o","\xF8":"o","\xF9":"u","\xFA":"u","\xFB":"u","\xFC":"u","\xFD":"y","\xFE":"th","\xFF":"y","\u0100":"A","\u0101":"a","\u0102":"A","\u0103":"a","\u0104":"A","\u0105":"a","\u0106":"C","\u0107":"c","\u010C":"C","\u010D":"c","\u010E":"D","\u010F":"d","\u0110":"DJ","\u0111":"dj","\u0112":"E","\u0113":"e","\u0116":"E","\u0117":"e","\u0118":"e","\u0119":"e","\u011A":"E","\u011B":"e","\u011E":"G","\u011F":"g","\u0122":"G","\u0123":"g","\u0128":"I","\u0129":"i","\u012A":"i","\u012B":"i","\u012E":"I","\u012F":"i","\u0130":"I","\u0131":"i","\u0136":"k","\u0137":"k","\u013B":"L","\u013C":"l","\u013D":"L","\u013E":"l","\u0141":"L","\u0142":"l","\u0143":"N","\u0144":"n","\u0145":"N","\u0146":"n","\u0147":"N","\u0148":"n","\u014C":"O","\u014D":"o","\u0150":"O","\u0151":"o","\u0152":"OE","\u0153":"oe","\u0154":"R","\u0155":"r","\u0158":"R","\u0159":"r","\u015A":"S","\u015B":"s","\u015E":"S","\u015F":"s","\u0160":"S","\u0161":"s","\u0162":"T","\u0163":"t","\u0164":"T","\u0165":"t","\u0168":"U","\u0169":"u","\u016A":"u","\u016B":"u","\u016E":"U","\u016F":"u","\u0170":"U","\u0171":"u","\u0172":"U","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017A":"z","\u017B":"Z","\u017C":"z","\u017D":"Z","\u017E":"z","\u018F":"E","\u0192":"f","\u01A0":"O","\u01A1":"o","\u01AF":"U","\u01B0":"u","\u01C8":"LJ","\u01C9":"lj","\u01CB":"NJ","\u01CC":"nj","\u0218":"S","\u0219":"s","\u021A":"T","\u021B":"t","\u0259":"e","\u02DA":"o","\u0386":"A","\u0388":"E","\u0389":"H","\u038A":"I","\u038C":"O","\u038E":"Y","\u038F":"W","\u0390":"i","\u0391":"A","\u0392":"B","\u0393":"G","\u0394":"D","\u0395":"E","\u0396":"Z","\u0397":"H","\u0398":"8","\u0399":"I","\u039A":"K","\u039B":"L","\u039C":"M","\u039D":"N","\u039E":"3","\u039F":"O","\u03A0":"P","\u03A1":"R","\u03A3":"S","\u03A4":"T","\u03A5":"Y","\u03A6":"F","\u03A7":"X","\u03A8":"PS","\u03A9":"W","\u03AA":"I","\u03AB":"Y","\u03AC":"a","\u03AD":"e","\u03AE":"h","\u03AF":"i","\u03B0":"y","\u03B1":"a","\u03B2":"b","\u03B3":"g","\u03B4":"d","\u03B5":"e","\u03B6":"z","\u03B7":"h","\u03B8":"8","\u03B9":"i","\u03BA":"k","\u03BB":"l","\u03BC":"m","\u03BD":"n","\u03BE":"3","\u03BF":"o","\u03C0":"p","\u03C1":"r","\u03C2":"s","\u03C3":"s","\u03C4":"t","\u03C5":"y","\u03C6":"f","\u03C7":"x","\u03C8":"ps","\u03C9":"w","\u03CA":"i","\u03CB":"y","\u03CC":"o","\u03CD":"y","\u03CE":"w","\u0401":"Yo","\u0402":"DJ","\u0404":"Ye","\u0406":"I","\u0407":"Yi","\u0408":"J","\u0409":"LJ","\u040A":"NJ","\u040B":"C","\u040F":"DZ","\u0410":"A","\u0411":"B","\u0412":"V","\u0413":"G","\u0414":"D","\u0415":"E","\u0416":"Zh","\u0417":"Z","\u0418":"I","\u0419":"J","\u041A":"K","\u041B":"L","\u041C":"M","\u041D":"N","\u041E":"O","\u041F":"P","\u0420":"R","\u0421":"S","\u0422":"T","\u0423":"U","\u0424":"F","\u0425":"H","\u0426":"C","\u0427":"Ch","\u0428":"Sh","\u0429":"Sh","\u042A":"U","\u042B":"Y","\u042C":"","\u042D":"E","\u042E":"Yu","\u042F":"Ya","\u0430":"a","\u0431":"b","\u0432":"v","\u0433":"g","\u0434":"d","\u0435":"e","\u0436":"zh","\u0437":"z","\u0438":"i","\u0439":"j","\u043A":"k","\u043B":"l","\u043C":"m","\u043D":"n","\u043E":"o","\u043F":"p","\u0440":"r","\u0441":"s","\u0442":"t","\u0443":"u","\u0444":"f","\u0445":"h","\u0446":"c","\u0447":"ch","\u0448":"sh","\u0449":"sh","\u044A":"u","\u044B":"y","\u044C":"","\u044D":"e","\u044E":"yu","\u044F":"ya","\u0451":"yo","\u0452":"dj","\u0454":"ye","\u0456":"i","\u0457":"yi","\u0458":"j","\u0459":"lj","\u045A":"nj","\u045B":"c","\u045D":"u","\u045F":"dz","\u0490":"G","\u0491":"g","\u0492":"GH","\u0493":"gh","\u049A":"KH","\u049B":"kh","\u04A2":"NG","\u04A3":"ng","\u04AE":"UE","\u04AF":"ue","\u04B0":"U","\u04B1":"u","\u04BA":"H","\u04BB":"h","\u04D8":"AE","\u04D9":"ae","\u04E8":"OE","\u04E9":"oe","\u0531":"A","\u0532":"B","\u0533":"G","\u0534":"D","\u0535":"E","\u0536":"Z","\u0537":"E'","\u0538":"Y'","\u0539":"T'","\u053A":"JH","\u053B":"I","\u053C":"L","\u053D":"X","\u053E":"C'","\u053F":"K","\u0540":"H","\u0541":"D'","\u0542":"GH","\u0543":"TW","\u0544":"M","\u0545":"Y","\u0546":"N","\u0547":"SH","\u0549":"CH","\u054A":"P","\u054B":"J","\u054C":"R'","\u054D":"S","\u054E":"V","\u054F":"T","\u0550":"R","\u0551":"C","\u0553":"P'","\u0554":"Q'","\u0555":"O''","\u0556":"F","\u0587":"EV","\u0621":"a","\u0622":"aa","\u0623":"a","\u0624":"u","\u0625":"i","\u0626":"e","\u0627":"a","\u0628":"b","\u0629":"h","\u062A":"t","\u062B":"th","\u062C":"j","\u062D":"h","\u062E":"kh","\u062F":"d","\u0630":"th","\u0631":"r","\u0632":"z","\u0633":"s","\u0634":"sh","\u0635":"s","\u0636":"dh","\u0637":"t","\u0638":"z","\u0639":"a","\u063A":"gh","\u0641":"f","\u0642":"q","\u0643":"k","\u0644":"l","\u0645":"m","\u0646":"n","\u0647":"h","\u0648":"w","\u0649":"a","\u064A":"y","\u064B":"an","\u064C":"on","\u064D":"en","\u064E":"a","\u064F":"u","\u0650":"e","\u0652":"","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u067E":"p","\u0686":"ch","\u0698":"zh","\u06A9":"k","\u06AF":"g","\u06CC":"y","\u06F0":"0","\u06F1":"1","\u06F2":"2","\u06F3":"3","\u06F4":"4","\u06F5":"5","\u06F6":"6","\u06F7":"7","\u06F8":"8","\u06F9":"9","\u0E3F":"baht","\u10D0":"a","\u10D1":"b","\u10D2":"g","\u10D3":"d","\u10D4":"e","\u10D5":"v","\u10D6":"z","\u10D7":"t","\u10D8":"i","\u10D9":"k","\u10DA":"l","\u10DB":"m","\u10DC":"n","\u10DD":"o","\u10DE":"p","\u10DF":"zh","\u10E0":"r","\u10E1":"s","\u10E2":"t","\u10E3":"u","\u10E4":"f","\u10E5":"k","\u10E6":"gh","\u10E7":"q","\u10E8":"sh","\u10E9":"ch","\u10EA":"ts","\u10EB":"dz","\u10EC":"ts","\u10ED":"ch","\u10EE":"kh","\u10EF":"j","\u10F0":"h","\u1E62":"S","\u1E63":"s","\u1E80":"W","\u1E81":"w","\u1E82":"W","\u1E83":"w","\u1E84":"W","\u1E85":"w","\u1E9E":"SS","\u1EA0":"A","\u1EA1":"a","\u1EA2":"A","\u1EA3":"a","\u1EA4":"A","\u1EA5":"a","\u1EA6":"A","\u1EA7":"a","\u1EA8":"A","\u1EA9":"a","\u1EAA":"A","\u1EAB":"a","\u1EAC":"A","\u1EAD":"a","\u1EAE":"A","\u1EAF":"a","\u1EB0":"A","\u1EB1":"a","\u1EB2":"A","\u1EB3":"a","\u1EB4":"A","\u1EB5":"a","\u1EB6":"A","\u1EB7":"a","\u1EB8":"E","\u1EB9":"e","\u1EBA":"E","\u1EBB":"e","\u1EBC":"E","\u1EBD":"e","\u1EBE":"E","\u1EBF":"e","\u1EC0":"E","\u1EC1":"e","\u1EC2":"E","\u1EC3":"e","\u1EC4":"E","\u1EC5":"e","\u1EC6":"E","\u1EC7":"e","\u1EC8":"I","\u1EC9":"i","\u1ECA":"I","\u1ECB":"i","\u1ECC":"O","\u1ECD":"o","\u1ECE":"O","\u1ECF":"o","\u1ED0":"O","\u1ED1":"o","\u1ED2":"O","\u1ED3":"o","\u1ED4":"O","\u1ED5":"o","\u1ED6":"O","\u1ED7":"o","\u1ED8":"O","\u1ED9":"o","\u1EDA":"O","\u1EDB":"o","\u1EDC":"O","\u1EDD":"o","\u1EDE":"O","\u1EDF":"o","\u1EE0":"O","\u1EE1":"o","\u1EE2":"O","\u1EE3":"o","\u1EE4":"U","\u1EE5":"u","\u1EE6":"U","\u1EE7":"u","\u1EE8":"U","\u1EE9":"u","\u1EEA":"U","\u1EEB":"u","\u1EEC":"U","\u1EED":"u","\u1EEE":"U","\u1EEF":"u","\u1EF0":"U","\u1EF1":"u","\u1EF2":"Y","\u1EF3":"y","\u1EF4":"Y","\u1EF5":"y","\u1EF6":"Y","\u1EF7":"y","\u1EF8":"Y","\u1EF9":"y","\u2013":"-","\u2018":"'","\u2019":"'","\u201C":"\\"","\u201D":"\\"","\u201E":"\\"","\u2020":"+","\u2022":"*","\u2026":"...","\u20A0":"ecu","\u20A2":"cruzeiro","\u20A3":"french franc","\u20A4":"lira","\u20A5":"mill","\u20A6":"naira","\u20A7":"peseta","\u20A8":"rupee","\u20A9":"won","\u20AA":"new shequel","\u20AB":"dong","\u20AC":"euro","\u20AD":"kip","\u20AE":"tugrik","\u20AF":"drachma","\u20B0":"penny","\u20B1":"peso","\u20B2":"guarani","\u20B3":"austral","\u20B4":"hryvnia","\u20B5":"cedi","\u20B8":"kazakhstani tenge","\u20B9":"indian rupee","\u20BA":"turkish lira","\u20BD":"russian ruble","\u20BF":"bitcoin","\u2120":"sm","\u2122":"tm","\u2202":"d","\u2206":"delta","\u2211":"sum","\u221E":"infinity","\u2665":"love","\u5143":"yuan","\u5186":"yen","\uFDFC":"rial","\uFEF5":"laa","\uFEF7":"laa","\uFEF9":"lai","\uFEFB":"la"}`),s=JSON.parse('{"bg":{"\u0419":"Y","\u0426":"Ts","\u0429":"Sht","\u042A":"A","\u042C":"Y","\u0439":"y","\u0446":"ts","\u0449":"sht","\u044A":"a","\u044C":"y"},"de":{"\xC4":"AE","\xE4":"ae","\xD6":"OE","\xF6":"oe","\xDC":"UE","\xFC":"ue","\xDF":"ss","%":"prozent","&":"und","|":"oder","\u2211":"summe","\u221E":"unendlich","\u2665":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","\xA2":"centavos","\xA3":"libras","\xA4":"moneda","\u20A3":"francos","\u2211":"suma","\u221E":"infinito","\u2665":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","\xA2":"centime","\xA3":"livre","\xA4":"devise","\u20A3":"franc","\u2211":"somme","\u221E":"infini","\u2665":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","\xA2":"centavo","\u2211":"soma","\xA3":"libra","\u221E":"infinito","\u2665":"amor"},"uk":{"\u0418":"Y","\u0438":"y","\u0419":"Y","\u0439":"y","\u0426":"Ts","\u0446":"ts","\u0425":"Kh","\u0445":"kh","\u0429":"Shch","\u0449":"shch","\u0413":"H","\u0433":"h"},"vi":{"\u0110":"D","\u0111":"d"},"da":{"\xD8":"OE","\xF8":"oe","\xC5":"AA","\xE5":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"st\xF8rre end"},"nb":{"&":"og","\xC5":"AA","\xC6":"AE","\xD8":"OE","\xE5":"aa","\xE6":"ae","\xF8":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","\xC5":"AA","\xC4":"AE","\xD6":"OE","\xE5":"aa","\xE4":"ae","\xF6":"oe"}}');function t(n,a){if(typeof n!="string")throw new Error("slugify: string argument expected");a=typeof a=="string"?{replacement:a}:a||{};var d=s[a.locale]||{},l=a.replacement===void 0?"-":a.replacement,f=a.trim===void 0?!0:a.trim,o=n.normalize().split("").reduce(function(m,u){var c=d[u]||r[u]||u;return c===l&&(c=" "),m+c.replace(a.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return a.strict&&(o=o.replace(/[^A-Za-z0-9\s]/g,"")),f&&(o=o.trim()),o=o.replace(/\s+/g,l),a.lower&&(o=o.toLowerCase()),o}return t.extend=function(n){Object.assign(r,n)},t})})(h);const g=h.exports,E=()=>{const{hostname:e}=window.location;return e.includes("abstra.run")?null:e.startsWith("localhost")?{}.VITE_CNAME?{}.VITE_CNAME:null:e};function A(e,i){const r=document,s=e.matched.slice().reverse().find(n=>n.meta&&n.meta.title),t=i.matched.slice().reverse().find(n=>n.meta&&n.meta.metaTags);s?r.title=s.meta.title:t&&(r.title=t.meta.title)}function O(e,i,r={}){if(i.startsWith("http")){const s=new URLSearchParams(r),t=new URL(i);t.search=s.toString(),window.location.href=t.toString()}else e.push({path:i,query:r})}export{E as g,O as r,g as s,A as u}; +//# sourceMappingURL=index.7d1457d9.js.map diff --git a/abstra_statics/dist/assets/index.24c9f37d.js b/abstra_statics/dist/assets/index.7fea4022.js similarity index 99% rename from abstra_statics/dist/assets/index.24c9f37d.js rename to abstra_statics/dist/assets/index.7fea4022.js index 97a57fdd65..81fb59fe5b 100644 --- a/abstra_statics/dist/assets/index.24c9f37d.js +++ b/abstra_statics/dist/assets/index.7fea4022.js @@ -1,2 +1,2 @@ -import{p as C}from"./registerWidgets.3fe0df5a.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},_=new Error().stack;_&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[_]="9f2e5090-ee16-4da4-b125-5675f51b139f",r._sentryDebugIdIdentifier="sentry-dbid-9f2e5090-ee16-4da4-b125-5675f51b139f")}catch{}})();var Et={},$e={};Object.defineProperty($e,"__esModule",{value:!0});var Ae={},Te={};Object.defineProperty(Te,"__esModule",{value:!0});Te.airtable=void 0;Te.airtable={label:"Airtable",settings:{baseId:{label:"Base ID",type:"string",description:"The Airtable base ID to connect to",required:!0,secret:!1},apiKey:{label:"API Key",type:"string",description:"The api key to access the database",required:!0,secret:!0}},methods:{list_records:{label:"List Records",params:{table_id:{label:"Table ID",type:"string",required:!0,description:"The ID of the table to get"},fields:{label:"Fields",type:"array",required:!1,description:"The fields to return",items:{type:"string"}},filter_by_formula:{label:"Filter By Formula",type:"string",required:!1,description:"The formula to filter by"},max_records:{label:"Max Records",type:"number",description:"The maximum number of records to return",required:!1},view:{label:"View",type:"string",description:"The view to use",required:!1},sort:{label:"Sort",type:"array",description:"The sort to use",required:!1,items:{type:"object",values:{field:{type:"string"},direction:{type:"options",values:["asc","desc"]}}}},include_record_id:{label:"Include Record ID",type:"boolean",description:"Whether to include the record ID",required:!1}},returns:{records:{label:"Records",type:"array",description:"The records returned",items:{type:"any"}}}},update_record:{label:"Update Record",params:{table_id:{label:"Table ID",type:"string",required:!0,description:"The ID of the table to get"},fields:{label:"Fields",type:"any",required:!0,description:"The fields to update"},record_id:{label:"Record ID",type:"string",required:!0,description:"The ID of the record to update"},include_record_id:{label:"Include Record ID",type:"boolean",description:"Whether to include the record ID",required:!1}},returns:{record:{label:"Record",type:"any",description:"The record returned"}}}}};var Ze={};Object.defineProperty(Ze,"__esModule",{value:!0});Ze.postgres=void 0;Ze.postgres={label:"Postgres",settings:{connectionString:{label:"Connection String",type:"string",description:"The connection string for the Postgres database",required:!0,secret:!0}},methods:{query:{label:"Query",params:{query:{label:"SQL Query",type:"string",required:!0,description:"The SQL query to execute"},params:{label:"Query Parameters",type:"array",required:!1,description:"The parameters to pass to the query",items:{type:"any"}}},returns:{result:{label:"Result Rows",type:"array",items:{type:"any"},description:"The query result"}}}}};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.connectorNames=r.schema=void 0;const _=Te,d=Ze;r.schema={airtable:_.airtable,postgres:d.postgres},r.connectorNames=Object.keys(r.schema)})(Ae);var re={},ze={},Ee={},D={},Ce={},pe={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.getParsedType=r.ZodParsedType=r.objectUtil=r.util=void 0;var _;(function(i){i.assertEqual=y=>y;function u(y){}i.assertIs=u;function c(y){throw new Error}i.assertNever=c,i.arrayToEnum=y=>{const f={};for(const p of y)f[p]=p;return f},i.getValidEnumValues=y=>{const f=i.objectKeys(y).filter(R=>typeof y[y[R]]!="number"),p={};for(const R of f)p[R]=y[R];return i.objectValues(p)},i.objectValues=y=>i.objectKeys(y).map(function(f){return y[f]}),i.objectKeys=typeof Object.keys=="function"?y=>Object.keys(y):y=>{const f=[];for(const p in y)Object.prototype.hasOwnProperty.call(y,p)&&f.push(p);return f},i.find=(y,f)=>{for(const p of y)if(f(p))return p},i.isInteger=typeof Number.isInteger=="function"?y=>Number.isInteger(y):y=>typeof y=="number"&&isFinite(y)&&Math.floor(y)===y;function m(y,f=" | "){return y.map(p=>typeof p=="string"?`'${p}'`:p).join(f)}i.joinValues=m,i.jsonStringifyReplacer=(y,f)=>typeof f=="bigint"?f.toString():f})(_=r.util||(r.util={})),function(i){i.mergeShapes=(u,c)=>({...u,...c})}(r.objectUtil||(r.objectUtil={})),r.ZodParsedType=_.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]);const d=i=>{switch(typeof i){case"undefined":return r.ZodParsedType.undefined;case"string":return r.ZodParsedType.string;case"number":return isNaN(i)?r.ZodParsedType.nan:r.ZodParsedType.number;case"boolean":return r.ZodParsedType.boolean;case"function":return r.ZodParsedType.function;case"bigint":return r.ZodParsedType.bigint;case"symbol":return r.ZodParsedType.symbol;case"object":return Array.isArray(i)?r.ZodParsedType.array:i===null?r.ZodParsedType.null:i.then&&typeof i.then=="function"&&i.catch&&typeof i.catch=="function"?r.ZodParsedType.promise:typeof Map<"u"&&i instanceof Map?r.ZodParsedType.map:typeof Set<"u"&&i instanceof Set?r.ZodParsedType.set:typeof Date<"u"&&i instanceof Date?r.ZodParsedType.date:r.ZodParsedType.object;default:return r.ZodParsedType.unknown}};r.getParsedType=d})(pe);var V={};Object.defineProperty(V,"__esModule",{value:!0});V.ZodError=V.quotelessJson=V.ZodIssueCode=void 0;const Be=pe;V.ZodIssueCode=Be.util.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);const xt=r=>JSON.stringify(r,null,2).replace(/"([^"]+)":/g,"$1:");V.quotelessJson=xt;class xe extends Error{constructor(_){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};const d=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,d):this.__proto__=d,this.name="ZodError",this.issues=_}get errors(){return this.issues}format(_){const d=_||function(c){return c.message},i={_errors:[]},u=c=>{for(const m of c.issues)if(m.code==="invalid_union")m.unionErrors.map(u);else if(m.code==="invalid_return_type")u(m.returnTypeError);else if(m.code==="invalid_arguments")u(m.argumentsError);else if(m.path.length===0)i._errors.push(d(m));else{let y=i,f=0;for(;fd.message){const d={},i=[];for(const u of this.issues)u.path.length>0?(d[u.path[0]]=d[u.path[0]]||[],d[u.path[0]].push(_(u))):i.push(_(u));return{formErrors:i,fieldErrors:d}}get formErrors(){return this.flatten()}}V.ZodError=xe;xe.create=r=>new xe(r);Object.defineProperty(Ce,"__esModule",{value:!0});const Y=pe,w=V,St=(r,_)=>{let d;switch(r.code){case w.ZodIssueCode.invalid_type:r.received===Y.ZodParsedType.undefined?d="Required":d=`Expected ${r.expected}, received ${r.received}`;break;case w.ZodIssueCode.invalid_literal:d=`Invalid literal value, expected ${JSON.stringify(r.expected,Y.util.jsonStringifyReplacer)}`;break;case w.ZodIssueCode.unrecognized_keys:d=`Unrecognized key(s) in object: ${Y.util.joinValues(r.keys,", ")}`;break;case w.ZodIssueCode.invalid_union:d="Invalid input";break;case w.ZodIssueCode.invalid_union_discriminator:d=`Invalid discriminator value. Expected ${Y.util.joinValues(r.options)}`;break;case w.ZodIssueCode.invalid_enum_value:d=`Invalid enum value. Expected ${Y.util.joinValues(r.options)}, received '${r.received}'`;break;case w.ZodIssueCode.invalid_arguments:d="Invalid function arguments";break;case w.ZodIssueCode.invalid_return_type:d="Invalid function return type";break;case w.ZodIssueCode.invalid_date:d="Invalid date";break;case w.ZodIssueCode.invalid_string:typeof r.validation=="object"?"includes"in r.validation?(d=`Invalid input: must include "${r.validation.includes}"`,typeof r.validation.position=="number"&&(d=`${d} at one or more positions greater than or equal to ${r.validation.position}`)):"startsWith"in r.validation?d=`Invalid input: must start with "${r.validation.startsWith}"`:"endsWith"in r.validation?d=`Invalid input: must end with "${r.validation.endsWith}"`:Y.util.assertNever(r.validation):r.validation!=="regex"?d=`Invalid ${r.validation}`:d="Invalid";break;case w.ZodIssueCode.too_small:r.type==="array"?d=`Array must contain ${r.exact?"exactly":r.inclusive?"at least":"more than"} ${r.minimum} element(s)`:r.type==="string"?d=`String must contain ${r.exact?"exactly":r.inclusive?"at least":"over"} ${r.minimum} character(s)`:r.type==="number"?d=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="date"?d=`Date must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(r.minimum))}`:d="Invalid input";break;case w.ZodIssueCode.too_big:r.type==="array"?d=`Array must contain ${r.exact?"exactly":r.inclusive?"at most":"less than"} ${r.maximum} element(s)`:r.type==="string"?d=`String must contain ${r.exact?"exactly":r.inclusive?"at most":"under"} ${r.maximum} character(s)`:r.type==="number"?d=`Number must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="bigint"?d=`BigInt must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="date"?d=`Date must be ${r.exact?"exactly":r.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(r.maximum))}`:d="Invalid input";break;case w.ZodIssueCode.custom:d="Invalid input";break;case w.ZodIssueCode.invalid_intersection_types:d="Intersection results could not be merged";break;case w.ZodIssueCode.not_multiple_of:d=`Number must be a multiple of ${r.multipleOf}`;break;case w.ZodIssueCode.not_finite:d="Number must be finite";break;default:d=_.defaultError,Y.util.assertNever(r)}return{message:d}};Ce.default=St;var At=C&&C.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(D,"__esModule",{value:!0});D.getErrorMap=D.setErrorMap=D.defaultErrorMap=void 0;const qe=At(Ce);D.defaultErrorMap=qe.default;let Ke=qe.default;function jt(r){Ke=r}D.setErrorMap=jt;function Dt(){return Ke}D.getErrorMap=Dt;var je={};(function(r){var _=C&&C.__importDefault||function(T){return T&&T.__esModule?T:{default:T}};Object.defineProperty(r,"__esModule",{value:!0}),r.isAsync=r.isValid=r.isDirty=r.isAborted=r.OK=r.DIRTY=r.INVALID=r.ParseStatus=r.addIssueToContext=r.EMPTY_PATH=r.makeIssue=void 0;const d=D,i=_(Ce),u=T=>{const{data:N,path:x,errorMaps:O,issueData:k}=T,L=[...x,...k.path||[]],$={...k,path:L};let P="";const Pe=O.filter(E=>!!E).slice().reverse();for(const E of Pe)P=E($,{data:N,defaultError:P}).message;return{...k,path:L,message:k.message||P}};r.makeIssue=u,r.EMPTY_PATH=[];function c(T,N){const x=(0,r.makeIssue)({issueData:N,data:T.data,path:T.path,errorMaps:[T.common.contextualErrorMap,T.schemaErrorMap,(0,d.getErrorMap)(),i.default].filter(O=>!!O)});T.common.issues.push(x)}r.addIssueToContext=c;class m{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(N,x){const O=[];for(const k of x){if(k.status==="aborted")return r.INVALID;k.status==="dirty"&&N.dirty(),O.push(k.value)}return{status:N.value,value:O}}static async mergeObjectAsync(N,x){const O=[];for(const k of x)O.push({key:await k.key,value:await k.value});return m.mergeObjectSync(N,O)}static mergeObjectSync(N,x){const O={};for(const k of x){const{key:L,value:$}=k;if(L.status==="aborted"||$.status==="aborted")return r.INVALID;L.status==="dirty"&&N.dirty(),$.status==="dirty"&&N.dirty(),(typeof $.value<"u"||k.alwaysSet)&&(O[L.value]=$.value)}return{status:N.value,value:O}}}r.ParseStatus=m,r.INVALID=Object.freeze({status:"aborted"});const y=T=>({status:"dirty",value:T});r.DIRTY=y;const f=T=>({status:"valid",value:T});r.OK=f;const p=T=>T.status==="aborted";r.isAborted=p;const R=T=>T.status==="dirty";r.isDirty=R;const ke=T=>T.status==="valid";r.isValid=ke;const we=T=>typeof Promise<"u"&&T instanceof Promise;r.isAsync=we})(je);var We={};Object.defineProperty(We,"__esModule",{value:!0});var Je={},Ye={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.errorUtil=void 0,function(_){_.errToObj=d=>typeof d=="string"?{message:d}:d||{},_.toString=d=>typeof d=="string"?d:d==null?void 0:d.message}(r.errorUtil||(r.errorUtil={}))})(Ye);(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.discriminatedUnion=r.date=r.boolean=r.bigint=r.array=r.any=r.coerce=r.ZodFirstPartyTypeKind=r.late=r.ZodSchema=r.Schema=r.custom=r.ZodPipeline=r.ZodBranded=r.BRAND=r.ZodNaN=r.ZodCatch=r.ZodDefault=r.ZodNullable=r.ZodOptional=r.ZodTransformer=r.ZodEffects=r.ZodPromise=r.ZodNativeEnum=r.ZodEnum=r.ZodLiteral=r.ZodLazy=r.ZodFunction=r.ZodSet=r.ZodMap=r.ZodRecord=r.ZodTuple=r.ZodIntersection=r.ZodDiscriminatedUnion=r.ZodUnion=r.ZodObject=r.ZodArray=r.ZodVoid=r.ZodNever=r.ZodUnknown=r.ZodAny=r.ZodNull=r.ZodUndefined=r.ZodSymbol=r.ZodDate=r.ZodBoolean=r.ZodBigInt=r.ZodNumber=r.ZodString=r.ZodType=void 0,r.NEVER=r.void=r.unknown=r.union=r.undefined=r.tuple=r.transformer=r.symbol=r.string=r.strictObject=r.set=r.record=r.promise=r.preprocess=r.pipeline=r.ostring=r.optional=r.onumber=r.oboolean=r.object=r.number=r.nullable=r.null=r.never=r.nativeEnum=r.nan=r.map=r.literal=r.lazy=r.intersection=r.instanceof=r.function=r.enum=r.effect=void 0;const _=D,d=Ye,i=je,u=pe,c=V;class m{constructor(e,t,s,o){this._cachedPath=[],this.parent=e,this.data=t,this._path=s,this._key=o}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const y=(n,e)=>{if((0,i.isValid)(e))return{success:!0,data:e.value};if(!n.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new c.ZodError(n.common.issues);return this._error=t,this._error}}};function f(n){if(!n)return{};const{errorMap:e,invalid_type_error:t,required_error:s,description:o}=n;if(e&&(t||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:o}:{errorMap:(h,l)=>h.code!=="invalid_type"?{message:l.defaultError}:typeof l.data>"u"?{message:s!=null?s:l.defaultError}:{message:t!=null?t:l.defaultError},description:o}}class p{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return(0,u.getParsedType)(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:(0,u.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new i.ParseStatus,ctx:{common:e.parent.common,data:e.data,parsedType:(0,u.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if((0,i.isAsync)(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const s=this.safeParse(e,t);if(s.success)return s.data;throw s.error}safeParse(e,t){var s;const o={common:{issues:[],async:(s=t==null?void 0:t.async)!==null&&s!==void 0?s:!1,contextualErrorMap:t==null?void 0:t.errorMap},path:(t==null?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,u.getParsedType)(e)},a=this._parseSync({data:e,path:o.path,parent:o});return y(o,a)}async parseAsync(e,t){const s=await this.safeParseAsync(e,t);if(s.success)return s.data;throw s.error}async safeParseAsync(e,t){const s={common:{issues:[],contextualErrorMap:t==null?void 0:t.errorMap,async:!0},path:(t==null?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,u.getParsedType)(e)},o=this._parse({data:e,path:s.path,parent:s}),a=await((0,i.isAsync)(o)?o:Promise.resolve(o));return y(s,a)}refine(e,t){const s=o=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(o):t;return this._refinement((o,a)=>{const h=e(o),l=()=>a.addIssue({code:c.ZodIssueCode.custom,...s(o)});return typeof Promise<"u"&&h instanceof Promise?h.then(v=>v?!0:(l(),!1)):h?!0:(l(),!1)})}refinement(e,t){return this._refinement((s,o)=>e(s)?!0:(o.addIssue(typeof t=="function"?t(s,o):t),!1))}_refinement(e){return new A({schema:this,typeName:I.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return M.create(this,this._def)}nullable(){return J.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return S.create(this,this._def)}promise(){return F.create(this,this._def)}or(e){return ie.create([this,e],this._def)}and(e){return oe.create(this,e,this._def)}transform(e){return new A({...f(this._def),schema:this,typeName:I.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t=typeof e=="function"?e:()=>e;return new fe({...f(this._def),innerType:this,defaultValue:t,typeName:I.ZodDefault})}brand(){return new Ve({typeName:I.ZodBranded,type:this,...f(this._def)})}catch(e){const t=typeof e=="function"?e:()=>e;return new Ie({...f(this._def),innerType:this,catchValue:t,typeName:I.ZodCatch})}describe(e){const t=this.constructor;return new t({...this._def,description:e})}pipe(e){return he.create(this,e)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}r.ZodType=p,r.Schema=p,r.ZodSchema=p;const R=/^c[^\s-]{8,}$/i,ke=/^[a-z][a-z0-9]*$/,we=/[0-9A-HJKMNP-TV-Z]{26}/,T=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,N=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\])|(\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\.[A-Za-z]{2,})+))$/,x=/^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u,O=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,k=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,L=n=>n.precision?n.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${n.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${n.precision}}Z$`):n.precision===0?n.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):n.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function $(n,e){return!!((e==="v4"||!e)&&O.test(n)||(e==="v6"||!e)&&k.test(n))}class P extends p{constructor(){super(...arguments),this._regex=(e,t,s)=>this.refinement(o=>e.test(o),{validation:t,code:c.ZodIssueCode.invalid_string,...d.errorUtil.errToObj(s)}),this.nonempty=e=>this.min(1,d.errorUtil.errToObj(e)),this.trim=()=>new P({...this._def,checks:[...this._def.checks,{kind:"trim"}]}),this.toLowerCase=()=>new P({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]}),this.toUpperCase=()=>new P({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==u.ZodParsedType.string){const a=this._getOrReturnCtx(e);return(0,i.addIssueToContext)(a,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.string,received:a.parsedType}),i.INVALID}const s=new i.ParseStatus;let o;for(const a of this._def.checks)if(a.kind==="min")e.data.lengtha.value&&(o=this._getOrReturnCtx(e,o),(0,i.addIssueToContext)(o,{code:c.ZodIssueCode.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),s.dirty());else if(a.kind==="length"){const h=e.data.length>a.value,l=e.data.length"u"?null:e==null?void 0:e.precision,offset:(t=e==null?void 0:e.offset)!==null&&t!==void 0?t:!1,...d.errorUtil.errToObj(e==null?void 0:e.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...d.errorUtil.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t==null?void 0:t.position,...d.errorUtil.errToObj(t==null?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...d.errorUtil.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...d.errorUtil.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...d.errorUtil.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...d.errorUtil.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...d.errorUtil.errToObj(t)})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get minLength(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value{var e;return new P({checks:[],typeName:I.ZodString,coerce:(e=n==null?void 0:n.coerce)!==null&&e!==void 0?e:!1,...f(n)})};function Pe(n,e){const t=(n.toString().split(".")[1]||"").length,s=(e.toString().split(".")[1]||"").length,o=t>s?t:s,a=parseInt(n.toFixed(o).replace(".","")),h=parseInt(e.toFixed(o).replace(".",""));return a%h/Math.pow(10,o)}class E extends p{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==u.ZodParsedType.number){const a=this._getOrReturnCtx(e);return(0,i.addIssueToContext)(a,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.number,received:a.parsedType}),i.INVALID}let s;const o=new i.ParseStatus;for(const a of this._def.checks)a.kind==="int"?u.util.isInteger(e.data)||(s=this._getOrReturnCtx(e,s),(0,i.addIssueToContext)(s,{code:c.ZodIssueCode.invalid_type,expected:"integer",received:"float",message:a.message}),o.dirty()):a.kind==="min"?(a.inclusive?e.dataa.value:e.data>=a.value)&&(s=this._getOrReturnCtx(e,s),(0,i.addIssueToContext)(s,{code:c.ZodIssueCode.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),o.dirty()):a.kind==="multipleOf"?Pe(e.data,a.value)!==0&&(s=this._getOrReturnCtx(e,s),(0,i.addIssueToContext)(s,{code:c.ZodIssueCode.not_multiple_of,multipleOf:a.value,message:a.message}),o.dirty()):a.kind==="finite"?Number.isFinite(e.data)||(s=this._getOrReturnCtx(e,s),(0,i.addIssueToContext)(s,{code:c.ZodIssueCode.not_finite,message:a.message}),o.dirty()):u.util.assertNever(a);return{status:o.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,d.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,d.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,d.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,d.errorUtil.toString(t))}setLimit(e,t,s,o){return new E({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:s,message:d.errorUtil.toString(o)}]})}_addCheck(e){return new E({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:d.errorUtil.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:d.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:d.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:d.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:d.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:d.errorUtil.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:d.errorUtil.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:d.errorUtil.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:d.errorUtil.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.valuee.kind==="int"||e.kind==="multipleOf"&&u.util.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(t===null||s.value>t)&&(t=s.value):s.kind==="max"&&(e===null||s.valuenew E({checks:[],typeName:I.ZodNumber,coerce:(n==null?void 0:n.coerce)||!1,...f(n)});class z extends p{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==u.ZodParsedType.bigint){const a=this._getOrReturnCtx(e);return(0,i.addIssueToContext)(a,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.bigint,received:a.parsedType}),i.INVALID}let s;const o=new i.ParseStatus;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?e.dataa.value:e.data>=a.value)&&(s=this._getOrReturnCtx(e,s),(0,i.addIssueToContext)(s,{code:c.ZodIssueCode.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),o.dirty()):a.kind==="multipleOf"?e.data%a.value!==BigInt(0)&&(s=this._getOrReturnCtx(e,s),(0,i.addIssueToContext)(s,{code:c.ZodIssueCode.not_multiple_of,multipleOf:a.value,message:a.message}),o.dirty()):u.util.assertNever(a);return{status:o.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,d.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,d.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,d.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,d.errorUtil.toString(t))}setLimit(e,t,s,o){return new z({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:s,message:d.errorUtil.toString(o)}]})}_addCheck(e){return new z({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:d.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:d.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:d.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:d.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:d.errorUtil.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value{var e;return new z({checks:[],typeName:I.ZodBigInt,coerce:(e=n==null?void 0:n.coerce)!==null&&e!==void 0?e:!1,...f(n)})};class se extends p{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==u.ZodParsedType.boolean){const s=this._getOrReturnCtx(e);return(0,i.addIssueToContext)(s,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.boolean,received:s.parsedType}),i.INVALID}return(0,i.OK)(e.data)}}r.ZodBoolean=se,se.create=n=>new se({typeName:I.ZodBoolean,coerce:(n==null?void 0:n.coerce)||!1,...f(n)});class q extends p{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==u.ZodParsedType.date){const a=this._getOrReturnCtx(e);return(0,i.addIssueToContext)(a,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.date,received:a.parsedType}),i.INVALID}if(isNaN(e.data.getTime())){const a=this._getOrReturnCtx(e);return(0,i.addIssueToContext)(a,{code:c.ZodIssueCode.invalid_date}),i.INVALID}const s=new i.ParseStatus;let o;for(const a of this._def.checks)a.kind==="min"?e.data.getTime()a.value&&(o=this._getOrReturnCtx(e,o),(0,i.addIssueToContext)(o,{code:c.ZodIssueCode.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),s.dirty()):u.util.assertNever(a);return{status:s.value,value:new Date(e.data.getTime())}}_addCheck(e){return new q({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:d.errorUtil.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:d.errorUtil.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.valuenew q({checks:[],coerce:(n==null?void 0:n.coerce)||!1,typeName:I.ZodDate,...f(n)});class me extends p{_parse(e){if(this._getType(e)!==u.ZodParsedType.symbol){const s=this._getOrReturnCtx(e);return(0,i.addIssueToContext)(s,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.symbol,received:s.parsedType}),i.INVALID}return(0,i.OK)(e.data)}}r.ZodSymbol=me,me.create=n=>new me({typeName:I.ZodSymbol,...f(n)});class ne extends p{_parse(e){if(this._getType(e)!==u.ZodParsedType.undefined){const s=this._getOrReturnCtx(e);return(0,i.addIssueToContext)(s,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.undefined,received:s.parsedType}),i.INVALID}return(0,i.OK)(e.data)}}r.ZodUndefined=ne,ne.create=n=>new ne({typeName:I.ZodUndefined,...f(n)});class ae extends p{_parse(e){if(this._getType(e)!==u.ZodParsedType.null){const s=this._getOrReturnCtx(e);return(0,i.addIssueToContext)(s,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.null,received:s.parsedType}),i.INVALID}return(0,i.OK)(e.data)}}r.ZodNull=ae,ae.create=n=>new ae({typeName:I.ZodNull,...f(n)});class G extends p{constructor(){super(...arguments),this._any=!0}_parse(e){return(0,i.OK)(e.data)}}r.ZodAny=G,G.create=n=>new G({typeName:I.ZodAny,...f(n)});class K extends p{constructor(){super(...arguments),this._unknown=!0}_parse(e){return(0,i.OK)(e.data)}}r.ZodUnknown=K,K.create=n=>new K({typeName:I.ZodUnknown,...f(n)});class U extends p{_parse(e){const t=this._getOrReturnCtx(e);return(0,i.addIssueToContext)(t,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.never,received:t.parsedType}),i.INVALID}}r.ZodNever=U,U.create=n=>new U({typeName:I.ZodNever,...f(n)});class ye extends p{_parse(e){if(this._getType(e)!==u.ZodParsedType.undefined){const s=this._getOrReturnCtx(e);return(0,i.addIssueToContext)(s,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.void,received:s.parsedType}),i.INVALID}return(0,i.OK)(e.data)}}r.ZodVoid=ye,ye.create=n=>new ye({typeName:I.ZodVoid,...f(n)});class S extends p{_parse(e){const{ctx:t,status:s}=this._processInputParams(e),o=this._def;if(t.parsedType!==u.ZodParsedType.array)return(0,i.addIssueToContext)(t,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.array,received:t.parsedType}),i.INVALID;if(o.exactLength!==null){const h=t.data.length>o.exactLength.value,l=t.data.lengtho.maxLength.value&&((0,i.addIssueToContext)(t,{code:c.ZodIssueCode.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),s.dirty()),t.common.async)return Promise.all([...t.data].map((h,l)=>o.type._parseAsync(new m(t,h,t.path,l)))).then(h=>i.ParseStatus.mergeArray(s,h));const a=[...t.data].map((h,l)=>o.type._parseSync(new m(t,h,t.path,l)));return i.ParseStatus.mergeArray(s,a)}get element(){return this._def.type}min(e,t){return new S({...this._def,minLength:{value:e,message:d.errorUtil.toString(t)}})}max(e,t){return new S({...this._def,maxLength:{value:e,message:d.errorUtil.toString(t)}})}length(e,t){return new S({...this._def,exactLength:{value:e,message:d.errorUtil.toString(t)}})}nonempty(e){return this.min(1,e)}}r.ZodArray=S,S.create=(n,e)=>new S({type:n,minLength:null,maxLength:null,exactLength:null,typeName:I.ZodArray,...f(e)});function H(n){if(n instanceof Z){const e={};for(const t in n.shape){const s=n.shape[t];e[t]=M.create(H(s))}return new Z({...n._def,shape:()=>e})}else return n instanceof S?new S({...n._def,type:H(n.element)}):n instanceof M?M.create(H(n.unwrap())):n instanceof J?J.create(H(n.unwrap())):n instanceof j?j.create(n.items.map(e=>H(e))):n}class Z extends p{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),t=u.util.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==u.ZodParsedType.object){const g=this._getOrReturnCtx(e);return(0,i.addIssueToContext)(g,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.object,received:g.parsedType}),i.INVALID}const{status:s,ctx:o}=this._processInputParams(e),{shape:a,keys:h}=this._getCached(),l=[];if(!(this._def.catchall instanceof U&&this._def.unknownKeys==="strip"))for(const g in o.data)h.includes(g)||l.push(g);const v=[];for(const g of h){const b=a[g],ee=o.data[g];v.push({key:{status:"valid",value:g},value:b._parse(new m(o,ee,o.path,g)),alwaysSet:g in o.data})}if(this._def.catchall instanceof U){const g=this._def.unknownKeys;if(g==="passthrough")for(const b of l)v.push({key:{status:"valid",value:b},value:{status:"valid",value:o.data[b]}});else if(g==="strict")l.length>0&&((0,i.addIssueToContext)(o,{code:c.ZodIssueCode.unrecognized_keys,keys:l}),s.dirty());else if(g!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const g=this._def.catchall;for(const b of l){const ee=o.data[b];v.push({key:{status:"valid",value:b},value:g._parse(new m(o,ee,o.path,b)),alwaysSet:b in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const g=[];for(const b of v){const ee=await b.key;g.push({key:ee,value:await b.value,alwaysSet:b.alwaysSet})}return g}).then(g=>i.ParseStatus.mergeObjectSync(s,g)):i.ParseStatus.mergeObjectSync(s,v)}get shape(){return this._def.shape()}strict(e){return d.errorUtil.errToObj,new Z({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,s)=>{var o,a,h,l;const v=(h=(a=(o=this._def).errorMap)===null||a===void 0?void 0:a.call(o,t,s).message)!==null&&h!==void 0?h:s.defaultError;return t.code==="unrecognized_keys"?{message:(l=d.errorUtil.errToObj(e).message)!==null&&l!==void 0?l:v}:{message:v}}}:{}})}strip(){return new Z({...this._def,unknownKeys:"strip"})}passthrough(){return new Z({...this._def,unknownKeys:"passthrough"})}extend(e){return new Z({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Z({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:I.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new Z({...this._def,catchall:e})}pick(e){const t={};return u.util.objectKeys(e).forEach(s=>{e[s]&&this.shape[s]&&(t[s]=this.shape[s])}),new Z({...this._def,shape:()=>t})}omit(e){const t={};return u.util.objectKeys(this.shape).forEach(s=>{e[s]||(t[s]=this.shape[s])}),new Z({...this._def,shape:()=>t})}deepPartial(){return H(this)}partial(e){const t={};return u.util.objectKeys(this.shape).forEach(s=>{const o=this.shape[s];e&&!e[s]?t[s]=o:t[s]=o.optional()}),new Z({...this._def,shape:()=>t})}required(e){const t={};return u.util.objectKeys(this.shape).forEach(s=>{if(e&&!e[s])t[s]=this.shape[s];else{let a=this.shape[s];for(;a instanceof M;)a=a._def.innerType;t[s]=a}}),new Z({...this._def,shape:()=>t})}keyof(){return De(u.util.objectKeys(this.shape))}}r.ZodObject=Z,Z.create=(n,e)=>new Z({shape:()=>n,unknownKeys:"strip",catchall:U.create(),typeName:I.ZodObject,...f(e)}),Z.strictCreate=(n,e)=>new Z({shape:()=>n,unknownKeys:"strict",catchall:U.create(),typeName:I.ZodObject,...f(e)}),Z.lazycreate=(n,e)=>new Z({shape:n,unknownKeys:"strip",catchall:U.create(),typeName:I.ZodObject,...f(e)});class ie extends p{_parse(e){const{ctx:t}=this._processInputParams(e),s=this._def.options;function o(a){for(const l of a)if(l.result.status==="valid")return l.result;for(const l of a)if(l.result.status==="dirty")return t.common.issues.push(...l.ctx.common.issues),l.result;const h=a.map(l=>new c.ZodError(l.ctx.common.issues));return(0,i.addIssueToContext)(t,{code:c.ZodIssueCode.invalid_union,unionErrors:h}),i.INVALID}if(t.common.async)return Promise.all(s.map(async a=>{const h={...t,common:{...t.common,issues:[]},parent:null};return{result:await a._parseAsync({data:t.data,path:t.path,parent:h}),ctx:h}})).then(o);{let a;const h=[];for(const v of s){const g={...t,common:{...t.common,issues:[]},parent:null},b=v._parseSync({data:t.data,path:t.path,parent:g});if(b.status==="valid")return b;b.status==="dirty"&&!a&&(a={result:b,ctx:g}),g.common.issues.length&&h.push(g.common.issues)}if(a)return t.common.issues.push(...a.ctx.common.issues),a.result;const l=h.map(v=>new c.ZodError(v));return(0,i.addIssueToContext)(t,{code:c.ZodIssueCode.invalid_union,unionErrors:l}),i.INVALID}}get options(){return this._def.options}}r.ZodUnion=ie,ie.create=(n,e)=>new ie({options:n,typeName:I.ZodUnion,...f(e)});const _e=n=>n instanceof ue?_e(n.schema):n instanceof A?_e(n.innerType()):n instanceof ce?[n.value]:n instanceof B?n.options:n instanceof le?Object.keys(n.enum):n instanceof fe?_e(n._def.innerType):n instanceof ne?[void 0]:n instanceof ae?[null]:null;class ve extends p{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==u.ZodParsedType.object)return(0,i.addIssueToContext)(t,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.object,received:t.parsedType}),i.INVALID;const s=this.discriminator,o=t.data[s],a=this.optionsMap.get(o);return a?t.common.async?a._parseAsync({data:t.data,path:t.path,parent:t}):a._parseSync({data:t.data,path:t.path,parent:t}):((0,i.addIssueToContext)(t,{code:c.ZodIssueCode.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[s]}),i.INVALID)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,s){const o=new Map;for(const a of t){const h=_e(a.shape[e]);if(!h)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const l of h){if(o.has(l))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(l)}`);o.set(l,a)}}return new ve({typeName:I.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:o,...f(s)})}}r.ZodDiscriminatedUnion=ve;function Ne(n,e){const t=(0,u.getParsedType)(n),s=(0,u.getParsedType)(e);if(n===e)return{valid:!0,data:n};if(t===u.ZodParsedType.object&&s===u.ZodParsedType.object){const o=u.util.objectKeys(e),a=u.util.objectKeys(n).filter(l=>o.indexOf(l)!==-1),h={...n,...e};for(const l of a){const v=Ne(n[l],e[l]);if(!v.valid)return{valid:!1};h[l]=v.data}return{valid:!0,data:h}}else if(t===u.ZodParsedType.array&&s===u.ZodParsedType.array){if(n.length!==e.length)return{valid:!1};const o=[];for(let a=0;a{if((0,i.isAborted)(a)||(0,i.isAborted)(h))return i.INVALID;const l=Ne(a.value,h.value);return l.valid?(((0,i.isDirty)(a)||(0,i.isDirty)(h))&&t.dirty(),{status:t.value,value:l.data}):((0,i.addIssueToContext)(s,{code:c.ZodIssueCode.invalid_intersection_types}),i.INVALID)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([a,h])=>o(a,h)):o(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}r.ZodIntersection=oe,oe.create=(n,e,t)=>new oe({left:n,right:e,typeName:I.ZodIntersection,...f(t)});class j extends p{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==u.ZodParsedType.array)return(0,i.addIssueToContext)(s,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.array,received:s.parsedType}),i.INVALID;if(s.data.lengththis._def.items.length&&((0,i.addIssueToContext)(s,{code:c.ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const a=[...s.data].map((h,l)=>{const v=this._def.items[l]||this._def.rest;return v?v._parse(new m(s,h,s.path,l)):null}).filter(h=>!!h);return s.common.async?Promise.all(a).then(h=>i.ParseStatus.mergeArray(t,h)):i.ParseStatus.mergeArray(t,a)}get items(){return this._def.items}rest(e){return new j({...this._def,rest:e})}}r.ZodTuple=j,j.create=(n,e)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new j({items:n,typeName:I.ZodTuple,rest:null,...f(e)})};class de extends p{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==u.ZodParsedType.object)return(0,i.addIssueToContext)(s,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.object,received:s.parsedType}),i.INVALID;const o=[],a=this._def.keyType,h=this._def.valueType;for(const l in s.data)o.push({key:a._parse(new m(s,l,s.path,l)),value:h._parse(new m(s,s.data[l],s.path,l))});return s.common.async?i.ParseStatus.mergeObjectAsync(t,o):i.ParseStatus.mergeObjectSync(t,o)}get element(){return this._def.valueType}static create(e,t,s){return t instanceof p?new de({keyType:e,valueType:t,typeName:I.ZodRecord,...f(s)}):new de({keyType:P.create(),valueType:e,typeName:I.ZodRecord,...f(t)})}}r.ZodRecord=de;class ge extends p{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==u.ZodParsedType.map)return(0,i.addIssueToContext)(s,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.map,received:s.parsedType}),i.INVALID;const o=this._def.keyType,a=this._def.valueType,h=[...s.data.entries()].map(([l,v],g)=>({key:o._parse(new m(s,l,s.path,[g,"key"])),value:a._parse(new m(s,v,s.path,[g,"value"]))}));if(s.common.async){const l=new Map;return Promise.resolve().then(async()=>{for(const v of h){const g=await v.key,b=await v.value;if(g.status==="aborted"||b.status==="aborted")return i.INVALID;(g.status==="dirty"||b.status==="dirty")&&t.dirty(),l.set(g.value,b.value)}return{status:t.value,value:l}})}else{const l=new Map;for(const v of h){const g=v.key,b=v.value;if(g.status==="aborted"||b.status==="aborted")return i.INVALID;(g.status==="dirty"||b.status==="dirty")&&t.dirty(),l.set(g.value,b.value)}return{status:t.value,value:l}}}}r.ZodMap=ge,ge.create=(n,e,t)=>new ge({valueType:e,keyType:n,typeName:I.ZodMap,...f(t)});class W extends p{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==u.ZodParsedType.set)return(0,i.addIssueToContext)(s,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.set,received:s.parsedType}),i.INVALID;const o=this._def;o.minSize!==null&&s.data.sizeo.maxSize.value&&((0,i.addIssueToContext)(s,{code:c.ZodIssueCode.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),t.dirty());const a=this._def.valueType;function h(v){const g=new Set;for(const b of v){if(b.status==="aborted")return i.INVALID;b.status==="dirty"&&t.dirty(),g.add(b.value)}return{status:t.value,value:g}}const l=[...s.data.values()].map((v,g)=>a._parse(new m(s,v,s.path,g)));return s.common.async?Promise.all(l).then(v=>h(v)):h(l)}min(e,t){return new W({...this._def,minSize:{value:e,message:d.errorUtil.toString(t)}})}max(e,t){return new W({...this._def,maxSize:{value:e,message:d.errorUtil.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}r.ZodSet=W,W.create=(n,e)=>new W({valueType:n,minSize:null,maxSize:null,typeName:I.ZodSet,...f(e)});class X extends p{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==u.ZodParsedType.function)return(0,i.addIssueToContext)(t,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.function,received:t.parsedType}),i.INVALID;function s(l,v){return(0,i.makeIssue)({data:l,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,_.getErrorMap)(),_.defaultErrorMap].filter(g=>!!g),issueData:{code:c.ZodIssueCode.invalid_arguments,argumentsError:v}})}function o(l,v){return(0,i.makeIssue)({data:l,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,_.getErrorMap)(),_.defaultErrorMap].filter(g=>!!g),issueData:{code:c.ZodIssueCode.invalid_return_type,returnTypeError:v}})}const a={errorMap:t.common.contextualErrorMap},h=t.data;return this._def.returns instanceof F?(0,i.OK)(async(...l)=>{const v=new c.ZodError([]),g=await this._def.args.parseAsync(l,a).catch(Oe=>{throw v.addIssue(s(l,Oe)),v}),b=await h(...g);return await this._def.returns._def.type.parseAsync(b,a).catch(Oe=>{throw v.addIssue(o(b,Oe)),v})}):(0,i.OK)((...l)=>{const v=this._def.args.safeParse(l,a);if(!v.success)throw new c.ZodError([s(l,v.error)]);const g=h(...v.data),b=this._def.returns.safeParse(g,a);if(!b.success)throw new c.ZodError([o(g,b.error)]);return b.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new X({...this._def,args:j.create(e).rest(K.create())})}returns(e){return new X({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,s){return new X({args:e||j.create([]).rest(K.create()),returns:t||K.create(),typeName:I.ZodFunction,...f(s)})}}r.ZodFunction=X;class ue extends p{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}r.ZodLazy=ue,ue.create=(n,e)=>new ue({getter:n,typeName:I.ZodLazy,...f(e)});class ce extends p{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return(0,i.addIssueToContext)(t,{received:t.data,code:c.ZodIssueCode.invalid_literal,expected:this._def.value}),i.INVALID}return{status:"valid",value:e.data}}get value(){return this._def.value}}r.ZodLiteral=ce,ce.create=(n,e)=>new ce({value:n,typeName:I.ZodLiteral,...f(e)});function De(n,e){return new B({values:n,typeName:I.ZodEnum,...f(e)})}class B extends p{_parse(e){if(typeof e.data!="string"){const t=this._getOrReturnCtx(e),s=this._def.values;return(0,i.addIssueToContext)(t,{expected:u.util.joinValues(s),received:t.parsedType,code:c.ZodIssueCode.invalid_type}),i.INVALID}if(this._def.values.indexOf(e.data)===-1){const t=this._getOrReturnCtx(e),s=this._def.values;return(0,i.addIssueToContext)(t,{received:t.data,code:c.ZodIssueCode.invalid_enum_value,options:s}),i.INVALID}return(0,i.OK)(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e){return B.create(e)}exclude(e){return B.create(this.options.filter(t=>!e.includes(t)))}}r.ZodEnum=B,B.create=De;class le extends p{_parse(e){const t=u.util.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(e);if(s.parsedType!==u.ZodParsedType.string&&s.parsedType!==u.ZodParsedType.number){const o=u.util.objectValues(t);return(0,i.addIssueToContext)(s,{expected:u.util.joinValues(o),received:s.parsedType,code:c.ZodIssueCode.invalid_type}),i.INVALID}if(t.indexOf(e.data)===-1){const o=u.util.objectValues(t);return(0,i.addIssueToContext)(s,{received:s.data,code:c.ZodIssueCode.invalid_enum_value,options:o}),i.INVALID}return(0,i.OK)(e.data)}get enum(){return this._def.values}}r.ZodNativeEnum=le,le.create=(n,e)=>new le({values:n,typeName:I.ZodNativeEnum,...f(e)});class F extends p{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==u.ZodParsedType.promise&&t.common.async===!1)return(0,i.addIssueToContext)(t,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.promise,received:t.parsedType}),i.INVALID;const s=t.parsedType===u.ZodParsedType.promise?t.data:Promise.resolve(t.data);return(0,i.OK)(s.then(o=>this._def.type.parseAsync(o,{path:t.path,errorMap:t.common.contextualErrorMap})))}}r.ZodPromise=F,F.create=(n,e)=>new F({type:n,typeName:I.ZodPromise,...f(e)});class A extends p{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===I.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:s}=this._processInputParams(e),o=this._def.effect||null;if(o.type==="preprocess"){const h=o.transform(s.data);return s.common.async?Promise.resolve(h).then(l=>this._def.schema._parseAsync({data:l,path:s.path,parent:s})):this._def.schema._parseSync({data:h,path:s.path,parent:s})}const a={addIssue:h=>{(0,i.addIssueToContext)(s,h),h.fatal?t.abort():t.dirty()},get path(){return s.path}};if(a.addIssue=a.addIssue.bind(a),o.type==="refinement"){const h=l=>{const v=o.refinement(l,a);if(s.common.async)return Promise.resolve(v);if(v instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return l};if(s.common.async===!1){const l=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return l.status==="aborted"?i.INVALID:(l.status==="dirty"&&t.dirty(),h(l.value),{status:t.value,value:l.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(l=>l.status==="aborted"?i.INVALID:(l.status==="dirty"&&t.dirty(),h(l.value).then(()=>({status:t.value,value:l.value}))))}if(o.type==="transform")if(s.common.async===!1){const h=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!(0,i.isValid)(h))return h;const l=o.transform(h.value,a);if(l instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:l}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(h=>(0,i.isValid)(h)?Promise.resolve(o.transform(h.value,a)).then(l=>({status:t.value,value:l})):h);u.util.assertNever(o)}}r.ZodEffects=A,r.ZodTransformer=A,A.create=(n,e,t)=>new A({schema:n,typeName:I.ZodEffects,effect:e,...f(t)}),A.createWithPreprocess=(n,e,t)=>new A({schema:e,effect:{type:"preprocess",transform:n},typeName:I.ZodEffects,...f(t)});class M extends p{_parse(e){return this._getType(e)===u.ZodParsedType.undefined?(0,i.OK)(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}r.ZodOptional=M,M.create=(n,e)=>new M({innerType:n,typeName:I.ZodOptional,...f(e)});class J extends p{_parse(e){return this._getType(e)===u.ZodParsedType.null?(0,i.OK)(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}r.ZodNullable=J,J.create=(n,e)=>new J({innerType:n,typeName:I.ZodNullable,...f(e)});class fe extends p{_parse(e){const{ctx:t}=this._processInputParams(e);let s=t.data;return t.parsedType===u.ZodParsedType.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}r.ZodDefault=fe,fe.create=(n,e)=>new fe({innerType:n,typeName:I.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...f(e)});class Ie extends p{_parse(e){const{ctx:t}=this._processInputParams(e),s={...t,common:{...t.common,issues:[]}},o=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return(0,i.isAsync)(o)?o.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new c.ZodError(s.common.issues)},input:s.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new c.ZodError(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}r.ZodCatch=Ie,Ie.create=(n,e)=>new Ie({innerType:n,typeName:I.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...f(e)});class be extends p{_parse(e){if(this._getType(e)!==u.ZodParsedType.nan){const s=this._getOrReturnCtx(e);return(0,i.addIssueToContext)(s,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.nan,received:s.parsedType}),i.INVALID}return{status:"valid",value:e.data}}}r.ZodNaN=be,be.create=n=>new be({typeName:I.ZodNaN,...f(n)}),r.BRAND=Symbol("zod_brand");class Ve extends p{_parse(e){const{ctx:t}=this._processInputParams(e),s=t.data;return this._def.type._parse({data:s,path:t.path,parent:t})}unwrap(){return this._def.type}}r.ZodBranded=Ve;class he extends p{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return a.status==="aborted"?i.INVALID:a.status==="dirty"?(t.dirty(),(0,i.DIRTY)(a.value)):this._def.out._parseAsync({data:a.value,path:s.path,parent:s})})();{const o=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return o.status==="aborted"?i.INVALID:o.status==="dirty"?(t.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:s.path,parent:s})}}static create(e,t){return new he({in:e,out:t,typeName:I.ZodPipeline})}}r.ZodPipeline=he;const Qe=(n,e={},t)=>n?G.create().superRefine((s,o)=>{var a,h;if(!n(s)){const l=typeof e=="function"?e(s):typeof e=="string"?{message:e}:e,v=(h=(a=l.fatal)!==null&&a!==void 0?a:t)!==null&&h!==void 0?h:!0,g=typeof l=="string"?{message:l}:l;o.addIssue({code:"custom",...g,fatal:v})}}):G.create();r.custom=Qe,r.late={object:Z.lazycreate};var I;(function(n){n.ZodString="ZodString",n.ZodNumber="ZodNumber",n.ZodNaN="ZodNaN",n.ZodBigInt="ZodBigInt",n.ZodBoolean="ZodBoolean",n.ZodDate="ZodDate",n.ZodSymbol="ZodSymbol",n.ZodUndefined="ZodUndefined",n.ZodNull="ZodNull",n.ZodAny="ZodAny",n.ZodUnknown="ZodUnknown",n.ZodNever="ZodNever",n.ZodVoid="ZodVoid",n.ZodArray="ZodArray",n.ZodObject="ZodObject",n.ZodUnion="ZodUnion",n.ZodDiscriminatedUnion="ZodDiscriminatedUnion",n.ZodIntersection="ZodIntersection",n.ZodTuple="ZodTuple",n.ZodRecord="ZodRecord",n.ZodMap="ZodMap",n.ZodSet="ZodSet",n.ZodFunction="ZodFunction",n.ZodLazy="ZodLazy",n.ZodLiteral="ZodLiteral",n.ZodEnum="ZodEnum",n.ZodEffects="ZodEffects",n.ZodNativeEnum="ZodNativeEnum",n.ZodOptional="ZodOptional",n.ZodNullable="ZodNullable",n.ZodDefault="ZodDefault",n.ZodCatch="ZodCatch",n.ZodPromise="ZodPromise",n.ZodBranded="ZodBranded",n.ZodPipeline="ZodPipeline"})(I=r.ZodFirstPartyTypeKind||(r.ZodFirstPartyTypeKind={}));const Ge=(n,e={message:`Input not instance of ${n.name}`})=>(0,r.custom)(t=>t instanceof n,e);r.instanceof=Ge;const Re=P.create;r.string=Re;const Ue=E.create;r.number=Ue;const He=be.create;r.nan=He;const Xe=z.create;r.bigint=Xe;const Me=se.create;r.boolean=Me;const Fe=q.create;r.date=Fe;const et=me.create;r.symbol=et;const tt=ne.create;r.undefined=tt;const rt=ae.create;r.null=rt;const st=G.create;r.any=st;const nt=K.create;r.unknown=nt;const at=U.create;r.never=at;const it=ye.create;r.void=it;const ot=S.create;r.array=ot;const dt=Z.create;r.object=dt;const ut=Z.strictCreate;r.strictObject=ut;const ct=ie.create;r.union=ct;const lt=ve.create;r.discriminatedUnion=lt;const ft=oe.create;r.intersection=ft;const ht=j.create;r.tuple=ht;const pt=de.create;r.record=pt;const mt=ge.create;r.map=mt;const yt=W.create;r.set=yt;const _t=X.create;r.function=_t;const vt=ue.create;r.lazy=vt;const gt=ce.create;r.literal=gt;const It=B.create;r.enum=It;const bt=le.create;r.nativeEnum=bt;const Tt=F.create;r.promise=Tt;const Le=A.create;r.effect=Le,r.transformer=Le;const Zt=M.create;r.optional=Zt;const Ct=J.create;r.nullable=Ct;const kt=A.createWithPreprocess;r.preprocess=kt;const wt=he.create;r.pipeline=wt;const Pt=()=>Re().optional();r.ostring=Pt;const Nt=()=>Ue().optional();r.onumber=Nt;const Ot=()=>Me().optional();r.oboolean=Ot,r.coerce={string:n=>P.create({...n,coerce:!0}),number:n=>E.create({...n,coerce:!0}),boolean:n=>se.create({...n,coerce:!0}),bigint:n=>z.create({...n,coerce:!0}),date:n=>q.create({...n,coerce:!0})},r.NEVER=i.INVALID})(Je);(function(r){var _=C&&C.__createBinding||(Object.create?function(i,u,c,m){m===void 0&&(m=c),Object.defineProperty(i,m,{enumerable:!0,get:function(){return u[c]}})}:function(i,u,c,m){m===void 0&&(m=c),i[m]=u[c]}),d=C&&C.__exportStar||function(i,u){for(var c in i)c!=="default"&&!Object.prototype.hasOwnProperty.call(u,c)&&_(u,i,c)};Object.defineProperty(r,"__esModule",{value:!0}),d(D,r),d(je,r),d(We,r),d(pe,r),d(Je,r),d(V,r)})(Ee);(function(r){var _=C&&C.__createBinding||(Object.create?function(m,y,f,p){p===void 0&&(p=f),Object.defineProperty(m,p,{enumerable:!0,get:function(){return y[f]}})}:function(m,y,f,p){p===void 0&&(p=f),m[p]=y[f]}),d=C&&C.__setModuleDefault||(Object.create?function(m,y){Object.defineProperty(m,"default",{enumerable:!0,value:y})}:function(m,y){m.default=y}),i=C&&C.__importStar||function(m){if(m&&m.__esModule)return m;var y={};if(m!=null)for(var f in m)f!=="default"&&Object.prototype.hasOwnProperty.call(m,f)&&_(y,m,f);return d(y,m),y},u=C&&C.__exportStar||function(m,y){for(var f in m)f!=="default"&&!Object.prototype.hasOwnProperty.call(y,f)&&_(y,m,f)};Object.defineProperty(r,"__esModule",{value:!0}),r.z=void 0;const c=i(Ee);r.z=c,u(Ee,r),r.default=c})(ze);Object.defineProperty(re,"__esModule",{value:!0});re.parseExecution=re.validateType=void 0;const Q=ze,Se=Ae,Vt=Q.z.object({connectorType:Q.z.enum(Se.connectorNames),settings:Q.z.record(Q.z.string()),methodName:Q.z.string(),params:Q.z.record(Q.z.any())});function te(r,_){return r.type==="string"?typeof _=="string":r.type==="options"?typeof _=="string"&&r.values.includes(_):r.type==="number"?typeof _=="number":r.type==="boolean"?typeof _=="boolean":r.type==="object"?typeof _=="object"&&Object.keys(r.values).every(d=>_&&d in _&&te(r.values[d],_[d])):r.type==="array"?Array.isArray(_)&&_.every(d=>te(r.items,d)):r.type==="union"?r.values.some(d=>te(d,_)):r.type==="any"}re.validateType=te;function Rt(r){try{const _=Vt.parse(r);if(!(_.connectorType in Se.schema))throw new Error(`Invalid connector: ${_.connectorType}`);const d=_.connectorType,i=Se.schema[d];if(Object.keys(_.settings).map(f=>f in i.settings).includes(!1))throw new Error("Invalid settings - Extra settings provided");const u={};for(const f in i.settings)if(f in _.settings)if(te(i.settings[f],_.settings[f]))u[f]=_.settings[f];else throw new Error(`Invalid setting: ${f}`);else if(i.settings[f].required)throw new Error(`Missing setting: ${f}`);if(!(_.methodName in i.methods))throw new Error(`Invalid method: ${_.methodName}`);const c=_.methodName,m=i.methods[c];if(Object.keys(_.params).map(f=>f in m.params).includes(!1))throw new Error("Invalid params - Extra params provided");const y={};for(const f in m.params)if(f in _.params)if(te(m.params[f],_.params[f]))y[f]=_.params[f];else throw new Error(`Invalid param: ${f}`);else if(m.params[f].required)throw new Error(`Missing param: ${f}`);return{result:{connectorType:d,methodName:c,params:y,settings:u}}}catch(_){return{error:_.message}}}re.parseExecution=Rt;(function(r){var _=C&&C.__createBinding||(Object.create?function(i,u,c,m){m===void 0&&(m=c);var y=Object.getOwnPropertyDescriptor(u,c);(!y||("get"in y?!u.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return u[c]}}),Object.defineProperty(i,m,y)}:function(i,u,c,m){m===void 0&&(m=c),i[m]=u[c]}),d=C&&C.__exportStar||function(i,u){for(var c in i)c!=="default"&&!Object.prototype.hasOwnProperty.call(u,c)&&_(u,i,c)};Object.defineProperty(r,"__esModule",{value:!0}),d($e,r),d(Ae,r),d(re,r)})(Et);export{Et as b}; -//# sourceMappingURL=index.24c9f37d.js.map +import{p as C}from"./registerWidgets.cb3a7b8d.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},_=new Error().stack;_&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[_]="c5389e30-6ff1-4533-bb8f-a18eea591177",r._sentryDebugIdIdentifier="sentry-dbid-c5389e30-6ff1-4533-bb8f-a18eea591177")}catch{}})();var Et={},$e={};Object.defineProperty($e,"__esModule",{value:!0});var Ae={},Te={};Object.defineProperty(Te,"__esModule",{value:!0});Te.airtable=void 0;Te.airtable={label:"Airtable",settings:{baseId:{label:"Base ID",type:"string",description:"The Airtable base ID to connect to",required:!0,secret:!1},apiKey:{label:"API Key",type:"string",description:"The api key to access the database",required:!0,secret:!0}},methods:{list_records:{label:"List Records",params:{table_id:{label:"Table ID",type:"string",required:!0,description:"The ID of the table to get"},fields:{label:"Fields",type:"array",required:!1,description:"The fields to return",items:{type:"string"}},filter_by_formula:{label:"Filter By Formula",type:"string",required:!1,description:"The formula to filter by"},max_records:{label:"Max Records",type:"number",description:"The maximum number of records to return",required:!1},view:{label:"View",type:"string",description:"The view to use",required:!1},sort:{label:"Sort",type:"array",description:"The sort to use",required:!1,items:{type:"object",values:{field:{type:"string"},direction:{type:"options",values:["asc","desc"]}}}},include_record_id:{label:"Include Record ID",type:"boolean",description:"Whether to include the record ID",required:!1}},returns:{records:{label:"Records",type:"array",description:"The records returned",items:{type:"any"}}}},update_record:{label:"Update Record",params:{table_id:{label:"Table ID",type:"string",required:!0,description:"The ID of the table to get"},fields:{label:"Fields",type:"any",required:!0,description:"The fields to update"},record_id:{label:"Record ID",type:"string",required:!0,description:"The ID of the record to update"},include_record_id:{label:"Include Record ID",type:"boolean",description:"Whether to include the record ID",required:!1}},returns:{record:{label:"Record",type:"any",description:"The record returned"}}}}};var Ze={};Object.defineProperty(Ze,"__esModule",{value:!0});Ze.postgres=void 0;Ze.postgres={label:"Postgres",settings:{connectionString:{label:"Connection String",type:"string",description:"The connection string for the Postgres database",required:!0,secret:!0}},methods:{query:{label:"Query",params:{query:{label:"SQL Query",type:"string",required:!0,description:"The SQL query to execute"},params:{label:"Query Parameters",type:"array",required:!1,description:"The parameters to pass to the query",items:{type:"any"}}},returns:{result:{label:"Result Rows",type:"array",items:{type:"any"},description:"The query result"}}}}};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.connectorNames=r.schema=void 0;const _=Te,d=Ze;r.schema={airtable:_.airtable,postgres:d.postgres},r.connectorNames=Object.keys(r.schema)})(Ae);var re={},ze={},Ee={},D={},Ce={},pe={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.getParsedType=r.ZodParsedType=r.objectUtil=r.util=void 0;var _;(function(i){i.assertEqual=y=>y;function u(y){}i.assertIs=u;function c(y){throw new Error}i.assertNever=c,i.arrayToEnum=y=>{const f={};for(const p of y)f[p]=p;return f},i.getValidEnumValues=y=>{const f=i.objectKeys(y).filter(R=>typeof y[y[R]]!="number"),p={};for(const R of f)p[R]=y[R];return i.objectValues(p)},i.objectValues=y=>i.objectKeys(y).map(function(f){return y[f]}),i.objectKeys=typeof Object.keys=="function"?y=>Object.keys(y):y=>{const f=[];for(const p in y)Object.prototype.hasOwnProperty.call(y,p)&&f.push(p);return f},i.find=(y,f)=>{for(const p of y)if(f(p))return p},i.isInteger=typeof Number.isInteger=="function"?y=>Number.isInteger(y):y=>typeof y=="number"&&isFinite(y)&&Math.floor(y)===y;function m(y,f=" | "){return y.map(p=>typeof p=="string"?`'${p}'`:p).join(f)}i.joinValues=m,i.jsonStringifyReplacer=(y,f)=>typeof f=="bigint"?f.toString():f})(_=r.util||(r.util={})),function(i){i.mergeShapes=(u,c)=>({...u,...c})}(r.objectUtil||(r.objectUtil={})),r.ZodParsedType=_.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]);const d=i=>{switch(typeof i){case"undefined":return r.ZodParsedType.undefined;case"string":return r.ZodParsedType.string;case"number":return isNaN(i)?r.ZodParsedType.nan:r.ZodParsedType.number;case"boolean":return r.ZodParsedType.boolean;case"function":return r.ZodParsedType.function;case"bigint":return r.ZodParsedType.bigint;case"symbol":return r.ZodParsedType.symbol;case"object":return Array.isArray(i)?r.ZodParsedType.array:i===null?r.ZodParsedType.null:i.then&&typeof i.then=="function"&&i.catch&&typeof i.catch=="function"?r.ZodParsedType.promise:typeof Map<"u"&&i instanceof Map?r.ZodParsedType.map:typeof Set<"u"&&i instanceof Set?r.ZodParsedType.set:typeof Date<"u"&&i instanceof Date?r.ZodParsedType.date:r.ZodParsedType.object;default:return r.ZodParsedType.unknown}};r.getParsedType=d})(pe);var V={};Object.defineProperty(V,"__esModule",{value:!0});V.ZodError=V.quotelessJson=V.ZodIssueCode=void 0;const Be=pe;V.ZodIssueCode=Be.util.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);const xt=r=>JSON.stringify(r,null,2).replace(/"([^"]+)":/g,"$1:");V.quotelessJson=xt;class xe extends Error{constructor(_){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};const d=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,d):this.__proto__=d,this.name="ZodError",this.issues=_}get errors(){return this.issues}format(_){const d=_||function(c){return c.message},i={_errors:[]},u=c=>{for(const m of c.issues)if(m.code==="invalid_union")m.unionErrors.map(u);else if(m.code==="invalid_return_type")u(m.returnTypeError);else if(m.code==="invalid_arguments")u(m.argumentsError);else if(m.path.length===0)i._errors.push(d(m));else{let y=i,f=0;for(;fd.message){const d={},i=[];for(const u of this.issues)u.path.length>0?(d[u.path[0]]=d[u.path[0]]||[],d[u.path[0]].push(_(u))):i.push(_(u));return{formErrors:i,fieldErrors:d}}get formErrors(){return this.flatten()}}V.ZodError=xe;xe.create=r=>new xe(r);Object.defineProperty(Ce,"__esModule",{value:!0});const Y=pe,w=V,St=(r,_)=>{let d;switch(r.code){case w.ZodIssueCode.invalid_type:r.received===Y.ZodParsedType.undefined?d="Required":d=`Expected ${r.expected}, received ${r.received}`;break;case w.ZodIssueCode.invalid_literal:d=`Invalid literal value, expected ${JSON.stringify(r.expected,Y.util.jsonStringifyReplacer)}`;break;case w.ZodIssueCode.unrecognized_keys:d=`Unrecognized key(s) in object: ${Y.util.joinValues(r.keys,", ")}`;break;case w.ZodIssueCode.invalid_union:d="Invalid input";break;case w.ZodIssueCode.invalid_union_discriminator:d=`Invalid discriminator value. Expected ${Y.util.joinValues(r.options)}`;break;case w.ZodIssueCode.invalid_enum_value:d=`Invalid enum value. Expected ${Y.util.joinValues(r.options)}, received '${r.received}'`;break;case w.ZodIssueCode.invalid_arguments:d="Invalid function arguments";break;case w.ZodIssueCode.invalid_return_type:d="Invalid function return type";break;case w.ZodIssueCode.invalid_date:d="Invalid date";break;case w.ZodIssueCode.invalid_string:typeof r.validation=="object"?"includes"in r.validation?(d=`Invalid input: must include "${r.validation.includes}"`,typeof r.validation.position=="number"&&(d=`${d} at one or more positions greater than or equal to ${r.validation.position}`)):"startsWith"in r.validation?d=`Invalid input: must start with "${r.validation.startsWith}"`:"endsWith"in r.validation?d=`Invalid input: must end with "${r.validation.endsWith}"`:Y.util.assertNever(r.validation):r.validation!=="regex"?d=`Invalid ${r.validation}`:d="Invalid";break;case w.ZodIssueCode.too_small:r.type==="array"?d=`Array must contain ${r.exact?"exactly":r.inclusive?"at least":"more than"} ${r.minimum} element(s)`:r.type==="string"?d=`String must contain ${r.exact?"exactly":r.inclusive?"at least":"over"} ${r.minimum} character(s)`:r.type==="number"?d=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="date"?d=`Date must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(r.minimum))}`:d="Invalid input";break;case w.ZodIssueCode.too_big:r.type==="array"?d=`Array must contain ${r.exact?"exactly":r.inclusive?"at most":"less than"} ${r.maximum} element(s)`:r.type==="string"?d=`String must contain ${r.exact?"exactly":r.inclusive?"at most":"under"} ${r.maximum} character(s)`:r.type==="number"?d=`Number must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="bigint"?d=`BigInt must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="date"?d=`Date must be ${r.exact?"exactly":r.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(r.maximum))}`:d="Invalid input";break;case w.ZodIssueCode.custom:d="Invalid input";break;case w.ZodIssueCode.invalid_intersection_types:d="Intersection results could not be merged";break;case w.ZodIssueCode.not_multiple_of:d=`Number must be a multiple of ${r.multipleOf}`;break;case w.ZodIssueCode.not_finite:d="Number must be finite";break;default:d=_.defaultError,Y.util.assertNever(r)}return{message:d}};Ce.default=St;var At=C&&C.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(D,"__esModule",{value:!0});D.getErrorMap=D.setErrorMap=D.defaultErrorMap=void 0;const qe=At(Ce);D.defaultErrorMap=qe.default;let Ke=qe.default;function jt(r){Ke=r}D.setErrorMap=jt;function Dt(){return Ke}D.getErrorMap=Dt;var je={};(function(r){var _=C&&C.__importDefault||function(T){return T&&T.__esModule?T:{default:T}};Object.defineProperty(r,"__esModule",{value:!0}),r.isAsync=r.isValid=r.isDirty=r.isAborted=r.OK=r.DIRTY=r.INVALID=r.ParseStatus=r.addIssueToContext=r.EMPTY_PATH=r.makeIssue=void 0;const d=D,i=_(Ce),u=T=>{const{data:N,path:x,errorMaps:O,issueData:k}=T,L=[...x,...k.path||[]],$={...k,path:L};let P="";const Pe=O.filter(E=>!!E).slice().reverse();for(const E of Pe)P=E($,{data:N,defaultError:P}).message;return{...k,path:L,message:k.message||P}};r.makeIssue=u,r.EMPTY_PATH=[];function c(T,N){const x=(0,r.makeIssue)({issueData:N,data:T.data,path:T.path,errorMaps:[T.common.contextualErrorMap,T.schemaErrorMap,(0,d.getErrorMap)(),i.default].filter(O=>!!O)});T.common.issues.push(x)}r.addIssueToContext=c;class m{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(N,x){const O=[];for(const k of x){if(k.status==="aborted")return r.INVALID;k.status==="dirty"&&N.dirty(),O.push(k.value)}return{status:N.value,value:O}}static async mergeObjectAsync(N,x){const O=[];for(const k of x)O.push({key:await k.key,value:await k.value});return m.mergeObjectSync(N,O)}static mergeObjectSync(N,x){const O={};for(const k of x){const{key:L,value:$}=k;if(L.status==="aborted"||$.status==="aborted")return r.INVALID;L.status==="dirty"&&N.dirty(),$.status==="dirty"&&N.dirty(),(typeof $.value<"u"||k.alwaysSet)&&(O[L.value]=$.value)}return{status:N.value,value:O}}}r.ParseStatus=m,r.INVALID=Object.freeze({status:"aborted"});const y=T=>({status:"dirty",value:T});r.DIRTY=y;const f=T=>({status:"valid",value:T});r.OK=f;const p=T=>T.status==="aborted";r.isAborted=p;const R=T=>T.status==="dirty";r.isDirty=R;const ke=T=>T.status==="valid";r.isValid=ke;const we=T=>typeof Promise<"u"&&T instanceof Promise;r.isAsync=we})(je);var We={};Object.defineProperty(We,"__esModule",{value:!0});var Je={},Ye={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.errorUtil=void 0,function(_){_.errToObj=d=>typeof d=="string"?{message:d}:d||{},_.toString=d=>typeof d=="string"?d:d==null?void 0:d.message}(r.errorUtil||(r.errorUtil={}))})(Ye);(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.discriminatedUnion=r.date=r.boolean=r.bigint=r.array=r.any=r.coerce=r.ZodFirstPartyTypeKind=r.late=r.ZodSchema=r.Schema=r.custom=r.ZodPipeline=r.ZodBranded=r.BRAND=r.ZodNaN=r.ZodCatch=r.ZodDefault=r.ZodNullable=r.ZodOptional=r.ZodTransformer=r.ZodEffects=r.ZodPromise=r.ZodNativeEnum=r.ZodEnum=r.ZodLiteral=r.ZodLazy=r.ZodFunction=r.ZodSet=r.ZodMap=r.ZodRecord=r.ZodTuple=r.ZodIntersection=r.ZodDiscriminatedUnion=r.ZodUnion=r.ZodObject=r.ZodArray=r.ZodVoid=r.ZodNever=r.ZodUnknown=r.ZodAny=r.ZodNull=r.ZodUndefined=r.ZodSymbol=r.ZodDate=r.ZodBoolean=r.ZodBigInt=r.ZodNumber=r.ZodString=r.ZodType=void 0,r.NEVER=r.void=r.unknown=r.union=r.undefined=r.tuple=r.transformer=r.symbol=r.string=r.strictObject=r.set=r.record=r.promise=r.preprocess=r.pipeline=r.ostring=r.optional=r.onumber=r.oboolean=r.object=r.number=r.nullable=r.null=r.never=r.nativeEnum=r.nan=r.map=r.literal=r.lazy=r.intersection=r.instanceof=r.function=r.enum=r.effect=void 0;const _=D,d=Ye,i=je,u=pe,c=V;class m{constructor(e,t,s,o){this._cachedPath=[],this.parent=e,this.data=t,this._path=s,this._key=o}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const y=(n,e)=>{if((0,i.isValid)(e))return{success:!0,data:e.value};if(!n.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new c.ZodError(n.common.issues);return this._error=t,this._error}}};function f(n){if(!n)return{};const{errorMap:e,invalid_type_error:t,required_error:s,description:o}=n;if(e&&(t||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:o}:{errorMap:(h,l)=>h.code!=="invalid_type"?{message:l.defaultError}:typeof l.data>"u"?{message:s!=null?s:l.defaultError}:{message:t!=null?t:l.defaultError},description:o}}class p{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return(0,u.getParsedType)(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:(0,u.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new i.ParseStatus,ctx:{common:e.parent.common,data:e.data,parsedType:(0,u.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if((0,i.isAsync)(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const s=this.safeParse(e,t);if(s.success)return s.data;throw s.error}safeParse(e,t){var s;const o={common:{issues:[],async:(s=t==null?void 0:t.async)!==null&&s!==void 0?s:!1,contextualErrorMap:t==null?void 0:t.errorMap},path:(t==null?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,u.getParsedType)(e)},a=this._parseSync({data:e,path:o.path,parent:o});return y(o,a)}async parseAsync(e,t){const s=await this.safeParseAsync(e,t);if(s.success)return s.data;throw s.error}async safeParseAsync(e,t){const s={common:{issues:[],contextualErrorMap:t==null?void 0:t.errorMap,async:!0},path:(t==null?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,u.getParsedType)(e)},o=this._parse({data:e,path:s.path,parent:s}),a=await((0,i.isAsync)(o)?o:Promise.resolve(o));return y(s,a)}refine(e,t){const s=o=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(o):t;return this._refinement((o,a)=>{const h=e(o),l=()=>a.addIssue({code:c.ZodIssueCode.custom,...s(o)});return typeof Promise<"u"&&h instanceof Promise?h.then(v=>v?!0:(l(),!1)):h?!0:(l(),!1)})}refinement(e,t){return this._refinement((s,o)=>e(s)?!0:(o.addIssue(typeof t=="function"?t(s,o):t),!1))}_refinement(e){return new A({schema:this,typeName:I.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return M.create(this,this._def)}nullable(){return J.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return S.create(this,this._def)}promise(){return F.create(this,this._def)}or(e){return ie.create([this,e],this._def)}and(e){return oe.create(this,e,this._def)}transform(e){return new A({...f(this._def),schema:this,typeName:I.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t=typeof e=="function"?e:()=>e;return new fe({...f(this._def),innerType:this,defaultValue:t,typeName:I.ZodDefault})}brand(){return new Ve({typeName:I.ZodBranded,type:this,...f(this._def)})}catch(e){const t=typeof e=="function"?e:()=>e;return new Ie({...f(this._def),innerType:this,catchValue:t,typeName:I.ZodCatch})}describe(e){const t=this.constructor;return new t({...this._def,description:e})}pipe(e){return he.create(this,e)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}r.ZodType=p,r.Schema=p,r.ZodSchema=p;const R=/^c[^\s-]{8,}$/i,ke=/^[a-z][a-z0-9]*$/,we=/[0-9A-HJKMNP-TV-Z]{26}/,T=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,N=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\])|(\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\.[A-Za-z]{2,})+))$/,x=/^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u,O=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,k=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,L=n=>n.precision?n.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${n.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${n.precision}}Z$`):n.precision===0?n.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):n.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function $(n,e){return!!((e==="v4"||!e)&&O.test(n)||(e==="v6"||!e)&&k.test(n))}class P extends p{constructor(){super(...arguments),this._regex=(e,t,s)=>this.refinement(o=>e.test(o),{validation:t,code:c.ZodIssueCode.invalid_string,...d.errorUtil.errToObj(s)}),this.nonempty=e=>this.min(1,d.errorUtil.errToObj(e)),this.trim=()=>new P({...this._def,checks:[...this._def.checks,{kind:"trim"}]}),this.toLowerCase=()=>new P({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]}),this.toUpperCase=()=>new P({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==u.ZodParsedType.string){const a=this._getOrReturnCtx(e);return(0,i.addIssueToContext)(a,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.string,received:a.parsedType}),i.INVALID}const s=new i.ParseStatus;let o;for(const a of this._def.checks)if(a.kind==="min")e.data.lengtha.value&&(o=this._getOrReturnCtx(e,o),(0,i.addIssueToContext)(o,{code:c.ZodIssueCode.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),s.dirty());else if(a.kind==="length"){const h=e.data.length>a.value,l=e.data.length"u"?null:e==null?void 0:e.precision,offset:(t=e==null?void 0:e.offset)!==null&&t!==void 0?t:!1,...d.errorUtil.errToObj(e==null?void 0:e.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...d.errorUtil.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t==null?void 0:t.position,...d.errorUtil.errToObj(t==null?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...d.errorUtil.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...d.errorUtil.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...d.errorUtil.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...d.errorUtil.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...d.errorUtil.errToObj(t)})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get minLength(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value{var e;return new P({checks:[],typeName:I.ZodString,coerce:(e=n==null?void 0:n.coerce)!==null&&e!==void 0?e:!1,...f(n)})};function Pe(n,e){const t=(n.toString().split(".")[1]||"").length,s=(e.toString().split(".")[1]||"").length,o=t>s?t:s,a=parseInt(n.toFixed(o).replace(".","")),h=parseInt(e.toFixed(o).replace(".",""));return a%h/Math.pow(10,o)}class E extends p{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==u.ZodParsedType.number){const a=this._getOrReturnCtx(e);return(0,i.addIssueToContext)(a,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.number,received:a.parsedType}),i.INVALID}let s;const o=new i.ParseStatus;for(const a of this._def.checks)a.kind==="int"?u.util.isInteger(e.data)||(s=this._getOrReturnCtx(e,s),(0,i.addIssueToContext)(s,{code:c.ZodIssueCode.invalid_type,expected:"integer",received:"float",message:a.message}),o.dirty()):a.kind==="min"?(a.inclusive?e.dataa.value:e.data>=a.value)&&(s=this._getOrReturnCtx(e,s),(0,i.addIssueToContext)(s,{code:c.ZodIssueCode.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),o.dirty()):a.kind==="multipleOf"?Pe(e.data,a.value)!==0&&(s=this._getOrReturnCtx(e,s),(0,i.addIssueToContext)(s,{code:c.ZodIssueCode.not_multiple_of,multipleOf:a.value,message:a.message}),o.dirty()):a.kind==="finite"?Number.isFinite(e.data)||(s=this._getOrReturnCtx(e,s),(0,i.addIssueToContext)(s,{code:c.ZodIssueCode.not_finite,message:a.message}),o.dirty()):u.util.assertNever(a);return{status:o.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,d.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,d.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,d.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,d.errorUtil.toString(t))}setLimit(e,t,s,o){return new E({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:s,message:d.errorUtil.toString(o)}]})}_addCheck(e){return new E({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:d.errorUtil.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:d.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:d.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:d.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:d.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:d.errorUtil.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:d.errorUtil.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:d.errorUtil.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:d.errorUtil.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.valuee.kind==="int"||e.kind==="multipleOf"&&u.util.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(t===null||s.value>t)&&(t=s.value):s.kind==="max"&&(e===null||s.valuenew E({checks:[],typeName:I.ZodNumber,coerce:(n==null?void 0:n.coerce)||!1,...f(n)});class z extends p{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==u.ZodParsedType.bigint){const a=this._getOrReturnCtx(e);return(0,i.addIssueToContext)(a,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.bigint,received:a.parsedType}),i.INVALID}let s;const o=new i.ParseStatus;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?e.dataa.value:e.data>=a.value)&&(s=this._getOrReturnCtx(e,s),(0,i.addIssueToContext)(s,{code:c.ZodIssueCode.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),o.dirty()):a.kind==="multipleOf"?e.data%a.value!==BigInt(0)&&(s=this._getOrReturnCtx(e,s),(0,i.addIssueToContext)(s,{code:c.ZodIssueCode.not_multiple_of,multipleOf:a.value,message:a.message}),o.dirty()):u.util.assertNever(a);return{status:o.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,d.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,d.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,d.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,d.errorUtil.toString(t))}setLimit(e,t,s,o){return new z({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:s,message:d.errorUtil.toString(o)}]})}_addCheck(e){return new z({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:d.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:d.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:d.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:d.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:d.errorUtil.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value{var e;return new z({checks:[],typeName:I.ZodBigInt,coerce:(e=n==null?void 0:n.coerce)!==null&&e!==void 0?e:!1,...f(n)})};class se extends p{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==u.ZodParsedType.boolean){const s=this._getOrReturnCtx(e);return(0,i.addIssueToContext)(s,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.boolean,received:s.parsedType}),i.INVALID}return(0,i.OK)(e.data)}}r.ZodBoolean=se,se.create=n=>new se({typeName:I.ZodBoolean,coerce:(n==null?void 0:n.coerce)||!1,...f(n)});class q extends p{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==u.ZodParsedType.date){const a=this._getOrReturnCtx(e);return(0,i.addIssueToContext)(a,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.date,received:a.parsedType}),i.INVALID}if(isNaN(e.data.getTime())){const a=this._getOrReturnCtx(e);return(0,i.addIssueToContext)(a,{code:c.ZodIssueCode.invalid_date}),i.INVALID}const s=new i.ParseStatus;let o;for(const a of this._def.checks)a.kind==="min"?e.data.getTime()a.value&&(o=this._getOrReturnCtx(e,o),(0,i.addIssueToContext)(o,{code:c.ZodIssueCode.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),s.dirty()):u.util.assertNever(a);return{status:s.value,value:new Date(e.data.getTime())}}_addCheck(e){return new q({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:d.errorUtil.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:d.errorUtil.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.valuenew q({checks:[],coerce:(n==null?void 0:n.coerce)||!1,typeName:I.ZodDate,...f(n)});class me extends p{_parse(e){if(this._getType(e)!==u.ZodParsedType.symbol){const s=this._getOrReturnCtx(e);return(0,i.addIssueToContext)(s,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.symbol,received:s.parsedType}),i.INVALID}return(0,i.OK)(e.data)}}r.ZodSymbol=me,me.create=n=>new me({typeName:I.ZodSymbol,...f(n)});class ne extends p{_parse(e){if(this._getType(e)!==u.ZodParsedType.undefined){const s=this._getOrReturnCtx(e);return(0,i.addIssueToContext)(s,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.undefined,received:s.parsedType}),i.INVALID}return(0,i.OK)(e.data)}}r.ZodUndefined=ne,ne.create=n=>new ne({typeName:I.ZodUndefined,...f(n)});class ae extends p{_parse(e){if(this._getType(e)!==u.ZodParsedType.null){const s=this._getOrReturnCtx(e);return(0,i.addIssueToContext)(s,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.null,received:s.parsedType}),i.INVALID}return(0,i.OK)(e.data)}}r.ZodNull=ae,ae.create=n=>new ae({typeName:I.ZodNull,...f(n)});class G extends p{constructor(){super(...arguments),this._any=!0}_parse(e){return(0,i.OK)(e.data)}}r.ZodAny=G,G.create=n=>new G({typeName:I.ZodAny,...f(n)});class K extends p{constructor(){super(...arguments),this._unknown=!0}_parse(e){return(0,i.OK)(e.data)}}r.ZodUnknown=K,K.create=n=>new K({typeName:I.ZodUnknown,...f(n)});class U extends p{_parse(e){const t=this._getOrReturnCtx(e);return(0,i.addIssueToContext)(t,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.never,received:t.parsedType}),i.INVALID}}r.ZodNever=U,U.create=n=>new U({typeName:I.ZodNever,...f(n)});class ye extends p{_parse(e){if(this._getType(e)!==u.ZodParsedType.undefined){const s=this._getOrReturnCtx(e);return(0,i.addIssueToContext)(s,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.void,received:s.parsedType}),i.INVALID}return(0,i.OK)(e.data)}}r.ZodVoid=ye,ye.create=n=>new ye({typeName:I.ZodVoid,...f(n)});class S extends p{_parse(e){const{ctx:t,status:s}=this._processInputParams(e),o=this._def;if(t.parsedType!==u.ZodParsedType.array)return(0,i.addIssueToContext)(t,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.array,received:t.parsedType}),i.INVALID;if(o.exactLength!==null){const h=t.data.length>o.exactLength.value,l=t.data.lengtho.maxLength.value&&((0,i.addIssueToContext)(t,{code:c.ZodIssueCode.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),s.dirty()),t.common.async)return Promise.all([...t.data].map((h,l)=>o.type._parseAsync(new m(t,h,t.path,l)))).then(h=>i.ParseStatus.mergeArray(s,h));const a=[...t.data].map((h,l)=>o.type._parseSync(new m(t,h,t.path,l)));return i.ParseStatus.mergeArray(s,a)}get element(){return this._def.type}min(e,t){return new S({...this._def,minLength:{value:e,message:d.errorUtil.toString(t)}})}max(e,t){return new S({...this._def,maxLength:{value:e,message:d.errorUtil.toString(t)}})}length(e,t){return new S({...this._def,exactLength:{value:e,message:d.errorUtil.toString(t)}})}nonempty(e){return this.min(1,e)}}r.ZodArray=S,S.create=(n,e)=>new S({type:n,minLength:null,maxLength:null,exactLength:null,typeName:I.ZodArray,...f(e)});function H(n){if(n instanceof Z){const e={};for(const t in n.shape){const s=n.shape[t];e[t]=M.create(H(s))}return new Z({...n._def,shape:()=>e})}else return n instanceof S?new S({...n._def,type:H(n.element)}):n instanceof M?M.create(H(n.unwrap())):n instanceof J?J.create(H(n.unwrap())):n instanceof j?j.create(n.items.map(e=>H(e))):n}class Z extends p{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),t=u.util.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==u.ZodParsedType.object){const g=this._getOrReturnCtx(e);return(0,i.addIssueToContext)(g,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.object,received:g.parsedType}),i.INVALID}const{status:s,ctx:o}=this._processInputParams(e),{shape:a,keys:h}=this._getCached(),l=[];if(!(this._def.catchall instanceof U&&this._def.unknownKeys==="strip"))for(const g in o.data)h.includes(g)||l.push(g);const v=[];for(const g of h){const b=a[g],ee=o.data[g];v.push({key:{status:"valid",value:g},value:b._parse(new m(o,ee,o.path,g)),alwaysSet:g in o.data})}if(this._def.catchall instanceof U){const g=this._def.unknownKeys;if(g==="passthrough")for(const b of l)v.push({key:{status:"valid",value:b},value:{status:"valid",value:o.data[b]}});else if(g==="strict")l.length>0&&((0,i.addIssueToContext)(o,{code:c.ZodIssueCode.unrecognized_keys,keys:l}),s.dirty());else if(g!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const g=this._def.catchall;for(const b of l){const ee=o.data[b];v.push({key:{status:"valid",value:b},value:g._parse(new m(o,ee,o.path,b)),alwaysSet:b in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const g=[];for(const b of v){const ee=await b.key;g.push({key:ee,value:await b.value,alwaysSet:b.alwaysSet})}return g}).then(g=>i.ParseStatus.mergeObjectSync(s,g)):i.ParseStatus.mergeObjectSync(s,v)}get shape(){return this._def.shape()}strict(e){return d.errorUtil.errToObj,new Z({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,s)=>{var o,a,h,l;const v=(h=(a=(o=this._def).errorMap)===null||a===void 0?void 0:a.call(o,t,s).message)!==null&&h!==void 0?h:s.defaultError;return t.code==="unrecognized_keys"?{message:(l=d.errorUtil.errToObj(e).message)!==null&&l!==void 0?l:v}:{message:v}}}:{}})}strip(){return new Z({...this._def,unknownKeys:"strip"})}passthrough(){return new Z({...this._def,unknownKeys:"passthrough"})}extend(e){return new Z({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Z({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:I.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new Z({...this._def,catchall:e})}pick(e){const t={};return u.util.objectKeys(e).forEach(s=>{e[s]&&this.shape[s]&&(t[s]=this.shape[s])}),new Z({...this._def,shape:()=>t})}omit(e){const t={};return u.util.objectKeys(this.shape).forEach(s=>{e[s]||(t[s]=this.shape[s])}),new Z({...this._def,shape:()=>t})}deepPartial(){return H(this)}partial(e){const t={};return u.util.objectKeys(this.shape).forEach(s=>{const o=this.shape[s];e&&!e[s]?t[s]=o:t[s]=o.optional()}),new Z({...this._def,shape:()=>t})}required(e){const t={};return u.util.objectKeys(this.shape).forEach(s=>{if(e&&!e[s])t[s]=this.shape[s];else{let a=this.shape[s];for(;a instanceof M;)a=a._def.innerType;t[s]=a}}),new Z({...this._def,shape:()=>t})}keyof(){return De(u.util.objectKeys(this.shape))}}r.ZodObject=Z,Z.create=(n,e)=>new Z({shape:()=>n,unknownKeys:"strip",catchall:U.create(),typeName:I.ZodObject,...f(e)}),Z.strictCreate=(n,e)=>new Z({shape:()=>n,unknownKeys:"strict",catchall:U.create(),typeName:I.ZodObject,...f(e)}),Z.lazycreate=(n,e)=>new Z({shape:n,unknownKeys:"strip",catchall:U.create(),typeName:I.ZodObject,...f(e)});class ie extends p{_parse(e){const{ctx:t}=this._processInputParams(e),s=this._def.options;function o(a){for(const l of a)if(l.result.status==="valid")return l.result;for(const l of a)if(l.result.status==="dirty")return t.common.issues.push(...l.ctx.common.issues),l.result;const h=a.map(l=>new c.ZodError(l.ctx.common.issues));return(0,i.addIssueToContext)(t,{code:c.ZodIssueCode.invalid_union,unionErrors:h}),i.INVALID}if(t.common.async)return Promise.all(s.map(async a=>{const h={...t,common:{...t.common,issues:[]},parent:null};return{result:await a._parseAsync({data:t.data,path:t.path,parent:h}),ctx:h}})).then(o);{let a;const h=[];for(const v of s){const g={...t,common:{...t.common,issues:[]},parent:null},b=v._parseSync({data:t.data,path:t.path,parent:g});if(b.status==="valid")return b;b.status==="dirty"&&!a&&(a={result:b,ctx:g}),g.common.issues.length&&h.push(g.common.issues)}if(a)return t.common.issues.push(...a.ctx.common.issues),a.result;const l=h.map(v=>new c.ZodError(v));return(0,i.addIssueToContext)(t,{code:c.ZodIssueCode.invalid_union,unionErrors:l}),i.INVALID}}get options(){return this._def.options}}r.ZodUnion=ie,ie.create=(n,e)=>new ie({options:n,typeName:I.ZodUnion,...f(e)});const _e=n=>n instanceof ue?_e(n.schema):n instanceof A?_e(n.innerType()):n instanceof ce?[n.value]:n instanceof B?n.options:n instanceof le?Object.keys(n.enum):n instanceof fe?_e(n._def.innerType):n instanceof ne?[void 0]:n instanceof ae?[null]:null;class ve extends p{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==u.ZodParsedType.object)return(0,i.addIssueToContext)(t,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.object,received:t.parsedType}),i.INVALID;const s=this.discriminator,o=t.data[s],a=this.optionsMap.get(o);return a?t.common.async?a._parseAsync({data:t.data,path:t.path,parent:t}):a._parseSync({data:t.data,path:t.path,parent:t}):((0,i.addIssueToContext)(t,{code:c.ZodIssueCode.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[s]}),i.INVALID)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,s){const o=new Map;for(const a of t){const h=_e(a.shape[e]);if(!h)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const l of h){if(o.has(l))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(l)}`);o.set(l,a)}}return new ve({typeName:I.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:o,...f(s)})}}r.ZodDiscriminatedUnion=ve;function Ne(n,e){const t=(0,u.getParsedType)(n),s=(0,u.getParsedType)(e);if(n===e)return{valid:!0,data:n};if(t===u.ZodParsedType.object&&s===u.ZodParsedType.object){const o=u.util.objectKeys(e),a=u.util.objectKeys(n).filter(l=>o.indexOf(l)!==-1),h={...n,...e};for(const l of a){const v=Ne(n[l],e[l]);if(!v.valid)return{valid:!1};h[l]=v.data}return{valid:!0,data:h}}else if(t===u.ZodParsedType.array&&s===u.ZodParsedType.array){if(n.length!==e.length)return{valid:!1};const o=[];for(let a=0;a{if((0,i.isAborted)(a)||(0,i.isAborted)(h))return i.INVALID;const l=Ne(a.value,h.value);return l.valid?(((0,i.isDirty)(a)||(0,i.isDirty)(h))&&t.dirty(),{status:t.value,value:l.data}):((0,i.addIssueToContext)(s,{code:c.ZodIssueCode.invalid_intersection_types}),i.INVALID)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([a,h])=>o(a,h)):o(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}r.ZodIntersection=oe,oe.create=(n,e,t)=>new oe({left:n,right:e,typeName:I.ZodIntersection,...f(t)});class j extends p{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==u.ZodParsedType.array)return(0,i.addIssueToContext)(s,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.array,received:s.parsedType}),i.INVALID;if(s.data.lengththis._def.items.length&&((0,i.addIssueToContext)(s,{code:c.ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const a=[...s.data].map((h,l)=>{const v=this._def.items[l]||this._def.rest;return v?v._parse(new m(s,h,s.path,l)):null}).filter(h=>!!h);return s.common.async?Promise.all(a).then(h=>i.ParseStatus.mergeArray(t,h)):i.ParseStatus.mergeArray(t,a)}get items(){return this._def.items}rest(e){return new j({...this._def,rest:e})}}r.ZodTuple=j,j.create=(n,e)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new j({items:n,typeName:I.ZodTuple,rest:null,...f(e)})};class de extends p{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==u.ZodParsedType.object)return(0,i.addIssueToContext)(s,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.object,received:s.parsedType}),i.INVALID;const o=[],a=this._def.keyType,h=this._def.valueType;for(const l in s.data)o.push({key:a._parse(new m(s,l,s.path,l)),value:h._parse(new m(s,s.data[l],s.path,l))});return s.common.async?i.ParseStatus.mergeObjectAsync(t,o):i.ParseStatus.mergeObjectSync(t,o)}get element(){return this._def.valueType}static create(e,t,s){return t instanceof p?new de({keyType:e,valueType:t,typeName:I.ZodRecord,...f(s)}):new de({keyType:P.create(),valueType:e,typeName:I.ZodRecord,...f(t)})}}r.ZodRecord=de;class ge extends p{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==u.ZodParsedType.map)return(0,i.addIssueToContext)(s,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.map,received:s.parsedType}),i.INVALID;const o=this._def.keyType,a=this._def.valueType,h=[...s.data.entries()].map(([l,v],g)=>({key:o._parse(new m(s,l,s.path,[g,"key"])),value:a._parse(new m(s,v,s.path,[g,"value"]))}));if(s.common.async){const l=new Map;return Promise.resolve().then(async()=>{for(const v of h){const g=await v.key,b=await v.value;if(g.status==="aborted"||b.status==="aborted")return i.INVALID;(g.status==="dirty"||b.status==="dirty")&&t.dirty(),l.set(g.value,b.value)}return{status:t.value,value:l}})}else{const l=new Map;for(const v of h){const g=v.key,b=v.value;if(g.status==="aborted"||b.status==="aborted")return i.INVALID;(g.status==="dirty"||b.status==="dirty")&&t.dirty(),l.set(g.value,b.value)}return{status:t.value,value:l}}}}r.ZodMap=ge,ge.create=(n,e,t)=>new ge({valueType:e,keyType:n,typeName:I.ZodMap,...f(t)});class W extends p{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==u.ZodParsedType.set)return(0,i.addIssueToContext)(s,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.set,received:s.parsedType}),i.INVALID;const o=this._def;o.minSize!==null&&s.data.sizeo.maxSize.value&&((0,i.addIssueToContext)(s,{code:c.ZodIssueCode.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),t.dirty());const a=this._def.valueType;function h(v){const g=new Set;for(const b of v){if(b.status==="aborted")return i.INVALID;b.status==="dirty"&&t.dirty(),g.add(b.value)}return{status:t.value,value:g}}const l=[...s.data.values()].map((v,g)=>a._parse(new m(s,v,s.path,g)));return s.common.async?Promise.all(l).then(v=>h(v)):h(l)}min(e,t){return new W({...this._def,minSize:{value:e,message:d.errorUtil.toString(t)}})}max(e,t){return new W({...this._def,maxSize:{value:e,message:d.errorUtil.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}r.ZodSet=W,W.create=(n,e)=>new W({valueType:n,minSize:null,maxSize:null,typeName:I.ZodSet,...f(e)});class X extends p{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==u.ZodParsedType.function)return(0,i.addIssueToContext)(t,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.function,received:t.parsedType}),i.INVALID;function s(l,v){return(0,i.makeIssue)({data:l,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,_.getErrorMap)(),_.defaultErrorMap].filter(g=>!!g),issueData:{code:c.ZodIssueCode.invalid_arguments,argumentsError:v}})}function o(l,v){return(0,i.makeIssue)({data:l,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,_.getErrorMap)(),_.defaultErrorMap].filter(g=>!!g),issueData:{code:c.ZodIssueCode.invalid_return_type,returnTypeError:v}})}const a={errorMap:t.common.contextualErrorMap},h=t.data;return this._def.returns instanceof F?(0,i.OK)(async(...l)=>{const v=new c.ZodError([]),g=await this._def.args.parseAsync(l,a).catch(Oe=>{throw v.addIssue(s(l,Oe)),v}),b=await h(...g);return await this._def.returns._def.type.parseAsync(b,a).catch(Oe=>{throw v.addIssue(o(b,Oe)),v})}):(0,i.OK)((...l)=>{const v=this._def.args.safeParse(l,a);if(!v.success)throw new c.ZodError([s(l,v.error)]);const g=h(...v.data),b=this._def.returns.safeParse(g,a);if(!b.success)throw new c.ZodError([o(g,b.error)]);return b.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new X({...this._def,args:j.create(e).rest(K.create())})}returns(e){return new X({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,s){return new X({args:e||j.create([]).rest(K.create()),returns:t||K.create(),typeName:I.ZodFunction,...f(s)})}}r.ZodFunction=X;class ue extends p{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}r.ZodLazy=ue,ue.create=(n,e)=>new ue({getter:n,typeName:I.ZodLazy,...f(e)});class ce extends p{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return(0,i.addIssueToContext)(t,{received:t.data,code:c.ZodIssueCode.invalid_literal,expected:this._def.value}),i.INVALID}return{status:"valid",value:e.data}}get value(){return this._def.value}}r.ZodLiteral=ce,ce.create=(n,e)=>new ce({value:n,typeName:I.ZodLiteral,...f(e)});function De(n,e){return new B({values:n,typeName:I.ZodEnum,...f(e)})}class B extends p{_parse(e){if(typeof e.data!="string"){const t=this._getOrReturnCtx(e),s=this._def.values;return(0,i.addIssueToContext)(t,{expected:u.util.joinValues(s),received:t.parsedType,code:c.ZodIssueCode.invalid_type}),i.INVALID}if(this._def.values.indexOf(e.data)===-1){const t=this._getOrReturnCtx(e),s=this._def.values;return(0,i.addIssueToContext)(t,{received:t.data,code:c.ZodIssueCode.invalid_enum_value,options:s}),i.INVALID}return(0,i.OK)(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e){return B.create(e)}exclude(e){return B.create(this.options.filter(t=>!e.includes(t)))}}r.ZodEnum=B,B.create=De;class le extends p{_parse(e){const t=u.util.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(e);if(s.parsedType!==u.ZodParsedType.string&&s.parsedType!==u.ZodParsedType.number){const o=u.util.objectValues(t);return(0,i.addIssueToContext)(s,{expected:u.util.joinValues(o),received:s.parsedType,code:c.ZodIssueCode.invalid_type}),i.INVALID}if(t.indexOf(e.data)===-1){const o=u.util.objectValues(t);return(0,i.addIssueToContext)(s,{received:s.data,code:c.ZodIssueCode.invalid_enum_value,options:o}),i.INVALID}return(0,i.OK)(e.data)}get enum(){return this._def.values}}r.ZodNativeEnum=le,le.create=(n,e)=>new le({values:n,typeName:I.ZodNativeEnum,...f(e)});class F extends p{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==u.ZodParsedType.promise&&t.common.async===!1)return(0,i.addIssueToContext)(t,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.promise,received:t.parsedType}),i.INVALID;const s=t.parsedType===u.ZodParsedType.promise?t.data:Promise.resolve(t.data);return(0,i.OK)(s.then(o=>this._def.type.parseAsync(o,{path:t.path,errorMap:t.common.contextualErrorMap})))}}r.ZodPromise=F,F.create=(n,e)=>new F({type:n,typeName:I.ZodPromise,...f(e)});class A extends p{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===I.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:s}=this._processInputParams(e),o=this._def.effect||null;if(o.type==="preprocess"){const h=o.transform(s.data);return s.common.async?Promise.resolve(h).then(l=>this._def.schema._parseAsync({data:l,path:s.path,parent:s})):this._def.schema._parseSync({data:h,path:s.path,parent:s})}const a={addIssue:h=>{(0,i.addIssueToContext)(s,h),h.fatal?t.abort():t.dirty()},get path(){return s.path}};if(a.addIssue=a.addIssue.bind(a),o.type==="refinement"){const h=l=>{const v=o.refinement(l,a);if(s.common.async)return Promise.resolve(v);if(v instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return l};if(s.common.async===!1){const l=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return l.status==="aborted"?i.INVALID:(l.status==="dirty"&&t.dirty(),h(l.value),{status:t.value,value:l.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(l=>l.status==="aborted"?i.INVALID:(l.status==="dirty"&&t.dirty(),h(l.value).then(()=>({status:t.value,value:l.value}))))}if(o.type==="transform")if(s.common.async===!1){const h=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!(0,i.isValid)(h))return h;const l=o.transform(h.value,a);if(l instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:l}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(h=>(0,i.isValid)(h)?Promise.resolve(o.transform(h.value,a)).then(l=>({status:t.value,value:l})):h);u.util.assertNever(o)}}r.ZodEffects=A,r.ZodTransformer=A,A.create=(n,e,t)=>new A({schema:n,typeName:I.ZodEffects,effect:e,...f(t)}),A.createWithPreprocess=(n,e,t)=>new A({schema:e,effect:{type:"preprocess",transform:n},typeName:I.ZodEffects,...f(t)});class M extends p{_parse(e){return this._getType(e)===u.ZodParsedType.undefined?(0,i.OK)(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}r.ZodOptional=M,M.create=(n,e)=>new M({innerType:n,typeName:I.ZodOptional,...f(e)});class J extends p{_parse(e){return this._getType(e)===u.ZodParsedType.null?(0,i.OK)(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}r.ZodNullable=J,J.create=(n,e)=>new J({innerType:n,typeName:I.ZodNullable,...f(e)});class fe extends p{_parse(e){const{ctx:t}=this._processInputParams(e);let s=t.data;return t.parsedType===u.ZodParsedType.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}r.ZodDefault=fe,fe.create=(n,e)=>new fe({innerType:n,typeName:I.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...f(e)});class Ie extends p{_parse(e){const{ctx:t}=this._processInputParams(e),s={...t,common:{...t.common,issues:[]}},o=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return(0,i.isAsync)(o)?o.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new c.ZodError(s.common.issues)},input:s.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new c.ZodError(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}r.ZodCatch=Ie,Ie.create=(n,e)=>new Ie({innerType:n,typeName:I.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...f(e)});class be extends p{_parse(e){if(this._getType(e)!==u.ZodParsedType.nan){const s=this._getOrReturnCtx(e);return(0,i.addIssueToContext)(s,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.nan,received:s.parsedType}),i.INVALID}return{status:"valid",value:e.data}}}r.ZodNaN=be,be.create=n=>new be({typeName:I.ZodNaN,...f(n)}),r.BRAND=Symbol("zod_brand");class Ve extends p{_parse(e){const{ctx:t}=this._processInputParams(e),s=t.data;return this._def.type._parse({data:s,path:t.path,parent:t})}unwrap(){return this._def.type}}r.ZodBranded=Ve;class he extends p{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return a.status==="aborted"?i.INVALID:a.status==="dirty"?(t.dirty(),(0,i.DIRTY)(a.value)):this._def.out._parseAsync({data:a.value,path:s.path,parent:s})})();{const o=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return o.status==="aborted"?i.INVALID:o.status==="dirty"?(t.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:s.path,parent:s})}}static create(e,t){return new he({in:e,out:t,typeName:I.ZodPipeline})}}r.ZodPipeline=he;const Qe=(n,e={},t)=>n?G.create().superRefine((s,o)=>{var a,h;if(!n(s)){const l=typeof e=="function"?e(s):typeof e=="string"?{message:e}:e,v=(h=(a=l.fatal)!==null&&a!==void 0?a:t)!==null&&h!==void 0?h:!0,g=typeof l=="string"?{message:l}:l;o.addIssue({code:"custom",...g,fatal:v})}}):G.create();r.custom=Qe,r.late={object:Z.lazycreate};var I;(function(n){n.ZodString="ZodString",n.ZodNumber="ZodNumber",n.ZodNaN="ZodNaN",n.ZodBigInt="ZodBigInt",n.ZodBoolean="ZodBoolean",n.ZodDate="ZodDate",n.ZodSymbol="ZodSymbol",n.ZodUndefined="ZodUndefined",n.ZodNull="ZodNull",n.ZodAny="ZodAny",n.ZodUnknown="ZodUnknown",n.ZodNever="ZodNever",n.ZodVoid="ZodVoid",n.ZodArray="ZodArray",n.ZodObject="ZodObject",n.ZodUnion="ZodUnion",n.ZodDiscriminatedUnion="ZodDiscriminatedUnion",n.ZodIntersection="ZodIntersection",n.ZodTuple="ZodTuple",n.ZodRecord="ZodRecord",n.ZodMap="ZodMap",n.ZodSet="ZodSet",n.ZodFunction="ZodFunction",n.ZodLazy="ZodLazy",n.ZodLiteral="ZodLiteral",n.ZodEnum="ZodEnum",n.ZodEffects="ZodEffects",n.ZodNativeEnum="ZodNativeEnum",n.ZodOptional="ZodOptional",n.ZodNullable="ZodNullable",n.ZodDefault="ZodDefault",n.ZodCatch="ZodCatch",n.ZodPromise="ZodPromise",n.ZodBranded="ZodBranded",n.ZodPipeline="ZodPipeline"})(I=r.ZodFirstPartyTypeKind||(r.ZodFirstPartyTypeKind={}));const Ge=(n,e={message:`Input not instance of ${n.name}`})=>(0,r.custom)(t=>t instanceof n,e);r.instanceof=Ge;const Re=P.create;r.string=Re;const Ue=E.create;r.number=Ue;const He=be.create;r.nan=He;const Xe=z.create;r.bigint=Xe;const Me=se.create;r.boolean=Me;const Fe=q.create;r.date=Fe;const et=me.create;r.symbol=et;const tt=ne.create;r.undefined=tt;const rt=ae.create;r.null=rt;const st=G.create;r.any=st;const nt=K.create;r.unknown=nt;const at=U.create;r.never=at;const it=ye.create;r.void=it;const ot=S.create;r.array=ot;const dt=Z.create;r.object=dt;const ut=Z.strictCreate;r.strictObject=ut;const ct=ie.create;r.union=ct;const lt=ve.create;r.discriminatedUnion=lt;const ft=oe.create;r.intersection=ft;const ht=j.create;r.tuple=ht;const pt=de.create;r.record=pt;const mt=ge.create;r.map=mt;const yt=W.create;r.set=yt;const _t=X.create;r.function=_t;const vt=ue.create;r.lazy=vt;const gt=ce.create;r.literal=gt;const It=B.create;r.enum=It;const bt=le.create;r.nativeEnum=bt;const Tt=F.create;r.promise=Tt;const Le=A.create;r.effect=Le,r.transformer=Le;const Zt=M.create;r.optional=Zt;const Ct=J.create;r.nullable=Ct;const kt=A.createWithPreprocess;r.preprocess=kt;const wt=he.create;r.pipeline=wt;const Pt=()=>Re().optional();r.ostring=Pt;const Nt=()=>Ue().optional();r.onumber=Nt;const Ot=()=>Me().optional();r.oboolean=Ot,r.coerce={string:n=>P.create({...n,coerce:!0}),number:n=>E.create({...n,coerce:!0}),boolean:n=>se.create({...n,coerce:!0}),bigint:n=>z.create({...n,coerce:!0}),date:n=>q.create({...n,coerce:!0})},r.NEVER=i.INVALID})(Je);(function(r){var _=C&&C.__createBinding||(Object.create?function(i,u,c,m){m===void 0&&(m=c),Object.defineProperty(i,m,{enumerable:!0,get:function(){return u[c]}})}:function(i,u,c,m){m===void 0&&(m=c),i[m]=u[c]}),d=C&&C.__exportStar||function(i,u){for(var c in i)c!=="default"&&!Object.prototype.hasOwnProperty.call(u,c)&&_(u,i,c)};Object.defineProperty(r,"__esModule",{value:!0}),d(D,r),d(je,r),d(We,r),d(pe,r),d(Je,r),d(V,r)})(Ee);(function(r){var _=C&&C.__createBinding||(Object.create?function(m,y,f,p){p===void 0&&(p=f),Object.defineProperty(m,p,{enumerable:!0,get:function(){return y[f]}})}:function(m,y,f,p){p===void 0&&(p=f),m[p]=y[f]}),d=C&&C.__setModuleDefault||(Object.create?function(m,y){Object.defineProperty(m,"default",{enumerable:!0,value:y})}:function(m,y){m.default=y}),i=C&&C.__importStar||function(m){if(m&&m.__esModule)return m;var y={};if(m!=null)for(var f in m)f!=="default"&&Object.prototype.hasOwnProperty.call(m,f)&&_(y,m,f);return d(y,m),y},u=C&&C.__exportStar||function(m,y){for(var f in m)f!=="default"&&!Object.prototype.hasOwnProperty.call(y,f)&&_(y,m,f)};Object.defineProperty(r,"__esModule",{value:!0}),r.z=void 0;const c=i(Ee);r.z=c,u(Ee,r),r.default=c})(ze);Object.defineProperty(re,"__esModule",{value:!0});re.parseExecution=re.validateType=void 0;const Q=ze,Se=Ae,Vt=Q.z.object({connectorType:Q.z.enum(Se.connectorNames),settings:Q.z.record(Q.z.string()),methodName:Q.z.string(),params:Q.z.record(Q.z.any())});function te(r,_){return r.type==="string"?typeof _=="string":r.type==="options"?typeof _=="string"&&r.values.includes(_):r.type==="number"?typeof _=="number":r.type==="boolean"?typeof _=="boolean":r.type==="object"?typeof _=="object"&&Object.keys(r.values).every(d=>_&&d in _&&te(r.values[d],_[d])):r.type==="array"?Array.isArray(_)&&_.every(d=>te(r.items,d)):r.type==="union"?r.values.some(d=>te(d,_)):r.type==="any"}re.validateType=te;function Rt(r){try{const _=Vt.parse(r);if(!(_.connectorType in Se.schema))throw new Error(`Invalid connector: ${_.connectorType}`);const d=_.connectorType,i=Se.schema[d];if(Object.keys(_.settings).map(f=>f in i.settings).includes(!1))throw new Error("Invalid settings - Extra settings provided");const u={};for(const f in i.settings)if(f in _.settings)if(te(i.settings[f],_.settings[f]))u[f]=_.settings[f];else throw new Error(`Invalid setting: ${f}`);else if(i.settings[f].required)throw new Error(`Missing setting: ${f}`);if(!(_.methodName in i.methods))throw new Error(`Invalid method: ${_.methodName}`);const c=_.methodName,m=i.methods[c];if(Object.keys(_.params).map(f=>f in m.params).includes(!1))throw new Error("Invalid params - Extra params provided");const y={};for(const f in m.params)if(f in _.params)if(te(m.params[f],_.params[f]))y[f]=_.params[f];else throw new Error(`Invalid param: ${f}`);else if(m.params[f].required)throw new Error(`Missing param: ${f}`);return{result:{connectorType:d,methodName:c,params:y,settings:u}}}catch(_){return{error:_.message}}}re.parseExecution=Rt;(function(r){var _=C&&C.__createBinding||(Object.create?function(i,u,c,m){m===void 0&&(m=c);var y=Object.getOwnPropertyDescriptor(u,c);(!y||("get"in y?!u.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return u[c]}}),Object.defineProperty(i,m,y)}:function(i,u,c,m){m===void 0&&(m=c),i[m]=u[c]}),d=C&&C.__exportStar||function(i,u){for(var c in i)c!=="default"&&!Object.prototype.hasOwnProperty.call(u,c)&&_(u,i,c)};Object.defineProperty(r,"__esModule",{value:!0}),d($e,r),d(Ae,r),d(re,r)})(Et);export{Et as b}; +//# sourceMappingURL=index.7fea4022.js.map diff --git a/abstra_statics/dist/assets/javascript.faa450b6.js b/abstra_statics/dist/assets/javascript.15f651ca.js similarity index 64% rename from abstra_statics/dist/assets/javascript.faa450b6.js rename to abstra_statics/dist/assets/javascript.15f651ca.js index ac6cd589c7..955f221e2a 100644 --- a/abstra_statics/dist/assets/javascript.faa450b6.js +++ b/abstra_statics/dist/assets/javascript.15f651ca.js @@ -1,7 +1,7 @@ -import{conf as i,language as e}from"./typescript.71d17c95.js";import"./editor.main.aa43f13b.js";import"./registerWidgets.3fe0df5a.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="7bd61d52-af75-4cf6-86cd-9812c8d765ec",t._sentryDebugIdIdentifier="sentry-dbid-7bd61d52-af75-4cf6-86cd-9812c8d765ec")}catch{}})();/*!----------------------------------------------------------------------------- +import{conf as i,language as e}from"./typescript.b253befb.js";import"./editor.main.2331c6e5.js";import"./registerWidgets.cb3a7b8d.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="724e6d28-9b8d-4993-a7e7-f874414759f8",t._sentryDebugIdIdentifier="sentry-dbid-724e6d28-9b8d-4993-a7e7-f874414759f8")}catch{}})();/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var a=i,c={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:e.operators,symbols:e.symbols,escapes:e.escapes,digits:e.digits,octaldigits:e.octaldigits,binarydigits:e.binarydigits,hexdigits:e.hexdigits,regexpctl:e.regexpctl,regexpesc:e.regexpesc,tokenizer:e.tokenizer};export{a as conf,c as language}; -//# sourceMappingURL=javascript.faa450b6.js.map + *-----------------------------------------------------------------------------*/var a=i,f={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:e.operators,symbols:e.symbols,escapes:e.escapes,digits:e.digits,octaldigits:e.octaldigits,binarydigits:e.binarydigits,hexdigits:e.hexdigits,regexpctl:e.regexpctl,regexpesc:e.regexpesc,tokenizer:e.tokenizer};export{a as conf,f as language}; +//# sourceMappingURL=javascript.15f651ca.js.map diff --git a/abstra_statics/dist/assets/jobs.99d61147.js b/abstra_statics/dist/assets/jobs.d0693d2f.js similarity index 77% rename from abstra_statics/dist/assets/jobs.99d61147.js rename to abstra_statics/dist/assets/jobs.d0693d2f.js index d0e47fe5f7..b66ff794e8 100644 --- a/abstra_statics/dist/assets/jobs.99d61147.js +++ b/abstra_statics/dist/assets/jobs.d0693d2f.js @@ -1,2 +1,2 @@ -var n=Object.defineProperty;var o=(s,e,t)=>e in s?n(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var i=(s,e,t)=>(o(s,typeof e!="symbol"?e+"":e,t),t);import{A as c}from"./activeRecord.2bc1b71f.js";import"./registerWidgets.3fe0df5a.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="dbd2e254-c997-4f31-863f-aea0a8c478fa",s._sentryDebugIdIdentifier="sentry-dbid-dbd2e254-c997-4f31-863f-aea0a8c478fa")}catch{}})();class d{async list(){return await(await fetch("/_editor/api/jobs")).json()}async create(){return await(await fetch("/_editor/api/jobs",{method:"POST",headers:{"Content-Type":"application/json"}})).json()}async get(e){return await(await fetch(`/_editor/api/jobs/${e}`)).json()}async update(e,t){return await(await fetch(`/_editor/api/jobs/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})).json()}async delete(e){await fetch(`/_editor/api/jobs/${e}`,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async test(e){return(await fetch(`/_editor/api/jobs/${e}/test`,{method:"POST",headers:{"Content-Type":"application/json"}})).json()}}const r=new d;class a{constructor(e){i(this,"record");this.record=c.create(r,e,"identifier")}static async list(){return(await r.list()).map(t=>new a(t))}static async create(){const e=await r.create();return new a(e)}static async get(e){const t=await r.get(e);return new a(t)}async delete(){await r.delete(this.identifier)}async duplicate(){return this}async save(){await this.record.save()}onUpdate(e){this.record.pubsub.subscribe("update",e)}hasChanges(){return this.record.hasChanges()}get schedule(){return this.record.get("schedule")}set schedule(e){this.record.set("schedule",e)}get title(){return this.record.get("title")}get file(){return this.record.get("file")}set file(e){this.record.set("file",e)}get identifier(){return this.record.get("identifier")}set identifier(e){this.record.set("identifier",e)}async test(){return r.test(this.identifier)}get routeName(){return"job"}}export{a as J}; -//# sourceMappingURL=jobs.99d61147.js.map +var n=Object.defineProperty;var o=(s,e,t)=>e in s?n(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var i=(s,e,t)=>(o(s,typeof e!="symbol"?e+"":e,t),t);import{A as d}from"./activeRecord.adfc6223.js";import"./registerWidgets.cb3a7b8d.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="ad98d06b-e9ee-49af-9054-7b089d7411e5",s._sentryDebugIdIdentifier="sentry-dbid-ad98d06b-e9ee-49af-9054-7b089d7411e5")}catch{}})();class c{async list(){return await(await fetch("/_editor/api/jobs")).json()}async create(){return await(await fetch("/_editor/api/jobs",{method:"POST",headers:{"Content-Type":"application/json"}})).json()}async get(e){return await(await fetch(`/_editor/api/jobs/${e}`)).json()}async update(e,t){return await(await fetch(`/_editor/api/jobs/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})).json()}async delete(e){await fetch(`/_editor/api/jobs/${e}`,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async test(e){return(await fetch(`/_editor/api/jobs/${e}/test`,{method:"POST",headers:{"Content-Type":"application/json"}})).json()}}const r=new c;class a{constructor(e){i(this,"record");this.record=d.create(r,e,"identifier")}static async list(){return(await r.list()).map(t=>new a(t))}static async create(){const e=await r.create();return new a(e)}static async get(e){const t=await r.get(e);return new a(t)}async delete(){await r.delete(this.identifier)}async duplicate(){return this}async save(){await this.record.save()}onUpdate(e){this.record.pubsub.subscribe("update",e)}hasChanges(){return this.record.hasChanges()}get schedule(){return this.record.get("schedule")}set schedule(e){this.record.set("schedule",e)}get title(){return this.record.get("title")}get file(){return this.record.get("file")}set file(e){this.record.set("file",e)}get identifier(){return this.record.get("identifier")}set identifier(e){this.record.set("identifier",e)}async test(){return r.test(this.identifier)}get routeName(){return"job"}}export{a as J}; +//# sourceMappingURL=jobs.d0693d2f.js.map diff --git a/abstra_statics/dist/assets/jsonMode.437d5ffb.js b/abstra_statics/dist/assets/jsonMode.5e64dbdf.js similarity index 99% rename from abstra_statics/dist/assets/jsonMode.437d5ffb.js rename to abstra_statics/dist/assets/jsonMode.5e64dbdf.js index 0c55d1cbc9..956963f576 100644 --- a/abstra_statics/dist/assets/jsonMode.437d5ffb.js +++ b/abstra_statics/dist/assets/jsonMode.5e64dbdf.js @@ -1,4 +1,4 @@ -var Ge=Object.defineProperty;var Qe=(e,n,i)=>n in e?Ge(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var A=(e,n,i)=>(Qe(e,typeof n!="symbol"?n+"":n,i),i);import{m as Ze}from"./editor.main.aa43f13b.js";import"./registerWidgets.3fe0df5a.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c0363df1-5816-4544-ab6c-ca812a6708c7",e._sentryDebugIdIdentifier="sentry-dbid-c0363df1-5816-4544-ab6c-ca812a6708c7")}catch{}})();/*!----------------------------------------------------------------------------- +var Ge=Object.defineProperty;var Qe=(e,n,i)=>n in e?Ge(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var A=(e,n,i)=>(Qe(e,typeof n!="symbol"?n+"":n,i),i);import{m as Ze}from"./editor.main.2331c6e5.js";import"./registerWidgets.cb3a7b8d.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="959459e1-c20a-4354-a9b9-b4a514720368",e._sentryDebugIdIdentifier="sentry-dbid-959459e1-c20a-4354-a9b9-b4a514720368")}catch{}})();/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license @@ -9,4 +9,4 @@ var Ge=Object.defineProperty;var Qe=(e,n,i)=>n in e?Ge(e,n,{enumerable:!0,config `+e.value+"\n```\n"}}function pt(e){if(!!e)return Array.isArray(e)?e.map(We):[We(e)]}var qt=class{constructor(e){this._worker=e}provideDocumentHighlights(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDocumentHighlights(r.toString(),L(n))).then(t=>{if(!!t)return t.map(a=>({range:y(a.range),kind:_t(a.kind)}))})}};function _t(e){switch(e){case U.Read:return l.languages.DocumentHighlightKind.Read;case U.Write:return l.languages.DocumentHighlightKind.Write;case U.Text:return l.languages.DocumentHighlightKind.Text}return l.languages.DocumentHighlightKind.Text}var Xt=class{constructor(e){this._worker=e}provideDefinition(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDefinition(r.toString(),L(n))).then(t=>{if(!!t)return[qe(t)]})}};function qe(e){return{uri:l.Uri.parse(e.uri),range:y(e.range)}}var Jt=class{constructor(e){this._worker=e}provideReferences(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.findReferences(t.toString(),L(n))).then(a=>{if(!!a)return a.map(qe)})}},Yt=class{constructor(e){this._worker=e}provideRenameEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doRename(t.toString(),L(n),i)).then(a=>mt(a))}};function mt(e){if(!e||!e.changes)return;let n=[];for(let i in e.changes){const r=l.Uri.parse(i);for(let t of e.changes[i])n.push({resource:r,versionId:void 0,textEdit:{range:y(t.range),text:t.newText}})}return{edits:n}}var kt=class{constructor(e){this._worker=e}provideDocumentSymbols(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentSymbols(i.toString())).then(r=>{if(!!r)return r.map(t=>({name:t.name,detail:"",containerName:t.containerName,kind:wt(t.kind),range:y(t.location.range),selectionRange:y(t.location.range),tags:[]}))})}};function wt(e){let n=l.languages.SymbolKind;switch(e){case _.File:return n.Array;case _.Module:return n.Module;case _.Namespace:return n.Namespace;case _.Package:return n.Package;case _.Class:return n.Class;case _.Method:return n.Method;case _.Property:return n.Property;case _.Field:return n.Field;case _.Constructor:return n.Constructor;case _.Enum:return n.Enum;case _.Interface:return n.Interface;case _.Function:return n.Function;case _.Variable:return n.Variable;case _.Constant:return n.Constant;case _.String:return n.String;case _.Number:return n.Number;case _.Boolean:return n.Boolean;case _.Array:return n.Array}return n.Function}var $t=class{constructor(e){this._worker=e}provideLinks(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentLinks(i.toString())).then(r=>{if(!!r)return{links:r.map(t=>({range:y(t.range),url:t.target}))}})}},bt=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.format(r.toString(),null,Xe(n)).then(a=>{if(!(!a||a.length===0))return a.map(X)}))}},Ct=class{constructor(e){this._worker=e}provideDocumentRangeFormattingEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.format(t.toString(),Be(n),Xe(i)).then(s=>{if(!(!s||s.length===0))return s.map(X)}))}};function Xe(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var Et=class{constructor(e){this._worker=e}provideDocumentColors(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentColors(i.toString())).then(r=>{if(!!r)return r.map(t=>({color:t.color,range:y(t.range)}))})}provideColorPresentations(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getColorPresentations(r.toString(),n.color,Be(n.range))).then(t=>{if(!!t)return t.map(a=>{let s={label:a.label};return a.textEdit&&(s.textEdit=X(a.textEdit)),a.additionalTextEdits&&(s.additionalTextEdits=a.additionalTextEdits.map(X)),s})})}},At=class{constructor(e){this._worker=e}provideFoldingRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getFoldingRanges(r.toString(),n)).then(t=>{if(!!t)return t.map(a=>{const s={start:a.startLine+1,end:a.endLine+1};return typeof a.kind<"u"&&(s.kind=yt(a.kind)),s})})}};function yt(e){switch(e){case W.Comment:return l.languages.FoldingRangeKind.Comment;case W.Imports:return l.languages.FoldingRangeKind.Imports;case W.Region:return l.languages.FoldingRangeKind.Region}}var It=class{constructor(e){this._worker=e}provideSelectionRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getSelectionRanges(r.toString(),n.map(L))).then(t=>{if(!!t)return t.map(a=>{const s=[];for(;a;)s.push({range:y(a.range)}),a=a.parent;return s})})}};function St(e,n){n===void 0&&(n=!1);var i=e.length,r=0,t="",a=0,s=16,u=0,c=0,d=0,v=0,g=0;function b(f,C){for(var I=0,E=0;I=48&&k<=57)E=E*16+k-48;else if(k>=65&&k<=70)E=E*16+k-65+10;else if(k>=97&&k<=102)E=E*16+k-97+10;else break;r++,I++}return I=i){f+=e.substring(C,r),g=2;break}var I=e.charCodeAt(r);if(I===34){f+=e.substring(C,r),r++;break}if(I===92){if(f+=e.substring(C,r),r++,r>=i){g=2;break}var E=e.charCodeAt(r++);switch(E){case 34:f+='"';break;case 92:f+="\\";break;case 47:f+="/";break;case 98:f+="\b";break;case 102:f+="\f";break;case 110:f+=` `;break;case 114:f+="\r";break;case 116:f+=" ";break;case 117:var k=b(4,!0);k>=0?f+=String.fromCharCode(k):g=4;break;default:g=5}C=r;continue}if(I>=0&&I<=31)if(F(I)){f+=e.substring(C,r),g=2;break}else g=6;r++}return f}function j(){if(t="",g=0,a=r,c=u,v=d,r>=i)return a=i,s=17;var f=e.charCodeAt(r);if(ee(f)){do r++,t+=String.fromCharCode(f),f=e.charCodeAt(r);while(ee(f));return s=15}if(F(f))return r++,t+=String.fromCharCode(f),f===13&&e.charCodeAt(r)===10&&(r++,t+=` `),u++,d=r,s=14;switch(f){case 123:return r++,s=1;case 125:return r++,s=2;case 91:return r++,s=3;case 93:return r++,s=4;case 58:return r++,s=6;case 44:return r++,s=5;case 34:return r++,t=M(),s=10;case 47:var C=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r=12&&f<=15);return f}return{setPosition:h,getPosition:function(){return r},scan:n?$e:j,getToken:function(){return s},getTokenValue:function(){return t},getTokenOffset:function(){return a},getTokenLength:function(){return r-a},getTokenStartLine:function(){return c},getTokenStartCharacter:function(){return a-v},getTokenError:function(){return g}}}function ee(e){return e===32||e===9||e===11||e===12||e===160||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function F(e){return e===10||e===13||e===8232||e===8233}function R(e){return e>=48&&e<=57}var Ue;(function(e){e.DEFAULT={allowTrailingComma:!1}})(Ue||(Ue={}));var Tt=St;function Dt(e){return{getInitialState:()=>new K(null,null,!1,null),tokenize:(n,i)=>Wt(e,n,i)}}var Ve="delimiter.bracket.json",He="delimiter.array.json",Pt="delimiter.colon.json",Lt="delimiter.comma.json",Mt="keyword.json",Rt="keyword.json",Nt="string.value.json",Ot="number.json",xt="string.key.json",jt="comment.block.json",Ft="comment.line.json",O=class{constructor(e,n){this.parent=e,this.type=n}static pop(e){return e?e.parent:null}static push(e,n){return new O(e,n)}static equals(e,n){if(!e&&!n)return!0;if(!e||!n)return!1;for(;e&&n;){if(e===n)return!0;if(e.type!==n.type)return!1;e=e.parent,n=n.parent}return!0}},K=class{constructor(e,n,i,r){A(this,"_state");A(this,"scanError");A(this,"lastWasColon");A(this,"parents");this._state=e,this.scanError=n,this.lastWasColon=i,this.parents=r}clone(){return new K(this._state,this.scanError,this.lastWasColon,this.parents)}equals(e){return e===this?!0:!e||!(e instanceof K)?!1:this.scanError===e.scanError&&this.lastWasColon===e.lastWasColon&&O.equals(this.parents,e.parents)}getStateData(){return this._state}setStateData(e){this._state=e}};function Wt(e,n,i,r=0){let t=0,a=!1;switch(i.scanError){case 2:n='"'+n,t=1;break;case 1:n="/*"+n,t=2;break}const s=Tt(n);let u=i.lastWasColon,c=i.parents;const d={tokens:[],endState:i.clone()};for(;;){let v=r+s.getPosition(),g="";const b=s.scan();if(b===17)break;if(v===r+s.getPosition())throw new Error("Scanner did not advance, next 3 characters are: "+n.substr(s.getPosition(),3));switch(a&&(v-=t),a=t>0,b){case 1:c=O.push(c,0),g=Ve,u=!1;break;case 2:c=O.pop(c),g=Ve,u=!1;break;case 3:c=O.push(c,1),g=He,u=!1;break;case 4:c=O.pop(c),g=He,u=!1;break;case 6:g=Pt,u=!0;break;case 5:g=Lt,u=!1;break;case 8:case 9:g=Mt,u=!1;break;case 7:g=Rt,u=!1;break;case 10:const S=(c?c.type:0)===1;g=u||S?Nt:xt,u=!1;break;case 11:g=Ot,u=!1;break}if(e)switch(b){case 12:g=Ft;break;case 13:g=jt;break}d.endState=new K(i.getStateData(),s.getTokenError(),u,c),d.tokens.push({startIndex:v,scopes:g})}return d}var Ut=class extends ot{constructor(e,n,i){super(e,n,i.onDidChange),this._disposables.push(l.editor.onWillDisposeModel(r=>{this._resetSchema(r.uri)})),this._disposables.push(l.editor.onDidChangeModelLanguage(r=>{this._resetSchema(r.model.uri)}))}_resetSchema(e){this._worker().then(n=>{n.resetSchema(e.toString())})}};function Gt(e){const n=[],i=[],r=new at(e);n.push(r);const t=(...u)=>r.getLanguageServiceWorker(...u);function a(){const{languageId:u,modeConfiguration:c}=e;Je(i),c.documentFormattingEdits&&i.push(l.languages.registerDocumentFormattingEditProvider(u,new bt(t))),c.documentRangeFormattingEdits&&i.push(l.languages.registerDocumentRangeFormattingEditProvider(u,new Ct(t))),c.completionItems&&i.push(l.languages.registerCompletionItemProvider(u,new dt(t,[" ",":",'"']))),c.hovers&&i.push(l.languages.registerHoverProvider(u,new ht(t))),c.documentSymbols&&i.push(l.languages.registerDocumentSymbolProvider(u,new kt(t))),c.tokens&&i.push(l.languages.setTokensProvider(u,Dt(!0))),c.colors&&i.push(l.languages.registerColorProvider(u,new Et(t))),c.foldingRanges&&i.push(l.languages.registerFoldingRangeProvider(u,new At(t))),c.diagnostics&&i.push(new Ut(u,t,e)),c.selectionRanges&&i.push(l.languages.registerSelectionRangeProvider(u,new It(t)))}a(),n.push(l.languages.setLanguageConfiguration(e.languageId,Vt));let s=e.modeConfiguration;return e.onDidChange(u=>{u.modeConfiguration!==s&&(s=u.modeConfiguration,a())}),n.push(ze(i)),ze(n)}function ze(e){return{dispose:()=>Je(e)}}function Je(e){for(;e.length;)e.pop().dispose()}var Vt={wordPattern:/(-?\d*\.\d\w*)|([^\[\{\]\}\:\"\,\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:'"',close:'"',notIn:["string"]}]};export{dt as CompletionAdapter,Xt as DefinitionAdapter,ot as DiagnosticsAdapter,Et as DocumentColorAdapter,bt as DocumentFormattingEditProvider,qt as DocumentHighlightAdapter,$t as DocumentLinkAdapter,Ct as DocumentRangeFormattingEditProvider,kt as DocumentSymbolAdapter,At as FoldingRangeAdapter,ht as HoverAdapter,Jt as ReferenceAdapter,Yt as RenameAdapter,It as SelectionRangeAdapter,at as WorkerManager,L as fromPosition,Be as fromRange,Gt as setupMode,y as toRange,X as toTextEdit}; -//# sourceMappingURL=jsonMode.437d5ffb.js.map +//# sourceMappingURL=jsonMode.5e64dbdf.js.map diff --git a/abstra_statics/dist/assets/liquid.daa84413.js b/abstra_statics/dist/assets/liquid.7ed43a30.js similarity index 89% rename from abstra_statics/dist/assets/liquid.daa84413.js rename to abstra_statics/dist/assets/liquid.7ed43a30.js index 281ce5d137..3560586611 100644 --- a/abstra_statics/dist/assets/liquid.daa84413.js +++ b/abstra_statics/dist/assets/liquid.7ed43a30.js @@ -1,7 +1,7 @@ -import{m as d}from"./editor.main.aa43f13b.js";import"./registerWidgets.3fe0df5a.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="f1e80c5a-7829-4e06-aabe-9d7851841067",t._sentryDebugIdIdentifier="sentry-dbid-f1e80c5a-7829-4e06-aabe-9d7851841067")}catch{}})();/*!----------------------------------------------------------------------------- +import{m as d}from"./editor.main.2331c6e5.js";import"./registerWidgets.cb3a7b8d.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="dd683e9b-7c9a-4979-a3b3-7fababf18587",t._sentryDebugIdIdentifier="sentry-dbid-dd683e9b-7c9a-4979-a3b3-7fababf18587")}catch{}})();/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var s=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,m=Object.prototype.hasOwnProperty,a=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of c(e))!m.call(t,r)&&r!==i&&s(t,r,{get:()=>e[r],enumerable:!(o=u(e,r))||o.enumerable});return t},p=(t,e,i)=>(a(t,e,"default"),i&&a(i,e,"default")),n={};p(n,d);var l=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],g={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,brackets:[[""],["<",">"],["{{","}}"],["{%","%}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"%",close:"%"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:n.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:n.languages.IndentAction.Indent}}]},b={defaultToken:"",tokenPostfix:"",builtinTags:["if","else","elseif","endif","render","assign","capture","endcapture","case","endcase","comment","endcomment","cycle","decrement","for","endfor","include","increment","layout","raw","endraw","render","tablerow","endtablerow","unless","endunless"],builtinFilters:["abs","append","at_least","at_most","capitalize","ceil","compact","date","default","divided_by","downcase","escape","escape_once","first","floor","join","json","last","lstrip","map","minus","modulo","newline_to_br","plus","prepend","remove","remove_first","replace","replace_first","reverse","round","rstrip","size","slice","sort","sort_natural","split","strip","strip_html","strip_newlines","times","truncate","truncatewords","uniq","upcase","url_decode","url_encode","where"],constants:["true","false"],operators:["==","!=",">","<",">=","<="],symbol:/[=>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[//,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],liquidState:[[/\{\{/,"delimiter.output.liquid"],[/\}\}/,{token:"delimiter.output.liquid",switchTo:"@$S2.$S3"}],[/\{\%/,"delimiter.tag.liquid"],[/raw\s*\%\}/,"delimiter.tag.liquid","@liquidRaw"],[/\%\}/,{token:"delimiter.tag.liquid",switchTo:"@$S2.$S3"}],{include:"liquidRoot"}],liquidRaw:[[/^(?!\{\%\s*endraw\s*\%\}).+/],[/\{\%/,"delimiter.tag.liquid"],[/@identifier/],[/\%\}/,{token:"delimiter.tag.liquid",next:"@root"}]],liquidRoot:[[/\d+(\.\d+)?/,"number.liquid"],[/"[^"]*"/,"string.liquid"],[/'[^']*'/,"string.liquid"],[/\s+/],[/@symbol/,{cases:{"@operators":"operator.liquid","@default":""}}],[/\./],[/@identifier/,{cases:{"@constants":"keyword.liquid","@builtinFilters":"predefined.liquid","@builtinTags":"predefined.liquid","@default":"variable.liquid"}}],[/[^}|%]/,"variable.liquid"]]}};export{g as conf,b as language}; -//# sourceMappingURL=liquid.daa84413.js.map + *-----------------------------------------------------------------------------*/var s=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,m=Object.prototype.hasOwnProperty,a=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of c(e))!m.call(t,r)&&r!==i&&s(t,r,{get:()=>e[r],enumerable:!(o=u(e,r))||o.enumerable});return t},p=(t,e,i)=>(a(t,e,"default"),i&&a(i,e,"default")),n={};p(n,d);var l=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],f={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,brackets:[[""],["<",">"],["{{","}}"],["{%","%}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"%",close:"%"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:n.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:n.languages.IndentAction.Indent}}]},g={defaultToken:"",tokenPostfix:"",builtinTags:["if","else","elseif","endif","render","assign","capture","endcapture","case","endcase","comment","endcomment","cycle","decrement","for","endfor","include","increment","layout","raw","endraw","render","tablerow","endtablerow","unless","endunless"],builtinFilters:["abs","append","at_least","at_most","capitalize","ceil","compact","date","default","divided_by","downcase","escape","escape_once","first","floor","join","json","last","lstrip","map","minus","modulo","newline_to_br","plus","prepend","remove","remove_first","replace","replace_first","reverse","round","rstrip","size","slice","sort","sort_natural","split","strip","strip_html","strip_newlines","times","truncate","truncatewords","uniq","upcase","url_decode","url_encode","where"],constants:["true","false"],operators:["==","!=",">","<",">=","<="],symbol:/[=>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[//,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],liquidState:[[/\{\{/,"delimiter.output.liquid"],[/\}\}/,{token:"delimiter.output.liquid",switchTo:"@$S2.$S3"}],[/\{\%/,"delimiter.tag.liquid"],[/raw\s*\%\}/,"delimiter.tag.liquid","@liquidRaw"],[/\%\}/,{token:"delimiter.tag.liquid",switchTo:"@$S2.$S3"}],{include:"liquidRoot"}],liquidRaw:[[/^(?!\{\%\s*endraw\s*\%\}).+/],[/\{\%/,"delimiter.tag.liquid"],[/@identifier/],[/\%\}/,{token:"delimiter.tag.liquid",next:"@root"}]],liquidRoot:[[/\d+(\.\d+)?/,"number.liquid"],[/"[^"]*"/,"string.liquid"],[/'[^']*'/,"string.liquid"],[/\s+/],[/@symbol/,{cases:{"@operators":"operator.liquid","@default":""}}],[/\./],[/@identifier/,{cases:{"@constants":"keyword.liquid","@builtinFilters":"predefined.liquid","@builtinTags":"predefined.liquid","@default":"variable.liquid"}}],[/[^}|%]/,"variable.liquid"]]}};export{f as conf,g as language}; +//# sourceMappingURL=liquid.7ed43a30.js.map diff --git a/abstra_statics/dist/assets/login.7c65daa3.js b/abstra_statics/dist/assets/login.ce8787fb.js similarity index 71% rename from abstra_statics/dist/assets/login.7c65daa3.js rename to abstra_statics/dist/assets/login.ce8787fb.js index e1d8208e5e..09f718c796 100644 --- a/abstra_statics/dist/assets/login.7c65daa3.js +++ b/abstra_statics/dist/assets/login.ce8787fb.js @@ -1,2 +1,2 @@ -import"./registerWidgets.3fe0df5a.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="d0f928f4-49ab-4ee8-b7d3-9ef0687169d5",n._sentryDebugIdIdentifier="sentry-dbid-d0f928f4-49ab-4ee8-b7d3-9ef0687169d5")}catch{}})();class s{async get(){return(await fetch("/_editor/api/login")).json()}async create(e){return(await fetch("/_editor/api/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:e})})).json()}async delete(){await fetch("/_editor/api/login",{method:"DELETE"})}}const r=new s;class o{constructor(e,t){this.projectId=e,this.authorId=t}static async get(){const e=await r.get();return e.logged?new o(e.project_id,e.author_id):null}static async create(e){const t=await r.create(e);if(!t.logged)throw new Error("Failed to login");return new o(t.project_id,t.author_id)}async delete(){return r.delete()}}export{o as L}; -//# sourceMappingURL=login.7c65daa3.js.map +import"./registerWidgets.cb3a7b8d.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="f896119f-085f-4346-9afb-9609b903f936",n._sentryDebugIdIdentifier="sentry-dbid-f896119f-085f-4346-9afb-9609b903f936")}catch{}})();class s{async get(){return(await fetch("/_editor/api/login")).json()}async create(e){return(await fetch("/_editor/api/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:e})})).json()}async delete(){await fetch("/_editor/api/login",{method:"DELETE"})}}const r=new s;class o{constructor(e,t){this.projectId=e,this.authorId=t}static async get(){const e=await r.get();return e.logged?new o(e.project_id,e.author_id):null}static async create(e){const t=await r.create(e);if(!t.logged)throw new Error("Failed to login");return new o(t.project_id,t.author_id)}async delete(){return r.delete()}}export{o as L}; +//# sourceMappingURL=login.ce8787fb.js.map diff --git a/abstra_statics/dist/assets/lottie.8f58e4c7.js b/abstra_statics/dist/assets/lottie.234eb92e.js similarity index 99% rename from abstra_statics/dist/assets/lottie.8f58e4c7.js rename to abstra_statics/dist/assets/lottie.234eb92e.js index 6d0eff52d7..4584e6ba0c 100644 --- a/abstra_statics/dist/assets/lottie.8f58e4c7.js +++ b/abstra_statics/dist/assets/lottie.234eb92e.js @@ -1,4 +1,4 @@ -import{p as commonjsGlobal}from"./registerWidgets.3fe0df5a.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="5c3a804d-87d5-437a-8838-e513156e13b4",t._sentryDebugIdIdentifier="sentry-dbid-5c3a804d-87d5-437a-8838-e513156e13b4")}catch{}})();var lottie={exports:{}};(function(module,exports){typeof navigator<"u"&&function(t,e){module.exports=e()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var r,i=t.length,s;for(r=0;r1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(t,e){var r=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);return r[2]+=e,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(t,e){var r=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);return r[0]+=e/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var t=[],e,r;for(e=0;e<256;e+=1)r=e.toString(16),t[e]=r.length===1?"0"+r:r;return function(i,s,a){return i<0&&(i=0),s<0&&(s=0),a<0&&(a=0),"#"+t[i]+t[s]+t[a]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(e){expressionsInterfaces=e},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(r){return typeof r}:_typeof$5=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$5(t)}var dataManager=function(){var t=1,e=[],r,i,s={onmessage:function(){},postMessage:function(P){r({data:P})}},a={postMessage:function(P){s.onmessage({data:P})}};function n(c){if(window.Worker&&window.Blob&&getWebWorker()){var P=new Blob(["var _workerSelf = self; self.onmessage = ",c.toString()],{type:"text/javascript"}),v=URL.createObjectURL(P);return new Worker(v)}return r=c,s}function p(){i||(i=n(function(P){function v(){function x(w,M){var A,S,T=w.length,V,F,G,N;for(S=0;S=0;M-=1)if(w[M].ty==="sh")if(w[M].ks.k.i)g(w[M].ks.k);else for(T=w[M].ks.k.length,S=0;SA[0]?!0:A[0]>w[0]?!1:w[1]>A[1]?!0:A[1]>w[1]?!1:w[2]>A[2]?!0:A[2]>w[2]?!1:null}var E=function(){var w=[4,4,14];function M(S){var T=S.t.d;S.t.d={k:[{s:T,t:0}]}}function A(S){var T,V=S.length;for(T=0;T=0;T-=1)if(S[T].ty==="sh")if(S[T].ks.k.i)S[T].ks.k.c=S[T].closed;else for(G=S[T].ks.k.length,F=0;F500)&&(this._imageLoaded(),clearInterval(l)),u+=1}.bind(this),50)}function a(o){var u=i(o,this.assetsPath,this.path),l=createNS("image");isSafari?this.testImageLoaded(l):l.addEventListener("load",this._imageLoaded,!1),l.addEventListener("error",function(){h.img=t,this._imageLoaded()}.bind(this),!1),l.setAttributeNS("http://www.w3.org/1999/xlink","href",u),this._elementHelper.append?this._elementHelper.append(l):this._elementHelper.appendChild(l);var h={img:l,assetData:o};return h}function n(o){var u=i(o,this.assetsPath,this.path),l=createTag("img");l.crossOrigin="anonymous",l.addEventListener("load",this._imageLoaded,!1),l.addEventListener("error",function(){h.img=t,this._imageLoaded()}.bind(this),!1),l.src=u;var h={img:l,assetData:o};return h}function p(o){var u={assetData:o},l=i(o,this.assetsPath,this.path);return dataManager.loadData(l,function(h){u.img=h,this._footageLoaded()}.bind(this),function(){u.img={},this._footageLoaded()}.bind(this)),u}function f(o,u){this.imagesLoadedCb=u;var l,h=o.length;for(l=0;l1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(t,e){var r=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);return r[2]+=e,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(t,e){var r=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);return r[0]+=e/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var t=[],e,r;for(e=0;e<256;e+=1)r=e.toString(16),t[e]=r.length===1?"0"+r:r;return function(i,s,a){return i<0&&(i=0),s<0&&(s=0),a<0&&(a=0),"#"+t[i]+t[s]+t[a]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(e){expressionsInterfaces=e},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(r){return typeof r}:_typeof$5=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$5(t)}var dataManager=function(){var t=1,e=[],r,i,s={onmessage:function(){},postMessage:function(P){r({data:P})}},a={postMessage:function(P){s.onmessage({data:P})}};function n(c){if(window.Worker&&window.Blob&&getWebWorker()){var P=new Blob(["var _workerSelf = self; self.onmessage = ",c.toString()],{type:"text/javascript"}),v=URL.createObjectURL(P);return new Worker(v)}return r=c,s}function p(){i||(i=n(function(P){function v(){function x(w,M){var A,S,T=w.length,V,F,G,N;for(S=0;S=0;M-=1)if(w[M].ty==="sh")if(w[M].ks.k.i)g(w[M].ks.k);else for(T=w[M].ks.k.length,S=0;SA[0]?!0:A[0]>w[0]?!1:w[1]>A[1]?!0:A[1]>w[1]?!1:w[2]>A[2]?!0:A[2]>w[2]?!1:null}var E=function(){var w=[4,4,14];function M(S){var T=S.t.d;S.t.d={k:[{s:T,t:0}]}}function A(S){var T,V=S.length;for(T=0;T=0;T-=1)if(S[T].ty==="sh")if(S[T].ks.k.i)S[T].ks.k.c=S[T].closed;else for(G=S[T].ks.k.length,F=0;F500)&&(this._imageLoaded(),clearInterval(l)),u+=1}.bind(this),50)}function a(o){var u=i(o,this.assetsPath,this.path),l=createNS("image");isSafari?this.testImageLoaded(l):l.addEventListener("load",this._imageLoaded,!1),l.addEventListener("error",function(){h.img=t,this._imageLoaded()}.bind(this),!1),l.setAttributeNS("http://www.w3.org/1999/xlink","href",u),this._elementHelper.append?this._elementHelper.append(l):this._elementHelper.appendChild(l);var h={img:l,assetData:o};return h}function n(o){var u=i(o,this.assetsPath,this.path),l=createTag("img");l.crossOrigin="anonymous",l.addEventListener("load",this._imageLoaded,!1),l.addEventListener("error",function(){h.img=t,this._imageLoaded()}.bind(this),!1),l.src=u;var h={img:l,assetData:o};return h}function p(o){var u={assetData:o},l=i(o,this.assetsPath,this.path);return dataManager.loadData(l,function(h){u.img=h,this._footageLoaded()}.bind(this),function(){u.img={},this._footageLoaded()}.bind(this)),u}function f(o,u){this.imagesLoadedCb=u;var l,h=o.length;for(l=0;lthis.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e=this.animationData.layers,r,i=e.length,s=t.layers,a,n=s.length;for(a=0;athis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!==t||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var e,r=0;r=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(r=!0,e=this.totalFrames-1):e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):e<0?this.checkSegments(e%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(r=!0,e=0)):this.setCurrentRawFrameValue(e),r&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFramee&&(r=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,r!==-1&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),_typeof$4(t[0])==="object"){var r,i=t.length;for(r=0;r=0;A-=1)e[A].animation.destroy(M)}function _(M,A,S){var T=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),V,F=T.length;for(V=0;V0?h=_:l=_;while(Math.abs(E)>a&&++k=s?x(l,L,h,g):I===0?L:d(l,E,E+f,h,g)}},t}(),pooling=function(){function t(e){return e.concat(createSizedArray(e.length))}return{double:t}}(),poolFactory=function(){return function(t,e,r){var i=0,s=t,a=createSizedArray(s),n={newElement:p,release:f};function p(){var m;return i?(i-=1,m=a[i]):m=e(),m}function f(m){i===s&&(a=pooling.double(a),s*=2),r&&r(m),a[i]=m,i+=1}return n}}(),bezierLengthPool=function(){function t(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,t)}(),segmentsLengthPool=function(){function t(){return{lengths:[],totalLength:0}}function e(r){var i,s=r.lengths.length;for(i=0;i-.001&&u<.001}function r(c,P,v,d,x,o,u,l,h){if(v===0&&o===0&&h===0)return e(c,P,d,x,u,l);var g=t.sqrt(t.pow(d-c,2)+t.pow(x-P,2)+t.pow(o-v,2)),b=t.sqrt(t.pow(u-c,2)+t.pow(l-P,2)+t.pow(h-v,2)),E=t.sqrt(t.pow(u-d,2)+t.pow(l-x,2)+t.pow(h-o,2)),_;return g>b?g>E?_=g-b-E:_=E-b-g:E>b?_=E-b-g:_=b-g-E,_>-1e-4&&_<1e-4}var i=function(){return function(c,P,v,d){var x=getDefaultCurveSegments(),o,u,l,h,g,b=0,E,_=[],k=[],R=bezierLengthPool.newElement();for(l=v.length,o=0;ou?-1:1,g=!0;g;)if(d[o]<=u&&d[o+1]>u?(l=(u-d[o])/(d[o+1]-d[o]),g=!1):o+=h,o<0||o>=x-1){if(o===x-1)return v[o];g=!1}return v[o]+(v[o+1]-v[o])*l}function m(c,P,v,d,x,o){var u=f(x,o),l=1-u,h=t.round((l*l*l*c[0]+(u*l*l+l*u*l+l*l*u)*v[0]+(u*u*l+l*u*u+u*l*u)*d[0]+u*u*u*P[0])*1e3)/1e3,g=t.round((l*l*l*c[1]+(u*l*l+l*u*l+l*l*u)*v[1]+(u*u*l+l*u*u+u*l*u)*d[1]+u*u*u*P[1])*1e3)/1e3;return[h,g]}var y=createTypedArray("float32",8);function C(c,P,v,d,x,o,u){x<0?x=0:x>1&&(x=1);var l=f(x,u);o=o>1?1:o;var h=f(o,u),g,b=c.length,E=1-l,_=1-h,k=E*E*E,R=l*E*E*3,L=l*l*E*3,I=l*l*l,B=E*E*_,D=l*E*_+E*l*_+E*E*h,w=l*l*_+E*l*h+l*E*h,M=l*l*h,A=E*_*_,S=l*_*_+E*h*_+E*_*h,T=l*h*_+E*h*h+l*_*h,V=l*h*h,F=_*_*_,G=h*_*_+_*h*_+_*_*h,N=h*h*_+_*h*h+h*_*h,z=h*h*h;for(g=0;g=k.t-u){_.h&&(_=k),h=0;break}if(k.t-u>x){h=g;break}g=A||x=A?V.points.length-1:0;for(I=V.points[F].point.length,L=0;L=z&&G=A)l[0]=T[0],l[1]=T[1],l[2]=T[2];else if(x<=S)l[0]=_.s[0],l[1]=_.s[1],l[2]=_.s[2];else{var $=a(_.s),W=a(T),X=(x-S)/(A-S);s(l,i($,W,X))}else for(g=0;g=A?B=1:x1e-6?(I=Math.acos(B),D=Math.sin(I),w=Math.sin((1-u)*I)/D,M=Math.sin(u*I)/D):(w=1-u,M=u),l[0]=w*h+M*_,l[1]=w*g+M*k,l[2]=w*b+M*R,l[3]=w*E+M*L,l}function s(x,o){var u=o[0],l=o[1],h=o[2],g=o[3],b=Math.atan2(2*l*g-2*u*h,1-2*l*l-2*h*h),E=Math.asin(2*u*l+2*h*g),_=Math.atan2(2*u*g-2*l*h,1-2*u*u-2*h*h);x[0]=b/degToRads,x[1]=E/degToRads,x[2]=_/degToRads}function a(x){var o=x[0]*degToRads,u=x[1]*degToRads,l=x[2]*degToRads,h=Math.cos(o/2),g=Math.cos(u/2),b=Math.cos(l/2),E=Math.sin(o/2),_=Math.sin(u/2),k=Math.sin(l/2),R=h*g*b-E*_*k,L=E*_*b+h*g*k,I=E*g*b+h*_*k,B=h*_*b-E*g*k;return[L,I,B,R]}function n(){var x=this.comp.renderedFrame-this.offsetTime,o=this.keyframes[0].t-this.offsetTime,u=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(x===this._caching.lastFrame||this._caching.lastFrame!==t&&(this._caching.lastFrame>=u&&x>=u||this._caching.lastFrame=x&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var l=this.interpolateValue(x,this._caching);this.pv=l}return this._caching.lastFrame=x,this.pv}function p(x){var o;if(this.propType==="unidimensional")o=x*this.mult,e(this.v-o)>1e-5&&(this.v=o,this._mdf=!0);else for(var u=0,l=this.v.length;u1e-5&&(this.v[u]=o,this._mdf=!0),u+=1}function f(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var x,o=this.effectsSequence.length,u=this.kf?this.pv:this.data.k;for(x=0;x=this._maxLength&&this.doubleArrayLength(),r){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[];break}(!a[i]||a[i]&&!s)&&(a[i]=pointPool.newElement()),a[i][0]=t,a[i][1]=e},ShapePath.prototype.setTripleAt=function(t,e,r,i,s,a,n,p){this.setXYAt(t,e,"v",n,p),this.setXYAt(r,i,"o",n,p),this.setXYAt(s,a,"i",n,p)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,r=this.o,i=this.i,s=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],i[0][0],i[0][1],r[0][0],r[0][1],0,!1),s=1);var a=this._length-1,n=this._length,p;for(p=s;p=D[D.length-1].t-this.offsetTime)g=D[D.length-1].s?D[D.length-1].s[0]:D[D.length-2].e[0],E=!0;else{for(var w=h,M=D.length-1,A=!0,S,T,V;A&&(S=D[w],T=D[w+1],!(T.t-this.offsetTime>o));)w=T.t-this.offsetTime)I=1;else if(ol&&o>l)||(this._caching.lastIndex=h0||A>-1e-6&&A<0?i(A*S)/S:A}function M(){var A=this.props,S=w(A[0]),T=w(A[1]),V=w(A[4]),F=w(A[5]),G=w(A[12]),N=w(A[13]);return"matrix("+S+","+T+","+V+","+F+","+G+","+N+")"}return function(){this.reset=s,this.rotate=a,this.rotateX=n,this.rotateY=p,this.rotateZ=f,this.skew=y,this.skewFromAxis=C,this.shear=m,this.scale=c,this.setTransform=P,this.translate=v,this.transform=d,this.applyToPoint=h,this.applyToX=g,this.applyToY=b,this.applyToZ=E,this.applyToPointArray=I,this.applyToTriplePoints=L,this.applyToPointStringified=B,this.toCSS=D,this.to2dCSS=M,this.clone=u,this.cloneFromProps=l,this.equals=o,this.inversePoints=R,this.inversePoint=k,this.getInverseMatrix=_,this._t=this.transform,this.isIdentity=x,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(r){return typeof r}:_typeof$3=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$3(t)}var lottie={};function setLocation(t){setLocationHref(t)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return animationManager.loadAnimation(t)}function setQuality(t){if(typeof t=="string")switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(t)&&t>1&&setDefaultCurveSegments(t)}function inBrowser(){return typeof navigator<"u"}function installPlugin(t,e){t==="expressions"&&setExpressionsPlugin(e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.10.2";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),r=0;r=1?a.push({s:t-1,e:e-1}):(a.push({s:t,e:1}),a.push({s:0,e:e-1}));var n=[],p,f=a.length,m;for(p=0;pi+r)){var y,C;m.s*s<=i?y=0:y=(m.s*s-i)/r,m.e*s>=i+r?C=1:C=(m.e*s-i)/r,n.push([y,C])}return n.length||n.push([0,0]),n},TrimModifier.prototype.releasePathsData=function(t){var e,r=t.length;for(e=0;e1?e=1+i:this.s.v<0?e=0+i:e=this.s.v+i,this.e.v>1?r=1+i:this.e.v<0?r=0+i:r=this.e.v+i,e>r){var s=e;e=r,r=s}e=Math.round(e*1e4)*1e-4,r=Math.round(r*1e4)*1e-4,this.sValue=e,this.eValue=r}else e=this.sValue,r=this.eValue;var a,n,p=this.shapes.length,f,m,y,C,c,P=0;if(r===e)for(n=0;n=0;n-=1)if(d=this.shapes[n],d.shape._mdf){for(x=d.localShapeCollection,x.releaseShapes(),this.m===2&&p>1?(h=this.calculateShapeEdges(e,r,d.totalShapeLength,l,P),l+=d.totalShapeLength):h=[[o,u]],m=h.length,f=0;f=1?v.push({s:d.totalShapeLength*(o-1),e:d.totalShapeLength*(u-1)}):(v.push({s:d.totalShapeLength*o,e:d.totalShapeLength}),v.push({s:0,e:d.totalShapeLength*(u-1)}));var g=this.addShapes(d,v[0]);if(v[0].s!==v[0].e){if(v.length>1){var b=d.shape.paths.shapes[d.shape.paths._length-1];if(b.c){var E=g.pop();this.addPaths(g,x),g=this.addShapes(d,v[1],E)}else this.addPaths(g,x),g=this.addShapes(d,v[1])}this.addPaths(g,x)}}d.shape.paths=x}}},TrimModifier.prototype.addPaths=function(t,e){var r,i=t.length;for(r=0;re.e){r.c=!1;break}else e.s<=m&&e.e>=m+y.addedLength?(this.addSegment(s[a].v[p-1],s[a].o[p-1],s[a].i[p],s[a].v[p],r,C,x),x=!1):(P=bez.getNewSegment(s[a].v[p-1],s[a].v[p],s[a].o[p-1],s[a].i[p],(e.s-m)/y.addedLength,(e.e-m)/y.addedLength,c[p-1]),this.addSegmentFromArray(P,r,C,x),x=!1,r.c=!1),m+=y.addedLength,C+=1;if(s[a].c&&c.length){if(y=c[p-1],m<=e.e){var o=c[p-1].addedLength;e.s<=m&&e.e>=m+o?(this.addSegment(s[a].v[p-1],s[a].o[p-1],s[a].i[0],s[a].v[0],r,C,x),x=!1):(P=bez.getNewSegment(s[a].v[p-1],s[a].v[0],s[a].o[p-1],s[a].i[0],(e.s-m)/o,(e.e-m)/o,c[p-1]),this.addSegmentFromArray(P,r,C,x),x=!1,r.c=!1)}else r.c=!1;m+=y.addedLength,C+=1}if(r._length&&(r.setXYAt(r.v[d][0],r.v[d][1],"i",d),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),m>e.e)break;a=this.p.keyframes[this.p.keyframes.length-1].t?(y=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/m,0),C=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/m,0)):(y=this.p.pv,C=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/m,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){y=[],C=[];var c=this.px,P=this.py;c._caching.lastFrame+c.offsetTime<=c.keyframes[0].t?(y[0]=c.getValueAtTime((c.keyframes[0].t+.01)/m,0),y[1]=P.getValueAtTime((P.keyframes[0].t+.01)/m,0),C[0]=c.getValueAtTime(c.keyframes[0].t/m,0),C[1]=P.getValueAtTime(P.keyframes[0].t/m,0)):c._caching.lastFrame+c.offsetTime>=c.keyframes[c.keyframes.length-1].t?(y[0]=c.getValueAtTime(c.keyframes[c.keyframes.length-1].t/m,0),y[1]=P.getValueAtTime(P.keyframes[P.keyframes.length-1].t/m,0),C[0]=c.getValueAtTime((c.keyframes[c.keyframes.length-1].t-.01)/m,0),C[1]=P.getValueAtTime((P.keyframes[P.keyframes.length-1].t-.01)/m,0)):(y=[c.pv,P.pv],C[0]=c.getValueAtTime((c._caching.lastFrame+c.offsetTime-.01)/m,c.offsetTime),C[1]=P.getValueAtTime((P._caching.lastFrame+P.offsetTime-.01)/m,P.offsetTime))}else C=t,y=C;this.v.rotate(-Math.atan2(y[1]-C[1],y[0]-C[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function i(){if(!this.a.k)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function s(){}function a(f){this._addDynamicProperty(f),this.elem.addDynamicProperty(f),this._isDirty=!0}function n(f,m,y){if(this.elem=f,this.frameId=-1,this.propType="transform",this.data=m,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(y||f),m.p&&m.p.s?(this.px=PropertyFactory.getProp(f,m.p.x,0,0,this),this.py=PropertyFactory.getProp(f,m.p.y,0,0,this),m.p.z&&(this.pz=PropertyFactory.getProp(f,m.p.z,0,0,this))):this.p=PropertyFactory.getProp(f,m.p||{k:[0,0,0]},1,0,this),m.rx){if(this.rx=PropertyFactory.getProp(f,m.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(f,m.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(f,m.rz,0,degToRads,this),m.or.k[0].ti){var C,c=m.or.k.length;for(C=0;C0;)r-=1,this._elements.unshift(e[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,r=t.length;for(e=0;e0?Math.floor(c):Math.ceil(c),d=this.pMatrix.props,x=this.rMatrix.props,o=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var u=0;if(c>0){for(;uv;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),u-=1;P&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-P,!0),u-=P)}i=this.data.m===1?0:this._currentCopies-1,s=this.data.m===1?1:-1,a=this._currentCopies;for(var l,h;a;){if(e=this.elemsData[i].it,r=e[e.length-1].transform.mProps.v.props,h=r.length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),u!==0){for((i!==0&&s===1||i!==this._currentCopies-1&&s===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(x[0],x[1],x[2],x[3],x[4],x[5],x[6],x[7],x[8],x[9],x[10],x[11],x[12],x[13],x[14],x[15]),this.matrix.transform(o[0],o[1],o[2],o[3],o[4],o[5],o[6],o[7],o[8],o[9],o[10],o[11],o[12],o[13],o[14],o[15]),this.matrix.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[15]),l=0;l0&&i<1?[e]:[]:[e-i,e+i].filter(function(s){return s>0&&s<1})},PolynomialBezier.prototype.split=function(t){if(t<=0)return[singlePoint(this.points[0]),this];if(t>=1)return[this,singlePoint(this.points[this.points.length-1])];var e=lerpPoint(this.points[0],this.points[1],t),r=lerpPoint(this.points[1],this.points[2],t),i=lerpPoint(this.points[2],this.points[3],t),s=lerpPoint(e,r,t),a=lerpPoint(r,i,t),n=lerpPoint(s,a,t);return[new PolynomialBezier(this.points[0],e,s,n,!0),new PolynomialBezier(n,a,i,this.points[3],!0)]};function extrema(t,e){var r=t.points[0][e],i=t.points[t.points.length-1][e];if(r>i){var s=i;i=r,r=s}for(var a=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),n=0;n0&&a[n]<1){var p=t.point(a[n])[e];pi&&(i=p)}return{min:r,max:i}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}};function intersectData(t,e,r){var i=t.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:t,t:(e+r)/2,t1:e,t2:r}}function splitData(t){var e=t.bez.split(.5);return[intersectData(e[0],t.t1,t.t),intersectData(e[1],t.t,t.t2)]}function boxIntersect(t,e){return Math.abs(t.cx-e.cx)*2=a||t.width<=i&&t.height<=i&&e.width<=i&&e.height<=i){s.push([t.t,e.t]);return}var n=splitData(t),p=splitData(e);intersectsImpl(n[0],p[0],r+1,i,s,a),intersectsImpl(n[0],p[1],r+1,i,s,a),intersectsImpl(n[1],p[0],r+1,i,s,a),intersectsImpl(n[1],p[1],r+1,i,s,a)}}PolynomialBezier.prototype.intersections=function(t,e,r){e===void 0&&(e=2),r===void 0&&(r=7);var i=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,i,r),i},PolynomialBezier.shapeSegment=function(t,e){var r=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[r],t.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var r=(e+1)%t.length();return new PolynomialBezier(t.v[r],t.i[r],t.o[e],t.v[e],!0)};function crossProduct(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function lineIntersection(t,e,r,i){var s=[t[0],t[1],1],a=[e[0],e[1],1],n=[r[0],r[1],1],p=[i[0],i[1],1],f=crossProduct(crossProduct(s,a),crossProduct(n,p));return floatZero(f[2])?null:[f[0]/f[2],f[1]/f[2]]}function polarOffset(t,e,r){return[t[0]+Math.cos(e)*r,t[1]-Math.sin(e)*r]}function pointDistance(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function pointEqual(t,e){return floatEqual(t[0],e[0])&&floatEqual(t[1],e[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(t,e.s,0,null,this),this.frequency=PropertyFactory.getProp(t,e.r,0,null,this),this.pointsType=PropertyFactory.getProp(t,e.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(t,e,r,i,s,a,n){var p=r-Math.PI/2,f=r+Math.PI/2,m=e[0]+Math.cos(r)*i*s,y=e[1]-Math.sin(r)*i*s;t.setTripleAt(m,y,m+Math.cos(p)*a,y-Math.sin(p)*a,m+Math.cos(f)*n,y-Math.sin(f)*n,t.length())}function getPerpendicularVector(t,e){var r=[e[0]-t[0],e[1]-t[1]],i=-Math.PI*.5,s=[Math.cos(i)*r[0]-Math.sin(i)*r[1],Math.sin(i)*r[0]+Math.cos(i)*r[1]];return s}function getProjectingAngle(t,e){var r=e===0?t.length()-1:e-1,i=(e+1)%t.length(),s=t.v[r],a=t.v[i],n=getPerpendicularVector(s,a);return Math.atan2(0,1)-Math.atan2(n[1],n[0])}function zigZagCorner(t,e,r,i,s,a,n){var p=getProjectingAngle(e,r),f=e.v[r%e._length],m=e.v[r===0?e._length-1:r-1],y=e.v[(r+1)%e._length],C=a===2?Math.sqrt(Math.pow(f[0]-m[0],2)+Math.pow(f[1]-m[1],2)):0,c=a===2?Math.sqrt(Math.pow(f[0]-y[0],2)+Math.pow(f[1]-y[1],2)):0;setPoint(t,e.v[r%e._length],p,n,i,c/((s+1)*2),C/((s+1)*2))}function zigZagSegment(t,e,r,i,s,a){for(var n=0;n1&&e.length>1&&(s=getIntersection(t[0],e[e.length-1]),s)?[[t[0].split(s[0])[0]],[e[e.length-1].split(s[1])[1]]]:[r,i]}function pruneIntersections(t){for(var e,r=1;r1&&(e=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function offsetSegmentSplit(t,e){var r=t.inflectionPoints(),i,s,a,n;if(r.length===0)return[offsetSegment(t,e)];if(r.length===1||floatEqual(r[1],1))return a=t.split(r[0]),i=a[0],s=a[1],[offsetSegment(i,e),offsetSegment(s,e)];a=t.split(r[0]),i=a[0];var p=(r[1]-r[0])/(1-r[0]);return a=a[1].split(p),n=a[0],s=a[1],[offsetSegment(i,e),offsetSegment(n,e),offsetSegment(s,e)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this.miterLimit=PropertyFactory.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(t,e,r,i){var s=shapePool.newElement();s.c=t.c;var a=t.length();t.c||(a-=1);var n,p,f,m=[];for(n=0;n=0;n-=1)f=PolynomialBezier.shapeSegmentInverted(t,n),m.push(offsetSegmentSplit(f,e));m=pruneIntersections(m);var y=null,C=null;for(n=0;n0&&(R=!1),R){var B=createTag("style");B.setAttribute("f-forigin",b[E].fOrigin),B.setAttribute("f-origin",b[E].origin),B.setAttribute("f-family",b[E].fFamily),B.type="text/css",B.innerText="@font-face {font-family: "+b[E].fFamily+"; font-style: normal; src: url('"+b[E].fPath+"');}",g.appendChild(B)}}else if(b[E].fOrigin==="g"||b[E].origin===1){for(L=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),I=0;Ie?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,r=this.renderableComponents.length;for(e=0;e.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(t){var e,r=this.layers.length,i;for(this.completeLayers=!0,e=r-1;e>=0;e-=1)this.elements[e]||(i=this.layers[e],i.ip-i.st<=t-this.layers[e].st&&i.op-i.st>t-this.layers[e].st&&this.buildItem(e)),this.completeLayers=this.elements[e]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t);default:return this.createNull(t)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t0&&(this.maskElement.setAttribute("id",c),this.element.maskedElement.setAttribute(u,"url("+getLocationHref()+"#"+c+")"),i.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e=this.element.finalTransform.mat,r,i=this.masksProperties.length;for(r=0;r1&&(i+=" C"+e.o[s-1][0]+","+e.o[s-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),r.lastPath!==i){var n="";r.elem&&(e.c&&(n=t.inv?this.solidPath+i:i),r.elem.setAttribute("d",n)),r.lastPath=i}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var t={};t.createFilter=e,t.createAlphaToLuminanceFilter=r;function e(i,s){var a=createNS("filter");return a.setAttribute("id",i),s!==!0&&(a.setAttribute("filterUnits","objectBoundingBox"),a.setAttribute("x","0%"),a.setAttribute("y","0%"),a.setAttribute("width","100%"),a.setAttribute("height","100%")),a}function r(){var i=createNS("feColorMatrix");return i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),i}return t}(),featureSupport=function(){var t={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType=!1),/firefox/i.test(navigator.userAgent)&&(t.svgLumaHidden=!1),t}(),registeredEffects={},idPrefix="filter_result_";function SVGEffects(t){var e,r="SourceGraphic",i=t.data.ef?t.data.ef.length:0,s=createElementID(),a=filtersFactory.createFilter(s,!0),n=0;this.filters=[];var p;for(e=0;e=0&&(i=this.shapeModifiers[e].processShapes(this._isFirstFrame),!i);e-=1);}},searchProcessedElement:function(e){for(var r=this.processedElements,i=0,s=r.length;i.01)return!1;r+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t0;)o=c.transformers[R].mProps._mdf||o,k-=1,R-=1;if(o)for(k=g-c.styles[l].lvl,R=c.transformers.length-1;k>0;)_=c.transformers[R].mProps.v.props,E.transform(_[0],_[1],_[2],_[3],_[4],_[5],_[6],_[7],_[8],_[9],_[10],_[11],_[12],_[13],_[14],_[15]),k-=1,R-=1}else E=t;if(b=c.sh.paths,d=b._length,o){for(x="",v=0;v=1?B=.99:B<=-1&&(B=-.99);var D=L*B,w=Math.cos(I+c.a.v)*D+x[0],M=Math.sin(I+c.a.v)*D+x[1];v.setAttribute("fx",w),v.setAttribute("fy",M),d&&!c.g._collapsable&&(c.of.setAttribute("fx",w),c.of.setAttribute("fy",M))}}}function y(C,c,P){var v=c.style,d=c.d;d&&(d._mdf||P)&&d.dashStr&&(v.pElem.setAttribute("stroke-dasharray",d.dashStr),v.pElem.setAttribute("stroke-dashoffset",d.dashoffset[0])),c.c&&(c.c._mdf||P)&&v.pElem.setAttribute("stroke","rgb("+bmFloor(c.c.v[0])+","+bmFloor(c.c.v[1])+","+bmFloor(c.c.v[2])+")"),(c.o._mdf||P)&&v.pElem.setAttribute("stroke-opacity",c.o.v),(c.w._mdf||P)&&(v.pElem.setAttribute("stroke-width",c.w.v),v.msElem&&v.msElem.setAttribute("stroke-width",c.w.v))}return r}();function SVGShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,r),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var t,e=this.shapes.length,r,i,s=this.stylesList.length,a,n=[],p=!1;for(i=0;i1&&p&&this.setShapesAsAnimated(n)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,r=t.length;for(e=0;e=0;f-=1){if(x=this.searchProcessedElement(t[f]),x?e[f]=r[x-1]:t[f]._render=n,t[f].ty==="fl"||t[f].ty==="st"||t[f].ty==="gf"||t[f].ty==="gs"||t[f].ty==="no")x?e[f].style.closed=!1:e[f]=this.createStyleElement(t[f],s),t[f]._render&&e[f].style.pElem.parentNode!==i&&i.appendChild(e[f].style.pElem),c.push(e[f].style);else if(t[f].ty==="gr"){if(!x)e[f]=this.createGroupElement(t[f]);else for(C=e[f].it.length,y=0;y1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!t)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,r=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var i,s=this.effectsSequence.length,a=t||this.data.d.k[this.keysIndex].s;for(i=0;ie);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e=[],r=0,i=t.length,s,a,n=!1;r=55296&&s<=56319?(a=t.charCodeAt(r+1),a>=56320&&a<=57343?(n||FontManager.isModifier(s,a)?(e[e.length-1]+=t.substr(r,2),n=!1):e.push(t.substr(r,2)),r+=1):e.push(t.charAt(r))):s>56319?(a=t.charCodeAt(r+1),FontManager.isZeroWidthJoiner(s,a)?(n=!0,e[e.length-1]+=t.substr(r,2),r+=1):e.push(t.charAt(r))):FontManager.isZeroWidthJoiner(s)?(e[e.length-1]+=t.charAt(r),n=!0):e.push(t.charAt(r)),r+=1;return e},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e=this.elem.globalData.fontManager,r=this.data,i=[],s,a,n,p=0,f,m=r.m.g,y=0,C=0,c=0,P=[],v=0,d=0,x,o,u=e.getFontByName(t.f),l,h=0,g=getFontProperties(u);t.fWeight=g.weight,t.fStyle=g.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),a=t.finalText.length,t.finalLineHeight=t.lh;var b=t.tr/1e3*t.finalSize,E;if(t.sz)for(var _=!0,k=t.sz[0],R=t.sz[1],L,I;_;){I=this.buildFinalText(t.t),L=0,v=0,a=I.length,b=t.tr/1e3*t.finalSize;var B=-1;for(s=0;sk&&I[s]!==" "?(B===-1?a+=1:s=B,L+=t.finalLineHeight||t.finalSize*1.2,I.splice(s,B===s?1:0,"\r"),B=-1,v=0):(v+=h,v+=b);L+=u.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&Rd?v:d,v=-2*b,f="",n=!0,c+=1):f=w,e.chars?(l=e.getCharData(w,u.fStyle,e.getFontByName(t.f).fFamily),h=n?0:l.w*t.finalSize/100):h=e.measureText(f,t.f,t.finalSize),w===" "?D+=h+b:(v+=h+b+D,D=0),i.push({l:h,an:h,add:y,n,anIndexes:[],val:f,line:c,animatorJustifyOffset:0}),m==2){if(y+=h,f===""||f===" "||s===a-1){for((f===""||f===" ")&&(y-=h);C<=s;)i[C].an=y,i[C].ind=p,i[C].extra=h,C+=1;p+=1,y=0}}else if(m==3){if(y+=h,f===""||s===a-1){for(f===""&&(y-=h);C<=s;)i[C].an=y,i[C].ind=p,i[C].extra=h,C+=1;y=0,p+=1}}else i[p].ind=p,i[p].extra=0,p+=1;if(t.l=i,d=v>d?v:d,P.push(v),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=d,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=P;var M=r.a,A,S;o=M.length;var T,V,F=[];for(x=0;x0?p=this.ne.v/100:f=-this.ne.v/100,this.xe.v>0?m=1-this.xe.v/100:y=1+this.xe.v/100;var C=BezierFactory.getBezierEasing(p,f,m,y).get,c=0,P=this.finalS,v=this.finalE,d=this.data.sh;if(d===2)v===P?c=n>=v?1:0:c=t(0,e(.5/(v-P)+(n-P)/(v-P),1)),c=C(c);else if(d===3)v===P?c=n>=v?0:1:c=1-t(0,e(.5/(v-P)+(n-P)/(v-P),1)),c=C(c);else if(d===4)v===P?c=0:(c=t(0,e(.5/(v-P)+(n-P)/(v-P),1)),c<.5?c*=2:c=1-2*(c-.5)),c=C(c);else if(d===5){if(v===P)c=0;else{var x=v-P;n=e(t(0,n+.5-P),v-P);var o=-x/2+n,u=x/2;c=Math.sqrt(1-o*o/(u*u))}c=C(c)}else d===6?(v===P?c=0:(n=e(t(0,n+.5-P),v-P),c=(1+Math.cos(Math.PI+Math.PI*2*n/(v-P)))/2),c=C(c)):(n>=r(P)&&(n-P<0?c=t(0,e(e(v,1)-(P-n),1)):c=t(0,e(v-n,1))),c=C(c));if(this.sm.v!==100){var l=this.sm.v*.01;l===0&&(l=1e-8);var h=.5-l*.5;c1&&(c=1))}return c*this.a.v},getValue:function(n){this.iterateDynamicProperties(),this._mdf=n||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,n&&this.data.r===2&&(this.e.v=this._currentTextLength);var p=this.data.r===2?1:100/this.data.totalChars,f=this.o.v/p,m=this.s.v/p+f,y=this.e.v/p+f;if(m>y){var C=m;m=y,y=C}this.finalS=m,this.finalE=y}},extendPrototype([DynamicPropertyContainer],i);function s(a,n,p){return new i(a,n)}return{getTextSelectorProp:s}}();function TextAnimatorDataProperty(t,e,r){var i={propType:!1},s=PropertyFactory.getProp,a=e.a;this.a={r:a.r?s(t,a.r,0,degToRads,r):i,rx:a.rx?s(t,a.rx,0,degToRads,r):i,ry:a.ry?s(t,a.ry,0,degToRads,r):i,sk:a.sk?s(t,a.sk,0,degToRads,r):i,sa:a.sa?s(t,a.sa,0,degToRads,r):i,s:a.s?s(t,a.s,1,.01,r):i,a:a.a?s(t,a.a,1,0,r):i,o:a.o?s(t,a.o,0,.01,r):i,p:a.p?s(t,a.p,1,0,r):i,sw:a.sw?s(t,a.sw,0,0,r):i,sc:a.sc?s(t,a.sc,1,0,r):i,fc:a.fc?s(t,a.fc,1,0,r):i,fh:a.fh?s(t,a.fh,0,0,r):i,fs:a.fs?s(t,a.fs,0,.01,r):i,fb:a.fb?s(t,a.fb,0,.01,r):i,t:a.t?s(t,a.t,0,0,r):i},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,r),this.s.t=e.s.t}function TextAnimatorProperty(t,e,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}TextAnimatorProperty.prototype.searchProperties=function(){var t,e=this._textData.a.length,r,i=PropertyFactory.getProp;for(t=0;t=v+Q||!g?(k=(v+Q-x)/d.partialLength,z=h.point[0]+(d.point[0]-h.point[0])*k,q=h.point[1]+(d.point[1]-h.point[1])*k,a.translate(-r[0]*c[y].an*.005,-(r[1]*D)*.01),o=!1):g&&(x+=d.partialLength,u+=1,u>=g.length&&(u=0,l+=1,b[l]?g=b[l].points:L.v.c?(u=0,l=0,g=b[l].points):(x-=d.partialLength,g=null)),g&&(h=d,d=g[u],E=d.partialLength));N=c[y].an/2-c[y].add,a.translate(-N,0,0)}else N=c[y].an/2-c[y].add,a.translate(-N,0,0),a.translate(-r[0]*c[y].an*.005,-r[1]*D*.01,0);for(S=0;St?this.textSpans[t].span:createNS(p?"g":"text"),l<=t){if(f.setAttribute("stroke-linecap","butt"),f.setAttribute("stroke-linejoin","round"),f.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=f,p){var g=createNS("g");f.appendChild(g),this.textSpans[t].childSpan=g}this.textSpans[t].span=f,this.layerElement.appendChild(f)}f.style.display="inherit"}if(m.reset(),C&&(n[t].n&&(c=-d,P+=r.yOffset,P+=v?1:0,v=!1),this.applyTextPropertiesToMatrix(r,m,n[t].line,c,P),c+=n[t].l||0,c+=d),p){h=this.globalData.fontManager.getCharData(r.finalText[t],i.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily);var b;if(h.t===1)b=new SVGCompElement(h.data,this.globalData,this);else{var E=emptyShapeData;h.data&&h.data.shapes&&(E=this.buildShapeData(h.data,r.finalSize)),b=new SVGShapeElement(E,this.globalData,this)}if(this.textSpans[t].glyph){var _=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(_.layerElement),_.destroy()}this.textSpans[t].glyph=b,b._debug=!0,b.prepareFrame(0),b.renderFrame(),this.textSpans[t].childSpan.appendChild(b.layerElement),h.t===1&&this.textSpans[t].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else C&&f.setAttribute("transform","translate("+m.props[12]+","+m.props[13]+")"),f.textContent=n[t].val,f.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}C&&f&&f.setAttribute("d",y)}for(;t=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t=0;i-=1)n=e.transforms[i].transform.mProps.v.props,e.finalTransform.transform(n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8],n[9],n[10],n[11],n[12],n[13],n[14],n[15])}e._mdf=a},processSequences:function(e){var r,i=this.sequenceList.length;for(r=0;r=1){this.buffers=[];var e=this.globalData.canvasContext,r=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(r);var i=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(i),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects},createContent:function(){},setBlendMode:function(){var e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var r=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=r}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(e){e.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var e=this.buffers[0],r=e.getContext("2d");this.clearCanvas(r),r.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var e=this.buffers[1],r=e.getContext("2d");this.clearCanvas(r),r.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var i=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(i.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var s=assetLoader.getLumaCanvas(this.canvasContext.canvas),a=s.getContext("2d");a.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(s,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(e,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(e){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!e)){this.renderTransform(),this.renderRenderable(),this.setBlendMode();var r=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(r),this.globalData.renderer.ctxTransform(this.finalTransform.mat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v),this.renderInnerContent(),this.globalData.renderer.restore(r),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(t,e,r,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var s=4;e.ty==="rc"?s=5:e.ty==="el"?s=6:e.ty==="sr"&&(s=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,s,t);var a,n=r.length,p;for(a=0;a=0;a-=1){if(C=this.searchProcessedElement(t[a]),C?e[a]=r[C-1]:t[a]._shouldRender=i,t[a].ty==="fl"||t[a].ty==="st"||t[a].ty==="gf"||t[a].ty==="gs")C?e[a].style.closed=!1:e[a]=this.createStyleElement(t[a],v),m.push(e[a].style);else if(t[a].ty==="gr"){if(!C)e[a]=this.createGroupElement(t[a]);else for(f=e[a].it.length,p=0;p=0;s-=1)e[s].ty==="tr"?(n=r[s].transform,this.renderShapeTransform(t,n)):e[s].ty==="sh"||e[s].ty==="el"||e[s].ty==="rc"||e[s].ty==="sr"?this.renderPath(e[s],r[s]):e[s].ty==="fl"?this.renderFill(e[s],r[s],n):e[s].ty==="st"?this.renderStroke(e[s],r[s],n):e[s].ty==="gf"||e[s].ty==="gs"?this.renderGradientFill(e[s],r[s],n):e[s].ty==="gr"?this.renderShape(n,e[s].it,r[s].it):e[s].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var r=t.trNodes,i=e.paths,s,a,n,p=i._length;r.length=0;var f=t.transforms.finalTransform;for(n=0;n=1?y=.99:y<=-1&&(y=-.99);var C=f*y,c=Math.cos(m+e.a.v)*C+n[0],P=Math.sin(m+e.a.v)*C+n[1];s=a.createRadialGradient(c,P,0,n[0],n[1],f)}var v,d=t.g.p,x=e.g.c,o=1;for(v=0;va&&f==="xMidYMid slice"||ss&&p==="meet"||as&&p==="slice")?this.transformCanvas.tx=(r-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:m==="xMax"&&(as&&p==="slice")?this.transformCanvas.tx=(r-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,y==="YMid"&&(a>s&&p==="meet"||as&&p==="meet"||a=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if(!(this.renderedFrame===t&&this.renderConfig.clearCanvas===!0&&!e||this.destroyed||t===-1)){this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var r,i=this.layers.length;for(this.completeLayers||this.checkLayers(t),r=0;r=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!(e[t]||this.layers[t].ty===99)){var r=this.createItem(this.layers[t],this,this.globalData);e[t]=r,r.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();t.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CVCompElement(t,e,r){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t=this.canvasContext;t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip();var e,r=this.layers.length;for(e=r-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var t,e=this.layers.length;for(t=e-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)};function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:e&&e.clearCanvas!==void 0?e.clearCanvas:!0,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||"",runExpressions:!e||e.runExpressions===void 0||e.runExpressions},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas"}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects,this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var r=this.finalTransform.mat.toCSS();e.transform=r,e.webkitTransform=r}this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(t,e,r){this.initElement(t,e,r)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var t;this.data.hasMask?(t=createNS("rect"),t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(t=createTag("div"),t.style.width=this.data.sw+"px",t.style.height=this.data.sh+"px",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t)};function HShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,e,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),t=this.svgElement;else{t=createNS("svg");var e=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute("width",e.w),t.setAttribute("height",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,e){var r,i=t.length;for(r=0;r0&&f<1&&s[c].push(this.calculateF(f,t,e,r,i,c))):(m=n*n-4*p*a,m>=0&&(y=(-n+bmSqrt(m))/(2*a),y>0&&y<1&&s[c].push(this.calculateF(y,t,e,r,i,c)),C=(-n-bmSqrt(m))/(2*a),C>0&&C<1&&s[c].push(this.calculateF(C,t,e,r,i,c)))));this.shapeBoundingBox.left=bmMin.apply(null,s[0]),this.shapeBoundingBox.top=bmMin.apply(null,s[1]),this.shapeBoundingBox.right=bmMax.apply(null,s[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,s[1])},HShapeElement.prototype.calculateF=function(t,e,r,i,s,a){return bmPow(1-t,3)*e[a]+3*bmPow(1-t,2)*t*r[a]+3*(1-t)*bmPow(t,2)*i[a]+bmPow(t,3)*s[a]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var r,i=t.length;for(r=0;rr&&(r=s)}r*=t.mult}else r=t.v*t.mult;e.x-=r,e.xMax+=r,e.y-=r,e.yMax+=r},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax=0;e-=1){var i=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-i.p.v[0],-i.p.v[1],i.p.v[2]),this.mat.rotateX(-i.or.v[0]).rotateY(-i.or.v[1]).rotateZ(i.or.v[2]),this.mat.rotateX(-i.rx.v).rotateY(-i.ry.v).rotateZ(i.rz.v),this.mat.scale(1/i.s.v[0],1/i.s.v[1],1/i.s.v[2]),this.mat.translate(i.a.v[0],i.a.v[1],i.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var s;this.p?s=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:s=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var a=Math.sqrt(Math.pow(s[0],2)+Math.pow(s[1],2)+Math.pow(s[2],2)),n=[s[0]/a,s[1]/a,s[2]/a],p=Math.sqrt(n[2]*n[2]+n[0]*n[0]),f=Math.atan2(n[1],p),m=Math.atan2(n[0],-n[2]);this.mat.rotateY(m).rotateX(-f)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var y=!this._prevMat.equals(this.mat);if((y||this.pe._mdf)&&this.comp.threeDElements){r=this.comp.threeDElements.length;var C,c,P;for(e=0;e=t)return this.threeDElements[e].perspectiveElem;e+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,e){var r=createTag("div"),i,s;styleDiv(r);var a=createTag("div");if(styleDiv(a),e==="3d"){i=r.style,i.width=this.globalData.compSize.w+"px",i.height=this.globalData.compSize.h+"px";var n="50% 50%";i.webkitTransformOrigin=n,i.mozTransformOrigin=n,i.transformOrigin=n,s=a.style;var p="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";s.transform=p,s.webkitTransform=p}r.appendChild(a);var f={container:a,perspectiveElem:r,startPos:t,endPos:t,type:e};return this.threeDElements.push(f),f},HybridRendererBase.prototype.build3dContainers=function(){var t,e=this.layers.length,r,i="";for(t=0;t=0;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var r=0,i=this.threeDElements.length;rr?(s=t/this.globalData.compSize.w,a=t/this.globalData.compSize.w,n=0,p=(e-this.globalData.compSize.h*(t/this.globalData.compSize.w))/2):(s=e/this.globalData.compSize.h,a=e/this.globalData.compSize.h,n=(t-this.globalData.compSize.w*(e/this.globalData.compSize.h))/2,p=0);var f=this.resizerElem.style;f.webkitTransform="matrix3d("+s+",0,0,0,0,"+a+",0,0,0,0,1,0,"+n+","+p+",0,1)",f.transform=f.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var t=this.globalData.compSize.w,e=this.globalData.compSize.h,r,i=this.threeDElements.length;for(r=0;r=m;)L/=2,I/=2,B>>>=1;return(L+B)/I};return k.int32=function(){return _.g(4)|0},k.quick=function(){return _.g(4)/4294967296},k.double=k,x(u(_.S),t),(h.pass||g||function(R,L,I,B){return B&&(B.S&&v(B,_),R.state=function(){return v(_,{})}),I?(e[n]=R,L):R})(k,E,"global"in h?h.global:this==e,h.state)}e["seed"+n]=c;function P(l){var h,g=l.length,b=this,E=0,_=b.i=b.j=0,k=b.S=[];for(g||(l=[g++]);Er){var i=r;r=e,e=i}return Math.min(Math.max(t,e),r)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if(typeof t=="number"||t instanceof Number)return e=e||0,Math.abs(t-e);e||(e=helperLengthArray);var r,i=Math.min(t.length,e.length),s=0;for(r=0;r.5?m/(2-s-a):m/(s+a),s){case e:n=(r-i)/m+(r1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function hslToRgb(t){var e=t[0],r=t[1],i=t[2],s,a,n;if(r===0)s=i,n=i,a=i;else{var p=i<.5?i*(1+r):i+r-i*r,f=2*i-p;s=hue2rgb(f,p,e+1/3),a=hue2rgb(f,p,e),n=hue2rgb(f,p,e-1/3)}return[s,a,n,t[3]]}function linear(t,e,r,i,s){if((i===void 0||s===void 0)&&(i=e,s=r,e=0,r=1),r=r)return s;var n=r===e?0:(t-e)/(r-e);if(!i.length)return i+(s-i)*n;var p,f=i.length,m=createTypedArray("float32",f);for(p=0;p1){for(s=0;s1?e=1:e<0&&(e=0);var n=t(e);if($bm_isInstanceOfArray(s)){var p,f=s.length,m=createTypedArray("float32",f);for(p=0;pdata.k[e].t&&tdata.k[e+1].t-t?(i=e+2,s=data.k[e+1].t):(i=e+1,s=data.k[e].t);break}i===-1&&(i=e+1,s=data.k[e].t)}var a={};return a.index=i,a.time=s/elem.comp.globalData.frameRate,a}function key(t){var e,r,i;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var s=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(i=s.length,r=0;rx.length-1)&&(P=x.length-1),l=x[x.length-1-P].t,u=o-l);var h,g,b;if(c==="pingpong"){var E=Math.floor((d-l)/u);if(E%2!==0)return this.getValueAtTime((u-(d-l)%u+l)/this.comp.globalData.frameRate,0)}else if(c==="offset"){var _=this.getValueAtTime(l/this.comp.globalData.frameRate,0),k=this.getValueAtTime(o/this.comp.globalData.frameRate,0),R=this.getValueAtTime(((d-l)%u+l)/this.comp.globalData.frameRate,0),L=Math.floor((d-l)/u);if(this.pv.length){for(b=new Array(_.length),g=b.length,h=0;h=o)return this.pv;var u,l;v?(P?u=Math.abs(this.elem.comp.globalData.frameRate*P):u=Math.max(0,this.elem.data.op-o),l=o+u):((!P||P>x.length-1)&&(P=x.length-1),l=x[P].t,u=l-o);var h,g,b;if(c==="pingpong"){var E=Math.floor((o-d)/u);if(E%2===0)return this.getValueAtTime(((o-d)%u+o)/this.comp.globalData.frameRate,0)}else if(c==="offset"){var _=this.getValueAtTime(o/this.comp.globalData.frameRate,0),k=this.getValueAtTime(l/this.comp.globalData.frameRate,0),R=this.getValueAtTime((u-(o-d)%u+o)/this.comp.globalData.frameRate,0),L=Math.floor((o-d)/u)+1;if(this.pv.length){for(b=new Array(_.length),g=b.length,h=0;h1?(x-d)/(P-1):1,u=0,l=0,h;this.pv.length?h=createTypedArray("float32",this.pv.length):h=0;for(var g;uu){var E=l,_=d.c&&l===h-1?0:l+1,k=(u-g)/o[l].addedLength;b=bez.getPointInSegment(d.v[E],d.v[_],d.o[E],d.i[_],k,o[l]);break}else g+=o[l].addedLength;l+=1}return b||(b=d.c?[d.v[0][0],d.v[0][1]]:[d.v[d._length-1][0],d.v[d._length-1][1]]),b},vectorOnPath:function(P,v,d){P==1?P=this.v.c:P==0&&(P=.999);var x=this.pointOnPath(P,v),o=this.pointOnPath(P+.001,v),u=o[0]-x[0],l=o[1]-x[1],h=Math.sqrt(Math.pow(u,2)+Math.pow(l,2));if(h===0)return[0,0];var g=d==="tangent"?[u/h,l/h]:[-l/h,u/h];return g},tangentOnPath:function(P,v){return this.vectorOnPath(P,v,"tangent")},normalOnPath:function(P,v){return this.vectorOnPath(P,v,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([y],f),extendPrototype([y],m),m.prototype.getValueAtTime=p,m.prototype.initiateExpression=ExpressionManager.initiateExpression;var C=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(c,P,v,d,x){var o=C(c,P,v,d,x);return o.propertyIndex=P.ix,o.lock=!1,v===3?expressionHelpers.searchExpressions(c,P.pt,o):v===4&&expressionHelpers.searchExpressions(c,P.ks,o),o.k&&c.addDynamicProperty(o),o}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function t(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(e,r){var i=this.calculateExpression(r);if(e.t!==i){var s={};return this.copyData(s,e),s.t=i.toString(),s.__complete=!1,s}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),r=this.searchExpressions();return this.kf=e||r,this.kf},TextProperty.prototype.searchExpressions=t}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function t(e,r){var i=createNS("feMerge");i.setAttribute("result",e);var s,a;for(a=0;a=m?C=v<0?i:s:C=i+P*Math.pow((p-t)/v,1/r),y[c]=C,c+=1,a+=256/(n-1);return y.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,r=this.filterManager.effectElements;this.feFuncRComposed&&(t||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(e=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(e=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(e=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(e=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(e=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",e))}};function SVGDropShadowEffect(t,e,r,i,s){var a=e.container.globalData.renderConfig.filterSize,n=e.data.fs||a;t.setAttribute("x",n.x||a.x),t.setAttribute("y",n.y||a.y),t.setAttribute("width",n.width||a.width),t.setAttribute("height",n.height||a.height),this.filterManager=e;var p=createNS("feGaussianBlur");p.setAttribute("in","SourceAlpha"),p.setAttribute("result",i+"_drop_shadow_1"),p.setAttribute("stdDeviation","0"),this.feGaussianBlur=p,t.appendChild(p);var f=createNS("feOffset");f.setAttribute("dx","25"),f.setAttribute("dy","0"),f.setAttribute("in",i+"_drop_shadow_1"),f.setAttribute("result",i+"_drop_shadow_2"),this.feOffset=f,t.appendChild(f);var m=createNS("feFlood");m.setAttribute("flood-color","#00ff00"),m.setAttribute("flood-opacity","1"),m.setAttribute("result",i+"_drop_shadow_3"),this.feFlood=m,t.appendChild(m);var y=createNS("feComposite");y.setAttribute("in",i+"_drop_shadow_3"),y.setAttribute("in2",i+"_drop_shadow_2"),y.setAttribute("operator","in"),y.setAttribute("result",i+"_drop_shadow_4"),t.appendChild(y);var C=this.createMergeNode(i,[i+"_drop_shadow_4",s]);t.appendChild(C)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(e[0]*255),Math.round(e[1]*255),Math.round(e[2]*255)))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*degToRads,s=r*Math.cos(i),a=r*Math.sin(i);this.feOffset.setAttribute("dx",s),this.feOffset.setAttribute("dy",a)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,r){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,r=_svgMatteSymbols.length;et in r?c(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var o=(r,t,e)=>(d(r,typeof t!="symbol"?t+"":t,e),e);import{C as a}from"./gateway.63e02d1d.js";import{A as u}from"./activeRecord.2bc1b71f.js";import"./registerWidgets.3fe0df5a.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[t]="99c0f009-c905-4ebd-96b9-56286fdf2ff8",r._sentryDebugIdIdentifier="sentry-dbid-99c0f009-c905-4ebd-96b9-56286fdf2ff8")}catch{}})();class l{constructor(){o(this,"urlPath","members")}async create(t){return a.post(`organizations/${t.organizationId}/${this.urlPath}`,{email:t.email})}async delete(t){await a.delete(`${this.urlPath}/${t}`)}async list(t){return a.get(`organizations/${t}/${this.urlPath}`)}async get(t,e){return a.get(`organizations/${t}/${this.urlPath}/${e}`)}async update(t,e){return a.patch(`${this.urlPath}/${t}`,e)}async duplicate(t){return a.post(`${this.urlPath}/${t}/duplicate`,{})}async login(){return a.post("authors",{})}}const s=new l;class i{constructor(t){o(this,"record");this.record=u.create(s,t,"id")}static async login(){return s.login()}static async list(t){return(await s.list(t)).map(n=>new i(n))}static async create(t,e){const n=await s.create({organizationId:t,email:e});return new i(n)}static async get(t,e){const n=await s.get(t,e);return new i(n)}async delete(){await s.delete(this.email)}async save(){return this.record.save()}hasChanges(){return this.record.hasChanges()}get email(){return this.record.get("email")}set email(t){this.record.set("email",t)}get name(){return this.record.get("name")}set name(t){this.record.set("name",t)}get role(){return this.record.get("role")}set role(t){this.record.set("role",t)}get id(){return this.record.get("id")}get authorId(){return this.record.get("authorId")}}export{i as M}; -//# sourceMappingURL=member.6c1a1ede.js.map +var c=Object.defineProperty;var d=(r,t,e)=>t in r?c(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var o=(r,t,e)=>(d(r,typeof t!="symbol"?t+"":t,e),e);import{C as a}from"./gateway.2edca867.js";import{A as u}from"./activeRecord.adfc6223.js";import"./registerWidgets.cb3a7b8d.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[t]="c615a4c4-0593-4554-aca3-08f1a7fb0be4",r._sentryDebugIdIdentifier="sentry-dbid-c615a4c4-0593-4554-aca3-08f1a7fb0be4")}catch{}})();class l{constructor(){o(this,"urlPath","members")}async create(t){return a.post(`organizations/${t.organizationId}/${this.urlPath}`,{email:t.email})}async delete(t){await a.delete(`${this.urlPath}/${t}`)}async list(t){return a.get(`organizations/${t}/${this.urlPath}`)}async get(t,e){return a.get(`organizations/${t}/${this.urlPath}/${e}`)}async update(t,e){return a.patch(`${this.urlPath}/${t}`,e)}async duplicate(t){return a.post(`${this.urlPath}/${t}/duplicate`,{})}async login(){return a.post("authors",{})}}const s=new l;class i{constructor(t){o(this,"record");this.record=u.create(s,t,"id")}static async login(){return s.login()}static async list(t){return(await s.list(t)).map(n=>new i(n))}static async create(t,e){const n=await s.create({organizationId:t,email:e});return new i(n)}static async get(t,e){const n=await s.get(t,e);return new i(n)}async delete(){await s.delete(this.email)}async save(){return this.record.save()}hasChanges(){return this.record.hasChanges()}get email(){return this.record.get("email")}set email(t){this.record.set("email",t)}get name(){return this.record.get("name")}set name(t){this.record.set("name",t)}get role(){return this.record.get("role")}set role(t){this.record.set("role",t)}get id(){return this.record.get("id")}get authorId(){return this.record.get("authorId")}}export{i as M}; +//# sourceMappingURL=member.f9b469b1.js.map diff --git a/abstra_statics/dist/assets/organization.dde8e095.js b/abstra_statics/dist/assets/organization.abd54459.js similarity index 79% rename from abstra_statics/dist/assets/organization.dde8e095.js rename to abstra_statics/dist/assets/organization.abd54459.js index 8a8bf51a05..73774280de 100644 --- a/abstra_statics/dist/assets/organization.dde8e095.js +++ b/abstra_statics/dist/assets/organization.abd54459.js @@ -1,2 +1,2 @@ -var c=Object.defineProperty;var h=(s,t,e)=>t in s?c(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var i=(s,t,e)=>(h(s,typeof t!="symbol"?t+"":t,e),e);import{C as n}from"./gateway.63e02d1d.js";import{A as d}from"./activeRecord.2bc1b71f.js";import"./registerWidgets.3fe0df5a.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[t]="3822efac-d031-4a88-a857-55b45122992e",s._sentryDebugIdIdentifier="sentry-dbid-3822efac-d031-4a88-a857-55b45122992e")}catch{}})();class o{constructor(){i(this,"urlPath","organizations")}async create(t){return n.post(`${this.urlPath}`,t)}async delete(t){await n.delete(`${this.urlPath}/${t}`)}async list(){return n.get(`${this.urlPath}`)}async get(t){return n.get(`${this.urlPath}/${t}`)}async update(t,e){return n.patch(`${this.urlPath}/${t}`,e)}}const a=new o;class r{constructor(t){i(this,"initialState");i(this,"changes");i(this,"record");this.record=d.create(a,t,"id"),this.initialState=t,this.changes={}}static async list(){const t=await a.list();return console.log(t),t.map(e=>new r(e))}static async create(t){const e=await a.create({name:t});return new r(e)}static async get(t){const e=await a.get(t);return new r(e)}async delete(){await a.delete(this.id)}async save(){Object.keys(this.changes).length!==0&&(this.initialState=await a.update(this.id,this.changes),this.changes={})}get(t){var e;return(e=this.changes[t])!=null?e:this.initialState[t]}set(t,e){this.changes[t]=e}hasChanges(){return Object.keys(this.changes).length>0}get id(){return this.record.get("id")}set id(t){this.record.set("id",t)}get name(){return this.record.get("name")}}export{r as O}; -//# sourceMappingURL=organization.dde8e095.js.map +var c=Object.defineProperty;var h=(s,t,e)=>t in s?c(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var i=(s,t,e)=>(h(s,typeof t!="symbol"?t+"":t,e),e);import{C as n}from"./gateway.2edca867.js";import{A as d}from"./activeRecord.adfc6223.js";import"./registerWidgets.cb3a7b8d.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[t]="a0f45882-d389-4d71-aca0-304f41cf85ff",s._sentryDebugIdIdentifier="sentry-dbid-a0f45882-d389-4d71-aca0-304f41cf85ff")}catch{}})();class o{constructor(){i(this,"urlPath","organizations")}async create(t){return n.post(`${this.urlPath}`,t)}async delete(t){await n.delete(`${this.urlPath}/${t}`)}async list(){return n.get(`${this.urlPath}`)}async get(t){return n.get(`${this.urlPath}/${t}`)}async update(t,e){return n.patch(`${this.urlPath}/${t}`,e)}}const a=new o;class r{constructor(t){i(this,"initialState");i(this,"changes");i(this,"record");this.record=d.create(a,t,"id"),this.initialState=t,this.changes={}}static async list(){const t=await a.list();return console.log(t),t.map(e=>new r(e))}static async create(t){const e=await a.create({name:t});return new r(e)}static async get(t){const e=await a.get(t);return new r(e)}async delete(){await a.delete(this.id)}async save(){Object.keys(this.changes).length!==0&&(this.initialState=await a.update(this.id,this.changes),this.changes={})}get(t){var e;return(e=this.changes[t])!=null?e:this.initialState[t]}set(t,e){this.changes[t]=e}hasChanges(){return Object.keys(this.changes).length>0}get id(){return this.record.get("id")}set id(t){this.record.set("id",t)}get name(){return this.record.get("name")}}export{r as O}; +//# sourceMappingURL=organization.abd54459.js.map diff --git a/abstra_statics/dist/assets/passwordlessManager.f53316a7.js b/abstra_statics/dist/assets/passwordlessManager.afd7d1d0.js similarity index 81% rename from abstra_statics/dist/assets/passwordlessManager.f53316a7.js rename to abstra_statics/dist/assets/passwordlessManager.afd7d1d0.js index 825ec1ddf6..9d1af70b29 100644 --- a/abstra_statics/dist/assets/passwordlessManager.f53316a7.js +++ b/abstra_statics/dist/assets/passwordlessManager.afd7d1d0.js @@ -1,2 +1,2 @@ -var b=Object.defineProperty;var g=(r,e,t)=>e in r?b(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var u=(r,e,t)=>(g(r,typeof e!="symbol"?e+"":e,t),t);import{u as f}from"./registerWidgets.3fe0df5a.js";import{P as y}from"./pubsub.909df758.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="8ac4ce39-1d13-4953-b3a2-96f717f62b8f",r._sentryDebugIdIdentifier="sentry-dbid-8ac4ce39-1d13-4953-b3a2-96f717f62b8f")}catch{}})();const v=()=>window.location.host.includes(".abstra.io"),m={passwordless:"/api/passwordless","cloud-api":"/api/cloud-api"},I={passwordless:"https://passwordless.abstra.cloud","cloud-api":"https://cloud-api.abstra.cloud"},h=r=>{const e="VITE_"+f.toUpper(f.snakeCase(r)),t={VITE_SENTRY_RELEASE:"1f6a4fc4465fbba5c16b6e0defda563916f76eb8",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}[e];return t||(v()?m[r]:I[r])};class a{static get(e){try{const t=localStorage.getItem(e);return t&&JSON.parse(t)}catch{return null}}static set(e,t){localStorage.setItem(e,JSON.stringify(t))}static pop(e){const t=a.get(e);return a.remove(e),t}static remove(e){localStorage.removeItem(e)}}function l(r){this.message=r}l.prototype=new Error,l.prototype.name="InvalidCharacterError";var w=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(r){var e=String(r).replace(/=+$/,"");if(e.length%4==1)throw new l("'atob' failed: The string to be decoded is not correctly encoded.");for(var t,n,s=0,o=0,p="";n=e.charAt(o++);~n&&(t=s%4?64*t+n:n,s++%4)?p+=String.fromCharCode(255&t>>(-2*s&6)):0)n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(n);return p};function E(r){var e=r.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(w(t).replace(/(.)/g,function(n,s){var o=s.charCodeAt(0).toString(16).toUpperCase();return o.length<2&&(o="0"+o),"%"+o}))}(e)}catch{return w(e)}}function d(r){this.message=r}function S(r,e){if(typeof r!="string")throw new d("Invalid token specified");var t=(e=e||{}).header===!0?0:1;try{return JSON.parse(E(r.split(".")[t]))}catch(n){throw new d("Invalid token specified: "+n.message)}}d.prototype=new Error,d.prototype.name="InvalidTokenError";const i=class{constructor(){u(this,"pubsub");this.pubsub=new y}async authenticate(e){try{const t=await fetch(`${h("passwordless")}/authenticate`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({email:e})});if(!t.ok)throw new Error(await t.text());return null}catch(t){return t.message}}async verify(e,t){const n=await fetch(`${h("passwordless")}/verify`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({email:e,token:t})});if(!n.ok)throw new Error(await n.text());const s=await n.json();this.saveJWT(s.jwt);const o=this.getUser();return this.pubsub.publish("authenticated",o),o}saveJWT(e){a.set(i.key,e)}getJWT(){return a.get(i.key)}getUser(){const e=this.getJWT();if(e)try{const t=S(e);if(t.exp&&t.exp>Date.now()/1e3)return{jwt:e,claims:t}}catch{console.warn("Invalid JWT")}return null}removeUser(){a.remove(i.key)}getUserHeaders(e="User-Authorization"){const t=this.getJWT();return t?{[e]:`Bearer ${t}`}:{}}};let c=i;u(c,"key","hackerforms:auth:jwt");const J=new c;export{J as p,h as t}; -//# sourceMappingURL=passwordlessManager.f53316a7.js.map +var g=Object.defineProperty;var y=(r,e,t)=>e in r?g(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var u=(r,e,t)=>(y(r,typeof e!="symbol"?e+"":e,t),t);import{u as f}from"./registerWidgets.cb3a7b8d.js";import{P as b}from"./pubsub.f85a17d2.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="d04a3644-f36e-4ffa-93e9-c699c81ed8b4",r._sentryDebugIdIdentifier="sentry-dbid-d04a3644-f36e-4ffa-93e9-c699c81ed8b4")}catch{}})();const v=()=>window.location.host.includes(".abstra.io"),m={passwordless:"/api/passwordless","cloud-api":"/api/cloud-api"},I={passwordless:"https://passwordless.abstra.cloud","cloud-api":"https://cloud-api.abstra.cloud"},h=r=>{const e="VITE_"+f.toUpper(f.snakeCase(r)),t={VITE_SENTRY_RELEASE:"68390b92c96785cc45a58533020cb41267486f3a",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}[e];return t||(v()?m[r]:I[r])};class a{static get(e){try{const t=localStorage.getItem(e);return t&&JSON.parse(t)}catch{return null}}static set(e,t){localStorage.setItem(e,JSON.stringify(t))}static pop(e){const t=a.get(e);return a.remove(e),t}static remove(e){localStorage.removeItem(e)}}function l(r){this.message=r}l.prototype=new Error,l.prototype.name="InvalidCharacterError";var w=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(r){var e=String(r).replace(/=+$/,"");if(e.length%4==1)throw new l("'atob' failed: The string to be decoded is not correctly encoded.");for(var t,n,s=0,o=0,p="";n=e.charAt(o++);~n&&(t=s%4?64*t+n:n,s++%4)?p+=String.fromCharCode(255&t>>(-2*s&6)):0)n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(n);return p};function E(r){var e=r.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(w(t).replace(/(.)/g,function(n,s){var o=s.charCodeAt(0).toString(16).toUpperCase();return o.length<2&&(o="0"+o),"%"+o}))}(e)}catch{return w(e)}}function d(r){this.message=r}function S(r,e){if(typeof r!="string")throw new d("Invalid token specified");var t=(e=e||{}).header===!0?0:1;try{return JSON.parse(E(r.split(".")[t]))}catch(n){throw new d("Invalid token specified: "+n.message)}}d.prototype=new Error,d.prototype.name="InvalidTokenError";const i=class{constructor(){u(this,"pubsub");this.pubsub=new b}async authenticate(e){try{const t=await fetch(`${h("passwordless")}/authenticate`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({email:e})});if(!t.ok)throw new Error(await t.text());return null}catch(t){return t.message}}async verify(e,t){const n=await fetch(`${h("passwordless")}/verify`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({email:e,token:t})});if(!n.ok)throw new Error(await n.text());const s=await n.json();this.saveJWT(s.jwt);const o=this.getUser();return this.pubsub.publish("authenticated",o),o}saveJWT(e){a.set(i.key,e)}getJWT(){return a.get(i.key)}getUser(){const e=this.getJWT();if(e)try{const t=S(e);if(t.exp&&t.exp>Date.now()/1e3)return{jwt:e,claims:t}}catch{console.warn("Invalid JWT")}return null}removeUser(){a.remove(i.key)}getUserHeaders(e="User-Authorization"){const t=this.getJWT();return t?{[e]:`Bearer ${t}`}:{}}};let c=i;u(c,"key","hackerforms:auth:jwt");const J=new c;export{J as p,h as t}; +//# sourceMappingURL=passwordlessManager.afd7d1d0.js.map diff --git a/abstra_statics/dist/assets/player.1871538e.js b/abstra_statics/dist/assets/player.1871538e.js deleted file mode 100644 index 8bab7ae65e..0000000000 --- a/abstra_statics/dist/assets/player.1871538e.js +++ /dev/null @@ -1,2 +0,0 @@ -import{q as r,a,b as i,t as c,f as p,g as _,_ as d,h as u,k as l,T as h,P as b,C as f,M as g,s as y,i as m,j as s,l as v,m as w,n as k}from"./registerWidgets.3fe0df5a.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b4a087b7-1c50-4046-b007-a908c02b39ec",e._sentryDebugIdIdentifier="sentry-dbid-b4a087b7-1c50-4046-b007-a908c02b39ec")}catch{}})();const I={};function A(e,t){const n=a("router-view");return i(),c(n,{style:{"min-height":"100vh","box-sizing":"border-box",width:"100%"}})}const x=r(I,[["render",A]]),o=p({history:_("/"),routes:[{path:"/:path(.*)*",name:"player",component:()=>d(()=>import("./Player.616482e5.js"),["assets/Player.616482e5.js","assets/index.776642db.js","assets/registerWidgets.3fe0df5a.js","assets/registerWidgets.448db7e9.css","assets/uuid.8e57fc19.js","assets/broker.4d1bc0fe.js","assets/passwordlessManager.f53316a7.js","assets/pubsub.909df758.js","assets/icons.9d575a00.js","assets/ActionButton.vue_vue_type_script_setup_true_lang.9bc2be06.js","assets/Passwordless.15dd7595.js","assets/CircularLoading.2fb746db.js","assets/lottie.8f58e4c7.js","assets/CircularLoading.f81b57b4.css","assets/Passwordless.86ac0c56.css","assets/executeJs.9eb1c025.js","assets/PlayerNavbar.9ff5d98a.js","assets/PlayerNavbar.adff8b48.css","assets/WidgetsFrame.c900894c.js","assets/colors.b2406923.js","assets/WidgetsFrame.701a818b.css","assets/Modal.32a3d62d.js","assets/Modal.5aaf8eba.css","assets/executeJs.887e9a58.css","assets/broker.5f3abad8.css","assets/DashPlayer.0888e5b9.js","assets/runnerData.331b4b09.js","assets/DashPlayer.ef4a798d.css","assets/asyncComputed.4b275614.js","assets/Player.20a058fa.css"])}],scrollBehavior(e){if(e.hash)return{el:e.hash}}});class D{static init(){setInterval(()=>fetch("/_healthcheck"),20*1e3)}}const W=()=>{const e=u({render:()=>l(x)});h.init(),D.init(),e.use(o),e.use(b),e.mount("#app"),e.component("VSelect",f),e.component("Markdown",g),e.component("Message",y),m(e,o),s(e,v),s(e,w),s(e,k)};W(); -//# sourceMappingURL=player.1871538e.js.map diff --git a/abstra_statics/dist/assets/player.3af67cd1.js b/abstra_statics/dist/assets/player.3af67cd1.js new file mode 100644 index 0000000000..888dee456b --- /dev/null +++ b/abstra_statics/dist/assets/player.3af67cd1.js @@ -0,0 +1,2 @@ +import{q as r,a,b as i,t as c,f as d,g as p,_,h as u,k as f,T as l,P as h,C as g,M as y,s as m,i as b,j as s,l as v,m as w,n as k}from"./registerWidgets.cb3a7b8d.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fc210a1d-0f69-4063-a0d8-b37f67516272",e._sentryDebugIdIdentifier="sentry-dbid-fc210a1d-0f69-4063-a0d8-b37f67516272")}catch{}})();const I={};function A(e,t){const n=a("router-view");return i(),c(n,{style:{"min-height":"100vh","box-sizing":"border-box",width:"100%"}})}const x=r(I,[["render",A]]),o=d({history:p("/"),routes:[{path:"/:path(.*)*",name:"player",component:()=>_(()=>import("./Player.4d7db160.js"),["assets/Player.4d7db160.js","assets/index.7d1457d9.js","assets/registerWidgets.cb3a7b8d.js","assets/registerWidgets.448db7e9.css","assets/uuid.0e63ad64.js","assets/broker.988d8f9b.js","assets/passwordlessManager.afd7d1d0.js","assets/pubsub.f85a17d2.js","assets/icons.39dfa322.js","assets/ActionButton.vue_vue_type_script_setup_true_lang.9a3f9909.js","assets/Passwordless.7161b834.js","assets/CircularLoading.1e68d2b1.js","assets/lottie.234eb92e.js","assets/CircularLoading.f81b57b4.css","assets/Passwordless.86ac0c56.css","assets/executeJs.87b204c8.js","assets/PlayerNavbar.fe11d508.js","assets/PlayerNavbar.adff8b48.css","assets/WidgetsFrame.aac2edff.js","assets/colors.868ae049.js","assets/WidgetsFrame.701a818b.css","assets/Modal.43c3d47a.js","assets/Modal.5aaf8eba.css","assets/executeJs.887e9a58.css","assets/broker.5f3abad8.css","assets/DashPlayer.6d1530bb.js","assets/runnerData.7b7cb682.js","assets/DashPlayer.ef4a798d.css","assets/asyncComputed.31994732.js","assets/Player.20a058fa.css"])}],scrollBehavior(e){if(e.hash)return{el:e.hash}}});class D{static init(){setInterval(()=>fetch("/_healthcheck"),20*1e3)}}const W=()=>{const e=u({render:()=>f(x)});l.init(),D.init(),e.use(o),e.use(h),e.mount("#app"),e.component("VSelect",g),e.component("Markdown",y),e.component("Message",m),b(e,o),s(e,v),s(e,w),s(e,k)};W(); +//# sourceMappingURL=player.3af67cd1.js.map diff --git a/abstra_statics/dist/assets/project.71f5fd7c.js b/abstra_statics/dist/assets/project.71f5fd7c.js deleted file mode 100644 index 0ada853c4f..0000000000 --- a/abstra_statics/dist/assets/project.71f5fd7c.js +++ /dev/null @@ -1,2 +0,0 @@ -var d=Object.defineProperty;var o=(r,t,e)=>t in r?d(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var c=(r,t,e)=>(o(r,typeof t!="symbol"?t+"":t,e),e);import{C as a}from"./gateway.63e02d1d.js";import{A as u}from"./activeRecord.2bc1b71f.js";import"./registerWidgets.3fe0df5a.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[t]="389c62c4-e5b7-4c91-a1f0-396baf4171e6",r._sentryDebugIdIdentifier="sentry-dbid-389c62c4-e5b7-4c91-a1f0-396baf4171e6")}catch{}})();class h{constructor(){c(this,"urlPath","projects")}async create({name:t,organizationId:e}){return a.post(`organizations/${e}/${this.urlPath}`,{name:t})}async delete(t){await a.delete(`/${this.urlPath}/${t}`)}async list(t){return a.get(`organizations/${t}/${this.urlPath}`)}async get(t){return a.get(`${this.urlPath}/${t}`)}async update(t,e){return a.patch(`${this.urlPath}/${t}`,e)}async duplicate(t){return a.post(`${this.urlPath}/${t}/duplicate`,{})}}const s=new h;class n{constructor(t){c(this,"record");this.record=u.create(s,t,"id")}static async list(t){return(await s.list(t)).map(i=>new n(i))}static async create({name:t,organizationId:e}){const i=await s.create({organizationId:e,name:t});return new n(i)}static async get(t){const e=await s.get(t);return new n(e)}async delete(){await s.delete(this.id)}async save(){return this.record.save()}hasChanges(){return this.record.hasChanges()}get id(){return this.record.get("id")}set id(t){this.record.set("id",t)}async duplicate(){return await s.duplicate(this.id)}get name(){return this.record.get("name")}set name(t){this.record.set("name",t)}get organizationId(){return this.record.get("organizationId")}get subdomain(){return this.record.get("subdomain")}set subdomain(t){this.record.set("subdomain",t)}}export{n as P}; -//# sourceMappingURL=project.71f5fd7c.js.map diff --git a/abstra_statics/dist/assets/project.af2b2708.js b/abstra_statics/dist/assets/project.af2b2708.js new file mode 100644 index 0000000000..86d953a7b0 --- /dev/null +++ b/abstra_statics/dist/assets/project.af2b2708.js @@ -0,0 +1,2 @@ +var c=Object.defineProperty;var o=(a,t,e)=>t in a?c(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var d=(a,t,e)=>(o(a,typeof t!="symbol"?t+"":t,e),e);import{C as r}from"./gateway.2edca867.js";import{A as u}from"./activeRecord.adfc6223.js";import"./registerWidgets.cb3a7b8d.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="f36142c8-d4a4-48ea-ade1-aea52fc6a6df",a._sentryDebugIdIdentifier="sentry-dbid-f36142c8-d4a4-48ea-ade1-aea52fc6a6df")}catch{}})();class h{constructor(){d(this,"urlPath","projects")}async create({name:t,organizationId:e}){return r.post(`organizations/${e}/${this.urlPath}`,{name:t})}async delete(t){await r.delete(`/${this.urlPath}/${t}`)}async list(t){return r.get(`organizations/${t}/${this.urlPath}`)}async get(t){return r.get(`${this.urlPath}/${t}`)}async update(t,e){return r.patch(`${this.urlPath}/${t}`,e)}async duplicate(t){return r.post(`${this.urlPath}/${t}/duplicate`,{})}}const s=new h;class n{constructor(t){d(this,"record");this.record=u.create(s,t,"id")}static async list(t){return(await s.list(t)).map(i=>new n(i))}static async create({name:t,organizationId:e}){const i=await s.create({organizationId:e,name:t});return new n(i)}static async get(t){const e=await s.get(t);return new n(e)}async delete(){await s.delete(this.id)}async save(){return this.record.save()}hasChanges(){return this.record.hasChanges()}get id(){return this.record.get("id")}set id(t){this.record.set("id",t)}async duplicate(){return await s.duplicate(this.id)}get name(){return this.record.get("name")}set name(t){this.record.set("name",t)}get organizationId(){return this.record.get("organizationId")}get subdomain(){return this.record.get("subdomain")}set subdomain(t){this.record.set("subdomain",t)}}export{n as P}; +//# sourceMappingURL=project.af2b2708.js.map diff --git a/abstra_statics/dist/assets/pubsub.909df758.js b/abstra_statics/dist/assets/pubsub.f85a17d2.js similarity index 60% rename from abstra_statics/dist/assets/pubsub.909df758.js rename to abstra_statics/dist/assets/pubsub.f85a17d2.js index c2afda2f38..9c50b87ff6 100644 --- a/abstra_statics/dist/assets/pubsub.909df758.js +++ b/abstra_statics/dist/assets/pubsub.f85a17d2.js @@ -1,2 +1,2 @@ -var u=Object.defineProperty;var b=(e,s,t)=>s in e?u(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t;var o=(e,s,t)=>(b(e,typeof s!="symbol"?s+"":s,t),t);import"./registerWidgets.3fe0df5a.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="d4d466af-82b0-4369-a4f2-d81db2eeb5f3",e._sentryDebugIdIdentifier="sentry-dbid-d4d466af-82b0-4369-a4f2-d81db2eeb5f3")}catch{}})();class d{constructor(){o(this,"topics");o(this,"subUid");this.topics={},this.subUid=-1}subscribe(s,t){const i=typeof s=="string"?[s]:s,n=(++this.subUid).toString();return i.forEach(r=>{this.topics[r]||(this.topics[r]=[]),this.topics[r].push({token:n,func:t})}),n}async wait(s){return new Promise(t=>{const i=this.subscribe(s,n=>{this.unsubscribe(i),t(n)})})}async publish(s,...t){if(!this.topics[s])return!1;const i=this.topics[s];let n=i?i.length:0;for(;n--;)await i[n].func(t[0]);return!0}unsubscribe(s){for(const t in this.topics)if(this.topics[t]){for(let i=0,n=this.topics[t].length;is in e?o(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t;var c=(e,s,t)=>(u(e,typeof s!="symbol"?s+"":s,t),t);import"./registerWidgets.cb3a7b8d.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="7fa8c2bc-497d-41e9-aa08-147fdfec1f4b",e._sentryDebugIdIdentifier="sentry-dbid-7fa8c2bc-497d-41e9-aa08-147fdfec1f4b")}catch{}})();class d{constructor(){c(this,"topics");c(this,"subUid");this.topics={},this.subUid=-1}subscribe(s,t){const i=typeof s=="string"?[s]:s,n=(++this.subUid).toString();return i.forEach(r=>{this.topics[r]||(this.topics[r]=[]),this.topics[r].push({token:n,func:t})}),n}async wait(s){return new Promise(t=>{const i=this.subscribe(s,n=>{this.unsubscribe(i),t(n)})})}async publish(s,...t){if(!this.topics[s])return!1;const i=this.topics[s];let n=i?i.length:0;for(;n--;)await i[n].func(t[0]);return!0}unsubscribe(s){for(const t in this.topics)if(this.topics[t]){for(let i=0,n=this.topics[t].length;i{if(e&&typeof e=="object"||typeof e=="function")for(let r of p(e))!d.call(t,r)&&r!==n&&l(t,r,{get:()=>e[r],enumerable:!(s=c(e,r))||s.enumerable});return t},g=(t,e,n)=>(o(t,e,"default"),n&&o(n,e,"default")),i={};g(i,a);var b={comments:{lineComment:"#",blockComment:["'''","'''"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$"),action:{indentAction:i.languages.IndentAction.Indent}}],folding:{offSide:!0,markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},m={defaultToken:"",tokenPostfix:".python",keywords:["False","None","True","_","and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","match","nonlocal","not","or","pass","print","raise","return","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","self","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()]/,"@brackets"],[/@[a-zA-Z_]\w*/,"tag"],[/[a-zA-Z_]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}]],whitespace:[[/\s+/,"white"],[/(^#.*$)/,"comment"],[/'''/,"string","@endDocString"],[/"""/,"string","@endDblDocString"]],endDocString:[[/[^']+/,"string"],[/\\'/,"string"],[/'''/,"string","@popall"],[/'/,"string"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string","@popall"],[/"/,"string"]],numbers:[[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/,"number"]],strings:[[/'$/,"string.escape","@popall"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]]}};export{b as conf,m as language}; -//# sourceMappingURL=python.cbb8b35a.js.map + *-----------------------------------------------------------------------------*/var l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,o=(t,e,n,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of p(e))!d.call(t,r)&&r!==n&&l(t,r,{get:()=>e[r],enumerable:!(s=c(e,r))||s.enumerable});return t},g=(t,e,n)=>(o(t,e,"default"),n&&o(n,e,"default")),i={};g(i,a);var m={comments:{lineComment:"#",blockComment:["'''","'''"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$"),action:{indentAction:i.languages.IndentAction.Indent}}],folding:{offSide:!0,markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},f={defaultToken:"",tokenPostfix:".python",keywords:["False","None","True","_","and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","match","nonlocal","not","or","pass","print","raise","return","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","self","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()]/,"@brackets"],[/@[a-zA-Z_]\w*/,"tag"],[/[a-zA-Z_]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}]],whitespace:[[/\s+/,"white"],[/(^#.*$)/,"comment"],[/'''/,"string","@endDocString"],[/"""/,"string","@endDblDocString"]],endDocString:[[/[^']+/,"string"],[/\\'/,"string"],[/'''/,"string","@popall"],[/'/,"string"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string","@popall"],[/"/,"string"]],numbers:[[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/,"number"]],strings:[[/'$/,"string.escape","@popall"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]]}};export{m as conf,f as language}; +//# sourceMappingURL=python.621b12c7.js.map diff --git a/abstra_statics/dist/assets/razor.10cd3c04.js b/abstra_statics/dist/assets/razor.0216e359.js similarity index 93% rename from abstra_statics/dist/assets/razor.10cd3c04.js rename to abstra_statics/dist/assets/razor.0216e359.js index 6d8fbd3319..a21e6b6bbf 100644 --- a/abstra_statics/dist/assets/razor.10cd3c04.js +++ b/abstra_statics/dist/assets/razor.0216e359.js @@ -1,7 +1,7 @@ -import{m as s}from"./editor.main.aa43f13b.js";import"./registerWidgets.3fe0df5a.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="68066387-a134-43e1-8930-968b74557987",t._sentryDebugIdIdentifier="sentry-dbid-68066387-a134-43e1-8930-968b74557987")}catch{}})();/*!----------------------------------------------------------------------------- +import{m as s}from"./editor.main.2331c6e5.js";import"./registerWidgets.cb3a7b8d.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="bbbedba0-2622-4a1a-b8b2-b1e520e407aa",t._sentryDebugIdIdentifier="sentry-dbid-bbbedba0-2622-4a1a-b8b2-b1e520e407aa")}catch{}})();/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,i=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of d(e))!p.call(t,o)&&o!==r&&c(t,o,{get:()=>e[o],enumerable:!(a=l(e,o))||a.enumerable});return t},h=(t,e,r)=>(i(t,e,"default"),r&&i(r,e,"default")),n={};h(n,s);var m=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],y={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:[""]},brackets:[[""],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:n.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:n.languages.IndentAction.Indent}}]},k={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/@@@@/],[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],razorInSimpleState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3"}]],razorInEmbeddedState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],razorBlockCommentTopLevel:[[/\*@/,"@rematch","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorBlockComment:[[/\*@/,"comment.cs","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorRootTopLevel:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/[})]/,"@rematch","@pop"],{include:"razorCommon"}],razorRoot:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/\}/,"delimiter.bracket.cs","@pop"],[/\)/,"delimiter.parenthesis.cs","@pop"],{include:"razorCommon"}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:"keyword.cs"},"@default":"identifier.cs"}}],[/[\[\]]/,"delimiter.array.cs"],[/[ \t\r\n]+/],[/\/\/.*$/,"comment.cs"],[/@\*/,"comment.cs","@razorBlockComment"],[/"([^"]*)"/,"string.cs"],[/'([^']*)'/,"string.cs"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<\/)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,"delimiter.cs"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.cs"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.cs"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.cs"],[/0[0-7']*[0-7]/,"number.octal.cs"],[/0[bB][0-1']*[0-1]/,"number.binary.cs"],[/\d[\d']*/,"number.cs"],[/\d/,"number.cs"]]},razorKeywords:["abstract","as","async","await","base","bool","break","by","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","descending","explicit","event","extern","else","enum","false","finally","fixed","float","for","foreach","from","goto","group","if","implicit","in","int","interface","internal","into","is","lock","long","nameof","new","null","namespace","object","operator","out","override","orderby","params","private","protected","public","readonly","ref","return","switch","struct","sbyte","sealed","short","sizeof","stackalloc","static","string","select","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","var","virtual","volatile","void","when","while","where","yield","model","inject"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/};export{y as conf,k as language}; -//# sourceMappingURL=razor.10cd3c04.js.map + *-----------------------------------------------------------------------------*/var c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,i=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of d(e))!p.call(t,o)&&o!==r&&c(t,o,{get:()=>e[o],enumerable:!(n=l(e,o))||n.enumerable});return t},h=(t,e,r)=>(i(t,e,"default"),r&&i(r,e,"default")),a={};h(a,s);var m=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],y={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:[""]},brackets:[[""],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:a.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:a.languages.IndentAction.Indent}}]},k={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/@@@@/],[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],razorInSimpleState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3"}]],razorInEmbeddedState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],razorBlockCommentTopLevel:[[/\*@/,"@rematch","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorBlockComment:[[/\*@/,"comment.cs","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorRootTopLevel:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/[})]/,"@rematch","@pop"],{include:"razorCommon"}],razorRoot:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/\}/,"delimiter.bracket.cs","@pop"],[/\)/,"delimiter.parenthesis.cs","@pop"],{include:"razorCommon"}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:"keyword.cs"},"@default":"identifier.cs"}}],[/[\[\]]/,"delimiter.array.cs"],[/[ \t\r\n]+/],[/\/\/.*$/,"comment.cs"],[/@\*/,"comment.cs","@razorBlockComment"],[/"([^"]*)"/,"string.cs"],[/'([^']*)'/,"string.cs"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<\/)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,"delimiter.cs"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.cs"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.cs"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.cs"],[/0[0-7']*[0-7]/,"number.octal.cs"],[/0[bB][0-1']*[0-1]/,"number.binary.cs"],[/\d[\d']*/,"number.cs"],[/\d/,"number.cs"]]},razorKeywords:["abstract","as","async","await","base","bool","break","by","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","descending","explicit","event","extern","else","enum","false","finally","fixed","float","for","foreach","from","goto","group","if","implicit","in","int","interface","internal","into","is","lock","long","nameof","new","null","namespace","object","operator","out","override","orderby","params","private","protected","public","readonly","ref","return","switch","struct","sbyte","sealed","short","sizeof","stackalloc","static","string","select","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","var","virtual","volatile","void","when","while","where","yield","model","inject"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/};export{y as conf,k as language}; +//# sourceMappingURL=razor.0216e359.js.map diff --git a/abstra_statics/dist/assets/registerWidgets.3fe0df5a.js b/abstra_statics/dist/assets/registerWidgets.cb3a7b8d.js similarity index 99% rename from abstra_statics/dist/assets/registerWidgets.3fe0df5a.js rename to abstra_statics/dist/assets/registerWidgets.cb3a7b8d.js index 2dfff05cc3..6bd680447d 100644 --- a/abstra_statics/dist/assets/registerWidgets.3fe0df5a.js +++ b/abstra_statics/dist/assets/registerWidgets.cb3a7b8d.js @@ -1,4 +1,4 @@ -var D4=Object.defineProperty;var M4=(e,t,n)=>t in e?D4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Si=(e,t,n)=>(M4(e,typeof t!="symbol"?t+"":t,n),n);(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7f1b54c8-32e0-40f4-97a8-74c35e9a8800",e._sentryDebugIdIdentifier="sentry-dbid-7f1b54c8-32e0-40f4-97a8-74c35e9a8800")}catch{}})();(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const d of a.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerpolicy&&(a.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?a.credentials="include":i.crossorigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();function vg(e,t){const n=Object.create(null),r=e.split(",");for(let i=0;i!!n[i.toLowerCase()]:i=>!!n[i]}const k4="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",P4=vg(k4);function Zn(e){if(ut(e)){const t={};for(let n=0;n{if(n){const r=n.split($4);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ct(e){let t="";if(Qn(e))t=e;else if(ut(e))for(let n=0;nHs(n,t))}const pt=e=>Qn(e)?e:e==null?"":ut(e)||$n(e)&&(e.toString===VD||!It(e.toString))?JSON.stringify(e,YD,2):String(e),YD=(e,t)=>t&&t.__v_isRef?YD(e,t.value):Jc(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i])=>(n[`${r} =>`]=i,n),{})}:ec(t)?{[`Set(${t.size})`]:[...t.values()]}:$n(t)&&!ut(t)&&!qD(t)?String(t):t,An={},Zc=[],Do=()=>{},z4=()=>!1,Y4=/^on[^a-z]/,Zp=e=>Y4.test(e),Oy=e=>e.startsWith("onUpdate:"),ar=Object.assign,wy=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},V4=Object.prototype.hasOwnProperty,on=(e,t)=>V4.call(e,t),ut=Array.isArray,Jc=e=>Qu(e)==="[object Map]",ec=e=>Qu(e)==="[object Set]",Fw=e=>Qu(e)==="[object Date]",q4=e=>Qu(e)==="[object RegExp]",It=e=>typeof e=="function",Qn=e=>typeof e=="string",_p=e=>typeof e=="symbol",$n=e=>e!==null&&typeof e=="object",Ry=e=>$n(e)&&It(e.then)&&It(e.catch),VD=Object.prototype.toString,Qu=e=>VD.call(e),j4=e=>Qu(e).slice(8,-1),qD=e=>Qu(e)==="[object Object]",xy=e=>Qn(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Hd=vg(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),yg=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},W4=/-(\w)/g,Ci=yg(e=>e.replace(W4,(t,n)=>n?n.toUpperCase():"")),K4=/\B([A-Z])/g,uo=yg(e=>e.replace(K4,"-$1").toLowerCase()),Jp=yg(e=>e.charAt(0).toUpperCase()+e.slice(1)),zd=yg(e=>e?`on${Jp(e)}`:""),yu=(e,t)=>!Object.is(e,t),eu=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},xm=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Im=e=>{const t=Qn(e)?Number(e):NaN;return isNaN(t)?e:t};let Bw;const Q4=()=>Bw||(Bw=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Pi;class Iy{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Pi,!t&&Pi&&(this.index=(Pi.scopes||(Pi.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Pi;try{return Pi=this,t()}finally{Pi=n}}}on(){Pi=this}off(){Pi=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},KD=e=>(e.w&zs)>0,QD=e=>(e.n&zs)>0,J4=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(l==="length"||l>=u)&&s.push(o)})}else switch(n!==void 0&&s.push(d.get(n)),t){case"add":ut(e)?xy(n)&&s.push(d.get("length")):(s.push(d.get(Rl)),Jc(e)&&s.push(d.get(ov)));break;case"delete":ut(e)||(s.push(d.get(Rl)),Jc(e)&&s.push(d.get(ov)));break;case"set":Jc(e)&&s.push(d.get(Rl));break}if(s.length===1)s[0]&&av(s[0]);else{const u=[];for(const o of s)o&&u.push(...o);av(Ny(u))}}function av(e,t){const n=ut(e)?e:[...e];for(const r of n)r.computed&&Gw(r);for(const r of n)r.computed||Gw(r)}function Gw(e,t){(e!==Io||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function r6(e,t){var n;return(n=Nm.get(e))===null||n===void 0?void 0:n.get(t)}const i6=vg("__proto__,__v_isRef,__isVue"),JD=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(_p)),o6=Cg(),a6=Cg(!1,!0),s6=Cg(!0),l6=Cg(!0,!0),Hw=c6();function c6(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=Dt(this);for(let a=0,d=this.length;a{e[t]=function(...n){Xu();const r=Dt(this)[t].apply(this,n);return Zu(),r}}),e}function u6(e){const t=Dt(this);return Ti(t,"has",e),t.hasOwnProperty(e)}function Cg(e=!1,t=!1){return function(r,i,a){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_isShallow")return t;if(i==="__v_raw"&&a===(e?t?a1:o1:t?i1:r1).get(r))return r;const d=ut(r);if(!e){if(d&&on(Hw,i))return Reflect.get(Hw,i,a);if(i==="hasOwnProperty")return u6}const s=Reflect.get(r,i,a);return(_p(i)?JD.has(i):i6(i))||(e||Ti(r,"get",i),t)?s:Er(s)?d&&xy(i)?s:s.value:$n(s)?e?Dy(s):Kt(s):s}}const d6=e1(),p6=e1(!0);function e1(e=!1){return function(n,r,i,a){let d=n[r];if(Ll(d)&&Er(d)&&!Er(i))return!1;if(!e&&(!mp(i)&&!Ll(i)&&(d=Dt(d),i=Dt(i)),!ut(n)&&Er(d)&&!Er(i)))return d.value=i,!0;const s=ut(n)&&xy(r)?Number(r)e,Tg=e=>Reflect.getPrototypeOf(e);function i_(e,t,n=!1,r=!1){e=e.__v_raw;const i=Dt(e),a=Dt(t);n||(t!==a&&Ti(i,"get",t),Ti(i,"get",a));const{has:d}=Tg(i),s=r?Ay:n?Py:gp;if(d.call(i,t))return s(e.get(t));if(d.call(i,a))return s(e.get(a));e!==i&&e.get(t)}function o_(e,t=!1){const n=this.__v_raw,r=Dt(n),i=Dt(e);return t||(e!==i&&Ti(r,"has",e),Ti(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function a_(e,t=!1){return e=e.__v_raw,!t&&Ti(Dt(e),"iterate",Rl),Reflect.get(e,"size",e)}function zw(e){e=Dt(e);const t=Dt(this);return Tg(t).has.call(t,e)||(t.add(e),za(t,"add",e,e)),this}function Yw(e,t){t=Dt(t);const n=Dt(this),{has:r,get:i}=Tg(n);let a=r.call(n,e);a||(e=Dt(e),a=r.call(n,e));const d=i.call(n,e);return n.set(e,t),a?yu(t,d)&&za(n,"set",e,t):za(n,"add",e,t),this}function Vw(e){const t=Dt(this),{has:n,get:r}=Tg(t);let i=n.call(t,e);i||(e=Dt(e),i=n.call(t,e)),r&&r.call(t,e);const a=t.delete(e);return i&&za(t,"delete",e,void 0),a}function qw(){const e=Dt(this),t=e.size!==0,n=e.clear();return t&&za(e,"clear",void 0,void 0),n}function s_(e,t){return function(r,i){const a=this,d=a.__v_raw,s=Dt(d),u=t?Ay:e?Py:gp;return!e&&Ti(s,"iterate",Rl),d.forEach((o,l)=>r.call(i,u(o),u(l),a))}}function l_(e,t,n){return function(...r){const i=this.__v_raw,a=Dt(i),d=Jc(a),s=e==="entries"||e===Symbol.iterator&&d,u=e==="keys"&&d,o=i[e](...r),l=n?Ay:t?Py:gp;return!t&&Ti(a,"iterate",u?ov:Rl),{next(){const{value:c,done:p}=o.next();return p?{value:c,done:p}:{value:s?[l(c[0]),l(c[1])]:l(c),done:p}},[Symbol.iterator](){return this}}}}function gs(e){return function(...t){return e==="delete"?!1:this}}function b6(){const e={get(a){return i_(this,a)},get size(){return a_(this)},has:o_,add:zw,set:Yw,delete:Vw,clear:qw,forEach:s_(!1,!1)},t={get(a){return i_(this,a,!1,!0)},get size(){return a_(this)},has:o_,add:zw,set:Yw,delete:Vw,clear:qw,forEach:s_(!1,!0)},n={get(a){return i_(this,a,!0)},get size(){return a_(this,!0)},has(a){return o_.call(this,a,!0)},add:gs("add"),set:gs("set"),delete:gs("delete"),clear:gs("clear"),forEach:s_(!0,!1)},r={get(a){return i_(this,a,!0,!0)},get size(){return a_(this,!0)},has(a){return o_.call(this,a,!0)},add:gs("add"),set:gs("set"),delete:gs("delete"),clear:gs("clear"),forEach:s_(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{e[a]=l_(a,!1,!1),n[a]=l_(a,!0,!1),t[a]=l_(a,!1,!0),r[a]=l_(a,!0,!0)}),[e,n,t,r]}const[S6,v6,E6,y6]=b6();function Og(e,t){const n=t?e?y6:E6:e?v6:S6;return(r,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(on(n,i)&&i in r?n:r,i,a)}const C6={get:Og(!1,!1)},T6={get:Og(!1,!0)},O6={get:Og(!0,!1)},w6={get:Og(!0,!0)},r1=new WeakMap,i1=new WeakMap,o1=new WeakMap,a1=new WeakMap;function R6(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function x6(e){return e.__v_skip||!Object.isExtensible(e)?0:R6(j4(e))}function Kt(e){return Ll(e)?e:wg(e,!1,t1,C6,r1)}function s1(e){return wg(e,!1,g6,T6,i1)}function Dy(e){return wg(e,!0,n1,O6,o1)}function I6(e){return wg(e,!0,h6,w6,a1)}function wg(e,t,n,r,i){if(!$n(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=i.get(e);if(a)return a;const d=x6(e);if(d===0)return e;const s=new Proxy(e,d===2?r:n);return i.set(e,s),s}function xl(e){return Ll(e)?xl(e.__v_raw):!!(e&&e.__v_isReactive)}function Ll(e){return!!(e&&e.__v_isReadonly)}function mp(e){return!!(e&&e.__v_isShallow)}function My(e){return xl(e)||Ll(e)}function Dt(e){const t=e&&e.__v_raw;return t?Dt(t):e}function ky(e){return Rm(e,"__v_skip",!0),e}const gp=e=>$n(e)?Kt(e):e,Py=e=>$n(e)?Dy(e):e;function Ly(e){Ps&&Io&&(e=Dt(e),ZD(e.dep||(e.dep=Ny())))}function Rg(e,t){e=Dt(e);const n=e.dep;n&&av(n)}function Er(e){return!!(e&&e.__v_isRef===!0)}function ke(e){return l1(e,!1)}function Ie(e){return l1(e,!0)}function l1(e,t){return Er(e)?e:new N6(e,t)}class N6{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Dt(t),this._value=n?t:gp(t)}get value(){return Ly(this),this._value}set value(t){const n=this.__v_isShallow||mp(t)||Ll(t);t=n?t:Dt(t),yu(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:gp(t),Rg(this))}}function A6(e){Rg(e)}function Ve(e){return Er(e)?e.value:e}const D6={get:(e,t,n)=>Ve(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return Er(i)&&!Er(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function $y(e){return xl(e)?e:new Proxy(e,D6)}class M6{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>Ly(this),()=>Rg(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function k6(e){return new M6(e)}function tu(e){const t=ut(e)?new Array(e.length):{};for(const n in e)t[n]=cn(e,n);return t}class P6{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return r6(Dt(this._object),this._key)}}function cn(e,t,n){const r=e[t];return Er(r)?r:new P6(e,t,n)}var c1;class L6{constructor(t,n,r,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[c1]=!1,this._dirty=!0,this.effect=new ef(t,()=>{this._dirty||(this._dirty=!0,Rg(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}get value(){const t=Dt(this);return Ly(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}c1="__v_isReadonly";function $6(e,t,n=!1){let r,i;const a=It(e);return a?(r=e,i=Do):(r=e.get,i=e.set),new L6(r,i,a||!i,n)}function F6(e,...t){}function B6(e,t){}function Ua(e,t,n,r){let i;try{i=r?e(...r):e()}catch(a){tc(a,t,n)}return i}function Fi(e,t,n,r){if(It(e)){const a=Ua(e,t,n,r);return a&&Ry(a)&&a.catch(d=>{tc(d,t,n)}),a}const i=[];for(let a=0;a>>1;bp(Jr[r])Zo&&Jr.splice(t,1)}function By(e){ut(e)?nu.push(...e):(!Oa||!Oa.includes(e,e.allowRecurse?hl+1:hl))&&nu.push(e),d1()}function jw(e,t=hp?Zo+1:0){for(;tbp(n)-bp(r)),hl=0;hle.id==null?1/0:e.id,z6=(e,t)=>{const n=bp(e)-bp(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function p1(e){sv=!1,hp=!0,Jr.sort(z6);const t=Do;try{for(Zo=0;ZoHc.emit(i,...a)),c_=[]):typeof window<"u"&&window.HTMLElement&&!(!((r=(n=window.navigator)===null||n===void 0?void 0:n.userAgent)===null||r===void 0)&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(a=>{f1(a,t)}),setTimeout(()=>{Hc||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,c_=[])},3e3)):c_=[]}function Y6(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||An;let i=n;const a=t.startsWith("update:"),d=a&&t.slice(7);if(d&&d in r){const l=`${d==="modelValue"?"model":d}Modifiers`,{number:c,trim:p}=r[l]||An;p&&(i=n.map(f=>Qn(f)?f.trim():f)),c&&(i=n.map(xm))}let s,u=r[s=zd(t)]||r[s=zd(Ci(t))];!u&&a&&(u=r[s=zd(uo(t))]),u&&Fi(u,e,6,i);const o=r[s+"Once"];if(o){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Fi(o,e,6,i)}}function _1(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const a=e.emits;let d={},s=!1;if(!It(e)){const u=o=>{const l=_1(o,t,!0);l&&(s=!0,ar(d,l))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!a&&!s?($n(e)&&r.set(e,null),null):(ut(a)?a.forEach(u=>d[u]=null):ar(d,a),$n(e)&&r.set(e,d),d)}function Ig(e,t){return!e||!Zp(t)?!1:(t=t.slice(2).replace(/Once$/,""),on(e,t[0].toLowerCase()+t.slice(1))||on(e,uo(t))||on(e,t))}let Ur=null,Ng=null;function Sp(e){const t=Ur;return Ur=e,Ng=e&&e.type.__scopeId||null,t}function m1(e){Ng=e}function g1(){Ng=null}const V6=e=>kn;function kn(e,t=Ur,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&_v(-1);const a=Sp(t);let d;try{d=e(...i)}finally{Sp(a),r._d&&_v(1)}return d};return r._n=!0,r._c=!0,r._d=!0,r}function sm(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:a,propsOptions:[d],slots:s,attrs:u,emit:o,render:l,renderCache:c,data:p,setupState:f,ctx:m,inheritAttrs:g}=e;let h,b;const v=Sp(e);try{if(n.shapeFlag&4){const y=i||r;h=Li(l.call(y,y,c,a,f,p,m)),b=u}else{const y=t;h=Li(y.length>1?y(a,{attrs:u,slots:s,emit:o}):y(a,null)),b=t.props?u:j6(u)}}catch(y){qd.length=0,tc(y,e,1),h=N(Hr)}let E=h;if(b&&g!==!1){const y=Object.keys(b),{shapeFlag:T}=E;y.length&&T&7&&(d&&y.some(Oy)&&(b=W6(b,d)),E=fi(E,b))}return n.dirs&&(E=fi(E),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&(E.transition=n.transition),h=E,Sp(v),h}function q6(e){let t;for(let n=0;n{let t;for(const n in e)(n==="class"||n==="style"||Zp(n))&&((t||(t={}))[n]=e[n]);return t},W6=(e,t)=>{const n={};for(const r in e)(!Oy(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function K6(e,t,n){const{props:r,children:i,component:a}=e,{props:d,children:s,patchFlag:u}=t,o=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return r?Ww(r,d,o):!!d;if(u&8){const l=t.dynamicProps;for(let c=0;ce.__isSuspense,Q6={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,a,d,s,u,o){e==null?Z6(t,n,r,i,a,d,s,u,o):J6(e,t,n,r,i,d,s,u,o)},hydrate:eY,create:Gy,normalize:tY},X6=Q6;function vp(e,t){const n=e.props&&e.props[t];It(n)&&n()}function Z6(e,t,n,r,i,a,d,s,u){const{p:o,o:{createElement:l}}=u,c=l("div"),p=e.suspense=Gy(e,i,r,t,c,n,a,d,s,u);o(null,p.pendingBranch=e.ssContent,c,null,r,p,a,d),p.deps>0?(vp(e,"onPending"),vp(e,"onFallback"),o(null,e.ssFallback,t,n,r,null,a,d),ru(p,e.ssFallback)):p.resolve()}function J6(e,t,n,r,i,a,d,s,{p:u,um:o,o:{createElement:l}}){const c=t.suspense=e.suspense;c.vnode=t,t.el=e.el;const p=t.ssContent,f=t.ssFallback,{activeBranch:m,pendingBranch:g,isInFallback:h,isHydrating:b}=c;if(g)c.pendingBranch=p,No(p,g)?(u(g,p,c.hiddenContainer,null,i,c,a,d,s),c.deps<=0?c.resolve():h&&(u(m,f,n,r,i,null,a,d,s),ru(c,f))):(c.pendingId++,b?(c.isHydrating=!1,c.activeBranch=g):o(g,i,c),c.deps=0,c.effects.length=0,c.hiddenContainer=l("div"),h?(u(null,p,c.hiddenContainer,null,i,c,a,d,s),c.deps<=0?c.resolve():(u(m,f,n,r,i,null,a,d,s),ru(c,f))):m&&No(p,m)?(u(m,p,n,r,i,c,a,d,s),c.resolve(!0)):(u(null,p,c.hiddenContainer,null,i,c,a,d,s),c.deps<=0&&c.resolve()));else if(m&&No(p,m))u(m,p,n,r,i,c,a,d,s),ru(c,p);else if(vp(t,"onPending"),c.pendingBranch=p,c.pendingId++,u(null,p,c.hiddenContainer,null,i,c,a,d,s),c.deps<=0)c.resolve();else{const{timeout:v,pendingId:E}=c;v>0?setTimeout(()=>{c.pendingId===E&&c.fallback(f)},v):v===0&&c.fallback(f)}}function Gy(e,t,n,r,i,a,d,s,u,o,l=!1){const{p:c,m:p,um:f,n:m,o:{parentNode:g,remove:h}}=o,b=e.props?Im(e.props.timeout):void 0,v={vnode:e,parent:t,parentComponent:n,isSVG:d,container:r,hiddenContainer:i,anchor:a,deps:0,pendingId:0,timeout:typeof b=="number"?b:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:l,isUnmounted:!1,effects:[],resolve(E=!1){const{vnode:y,activeBranch:T,pendingBranch:O,pendingId:C,effects:R,parentComponent:x,container:I}=v;if(v.isHydrating)v.isHydrating=!1;else if(!E){const A=T&&O.transition&&O.transition.mode==="out-in";A&&(T.transition.afterLeave=()=>{C===v.pendingId&&p(O,I,D,0)});let{anchor:D}=v;T&&(D=m(T),f(T,x,v,!0)),A||p(O,I,D,0)}ru(v,O),v.pendingBranch=null,v.isInFallback=!1;let k=v.parent,L=!1;for(;k;){if(k.pendingBranch){k.effects.push(...R),L=!0;break}k=k.parent}L||By(R),v.effects=[],vp(y,"onResolve")},fallback(E){if(!v.pendingBranch)return;const{vnode:y,activeBranch:T,parentComponent:O,container:C,isSVG:R}=v;vp(y,"onFallback");const x=m(T),I=()=>{!v.isInFallback||(c(null,E,C,x,O,null,R,s,u),ru(v,E))},k=E.transition&&E.transition.mode==="out-in";k&&(T.transition.afterLeave=I),v.isInFallback=!0,f(T,O,null,!0),k||I()},move(E,y,T){v.activeBranch&&p(v.activeBranch,E,y,T),v.container=E},next(){return v.activeBranch&&m(v.activeBranch)},registerDep(E,y){const T=!!v.pendingBranch;T&&v.deps++;const O=E.vnode.el;E.asyncDep.catch(C=>{tc(C,E,0)}).then(C=>{if(E.isUnmounted||v.isUnmounted||v.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:R}=E;mv(E,C,!1),O&&(R.el=O);const x=!O&&E.subTree.el;y(E,R,g(O||E.subTree.el),O?null:m(E.subTree),v,d,u),x&&h(x),Uy(E,R.el),T&&--v.deps===0&&v.resolve()})},unmount(E,y){v.isUnmounted=!0,v.activeBranch&&f(v.activeBranch,n,E,y),v.pendingBranch&&f(v.pendingBranch,n,E,y)}};return v}function eY(e,t,n,r,i,a,d,s,u){const o=t.suspense=Gy(t,r,n,e.parentNode,document.createElement("div"),null,i,a,d,s,!0),l=u(e,o.pendingBranch=t.ssContent,n,o,a,d);return o.deps===0&&o.resolve(),l}function tY(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Kw(r?n.default:n),e.ssFallback=r?Kw(n.fallback):N(Hr)}function Kw(e){let t;if(It(e)){const n=Fl&&e._c;n&&(e._d=!1,Se()),e=e(),n&&(e._d=!0,t=yi,G1())}return ut(e)&&(e=q6(e)),e=Li(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function b1(e,t){t&&t.pendingBranch?ut(e)?t.effects.push(...e):t.effects.push(e):By(e)}function ru(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,i=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=i,Uy(r,i))}function $t(e,t){if(ir){let n=ir.provides;const r=ir.parent&&ir.parent.provides;r===n&&(n=ir.provides=Object.create(r)),n[e]=t}}function bt(e,t,n=!1){const r=ir||Ur;if(r){const i=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&It(t)?t.call(r.proxy):t}}function Ht(e,t){return tf(e,null,t)}function S1(e,t){return tf(e,null,{flush:"post"})}function nY(e,t){return tf(e,null,{flush:"sync"})}const u_={};function ze(e,t,n){return tf(e,t,n)}function tf(e,t,{immediate:n,deep:r,flush:i,onTrack:a,onTrigger:d}=An){const s=WD()===(ir==null?void 0:ir.scope)?ir:null;let u,o=!1,l=!1;if(Er(e)?(u=()=>e.value,o=mp(e)):xl(e)?(u=()=>e,r=!0):ut(e)?(l=!0,o=e.some(E=>xl(E)||mp(E)),u=()=>e.map(E=>{if(Er(E))return E.value;if(xl(E))return Tl(E);if(It(E))return Ua(E,s,2)})):It(e)?t?u=()=>Ua(e,s,2):u=()=>{if(!(s&&s.isUnmounted))return c&&c(),Fi(e,s,3,[p])}:u=Do,t&&r){const E=u;u=()=>Tl(E())}let c,p=E=>{c=b.onStop=()=>{Ua(E,s,4)}},f;if(Tu)if(p=Do,t?n&&Fi(t,s,3,[u(),l?[]:void 0,p]):u(),i==="sync"){const E=X1();f=E.__watcherHandles||(E.__watcherHandles=[])}else return Do;let m=l?new Array(e.length).fill(u_):u_;const g=()=>{if(!!b.active)if(t){const E=b.run();(r||o||(l?E.some((y,T)=>yu(y,m[T])):yu(E,m)))&&(c&&c(),Fi(t,s,3,[E,m===u_?void 0:l&&m[0]===u_?[]:m,p]),m=E)}else b.run()};g.allowRecurse=!!t;let h;i==="sync"?h=g:i==="post"?h=()=>Br(g,s&&s.suspense):(g.pre=!0,s&&(g.id=s.uid),h=()=>xg(g));const b=new ef(u,h);t?n?g():m=b.run():i==="post"?Br(b.run.bind(b),s&&s.suspense):b.run();const v=()=>{b.stop(),s&&s.scope&&wy(s.scope.effects,b)};return f&&f.push(v),v}function rY(e,t,n){const r=this.proxy,i=Qn(e)?e.includes(".")?v1(r,e):()=>r[e]:e.bind(r,r);let a;It(t)?a=t:(a=t.handler,n=t);const d=ir;Ys(this);const s=tf(i,a.bind(r),n);return d?Ys(d):Ls(),s}function v1(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i{Tl(n,t)});else if(qD(e))for(const n in e)Tl(e[n],t);return e}function Hy(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return it(()=>{e.isMounted=!0}),tn(()=>{e.isUnmounting=!0}),e}const ro=[Function,Array],iY={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ro,onEnter:ro,onAfterEnter:ro,onEnterCancelled:ro,onBeforeLeave:ro,onLeave:ro,onAfterLeave:ro,onLeaveCancelled:ro,onBeforeAppear:ro,onAppear:ro,onAfterAppear:ro,onAppearCancelled:ro},setup(e,{slots:t}){const n=mr(),r=Hy();let i;return()=>{const a=t.default&&Ag(t.default(),!0);if(!a||!a.length)return;let d=a[0];if(a.length>1){for(const g of a)if(g.type!==Hr){d=g;break}}const s=Dt(e),{mode:u}=s;if(r.isLeaving)return Bb(d);const o=Qw(d);if(!o)return Bb(d);const l=Cu(o,s,r,n);$l(o,l);const c=n.subTree,p=c&&Qw(c);let f=!1;const{getTransitionKey:m}=o.type;if(m){const g=m();i===void 0?i=g:g!==i&&(i=g,f=!0)}if(p&&p.type!==Hr&&(!No(o,p)||f)){const g=Cu(p,s,r,n);if($l(p,g),u==="out-in")return r.isLeaving=!0,g.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},Bb(d);u==="in-out"&&o.type!==Hr&&(g.delayLeave=(h,b,v)=>{const E=E1(r,p);E[String(p.key)]=p,h._leaveCb=()=>{b(),h._leaveCb=void 0,delete l.delayedLeave},l.delayedLeave=v})}return d}}},zy=iY;function E1(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Cu(e,t,n,r){const{appear:i,mode:a,persisted:d=!1,onBeforeEnter:s,onEnter:u,onAfterEnter:o,onEnterCancelled:l,onBeforeLeave:c,onLeave:p,onAfterLeave:f,onLeaveCancelled:m,onBeforeAppear:g,onAppear:h,onAfterAppear:b,onAppearCancelled:v}=t,E=String(e.key),y=E1(n,e),T=(R,x)=>{R&&Fi(R,r,9,x)},O=(R,x)=>{const I=x[1];T(R,x),ut(R)?R.every(k=>k.length<=1)&&I():R.length<=1&&I()},C={mode:a,persisted:d,beforeEnter(R){let x=s;if(!n.isMounted)if(i)x=g||s;else return;R._leaveCb&&R._leaveCb(!0);const I=y[E];I&&No(e,I)&&I.el._leaveCb&&I.el._leaveCb(),T(x,[R])},enter(R){let x=u,I=o,k=l;if(!n.isMounted)if(i)x=h||u,I=b||o,k=v||l;else return;let L=!1;const A=R._enterCb=D=>{L||(L=!0,D?T(k,[R]):T(I,[R]),C.delayedLeave&&C.delayedLeave(),R._enterCb=void 0)};x?O(x,[R,A]):A()},leave(R,x){const I=String(e.key);if(R._enterCb&&R._enterCb(!0),n.isUnmounting)return x();T(c,[R]);let k=!1;const L=R._leaveCb=A=>{k||(k=!0,x(),A?T(m,[R]):T(f,[R]),R._leaveCb=void 0,y[I]===e&&delete y[I])};y[I]=e,p?O(p,[R,L]):L()},clone(R){return Cu(R,t,n,r)}};return C}function Bb(e){if(nf(e))return e=fi(e),e.children=null,e}function Qw(e){return nf(e)?e.children?e.children[0]:void 0:e}function $l(e,t){e.shapeFlag&6&&e.component?$l(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ag(e,t=!1,n){let r=[],i=0;for(let a=0;a1)for(let a=0;a!!e.type.__asyncLoader;function oY(e){It(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,timeout:a,suspensible:d=!0,onError:s}=e;let u=null,o,l=0;const c=()=>(l++,u=null,p()),p=()=>{let f;return u||(f=u=t().catch(m=>{if(m=m instanceof Error?m:new Error(String(m)),s)return new Promise((g,h)=>{s(m,()=>g(c()),()=>h(m),l+1)});throw m}).then(m=>f!==u&&u?u:(m&&(m.__esModule||m[Symbol.toStringTag]==="Module")&&(m=m.default),o=m,m)))};return Te({name:"AsyncComponentWrapper",__asyncLoader:p,get __asyncResolved(){return o},setup(){const f=ir;if(o)return()=>Ub(o,f);const m=v=>{u=null,tc(v,f,13,!r)};if(d&&f.suspense||Tu)return p().then(v=>()=>Ub(v,f)).catch(v=>(m(v),()=>r?N(r,{error:v}):null));const g=ke(!1),h=ke(),b=ke(!!i);return i&&setTimeout(()=>{b.value=!1},i),a!=null&&setTimeout(()=>{if(!g.value&&!h.value){const v=new Error(`Async component timed out after ${a}ms.`);m(v),h.value=v}},a),p().then(()=>{g.value=!0,f.parent&&nf(f.parent.vnode)&&xg(f.parent.update)}).catch(v=>{m(v),h.value=v}),()=>{if(g.value&&o)return Ub(o,f);if(h.value&&r)return N(r,{error:h.value});if(n&&!b.value)return N(n)}}})}function Ub(e,t){const{ref:n,props:r,children:i,ce:a}=t.vnode,d=N(e,r,i);return d.ref=n,d.ce=a,delete t.vnode.ce,d}const nf=e=>e.type.__isKeepAlive,aY={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=mr(),r=n.ctx;if(!r.renderer)return()=>{const v=t.default&&t.default();return v&&v.length===1?v[0]:v};const i=new Map,a=new Set;let d=null;const s=n.suspense,{renderer:{p:u,m:o,um:l,o:{createElement:c}}}=r,p=c("div");r.activate=(v,E,y,T,O)=>{const C=v.component;o(v,E,y,0,s),u(C.vnode,v,E,y,C,s,T,v.slotScopeIds,O),Br(()=>{C.isDeactivated=!1,C.a&&eu(C.a);const R=v.props&&v.props.onVnodeMounted;R&&vi(R,C.parent,v)},s)},r.deactivate=v=>{const E=v.component;o(v,p,null,1,s),Br(()=>{E.da&&eu(E.da);const y=v.props&&v.props.onVnodeUnmounted;y&&vi(y,E.parent,v),E.isDeactivated=!0},s)};function f(v){Gb(v),l(v,n,s,!0)}function m(v){i.forEach((E,y)=>{const T=hv(E.type);T&&(!v||!v(T))&&g(y)})}function g(v){const E=i.get(v);!d||!No(E,d)?f(E):d&&Gb(d),i.delete(v),a.delete(v)}ze(()=>[e.include,e.exclude],([v,E])=>{v&&m(y=>Ld(v,y)),E&&m(y=>!Ld(E,y))},{flush:"post",deep:!0});let h=null;const b=()=>{h!=null&&i.set(h,Hb(n.subTree))};return it(b),Hi(b),tn(()=>{i.forEach(v=>{const{subTree:E,suspense:y}=n,T=Hb(E);if(v.type===T.type&&v.key===T.key){Gb(T);const O=T.component.da;O&&Br(O,y);return}f(v)})}),()=>{if(h=null,!t.default)return null;const v=t.default(),E=v[0];if(v.length>1)return d=null,v;if(!yr(E)||!(E.shapeFlag&4)&&!(E.shapeFlag&128))return d=null,E;let y=Hb(E);const T=y.type,O=hv(Il(y)?y.type.__asyncResolved||{}:T),{include:C,exclude:R,max:x}=e;if(C&&(!O||!Ld(C,O))||R&&O&&Ld(R,O))return d=y,E;const I=y.key==null?T:y.key,k=i.get(I);return y.el&&(y=fi(y),E.shapeFlag&128&&(E.ssContent=y)),h=I,k?(y.el=k.el,y.component=k.component,y.transition&&$l(y,y.transition),y.shapeFlag|=512,a.delete(I),a.add(I)):(a.add(I),x&&a.size>parseInt(x,10)&&g(a.values().next().value)),y.shapeFlag|=256,d=y,h1(E.type)?E:y}}},sY=aY;function Ld(e,t){return ut(e)?e.some(n=>Ld(n,t)):Qn(e)?e.split(",").includes(t):q4(e)?e.test(t):!1}function Dg(e,t){y1(e,"a",t)}function Yy(e,t){y1(e,"da",t)}function y1(e,t,n=ir){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Mg(t,r,n),n){let i=n.parent;for(;i&&i.parent;)nf(i.parent.vnode)&&lY(r,t,n,i),i=i.parent}}function lY(e,t,n,r){const i=Mg(t,e,r,!0);zi(()=>{wy(r[t],i)},n)}function Gb(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Hb(e){return e.shapeFlag&128?e.ssContent:e}function Mg(e,t,n=ir,r=!1){if(n){const i=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...d)=>{if(n.isUnmounted)return;Xu(),Ys(n);const s=Fi(t,n,e,d);return Ls(),Zu(),s});return r?i.unshift(a):i.push(a),a}}const Ka=e=>(t,n=ir)=>(!Tu||e==="sp")&&Mg(e,(...r)=>t(...r),n),Vy=Ka("bm"),it=Ka("m"),qy=Ka("bu"),Hi=Ka("u"),tn=Ka("bum"),zi=Ka("um"),C1=Ka("sp"),T1=Ka("rtg"),O1=Ka("rtc");function w1(e,t=ir){Mg("ec",e,t)}function ur(e,t){const n=Ur;if(n===null)return e;const r=Pg(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let a=0;at(d,s,void 0,a&&a[s]));else{const d=Object.keys(e);i=new Array(d.length);for(let s=0,u=d.length;s{const a=r.fn(...i);return a&&(a.key=r.key),a}:r.fn)}return e}function ln(e,t,n={},r,i){if(Ur.isCE||Ur.parent&&Il(Ur.parent)&&Ur.parent.isCE)return t!=="default"&&(n.name=t),N("slot",n,r&&r());let a=e[t];a&&a._c&&(a._d=!1),Se();const d=a&&x1(a(n)),s=Vn(Xe,{key:n.key||d&&d.key||`_${t}`},d||(r?r():[]),d&&e._===1?64:-2);return!i&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),a&&a._c&&(a._d=!0),s}function x1(e){return e.some(t=>yr(t)?!(t.type===Hr||t.type===Xe&&!x1(t.children)):!0)?e:null}function I1(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:zd(r)]=e[r];return n}const lv=e=>e?V1(e)?Pg(e)||e.proxy:lv(e.parent):null,Yd=ar(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>lv(e.parent),$root:e=>lv(e.root),$emit:e=>e.emit,$options:e=>Qy(e),$forceUpdate:e=>e.f||(e.f=()=>xg(e.update)),$nextTick:e=>e.n||(e.n=en.bind(e.proxy)),$watch:e=>rY.bind(e)}),zb=(e,t)=>e!==An&&!e.__isScriptSetup&&on(e,t),cv={get({_:e},t){const{ctx:n,setupState:r,data:i,props:a,accessCache:d,type:s,appContext:u}=e;let o;if(t[0]!=="$"){const f=d[t];if(f!==void 0)switch(f){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return a[t]}else{if(zb(r,t))return d[t]=1,r[t];if(i!==An&&on(i,t))return d[t]=2,i[t];if((o=e.propsOptions[0])&&on(o,t))return d[t]=3,a[t];if(n!==An&&on(n,t))return d[t]=4,n[t];uv&&(d[t]=0)}}const l=Yd[t];let c,p;if(l)return t==="$attrs"&&Ti(e,"get",t),l(e);if((c=s.__cssModules)&&(c=c[t]))return c;if(n!==An&&on(n,t))return d[t]=4,n[t];if(p=u.config.globalProperties,on(p,t))return p[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:a}=e;return zb(i,t)?(i[t]=n,!0):r!==An&&on(r,t)?(r[t]=n,!0):on(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:a}},d){let s;return!!n[d]||e!==An&&on(e,d)||zb(t,d)||(s=a[0])&&on(s,d)||on(r,d)||on(Yd,d)||on(i.config.globalProperties,d)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:on(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},uY=ar({},cv,{get(e,t){if(t!==Symbol.unscopables)return cv.get(e,t,e)},has(e,t){return t[0]!=="_"&&!P4(t)}});let uv=!0;function dY(e){const t=Qy(e),n=e.proxy,r=e.ctx;uv=!1,t.beforeCreate&&Zw(t.beforeCreate,e,"bc");const{data:i,computed:a,methods:d,watch:s,provide:u,inject:o,created:l,beforeMount:c,mounted:p,beforeUpdate:f,updated:m,activated:g,deactivated:h,beforeDestroy:b,beforeUnmount:v,destroyed:E,unmounted:y,render:T,renderTracked:O,renderTriggered:C,errorCaptured:R,serverPrefetch:x,expose:I,inheritAttrs:k,components:L,directives:A,filters:D}=t;if(o&&pY(o,r,null,e.appContext.config.unwrapInjectedRef),d)for(const z in d){const H=d[z];It(H)&&(r[z]=H.bind(n))}if(i){const z=i.call(n,n);$n(z)&&(e.data=Kt(z))}if(uv=!0,a)for(const z in a){const H=a[z],V=It(H)?H.bind(n,n):It(H.get)?H.get.bind(n,n):Do,W=!It(H)&&It(H.set)?H.set.bind(n):Do,te=B({get:V,set:W});Object.defineProperty(r,z,{enumerable:!0,configurable:!0,get:()=>te.value,set:X=>te.value=X})}if(s)for(const z in s)N1(s[z],r,n,z);if(u){const z=It(u)?u.call(n):u;Reflect.ownKeys(z).forEach(H=>{$t(H,z[H])})}l&&Zw(l,e,"c");function F(z,H){ut(H)?H.forEach(V=>z(V.bind(n))):H&&z(H.bind(n))}if(F(Vy,c),F(it,p),F(qy,f),F(Hi,m),F(Dg,g),F(Yy,h),F(w1,R),F(O1,O),F(T1,C),F(tn,v),F(zi,y),F(C1,x),ut(I))if(I.length){const z=e.exposed||(e.exposed={});I.forEach(H=>{Object.defineProperty(z,H,{get:()=>n[H],set:V=>n[H]=V})})}else e.exposed||(e.exposed={});T&&e.render===Do&&(e.render=T),k!=null&&(e.inheritAttrs=k),L&&(e.components=L),A&&(e.directives=A)}function pY(e,t,n=Do,r=!1){ut(e)&&(e=dv(e));for(const i in e){const a=e[i];let d;$n(a)?"default"in a?d=bt(a.from||i,a.default,!0):d=bt(a.from||i):d=bt(a),Er(d)&&r?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>d.value,set:s=>d.value=s}):t[i]=d}}function Zw(e,t,n){Fi(ut(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function N1(e,t,n,r){const i=r.includes(".")?v1(n,r):()=>n[r];if(Qn(e)){const a=t[e];It(a)&&ze(i,a)}else if(It(e))ze(i,e.bind(n));else if($n(e))if(ut(e))e.forEach(a=>N1(a,t,n,r));else{const a=It(e.handler)?e.handler.bind(n):t[e.handler];It(a)&&ze(i,a,e)}}function Qy(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:d}}=e.appContext,s=a.get(t);let u;return s?u=s:!i.length&&!n&&!r?u=t:(u={},i.length&&i.forEach(o=>Dm(u,o,d,!0)),Dm(u,t,d)),$n(t)&&a.set(t,u),u}function Dm(e,t,n,r=!1){const{mixins:i,extends:a}=t;a&&Dm(e,a,n,!0),i&&i.forEach(d=>Dm(e,d,n,!0));for(const d in t)if(!(r&&d==="expose")){const s=fY[d]||n&&n[d];e[d]=s?s(e[d],t[d]):t[d]}return e}const fY={data:Jw,props:_l,emits:_l,methods:_l,computed:_l,beforeCreate:ai,created:ai,beforeMount:ai,mounted:ai,beforeUpdate:ai,updated:ai,beforeDestroy:ai,beforeUnmount:ai,destroyed:ai,unmounted:ai,activated:ai,deactivated:ai,errorCaptured:ai,serverPrefetch:ai,components:_l,directives:_l,watch:mY,provide:Jw,inject:_Y};function Jw(e,t){return t?e?function(){return ar(It(e)?e.call(this,this):e,It(t)?t.call(this,this):t)}:t:e}function _Y(e,t){return _l(dv(e),dv(t))}function dv(e){if(ut(e)){const t={};for(let n=0;n0)&&!(d&16)){if(d&8){const l=e.vnode.dynamicProps;for(let c=0;c{u=!0;const[p,f]=D1(c,t,!0);ar(d,p),f&&s.push(...f)};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}if(!a&&!u)return $n(e)&&r.set(e,Zc),Zc;if(ut(a))for(let l=0;l-1,f[1]=g<0||m-1||on(f,"default"))&&s.push(c)}}}const o=[d,s];return $n(e)&&r.set(e,o),o}function eR(e){return e[0]!=="$"}function tR(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function nR(e,t){return tR(e)===tR(t)}function rR(e,t){return ut(t)?t.findIndex(n=>nR(n,e)):It(t)&&nR(t,e)?0:-1}const M1=e=>e[0]==="_"||e==="$stable",Xy=e=>ut(e)?e.map(Li):[Li(e)],bY=(e,t,n)=>{if(t._n)return t;const r=kn((...i)=>Xy(t(...i)),n);return r._c=!1,r},k1=(e,t,n)=>{const r=e._ctx;for(const i in e){if(M1(i))continue;const a=e[i];if(It(a))t[i]=bY(i,a,r);else if(a!=null){const d=Xy(a);t[i]=()=>d}}},P1=(e,t)=>{const n=Xy(t);e.slots.default=()=>n},SY=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Dt(t),Rm(t,"_",n)):k1(t,e.slots={})}else e.slots={},t&&P1(e,t);Rm(e.slots,kg,1)},vY=(e,t,n)=>{const{vnode:r,slots:i}=e;let a=!0,d=An;if(r.shapeFlag&32){const s=t._;s?n&&s===1?a=!1:(ar(i,t),!n&&s===1&&delete i._):(a=!t.$stable,k1(t,i)),d=t}else t&&(P1(e,t),d={default:1});if(a)for(const s in i)!M1(s)&&!(s in d)&&delete i[s]};function L1(){return{app:null,config:{isNativeTag:z4,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let EY=0;function yY(e,t){return function(r,i=null){It(r)||(r=Object.assign({},r)),i!=null&&!$n(i)&&(i=null);const a=L1(),d=new Set;let s=!1;const u=a.app={_uid:EY++,_component:r,_props:i,_container:null,_context:a,_instance:null,version:J1,get config(){return a.config},set config(o){},use(o,...l){return d.has(o)||(o&&It(o.install)?(d.add(o),o.install(u,...l)):It(o)&&(d.add(o),o(u,...l))),u},mixin(o){return a.mixins.includes(o)||a.mixins.push(o),u},component(o,l){return l?(a.components[o]=l,u):a.components[o]},directive(o,l){return l?(a.directives[o]=l,u):a.directives[o]},mount(o,l,c){if(!s){const p=N(r,i);return p.appContext=a,l&&t?t(p,o):e(p,o,c),s=!0,u._container=o,o.__vue_app__=u,Pg(p.component)||p.component.proxy}},unmount(){s&&(e(null,u._container),delete u._container.__vue_app__)},provide(o,l){return a.provides[o]=l,u}};return u}}function Mm(e,t,n,r,i=!1){if(ut(e)){e.forEach((p,f)=>Mm(p,t&&(ut(t)?t[f]:t),n,r,i));return}if(Il(r)&&!i)return;const a=r.shapeFlag&4?Pg(r.component)||r.component.proxy:r.el,d=i?null:a,{i:s,r:u}=e,o=t&&t.r,l=s.refs===An?s.refs={}:s.refs,c=s.setupState;if(o!=null&&o!==u&&(Qn(o)?(l[o]=null,on(c,o)&&(c[o]=null)):Er(o)&&(o.value=null)),It(u))Ua(u,s,12,[d,l]);else{const p=Qn(u),f=Er(u);if(p||f){const m=()=>{if(e.f){const g=p?on(c,u)?c[u]:l[u]:u.value;i?ut(g)&&wy(g,a):ut(g)?g.includes(a)||g.push(a):p?(l[u]=[a],on(c,u)&&(c[u]=l[u])):(u.value=[a],e.k&&(l[e.k]=u.value))}else p?(l[u]=d,on(c,u)&&(c[u]=d)):f&&(u.value=d,e.k&&(l[e.k]=d))};d?(m.id=-1,Br(m,n)):m()}}}let hs=!1;const d_=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",p_=e=>e.nodeType===8;function CY(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:a,parentNode:d,remove:s,insert:u,createComment:o}}=e,l=(b,v)=>{if(!v.hasChildNodes()){n(null,b,v),Am(),v._vnode=b;return}hs=!1,c(v.firstChild,b,null,null,null),Am(),v._vnode=b,hs&&console.error("Hydration completed but contains mismatches.")},c=(b,v,E,y,T,O=!1)=>{const C=p_(b)&&b.data==="[",R=()=>g(b,v,E,y,T,C),{type:x,ref:I,shapeFlag:k,patchFlag:L}=v;let A=b.nodeType;v.el=b,L===-2&&(O=!1,v.dynamicChildren=null);let D=null;switch(x){case ta:A!==3?v.children===""?(u(v.el=i(""),d(b),b),D=b):D=R():(b.data!==v.children&&(hs=!0,b.data=v.children),D=a(b));break;case Hr:A!==8||C?D=R():D=a(b);break;case Al:if(C&&(b=a(b),A=b.nodeType),A===1||A===3){D=b;const $=!v.children.length;for(let F=0;F{O=O||!!v.dynamicChildren;const{type:C,props:R,patchFlag:x,shapeFlag:I,dirs:k}=v,L=C==="input"&&k||C==="option";if(L||x!==-1){if(k&&Qo(v,null,E,"created"),R)if(L||!O||x&48)for(const D in R)(L&&D.endsWith("value")||Zp(D)&&!Hd(D))&&r(b,D,null,R[D],!1,void 0,E);else R.onClick&&r(b,"onClick",null,R.onClick,!1,void 0,E);let A;if((A=R&&R.onVnodeBeforeMount)&&vi(A,E,v),k&&Qo(v,null,E,"beforeMount"),((A=R&&R.onVnodeMounted)||k)&&b1(()=>{A&&vi(A,E,v),k&&Qo(v,null,E,"mounted")},y),I&16&&!(R&&(R.innerHTML||R.textContent))){let D=f(b.firstChild,v,b,E,y,T,O);for(;D;){hs=!0;const $=D;D=D.nextSibling,s($)}}else I&8&&b.textContent!==v.children&&(hs=!0,b.textContent=v.children)}return b.nextSibling},f=(b,v,E,y,T,O,C)=>{C=C||!!v.dynamicChildren;const R=v.children,x=R.length;for(let I=0;I{const{slotScopeIds:C}=v;C&&(T=T?T.concat(C):C);const R=d(b),x=f(a(b),v,R,E,y,T,O);return x&&p_(x)&&x.data==="]"?a(v.anchor=x):(hs=!0,u(v.anchor=o("]"),R,x),x)},g=(b,v,E,y,T,O)=>{if(hs=!0,v.el=null,O){const x=h(b);for(;;){const I=a(b);if(I&&I!==x)s(I);else break}}const C=a(b),R=d(b);return s(b),n(null,v,R,C,E,y,d_(R),T),C},h=b=>{let v=0;for(;b;)if(b=a(b),b&&p_(b)&&(b.data==="["&&v++,b.data==="]")){if(v===0)return a(b);v--}return b};return[l,c]}const Br=b1;function $1(e){return B1(e)}function F1(e){return B1(e,CY)}function B1(e,t){const n=Q4();n.__VUE__=!0;const{insert:r,remove:i,patchProp:a,createElement:d,createText:s,createComment:u,setText:o,setElementText:l,parentNode:c,nextSibling:p,setScopeId:f=Do,insertStaticContent:m}=e,g=(U,j,J,pe=null,ae=null,be=null,ve=!1,ge=null,ce=!!j.dynamicChildren)=>{if(U===j)return;U&&!No(U,j)&&(pe=q(U),X(U,ae,be,!0),U=null),j.patchFlag===-2&&(ce=!1,j.dynamicChildren=null);const{type:ee,ref:Ne,shapeFlag:Oe}=j;switch(ee){case ta:h(U,j,J,pe);break;case Hr:b(U,j,J,pe);break;case Al:U==null&&v(j,J,pe,ve);break;case Xe:L(U,j,J,pe,ae,be,ve,ge,ce);break;default:Oe&1?T(U,j,J,pe,ae,be,ve,ge,ce):Oe&6?A(U,j,J,pe,ae,be,ve,ge,ce):(Oe&64||Oe&128)&&ee.process(U,j,J,pe,ae,be,ve,ge,ce,re)}Ne!=null&&ae&&Mm(Ne,U&&U.ref,be,j||U,!j)},h=(U,j,J,pe)=>{if(U==null)r(j.el=s(j.children),J,pe);else{const ae=j.el=U.el;j.children!==U.children&&o(ae,j.children)}},b=(U,j,J,pe)=>{U==null?r(j.el=u(j.children||""),J,pe):j.el=U.el},v=(U,j,J,pe)=>{[U.el,U.anchor]=m(U.children,j,J,pe,U.el,U.anchor)},E=({el:U,anchor:j},J,pe)=>{let ae;for(;U&&U!==j;)ae=p(U),r(U,J,pe),U=ae;r(j,J,pe)},y=({el:U,anchor:j})=>{let J;for(;U&&U!==j;)J=p(U),i(U),U=J;i(j)},T=(U,j,J,pe,ae,be,ve,ge,ce)=>{ve=ve||j.type==="svg",U==null?O(j,J,pe,ae,be,ve,ge,ce):x(U,j,ae,be,ve,ge,ce)},O=(U,j,J,pe,ae,be,ve,ge)=>{let ce,ee;const{type:Ne,props:Oe,shapeFlag:Ae,transition:ue,dirs:ie}=U;if(ce=U.el=d(U.type,be,Oe&&Oe.is,Oe),Ae&8?l(ce,U.children):Ae&16&&R(U.children,ce,null,pe,ae,be&&Ne!=="foreignObject",ve,ge),ie&&Qo(U,null,pe,"created"),C(ce,U,U.scopeId,ve,pe),Oe){for(const Le in Oe)Le!=="value"&&!Hd(Le)&&a(ce,Le,null,Oe[Le],be,U.children,pe,ae,Z);"value"in Oe&&a(ce,"value",null,Oe.value),(ee=Oe.onVnodeBeforeMount)&&vi(ee,pe,U)}ie&&Qo(U,null,pe,"beforeMount");const Ee=(!ae||ae&&!ae.pendingBranch)&&ue&&!ue.persisted;Ee&&ue.beforeEnter(ce),r(ce,j,J),((ee=Oe&&Oe.onVnodeMounted)||Ee||ie)&&Br(()=>{ee&&vi(ee,pe,U),Ee&&ue.enter(ce),ie&&Qo(U,null,pe,"mounted")},ae)},C=(U,j,J,pe,ae)=>{if(J&&f(U,J),pe)for(let be=0;be{for(let ee=ce;ee{const ge=j.el=U.el;let{patchFlag:ce,dynamicChildren:ee,dirs:Ne}=j;ce|=U.patchFlag&16;const Oe=U.props||An,Ae=j.props||An;let ue;J&&cl(J,!1),(ue=Ae.onVnodeBeforeUpdate)&&vi(ue,J,j,U),Ne&&Qo(j,U,J,"beforeUpdate"),J&&cl(J,!0);const ie=ae&&j.type!=="foreignObject";if(ee?I(U.dynamicChildren,ee,ge,J,pe,ie,be):ve||H(U,j,ge,null,J,pe,ie,be,!1),ce>0){if(ce&16)k(ge,j,Oe,Ae,J,pe,ae);else if(ce&2&&Oe.class!==Ae.class&&a(ge,"class",null,Ae.class,ae),ce&4&&a(ge,"style",Oe.style,Ae.style,ae),ce&8){const Ee=j.dynamicProps;for(let Le=0;Le{ue&&vi(ue,J,j,U),Ne&&Qo(j,U,J,"updated")},pe)},I=(U,j,J,pe,ae,be,ve)=>{for(let ge=0;ge{if(J!==pe){if(J!==An)for(const ge in J)!Hd(ge)&&!(ge in pe)&&a(U,ge,J[ge],null,ve,j.children,ae,be,Z);for(const ge in pe){if(Hd(ge))continue;const ce=pe[ge],ee=J[ge];ce!==ee&&ge!=="value"&&a(U,ge,ee,ce,ve,j.children,ae,be,Z)}"value"in pe&&a(U,"value",J.value,pe.value)}},L=(U,j,J,pe,ae,be,ve,ge,ce)=>{const ee=j.el=U?U.el:s(""),Ne=j.anchor=U?U.anchor:s("");let{patchFlag:Oe,dynamicChildren:Ae,slotScopeIds:ue}=j;ue&&(ge=ge?ge.concat(ue):ue),U==null?(r(ee,J,pe),r(Ne,J,pe),R(j.children,J,Ne,ae,be,ve,ge,ce)):Oe>0&&Oe&64&&Ae&&U.dynamicChildren?(I(U.dynamicChildren,Ae,J,ae,be,ve,ge),(j.key!=null||ae&&j===ae.subTree)&&Zy(U,j,!0)):H(U,j,J,Ne,ae,be,ve,ge,ce)},A=(U,j,J,pe,ae,be,ve,ge,ce)=>{j.slotScopeIds=ge,U==null?j.shapeFlag&512?ae.ctx.activate(j,J,pe,ve,ce):D(j,J,pe,ae,be,ve,ce):$(U,j,ce)},D=(U,j,J,pe,ae,be,ve)=>{const ge=U.component=Y1(U,pe,ae);if(nf(U)&&(ge.ctx.renderer=re),q1(ge),ge.asyncDep){if(ae&&ae.registerDep(ge,F),!U.el){const ce=ge.subTree=N(Hr);b(null,ce,j,J)}return}F(ge,U,j,J,ae,be,ve)},$=(U,j,J)=>{const pe=j.component=U.component;if(K6(U,j,J))if(pe.asyncDep&&!pe.asyncResolved){z(pe,j,J);return}else pe.next=j,H6(pe.update),pe.update();else j.el=U.el,pe.vnode=j},F=(U,j,J,pe,ae,be,ve)=>{const ge=()=>{if(U.isMounted){let{next:Ne,bu:Oe,u:Ae,parent:ue,vnode:ie}=U,Ee=Ne,Le;cl(U,!1),Ne?(Ne.el=ie.el,z(U,Ne,ve)):Ne=ie,Oe&&eu(Oe),(Le=Ne.props&&Ne.props.onVnodeBeforeUpdate)&&vi(Le,ue,Ne,ie),cl(U,!0);const We=sm(U),Ke=U.subTree;U.subTree=We,g(Ke,We,c(Ke.el),q(Ke),U,ae,be),Ne.el=We.el,Ee===null&&Uy(U,We.el),Ae&&Br(Ae,ae),(Le=Ne.props&&Ne.props.onVnodeUpdated)&&Br(()=>vi(Le,ue,Ne,ie),ae)}else{let Ne;const{el:Oe,props:Ae}=j,{bm:ue,m:ie,parent:Ee}=U,Le=Il(j);if(cl(U,!1),ue&&eu(ue),!Le&&(Ne=Ae&&Ae.onVnodeBeforeMount)&&vi(Ne,Ee,j),cl(U,!0),Oe&&me){const We=()=>{U.subTree=sm(U),me(Oe,U.subTree,U,ae,null)};Le?j.type.__asyncLoader().then(()=>!U.isUnmounted&&We()):We()}else{const We=U.subTree=sm(U);g(null,We,J,pe,U,ae,be),j.el=We.el}if(ie&&Br(ie,ae),!Le&&(Ne=Ae&&Ae.onVnodeMounted)){const We=j;Br(()=>vi(Ne,Ee,We),ae)}(j.shapeFlag&256||Ee&&Il(Ee.vnode)&&Ee.vnode.shapeFlag&256)&&U.a&&Br(U.a,ae),U.isMounted=!0,j=J=pe=null}},ce=U.effect=new ef(ge,()=>xg(ee),U.scope),ee=U.update=()=>ce.run();ee.id=U.uid,cl(U,!0),ee()},z=(U,j,J)=>{j.component=U;const pe=U.vnode.props;U.vnode=j,U.next=null,hY(U,j.props,pe,J),vY(U,j.children,J),Xu(),jw(),Zu()},H=(U,j,J,pe,ae,be,ve,ge,ce=!1)=>{const ee=U&&U.children,Ne=U?U.shapeFlag:0,Oe=j.children,{patchFlag:Ae,shapeFlag:ue}=j;if(Ae>0){if(Ae&128){W(ee,Oe,J,pe,ae,be,ve,ge,ce);return}else if(Ae&256){V(ee,Oe,J,pe,ae,be,ve,ge,ce);return}}ue&8?(Ne&16&&Z(ee,ae,be),Oe!==ee&&l(J,Oe)):Ne&16?ue&16?W(ee,Oe,J,pe,ae,be,ve,ge,ce):Z(ee,ae,be,!0):(Ne&8&&l(J,""),ue&16&&R(Oe,J,pe,ae,be,ve,ge,ce))},V=(U,j,J,pe,ae,be,ve,ge,ce)=>{U=U||Zc,j=j||Zc;const ee=U.length,Ne=j.length,Oe=Math.min(ee,Ne);let Ae;for(Ae=0;AeNe?Z(U,ae,be,!0,!1,Oe):R(j,J,pe,ae,be,ve,ge,ce,Oe)},W=(U,j,J,pe,ae,be,ve,ge,ce)=>{let ee=0;const Ne=j.length;let Oe=U.length-1,Ae=Ne-1;for(;ee<=Oe&&ee<=Ae;){const ue=U[ee],ie=j[ee]=ce?Es(j[ee]):Li(j[ee]);if(No(ue,ie))g(ue,ie,J,null,ae,be,ve,ge,ce);else break;ee++}for(;ee<=Oe&&ee<=Ae;){const ue=U[Oe],ie=j[Ae]=ce?Es(j[Ae]):Li(j[Ae]);if(No(ue,ie))g(ue,ie,J,null,ae,be,ve,ge,ce);else break;Oe--,Ae--}if(ee>Oe){if(ee<=Ae){const ue=Ae+1,ie=ueAe)for(;ee<=Oe;)X(U[ee],ae,be,!0),ee++;else{const ue=ee,ie=ee,Ee=new Map;for(ee=ie;ee<=Ae;ee++){const qe=j[ee]=ce?Es(j[ee]):Li(j[ee]);qe.key!=null&&Ee.set(qe.key,ee)}let Le,We=0;const Ke=Ae-ie+1;let xe=!1,Me=0;const Pe=new Array(Ke);for(ee=0;ee=Ke){X(qe,ae,be,!0);continue}let Je;if(qe.key!=null)Je=Ee.get(qe.key);else for(Le=ie;Le<=Ae;Le++)if(Pe[Le-ie]===0&&No(qe,j[Le])){Je=Le;break}Je===void 0?X(qe,ae,be,!0):(Pe[Je-ie]=ee+1,Je>=Me?Me=Je:xe=!0,g(qe,j[Je],J,null,ae,be,ve,ge,ce),We++)}const Qe=xe?TY(Pe):Zc;for(Le=Qe.length-1,ee=Ke-1;ee>=0;ee--){const qe=ie+ee,Je=j[qe],et=qe+1{const{el:be,type:ve,transition:ge,children:ce,shapeFlag:ee}=U;if(ee&6){te(U.component.subTree,j,J,pe);return}if(ee&128){U.suspense.move(j,J,pe);return}if(ee&64){ve.move(U,j,J,re);return}if(ve===Xe){r(be,j,J);for(let Oe=0;Oege.enter(be),ae);else{const{leave:Oe,delayLeave:Ae,afterLeave:ue}=ge,ie=()=>r(be,j,J),Ee=()=>{Oe(be,()=>{ie(),ue&&ue()})};Ae?Ae(be,ie,Ee):Ee()}else r(be,j,J)},X=(U,j,J,pe=!1,ae=!1)=>{const{type:be,props:ve,ref:ge,children:ce,dynamicChildren:ee,shapeFlag:Ne,patchFlag:Oe,dirs:Ae}=U;if(ge!=null&&Mm(ge,null,J,U,!0),Ne&256){j.ctx.deactivate(U);return}const ue=Ne&1&&Ae,ie=!Il(U);let Ee;if(ie&&(Ee=ve&&ve.onVnodeBeforeUnmount)&&vi(Ee,j,U),Ne&6)Q(U.component,J,pe);else{if(Ne&128){U.suspense.unmount(J,pe);return}ue&&Qo(U,null,j,"beforeUnmount"),Ne&64?U.type.remove(U,j,J,ae,re,pe):ee&&(be!==Xe||Oe>0&&Oe&64)?Z(ee,j,J,!1,!0):(be===Xe&&Oe&384||!ae&&Ne&16)&&Z(ce,j,J),pe&&ne(U)}(ie&&(Ee=ve&&ve.onVnodeUnmounted)||ue)&&Br(()=>{Ee&&vi(Ee,j,U),ue&&Qo(U,null,j,"unmounted")},J)},ne=U=>{const{type:j,el:J,anchor:pe,transition:ae}=U;if(j===Xe){oe(J,pe);return}if(j===Al){y(U);return}const be=()=>{i(J),ae&&!ae.persisted&&ae.afterLeave&&ae.afterLeave()};if(U.shapeFlag&1&&ae&&!ae.persisted){const{leave:ve,delayLeave:ge}=ae,ce=()=>ve(J,be);ge?ge(U.el,be,ce):ce()}else be()},oe=(U,j)=>{let J;for(;U!==j;)J=p(U),i(U),U=J;i(j)},Q=(U,j,J)=>{const{bum:pe,scope:ae,update:be,subTree:ve,um:ge}=U;pe&&eu(pe),ae.stop(),be&&(be.active=!1,X(ve,U,j,J)),ge&&Br(ge,j),Br(()=>{U.isUnmounted=!0},j),j&&j.pendingBranch&&!j.isUnmounted&&U.asyncDep&&!U.asyncResolved&&U.suspenseId===j.pendingId&&(j.deps--,j.deps===0&&j.resolve())},Z=(U,j,J,pe=!1,ae=!1,be=0)=>{for(let ve=be;veU.shapeFlag&6?q(U.component.subTree):U.shapeFlag&128?U.suspense.next():p(U.anchor||U.el),se=(U,j,J)=>{U==null?j._vnode&&X(j._vnode,null,null,!0):g(j._vnode||null,U,j,null,null,null,J),jw(),Am(),j._vnode=U},re={p:g,um:X,m:te,r:ne,mt:D,mc:R,pc:H,pbc:I,n:q,o:e};let _e,me;return t&&([_e,me]=t(re)),{render:se,hydrate:_e,createApp:yY(se,_e)}}function cl({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Zy(e,t,n=!1){const r=e.children,i=t.children;if(ut(r)&&ut(i))for(let a=0;a>1,e[n[s]]0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,d=n[a-1];a-- >0;)n[a]=d,d=t[d];return n}const OY=e=>e.__isTeleport,Vd=e=>e&&(e.disabled||e.disabled===""),iR=e=>typeof SVGElement<"u"&&e instanceof SVGElement,fv=(e,t)=>{const n=e&&e.to;return Qn(n)?t?t(n):null:n},wY={__isTeleport:!0,process(e,t,n,r,i,a,d,s,u,o){const{mc:l,pc:c,pbc:p,o:{insert:f,querySelector:m,createText:g,createComment:h}}=o,b=Vd(t.props);let{shapeFlag:v,children:E,dynamicChildren:y}=t;if(e==null){const T=t.el=g(""),O=t.anchor=g("");f(T,n,r),f(O,n,r);const C=t.target=fv(t.props,m),R=t.targetAnchor=g("");C&&(f(R,C),d=d||iR(C));const x=(I,k)=>{v&16&&l(E,I,k,i,a,d,s,u)};b?x(n,O):C&&x(C,R)}else{t.el=e.el;const T=t.anchor=e.anchor,O=t.target=e.target,C=t.targetAnchor=e.targetAnchor,R=Vd(e.props),x=R?n:O,I=R?T:C;if(d=d||iR(O),y?(p(e.dynamicChildren,y,x,i,a,d,s),Zy(e,t,!0)):u||c(e,t,x,I,i,a,d,s,!1),b)R||f_(t,n,T,o,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const k=t.target=fv(t.props,m);k&&f_(t,k,null,o,0)}else R&&f_(t,O,C,o,1)}U1(t)},remove(e,t,n,r,{um:i,o:{remove:a}},d){const{shapeFlag:s,children:u,anchor:o,targetAnchor:l,target:c,props:p}=e;if(c&&a(l),(d||!Vd(p))&&(a(o),s&16))for(let f=0;f0?yi||Zc:null,G1(),Fl>0&&yi&&yi.push(e),e}function Re(e,t,n,r,i,a){return H1(He(e,t,n,r,i,a,!0))}function Vn(e,t,n,r,i){return H1(N(e,t,n,r,i,!0))}function yr(e){return e?e.__v_isVNode===!0:!1}function No(e,t){return e.type===t.type&&e.key===t.key}function xY(e){}const kg="__vInternal",z1=({key:e})=>e!=null?e:null,lm=({ref:e,ref_key:t,ref_for:n})=>e!=null?Qn(e)||Er(e)||It(e)?{i:Ur,r:e,k:t,f:!!n}:e:null;function He(e,t=null,n=null,r=0,i=null,a=e===Xe?0:1,d=!1,s=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&z1(t),ref:t&&lm(t),scopeId:Ng,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Ur};return s?(Jy(u,n),a&128&&e.normalize(u)):n&&(u.shapeFlag|=Qn(n)?8:16),Fl>0&&!d&&yi&&(u.patchFlag>0||a&6)&&u.patchFlag!==32&&yi.push(u),u}const N=IY;function IY(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===R1)&&(e=Hr),yr(e)){const s=fi(e,t,!0);return n&&Jy(s,n),Fl>0&&!a&&yi&&(s.shapeFlag&6?yi[yi.indexOf(e)]=s:yi.push(s)),s.patchFlag|=-2,s}if($Y(e)&&(e=e.__vccOpts),t){t=lo(t);let{class:s,style:u}=t;s&&!Qn(s)&&(t.class=ct(s)),$n(u)&&(My(u)&&!ut(u)&&(u=ar({},u)),t.style=Zn(u))}const d=Qn(e)?1:h1(e)?128:OY(e)?64:$n(e)?4:It(e)?2:0;return He(e,t,n,r,i,d,a,!0)}function lo(e){return e?My(e)||kg in e?ar({},e):e:null}function fi(e,t,n=!1){const{props:r,ref:i,patchFlag:a,children:d}=e,s=t?$a(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&z1(s),ref:t&&t.ref?n&&i?ut(i)?i.concat(lm(t)):[i,lm(t)]:lm(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:d,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Xe?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&fi(e.ssContent),ssFallback:e.ssFallback&&fi(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Pn(e=" ",t=0){return N(ta,null,e,t)}function NY(e,t){const n=N(Al,null,e);return n.staticCount=t,n}function Lt(e="",t=!1){return t?(Se(),Vn(Hr,null,e)):N(Hr,null,e)}function Li(e){return e==null||typeof e=="boolean"?N(Hr):ut(e)?N(Xe,null,e.slice()):typeof e=="object"?Es(e):N(ta,null,String(e))}function Es(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:fi(e)}function Jy(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ut(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),Jy(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(kg in t)?t._ctx=Ur:i===3&&Ur&&(Ur.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else It(t)?(t={default:t,_ctx:Ur},n=32):(t=String(t),r&64?(n=16,t=[Pn(t)]):n=8);e.children=t,e.shapeFlag|=n}function $a(...e){const t={};for(let n=0;nir||Ur,Ys=e=>{ir=e,e.scope.on()},Ls=()=>{ir&&ir.scope.off(),ir=null};function V1(e){return e.vnode.shapeFlag&4}let Tu=!1;function q1(e,t=!1){Tu=t;const{props:n,children:r}=e.vnode,i=V1(e);gY(e,n,i,t),SY(e,r);const a=i?MY(e,t):void 0;return Tu=!1,a}function MY(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ky(new Proxy(e.ctx,cv));const{setup:r}=n;if(r){const i=e.setupContext=r.length>1?W1(e):null;Ys(e),Xu();const a=Ua(r,e,0,[e.props,i]);if(Zu(),Ls(),Ry(a)){if(a.then(Ls,Ls),t)return a.then(d=>{mv(e,d,t)}).catch(d=>{tc(d,e,0)});e.asyncDep=a}else mv(e,a,t)}else j1(e,t)}function mv(e,t,n){It(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:$n(t)&&(e.setupState=$y(t)),j1(e,n)}let km,gv;function kY(e){km=e,gv=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,uY))}}const PY=()=>!km;function j1(e,t,n){const r=e.type;if(!e.render){if(!t&&km&&!r.render){const i=r.template||Qy(e).template;if(i){const{isCustomElement:a,compilerOptions:d}=e.appContext.config,{delimiters:s,compilerOptions:u}=r,o=ar(ar({isCustomElement:a,delimiters:s},d),u);r.render=km(i,o)}}e.render=r.render||Do,gv&&gv(e)}Ys(e),Xu(),dY(e),Zu(),Ls()}function LY(e){return new Proxy(e.attrs,{get(t,n){return Ti(e,"get","$attrs"),t[n]}})}function W1(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=LY(e))},slots:e.slots,emit:e.emit,expose:t}}function Pg(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy($y(ky(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Yd)return Yd[n](e)},has(t,n){return n in t||n in Yd}}))}function hv(e,t=!0){return It(e)?e.displayName||e.name:e.name||t&&e.__name}function $Y(e){return It(e)&&"__vccOpts"in e}const B=(e,t)=>$6(e,t,Tu);function FY(){return null}function BY(){return null}function UY(e){}function GY(e,t){return null}function HY(){return K1().slots}function zY(){return K1().attrs}function K1(){const e=mr();return e.setupContext||(e.setupContext=W1(e))}function YY(e,t){const n=ut(e)?e.reduce((r,i)=>(r[i]={},r),{}):e;for(const r in t){const i=n[r];i?ut(i)||It(i)?n[r]={type:i,default:t[r]}:i.default=t[r]:i===null&&(n[r]={default:t[r]})}return n}function VY(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function qY(e){const t=mr();let n=e();return Ls(),Ry(n)&&(n=n.catch(r=>{throw Ys(t),r})),[n,()=>Ys(t)]}function Bl(e,t,n){const r=arguments.length;return r===2?$n(t)&&!ut(t)?yr(t)?N(e,null,[t]):N(e,t):N(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&yr(n)&&(n=[n]),N(e,t,n))}const Q1=Symbol(""),X1=()=>bt(Q1);function jY(){}function WY(e,t,n,r){const i=n[r];if(i&&Z1(i,e))return i;const a=t();return a.memo=e.slice(),n[r]=a}function Z1(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r0&&yi&&yi.push(e),!0}const J1="3.2.47",KY={createComponentInstance:Y1,setupComponent:q1,renderComponentRoot:sm,setCurrentRenderingInstance:Sp,isVNode:yr,normalizeVNode:Li},QY=KY,XY=null,ZY=null,JY="http://www.w3.org/2000/svg",bl=typeof document<"u"?document:null,oR=bl&&bl.createElement("template"),eV={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t?bl.createElementNS(JY,e):bl.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>bl.createTextNode(e),createComment:e=>bl.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>bl.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,a){const d=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{oR.innerHTML=r?`${e}`:e;const s=oR.content;if(r){const u=s.firstChild;for(;u.firstChild;)s.appendChild(u.firstChild);s.removeChild(u)}t.insertBefore(s,n)}return[d?d.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function tV(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function nV(e,t,n){const r=e.style,i=Qn(n);if(n&&!i){if(t&&!Qn(t))for(const a in t)n[a]==null&&bv(r,a,"");for(const a in n)bv(r,a,n[a])}else{const a=r.display;i?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=a)}}const aR=/\s*!important$/;function bv(e,t,n){if(ut(n))n.forEach(r=>bv(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=rV(e,t);aR.test(n)?e.setProperty(uo(r),n.replace(aR,""),"important"):e[r]=n}}const sR=["Webkit","Moz","ms"],Yb={};function rV(e,t){const n=Yb[t];if(n)return n;let r=Ci(t);if(r!=="filter"&&r in e)return Yb[t]=r;r=Jp(r);for(let i=0;iVb||(cV.then(()=>Vb=0),Vb=Date.now());function dV(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Fi(pV(r,n.value),t,5,[r])};return n.value=e,n.attached=uV(),n}function pV(e,t){if(ut(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const uR=/^on[a-z]/,fV=(e,t,n,r,i=!1,a,d,s,u)=>{t==="class"?tV(e,r,i):t==="style"?nV(e,n,r):Zp(t)?Oy(t)||sV(e,t,n,r,d):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):_V(e,t,r,i))?oV(e,t,r,a,d,s,u):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),iV(e,t,r,i))};function _V(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&uR.test(t)&&It(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||uR.test(t)&&Qn(n)?!1:t in e}function eM(e,t){const n=Te(e);class r extends Lg{constructor(a){super(n,a,t)}}return r.def=n,r}const mV=e=>eM(e,gM),gV=typeof HTMLElement<"u"?HTMLElement:class{};class Lg extends gV{constructor(t,n={},r){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&r?r(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,en(()=>{this._connected||(Gl(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let r=0;r{for(const i of r)this._setAttr(i.attributeName)}).observe(this,{attributes:!0});const t=(r,i=!1)=>{const{props:a,styles:d}=r;let s;if(a&&!ut(a))for(const u in a){const o=a[u];(o===Number||o&&o.type===Number)&&(u in this._props&&(this._props[u]=Im(this._props[u])),(s||(s=Object.create(null)))[Ci(u)]=!0)}this._numberProps=s,i&&this._resolveProps(r),this._applyStyles(d),this._update()},n=this._def.__asyncLoader;n?n().then(r=>t(r,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,r=ut(n)?n:Object.keys(n||{});for(const i of Object.keys(this))i[0]!=="_"&&r.includes(i)&&this._setProp(i,this[i],!0,!1);for(const i of r.map(Ci))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(a){this._setProp(i,a)}})}_setAttr(t){let n=this.getAttribute(t);const r=Ci(t);this._numberProps&&this._numberProps[r]&&(n=Im(n)),this._setProp(r,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,i=!0){n!==this._props[t]&&(this._props[t]=n,i&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(uo(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(uo(t),n+""):n||this.removeAttribute(uo(t))))}_update(){Gl(this._createVNode(),this.shadowRoot)}_createVNode(){const t=N(this._def,ar({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const r=(a,d)=>{this.dispatchEvent(new CustomEvent(a,{detail:d}))};n.emit=(a,...d)=>{r(a,d),uo(a)!==a&&r(uo(a),d)};let i=this;for(;i=i&&(i.parentNode||i.host);)if(i instanceof Lg){n.parent=i._instance,n.provides=i._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const r=document.createElement("style");r.textContent=n,this.shadowRoot.appendChild(r)})}}function hV(e="$style"){{const t=mr();if(!t)return An;const n=t.type.__cssModules;if(!n)return An;const r=n[e];return r||An}}function bV(e){const t=mr();if(!t)return;const n=t.ut=(i=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(a=>vv(a,i))},r=()=>{const i=e(t.proxy);Sv(t.subTree,i),n(i)};S1(r),it(()=>{const i=new MutationObserver(r);i.observe(t.subTree.el.parentNode,{childList:!0}),zi(()=>i.disconnect())})}function Sv(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Sv(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)vv(e.el,t);else if(e.type===Xe)e.children.forEach(n=>Sv(n,t));else if(e.type===Al){let{el:n,anchor:r}=e;for(;n&&(vv(n,t),n!==r);)n=n.nextSibling}}function vv(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const bs="transition",wd="animation",Yi=(e,{slots:t})=>Bl(zy,nM(e),t);Yi.displayName="Transition";const tM={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},SV=Yi.props=ar({},zy.props,tM),ul=(e,t=[])=>{ut(e)?e.forEach(n=>n(...t)):e&&e(...t)},dR=e=>e?ut(e)?e.some(t=>t.length>1):e.length>1:!1;function nM(e){const t={};for(const L in e)L in tM||(t[L]=e[L]);if(e.css===!1)return t;const{name:n="v",type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:d=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:u=a,appearActiveClass:o=d,appearToClass:l=s,leaveFromClass:c=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,m=vV(i),g=m&&m[0],h=m&&m[1],{onBeforeEnter:b,onEnter:v,onEnterCancelled:E,onLeave:y,onLeaveCancelled:T,onBeforeAppear:O=b,onAppear:C=v,onAppearCancelled:R=E}=t,x=(L,A,D)=>{vs(L,A?l:s),vs(L,A?o:d),D&&D()},I=(L,A)=>{L._isLeaving=!1,vs(L,c),vs(L,f),vs(L,p),A&&A()},k=L=>(A,D)=>{const $=L?C:v,F=()=>x(A,L,D);ul($,[A,F]),pR(()=>{vs(A,L?u:a),Ca(A,L?l:s),dR($)||fR(A,r,g,F)})};return ar(t,{onBeforeEnter(L){ul(b,[L]),Ca(L,a),Ca(L,d)},onBeforeAppear(L){ul(O,[L]),Ca(L,u),Ca(L,o)},onEnter:k(!1),onAppear:k(!0),onLeave(L,A){L._isLeaving=!0;const D=()=>I(L,A);Ca(L,c),iM(),Ca(L,p),pR(()=>{!L._isLeaving||(vs(L,c),Ca(L,f),dR(y)||fR(L,r,h,D))}),ul(y,[L,D])},onEnterCancelled(L){x(L,!1),ul(E,[L])},onAppearCancelled(L){x(L,!0),ul(R,[L])},onLeaveCancelled(L){I(L),ul(T,[L])}})}function vV(e){if(e==null)return null;if($n(e))return[qb(e.enter),qb(e.leave)];{const t=qb(e);return[t,t]}}function qb(e){return Im(e)}function Ca(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function vs(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function pR(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let EV=0;function fR(e,t,n,r){const i=e._endId=++EV,a=()=>{i===e._endId&&r()};if(n)return setTimeout(a,n);const{type:d,timeout:s,propCount:u}=rM(e,t);if(!d)return r();const o=d+"end";let l=0;const c=()=>{e.removeEventListener(o,p),a()},p=f=>{f.target===e&&++l>=u&&c()};setTimeout(()=>{l(n[m]||"").split(", "),i=r(`${bs}Delay`),a=r(`${bs}Duration`),d=_R(i,a),s=r(`${wd}Delay`),u=r(`${wd}Duration`),o=_R(s,u);let l=null,c=0,p=0;t===bs?d>0&&(l=bs,c=d,p=a.length):t===wd?o>0&&(l=wd,c=o,p=u.length):(c=Math.max(d,o),l=c>0?d>o?bs:wd:null,p=l?l===bs?a.length:u.length:0);const f=l===bs&&/\b(transform|all)(,|$)/.test(r(`${bs}Property`).toString());return{type:l,timeout:c,propCount:p,hasTransform:f}}function _R(e,t){for(;e.lengthmR(n)+mR(e[r])))}function mR(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function iM(){return document.body.offsetHeight}const oM=new WeakMap,aM=new WeakMap,sM={name:"TransitionGroup",props:ar({},SV,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=mr(),r=Hy();let i,a;return Hi(()=>{if(!i.length)return;const d=e.moveClass||`${e.name||"v"}-move`;if(!wV(i[0].el,n.vnode.el,d))return;i.forEach(CV),i.forEach(TV);const s=i.filter(OV);iM(),s.forEach(u=>{const o=u.el,l=o.style;Ca(o,d),l.transform=l.webkitTransform=l.transitionDuration="";const c=o._moveCb=p=>{p&&p.target!==o||(!p||/transform$/.test(p.propertyName))&&(o.removeEventListener("transitionend",c),o._moveCb=null,vs(o,d))};o.addEventListener("transitionend",c)})}),()=>{const d=Dt(e),s=nM(d);let u=d.tag||Xe;i=a,a=t.default?Ag(t.default()):[];for(let o=0;odelete e.mode;sM.props;const e0=sM;function CV(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function TV(e){aM.set(e,e.el.getBoundingClientRect())}function OV(e){const t=oM.get(e),n=aM.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){const a=e.el.style;return a.transform=a.webkitTransform=`translate(${r}px,${i}px)`,a.transitionDuration="0s",e}}function wV(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(d=>{d.split(/\s+/).forEach(s=>s&&r.classList.remove(s))}),n.split(/\s+/).forEach(d=>d&&r.classList.add(d)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:a}=rM(r);return i.removeChild(r),a}const Vs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ut(t)?n=>eu(t,n):t};function RV(e){e.target.composing=!0}function gR(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ul={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e._assign=Vs(i);const a=r||i.props&&i.props.type==="number";Pa(e,t?"change":"input",d=>{if(d.target.composing)return;let s=e.value;n&&(s=s.trim()),a&&(s=xm(s)),e._assign(s)}),n&&Pa(e,"change",()=>{e.value=e.value.trim()}),t||(Pa(e,"compositionstart",RV),Pa(e,"compositionend",gR),Pa(e,"change",gR))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:i}},a){if(e._assign=Vs(a),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(i||e.type==="number")&&xm(e.value)===t))return;const d=t==null?"":t;e.value!==d&&(e.value=d)}},t0={deep:!0,created(e,t,n){e._assign=Vs(n),Pa(e,"change",()=>{const r=e._modelValue,i=Ou(e),a=e.checked,d=e._assign;if(ut(r)){const s=Eg(r,i),u=s!==-1;if(a&&!u)d(r.concat(i));else if(!a&&u){const o=[...r];o.splice(s,1),d(o)}}else if(ec(r)){const s=new Set(r);a?s.add(i):s.delete(i),d(s)}else d(cM(e,a))})},mounted:hR,beforeUpdate(e,t,n){e._assign=Vs(n),hR(e,t,n)}};function hR(e,{value:t,oldValue:n},r){e._modelValue=t,ut(t)?e.checked=Eg(t,r.props.value)>-1:ec(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=Hs(t,cM(e,!0)))}const n0={created(e,{value:t},n){e.checked=Hs(t,n.props.value),e._assign=Vs(n),Pa(e,"change",()=>{e._assign(Ou(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=Vs(r),t!==n&&(e.checked=Hs(t,r.props.value))}},lM={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=ec(t);Pa(e,"change",()=>{const a=Array.prototype.filter.call(e.options,d=>d.selected).map(d=>n?xm(Ou(d)):Ou(d));e._assign(e.multiple?i?new Set(a):a:a[0])}),e._assign=Vs(r)},mounted(e,{value:t}){bR(e,t)},beforeUpdate(e,t,n){e._assign=Vs(n)},updated(e,{value:t}){bR(e,t)}};function bR(e,t){const n=e.multiple;if(!(n&&!ut(t)&&!ec(t))){for(let r=0,i=e.options.length;r-1:a.selected=t.has(d);else if(Hs(Ou(a),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ou(e){return"_value"in e?e._value:e.value}function cM(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const uM={created(e,t,n){__(e,t,n,null,"created")},mounted(e,t,n){__(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){__(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){__(e,t,n,r,"updated")}};function dM(e,t){switch(e){case"SELECT":return lM;case"TEXTAREA":return Ul;default:switch(t){case"checkbox":return t0;case"radio":return n0;default:return Ul}}}function __(e,t,n,r,i){const d=dM(e.tagName,n.props&&n.props.type)[i];d&&d(e,t,n,r)}function xV(){Ul.getSSRProps=({value:e})=>({value:e}),n0.getSSRProps=({value:e},t)=>{if(t.props&&Hs(t.props.value,e))return{checked:!0}},t0.getSSRProps=({value:e},t)=>{if(ut(e)){if(t.props&&Eg(e,t.props.value)>-1)return{checked:!0}}else if(ec(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},uM.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=dM(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const IV=["ctrl","shift","alt","meta"],NV={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>IV.some(n=>e[`${n}Key`]&&!t.includes(n))},li=(e,t)=>(n,...r)=>{for(let i=0;in=>{if(!("key"in n))return;const r=uo(n.key);if(t.some(i=>i===r||AV[i]===r))return e(n)},Ya={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Rd(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Rd(e,!0),r.enter(e)):r.leave(e,()=>{Rd(e,!1)}):Rd(e,t))},beforeUnmount(e,{value:t}){Rd(e,t)}};function Rd(e,t){e.style.display=t?e._vod:"none"}function DV(){Ya.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const fM=ar({patchProp:fV},eV);let jd,SR=!1;function _M(){return jd||(jd=$1(fM))}function mM(){return jd=SR?jd:F1(fM),SR=!0,jd}const Gl=(...e)=>{_M().render(...e)},gM=(...e)=>{mM().hydrate(...e)},MV=(...e)=>{const t=_M().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=hM(r);if(!i)return;const a=t._component;!It(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.innerHTML="";const d=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),d},t},kV=(...e)=>{const t=mM().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=hM(r);if(i)return n(i,!0,i instanceof SVGElement)},t};function hM(e){return Qn(e)?document.querySelector(e):e}let vR=!1;const PV=()=>{vR||(vR=!0,xV(),DV())},LV=()=>{},$V=Object.freeze(Object.defineProperty({__proto__:null,compile:LV,EffectScope:Iy,ReactiveEffect:ef,customRef:k6,effect:t6,effectScope:X4,getCurrentScope:WD,isProxy:My,isReactive:xl,isReadonly:Ll,isRef:Er,isShallow:mp,markRaw:ky,onScopeDispose:Z4,proxyRefs:$y,reactive:Kt,readonly:Dy,ref:ke,shallowReactive:s1,shallowReadonly:I6,shallowRef:Ie,stop:n6,toRaw:Dt,toRef:cn,toRefs:tu,triggerRef:A6,unref:Ve,camelize:Ci,capitalize:Jp,normalizeClass:ct,normalizeProps:so,normalizeStyle:Zn,toDisplayString:pt,toHandlerKey:zd,BaseTransition:zy,Comment:Hr,Fragment:Xe,KeepAlive:sY,Static:Al,Suspense:X6,Teleport:rf,Text:ta,assertNumber:B6,callWithAsyncErrorHandling:Fi,callWithErrorHandling:Ua,cloneVNode:fi,compatUtils:ZY,computed:B,createBlock:Vn,createCommentVNode:Lt,createElementBlock:Re,createElementVNode:He,createHydrationRenderer:F1,createPropsRestProxy:VY,createRenderer:$1,createSlots:Ky,createStaticVNode:NY,createTextVNode:Pn,createVNode:N,defineAsyncComponent:oY,defineComponent:Te,defineEmits:BY,defineExpose:UY,defineProps:FY,get devtools(){return Hc},getCurrentInstance:mr,getTransitionRawChildren:Ag,guardReactiveProps:lo,h:Bl,handleError:tc,initCustomFormatter:jY,inject:bt,isMemoSame:Z1,isRuntimeOnly:PY,isVNode:yr,mergeDefaults:YY,mergeProps:$a,nextTick:en,onActivated:Dg,onBeforeMount:Vy,onBeforeUnmount:tn,onBeforeUpdate:qy,onDeactivated:Yy,onErrorCaptured:w1,onMounted:it,onRenderTracked:O1,onRenderTriggered:T1,onServerPrefetch:C1,onUnmounted:zi,onUpdated:Hi,openBlock:Se,popScopeId:g1,provide:$t,pushScopeId:m1,queuePostFlushCb:By,registerRuntimeCompiler:kY,renderList:On,renderSlot:ln,resolveComponent:Nl,resolveDirective:Ju,resolveDynamicComponent:iu,resolveFilter:XY,resolveTransitionHooks:Cu,setBlockTracking:_v,setDevtoolsHook:f1,setTransitionHooks:$l,ssrContextKey:Q1,ssrUtils:QY,toHandlers:I1,transformVNodeArgs:xY,useAttrs:zY,useSSRContext:X1,useSlots:HY,useTransitionState:Hy,version:J1,warn:F6,watch:ze,watchEffect:Ht,watchPostEffect:S1,watchSyncEffect:nY,withAsyncContext:qY,withCtx:kn,withDefaults:GY,withDirectives:ur,withMemo:WY,withScopeId:V6,Transition:Yi,TransitionGroup:e0,VueElement:Lg,createApp:MV,createSSRApp:kV,defineCustomElement:eM,defineSSRCustomElement:mV,hydrate:gM,initDirectivesForSSR:PV,render:Gl,useCssModule:hV,useCssVars:bV,vModelCheckbox:t0,vModelDynamic:uM,vModelRadio:n0,vModelSelect:lM,vModelText:Ul,vShow:Ya,withKeys:pM,withModifiers:li},Symbol.toStringTag,{value:"Module"}));var FV=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};FV.SENTRY_RELEASE={id:"1f6a4fc4465fbba5c16b6e0defda563916f76eb8"};const BV="modulepreload",UV=function(e){return"/"+e},ER={},bM=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(a=>{if(a=UV(a),a in ER)return;ER[a]=!0;const d=a.endsWith(".css"),s=d?'[rel="stylesheet"]':"";if(!!r)for(let l=i.length-1;l>=0;l--){const c=i[l];if(c.href===a&&(!d||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${s}`))return;const o=document.createElement("link");if(o.rel=d?"stylesheet":BV,d||(o.as="script",o.crossOrigin=""),o.href=a,document.head.appendChild(o),d)return new Promise((l,c)=>{o.addEventListener("load",l),o.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${a}`)))})})).then(()=>t())};var zc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function GV(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function HV(e){var t=e.default;if(typeof t=="function"){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var jt={exports:{}};/** +var D4=Object.defineProperty;var M4=(e,t,n)=>t in e?D4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Si=(e,t,n)=>(M4(e,typeof t!="symbol"?t+"":t,n),n);(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c50e07c0-54dc-4ff2-98d8-9573d60345ba",e._sentryDebugIdIdentifier="sentry-dbid-c50e07c0-54dc-4ff2-98d8-9573d60345ba")}catch{}})();(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const d of a.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerpolicy&&(a.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?a.credentials="include":i.crossorigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();function vg(e,t){const n=Object.create(null),r=e.split(",");for(let i=0;i!!n[i.toLowerCase()]:i=>!!n[i]}const k4="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",P4=vg(k4);function Zn(e){if(ut(e)){const t={};for(let n=0;n{if(n){const r=n.split($4);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ct(e){let t="";if(Qn(e))t=e;else if(ut(e))for(let n=0;nHs(n,t))}const pt=e=>Qn(e)?e:e==null?"":ut(e)||$n(e)&&(e.toString===VD||!It(e.toString))?JSON.stringify(e,YD,2):String(e),YD=(e,t)=>t&&t.__v_isRef?YD(e,t.value):Jc(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i])=>(n[`${r} =>`]=i,n),{})}:ec(t)?{[`Set(${t.size})`]:[...t.values()]}:$n(t)&&!ut(t)&&!qD(t)?String(t):t,An={},Zc=[],Do=()=>{},z4=()=>!1,Y4=/^on[^a-z]/,Zp=e=>Y4.test(e),Oy=e=>e.startsWith("onUpdate:"),ar=Object.assign,wy=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},V4=Object.prototype.hasOwnProperty,on=(e,t)=>V4.call(e,t),ut=Array.isArray,Jc=e=>Qu(e)==="[object Map]",ec=e=>Qu(e)==="[object Set]",Fw=e=>Qu(e)==="[object Date]",q4=e=>Qu(e)==="[object RegExp]",It=e=>typeof e=="function",Qn=e=>typeof e=="string",_p=e=>typeof e=="symbol",$n=e=>e!==null&&typeof e=="object",Ry=e=>$n(e)&&It(e.then)&&It(e.catch),VD=Object.prototype.toString,Qu=e=>VD.call(e),j4=e=>Qu(e).slice(8,-1),qD=e=>Qu(e)==="[object Object]",xy=e=>Qn(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Hd=vg(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),yg=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},W4=/-(\w)/g,Ci=yg(e=>e.replace(W4,(t,n)=>n?n.toUpperCase():"")),K4=/\B([A-Z])/g,uo=yg(e=>e.replace(K4,"-$1").toLowerCase()),Jp=yg(e=>e.charAt(0).toUpperCase()+e.slice(1)),zd=yg(e=>e?`on${Jp(e)}`:""),yu=(e,t)=>!Object.is(e,t),eu=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},xm=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Im=e=>{const t=Qn(e)?Number(e):NaN;return isNaN(t)?e:t};let Bw;const Q4=()=>Bw||(Bw=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Pi;class Iy{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Pi,!t&&Pi&&(this.index=(Pi.scopes||(Pi.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Pi;try{return Pi=this,t()}finally{Pi=n}}}on(){Pi=this}off(){Pi=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},KD=e=>(e.w&zs)>0,QD=e=>(e.n&zs)>0,J4=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(l==="length"||l>=u)&&s.push(o)})}else switch(n!==void 0&&s.push(d.get(n)),t){case"add":ut(e)?xy(n)&&s.push(d.get("length")):(s.push(d.get(Rl)),Jc(e)&&s.push(d.get(ov)));break;case"delete":ut(e)||(s.push(d.get(Rl)),Jc(e)&&s.push(d.get(ov)));break;case"set":Jc(e)&&s.push(d.get(Rl));break}if(s.length===1)s[0]&&av(s[0]);else{const u=[];for(const o of s)o&&u.push(...o);av(Ny(u))}}function av(e,t){const n=ut(e)?e:[...e];for(const r of n)r.computed&&Gw(r);for(const r of n)r.computed||Gw(r)}function Gw(e,t){(e!==Io||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function r6(e,t){var n;return(n=Nm.get(e))===null||n===void 0?void 0:n.get(t)}const i6=vg("__proto__,__v_isRef,__isVue"),JD=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(_p)),o6=Cg(),a6=Cg(!1,!0),s6=Cg(!0),l6=Cg(!0,!0),Hw=c6();function c6(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=Dt(this);for(let a=0,d=this.length;a{e[t]=function(...n){Xu();const r=Dt(this)[t].apply(this,n);return Zu(),r}}),e}function u6(e){const t=Dt(this);return Ti(t,"has",e),t.hasOwnProperty(e)}function Cg(e=!1,t=!1){return function(r,i,a){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_isShallow")return t;if(i==="__v_raw"&&a===(e?t?a1:o1:t?i1:r1).get(r))return r;const d=ut(r);if(!e){if(d&&on(Hw,i))return Reflect.get(Hw,i,a);if(i==="hasOwnProperty")return u6}const s=Reflect.get(r,i,a);return(_p(i)?JD.has(i):i6(i))||(e||Ti(r,"get",i),t)?s:Er(s)?d&&xy(i)?s:s.value:$n(s)?e?Dy(s):Kt(s):s}}const d6=e1(),p6=e1(!0);function e1(e=!1){return function(n,r,i,a){let d=n[r];if(Ll(d)&&Er(d)&&!Er(i))return!1;if(!e&&(!mp(i)&&!Ll(i)&&(d=Dt(d),i=Dt(i)),!ut(n)&&Er(d)&&!Er(i)))return d.value=i,!0;const s=ut(n)&&xy(r)?Number(r)e,Tg=e=>Reflect.getPrototypeOf(e);function i_(e,t,n=!1,r=!1){e=e.__v_raw;const i=Dt(e),a=Dt(t);n||(t!==a&&Ti(i,"get",t),Ti(i,"get",a));const{has:d}=Tg(i),s=r?Ay:n?Py:gp;if(d.call(i,t))return s(e.get(t));if(d.call(i,a))return s(e.get(a));e!==i&&e.get(t)}function o_(e,t=!1){const n=this.__v_raw,r=Dt(n),i=Dt(e);return t||(e!==i&&Ti(r,"has",e),Ti(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function a_(e,t=!1){return e=e.__v_raw,!t&&Ti(Dt(e),"iterate",Rl),Reflect.get(e,"size",e)}function zw(e){e=Dt(e);const t=Dt(this);return Tg(t).has.call(t,e)||(t.add(e),za(t,"add",e,e)),this}function Yw(e,t){t=Dt(t);const n=Dt(this),{has:r,get:i}=Tg(n);let a=r.call(n,e);a||(e=Dt(e),a=r.call(n,e));const d=i.call(n,e);return n.set(e,t),a?yu(t,d)&&za(n,"set",e,t):za(n,"add",e,t),this}function Vw(e){const t=Dt(this),{has:n,get:r}=Tg(t);let i=n.call(t,e);i||(e=Dt(e),i=n.call(t,e)),r&&r.call(t,e);const a=t.delete(e);return i&&za(t,"delete",e,void 0),a}function qw(){const e=Dt(this),t=e.size!==0,n=e.clear();return t&&za(e,"clear",void 0,void 0),n}function s_(e,t){return function(r,i){const a=this,d=a.__v_raw,s=Dt(d),u=t?Ay:e?Py:gp;return!e&&Ti(s,"iterate",Rl),d.forEach((o,l)=>r.call(i,u(o),u(l),a))}}function l_(e,t,n){return function(...r){const i=this.__v_raw,a=Dt(i),d=Jc(a),s=e==="entries"||e===Symbol.iterator&&d,u=e==="keys"&&d,o=i[e](...r),l=n?Ay:t?Py:gp;return!t&&Ti(a,"iterate",u?ov:Rl),{next(){const{value:c,done:p}=o.next();return p?{value:c,done:p}:{value:s?[l(c[0]),l(c[1])]:l(c),done:p}},[Symbol.iterator](){return this}}}}function gs(e){return function(...t){return e==="delete"?!1:this}}function b6(){const e={get(a){return i_(this,a)},get size(){return a_(this)},has:o_,add:zw,set:Yw,delete:Vw,clear:qw,forEach:s_(!1,!1)},t={get(a){return i_(this,a,!1,!0)},get size(){return a_(this)},has:o_,add:zw,set:Yw,delete:Vw,clear:qw,forEach:s_(!1,!0)},n={get(a){return i_(this,a,!0)},get size(){return a_(this,!0)},has(a){return o_.call(this,a,!0)},add:gs("add"),set:gs("set"),delete:gs("delete"),clear:gs("clear"),forEach:s_(!0,!1)},r={get(a){return i_(this,a,!0,!0)},get size(){return a_(this,!0)},has(a){return o_.call(this,a,!0)},add:gs("add"),set:gs("set"),delete:gs("delete"),clear:gs("clear"),forEach:s_(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{e[a]=l_(a,!1,!1),n[a]=l_(a,!0,!1),t[a]=l_(a,!1,!0),r[a]=l_(a,!0,!0)}),[e,n,t,r]}const[S6,v6,E6,y6]=b6();function Og(e,t){const n=t?e?y6:E6:e?v6:S6;return(r,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(on(n,i)&&i in r?n:r,i,a)}const C6={get:Og(!1,!1)},T6={get:Og(!1,!0)},O6={get:Og(!0,!1)},w6={get:Og(!0,!0)},r1=new WeakMap,i1=new WeakMap,o1=new WeakMap,a1=new WeakMap;function R6(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function x6(e){return e.__v_skip||!Object.isExtensible(e)?0:R6(j4(e))}function Kt(e){return Ll(e)?e:wg(e,!1,t1,C6,r1)}function s1(e){return wg(e,!1,g6,T6,i1)}function Dy(e){return wg(e,!0,n1,O6,o1)}function I6(e){return wg(e,!0,h6,w6,a1)}function wg(e,t,n,r,i){if(!$n(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=i.get(e);if(a)return a;const d=x6(e);if(d===0)return e;const s=new Proxy(e,d===2?r:n);return i.set(e,s),s}function xl(e){return Ll(e)?xl(e.__v_raw):!!(e&&e.__v_isReactive)}function Ll(e){return!!(e&&e.__v_isReadonly)}function mp(e){return!!(e&&e.__v_isShallow)}function My(e){return xl(e)||Ll(e)}function Dt(e){const t=e&&e.__v_raw;return t?Dt(t):e}function ky(e){return Rm(e,"__v_skip",!0),e}const gp=e=>$n(e)?Kt(e):e,Py=e=>$n(e)?Dy(e):e;function Ly(e){Ps&&Io&&(e=Dt(e),ZD(e.dep||(e.dep=Ny())))}function Rg(e,t){e=Dt(e);const n=e.dep;n&&av(n)}function Er(e){return!!(e&&e.__v_isRef===!0)}function ke(e){return l1(e,!1)}function Ie(e){return l1(e,!0)}function l1(e,t){return Er(e)?e:new N6(e,t)}class N6{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Dt(t),this._value=n?t:gp(t)}get value(){return Ly(this),this._value}set value(t){const n=this.__v_isShallow||mp(t)||Ll(t);t=n?t:Dt(t),yu(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:gp(t),Rg(this))}}function A6(e){Rg(e)}function Ve(e){return Er(e)?e.value:e}const D6={get:(e,t,n)=>Ve(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return Er(i)&&!Er(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function $y(e){return xl(e)?e:new Proxy(e,D6)}class M6{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>Ly(this),()=>Rg(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function k6(e){return new M6(e)}function tu(e){const t=ut(e)?new Array(e.length):{};for(const n in e)t[n]=cn(e,n);return t}class P6{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return r6(Dt(this._object),this._key)}}function cn(e,t,n){const r=e[t];return Er(r)?r:new P6(e,t,n)}var c1;class L6{constructor(t,n,r,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[c1]=!1,this._dirty=!0,this.effect=new ef(t,()=>{this._dirty||(this._dirty=!0,Rg(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}get value(){const t=Dt(this);return Ly(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}c1="__v_isReadonly";function $6(e,t,n=!1){let r,i;const a=It(e);return a?(r=e,i=Do):(r=e.get,i=e.set),new L6(r,i,a||!i,n)}function F6(e,...t){}function B6(e,t){}function Ua(e,t,n,r){let i;try{i=r?e(...r):e()}catch(a){tc(a,t,n)}return i}function Fi(e,t,n,r){if(It(e)){const a=Ua(e,t,n,r);return a&&Ry(a)&&a.catch(d=>{tc(d,t,n)}),a}const i=[];for(let a=0;a>>1;bp(Jr[r])Zo&&Jr.splice(t,1)}function By(e){ut(e)?nu.push(...e):(!Oa||!Oa.includes(e,e.allowRecurse?hl+1:hl))&&nu.push(e),d1()}function jw(e,t=hp?Zo+1:0){for(;tbp(n)-bp(r)),hl=0;hle.id==null?1/0:e.id,z6=(e,t)=>{const n=bp(e)-bp(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function p1(e){sv=!1,hp=!0,Jr.sort(z6);const t=Do;try{for(Zo=0;ZoHc.emit(i,...a)),c_=[]):typeof window<"u"&&window.HTMLElement&&!(!((r=(n=window.navigator)===null||n===void 0?void 0:n.userAgent)===null||r===void 0)&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(a=>{f1(a,t)}),setTimeout(()=>{Hc||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,c_=[])},3e3)):c_=[]}function Y6(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||An;let i=n;const a=t.startsWith("update:"),d=a&&t.slice(7);if(d&&d in r){const l=`${d==="modelValue"?"model":d}Modifiers`,{number:c,trim:p}=r[l]||An;p&&(i=n.map(f=>Qn(f)?f.trim():f)),c&&(i=n.map(xm))}let s,u=r[s=zd(t)]||r[s=zd(Ci(t))];!u&&a&&(u=r[s=zd(uo(t))]),u&&Fi(u,e,6,i);const o=r[s+"Once"];if(o){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Fi(o,e,6,i)}}function _1(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const a=e.emits;let d={},s=!1;if(!It(e)){const u=o=>{const l=_1(o,t,!0);l&&(s=!0,ar(d,l))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!a&&!s?($n(e)&&r.set(e,null),null):(ut(a)?a.forEach(u=>d[u]=null):ar(d,a),$n(e)&&r.set(e,d),d)}function Ig(e,t){return!e||!Zp(t)?!1:(t=t.slice(2).replace(/Once$/,""),on(e,t[0].toLowerCase()+t.slice(1))||on(e,uo(t))||on(e,t))}let Ur=null,Ng=null;function Sp(e){const t=Ur;return Ur=e,Ng=e&&e.type.__scopeId||null,t}function m1(e){Ng=e}function g1(){Ng=null}const V6=e=>kn;function kn(e,t=Ur,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&_v(-1);const a=Sp(t);let d;try{d=e(...i)}finally{Sp(a),r._d&&_v(1)}return d};return r._n=!0,r._c=!0,r._d=!0,r}function sm(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:a,propsOptions:[d],slots:s,attrs:u,emit:o,render:l,renderCache:c,data:p,setupState:f,ctx:m,inheritAttrs:g}=e;let h,b;const v=Sp(e);try{if(n.shapeFlag&4){const y=i||r;h=Li(l.call(y,y,c,a,f,p,m)),b=u}else{const y=t;h=Li(y.length>1?y(a,{attrs:u,slots:s,emit:o}):y(a,null)),b=t.props?u:j6(u)}}catch(y){qd.length=0,tc(y,e,1),h=N(Hr)}let E=h;if(b&&g!==!1){const y=Object.keys(b),{shapeFlag:T}=E;y.length&&T&7&&(d&&y.some(Oy)&&(b=W6(b,d)),E=fi(E,b))}return n.dirs&&(E=fi(E),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&(E.transition=n.transition),h=E,Sp(v),h}function q6(e){let t;for(let n=0;n{let t;for(const n in e)(n==="class"||n==="style"||Zp(n))&&((t||(t={}))[n]=e[n]);return t},W6=(e,t)=>{const n={};for(const r in e)(!Oy(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function K6(e,t,n){const{props:r,children:i,component:a}=e,{props:d,children:s,patchFlag:u}=t,o=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return r?Ww(r,d,o):!!d;if(u&8){const l=t.dynamicProps;for(let c=0;ce.__isSuspense,Q6={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,a,d,s,u,o){e==null?Z6(t,n,r,i,a,d,s,u,o):J6(e,t,n,r,i,d,s,u,o)},hydrate:eY,create:Gy,normalize:tY},X6=Q6;function vp(e,t){const n=e.props&&e.props[t];It(n)&&n()}function Z6(e,t,n,r,i,a,d,s,u){const{p:o,o:{createElement:l}}=u,c=l("div"),p=e.suspense=Gy(e,i,r,t,c,n,a,d,s,u);o(null,p.pendingBranch=e.ssContent,c,null,r,p,a,d),p.deps>0?(vp(e,"onPending"),vp(e,"onFallback"),o(null,e.ssFallback,t,n,r,null,a,d),ru(p,e.ssFallback)):p.resolve()}function J6(e,t,n,r,i,a,d,s,{p:u,um:o,o:{createElement:l}}){const c=t.suspense=e.suspense;c.vnode=t,t.el=e.el;const p=t.ssContent,f=t.ssFallback,{activeBranch:m,pendingBranch:g,isInFallback:h,isHydrating:b}=c;if(g)c.pendingBranch=p,No(p,g)?(u(g,p,c.hiddenContainer,null,i,c,a,d,s),c.deps<=0?c.resolve():h&&(u(m,f,n,r,i,null,a,d,s),ru(c,f))):(c.pendingId++,b?(c.isHydrating=!1,c.activeBranch=g):o(g,i,c),c.deps=0,c.effects.length=0,c.hiddenContainer=l("div"),h?(u(null,p,c.hiddenContainer,null,i,c,a,d,s),c.deps<=0?c.resolve():(u(m,f,n,r,i,null,a,d,s),ru(c,f))):m&&No(p,m)?(u(m,p,n,r,i,c,a,d,s),c.resolve(!0)):(u(null,p,c.hiddenContainer,null,i,c,a,d,s),c.deps<=0&&c.resolve()));else if(m&&No(p,m))u(m,p,n,r,i,c,a,d,s),ru(c,p);else if(vp(t,"onPending"),c.pendingBranch=p,c.pendingId++,u(null,p,c.hiddenContainer,null,i,c,a,d,s),c.deps<=0)c.resolve();else{const{timeout:v,pendingId:E}=c;v>0?setTimeout(()=>{c.pendingId===E&&c.fallback(f)},v):v===0&&c.fallback(f)}}function Gy(e,t,n,r,i,a,d,s,u,o,l=!1){const{p:c,m:p,um:f,n:m,o:{parentNode:g,remove:h}}=o,b=e.props?Im(e.props.timeout):void 0,v={vnode:e,parent:t,parentComponent:n,isSVG:d,container:r,hiddenContainer:i,anchor:a,deps:0,pendingId:0,timeout:typeof b=="number"?b:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:l,isUnmounted:!1,effects:[],resolve(E=!1){const{vnode:y,activeBranch:T,pendingBranch:O,pendingId:C,effects:R,parentComponent:x,container:I}=v;if(v.isHydrating)v.isHydrating=!1;else if(!E){const A=T&&O.transition&&O.transition.mode==="out-in";A&&(T.transition.afterLeave=()=>{C===v.pendingId&&p(O,I,D,0)});let{anchor:D}=v;T&&(D=m(T),f(T,x,v,!0)),A||p(O,I,D,0)}ru(v,O),v.pendingBranch=null,v.isInFallback=!1;let k=v.parent,L=!1;for(;k;){if(k.pendingBranch){k.effects.push(...R),L=!0;break}k=k.parent}L||By(R),v.effects=[],vp(y,"onResolve")},fallback(E){if(!v.pendingBranch)return;const{vnode:y,activeBranch:T,parentComponent:O,container:C,isSVG:R}=v;vp(y,"onFallback");const x=m(T),I=()=>{!v.isInFallback||(c(null,E,C,x,O,null,R,s,u),ru(v,E))},k=E.transition&&E.transition.mode==="out-in";k&&(T.transition.afterLeave=I),v.isInFallback=!0,f(T,O,null,!0),k||I()},move(E,y,T){v.activeBranch&&p(v.activeBranch,E,y,T),v.container=E},next(){return v.activeBranch&&m(v.activeBranch)},registerDep(E,y){const T=!!v.pendingBranch;T&&v.deps++;const O=E.vnode.el;E.asyncDep.catch(C=>{tc(C,E,0)}).then(C=>{if(E.isUnmounted||v.isUnmounted||v.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:R}=E;mv(E,C,!1),O&&(R.el=O);const x=!O&&E.subTree.el;y(E,R,g(O||E.subTree.el),O?null:m(E.subTree),v,d,u),x&&h(x),Uy(E,R.el),T&&--v.deps===0&&v.resolve()})},unmount(E,y){v.isUnmounted=!0,v.activeBranch&&f(v.activeBranch,n,E,y),v.pendingBranch&&f(v.pendingBranch,n,E,y)}};return v}function eY(e,t,n,r,i,a,d,s,u){const o=t.suspense=Gy(t,r,n,e.parentNode,document.createElement("div"),null,i,a,d,s,!0),l=u(e,o.pendingBranch=t.ssContent,n,o,a,d);return o.deps===0&&o.resolve(),l}function tY(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Kw(r?n.default:n),e.ssFallback=r?Kw(n.fallback):N(Hr)}function Kw(e){let t;if(It(e)){const n=Fl&&e._c;n&&(e._d=!1,Se()),e=e(),n&&(e._d=!0,t=yi,G1())}return ut(e)&&(e=q6(e)),e=Li(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function b1(e,t){t&&t.pendingBranch?ut(e)?t.effects.push(...e):t.effects.push(e):By(e)}function ru(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,i=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=i,Uy(r,i))}function $t(e,t){if(ir){let n=ir.provides;const r=ir.parent&&ir.parent.provides;r===n&&(n=ir.provides=Object.create(r)),n[e]=t}}function bt(e,t,n=!1){const r=ir||Ur;if(r){const i=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&It(t)?t.call(r.proxy):t}}function Ht(e,t){return tf(e,null,t)}function S1(e,t){return tf(e,null,{flush:"post"})}function nY(e,t){return tf(e,null,{flush:"sync"})}const u_={};function ze(e,t,n){return tf(e,t,n)}function tf(e,t,{immediate:n,deep:r,flush:i,onTrack:a,onTrigger:d}=An){const s=WD()===(ir==null?void 0:ir.scope)?ir:null;let u,o=!1,l=!1;if(Er(e)?(u=()=>e.value,o=mp(e)):xl(e)?(u=()=>e,r=!0):ut(e)?(l=!0,o=e.some(E=>xl(E)||mp(E)),u=()=>e.map(E=>{if(Er(E))return E.value;if(xl(E))return Tl(E);if(It(E))return Ua(E,s,2)})):It(e)?t?u=()=>Ua(e,s,2):u=()=>{if(!(s&&s.isUnmounted))return c&&c(),Fi(e,s,3,[p])}:u=Do,t&&r){const E=u;u=()=>Tl(E())}let c,p=E=>{c=b.onStop=()=>{Ua(E,s,4)}},f;if(Tu)if(p=Do,t?n&&Fi(t,s,3,[u(),l?[]:void 0,p]):u(),i==="sync"){const E=X1();f=E.__watcherHandles||(E.__watcherHandles=[])}else return Do;let m=l?new Array(e.length).fill(u_):u_;const g=()=>{if(!!b.active)if(t){const E=b.run();(r||o||(l?E.some((y,T)=>yu(y,m[T])):yu(E,m)))&&(c&&c(),Fi(t,s,3,[E,m===u_?void 0:l&&m[0]===u_?[]:m,p]),m=E)}else b.run()};g.allowRecurse=!!t;let h;i==="sync"?h=g:i==="post"?h=()=>Br(g,s&&s.suspense):(g.pre=!0,s&&(g.id=s.uid),h=()=>xg(g));const b=new ef(u,h);t?n?g():m=b.run():i==="post"?Br(b.run.bind(b),s&&s.suspense):b.run();const v=()=>{b.stop(),s&&s.scope&&wy(s.scope.effects,b)};return f&&f.push(v),v}function rY(e,t,n){const r=this.proxy,i=Qn(e)?e.includes(".")?v1(r,e):()=>r[e]:e.bind(r,r);let a;It(t)?a=t:(a=t.handler,n=t);const d=ir;Ys(this);const s=tf(i,a.bind(r),n);return d?Ys(d):Ls(),s}function v1(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i{Tl(n,t)});else if(qD(e))for(const n in e)Tl(e[n],t);return e}function Hy(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return it(()=>{e.isMounted=!0}),tn(()=>{e.isUnmounting=!0}),e}const ro=[Function,Array],iY={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ro,onEnter:ro,onAfterEnter:ro,onEnterCancelled:ro,onBeforeLeave:ro,onLeave:ro,onAfterLeave:ro,onLeaveCancelled:ro,onBeforeAppear:ro,onAppear:ro,onAfterAppear:ro,onAppearCancelled:ro},setup(e,{slots:t}){const n=mr(),r=Hy();let i;return()=>{const a=t.default&&Ag(t.default(),!0);if(!a||!a.length)return;let d=a[0];if(a.length>1){for(const g of a)if(g.type!==Hr){d=g;break}}const s=Dt(e),{mode:u}=s;if(r.isLeaving)return Bb(d);const o=Qw(d);if(!o)return Bb(d);const l=Cu(o,s,r,n);$l(o,l);const c=n.subTree,p=c&&Qw(c);let f=!1;const{getTransitionKey:m}=o.type;if(m){const g=m();i===void 0?i=g:g!==i&&(i=g,f=!0)}if(p&&p.type!==Hr&&(!No(o,p)||f)){const g=Cu(p,s,r,n);if($l(p,g),u==="out-in")return r.isLeaving=!0,g.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},Bb(d);u==="in-out"&&o.type!==Hr&&(g.delayLeave=(h,b,v)=>{const E=E1(r,p);E[String(p.key)]=p,h._leaveCb=()=>{b(),h._leaveCb=void 0,delete l.delayedLeave},l.delayedLeave=v})}return d}}},zy=iY;function E1(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Cu(e,t,n,r){const{appear:i,mode:a,persisted:d=!1,onBeforeEnter:s,onEnter:u,onAfterEnter:o,onEnterCancelled:l,onBeforeLeave:c,onLeave:p,onAfterLeave:f,onLeaveCancelled:m,onBeforeAppear:g,onAppear:h,onAfterAppear:b,onAppearCancelled:v}=t,E=String(e.key),y=E1(n,e),T=(R,x)=>{R&&Fi(R,r,9,x)},O=(R,x)=>{const I=x[1];T(R,x),ut(R)?R.every(k=>k.length<=1)&&I():R.length<=1&&I()},C={mode:a,persisted:d,beforeEnter(R){let x=s;if(!n.isMounted)if(i)x=g||s;else return;R._leaveCb&&R._leaveCb(!0);const I=y[E];I&&No(e,I)&&I.el._leaveCb&&I.el._leaveCb(),T(x,[R])},enter(R){let x=u,I=o,k=l;if(!n.isMounted)if(i)x=h||u,I=b||o,k=v||l;else return;let L=!1;const A=R._enterCb=D=>{L||(L=!0,D?T(k,[R]):T(I,[R]),C.delayedLeave&&C.delayedLeave(),R._enterCb=void 0)};x?O(x,[R,A]):A()},leave(R,x){const I=String(e.key);if(R._enterCb&&R._enterCb(!0),n.isUnmounting)return x();T(c,[R]);let k=!1;const L=R._leaveCb=A=>{k||(k=!0,x(),A?T(m,[R]):T(f,[R]),R._leaveCb=void 0,y[I]===e&&delete y[I])};y[I]=e,p?O(p,[R,L]):L()},clone(R){return Cu(R,t,n,r)}};return C}function Bb(e){if(nf(e))return e=fi(e),e.children=null,e}function Qw(e){return nf(e)?e.children?e.children[0]:void 0:e}function $l(e,t){e.shapeFlag&6&&e.component?$l(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ag(e,t=!1,n){let r=[],i=0;for(let a=0;a1)for(let a=0;a!!e.type.__asyncLoader;function oY(e){It(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,timeout:a,suspensible:d=!0,onError:s}=e;let u=null,o,l=0;const c=()=>(l++,u=null,p()),p=()=>{let f;return u||(f=u=t().catch(m=>{if(m=m instanceof Error?m:new Error(String(m)),s)return new Promise((g,h)=>{s(m,()=>g(c()),()=>h(m),l+1)});throw m}).then(m=>f!==u&&u?u:(m&&(m.__esModule||m[Symbol.toStringTag]==="Module")&&(m=m.default),o=m,m)))};return Te({name:"AsyncComponentWrapper",__asyncLoader:p,get __asyncResolved(){return o},setup(){const f=ir;if(o)return()=>Ub(o,f);const m=v=>{u=null,tc(v,f,13,!r)};if(d&&f.suspense||Tu)return p().then(v=>()=>Ub(v,f)).catch(v=>(m(v),()=>r?N(r,{error:v}):null));const g=ke(!1),h=ke(),b=ke(!!i);return i&&setTimeout(()=>{b.value=!1},i),a!=null&&setTimeout(()=>{if(!g.value&&!h.value){const v=new Error(`Async component timed out after ${a}ms.`);m(v),h.value=v}},a),p().then(()=>{g.value=!0,f.parent&&nf(f.parent.vnode)&&xg(f.parent.update)}).catch(v=>{m(v),h.value=v}),()=>{if(g.value&&o)return Ub(o,f);if(h.value&&r)return N(r,{error:h.value});if(n&&!b.value)return N(n)}}})}function Ub(e,t){const{ref:n,props:r,children:i,ce:a}=t.vnode,d=N(e,r,i);return d.ref=n,d.ce=a,delete t.vnode.ce,d}const nf=e=>e.type.__isKeepAlive,aY={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=mr(),r=n.ctx;if(!r.renderer)return()=>{const v=t.default&&t.default();return v&&v.length===1?v[0]:v};const i=new Map,a=new Set;let d=null;const s=n.suspense,{renderer:{p:u,m:o,um:l,o:{createElement:c}}}=r,p=c("div");r.activate=(v,E,y,T,O)=>{const C=v.component;o(v,E,y,0,s),u(C.vnode,v,E,y,C,s,T,v.slotScopeIds,O),Br(()=>{C.isDeactivated=!1,C.a&&eu(C.a);const R=v.props&&v.props.onVnodeMounted;R&&vi(R,C.parent,v)},s)},r.deactivate=v=>{const E=v.component;o(v,p,null,1,s),Br(()=>{E.da&&eu(E.da);const y=v.props&&v.props.onVnodeUnmounted;y&&vi(y,E.parent,v),E.isDeactivated=!0},s)};function f(v){Gb(v),l(v,n,s,!0)}function m(v){i.forEach((E,y)=>{const T=hv(E.type);T&&(!v||!v(T))&&g(y)})}function g(v){const E=i.get(v);!d||!No(E,d)?f(E):d&&Gb(d),i.delete(v),a.delete(v)}ze(()=>[e.include,e.exclude],([v,E])=>{v&&m(y=>Ld(v,y)),E&&m(y=>!Ld(E,y))},{flush:"post",deep:!0});let h=null;const b=()=>{h!=null&&i.set(h,Hb(n.subTree))};return it(b),Hi(b),tn(()=>{i.forEach(v=>{const{subTree:E,suspense:y}=n,T=Hb(E);if(v.type===T.type&&v.key===T.key){Gb(T);const O=T.component.da;O&&Br(O,y);return}f(v)})}),()=>{if(h=null,!t.default)return null;const v=t.default(),E=v[0];if(v.length>1)return d=null,v;if(!yr(E)||!(E.shapeFlag&4)&&!(E.shapeFlag&128))return d=null,E;let y=Hb(E);const T=y.type,O=hv(Il(y)?y.type.__asyncResolved||{}:T),{include:C,exclude:R,max:x}=e;if(C&&(!O||!Ld(C,O))||R&&O&&Ld(R,O))return d=y,E;const I=y.key==null?T:y.key,k=i.get(I);return y.el&&(y=fi(y),E.shapeFlag&128&&(E.ssContent=y)),h=I,k?(y.el=k.el,y.component=k.component,y.transition&&$l(y,y.transition),y.shapeFlag|=512,a.delete(I),a.add(I)):(a.add(I),x&&a.size>parseInt(x,10)&&g(a.values().next().value)),y.shapeFlag|=256,d=y,h1(E.type)?E:y}}},sY=aY;function Ld(e,t){return ut(e)?e.some(n=>Ld(n,t)):Qn(e)?e.split(",").includes(t):q4(e)?e.test(t):!1}function Dg(e,t){y1(e,"a",t)}function Yy(e,t){y1(e,"da",t)}function y1(e,t,n=ir){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Mg(t,r,n),n){let i=n.parent;for(;i&&i.parent;)nf(i.parent.vnode)&&lY(r,t,n,i),i=i.parent}}function lY(e,t,n,r){const i=Mg(t,e,r,!0);zi(()=>{wy(r[t],i)},n)}function Gb(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Hb(e){return e.shapeFlag&128?e.ssContent:e}function Mg(e,t,n=ir,r=!1){if(n){const i=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...d)=>{if(n.isUnmounted)return;Xu(),Ys(n);const s=Fi(t,n,e,d);return Ls(),Zu(),s});return r?i.unshift(a):i.push(a),a}}const Ka=e=>(t,n=ir)=>(!Tu||e==="sp")&&Mg(e,(...r)=>t(...r),n),Vy=Ka("bm"),it=Ka("m"),qy=Ka("bu"),Hi=Ka("u"),tn=Ka("bum"),zi=Ka("um"),C1=Ka("sp"),T1=Ka("rtg"),O1=Ka("rtc");function w1(e,t=ir){Mg("ec",e,t)}function ur(e,t){const n=Ur;if(n===null)return e;const r=Pg(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let a=0;at(d,s,void 0,a&&a[s]));else{const d=Object.keys(e);i=new Array(d.length);for(let s=0,u=d.length;s{const a=r.fn(...i);return a&&(a.key=r.key),a}:r.fn)}return e}function ln(e,t,n={},r,i){if(Ur.isCE||Ur.parent&&Il(Ur.parent)&&Ur.parent.isCE)return t!=="default"&&(n.name=t),N("slot",n,r&&r());let a=e[t];a&&a._c&&(a._d=!1),Se();const d=a&&x1(a(n)),s=Vn(Xe,{key:n.key||d&&d.key||`_${t}`},d||(r?r():[]),d&&e._===1?64:-2);return!i&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),a&&a._c&&(a._d=!0),s}function x1(e){return e.some(t=>yr(t)?!(t.type===Hr||t.type===Xe&&!x1(t.children)):!0)?e:null}function I1(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:zd(r)]=e[r];return n}const lv=e=>e?V1(e)?Pg(e)||e.proxy:lv(e.parent):null,Yd=ar(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>lv(e.parent),$root:e=>lv(e.root),$emit:e=>e.emit,$options:e=>Qy(e),$forceUpdate:e=>e.f||(e.f=()=>xg(e.update)),$nextTick:e=>e.n||(e.n=en.bind(e.proxy)),$watch:e=>rY.bind(e)}),zb=(e,t)=>e!==An&&!e.__isScriptSetup&&on(e,t),cv={get({_:e},t){const{ctx:n,setupState:r,data:i,props:a,accessCache:d,type:s,appContext:u}=e;let o;if(t[0]!=="$"){const f=d[t];if(f!==void 0)switch(f){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return a[t]}else{if(zb(r,t))return d[t]=1,r[t];if(i!==An&&on(i,t))return d[t]=2,i[t];if((o=e.propsOptions[0])&&on(o,t))return d[t]=3,a[t];if(n!==An&&on(n,t))return d[t]=4,n[t];uv&&(d[t]=0)}}const l=Yd[t];let c,p;if(l)return t==="$attrs"&&Ti(e,"get",t),l(e);if((c=s.__cssModules)&&(c=c[t]))return c;if(n!==An&&on(n,t))return d[t]=4,n[t];if(p=u.config.globalProperties,on(p,t))return p[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:a}=e;return zb(i,t)?(i[t]=n,!0):r!==An&&on(r,t)?(r[t]=n,!0):on(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:a}},d){let s;return!!n[d]||e!==An&&on(e,d)||zb(t,d)||(s=a[0])&&on(s,d)||on(r,d)||on(Yd,d)||on(i.config.globalProperties,d)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:on(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},uY=ar({},cv,{get(e,t){if(t!==Symbol.unscopables)return cv.get(e,t,e)},has(e,t){return t[0]!=="_"&&!P4(t)}});let uv=!0;function dY(e){const t=Qy(e),n=e.proxy,r=e.ctx;uv=!1,t.beforeCreate&&Zw(t.beforeCreate,e,"bc");const{data:i,computed:a,methods:d,watch:s,provide:u,inject:o,created:l,beforeMount:c,mounted:p,beforeUpdate:f,updated:m,activated:g,deactivated:h,beforeDestroy:b,beforeUnmount:v,destroyed:E,unmounted:y,render:T,renderTracked:O,renderTriggered:C,errorCaptured:R,serverPrefetch:x,expose:I,inheritAttrs:k,components:L,directives:A,filters:D}=t;if(o&&pY(o,r,null,e.appContext.config.unwrapInjectedRef),d)for(const z in d){const H=d[z];It(H)&&(r[z]=H.bind(n))}if(i){const z=i.call(n,n);$n(z)&&(e.data=Kt(z))}if(uv=!0,a)for(const z in a){const H=a[z],V=It(H)?H.bind(n,n):It(H.get)?H.get.bind(n,n):Do,W=!It(H)&&It(H.set)?H.set.bind(n):Do,te=B({get:V,set:W});Object.defineProperty(r,z,{enumerable:!0,configurable:!0,get:()=>te.value,set:X=>te.value=X})}if(s)for(const z in s)N1(s[z],r,n,z);if(u){const z=It(u)?u.call(n):u;Reflect.ownKeys(z).forEach(H=>{$t(H,z[H])})}l&&Zw(l,e,"c");function F(z,H){ut(H)?H.forEach(V=>z(V.bind(n))):H&&z(H.bind(n))}if(F(Vy,c),F(it,p),F(qy,f),F(Hi,m),F(Dg,g),F(Yy,h),F(w1,R),F(O1,O),F(T1,C),F(tn,v),F(zi,y),F(C1,x),ut(I))if(I.length){const z=e.exposed||(e.exposed={});I.forEach(H=>{Object.defineProperty(z,H,{get:()=>n[H],set:V=>n[H]=V})})}else e.exposed||(e.exposed={});T&&e.render===Do&&(e.render=T),k!=null&&(e.inheritAttrs=k),L&&(e.components=L),A&&(e.directives=A)}function pY(e,t,n=Do,r=!1){ut(e)&&(e=dv(e));for(const i in e){const a=e[i];let d;$n(a)?"default"in a?d=bt(a.from||i,a.default,!0):d=bt(a.from||i):d=bt(a),Er(d)&&r?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>d.value,set:s=>d.value=s}):t[i]=d}}function Zw(e,t,n){Fi(ut(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function N1(e,t,n,r){const i=r.includes(".")?v1(n,r):()=>n[r];if(Qn(e)){const a=t[e];It(a)&&ze(i,a)}else if(It(e))ze(i,e.bind(n));else if($n(e))if(ut(e))e.forEach(a=>N1(a,t,n,r));else{const a=It(e.handler)?e.handler.bind(n):t[e.handler];It(a)&&ze(i,a,e)}}function Qy(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:d}}=e.appContext,s=a.get(t);let u;return s?u=s:!i.length&&!n&&!r?u=t:(u={},i.length&&i.forEach(o=>Dm(u,o,d,!0)),Dm(u,t,d)),$n(t)&&a.set(t,u),u}function Dm(e,t,n,r=!1){const{mixins:i,extends:a}=t;a&&Dm(e,a,n,!0),i&&i.forEach(d=>Dm(e,d,n,!0));for(const d in t)if(!(r&&d==="expose")){const s=fY[d]||n&&n[d];e[d]=s?s(e[d],t[d]):t[d]}return e}const fY={data:Jw,props:_l,emits:_l,methods:_l,computed:_l,beforeCreate:ai,created:ai,beforeMount:ai,mounted:ai,beforeUpdate:ai,updated:ai,beforeDestroy:ai,beforeUnmount:ai,destroyed:ai,unmounted:ai,activated:ai,deactivated:ai,errorCaptured:ai,serverPrefetch:ai,components:_l,directives:_l,watch:mY,provide:Jw,inject:_Y};function Jw(e,t){return t?e?function(){return ar(It(e)?e.call(this,this):e,It(t)?t.call(this,this):t)}:t:e}function _Y(e,t){return _l(dv(e),dv(t))}function dv(e){if(ut(e)){const t={};for(let n=0;n0)&&!(d&16)){if(d&8){const l=e.vnode.dynamicProps;for(let c=0;c{u=!0;const[p,f]=D1(c,t,!0);ar(d,p),f&&s.push(...f)};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}if(!a&&!u)return $n(e)&&r.set(e,Zc),Zc;if(ut(a))for(let l=0;l-1,f[1]=g<0||m-1||on(f,"default"))&&s.push(c)}}}const o=[d,s];return $n(e)&&r.set(e,o),o}function eR(e){return e[0]!=="$"}function tR(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function nR(e,t){return tR(e)===tR(t)}function rR(e,t){return ut(t)?t.findIndex(n=>nR(n,e)):It(t)&&nR(t,e)?0:-1}const M1=e=>e[0]==="_"||e==="$stable",Xy=e=>ut(e)?e.map(Li):[Li(e)],bY=(e,t,n)=>{if(t._n)return t;const r=kn((...i)=>Xy(t(...i)),n);return r._c=!1,r},k1=(e,t,n)=>{const r=e._ctx;for(const i in e){if(M1(i))continue;const a=e[i];if(It(a))t[i]=bY(i,a,r);else if(a!=null){const d=Xy(a);t[i]=()=>d}}},P1=(e,t)=>{const n=Xy(t);e.slots.default=()=>n},SY=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Dt(t),Rm(t,"_",n)):k1(t,e.slots={})}else e.slots={},t&&P1(e,t);Rm(e.slots,kg,1)},vY=(e,t,n)=>{const{vnode:r,slots:i}=e;let a=!0,d=An;if(r.shapeFlag&32){const s=t._;s?n&&s===1?a=!1:(ar(i,t),!n&&s===1&&delete i._):(a=!t.$stable,k1(t,i)),d=t}else t&&(P1(e,t),d={default:1});if(a)for(const s in i)!M1(s)&&!(s in d)&&delete i[s]};function L1(){return{app:null,config:{isNativeTag:z4,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let EY=0;function yY(e,t){return function(r,i=null){It(r)||(r=Object.assign({},r)),i!=null&&!$n(i)&&(i=null);const a=L1(),d=new Set;let s=!1;const u=a.app={_uid:EY++,_component:r,_props:i,_container:null,_context:a,_instance:null,version:J1,get config(){return a.config},set config(o){},use(o,...l){return d.has(o)||(o&&It(o.install)?(d.add(o),o.install(u,...l)):It(o)&&(d.add(o),o(u,...l))),u},mixin(o){return a.mixins.includes(o)||a.mixins.push(o),u},component(o,l){return l?(a.components[o]=l,u):a.components[o]},directive(o,l){return l?(a.directives[o]=l,u):a.directives[o]},mount(o,l,c){if(!s){const p=N(r,i);return p.appContext=a,l&&t?t(p,o):e(p,o,c),s=!0,u._container=o,o.__vue_app__=u,Pg(p.component)||p.component.proxy}},unmount(){s&&(e(null,u._container),delete u._container.__vue_app__)},provide(o,l){return a.provides[o]=l,u}};return u}}function Mm(e,t,n,r,i=!1){if(ut(e)){e.forEach((p,f)=>Mm(p,t&&(ut(t)?t[f]:t),n,r,i));return}if(Il(r)&&!i)return;const a=r.shapeFlag&4?Pg(r.component)||r.component.proxy:r.el,d=i?null:a,{i:s,r:u}=e,o=t&&t.r,l=s.refs===An?s.refs={}:s.refs,c=s.setupState;if(o!=null&&o!==u&&(Qn(o)?(l[o]=null,on(c,o)&&(c[o]=null)):Er(o)&&(o.value=null)),It(u))Ua(u,s,12,[d,l]);else{const p=Qn(u),f=Er(u);if(p||f){const m=()=>{if(e.f){const g=p?on(c,u)?c[u]:l[u]:u.value;i?ut(g)&&wy(g,a):ut(g)?g.includes(a)||g.push(a):p?(l[u]=[a],on(c,u)&&(c[u]=l[u])):(u.value=[a],e.k&&(l[e.k]=u.value))}else p?(l[u]=d,on(c,u)&&(c[u]=d)):f&&(u.value=d,e.k&&(l[e.k]=d))};d?(m.id=-1,Br(m,n)):m()}}}let hs=!1;const d_=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",p_=e=>e.nodeType===8;function CY(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:a,parentNode:d,remove:s,insert:u,createComment:o}}=e,l=(b,v)=>{if(!v.hasChildNodes()){n(null,b,v),Am(),v._vnode=b;return}hs=!1,c(v.firstChild,b,null,null,null),Am(),v._vnode=b,hs&&console.error("Hydration completed but contains mismatches.")},c=(b,v,E,y,T,O=!1)=>{const C=p_(b)&&b.data==="[",R=()=>g(b,v,E,y,T,C),{type:x,ref:I,shapeFlag:k,patchFlag:L}=v;let A=b.nodeType;v.el=b,L===-2&&(O=!1,v.dynamicChildren=null);let D=null;switch(x){case ta:A!==3?v.children===""?(u(v.el=i(""),d(b),b),D=b):D=R():(b.data!==v.children&&(hs=!0,b.data=v.children),D=a(b));break;case Hr:A!==8||C?D=R():D=a(b);break;case Al:if(C&&(b=a(b),A=b.nodeType),A===1||A===3){D=b;const $=!v.children.length;for(let F=0;F{O=O||!!v.dynamicChildren;const{type:C,props:R,patchFlag:x,shapeFlag:I,dirs:k}=v,L=C==="input"&&k||C==="option";if(L||x!==-1){if(k&&Qo(v,null,E,"created"),R)if(L||!O||x&48)for(const D in R)(L&&D.endsWith("value")||Zp(D)&&!Hd(D))&&r(b,D,null,R[D],!1,void 0,E);else R.onClick&&r(b,"onClick",null,R.onClick,!1,void 0,E);let A;if((A=R&&R.onVnodeBeforeMount)&&vi(A,E,v),k&&Qo(v,null,E,"beforeMount"),((A=R&&R.onVnodeMounted)||k)&&b1(()=>{A&&vi(A,E,v),k&&Qo(v,null,E,"mounted")},y),I&16&&!(R&&(R.innerHTML||R.textContent))){let D=f(b.firstChild,v,b,E,y,T,O);for(;D;){hs=!0;const $=D;D=D.nextSibling,s($)}}else I&8&&b.textContent!==v.children&&(hs=!0,b.textContent=v.children)}return b.nextSibling},f=(b,v,E,y,T,O,C)=>{C=C||!!v.dynamicChildren;const R=v.children,x=R.length;for(let I=0;I{const{slotScopeIds:C}=v;C&&(T=T?T.concat(C):C);const R=d(b),x=f(a(b),v,R,E,y,T,O);return x&&p_(x)&&x.data==="]"?a(v.anchor=x):(hs=!0,u(v.anchor=o("]"),R,x),x)},g=(b,v,E,y,T,O)=>{if(hs=!0,v.el=null,O){const x=h(b);for(;;){const I=a(b);if(I&&I!==x)s(I);else break}}const C=a(b),R=d(b);return s(b),n(null,v,R,C,E,y,d_(R),T),C},h=b=>{let v=0;for(;b;)if(b=a(b),b&&p_(b)&&(b.data==="["&&v++,b.data==="]")){if(v===0)return a(b);v--}return b};return[l,c]}const Br=b1;function $1(e){return B1(e)}function F1(e){return B1(e,CY)}function B1(e,t){const n=Q4();n.__VUE__=!0;const{insert:r,remove:i,patchProp:a,createElement:d,createText:s,createComment:u,setText:o,setElementText:l,parentNode:c,nextSibling:p,setScopeId:f=Do,insertStaticContent:m}=e,g=(U,j,J,pe=null,ae=null,be=null,ve=!1,ge=null,ce=!!j.dynamicChildren)=>{if(U===j)return;U&&!No(U,j)&&(pe=q(U),X(U,ae,be,!0),U=null),j.patchFlag===-2&&(ce=!1,j.dynamicChildren=null);const{type:ee,ref:Ne,shapeFlag:Oe}=j;switch(ee){case ta:h(U,j,J,pe);break;case Hr:b(U,j,J,pe);break;case Al:U==null&&v(j,J,pe,ve);break;case Xe:L(U,j,J,pe,ae,be,ve,ge,ce);break;default:Oe&1?T(U,j,J,pe,ae,be,ve,ge,ce):Oe&6?A(U,j,J,pe,ae,be,ve,ge,ce):(Oe&64||Oe&128)&&ee.process(U,j,J,pe,ae,be,ve,ge,ce,re)}Ne!=null&&ae&&Mm(Ne,U&&U.ref,be,j||U,!j)},h=(U,j,J,pe)=>{if(U==null)r(j.el=s(j.children),J,pe);else{const ae=j.el=U.el;j.children!==U.children&&o(ae,j.children)}},b=(U,j,J,pe)=>{U==null?r(j.el=u(j.children||""),J,pe):j.el=U.el},v=(U,j,J,pe)=>{[U.el,U.anchor]=m(U.children,j,J,pe,U.el,U.anchor)},E=({el:U,anchor:j},J,pe)=>{let ae;for(;U&&U!==j;)ae=p(U),r(U,J,pe),U=ae;r(j,J,pe)},y=({el:U,anchor:j})=>{let J;for(;U&&U!==j;)J=p(U),i(U),U=J;i(j)},T=(U,j,J,pe,ae,be,ve,ge,ce)=>{ve=ve||j.type==="svg",U==null?O(j,J,pe,ae,be,ve,ge,ce):x(U,j,ae,be,ve,ge,ce)},O=(U,j,J,pe,ae,be,ve,ge)=>{let ce,ee;const{type:Ne,props:Oe,shapeFlag:Ae,transition:ue,dirs:ie}=U;if(ce=U.el=d(U.type,be,Oe&&Oe.is,Oe),Ae&8?l(ce,U.children):Ae&16&&R(U.children,ce,null,pe,ae,be&&Ne!=="foreignObject",ve,ge),ie&&Qo(U,null,pe,"created"),C(ce,U,U.scopeId,ve,pe),Oe){for(const Le in Oe)Le!=="value"&&!Hd(Le)&&a(ce,Le,null,Oe[Le],be,U.children,pe,ae,Z);"value"in Oe&&a(ce,"value",null,Oe.value),(ee=Oe.onVnodeBeforeMount)&&vi(ee,pe,U)}ie&&Qo(U,null,pe,"beforeMount");const Ee=(!ae||ae&&!ae.pendingBranch)&&ue&&!ue.persisted;Ee&&ue.beforeEnter(ce),r(ce,j,J),((ee=Oe&&Oe.onVnodeMounted)||Ee||ie)&&Br(()=>{ee&&vi(ee,pe,U),Ee&&ue.enter(ce),ie&&Qo(U,null,pe,"mounted")},ae)},C=(U,j,J,pe,ae)=>{if(J&&f(U,J),pe)for(let be=0;be{for(let ee=ce;ee{const ge=j.el=U.el;let{patchFlag:ce,dynamicChildren:ee,dirs:Ne}=j;ce|=U.patchFlag&16;const Oe=U.props||An,Ae=j.props||An;let ue;J&&cl(J,!1),(ue=Ae.onVnodeBeforeUpdate)&&vi(ue,J,j,U),Ne&&Qo(j,U,J,"beforeUpdate"),J&&cl(J,!0);const ie=ae&&j.type!=="foreignObject";if(ee?I(U.dynamicChildren,ee,ge,J,pe,ie,be):ve||H(U,j,ge,null,J,pe,ie,be,!1),ce>0){if(ce&16)k(ge,j,Oe,Ae,J,pe,ae);else if(ce&2&&Oe.class!==Ae.class&&a(ge,"class",null,Ae.class,ae),ce&4&&a(ge,"style",Oe.style,Ae.style,ae),ce&8){const Ee=j.dynamicProps;for(let Le=0;Le{ue&&vi(ue,J,j,U),Ne&&Qo(j,U,J,"updated")},pe)},I=(U,j,J,pe,ae,be,ve)=>{for(let ge=0;ge{if(J!==pe){if(J!==An)for(const ge in J)!Hd(ge)&&!(ge in pe)&&a(U,ge,J[ge],null,ve,j.children,ae,be,Z);for(const ge in pe){if(Hd(ge))continue;const ce=pe[ge],ee=J[ge];ce!==ee&&ge!=="value"&&a(U,ge,ee,ce,ve,j.children,ae,be,Z)}"value"in pe&&a(U,"value",J.value,pe.value)}},L=(U,j,J,pe,ae,be,ve,ge,ce)=>{const ee=j.el=U?U.el:s(""),Ne=j.anchor=U?U.anchor:s("");let{patchFlag:Oe,dynamicChildren:Ae,slotScopeIds:ue}=j;ue&&(ge=ge?ge.concat(ue):ue),U==null?(r(ee,J,pe),r(Ne,J,pe),R(j.children,J,Ne,ae,be,ve,ge,ce)):Oe>0&&Oe&64&&Ae&&U.dynamicChildren?(I(U.dynamicChildren,Ae,J,ae,be,ve,ge),(j.key!=null||ae&&j===ae.subTree)&&Zy(U,j,!0)):H(U,j,J,Ne,ae,be,ve,ge,ce)},A=(U,j,J,pe,ae,be,ve,ge,ce)=>{j.slotScopeIds=ge,U==null?j.shapeFlag&512?ae.ctx.activate(j,J,pe,ve,ce):D(j,J,pe,ae,be,ve,ce):$(U,j,ce)},D=(U,j,J,pe,ae,be,ve)=>{const ge=U.component=Y1(U,pe,ae);if(nf(U)&&(ge.ctx.renderer=re),q1(ge),ge.asyncDep){if(ae&&ae.registerDep(ge,F),!U.el){const ce=ge.subTree=N(Hr);b(null,ce,j,J)}return}F(ge,U,j,J,ae,be,ve)},$=(U,j,J)=>{const pe=j.component=U.component;if(K6(U,j,J))if(pe.asyncDep&&!pe.asyncResolved){z(pe,j,J);return}else pe.next=j,H6(pe.update),pe.update();else j.el=U.el,pe.vnode=j},F=(U,j,J,pe,ae,be,ve)=>{const ge=()=>{if(U.isMounted){let{next:Ne,bu:Oe,u:Ae,parent:ue,vnode:ie}=U,Ee=Ne,Le;cl(U,!1),Ne?(Ne.el=ie.el,z(U,Ne,ve)):Ne=ie,Oe&&eu(Oe),(Le=Ne.props&&Ne.props.onVnodeBeforeUpdate)&&vi(Le,ue,Ne,ie),cl(U,!0);const We=sm(U),Ke=U.subTree;U.subTree=We,g(Ke,We,c(Ke.el),q(Ke),U,ae,be),Ne.el=We.el,Ee===null&&Uy(U,We.el),Ae&&Br(Ae,ae),(Le=Ne.props&&Ne.props.onVnodeUpdated)&&Br(()=>vi(Le,ue,Ne,ie),ae)}else{let Ne;const{el:Oe,props:Ae}=j,{bm:ue,m:ie,parent:Ee}=U,Le=Il(j);if(cl(U,!1),ue&&eu(ue),!Le&&(Ne=Ae&&Ae.onVnodeBeforeMount)&&vi(Ne,Ee,j),cl(U,!0),Oe&&me){const We=()=>{U.subTree=sm(U),me(Oe,U.subTree,U,ae,null)};Le?j.type.__asyncLoader().then(()=>!U.isUnmounted&&We()):We()}else{const We=U.subTree=sm(U);g(null,We,J,pe,U,ae,be),j.el=We.el}if(ie&&Br(ie,ae),!Le&&(Ne=Ae&&Ae.onVnodeMounted)){const We=j;Br(()=>vi(Ne,Ee,We),ae)}(j.shapeFlag&256||Ee&&Il(Ee.vnode)&&Ee.vnode.shapeFlag&256)&&U.a&&Br(U.a,ae),U.isMounted=!0,j=J=pe=null}},ce=U.effect=new ef(ge,()=>xg(ee),U.scope),ee=U.update=()=>ce.run();ee.id=U.uid,cl(U,!0),ee()},z=(U,j,J)=>{j.component=U;const pe=U.vnode.props;U.vnode=j,U.next=null,hY(U,j.props,pe,J),vY(U,j.children,J),Xu(),jw(),Zu()},H=(U,j,J,pe,ae,be,ve,ge,ce=!1)=>{const ee=U&&U.children,Ne=U?U.shapeFlag:0,Oe=j.children,{patchFlag:Ae,shapeFlag:ue}=j;if(Ae>0){if(Ae&128){W(ee,Oe,J,pe,ae,be,ve,ge,ce);return}else if(Ae&256){V(ee,Oe,J,pe,ae,be,ve,ge,ce);return}}ue&8?(Ne&16&&Z(ee,ae,be),Oe!==ee&&l(J,Oe)):Ne&16?ue&16?W(ee,Oe,J,pe,ae,be,ve,ge,ce):Z(ee,ae,be,!0):(Ne&8&&l(J,""),ue&16&&R(Oe,J,pe,ae,be,ve,ge,ce))},V=(U,j,J,pe,ae,be,ve,ge,ce)=>{U=U||Zc,j=j||Zc;const ee=U.length,Ne=j.length,Oe=Math.min(ee,Ne);let Ae;for(Ae=0;AeNe?Z(U,ae,be,!0,!1,Oe):R(j,J,pe,ae,be,ve,ge,ce,Oe)},W=(U,j,J,pe,ae,be,ve,ge,ce)=>{let ee=0;const Ne=j.length;let Oe=U.length-1,Ae=Ne-1;for(;ee<=Oe&&ee<=Ae;){const ue=U[ee],ie=j[ee]=ce?Es(j[ee]):Li(j[ee]);if(No(ue,ie))g(ue,ie,J,null,ae,be,ve,ge,ce);else break;ee++}for(;ee<=Oe&&ee<=Ae;){const ue=U[Oe],ie=j[Ae]=ce?Es(j[Ae]):Li(j[Ae]);if(No(ue,ie))g(ue,ie,J,null,ae,be,ve,ge,ce);else break;Oe--,Ae--}if(ee>Oe){if(ee<=Ae){const ue=Ae+1,ie=ueAe)for(;ee<=Oe;)X(U[ee],ae,be,!0),ee++;else{const ue=ee,ie=ee,Ee=new Map;for(ee=ie;ee<=Ae;ee++){const qe=j[ee]=ce?Es(j[ee]):Li(j[ee]);qe.key!=null&&Ee.set(qe.key,ee)}let Le,We=0;const Ke=Ae-ie+1;let xe=!1,Me=0;const Pe=new Array(Ke);for(ee=0;ee=Ke){X(qe,ae,be,!0);continue}let Je;if(qe.key!=null)Je=Ee.get(qe.key);else for(Le=ie;Le<=Ae;Le++)if(Pe[Le-ie]===0&&No(qe,j[Le])){Je=Le;break}Je===void 0?X(qe,ae,be,!0):(Pe[Je-ie]=ee+1,Je>=Me?Me=Je:xe=!0,g(qe,j[Je],J,null,ae,be,ve,ge,ce),We++)}const Qe=xe?TY(Pe):Zc;for(Le=Qe.length-1,ee=Ke-1;ee>=0;ee--){const qe=ie+ee,Je=j[qe],et=qe+1{const{el:be,type:ve,transition:ge,children:ce,shapeFlag:ee}=U;if(ee&6){te(U.component.subTree,j,J,pe);return}if(ee&128){U.suspense.move(j,J,pe);return}if(ee&64){ve.move(U,j,J,re);return}if(ve===Xe){r(be,j,J);for(let Oe=0;Oege.enter(be),ae);else{const{leave:Oe,delayLeave:Ae,afterLeave:ue}=ge,ie=()=>r(be,j,J),Ee=()=>{Oe(be,()=>{ie(),ue&&ue()})};Ae?Ae(be,ie,Ee):Ee()}else r(be,j,J)},X=(U,j,J,pe=!1,ae=!1)=>{const{type:be,props:ve,ref:ge,children:ce,dynamicChildren:ee,shapeFlag:Ne,patchFlag:Oe,dirs:Ae}=U;if(ge!=null&&Mm(ge,null,J,U,!0),Ne&256){j.ctx.deactivate(U);return}const ue=Ne&1&&Ae,ie=!Il(U);let Ee;if(ie&&(Ee=ve&&ve.onVnodeBeforeUnmount)&&vi(Ee,j,U),Ne&6)Q(U.component,J,pe);else{if(Ne&128){U.suspense.unmount(J,pe);return}ue&&Qo(U,null,j,"beforeUnmount"),Ne&64?U.type.remove(U,j,J,ae,re,pe):ee&&(be!==Xe||Oe>0&&Oe&64)?Z(ee,j,J,!1,!0):(be===Xe&&Oe&384||!ae&&Ne&16)&&Z(ce,j,J),pe&&ne(U)}(ie&&(Ee=ve&&ve.onVnodeUnmounted)||ue)&&Br(()=>{Ee&&vi(Ee,j,U),ue&&Qo(U,null,j,"unmounted")},J)},ne=U=>{const{type:j,el:J,anchor:pe,transition:ae}=U;if(j===Xe){oe(J,pe);return}if(j===Al){y(U);return}const be=()=>{i(J),ae&&!ae.persisted&&ae.afterLeave&&ae.afterLeave()};if(U.shapeFlag&1&&ae&&!ae.persisted){const{leave:ve,delayLeave:ge}=ae,ce=()=>ve(J,be);ge?ge(U.el,be,ce):ce()}else be()},oe=(U,j)=>{let J;for(;U!==j;)J=p(U),i(U),U=J;i(j)},Q=(U,j,J)=>{const{bum:pe,scope:ae,update:be,subTree:ve,um:ge}=U;pe&&eu(pe),ae.stop(),be&&(be.active=!1,X(ve,U,j,J)),ge&&Br(ge,j),Br(()=>{U.isUnmounted=!0},j),j&&j.pendingBranch&&!j.isUnmounted&&U.asyncDep&&!U.asyncResolved&&U.suspenseId===j.pendingId&&(j.deps--,j.deps===0&&j.resolve())},Z=(U,j,J,pe=!1,ae=!1,be=0)=>{for(let ve=be;veU.shapeFlag&6?q(U.component.subTree):U.shapeFlag&128?U.suspense.next():p(U.anchor||U.el),se=(U,j,J)=>{U==null?j._vnode&&X(j._vnode,null,null,!0):g(j._vnode||null,U,j,null,null,null,J),jw(),Am(),j._vnode=U},re={p:g,um:X,m:te,r:ne,mt:D,mc:R,pc:H,pbc:I,n:q,o:e};let _e,me;return t&&([_e,me]=t(re)),{render:se,hydrate:_e,createApp:yY(se,_e)}}function cl({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Zy(e,t,n=!1){const r=e.children,i=t.children;if(ut(r)&&ut(i))for(let a=0;a>1,e[n[s]]0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,d=n[a-1];a-- >0;)n[a]=d,d=t[d];return n}const OY=e=>e.__isTeleport,Vd=e=>e&&(e.disabled||e.disabled===""),iR=e=>typeof SVGElement<"u"&&e instanceof SVGElement,fv=(e,t)=>{const n=e&&e.to;return Qn(n)?t?t(n):null:n},wY={__isTeleport:!0,process(e,t,n,r,i,a,d,s,u,o){const{mc:l,pc:c,pbc:p,o:{insert:f,querySelector:m,createText:g,createComment:h}}=o,b=Vd(t.props);let{shapeFlag:v,children:E,dynamicChildren:y}=t;if(e==null){const T=t.el=g(""),O=t.anchor=g("");f(T,n,r),f(O,n,r);const C=t.target=fv(t.props,m),R=t.targetAnchor=g("");C&&(f(R,C),d=d||iR(C));const x=(I,k)=>{v&16&&l(E,I,k,i,a,d,s,u)};b?x(n,O):C&&x(C,R)}else{t.el=e.el;const T=t.anchor=e.anchor,O=t.target=e.target,C=t.targetAnchor=e.targetAnchor,R=Vd(e.props),x=R?n:O,I=R?T:C;if(d=d||iR(O),y?(p(e.dynamicChildren,y,x,i,a,d,s),Zy(e,t,!0)):u||c(e,t,x,I,i,a,d,s,!1),b)R||f_(t,n,T,o,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const k=t.target=fv(t.props,m);k&&f_(t,k,null,o,0)}else R&&f_(t,O,C,o,1)}U1(t)},remove(e,t,n,r,{um:i,o:{remove:a}},d){const{shapeFlag:s,children:u,anchor:o,targetAnchor:l,target:c,props:p}=e;if(c&&a(l),(d||!Vd(p))&&(a(o),s&16))for(let f=0;f0?yi||Zc:null,G1(),Fl>0&&yi&&yi.push(e),e}function Re(e,t,n,r,i,a){return H1(He(e,t,n,r,i,a,!0))}function Vn(e,t,n,r,i){return H1(N(e,t,n,r,i,!0))}function yr(e){return e?e.__v_isVNode===!0:!1}function No(e,t){return e.type===t.type&&e.key===t.key}function xY(e){}const kg="__vInternal",z1=({key:e})=>e!=null?e:null,lm=({ref:e,ref_key:t,ref_for:n})=>e!=null?Qn(e)||Er(e)||It(e)?{i:Ur,r:e,k:t,f:!!n}:e:null;function He(e,t=null,n=null,r=0,i=null,a=e===Xe?0:1,d=!1,s=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&z1(t),ref:t&&lm(t),scopeId:Ng,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Ur};return s?(Jy(u,n),a&128&&e.normalize(u)):n&&(u.shapeFlag|=Qn(n)?8:16),Fl>0&&!d&&yi&&(u.patchFlag>0||a&6)&&u.patchFlag!==32&&yi.push(u),u}const N=IY;function IY(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===R1)&&(e=Hr),yr(e)){const s=fi(e,t,!0);return n&&Jy(s,n),Fl>0&&!a&&yi&&(s.shapeFlag&6?yi[yi.indexOf(e)]=s:yi.push(s)),s.patchFlag|=-2,s}if($Y(e)&&(e=e.__vccOpts),t){t=lo(t);let{class:s,style:u}=t;s&&!Qn(s)&&(t.class=ct(s)),$n(u)&&(My(u)&&!ut(u)&&(u=ar({},u)),t.style=Zn(u))}const d=Qn(e)?1:h1(e)?128:OY(e)?64:$n(e)?4:It(e)?2:0;return He(e,t,n,r,i,d,a,!0)}function lo(e){return e?My(e)||kg in e?ar({},e):e:null}function fi(e,t,n=!1){const{props:r,ref:i,patchFlag:a,children:d}=e,s=t?$a(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&z1(s),ref:t&&t.ref?n&&i?ut(i)?i.concat(lm(t)):[i,lm(t)]:lm(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:d,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Xe?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&fi(e.ssContent),ssFallback:e.ssFallback&&fi(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Pn(e=" ",t=0){return N(ta,null,e,t)}function NY(e,t){const n=N(Al,null,e);return n.staticCount=t,n}function Lt(e="",t=!1){return t?(Se(),Vn(Hr,null,e)):N(Hr,null,e)}function Li(e){return e==null||typeof e=="boolean"?N(Hr):ut(e)?N(Xe,null,e.slice()):typeof e=="object"?Es(e):N(ta,null,String(e))}function Es(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:fi(e)}function Jy(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ut(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),Jy(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(kg in t)?t._ctx=Ur:i===3&&Ur&&(Ur.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else It(t)?(t={default:t,_ctx:Ur},n=32):(t=String(t),r&64?(n=16,t=[Pn(t)]):n=8);e.children=t,e.shapeFlag|=n}function $a(...e){const t={};for(let n=0;nir||Ur,Ys=e=>{ir=e,e.scope.on()},Ls=()=>{ir&&ir.scope.off(),ir=null};function V1(e){return e.vnode.shapeFlag&4}let Tu=!1;function q1(e,t=!1){Tu=t;const{props:n,children:r}=e.vnode,i=V1(e);gY(e,n,i,t),SY(e,r);const a=i?MY(e,t):void 0;return Tu=!1,a}function MY(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ky(new Proxy(e.ctx,cv));const{setup:r}=n;if(r){const i=e.setupContext=r.length>1?W1(e):null;Ys(e),Xu();const a=Ua(r,e,0,[e.props,i]);if(Zu(),Ls(),Ry(a)){if(a.then(Ls,Ls),t)return a.then(d=>{mv(e,d,t)}).catch(d=>{tc(d,e,0)});e.asyncDep=a}else mv(e,a,t)}else j1(e,t)}function mv(e,t,n){It(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:$n(t)&&(e.setupState=$y(t)),j1(e,n)}let km,gv;function kY(e){km=e,gv=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,uY))}}const PY=()=>!km;function j1(e,t,n){const r=e.type;if(!e.render){if(!t&&km&&!r.render){const i=r.template||Qy(e).template;if(i){const{isCustomElement:a,compilerOptions:d}=e.appContext.config,{delimiters:s,compilerOptions:u}=r,o=ar(ar({isCustomElement:a,delimiters:s},d),u);r.render=km(i,o)}}e.render=r.render||Do,gv&&gv(e)}Ys(e),Xu(),dY(e),Zu(),Ls()}function LY(e){return new Proxy(e.attrs,{get(t,n){return Ti(e,"get","$attrs"),t[n]}})}function W1(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=LY(e))},slots:e.slots,emit:e.emit,expose:t}}function Pg(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy($y(ky(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Yd)return Yd[n](e)},has(t,n){return n in t||n in Yd}}))}function hv(e,t=!0){return It(e)?e.displayName||e.name:e.name||t&&e.__name}function $Y(e){return It(e)&&"__vccOpts"in e}const B=(e,t)=>$6(e,t,Tu);function FY(){return null}function BY(){return null}function UY(e){}function GY(e,t){return null}function HY(){return K1().slots}function zY(){return K1().attrs}function K1(){const e=mr();return e.setupContext||(e.setupContext=W1(e))}function YY(e,t){const n=ut(e)?e.reduce((r,i)=>(r[i]={},r),{}):e;for(const r in t){const i=n[r];i?ut(i)||It(i)?n[r]={type:i,default:t[r]}:i.default=t[r]:i===null&&(n[r]={default:t[r]})}return n}function VY(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function qY(e){const t=mr();let n=e();return Ls(),Ry(n)&&(n=n.catch(r=>{throw Ys(t),r})),[n,()=>Ys(t)]}function Bl(e,t,n){const r=arguments.length;return r===2?$n(t)&&!ut(t)?yr(t)?N(e,null,[t]):N(e,t):N(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&yr(n)&&(n=[n]),N(e,t,n))}const Q1=Symbol(""),X1=()=>bt(Q1);function jY(){}function WY(e,t,n,r){const i=n[r];if(i&&Z1(i,e))return i;const a=t();return a.memo=e.slice(),n[r]=a}function Z1(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r0&&yi&&yi.push(e),!0}const J1="3.2.47",KY={createComponentInstance:Y1,setupComponent:q1,renderComponentRoot:sm,setCurrentRenderingInstance:Sp,isVNode:yr,normalizeVNode:Li},QY=KY,XY=null,ZY=null,JY="http://www.w3.org/2000/svg",bl=typeof document<"u"?document:null,oR=bl&&bl.createElement("template"),eV={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t?bl.createElementNS(JY,e):bl.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>bl.createTextNode(e),createComment:e=>bl.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>bl.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,a){const d=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{oR.innerHTML=r?`${e}`:e;const s=oR.content;if(r){const u=s.firstChild;for(;u.firstChild;)s.appendChild(u.firstChild);s.removeChild(u)}t.insertBefore(s,n)}return[d?d.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function tV(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function nV(e,t,n){const r=e.style,i=Qn(n);if(n&&!i){if(t&&!Qn(t))for(const a in t)n[a]==null&&bv(r,a,"");for(const a in n)bv(r,a,n[a])}else{const a=r.display;i?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=a)}}const aR=/\s*!important$/;function bv(e,t,n){if(ut(n))n.forEach(r=>bv(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=rV(e,t);aR.test(n)?e.setProperty(uo(r),n.replace(aR,""),"important"):e[r]=n}}const sR=["Webkit","Moz","ms"],Yb={};function rV(e,t){const n=Yb[t];if(n)return n;let r=Ci(t);if(r!=="filter"&&r in e)return Yb[t]=r;r=Jp(r);for(let i=0;iVb||(cV.then(()=>Vb=0),Vb=Date.now());function dV(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Fi(pV(r,n.value),t,5,[r])};return n.value=e,n.attached=uV(),n}function pV(e,t){if(ut(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const uR=/^on[a-z]/,fV=(e,t,n,r,i=!1,a,d,s,u)=>{t==="class"?tV(e,r,i):t==="style"?nV(e,n,r):Zp(t)?Oy(t)||sV(e,t,n,r,d):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):_V(e,t,r,i))?oV(e,t,r,a,d,s,u):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),iV(e,t,r,i))};function _V(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&uR.test(t)&&It(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||uR.test(t)&&Qn(n)?!1:t in e}function eM(e,t){const n=Te(e);class r extends Lg{constructor(a){super(n,a,t)}}return r.def=n,r}const mV=e=>eM(e,gM),gV=typeof HTMLElement<"u"?HTMLElement:class{};class Lg extends gV{constructor(t,n={},r){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&r?r(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,en(()=>{this._connected||(Gl(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let r=0;r{for(const i of r)this._setAttr(i.attributeName)}).observe(this,{attributes:!0});const t=(r,i=!1)=>{const{props:a,styles:d}=r;let s;if(a&&!ut(a))for(const u in a){const o=a[u];(o===Number||o&&o.type===Number)&&(u in this._props&&(this._props[u]=Im(this._props[u])),(s||(s=Object.create(null)))[Ci(u)]=!0)}this._numberProps=s,i&&this._resolveProps(r),this._applyStyles(d),this._update()},n=this._def.__asyncLoader;n?n().then(r=>t(r,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,r=ut(n)?n:Object.keys(n||{});for(const i of Object.keys(this))i[0]!=="_"&&r.includes(i)&&this._setProp(i,this[i],!0,!1);for(const i of r.map(Ci))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(a){this._setProp(i,a)}})}_setAttr(t){let n=this.getAttribute(t);const r=Ci(t);this._numberProps&&this._numberProps[r]&&(n=Im(n)),this._setProp(r,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,i=!0){n!==this._props[t]&&(this._props[t]=n,i&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(uo(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(uo(t),n+""):n||this.removeAttribute(uo(t))))}_update(){Gl(this._createVNode(),this.shadowRoot)}_createVNode(){const t=N(this._def,ar({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const r=(a,d)=>{this.dispatchEvent(new CustomEvent(a,{detail:d}))};n.emit=(a,...d)=>{r(a,d),uo(a)!==a&&r(uo(a),d)};let i=this;for(;i=i&&(i.parentNode||i.host);)if(i instanceof Lg){n.parent=i._instance,n.provides=i._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const r=document.createElement("style");r.textContent=n,this.shadowRoot.appendChild(r)})}}function hV(e="$style"){{const t=mr();if(!t)return An;const n=t.type.__cssModules;if(!n)return An;const r=n[e];return r||An}}function bV(e){const t=mr();if(!t)return;const n=t.ut=(i=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(a=>vv(a,i))},r=()=>{const i=e(t.proxy);Sv(t.subTree,i),n(i)};S1(r),it(()=>{const i=new MutationObserver(r);i.observe(t.subTree.el.parentNode,{childList:!0}),zi(()=>i.disconnect())})}function Sv(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Sv(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)vv(e.el,t);else if(e.type===Xe)e.children.forEach(n=>Sv(n,t));else if(e.type===Al){let{el:n,anchor:r}=e;for(;n&&(vv(n,t),n!==r);)n=n.nextSibling}}function vv(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const bs="transition",wd="animation",Yi=(e,{slots:t})=>Bl(zy,nM(e),t);Yi.displayName="Transition";const tM={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},SV=Yi.props=ar({},zy.props,tM),ul=(e,t=[])=>{ut(e)?e.forEach(n=>n(...t)):e&&e(...t)},dR=e=>e?ut(e)?e.some(t=>t.length>1):e.length>1:!1;function nM(e){const t={};for(const L in e)L in tM||(t[L]=e[L]);if(e.css===!1)return t;const{name:n="v",type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:d=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:u=a,appearActiveClass:o=d,appearToClass:l=s,leaveFromClass:c=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,m=vV(i),g=m&&m[0],h=m&&m[1],{onBeforeEnter:b,onEnter:v,onEnterCancelled:E,onLeave:y,onLeaveCancelled:T,onBeforeAppear:O=b,onAppear:C=v,onAppearCancelled:R=E}=t,x=(L,A,D)=>{vs(L,A?l:s),vs(L,A?o:d),D&&D()},I=(L,A)=>{L._isLeaving=!1,vs(L,c),vs(L,f),vs(L,p),A&&A()},k=L=>(A,D)=>{const $=L?C:v,F=()=>x(A,L,D);ul($,[A,F]),pR(()=>{vs(A,L?u:a),Ca(A,L?l:s),dR($)||fR(A,r,g,F)})};return ar(t,{onBeforeEnter(L){ul(b,[L]),Ca(L,a),Ca(L,d)},onBeforeAppear(L){ul(O,[L]),Ca(L,u),Ca(L,o)},onEnter:k(!1),onAppear:k(!0),onLeave(L,A){L._isLeaving=!0;const D=()=>I(L,A);Ca(L,c),iM(),Ca(L,p),pR(()=>{!L._isLeaving||(vs(L,c),Ca(L,f),dR(y)||fR(L,r,h,D))}),ul(y,[L,D])},onEnterCancelled(L){x(L,!1),ul(E,[L])},onAppearCancelled(L){x(L,!0),ul(R,[L])},onLeaveCancelled(L){I(L),ul(T,[L])}})}function vV(e){if(e==null)return null;if($n(e))return[qb(e.enter),qb(e.leave)];{const t=qb(e);return[t,t]}}function qb(e){return Im(e)}function Ca(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function vs(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function pR(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let EV=0;function fR(e,t,n,r){const i=e._endId=++EV,a=()=>{i===e._endId&&r()};if(n)return setTimeout(a,n);const{type:d,timeout:s,propCount:u}=rM(e,t);if(!d)return r();const o=d+"end";let l=0;const c=()=>{e.removeEventListener(o,p),a()},p=f=>{f.target===e&&++l>=u&&c()};setTimeout(()=>{l(n[m]||"").split(", "),i=r(`${bs}Delay`),a=r(`${bs}Duration`),d=_R(i,a),s=r(`${wd}Delay`),u=r(`${wd}Duration`),o=_R(s,u);let l=null,c=0,p=0;t===bs?d>0&&(l=bs,c=d,p=a.length):t===wd?o>0&&(l=wd,c=o,p=u.length):(c=Math.max(d,o),l=c>0?d>o?bs:wd:null,p=l?l===bs?a.length:u.length:0);const f=l===bs&&/\b(transform|all)(,|$)/.test(r(`${bs}Property`).toString());return{type:l,timeout:c,propCount:p,hasTransform:f}}function _R(e,t){for(;e.lengthmR(n)+mR(e[r])))}function mR(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function iM(){return document.body.offsetHeight}const oM=new WeakMap,aM=new WeakMap,sM={name:"TransitionGroup",props:ar({},SV,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=mr(),r=Hy();let i,a;return Hi(()=>{if(!i.length)return;const d=e.moveClass||`${e.name||"v"}-move`;if(!wV(i[0].el,n.vnode.el,d))return;i.forEach(CV),i.forEach(TV);const s=i.filter(OV);iM(),s.forEach(u=>{const o=u.el,l=o.style;Ca(o,d),l.transform=l.webkitTransform=l.transitionDuration="";const c=o._moveCb=p=>{p&&p.target!==o||(!p||/transform$/.test(p.propertyName))&&(o.removeEventListener("transitionend",c),o._moveCb=null,vs(o,d))};o.addEventListener("transitionend",c)})}),()=>{const d=Dt(e),s=nM(d);let u=d.tag||Xe;i=a,a=t.default?Ag(t.default()):[];for(let o=0;odelete e.mode;sM.props;const e0=sM;function CV(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function TV(e){aM.set(e,e.el.getBoundingClientRect())}function OV(e){const t=oM.get(e),n=aM.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){const a=e.el.style;return a.transform=a.webkitTransform=`translate(${r}px,${i}px)`,a.transitionDuration="0s",e}}function wV(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(d=>{d.split(/\s+/).forEach(s=>s&&r.classList.remove(s))}),n.split(/\s+/).forEach(d=>d&&r.classList.add(d)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:a}=rM(r);return i.removeChild(r),a}const Vs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ut(t)?n=>eu(t,n):t};function RV(e){e.target.composing=!0}function gR(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ul={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e._assign=Vs(i);const a=r||i.props&&i.props.type==="number";Pa(e,t?"change":"input",d=>{if(d.target.composing)return;let s=e.value;n&&(s=s.trim()),a&&(s=xm(s)),e._assign(s)}),n&&Pa(e,"change",()=>{e.value=e.value.trim()}),t||(Pa(e,"compositionstart",RV),Pa(e,"compositionend",gR),Pa(e,"change",gR))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:i}},a){if(e._assign=Vs(a),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(i||e.type==="number")&&xm(e.value)===t))return;const d=t==null?"":t;e.value!==d&&(e.value=d)}},t0={deep:!0,created(e,t,n){e._assign=Vs(n),Pa(e,"change",()=>{const r=e._modelValue,i=Ou(e),a=e.checked,d=e._assign;if(ut(r)){const s=Eg(r,i),u=s!==-1;if(a&&!u)d(r.concat(i));else if(!a&&u){const o=[...r];o.splice(s,1),d(o)}}else if(ec(r)){const s=new Set(r);a?s.add(i):s.delete(i),d(s)}else d(cM(e,a))})},mounted:hR,beforeUpdate(e,t,n){e._assign=Vs(n),hR(e,t,n)}};function hR(e,{value:t,oldValue:n},r){e._modelValue=t,ut(t)?e.checked=Eg(t,r.props.value)>-1:ec(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=Hs(t,cM(e,!0)))}const n0={created(e,{value:t},n){e.checked=Hs(t,n.props.value),e._assign=Vs(n),Pa(e,"change",()=>{e._assign(Ou(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=Vs(r),t!==n&&(e.checked=Hs(t,r.props.value))}},lM={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=ec(t);Pa(e,"change",()=>{const a=Array.prototype.filter.call(e.options,d=>d.selected).map(d=>n?xm(Ou(d)):Ou(d));e._assign(e.multiple?i?new Set(a):a:a[0])}),e._assign=Vs(r)},mounted(e,{value:t}){bR(e,t)},beforeUpdate(e,t,n){e._assign=Vs(n)},updated(e,{value:t}){bR(e,t)}};function bR(e,t){const n=e.multiple;if(!(n&&!ut(t)&&!ec(t))){for(let r=0,i=e.options.length;r-1:a.selected=t.has(d);else if(Hs(Ou(a),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ou(e){return"_value"in e?e._value:e.value}function cM(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const uM={created(e,t,n){__(e,t,n,null,"created")},mounted(e,t,n){__(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){__(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){__(e,t,n,r,"updated")}};function dM(e,t){switch(e){case"SELECT":return lM;case"TEXTAREA":return Ul;default:switch(t){case"checkbox":return t0;case"radio":return n0;default:return Ul}}}function __(e,t,n,r,i){const d=dM(e.tagName,n.props&&n.props.type)[i];d&&d(e,t,n,r)}function xV(){Ul.getSSRProps=({value:e})=>({value:e}),n0.getSSRProps=({value:e},t)=>{if(t.props&&Hs(t.props.value,e))return{checked:!0}},t0.getSSRProps=({value:e},t)=>{if(ut(e)){if(t.props&&Eg(e,t.props.value)>-1)return{checked:!0}}else if(ec(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},uM.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=dM(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const IV=["ctrl","shift","alt","meta"],NV={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>IV.some(n=>e[`${n}Key`]&&!t.includes(n))},li=(e,t)=>(n,...r)=>{for(let i=0;in=>{if(!("key"in n))return;const r=uo(n.key);if(t.some(i=>i===r||AV[i]===r))return e(n)},Ya={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Rd(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Rd(e,!0),r.enter(e)):r.leave(e,()=>{Rd(e,!1)}):Rd(e,t))},beforeUnmount(e,{value:t}){Rd(e,t)}};function Rd(e,t){e.style.display=t?e._vod:"none"}function DV(){Ya.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const fM=ar({patchProp:fV},eV);let jd,SR=!1;function _M(){return jd||(jd=$1(fM))}function mM(){return jd=SR?jd:F1(fM),SR=!0,jd}const Gl=(...e)=>{_M().render(...e)},gM=(...e)=>{mM().hydrate(...e)},MV=(...e)=>{const t=_M().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=hM(r);if(!i)return;const a=t._component;!It(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.innerHTML="";const d=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),d},t},kV=(...e)=>{const t=mM().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=hM(r);if(i)return n(i,!0,i instanceof SVGElement)},t};function hM(e){return Qn(e)?document.querySelector(e):e}let vR=!1;const PV=()=>{vR||(vR=!0,xV(),DV())},LV=()=>{},$V=Object.freeze(Object.defineProperty({__proto__:null,compile:LV,EffectScope:Iy,ReactiveEffect:ef,customRef:k6,effect:t6,effectScope:X4,getCurrentScope:WD,isProxy:My,isReactive:xl,isReadonly:Ll,isRef:Er,isShallow:mp,markRaw:ky,onScopeDispose:Z4,proxyRefs:$y,reactive:Kt,readonly:Dy,ref:ke,shallowReactive:s1,shallowReadonly:I6,shallowRef:Ie,stop:n6,toRaw:Dt,toRef:cn,toRefs:tu,triggerRef:A6,unref:Ve,camelize:Ci,capitalize:Jp,normalizeClass:ct,normalizeProps:so,normalizeStyle:Zn,toDisplayString:pt,toHandlerKey:zd,BaseTransition:zy,Comment:Hr,Fragment:Xe,KeepAlive:sY,Static:Al,Suspense:X6,Teleport:rf,Text:ta,assertNumber:B6,callWithAsyncErrorHandling:Fi,callWithErrorHandling:Ua,cloneVNode:fi,compatUtils:ZY,computed:B,createBlock:Vn,createCommentVNode:Lt,createElementBlock:Re,createElementVNode:He,createHydrationRenderer:F1,createPropsRestProxy:VY,createRenderer:$1,createSlots:Ky,createStaticVNode:NY,createTextVNode:Pn,createVNode:N,defineAsyncComponent:oY,defineComponent:Te,defineEmits:BY,defineExpose:UY,defineProps:FY,get devtools(){return Hc},getCurrentInstance:mr,getTransitionRawChildren:Ag,guardReactiveProps:lo,h:Bl,handleError:tc,initCustomFormatter:jY,inject:bt,isMemoSame:Z1,isRuntimeOnly:PY,isVNode:yr,mergeDefaults:YY,mergeProps:$a,nextTick:en,onActivated:Dg,onBeforeMount:Vy,onBeforeUnmount:tn,onBeforeUpdate:qy,onDeactivated:Yy,onErrorCaptured:w1,onMounted:it,onRenderTracked:O1,onRenderTriggered:T1,onServerPrefetch:C1,onUnmounted:zi,onUpdated:Hi,openBlock:Se,popScopeId:g1,provide:$t,pushScopeId:m1,queuePostFlushCb:By,registerRuntimeCompiler:kY,renderList:On,renderSlot:ln,resolveComponent:Nl,resolveDirective:Ju,resolveDynamicComponent:iu,resolveFilter:XY,resolveTransitionHooks:Cu,setBlockTracking:_v,setDevtoolsHook:f1,setTransitionHooks:$l,ssrContextKey:Q1,ssrUtils:QY,toHandlers:I1,transformVNodeArgs:xY,useAttrs:zY,useSSRContext:X1,useSlots:HY,useTransitionState:Hy,version:J1,warn:F6,watch:ze,watchEffect:Ht,watchPostEffect:S1,watchSyncEffect:nY,withAsyncContext:qY,withCtx:kn,withDefaults:GY,withDirectives:ur,withMemo:WY,withScopeId:V6,Transition:Yi,TransitionGroup:e0,VueElement:Lg,createApp:MV,createSSRApp:kV,defineCustomElement:eM,defineSSRCustomElement:mV,hydrate:gM,initDirectivesForSSR:PV,render:Gl,useCssModule:hV,useCssVars:bV,vModelCheckbox:t0,vModelDynamic:uM,vModelRadio:n0,vModelSelect:lM,vModelText:Ul,vShow:Ya,withKeys:pM,withModifiers:li},Symbol.toStringTag,{value:"Module"}));var FV=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};FV.SENTRY_RELEASE={id:"68390b92c96785cc45a58533020cb41267486f3a"};const BV="modulepreload",UV=function(e){return"/"+e},ER={},bM=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(a=>{if(a=UV(a),a in ER)return;ER[a]=!0;const d=a.endsWith(".css"),s=d?'[rel="stylesheet"]':"";if(!!r)for(let l=i.length-1;l>=0;l--){const c=i[l];if(c.href===a&&(!d||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${s}`))return;const o=document.createElement("link");if(o.rel=d?"stylesheet":BV,d||(o.as="script",o.crossOrigin=""),o.href=a,document.head.appendChild(o),d)return new Promise((l,c)=>{o.addEventListener("load",l),o.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${a}`)))})})).then(()=>t())};var zc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function GV(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function HV(e){var t=e.default;if(typeof t=="function"){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var jt={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors @@ -95,18 +95,18 @@ Event: ${Is(e)}`),!0):wj(e,t.denyUrls)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_D Event: ${Is(e)}. Url: ${Bm(e)}`),!0):Rj(e,t.allowUrls)?!1:((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Pt.warn(`Event dropped due to not being matched by \`allowUrls\` option. Event: ${Is(e)}. -Url: ${Bm(e)}`),!0)}function Tj(e,t){return e.type||!t||!t.length?!1:xj(e).some(n=>Ug(n,t))}function Oj(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?Ug(n,t):!1}function wj(e,t){if(!t||!t.length)return!1;const n=Bm(e);return n?Ug(n,t):!1}function Rj(e,t){if(!t||!t.length)return!0;const n=Bm(e);return n?Ug(n,t):!0}function xj(e){if(e.message)return[e.message];if(e.exception){const{values:t}=e.exception;try{const{type:n="",value:r=""}=t&&t[t.length-1]||{};return[`${r}`,`${n}: ${r}`]}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Pt.error(`Cannot extract message for event ${Is(e)}`),[]}}return[]}function Ij(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function Nj(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!==""&&n.filename!=="[native code]")return n.filename||null}return null}function Bm(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?Nj(t):null}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Pt.error(`Cannot extract url for event ${Is(e)}`),null}}const Sn=_o;let Pv=0;function rk(){return Pv>0}function Aj(){Pv++,setTimeout(()=>{Pv--})}function Nu(e,t={},n){if(typeof e!="function")return e;try{const i=e.__sentry_wrapped__;if(i)return i;if(u0(e))return e}catch{return e}const r=function(){const i=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);const a=i.map(d=>Nu(d,t));return e.apply(this,a)}catch(a){throw Aj(),Xq(d=>{d.addEventProcessor(s=>(t.mechanism&&(Nv(s,void 0,void 0),yp(s,t.mechanism)),s.extra={...s.extra,arguments:i},s)),ZM(a)}),a}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}LM(r,e),c0(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function ik(e,t){const n=p0(e,t),r={type:t&&t.name,value:Pj(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Dj(e,t,n,r){const a=Tr().getClient(),d=a&&a.getOptions().normalizeDepth,s={exception:{values:[{type:Bg(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Fj(t,{isUnhandledRejection:r})}]},extra:{__serialized__:zM(t,d)}};if(n){const u=p0(e,n);u.length&&(s.exception.values[0].stacktrace={frames:u})}return s}function Jb(e,t){return{exception:{values:[ik(e,t)]}}}function p0(e,t){const n=t.stacktrace||t.stack||"",r=kj(t);try{return e(n,r)}catch{}return[]}const Mj=/Minified React error #\d+;/i;function kj(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(Mj.test(e.message))return 1}return 0}function Pj(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function Lj(e,t,n,r){const i=n&&n.syntheticException||void 0,a=f0(e,t,i,r);return yp(a),a.level="error",n&&n.event_id&&(a.event_id=n.event_id),Yl(a)}function $j(e,t,n="info",r,i){const a=r&&r.syntheticException||void 0,d=Lv(e,t,a,i);return d.level=n,r&&r.event_id&&(d.event_id=r.event_id),Yl(d)}function f0(e,t,n,r,i){let a;if(a0(t)&&t.error)return Jb(e,t.error);if(HR(t)||P8(t)){const d=t;if("stack"in t)a=Jb(e,t);else{const s=d.name||(HR(d)?"DOMError":"DOMException"),u=d.message?`${s}: ${d.message}`:s;a=Lv(e,u,n,r),Nv(a,u)}return"code"in d&&(a.tags={...a.tags,"DOMException.code":`${d.code}`}),a}return DM(t)?Jb(e,t):xu(t)||Bg(t)?(a=Dj(e,t,n,i),yp(a,{synthetic:!0}),a):(a=Lv(e,t,n,r),Nv(a,`${t}`,void 0),yp(a,{synthetic:!0}),a)}function Lv(e,t,n,r){const i={message:t};if(r&&n){const a=p0(e,n);a.length&&(i.exception={values:[{value:t,stacktrace:{frames:a}}]})}return i}function Fj(e,{isUnhandledRejection:t}){const n=eq(e),r=t?"promise rejection":"exception";return a0(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Bg(e)?`Event \`${Bj(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Bj(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}const y_=1024,ok="Breadcrumbs";class Tp{static __initStatic(){this.id=ok}__init(){this.name=Tp.id}constructor(t){Tp.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t}}setupOnce(){this.options.console&&xs("console",Gj),this.options.dom&&xs("dom",Uj(this.options.dom)),this.options.xhr&&xs("xhr",Hj),this.options.fetch&&xs("fetch",zj),this.options.history&&xs("history",Yj)}addSentryBreadcrumb(t){this.options.sentry&&Tr().addBreadcrumb({category:`sentry.${t.type==="transaction"?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:Is(t)},{event:t})}}Tp.__initStatic();function Uj(e){function t(n){let r,i=typeof e=="object"?e.serializeAttribute:void 0,a=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;a&&a>y_&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Pt.warn(`\`dom.maxStringLength\` cannot exceed ${y_}, but a value of ${a} was configured. Sentry will use ${y_} instead.`),a=y_),typeof i=="string"&&(i=[i]);try{const d=n.event;r=Vj(d)?Ov(d.target,{keyAttrs:i,maxStringLength:a}):Ov(d,{keyAttrs:i,maxStringLength:a})}catch{r=""}r.length!==0&&Tr().addBreadcrumb({category:`ui.${n.name}`,message:r},{event:n.event,name:n.name,global:n.global})}return t}function Gj(e){for(let n=0;n{Sn.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return Lj(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return $j(this._options.stackParser,t,n,r,this._options.attachStacktrace)}sendEvent(t,n){const r=this.getIntegrationById(ok);r&&r.addSentryBreadcrumb&&r.addSentryBreadcrumb(t),super.sendEvent(t,n)}captureUserFeedback(t){if(!this._isEnabled()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Pt.warn("SDK not enabled, will not capture user feedback.");return}const n=qj(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Pt.log("No outcomes to send");return}if(!this._dsn){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Pt.log("No dsn provided, will not send outcomes");return}(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Pt.log("Sending outcomes:",t);const n=$q(t,this._options.tunnel&&Gg(this._dsn));this._sendEnvelope(n)}}let Fd;function Kj(){if(Fd)return Fd;if(xv(Sn.fetch))return Fd=Sn.fetch.bind(Sn);const e=Sn.document;let t=Sn.fetch;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Pt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return Fd=t.bind(Sn)}function Qj(){Fd=void 0}function Xj(e,t=Kj()){let n=0,r=0;function i(a){const d=a.body.length;n+=d,r++;const s={body:a.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,s).then(u=>(n-=d,r--,{statusCode:u.status,headers:{"x-sentry-rate-limits":u.headers.get("X-Sentry-Rate-Limits"),"retry-after":u.headers.get("Retry-After")}}))}catch(u){return Qj(),n-=d,r--,$m(u)}}return nk(e,i)}const Zj=4;function Jj(e){function t(n){return new si((r,i)=>{const a=new XMLHttpRequest;a.onerror=i,a.onreadystatechange=()=>{a.readyState===Zj&&r({statusCode:a.status,headers:{"x-sentry-rate-limits":a.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":a.getResponseHeader("Retry-After")}})},a.open("POST",e.url);for(const d in e.headers)Object.prototype.hasOwnProperty.call(e.headers,d)&&a.setRequestHeader(d,e.headers[d]);a.send(n.body)})}return nk(e,t)}const Vg="?",eW=30,tW=40,nW=50;function _0(e,t,n,r){const i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const rW=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,iW=/\((\S*)(?::(\d+))(?::(\d+))\)/,oW=e=>{const t=rW.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const a=iW.exec(t[2]);a&&(t[2]=a[1],t[3]=a[2],t[4]=a[3])}const[r,i]=ak(t[1]||Vg,t[2]);return _0(i,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},aW=[eW,oW],sW=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,lW=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,cW=e=>{const t=sW.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const a=lW.exec(t[3]);a&&(t[1]=t[1]||"eval",t[3]=a[1],t[4]=a[2],t[5]="")}let r=t[3],i=t[1]||Vg;return[i,r]=ak(i,r),_0(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},uW=[nW,cW],dW=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,pW=e=>{const t=dW.exec(e);return t?_0(t[2],t[1]||Vg,+t[3],t[4]?+t[4]:void 0):void 0},fW=[tW,pW],_W=[aW,uW,fW],mW=BM(..._W),ak=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:Vg,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};class Fs{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=Fs.id}__init2(){this._installFunc={onerror:gW,onunhandledrejection:hW}}constructor(t){Fs.prototype.__init.call(this),Fs.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...t}}setupOnce(){Error.stackTraceLimit=50;const t=this._options;for(const n in t){const r=this._installFunc[n];r&&t[n]&&(vW(n),r(),this._installFunc[n]=void 0)}}}Fs.__initStatic();function gW(){xs("error",e=>{const[t,n,r]=ck();if(!t.getIntegration(Fs))return;const{msg:i,url:a,line:d,column:s,error:u}=e;if(rk()||u&&u.__sentry_own_request__)return;const o=u===void 0&&Hl(i)?SW(i,a,d,s):sk(f0(n,u||i,void 0,r,!1),a,d,s);o.level="error",lk(t,u,o,"onerror")})}function hW(){xs("unhandledrejection",e=>{const[t,n,r]=ck();if(!t.getIntegration(Fs))return;let i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch{}if(rk()||i&&i.__sentry_own_request__)return!0;const a=MM(i)?bW(i):f0(n,i,void 0,r,!0);a.level="error",lk(t,i,a,"onunhandledrejection")})}function bW(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function SW(e,t,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let a=a0(e)?e.message:e,d="Error";const s=a.match(i);return s&&(d=s[1],a=s[2]),sk({exception:{values:[{type:d,value:a}]}},t,n,r)}function sk(e,t,n,r){const i=e.exception=e.exception||{},a=i.values=i.values||[],d=a[0]=a[0]||{},s=d.stacktrace=d.stacktrace||{},u=s.frames=s.frames||[],o=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,c=Hl(t)&&t.length>0?t:q8();return u.length===0&&u.push({colno:o,filename:c,function:"?",in_app:!0,lineno:l}),e}function vW(e){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Pt.log(`Global Handler attached: ${e}`)}function lk(e,t,n,r){yp(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function ck(){const e=Tr(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}const EW=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class Op{static __initStatic(){this.id="TryCatch"}__init(){this.name=Op.id}constructor(t){Op.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t}}setupOnce(){this._options.setTimeout&&Gr(Sn,"setTimeout",ux),this._options.setInterval&&Gr(Sn,"setInterval",ux),this._options.requestAnimationFrame&&Gr(Sn,"requestAnimationFrame",yW),this._options.XMLHttpRequest&&"XMLHttpRequest"in Sn&&Gr(XMLHttpRequest.prototype,"send",CW);const t=this._options.eventTarget;t&&(Array.isArray(t)?t:EW).forEach(TW)}}Op.__initStatic();function ux(e){return function(...t){const n=t[0];return t[0]=Nu(n,{mechanism:{data:{function:qs(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function yW(e){return function(t){return e.apply(this,[Nu(t,{mechanism:{data:{function:"requestAnimationFrame",handler:qs(e)},handled:!0,type:"instrument"}})])}}function CW(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&Gr(n,i,function(a){const d={mechanism:{data:{function:i,handler:qs(a)},handled:!0,type:"instrument"}},s=u0(a);return s&&(d.mechanism.data.handler=qs(s)),Nu(a,d)})}),e.apply(this,t)}}function TW(e){const t=Sn,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Gr(n,"addEventListener",function(r){return function(i,a,d){try{typeof a.handleEvent=="function"&&(a.handleEvent=Nu(a.handleEvent,{mechanism:{data:{function:"handleEvent",handler:qs(a),target:e},handled:!0,type:"instrument"}}))}catch{}return r.apply(this,[i,Nu(a,{mechanism:{data:{function:"addEventListener",handler:qs(a),target:e},handled:!0,type:"instrument"}}),d])}}),Gr(n,"removeEventListener",function(r){return function(i,a,d){const s=a;try{const u=s&&s.__sentry_wrapped__;u&&r.call(this,i,u,d)}catch{}return r.call(this,i,s,d)}}))}const OW="cause",wW=5;class su{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=su.id}constructor(t={}){su.prototype.__init.call(this),this._key=t.key||OW,this._limit=t.limit||wW}setupOnce(t,n){t((r,i)=>{const a=n(),d=a.getClient(),s=a.getIntegration(su);if(!d||!s)return r;const u=d.getOptions();return G8(ik,u.stackParser,u.maxValueLength,s._key,s._limit,r,i),r})}}su.__initStatic();class lu{constructor(){lu.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=lu.id}setupOnce(){WM(t=>{if(Tr().getIntegration(lu)){if(!Sn.navigator&&!Sn.location&&!Sn.document)return t;const n=t.request&&t.request.url||Sn.location&&Sn.location.href,{referrer:r}=Sn.document||{},{userAgent:i}=Sn.navigator||{},a={...t.request&&t.request.headers,...r&&{Referer:r},...i&&{"User-Agent":i}},d={...t.request,...n&&{url:n},headers:a};return{...t,request:d}}return t})}}lu.__initStatic();class cu{constructor(){cu.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=cu.id}setupOnce(t,n){const r=i=>{if(i.type)return i;const a=n().getIntegration(cu);if(a){try{if(RW(i,a._previousEvent))return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Pt.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{return a._previousEvent=i}return a._previousEvent=i}return i};r.id=this.name,t(r)}}cu.__initStatic();function RW(e,t){return t?!!(xW(e,t)||IW(e,t)):!1}function xW(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!dk(e,t)||!uk(e,t))}function IW(e,t){const n=dx(t),r=dx(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!dk(e,t)||!uk(e,t))}function uk(e,t){let n=px(e),r=px(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i"u"){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Pt.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}const e=Tr();!e.captureSession||(fx(e),xs("history",({from:t,to:n})=>{t===void 0||t===n||fx(Tr())}))}const pk=Object.prototype.toString;function MW(e){switch(pk.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return qg(e,Error)}}function m0(e,t){return pk.call(e)===`[object ${t}]`}function wp(e){return m0(e,"String")}function g0(e){return m0(e,"Object")}function kW(e){return typeof Event<"u"&&qg(e,Event)}function PW(e){return typeof Element<"u"&&qg(e,Element)}function LW(e){return m0(e,"RegExp")}function fk(e){return Boolean(e&&e.then&&typeof e.then=="function")}function $W(e){return g0(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function FW(e){return typeof e=="number"&&e!==e}function qg(e,t){try{return e instanceof t}catch{return!1}}function eS(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function BW(e,t,n=!1){return wp(e)?LW(t)?t.test(e):wp(t)?n?e===t:e.includes(t):!1:!1}function UW(e,t=[],n=!1){return t.some(r=>BW(e,r,n))}function C_(e){return e&&e.Math==Math?e:void 0}const mo=typeof globalThis=="object"&&C_(globalThis)||typeof window=="object"&&C_(window)||typeof self=="object"&&C_(self)||typeof global=="object"&&C_(global)||function(){return this}()||{};function jg(){return mo}function h0(e,t,n){const r=n||mo,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}const GW=80;function b0(e,t={}){try{let n=e;const r=5,i=[];let a=0,d=0;const s=" > ",u=s.length;let o;const l=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||GW;for(;n&&a++1&&d+i.length*u+o.length>=c));)i.push(o),d+=o.length,n=n.parentNode;return i.reverse().join(s)}catch{return""}}function HW(e,t){const n=e,r=[];let i,a,d,s,u;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());const o=t&&t.length?t.filter(c=>n.getAttribute(c)).map(c=>[c,n.getAttribute(c)]):null;if(o&&o.length)o.forEach(c=>{r.push(`[${c[0]}="${c[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&wp(i))for(a=i.split(/\s+/),u=0;u{const i=t[r]&&t[r].__sentry_original__;r in t&&i&&(n[r]=t[r],t[r]=i)});try{return e()}finally{Object.keys(n).forEach(r=>{t[r]=n[r]})}}function _x(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1}};return typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?Um.forEach(n=>{t[n]=(...r)=>{e&&_k(()=>{mo.console[n](`${zW}[${n}]:`,...r)})}}):Um.forEach(n=>{t[n]=()=>{}}),t}let Jt;typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?Jt=h0("logger",_x):Jt=_x();function YW(e,t=!1){const{host:n,path:r,pass:i,port:a,projectId:d,protocol:s,publicKey:u}=e;return`${s}://${u}${t&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${r&&`${r}/`}${d}`}function Ao(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);if(typeof i=="function")try{qW(i,r)}catch{}e[t]=i}function VW(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function qW(e,t){const n=t.prototype||{};e.prototype=t.prototype=n,VW(e,"__sentry_original__",t)}function jW(e){if(MW(e))return{message:e.message,name:e.name,stack:e.stack,...gx(e)};if(kW(e)){const t={type:e.type,target:mx(e.target),currentTarget:mx(e.currentTarget),...gx(e)};return typeof CustomEvent<"u"&&qg(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function mx(e){try{return PW(e)?b0(e):Object.prototype.toString.call(e)}catch{return""}}function gx(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function Wg(e){return $v(e,new Map)}function $v(e,t){if(g0(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const i of Object.keys(e))typeof e[i]<"u"&&(r[i]=$v(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(i=>{r.push($v(i,t))}),r}return e}const tS="";function mk(e){try{return!e||typeof e!="function"?tS:e.name||tS}catch{return tS}}const Fv=jg();function WW(){if(!("fetch"in Fv))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function hx(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function KW(){if(!WW())return!1;if(hx(Fv.fetch))return!0;let e=!1;const t=Fv.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=hx(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}const T_=jg();function QW(){const e=T_.chrome,t=e&&e.app&&e.app.runtime,n="history"in T_&&!!T_.history.pushState&&!!T_.history.replaceState;return!t&&n}const jn=jg(),Wc="__sentry_xhr_v2__",Zd={},bx={};function XW(e){if(!bx[e])switch(bx[e]=!0,e){case"console":ZW();break;case"dom":a9();break;case"xhr":t9();break;case"fetch":JW();break;case"history":n9();break;case"error":s9();break;case"unhandledrejection":l9();break;default:(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.warn("unknown instrumentation type:",e);return}}function Gm(e,t){Zd[e]=Zd[e]||[],Zd[e].push(t),XW(e)}function ko(e,t){if(!(!e||!Zd[e]))for(const n of Zd[e]||[])try{n(t)}catch(r){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.error(`Error while triggering instrumentation handler. +Url: ${Bm(e)}`),!0)}function Tj(e,t){return e.type||!t||!t.length?!1:xj(e).some(n=>Ug(n,t))}function Oj(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?Ug(n,t):!1}function wj(e,t){if(!t||!t.length)return!1;const n=Bm(e);return n?Ug(n,t):!1}function Rj(e,t){if(!t||!t.length)return!0;const n=Bm(e);return n?Ug(n,t):!0}function xj(e){if(e.message)return[e.message];if(e.exception){const{values:t}=e.exception;try{const{type:n="",value:r=""}=t&&t[t.length-1]||{};return[`${r}`,`${n}: ${r}`]}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Pt.error(`Cannot extract message for event ${Is(e)}`),[]}}return[]}function Ij(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function Nj(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!==""&&n.filename!=="[native code]")return n.filename||null}return null}function Bm(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?Nj(t):null}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Pt.error(`Cannot extract url for event ${Is(e)}`),null}}const Sn=_o;let Pv=0;function rk(){return Pv>0}function Aj(){Pv++,setTimeout(()=>{Pv--})}function Nu(e,t={},n){if(typeof e!="function")return e;try{const i=e.__sentry_wrapped__;if(i)return i;if(u0(e))return e}catch{return e}const r=function(){const i=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);const a=i.map(d=>Nu(d,t));return e.apply(this,a)}catch(a){throw Aj(),Xq(d=>{d.addEventProcessor(s=>(t.mechanism&&(Nv(s,void 0,void 0),yp(s,t.mechanism)),s.extra={...s.extra,arguments:i},s)),ZM(a)}),a}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}LM(r,e),c0(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function ik(e,t){const n=p0(e,t),r={type:t&&t.name,value:Pj(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Dj(e,t,n,r){const a=Tr().getClient(),d=a&&a.getOptions().normalizeDepth,s={exception:{values:[{type:Bg(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Fj(t,{isUnhandledRejection:r})}]},extra:{__serialized__:zM(t,d)}};if(n){const u=p0(e,n);u.length&&(s.exception.values[0].stacktrace={frames:u})}return s}function Jb(e,t){return{exception:{values:[ik(e,t)]}}}function p0(e,t){const n=t.stacktrace||t.stack||"",r=kj(t);try{return e(n,r)}catch{}return[]}const Mj=/Minified React error #\d+;/i;function kj(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(Mj.test(e.message))return 1}return 0}function Pj(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function Lj(e,t,n,r){const i=n&&n.syntheticException||void 0,a=f0(e,t,i,r);return yp(a),a.level="error",n&&n.event_id&&(a.event_id=n.event_id),Yl(a)}function $j(e,t,n="info",r,i){const a=r&&r.syntheticException||void 0,d=Lv(e,t,a,i);return d.level=n,r&&r.event_id&&(d.event_id=r.event_id),Yl(d)}function f0(e,t,n,r,i){let a;if(a0(t)&&t.error)return Jb(e,t.error);if(HR(t)||P8(t)){const d=t;if("stack"in t)a=Jb(e,t);else{const s=d.name||(HR(d)?"DOMError":"DOMException"),u=d.message?`${s}: ${d.message}`:s;a=Lv(e,u,n,r),Nv(a,u)}return"code"in d&&(a.tags={...a.tags,"DOMException.code":`${d.code}`}),a}return DM(t)?Jb(e,t):xu(t)||Bg(t)?(a=Dj(e,t,n,i),yp(a,{synthetic:!0}),a):(a=Lv(e,t,n,r),Nv(a,`${t}`,void 0),yp(a,{synthetic:!0}),a)}function Lv(e,t,n,r){const i={message:t};if(r&&n){const a=p0(e,n);a.length&&(i.exception={values:[{value:t,stacktrace:{frames:a}}]})}return i}function Fj(e,{isUnhandledRejection:t}){const n=eq(e),r=t?"promise rejection":"exception";return a0(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Bg(e)?`Event \`${Bj(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Bj(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}const y_=1024,ok="Breadcrumbs";class Tp{static __initStatic(){this.id=ok}__init(){this.name=Tp.id}constructor(t){Tp.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t}}setupOnce(){this.options.console&&xs("console",Gj),this.options.dom&&xs("dom",Uj(this.options.dom)),this.options.xhr&&xs("xhr",Hj),this.options.fetch&&xs("fetch",zj),this.options.history&&xs("history",Yj)}addSentryBreadcrumb(t){this.options.sentry&&Tr().addBreadcrumb({category:`sentry.${t.type==="transaction"?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:Is(t)},{event:t})}}Tp.__initStatic();function Uj(e){function t(n){let r,i=typeof e=="object"?e.serializeAttribute:void 0,a=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;a&&a>y_&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Pt.warn(`\`dom.maxStringLength\` cannot exceed ${y_}, but a value of ${a} was configured. Sentry will use ${y_} instead.`),a=y_),typeof i=="string"&&(i=[i]);try{const d=n.event;r=Vj(d)?Ov(d.target,{keyAttrs:i,maxStringLength:a}):Ov(d,{keyAttrs:i,maxStringLength:a})}catch{r=""}r.length!==0&&Tr().addBreadcrumb({category:`ui.${n.name}`,message:r},{event:n.event,name:n.name,global:n.global})}return t}function Gj(e){for(let n=0;n{Sn.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return Lj(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return $j(this._options.stackParser,t,n,r,this._options.attachStacktrace)}sendEvent(t,n){const r=this.getIntegrationById(ok);r&&r.addSentryBreadcrumb&&r.addSentryBreadcrumb(t),super.sendEvent(t,n)}captureUserFeedback(t){if(!this._isEnabled()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Pt.warn("SDK not enabled, will not capture user feedback.");return}const n=qj(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Pt.log("No outcomes to send");return}if(!this._dsn){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Pt.log("No dsn provided, will not send outcomes");return}(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Pt.log("Sending outcomes:",t);const n=$q(t,this._options.tunnel&&Gg(this._dsn));this._sendEnvelope(n)}}let Fd;function Kj(){if(Fd)return Fd;if(xv(Sn.fetch))return Fd=Sn.fetch.bind(Sn);const e=Sn.document;let t=Sn.fetch;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Pt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return Fd=t.bind(Sn)}function Qj(){Fd=void 0}function Xj(e,t=Kj()){let n=0,r=0;function i(a){const d=a.body.length;n+=d,r++;const s={body:a.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,s).then(u=>(n-=d,r--,{statusCode:u.status,headers:{"x-sentry-rate-limits":u.headers.get("X-Sentry-Rate-Limits"),"retry-after":u.headers.get("Retry-After")}}))}catch(u){return Qj(),n-=d,r--,$m(u)}}return nk(e,i)}const Zj=4;function Jj(e){function t(n){return new si((r,i)=>{const a=new XMLHttpRequest;a.onerror=i,a.onreadystatechange=()=>{a.readyState===Zj&&r({statusCode:a.status,headers:{"x-sentry-rate-limits":a.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":a.getResponseHeader("Retry-After")}})},a.open("POST",e.url);for(const d in e.headers)Object.prototype.hasOwnProperty.call(e.headers,d)&&a.setRequestHeader(d,e.headers[d]);a.send(n.body)})}return nk(e,t)}const Vg="?",e9=30,t9=40,n9=50;function _0(e,t,n,r){const i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const r9=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,i9=/\((\S*)(?::(\d+))(?::(\d+))\)/,o9=e=>{const t=r9.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const a=i9.exec(t[2]);a&&(t[2]=a[1],t[3]=a[2],t[4]=a[3])}const[r,i]=ak(t[1]||Vg,t[2]);return _0(i,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},a9=[e9,o9],s9=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,l9=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,c9=e=>{const t=s9.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const a=l9.exec(t[3]);a&&(t[1]=t[1]||"eval",t[3]=a[1],t[4]=a[2],t[5]="")}let r=t[3],i=t[1]||Vg;return[i,r]=ak(i,r),_0(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},u9=[n9,c9],d9=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,p9=e=>{const t=d9.exec(e);return t?_0(t[2],t[1]||Vg,+t[3],t[4]?+t[4]:void 0):void 0},f9=[t9,p9],_9=[a9,u9,f9],m9=BM(..._9),ak=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:Vg,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};class Fs{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=Fs.id}__init2(){this._installFunc={onerror:g9,onunhandledrejection:h9}}constructor(t){Fs.prototype.__init.call(this),Fs.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...t}}setupOnce(){Error.stackTraceLimit=50;const t=this._options;for(const n in t){const r=this._installFunc[n];r&&t[n]&&(v9(n),r(),this._installFunc[n]=void 0)}}}Fs.__initStatic();function g9(){xs("error",e=>{const[t,n,r]=ck();if(!t.getIntegration(Fs))return;const{msg:i,url:a,line:d,column:s,error:u}=e;if(rk()||u&&u.__sentry_own_request__)return;const o=u===void 0&&Hl(i)?S9(i,a,d,s):sk(f0(n,u||i,void 0,r,!1),a,d,s);o.level="error",lk(t,u,o,"onerror")})}function h9(){xs("unhandledrejection",e=>{const[t,n,r]=ck();if(!t.getIntegration(Fs))return;let i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch{}if(rk()||i&&i.__sentry_own_request__)return!0;const a=MM(i)?b9(i):f0(n,i,void 0,r,!0);a.level="error",lk(t,i,a,"onunhandledrejection")})}function b9(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function S9(e,t,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let a=a0(e)?e.message:e,d="Error";const s=a.match(i);return s&&(d=s[1],a=s[2]),sk({exception:{values:[{type:d,value:a}]}},t,n,r)}function sk(e,t,n,r){const i=e.exception=e.exception||{},a=i.values=i.values||[],d=a[0]=a[0]||{},s=d.stacktrace=d.stacktrace||{},u=s.frames=s.frames||[],o=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,c=Hl(t)&&t.length>0?t:q8();return u.length===0&&u.push({colno:o,filename:c,function:"?",in_app:!0,lineno:l}),e}function v9(e){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Pt.log(`Global Handler attached: ${e}`)}function lk(e,t,n,r){yp(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function ck(){const e=Tr(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}const E9=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class Op{static __initStatic(){this.id="TryCatch"}__init(){this.name=Op.id}constructor(t){Op.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t}}setupOnce(){this._options.setTimeout&&Gr(Sn,"setTimeout",ux),this._options.setInterval&&Gr(Sn,"setInterval",ux),this._options.requestAnimationFrame&&Gr(Sn,"requestAnimationFrame",y9),this._options.XMLHttpRequest&&"XMLHttpRequest"in Sn&&Gr(XMLHttpRequest.prototype,"send",C9);const t=this._options.eventTarget;t&&(Array.isArray(t)?t:E9).forEach(T9)}}Op.__initStatic();function ux(e){return function(...t){const n=t[0];return t[0]=Nu(n,{mechanism:{data:{function:qs(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function y9(e){return function(t){return e.apply(this,[Nu(t,{mechanism:{data:{function:"requestAnimationFrame",handler:qs(e)},handled:!0,type:"instrument"}})])}}function C9(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&Gr(n,i,function(a){const d={mechanism:{data:{function:i,handler:qs(a)},handled:!0,type:"instrument"}},s=u0(a);return s&&(d.mechanism.data.handler=qs(s)),Nu(a,d)})}),e.apply(this,t)}}function T9(e){const t=Sn,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Gr(n,"addEventListener",function(r){return function(i,a,d){try{typeof a.handleEvent=="function"&&(a.handleEvent=Nu(a.handleEvent,{mechanism:{data:{function:"handleEvent",handler:qs(a),target:e},handled:!0,type:"instrument"}}))}catch{}return r.apply(this,[i,Nu(a,{mechanism:{data:{function:"addEventListener",handler:qs(a),target:e},handled:!0,type:"instrument"}}),d])}}),Gr(n,"removeEventListener",function(r){return function(i,a,d){const s=a;try{const u=s&&s.__sentry_wrapped__;u&&r.call(this,i,u,d)}catch{}return r.call(this,i,s,d)}}))}const O9="cause",w9=5;class su{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=su.id}constructor(t={}){su.prototype.__init.call(this),this._key=t.key||O9,this._limit=t.limit||w9}setupOnce(t,n){t((r,i)=>{const a=n(),d=a.getClient(),s=a.getIntegration(su);if(!d||!s)return r;const u=d.getOptions();return G8(ik,u.stackParser,u.maxValueLength,s._key,s._limit,r,i),r})}}su.__initStatic();class lu{constructor(){lu.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=lu.id}setupOnce(){WM(t=>{if(Tr().getIntegration(lu)){if(!Sn.navigator&&!Sn.location&&!Sn.document)return t;const n=t.request&&t.request.url||Sn.location&&Sn.location.href,{referrer:r}=Sn.document||{},{userAgent:i}=Sn.navigator||{},a={...t.request&&t.request.headers,...r&&{Referer:r},...i&&{"User-Agent":i}},d={...t.request,...n&&{url:n},headers:a};return{...t,request:d}}return t})}}lu.__initStatic();class cu{constructor(){cu.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=cu.id}setupOnce(t,n){const r=i=>{if(i.type)return i;const a=n().getIntegration(cu);if(a){try{if(R9(i,a._previousEvent))return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Pt.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{return a._previousEvent=i}return a._previousEvent=i}return i};r.id=this.name,t(r)}}cu.__initStatic();function R9(e,t){return t?!!(x9(e,t)||I9(e,t)):!1}function x9(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!dk(e,t)||!uk(e,t))}function I9(e,t){const n=dx(t),r=dx(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!dk(e,t)||!uk(e,t))}function uk(e,t){let n=px(e),r=px(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i"u"){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Pt.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}const e=Tr();!e.captureSession||(fx(e),xs("history",({from:t,to:n})=>{t===void 0||t===n||fx(Tr())}))}const pk=Object.prototype.toString;function M9(e){switch(pk.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return qg(e,Error)}}function m0(e,t){return pk.call(e)===`[object ${t}]`}function wp(e){return m0(e,"String")}function g0(e){return m0(e,"Object")}function k9(e){return typeof Event<"u"&&qg(e,Event)}function P9(e){return typeof Element<"u"&&qg(e,Element)}function L9(e){return m0(e,"RegExp")}function fk(e){return Boolean(e&&e.then&&typeof e.then=="function")}function $9(e){return g0(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function F9(e){return typeof e=="number"&&e!==e}function qg(e,t){try{return e instanceof t}catch{return!1}}function eS(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function B9(e,t,n=!1){return wp(e)?L9(t)?t.test(e):wp(t)?n?e===t:e.includes(t):!1:!1}function U9(e,t=[],n=!1){return t.some(r=>B9(e,r,n))}function C_(e){return e&&e.Math==Math?e:void 0}const mo=typeof globalThis=="object"&&C_(globalThis)||typeof window=="object"&&C_(window)||typeof self=="object"&&C_(self)||typeof global=="object"&&C_(global)||function(){return this}()||{};function jg(){return mo}function h0(e,t,n){const r=n||mo,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}const G9=80;function b0(e,t={}){try{let n=e;const r=5,i=[];let a=0,d=0;const s=" > ",u=s.length;let o;const l=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||G9;for(;n&&a++1&&d+i.length*u+o.length>=c));)i.push(o),d+=o.length,n=n.parentNode;return i.reverse().join(s)}catch{return""}}function H9(e,t){const n=e,r=[];let i,a,d,s,u;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());const o=t&&t.length?t.filter(c=>n.getAttribute(c)).map(c=>[c,n.getAttribute(c)]):null;if(o&&o.length)o.forEach(c=>{r.push(`[${c[0]}="${c[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&wp(i))for(a=i.split(/\s+/),u=0;u{const i=t[r]&&t[r].__sentry_original__;r in t&&i&&(n[r]=t[r],t[r]=i)});try{return e()}finally{Object.keys(n).forEach(r=>{t[r]=n[r]})}}function _x(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1}};return typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?Um.forEach(n=>{t[n]=(...r)=>{e&&_k(()=>{mo.console[n](`${z9}[${n}]:`,...r)})}}):Um.forEach(n=>{t[n]=()=>{}}),t}let Jt;typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?Jt=h0("logger",_x):Jt=_x();function Y9(e,t=!1){const{host:n,path:r,pass:i,port:a,projectId:d,protocol:s,publicKey:u}=e;return`${s}://${u}${t&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${r&&`${r}/`}${d}`}function Ao(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);if(typeof i=="function")try{q9(i,r)}catch{}e[t]=i}function V9(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function q9(e,t){const n=t.prototype||{};e.prototype=t.prototype=n,V9(e,"__sentry_original__",t)}function j9(e){if(M9(e))return{message:e.message,name:e.name,stack:e.stack,...gx(e)};if(k9(e)){const t={type:e.type,target:mx(e.target),currentTarget:mx(e.currentTarget),...gx(e)};return typeof CustomEvent<"u"&&qg(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function mx(e){try{return P9(e)?b0(e):Object.prototype.toString.call(e)}catch{return""}}function gx(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function Wg(e){return $v(e,new Map)}function $v(e,t){if(g0(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const i of Object.keys(e))typeof e[i]<"u"&&(r[i]=$v(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(i=>{r.push($v(i,t))}),r}return e}const tS="";function mk(e){try{return!e||typeof e!="function"?tS:e.name||tS}catch{return tS}}const Fv=jg();function W9(){if(!("fetch"in Fv))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function hx(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function K9(){if(!W9())return!1;if(hx(Fv.fetch))return!0;let e=!1;const t=Fv.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=hx(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}const T_=jg();function Q9(){const e=T_.chrome,t=e&&e.app&&e.app.runtime,n="history"in T_&&!!T_.history.pushState&&!!T_.history.replaceState;return!t&&n}const jn=jg(),Wc="__sentry_xhr_v2__",Zd={},bx={};function X9(e){if(!bx[e])switch(bx[e]=!0,e){case"console":Z9();break;case"dom":aW();break;case"xhr":tW();break;case"fetch":J9();break;case"history":nW();break;case"error":sW();break;case"unhandledrejection":lW();break;default:(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.warn("unknown instrumentation type:",e);return}}function Gm(e,t){Zd[e]=Zd[e]||[],Zd[e].push(t),X9(e)}function ko(e,t){if(!(!e||!Zd[e]))for(const n of Zd[e]||[])try{n(t)}catch(r){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.error(`Error while triggering instrumentation handler. Type: ${e} Name: ${mk(n)} -Error:`,r)}}function ZW(){"console"in jn&&Um.forEach(function(e){e in jn.console&&Ao(jn.console,e,function(t){return function(...n){ko("console",{args:n,level:e}),t&&t.apply(jn.console,n)}})})}function JW(){!KW()||Ao(jn,"fetch",function(e){return function(...t){const{method:n,url:r}=e9(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return ko("fetch",{...i}),e.apply(jn,t).then(a=>(ko("fetch",{...i,endTimestamp:Date.now(),response:a}),a),a=>{throw ko("fetch",{...i,endTimestamp:Date.now(),error:a}),a})}})}function Bv(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Sx(e){return typeof e=="string"?e:e?Bv(e,"url")?e.url:e.toString?e.toString():"":""}function e9(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:Sx(n),method:Bv(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:Sx(t),method:Bv(t,"method")?String(t.method).toUpperCase():"GET"}}function t9(){if(!("XMLHttpRequest"in jn))return;const e=XMLHttpRequest.prototype;Ao(e,"open",function(t){return function(...n){const r=n[1],i=this[Wc]={method:wp(n[0])?n[0].toUpperCase():n[0],url:n[1],request_headers:{}};wp(r)&&i.method==="POST"&&r.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const a=()=>{const d=this[Wc];if(!!d&&this.readyState===4){try{d.status_code=this.status}catch{}ko("xhr",{args:n,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?Ao(this,"onreadystatechange",function(d){return function(...s){return a(),d.apply(this,s)}}):this.addEventListener("readystatechange",a),Ao(this,"setRequestHeader",function(d){return function(...s){const[u,o]=s,l=this[Wc];return l&&(l.request_headers[u.toLowerCase()]=o),d.apply(this,s)}}),t.apply(this,n)}}),Ao(e,"send",function(t){return function(...n){const r=this[Wc];return r&&n[0]!==void 0&&(r.body=n[0]),ko("xhr",{args:n,startTimestamp:Date.now(),xhr:this}),t.apply(this,n)}})}let O_;function n9(){if(!QW())return;const e=jn.onpopstate;jn.onpopstate=function(...n){const r=jn.location.href,i=O_;if(O_=r,ko("history",{from:i,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const i=r.length>2?r[2]:void 0;if(i){const a=O_,d=String(i);O_=d,ko("history",{from:a,to:d})}return n.apply(this,r)}}Ao(jn.history,"pushState",t),Ao(jn.history,"replaceState",t)}const r9=1e3;let w_,R_;function i9(e,t){if(!e||e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch{}return!1}function o9(e){if(e.type!=="keypress")return!1;try{const t=e.target;if(!t||!t.tagName)return!0;if(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)return!1}catch{}return!0}function vx(e,t=!1){return n=>{if(!n||R_===n||o9(n))return;const r=n.type==="keypress"?"input":n.type;w_===void 0?(e({event:n,name:r,global:t}),R_=n):i9(R_,n)&&(e({event:n,name:r,global:t}),R_=n),clearTimeout(w_),w_=jn.setTimeout(()=>{w_=void 0},r9)}}function a9(){if(!("document"in jn))return;const e=ko.bind(null,"dom"),t=vx(e,!0);jn.document.addEventListener("click",t,!1),jn.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=jn[n]&&jn[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Ao(r,"addEventListener",function(i){return function(a,d,s){if(a==="click"||a=="keypress")try{const u=this,o=u.__sentry_instrumentation_handlers__=u.__sentry_instrumentation_handlers__||{},l=o[a]=o[a]||{refCount:0};if(!l.handler){const c=vx(e);l.handler=c,i.call(this,a,c,s)}l.refCount++}catch{}return i.call(this,a,d,s)}}),Ao(r,"removeEventListener",function(i){return function(a,d,s){if(a==="click"||a=="keypress")try{const u=this,o=u.__sentry_instrumentation_handlers__||{},l=o[a];l&&(l.refCount--,l.refCount<=0&&(i.call(this,a,l.handler,s),l.handler=void 0,delete o[a]),Object.keys(o).length===0&&delete u.__sentry_instrumentation_handlers__)}catch{}return i.call(this,a,d,s)}}))})}let x_=null;function s9(){x_=jn.onerror,jn.onerror=function(e,t,n,r,i){return ko("error",{column:r,error:i,line:n,msg:e,url:t}),x_&&!x_.__SENTRY_LOADER__?x_.apply(this,arguments):!1},jn.onerror.__SENTRY_INSTRUMENTED__=!0}let I_=null;function l9(){I_=jn.onunhandledrejection,jn.onunhandledrejection=function(e){return ko("unhandledrejection",e),I_&&!I_.__SENTRY_LOADER__?I_.apply(this,arguments):!0},jn.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function c9(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let a=0;at.getRandomValues(new Uint8Array(1))[0]:()=>Math.random()*16;return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function u9(e){return Array.isArray(e)?e:[e]}function d9(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function gk(){return!d9()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function p9(e,t){return e.require(t)}function Ts(e,t=100,n=1/0){try{return Uv("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Uv(e,t,n=1/0,r=1/0,i=c9()){const[a,d]=i;if(t==null||["number","boolean","string"].includes(typeof t)&&!FW(t))return t;const s=f9(e,t);if(!s.startsWith("[object "))return s;if(t.__sentry_skip_normalization__)return t;const u=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(u===0)return s.replace("object ","");if(a(t))return"[Circular ~]";const o=t;if(o&&typeof o.toJSON=="function")try{const f=o.toJSON();return Uv("",f,u-1,r,i)}catch{}const l=Array.isArray(t)?[]:{};let c=0;const p=jW(t);for(const f in p){if(!Object.prototype.hasOwnProperty.call(p,f))continue;if(c>=r){l[f]="[MaxProperties ~]";break}const m=p[f];l[f]=Uv(f,m,u-1,r,i),c++}return d(t),l}function f9(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if($W(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${mk(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=_9(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function _9(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}var Ra;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(Ra||(Ra={}));function m9(e){return new Ro(t=>{t(e)})}class Ro{__init(){this._state=Ra.PENDING}__init2(){this._handlers=[]}constructor(t){Ro.prototype.__init.call(this),Ro.prototype.__init2.call(this),Ro.prototype.__init3.call(this),Ro.prototype.__init4.call(this),Ro.prototype.__init5.call(this),Ro.prototype.__init6.call(this);try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new Ro((r,i)=>{this._handlers.push([!1,a=>{if(!t)r(a);else try{r(t(a))}catch(d){i(d)}},a=>{if(!n)i(a);else try{r(n(a))}catch(d){i(d)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Ro((n,r)=>{let i,a;return this.then(d=>{a=!1,i=d,t&&t()},d=>{a=!0,i=d,t&&t()}).then(()=>{if(a){r(i);return}n(i)})})}__init3(){this._resolve=t=>{this._setResult(Ra.RESOLVED,t)}}__init4(){this._reject=t=>{this._setResult(Ra.REJECTED,t)}}__init5(){this._setResult=(t,n)=>{if(this._state===Ra.PENDING){if(fk(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init6(){this._executeHandlers=()=>{if(this._state===Ra.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Ra.RESOLVED&&n[1](this._value),this._state===Ra.REJECTED&&n[2](this._value),n[0]=!0)})}}}const hk=jg(),Gv={nowSeconds:()=>Date.now()/1e3};function g9(){const{performance:e}=hk;if(!e||!e.now)return;const t=Date.now()-e.now();return{now:()=>e.now(),timeOrigin:t}}function h9(){try{return p9(module,"perf_hooks").performance}catch{return}}const nS=gk()?h9():g9(),Ex=nS===void 0?Gv:{nowSeconds:()=>(nS.timeOrigin+nS.now())/1e3},S0=Gv.nowSeconds.bind(Gv),bk=Ex.nowSeconds.bind(Ex),b9=(()=>{const{performance:e}=hk;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,a=iT9(n)};return e&&Kg(n,e),n}function Kg(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||bk(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Ga()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function C9(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),Kg(e,n)}function T9(e){return Wg({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const O9=100;class Ml{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=yx()}static clone(t){const n=new Ml;return t&&(n._breadcrumbs=[...t._breadcrumbs],n._tags={...t._tags},n._extra={...t._extra},n._contexts={...t._contexts},n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=[...t._eventProcessors],n._requestSession=t._requestSession,n._attachments=[...t._attachments],n._sdkProcessingMetadata={...t._sdkProcessingMetadata},n._propagationContext={...t._propagationContext}),n}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{},this._session&&Kg(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this.getSpan();return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if(typeof t=="function"){const n=t(this);return n instanceof Ml?n:this}return t instanceof Ml?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession),t._propagationContext&&(this._propagationContext=t._propagationContext)):g0(t)&&(t=t,this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=yx(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:O9;if(r<=0)return this;const i={timestamp:S0(),...t};return this._breadcrumbs=[...this._breadcrumbs,i].slice(-r),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(t,n={}){if(this._extra&&Object.keys(this._extra).length&&(t.extra={...this._extra,...t.extra}),this._tags&&Object.keys(this._tags).length&&(t.tags={...this._tags,...t.tags}),this._user&&Object.keys(this._user).length&&(t.user={...this._user,...t.user}),this._contexts&&Object.keys(this._contexts).length&&(t.contexts={...this._contexts,...t.contexts}),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts={trace:this._span.getTraceContext(),...t.contexts};const r=this._span.transaction;if(r){t.sdkProcessingMetadata={dynamicSamplingContext:r.getDynamicSamplingContext(),...t.sdkProcessingMetadata};const i=r.name;i&&(t.tags={transaction:i,...t.tags})}}return this._applyFingerprint(t),t.breadcrumbs=[...t.breadcrumbs||[],...this._breadcrumbs],t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...this._sdkProcessingMetadata,propagationContext:this._propagationContext},this._notifyEventProcessors([...vk(),...this._eventProcessors],t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}_notifyEventProcessors(t,n,r,i=0){return new Ro((a,d)=>{const s=t[i];if(n===null||typeof s!="function")a(n);else{const u=s({...n},r);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&s.id&&u===null&&Jt.log(`Event processor "${s.id}" dropped event`),fk(u)?u.then(o=>this._notifyEventProcessors(t,o,r,i+1).then(a)).then(null,d):this._notifyEventProcessors(t,u,r,i+1).then(a).then(null,d)}})}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}_applyFingerprint(t){t.fingerprint=t.fingerprint?u9(t.fingerprint):[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function vk(){return h0("globalEventProcessors",()=>[])}function w9(e){vk().push(e)}function yx(){return{traceId:Ga(),spanId:Ga().substring(16),sampled:!1}}const Ek=4,R9=100;class yk{constructor(t,n=new Ml,r=Ek){this._version=r,this._stack=[{scope:n}],t&&this.bindClient(t)}isOlderThan(t){return this._version{a.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},d)}),r}captureMessage(t,n,r){const i=this._lastEventId=r&&r.event_id?r.event_id:Ga(),a=new Error(t);return this._withClient((d,s)=>{d.captureMessage(t,n,{originalException:t,syntheticException:a,...r,event_id:i},s)}),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:Ga();return t.type||(this._lastEventId=r),this._withClient((i,a)=>{i.captureEvent(t,{...n,event_id:r},a)}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:d=R9}=i.getOptions&&i.getOptions()||{};if(d<=0)return;const u={timestamp:S0(),...t},o=a?_k(()=>a(u,n)):u;o!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",o,n),r.addBreadcrumb(o,d))}setUser(t){this.getScope().setUser(t)}setTags(t){this.getScope().setTags(t)}setExtras(t){this.getScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){const n=Cx(this);try{t(this)}finally{Cx(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const r=this._callExtensionMethod("startTransaction",t,n);return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&!r&&console.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': +Error:`,r)}}function Z9(){"console"in jn&&Um.forEach(function(e){e in jn.console&&Ao(jn.console,e,function(t){return function(...n){ko("console",{args:n,level:e}),t&&t.apply(jn.console,n)}})})}function J9(){!K9()||Ao(jn,"fetch",function(e){return function(...t){const{method:n,url:r}=eW(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return ko("fetch",{...i}),e.apply(jn,t).then(a=>(ko("fetch",{...i,endTimestamp:Date.now(),response:a}),a),a=>{throw ko("fetch",{...i,endTimestamp:Date.now(),error:a}),a})}})}function Bv(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Sx(e){return typeof e=="string"?e:e?Bv(e,"url")?e.url:e.toString?e.toString():"":""}function eW(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:Sx(n),method:Bv(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:Sx(t),method:Bv(t,"method")?String(t.method).toUpperCase():"GET"}}function tW(){if(!("XMLHttpRequest"in jn))return;const e=XMLHttpRequest.prototype;Ao(e,"open",function(t){return function(...n){const r=n[1],i=this[Wc]={method:wp(n[0])?n[0].toUpperCase():n[0],url:n[1],request_headers:{}};wp(r)&&i.method==="POST"&&r.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const a=()=>{const d=this[Wc];if(!!d&&this.readyState===4){try{d.status_code=this.status}catch{}ko("xhr",{args:n,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?Ao(this,"onreadystatechange",function(d){return function(...s){return a(),d.apply(this,s)}}):this.addEventListener("readystatechange",a),Ao(this,"setRequestHeader",function(d){return function(...s){const[u,o]=s,l=this[Wc];return l&&(l.request_headers[u.toLowerCase()]=o),d.apply(this,s)}}),t.apply(this,n)}}),Ao(e,"send",function(t){return function(...n){const r=this[Wc];return r&&n[0]!==void 0&&(r.body=n[0]),ko("xhr",{args:n,startTimestamp:Date.now(),xhr:this}),t.apply(this,n)}})}let O_;function nW(){if(!Q9())return;const e=jn.onpopstate;jn.onpopstate=function(...n){const r=jn.location.href,i=O_;if(O_=r,ko("history",{from:i,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const i=r.length>2?r[2]:void 0;if(i){const a=O_,d=String(i);O_=d,ko("history",{from:a,to:d})}return n.apply(this,r)}}Ao(jn.history,"pushState",t),Ao(jn.history,"replaceState",t)}const rW=1e3;let w_,R_;function iW(e,t){if(!e||e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch{}return!1}function oW(e){if(e.type!=="keypress")return!1;try{const t=e.target;if(!t||!t.tagName)return!0;if(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)return!1}catch{}return!0}function vx(e,t=!1){return n=>{if(!n||R_===n||oW(n))return;const r=n.type==="keypress"?"input":n.type;w_===void 0?(e({event:n,name:r,global:t}),R_=n):iW(R_,n)&&(e({event:n,name:r,global:t}),R_=n),clearTimeout(w_),w_=jn.setTimeout(()=>{w_=void 0},rW)}}function aW(){if(!("document"in jn))return;const e=ko.bind(null,"dom"),t=vx(e,!0);jn.document.addEventListener("click",t,!1),jn.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=jn[n]&&jn[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Ao(r,"addEventListener",function(i){return function(a,d,s){if(a==="click"||a=="keypress")try{const u=this,o=u.__sentry_instrumentation_handlers__=u.__sentry_instrumentation_handlers__||{},l=o[a]=o[a]||{refCount:0};if(!l.handler){const c=vx(e);l.handler=c,i.call(this,a,c,s)}l.refCount++}catch{}return i.call(this,a,d,s)}}),Ao(r,"removeEventListener",function(i){return function(a,d,s){if(a==="click"||a=="keypress")try{const u=this,o=u.__sentry_instrumentation_handlers__||{},l=o[a];l&&(l.refCount--,l.refCount<=0&&(i.call(this,a,l.handler,s),l.handler=void 0,delete o[a]),Object.keys(o).length===0&&delete u.__sentry_instrumentation_handlers__)}catch{}return i.call(this,a,d,s)}}))})}let x_=null;function sW(){x_=jn.onerror,jn.onerror=function(e,t,n,r,i){return ko("error",{column:r,error:i,line:n,msg:e,url:t}),x_&&!x_.__SENTRY_LOADER__?x_.apply(this,arguments):!1},jn.onerror.__SENTRY_INSTRUMENTED__=!0}let I_=null;function lW(){I_=jn.onunhandledrejection,jn.onunhandledrejection=function(e){return ko("unhandledrejection",e),I_&&!I_.__SENTRY_LOADER__?I_.apply(this,arguments):!0},jn.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function cW(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let a=0;at.getRandomValues(new Uint8Array(1))[0]:()=>Math.random()*16;return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function uW(e){return Array.isArray(e)?e:[e]}function dW(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function gk(){return!dW()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function pW(e,t){return e.require(t)}function Ts(e,t=100,n=1/0){try{return Uv("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Uv(e,t,n=1/0,r=1/0,i=cW()){const[a,d]=i;if(t==null||["number","boolean","string"].includes(typeof t)&&!F9(t))return t;const s=fW(e,t);if(!s.startsWith("[object "))return s;if(t.__sentry_skip_normalization__)return t;const u=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(u===0)return s.replace("object ","");if(a(t))return"[Circular ~]";const o=t;if(o&&typeof o.toJSON=="function")try{const f=o.toJSON();return Uv("",f,u-1,r,i)}catch{}const l=Array.isArray(t)?[]:{};let c=0;const p=j9(t);for(const f in p){if(!Object.prototype.hasOwnProperty.call(p,f))continue;if(c>=r){l[f]="[MaxProperties ~]";break}const m=p[f];l[f]=Uv(f,m,u-1,r,i),c++}return d(t),l}function fW(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if($9(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${mk(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=_W(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function _W(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}var Ra;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(Ra||(Ra={}));function mW(e){return new Ro(t=>{t(e)})}class Ro{__init(){this._state=Ra.PENDING}__init2(){this._handlers=[]}constructor(t){Ro.prototype.__init.call(this),Ro.prototype.__init2.call(this),Ro.prototype.__init3.call(this),Ro.prototype.__init4.call(this),Ro.prototype.__init5.call(this),Ro.prototype.__init6.call(this);try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new Ro((r,i)=>{this._handlers.push([!1,a=>{if(!t)r(a);else try{r(t(a))}catch(d){i(d)}},a=>{if(!n)i(a);else try{r(n(a))}catch(d){i(d)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Ro((n,r)=>{let i,a;return this.then(d=>{a=!1,i=d,t&&t()},d=>{a=!0,i=d,t&&t()}).then(()=>{if(a){r(i);return}n(i)})})}__init3(){this._resolve=t=>{this._setResult(Ra.RESOLVED,t)}}__init4(){this._reject=t=>{this._setResult(Ra.REJECTED,t)}}__init5(){this._setResult=(t,n)=>{if(this._state===Ra.PENDING){if(fk(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init6(){this._executeHandlers=()=>{if(this._state===Ra.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Ra.RESOLVED&&n[1](this._value),this._state===Ra.REJECTED&&n[2](this._value),n[0]=!0)})}}}const hk=jg(),Gv={nowSeconds:()=>Date.now()/1e3};function gW(){const{performance:e}=hk;if(!e||!e.now)return;const t=Date.now()-e.now();return{now:()=>e.now(),timeOrigin:t}}function hW(){try{return pW(module,"perf_hooks").performance}catch{return}}const nS=gk()?hW():gW(),Ex=nS===void 0?Gv:{nowSeconds:()=>(nS.timeOrigin+nS.now())/1e3},S0=Gv.nowSeconds.bind(Gv),bk=Ex.nowSeconds.bind(Ex),bW=(()=>{const{performance:e}=hk;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,a=iTW(n)};return e&&Kg(n,e),n}function Kg(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||bk(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Ga()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function CW(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),Kg(e,n)}function TW(e){return Wg({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const OW=100;class Ml{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=yx()}static clone(t){const n=new Ml;return t&&(n._breadcrumbs=[...t._breadcrumbs],n._tags={...t._tags},n._extra={...t._extra},n._contexts={...t._contexts},n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=[...t._eventProcessors],n._requestSession=t._requestSession,n._attachments=[...t._attachments],n._sdkProcessingMetadata={...t._sdkProcessingMetadata},n._propagationContext={...t._propagationContext}),n}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{},this._session&&Kg(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this.getSpan();return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if(typeof t=="function"){const n=t(this);return n instanceof Ml?n:this}return t instanceof Ml?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession),t._propagationContext&&(this._propagationContext=t._propagationContext)):g0(t)&&(t=t,this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=yx(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:OW;if(r<=0)return this;const i={timestamp:S0(),...t};return this._breadcrumbs=[...this._breadcrumbs,i].slice(-r),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(t,n={}){if(this._extra&&Object.keys(this._extra).length&&(t.extra={...this._extra,...t.extra}),this._tags&&Object.keys(this._tags).length&&(t.tags={...this._tags,...t.tags}),this._user&&Object.keys(this._user).length&&(t.user={...this._user,...t.user}),this._contexts&&Object.keys(this._contexts).length&&(t.contexts={...this._contexts,...t.contexts}),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts={trace:this._span.getTraceContext(),...t.contexts};const r=this._span.transaction;if(r){t.sdkProcessingMetadata={dynamicSamplingContext:r.getDynamicSamplingContext(),...t.sdkProcessingMetadata};const i=r.name;i&&(t.tags={transaction:i,...t.tags})}}return this._applyFingerprint(t),t.breadcrumbs=[...t.breadcrumbs||[],...this._breadcrumbs],t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...this._sdkProcessingMetadata,propagationContext:this._propagationContext},this._notifyEventProcessors([...vk(),...this._eventProcessors],t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}_notifyEventProcessors(t,n,r,i=0){return new Ro((a,d)=>{const s=t[i];if(n===null||typeof s!="function")a(n);else{const u=s({...n},r);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&s.id&&u===null&&Jt.log(`Event processor "${s.id}" dropped event`),fk(u)?u.then(o=>this._notifyEventProcessors(t,o,r,i+1).then(a)).then(null,d):this._notifyEventProcessors(t,u,r,i+1).then(a).then(null,d)}})}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}_applyFingerprint(t){t.fingerprint=t.fingerprint?uW(t.fingerprint):[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function vk(){return h0("globalEventProcessors",()=>[])}function wW(e){vk().push(e)}function yx(){return{traceId:Ga(),spanId:Ga().substring(16),sampled:!1}}const Ek=4,RW=100;class yk{constructor(t,n=new Ml,r=Ek){this._version=r,this._stack=[{scope:n}],t&&this.bindClient(t)}isOlderThan(t){return this._version{a.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},d)}),r}captureMessage(t,n,r){const i=this._lastEventId=r&&r.event_id?r.event_id:Ga(),a=new Error(t);return this._withClient((d,s)=>{d.captureMessage(t,n,{originalException:t,syntheticException:a,...r,event_id:i},s)}),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:Ga();return t.type||(this._lastEventId=r),this._withClient((i,a)=>{i.captureEvent(t,{...n,event_id:r},a)}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:d=RW}=i.getOptions&&i.getOptions()||{};if(d<=0)return;const u={timestamp:S0(),...t},o=a?_k(()=>a(u,n)):u;o!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",o,n),r.addBreadcrumb(o,d))}setUser(t){this.getScope().setUser(t)}setTags(t){this.getScope().setTags(t)}setExtras(t){this.getScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){const n=Cx(this);try{t(this)}finally{Cx(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const r=this._callExtensionMethod("startTransaction",t,n);return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&!r&&console.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': Sentry.addTracingExtensions(); Sentry.init({...}); -`),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&C9(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:i,environment:a=Sk}=r&&r.getOptions()||{},{userAgent:d}=mo.navigator||{},s=y9({release:i,environment:a,user:n.getUser(),...d&&{userAgent:d},...t}),u=n.getSession&&n.getSession();return u&&u.status==="ok"&&Kg(u,{status:"exited"}),this.endSession(),n.setSession(s),s}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return Boolean(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_withClient(t){const{scope:n,client:r}=this.getStackTop();r&&t(r,n)}_callExtensionMethod(t,...n){const i=Qg().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[t]=="function")return i.extensions[t].apply(this,n);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function Qg(){return mo.__SENTRY__=mo.__SENTRY__||{extensions:{},hub:void 0},mo}function Cx(e){const t=Qg(),n=Hv(t);return Ck(t,e),n}function ho(){const e=Qg();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return x9(e)}function x9(e=Qg()){return(!I9(e)||Hv(e).isOlderThan(Ek))&&Ck(e,new yk),Hv(e)}function I9(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function Hv(e){return h0("hub",()=>new yk,e)}function Ck(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function Tk(e,t){return ho().captureException(e,{captureContext:t})}function N9(e,t){ho().setContext(e,t)}function A9(e,t,n,r){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=e,d={...t,event_id:t.event_id||n.event_id||Ga(),timestamp:t.timestamp||S0()},s=n.integrations||e.integrations.map(l=>l.name);D9(d,e),P9(d,s),t.type===void 0&&M9(d,e.stackParser);let u=r;n.captureContext&&(u=Ml.clone(u).update(n.captureContext));let o=m9(d);if(u){if(u.getAttachments){const l=[...n.attachments||[],...u.getAttachments()];l.length&&(n.attachments=l)}o=u.applyToEvent(d,n)}return o.then(l=>(l&&k9(l),typeof i=="number"&&i>0?L9(l,i,a):l))}function D9(e,t){const{environment:n,release:r,dist:i,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:Sk),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&(e.message=eS(e.message,a));const d=e.exception&&e.exception.values&&e.exception.values[0];d&&d.value&&(d.value=eS(d.value,a));const s=e.request;s&&s.url&&(s.url=eS(s.url,a))}const Tx=new WeakMap;function M9(e,t){const n=mo._sentryDebugIds;if(!n)return;let r;const i=Tx.get(t);i?r=i:(r=new Map,Tx.set(t,r));const a=Object.keys(n).reduce((d,s)=>{let u;const o=r.get(s);o?u=o:(u=t(s),r.set(s,u));for(let l=u.length-1;l>=0;l--){const c=u[l];if(c.filename){d[c.filename]=n[s];break}}return d},{});try{e.exception.values.forEach(d=>{d.stacktrace.frames.forEach(s=>{s.filename&&(s.debug_id=a[s.filename])})})}catch{}}function k9(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:t[r]})})}function P9(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function L9(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:Ts(i.data,t,n)}}))},...e.user&&{user:Ts(e.user,t,n)},...e.contexts&&{contexts:Ts(e.contexts,t,n)},...e.extra&&{extra:Ts(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Ts(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>(i.data&&(i.data=Ts(i.data,t,n)),i))),r}const nn=mo,v0="sentryReplaySession",$9="replay_event",E0="Unable to send Replay",F9=3e5,B9=9e5,U9=36e5,G9=5e3,H9=5500,z9=6e4,Y9=5e3,V9=3,N_=15e4,A_=5e3,q9=3e3,j9=300,y0=2e7,W9=4999,K9=15e3;var xr;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(xr||(xr={}));function Q9(e){return e.nodeType===e.ELEMENT_NODE}function Jd(e){const t=e==null?void 0:e.host;return Boolean(t&&t.shadowRoot&&t.shadowRoot===e)}function Ok({maskInputOptions:e,tagName:t,type:n}){t.toLowerCase()==="option"&&(t="select");const r=typeof n=="string"?n.toLowerCase():void 0;return e[t.toLowerCase()]||r&&e[r]||r==="password"||t==="input"&&!n&&e.text}function X9({tagName:e,type:t,maskInputOptions:n,maskInputSelector:r}){return r||Ok({maskInputOptions:n,tagName:e,type:t})}function Rp({input:e,maskInputSelector:t,unmaskInputSelector:n,maskInputOptions:r,tagName:i,type:a,value:d,maskInputFn:s}){let u=d||"";return n&&e.matches(n)||(e.hasAttribute("data-rr-is-password")&&(a="password"),(Ok({maskInputOptions:r,tagName:i,type:a})||t&&e.matches(t))&&(s?u=s(u):u="*".repeat(u.length))),u}const Ox="__rrweb_original__";function Z9(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;ru!==0))return!1}return!0}function wk(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?t.toLowerCase():null}function zv(e,t,n){return typeof n=="string"&&n.toLowerCase(),t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}let J9=1;const eK=new RegExp("[^a-z0-9-_:]"),xp=-2;function Rk(e){return e?e.replace(/[\S]/g,"*"):""}function tK(){return J9++}function nK(e){if(e instanceof HTMLFormElement)return"form";const t=e.tagName.toLowerCase().trim();return eK.test(t)?"div":t}function Yv(e){try{const t=e.rules||e.cssRules;return t?Array.from(t).map(rK).join(""):null}catch{return null}}function rK(e){let t=e.cssText;if(iK(e))try{t=Yv(e.styleSheet)||t}catch{}return xk(t)}function xk(e){if(e.indexOf(":")>-1){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}return e}function iK(e){return"styleSheet"in e}function oK(e){return e.cssRules?Array.from(e.cssRules).map(t=>t.cssText?xk(t.cssText):"").join(""):""}function aK(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let Lc,wx;const sK=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,lK=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,cK=/^(data:)([^,]*),(.*)/i;function cm(e,t){return(e||"").replace(sK,(n,r,i,a,d,s)=>{const u=i||d||s,o=r||a||"";if(!u)return n;if(!lK.test(u))return`url(${o}${u}${o})`;if(cK.test(u))return`url(${o}${u}${o})`;if(u[0]==="/")return`url(${o}${aK(t)+u}${o})`;const l=t.split("/"),c=u.split("/");l.pop();for(const p of c)p!=="."&&(p===".."?l.pop():l.push(p));return`url(${o}${l.join("/")}${o})`})}const uK=/^[^ \t\n\r\u000c]+/,dK=/^[, \t\n\r\u000c]+/;function pK(e,t){if(t.trim()==="")return t;let n=0;function r(a){let d,s=a.exec(t.substring(n));return s?(d=s[0],n+=d.length,d):""}let i=[];for(;r(dK),!(n>=t.length);){let a=r(uK);if(a.slice(-1)===",")a=Kc(e,a.substring(0,a.length-1)),i.push(a);else{let d="";a=Kc(e,a);let s=!1;for(;;){let u=t.charAt(n);if(u===""){i.push((a+d).trim());break}else if(s)u===")"&&(s=!1);else if(u===","){n+=1,i.push((a+d).trim());break}else u==="("&&(s=!0);d+=u,n+=1}}}return i.join(", ")}function Kc(e,t){if(!t||t.trim()==="")return t;const n=e.createElement("a");return n.href=t,n.href}function fK(e){return Boolean(e.tagName==="svg"||e.ownerSVGElement)}function Vv(){const e=document.createElement("a");return e.href="",e.href}function Ik(e,t,n,r,i,a,d,s){if(!i)return i;const u=r.toLowerCase(),o=n.toLowerCase();return u==="src"||u==="href"||u==="xlink:href"&&i[0]!=="#"||u==="background"&&(o==="table"||o==="td"||o==="th")?Kc(e,i):u==="srcset"?pK(e,i):u==="style"?cm(i,Vv()):o==="object"&&u==="data"?Kc(e,i):a&&_K(t,u,o,d)?s?s(i):Rk(i):i}function _K(e,t,n,r){return r&&e.matches(r)?!1:["placeholder","title","aria-label"].indexOf(t)>-1||n==="input"&&t==="value"&&e.hasAttribute("type")&&["submit","button"].indexOf(e.getAttribute("type").toLowerCase())>-1}function mK(e,t,n,r){if(r&&e.matches(r))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let i=0;i{i||(t(),i=!0)},n);e.addEventListener("load",()=>{clearTimeout(s),i=!0,t()});return}const d="about:blank";if(r.location.href!==d||e.src===d||e.src===""){setTimeout(t,0);return}e.addEventListener("load",t)}function hK(e,t){var n;const{doc:r,blockClass:i,blockSelector:a,unblockSelector:d,maskTextClass:s,maskTextSelector:u,unmaskTextSelector:o,inlineStylesheet:l,maskInputSelector:c,unmaskInputSelector:p,maskAllText:f,maskInputOptions:m={},maskTextFn:g,maskInputFn:h,dataURLOptions:b={},inlineImages:v,recordCanvas:E,keepIframeSrcFn:y}=t;let T;if(r.__sn){const O=r.__sn.id;T=O===1?void 0:O}switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:xr.Document,childNodes:[],compatMode:e.compatMode,rootId:T}:{type:xr.Document,childNodes:[],rootId:T};case e.DOCUMENT_TYPE_NODE:return{type:xr.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:T};case e.ELEMENT_NODE:const O=mK(e,i,a,d),C=nK(e);let R={};for(const{name:A,value:D}of Array.from(e.attributes))vK(C,A)||(R[A]=Ik(r,e,C,A,D,f,o,g));if(C==="link"&&l){const A=Array.from(r.styleSheets).find($=>$.href===e.href);let D=null;A&&(D=Yv(A)),D&&(delete R.rel,delete R.href,R._cssText=cm(D,A.href))}if(C==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const A=Yv(e.sheet);A&&(R._cssText=cm(A,Vv()))}if(C==="input"||C==="textarea"||C==="select"||C==="option"){const A=e,D=wk(A),$=zv(A,C.toUpperCase(),D),F=e.checked;D!=="submit"&&D!=="button"&&$&&(R.value=Rp({input:A,type:D,tagName:C,value:$,maskInputSelector:c,unmaskInputSelector:p,maskInputOptions:m,maskInputFn:h})),F&&(R.checked=F)}if(C==="option"&&(e.selected&&!m.select?R.selected=!0:delete R.selected),C==="canvas"&&E){if(e.__context==="2d")Z9(e)||(R.rr_dataURL=e.toDataURL(b.type,b.quality));else if(!("__context"in e)){const A=e.toDataURL(b.type,b.quality),D=document.createElement("canvas");D.width=e.width,D.height=e.height;const $=D.toDataURL(b.type,b.quality);A!==$&&(R.rr_dataURL=A)}}if(C==="img"&&v){Lc||(Lc=r.createElement("canvas"),wx=Lc.getContext("2d"));const A=e,D=A.crossOrigin;A.crossOrigin="anonymous";const $=()=>{try{Lc.width=A.naturalWidth,Lc.height=A.naturalHeight,wx.drawImage(A,0,0),R.rr_dataURL=Lc.toDataURL(b.type,b.quality)}catch(F){console.warn(`Cannot inline img src=${A.currentSrc}! Error: ${F}`)}D?R.crossOrigin=D:delete R.crossOrigin};A.complete&&A.naturalWidth!==0?$():A.onload=$}if((C==="audio"||C==="video")&&(R.rr_mediaState=e.paused?"paused":"played",R.rr_mediaCurrentTime=e.currentTime),e.scrollLeft&&(R.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(R.rr_scrollTop=e.scrollTop),O){const{width:A,height:D}=e.getBoundingClientRect();R={class:R.class,rr_width:`${A}px`,rr_height:`${D}px`}}return C==="iframe"&&!y(R.src)&&(e.contentDocument||(R.rr_src=R.src),delete R.src),{type:xr.Element,tagName:C,attributes:R,childNodes:[],isSVG:fK(e)||void 0,needBlock:O,rootId:T};case e.TEXT_NODE:const x=e.parentNode&&e.parentNode.tagName;let I=e.textContent;const k=x==="STYLE"?!0:void 0,L=x==="SCRIPT"?!0:void 0;if(k&&I){try{e.nextSibling||e.previousSibling||!((n=e.parentNode.sheet)===null||n===void 0)&&n.cssRules&&(I=oK(e.parentNode.sheet))}catch(A){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${A}`,e)}I=cm(I,Vv())}if(L&&(I="SCRIPT_PLACEHOLDER"),x==="TEXTAREA"&&I)I="";else if(x==="OPTION"&&I){const A=e.parentNode;I=Rp({input:A,type:null,tagName:x,value:I,maskInputSelector:c,unmaskInputSelector:p,maskInputOptions:m,maskInputFn:h})}else!k&&!L&&Hm(e,s,u,o,f)&&I&&(I=g?g(I):Rk(I));return{type:xr.Text,textContent:I||"",isStyle:k,rootId:T};case e.CDATA_SECTION_NODE:return{type:xr.CDATA,textContent:"",rootId:T};case e.COMMENT_NODE:return{type:xr.Comment,textContent:e.textContent||"",rootId:T};default:return!1}}function Fn(e){return e==null?"":e.toLowerCase()}function bK(e,t){if(t.comment&&e.type===xr.Comment)return!0;if(e.type===xr.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(Fn(e.attributes.name).match(/^msapplication-tile(image|color)$/)||Fn(e.attributes.name)==="application-name"||Fn(e.attributes.rel)==="icon"||Fn(e.attributes.rel)==="apple-touch-icon"||Fn(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&Fn(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Fn(e.attributes.property).match(/^(og|twitter|fb):/)||Fn(e.attributes.name).match(/^(og|twitter):/)||Fn(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(Fn(e.attributes.name)==="robots"||Fn(e.attributes.name)==="googlebot"||Fn(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(Fn(e.attributes.name)==="author"||Fn(e.attributes.name)==="generator"||Fn(e.attributes.name)==="framework"||Fn(e.attributes.name)==="publisher"||Fn(e.attributes.name)==="progid"||Fn(e.attributes.property).match(/^article:/)||Fn(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(Fn(e.attributes.name)==="google-site-verification"||Fn(e.attributes.name)==="yandex-verification"||Fn(e.attributes.name)==="csrf-token"||Fn(e.attributes.name)==="p:domain_verify"||Fn(e.attributes.name)==="verify-v1"||Fn(e.attributes.name)==="verification"||Fn(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function ep(e,t){const{doc:n,map:r,blockClass:i,blockSelector:a,unblockSelector:d,maskTextClass:s,maskTextSelector:u,unmaskTextSelector:o,skipChild:l=!1,inlineStylesheet:c=!0,maskInputSelector:p,unmaskInputSelector:f,maskAllText:m,maskInputOptions:g={},maskTextFn:h,maskInputFn:b,slimDOMOptions:v,dataURLOptions:E={},inlineImages:y=!1,recordCanvas:T=!1,onSerialize:O,onIframeLoad:C,iframeLoadTimeout:R=5e3,keepIframeSrcFn:x=()=>!1}=t;let{preserveWhiteSpace:I=!0}=t;const k=hK(e,{doc:n,blockClass:i,blockSelector:a,unblockSelector:d,maskTextClass:s,maskTextSelector:u,unmaskTextSelector:o,inlineStylesheet:c,maskInputSelector:p,unmaskInputSelector:f,maskAllText:m,maskInputOptions:g,maskTextFn:h,maskInputFn:b,dataURLOptions:E,inlineImages:y,recordCanvas:T,keepIframeSrcFn:x});if(!k)return console.warn(e,"not serialized"),null;let L;"__sn"in e?L=e.__sn.id:bK(k,v)||!I&&k.type===xr.Text&&!k.isStyle&&!k.textContent.replace(/^\s+|\s+$/gm,"").length?L=xp:L=tK();const A=Object.assign(k,{id:L});if(e.__sn=A,L===xp)return null;r[L]=e,O&&O(e);let D=!l;if(A.type===xr.Element&&(D=D&&!A.needBlock,delete A.needBlock,e.shadowRoot&&(A.isShadowHost=!0)),(A.type===xr.Document||A.type===xr.Element)&&D){v.headWhitespace&&k.type===xr.Element&&k.tagName==="head"&&(I=!1);const $={doc:n,map:r,blockClass:i,blockSelector:a,unblockSelector:d,maskTextClass:s,maskTextSelector:u,unmaskTextSelector:o,skipChild:l,inlineStylesheet:c,maskInputSelector:p,unmaskInputSelector:f,maskAllText:m,maskInputOptions:g,maskTextFn:h,maskInputFn:b,slimDOMOptions:v,dataURLOptions:E,inlineImages:y,recordCanvas:T,preserveWhiteSpace:I,onSerialize:O,onIframeLoad:C,iframeLoadTimeout:R,keepIframeSrcFn:x};for(const F of Array.from(e.childNodes)){const z=ep(F,$);z&&A.childNodes.push(z)}if(Q9(e)&&e.shadowRoot)for(const F of Array.from(e.shadowRoot.childNodes)){const z=ep(F,$);z&&(z.isShadow=!0,A.childNodes.push(z))}}return e.parentNode&&Jd(e.parentNode)&&(A.isShadow=!0),A.type===xr.Element&&A.tagName==="iframe"&&gK(e,()=>{const $=e.contentDocument;if($&&C){const F=ep($,{doc:$,map:r,blockClass:i,blockSelector:a,unblockSelector:d,maskTextClass:s,maskTextSelector:u,unmaskTextSelector:o,skipChild:!1,inlineStylesheet:c,maskInputSelector:p,unmaskInputSelector:f,maskAllText:m,maskInputOptions:g,maskTextFn:h,maskInputFn:b,slimDOMOptions:v,dataURLOptions:E,inlineImages:y,recordCanvas:T,preserveWhiteSpace:I,onSerialize:O,onIframeLoad:C,iframeLoadTimeout:R,keepIframeSrcFn:x});F&&C(e,F)}},R),A}function SK(e,t){const{blockClass:n="rr-block",blockSelector:r=null,unblockSelector:i=null,maskTextClass:a="rr-mask",maskTextSelector:d=null,unmaskTextSelector:s=null,inlineStylesheet:u=!0,inlineImages:o=!1,recordCanvas:l=!1,maskInputSelector:c=null,unmaskInputSelector:p=null,maskAllText:f=!1,maskAllInputs:m=!1,maskTextFn:g,maskInputFn:h,slimDOM:b=!1,dataURLOptions:v,preserveWhiteSpace:E,onSerialize:y,onIframeLoad:T,iframeLoadTimeout:O,keepIframeSrcFn:C=()=>!1}=t||{},R={};return[ep(e,{doc:e,map:R,blockClass:n,blockSelector:r,unblockSelector:i,maskTextClass:a,maskTextSelector:d,unmaskTextSelector:s,skipChild:!1,inlineStylesheet:u,maskInputSelector:c,unmaskInputSelector:p,maskAllText:f,maskInputOptions:m===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:m===!1?{}:m,maskTextFn:g,maskInputFn:h,slimDOMOptions:b===!0||b==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:b==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:b===!1?{}:b,dataURLOptions:v,inlineImages:o,recordCanvas:l,preserveWhiteSpace:E,onSerialize:y,onIframeLoad:T,iframeLoadTimeout:O,keepIframeSrcFn:C}),R]}function vK(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}var Cn;(function(e){e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin"})(Cn||(Cn={}));var Fr;(function(e){e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration"})(Fr||(Fr={}));var zm;(function(e){e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel"})(zm||(zm={}));var Au;(function(e){e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2"})(Au||(Au={}));var Rx;(function(e){e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange"})(Rx||(Rx={}));var xx;(function(e){e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back"})(xx||(xx={}));function $i(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}function EK(){return{map:{},getId(e){return!e||!e.__sn?-1:e.__sn.id},getNode(e){return this.map[e]||null},removeNodeFromMap(e){const t=e.__sn&&e.__sn.id;delete this.map[t],e.childNodes&&e.childNodes.forEach(n=>this.removeNodeFromMap(n))},has(e){return this.map.hasOwnProperty(e)},reset(){this.map={}}}}const Vc=`Please stop import mirror directly. Instead of that,\r +`),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&CW(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:i,environment:a=Sk}=r&&r.getOptions()||{},{userAgent:d}=mo.navigator||{},s=yW({release:i,environment:a,user:n.getUser(),...d&&{userAgent:d},...t}),u=n.getSession&&n.getSession();return u&&u.status==="ok"&&Kg(u,{status:"exited"}),this.endSession(),n.setSession(s),s}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return Boolean(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_withClient(t){const{scope:n,client:r}=this.getStackTop();r&&t(r,n)}_callExtensionMethod(t,...n){const i=Qg().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[t]=="function")return i.extensions[t].apply(this,n);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function Qg(){return mo.__SENTRY__=mo.__SENTRY__||{extensions:{},hub:void 0},mo}function Cx(e){const t=Qg(),n=Hv(t);return Ck(t,e),n}function ho(){const e=Qg();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return xW(e)}function xW(e=Qg()){return(!IW(e)||Hv(e).isOlderThan(Ek))&&Ck(e,new yk),Hv(e)}function IW(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function Hv(e){return h0("hub",()=>new yk,e)}function Ck(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function Tk(e,t){return ho().captureException(e,{captureContext:t})}function NW(e,t){ho().setContext(e,t)}function AW(e,t,n,r){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=e,d={...t,event_id:t.event_id||n.event_id||Ga(),timestamp:t.timestamp||S0()},s=n.integrations||e.integrations.map(l=>l.name);DW(d,e),PW(d,s),t.type===void 0&&MW(d,e.stackParser);let u=r;n.captureContext&&(u=Ml.clone(u).update(n.captureContext));let o=mW(d);if(u){if(u.getAttachments){const l=[...n.attachments||[],...u.getAttachments()];l.length&&(n.attachments=l)}o=u.applyToEvent(d,n)}return o.then(l=>(l&&kW(l),typeof i=="number"&&i>0?LW(l,i,a):l))}function DW(e,t){const{environment:n,release:r,dist:i,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:Sk),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&(e.message=eS(e.message,a));const d=e.exception&&e.exception.values&&e.exception.values[0];d&&d.value&&(d.value=eS(d.value,a));const s=e.request;s&&s.url&&(s.url=eS(s.url,a))}const Tx=new WeakMap;function MW(e,t){const n=mo._sentryDebugIds;if(!n)return;let r;const i=Tx.get(t);i?r=i:(r=new Map,Tx.set(t,r));const a=Object.keys(n).reduce((d,s)=>{let u;const o=r.get(s);o?u=o:(u=t(s),r.set(s,u));for(let l=u.length-1;l>=0;l--){const c=u[l];if(c.filename){d[c.filename]=n[s];break}}return d},{});try{e.exception.values.forEach(d=>{d.stacktrace.frames.forEach(s=>{s.filename&&(s.debug_id=a[s.filename])})})}catch{}}function kW(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:t[r]})})}function PW(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function LW(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:Ts(i.data,t,n)}}))},...e.user&&{user:Ts(e.user,t,n)},...e.contexts&&{contexts:Ts(e.contexts,t,n)},...e.extra&&{extra:Ts(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Ts(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>(i.data&&(i.data=Ts(i.data,t,n)),i))),r}const nn=mo,v0="sentryReplaySession",$W="replay_event",E0="Unable to send Replay",FW=3e5,BW=9e5,UW=36e5,GW=5e3,HW=5500,zW=6e4,YW=5e3,VW=3,N_=15e4,A_=5e3,qW=3e3,jW=300,y0=2e7,WW=4999,KW=15e3;var xr;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(xr||(xr={}));function QW(e){return e.nodeType===e.ELEMENT_NODE}function Jd(e){const t=e==null?void 0:e.host;return Boolean(t&&t.shadowRoot&&t.shadowRoot===e)}function Ok({maskInputOptions:e,tagName:t,type:n}){t.toLowerCase()==="option"&&(t="select");const r=typeof n=="string"?n.toLowerCase():void 0;return e[t.toLowerCase()]||r&&e[r]||r==="password"||t==="input"&&!n&&e.text}function XW({tagName:e,type:t,maskInputOptions:n,maskInputSelector:r}){return r||Ok({maskInputOptions:n,tagName:e,type:t})}function Rp({input:e,maskInputSelector:t,unmaskInputSelector:n,maskInputOptions:r,tagName:i,type:a,value:d,maskInputFn:s}){let u=d||"";return n&&e.matches(n)||(e.hasAttribute("data-rr-is-password")&&(a="password"),(Ok({maskInputOptions:r,tagName:i,type:a})||t&&e.matches(t))&&(s?u=s(u):u="*".repeat(u.length))),u}const Ox="__rrweb_original__";function ZW(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;ru!==0))return!1}return!0}function wk(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?t.toLowerCase():null}function zv(e,t,n){return typeof n=="string"&&n.toLowerCase(),t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}let JW=1;const eK=new RegExp("[^a-z0-9-_:]"),xp=-2;function Rk(e){return e?e.replace(/[\S]/g,"*"):""}function tK(){return JW++}function nK(e){if(e instanceof HTMLFormElement)return"form";const t=e.tagName.toLowerCase().trim();return eK.test(t)?"div":t}function Yv(e){try{const t=e.rules||e.cssRules;return t?Array.from(t).map(rK).join(""):null}catch{return null}}function rK(e){let t=e.cssText;if(iK(e))try{t=Yv(e.styleSheet)||t}catch{}return xk(t)}function xk(e){if(e.indexOf(":")>-1){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}return e}function iK(e){return"styleSheet"in e}function oK(e){return e.cssRules?Array.from(e.cssRules).map(t=>t.cssText?xk(t.cssText):"").join(""):""}function aK(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let Lc,wx;const sK=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,lK=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,cK=/^(data:)([^,]*),(.*)/i;function cm(e,t){return(e||"").replace(sK,(n,r,i,a,d,s)=>{const u=i||d||s,o=r||a||"";if(!u)return n;if(!lK.test(u))return`url(${o}${u}${o})`;if(cK.test(u))return`url(${o}${u}${o})`;if(u[0]==="/")return`url(${o}${aK(t)+u}${o})`;const l=t.split("/"),c=u.split("/");l.pop();for(const p of c)p!=="."&&(p===".."?l.pop():l.push(p));return`url(${o}${l.join("/")}${o})`})}const uK=/^[^ \t\n\r\u000c]+/,dK=/^[, \t\n\r\u000c]+/;function pK(e,t){if(t.trim()==="")return t;let n=0;function r(a){let d,s=a.exec(t.substring(n));return s?(d=s[0],n+=d.length,d):""}let i=[];for(;r(dK),!(n>=t.length);){let a=r(uK);if(a.slice(-1)===",")a=Kc(e,a.substring(0,a.length-1)),i.push(a);else{let d="";a=Kc(e,a);let s=!1;for(;;){let u=t.charAt(n);if(u===""){i.push((a+d).trim());break}else if(s)u===")"&&(s=!1);else if(u===","){n+=1,i.push((a+d).trim());break}else u==="("&&(s=!0);d+=u,n+=1}}}return i.join(", ")}function Kc(e,t){if(!t||t.trim()==="")return t;const n=e.createElement("a");return n.href=t,n.href}function fK(e){return Boolean(e.tagName==="svg"||e.ownerSVGElement)}function Vv(){const e=document.createElement("a");return e.href="",e.href}function Ik(e,t,n,r,i,a,d,s){if(!i)return i;const u=r.toLowerCase(),o=n.toLowerCase();return u==="src"||u==="href"||u==="xlink:href"&&i[0]!=="#"||u==="background"&&(o==="table"||o==="td"||o==="th")?Kc(e,i):u==="srcset"?pK(e,i):u==="style"?cm(i,Vv()):o==="object"&&u==="data"?Kc(e,i):a&&_K(t,u,o,d)?s?s(i):Rk(i):i}function _K(e,t,n,r){return r&&e.matches(r)?!1:["placeholder","title","aria-label"].indexOf(t)>-1||n==="input"&&t==="value"&&e.hasAttribute("type")&&["submit","button"].indexOf(e.getAttribute("type").toLowerCase())>-1}function mK(e,t,n,r){if(r&&e.matches(r))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let i=0;i{i||(t(),i=!0)},n);e.addEventListener("load",()=>{clearTimeout(s),i=!0,t()});return}const d="about:blank";if(r.location.href!==d||e.src===d||e.src===""){setTimeout(t,0);return}e.addEventListener("load",t)}function hK(e,t){var n;const{doc:r,blockClass:i,blockSelector:a,unblockSelector:d,maskTextClass:s,maskTextSelector:u,unmaskTextSelector:o,inlineStylesheet:l,maskInputSelector:c,unmaskInputSelector:p,maskAllText:f,maskInputOptions:m={},maskTextFn:g,maskInputFn:h,dataURLOptions:b={},inlineImages:v,recordCanvas:E,keepIframeSrcFn:y}=t;let T;if(r.__sn){const O=r.__sn.id;T=O===1?void 0:O}switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:xr.Document,childNodes:[],compatMode:e.compatMode,rootId:T}:{type:xr.Document,childNodes:[],rootId:T};case e.DOCUMENT_TYPE_NODE:return{type:xr.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:T};case e.ELEMENT_NODE:const O=mK(e,i,a,d),C=nK(e);let R={};for(const{name:A,value:D}of Array.from(e.attributes))vK(C,A)||(R[A]=Ik(r,e,C,A,D,f,o,g));if(C==="link"&&l){const A=Array.from(r.styleSheets).find($=>$.href===e.href);let D=null;A&&(D=Yv(A)),D&&(delete R.rel,delete R.href,R._cssText=cm(D,A.href))}if(C==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const A=Yv(e.sheet);A&&(R._cssText=cm(A,Vv()))}if(C==="input"||C==="textarea"||C==="select"||C==="option"){const A=e,D=wk(A),$=zv(A,C.toUpperCase(),D),F=e.checked;D!=="submit"&&D!=="button"&&$&&(R.value=Rp({input:A,type:D,tagName:C,value:$,maskInputSelector:c,unmaskInputSelector:p,maskInputOptions:m,maskInputFn:h})),F&&(R.checked=F)}if(C==="option"&&(e.selected&&!m.select?R.selected=!0:delete R.selected),C==="canvas"&&E){if(e.__context==="2d")ZW(e)||(R.rr_dataURL=e.toDataURL(b.type,b.quality));else if(!("__context"in e)){const A=e.toDataURL(b.type,b.quality),D=document.createElement("canvas");D.width=e.width,D.height=e.height;const $=D.toDataURL(b.type,b.quality);A!==$&&(R.rr_dataURL=A)}}if(C==="img"&&v){Lc||(Lc=r.createElement("canvas"),wx=Lc.getContext("2d"));const A=e,D=A.crossOrigin;A.crossOrigin="anonymous";const $=()=>{try{Lc.width=A.naturalWidth,Lc.height=A.naturalHeight,wx.drawImage(A,0,0),R.rr_dataURL=Lc.toDataURL(b.type,b.quality)}catch(F){console.warn(`Cannot inline img src=${A.currentSrc}! Error: ${F}`)}D?R.crossOrigin=D:delete R.crossOrigin};A.complete&&A.naturalWidth!==0?$():A.onload=$}if((C==="audio"||C==="video")&&(R.rr_mediaState=e.paused?"paused":"played",R.rr_mediaCurrentTime=e.currentTime),e.scrollLeft&&(R.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(R.rr_scrollTop=e.scrollTop),O){const{width:A,height:D}=e.getBoundingClientRect();R={class:R.class,rr_width:`${A}px`,rr_height:`${D}px`}}return C==="iframe"&&!y(R.src)&&(e.contentDocument||(R.rr_src=R.src),delete R.src),{type:xr.Element,tagName:C,attributes:R,childNodes:[],isSVG:fK(e)||void 0,needBlock:O,rootId:T};case e.TEXT_NODE:const x=e.parentNode&&e.parentNode.tagName;let I=e.textContent;const k=x==="STYLE"?!0:void 0,L=x==="SCRIPT"?!0:void 0;if(k&&I){try{e.nextSibling||e.previousSibling||!((n=e.parentNode.sheet)===null||n===void 0)&&n.cssRules&&(I=oK(e.parentNode.sheet))}catch(A){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${A}`,e)}I=cm(I,Vv())}if(L&&(I="SCRIPT_PLACEHOLDER"),x==="TEXTAREA"&&I)I="";else if(x==="OPTION"&&I){const A=e.parentNode;I=Rp({input:A,type:null,tagName:x,value:I,maskInputSelector:c,unmaskInputSelector:p,maskInputOptions:m,maskInputFn:h})}else!k&&!L&&Hm(e,s,u,o,f)&&I&&(I=g?g(I):Rk(I));return{type:xr.Text,textContent:I||"",isStyle:k,rootId:T};case e.CDATA_SECTION_NODE:return{type:xr.CDATA,textContent:"",rootId:T};case e.COMMENT_NODE:return{type:xr.Comment,textContent:e.textContent||"",rootId:T};default:return!1}}function Fn(e){return e==null?"":e.toLowerCase()}function bK(e,t){if(t.comment&&e.type===xr.Comment)return!0;if(e.type===xr.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(Fn(e.attributes.name).match(/^msapplication-tile(image|color)$/)||Fn(e.attributes.name)==="application-name"||Fn(e.attributes.rel)==="icon"||Fn(e.attributes.rel)==="apple-touch-icon"||Fn(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&Fn(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Fn(e.attributes.property).match(/^(og|twitter|fb):/)||Fn(e.attributes.name).match(/^(og|twitter):/)||Fn(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(Fn(e.attributes.name)==="robots"||Fn(e.attributes.name)==="googlebot"||Fn(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(Fn(e.attributes.name)==="author"||Fn(e.attributes.name)==="generator"||Fn(e.attributes.name)==="framework"||Fn(e.attributes.name)==="publisher"||Fn(e.attributes.name)==="progid"||Fn(e.attributes.property).match(/^article:/)||Fn(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(Fn(e.attributes.name)==="google-site-verification"||Fn(e.attributes.name)==="yandex-verification"||Fn(e.attributes.name)==="csrf-token"||Fn(e.attributes.name)==="p:domain_verify"||Fn(e.attributes.name)==="verify-v1"||Fn(e.attributes.name)==="verification"||Fn(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function ep(e,t){const{doc:n,map:r,blockClass:i,blockSelector:a,unblockSelector:d,maskTextClass:s,maskTextSelector:u,unmaskTextSelector:o,skipChild:l=!1,inlineStylesheet:c=!0,maskInputSelector:p,unmaskInputSelector:f,maskAllText:m,maskInputOptions:g={},maskTextFn:h,maskInputFn:b,slimDOMOptions:v,dataURLOptions:E={},inlineImages:y=!1,recordCanvas:T=!1,onSerialize:O,onIframeLoad:C,iframeLoadTimeout:R=5e3,keepIframeSrcFn:x=()=>!1}=t;let{preserveWhiteSpace:I=!0}=t;const k=hK(e,{doc:n,blockClass:i,blockSelector:a,unblockSelector:d,maskTextClass:s,maskTextSelector:u,unmaskTextSelector:o,inlineStylesheet:c,maskInputSelector:p,unmaskInputSelector:f,maskAllText:m,maskInputOptions:g,maskTextFn:h,maskInputFn:b,dataURLOptions:E,inlineImages:y,recordCanvas:T,keepIframeSrcFn:x});if(!k)return console.warn(e,"not serialized"),null;let L;"__sn"in e?L=e.__sn.id:bK(k,v)||!I&&k.type===xr.Text&&!k.isStyle&&!k.textContent.replace(/^\s+|\s+$/gm,"").length?L=xp:L=tK();const A=Object.assign(k,{id:L});if(e.__sn=A,L===xp)return null;r[L]=e,O&&O(e);let D=!l;if(A.type===xr.Element&&(D=D&&!A.needBlock,delete A.needBlock,e.shadowRoot&&(A.isShadowHost=!0)),(A.type===xr.Document||A.type===xr.Element)&&D){v.headWhitespace&&k.type===xr.Element&&k.tagName==="head"&&(I=!1);const $={doc:n,map:r,blockClass:i,blockSelector:a,unblockSelector:d,maskTextClass:s,maskTextSelector:u,unmaskTextSelector:o,skipChild:l,inlineStylesheet:c,maskInputSelector:p,unmaskInputSelector:f,maskAllText:m,maskInputOptions:g,maskTextFn:h,maskInputFn:b,slimDOMOptions:v,dataURLOptions:E,inlineImages:y,recordCanvas:T,preserveWhiteSpace:I,onSerialize:O,onIframeLoad:C,iframeLoadTimeout:R,keepIframeSrcFn:x};for(const F of Array.from(e.childNodes)){const z=ep(F,$);z&&A.childNodes.push(z)}if(QW(e)&&e.shadowRoot)for(const F of Array.from(e.shadowRoot.childNodes)){const z=ep(F,$);z&&(z.isShadow=!0,A.childNodes.push(z))}}return e.parentNode&&Jd(e.parentNode)&&(A.isShadow=!0),A.type===xr.Element&&A.tagName==="iframe"&&gK(e,()=>{const $=e.contentDocument;if($&&C){const F=ep($,{doc:$,map:r,blockClass:i,blockSelector:a,unblockSelector:d,maskTextClass:s,maskTextSelector:u,unmaskTextSelector:o,skipChild:!1,inlineStylesheet:c,maskInputSelector:p,unmaskInputSelector:f,maskAllText:m,maskInputOptions:g,maskTextFn:h,maskInputFn:b,slimDOMOptions:v,dataURLOptions:E,inlineImages:y,recordCanvas:T,preserveWhiteSpace:I,onSerialize:O,onIframeLoad:C,iframeLoadTimeout:R,keepIframeSrcFn:x});F&&C(e,F)}},R),A}function SK(e,t){const{blockClass:n="rr-block",blockSelector:r=null,unblockSelector:i=null,maskTextClass:a="rr-mask",maskTextSelector:d=null,unmaskTextSelector:s=null,inlineStylesheet:u=!0,inlineImages:o=!1,recordCanvas:l=!1,maskInputSelector:c=null,unmaskInputSelector:p=null,maskAllText:f=!1,maskAllInputs:m=!1,maskTextFn:g,maskInputFn:h,slimDOM:b=!1,dataURLOptions:v,preserveWhiteSpace:E,onSerialize:y,onIframeLoad:T,iframeLoadTimeout:O,keepIframeSrcFn:C=()=>!1}=t||{},R={};return[ep(e,{doc:e,map:R,blockClass:n,blockSelector:r,unblockSelector:i,maskTextClass:a,maskTextSelector:d,unmaskTextSelector:s,skipChild:!1,inlineStylesheet:u,maskInputSelector:c,unmaskInputSelector:p,maskAllText:f,maskInputOptions:m===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:m===!1?{}:m,maskTextFn:g,maskInputFn:h,slimDOMOptions:b===!0||b==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:b==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:b===!1?{}:b,dataURLOptions:v,inlineImages:o,recordCanvas:l,preserveWhiteSpace:E,onSerialize:y,onIframeLoad:T,iframeLoadTimeout:O,keepIframeSrcFn:C}),R]}function vK(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}var Cn;(function(e){e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin"})(Cn||(Cn={}));var Fr;(function(e){e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration"})(Fr||(Fr={}));var zm;(function(e){e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel"})(zm||(zm={}));var Au;(function(e){e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2"})(Au||(Au={}));var Rx;(function(e){e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange"})(Rx||(Rx={}));var xx;(function(e){e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back"})(xx||(xx={}));function $i(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}function EK(){return{map:{},getId(e){return!e||!e.__sn?-1:e.__sn.id},getNode(e){return this.map[e]||null},removeNodeFromMap(e){const t=e.__sn&&e.__sn.id;delete this.map[t],e.childNodes&&e.childNodes.forEach(n=>this.removeNodeFromMap(n))},has(e){return this.map.hasOwnProperty(e)},reset(){this.map={}}}}const Vc=`Please stop import mirror directly. Instead of that,\r now you can use replayer.getMirror() to access the mirror instance of a replayer,\r -or you can use record.mirror to access the mirror instance during recording.`;let Ix={map:{},getId(){return console.error(Vc),-1},getNode(){return console.error(Vc),null},removeNodeFromMap(){console.error(Vc)},has(){return console.error(Vc),!1},reset(){console.error(Vc)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Ix=new Proxy(Ix,{get(e,t,n){return t==="map"&&console.error(Vc),Reflect.get(e,t,n)}}));function Ip(e,t,n={}){let r=null,i=0;return function(a){let d=Date.now();!i&&n.leading===!1&&(i=d);let s=t-(d-i),u=this,o=arguments;s<=0||s>t?(r&&(clearTimeout(r),r=null),i=d,e.apply(u,o)):!r&&n.trailing!==!1&&(r=setTimeout(()=>{i=n.leading===!1?0:Date.now(),r=null,e.apply(u,o)},s))}}function Xg(e,t,n,r,i=window){const a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(d){setTimeout(()=>{n.set.call(this,d)},0),a&&a.set&&a.set.call(this,d)}}),()=>Xg(e,t,a||{},!0)}function Du(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],i=n(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}function Nk(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Ak(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ui(e,t,n,r){if(!e)return!1;if(e.nodeType===e.ELEMENT_NODE){let i=!1;const a=r&&e.matches(r);return typeof t=="string"?e.closest!==void 0?i=!a&&e.closest("."+t)!==null:i=!a&&e.classList.contains(t):!a&&e.classList.forEach(d=>{t.test(d)&&(i=!0)}),!i&&n&&(i=e.matches(n)),!a&&i||ui(e.parentNode,t,n,r)}return e.nodeType===e.TEXT_NODE,ui(e.parentNode,t,n,r)}function rS(e){return"__sn"in e?e.__sn.id===xp:!1}function Dk(e,t){if(Jd(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?Dk(e.parentNode,t):!0:!0}function Mk(e){return Boolean(e.changedTouches)}function yK(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(n){if(!(0 in arguments))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function kk(e){return"__sn"in e?e.__sn.type===xr.Element&&e.__sn.tagName==="iframe":!1}function Pk(e){return Boolean(e==null?void 0:e.shadowRoot)}function Nx(e){return"__ln"in e}class CK{constructor(){this.length=0,this.head=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r`${e}@${t}`;function Dx(e){return"__sn"in e}class TK{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new CK,r=s=>{let u=s,o=xp;for(;o===xp;)u=u&&u.nextSibling,o=u&&this.mirror.getId(u);return o},i=s=>{var u,o,l,c,p;const f=s.getRootNode?(u=s.getRootNode())===null||u===void 0?void 0:u.host:null;let m=f;for(;!((l=(o=m==null?void 0:m.getRootNode)===null||o===void 0?void 0:o.call(m))===null||l===void 0)&&l.host;)m=((p=(c=m==null?void 0:m.getRootNode)===null||c===void 0?void 0:c.call(m))===null||p===void 0?void 0:p.host)||null;const g=!this.doc.contains(s)&&(!m||!this.doc.contains(m));if(!s.parentNode||g)return;const h=Jd(s.parentNode)?this.mirror.getId(f):this.mirror.getId(s.parentNode),b=r(s);if(h===-1||b===-1)return n.addNode(s);let v=ep(s,{doc:this.doc,map:this.mirror.map,blockClass:this.blockClass,blockSelector:this.blockSelector,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,skipChild:!0,inlineStylesheet:this.inlineStylesheet,maskAllText:this.maskAllText,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:E=>{kk(E)&&this.iframeManager.addIframe(E),Pk(s)&&this.shadowDomManager.addShadowRoot(s.shadowRoot,document)},onIframeLoad:(E,y)=>{this.iframeManager.attachIframe(E,y),this.shadowDomManager.observeAttachShadow(E)}});v&&t.push({parentId:h,nextId:b,node:v})};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const s of this.movedSet)jv(this.removes,s,this.mirror)&&!this.movedSet.has(s.parentNode)||i(s);for(const s of this.addedSet)!Wv(this.droppedSet,s)&&!jv(this.removes,s,this.mirror)||Wv(this.movedSet,s)?i(s):this.droppedSet.add(s);let a=null;for(;n.length;){let s=null;if(a){const u=this.mirror.getId(a.value.parentNode),o=r(a.value);u!==-1&&o!==-1&&(s=a)}if(!s)for(let u=n.length-1;u>=0;u--){const o=n.get(u);if(o){const l=this.mirror.getId(o.value.parentNode),c=r(o.value);if(l!==-1&&c!==-1){s=o;break}}}if(!s){for(;n.head;)n.removeNode(n.head.value);break}a=s.previous,n.removeNode(s.value),i(s.value)}const d={texts:this.texts.map(s=>({id:this.mirror.getId(s.node),value:s.value})).filter(s=>this.mirror.has(s.id)),attributes:this.attributes.map(s=>({id:this.mirror.getId(s.node),attributes:s.attributes})).filter(s=>this.mirror.has(s.id)),removes:this.removes,adds:t};!d.texts.length&&!d.attributes.length&&!d.removes.length&&!d.adds.length||(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(d))},this.processMutation=t=>{if(!rS(t.target))switch(t.type){case"characterData":{const n=t.target.textContent;!ui(t.target,this.blockClass,this.blockSelector,this.unblockSelector)&&n!==t.oldValue&&this.texts.push({value:Hm(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=n.getAttribute(t.attributeName);if(t.attributeName==="value"&&(r=Rp({input:n,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,maskInputOptions:this.maskInputOptions,tagName:n.tagName,type:n.getAttribute("type"),value:r,maskInputFn:this.maskInputFn})),ui(t.target,this.blockClass,this.blockSelector,this.unblockSelector)||r===t.oldValue)return;let i=this.attributes.find(a=>a.node===t.target);if(i||(i={node:t.target,attributes:{}},this.attributes.push(i)),t.attributeName==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),t.attributeName==="style"){const a=this.doc.createElement("span");t.oldValue&&a.setAttribute("style",t.oldValue),(i.attributes.style===void 0||i.attributes.style===null)&&(i.attributes.style={});try{const d=i.attributes.style;for(const s of Array.from(n.style)){const u=n.style.getPropertyValue(s),o=n.style.getPropertyPriority(s);(u!==a.style.getPropertyValue(s)||o!==a.style.getPropertyPriority(s))&&(o===""?d[s]=u:d[s]=[u,o])}for(const s of Array.from(a.style))n.style.getPropertyValue(s)===""&&(d[s]=!1)}catch(d){console.warn("[rrweb] Error when parsing update to style attribute:",d)}}else{const a=t.target;i.attributes[t.attributeName]=Ik(this.doc,a,a.tagName,t.attributeName,r,this.maskAllText,this.unmaskTextSelector,this.maskTextFn)}break}case"childList":{t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),i=Jd(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);ui(t.target,this.blockClass,this.blockSelector,this.unblockSelector)||rS(n)||(this.addedSet.has(n)?(qv(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||Dk(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[Ax(r,i)]?qv(this.movedSet,n):this.removes.push({parentId:i,id:r,isShadow:Jd(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!(n&&ui(n,this.blockClass,this.blockSelector,this.unblockSelector))){if(Dx(t)){if(rS(t))return;this.movedSet.add(t);let r=null;n&&Dx(n)&&(r=n.__sn.id),r&&(this.movedMap[Ax(t.__sn.id,r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);ui(t,this.blockClass,this.blockSelector,this.unblockSelector)||t.childNodes.forEach(r=>this.genAdds(r))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskTextClass","maskTextSelector","unmaskTextSelector","maskInputSelector","unmaskInputSelector","inlineStylesheet","maskAllText","maskInputOptions","maskTextFn","maskInputFn","recordCanvas","inlineImages","slimDOMOptions","doc","mirror","iframeManager","shadowDomManager","canvasManager"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function qv(e,t){e.delete(t),t.childNodes.forEach(n=>qv(e,n))}function jv(e,t,n){const{parentNode:r}=t;if(!r)return!1;const i=n.getId(r);return e.some(a=>a.id===i)?!0:jv(e,r,n)}function Wv(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:Wv(e,n):!1}const un=e=>(...n)=>{try{return e(...n)}catch(r){try{r.__rrweb__=!0}catch{}throw r}},Ol=[];function sf(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function Lk(e,t){var n,r;const i=new TK;Ol.push(i),i.init(e);let a=window.MutationObserver||window.__rrMutationObserver;const d=(r=(n=window==null?void 0:window.Zone)===null||n===void 0?void 0:n.__symbol__)===null||r===void 0?void 0:r.call(n,"MutationObserver");d&&window[d]&&(a=window[d]);const s=new a(un(u=>{e.onMutation&&e.onMutation(u)===!1||i.processMutations(u)}));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function OK({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const i=typeof t.mousemove=="number"?t.mousemove:50,a=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let d=[],s;const u=Ip(c=>{const p=Date.now()-s;un(e)(d.map(f=>(f.timeOffset-=p,f)),c),d=[],s=null},a),o=Ip(c=>{const p=sf(c),{clientX:f,clientY:m}=Mk(c)?c.changedTouches[0]:c;s||(s=Date.now()),d.push({x:f,y:m,id:r.getId(p),timeOffset:Date.now()-s}),u(typeof DragEvent<"u"&&c instanceof DragEvent?Fr.Drag:c instanceof MouseEvent?Fr.MouseMove:Fr.TouchMove)},i,{trailing:!1}),l=[$i("mousemove",un(o),n),$i("touchmove",un(o),n),$i("drag",un(o),n)];return un(()=>{l.forEach(c=>c())})}function wK({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,sampling:d}){if(d.mouseInteraction===!1)return()=>{};const s=d.mouseInteraction===!0||d.mouseInteraction===void 0?{}:d.mouseInteraction,u=[],o=l=>c=>{const p=sf(c);if(ui(p,r,i,a))return;const f=Mk(c)?c.changedTouches[0]:c;if(!f)return;const m=n.getId(p),{clientX:g,clientY:h}=f;un(e)({type:zm[l],id:m,x:g,y:h})};return Object.keys(zm).filter(l=>Number.isNaN(Number(l))&&!l.endsWith("_Departed")&&s[l]!==!1).forEach(l=>{const c=l.toLowerCase(),p=un(o(l));u.push($i(c,p,t))}),un(()=>{u.forEach(l=>l())})}function $k({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,sampling:d}){const s=Ip(u=>{const o=sf(u);if(!o||ui(o,r,i,a))return;const l=n.getId(o);if(o===t){const c=t.scrollingElement||t.documentElement;un(e)({id:l,x:c.scrollLeft,y:c.scrollTop})}else un(e)({id:l,x:o.scrollLeft,y:o.scrollTop})},d.scroll||100);return $i("scroll",un(s),t)}function RK({viewportResizeCb:e}){let t=-1,n=-1;const r=Ip(()=>{const i=Nk(),a=Ak();(t!==i||n!==a)&&(un(e)({width:Number(a),height:Number(i)}),t=i,n=a)},200);return $i("resize",un(r),window)}function Mx(e,t){const n=Object.assign({},e);return t||delete n.userTriggered,n}const xK=["INPUT","TEXTAREA","SELECT"],kx=new WeakMap;function IK({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,ignoreClass:d,ignoreSelector:s,maskInputSelector:u,unmaskInputSelector:o,maskInputOptions:l,maskInputFn:c,sampling:p,userTriggeredOnInput:f}){function m(y){let T=sf(y);const O=T&&T.tagName,C=y.isTrusted;if(O==="OPTION"&&(T=T.parentElement),!T||!O||xK.indexOf(O)<0||ui(T,r,i,a))return;const R=T,x=wk(R);if(R.classList.contains(d)||s&&R.matches(s))return;let I=zv(R,O,x),k=!1;(x==="radio"||x==="checkbox")&&(k=T.checked),X9({maskInputOptions:l,maskInputSelector:u,tagName:O,type:x})&&(I=Rp({input:R,maskInputOptions:l,maskInputSelector:u,unmaskInputSelector:o,tagName:O,type:x,value:I,maskInputFn:c})),g(T,un(Mx)({text:I,isChecked:k,userTriggered:C},f));const L=T.name;x==="radio"&&L&&k&&t.querySelectorAll(`input[type="radio"][name="${L}"]`).forEach(A=>{if(A!==T){const D=Rp({input:A,maskInputOptions:l,maskInputSelector:u,unmaskInputSelector:o,tagName:O,type:x,value:zv(A,O,x),maskInputFn:c});g(A,un(Mx)({text:D,isChecked:!k,userTriggered:!1},f))}})}function g(y,T){const O=kx.get(y);if(!O||O.text!==T.text||O.isChecked!==T.isChecked){kx.set(y,T);const C=n.getId(y);e(Object.assign(Object.assign({},T),{id:C}))}}const b=(p.input==="last"?["change"]:["input","change"]).map(y=>$i(y,un(m),t)),v=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),E=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"],[HTMLSelectElement.prototype,"selectedIndex"],[HTMLOptionElement.prototype,"selected"]];return v&&v.set&&b.push(...E.map(y=>Xg(y[0],y[1],{set(){un(m)({target:this})}}))),un(()=>{b.forEach(y=>y())})}function Ym(e){const t=[];function n(r,i){if(D_("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||D_("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||D_("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||D_("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const d=Array.from(r.parentRule.cssRules).indexOf(r);i.unshift(d)}else{const d=Array.from(r.parentStyleSheet.cssRules).indexOf(r);i.unshift(d)}return i}return n(e,t)}function NK({styleSheetRuleCb:e,mirror:t},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};const r=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(r,{apply:un((s,u,o)=>{const[l,c]=o,p=t.getId(u.ownerNode);return p!==-1&&e({id:p,adds:[{rule:l,index:c}]}),s.apply(u,o)})});const i=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:un((s,u,o)=>{const[l]=o,c=t.getId(u.ownerNode);return c!==-1&&e({id:c,removes:[{index:l}]}),s.apply(u,o)})});const a={};M_("CSSGroupingRule")?a.CSSGroupingRule=n.CSSGroupingRule:(M_("CSSMediaRule")&&(a.CSSMediaRule=n.CSSMediaRule),M_("CSSConditionRule")&&(a.CSSConditionRule=n.CSSConditionRule),M_("CSSSupportsRule")&&(a.CSSSupportsRule=n.CSSSupportsRule));const d={};return Object.entries(a).forEach(([s,u])=>{d[s]={insertRule:u.prototype.insertRule,deleteRule:u.prototype.deleteRule},u.prototype.insertRule=new Proxy(d[s].insertRule,{apply:un((o,l,c)=>{const[p,f]=c,m=t.getId(l.parentStyleSheet.ownerNode);return m!==-1&&e({id:m,adds:[{rule:p,index:[...Ym(l),f||0]}]}),o.apply(l,c)})}),u.prototype.deleteRule=new Proxy(d[s].deleteRule,{apply:un((o,l,c)=>{const[p]=c,f=t.getId(l.parentStyleSheet.ownerNode);return f!==-1&&e({id:f,removes:[{index:[...Ym(l),p]}]}),o.apply(l,c)})})}),un(()=>{n.CSSStyleSheet.prototype.insertRule=r,n.CSSStyleSheet.prototype.deleteRule=i,Object.entries(a).forEach(([s,u])=>{u.prototype.insertRule=d[s].insertRule,u.prototype.deleteRule=d[s].deleteRule})})}function AK({styleDeclarationCb:e,mirror:t},{win:n}){const r=n.CSSStyleDeclaration.prototype.setProperty;n.CSSStyleDeclaration.prototype.setProperty=new Proxy(r,{apply:un((a,d,s)=>{var u,o;const[l,c,p]=s,f=t.getId((o=(u=d.parentRule)===null||u===void 0?void 0:u.parentStyleSheet)===null||o===void 0?void 0:o.ownerNode);return f!==-1&&e({id:f,set:{property:l,value:c,priority:p},index:Ym(d.parentRule)}),a.apply(d,s)})});const i=n.CSSStyleDeclaration.prototype.removeProperty;return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:un((a,d,s)=>{var u,o;const[l]=s,c=t.getId((o=(u=d.parentRule)===null||u===void 0?void 0:u.parentStyleSheet)===null||o===void 0?void 0:o.ownerNode);return c!==-1&&e({id:c,remove:{property:l},index:Ym(d.parentRule)}),a.apply(d,s)})}),un(()=>{n.CSSStyleDeclaration.prototype.setProperty=r,n.CSSStyleDeclaration.prototype.removeProperty=i})}function DK({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:a}){const d=u=>Ip(un(o=>{const l=sf(o);if(!l||ui(l,t,n,r))return;const{currentTime:c,volume:p,muted:f}=l;e({type:u,id:i.getId(l),currentTime:c,volume:p,muted:f})}),a.media||500),s=[$i("play",d(0)),$i("pause",d(1)),$i("seeked",d(2)),$i("volumechange",d(3))];return un(()=>{s.forEach(u=>u())})}function MK({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],i=new WeakMap,a=n.FontFace;n.FontFace=function(u,o,l){const c=new a(u,o,l);return i.set(c,{family:u,buffer:typeof o!="string",descriptors:l,fontSource:typeof o=="string"?o:JSON.stringify(Array.from(new Uint8Array(o)))}),c};const d=Du(t.fonts,"add",function(s){return function(u){return setTimeout(()=>{const o=i.get(u);o&&(e(o),i.delete(u))},0),s.apply(this,[u])}});return r.push(()=>{n.FontFace=a}),r.push(d),un(()=>{r.forEach(s=>s())})}function kK(e,t){const{mutationCb:n,mousemoveCb:r,mouseInteractionCb:i,scrollCb:a,viewportResizeCb:d,inputCb:s,mediaInteractionCb:u,styleSheetRuleCb:o,styleDeclarationCb:l,canvasMutationCb:c,fontCb:p}=e;e.mutationCb=(...f)=>{t.mutation&&t.mutation(...f),n(...f)},e.mousemoveCb=(...f)=>{t.mousemove&&t.mousemove(...f),r(...f)},e.mouseInteractionCb=(...f)=>{t.mouseInteraction&&t.mouseInteraction(...f),i(...f)},e.scrollCb=(...f)=>{t.scroll&&t.scroll(...f),a(...f)},e.viewportResizeCb=(...f)=>{t.viewportResize&&t.viewportResize(...f),d(...f)},e.inputCb=(...f)=>{t.input&&t.input(...f),s(...f)},e.mediaInteractionCb=(...f)=>{t.mediaInteaction&&t.mediaInteaction(...f),u(...f)},e.styleSheetRuleCb=(...f)=>{t.styleSheetRule&&t.styleSheetRule(...f),o(...f)},e.styleDeclarationCb=(...f)=>{t.styleDeclaration&&t.styleDeclaration(...f),l(...f)},e.canvasMutationCb=(...f)=>{t.canvasMutation&&t.canvasMutation(...f),c(...f)},e.fontCb=(...f)=>{t.font&&t.font(...f),p(...f)}}function PK(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};kK(e,t);const r=Lk(e,e.doc),i=OK(e),a=wK(e),d=$k(e),s=RK(e),u=IK(e),o=DK(e),l=NK(e,{win:n}),c=AK(e,{win:n}),p=e.collectFonts?MK(e):()=>{},f=[];for(const m of e.plugins)f.push(m.observer(m.callback,n,m.options));return un(()=>{Ol.forEach(m=>m.reset()),r.disconnect(),i(),a(),d(),s(),u(),o();try{l(),c()}catch{}p(),f.forEach(m=>m())})}function D_(e){return typeof window[e]<"u"}function M_(e){return Boolean(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class LK{constructor(t){this.iframes=new WeakMap,this.mutationCb=t.mutationCb}addIframe(t){this.iframes.set(t,!0)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){var r;this.mutationCb({adds:[{parentId:t.__sn.id,nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),(r=this.loadListener)===null||r===void 0||r.call(this,t)}}class $K{constructor(t){this.restorePatches=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror;const n=this;this.restorePatches.push(Du(HTMLElement.prototype,"attachShadow",function(r){return function(){const i=r.apply(this,arguments);return this.shadowRoot&&n.addShadowRoot(this.shadowRoot,this.ownerDocument),i}}))}addShadowRoot(t,n){Lk(Object.assign(Object.assign({},this.bypassOptions),{doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t),$k(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))}observeAttachShadow(t){if(t.contentWindow){const n=this;this.restorePatches.push(Du(t.contentWindow.HTMLElement.prototype,"attachShadow",function(r){return function(){const i=r.apply(this,arguments);return this.shadowRoot&&n.addShadowRoot(this.shadowRoot,t.contentDocument),i}}))}}reset(){this.restorePatches.forEach(t=>t())}}function FK(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const p=[...c];if(u==="drawImage"&&p[0]&&p[0]instanceof HTMLCanvasElement){const f=p[0],m=f.getContext("2d");let g=m==null?void 0:m.getImageData(0,0,f.width,f.height),h=g==null?void 0:g.data;p[0]=JSON.stringify(h)}e(this.canvas,{type:Au["2D"],property:u,args:p})},0),l.apply(this,c)}});d.push(o)}catch{const l=Xg(t.CanvasRenderingContext2D.prototype,u,{set(c){e(this.canvas,{type:Au["2D"],property:u,args:[c],setter:!0})}});d.push(l)}return()=>{d.forEach(u=>u())}}function UK(e,t,n,r){const i=[];try{const a=Du(e.HTMLCanvasElement.prototype,"getContext",function(d){return function(s,...u){return ui(this,t,n,r)||"__context"in this||(this.__context=s),d.apply(this,[s,...u])}});i.push(a)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach(a=>a())}}var Qc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",GK=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var k_=0;k_>2],i+=Qc[(t[n]&3)<<4|t[n+1]>>4],i+=Qc[(t[n+1]&15)<<2|t[n+2]>>6],i+=Qc[t[n+2]&63];return r%3===2?i=i.substring(0,i.length-1)+"=":r%3===1&&(i=i.substring(0,i.length-2)+"=="),i};const Px=new Map;function zK(e,t){let n=Px.get(e);return n||(n=new Map,Px.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}const Fk=(e,t,n)=>{if(!e||!(Bk(e,t)||typeof e=="object"))return;const r=e.constructor.name,i=zK(n,r);let a=i.indexOf(e);return a===-1&&(a=i.length,i.push(e)),a};function um(e,t,n){if(e instanceof Array)return e.map(r=>um(r,t,n));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const r=e.constructor.name,i=HK(e);return{rr_type:r,base64:i}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[um(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const r=e.constructor.name,{src:i}=e;return{rr_type:r,src:i}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[um(e.data,t,n),e.width,e.height]};if(Bk(e,t)||typeof e=="object"){const r=e.constructor.name,i=Fk(e,t,n);return{rr_type:r,index:i}}}}return e}const YK=(e,t,n)=>[...e].map(r=>um(r,t,n)),Bk=(e,t)=>{const r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(i=>typeof t[i]=="function");return Boolean(r.find(i=>e instanceof t[i]))};function Lx(e,t,n,r,i,a,d,s){const u=[],o=Object.getOwnPropertyNames(e);for(const l of o)try{if(typeof e[l]!="function")continue;const c=Du(e,l,function(p){return function(...f){const m=p.apply(this,f);if(Fk(m,s,e),!ui(this.canvas,r,a,i)){const g=d.getId(this.canvas),h=YK([...f],s,e),b={type:t,property:l,args:h};n(this.canvas,b)}return m}});u.push(c)}catch{const p=Xg(e,l,{set(f){n(this.canvas,{type:t,property:l,args:[f],setter:!0})}});u.push(p)}return u}function VK(e,t,n,r,i,a){const d=[];return d.push(...Lx(t.WebGLRenderingContext.prototype,Au.WebGL,e,n,r,i,a,t)),typeof t.WebGL2RenderingContext<"u"&&d.push(...Lx(t.WebGL2RenderingContext.prototype,Au.WebGL2,e,n,r,i,a,t)),()=>{d.forEach(s=>s())}}class qK{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(n,r){(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(n)||this.pendingCanvasMutations.set(n,[]),this.pendingCanvasMutations.get(n).push(r)},this.mutationCb=t.mutationCb,this.mirror=t.mirror,t.recordCanvas===!0&&this.initCanvasMutationObserver(t.win,t.blockClass,t.blockSelector,t.unblockSelector)}initCanvasMutationObserver(t,n,r,i){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const a=UK(t,n,i,r),d=BK(this.processMutation.bind(this),t,n,i,r,this.mirror),s=VK(this.processMutation.bind(this),t,n,i,r,this.mirror);this.resetObservers=()=>{a(),d(),s()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=n=>{this.rafStamps.latestId=n,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,n)=>{const r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,n){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(t);if(!r||n===-1)return;const i=r.map(d=>FK(d,["type"])),{type:a}=r[0];this.mutationCb({id:n,type:a,commands:i}),this.pendingCanvasMutations.delete(t)}}function $r(e){return Object.assign(Object.assign({},e),{timestamp:Date.now()})}let Sr,tp;const Bd=EK();function Vl(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i="rr-block",blockSelector:a=null,unblockSelector:d=null,ignoreClass:s="rr-ignore",ignoreSelector:u=null,maskTextClass:o="rr-mask",maskTextSelector:l=null,maskInputSelector:c=null,unmaskTextSelector:p=null,unmaskInputSelector:f=null,inlineStylesheet:m=!0,maskAllText:g=!1,maskAllInputs:h,maskInputOptions:b,slimDOMOptions:v,maskInputFn:E,maskTextFn:y,hooks:T,packFn:O,sampling:C={},mousemoveWait:R,recordCanvas:x=!1,userTriggeredOnInput:I=!1,collectFonts:k=!1,inlineImages:L=!1,plugins:A,keepIframeSrcFn:D=()=>!1,onMutation:$}=e;if(!t)throw new Error("emit function is required");R!==void 0&&C.mousemove===void 0&&(C.mousemove=R);const F=h===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:b!==void 0?b:{},z=v===!0||v==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:v==="all",headMetaDescKeywords:v==="all"}:v||{};yK();let H,V=0;const W=q=>{for(const se of A||[])se.eventProcessor&&(q=se.eventProcessor(q));return O&&(q=O(q)),q};Sr=(q,se)=>{var re;if(((re=Ol[0])===null||re===void 0?void 0:re.isFrozen())&&q.type!==Cn.FullSnapshot&&!(q.type===Cn.IncrementalSnapshot&&q.data.source===Fr.Mutation)&&Ol.forEach(_e=>_e.unfreeze()),t(W(q),se),q.type===Cn.FullSnapshot)H=q,V=0;else if(q.type===Cn.IncrementalSnapshot){if(q.data.source===Fr.Mutation&&q.data.isAttachIframe)return;V++;const _e=r&&V>=r,me=n&&q.timestamp-H.timestamp>n;(_e||me)&&tp(!0)}};const te=q=>{Sr($r({type:Cn.IncrementalSnapshot,data:Object.assign({source:Fr.Mutation},q)}))},X=q=>Sr($r({type:Cn.IncrementalSnapshot,data:Object.assign({source:Fr.Scroll},q)})),ne=q=>Sr($r({type:Cn.IncrementalSnapshot,data:Object.assign({source:Fr.CanvasMutation},q)})),oe=new LK({mutationCb:te}),Q=new qK({recordCanvas:x,mutationCb:ne,win:window,blockClass:i,blockSelector:a,unblockSelector:d,mirror:Bd}),Z=new $K({mutationCb:te,scrollCb:X,bypassOptions:{onMutation:$,blockClass:i,blockSelector:a,unblockSelector:d,maskTextClass:o,maskTextSelector:l,unmaskTextSelector:p,maskInputSelector:c,unmaskInputSelector:f,inlineStylesheet:m,maskAllText:g,maskInputOptions:F,maskTextFn:y,maskInputFn:E,recordCanvas:x,inlineImages:L,sampling:C,slimDOMOptions:z,iframeManager:oe,canvasManager:Q},mirror:Bd});tp=(q=!1)=>{var se,re,_e,me;Sr($r({type:Cn.Meta,data:{href:window.location.href,width:Ak(),height:Nk()}}),q),Ol.forEach(J=>J.lock());const[U,j]=SK(document,{blockClass:i,blockSelector:a,unblockSelector:d,maskTextClass:o,maskTextSelector:l,unmaskTextSelector:p,maskInputSelector:c,unmaskInputSelector:f,inlineStylesheet:m,maskAllText:g,maskAllInputs:F,maskTextFn:y,slimDOM:z,recordCanvas:x,inlineImages:L,onSerialize:J=>{kk(J)&&oe.addIframe(J),Pk(J)&&Z.addShadowRoot(J.shadowRoot,document)},onIframeLoad:(J,pe)=>{oe.attachIframe(J,pe),Z.observeAttachShadow(J)},keepIframeSrcFn:D});if(!U)return console.warn("Failed to snapshot the document");Bd.map=j,Sr($r({type:Cn.FullSnapshot,data:{node:U,initialOffset:{left:window.pageXOffset!==void 0?window.pageXOffset:(document==null?void 0:document.documentElement.scrollLeft)||((re=(se=document==null?void 0:document.body)===null||se===void 0?void 0:se.parentElement)===null||re===void 0?void 0:re.scrollLeft)||(document==null?void 0:document.body.scrollLeft)||0,top:window.pageYOffset!==void 0?window.pageYOffset:(document==null?void 0:document.documentElement.scrollTop)||((me=(_e=document==null?void 0:document.body)===null||_e===void 0?void 0:_e.parentElement)===null||me===void 0?void 0:me.scrollTop)||(document==null?void 0:document.body.scrollTop)||0}}})),Ol.forEach(J=>J.unlock())};try{const q=[];q.push($i("DOMContentLoaded",()=>{Sr($r({type:Cn.DomContentLoaded,data:{}}))}));const se=_e=>{var me;return un(PK)({onMutation:$,mutationCb:te,mousemoveCb:(U,j)=>Sr($r({type:Cn.IncrementalSnapshot,data:{source:j,positions:U}})),mouseInteractionCb:U=>Sr($r({type:Cn.IncrementalSnapshot,data:Object.assign({source:Fr.MouseInteraction},U)})),scrollCb:X,viewportResizeCb:U=>Sr($r({type:Cn.IncrementalSnapshot,data:Object.assign({source:Fr.ViewportResize},U)})),inputCb:U=>Sr($r({type:Cn.IncrementalSnapshot,data:Object.assign({source:Fr.Input},U)})),mediaInteractionCb:U=>Sr($r({type:Cn.IncrementalSnapshot,data:Object.assign({source:Fr.MediaInteraction},U)})),styleSheetRuleCb:U=>Sr($r({type:Cn.IncrementalSnapshot,data:Object.assign({source:Fr.StyleSheetRule},U)})),styleDeclarationCb:U=>Sr($r({type:Cn.IncrementalSnapshot,data:Object.assign({source:Fr.StyleDeclaration},U)})),canvasMutationCb:ne,fontCb:U=>Sr($r({type:Cn.IncrementalSnapshot,data:Object.assign({source:Fr.Font},U)})),blockClass:i,ignoreClass:s,ignoreSelector:u,maskTextClass:o,maskTextSelector:l,unmaskTextSelector:p,maskInputSelector:c,unmaskInputSelector:f,maskInputOptions:F,inlineStylesheet:m,sampling:C,recordCanvas:x,inlineImages:L,userTriggeredOnInput:I,collectFonts:k,doc:_e,maskAllText:g,maskInputFn:E,maskTextFn:y,blockSelector:a,unblockSelector:d,slimDOMOptions:z,mirror:Bd,iframeManager:oe,shadowDomManager:Z,canvasManager:Q,plugins:((me=A==null?void 0:A.filter(U=>U.observer))===null||me===void 0?void 0:me.map(U=>({observer:U.observer,options:U.options,callback:j=>Sr($r({type:Cn.Plugin,data:{plugin:U.name,payload:j}}))})))||[]},T)};oe.addLoadListener(_e=>{try{q.push(se(_e.contentDocument))}catch(me){console.warn(me)}});const re=()=>{tp(),q.push(se(document))};return document.readyState==="interactive"||document.readyState==="complete"?re():q.push($i("load",()=>{Sr($r({type:Cn.Load,data:{}})),re()},window)),()=>{q.forEach(_e=>_e())}}catch(q){console.warn(q)}}Vl.addCustomEvent=(e,t)=>{if(!Sr)throw new Error("please add custom event after start recording");Sr($r({type:Cn.Custom,data:{tag:e,payload:t}}))};Vl.freezePage=()=>{Ol.forEach(e=>e.freeze())};Vl.takeFullSnapshot=e=>{if(!tp)throw new Error("please take full snapshot after start recording");tp(e)};Vl.mirror=Bd;function C0(e){return e>9999999999?e:e*1e3}function jK(e){return e>9999999999?e/1e3:e}function Zg(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:Cn.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:Ts(t,10,1e3)}}),t.category==="console")))}const WK="button,a";function T0(e){const t=Uk(e);return!t||!(t instanceof Element)?t:t.closest(WK)||t}function Uk(e){return KK(e)?e.target:e}function KK(e){return typeof e=="object"&&!!e&&"target"in e}let Os;function QK(e){return Os||(Os=[],XK()),Os.push(e),()=>{const t=Os?Os.indexOf(e):-1;t>-1&&Os.splice(t,1)}}function XK(){Ao(nn,"open",function(e){return function(...t){if(Os)try{Os.forEach(n=>n())}catch{}return e.apply(nn,t)}})}function ZK(e,t,n){e.handleClick(t,n)}class np{__init(){this._lastMutation=0}__init2(){this._lastScroll=0}__init3(){this._clicks=[]}constructor(t,n,r=Zg){np.prototype.__init.call(this),np.prototype.__init2.call(this),np.prototype.__init3.call(this),this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const t=()=>{this._lastMutation=P_()},n=()=>{this._lastScroll=P_()},r=QK(()=>{this._lastMutation=P_()}),i=d=>{if(!d.target)return;const s=T0(d);s&&this._handleMultiClick(s)},a=new MutationObserver(t);a.observe(nn.document.documentElement,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),nn.addEventListener("scroll",n,{passive:!0}),nn.addEventListener("click",i,{passive:!0}),this._teardown=()=>{nn.removeEventListener("scroll",n),nn.removeEventListener("click",i),r(),a.disconnect(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(e7(n,this._ignoreSelector)||!t7(t))return;const r={timestamp:jK(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks()}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=P_();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(const r of t){const i=this._clicks.indexOf(r);i>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(i,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scollTimeout,i=t.mutationAfter&&t.mutationAfter<=this._threshold,a=!r&&!i,{clickCount:d,clickBreadcrumb:s}=t;if(a){const u=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,o=u1){const u={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.multiClick",data:{...s.data,url:nn.location.href,route:n.getCurrentRoute(),clickCount:d,metric:!0}};this._addBreadcrumbEvent(n,u)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout(()=>this._checkClicks(),1e3)}}const JK=["A","BUTTON","INPUT"];function e7(e,t){return!!(!JK.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function t7(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function P_(){return Date.now()/1e3}function Fa(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Vm;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(Vm||(Vm={}));const n7=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled"]);function r7(e){const t={};for(const n in e)if(n7.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const i7=e=>t=>{if(!e.isEnabled())return;const n=o7(t);if(!n)return;const r=t.name==="click",i=r&&t.event;r&&e.clickDetector&&i&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&ZK(e.clickDetector,n,T0(t.event)),Zg(e,n)};function Gk(e,t){const n=e&&s7(e)&&e.__sn.type===Vm.Element?e.__sn:null;return{message:t,data:n?{nodeId:n.id,node:{id:n.id,tagName:n.tagName,textContent:e?Array.from(e.childNodes).map(r=>"__sn"in r&&r.__sn.type===Vm.Text&&r.__sn.textContent).filter(Boolean).map(r=>r.trim()).join(""):"",attributes:r7(n.attributes)}}:{}}}function o7(e){const{target:t,message:n}=a7(e);return Fa({category:`ui.${e.name}`,...Gk(t,n)})}function a7(e){const t=e.name==="click";let n,r=null;try{r=t?T0(e.event):Uk(e.event),n=b0(r,{maxStringLength:200})||""}catch{n=""}return{target:r,message:n}}function s7(e){return"__sn"in e}function l7(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=c7(t);!n||Zg(e,n)}function c7(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:a,target:d}=e;if(!d||u7(d)||!a)return null;const s=t||r||i,u=a.length===1;if(!s&&u)return null;const o=b0(d,{maxStringLength:200})||"",l=Gk(d,o);return Fa({category:"ui.keyDown",message:o,data:{...l.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:a}})}function u7(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const d7=["name","type","startTime","transferSize","duration"];function $x(e){return function(t){return d7.every(n=>e[n]===t[n])}}function p7(e,t){const[n,r,i]=e.reduce((u,o)=>(o.entryType==="navigation"?u[0].push(o):o.entryType==="largest-contentful-paint"?u[1].push(o):u[2].push(o),u),[[],[],[]]),a=[],d=[];let s=r.length?r[r.length-1]:void 0;return t.forEach(u=>{if(u.entryType==="largest-contentful-paint"){(!s||s.startTime0&&!n.find($x(o))&&!d.find($x(o))&&d.push(o);return}a.push(u)}),[...s?[s]:[],...n,...i,...a,...d].sort((u,o)=>u.startTime-o.startTime)}function f7(e){const t=r=>{const i=p7(e.performanceEvents,r.getEntries());e.performanceEvents=i},n=new PerformanceObserver(t);return["element","event","first-input","largest-contentful-paint","layout-shift","longtask","navigation","paint","resource"].forEach(r=>{try{n.observe({type:r,buffered:!0})}catch{}}),n}const _7=`/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */ -function t(t){let e=t.length;for(;--e>=0;)t[e]=0}const e=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),a=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),i=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),n=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=new Array(576);t(s);const r=new Array(60);t(r);const o=new Array(512);t(o);const l=new Array(256);t(l);const h=new Array(29);t(h);const d=new Array(30);function _(t,e,a,i,n){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=i,this.max_length=n,this.has_stree=t&&t.length}let f,c,u;function w(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}t(d);const m=t=>t<256?o[t]:o[256+(t>>>7)],b=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},g=(t,e,a)=>{t.bi_valid>16-a?(t.bi_buf|=e<>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<{g(t,a[2*e],a[2*e+1])},k=(t,e)=>{let a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},v=(t,e,a)=>{const i=new Array(16);let n,s,r=0;for(n=1;n<=15;n++)r=r+a[n-1]<<1,i[n]=r;for(s=0;s<=e;s++){let e=t[2*s+1];0!==e&&(t[2*s]=k(i[e]++,e))}},y=t=>{let e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},x=t=>{t.bi_valid>8?b(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},z=(t,e,a,i)=>{const n=2*e,s=2*a;return t[n]{const i=t.heap[a];let n=a<<1;for(;n<=t.heap_len&&(n{let s,r,o,_,f=0;if(0!==t.sym_next)do{s=255&t.pending_buf[t.sym_buf+f++],s+=(255&t.pending_buf[t.sym_buf+f++])<<8,r=t.pending_buf[t.sym_buf+f++],0===s?p(t,r,i):(o=l[r],p(t,o+256+1,i),_=e[o],0!==_&&(r-=h[o],g(t,r,_)),s--,o=m(s),p(t,o,n),_=a[o],0!==_&&(s-=d[o],g(t,s,_)))}while(f{const a=e.dyn_tree,i=e.stat_desc.static_tree,n=e.stat_desc.has_stree,s=e.stat_desc.elems;let r,o,l,h=-1;for(t.heap_len=0,t.heap_max=573,r=0;r>1;r>=1;r--)A(t,a,r);l=s;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],A(t,a,1),o=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=o,a[2*l]=a[2*r]+a[2*o],t.depth[l]=(t.depth[r]>=t.depth[o]?t.depth[r]:t.depth[o])+1,a[2*r+1]=a[2*o+1]=l,t.heap[1]=l++,A(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const a=e.dyn_tree,i=e.max_code,n=e.stat_desc.static_tree,s=e.stat_desc.has_stree,r=e.stat_desc.extra_bits,o=e.stat_desc.extra_base,l=e.stat_desc.max_length;let h,d,_,f,c,u,w=0;for(f=0;f<=15;f++)t.bl_count[f]=0;for(a[2*t.heap[t.heap_max]+1]=0,h=t.heap_max+1;h<573;h++)d=t.heap[h],f=a[2*a[2*d+1]+1]+1,f>l&&(f=l,w++),a[2*d+1]=f,d>i||(t.bl_count[f]++,c=0,d>=o&&(c=r[d-o]),u=a[2*d],t.opt_len+=u*(f+c),s&&(t.static_len+=u*(n[2*d+1]+c)));if(0!==w){do{for(f=l-1;0===t.bl_count[f];)f--;t.bl_count[f]--,t.bl_count[f+1]+=2,t.bl_count[l]--,w-=2}while(w>0);for(f=l;0!==f;f--)for(d=t.bl_count[f];0!==d;)_=t.heap[--h],_>i||(a[2*_+1]!==f&&(t.opt_len+=(f-a[2*_+1])*a[2*_],a[2*_+1]=f),d--)}})(t,e),v(a,h,t.bl_count)},Z=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),e[2*(a+1)+1]=65535,i=0;i<=a;i++)n=r,r=e[2*(i+1)+1],++o{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),i=0;i<=a;i++)if(n=r,r=e[2*(i+1)+1],!(++o{g(t,0+(i?1:0),3),x(t),b(t,a),b(t,~a),a&&t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a};var T=(t,e,a,i)=>{let o,l,h=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),R(t,t.l_desc),R(t,t.d_desc),h=(t=>{let e;for(Z(t,t.dyn_ltree,t.l_desc.max_code),Z(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*n[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),o=t.opt_len+3+7>>>3,l=t.static_len+3+7>>>3,l<=o&&(o=l)):o=l=a+5,a+4<=o&&-1!==e?D(t,e,a,i):4===t.strategy||l===o?(g(t,2+(i?1:0),3),E(t,s,r)):(g(t,4+(i?1:0),3),((t,e,a,i)=>{let s;for(g(t,e-257,5),g(t,a-1,5),g(t,i-4,4),s=0;s{S||((()=>{let t,n,w,m,b;const g=new Array(16);for(w=0,m=0;m<28;m++)for(h[m]=w,t=0;t<1<>=7;m<30;m++)for(d[m]=b<<7,t=0;t<1<(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=a,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(l[a]+256+1)]++,t.dyn_dtree[2*m(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{g(t,2,3),p(t,256,s),(t=>{16===t.bi_valid?(b(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)}};var F=(t,e,a,i)=>{let n=65535&t|0,s=t>>>16&65535|0,r=0;for(;0!==a;){r=a>2e3?2e3:a,a-=r;do{n=n+e[i++]|0,s=s+n|0}while(--r);n%=65521,s%=65521}return n|s<<16|0};const L=new Uint32Array((()=>{let t,e=[];for(var a=0;a<256;a++){t=a;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e})());var N=(t,e,a,i)=>{const n=L,s=i+a;t^=-1;for(let a=i;a>>8^n[255&(t^e[a])];return-1^t},I={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},B={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:C,_tr_stored_block:H,_tr_flush_block:M,_tr_tally:j,_tr_align:K}=O,{Z_NO_FLUSH:P,Z_PARTIAL_FLUSH:Y,Z_FULL_FLUSH:G,Z_FINISH:X,Z_BLOCK:W,Z_OK:q,Z_STREAM_END:J,Z_STREAM_ERROR:Q,Z_DATA_ERROR:V,Z_BUF_ERROR:$,Z_DEFAULT_COMPRESSION:tt,Z_FILTERED:et,Z_HUFFMAN_ONLY:at,Z_RLE:it,Z_FIXED:nt,Z_DEFAULT_STRATEGY:st,Z_UNKNOWN:rt,Z_DEFLATED:ot}=B,lt=(t,e)=>(t.msg=I[e],e),ht=t=>2*t-(t>4?9:0),dt=t=>{let e=t.length;for(;--e>=0;)t[e]=0},_t=t=>{let e,a,i,n=t.w_size;e=t.hash_size,i=e;do{a=t.head[--i],t.head[i]=a>=n?a-n:0}while(--e);e=n,i=e;do{a=t.prev[--i],t.prev[i]=a>=n?a-n:0}while(--e)};let ft=(t,e,a)=>(e<{const e=t.state;let a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},ut=(t,e)=>{M(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,ct(t.strm)},wt=(t,e)=>{t.pending_buf[t.pending++]=e},mt=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},bt=(t,e,a,i)=>{let n=t.avail_in;return n>i&&(n=i),0===n?0:(t.avail_in-=n,e.set(t.input.subarray(t.next_in,t.next_in+n),a),1===t.state.wrap?t.adler=F(t.adler,e,n,a):2===t.state.wrap&&(t.adler=N(t.adler,e,n,a)),t.next_in+=n,t.total_in+=n,n)},gt=(t,e)=>{let a,i,n=t.max_chain_length,s=t.strstart,r=t.prev_length,o=t.nice_match;const l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,h=t.window,d=t.w_mask,_=t.prev,f=t.strstart+258;let c=h[s+r-1],u=h[s+r];t.prev_length>=t.good_match&&(n>>=2),o>t.lookahead&&(o=t.lookahead);do{if(a=e,h[a+r]===u&&h[a+r-1]===c&&h[a]===h[s]&&h[++a]===h[s+1]){s+=2,a++;do{}while(h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&sr){if(t.match_start=e,r=i,i>=o)break;c=h[s+r-1],u=h[s+r]}}}while((e=_[e&d])>l&&0!=--n);return r<=t.lookahead?r:t.lookahead},pt=t=>{const e=t.w_size;let a,i,n;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-262)&&(t.window.set(t.window.subarray(e,e+e-i),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),_t(t),i+=e),0===t.strm.avail_in)break;if(a=bt(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=a,t.lookahead+t.insert>=3)for(n=t.strstart-t.insert,t.ins_h=t.window[n],t.ins_h=ft(t,t.ins_h,t.window[n+1]);t.insert&&(t.ins_h=ft(t,t.ins_h,t.window[n+3-1]),t.prev[n&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=n,n++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)},kt=(t,e)=>{let a,i,n,s=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,r=0,o=t.strm.avail_in;do{if(a=65535,n=t.bi_valid+42>>3,t.strm.avail_outi+t.strm.avail_in&&(a=i+t.strm.avail_in),a>n&&(a=n),a>8,t.pending_buf[t.pending-2]=~a,t.pending_buf[t.pending-1]=~a>>8,ct(t.strm),i&&(i>a&&(i=a),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+i),t.strm.next_out),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i,t.block_start+=i,a-=i),a&&(bt(t.strm,t.strm.output,t.strm.next_out,a),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a)}while(0===r);return o-=t.strm.avail_in,o&&(o>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=o&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-o,t.strm.next_in),t.strstart),t.strstart+=o,t.insert+=o>t.w_size-t.insert?t.w_size-t.insert:o),t.block_start=t.strstart),t.high_watern&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,n+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),n>t.strm.avail_in&&(n=t.strm.avail_in),n&&(bt(t.strm,t.window,t.strstart,n),t.strstart+=n,t.insert+=n>t.w_size-t.insert?t.w_size-t.insert:n),t.high_water>3,n=t.pending_buf_size-n>65535?65535:t.pending_buf_size-n,s=n>t.w_size?t.w_size:n,i=t.strstart-t.block_start,(i>=s||(i||e===X)&&e!==P&&0===t.strm.avail_in&&i<=n)&&(a=i>n?n:i,r=e===X&&0===t.strm.avail_in&&a===i?1:0,H(t,t.block_start,a,r),t.block_start+=a,ct(t.strm)),r?3:1)},vt=(t,e)=>{let a,i;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a)),t.match_length>=3)if(i=j(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=ft(t,t.ins_h,t.window[t.strstart+1]);else i=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2},yt=(t,e)=>{let a,i,n;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){n=t.strstart+t.lookahead-3,i=j(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=n&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,i&&(ut(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(i=j(t,0,t.window[t.strstart-1]),i&&ut(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=j(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2};function xt(t,e,a,i,n){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=i,this.func=n}const zt=[new xt(0,0,0,0,kt),new xt(4,4,8,4,vt),new xt(4,5,16,8,vt),new xt(4,6,32,32,vt),new xt(4,4,16,16,yt),new xt(8,16,32,32,yt),new xt(8,16,128,128,yt),new xt(8,32,128,256,yt),new xt(32,128,258,1024,yt),new xt(32,258,258,4096,yt)];function At(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ot,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),dt(this.dyn_ltree),dt(this.dyn_dtree),dt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),dt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),dt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Et=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||42!==e.status&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&113!==e.status&&666!==e.status?1:0},Rt=t=>{if(Et(t))return lt(t,Q);t.total_in=t.total_out=0,t.data_type=rt;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=-2,C(e),q},Zt=t=>{const e=Rt(t);var a;return e===q&&((a=t.state).window_size=2*a.w_size,dt(a.head),a.max_lazy_match=zt[a.level].max_lazy,a.good_match=zt[a.level].good_length,a.nice_match=zt[a.level].nice_length,a.max_chain_length=zt[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=2,a.match_available=0,a.ins_h=0),e},Ut=(t,e,a,i,n,s)=>{if(!t)return Q;let r=1;if(e===tt&&(e=6),i<0?(r=0,i=-i):i>15&&(r=2,i-=16),n<1||n>9||a!==ot||i<8||i>15||e<0||e>9||s<0||s>nt||8===i&&1!==r)return lt(t,Q);8===i&&(i=9);const o=new At;return t.state=o,o.strm=t,o.status=42,o.wrap=r,o.gzhead=null,o.w_bits=i,o.w_size=1<Ut(t,e,ot,15,8,st),deflateInit2:Ut,deflateReset:Zt,deflateResetKeep:Rt,deflateSetHeader:(t,e)=>Et(t)||2!==t.state.wrap?Q:(t.state.gzhead=e,q),deflate:(t,e)=>{if(Et(t)||e>W||e<0)return t?lt(t,Q):Q;const a=t.state;if(!t.output||0!==t.avail_in&&!t.input||666===a.status&&e!==X)return lt(t,0===t.avail_out?$:Q);const i=a.last_flush;if(a.last_flush=e,0!==a.pending){if(ct(t),0===t.avail_out)return a.last_flush=-1,q}else if(0===t.avail_in&&ht(e)<=ht(i)&&e!==X)return lt(t,$);if(666===a.status&&0!==t.avail_in)return lt(t,$);if(42===a.status&&0===a.wrap&&(a.status=113),42===a.status){let e=ot+(a.w_bits-8<<4)<<8,i=-1;if(i=a.strategy>=at||a.level<2?0:a.level<6?1:6===a.level?2:3,e|=i<<6,0!==a.strstart&&(e|=32),e+=31-e%31,mt(a,e),0!==a.strstart&&(mt(a,t.adler>>>16),mt(a,65535&t.adler)),t.adler=1,a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(57===a.status)if(t.adler=0,wt(a,31),wt(a,139),wt(a,8),a.gzhead)wt(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),wt(a,255&a.gzhead.time),wt(a,a.gzhead.time>>8&255),wt(a,a.gzhead.time>>16&255),wt(a,a.gzhead.time>>24&255),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(wt(a,255&a.gzhead.extra.length),wt(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(t.adler=N(t.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69;else if(wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,3),a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q;if(69===a.status){if(a.gzhead.extra){let e=a.pending,i=(65535&a.gzhead.extra.length)-a.gzindex;for(;a.pending+i>a.pending_buf_size;){let n=a.pending_buf_size-a.pending;if(a.pending_buf.set(a.gzhead.extra.subarray(a.gzindex,a.gzindex+n),a.pending),a.pending=a.pending_buf_size,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex+=n,ct(t),0!==a.pending)return a.last_flush=-1,q;e=0,i-=n}let n=new Uint8Array(a.gzhead.extra);a.pending_buf.set(n.subarray(a.gzindex,a.gzindex+i),a.pending),a.pending+=i,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex=0}a.status=73}if(73===a.status){if(a.gzhead.name){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindexi&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),a.gzindex=0}a.status=91}if(91===a.status){if(a.gzhead.comment){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindexi&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i))}a.status=103}if(103===a.status){if(a.gzhead.hcrc){if(a.pending+2>a.pending_buf_size&&(ct(t),0!==a.pending))return a.last_flush=-1,q;wt(a,255&t.adler),wt(a,t.adler>>8&255),t.adler=0}if(a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(0!==t.avail_in||0!==a.lookahead||e!==P&&666!==a.status){let i=0===a.level?kt(a,e):a.strategy===at?((t,e)=>{let a;for(;;){if(0===t.lookahead&&(pt(t),0===t.lookahead)){if(e===P)return 1;break}if(t.match_length=0,a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):a.strategy===it?((t,e)=>{let a,i,n,s;const r=t.window;for(;;){if(t.lookahead<=258){if(pt(t),t.lookahead<=258&&e===P)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=t.strstart-1,i=r[n],i===r[++n]&&i===r[++n]&&i===r[++n])){s=t.strstart+258;do{}while(i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&nt.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=j(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):zt[a.level].func(a,e);if(3!==i&&4!==i||(a.status=666),1===i||3===i)return 0===t.avail_out&&(a.last_flush=-1),q;if(2===i&&(e===Y?K(a):e!==W&&(H(a,0,0,!1),e===G&&(dt(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),ct(t),0===t.avail_out))return a.last_flush=-1,q}return e!==X?q:a.wrap<=0?J:(2===a.wrap?(wt(a,255&t.adler),wt(a,t.adler>>8&255),wt(a,t.adler>>16&255),wt(a,t.adler>>24&255),wt(a,255&t.total_in),wt(a,t.total_in>>8&255),wt(a,t.total_in>>16&255),wt(a,t.total_in>>24&255)):(mt(a,t.adler>>>16),mt(a,65535&t.adler)),ct(t),a.wrap>0&&(a.wrap=-a.wrap),0!==a.pending?q:J)},deflateEnd:t=>{if(Et(t))return Q;const e=t.state.status;return t.state=null,113===e?lt(t,V):q},deflateSetDictionary:(t,e)=>{let a=e.length;if(Et(t))return Q;const i=t.state,n=i.wrap;if(2===n||1===n&&42!==i.status||i.lookahead)return Q;if(1===n&&(t.adler=F(t.adler,e,a,0)),i.wrap=0,a>=i.w_size){0===n&&(dt(i.head),i.strstart=0,i.block_start=0,i.insert=0);let t=new Uint8Array(i.w_size);t.set(e.subarray(a-i.w_size,a),0),e=t,a=i.w_size}const s=t.avail_in,r=t.next_in,o=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,pt(i);i.lookahead>=3;){let t=i.strstart,e=i.lookahead-2;do{i.ins_h=ft(i,i.ins_h,i.window[t+3-1]),i.prev[t&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=t,t++}while(--e);i.strstart=t,i.lookahead=2,pt(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,t.next_in=r,t.input=o,t.avail_in=s,i.wrap=n,q},deflateInfo:"pako deflate (from Nodeca project)"};const Dt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Tt=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const a=e.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(const e in a)Dt(a,e)&&(t[e]=a[e])}}return t},Ot=t=>{let e=0;for(let a=0,i=t.length;a=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Lt[254]=Lt[254]=1;var Nt=t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,i,n,s,r=t.length,o=0;for(n=0;n>>6,e[s++]=128|63&a):a<65536?(e[s++]=224|a>>>12,e[s++]=128|a>>>6&63,e[s++]=128|63&a):(e[s++]=240|a>>>18,e[s++]=128|a>>>12&63,e[s++]=128|a>>>6&63,e[s++]=128|63&a);return e},It=(t,e)=>{const a=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let i,n;const s=new Array(2*a);for(n=0,i=0;i4)s[n++]=65533,i+=r-1;else{for(e&=2===r?31:3===r?15:7;r>1&&i1?s[n++]=65533:e<65536?s[n++]=e:(e-=65536,s[n++]=55296|e>>10&1023,s[n++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Ft)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let a="";for(let i=0;i{(e=e||t.length)>t.length&&(e=t.length);let a=e-1;for(;a>=0&&128==(192&t[a]);)a--;return a<0||0===a?e:a+Lt[t[a]]>e?a:e};var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const Ht=Object.prototype.toString,{Z_NO_FLUSH:Mt,Z_SYNC_FLUSH:jt,Z_FULL_FLUSH:Kt,Z_FINISH:Pt,Z_OK:Yt,Z_STREAM_END:Gt,Z_DEFAULT_COMPRESSION:Xt,Z_DEFAULT_STRATEGY:Wt,Z_DEFLATED:qt}=B;function Jt(t){this.options=Tt({level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=St.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(a!==Yt)throw new Error(I[a]);if(e.header&&St.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?Nt(e.dictionary):"[object ArrayBuffer]"===Ht.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,a=St.deflateSetDictionary(this.strm,t),a!==Yt)throw new Error(I[a]);this._dict_set=!0}}function Qt(t,e){const a=new Jt(e);if(a.push(t,!0),a.err)throw a.msg||I[a.err];return a.result}Jt.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize;let n,s;if(this.ended)return!1;for(s=e===~~e?e:!0===e?Pt:Mt,"string"==typeof t?a.input=Nt(t):"[object ArrayBuffer]"===Ht.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;)if(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),(s===jt||s===Kt)&&a.avail_out<=6)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else{if(n=St.deflate(a,s),n===Gt)return a.next_out>0&&this.onData(a.output.subarray(0,a.next_out)),n=St.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Yt;if(0!==a.avail_out){if(s>0&&a.next_out>0)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else if(0===a.avail_in)break}else this.onData(a.output)}return!0},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===Yt&&(this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var Vt={Deflate:Jt,deflate:Qt,deflateRaw:function(t,e){return(e=e||{}).raw=!0,Qt(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,Qt(t,e)},constants:B};var $t=function(t,e){let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z,A;const E=t.state;a=t.next_in,z=t.input,i=a+(t.avail_in-5),n=t.next_out,A=t.output,s=n-(e-t.avail_out),r=n+(t.avail_out-257),o=E.dmax,l=E.wsize,h=E.whave,d=E.wnext,_=E.window,f=E.hold,c=E.bits,u=E.lencode,w=E.distcode,m=(1<>>24,f>>>=p,c-=p,p=g>>>16&255,0===p)A[n++]=65535&g;else{if(!(16&p)){if(0==(64&p)){g=u[(65535&g)+(f&(1<>>=p,c-=p),c<15&&(f+=z[a++]<>>24,f>>>=p,c-=p,p=g>>>16&255,!(16&p)){if(0==(64&p)){g=w[(65535&g)+(f&(1<o){t.msg="invalid distance too far back",E.mode=16209;break t}if(f>>>=p,c-=p,p=n-s,v>p){if(p=v-p,p>h&&E.sane){t.msg="invalid distance too far back",E.mode=16209;break t}if(y=0,x=_,0===d){if(y+=l-p,p2;)A[n++]=x[y++],A[n++]=x[y++],A[n++]=x[y++],k-=3;k&&(A[n++]=x[y++],k>1&&(A[n++]=x[y++]))}else{y=n-v;do{A[n++]=A[y++],A[n++]=A[y++],A[n++]=A[y++],k-=3}while(k>2);k&&(A[n++]=A[y++],k>1&&(A[n++]=A[y++]))}break}}break}}while(a>3,a-=k,c-=k<<3,f&=(1<{const l=o.bits;let h,d,_,f,c,u,w=0,m=0,b=0,g=0,p=0,k=0,v=0,y=0,x=0,z=0,A=null;const E=new Uint16Array(16),R=new Uint16Array(16);let Z,U,S,D=null;for(w=0;w<=15;w++)E[w]=0;for(m=0;m=1&&0===E[g];g--);if(p>g&&(p=g),0===g)return n[s++]=20971520,n[s++]=20971520,o.bits=1,0;for(b=1;b0&&(0===t||1!==g))return-1;for(R[1]=0,w=1;w<15;w++)R[w+1]=R[w]+E[w];for(m=0;m852||2===t&&x>592)return 1;for(;;){Z=w-v,r[m]+1=u?(U=D[r[m]-u],S=A[r[m]-u]):(U=96,S=0),h=1<>v)+d]=Z<<24|U<<16|S|0}while(0!==d);for(h=1<>=1;if(0!==h?(z&=h-1,z+=h):z=0,m++,0==--E[w]){if(w===g)break;w=e[a+r[m]]}if(w>p&&(z&f)!==_){for(0===v&&(v=p),c+=b,k=w-v,y=1<852||2===t&&x>592)return 1;_=z&f,n[_]=p<<24|k<<16|c-s|0}}return 0!==z&&(n[c+z]=w-v<<24|64<<16|0),o.bits=p,0};const{Z_FINISH:se,Z_BLOCK:re,Z_TREES:oe,Z_OK:le,Z_STREAM_END:he,Z_NEED_DICT:de,Z_STREAM_ERROR:_e,Z_DATA_ERROR:fe,Z_MEM_ERROR:ce,Z_BUF_ERROR:ue,Z_DEFLATED:we}=B,me=16209,be=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function ge(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const pe=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<16180||e.mode>16211?1:0},ke=t=>{if(pe(t))return _e;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=16180,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,le},ve=t=>{if(pe(t))return _e;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,ke(t)},ye=(t,e)=>{let a;if(pe(t))return _e;const i=t.state;return e<0?(a=0,e=-e):(a=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?_e:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=a,i.wbits=e,ve(t))},xe=(t,e)=>{if(!t)return _e;const a=new ge;t.state=a,a.strm=t,a.window=null,a.mode=16180;const i=ye(t,e);return i!==le&&(t.state=null),i};let ze,Ae,Ee=!0;const Re=t=>{if(Ee){ze=new Int32Array(512),Ae=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(ne(1,t.lens,0,288,ze,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;ne(2,t.lens,0,32,Ae,0,t.work,{bits:5}),Ee=!1}t.lencode=ze,t.lenbits=9,t.distcode=Ae,t.distbits=5},Ze=(t,e,a,i)=>{let n;const s=t.state;return null===s.window&&(s.wsize=1<=s.wsize?(s.window.set(e.subarray(a-s.wsize,a),0),s.wnext=0,s.whave=s.wsize):(n=s.wsize-s.wnext,n>i&&(n=i),s.window.set(e.subarray(a-i,a-i+n),s.wnext),(i-=n)?(s.window.set(e.subarray(a-i,a),0),s.wnext=i,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whavexe(t,15),inflateInit2:xe,inflate:(t,e)=>{let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z=0;const A=new Uint8Array(4);let E,R;const Z=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(pe(t)||!t.output||!t.input&&0!==t.avail_in)return _e;a=t.state,16191===a.mode&&(a.mode=16192),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,_=o,f=l,x=le;t:for(;;)switch(a.mode){case 16180:if(0===a.wrap){a.mode=16192;break}for(;d<16;){if(0===o)break t;o--,h+=i[s++]<>>8&255,a.check=N(a.check,A,2,0),h=0,d=0,a.mode=16181;break}if(a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&h)<<8)+(h>>8))%31){t.msg="incorrect header check",a.mode=me;break}if((15&h)!==we){t.msg="unknown compression method",a.mode=me;break}if(h>>>=4,d-=4,y=8+(15&h),0===a.wbits&&(a.wbits=y),y>15||y>a.wbits){t.msg="invalid window size",a.mode=me;break}a.dmax=1<>8&1),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16182;case 16182:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<>>8&255,A[2]=h>>>16&255,A[3]=h>>>24&255,a.check=N(a.check,A,4,0)),h=0,d=0,a.mode=16183;case 16183:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<>8),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16184;case 16184:if(1024&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0}else a.head&&(a.head.extra=null);a.mode=16185;case 16185:if(1024&a.flags&&(c=a.length,c>o&&(c=o),c&&(a.head&&(y=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Uint8Array(a.head.extra_len)),a.head.extra.set(i.subarray(s,s+c),y)),512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,a.length-=c),a.length))break t;a.length=0,a.mode=16186;case 16186:if(2048&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.name+=String.fromCharCode(y))}while(y&&c>9&1,a.head.done=!0),t.adler=a.check=0,a.mode=16191;break;case 16189:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<>>=7&d,d-=7&d,a.mode=16206;break}for(;d<3;){if(0===o)break t;o--,h+=i[s++]<>>=1,d-=1,3&h){case 0:a.mode=16193;break;case 1:if(Re(a),a.mode=16199,e===oe){h>>>=2,d-=2;break t}break;case 2:a.mode=16196;break;case 3:t.msg="invalid block type",a.mode=me}h>>>=2,d-=2;break;case 16193:for(h>>>=7&d,d-=7&d;d<32;){if(0===o)break t;o--,h+=i[s++]<>>16^65535)){t.msg="invalid stored block lengths",a.mode=me;break}if(a.length=65535&h,h=0,d=0,a.mode=16194,e===oe)break t;case 16194:a.mode=16195;case 16195:if(c=a.length,c){if(c>o&&(c=o),c>l&&(c=l),0===c)break t;n.set(i.subarray(s,s+c),r),o-=c,s+=c,l-=c,r+=c,a.length-=c;break}a.mode=16191;break;case 16196:for(;d<14;){if(0===o)break t;o--,h+=i[s++]<>>=5,d-=5,a.ndist=1+(31&h),h>>>=5,d-=5,a.ncode=4+(15&h),h>>>=4,d-=4,a.nlen>286||a.ndist>30){t.msg="too many length or distance symbols",a.mode=me;break}a.have=0,a.mode=16197;case 16197:for(;a.have>>=3,d-=3}for(;a.have<19;)a.lens[Z[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,E={bits:a.lenbits},x=ne(0,a.lens,0,19,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid code lengths set",a.mode=me;break}a.have=0,a.mode=16198;case 16198:for(;a.have>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<>>=m,d-=m,a.lens[a.have++]=g;else{if(16===g){for(R=m+2;d>>=m,d-=m,0===a.have){t.msg="invalid bit length repeat",a.mode=me;break}y=a.lens[a.have-1],c=3+(3&h),h>>>=2,d-=2}else if(17===g){for(R=m+3;d>>=m,d-=m,y=0,c=3+(7&h),h>>>=3,d-=3}else{for(R=m+7;d>>=m,d-=m,y=0,c=11+(127&h),h>>>=7,d-=7}if(a.have+c>a.nlen+a.ndist){t.msg="invalid bit length repeat",a.mode=me;break}for(;c--;)a.lens[a.have++]=y}}if(a.mode===me)break;if(0===a.lens[256]){t.msg="invalid code -- missing end-of-block",a.mode=me;break}if(a.lenbits=9,E={bits:a.lenbits},x=ne(1,a.lens,0,a.nlen,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid literal/lengths set",a.mode=me;break}if(a.distbits=6,a.distcode=a.distdyn,E={bits:a.distbits},x=ne(2,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,E),a.distbits=E.bits,x){t.msg="invalid distances set",a.mode=me;break}if(a.mode=16199,e===oe)break t;case 16199:a.mode=16200;case 16200:if(o>=6&&l>=258){t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,$t(t,f),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,16191===a.mode&&(a.back=-1);break}for(a.back=0;z=a.lencode[h&(1<>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,a.length=g,0===b){a.mode=16205;break}if(32&b){a.back=-1,a.mode=16191;break}if(64&b){t.msg="invalid literal/length code",a.mode=me;break}a.extra=15&b,a.mode=16201;case 16201:if(a.extra){for(R=a.extra;d>>=a.extra,d-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=16202;case 16202:for(;z=a.distcode[h&(1<>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,64&b){t.msg="invalid distance code",a.mode=me;break}a.offset=g,a.extra=15&b,a.mode=16203;case 16203:if(a.extra){for(R=a.extra;d>>=a.extra,d-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){t.msg="invalid distance too far back",a.mode=me;break}a.mode=16204;case 16204:if(0===l)break t;if(c=f-l,a.offset>c){if(c=a.offset-c,c>a.whave&&a.sane){t.msg="invalid distance too far back",a.mode=me;break}c>a.wnext?(c-=a.wnext,u=a.wsize-c):u=a.wnext-c,c>a.length&&(c=a.length),w=a.window}else w=n,u=r-a.offset,c=a.length;c>l&&(c=l),l-=c,a.length-=c;do{n[r++]=w[u++]}while(--c);0===a.length&&(a.mode=16200);break;case 16205:if(0===l)break t;n[r++]=a.length,l--,a.mode=16200;break;case 16206:if(a.wrap){for(;d<32;){if(0===o)break t;o--,h|=i[s++]<{if(pe(t))return _e;let e=t.state;return e.window&&(e.window=null),t.state=null,le},inflateGetHeader:(t,e)=>{if(pe(t))return _e;const a=t.state;return 0==(2&a.wrap)?_e:(a.head=e,e.done=!1,le)},inflateSetDictionary:(t,e)=>{const a=e.length;let i,n,s;return pe(t)?_e:(i=t.state,0!==i.wrap&&16190!==i.mode?_e:16190===i.mode&&(n=1,n=F(n,e,a,0),n!==i.check)?fe:(s=Ze(t,e,a,a),s?(i.mode=16210,ce):(i.havedict=1,le)))},inflateInfo:"pako inflate (from Nodeca project)"};var Se=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const De=Object.prototype.toString,{Z_NO_FLUSH:Te,Z_FINISH:Oe,Z_OK:Fe,Z_STREAM_END:Le,Z_NEED_DICT:Ne,Z_STREAM_ERROR:Ie,Z_DATA_ERROR:Be,Z_MEM_ERROR:Ce}=B;function He(t){this.options=Tt({chunkSize:65536,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=Ue.inflateInit2(this.strm,e.windowBits);if(a!==Fe)throw new Error(I[a]);if(this.header=new Se,Ue.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Nt(e.dictionary):"[object ArrayBuffer]"===De.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(a=Ue.inflateSetDictionary(this.strm,e.dictionary),a!==Fe)))throw new Error(I[a])}He.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize,n=this.options.dictionary;let s,r,o;if(this.ended)return!1;for(r=e===~~e?e:!0===e?Oe:Te,"[object ArrayBuffer]"===De.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;){for(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),s=Ue.inflate(a,r),s===Ne&&n&&(s=Ue.inflateSetDictionary(a,n),s===Fe?s=Ue.inflate(a,r):s===Be&&(s=Ne));a.avail_in>0&&s===Le&&a.state.wrap>0&&0!==t[a.next_in];)Ue.inflateReset(a),s=Ue.inflate(a,r);switch(s){case Ie:case Be:case Ne:case Ce:return this.onEnd(s),this.ended=!0,!1}if(o=a.avail_out,a.next_out&&(0===a.avail_out||s===Le))if("string"===this.options.to){let t=Bt(a.output,a.next_out),e=a.next_out-t,n=It(a.output,t);a.next_out=e,a.avail_out=i-e,e&&a.output.set(a.output.subarray(t,t+e),0),this.onData(n)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(s!==Fe||0!==o){if(s===Le)return s=Ue.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(0===a.avail_in)break}}return!0},He.prototype.onData=function(t){this.chunks.push(t)},He.prototype.onEnd=function(t){t===Fe&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};const{Deflate:Me,deflate:je,deflateRaw:Ke,gzip:Pe}=Vt;var Ye=Me,Ge=je,Xe=B;const We=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const e=this._hasEvents?",":"";this.deflate.push(e+t,Xe.Z_SYNC_FLUSH),this._hasEvents=!0}finish(){if(this.deflate.push("]",Xe.Z_FINISH),this.deflate.err)throw this.deflate.err;const t=this.deflate.result;return this._init(),t}_init(){this._hasEvents=!1,this.deflate=new Ye,this.deflate.push("[",Xe.Z_NO_FLUSH)}},qe={clear:()=>{We.clear()},addEvent:t=>We.addEvent(t),finish:()=>We.finish(),compress:t=>function(t){return Ge(t)}(t)};addEventListener("message",(function(t){const e=t.data.method,a=t.data.id,i=t.data.arg;if(e in qe&&"function"==typeof qe[e])try{const t=qe[e](i);postMessage({id:a,method:e,success:!0,response:t})}catch(t){postMessage({id:a,method:e,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});`;function m7(){const e=new Blob([_7]);return URL.createObjectURL(e)}class O0 extends Error{constructor(){super(`Event buffer exceeded maximum size of ${y0}.`)}}class Jg{__init(){this._totalSize=0}constructor(){Jg.prototype.__init.call(this),this.events=[]}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>y0)throw new O0;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0}getEarliestTimestamp(){const t=this.events.map(n=>n.timestamp).sort()[0];return t?C0(t):null}}class g7{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():n()},{once:!0}),this._worker.addEventListener("error",r=>{n(r)},{once:!0})}),this._ensureReadyPromise)}destroy(){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.log("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((i,a)=>{const d=({data:s})=>{const u=s;if(u.method===t&&u.id===r){if(this._worker.removeEventListener("message",d),!u.success){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.error("[Replay]",u.response),a(new Error("Error in compression worker"));return}i(u.response)}};this._worker.addEventListener("message",d),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class w0{__init(){this._totalSize=0}constructor(t){w0.prototype.__init.call(this),this._worker=new g7(t),this._earliestTimestamp=null}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=C0(t.timestamp);(!this._earliestTimestamp||ny0?Promise.reject(new O0):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this._worker.postMessage("clear")}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class h7{constructor(t){this._fallback=new Jg,this._compression=new w0(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.log("[Replay] Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t}=this._fallback,n=[];for(const r of t)n.push(this._compression.addEvent(r));this._used=this._compression;try{await Promise.all(n)}catch(r){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.warn("[Replay] Failed to add events when switching buffers.",r)}}}function b7({useCompression:e}){if(e&&window.Worker)try{const t=m7();(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.log("[Replay] Using compression worker");const n=new Worker(t);return new h7(n)}catch{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.log("[Replay] Failed to create compression worker")}return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.log("[Replay] Using simple buffer"),new Jg}function R0(){try{return"sessionStorage"in nn&&!!nn.sessionStorage}catch{return!1}}function S7(e){v7(),e.session=void 0}function v7(){if(!!R0())try{nn.sessionStorage.removeItem(v0)}catch{}}function Kv(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function Hk(e,t,n=+new Date){return Kv(e.started,t.maxSessionLife,n)||Kv(e.lastActivity,t.sessionIdleExpire,n)}function zk(e){return e===void 0?!1:Math.random()"u"||__SENTRY_DEBUG__)&&Jt.log(`[Replay] Creating new session: ${i.id}`),n&&x0(i),i}function C7(){if(!R0())return null;try{const e=nn.sessionStorage.getItem(v0);if(!e)return null;const t=JSON.parse(e);return I0(t)}catch{return null}}function iS({timeouts:e,currentSession:t,stickySession:n,sessionSampleRate:r,allowBuffering:i}){const a=t||n&&C7();if(a){if(!Hk(a,e)||i&&a.shouldRefresh)return{type:"saved",session:a};if(a.shouldRefresh)(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.log("[Replay] Session has expired");else return{type:"new",session:I0({sampled:!1})}}return{type:"new",session:y7({stickySession:n,sessionSampleRate:r,allowBuffering:i})}}function T7(e){return e.type===Cn.Custom}async function qm(e,t,n){if(!e.eventBuffer||e.isPaused()||C0(t.timestamp)+e.timeouts.sessionIdlePause"u"||__SENTRY_DEBUG__)&&Jt.error(i),await e.stop(a);const d=ho().getClient();d&&d.recordDroppedEvent("internal_sdk_error","replay")}}function O7(e,t){try{if(typeof t=="function"&&T7(e))return t(e)}catch(n){return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",n),null}return e}function Qv(e){return!e.type}function Xv(e){return e.type==="transaction"}function w7(e){return e.type==="replay_event"}function Yk(e){const t=R7();return(n,r)=>{if(!Qv(n)&&!Xv(n))return;const i=r&&r.statusCode;if(!(t&&(!i||i<200||i>=300))){if(Xv(n)&&n.contexts&&n.contexts.trace&&n.contexts.trace.trace_id){e.getContext().traceIds.add(n.contexts.trace.trace_id);return}!Qv(n)||(n.event_id&&e.getContext().errorIds.add(n.event_id),e.recordingMode==="buffer"&&n.tags&&n.tags.replayId&&setTimeout(()=>{e.sendBufferedReplayOrFlush()}))}}}function R7(){const e=ho().getClient();if(!e)return!1;const t=e.getTransport();return t&&t.send.__sentry__baseTransport__||!1}function x7(e,t){return e.type||!e.exception||!e.exception.values||!e.exception.values.length?!1:t.originalException&&t.originalException.__rrweb__?!0:e.exception.values.some(n=>!n.stacktrace||!n.stacktrace.frames||!n.stacktrace.frames.length?!1:n.stacktrace.frames.some(r=>r.filename&&r.filename.includes("/rrweb/src/")))}function I7(e,t){return e.recordingMode!=="buffer"||t.message===E0||!t.exception||t.type?!1:zk(e.getOptions().errorSampleRate)}function N7(e,t=!1){const n=t?Yk(e):void 0;return(r,i)=>w7(r)?(delete r.breadcrumbs,r):!Qv(r)&&!Xv(r)?r:x7(r,i)&&!e.getOptions()._experiments.captureExceptions?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.log("[Replay] Ignoring error from rrweb internals",r),null):((I7(e,r)||e.recordingMode==="session")&&(r.tags={...r.tags,replayId:e.getSessionId()}),n&&n(r,{statusCode:200}),r)}function eh(e,t){return t.map(({type:n,start:r,end:i,name:a,data:d})=>{const s=e.throttledAddEvent({type:Cn.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:a,startTimestamp:r,endTimestamp:i,data:d}}});return typeof s=="string"?Promise.resolve(null):s})}function A7(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function D7(e){return t=>{if(!e.isEnabled())return;const n=A7(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(eh(e,[n]),!1)))}}function M7(e,t){return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&e.getOptions()._experiments.traceInternals?!1:k7(t)}function k7(e){const t=ho().getClient(),n=t&&t.getDsn();return n?e.includes(n.host):!1}function th(e,t){!e.isEnabled()||t!==null&&(M7(e,t.name)||e.addUpdate(()=>(eh(e,[t]),!0)))}function P7(e){const{startTimestamp:t,endTimestamp:n,fetchData:r,response:i}=e;if(!n)return null;const{method:a,url:d}=r;return{type:"resource.fetch",start:t/1e3,end:n/1e3,name:d,data:{method:a,statusCode:i?i.status:void 0}}}function L7(e){return t=>{if(!e.isEnabled())return;const n=P7(t);th(e,n)}}function $7(e){const{startTimestamp:t,endTimestamp:n,xhr:r}=e,i=r[Wc];if(!t||!n||!i)return null;const{method:a,url:d,status_code:s}=i;return d===void 0?null:{type:"resource.xhr",name:d,start:t/1e3,end:n/1e3,data:{method:a,statusCode:s}}}function F7(e){return t=>{if(!e.isEnabled())return;const n=$7(t);th(e,n)}}const Ns=10,N0=11,Zv=12,Va=13,Jv=14,Mu=15,La=20,po=21,eE=22,ku=23,Vk=["true","false","null"];function B7(e,t){if(!t.length)return e;let n=e;const r=t.length-1,i=t[r];n=U7(n,i);for(let a=r;a>=0;a--)switch(t[a]){case Ns:n=`${n}}`;break;case La:n=`${n}]`;break}return n}function U7(e,t){switch(t){case Ns:return`${e}"~~":"~~"`;case N0:return`${e}:"~~"`;case Zv:return`${e}~~":"~~"`;case Va:return z7(e);case Jv:return`${e}~~"`;case Mu:return`${e},"~~":"~~"`;case La:return`${e}"~~"`;case po:return G7(e);case eE:return`${e}~~"`;case ku:return`${e},"~~"`}return e}function G7(e){const t=H7(e);if(t>-1){const n=e.slice(t+1);return Vk.includes(n.trim())?`${e},"~~"`:`${e.slice(0,t+1)}"~~"`}return e}function H7(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n===","||n==="[")return t}return-1}function z7(e){const t=e.lastIndexOf(":"),n=e.slice(t+1);return Vk.includes(n.trim())?`${e},"~~":"~~"`:`${e.slice(0,t+1)}"~~"`}function Y7(e){const t=[];for(let n=0;n0&&(r._meta={warnings:a}),r}function tE(e,t){return Object.keys(e).reduce((n,r)=>{const i=r.toLowerCase();return t.includes(i)&&e[r]&&(n[i]=e[r]),n},{})}function Xk(e){return new URLSearchParams(e).toString()}function J7(e){if(!e||typeof e!="string")return{body:e,warnings:[]};const t=e.length>N_;if(eQ(e))try{const n=t?jk(e.slice(0,N_)):e;return{body:JSON.parse(n),warnings:t?["JSON_TRUNCATED"]:[]}}catch{return{body:t?`${e.slice(0,N_)}\u2026`:e,warnings:t?["INVALID_JSON","TEXT_TRUNCATED"]:["INVALID_JSON"]}}return{body:t?`${e.slice(0,N_)}\u2026`:e,warnings:t?["TEXT_TRUNCATED"]:[]}}function eQ(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function Wm(e,t){const n=tQ(e);return UW(n,t)}function tQ(e,t=nn.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(nn.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function nQ(e,t,n){try{const r=await iQ(e,t,n),i=Qk("resource.fetch",r);th(n.replay,i)}catch(r){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.error("[Replay] Failed to capture fetch breadcrumb",r)}}function rQ(e,t,n){const{input:r,response:i}=t,a=Zk(r),d=jm(a,n.textEncoder),s=i?Wk(i.headers.get("content-length")):void 0;d!==void 0&&(e.data.request_body_size=d),s!==void 0&&(e.data.response_body_size=s)}async function iQ(e,t,n){const{startTimestamp:r,endTimestamp:i}=t,{url:a,method:d,status_code:s=0,request_body_size:u,response_body_size:o}=e.data,l=Wm(a,n.networkDetailAllowUrls)&&!Wm(a,n.networkDetailDenyUrls),c=l?oQ(n,t.input,u):Np(u),p=await aQ(l,n,t.response,o);return{startTimestamp:r,endTimestamp:i,url:a,method:d,statusCode:s,request:c,response:p}}function oQ({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const i=lQ(n,t);if(!e)return As(i,r,void 0);const a=Zk(n),d=Kk(a);return As(i,r,d)}async function aQ(e,{networkCaptureBodies:t,textEncoder:n,networkResponseHeaders:r},i,a){if(!e&&a!==void 0)return Np(a);const d=Jk(i.headers,r);if(!t&&a!==void 0)return As(d,a,void 0);try{const s=i.clone(),u=await sQ(s),o=u&&u.length&&a===void 0?jm(u,n):a;return e?t?As(d,o,u):As(d,o,void 0):Np(o)}catch{return As(d,a,void 0)}}async function sQ(e){try{return await e.text()}catch{return}}function Zk(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}function Jk(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function lQ(e,t){return e.length===1&&typeof e[0]!="string"?Fx(e[0],t):e.length===2?Fx(e[1],t):{}}function Fx(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?Jk(n,t):Array.isArray(n)?{}:tE(n,t):{}}async function cQ(e,t,n){try{const r=dQ(e,t,n),i=Qk("resource.xhr",r);th(n.replay,i)}catch(r){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.error("[Replay] Failed to capture fetch breadcrumb",r)}}function uQ(e,t,n){const{xhr:r,input:i}=t,a=jm(i,n.textEncoder),d=r.getResponseHeader("content-length")?Wk(r.getResponseHeader("content-length")):jm(r.response,n.textEncoder);a!==void 0&&(e.data.request_body_size=a),d!==void 0&&(e.data.response_body_size=d)}function dQ(e,t,n){const{startTimestamp:r,endTimestamp:i,input:a,xhr:d}=t,{url:s,method:u,status_code:o=0,request_body_size:l,response_body_size:c}=e.data;if(!s)return null;if(!Wm(s,n.networkDetailAllowUrls)||Wm(s,n.networkDetailDenyUrls)){const b=Np(l),v=Np(c);return{startTimestamp:r,endTimestamp:i,url:s,method:u,statusCode:o,request:b,response:v}}const p=d[Wc],f=p?tE(p.request_headers,n.networkRequestHeaders):{},m=tE(pQ(d),n.networkResponseHeaders),g=As(f,l,n.networkCaptureBodies?Kk(a):void 0),h=As(m,c,n.networkCaptureBodies?t.xhr.responseText:void 0);return{startTimestamp:r,endTimestamp:i,url:s,method:u,statusCode:o,request:g,response:h}}function pQ(e){const t=e.getAllResponseHeaders();return t?t.split(`\r -`).reduce((n,r)=>{const[i,a]=r.split(": ");return n[i.toLowerCase()]=a,n},{}):{}}function fQ(e){const t=ho().getClient();try{const n=new TextEncoder,{networkDetailAllowUrls:r,networkDetailDenyUrls:i,networkCaptureBodies:a,networkRequestHeaders:d,networkResponseHeaders:s}=e.getOptions(),u={replay:e,textEncoder:n,networkDetailAllowUrls:r,networkDetailDenyUrls:i,networkCaptureBodies:a,networkRequestHeaders:d,networkResponseHeaders:s};t&&t.on?t.on("beforeAddBreadcrumb",(o,l)=>_Q(u,o,l)):(Gm("fetch",L7(e)),Gm("xhr",F7(e)))}catch{}}function _Q(e,t,n){if(!!t.data)try{mQ(t)&&hQ(n)&&(uQ(t,n,e),cQ(t,n,e)),gQ(t)&&bQ(n)&&(rQ(t,n,e),nQ(t,n,e))}catch{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.warn("Error when enriching network breadcrumb")}}function mQ(e){return e.category==="xhr"}function gQ(e){return e.category==="fetch"}function hQ(e){return e&&e.xhr}function bQ(e){return e&&e.response}let Bx=null;function SQ(e){return!!e.category}const vQ=e=>t=>{if(!e.isEnabled())return;const n=EQ(t);!n||Zg(e,n)};function EQ(e){const t=e.getLastBreadcrumb&&e.getLastBreadcrumb();return Bx===t||!t||(Bx=t,!SQ(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui."))?null:t.category==="console"?yQ(t):Fa(t)}function yQ(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||t.length===0)return Fa(e);let n=!1;const r=t.map(i=>{if(!i)return i;if(typeof i=="string")return i.length>A_?(n=!0,`${i.slice(0,A_)}\u2026`):i;if(typeof i=="object")try{const a=Ts(i,7),d=JSON.stringify(a);if(d.length>A_){const s=jk(d.slice(0,A_)),u=JSON.parse(s);return n=!0,u}return a}catch{}return i});return Fa({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function CQ(e){const t=ho().getScope(),n=ho().getClient();t&&t.addScopeListener(vQ(e)),Gm("dom",i7(e)),Gm("history",D7(e)),fQ(e),w9(N7(e,!Ux(n))),Ux(n)&&(n.on("afterSendEvent",Yk(e)),n.on("createDsc",r=>{const i=e.getSessionId();i&&e.isEnabled()&&e.recordingMode==="session"&&(r.replay_id=i)}),n.on("startTransaction",r=>{e.lastTransaction=r}),n.on("finishTransaction",r=>{e.lastTransaction=r}))}function Ux(e){return!!(e&&e.on)}async function TQ(e){try{return Promise.all(eh(e,[OQ(nn.performance.memory)]))}catch{return[]}}function OQ(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}const Gx={resource:NQ,paint:xQ,navigation:IQ,["largest-contentful-paint"]:AQ};function wQ(e){return e.map(RQ).filter(Boolean)}function RQ(e){return Gx[e.entryType]===void 0?null:Gx[e.entryType](e)}function Pu(e){return((b9||nn.performance.timeOrigin)+e)/1e3}function xQ(e){const{duration:t,entryType:n,name:r,startTime:i}=e,a=Pu(i);return{type:n,name:r,start:a,end:a+t,data:void 0}}function IQ(e){const{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:a,encodedBodySize:d,domContentLoadedEventStart:s,domContentLoadedEventEnd:u,domInteractive:o,loadEventStart:l,loadEventEnd:c,redirectCount:p,startTime:f,transferSize:m,type:g}=e;return i===0?null:{type:`${t}.${g}`,start:Pu(f),end:Pu(a),name:n,data:{size:m,decodedBodySize:r,encodedBodySize:d,duration:i,domInteractive:o,domContentLoadedEventStart:s,domContentLoadedEventEnd:u,loadEventStart:l,loadEventEnd:c,domComplete:a,redirectCount:p}}}function NQ(e){const{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:a,decodedBodySize:d,encodedBodySize:s,responseStatus:u,transferSize:o}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Pu(a),end:Pu(i),name:r,data:{size:o,statusCode:u,decodedBodySize:d,encodedBodySize:s}}}function AQ(e){const{entryType:t,startTime:n,size:r}=e;let i=0;if(nn.performance){const s=nn.performance.getEntriesByType("navigation")[0];i=s&&s.activationStart||0}const a=Math.max(n-i,0),d=Pu(i)+a/1e3;return{type:t,name:t,start:d,end:d,data:{value:a,size:r,nodeId:Vl.mirror.getId(e.element)}}}function DQ(e,t,n){let r,i,a;const d=n&&n.maxWait?Math.max(n.maxWait,t):0;function s(){return u(),r=e(),r}function u(){i!==void 0&&clearTimeout(i),a!==void 0&&clearTimeout(a),i=a=void 0}function o(){return i!==void 0||a!==void 0?s():r}function l(){return i&&clearTimeout(i),i=setTimeout(s,t),d&&a===void 0&&(a=setTimeout(s,d)),r}return l.cancel=u,l.flush=o,l}function MQ(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.warn("[Replay] Received replay event after session expired.");return}const i=r||!t;t=!0,e.addUpdate(()=>{if(e.recordingMode==="buffer"&&i&&e.setInitialState(),qm(e,n,i),!i)return!1;if(PQ(e,i),e.session&&e.session.previousSessionId)return!0;if(e.recordingMode==="buffer"&&e.session&&e.eventBuffer){const a=e.eventBuffer.getEarliestTimestamp();a&&(e.session.started=a,e.getOptions().stickySession&&x0(e.session))}return e.recordingMode==="session"&&e.flush(),!0})}}function kQ(e){const t=e.getOptions();return{type:Cn.Custom,timestamp:Date.now(),data:{tag:"options",payload:{sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function PQ(e,t){return!t||!e.session||e.session.segmentId!==0?Promise.resolve(null):qm(e,kQ(e),!1)}function LQ(e,t,n,r){return S9(E9(e,v9(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function $Q({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)} -`;if(typeof e=="string")n=`${r}${e}`;else{const a=new TextEncoder().encode(r);n=new Uint8Array(a.length+e.length),n.set(a),n.set(e,a.length)}return n}async function FQ({client:e,scope:t,replayId:n,event:r}){const i=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,a=await A9(e.getOptions(),r,{event_id:n,integrations:i},t);if(!a)return null;a.platform=a.platform||"javascript";const d=e.getSdkMetadata&&e.getSdkMetadata(),{name:s,version:u}=d&&d.sdk||{};return a.sdk={...a.sdk,name:s||"sentry.javascript.unknown",version:u||"0.0.0"},a}async function BQ({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:a}){const d=$Q({recordingData:e,headers:{segment_id:n}}),{urls:s,errorIds:u,traceIds:o,initialTimestamp:l}=r,c=ho(),p=c.getClient(),f=c.getScope(),m=p&&p.getTransport(),g=p&&p.getDsn();if(!p||!m||!g||!a.sampled)return;const h={type:$9,replay_start_timestamp:l/1e3,timestamp:i/1e3,error_ids:u,trace_ids:o,urls:s,replay_id:t,segment_id:n,replay_type:a.sampled},b=await FQ({scope:f,client:p,replayId:t,event:h});if(!b){p.recordDroppedEvent("event_processor","replay",h),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.log("An event processor returned `null`, will not send event.");return}delete b.sdkProcessingMetadata;const v=LQ(b,d,g,p.getOptions().tunnel);let E;try{E=await m.send(v)}catch(y){const T=new Error(E0);try{T.cause=y}catch{}throw T}if(!E)return E;if(typeof E.statusCode=="number"&&(E.statusCode<200||E.statusCode>=300))throw new eP(E.statusCode);return E}class eP extends Error{constructor(t){super(`Transport returned status code ${t}`)}}async function tP(e,t={count:0,interval:Y9}){const{recordingData:n,options:r}=e;if(!!n.length)try{return await BQ(e),!0}catch(i){if(i instanceof eP)throw i;if(N9("Replays",{_retryCount:t.count}),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&r._experiments&&r._experiments.captureExceptions&&Tk(i),t.count>=V9){const a=new Error(`${E0} - max retries exceeded`);try{a.cause=i}catch{}throw a}return t.interval*=++t.count,new Promise((a,d)=>{setTimeout(async()=>{try{await tP(e,t),a(!0)}catch(s){d(s)}},t.interval)})}}const nP="__THROTTLED",UQ="__SKIPPED";function GQ(e,t,n){const r=new Map,i=s=>{const u=s-n;r.forEach((o,l)=>{l[...r.values()].reduce((s,u)=>s+u,0);let d=!1;return(...s)=>{const u=Math.floor(Date.now()/1e3);if(i(u),a()>=t){const l=d;return d=!0,l?UQ:nP}d=!1;const o=r.get(u)||0;return r.set(u,o+1),e(...s)}}class pr{__init(){this.eventBuffer=null}__init2(){this.performanceEvents=[]}__init3(){this.recordingMode="session"}__init4(){this.timeouts={sessionIdlePause:F9,sessionIdleExpire:B9,maxSessionLife:U9}}__init5(){this._performanceObserver=null}__init6(){this._flushLock=null}__init7(){this._lastActivity=Date.now()}__init8(){this._isEnabled=!1}__init9(){this._isPaused=!1}__init10(){this._hasInitializedCoreListeners=!1}__init11(){this._stopRecording=null}__init12(){this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""}}constructor({options:t,recordingOptions:n}){pr.prototype.__init.call(this),pr.prototype.__init2.call(this),pr.prototype.__init3.call(this),pr.prototype.__init4.call(this),pr.prototype.__init5.call(this),pr.prototype.__init6.call(this),pr.prototype.__init7.call(this),pr.prototype.__init8.call(this),pr.prototype.__init9.call(this),pr.prototype.__init10.call(this),pr.prototype.__init11.call(this),pr.prototype.__init12.call(this),pr.prototype.__init13.call(this),pr.prototype.__init14.call(this),pr.prototype.__init15.call(this),pr.prototype.__init16.call(this),pr.prototype.__init17.call(this),pr.prototype.__init18.call(this),this._recordingOptions=n,this._options=t,this._debouncedFlush=DQ(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=GQ((d,s)=>qm(this,d,s),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:i}=this.getOptions(),a=r?{threshold:Math.min(q9,r),timeout:r,scrollTimeout:j9,ignoreSelector:i?i.join(","):""}:void 0;a&&(this.clickDetector=new np(this,a))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}getOptions(){return this._options}initializeSampling(){const{errorSampleRate:t,sessionSampleRate:n}=this._options;if(!(t<=0&&n<=0||!this._loadAndCheckSession())){if(!this.session){this._handleException(new Error("Unable to initialize and create session"));return}this.session.sampled&&this.session.sampled!=="session"&&(this.recordingMode="buffer"),this._initializeRecording()}}start(){if(this._isEnabled&&this.recordingMode==="session")throw new Error("Replay recording is already in progress");if(this._isEnabled&&this.recordingMode==="buffer")throw new Error("Replay buffering is in progress, call `flush()` to save the replay");const t=this.session&&this.session.id,{session:n}=iS({timeouts:this.timeouts,stickySession:Boolean(this._options.stickySession),currentSession:this.session,sessionSampleRate:1,allowBuffering:!1});n.previousSessionId=t,this.session=n,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");const t=this.session&&this.session.id,{session:n}=iS({timeouts:this.timeouts,stickySession:Boolean(this._options.stickySession),currentSession:this.session,sessionSampleRate:0,allowBuffering:!0});n.previousSessionId=t,this.session=n,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{this._stopRecording=Vl({...this._recordingOptions,...this.recordingMode==="buffer"&&{checkoutEveryNms:z9},emit:MQ(this),onMutation:this._onMutationHandler})}catch(t){this._handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this._handleException(t),!1}}async stop(t){if(!!this._isEnabled)try{if(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__){const n=`[Replay] Stopping Replay${t?` triggered by ${t}`:""}`;(this.getOptions()._experiments.traceInternals?console.warn:Jt.log)(n)}this._isEnabled=!1,this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),this.recordingMode==="session"&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,S7(this)}catch(n){this._handleException(n)}}pause(){this._isPaused=!0,this.stopRecording()}resume(){!this._loadAndCheckSession()||(this._isPaused=!1,this.startRecording())}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();await this.flushImmediate();const r=this.stopRecording();!t||!r||(this.recordingMode="session",this.session&&(this.session.shouldRefresh=!1,this._updateUserActivity(n),this._updateSessionActivity(n),this.session.started=n,this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode!=="buffer"&&n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._loadAndCheckSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){const t=this.getSessionId();if(this._lastActivity&&Kv(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return this._loadAndCheckSession()?t!==this.getSessionId()?(this._triggerFullSnapshot(),!1):!0:void 0}setInitialState(){const t=`${nn.location.pathname}${nn.location.hash}${nn.location.search}`,n=`${nn.location.origin}${t}`;this.performanceEvents=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const r=this._throttledAddEvent(t,n);if(r===nP){const i=Fa({category:"replay.throttled"});this.addUpdate(()=>{qm(this,{type:Cn.Custom,timestamp:i.timestamp||0,data:{tag:"breadcrumb",payload:i,metric:!0}})})}return r}getCurrentRoute(){const t=this.lastTransaction||ho().getScope().getTransaction();if(!(!t||!["route","custom"].includes(t.metadata.source)))return t.name}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=b7({useCompression:this._options.useCompression}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this.startRecording()}_handleException(t){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.error("[Replay]",t),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&this._options._experiments&&this._options._experiments.captureExceptions&&Tk(t)}_loadAndCheckSession(){const{type:t,session:n}=iS({timeouts:this.timeouts,stickySession:Boolean(this._options.stickySession),currentSession:this.session,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:this._options.errorSampleRate>0||this.recordingMode==="buffer"});t==="new"&&this.setInitialState();const r=this.getSessionId();return n.id!==r&&(n.previousSessionId=r),this.session=n,this.session.sampled?!0:(this.stop("session unsampled"),!1)}_addListeners(){try{nn.document.addEventListener("visibilitychange",this._handleVisibilityChange),nn.addEventListener("blur",this._handleWindowBlur),nn.addEventListener("focus",this._handleWindowFocus),nn.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(CQ(this),this._hasInitializedCoreListeners=!0)}catch(t){this._handleException(t)}"PerformanceObserver"in nn&&(this._performanceObserver=f7(this))}_removeListeners(){try{nn.document.removeEventListener("visibilitychange",this._handleVisibilityChange),nn.removeEventListener("blur",this._handleWindowBlur),nn.removeEventListener("focus",this._handleWindowFocus),nn.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceObserver&&(this._performanceObserver.disconnect(),this._performanceObserver=null)}catch(t){this._handleException(t)}}__init13(){this._handleVisibilityChange=()=>{nn.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init14(){this._handleWindowBlur=()=>{const t=Fa({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init15(){this._handleWindowFocus=()=>{const t=Fa({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init16(){this._handleKeyboardEvent=t=>{l7(this,t)}}_doChangeToBackgroundTasks(t){if(!this.session)return;const n=Hk(this.session,this.timeouts);t&&!n&&this._createCustomBreadcrumb(t),this.conditionalFlush()}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.log("[Replay] Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_triggerFullSnapshot(t=!0){try{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.log("[Replay] Taking full rrweb snapshot"),Vl.takeFullSnapshot(t)}catch(n){this._handleException(n)}}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:Cn.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){const t=[...this.performanceEvents];return this.performanceEvents=[],Promise.all(eh(this,wQ(t)))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||t.segmentId)return;const r=n.getEarliestTimestamp();if(r&&r"u"||__SENTRY_DEBUG__)&&i(`[Replay] Updating initial timestamp to ${r}`),this._context.initialTimestamp=r}}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){if(!this.session||!this.eventBuffer){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.error("[Replay] No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!(!this.eventBuffer||!this.eventBuffer.hasEvents)&&(await TQ(this),!!this.eventBuffer))try{this._updateInitialTimestampFromEventBuffer();const t=await this.eventBuffer.finish(),n=this.session.id,r=this._popEventContext(),i=this.session.segmentId++;this._maybeSaveSession(),await tP({replayId:n,recordingData:t,segmentId:i,eventContext:r,session:this.session,options:this.getOptions(),timestamp:Date.now()})}catch(t){this._handleException(t),this.stop("sendReplay");const n=ho().getClient();n&&n.recordDroppedEvent("send_error","replay")}}__init17(){this._flush=async({force:t=!1}={})=>{if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.error("[Replay] Attempting to finish replay event after session expired.");return}if(!this.session){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.error("[Replay] No session found to flush.");return}const n=this._context.initialTimestamp,i=Date.now()-n;if(ithis.timeouts.maxSessionLife+5e3){const a=this.getOptions()._experiments.traceInternals?console.warn:Jt.warn;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&a(`[Replay] Session duration (${Math.floor(i/1e3)}s) is too short or too long, not sending replay.`);return}if(this._debouncedFlush.cancel(),!this._flushLock){this._flushLock=this._runFlush(),await this._flushLock,this._flushLock=null;return}try{await this._flushLock}catch(a){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.error(a)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&x0(this.session)}__init18(){this._onMutationHandler=t=>{const n=t.length,r=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,a=r&&n>r;if(n>i||a){const d=Fa({category:"replay.mutations",data:{count:n,limit:a}});this._createCustomBreadcrumb(d)}return a?(this.stop("mutationLimit"),!1):!0}}}function Id(e,t,n,r){const i=typeof r=="string"?r.split(","):[],a=[...e,...i,...t];return typeof n<"u"&&(typeof n=="string"&&a.push(`.${n}`),console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")),a.join(",")}function HQ({mask:e,unmask:t,block:n,unblock:r,ignore:i,blockClass:a,blockSelector:d,maskTextClass:s,maskTextSelector:u,ignoreClass:o}){const l=['base[href="/"]'],c=Id(e,[".sentry-mask","[data-sentry-mask]"],s,u),p=Id(t,[".sentry-unmask","[data-sentry-unmask]"]),f={maskTextSelector:c,unmaskTextSelector:p,maskInputSelector:c,unmaskInputSelector:p,blockSelector:Id(n,[".sentry-block","[data-sentry-block]",...l],a,d),unblockSelector:Id(r,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:Id(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],o)};return a instanceof RegExp&&(f.blockClass=a),s instanceof RegExp&&(f.maskTextClass=s),f}function Hx(){return typeof window<"u"&&(!gk()||zQ())}function zQ(){return typeof process<"u"&&process.type==="renderer"}const zx='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',YQ=["content-length","content-type","accept"];let Yx=!1;class Ap{static __initStatic(){this.id="Replay"}__init(){this.name=Ap.id}constructor({flushMinDelay:t=G9,flushMaxDelay:n=H9,minReplayDuration:r=W9,stickySession:i=!0,useCompression:a=!0,_experiments:d={},sessionSampleRate:s,errorSampleRate:u,maskAllText:o=!0,maskAllInputs:l=!0,blockAllMedia:c=!0,mutationBreadcrumbLimit:p=750,mutationLimit:f=1e4,slowClickTimeout:m=7e3,slowClickIgnoreSelectors:g=[],networkDetailAllowUrls:h=[],networkDetailDenyUrls:b=[],networkCaptureBodies:v=!0,networkRequestHeaders:E=[],networkResponseHeaders:y=[],mask:T=[],unmask:O=[],block:C=[],unblock:R=[],ignore:x=[],maskFn:I,beforeAddRecordingEvent:k,blockClass:L,blockSelector:A,maskInputOptions:D,maskTextClass:$,maskTextSelector:F,ignoreClass:z}={}){if(Ap.prototype.__init.call(this),this._recordingOptions={maskAllInputs:l,maskAllText:o,maskInputOptions:{...D||{},password:!0},maskTextFn:I,maskInputFn:I,...HQ({mask:T,unmask:O,block:C,unblock:R,ignore:x,blockClass:L,blockSelector:A,maskTextClass:$,maskTextSelector:F,ignoreClass:z}),slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,K9),stickySession:i,sessionSampleRate:s,errorSampleRate:u,useCompression:a,blockAllMedia:c,maskAllInputs:l,maskAllText:o,mutationBreadcrumbLimit:p,mutationLimit:f,slowClickTimeout:m,slowClickIgnoreSelectors:g,networkDetailAllowUrls:h,networkDetailDenyUrls:b,networkCaptureBodies:v,networkRequestHeaders:Vx(E),networkResponseHeaders:Vx(y),beforeAddRecordingEvent:k,_experiments:d},typeof s=="number"&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration. +or you can use record.mirror to access the mirror instance during recording.`;let Ix={map:{},getId(){return console.error(Vc),-1},getNode(){return console.error(Vc),null},removeNodeFromMap(){console.error(Vc)},has(){return console.error(Vc),!1},reset(){console.error(Vc)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Ix=new Proxy(Ix,{get(e,t,n){return t==="map"&&console.error(Vc),Reflect.get(e,t,n)}}));function Ip(e,t,n={}){let r=null,i=0;return function(a){let d=Date.now();!i&&n.leading===!1&&(i=d);let s=t-(d-i),u=this,o=arguments;s<=0||s>t?(r&&(clearTimeout(r),r=null),i=d,e.apply(u,o)):!r&&n.trailing!==!1&&(r=setTimeout(()=>{i=n.leading===!1?0:Date.now(),r=null,e.apply(u,o)},s))}}function Xg(e,t,n,r,i=window){const a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(d){setTimeout(()=>{n.set.call(this,d)},0),a&&a.set&&a.set.call(this,d)}}),()=>Xg(e,t,a||{},!0)}function Du(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],i=n(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}function Nk(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Ak(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ui(e,t,n,r){if(!e)return!1;if(e.nodeType===e.ELEMENT_NODE){let i=!1;const a=r&&e.matches(r);return typeof t=="string"?e.closest!==void 0?i=!a&&e.closest("."+t)!==null:i=!a&&e.classList.contains(t):!a&&e.classList.forEach(d=>{t.test(d)&&(i=!0)}),!i&&n&&(i=e.matches(n)),!a&&i||ui(e.parentNode,t,n,r)}return e.nodeType===e.TEXT_NODE,ui(e.parentNode,t,n,r)}function rS(e){return"__sn"in e?e.__sn.id===xp:!1}function Dk(e,t){if(Jd(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?Dk(e.parentNode,t):!0:!0}function Mk(e){return Boolean(e.changedTouches)}function yK(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(n){if(!(0 in arguments))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function kk(e){return"__sn"in e?e.__sn.type===xr.Element&&e.__sn.tagName==="iframe":!1}function Pk(e){return Boolean(e==null?void 0:e.shadowRoot)}function Nx(e){return"__ln"in e}class CK{constructor(){this.length=0,this.head=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r`${e}@${t}`;function Dx(e){return"__sn"in e}class TK{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new CK,r=s=>{let u=s,o=xp;for(;o===xp;)u=u&&u.nextSibling,o=u&&this.mirror.getId(u);return o},i=s=>{var u,o,l,c,p;const f=s.getRootNode?(u=s.getRootNode())===null||u===void 0?void 0:u.host:null;let m=f;for(;!((l=(o=m==null?void 0:m.getRootNode)===null||o===void 0?void 0:o.call(m))===null||l===void 0)&&l.host;)m=((p=(c=m==null?void 0:m.getRootNode)===null||c===void 0?void 0:c.call(m))===null||p===void 0?void 0:p.host)||null;const g=!this.doc.contains(s)&&(!m||!this.doc.contains(m));if(!s.parentNode||g)return;const h=Jd(s.parentNode)?this.mirror.getId(f):this.mirror.getId(s.parentNode),b=r(s);if(h===-1||b===-1)return n.addNode(s);let v=ep(s,{doc:this.doc,map:this.mirror.map,blockClass:this.blockClass,blockSelector:this.blockSelector,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,skipChild:!0,inlineStylesheet:this.inlineStylesheet,maskAllText:this.maskAllText,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:E=>{kk(E)&&this.iframeManager.addIframe(E),Pk(s)&&this.shadowDomManager.addShadowRoot(s.shadowRoot,document)},onIframeLoad:(E,y)=>{this.iframeManager.attachIframe(E,y),this.shadowDomManager.observeAttachShadow(E)}});v&&t.push({parentId:h,nextId:b,node:v})};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const s of this.movedSet)jv(this.removes,s,this.mirror)&&!this.movedSet.has(s.parentNode)||i(s);for(const s of this.addedSet)!Wv(this.droppedSet,s)&&!jv(this.removes,s,this.mirror)||Wv(this.movedSet,s)?i(s):this.droppedSet.add(s);let a=null;for(;n.length;){let s=null;if(a){const u=this.mirror.getId(a.value.parentNode),o=r(a.value);u!==-1&&o!==-1&&(s=a)}if(!s)for(let u=n.length-1;u>=0;u--){const o=n.get(u);if(o){const l=this.mirror.getId(o.value.parentNode),c=r(o.value);if(l!==-1&&c!==-1){s=o;break}}}if(!s){for(;n.head;)n.removeNode(n.head.value);break}a=s.previous,n.removeNode(s.value),i(s.value)}const d={texts:this.texts.map(s=>({id:this.mirror.getId(s.node),value:s.value})).filter(s=>this.mirror.has(s.id)),attributes:this.attributes.map(s=>({id:this.mirror.getId(s.node),attributes:s.attributes})).filter(s=>this.mirror.has(s.id)),removes:this.removes,adds:t};!d.texts.length&&!d.attributes.length&&!d.removes.length&&!d.adds.length||(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(d))},this.processMutation=t=>{if(!rS(t.target))switch(t.type){case"characterData":{const n=t.target.textContent;!ui(t.target,this.blockClass,this.blockSelector,this.unblockSelector)&&n!==t.oldValue&&this.texts.push({value:Hm(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=n.getAttribute(t.attributeName);if(t.attributeName==="value"&&(r=Rp({input:n,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,maskInputOptions:this.maskInputOptions,tagName:n.tagName,type:n.getAttribute("type"),value:r,maskInputFn:this.maskInputFn})),ui(t.target,this.blockClass,this.blockSelector,this.unblockSelector)||r===t.oldValue)return;let i=this.attributes.find(a=>a.node===t.target);if(i||(i={node:t.target,attributes:{}},this.attributes.push(i)),t.attributeName==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),t.attributeName==="style"){const a=this.doc.createElement("span");t.oldValue&&a.setAttribute("style",t.oldValue),(i.attributes.style===void 0||i.attributes.style===null)&&(i.attributes.style={});try{const d=i.attributes.style;for(const s of Array.from(n.style)){const u=n.style.getPropertyValue(s),o=n.style.getPropertyPriority(s);(u!==a.style.getPropertyValue(s)||o!==a.style.getPropertyPriority(s))&&(o===""?d[s]=u:d[s]=[u,o])}for(const s of Array.from(a.style))n.style.getPropertyValue(s)===""&&(d[s]=!1)}catch(d){console.warn("[rrweb] Error when parsing update to style attribute:",d)}}else{const a=t.target;i.attributes[t.attributeName]=Ik(this.doc,a,a.tagName,t.attributeName,r,this.maskAllText,this.unmaskTextSelector,this.maskTextFn)}break}case"childList":{t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),i=Jd(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);ui(t.target,this.blockClass,this.blockSelector,this.unblockSelector)||rS(n)||(this.addedSet.has(n)?(qv(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||Dk(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[Ax(r,i)]?qv(this.movedSet,n):this.removes.push({parentId:i,id:r,isShadow:Jd(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!(n&&ui(n,this.blockClass,this.blockSelector,this.unblockSelector))){if(Dx(t)){if(rS(t))return;this.movedSet.add(t);let r=null;n&&Dx(n)&&(r=n.__sn.id),r&&(this.movedMap[Ax(t.__sn.id,r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);ui(t,this.blockClass,this.blockSelector,this.unblockSelector)||t.childNodes.forEach(r=>this.genAdds(r))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskTextClass","maskTextSelector","unmaskTextSelector","maskInputSelector","unmaskInputSelector","inlineStylesheet","maskAllText","maskInputOptions","maskTextFn","maskInputFn","recordCanvas","inlineImages","slimDOMOptions","doc","mirror","iframeManager","shadowDomManager","canvasManager"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function qv(e,t){e.delete(t),t.childNodes.forEach(n=>qv(e,n))}function jv(e,t,n){const{parentNode:r}=t;if(!r)return!1;const i=n.getId(r);return e.some(a=>a.id===i)?!0:jv(e,r,n)}function Wv(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:Wv(e,n):!1}const un=e=>(...n)=>{try{return e(...n)}catch(r){try{r.__rrweb__=!0}catch{}throw r}},Ol=[];function sf(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function Lk(e,t){var n,r;const i=new TK;Ol.push(i),i.init(e);let a=window.MutationObserver||window.__rrMutationObserver;const d=(r=(n=window==null?void 0:window.Zone)===null||n===void 0?void 0:n.__symbol__)===null||r===void 0?void 0:r.call(n,"MutationObserver");d&&window[d]&&(a=window[d]);const s=new a(un(u=>{e.onMutation&&e.onMutation(u)===!1||i.processMutations(u)}));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function OK({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const i=typeof t.mousemove=="number"?t.mousemove:50,a=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let d=[],s;const u=Ip(c=>{const p=Date.now()-s;un(e)(d.map(f=>(f.timeOffset-=p,f)),c),d=[],s=null},a),o=Ip(c=>{const p=sf(c),{clientX:f,clientY:m}=Mk(c)?c.changedTouches[0]:c;s||(s=Date.now()),d.push({x:f,y:m,id:r.getId(p),timeOffset:Date.now()-s}),u(typeof DragEvent<"u"&&c instanceof DragEvent?Fr.Drag:c instanceof MouseEvent?Fr.MouseMove:Fr.TouchMove)},i,{trailing:!1}),l=[$i("mousemove",un(o),n),$i("touchmove",un(o),n),$i("drag",un(o),n)];return un(()=>{l.forEach(c=>c())})}function wK({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,sampling:d}){if(d.mouseInteraction===!1)return()=>{};const s=d.mouseInteraction===!0||d.mouseInteraction===void 0?{}:d.mouseInteraction,u=[],o=l=>c=>{const p=sf(c);if(ui(p,r,i,a))return;const f=Mk(c)?c.changedTouches[0]:c;if(!f)return;const m=n.getId(p),{clientX:g,clientY:h}=f;un(e)({type:zm[l],id:m,x:g,y:h})};return Object.keys(zm).filter(l=>Number.isNaN(Number(l))&&!l.endsWith("_Departed")&&s[l]!==!1).forEach(l=>{const c=l.toLowerCase(),p=un(o(l));u.push($i(c,p,t))}),un(()=>{u.forEach(l=>l())})}function $k({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,sampling:d}){const s=Ip(u=>{const o=sf(u);if(!o||ui(o,r,i,a))return;const l=n.getId(o);if(o===t){const c=t.scrollingElement||t.documentElement;un(e)({id:l,x:c.scrollLeft,y:c.scrollTop})}else un(e)({id:l,x:o.scrollLeft,y:o.scrollTop})},d.scroll||100);return $i("scroll",un(s),t)}function RK({viewportResizeCb:e}){let t=-1,n=-1;const r=Ip(()=>{const i=Nk(),a=Ak();(t!==i||n!==a)&&(un(e)({width:Number(a),height:Number(i)}),t=i,n=a)},200);return $i("resize",un(r),window)}function Mx(e,t){const n=Object.assign({},e);return t||delete n.userTriggered,n}const xK=["INPUT","TEXTAREA","SELECT"],kx=new WeakMap;function IK({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,ignoreClass:d,ignoreSelector:s,maskInputSelector:u,unmaskInputSelector:o,maskInputOptions:l,maskInputFn:c,sampling:p,userTriggeredOnInput:f}){function m(y){let T=sf(y);const O=T&&T.tagName,C=y.isTrusted;if(O==="OPTION"&&(T=T.parentElement),!T||!O||xK.indexOf(O)<0||ui(T,r,i,a))return;const R=T,x=wk(R);if(R.classList.contains(d)||s&&R.matches(s))return;let I=zv(R,O,x),k=!1;(x==="radio"||x==="checkbox")&&(k=T.checked),XW({maskInputOptions:l,maskInputSelector:u,tagName:O,type:x})&&(I=Rp({input:R,maskInputOptions:l,maskInputSelector:u,unmaskInputSelector:o,tagName:O,type:x,value:I,maskInputFn:c})),g(T,un(Mx)({text:I,isChecked:k,userTriggered:C},f));const L=T.name;x==="radio"&&L&&k&&t.querySelectorAll(`input[type="radio"][name="${L}"]`).forEach(A=>{if(A!==T){const D=Rp({input:A,maskInputOptions:l,maskInputSelector:u,unmaskInputSelector:o,tagName:O,type:x,value:zv(A,O,x),maskInputFn:c});g(A,un(Mx)({text:D,isChecked:!k,userTriggered:!1},f))}})}function g(y,T){const O=kx.get(y);if(!O||O.text!==T.text||O.isChecked!==T.isChecked){kx.set(y,T);const C=n.getId(y);e(Object.assign(Object.assign({},T),{id:C}))}}const b=(p.input==="last"?["change"]:["input","change"]).map(y=>$i(y,un(m),t)),v=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),E=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"],[HTMLSelectElement.prototype,"selectedIndex"],[HTMLOptionElement.prototype,"selected"]];return v&&v.set&&b.push(...E.map(y=>Xg(y[0],y[1],{set(){un(m)({target:this})}}))),un(()=>{b.forEach(y=>y())})}function Ym(e){const t=[];function n(r,i){if(D_("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||D_("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||D_("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||D_("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const d=Array.from(r.parentRule.cssRules).indexOf(r);i.unshift(d)}else{const d=Array.from(r.parentStyleSheet.cssRules).indexOf(r);i.unshift(d)}return i}return n(e,t)}function NK({styleSheetRuleCb:e,mirror:t},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};const r=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(r,{apply:un((s,u,o)=>{const[l,c]=o,p=t.getId(u.ownerNode);return p!==-1&&e({id:p,adds:[{rule:l,index:c}]}),s.apply(u,o)})});const i=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:un((s,u,o)=>{const[l]=o,c=t.getId(u.ownerNode);return c!==-1&&e({id:c,removes:[{index:l}]}),s.apply(u,o)})});const a={};M_("CSSGroupingRule")?a.CSSGroupingRule=n.CSSGroupingRule:(M_("CSSMediaRule")&&(a.CSSMediaRule=n.CSSMediaRule),M_("CSSConditionRule")&&(a.CSSConditionRule=n.CSSConditionRule),M_("CSSSupportsRule")&&(a.CSSSupportsRule=n.CSSSupportsRule));const d={};return Object.entries(a).forEach(([s,u])=>{d[s]={insertRule:u.prototype.insertRule,deleteRule:u.prototype.deleteRule},u.prototype.insertRule=new Proxy(d[s].insertRule,{apply:un((o,l,c)=>{const[p,f]=c,m=t.getId(l.parentStyleSheet.ownerNode);return m!==-1&&e({id:m,adds:[{rule:p,index:[...Ym(l),f||0]}]}),o.apply(l,c)})}),u.prototype.deleteRule=new Proxy(d[s].deleteRule,{apply:un((o,l,c)=>{const[p]=c,f=t.getId(l.parentStyleSheet.ownerNode);return f!==-1&&e({id:f,removes:[{index:[...Ym(l),p]}]}),o.apply(l,c)})})}),un(()=>{n.CSSStyleSheet.prototype.insertRule=r,n.CSSStyleSheet.prototype.deleteRule=i,Object.entries(a).forEach(([s,u])=>{u.prototype.insertRule=d[s].insertRule,u.prototype.deleteRule=d[s].deleteRule})})}function AK({styleDeclarationCb:e,mirror:t},{win:n}){const r=n.CSSStyleDeclaration.prototype.setProperty;n.CSSStyleDeclaration.prototype.setProperty=new Proxy(r,{apply:un((a,d,s)=>{var u,o;const[l,c,p]=s,f=t.getId((o=(u=d.parentRule)===null||u===void 0?void 0:u.parentStyleSheet)===null||o===void 0?void 0:o.ownerNode);return f!==-1&&e({id:f,set:{property:l,value:c,priority:p},index:Ym(d.parentRule)}),a.apply(d,s)})});const i=n.CSSStyleDeclaration.prototype.removeProperty;return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:un((a,d,s)=>{var u,o;const[l]=s,c=t.getId((o=(u=d.parentRule)===null||u===void 0?void 0:u.parentStyleSheet)===null||o===void 0?void 0:o.ownerNode);return c!==-1&&e({id:c,remove:{property:l},index:Ym(d.parentRule)}),a.apply(d,s)})}),un(()=>{n.CSSStyleDeclaration.prototype.setProperty=r,n.CSSStyleDeclaration.prototype.removeProperty=i})}function DK({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:a}){const d=u=>Ip(un(o=>{const l=sf(o);if(!l||ui(l,t,n,r))return;const{currentTime:c,volume:p,muted:f}=l;e({type:u,id:i.getId(l),currentTime:c,volume:p,muted:f})}),a.media||500),s=[$i("play",d(0)),$i("pause",d(1)),$i("seeked",d(2)),$i("volumechange",d(3))];return un(()=>{s.forEach(u=>u())})}function MK({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],i=new WeakMap,a=n.FontFace;n.FontFace=function(u,o,l){const c=new a(u,o,l);return i.set(c,{family:u,buffer:typeof o!="string",descriptors:l,fontSource:typeof o=="string"?o:JSON.stringify(Array.from(new Uint8Array(o)))}),c};const d=Du(t.fonts,"add",function(s){return function(u){return setTimeout(()=>{const o=i.get(u);o&&(e(o),i.delete(u))},0),s.apply(this,[u])}});return r.push(()=>{n.FontFace=a}),r.push(d),un(()=>{r.forEach(s=>s())})}function kK(e,t){const{mutationCb:n,mousemoveCb:r,mouseInteractionCb:i,scrollCb:a,viewportResizeCb:d,inputCb:s,mediaInteractionCb:u,styleSheetRuleCb:o,styleDeclarationCb:l,canvasMutationCb:c,fontCb:p}=e;e.mutationCb=(...f)=>{t.mutation&&t.mutation(...f),n(...f)},e.mousemoveCb=(...f)=>{t.mousemove&&t.mousemove(...f),r(...f)},e.mouseInteractionCb=(...f)=>{t.mouseInteraction&&t.mouseInteraction(...f),i(...f)},e.scrollCb=(...f)=>{t.scroll&&t.scroll(...f),a(...f)},e.viewportResizeCb=(...f)=>{t.viewportResize&&t.viewportResize(...f),d(...f)},e.inputCb=(...f)=>{t.input&&t.input(...f),s(...f)},e.mediaInteractionCb=(...f)=>{t.mediaInteaction&&t.mediaInteaction(...f),u(...f)},e.styleSheetRuleCb=(...f)=>{t.styleSheetRule&&t.styleSheetRule(...f),o(...f)},e.styleDeclarationCb=(...f)=>{t.styleDeclaration&&t.styleDeclaration(...f),l(...f)},e.canvasMutationCb=(...f)=>{t.canvasMutation&&t.canvasMutation(...f),c(...f)},e.fontCb=(...f)=>{t.font&&t.font(...f),p(...f)}}function PK(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};kK(e,t);const r=Lk(e,e.doc),i=OK(e),a=wK(e),d=$k(e),s=RK(e),u=IK(e),o=DK(e),l=NK(e,{win:n}),c=AK(e,{win:n}),p=e.collectFonts?MK(e):()=>{},f=[];for(const m of e.plugins)f.push(m.observer(m.callback,n,m.options));return un(()=>{Ol.forEach(m=>m.reset()),r.disconnect(),i(),a(),d(),s(),u(),o();try{l(),c()}catch{}p(),f.forEach(m=>m())})}function D_(e){return typeof window[e]<"u"}function M_(e){return Boolean(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class LK{constructor(t){this.iframes=new WeakMap,this.mutationCb=t.mutationCb}addIframe(t){this.iframes.set(t,!0)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){var r;this.mutationCb({adds:[{parentId:t.__sn.id,nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),(r=this.loadListener)===null||r===void 0||r.call(this,t)}}class $K{constructor(t){this.restorePatches=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror;const n=this;this.restorePatches.push(Du(HTMLElement.prototype,"attachShadow",function(r){return function(){const i=r.apply(this,arguments);return this.shadowRoot&&n.addShadowRoot(this.shadowRoot,this.ownerDocument),i}}))}addShadowRoot(t,n){Lk(Object.assign(Object.assign({},this.bypassOptions),{doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t),$k(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))}observeAttachShadow(t){if(t.contentWindow){const n=this;this.restorePatches.push(Du(t.contentWindow.HTMLElement.prototype,"attachShadow",function(r){return function(){const i=r.apply(this,arguments);return this.shadowRoot&&n.addShadowRoot(this.shadowRoot,t.contentDocument),i}}))}}reset(){this.restorePatches.forEach(t=>t())}}function FK(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const p=[...c];if(u==="drawImage"&&p[0]&&p[0]instanceof HTMLCanvasElement){const f=p[0],m=f.getContext("2d");let g=m==null?void 0:m.getImageData(0,0,f.width,f.height),h=g==null?void 0:g.data;p[0]=JSON.stringify(h)}e(this.canvas,{type:Au["2D"],property:u,args:p})},0),l.apply(this,c)}});d.push(o)}catch{const l=Xg(t.CanvasRenderingContext2D.prototype,u,{set(c){e(this.canvas,{type:Au["2D"],property:u,args:[c],setter:!0})}});d.push(l)}return()=>{d.forEach(u=>u())}}function UK(e,t,n,r){const i=[];try{const a=Du(e.HTMLCanvasElement.prototype,"getContext",function(d){return function(s,...u){return ui(this,t,n,r)||"__context"in this||(this.__context=s),d.apply(this,[s,...u])}});i.push(a)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach(a=>a())}}var Qc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",GK=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var k_=0;k_>2],i+=Qc[(t[n]&3)<<4|t[n+1]>>4],i+=Qc[(t[n+1]&15)<<2|t[n+2]>>6],i+=Qc[t[n+2]&63];return r%3===2?i=i.substring(0,i.length-1)+"=":r%3===1&&(i=i.substring(0,i.length-2)+"=="),i};const Px=new Map;function zK(e,t){let n=Px.get(e);return n||(n=new Map,Px.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}const Fk=(e,t,n)=>{if(!e||!(Bk(e,t)||typeof e=="object"))return;const r=e.constructor.name,i=zK(n,r);let a=i.indexOf(e);return a===-1&&(a=i.length,i.push(e)),a};function um(e,t,n){if(e instanceof Array)return e.map(r=>um(r,t,n));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const r=e.constructor.name,i=HK(e);return{rr_type:r,base64:i}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[um(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const r=e.constructor.name,{src:i}=e;return{rr_type:r,src:i}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[um(e.data,t,n),e.width,e.height]};if(Bk(e,t)||typeof e=="object"){const r=e.constructor.name,i=Fk(e,t,n);return{rr_type:r,index:i}}}}return e}const YK=(e,t,n)=>[...e].map(r=>um(r,t,n)),Bk=(e,t)=>{const r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(i=>typeof t[i]=="function");return Boolean(r.find(i=>e instanceof t[i]))};function Lx(e,t,n,r,i,a,d,s){const u=[],o=Object.getOwnPropertyNames(e);for(const l of o)try{if(typeof e[l]!="function")continue;const c=Du(e,l,function(p){return function(...f){const m=p.apply(this,f);if(Fk(m,s,e),!ui(this.canvas,r,a,i)){const g=d.getId(this.canvas),h=YK([...f],s,e),b={type:t,property:l,args:h};n(this.canvas,b)}return m}});u.push(c)}catch{const p=Xg(e,l,{set(f){n(this.canvas,{type:t,property:l,args:[f],setter:!0})}});u.push(p)}return u}function VK(e,t,n,r,i,a){const d=[];return d.push(...Lx(t.WebGLRenderingContext.prototype,Au.WebGL,e,n,r,i,a,t)),typeof t.WebGL2RenderingContext<"u"&&d.push(...Lx(t.WebGL2RenderingContext.prototype,Au.WebGL2,e,n,r,i,a,t)),()=>{d.forEach(s=>s())}}class qK{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(n,r){(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(n)||this.pendingCanvasMutations.set(n,[]),this.pendingCanvasMutations.get(n).push(r)},this.mutationCb=t.mutationCb,this.mirror=t.mirror,t.recordCanvas===!0&&this.initCanvasMutationObserver(t.win,t.blockClass,t.blockSelector,t.unblockSelector)}initCanvasMutationObserver(t,n,r,i){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const a=UK(t,n,i,r),d=BK(this.processMutation.bind(this),t,n,i,r,this.mirror),s=VK(this.processMutation.bind(this),t,n,i,r,this.mirror);this.resetObservers=()=>{a(),d(),s()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=n=>{this.rafStamps.latestId=n,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,n)=>{const r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,n){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(t);if(!r||n===-1)return;const i=r.map(d=>FK(d,["type"])),{type:a}=r[0];this.mutationCb({id:n,type:a,commands:i}),this.pendingCanvasMutations.delete(t)}}function $r(e){return Object.assign(Object.assign({},e),{timestamp:Date.now()})}let Sr,tp;const Bd=EK();function Vl(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i="rr-block",blockSelector:a=null,unblockSelector:d=null,ignoreClass:s="rr-ignore",ignoreSelector:u=null,maskTextClass:o="rr-mask",maskTextSelector:l=null,maskInputSelector:c=null,unmaskTextSelector:p=null,unmaskInputSelector:f=null,inlineStylesheet:m=!0,maskAllText:g=!1,maskAllInputs:h,maskInputOptions:b,slimDOMOptions:v,maskInputFn:E,maskTextFn:y,hooks:T,packFn:O,sampling:C={},mousemoveWait:R,recordCanvas:x=!1,userTriggeredOnInput:I=!1,collectFonts:k=!1,inlineImages:L=!1,plugins:A,keepIframeSrcFn:D=()=>!1,onMutation:$}=e;if(!t)throw new Error("emit function is required");R!==void 0&&C.mousemove===void 0&&(C.mousemove=R);const F=h===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:b!==void 0?b:{},z=v===!0||v==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:v==="all",headMetaDescKeywords:v==="all"}:v||{};yK();let H,V=0;const W=q=>{for(const se of A||[])se.eventProcessor&&(q=se.eventProcessor(q));return O&&(q=O(q)),q};Sr=(q,se)=>{var re;if(((re=Ol[0])===null||re===void 0?void 0:re.isFrozen())&&q.type!==Cn.FullSnapshot&&!(q.type===Cn.IncrementalSnapshot&&q.data.source===Fr.Mutation)&&Ol.forEach(_e=>_e.unfreeze()),t(W(q),se),q.type===Cn.FullSnapshot)H=q,V=0;else if(q.type===Cn.IncrementalSnapshot){if(q.data.source===Fr.Mutation&&q.data.isAttachIframe)return;V++;const _e=r&&V>=r,me=n&&q.timestamp-H.timestamp>n;(_e||me)&&tp(!0)}};const te=q=>{Sr($r({type:Cn.IncrementalSnapshot,data:Object.assign({source:Fr.Mutation},q)}))},X=q=>Sr($r({type:Cn.IncrementalSnapshot,data:Object.assign({source:Fr.Scroll},q)})),ne=q=>Sr($r({type:Cn.IncrementalSnapshot,data:Object.assign({source:Fr.CanvasMutation},q)})),oe=new LK({mutationCb:te}),Q=new qK({recordCanvas:x,mutationCb:ne,win:window,blockClass:i,blockSelector:a,unblockSelector:d,mirror:Bd}),Z=new $K({mutationCb:te,scrollCb:X,bypassOptions:{onMutation:$,blockClass:i,blockSelector:a,unblockSelector:d,maskTextClass:o,maskTextSelector:l,unmaskTextSelector:p,maskInputSelector:c,unmaskInputSelector:f,inlineStylesheet:m,maskAllText:g,maskInputOptions:F,maskTextFn:y,maskInputFn:E,recordCanvas:x,inlineImages:L,sampling:C,slimDOMOptions:z,iframeManager:oe,canvasManager:Q},mirror:Bd});tp=(q=!1)=>{var se,re,_e,me;Sr($r({type:Cn.Meta,data:{href:window.location.href,width:Ak(),height:Nk()}}),q),Ol.forEach(J=>J.lock());const[U,j]=SK(document,{blockClass:i,blockSelector:a,unblockSelector:d,maskTextClass:o,maskTextSelector:l,unmaskTextSelector:p,maskInputSelector:c,unmaskInputSelector:f,inlineStylesheet:m,maskAllText:g,maskAllInputs:F,maskTextFn:y,slimDOM:z,recordCanvas:x,inlineImages:L,onSerialize:J=>{kk(J)&&oe.addIframe(J),Pk(J)&&Z.addShadowRoot(J.shadowRoot,document)},onIframeLoad:(J,pe)=>{oe.attachIframe(J,pe),Z.observeAttachShadow(J)},keepIframeSrcFn:D});if(!U)return console.warn("Failed to snapshot the document");Bd.map=j,Sr($r({type:Cn.FullSnapshot,data:{node:U,initialOffset:{left:window.pageXOffset!==void 0?window.pageXOffset:(document==null?void 0:document.documentElement.scrollLeft)||((re=(se=document==null?void 0:document.body)===null||se===void 0?void 0:se.parentElement)===null||re===void 0?void 0:re.scrollLeft)||(document==null?void 0:document.body.scrollLeft)||0,top:window.pageYOffset!==void 0?window.pageYOffset:(document==null?void 0:document.documentElement.scrollTop)||((me=(_e=document==null?void 0:document.body)===null||_e===void 0?void 0:_e.parentElement)===null||me===void 0?void 0:me.scrollTop)||(document==null?void 0:document.body.scrollTop)||0}}})),Ol.forEach(J=>J.unlock())};try{const q=[];q.push($i("DOMContentLoaded",()=>{Sr($r({type:Cn.DomContentLoaded,data:{}}))}));const se=_e=>{var me;return un(PK)({onMutation:$,mutationCb:te,mousemoveCb:(U,j)=>Sr($r({type:Cn.IncrementalSnapshot,data:{source:j,positions:U}})),mouseInteractionCb:U=>Sr($r({type:Cn.IncrementalSnapshot,data:Object.assign({source:Fr.MouseInteraction},U)})),scrollCb:X,viewportResizeCb:U=>Sr($r({type:Cn.IncrementalSnapshot,data:Object.assign({source:Fr.ViewportResize},U)})),inputCb:U=>Sr($r({type:Cn.IncrementalSnapshot,data:Object.assign({source:Fr.Input},U)})),mediaInteractionCb:U=>Sr($r({type:Cn.IncrementalSnapshot,data:Object.assign({source:Fr.MediaInteraction},U)})),styleSheetRuleCb:U=>Sr($r({type:Cn.IncrementalSnapshot,data:Object.assign({source:Fr.StyleSheetRule},U)})),styleDeclarationCb:U=>Sr($r({type:Cn.IncrementalSnapshot,data:Object.assign({source:Fr.StyleDeclaration},U)})),canvasMutationCb:ne,fontCb:U=>Sr($r({type:Cn.IncrementalSnapshot,data:Object.assign({source:Fr.Font},U)})),blockClass:i,ignoreClass:s,ignoreSelector:u,maskTextClass:o,maskTextSelector:l,unmaskTextSelector:p,maskInputSelector:c,unmaskInputSelector:f,maskInputOptions:F,inlineStylesheet:m,sampling:C,recordCanvas:x,inlineImages:L,userTriggeredOnInput:I,collectFonts:k,doc:_e,maskAllText:g,maskInputFn:E,maskTextFn:y,blockSelector:a,unblockSelector:d,slimDOMOptions:z,mirror:Bd,iframeManager:oe,shadowDomManager:Z,canvasManager:Q,plugins:((me=A==null?void 0:A.filter(U=>U.observer))===null||me===void 0?void 0:me.map(U=>({observer:U.observer,options:U.options,callback:j=>Sr($r({type:Cn.Plugin,data:{plugin:U.name,payload:j}}))})))||[]},T)};oe.addLoadListener(_e=>{try{q.push(se(_e.contentDocument))}catch(me){console.warn(me)}});const re=()=>{tp(),q.push(se(document))};return document.readyState==="interactive"||document.readyState==="complete"?re():q.push($i("load",()=>{Sr($r({type:Cn.Load,data:{}})),re()},window)),()=>{q.forEach(_e=>_e())}}catch(q){console.warn(q)}}Vl.addCustomEvent=(e,t)=>{if(!Sr)throw new Error("please add custom event after start recording");Sr($r({type:Cn.Custom,data:{tag:e,payload:t}}))};Vl.freezePage=()=>{Ol.forEach(e=>e.freeze())};Vl.takeFullSnapshot=e=>{if(!tp)throw new Error("please take full snapshot after start recording");tp(e)};Vl.mirror=Bd;function C0(e){return e>9999999999?e:e*1e3}function jK(e){return e>9999999999?e/1e3:e}function Zg(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:Cn.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:Ts(t,10,1e3)}}),t.category==="console")))}const WK="button,a";function T0(e){const t=Uk(e);return!t||!(t instanceof Element)?t:t.closest(WK)||t}function Uk(e){return KK(e)?e.target:e}function KK(e){return typeof e=="object"&&!!e&&"target"in e}let Os;function QK(e){return Os||(Os=[],XK()),Os.push(e),()=>{const t=Os?Os.indexOf(e):-1;t>-1&&Os.splice(t,1)}}function XK(){Ao(nn,"open",function(e){return function(...t){if(Os)try{Os.forEach(n=>n())}catch{}return e.apply(nn,t)}})}function ZK(e,t,n){e.handleClick(t,n)}class np{__init(){this._lastMutation=0}__init2(){this._lastScroll=0}__init3(){this._clicks=[]}constructor(t,n,r=Zg){np.prototype.__init.call(this),np.prototype.__init2.call(this),np.prototype.__init3.call(this),this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const t=()=>{this._lastMutation=P_()},n=()=>{this._lastScroll=P_()},r=QK(()=>{this._lastMutation=P_()}),i=d=>{if(!d.target)return;const s=T0(d);s&&this._handleMultiClick(s)},a=new MutationObserver(t);a.observe(nn.document.documentElement,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),nn.addEventListener("scroll",n,{passive:!0}),nn.addEventListener("click",i,{passive:!0}),this._teardown=()=>{nn.removeEventListener("scroll",n),nn.removeEventListener("click",i),r(),a.disconnect(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(e7(n,this._ignoreSelector)||!t7(t))return;const r={timestamp:jK(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks()}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=P_();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(const r of t){const i=this._clicks.indexOf(r);i>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(i,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scollTimeout,i=t.mutationAfter&&t.mutationAfter<=this._threshold,a=!r&&!i,{clickCount:d,clickBreadcrumb:s}=t;if(a){const u=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,o=u1){const u={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.multiClick",data:{...s.data,url:nn.location.href,route:n.getCurrentRoute(),clickCount:d,metric:!0}};this._addBreadcrumbEvent(n,u)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout(()=>this._checkClicks(),1e3)}}const JK=["A","BUTTON","INPUT"];function e7(e,t){return!!(!JK.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function t7(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function P_(){return Date.now()/1e3}function Fa(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Vm;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(Vm||(Vm={}));const n7=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled"]);function r7(e){const t={};for(const n in e)if(n7.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const i7=e=>t=>{if(!e.isEnabled())return;const n=o7(t);if(!n)return;const r=t.name==="click",i=r&&t.event;r&&e.clickDetector&&i&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&ZK(e.clickDetector,n,T0(t.event)),Zg(e,n)};function Gk(e,t){const n=e&&s7(e)&&e.__sn.type===Vm.Element?e.__sn:null;return{message:t,data:n?{nodeId:n.id,node:{id:n.id,tagName:n.tagName,textContent:e?Array.from(e.childNodes).map(r=>"__sn"in r&&r.__sn.type===Vm.Text&&r.__sn.textContent).filter(Boolean).map(r=>r.trim()).join(""):"",attributes:r7(n.attributes)}}:{}}}function o7(e){const{target:t,message:n}=a7(e);return Fa({category:`ui.${e.name}`,...Gk(t,n)})}function a7(e){const t=e.name==="click";let n,r=null;try{r=t?T0(e.event):Uk(e.event),n=b0(r,{maxStringLength:200})||""}catch{n=""}return{target:r,message:n}}function s7(e){return"__sn"in e}function l7(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=c7(t);!n||Zg(e,n)}function c7(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:a,target:d}=e;if(!d||u7(d)||!a)return null;const s=t||r||i,u=a.length===1;if(!s&&u)return null;const o=b0(d,{maxStringLength:200})||"",l=Gk(d,o);return Fa({category:"ui.keyDown",message:o,data:{...l.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:a}})}function u7(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const d7=["name","type","startTime","transferSize","duration"];function $x(e){return function(t){return d7.every(n=>e[n]===t[n])}}function p7(e,t){const[n,r,i]=e.reduce((u,o)=>(o.entryType==="navigation"?u[0].push(o):o.entryType==="largest-contentful-paint"?u[1].push(o):u[2].push(o),u),[[],[],[]]),a=[],d=[];let s=r.length?r[r.length-1]:void 0;return t.forEach(u=>{if(u.entryType==="largest-contentful-paint"){(!s||s.startTime0&&!n.find($x(o))&&!d.find($x(o))&&d.push(o);return}a.push(u)}),[...s?[s]:[],...n,...i,...a,...d].sort((u,o)=>u.startTime-o.startTime)}function f7(e){const t=r=>{const i=p7(e.performanceEvents,r.getEntries());e.performanceEvents=i},n=new PerformanceObserver(t);return["element","event","first-input","largest-contentful-paint","layout-shift","longtask","navigation","paint","resource"].forEach(r=>{try{n.observe({type:r,buffered:!0})}catch{}}),n}const _7=`/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */ +function t(t){let e=t.length;for(;--e>=0;)t[e]=0}const e=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),a=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),i=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),n=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=new Array(576);t(s);const r=new Array(60);t(r);const o=new Array(512);t(o);const l=new Array(256);t(l);const h=new Array(29);t(h);const d=new Array(30);function _(t,e,a,i,n){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=i,this.max_length=n,this.has_stree=t&&t.length}let f,c,u;function w(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}t(d);const m=t=>t<256?o[t]:o[256+(t>>>7)],b=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},g=(t,e,a)=>{t.bi_valid>16-a?(t.bi_buf|=e<>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<{g(t,a[2*e],a[2*e+1])},k=(t,e)=>{let a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},v=(t,e,a)=>{const i=new Array(16);let n,s,r=0;for(n=1;n<=15;n++)r=r+a[n-1]<<1,i[n]=r;for(s=0;s<=e;s++){let e=t[2*s+1];0!==e&&(t[2*s]=k(i[e]++,e))}},y=t=>{let e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},x=t=>{t.bi_valid>8?b(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},z=(t,e,a,i)=>{const n=2*e,s=2*a;return t[n]{const i=t.heap[a];let n=a<<1;for(;n<=t.heap_len&&(n{let s,r,o,_,f=0;if(0!==t.sym_next)do{s=255&t.pending_buf[t.sym_buf+f++],s+=(255&t.pending_buf[t.sym_buf+f++])<<8,r=t.pending_buf[t.sym_buf+f++],0===s?p(t,r,i):(o=l[r],p(t,o+256+1,i),_=e[o],0!==_&&(r-=h[o],g(t,r,_)),s--,o=m(s),p(t,o,n),_=a[o],0!==_&&(s-=d[o],g(t,s,_)))}while(f{const a=e.dyn_tree,i=e.stat_desc.static_tree,n=e.stat_desc.has_stree,s=e.stat_desc.elems;let r,o,l,h=-1;for(t.heap_len=0,t.heap_max=573,r=0;r>1;r>=1;r--)A(t,a,r);l=s;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],A(t,a,1),o=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=o,a[2*l]=a[2*r]+a[2*o],t.depth[l]=(t.depth[r]>=t.depth[o]?t.depth[r]:t.depth[o])+1,a[2*r+1]=a[2*o+1]=l,t.heap[1]=l++,A(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const a=e.dyn_tree,i=e.max_code,n=e.stat_desc.static_tree,s=e.stat_desc.has_stree,r=e.stat_desc.extra_bits,o=e.stat_desc.extra_base,l=e.stat_desc.max_length;let h,d,_,f,c,u,w=0;for(f=0;f<=15;f++)t.bl_count[f]=0;for(a[2*t.heap[t.heap_max]+1]=0,h=t.heap_max+1;h<573;h++)d=t.heap[h],f=a[2*a[2*d+1]+1]+1,f>l&&(f=l,w++),a[2*d+1]=f,d>i||(t.bl_count[f]++,c=0,d>=o&&(c=r[d-o]),u=a[2*d],t.opt_len+=u*(f+c),s&&(t.static_len+=u*(n[2*d+1]+c)));if(0!==w){do{for(f=l-1;0===t.bl_count[f];)f--;t.bl_count[f]--,t.bl_count[f+1]+=2,t.bl_count[l]--,w-=2}while(w>0);for(f=l;0!==f;f--)for(d=t.bl_count[f];0!==d;)_=t.heap[--h],_>i||(a[2*_+1]!==f&&(t.opt_len+=(f-a[2*_+1])*a[2*_],a[2*_+1]=f),d--)}})(t,e),v(a,h,t.bl_count)},Z=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),e[2*(a+1)+1]=65535,i=0;i<=a;i++)n=r,r=e[2*(i+1)+1],++o{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),i=0;i<=a;i++)if(n=r,r=e[2*(i+1)+1],!(++o{g(t,0+(i?1:0),3),x(t),b(t,a),b(t,~a),a&&t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a};var T=(t,e,a,i)=>{let o,l,h=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),R(t,t.l_desc),R(t,t.d_desc),h=(t=>{let e;for(Z(t,t.dyn_ltree,t.l_desc.max_code),Z(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*n[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),o=t.opt_len+3+7>>>3,l=t.static_len+3+7>>>3,l<=o&&(o=l)):o=l=a+5,a+4<=o&&-1!==e?D(t,e,a,i):4===t.strategy||l===o?(g(t,2+(i?1:0),3),E(t,s,r)):(g(t,4+(i?1:0),3),((t,e,a,i)=>{let s;for(g(t,e-257,5),g(t,a-1,5),g(t,i-4,4),s=0;s{S||((()=>{let t,n,w,m,b;const g=new Array(16);for(w=0,m=0;m<28;m++)for(h[m]=w,t=0;t<1<>=7;m<30;m++)for(d[m]=b<<7,t=0;t<1<(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=a,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(l[a]+256+1)]++,t.dyn_dtree[2*m(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{g(t,2,3),p(t,256,s),(t=>{16===t.bi_valid?(b(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)}};var F=(t,e,a,i)=>{let n=65535&t|0,s=t>>>16&65535|0,r=0;for(;0!==a;){r=a>2e3?2e3:a,a-=r;do{n=n+e[i++]|0,s=s+n|0}while(--r);n%=65521,s%=65521}return n|s<<16|0};const L=new Uint32Array((()=>{let t,e=[];for(var a=0;a<256;a++){t=a;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e})());var N=(t,e,a,i)=>{const n=L,s=i+a;t^=-1;for(let a=i;a>>8^n[255&(t^e[a])];return-1^t},I={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},B={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:C,_tr_stored_block:H,_tr_flush_block:M,_tr_tally:j,_tr_align:K}=O,{Z_NO_FLUSH:P,Z_PARTIAL_FLUSH:Y,Z_FULL_FLUSH:G,Z_FINISH:X,Z_BLOCK:W,Z_OK:q,Z_STREAM_END:J,Z_STREAM_ERROR:Q,Z_DATA_ERROR:V,Z_BUF_ERROR:$,Z_DEFAULT_COMPRESSION:tt,Z_FILTERED:et,Z_HUFFMAN_ONLY:at,Z_RLE:it,Z_FIXED:nt,Z_DEFAULT_STRATEGY:st,Z_UNKNOWN:rt,Z_DEFLATED:ot}=B,lt=(t,e)=>(t.msg=I[e],e),ht=t=>2*t-(t>4?9:0),dt=t=>{let e=t.length;for(;--e>=0;)t[e]=0},_t=t=>{let e,a,i,n=t.w_size;e=t.hash_size,i=e;do{a=t.head[--i],t.head[i]=a>=n?a-n:0}while(--e);e=n,i=e;do{a=t.prev[--i],t.prev[i]=a>=n?a-n:0}while(--e)};let ft=(t,e,a)=>(e<{const e=t.state;let a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},ut=(t,e)=>{M(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,ct(t.strm)},wt=(t,e)=>{t.pending_buf[t.pending++]=e},mt=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},bt=(t,e,a,i)=>{let n=t.avail_in;return n>i&&(n=i),0===n?0:(t.avail_in-=n,e.set(t.input.subarray(t.next_in,t.next_in+n),a),1===t.state.wrap?t.adler=F(t.adler,e,n,a):2===t.state.wrap&&(t.adler=N(t.adler,e,n,a)),t.next_in+=n,t.total_in+=n,n)},gt=(t,e)=>{let a,i,n=t.max_chain_length,s=t.strstart,r=t.prev_length,o=t.nice_match;const l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,h=t.window,d=t.w_mask,_=t.prev,f=t.strstart+258;let c=h[s+r-1],u=h[s+r];t.prev_length>=t.good_match&&(n>>=2),o>t.lookahead&&(o=t.lookahead);do{if(a=e,h[a+r]===u&&h[a+r-1]===c&&h[a]===h[s]&&h[++a]===h[s+1]){s+=2,a++;do{}while(h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&sr){if(t.match_start=e,r=i,i>=o)break;c=h[s+r-1],u=h[s+r]}}}while((e=_[e&d])>l&&0!=--n);return r<=t.lookahead?r:t.lookahead},pt=t=>{const e=t.w_size;let a,i,n;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-262)&&(t.window.set(t.window.subarray(e,e+e-i),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),_t(t),i+=e),0===t.strm.avail_in)break;if(a=bt(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=a,t.lookahead+t.insert>=3)for(n=t.strstart-t.insert,t.ins_h=t.window[n],t.ins_h=ft(t,t.ins_h,t.window[n+1]);t.insert&&(t.ins_h=ft(t,t.ins_h,t.window[n+3-1]),t.prev[n&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=n,n++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)},kt=(t,e)=>{let a,i,n,s=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,r=0,o=t.strm.avail_in;do{if(a=65535,n=t.bi_valid+42>>3,t.strm.avail_outi+t.strm.avail_in&&(a=i+t.strm.avail_in),a>n&&(a=n),a>8,t.pending_buf[t.pending-2]=~a,t.pending_buf[t.pending-1]=~a>>8,ct(t.strm),i&&(i>a&&(i=a),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+i),t.strm.next_out),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i,t.block_start+=i,a-=i),a&&(bt(t.strm,t.strm.output,t.strm.next_out,a),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a)}while(0===r);return o-=t.strm.avail_in,o&&(o>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=o&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-o,t.strm.next_in),t.strstart),t.strstart+=o,t.insert+=o>t.w_size-t.insert?t.w_size-t.insert:o),t.block_start=t.strstart),t.high_watern&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,n+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),n>t.strm.avail_in&&(n=t.strm.avail_in),n&&(bt(t.strm,t.window,t.strstart,n),t.strstart+=n,t.insert+=n>t.w_size-t.insert?t.w_size-t.insert:n),t.high_water>3,n=t.pending_buf_size-n>65535?65535:t.pending_buf_size-n,s=n>t.w_size?t.w_size:n,i=t.strstart-t.block_start,(i>=s||(i||e===X)&&e!==P&&0===t.strm.avail_in&&i<=n)&&(a=i>n?n:i,r=e===X&&0===t.strm.avail_in&&a===i?1:0,H(t,t.block_start,a,r),t.block_start+=a,ct(t.strm)),r?3:1)},vt=(t,e)=>{let a,i;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a)),t.match_length>=3)if(i=j(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=ft(t,t.ins_h,t.window[t.strstart+1]);else i=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2},yt=(t,e)=>{let a,i,n;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){n=t.strstart+t.lookahead-3,i=j(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=n&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,i&&(ut(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(i=j(t,0,t.window[t.strstart-1]),i&&ut(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=j(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2};function xt(t,e,a,i,n){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=i,this.func=n}const zt=[new xt(0,0,0,0,kt),new xt(4,4,8,4,vt),new xt(4,5,16,8,vt),new xt(4,6,32,32,vt),new xt(4,4,16,16,yt),new xt(8,16,32,32,yt),new xt(8,16,128,128,yt),new xt(8,32,128,256,yt),new xt(32,128,258,1024,yt),new xt(32,258,258,4096,yt)];function At(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ot,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),dt(this.dyn_ltree),dt(this.dyn_dtree),dt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),dt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),dt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Et=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||42!==e.status&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&113!==e.status&&666!==e.status?1:0},Rt=t=>{if(Et(t))return lt(t,Q);t.total_in=t.total_out=0,t.data_type=rt;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=-2,C(e),q},Zt=t=>{const e=Rt(t);var a;return e===q&&((a=t.state).window_size=2*a.w_size,dt(a.head),a.max_lazy_match=zt[a.level].max_lazy,a.good_match=zt[a.level].good_length,a.nice_match=zt[a.level].nice_length,a.max_chain_length=zt[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=2,a.match_available=0,a.ins_h=0),e},Ut=(t,e,a,i,n,s)=>{if(!t)return Q;let r=1;if(e===tt&&(e=6),i<0?(r=0,i=-i):i>15&&(r=2,i-=16),n<1||n>9||a!==ot||i<8||i>15||e<0||e>9||s<0||s>nt||8===i&&1!==r)return lt(t,Q);8===i&&(i=9);const o=new At;return t.state=o,o.strm=t,o.status=42,o.wrap=r,o.gzhead=null,o.w_bits=i,o.w_size=1<Ut(t,e,ot,15,8,st),deflateInit2:Ut,deflateReset:Zt,deflateResetKeep:Rt,deflateSetHeader:(t,e)=>Et(t)||2!==t.state.wrap?Q:(t.state.gzhead=e,q),deflate:(t,e)=>{if(Et(t)||e>W||e<0)return t?lt(t,Q):Q;const a=t.state;if(!t.output||0!==t.avail_in&&!t.input||666===a.status&&e!==X)return lt(t,0===t.avail_out?$:Q);const i=a.last_flush;if(a.last_flush=e,0!==a.pending){if(ct(t),0===t.avail_out)return a.last_flush=-1,q}else if(0===t.avail_in&&ht(e)<=ht(i)&&e!==X)return lt(t,$);if(666===a.status&&0!==t.avail_in)return lt(t,$);if(42===a.status&&0===a.wrap&&(a.status=113),42===a.status){let e=ot+(a.w_bits-8<<4)<<8,i=-1;if(i=a.strategy>=at||a.level<2?0:a.level<6?1:6===a.level?2:3,e|=i<<6,0!==a.strstart&&(e|=32),e+=31-e%31,mt(a,e),0!==a.strstart&&(mt(a,t.adler>>>16),mt(a,65535&t.adler)),t.adler=1,a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(57===a.status)if(t.adler=0,wt(a,31),wt(a,139),wt(a,8),a.gzhead)wt(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),wt(a,255&a.gzhead.time),wt(a,a.gzhead.time>>8&255),wt(a,a.gzhead.time>>16&255),wt(a,a.gzhead.time>>24&255),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(wt(a,255&a.gzhead.extra.length),wt(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(t.adler=N(t.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69;else if(wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,3),a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q;if(69===a.status){if(a.gzhead.extra){let e=a.pending,i=(65535&a.gzhead.extra.length)-a.gzindex;for(;a.pending+i>a.pending_buf_size;){let n=a.pending_buf_size-a.pending;if(a.pending_buf.set(a.gzhead.extra.subarray(a.gzindex,a.gzindex+n),a.pending),a.pending=a.pending_buf_size,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex+=n,ct(t),0!==a.pending)return a.last_flush=-1,q;e=0,i-=n}let n=new Uint8Array(a.gzhead.extra);a.pending_buf.set(n.subarray(a.gzindex,a.gzindex+i),a.pending),a.pending+=i,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex=0}a.status=73}if(73===a.status){if(a.gzhead.name){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindexi&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),a.gzindex=0}a.status=91}if(91===a.status){if(a.gzhead.comment){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindexi&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i))}a.status=103}if(103===a.status){if(a.gzhead.hcrc){if(a.pending+2>a.pending_buf_size&&(ct(t),0!==a.pending))return a.last_flush=-1,q;wt(a,255&t.adler),wt(a,t.adler>>8&255),t.adler=0}if(a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(0!==t.avail_in||0!==a.lookahead||e!==P&&666!==a.status){let i=0===a.level?kt(a,e):a.strategy===at?((t,e)=>{let a;for(;;){if(0===t.lookahead&&(pt(t),0===t.lookahead)){if(e===P)return 1;break}if(t.match_length=0,a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):a.strategy===it?((t,e)=>{let a,i,n,s;const r=t.window;for(;;){if(t.lookahead<=258){if(pt(t),t.lookahead<=258&&e===P)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=t.strstart-1,i=r[n],i===r[++n]&&i===r[++n]&&i===r[++n])){s=t.strstart+258;do{}while(i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&nt.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=j(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):zt[a.level].func(a,e);if(3!==i&&4!==i||(a.status=666),1===i||3===i)return 0===t.avail_out&&(a.last_flush=-1),q;if(2===i&&(e===Y?K(a):e!==W&&(H(a,0,0,!1),e===G&&(dt(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),ct(t),0===t.avail_out))return a.last_flush=-1,q}return e!==X?q:a.wrap<=0?J:(2===a.wrap?(wt(a,255&t.adler),wt(a,t.adler>>8&255),wt(a,t.adler>>16&255),wt(a,t.adler>>24&255),wt(a,255&t.total_in),wt(a,t.total_in>>8&255),wt(a,t.total_in>>16&255),wt(a,t.total_in>>24&255)):(mt(a,t.adler>>>16),mt(a,65535&t.adler)),ct(t),a.wrap>0&&(a.wrap=-a.wrap),0!==a.pending?q:J)},deflateEnd:t=>{if(Et(t))return Q;const e=t.state.status;return t.state=null,113===e?lt(t,V):q},deflateSetDictionary:(t,e)=>{let a=e.length;if(Et(t))return Q;const i=t.state,n=i.wrap;if(2===n||1===n&&42!==i.status||i.lookahead)return Q;if(1===n&&(t.adler=F(t.adler,e,a,0)),i.wrap=0,a>=i.w_size){0===n&&(dt(i.head),i.strstart=0,i.block_start=0,i.insert=0);let t=new Uint8Array(i.w_size);t.set(e.subarray(a-i.w_size,a),0),e=t,a=i.w_size}const s=t.avail_in,r=t.next_in,o=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,pt(i);i.lookahead>=3;){let t=i.strstart,e=i.lookahead-2;do{i.ins_h=ft(i,i.ins_h,i.window[t+3-1]),i.prev[t&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=t,t++}while(--e);i.strstart=t,i.lookahead=2,pt(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,t.next_in=r,t.input=o,t.avail_in=s,i.wrap=n,q},deflateInfo:"pako deflate (from Nodeca project)"};const Dt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Tt=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const a=e.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(const e in a)Dt(a,e)&&(t[e]=a[e])}}return t},Ot=t=>{let e=0;for(let a=0,i=t.length;a=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Lt[254]=Lt[254]=1;var Nt=t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,i,n,s,r=t.length,o=0;for(n=0;n>>6,e[s++]=128|63&a):a<65536?(e[s++]=224|a>>>12,e[s++]=128|a>>>6&63,e[s++]=128|63&a):(e[s++]=240|a>>>18,e[s++]=128|a>>>12&63,e[s++]=128|a>>>6&63,e[s++]=128|63&a);return e},It=(t,e)=>{const a=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let i,n;const s=new Array(2*a);for(n=0,i=0;i4)s[n++]=65533,i+=r-1;else{for(e&=2===r?31:3===r?15:7;r>1&&i1?s[n++]=65533:e<65536?s[n++]=e:(e-=65536,s[n++]=55296|e>>10&1023,s[n++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Ft)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let a="";for(let i=0;i{(e=e||t.length)>t.length&&(e=t.length);let a=e-1;for(;a>=0&&128==(192&t[a]);)a--;return a<0||0===a?e:a+Lt[t[a]]>e?a:e};var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const Ht=Object.prototype.toString,{Z_NO_FLUSH:Mt,Z_SYNC_FLUSH:jt,Z_FULL_FLUSH:Kt,Z_FINISH:Pt,Z_OK:Yt,Z_STREAM_END:Gt,Z_DEFAULT_COMPRESSION:Xt,Z_DEFAULT_STRATEGY:Wt,Z_DEFLATED:qt}=B;function Jt(t){this.options=Tt({level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=St.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(a!==Yt)throw new Error(I[a]);if(e.header&&St.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?Nt(e.dictionary):"[object ArrayBuffer]"===Ht.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,a=St.deflateSetDictionary(this.strm,t),a!==Yt)throw new Error(I[a]);this._dict_set=!0}}function Qt(t,e){const a=new Jt(e);if(a.push(t,!0),a.err)throw a.msg||I[a.err];return a.result}Jt.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize;let n,s;if(this.ended)return!1;for(s=e===~~e?e:!0===e?Pt:Mt,"string"==typeof t?a.input=Nt(t):"[object ArrayBuffer]"===Ht.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;)if(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),(s===jt||s===Kt)&&a.avail_out<=6)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else{if(n=St.deflate(a,s),n===Gt)return a.next_out>0&&this.onData(a.output.subarray(0,a.next_out)),n=St.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Yt;if(0!==a.avail_out){if(s>0&&a.next_out>0)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else if(0===a.avail_in)break}else this.onData(a.output)}return!0},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===Yt&&(this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var Vt={Deflate:Jt,deflate:Qt,deflateRaw:function(t,e){return(e=e||{}).raw=!0,Qt(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,Qt(t,e)},constants:B};var $t=function(t,e){let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z,A;const E=t.state;a=t.next_in,z=t.input,i=a+(t.avail_in-5),n=t.next_out,A=t.output,s=n-(e-t.avail_out),r=n+(t.avail_out-257),o=E.dmax,l=E.wsize,h=E.whave,d=E.wnext,_=E.window,f=E.hold,c=E.bits,u=E.lencode,w=E.distcode,m=(1<>>24,f>>>=p,c-=p,p=g>>>16&255,0===p)A[n++]=65535&g;else{if(!(16&p)){if(0==(64&p)){g=u[(65535&g)+(f&(1<>>=p,c-=p),c<15&&(f+=z[a++]<>>24,f>>>=p,c-=p,p=g>>>16&255,!(16&p)){if(0==(64&p)){g=w[(65535&g)+(f&(1<o){t.msg="invalid distance too far back",E.mode=16209;break t}if(f>>>=p,c-=p,p=n-s,v>p){if(p=v-p,p>h&&E.sane){t.msg="invalid distance too far back",E.mode=16209;break t}if(y=0,x=_,0===d){if(y+=l-p,p2;)A[n++]=x[y++],A[n++]=x[y++],A[n++]=x[y++],k-=3;k&&(A[n++]=x[y++],k>1&&(A[n++]=x[y++]))}else{y=n-v;do{A[n++]=A[y++],A[n++]=A[y++],A[n++]=A[y++],k-=3}while(k>2);k&&(A[n++]=A[y++],k>1&&(A[n++]=A[y++]))}break}}break}}while(a>3,a-=k,c-=k<<3,f&=(1<{const l=o.bits;let h,d,_,f,c,u,w=0,m=0,b=0,g=0,p=0,k=0,v=0,y=0,x=0,z=0,A=null;const E=new Uint16Array(16),R=new Uint16Array(16);let Z,U,S,D=null;for(w=0;w<=15;w++)E[w]=0;for(m=0;m=1&&0===E[g];g--);if(p>g&&(p=g),0===g)return n[s++]=20971520,n[s++]=20971520,o.bits=1,0;for(b=1;b0&&(0===t||1!==g))return-1;for(R[1]=0,w=1;w<15;w++)R[w+1]=R[w]+E[w];for(m=0;m852||2===t&&x>592)return 1;for(;;){Z=w-v,r[m]+1=u?(U=D[r[m]-u],S=A[r[m]-u]):(U=96,S=0),h=1<>v)+d]=Z<<24|U<<16|S|0}while(0!==d);for(h=1<>=1;if(0!==h?(z&=h-1,z+=h):z=0,m++,0==--E[w]){if(w===g)break;w=e[a+r[m]]}if(w>p&&(z&f)!==_){for(0===v&&(v=p),c+=b,k=w-v,y=1<852||2===t&&x>592)return 1;_=z&f,n[_]=p<<24|k<<16|c-s|0}}return 0!==z&&(n[c+z]=w-v<<24|64<<16|0),o.bits=p,0};const{Z_FINISH:se,Z_BLOCK:re,Z_TREES:oe,Z_OK:le,Z_STREAM_END:he,Z_NEED_DICT:de,Z_STREAM_ERROR:_e,Z_DATA_ERROR:fe,Z_MEM_ERROR:ce,Z_BUF_ERROR:ue,Z_DEFLATED:we}=B,me=16209,be=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function ge(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const pe=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<16180||e.mode>16211?1:0},ke=t=>{if(pe(t))return _e;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=16180,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,le},ve=t=>{if(pe(t))return _e;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,ke(t)},ye=(t,e)=>{let a;if(pe(t))return _e;const i=t.state;return e<0?(a=0,e=-e):(a=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?_e:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=a,i.wbits=e,ve(t))},xe=(t,e)=>{if(!t)return _e;const a=new ge;t.state=a,a.strm=t,a.window=null,a.mode=16180;const i=ye(t,e);return i!==le&&(t.state=null),i};let ze,Ae,Ee=!0;const Re=t=>{if(Ee){ze=new Int32Array(512),Ae=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(ne(1,t.lens,0,288,ze,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;ne(2,t.lens,0,32,Ae,0,t.work,{bits:5}),Ee=!1}t.lencode=ze,t.lenbits=9,t.distcode=Ae,t.distbits=5},Ze=(t,e,a,i)=>{let n;const s=t.state;return null===s.window&&(s.wsize=1<=s.wsize?(s.window.set(e.subarray(a-s.wsize,a),0),s.wnext=0,s.whave=s.wsize):(n=s.wsize-s.wnext,n>i&&(n=i),s.window.set(e.subarray(a-i,a-i+n),s.wnext),(i-=n)?(s.window.set(e.subarray(a-i,a),0),s.wnext=i,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whavexe(t,15),inflateInit2:xe,inflate:(t,e)=>{let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z=0;const A=new Uint8Array(4);let E,R;const Z=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(pe(t)||!t.output||!t.input&&0!==t.avail_in)return _e;a=t.state,16191===a.mode&&(a.mode=16192),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,_=o,f=l,x=le;t:for(;;)switch(a.mode){case 16180:if(0===a.wrap){a.mode=16192;break}for(;d<16;){if(0===o)break t;o--,h+=i[s++]<>>8&255,a.check=N(a.check,A,2,0),h=0,d=0,a.mode=16181;break}if(a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&h)<<8)+(h>>8))%31){t.msg="incorrect header check",a.mode=me;break}if((15&h)!==we){t.msg="unknown compression method",a.mode=me;break}if(h>>>=4,d-=4,y=8+(15&h),0===a.wbits&&(a.wbits=y),y>15||y>a.wbits){t.msg="invalid window size",a.mode=me;break}a.dmax=1<>8&1),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16182;case 16182:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<>>8&255,A[2]=h>>>16&255,A[3]=h>>>24&255,a.check=N(a.check,A,4,0)),h=0,d=0,a.mode=16183;case 16183:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<>8),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16184;case 16184:if(1024&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0}else a.head&&(a.head.extra=null);a.mode=16185;case 16185:if(1024&a.flags&&(c=a.length,c>o&&(c=o),c&&(a.head&&(y=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Uint8Array(a.head.extra_len)),a.head.extra.set(i.subarray(s,s+c),y)),512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,a.length-=c),a.length))break t;a.length=0,a.mode=16186;case 16186:if(2048&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.name+=String.fromCharCode(y))}while(y&&c>9&1,a.head.done=!0),t.adler=a.check=0,a.mode=16191;break;case 16189:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<>>=7&d,d-=7&d,a.mode=16206;break}for(;d<3;){if(0===o)break t;o--,h+=i[s++]<>>=1,d-=1,3&h){case 0:a.mode=16193;break;case 1:if(Re(a),a.mode=16199,e===oe){h>>>=2,d-=2;break t}break;case 2:a.mode=16196;break;case 3:t.msg="invalid block type",a.mode=me}h>>>=2,d-=2;break;case 16193:for(h>>>=7&d,d-=7&d;d<32;){if(0===o)break t;o--,h+=i[s++]<>>16^65535)){t.msg="invalid stored block lengths",a.mode=me;break}if(a.length=65535&h,h=0,d=0,a.mode=16194,e===oe)break t;case 16194:a.mode=16195;case 16195:if(c=a.length,c){if(c>o&&(c=o),c>l&&(c=l),0===c)break t;n.set(i.subarray(s,s+c),r),o-=c,s+=c,l-=c,r+=c,a.length-=c;break}a.mode=16191;break;case 16196:for(;d<14;){if(0===o)break t;o--,h+=i[s++]<>>=5,d-=5,a.ndist=1+(31&h),h>>>=5,d-=5,a.ncode=4+(15&h),h>>>=4,d-=4,a.nlen>286||a.ndist>30){t.msg="too many length or distance symbols",a.mode=me;break}a.have=0,a.mode=16197;case 16197:for(;a.have>>=3,d-=3}for(;a.have<19;)a.lens[Z[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,E={bits:a.lenbits},x=ne(0,a.lens,0,19,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid code lengths set",a.mode=me;break}a.have=0,a.mode=16198;case 16198:for(;a.have>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<>>=m,d-=m,a.lens[a.have++]=g;else{if(16===g){for(R=m+2;d>>=m,d-=m,0===a.have){t.msg="invalid bit length repeat",a.mode=me;break}y=a.lens[a.have-1],c=3+(3&h),h>>>=2,d-=2}else if(17===g){for(R=m+3;d>>=m,d-=m,y=0,c=3+(7&h),h>>>=3,d-=3}else{for(R=m+7;d>>=m,d-=m,y=0,c=11+(127&h),h>>>=7,d-=7}if(a.have+c>a.nlen+a.ndist){t.msg="invalid bit length repeat",a.mode=me;break}for(;c--;)a.lens[a.have++]=y}}if(a.mode===me)break;if(0===a.lens[256]){t.msg="invalid code -- missing end-of-block",a.mode=me;break}if(a.lenbits=9,E={bits:a.lenbits},x=ne(1,a.lens,0,a.nlen,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid literal/lengths set",a.mode=me;break}if(a.distbits=6,a.distcode=a.distdyn,E={bits:a.distbits},x=ne(2,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,E),a.distbits=E.bits,x){t.msg="invalid distances set",a.mode=me;break}if(a.mode=16199,e===oe)break t;case 16199:a.mode=16200;case 16200:if(o>=6&&l>=258){t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,$t(t,f),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,16191===a.mode&&(a.back=-1);break}for(a.back=0;z=a.lencode[h&(1<>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,a.length=g,0===b){a.mode=16205;break}if(32&b){a.back=-1,a.mode=16191;break}if(64&b){t.msg="invalid literal/length code",a.mode=me;break}a.extra=15&b,a.mode=16201;case 16201:if(a.extra){for(R=a.extra;d>>=a.extra,d-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=16202;case 16202:for(;z=a.distcode[h&(1<>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,64&b){t.msg="invalid distance code",a.mode=me;break}a.offset=g,a.extra=15&b,a.mode=16203;case 16203:if(a.extra){for(R=a.extra;d>>=a.extra,d-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){t.msg="invalid distance too far back",a.mode=me;break}a.mode=16204;case 16204:if(0===l)break t;if(c=f-l,a.offset>c){if(c=a.offset-c,c>a.whave&&a.sane){t.msg="invalid distance too far back",a.mode=me;break}c>a.wnext?(c-=a.wnext,u=a.wsize-c):u=a.wnext-c,c>a.length&&(c=a.length),w=a.window}else w=n,u=r-a.offset,c=a.length;c>l&&(c=l),l-=c,a.length-=c;do{n[r++]=w[u++]}while(--c);0===a.length&&(a.mode=16200);break;case 16205:if(0===l)break t;n[r++]=a.length,l--,a.mode=16200;break;case 16206:if(a.wrap){for(;d<32;){if(0===o)break t;o--,h|=i[s++]<{if(pe(t))return _e;let e=t.state;return e.window&&(e.window=null),t.state=null,le},inflateGetHeader:(t,e)=>{if(pe(t))return _e;const a=t.state;return 0==(2&a.wrap)?_e:(a.head=e,e.done=!1,le)},inflateSetDictionary:(t,e)=>{const a=e.length;let i,n,s;return pe(t)?_e:(i=t.state,0!==i.wrap&&16190!==i.mode?_e:16190===i.mode&&(n=1,n=F(n,e,a,0),n!==i.check)?fe:(s=Ze(t,e,a,a),s?(i.mode=16210,ce):(i.havedict=1,le)))},inflateInfo:"pako inflate (from Nodeca project)"};var Se=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const De=Object.prototype.toString,{Z_NO_FLUSH:Te,Z_FINISH:Oe,Z_OK:Fe,Z_STREAM_END:Le,Z_NEED_DICT:Ne,Z_STREAM_ERROR:Ie,Z_DATA_ERROR:Be,Z_MEM_ERROR:Ce}=B;function He(t){this.options=Tt({chunkSize:65536,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=Ue.inflateInit2(this.strm,e.windowBits);if(a!==Fe)throw new Error(I[a]);if(this.header=new Se,Ue.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Nt(e.dictionary):"[object ArrayBuffer]"===De.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(a=Ue.inflateSetDictionary(this.strm,e.dictionary),a!==Fe)))throw new Error(I[a])}He.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize,n=this.options.dictionary;let s,r,o;if(this.ended)return!1;for(r=e===~~e?e:!0===e?Oe:Te,"[object ArrayBuffer]"===De.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;){for(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),s=Ue.inflate(a,r),s===Ne&&n&&(s=Ue.inflateSetDictionary(a,n),s===Fe?s=Ue.inflate(a,r):s===Be&&(s=Ne));a.avail_in>0&&s===Le&&a.state.wrap>0&&0!==t[a.next_in];)Ue.inflateReset(a),s=Ue.inflate(a,r);switch(s){case Ie:case Be:case Ne:case Ce:return this.onEnd(s),this.ended=!0,!1}if(o=a.avail_out,a.next_out&&(0===a.avail_out||s===Le))if("string"===this.options.to){let t=Bt(a.output,a.next_out),e=a.next_out-t,n=It(a.output,t);a.next_out=e,a.avail_out=i-e,e&&a.output.set(a.output.subarray(t,t+e),0),this.onData(n)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(s!==Fe||0!==o){if(s===Le)return s=Ue.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(0===a.avail_in)break}}return!0},He.prototype.onData=function(t){this.chunks.push(t)},He.prototype.onEnd=function(t){t===Fe&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};const{Deflate:Me,deflate:je,deflateRaw:Ke,gzip:Pe}=Vt;var Ye=Me,Ge=je,Xe=B;const We=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const e=this._hasEvents?",":"";this.deflate.push(e+t,Xe.Z_SYNC_FLUSH),this._hasEvents=!0}finish(){if(this.deflate.push("]",Xe.Z_FINISH),this.deflate.err)throw this.deflate.err;const t=this.deflate.result;return this._init(),t}_init(){this._hasEvents=!1,this.deflate=new Ye,this.deflate.push("[",Xe.Z_NO_FLUSH)}},qe={clear:()=>{We.clear()},addEvent:t=>We.addEvent(t),finish:()=>We.finish(),compress:t=>function(t){return Ge(t)}(t)};addEventListener("message",(function(t){const e=t.data.method,a=t.data.id,i=t.data.arg;if(e in qe&&"function"==typeof qe[e])try{const t=qe[e](i);postMessage({id:a,method:e,success:!0,response:t})}catch(t){postMessage({id:a,method:e,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});`;function m7(){const e=new Blob([_7]);return URL.createObjectURL(e)}class O0 extends Error{constructor(){super(`Event buffer exceeded maximum size of ${y0}.`)}}class Jg{__init(){this._totalSize=0}constructor(){Jg.prototype.__init.call(this),this.events=[]}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>y0)throw new O0;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0}getEarliestTimestamp(){const t=this.events.map(n=>n.timestamp).sort()[0];return t?C0(t):null}}class g7{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():n()},{once:!0}),this._worker.addEventListener("error",r=>{n(r)},{once:!0})}),this._ensureReadyPromise)}destroy(){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.log("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((i,a)=>{const d=({data:s})=>{const u=s;if(u.method===t&&u.id===r){if(this._worker.removeEventListener("message",d),!u.success){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.error("[Replay]",u.response),a(new Error("Error in compression worker"));return}i(u.response)}};this._worker.addEventListener("message",d),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class w0{__init(){this._totalSize=0}constructor(t){w0.prototype.__init.call(this),this._worker=new g7(t),this._earliestTimestamp=null}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=C0(t.timestamp);(!this._earliestTimestamp||ny0?Promise.reject(new O0):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this._worker.postMessage("clear")}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class h7{constructor(t){this._fallback=new Jg,this._compression=new w0(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.log("[Replay] Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t}=this._fallback,n=[];for(const r of t)n.push(this._compression.addEvent(r));this._used=this._compression;try{await Promise.all(n)}catch(r){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.warn("[Replay] Failed to add events when switching buffers.",r)}}}function b7({useCompression:e}){if(e&&window.Worker)try{const t=m7();(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.log("[Replay] Using compression worker");const n=new Worker(t);return new h7(n)}catch{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.log("[Replay] Failed to create compression worker")}return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.log("[Replay] Using simple buffer"),new Jg}function R0(){try{return"sessionStorage"in nn&&!!nn.sessionStorage}catch{return!1}}function S7(e){v7(),e.session=void 0}function v7(){if(!!R0())try{nn.sessionStorage.removeItem(v0)}catch{}}function Kv(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function Hk(e,t,n=+new Date){return Kv(e.started,t.maxSessionLife,n)||Kv(e.lastActivity,t.sessionIdleExpire,n)}function zk(e){return e===void 0?!1:Math.random()"u"||__SENTRY_DEBUG__)&&Jt.log(`[Replay] Creating new session: ${i.id}`),n&&x0(i),i}function C7(){if(!R0())return null;try{const e=nn.sessionStorage.getItem(v0);if(!e)return null;const t=JSON.parse(e);return I0(t)}catch{return null}}function iS({timeouts:e,currentSession:t,stickySession:n,sessionSampleRate:r,allowBuffering:i}){const a=t||n&&C7();if(a){if(!Hk(a,e)||i&&a.shouldRefresh)return{type:"saved",session:a};if(a.shouldRefresh)(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.log("[Replay] Session has expired");else return{type:"new",session:I0({sampled:!1})}}return{type:"new",session:y7({stickySession:n,sessionSampleRate:r,allowBuffering:i})}}function T7(e){return e.type===Cn.Custom}async function qm(e,t,n){if(!e.eventBuffer||e.isPaused()||C0(t.timestamp)+e.timeouts.sessionIdlePause"u"||__SENTRY_DEBUG__)&&Jt.error(i),await e.stop(a);const d=ho().getClient();d&&d.recordDroppedEvent("internal_sdk_error","replay")}}function O7(e,t){try{if(typeof t=="function"&&T7(e))return t(e)}catch(n){return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",n),null}return e}function Qv(e){return!e.type}function Xv(e){return e.type==="transaction"}function w7(e){return e.type==="replay_event"}function Yk(e){const t=R7();return(n,r)=>{if(!Qv(n)&&!Xv(n))return;const i=r&&r.statusCode;if(!(t&&(!i||i<200||i>=300))){if(Xv(n)&&n.contexts&&n.contexts.trace&&n.contexts.trace.trace_id){e.getContext().traceIds.add(n.contexts.trace.trace_id);return}!Qv(n)||(n.event_id&&e.getContext().errorIds.add(n.event_id),e.recordingMode==="buffer"&&n.tags&&n.tags.replayId&&setTimeout(()=>{e.sendBufferedReplayOrFlush()}))}}}function R7(){const e=ho().getClient();if(!e)return!1;const t=e.getTransport();return t&&t.send.__sentry__baseTransport__||!1}function x7(e,t){return e.type||!e.exception||!e.exception.values||!e.exception.values.length?!1:t.originalException&&t.originalException.__rrweb__?!0:e.exception.values.some(n=>!n.stacktrace||!n.stacktrace.frames||!n.stacktrace.frames.length?!1:n.stacktrace.frames.some(r=>r.filename&&r.filename.includes("/rrweb/src/")))}function I7(e,t){return e.recordingMode!=="buffer"||t.message===E0||!t.exception||t.type?!1:zk(e.getOptions().errorSampleRate)}function N7(e,t=!1){const n=t?Yk(e):void 0;return(r,i)=>w7(r)?(delete r.breadcrumbs,r):!Qv(r)&&!Xv(r)?r:x7(r,i)&&!e.getOptions()._experiments.captureExceptions?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.log("[Replay] Ignoring error from rrweb internals",r),null):((I7(e,r)||e.recordingMode==="session")&&(r.tags={...r.tags,replayId:e.getSessionId()}),n&&n(r,{statusCode:200}),r)}function eh(e,t){return t.map(({type:n,start:r,end:i,name:a,data:d})=>{const s=e.throttledAddEvent({type:Cn.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:a,startTimestamp:r,endTimestamp:i,data:d}}});return typeof s=="string"?Promise.resolve(null):s})}function A7(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function D7(e){return t=>{if(!e.isEnabled())return;const n=A7(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(eh(e,[n]),!1)))}}function M7(e,t){return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&e.getOptions()._experiments.traceInternals?!1:k7(t)}function k7(e){const t=ho().getClient(),n=t&&t.getDsn();return n?e.includes(n.host):!1}function th(e,t){!e.isEnabled()||t!==null&&(M7(e,t.name)||e.addUpdate(()=>(eh(e,[t]),!0)))}function P7(e){const{startTimestamp:t,endTimestamp:n,fetchData:r,response:i}=e;if(!n)return null;const{method:a,url:d}=r;return{type:"resource.fetch",start:t/1e3,end:n/1e3,name:d,data:{method:a,statusCode:i?i.status:void 0}}}function L7(e){return t=>{if(!e.isEnabled())return;const n=P7(t);th(e,n)}}function $7(e){const{startTimestamp:t,endTimestamp:n,xhr:r}=e,i=r[Wc];if(!t||!n||!i)return null;const{method:a,url:d,status_code:s}=i;return d===void 0?null:{type:"resource.xhr",name:d,start:t/1e3,end:n/1e3,data:{method:a,statusCode:s}}}function F7(e){return t=>{if(!e.isEnabled())return;const n=$7(t);th(e,n)}}const Ns=10,N0=11,Zv=12,Va=13,Jv=14,Mu=15,La=20,po=21,eE=22,ku=23,Vk=["true","false","null"];function B7(e,t){if(!t.length)return e;let n=e;const r=t.length-1,i=t[r];n=U7(n,i);for(let a=r;a>=0;a--)switch(t[a]){case Ns:n=`${n}}`;break;case La:n=`${n}]`;break}return n}function U7(e,t){switch(t){case Ns:return`${e}"~~":"~~"`;case N0:return`${e}:"~~"`;case Zv:return`${e}~~":"~~"`;case Va:return z7(e);case Jv:return`${e}~~"`;case Mu:return`${e},"~~":"~~"`;case La:return`${e}"~~"`;case po:return G7(e);case eE:return`${e}~~"`;case ku:return`${e},"~~"`}return e}function G7(e){const t=H7(e);if(t>-1){const n=e.slice(t+1);return Vk.includes(n.trim())?`${e},"~~"`:`${e.slice(0,t+1)}"~~"`}return e}function H7(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n===","||n==="[")return t}return-1}function z7(e){const t=e.lastIndexOf(":"),n=e.slice(t+1);return Vk.includes(n.trim())?`${e},"~~":"~~"`:`${e.slice(0,t+1)}"~~"`}function Y7(e){const t=[];for(let n=0;n0&&(r._meta={warnings:a}),r}function tE(e,t){return Object.keys(e).reduce((n,r)=>{const i=r.toLowerCase();return t.includes(i)&&e[r]&&(n[i]=e[r]),n},{})}function Xk(e){return new URLSearchParams(e).toString()}function J7(e){if(!e||typeof e!="string")return{body:e,warnings:[]};const t=e.length>N_;if(eQ(e))try{const n=t?jk(e.slice(0,N_)):e;return{body:JSON.parse(n),warnings:t?["JSON_TRUNCATED"]:[]}}catch{return{body:t?`${e.slice(0,N_)}\u2026`:e,warnings:t?["INVALID_JSON","TEXT_TRUNCATED"]:["INVALID_JSON"]}}return{body:t?`${e.slice(0,N_)}\u2026`:e,warnings:t?["TEXT_TRUNCATED"]:[]}}function eQ(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function Wm(e,t){const n=tQ(e);return U9(n,t)}function tQ(e,t=nn.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(nn.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function nQ(e,t,n){try{const r=await iQ(e,t,n),i=Qk("resource.fetch",r);th(n.replay,i)}catch(r){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.error("[Replay] Failed to capture fetch breadcrumb",r)}}function rQ(e,t,n){const{input:r,response:i}=t,a=Zk(r),d=jm(a,n.textEncoder),s=i?Wk(i.headers.get("content-length")):void 0;d!==void 0&&(e.data.request_body_size=d),s!==void 0&&(e.data.response_body_size=s)}async function iQ(e,t,n){const{startTimestamp:r,endTimestamp:i}=t,{url:a,method:d,status_code:s=0,request_body_size:u,response_body_size:o}=e.data,l=Wm(a,n.networkDetailAllowUrls)&&!Wm(a,n.networkDetailDenyUrls),c=l?oQ(n,t.input,u):Np(u),p=await aQ(l,n,t.response,o);return{startTimestamp:r,endTimestamp:i,url:a,method:d,statusCode:s,request:c,response:p}}function oQ({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const i=lQ(n,t);if(!e)return As(i,r,void 0);const a=Zk(n),d=Kk(a);return As(i,r,d)}async function aQ(e,{networkCaptureBodies:t,textEncoder:n,networkResponseHeaders:r},i,a){if(!e&&a!==void 0)return Np(a);const d=Jk(i.headers,r);if(!t&&a!==void 0)return As(d,a,void 0);try{const s=i.clone(),u=await sQ(s),o=u&&u.length&&a===void 0?jm(u,n):a;return e?t?As(d,o,u):As(d,o,void 0):Np(o)}catch{return As(d,a,void 0)}}async function sQ(e){try{return await e.text()}catch{return}}function Zk(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}function Jk(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function lQ(e,t){return e.length===1&&typeof e[0]!="string"?Fx(e[0],t):e.length===2?Fx(e[1],t):{}}function Fx(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?Jk(n,t):Array.isArray(n)?{}:tE(n,t):{}}async function cQ(e,t,n){try{const r=dQ(e,t,n),i=Qk("resource.xhr",r);th(n.replay,i)}catch(r){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.error("[Replay] Failed to capture fetch breadcrumb",r)}}function uQ(e,t,n){const{xhr:r,input:i}=t,a=jm(i,n.textEncoder),d=r.getResponseHeader("content-length")?Wk(r.getResponseHeader("content-length")):jm(r.response,n.textEncoder);a!==void 0&&(e.data.request_body_size=a),d!==void 0&&(e.data.response_body_size=d)}function dQ(e,t,n){const{startTimestamp:r,endTimestamp:i,input:a,xhr:d}=t,{url:s,method:u,status_code:o=0,request_body_size:l,response_body_size:c}=e.data;if(!s)return null;if(!Wm(s,n.networkDetailAllowUrls)||Wm(s,n.networkDetailDenyUrls)){const b=Np(l),v=Np(c);return{startTimestamp:r,endTimestamp:i,url:s,method:u,statusCode:o,request:b,response:v}}const p=d[Wc],f=p?tE(p.request_headers,n.networkRequestHeaders):{},m=tE(pQ(d),n.networkResponseHeaders),g=As(f,l,n.networkCaptureBodies?Kk(a):void 0),h=As(m,c,n.networkCaptureBodies?t.xhr.responseText:void 0);return{startTimestamp:r,endTimestamp:i,url:s,method:u,statusCode:o,request:g,response:h}}function pQ(e){const t=e.getAllResponseHeaders();return t?t.split(`\r +`).reduce((n,r)=>{const[i,a]=r.split(": ");return n[i.toLowerCase()]=a,n},{}):{}}function fQ(e){const t=ho().getClient();try{const n=new TextEncoder,{networkDetailAllowUrls:r,networkDetailDenyUrls:i,networkCaptureBodies:a,networkRequestHeaders:d,networkResponseHeaders:s}=e.getOptions(),u={replay:e,textEncoder:n,networkDetailAllowUrls:r,networkDetailDenyUrls:i,networkCaptureBodies:a,networkRequestHeaders:d,networkResponseHeaders:s};t&&t.on?t.on("beforeAddBreadcrumb",(o,l)=>_Q(u,o,l)):(Gm("fetch",L7(e)),Gm("xhr",F7(e)))}catch{}}function _Q(e,t,n){if(!!t.data)try{mQ(t)&&hQ(n)&&(uQ(t,n,e),cQ(t,n,e)),gQ(t)&&bQ(n)&&(rQ(t,n,e),nQ(t,n,e))}catch{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.warn("Error when enriching network breadcrumb")}}function mQ(e){return e.category==="xhr"}function gQ(e){return e.category==="fetch"}function hQ(e){return e&&e.xhr}function bQ(e){return e&&e.response}let Bx=null;function SQ(e){return!!e.category}const vQ=e=>t=>{if(!e.isEnabled())return;const n=EQ(t);!n||Zg(e,n)};function EQ(e){const t=e.getLastBreadcrumb&&e.getLastBreadcrumb();return Bx===t||!t||(Bx=t,!SQ(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui."))?null:t.category==="console"?yQ(t):Fa(t)}function yQ(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||t.length===0)return Fa(e);let n=!1;const r=t.map(i=>{if(!i)return i;if(typeof i=="string")return i.length>A_?(n=!0,`${i.slice(0,A_)}\u2026`):i;if(typeof i=="object")try{const a=Ts(i,7),d=JSON.stringify(a);if(d.length>A_){const s=jk(d.slice(0,A_)),u=JSON.parse(s);return n=!0,u}return a}catch{}return i});return Fa({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function CQ(e){const t=ho().getScope(),n=ho().getClient();t&&t.addScopeListener(vQ(e)),Gm("dom",i7(e)),Gm("history",D7(e)),fQ(e),wW(N7(e,!Ux(n))),Ux(n)&&(n.on("afterSendEvent",Yk(e)),n.on("createDsc",r=>{const i=e.getSessionId();i&&e.isEnabled()&&e.recordingMode==="session"&&(r.replay_id=i)}),n.on("startTransaction",r=>{e.lastTransaction=r}),n.on("finishTransaction",r=>{e.lastTransaction=r}))}function Ux(e){return!!(e&&e.on)}async function TQ(e){try{return Promise.all(eh(e,[OQ(nn.performance.memory)]))}catch{return[]}}function OQ(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}const Gx={resource:NQ,paint:xQ,navigation:IQ,["largest-contentful-paint"]:AQ};function wQ(e){return e.map(RQ).filter(Boolean)}function RQ(e){return Gx[e.entryType]===void 0?null:Gx[e.entryType](e)}function Pu(e){return((bW||nn.performance.timeOrigin)+e)/1e3}function xQ(e){const{duration:t,entryType:n,name:r,startTime:i}=e,a=Pu(i);return{type:n,name:r,start:a,end:a+t,data:void 0}}function IQ(e){const{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:a,encodedBodySize:d,domContentLoadedEventStart:s,domContentLoadedEventEnd:u,domInteractive:o,loadEventStart:l,loadEventEnd:c,redirectCount:p,startTime:f,transferSize:m,type:g}=e;return i===0?null:{type:`${t}.${g}`,start:Pu(f),end:Pu(a),name:n,data:{size:m,decodedBodySize:r,encodedBodySize:d,duration:i,domInteractive:o,domContentLoadedEventStart:s,domContentLoadedEventEnd:u,loadEventStart:l,loadEventEnd:c,domComplete:a,redirectCount:p}}}function NQ(e){const{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:a,decodedBodySize:d,encodedBodySize:s,responseStatus:u,transferSize:o}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Pu(a),end:Pu(i),name:r,data:{size:o,statusCode:u,decodedBodySize:d,encodedBodySize:s}}}function AQ(e){const{entryType:t,startTime:n,size:r}=e;let i=0;if(nn.performance){const s=nn.performance.getEntriesByType("navigation")[0];i=s&&s.activationStart||0}const a=Math.max(n-i,0),d=Pu(i)+a/1e3;return{type:t,name:t,start:d,end:d,data:{value:a,size:r,nodeId:Vl.mirror.getId(e.element)}}}function DQ(e,t,n){let r,i,a;const d=n&&n.maxWait?Math.max(n.maxWait,t):0;function s(){return u(),r=e(),r}function u(){i!==void 0&&clearTimeout(i),a!==void 0&&clearTimeout(a),i=a=void 0}function o(){return i!==void 0||a!==void 0?s():r}function l(){return i&&clearTimeout(i),i=setTimeout(s,t),d&&a===void 0&&(a=setTimeout(s,d)),r}return l.cancel=u,l.flush=o,l}function MQ(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.warn("[Replay] Received replay event after session expired.");return}const i=r||!t;t=!0,e.addUpdate(()=>{if(e.recordingMode==="buffer"&&i&&e.setInitialState(),qm(e,n,i),!i)return!1;if(PQ(e,i),e.session&&e.session.previousSessionId)return!0;if(e.recordingMode==="buffer"&&e.session&&e.eventBuffer){const a=e.eventBuffer.getEarliestTimestamp();a&&(e.session.started=a,e.getOptions().stickySession&&x0(e.session))}return e.recordingMode==="session"&&e.flush(),!0})}}function kQ(e){const t=e.getOptions();return{type:Cn.Custom,timestamp:Date.now(),data:{tag:"options",payload:{sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function PQ(e,t){return!t||!e.session||e.session.segmentId!==0?Promise.resolve(null):qm(e,kQ(e),!1)}function LQ(e,t,n,r){return SW(EW(e,vW(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function $Q({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)} +`;if(typeof e=="string")n=`${r}${e}`;else{const a=new TextEncoder().encode(r);n=new Uint8Array(a.length+e.length),n.set(a),n.set(e,a.length)}return n}async function FQ({client:e,scope:t,replayId:n,event:r}){const i=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,a=await AW(e.getOptions(),r,{event_id:n,integrations:i},t);if(!a)return null;a.platform=a.platform||"javascript";const d=e.getSdkMetadata&&e.getSdkMetadata(),{name:s,version:u}=d&&d.sdk||{};return a.sdk={...a.sdk,name:s||"sentry.javascript.unknown",version:u||"0.0.0"},a}async function BQ({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:a}){const d=$Q({recordingData:e,headers:{segment_id:n}}),{urls:s,errorIds:u,traceIds:o,initialTimestamp:l}=r,c=ho(),p=c.getClient(),f=c.getScope(),m=p&&p.getTransport(),g=p&&p.getDsn();if(!p||!m||!g||!a.sampled)return;const h={type:$W,replay_start_timestamp:l/1e3,timestamp:i/1e3,error_ids:u,trace_ids:o,urls:s,replay_id:t,segment_id:n,replay_type:a.sampled},b=await FQ({scope:f,client:p,replayId:t,event:h});if(!b){p.recordDroppedEvent("event_processor","replay",h),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.log("An event processor returned `null`, will not send event.");return}delete b.sdkProcessingMetadata;const v=LQ(b,d,g,p.getOptions().tunnel);let E;try{E=await m.send(v)}catch(y){const T=new Error(E0);try{T.cause=y}catch{}throw T}if(!E)return E;if(typeof E.statusCode=="number"&&(E.statusCode<200||E.statusCode>=300))throw new eP(E.statusCode);return E}class eP extends Error{constructor(t){super(`Transport returned status code ${t}`)}}async function tP(e,t={count:0,interval:YW}){const{recordingData:n,options:r}=e;if(!!n.length)try{return await BQ(e),!0}catch(i){if(i instanceof eP)throw i;if(NW("Replays",{_retryCount:t.count}),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&r._experiments&&r._experiments.captureExceptions&&Tk(i),t.count>=VW){const a=new Error(`${E0} - max retries exceeded`);try{a.cause=i}catch{}throw a}return t.interval*=++t.count,new Promise((a,d)=>{setTimeout(async()=>{try{await tP(e,t),a(!0)}catch(s){d(s)}},t.interval)})}}const nP="__THROTTLED",UQ="__SKIPPED";function GQ(e,t,n){const r=new Map,i=s=>{const u=s-n;r.forEach((o,l)=>{l[...r.values()].reduce((s,u)=>s+u,0);let d=!1;return(...s)=>{const u=Math.floor(Date.now()/1e3);if(i(u),a()>=t){const l=d;return d=!0,l?UQ:nP}d=!1;const o=r.get(u)||0;return r.set(u,o+1),e(...s)}}class pr{__init(){this.eventBuffer=null}__init2(){this.performanceEvents=[]}__init3(){this.recordingMode="session"}__init4(){this.timeouts={sessionIdlePause:FW,sessionIdleExpire:BW,maxSessionLife:UW}}__init5(){this._performanceObserver=null}__init6(){this._flushLock=null}__init7(){this._lastActivity=Date.now()}__init8(){this._isEnabled=!1}__init9(){this._isPaused=!1}__init10(){this._hasInitializedCoreListeners=!1}__init11(){this._stopRecording=null}__init12(){this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""}}constructor({options:t,recordingOptions:n}){pr.prototype.__init.call(this),pr.prototype.__init2.call(this),pr.prototype.__init3.call(this),pr.prototype.__init4.call(this),pr.prototype.__init5.call(this),pr.prototype.__init6.call(this),pr.prototype.__init7.call(this),pr.prototype.__init8.call(this),pr.prototype.__init9.call(this),pr.prototype.__init10.call(this),pr.prototype.__init11.call(this),pr.prototype.__init12.call(this),pr.prototype.__init13.call(this),pr.prototype.__init14.call(this),pr.prototype.__init15.call(this),pr.prototype.__init16.call(this),pr.prototype.__init17.call(this),pr.prototype.__init18.call(this),this._recordingOptions=n,this._options=t,this._debouncedFlush=DQ(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=GQ((d,s)=>qm(this,d,s),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:i}=this.getOptions(),a=r?{threshold:Math.min(qW,r),timeout:r,scrollTimeout:jW,ignoreSelector:i?i.join(","):""}:void 0;a&&(this.clickDetector=new np(this,a))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}getOptions(){return this._options}initializeSampling(){const{errorSampleRate:t,sessionSampleRate:n}=this._options;if(!(t<=0&&n<=0||!this._loadAndCheckSession())){if(!this.session){this._handleException(new Error("Unable to initialize and create session"));return}this.session.sampled&&this.session.sampled!=="session"&&(this.recordingMode="buffer"),this._initializeRecording()}}start(){if(this._isEnabled&&this.recordingMode==="session")throw new Error("Replay recording is already in progress");if(this._isEnabled&&this.recordingMode==="buffer")throw new Error("Replay buffering is in progress, call `flush()` to save the replay");const t=this.session&&this.session.id,{session:n}=iS({timeouts:this.timeouts,stickySession:Boolean(this._options.stickySession),currentSession:this.session,sessionSampleRate:1,allowBuffering:!1});n.previousSessionId=t,this.session=n,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");const t=this.session&&this.session.id,{session:n}=iS({timeouts:this.timeouts,stickySession:Boolean(this._options.stickySession),currentSession:this.session,sessionSampleRate:0,allowBuffering:!0});n.previousSessionId=t,this.session=n,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{this._stopRecording=Vl({...this._recordingOptions,...this.recordingMode==="buffer"&&{checkoutEveryNms:zW},emit:MQ(this),onMutation:this._onMutationHandler})}catch(t){this._handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this._handleException(t),!1}}async stop(t){if(!!this._isEnabled)try{if(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__){const n=`[Replay] Stopping Replay${t?` triggered by ${t}`:""}`;(this.getOptions()._experiments.traceInternals?console.warn:Jt.log)(n)}this._isEnabled=!1,this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),this.recordingMode==="session"&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,S7(this)}catch(n){this._handleException(n)}}pause(){this._isPaused=!0,this.stopRecording()}resume(){!this._loadAndCheckSession()||(this._isPaused=!1,this.startRecording())}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();await this.flushImmediate();const r=this.stopRecording();!t||!r||(this.recordingMode="session",this.session&&(this.session.shouldRefresh=!1,this._updateUserActivity(n),this._updateSessionActivity(n),this.session.started=n,this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode!=="buffer"&&n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._loadAndCheckSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){const t=this.getSessionId();if(this._lastActivity&&Kv(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return this._loadAndCheckSession()?t!==this.getSessionId()?(this._triggerFullSnapshot(),!1):!0:void 0}setInitialState(){const t=`${nn.location.pathname}${nn.location.hash}${nn.location.search}`,n=`${nn.location.origin}${t}`;this.performanceEvents=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const r=this._throttledAddEvent(t,n);if(r===nP){const i=Fa({category:"replay.throttled"});this.addUpdate(()=>{qm(this,{type:Cn.Custom,timestamp:i.timestamp||0,data:{tag:"breadcrumb",payload:i,metric:!0}})})}return r}getCurrentRoute(){const t=this.lastTransaction||ho().getScope().getTransaction();if(!(!t||!["route","custom"].includes(t.metadata.source)))return t.name}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=b7({useCompression:this._options.useCompression}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this.startRecording()}_handleException(t){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.error("[Replay]",t),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&this._options._experiments&&this._options._experiments.captureExceptions&&Tk(t)}_loadAndCheckSession(){const{type:t,session:n}=iS({timeouts:this.timeouts,stickySession:Boolean(this._options.stickySession),currentSession:this.session,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:this._options.errorSampleRate>0||this.recordingMode==="buffer"});t==="new"&&this.setInitialState();const r=this.getSessionId();return n.id!==r&&(n.previousSessionId=r),this.session=n,this.session.sampled?!0:(this.stop("session unsampled"),!1)}_addListeners(){try{nn.document.addEventListener("visibilitychange",this._handleVisibilityChange),nn.addEventListener("blur",this._handleWindowBlur),nn.addEventListener("focus",this._handleWindowFocus),nn.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(CQ(this),this._hasInitializedCoreListeners=!0)}catch(t){this._handleException(t)}"PerformanceObserver"in nn&&(this._performanceObserver=f7(this))}_removeListeners(){try{nn.document.removeEventListener("visibilitychange",this._handleVisibilityChange),nn.removeEventListener("blur",this._handleWindowBlur),nn.removeEventListener("focus",this._handleWindowFocus),nn.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceObserver&&(this._performanceObserver.disconnect(),this._performanceObserver=null)}catch(t){this._handleException(t)}}__init13(){this._handleVisibilityChange=()=>{nn.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init14(){this._handleWindowBlur=()=>{const t=Fa({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init15(){this._handleWindowFocus=()=>{const t=Fa({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init16(){this._handleKeyboardEvent=t=>{l7(this,t)}}_doChangeToBackgroundTasks(t){if(!this.session)return;const n=Hk(this.session,this.timeouts);t&&!n&&this._createCustomBreadcrumb(t),this.conditionalFlush()}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.log("[Replay] Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_triggerFullSnapshot(t=!0){try{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.log("[Replay] Taking full rrweb snapshot"),Vl.takeFullSnapshot(t)}catch(n){this._handleException(n)}}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:Cn.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){const t=[...this.performanceEvents];return this.performanceEvents=[],Promise.all(eh(this,wQ(t)))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||t.segmentId)return;const r=n.getEarliestTimestamp();if(r&&r"u"||__SENTRY_DEBUG__)&&i(`[Replay] Updating initial timestamp to ${r}`),this._context.initialTimestamp=r}}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){if(!this.session||!this.eventBuffer){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.error("[Replay] No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!(!this.eventBuffer||!this.eventBuffer.hasEvents)&&(await TQ(this),!!this.eventBuffer))try{this._updateInitialTimestampFromEventBuffer();const t=await this.eventBuffer.finish(),n=this.session.id,r=this._popEventContext(),i=this.session.segmentId++;this._maybeSaveSession(),await tP({replayId:n,recordingData:t,segmentId:i,eventContext:r,session:this.session,options:this.getOptions(),timestamp:Date.now()})}catch(t){this._handleException(t),this.stop("sendReplay");const n=ho().getClient();n&&n.recordDroppedEvent("send_error","replay")}}__init17(){this._flush=async({force:t=!1}={})=>{if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.error("[Replay] Attempting to finish replay event after session expired.");return}if(!this.session){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.error("[Replay] No session found to flush.");return}const n=this._context.initialTimestamp,i=Date.now()-n;if(ithis.timeouts.maxSessionLife+5e3){const a=this.getOptions()._experiments.traceInternals?console.warn:Jt.warn;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&a(`[Replay] Session duration (${Math.floor(i/1e3)}s) is too short or too long, not sending replay.`);return}if(this._debouncedFlush.cancel(),!this._flushLock){this._flushLock=this._runFlush(),await this._flushLock,this._flushLock=null;return}try{await this._flushLock}catch(a){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Jt.error(a)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&x0(this.session)}__init18(){this._onMutationHandler=t=>{const n=t.length,r=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,a=r&&n>r;if(n>i||a){const d=Fa({category:"replay.mutations",data:{count:n,limit:a}});this._createCustomBreadcrumb(d)}return a?(this.stop("mutationLimit"),!1):!0}}}function Id(e,t,n,r){const i=typeof r=="string"?r.split(","):[],a=[...e,...i,...t];return typeof n<"u"&&(typeof n=="string"&&a.push(`.${n}`),console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")),a.join(",")}function HQ({mask:e,unmask:t,block:n,unblock:r,ignore:i,blockClass:a,blockSelector:d,maskTextClass:s,maskTextSelector:u,ignoreClass:o}){const l=['base[href="/"]'],c=Id(e,[".sentry-mask","[data-sentry-mask]"],s,u),p=Id(t,[".sentry-unmask","[data-sentry-unmask]"]),f={maskTextSelector:c,unmaskTextSelector:p,maskInputSelector:c,unmaskInputSelector:p,blockSelector:Id(n,[".sentry-block","[data-sentry-block]",...l],a,d),unblockSelector:Id(r,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:Id(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],o)};return a instanceof RegExp&&(f.blockClass=a),s instanceof RegExp&&(f.maskTextClass=s),f}function Hx(){return typeof window<"u"&&(!gk()||zQ())}function zQ(){return typeof process<"u"&&process.type==="renderer"}const zx='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',YQ=["content-length","content-type","accept"];let Yx=!1;class Ap{static __initStatic(){this.id="Replay"}__init(){this.name=Ap.id}constructor({flushMinDelay:t=GW,flushMaxDelay:n=HW,minReplayDuration:r=WW,stickySession:i=!0,useCompression:a=!0,_experiments:d={},sessionSampleRate:s,errorSampleRate:u,maskAllText:o=!0,maskAllInputs:l=!0,blockAllMedia:c=!0,mutationBreadcrumbLimit:p=750,mutationLimit:f=1e4,slowClickTimeout:m=7e3,slowClickIgnoreSelectors:g=[],networkDetailAllowUrls:h=[],networkDetailDenyUrls:b=[],networkCaptureBodies:v=!0,networkRequestHeaders:E=[],networkResponseHeaders:y=[],mask:T=[],unmask:O=[],block:C=[],unblock:R=[],ignore:x=[],maskFn:I,beforeAddRecordingEvent:k,blockClass:L,blockSelector:A,maskInputOptions:D,maskTextClass:$,maskTextSelector:F,ignoreClass:z}={}){if(Ap.prototype.__init.call(this),this._recordingOptions={maskAllInputs:l,maskAllText:o,maskInputOptions:{...D||{},password:!0},maskTextFn:I,maskInputFn:I,...HQ({mask:T,unmask:O,block:C,unblock:R,ignore:x,blockClass:L,blockSelector:A,maskTextClass:$,maskTextSelector:F,ignoreClass:z}),slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,KW),stickySession:i,sessionSampleRate:s,errorSampleRate:u,useCompression:a,blockAllMedia:c,maskAllInputs:l,maskAllText:o,mutationBreadcrumbLimit:p,mutationLimit:f,slowClickTimeout:m,slowClickIgnoreSelectors:g,networkDetailAllowUrls:h,networkDetailDenyUrls:b,networkCaptureBodies:v,networkRequestHeaders:Vx(E),networkResponseHeaders:Vx(y),beforeAddRecordingEvent:k,_experiments:d},typeof s=="number"&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration. This option is deprecated and will be removed soon. Instead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.: Sentry.init({ replaysSessionSampleRate: ${s} })`),this._initialOptions.sessionSampleRate=s),typeof u=="number"&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration. @@ -129,7 +129,7 @@ found in ${t.map((i,a)=>`${(a===0?"---> ":KZ(" ",5+a*2))+(Array.isArray(i)?`${op(i[0])}... (${i[1]} recursive calls)`:op(i))}`).join(` `)}`}return` -(found in ${op(e)})`},XZ=(e,t)=>{const{errorHandler:n,warnHandler:r,silent:i}=e.config;e.config.errorHandler=(a,d,s)=>{const u=op(d,!1),o=d?QZ(d):"",l={componentName:u,lifecycleHook:s,trace:o};if(t.attachProps&&d&&(d.$options&&d.$options.propsData?l.propsData=d.$options.propsData:d.$props&&(l.propsData=d.$props)),setTimeout(()=>{Tr().withScope(c=>{c.setContext("vue",l),Tr().captureException(a)})}),typeof n=="function"&&n.call(e,a,d,s),t.logErrors){const c=typeof console<"u",p=`Error in ${s}: "${a&&a.toString()}"`;r?r.call(null,p,d,o):c&&!i&&console.error(`[Vue warn]: ${p}${o}`)}}},fI="ui.vue",ZZ={activate:["activated","deactivated"],create:["beforeCreate","created"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function hE(){return Tr().getScope().getTransaction()}function JZ(e,t,n){e.$_sentryRootSpanTimer&&clearTimeout(e.$_sentryRootSpanTimer),e.$_sentryRootSpanTimer=setTimeout(()=>{e.$root&&e.$root.$_sentryRootSpan&&(e.$root.$_sentryRootSpan.finish(t),e.$root.$_sentryRootSpan=void 0)},n)}const eJ=e=>{const t=(e.hooks||[]).concat(wP).filter((r,i,a)=>a.indexOf(r)===i),n={};for(const r of t){const i=ZZ[r];if(!i){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Bu.warn(`Unknown hook: ${r}`);continue}for(const a of i)n[a]=function(){const d=this.$root===this;if(d){const o=hE();o&&(this.$_sentryRootSpan=this.$_sentryRootSpan||o.startChild({description:"Application Render",op:`${fI}.render`}))}const s=op(this,!1),u=Array.isArray(e.trackComponents)?e.trackComponents.indexOf(s)>-1:e.trackComponents;if(!(!d&&!u))if(this.$_sentrySpans=this.$_sentrySpans||{},a==i[0]){const o=this.$root&&this.$root.$_sentryRootSpan||hE();if(o){const l=this.$_sentrySpans[r];l&&!l.endTimestamp&&l.finish(),this.$_sentrySpans[r]=o.startChild({description:`Vue <${s}>`,op:`${fI}.${r}`})}}else{const o=this.$_sentrySpans[r];if(!o)return;o.finish(),JZ(this,U0(),e.timeout)}}}return n},tJ=$o,nJ={Vue:tJ.Vue,attachProps:!0,logErrors:!0,hooks:wP,timeout:2e3,trackComponents:!1,_metadata:{sdk:{name:"sentry.javascript.vue",packages:[{name:"npm:@sentry/vue",version:Fm}],version:Fm}}};function rJ(e={}){const t={...nJ,...e};if(AW(t),!t.Vue&&!t.app){console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured.\nUpdate your `Sentry.init` call with an appropriate config option:\n`app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).");return}t.app?vP(t.app).forEach(r=>_I(r,t)):t.Vue&&_I(t.Vue,t)}const _I=(e,t)=>{const n=e;(n._instance&&n._instance.isMounted)===!0&&console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`."),XZ(e,t),VZ(t)&&e.mixin(eJ({...t,...t.tracingOptions}))};function iJ(e,t={}){return(n,r=!0,i=!0)=>{const a={"routing.instrumentation":"vue-router"};r&&Sn&&Sn.location&&n({name:Sn.location.pathname,op:"pageload",tags:a,metadata:{source:"url"}}),e.onError(d=>ZM(d)),e.beforeEach((d,s,u)=>{const o=s.name==null&&s.matched.length===0,l={params:d.params,query:d.query};let c=d.path,p="url";if(d.name&&t.routeLabel!=="path"?(c=d.name.toString(),p="custom"):d.matched[0]&&d.matched[0].path&&(c=d.matched[0].path,p="route"),r&&o){const f=hE();f&&(f.metadata.source!=="custom"&&f.setName(c,p),f.setData("params",l.params),f.setData("query",l.query))}i&&!o&&n({name:c,op:"navigation",tags:a,data:l,metadata:{source:p}}),u&&u()})}}const wCe=(e,t)=>{rJ({app:e,dsn:"https://92a7a6b6bf4d455dab113338d8518956@o1317386.ingest.sentry.io/6570769",replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,integrations:[new Qm({routingInstrumentation:iJ(t)}),new Ap],enabled:!0,tracesSampleRate:1,release:"1f6a4fc4465fbba5c16b6e0defda563916f76eb8"})};var Gn={innerWidth(e){if(e){let t=e.offsetWidth,n=getComputedStyle(e);return t+=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),t}return 0},width(e){if(e){let t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),t}return 0},getWindowScrollTop(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)},getWindowScrollLeft(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)},getOuterWidth(e,t){if(e){let n=e.offsetWidth;if(t){let r=getComputedStyle(e);n+=parseFloat(r.marginLeft)+parseFloat(r.marginRight)}return n}return 0},getOuterHeight(e,t){if(e){let n=e.offsetHeight;if(t){let r=getComputedStyle(e);n+=parseFloat(r.marginTop)+parseFloat(r.marginBottom)}return n}return 0},getClientHeight(e,t){if(e){let n=e.clientHeight;if(t){let r=getComputedStyle(e);n+=parseFloat(r.marginTop)+parseFloat(r.marginBottom)}return n}return 0},getViewport(){let e=window,t=document,n=t.documentElement,r=t.getElementsByTagName("body")[0],i=e.innerWidth||n.clientWidth||r.clientWidth,a=e.innerHeight||n.clientHeight||r.clientHeight;return{width:i,height:a}},getOffset(e){if(e){let t=e.getBoundingClientRect();return{top:t.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:t.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}},index(e){if(e){let t=e.parentNode.childNodes,n=0;for(let r=0;rl.height?(c=s.top+u-r,e.style.transformOrigin="bottom",c<0&&(c=u)):(c=a+s.top+u,e.style.transformOrigin="top"),s.left+i>l.width?p=Math.max(0,s.left+o+d-i):p=s.left+o,e.style.top=c+"px",e.style.left=p+"px"}},relativePosition(e,t){if(e){let n=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e);const r=t.offsetHeight,i=t.getBoundingClientRect(),a=this.getViewport();let d,s;i.top+r+n.height>a.height?(d=-1*n.height,e.style.transformOrigin="bottom",i.top+d<0&&(d=-1*i.top)):(d=r,e.style.transformOrigin="top"),n.width>a.width?s=i.left*-1:i.left+n.width>a.width?s=(i.left+n.width-a.width)*-1:s=0,e.style.top=d+"px",e.style.left=s+"px"}},getParents(e,t=[]){return e.parentNode===null?t:this.getParents(e.parentNode,t.concat([e.parentNode]))},getScrollableParents(e){let t=[];if(e){let n=this.getParents(e);const r=/(auto|scroll)/,i=a=>{let d=window.getComputedStyle(a,null);return r.test(d.getPropertyValue("overflow"))||r.test(d.getPropertyValue("overflowX"))||r.test(d.getPropertyValue("overflowY"))};for(let a of n){let d=a.nodeType===1&&a.dataset.scrollselectors;if(d){let s=d.split(",");for(let u of s){let o=this.findSingle(a,u);o&&i(o)&&t.push(o)}}a.nodeType!==9&&i(a)&&t.push(a)}}return t},getHiddenElementOuterHeight(e){if(e){e.style.visibility="hidden",e.style.display="block";let t=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",t}return 0},getHiddenElementOuterWidth(e){if(e){e.style.visibility="hidden",e.style.display="block";let t=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",t}return 0},getHiddenElementDimensions(e){if(e){let t={};return e.style.visibility="hidden",e.style.display="block",t.width=e.offsetWidth,t.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",t}return 0},fadeIn(e,t){if(e){e.style.opacity=0;let n=+new Date,r=0,i=function(){r=+e.style.opacity+(new Date().getTime()-n)/t,e.style.opacity=r,n=+new Date,+r<1&&(window.requestAnimationFrame&&requestAnimationFrame(i)||setTimeout(i,16))};i()}},fadeOut(e,t){if(e){let n=1,r=50,i=t,a=r/i,d=setInterval(()=>{n-=a,n<=0&&(n=0,clearInterval(d)),e.style.opacity=n},r)}},getUserAgent(){return navigator.userAgent},appendChild(e,t){if(this.isElement(t))t.appendChild(e);else if(t.el&&t.elElement)t.elElement.appendChild(e);else throw new Error("Cannot append "+t+" to "+e)},isElement(e){return typeof HTMLElement=="object"?e instanceof HTMLElement:e&&typeof e=="object"&&e!==null&&e.nodeType===1&&typeof e.nodeName=="string"},scrollInView(e,t){let n=getComputedStyle(e).getPropertyValue("borderTopWidth"),r=n?parseFloat(n):0,i=getComputedStyle(e).getPropertyValue("paddingTop"),a=i?parseFloat(i):0,d=e.getBoundingClientRect(),u=t.getBoundingClientRect().top+document.body.scrollTop-(d.top+document.body.scrollTop)-r-a,o=e.scrollTop,l=e.clientHeight,c=this.getOuterHeight(t);u<0?e.scrollTop=o+u:u+c>l&&(e.scrollTop=o+u-l+c)},clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}},getSelection(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null},calculateScrollbarWidth(){if(this.calculatedScrollbarWidth!=null)return this.calculatedScrollbarWidth;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),this.calculatedScrollbarWidth=t,t},getBrowser(){if(!this.browser){let e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser},resolveUserAgent(){let e=navigator.userAgent.toLowerCase(),t=/(chrome)[ ]([\w.]+)/.exec(e)||/(webkit)[ ]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ ]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},isVisible(e){return e&&e.offsetParent!=null},invokeElementMethod(e,t,n){e[t].apply(e,n)},isExist(e){return!!(e!==null&&typeof e<"u"&&e.nodeName&&e.parentNode)},isClient(){return!!(typeof window<"u"&&window.document&&window.document.createElement)},focus(e,t){e&&document.activeElement!==e&&e.focus(t)},isFocusableElement(e,t=""){return this.isElement(e)?e.matches(`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}, +(found in ${op(e)})`},XZ=(e,t)=>{const{errorHandler:n,warnHandler:r,silent:i}=e.config;e.config.errorHandler=(a,d,s)=>{const u=op(d,!1),o=d?QZ(d):"",l={componentName:u,lifecycleHook:s,trace:o};if(t.attachProps&&d&&(d.$options&&d.$options.propsData?l.propsData=d.$options.propsData:d.$props&&(l.propsData=d.$props)),setTimeout(()=>{Tr().withScope(c=>{c.setContext("vue",l),Tr().captureException(a)})}),typeof n=="function"&&n.call(e,a,d,s),t.logErrors){const c=typeof console<"u",p=`Error in ${s}: "${a&&a.toString()}"`;r?r.call(null,p,d,o):c&&!i&&console.error(`[Vue warn]: ${p}${o}`)}}},fI="ui.vue",ZZ={activate:["activated","deactivated"],create:["beforeCreate","created"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function hE(){return Tr().getScope().getTransaction()}function JZ(e,t,n){e.$_sentryRootSpanTimer&&clearTimeout(e.$_sentryRootSpanTimer),e.$_sentryRootSpanTimer=setTimeout(()=>{e.$root&&e.$root.$_sentryRootSpan&&(e.$root.$_sentryRootSpan.finish(t),e.$root.$_sentryRootSpan=void 0)},n)}const eJ=e=>{const t=(e.hooks||[]).concat(wP).filter((r,i,a)=>a.indexOf(r)===i),n={};for(const r of t){const i=ZZ[r];if(!i){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Bu.warn(`Unknown hook: ${r}`);continue}for(const a of i)n[a]=function(){const d=this.$root===this;if(d){const o=hE();o&&(this.$_sentryRootSpan=this.$_sentryRootSpan||o.startChild({description:"Application Render",op:`${fI}.render`}))}const s=op(this,!1),u=Array.isArray(e.trackComponents)?e.trackComponents.indexOf(s)>-1:e.trackComponents;if(!(!d&&!u))if(this.$_sentrySpans=this.$_sentrySpans||{},a==i[0]){const o=this.$root&&this.$root.$_sentryRootSpan||hE();if(o){const l=this.$_sentrySpans[r];l&&!l.endTimestamp&&l.finish(),this.$_sentrySpans[r]=o.startChild({description:`Vue <${s}>`,op:`${fI}.${r}`})}}else{const o=this.$_sentrySpans[r];if(!o)return;o.finish(),JZ(this,U0(),e.timeout)}}}return n},tJ=$o,nJ={Vue:tJ.Vue,attachProps:!0,logErrors:!0,hooks:wP,timeout:2e3,trackComponents:!1,_metadata:{sdk:{name:"sentry.javascript.vue",packages:[{name:"npm:@sentry/vue",version:Fm}],version:Fm}}};function rJ(e={}){const t={...nJ,...e};if(A9(t),!t.Vue&&!t.app){console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured.\nUpdate your `Sentry.init` call with an appropriate config option:\n`app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).");return}t.app?vP(t.app).forEach(r=>_I(r,t)):t.Vue&&_I(t.Vue,t)}const _I=(e,t)=>{const n=e;(n._instance&&n._instance.isMounted)===!0&&console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`."),XZ(e,t),VZ(t)&&e.mixin(eJ({...t,...t.tracingOptions}))};function iJ(e,t={}){return(n,r=!0,i=!0)=>{const a={"routing.instrumentation":"vue-router"};r&&Sn&&Sn.location&&n({name:Sn.location.pathname,op:"pageload",tags:a,metadata:{source:"url"}}),e.onError(d=>ZM(d)),e.beforeEach((d,s,u)=>{const o=s.name==null&&s.matched.length===0,l={params:d.params,query:d.query};let c=d.path,p="url";if(d.name&&t.routeLabel!=="path"?(c=d.name.toString(),p="custom"):d.matched[0]&&d.matched[0].path&&(c=d.matched[0].path,p="route"),r&&o){const f=hE();f&&(f.metadata.source!=="custom"&&f.setName(c,p),f.setData("params",l.params),f.setData("query",l.query))}i&&!o&&n({name:c,op:"navigation",tags:a,data:l,metadata:{source:p}}),u&&u()})}}const wCe=(e,t)=>{rJ({app:e,dsn:"https://92a7a6b6bf4d455dab113338d8518956@o1317386.ingest.sentry.io/6570769",replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,integrations:[new Qm({routingInstrumentation:iJ(t)}),new Ap],enabled:!0,tracesSampleRate:1,release:"68390b92c96785cc45a58533020cb41267486f3a"})};var Gn={innerWidth(e){if(e){let t=e.offsetWidth,n=getComputedStyle(e);return t+=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),t}return 0},width(e){if(e){let t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),t}return 0},getWindowScrollTop(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)},getWindowScrollLeft(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)},getOuterWidth(e,t){if(e){let n=e.offsetWidth;if(t){let r=getComputedStyle(e);n+=parseFloat(r.marginLeft)+parseFloat(r.marginRight)}return n}return 0},getOuterHeight(e,t){if(e){let n=e.offsetHeight;if(t){let r=getComputedStyle(e);n+=parseFloat(r.marginTop)+parseFloat(r.marginBottom)}return n}return 0},getClientHeight(e,t){if(e){let n=e.clientHeight;if(t){let r=getComputedStyle(e);n+=parseFloat(r.marginTop)+parseFloat(r.marginBottom)}return n}return 0},getViewport(){let e=window,t=document,n=t.documentElement,r=t.getElementsByTagName("body")[0],i=e.innerWidth||n.clientWidth||r.clientWidth,a=e.innerHeight||n.clientHeight||r.clientHeight;return{width:i,height:a}},getOffset(e){if(e){let t=e.getBoundingClientRect();return{top:t.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:t.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}},index(e){if(e){let t=e.parentNode.childNodes,n=0;for(let r=0;rl.height?(c=s.top+u-r,e.style.transformOrigin="bottom",c<0&&(c=u)):(c=a+s.top+u,e.style.transformOrigin="top"),s.left+i>l.width?p=Math.max(0,s.left+o+d-i):p=s.left+o,e.style.top=c+"px",e.style.left=p+"px"}},relativePosition(e,t){if(e){let n=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e);const r=t.offsetHeight,i=t.getBoundingClientRect(),a=this.getViewport();let d,s;i.top+r+n.height>a.height?(d=-1*n.height,e.style.transformOrigin="bottom",i.top+d<0&&(d=-1*i.top)):(d=r,e.style.transformOrigin="top"),n.width>a.width?s=i.left*-1:i.left+n.width>a.width?s=(i.left+n.width-a.width)*-1:s=0,e.style.top=d+"px",e.style.left=s+"px"}},getParents(e,t=[]){return e.parentNode===null?t:this.getParents(e.parentNode,t.concat([e.parentNode]))},getScrollableParents(e){let t=[];if(e){let n=this.getParents(e);const r=/(auto|scroll)/,i=a=>{let d=window.getComputedStyle(a,null);return r.test(d.getPropertyValue("overflow"))||r.test(d.getPropertyValue("overflowX"))||r.test(d.getPropertyValue("overflowY"))};for(let a of n){let d=a.nodeType===1&&a.dataset.scrollselectors;if(d){let s=d.split(",");for(let u of s){let o=this.findSingle(a,u);o&&i(o)&&t.push(o)}}a.nodeType!==9&&i(a)&&t.push(a)}}return t},getHiddenElementOuterHeight(e){if(e){e.style.visibility="hidden",e.style.display="block";let t=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",t}return 0},getHiddenElementOuterWidth(e){if(e){e.style.visibility="hidden",e.style.display="block";let t=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",t}return 0},getHiddenElementDimensions(e){if(e){let t={};return e.style.visibility="hidden",e.style.display="block",t.width=e.offsetWidth,t.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",t}return 0},fadeIn(e,t){if(e){e.style.opacity=0;let n=+new Date,r=0,i=function(){r=+e.style.opacity+(new Date().getTime()-n)/t,e.style.opacity=r,n=+new Date,+r<1&&(window.requestAnimationFrame&&requestAnimationFrame(i)||setTimeout(i,16))};i()}},fadeOut(e,t){if(e){let n=1,r=50,i=t,a=r/i,d=setInterval(()=>{n-=a,n<=0&&(n=0,clearInterval(d)),e.style.opacity=n},r)}},getUserAgent(){return navigator.userAgent},appendChild(e,t){if(this.isElement(t))t.appendChild(e);else if(t.el&&t.elElement)t.elElement.appendChild(e);else throw new Error("Cannot append "+t+" to "+e)},isElement(e){return typeof HTMLElement=="object"?e instanceof HTMLElement:e&&typeof e=="object"&&e!==null&&e.nodeType===1&&typeof e.nodeName=="string"},scrollInView(e,t){let n=getComputedStyle(e).getPropertyValue("borderTopWidth"),r=n?parseFloat(n):0,i=getComputedStyle(e).getPropertyValue("paddingTop"),a=i?parseFloat(i):0,d=e.getBoundingClientRect(),u=t.getBoundingClientRect().top+document.body.scrollTop-(d.top+document.body.scrollTop)-r-a,o=e.scrollTop,l=e.clientHeight,c=this.getOuterHeight(t);u<0?e.scrollTop=o+u:u+c>l&&(e.scrollTop=o+u-l+c)},clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}},getSelection(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null},calculateScrollbarWidth(){if(this.calculatedScrollbarWidth!=null)return this.calculatedScrollbarWidth;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),this.calculatedScrollbarWidth=t,t},getBrowser(){if(!this.browser){let e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser},resolveUserAgent(){let e=navigator.userAgent.toLowerCase(),t=/(chrome)[ ]([\w.]+)/.exec(e)||/(webkit)[ ]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ ]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},isVisible(e){return e&&e.offsetParent!=null},invokeElementMethod(e,t,n){e[t].apply(e,n)},isExist(e){return!!(e!==null&&typeof e<"u"&&e.nodeName&&e.parentNode)},isClient(){return!!(typeof window<"u"&&window.document&&window.document.createElement)},focus(e,t){e&&document.activeElement!==e&&e.focus(t)},isFocusableElement(e,t=""){return this.isElement(e)?e.matches(`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}, [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}, input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}, select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}, @@ -177,7 +177,7 @@ ${t.map((i,a)=>`${(a===0?"---> ":KZ(" ",5+a*2))+(Array.isArray(i)?`${op(i[0])}.. .p-message-leave-active .p-message-close { display: none; } -`;bJ(SJ);fJ.render=hJ;const vJ={key:0,class:"label-container"},EJ={class:"label"},yJ={key:0,class:"required"},mn=Te({__name:"Label",props:{label:null,required:{type:Boolean}},setup(e){return(t,n)=>e.label?(Se(),Re("div",vJ,[He("h3",EJ,pt(e.label),1),e.label&&e.required?(Se(),Re("span",yJ," * ")):Lt("",!0)])):Lt("",!0)}});const CJ={class:"answer-sheet-input"},TJ={class:"sheet"},OJ={class:"options"},wJ={class:"sheet-content"},RJ={class:"questions"},xJ={class:"answers-container"},IJ=["onClick"],NJ=Te({__name:"component",props:{data:null,hasError:{type:Boolean},response:null},emits:["change","setInitialValue"],setup(e,{emit:t}){const n=e,r=(d,s)=>n.response.value?n.response.value[d]==s:!1,i=()=>Array(n.data.numberOfQuestions+1).fill(null).reduce((d,s,u)=>({...d,[u]:null})),a=(d,s)=>{if(n.data.disabled)return;const u=String(d),o=n.response.value;o[u]===s?o[u]=null:o[u]=s,n.response.setValue(o),t("change",n.response)};return it(()=>{n.response.value||n.response.setValue(i()),t("setInitialValue",n.response)}),(d,s)=>(Se(),Re("div",CJ,[N(mn,{label:e.data.label,required:!!e.data.required},null,8,["label","required"]),He("div",TJ,[He("div",OJ,[(Se(!0),Re(Xe,null,On(e.data.options,u=>(Se(),Re("p",{key:u},pt(u),1))),128))]),He("div",wJ,[He("div",RJ,[(Se(!0),Re(Xe,null,On(e.data.numberOfQuestions,u=>(Se(),Re("p",{key:`question - ${u}`,class:"question"},pt(u),1))),128))]),He("div",xJ,[(Se(!0),Re(Xe,null,On(e.data.numberOfQuestions,u=>(Se(),Re("div",{key:`answer - ${u}`,class:"answers"},[(Se(!0),Re(Xe,null,On(e.data.options,o=>(Se(),Re("div",{key:`answer-${u}-option-${o}`,class:ct(["box-input","radiobox",{disabled:e.data.disabled}]),onClick:l=>a(u,o)},[He("div",{class:ct(["box",{checked:r(u,o)}])},null,2)],10,IJ))),128))]))),128))])])])]))}});const AJ=Qt(NJ,[["__scopeId","data-v-20006d61"]]),DJ={class:"search"},MJ=["active","onClick"],kJ={key:0,class:"image-container"},PJ=["src"],LJ={class:"text-container"},$J={key:0,class:"extra"},FJ={key:0,class:"left"},BJ={key:1,class:"right"},UJ={key:1,class:"card-title"},GJ={key:2,class:"card-subtitle"},HJ={key:3,class:"card-description"},zJ=Te({__name:"component",props:{data:null,hasError:{type:Boolean},response:null},emits:["change","setInitialValue","card-click"],setup(e,{emit:t}){const n=e;function r(p,f){return jt.exports.isEqual(jt.exports.omit(p,["image"]),jt.exports.omit(f,["image"]))}const i=B(()=>jt.exports.isArray(n.response.value)?n.response.value.filter(p=>p!==null):n.response.value!==null?[n.response.value]:[]),a=B(()=>{var p;return(p=n.data.options)!=null?p:[]}),d=B(()=>{var p;return(p=n.data.searchable)!=null?p:!1}),s=ke("");function u(p){return s.value?p.filter(f=>f.title.toLowerCase().includes(s.value.toLowerCase())||f.description.toLowerCase().includes(s.value.toLowerCase())):p}const o=()=>{const p=n.data.initialValue;return p?jt.exports.isArray(p)?p.map(f=>a.value.find(m=>r(m,f))).filter(f=>f):a.value.filter(f=>r(f,p)):[]};function l(p){return i.value.some(f=>r(f,p))}function c(p){var g;if(t("card-click",p),n.data.disabled)return;const f=l(p);let m=[...i.value];f?m=m.filter(h=>!r(h,p)):m=[p,...m],n.response.setValue(n.data.multiple?m:(g=m[0])!=null?g:null),t("change",n.response)}return it(()=>{n.response.value||n.response.setValue(o()),t("setInitialValue",n.response)}),ze(()=>n.data.options,(p,f)=>{(p.length!=f.length||p.some((m,g)=>!r(m,f[g])))&&n.response.setValue(o())}),(p,f)=>{var m;return Se(),Re("div",{class:"cards-input",style:Zn({"--grid-columns":(m=e.data.columns)!=null?m:2})},[N(mn,{label:e.data.label,required:!!e.data.required},null,8,["label","required"]),He("div",DJ,[Ve(d)?ur((Se(),Re("input",{key:0,"onUpdate:modelValue":f[0]||(f[0]=g=>s.value=g),type:"text",class:"input",placeholder:"Search..."},null,512)),[[Ul,s.value]]):Lt("",!0)]),He("div",{class:ct(["cards",e.data.layout||"list"])},[(Se(!0),Re(Xe,null,On(u(Ve(a)),g=>(Se(),Re("div",{key:g.title,class:ct(["card","clickable",e.data.layout||"list",{disabled:e.data.disabled}]),active:l(g),onClick:h=>c(g)},[g.image?(Se(),Re("div",kJ,[He("img",{class:"card-image",src:g.image},null,8,PJ)])):Lt("",!0),He("main",LJ,[g.topLeftExtra||g.topRightExtra?(Se(),Re("div",$J,[g.topLeftExtra?(Se(),Re("p",FJ,pt(g.topLeftExtra),1)):Lt("",!0),g.topRightExtra?(Se(),Re("p",BJ,pt(g.topRightExtra),1)):Lt("",!0)])):Lt("",!0),g.title?(Se(),Re("h1",UJ,pt(g.title),1)):Lt("",!0),g.subtitle?(Se(),Re("h2",GJ,pt(g.subtitle),1)):Lt("",!0),g.description?(Se(),Re("p",HJ,pt(g.description),1)):Lt("",!0)])],10,MJ))),128))],2)],4)}}});const YJ=Qt(zJ,[["__scopeId","data-v-6647eb75"]]),VJ={class:"box-input checkbox"},qJ=Te({__name:"component",props:{data:null,hasError:{type:Boolean},page:null,response:null},emits:["change","setInitialValue"],setup(e,{emit:t}){const n=e,r=B(()=>{var d;return(d=n.response.value)!=null?d:!1}),i=()=>{n.data.disabled||a(!n.response.value)},a=d=>{n.data.required&&d===!1&&(d=null),n.response.setValue(d),t("change",n.response)};return it(()=>{n.response.value==null&&a(n.data.initialValue),t("setInitialValue",n.response)}),(d,s)=>{const u=Nl("Markdown");return Se(),Re("div",VJ,[He("div",{class:ct(["box",{checked:Ve(r),disabled:e.data.disabled}]),onClick:s[0]||(s[0]=o=>i())},null,2),N(u,{source:e.data.label,html:""},null,8,["source"])])}}});const jJ=Qt(qJ,[["__scopeId","data-v-2dde0520"]]),WJ={class:"checklist-input"},KJ={class:"choices"},QJ={key:0,class:"checklist-box"},XJ=["active","onClick"],ZJ={key:1,class:"checklist-box"},JJ=["onClick"],eee=Te({__name:"component",props:{data:null,hasError:{type:Boolean},page:null,response:null},emits:["change","setInitialValue"],setup(e,{emit:t}){const n=e,r=B(()=>{var l;return(l=n.response.value)!=null?l:[]}),i=B(()=>n.page&&(!n.page.actions||!n.page.actions.length)&&n.page.widgets.indexOf(n.data)===n.page.widgets.length-1),a=B(()=>{var l,c;return(c=(l=n.data.options)==null?void 0:l.map(p=>typeof p=="object"?p:{label:p,value:p}))!=null?c:[]}),d=(l,c=!0)=>{n.response.setValue(l),c&&t("change",n.response)},s=l=>{var p;if(n.data.disabled)return;let c=r.value;(p=r.value)!=null&&p.includes(l)?c=c.filter(f=>f!=l):c.push(l),d(c)},u=()=>{let l=n.data.initialValue;return jt.exports.isArray(l)?l=l.filter(c=>c!=null):l!=null?l=[l]:l=[],l=l.filter(c=>a.value.find(p=>p.value==c)),l},o=()=>{d(u(),!1),t("setInitialValue",n.response)};return it(()=>{n.response.value||o()}),ze(()=>n.data.options,(l,c)=>{jt.exports.isEqual(l,c)||o()}),(l,c)=>{const p=Nl("Markdown");return Se(),Re("div",WJ,[N(mn,{label:e.data.label,required:!!e.data.required},null,8,["label","required"]),He("div",KJ,[Ve(i)?(Se(),Re("div",QJ,[(Se(!0),Re(Xe,null,On(Ve(a),f=>(Se(),Re("div",{key:f.value,class:ct(["checklist-button",{disabled:e.data.disabled}]),active:Ve(r).includes(f.value),onClick:m=>s(f.value)},[N(p,{source:f.label,html:""},null,8,["source"])],10,XJ))),128))])):(Se(),Re("div",ZJ,[(Se(!0),Re(Xe,null,On(Ve(a),f=>(Se(),Re("div",{key:f.value,class:ct(["box-input","checklist",{disabled:e.data.disabled}]),onClick:m=>s(f.value)},[He("div",{class:ct(["box",{checked:Ve(r).includes(f.value)}])},null,2),N(p,{class:"option-label",source:f.label,html:""},null,8,["source"])],10,JJ))),128))]))])])}}});const tee=Qt(eee,[["__scopeId","data-v-397e3fed"]]),nee=Te({__name:"component",props:{data:null,hasError:{type:Boolean}},emits:["click"],setup(e,{emit:t}){return(n,r)=>(Se(),Re("button",{class:ct(["click-input","button",{disabled:e.data.disabled}]),onClick:r[0]||(r[0]=i=>t("click"))},pt(e.data.label),3))}}),ree=()=>navigator.userAgent.includes("Mac OS X"),bI=e=>ree()?e.metaKey:e.ctrlKey,Ma=class{constructor(t,n){Si(this,"inputElements",[]);Si(this,"lastFocusedElement",null);Si(this,"actions",[]);Si(this,"next",()=>{});Si(this,"handleWindowKeyDown",t=>{var r;if(this.shouldIgnoreKeydown(t)||bI(t))return;const n=(r=this.lastFocusedElement)!=null?r:this.inputElements[0];if(document.activeElement!==n){if(t.key==="Enter"&&!n){t.stopImmediatePropagation(),this.next();return}n==null||n.focus()}});this.inputElements=[],this.next=n,t&&window.addEventListener("keydown",this.handleWindowKeyDown)}static init(t,n){var r;(r=Ma.instance)==null||r.clearWindowListener(),Ma.instance=new Ma(t,n)}static addInput(t,n=!1){var r;!Ma.instance||(r=Ma.instance)==null||r.addInput(t,n)}static addAction(t){var n;!Ma.instance||(n=Ma.instance)==null||n.addAction(t)}clearWindowListener(){window.removeEventListener("keydown",this.handleWindowKeyDown)}blurCurrentlyFocusedElement(){!document.activeElement||!document.activeElement.blur||document.activeElement.blur()}shouldIgnoreKeydown(t,n=!1){const r=!!document.querySelector("[aria-expanded='true']"),i=t.key==="Enter",a=n?i&&!bI(t):i&&t.shiftKey,d=this.actions.some(u=>u.isFocused),s=t.key==="Tab";return r||a||s||d}addInput(t,n=!1){this.inputElements.length===0&&t.focus();const i=this.inputElements.length;this.inputElements.push(t),t.addEventListener("keydown",a=>{var d;if(!this.shouldIgnoreKeydown(a,n)&&a.key==="Enter"){if(this.blurCurrentlyFocusedElement(),!this.inputElements[i+1]){a.stopImmediatePropagation(),this.selectDefaultAction();return}(d=this.inputElements[i+1])==null||d.focus()}}),t.addEventListener("focus",a=>this.lastFocusedElement=a.target,!0)}selectDefaultAction(){var n;if(this.actions.length===0)return this.next();if(this.actions.length===1)return this.next(this.actions[0]);const t=(n=this.actions.find(r=>r.isDefault))!=null?n:this.actions[this.actions.length-1];t==null||t.focusOnButton()}addAction(t){this.actions.push(t);const n=-1,r=1,i=a=>{const d=this.actions.indexOf(t),s=this.actions[d+a];!s||s.focusOnButton()};t.addKeydownListener(a=>{a.key==="ArrowLeft"?i(n):a.key==="ArrowRight"&&i(r)})}};let Cr=Ma;Si(Cr,"instance",null);const iee={0:/\d/,a:/[a-zA-Z]/,"*":/./};function Bs(e,t){var d;if(e.length===0||t.length===0)return"";const n=oee(e,t),r=n[0],i=iee[r];if(!i)return r+Bs(n.slice(1),t.startsWith(r)?t.slice(1):t);const a=t.match(i);return a?a[0]+Bs(n.slice(1),t.slice(((d=a.index)!=null?d:0)+1)):""}function Mp(e,t){if(e.includes("|")){const n=NP(e);return n[n.length-1].length==t.length}return t.length===e.length}function oee(e,t){if(!e.includes("|"))return e;const n=NP(e);for(const r of n)if(t.replace(/\D/g,"").length<=r.replace(/\D/g,"").length)return r;return n[0]}function NP(e){return e.split("|").sort((n,r)=>n.length-r.length)}const aee=["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],see=["00","15","30","45"],AP=aee.flatMap(e=>see.map(t=>({hour:e,minute:t}))),DP=e=>({hour:Number(e.hour),minute:Number(e.minute)}),lee=()=>AP.map(e=>{const t=Number(e.hour),n=t<12?"AM":"PM",r=t%12;return{label:`${`${r==0?"12":r}`.padStart(2,"0")}:${e.minute} ${n}`,value:DP(e)}}),cee=()=>AP.map(e=>({label:`${e.hour}:${e.minute}`,value:DP(e)})),MP=e=>e.replace(/\D/g,""),uee=e=>e.length!==MP(e).length,pS=e=>{const t=dee(e);let n,r;if(n=0,t=="00000000000")return!1;for(let i=1;i<=9;i++)n=n+parseInt(t.substring(i-1,i))*(11-i);if(r=n*10%11,(r==10||r==11)&&(r=0),r!=parseInt(t.substring(9,10)))return!1;n=0;for(let i=1;i<=10;i++)n=n+parseInt(t.substring(i-1,i))*(12-i);return r=n*10%11,(r==10||r==11)&&(r=0),r==parseInt(t.substring(10,11))},dee=e=>e.split(".").join("").split("-").join(""),fS=e=>{if(!e||!(typeof e=="string")||e.length>18)return!1;const n=/^\d{14}$/.test(e),r=/^\d{2}.\d{3}.\d{3}\/\d{4}-\d{2}$/.test(e);if(!(n||r))return!1;const i=e.toString().match(/\d/g),a=Array.isArray(i)?i.map(Number):[];if(a.length!==14||[...new Set(a)].length===1)return!1;const s=c=>{const p=a.slice(0,c);let f=c-7,m=0;for(let h=c;h>=1;h--){const b=p[c-h];m+=b*f--,f<2&&(f=9)}const g=11-m%11;return g>9?0:g},u=a.slice(12);return s(12)!==u[0]?!1:s(13)===u[1]};function SE(e){return new Promise((t,n)=>{const r=document.createElement("script");r.src=e,r.onload=t,r.onerror=n,document.head.appendChild(r)})}const pee=(e,t)=>{const n={};return Object.keys(e).forEach(r=>{const i=e[r].constructor.name;i==="Number"?n[r]=Number(t[r]):i==="Boolean"?n[r]=t[r]==="true":i==="Date"?n[r]=new Date(t[r]):i==="String"?n[r]=t[r].toString():i==="Object"||i==="Array"?n[r]=JSON.parse(t[r]):i==="Null"&&(n[r]=null)}),n},fee=["disabled","placeholder"],_ee=Te({__name:"component",props:{data:null,hasError:{type:Boolean},response:null},emits:["change","enter","setInitialValue"],setup(e,{emit:t}){const n=e,r="00.000.000/0000-00";n.response.setValidation(o=>{var c;const l=[];return o&&!fS(o)&&l.push((c=n.data.invalidMessage)!=null?c:""),l});const i=(o,l=!0)=>{o!=u.value.value&&(u.value.value=o),o!=n.response.value&&n.response.setValue(o),console.log(l),l&&t("change",n.response)},a=ke(!1),d=o=>{const l=Bs(r,o),c=Mp(r,o)&&fS(o);a.value=!c,i(l,c)},s=o=>{const l=o.target;Mp(r,l.value)&&fS(l.value)&&o.preventDefault()},u=ke();return it(()=>{var o,l;i((l=(o=n.response.value)!=null?o:n.data.initialValue)!=null?l:"",!1),t("setInitialValue",n.response),Cr.addInput(u.value)}),ze(()=>n.response.value,o=>i(o!=null?o:"",!1)),(o,l)=>(Se(),Re(Xe,null,[N(mn,{label:e.data.label,required:!!e.data.required},null,8,["label","required"]),He("input",{ref_key:"input",ref:u,class:ct(["input",(e.hasError||a.value)&&"error",e.data.disabled&&"disabled"]),disabled:e.data.disabled,placeholder:e.data.placeholder,onInput:l[0]||(l[0]=c=>d(c.target.value)),onKeypress:l[1]||(l[1]=c=>s(c))},null,42,fee)],64))}}),mee=Te({__name:"component",props:{data:null,hasError:{type:Boolean},response:null},emits:["change","setInitialValue"],setup(e,{emit:t}){const n=e,r=(s,u=!0)=>{s!==n.response.value&&(n.response.setValue(s),u&&t("change",n.response))},i=ke();let a=null;const d=async(s,u,o)=>{const c=(await bM(()=>import("./editor.main.aa43f13b.js").then(p=>p.e),["assets/editor.main.aa43f13b.js","assets/editor.30d77c87.css"])).editor.create(s,{language:o,value:u,minimap:{enabled:!1},readOnly:n.data.disabled,contextmenu:!0,automaticLayout:!0,tabSize:4,renderWhitespace:"none",guides:{indentation:!1},theme:"vs",fontFamily:"monospace",lineNumbers:"on",scrollBeyondLastColumn:5,scrollBeyondLastLine:!0,renderLineHighlight:"all",scrollbar:{alwaysConsumeMouseWheel:!1}});c.onDidChangeModelContent(()=>{r(String(c.getValue()))}),a=c};return it(()=>{var s;n.data.initialValue&&!n.response.value&&n.response.setValue(n.data.initialValue),t("setInitialValue",n.response),d(i.value,(s=n.response.value)!=null?s:"",n.data.language),Cr.addInput(i.value,!0)}),ze(()=>n.response.value,(s,u)=>{u!=s&&(a==null?void 0:a.getValue())!==s&&(a==null||a.setValue(s!=null?s:""))}),(s,u)=>(Se(),Re(Xe,null,[N(mn,{label:e.data.label,required:!!e.data.required},null,8,["label","required"]),He("div",{ref_key:"editor",ref:i,class:"input code-editor",style:{height:"500px"}},null,512)],64))}});const gee=Qt(mee,[["__scopeId","data-v-1c95e27e"]]),hee={class:"cpf-input"},bee=["disabled","placeholder"],See=Te({__name:"component",props:{data:null,hasError:{type:Boolean},response:null},emits:["change","enter","setInitialValue"],setup(e,{emit:t}){const n=e,r="000.000.000-00";n.response.setValidation(o=>{var c;const l=[];return o&&!pS(o)&&l.push((c=n.data.invalidMessage)!=null?c:""),l});const i=(o,l=!0)=>{o!=u.value.value&&(u.value.value=o),o!=n.response.value&&n.response.setValue(o),l&&t("change",n.response)},a=ke(!1),d=o=>{const l=Bs(r,o),c=Mp(r,o)&&pS(o);a.value=!c,i(l,c)},s=o=>{const l=o.target;Mp(r,l.value)&&pS(l.value)&&o.preventDefault()},u=ke();return it(()=>{var o,l;i((l=(o=n.response.value)!=null?o:n.data.initialValue)!=null?l:"",!1),t("setInitialValue",n.response),Cr.addInput(u.value)}),ze(()=>n.response.value,o=>i(o!=null?o:"",!1)),(o,l)=>(Se(),Re("div",hee,[N(mn,{label:e.data.label,required:!!e.data.required},null,8,["label","required"]),He("input",{ref_key:"input",ref:u,class:ct(["input",(e.hasError||a.value)&&"error",e.data.disabled&&"disabled"]),disabled:e.data.disabled,placeholder:e.data.placeholder,onInput:l[0]||(l[0]=c=>d(c.target.value)),onKeypress:l[1]||(l[1]=c=>s(c))},null,42,bee)]))}}),vee={class:"currency-input"},Eee={class:"input-wrapper"},yee=["disabled","placeholder","step"],Cee=Te({__name:"component",props:{data:null,hasError:{type:Boolean},response:null},emits:["change","setInitialValue"],setup(e,{emit:t}){const n=e,r=ke(!1);n.response.setValidation(l=>{const c=[];return n.data.min&&l&&ln.data.max&&c.push(`The maximum value allowed is ${n.data.max}`),c});const i=Intl.NumberFormat("en-US",{maximumFractionDigits:0,currency:n.data.currency,style:"currency",currencyDisplay:"symbol"}).format(0),a=i.replace("0",""),d=i.length*15+"px",s=(l,c=!0)=>{const p=String(l),f=Number(l);p!=o.value.value&&(o.value.value=p),f!=n.response.value&&n.response.setValue(f),c&&t("change",n.response)},u=l=>{n.response.clearErrors(),s(l)},o=ke();return it(()=>{var l,c;s((c=(l=n.response.value)!=null?l:n.data.initialValue)!=null?c:"",!1),t("setInitialValue",n.response),Cr.addInput(o.value)}),ze(()=>n.response.value,l=>s(l!=null?l:"",!1)),(l,c)=>(Se(),Re("div",vee,[N(mn,{label:e.data.label,required:!!e.data.required},null,8,["label","required"]),He("div",Eee,[He("div",{class:ct(["symbol",{focused:r.value}])},pt(Ve(a)),3),He("input",{ref_key:"input",ref:o,style:Zn({paddingLeft:d}),class:ct(["input",e.hasError&&"error",e.data.disabled&&"disabled"]),disabled:e.data.disabled,type:"number",placeholder:e.data.placeholder,step:e.data.step,onInput:c[0]||(c[0]=p=>u(p.target.value))},null,46,yee)])]))}});const Tee=Qt(Cee,[["__scopeId","data-v-623617b6"]]),Oee={class:"custom-input",style:{height:"100%",width:"100%"}},wee=["id","src"],Ree=Te({__name:"component",props:{data:null,hasError:{type:Boolean},response:null},emits:["change","custom-event","setInitialValue"],setup(e,{emit:t}){const n=e,r=ke(),i=Math.random().toString(36).slice(2),a=ke("");let d="";const s=(c,p=!0)=>{c!=n.response.value&&(d=c,n.response.setValue(c)),p&&t("change",n.response)},u=c=>typeof c=="object"&&c!==null&&"type"in c&&"id"in c&&c.id===i,o=c=>{!u(c.data)||(c.data.type==="change"?s(c.data.payload):t(c.data.type,c.data.payload))};it(()=>{var c,p;s((p=(c=n.response.value)!=null?c:n.data.initialValue)!=null?p:"",!1),t("setInitialValue",n.response),window.addEventListener("message",o),l()}),tn(()=>{window.removeEventListener("message",o)}),ze(()=>n.response.value,(c,p)=>{jt.exports.isEqual(c,p)||d&&jt.exports.isEqual(d,c)||l()}),ze(()=>n.data.initialValue,(c,p)=>{jt.exports.isEqual(c,p)||l()}),ze(()=>`${n.data.htmlHead}${n.data.htmlBody}${n.data.css}${n.data.js}`,()=>l());const l=()=>{var b,v;const c="script",p=(v=(b=n.response.value)!=null?b:n.data.initialValue)!=null?v:"",{htmlHead:f,htmlBody:m,css:g,js:h}=n.data;a.value=window.btoa(` +`;bJ(SJ);fJ.render=hJ;const vJ={key:0,class:"label-container"},EJ={class:"label"},yJ={key:0,class:"required"},mn=Te({__name:"Label",props:{label:null,required:{type:Boolean}},setup(e){return(t,n)=>e.label?(Se(),Re("div",vJ,[He("h3",EJ,pt(e.label),1),e.label&&e.required?(Se(),Re("span",yJ," * ")):Lt("",!0)])):Lt("",!0)}});const CJ={class:"answer-sheet-input"},TJ={class:"sheet"},OJ={class:"options"},wJ={class:"sheet-content"},RJ={class:"questions"},xJ={class:"answers-container"},IJ=["onClick"],NJ=Te({__name:"component",props:{data:null,hasError:{type:Boolean},response:null},emits:["change","setInitialValue"],setup(e,{emit:t}){const n=e,r=(d,s)=>n.response.value?n.response.value[d]==s:!1,i=()=>Array(n.data.numberOfQuestions+1).fill(null).reduce((d,s,u)=>({...d,[u]:null})),a=(d,s)=>{if(n.data.disabled)return;const u=String(d),o=n.response.value;o[u]===s?o[u]=null:o[u]=s,n.response.setValue(o),t("change",n.response)};return it(()=>{n.response.value||n.response.setValue(i()),t("setInitialValue",n.response)}),(d,s)=>(Se(),Re("div",CJ,[N(mn,{label:e.data.label,required:!!e.data.required},null,8,["label","required"]),He("div",TJ,[He("div",OJ,[(Se(!0),Re(Xe,null,On(e.data.options,u=>(Se(),Re("p",{key:u},pt(u),1))),128))]),He("div",wJ,[He("div",RJ,[(Se(!0),Re(Xe,null,On(e.data.numberOfQuestions,u=>(Se(),Re("p",{key:`question - ${u}`,class:"question"},pt(u),1))),128))]),He("div",xJ,[(Se(!0),Re(Xe,null,On(e.data.numberOfQuestions,u=>(Se(),Re("div",{key:`answer - ${u}`,class:"answers"},[(Se(!0),Re(Xe,null,On(e.data.options,o=>(Se(),Re("div",{key:`answer-${u}-option-${o}`,class:ct(["box-input","radiobox",{disabled:e.data.disabled}]),onClick:l=>a(u,o)},[He("div",{class:ct(["box",{checked:r(u,o)}])},null,2)],10,IJ))),128))]))),128))])])])]))}});const AJ=Qt(NJ,[["__scopeId","data-v-20006d61"]]),DJ={class:"search"},MJ=["active","onClick"],kJ={key:0,class:"image-container"},PJ=["src"],LJ={class:"text-container"},$J={key:0,class:"extra"},FJ={key:0,class:"left"},BJ={key:1,class:"right"},UJ={key:1,class:"card-title"},GJ={key:2,class:"card-subtitle"},HJ={key:3,class:"card-description"},zJ=Te({__name:"component",props:{data:null,hasError:{type:Boolean},response:null},emits:["change","setInitialValue","card-click"],setup(e,{emit:t}){const n=e;function r(p,f){return jt.exports.isEqual(jt.exports.omit(p,["image"]),jt.exports.omit(f,["image"]))}const i=B(()=>jt.exports.isArray(n.response.value)?n.response.value.filter(p=>p!==null):n.response.value!==null?[n.response.value]:[]),a=B(()=>{var p;return(p=n.data.options)!=null?p:[]}),d=B(()=>{var p;return(p=n.data.searchable)!=null?p:!1}),s=ke("");function u(p){return s.value?p.filter(f=>f.title.toLowerCase().includes(s.value.toLowerCase())||f.description.toLowerCase().includes(s.value.toLowerCase())):p}const o=()=>{const p=n.data.initialValue;return p?jt.exports.isArray(p)?p.map(f=>a.value.find(m=>r(m,f))).filter(f=>f):a.value.filter(f=>r(f,p)):[]};function l(p){return i.value.some(f=>r(f,p))}function c(p){var g;if(t("card-click",p),n.data.disabled)return;const f=l(p);let m=[...i.value];f?m=m.filter(h=>!r(h,p)):m=[p,...m],n.response.setValue(n.data.multiple?m:(g=m[0])!=null?g:null),t("change",n.response)}return it(()=>{n.response.value||n.response.setValue(o()),t("setInitialValue",n.response)}),ze(()=>n.data.options,(p,f)=>{(p.length!=f.length||p.some((m,g)=>!r(m,f[g])))&&n.response.setValue(o())}),(p,f)=>{var m;return Se(),Re("div",{class:"cards-input",style:Zn({"--grid-columns":(m=e.data.columns)!=null?m:2})},[N(mn,{label:e.data.label,required:!!e.data.required},null,8,["label","required"]),He("div",DJ,[Ve(d)?ur((Se(),Re("input",{key:0,"onUpdate:modelValue":f[0]||(f[0]=g=>s.value=g),type:"text",class:"input",placeholder:"Search..."},null,512)),[[Ul,s.value]]):Lt("",!0)]),He("div",{class:ct(["cards",e.data.layout||"list"])},[(Se(!0),Re(Xe,null,On(u(Ve(a)),g=>(Se(),Re("div",{key:g.title,class:ct(["card","clickable",e.data.layout||"list",{disabled:e.data.disabled}]),active:l(g),onClick:h=>c(g)},[g.image?(Se(),Re("div",kJ,[He("img",{class:"card-image",src:g.image},null,8,PJ)])):Lt("",!0),He("main",LJ,[g.topLeftExtra||g.topRightExtra?(Se(),Re("div",$J,[g.topLeftExtra?(Se(),Re("p",FJ,pt(g.topLeftExtra),1)):Lt("",!0),g.topRightExtra?(Se(),Re("p",BJ,pt(g.topRightExtra),1)):Lt("",!0)])):Lt("",!0),g.title?(Se(),Re("h1",UJ,pt(g.title),1)):Lt("",!0),g.subtitle?(Se(),Re("h2",GJ,pt(g.subtitle),1)):Lt("",!0),g.description?(Se(),Re("p",HJ,pt(g.description),1)):Lt("",!0)])],10,MJ))),128))],2)],4)}}});const YJ=Qt(zJ,[["__scopeId","data-v-6647eb75"]]),VJ={class:"box-input checkbox"},qJ=Te({__name:"component",props:{data:null,hasError:{type:Boolean},page:null,response:null},emits:["change","setInitialValue"],setup(e,{emit:t}){const n=e,r=B(()=>{var d;return(d=n.response.value)!=null?d:!1}),i=()=>{n.data.disabled||a(!n.response.value)},a=d=>{n.data.required&&d===!1&&(d=null),n.response.setValue(d),t("change",n.response)};return it(()=>{n.response.value==null&&a(n.data.initialValue),t("setInitialValue",n.response)}),(d,s)=>{const u=Nl("Markdown");return Se(),Re("div",VJ,[He("div",{class:ct(["box",{checked:Ve(r),disabled:e.data.disabled}]),onClick:s[0]||(s[0]=o=>i())},null,2),N(u,{source:e.data.label,html:""},null,8,["source"])])}}});const jJ=Qt(qJ,[["__scopeId","data-v-2dde0520"]]),WJ={class:"checklist-input"},KJ={class:"choices"},QJ={key:0,class:"checklist-box"},XJ=["active","onClick"],ZJ={key:1,class:"checklist-box"},JJ=["onClick"],eee=Te({__name:"component",props:{data:null,hasError:{type:Boolean},page:null,response:null},emits:["change","setInitialValue"],setup(e,{emit:t}){const n=e,r=B(()=>{var l;return(l=n.response.value)!=null?l:[]}),i=B(()=>n.page&&(!n.page.actions||!n.page.actions.length)&&n.page.widgets.indexOf(n.data)===n.page.widgets.length-1),a=B(()=>{var l,c;return(c=(l=n.data.options)==null?void 0:l.map(p=>typeof p=="object"?p:{label:p,value:p}))!=null?c:[]}),d=(l,c=!0)=>{n.response.setValue(l),c&&t("change",n.response)},s=l=>{var p;if(n.data.disabled)return;let c=r.value;(p=r.value)!=null&&p.includes(l)?c=c.filter(f=>f!=l):c.push(l),d(c)},u=()=>{let l=n.data.initialValue;return jt.exports.isArray(l)?l=l.filter(c=>c!=null):l!=null?l=[l]:l=[],l=l.filter(c=>a.value.find(p=>p.value==c)),l},o=()=>{d(u(),!1),t("setInitialValue",n.response)};return it(()=>{n.response.value||o()}),ze(()=>n.data.options,(l,c)=>{jt.exports.isEqual(l,c)||o()}),(l,c)=>{const p=Nl("Markdown");return Se(),Re("div",WJ,[N(mn,{label:e.data.label,required:!!e.data.required},null,8,["label","required"]),He("div",KJ,[Ve(i)?(Se(),Re("div",QJ,[(Se(!0),Re(Xe,null,On(Ve(a),f=>(Se(),Re("div",{key:f.value,class:ct(["checklist-button",{disabled:e.data.disabled}]),active:Ve(r).includes(f.value),onClick:m=>s(f.value)},[N(p,{source:f.label,html:""},null,8,["source"])],10,XJ))),128))])):(Se(),Re("div",ZJ,[(Se(!0),Re(Xe,null,On(Ve(a),f=>(Se(),Re("div",{key:f.value,class:ct(["box-input","checklist",{disabled:e.data.disabled}]),onClick:m=>s(f.value)},[He("div",{class:ct(["box",{checked:Ve(r).includes(f.value)}])},null,2),N(p,{class:"option-label",source:f.label,html:""},null,8,["source"])],10,JJ))),128))]))])])}}});const tee=Qt(eee,[["__scopeId","data-v-397e3fed"]]),nee=Te({__name:"component",props:{data:null,hasError:{type:Boolean}},emits:["click"],setup(e,{emit:t}){return(n,r)=>(Se(),Re("button",{class:ct(["click-input","button",{disabled:e.data.disabled}]),onClick:r[0]||(r[0]=i=>t("click"))},pt(e.data.label),3))}}),ree=()=>navigator.userAgent.includes("Mac OS X"),bI=e=>ree()?e.metaKey:e.ctrlKey,Ma=class{constructor(t,n){Si(this,"inputElements",[]);Si(this,"lastFocusedElement",null);Si(this,"actions",[]);Si(this,"next",()=>{});Si(this,"handleWindowKeyDown",t=>{var r;if(this.shouldIgnoreKeydown(t)||bI(t))return;const n=(r=this.lastFocusedElement)!=null?r:this.inputElements[0];if(document.activeElement!==n){if(t.key==="Enter"&&!n){t.stopImmediatePropagation(),this.next();return}n==null||n.focus()}});this.inputElements=[],this.next=n,t&&window.addEventListener("keydown",this.handleWindowKeyDown)}static init(t,n){var r;(r=Ma.instance)==null||r.clearWindowListener(),Ma.instance=new Ma(t,n)}static addInput(t,n=!1){var r;!Ma.instance||(r=Ma.instance)==null||r.addInput(t,n)}static addAction(t){var n;!Ma.instance||(n=Ma.instance)==null||n.addAction(t)}clearWindowListener(){window.removeEventListener("keydown",this.handleWindowKeyDown)}blurCurrentlyFocusedElement(){!document.activeElement||!document.activeElement.blur||document.activeElement.blur()}shouldIgnoreKeydown(t,n=!1){const r=!!document.querySelector("[aria-expanded='true']"),i=t.key==="Enter",a=n?i&&!bI(t):i&&t.shiftKey,d=this.actions.some(u=>u.isFocused),s=t.key==="Tab";return r||a||s||d}addInput(t,n=!1){this.inputElements.length===0&&t.focus();const i=this.inputElements.length;this.inputElements.push(t),t.addEventListener("keydown",a=>{var d;if(!this.shouldIgnoreKeydown(a,n)&&a.key==="Enter"){if(this.blurCurrentlyFocusedElement(),!this.inputElements[i+1]){a.stopImmediatePropagation(),this.selectDefaultAction();return}(d=this.inputElements[i+1])==null||d.focus()}}),t.addEventListener("focus",a=>this.lastFocusedElement=a.target,!0)}selectDefaultAction(){var n;if(this.actions.length===0)return this.next();if(this.actions.length===1)return this.next(this.actions[0]);const t=(n=this.actions.find(r=>r.isDefault))!=null?n:this.actions[this.actions.length-1];t==null||t.focusOnButton()}addAction(t){this.actions.push(t);const n=-1,r=1,i=a=>{const d=this.actions.indexOf(t),s=this.actions[d+a];!s||s.focusOnButton()};t.addKeydownListener(a=>{a.key==="ArrowLeft"?i(n):a.key==="ArrowRight"&&i(r)})}};let Cr=Ma;Si(Cr,"instance",null);const iee={0:/\d/,a:/[a-zA-Z]/,"*":/./};function Bs(e,t){var d;if(e.length===0||t.length===0)return"";const n=oee(e,t),r=n[0],i=iee[r];if(!i)return r+Bs(n.slice(1),t.startsWith(r)?t.slice(1):t);const a=t.match(i);return a?a[0]+Bs(n.slice(1),t.slice(((d=a.index)!=null?d:0)+1)):""}function Mp(e,t){if(e.includes("|")){const n=NP(e);return n[n.length-1].length==t.length}return t.length===e.length}function oee(e,t){if(!e.includes("|"))return e;const n=NP(e);for(const r of n)if(t.replace(/\D/g,"").length<=r.replace(/\D/g,"").length)return r;return n[0]}function NP(e){return e.split("|").sort((n,r)=>n.length-r.length)}const aee=["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],see=["00","15","30","45"],AP=aee.flatMap(e=>see.map(t=>({hour:e,minute:t}))),DP=e=>({hour:Number(e.hour),minute:Number(e.minute)}),lee=()=>AP.map(e=>{const t=Number(e.hour),n=t<12?"AM":"PM",r=t%12;return{label:`${`${r==0?"12":r}`.padStart(2,"0")}:${e.minute} ${n}`,value:DP(e)}}),cee=()=>AP.map(e=>({label:`${e.hour}:${e.minute}`,value:DP(e)})),MP=e=>e.replace(/\D/g,""),uee=e=>e.length!==MP(e).length,pS=e=>{const t=dee(e);let n,r;if(n=0,t=="00000000000")return!1;for(let i=1;i<=9;i++)n=n+parseInt(t.substring(i-1,i))*(11-i);if(r=n*10%11,(r==10||r==11)&&(r=0),r!=parseInt(t.substring(9,10)))return!1;n=0;for(let i=1;i<=10;i++)n=n+parseInt(t.substring(i-1,i))*(12-i);return r=n*10%11,(r==10||r==11)&&(r=0),r==parseInt(t.substring(10,11))},dee=e=>e.split(".").join("").split("-").join(""),fS=e=>{if(!e||!(typeof e=="string")||e.length>18)return!1;const n=/^\d{14}$/.test(e),r=/^\d{2}.\d{3}.\d{3}\/\d{4}-\d{2}$/.test(e);if(!(n||r))return!1;const i=e.toString().match(/\d/g),a=Array.isArray(i)?i.map(Number):[];if(a.length!==14||[...new Set(a)].length===1)return!1;const s=c=>{const p=a.slice(0,c);let f=c-7,m=0;for(let h=c;h>=1;h--){const b=p[c-h];m+=b*f--,f<2&&(f=9)}const g=11-m%11;return g>9?0:g},u=a.slice(12);return s(12)!==u[0]?!1:s(13)===u[1]};function SE(e){return new Promise((t,n)=>{const r=document.createElement("script");r.src=e,r.onload=t,r.onerror=n,document.head.appendChild(r)})}const pee=(e,t)=>{const n={};return Object.keys(e).forEach(r=>{const i=e[r].constructor.name;i==="Number"?n[r]=Number(t[r]):i==="Boolean"?n[r]=t[r]==="true":i==="Date"?n[r]=new Date(t[r]):i==="String"?n[r]=t[r].toString():i==="Object"||i==="Array"?n[r]=JSON.parse(t[r]):i==="Null"&&(n[r]=null)}),n},fee=["disabled","placeholder"],_ee=Te({__name:"component",props:{data:null,hasError:{type:Boolean},response:null},emits:["change","enter","setInitialValue"],setup(e,{emit:t}){const n=e,r="00.000.000/0000-00";n.response.setValidation(o=>{var c;const l=[];return o&&!fS(o)&&l.push((c=n.data.invalidMessage)!=null?c:""),l});const i=(o,l=!0)=>{o!=u.value.value&&(u.value.value=o),o!=n.response.value&&n.response.setValue(o),console.log(l),l&&t("change",n.response)},a=ke(!1),d=o=>{const l=Bs(r,o),c=Mp(r,o)&&fS(o);a.value=!c,i(l,c)},s=o=>{const l=o.target;Mp(r,l.value)&&fS(l.value)&&o.preventDefault()},u=ke();return it(()=>{var o,l;i((l=(o=n.response.value)!=null?o:n.data.initialValue)!=null?l:"",!1),t("setInitialValue",n.response),Cr.addInput(u.value)}),ze(()=>n.response.value,o=>i(o!=null?o:"",!1)),(o,l)=>(Se(),Re(Xe,null,[N(mn,{label:e.data.label,required:!!e.data.required},null,8,["label","required"]),He("input",{ref_key:"input",ref:u,class:ct(["input",(e.hasError||a.value)&&"error",e.data.disabled&&"disabled"]),disabled:e.data.disabled,placeholder:e.data.placeholder,onInput:l[0]||(l[0]=c=>d(c.target.value)),onKeypress:l[1]||(l[1]=c=>s(c))},null,42,fee)],64))}}),mee=Te({__name:"component",props:{data:null,hasError:{type:Boolean},response:null},emits:["change","setInitialValue"],setup(e,{emit:t}){const n=e,r=(s,u=!0)=>{s!==n.response.value&&(n.response.setValue(s),u&&t("change",n.response))},i=ke();let a=null;const d=async(s,u,o)=>{const c=(await bM(()=>import("./editor.main.2331c6e5.js").then(p=>p.e),["assets/editor.main.2331c6e5.js","assets/editor.30d77c87.css"])).editor.create(s,{language:o,value:u,minimap:{enabled:!1},readOnly:n.data.disabled,contextmenu:!0,automaticLayout:!0,tabSize:4,renderWhitespace:"none",guides:{indentation:!1},theme:"vs",fontFamily:"monospace",lineNumbers:"on",scrollBeyondLastColumn:5,scrollBeyondLastLine:!0,renderLineHighlight:"all",scrollbar:{alwaysConsumeMouseWheel:!1}});c.onDidChangeModelContent(()=>{r(String(c.getValue()))}),a=c};return it(()=>{var s;n.data.initialValue&&!n.response.value&&n.response.setValue(n.data.initialValue),t("setInitialValue",n.response),d(i.value,(s=n.response.value)!=null?s:"",n.data.language),Cr.addInput(i.value,!0)}),ze(()=>n.response.value,(s,u)=>{u!=s&&(a==null?void 0:a.getValue())!==s&&(a==null||a.setValue(s!=null?s:""))}),(s,u)=>(Se(),Re(Xe,null,[N(mn,{label:e.data.label,required:!!e.data.required},null,8,["label","required"]),He("div",{ref_key:"editor",ref:i,class:"input code-editor",style:{height:"500px"}},null,512)],64))}});const gee=Qt(mee,[["__scopeId","data-v-1c95e27e"]]),hee={class:"cpf-input"},bee=["disabled","placeholder"],See=Te({__name:"component",props:{data:null,hasError:{type:Boolean},response:null},emits:["change","enter","setInitialValue"],setup(e,{emit:t}){const n=e,r="000.000.000-00";n.response.setValidation(o=>{var c;const l=[];return o&&!pS(o)&&l.push((c=n.data.invalidMessage)!=null?c:""),l});const i=(o,l=!0)=>{o!=u.value.value&&(u.value.value=o),o!=n.response.value&&n.response.setValue(o),l&&t("change",n.response)},a=ke(!1),d=o=>{const l=Bs(r,o),c=Mp(r,o)&&pS(o);a.value=!c,i(l,c)},s=o=>{const l=o.target;Mp(r,l.value)&&pS(l.value)&&o.preventDefault()},u=ke();return it(()=>{var o,l;i((l=(o=n.response.value)!=null?o:n.data.initialValue)!=null?l:"",!1),t("setInitialValue",n.response),Cr.addInput(u.value)}),ze(()=>n.response.value,o=>i(o!=null?o:"",!1)),(o,l)=>(Se(),Re("div",hee,[N(mn,{label:e.data.label,required:!!e.data.required},null,8,["label","required"]),He("input",{ref_key:"input",ref:u,class:ct(["input",(e.hasError||a.value)&&"error",e.data.disabled&&"disabled"]),disabled:e.data.disabled,placeholder:e.data.placeholder,onInput:l[0]||(l[0]=c=>d(c.target.value)),onKeypress:l[1]||(l[1]=c=>s(c))},null,42,bee)]))}}),vee={class:"currency-input"},Eee={class:"input-wrapper"},yee=["disabled","placeholder","step"],Cee=Te({__name:"component",props:{data:null,hasError:{type:Boolean},response:null},emits:["change","setInitialValue"],setup(e,{emit:t}){const n=e,r=ke(!1);n.response.setValidation(l=>{const c=[];return n.data.min&&l&&ln.data.max&&c.push(`The maximum value allowed is ${n.data.max}`),c});const i=Intl.NumberFormat("en-US",{maximumFractionDigits:0,currency:n.data.currency,style:"currency",currencyDisplay:"symbol"}).format(0),a=i.replace("0",""),d=i.length*15+"px",s=(l,c=!0)=>{const p=String(l),f=Number(l);p!=o.value.value&&(o.value.value=p),f!=n.response.value&&n.response.setValue(f),c&&t("change",n.response)},u=l=>{n.response.clearErrors(),s(l)},o=ke();return it(()=>{var l,c;s((c=(l=n.response.value)!=null?l:n.data.initialValue)!=null?c:"",!1),t("setInitialValue",n.response),Cr.addInput(o.value)}),ze(()=>n.response.value,l=>s(l!=null?l:"",!1)),(l,c)=>(Se(),Re("div",vee,[N(mn,{label:e.data.label,required:!!e.data.required},null,8,["label","required"]),He("div",Eee,[He("div",{class:ct(["symbol",{focused:r.value}])},pt(Ve(a)),3),He("input",{ref_key:"input",ref:o,style:Zn({paddingLeft:d}),class:ct(["input",e.hasError&&"error",e.data.disabled&&"disabled"]),disabled:e.data.disabled,type:"number",placeholder:e.data.placeholder,step:e.data.step,onInput:c[0]||(c[0]=p=>u(p.target.value))},null,46,yee)])]))}});const Tee=Qt(Cee,[["__scopeId","data-v-623617b6"]]),Oee={class:"custom-input",style:{height:"100%",width:"100%"}},wee=["id","src"],Ree=Te({__name:"component",props:{data:null,hasError:{type:Boolean},response:null},emits:["change","custom-event","setInitialValue"],setup(e,{emit:t}){const n=e,r=ke(),i=Math.random().toString(36).slice(2),a=ke("");let d="";const s=(c,p=!0)=>{c!=n.response.value&&(d=c,n.response.setValue(c)),p&&t("change",n.response)},u=c=>typeof c=="object"&&c!==null&&"type"in c&&"id"in c&&c.id===i,o=c=>{!u(c.data)||(c.data.type==="change"?s(c.data.payload):t(c.data.type,c.data.payload))};it(()=>{var c,p;s((p=(c=n.response.value)!=null?c:n.data.initialValue)!=null?p:"",!1),t("setInitialValue",n.response),window.addEventListener("message",o),l()}),tn(()=>{window.removeEventListener("message",o)}),ze(()=>n.response.value,(c,p)=>{jt.exports.isEqual(c,p)||d&&jt.exports.isEqual(d,c)||l()}),ze(()=>n.data.initialValue,(c,p)=>{jt.exports.isEqual(c,p)||l()}),ze(()=>`${n.data.htmlHead}${n.data.htmlBody}${n.data.css}${n.data.js}`,()=>l());const l=()=>{var b,v;const c="script",p=(v=(b=n.response.value)!=null?b:n.data.initialValue)!=null?v:"",{htmlHead:f,htmlBody:m,css:g,js:h}=n.data;a.value=window.btoa(` @@ -675,5 +675,5 @@ summary tabindex target title type usemap value width wmode wrap`,Ype=`onCopy on &${t}-row:hover > td, > td${t}-cell-row-hover, &${t}-row${t}-row-selected > td - `]:{borderTopColor:"transparent","&:first-child":{borderStartStartRadius:l,borderEndStartRadius:l},"&:last-child":{borderStartEndRadius:l,borderEndEndRadius:l}}},[`${t}-footer`]:{padding:`${r}px ${i}px`,color:v,background:E}})}},Oye=Or("Table",e=>{const{controlItemBgActive:t,controlItemBgActiveHover:n,colorTextPlaceholder:r,colorTextHeading:i,colorSplit:a,colorBorderSecondary:d,fontSize:s,padding:u,paddingXS:o,paddingSM:l,controlHeight:c,colorFillAlter:p,colorIcon:f,colorIconHover:m,opacityLoading:g,colorBgContainer:h,borderRadiusLG:b,colorFillContent:v,colorFillSecondary:E,controlInteractiveSize:y}=e,T=new Kn(f),O=new Kn(m),C=t,R=2,x=new Kn(E).onBackground(h).toHexString(),I=new Kn(v).onBackground(h).toHexString(),k=new Kn(p).onBackground(h).toHexString(),L=_n(e,{tableFontSize:s,tableBg:h,tableRadius:b,tablePaddingVertical:u,tablePaddingHorizontal:u,tablePaddingVerticalMiddle:l,tablePaddingHorizontalMiddle:o,tablePaddingVerticalSmall:o,tablePaddingHorizontalSmall:o,tableBorderColor:d,tableHeaderTextColor:i,tableHeaderBg:k,tableFooterTextColor:i,tableFooterBg:k,tableHeaderCellSplitColor:d,tableHeaderSortBg:x,tableHeaderSortHoverBg:I,tableHeaderIconColor:T.clone().setAlpha(T.getAlpha()*g).toRgbString(),tableHeaderIconColorHover:O.clone().setAlpha(O.getAlpha()*g).toRgbString(),tableBodySortBg:k,tableFixedHeaderSortActiveBg:x,tableHeaderFilterActiveBg:v,tableFilterDropdownBg:h,tableRowHoverBg:k,tableSelectedRowBg:C,tableSelectedRowHoverBg:n,zIndexTableFixed:R,zIndexTableSticky:R+1,tableFontSizeMiddle:s,tableFontSizeSmall:s,tableSelectionColumnWidth:c,tableExpandIconBg:h,tableExpandColumnWidth:y+2*e.padding,tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:r,tableScrollThumbBgHover:i,tableScrollBg:a});return[Tye(L),lye(L),HD(L),vye(L),iye(L),QEe(L),uye(L),nye(L),HD(L),eye(L),_ye(L),aye(L),yye(L),ZEe(L),gye(L),bye(L),pye(L)]}),wye=[],qB=()=>({prefixCls:rr(),columns:Nr(),rowKey:Xr([String,Function]),tableLayout:rr(),rowClassName:Xr([String,Function]),title:Bt(),footer:Bt(),id:rr(),showHeader:Ct(),components:an(),customRow:Bt(),customHeaderRow:Bt(),direction:rr(),expandFixed:Xr([Boolean,String]),expandColumnWidth:Number,expandedRowKeys:Nr(),defaultExpandedRowKeys:Nr(),expandedRowRender:Bt(),expandRowByClick:Ct(),expandIcon:Bt(),onExpand:Bt(),onExpandedRowsChange:Bt(),"onUpdate:expandedRowKeys":Bt(),defaultExpandAllRows:Ct(),indentSize:Number,expandIconColumnIndex:Number,showExpandColumn:Ct(),expandedRowClassName:Bt(),childrenColumnName:rr(),rowExpandable:Bt(),sticky:Xr([Boolean,Object]),dropdownPrefixCls:String,dataSource:Nr(),pagination:Xr([Boolean,Object]),loading:Xr([Boolean,Object]),size:rr(),bordered:Ct(),locale:an(),onChange:Bt(),onResizeColumn:Bt(),rowSelection:an(),getPopupContainer:Bt(),scroll:an(),sortDirections:Nr(),showSorterTooltip:Xr([Boolean,Object],!0),transformCellText:Bt()}),Rye=Te({name:"InteralTable",inheritAttrs:!1,props:Vr(M(M({},qB()),{contextSlots:an()}),{rowKey:"key"}),setup(e,t){let{attrs:n,slots:r,expose:i,emit:a}=t;Yr(!(typeof e.rowKey=="function"&&e.rowKey.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected."),hve(B(()=>e.contextSlots)),bve({onResizeColumn:(ae,be)=>{a("resizeColumn",ae,be)}});const d=Q$(),s=B(()=>{const ae=new Set(Object.keys(d.value).filter(be=>d.value[be]));return e.columns.filter(be=>!be.responsive||be.responsive.some(ve=>ae.has(ve)))}),{size:u,renderEmpty:o,direction:l,prefixCls:c,configProvider:p}=dn("table",e),[f,m]=Oye(c),g=B(()=>{var ae;return e.transformCellText||((ae=p.transformCellText)===null||ae===void 0?void 0:ae.value)}),[h]=NC("Table",Ws.Table,cn(e,"locale")),b=B(()=>e.dataSource||wye),v=B(()=>p.getPrefixCls("dropdown",e.dropdownPrefixCls)),E=B(()=>e.childrenColumnName||"children"),y=B(()=>b.value.some(ae=>ae==null?void 0:ae[E.value])?"nest":e.expandedRowRender?"row":null),T=Kt({body:null}),O=ae=>{M(T,ae)},C=B(()=>typeof e.rowKey=="function"?e.rowKey:ae=>ae==null?void 0:ae[e.rowKey]),[R]=uEe(b,E,C),x={},I=function(ae,be){let ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{pagination:ge,scroll:ce,onChange:ee}=e,Ne=M(M({},x),ae);ve&&(x.resetPagination(),Ne.pagination.current&&(Ne.pagination.current=1),ge&&ge.onChange&&ge.onChange(1,Ne.pagination.pageSize)),ce&&ce.scrollToFirstRowOnChange!==!1&&T.body&&Ole(0,{getContainer:()=>T.body}),ee==null||ee(Ne.pagination,Ne.filters,Ne.sorter,{currentDataSource:GD(vy(b.value,Ne.sorterStates,E.value),Ne.filterStates),action:be})},k=(ae,be)=>{I({sorter:ae,sorterStates:be},"sort",!1)},[L,A,D,$]=mEe({prefixCls:c,mergedColumns:s,onSorterChange:k,sortDirections:B(()=>e.sortDirections||["ascend","descend"]),tableLocale:h,showSorterTooltip:cn(e,"showSorterTooltip")}),F=B(()=>vy(b.value,A.value,E.value)),z=(ae,be)=>{I({filters:ae,filterStates:be},"filter",!0)},[H,V,W]=VEe({prefixCls:c,locale:h,dropdownPrefixCls:v,mergedColumns:s,onFilterChange:z,getPopupContainer:cn(e,"getPopupContainer")}),te=B(()=>GD(F.value,V.value)),[X]=WEe(cn(e,"contextSlots")),ne=B(()=>{const ae={},be=W.value;return Object.keys(be).forEach(ve=>{be[ve]!==null&&(ae[ve]=be[ve])}),M(M({},D.value),{filters:ae})}),[oe]=qEe(ne),Q=(ae,be)=>{I({pagination:M(M({},x.pagination),{current:ae,pageSize:be})},"paginate")},[Z,q]=cEe(B(()=>te.value.length),cn(e,"pagination"),Q);Ht(()=>{x.sorter=$.value,x.sorterStates=A.value,x.filters=W.value,x.filterStates=V.value,x.pagination=e.pagination===!1?{}:lEe(Z.value,e.pagination),x.resetPagination=q});const se=B(()=>{if(e.pagination===!1||!Z.value.pageSize)return te.value;const{current:ae=1,total:be,pageSize:ve=my}=Z.value;return Yr(ae>0,"Table","`current` should be positive number."),te.value.lengthve?te.value.slice((ae-1)*ve,ae*ve):te.value:te.value.slice((ae-1)*ve,ae*ve)});Ht(()=>{en(()=>{const{total:ae,pageSize:be=my}=Z.value;te.value.lengthbe&&Yr(!1,"Table","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode.")})},{flush:"post"});const re=B(()=>e.showExpandColumn===!1?-1:y.value==="nest"&&e.expandIconColumnIndex===void 0?e.rowSelection?1:0:e.expandIconColumnIndex>0&&e.rowSelection?e.expandIconColumnIndex-1:e.expandIconColumnIndex),_e=ke();ze(()=>e.rowSelection,()=>{_e.value=e.rowSelection?M({},e.rowSelection):e.rowSelection},{deep:!0,immediate:!0});const[me,U]=pEe(_e,{prefixCls:c,data:te,pageData:se,getRowKey:C,getRecordByKey:R,expandType:y,childrenColumnName:E,locale:h,getPopupContainer:B(()=>e.getPopupContainer)}),j=(ae,be,ve)=>{let ge;const{rowClassName:ce}=e;return typeof ce=="function"?ge=Ue(ce(ae,be,ve)):ge=Ue(ce),Ue({[`${c.value}-row-selected`]:U.value.has(C.value(ae,be))},ge)};i({selectedKeySet:U});const J=B(()=>typeof e.indentSize=="number"?e.indentSize:15),pe=ae=>oe(me(H(L(X(ae)))));return()=>{var ae;const{expandIcon:be=r.expandIcon||jEe(h.value),pagination:ve,loading:ge,bordered:ce}=e;let ee,Ne;if(ve!==!1&&((ae=Z.value)===null||ae===void 0?void 0:ae.total)){let ie;Z.value.size?ie=Z.value.size:ie=u.value==="small"||u.value==="middle"?"small":void 0;const Ee=Ke=>N(rve,he(he({},Z.value),{},{class:[`${c.value}-pagination ${c.value}-pagination-${Ke}`,Z.value.class],size:ie}),null),Le=l.value==="rtl"?"left":"right",{position:We}=Z.value;if(We!==null&&Array.isArray(We)){const Ke=We.find(Pe=>Pe.includes("top")),xe=We.find(Pe=>Pe.includes("bottom")),Me=We.every(Pe=>`${Pe}`=="none");!Ke&&!xe&&!Me&&(Ne=Ee(Le)),Ke&&(ee=Ee(Ke.toLowerCase().replace("top",""))),xe&&(Ne=Ee(xe.toLowerCase().replace("bottom","")))}else Ne=Ee(Le)}let Oe;typeof ge=="boolean"?Oe={spinning:ge}:typeof ge=="object"&&(Oe=M({spinning:!0},ge));const Ae=Ue(`${c.value}-wrapper`,{[`${c.value}-wrapper-rtl`]:l.value==="rtl"},n.class,m.value),ue=dr(e,["columns"]);return f(N("div",{class:Ae,style:n.style},[N(fp,he({spinning:!1},Oe),{default:()=>[ee,N(aEe,he(he(he({},n),ue),{},{expandedRowKeys:e.expandedRowKeys,defaultExpandedRowKeys:e.defaultExpandedRowKeys,expandIconColumnIndex:re.value,indentSize:J.value,expandIcon:be,columns:s.value,direction:l.value,prefixCls:c.value,class:Ue({[`${c.value}-middle`]:u.value==="middle",[`${c.value}-small`]:u.value==="small",[`${c.value}-bordered`]:ce,[`${c.value}-empty`]:b.value.length===0}),data:se.value,rowKey:C.value,rowClassName:j,internalHooks:_y,internalRefs:T,onUpdateInternalRefs:O,transformColumns:pe,transformCellText:g.value}),M(M({},r),{emptyText:()=>{var ie,Ee;return((ie=r.emptyText)===null||ie===void 0?void 0:ie.call(r))||((Ee=e.locale)===null||Ee===void 0?void 0:Ee.emptyText)||o("Table")}})),Ne]})]))}}}),xye=Te({name:"ATable",inheritAttrs:!1,props:Vr(qB(),{rowKey:"key"}),slots:Object,setup(e,t){let{attrs:n,slots:r,expose:i}=t;const a=ke();return i({table:a}),()=>{var d;const s=e.columns||$B((d=r.default)===null||d===void 0?void 0:d.call(r));return N(Rye,he(he(he({ref:a},n),e),{},{columns:s||[],expandedRowRender:r.expandedRowRender,contextSlots:M({},r)}),r)}}}),JS=xye,ev=Te({name:"ATableColumn",slots:Object,render(){return null}}),tv=Te({name:"ATableColumnGroup",slots:Object,__ANT_TABLE_COLUMN_GROUP:!0,render(){return null}}),Cy=Wve,Ty=Xve,nv=M(Zve,{Cell:Ty,Row:Cy,name:"ATableSummary"}),Iye=M(JS,{SELECTION_ALL:gy,SELECTION_INVERT:hy,SELECTION_NONE:by,SELECTION_COLUMN:Aa,EXPAND_COLUMN:Rs,Column:ev,ColumnGroup:tv,Summary:nv,install:e=>(e.component(nv.name,nv),e.component(Ty.name,Ty),e.component(Cy.name,Cy),e.component(JS.name,JS),e.component(ev.name,ev),e.component(tv.name,tv),e)}),Nye={style:{padding:"8px"}},Aye=["onclick"],Dye={key:1,class:"buttons"},Mye={key:0},kye=Te({__name:"ATable",props:{data:null,columns:null,enableSearch:{type:Boolean},editable:{type:Boolean},mainColor:null,actions:null,rowsPerPage:null,selectedIndexes:null,selectable:null,selectionDisabled:{type:Boolean}},emits:["rowEdit","actionClick","rowClick","update:selectedIndexes"],setup(e,{emit:t}){const n=e,r=B(()=>{var E;return(E=n.mainColor)!=null?E:"#D14056"}),i=Kt({searchText:"",searchedColumn:""}),a=ke(),d=B(()=>n.rowsPerPage),s=B(()=>n.data.map((y,T)=>({...y,key:T}))),u=B(()=>{const E=n.columns.map((y,T)=>({title:y.title,dataIndex:y.key,key:y.key,customFilterDropdown:!0,sorter:{compare:(O,C)=>typeof O[y.key]=="number"&&typeof C[y.key]=="number"?O[y.key]-C[y.key]:typeof O[y.key]=="string"&&typeof C[y.key]=="string"?O[y.key].localeCompare(C[y.key]):1,multiple:T},onFilter:(O,C)=>C[y.key].toString().toLowerCase().includes(O.toString().toLowerCase()),onFilterDropdownOpenChange:O=>{O&&en().then(()=>{a.value.focus()})}}));if(n.editable||n.actions){const y=n.editable?80:0,T=n.actions?40:0;E.push({title:"",dataIndex:"buttons",width:y+T,fixed:"right",align:"center"})}return E}),o=(E,y,T)=>{y(),i.searchText=E[0],i.searchedColumn=T},l=E=>{E({confirm:!0}),i.searchText=""},c=Kt({}),p=E=>{t("rowClick",{row:E})},f=(E,y)=>{t("actionClick",{action:E,row:y})},m=E=>{c[E.index]={...E}},g=E=>{const y=n.data.filter(T=>T.index===E.index);t("rowEdit",{oldRow:y[0],newRow:c[E.index]}),delete c[E.index]},h=E=>{delete c[E.index]},b=ke([]),v=()=>n.selectable?{type:{multiple:"checkbox",single:"radio"}[n.selectable],selectedRowKeys:Ve(b),onChange:y=>{b.value=y,t("update:selectedIndexes",y)},getCheckboxProps:y=>({disabled:n.selectionDisabled,name:y[n.columns[0].key]})}:void 0;return(E,y)=>(Se(),Vn(Ve(_B),{theme:{token:{colorPrimary:Ve(r)}},class:"ant-table"},{default:kn(()=>[(Se(),Vn(Ve(Iye),{key:Ve(d),"data-source":Ve(s),columns:Ve(u),pagination:{position:["bottomCenter"],defaultPageSize:n.rowsPerPage,showSizeChanger:!n.rowsPerPage},"row-selection":v(),scroll:{x:n.columns.length*200}},Ky({bodyCell:kn(({column:T,text:O,record:C})=>[n.columns.map(R=>R.key).includes(T.dataIndex)?(Se(),Re("div",{key:0,onclick:()=>p(C)},[c[C.index]?(Se(),Vn(Ve(fr),{key:0,value:c[C.index][T.dataIndex],"onUpdate:value":R=>c[C.index][T.dataIndex]=R,style:{margin:"-5px 0"}},null,8,["value","onUpdate:value"])):(Se(),Re(Xe,{key:1},[Pn(pt(O),1)],64))],8,Aye)):T.dataIndex==="buttons"?(Se(),Re("div",Dye,[c[C.index]?(Se(),Vn(Ve(Ar),{key:0,type:"text",onClick:R=>g(C)},{default:kn(()=>[N(Ve(Noe),{"two-tone-color":Ve(r)},null,8,["two-tone-color"])]),_:2},1032,["onClick"])):Lt("",!0),c[C.index]?(Se(),Vn(Ve(fve),{key:1,title:"Sure to cancel?",onConfirm:R=>h(C)},{default:kn(()=>[N(Ve(Ar),{type:"text"},{default:kn(()=>[N(Ve(rie),{"two-tone-color":Ve(r)},null,8,["two-tone-color"])]),_:1})]),_:2},1032,["onConfirm"])):Lt("",!0),n.editable&&!c[C.index]?(Se(),Vn(Ve(Ar),{key:2,type:"text",onClick:R=>m(C)},{default:kn(()=>[N(Ve(Sie),{"two-tone-color":Ve(r)},null,8,["two-tone-color"])]),_:2},1032,["onClick"])):Lt("",!0),n.actions&&!c[C.index]?(Se(),Vn(Ve(Gs),{key:3,trigger:"click"},{overlay:kn(()=>[N(Ve(go),null,{default:kn(()=>[(Se(!0),Re(Xe,null,On(n.actions,R=>(Se(),Vn(Ve(ju),{key:R,type:"text",onClick:x=>f(R,C)},{default:kn(()=>[Pn(pt(R),1)]),_:2},1032,["onClick"]))),128))]),_:2},1024)]),default:kn(()=>[N(Ve(Ar),{type:"text"},{default:kn(()=>[N(Ve(moe),{style:Zn({color:Ve(r)})},null,8,["style"])]),_:1})]),_:2},1024)):Lt("",!0)])):(Se(),Re(Xe,{key:2},[i.searchText&&i.searchedColumn===T.dataIndex?(Se(),Re("span",Mye,[(Se(!0),Re(Xe,null,On(O.toString().split(new RegExp(`(?<=${i.searchText})|(?=${i.searchText})`,"i")),(R,x)=>(Se(),Re(Xe,null,[R.toLowerCase()===i.searchText.toLowerCase()?(Se(),Re("mark",{key:x,class:"highlight"},pt(R),1)):(Se(),Re(Xe,{key:1},[Pn(pt(R),1)],64))],64))),256))])):Lt("",!0)],64))]),_:2},[n.enableSearch?{name:"customFilterDropdown",fn:kn(({setSelectedKeys:T,selectedKeys:O,confirm:C,clearFilters:R,column:x})=>[He("div",Nye,[N(Ve(fr),{ref_key:"searchInput",ref:a,placeholder:`Search ${x.dataIndex}`,value:O[0],style:{width:"188px","margin-bottom":"8px",display:"block"},onChange:I=>T(I.target.value?[I.target.value]:[]),onPressEnter:I=>o(O,C,x.dataIndex)},null,8,["placeholder","value","onChange","onPressEnter"]),N(Ve(Ar),{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:I=>o(O,C,x.dataIndex)},{icon:kn(()=>[N(Ve(kp))]),default:kn(()=>[Pn(" Search ")]),_:2},1032,["onClick"]),N(Ve(Ar),{size:"small",style:{width:"90px"},onClick:I=>l(R)},{default:kn(()=>[Pn(" Reset ")]),_:2},1032,["onClick"])])]),key:"0"}:void 0,n.enableSearch?{name:"customFilterIcon",fn:kn(({filtered:T})=>[N(Ve(kp),{style:Zn({color:T?"#108ee9":void 0})},null,8,["style"])]),key:"1"}:void 0]),1032,["data-source","columns","pagination","row-selection","scroll"]))]),_:1},8,["theme"]))}});const jB=Qt(kye,[["__scopeId","data-v-72b2e327"]]),Pye=["height","width"],Lye=Te({__name:"component",props:{data:null,hasError:{type:Boolean},runtime:null,containerHeight:null,containerWidth:null,zoom:null,response:null},emits:["change"],setup(e,{emit:t}){const n=e,r=55+32,i=68,a=10;ze(n.data.table.data,()=>{});const d=B(()=>n.runtime==="dash"),s=ke([]),u=m=>m==null?[]:jt.exports.isArray(m)?m:[m],o=B(()=>(n.data.displayIndex?n.data.table.schema.fields:n.data.table.schema.fields.filter(m=>m.name!="index")).map(m=>({...m,title:m.name.toString(),key:m.name.toString()}))),l=ke([]),c=m=>{const g=u(m),h=n.data.multiple?g:g[0]||null;jt.exports.isEqual(h,l.value)||(l.value=h),jt.exports.isEqual(h,n.response.value)||(n.response.setValue(h),t("change",n.response))};ze(()=>n.response.value,()=>c(n.response.value)),ze(()=>s.value,()=>{c(n.data.table.data.filter(m=>s.value.includes(m.index)))});const p=B(()=>!d.value||typeof n.containerHeight!="number"?a:Math.trunc((n.containerHeight-r)/i)),f=ke(null);return it(()=>c(n.response.value)),(m,g)=>(Se(),Re("div",{height:e.containerHeight,width:e.containerWidth},[N(mn,{ref_key:"label",ref:f,label:n.data.label,required:!1},null,8,["label"]),N(jB,{data:e.data.table.data,"onUpdate:data":g[0]||(g[0]=h=>e.data.table.data=h),"selected-indexes":s.value,"onUpdate:selectedIndexes":g[1]||(g[1]=h=>s.value=h),columns:Ve(o),"rows-per-page":Ve(p),"enable-search":"",selectable:e.data.multiple?"multiple":"single","selection-disabled":n.data.disabled},null,8,["data","selected-indexes","columns","rows-per-page","selectable","selection-disabled"])],8,Pye))}}),$ye={class:"password-input"},Fye=["pattern","required","disabled","placeholder"],Bye=["required","placeholder"],Uye=Te({__name:"component",props:{data:null,hasError:{type:Boolean},response:null},emits:["change","enter","setInitialValue"],setup(e,{emit:t}){const n=e,r=(u,o=!0)=>{u=String(u).trim(),u!=s.value.value&&(s.value.value=u),u!=n.response.value&&n.response.setValue(u),o&&t("change",n.response)},i=B(()=>n.data.pattern?n.data.pattern:[()=>{const m=n.data.lowercaseRequired;let g="";return m&&(g+="(?=.*[a-z])"),g},()=>{const m=n.data.uppercaseRequired;let g="";return m&&(g+="(?=.*[A-Z])"),g},()=>{const m=n.data.digitRequired;let g="";return m&&(g+="(?=.*\\d)"),g},()=>{const m=n.data.specialRequired;let g="";return m&&(g+="(?=.*[!?@#$\\-%^&+=])"),g},()=>{var v,E,y;const m=(v=n.data.minLength)!=null?v:null,g=(E=n.data.maxLength)!=null?E:null,h=(y=n.data.size)!=null?y:null;let b="";return h?b+=`(.{${h},${h}})`:m&&g?b+=`(.{${m},${g}})`:m?b+=`(.{${m},})`:g&&(b+=`(.{,${g}})`),b}].reduce((m,g)=>m+g(),"")||null),a=u=>[()=>n.data.digitRequired&&!/[0-9]/.test(u)?"Your password must have at least one digit between 0 and 9":null,()=>{const m=/[a-z]/g;return n.data.lowercaseRequired&&!m.test(u)?"Your password must have at least one lowercase letter":null},()=>{var v,E,y;const m=(v=n.data.minLength)!=null?v:null,g=(E=n.data.maxLength)!=null?E:null,h=(y=n.data.size)!=null?y:null,b=u.length;return h&&b!==h?`Your password must have ${h} characters`:m&&g&&(bg)?`Your password must have between ${m} and ${g} characters`:m&&bg?`Your password must have at most ${g} characters`:null},()=>n.data.specialRequired&&!/[!?@#$\-%^&+=]/g.test(u)?"Your password must have at least one special character":null,()=>{const m=/[A-Z]/g;return n.data.uppercaseRequired&&!m.test(u)?"Your password must have at leat one uppercase letter":null}].reduce((m,g)=>{const h=g();return h&&m.push(h),m},[]),d=u=>{n.response.clearErrors(),r(u)},s=ke();return it(()=>{var u;r((u=n.response.value)!=null?u:"",!1),en().then(()=>Cr.addInput(s.value)),n.response.setValidation(()=>{var o,l,c;return(o=s.value)!=null&&o.checkValidity()?[]:a((c=(l=s.value)==null?void 0:l.value)!=null?c:"")})}),ze(()=>n.response.value,u=>r(u!=null?u:"",!1)),(u,o)=>(Se(),Re("div",$ye,[N(mn,{label:e.data.label,required:!!e.data.required},null,8,["label","required"]),Ve(i)?(Se(),Re("input",{key:0,ref_key:"input",ref:s,type:"password",pattern:Ve(i),required:!!e.data.required,class:ct(["input",e.hasError&&"error",e.data.disabled&&"disabled"]),disabled:e.data.disabled,placeholder:e.data.placeholder,onInput:o[0]||(o[0]=l=>d(l.target.value))},null,42,Fye)):(Se(),Re("input",{key:1,ref_key:"input",ref:s,type:"password",required:!!e.data.required,class:ct(["input",e.hasError&&"error"]),placeholder:e.data.placeholder,onInput:o[1]||(o[1]=l=>d(l.target.value))},null,42,Bye))]))}}),rv=[{code:"+93",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+355",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+213",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+376",placeholder:"000-000",mask:"000-000"},{code:"+244",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+1",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"+54",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"+374",placeholder:"00-000-000",mask:"00-000-000"},{code:"+297",placeholder:"000-0000",mask:"000-0000"},{code:"+61",placeholder:"0-0000-0000",mask:"0-0000-0000"},{code:"+43",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"+994",placeholder:"00-000-00-00",mask:"00-000-00-00"},{code:"+973",placeholder:"0000-0000",mask:"0000-0000"},{code:"+880",placeholder:"1000-000000",mask:"1000-000000"},{code:"+375",placeholder:"(00)000-00-00",mask:"(00)000-00-00"},{code:"+32",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+501",placeholder:"000-0000",mask:"000-0000"},{code:"+229",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"+975",placeholder:"17-000-000",mask:"17-000-000|0-000-000"},{code:"+591",placeholder:"0-000-0000",mask:"0-000-0000"},{code:"+387",placeholder:"00-0000",mask:"00-0000|00-00000"},{code:"+267",placeholder:"00-000-000",mask:"00-000-000"},{code:"+55",placeholder:"(00)0000-0000",mask:"(00)0000-0000|(00)00000-0000"},{code:"+673",placeholder:"000-0000",mask:"000-0000"},{code:"+359",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+226",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"+257",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"+855",placeholder:"00-000-000",mask:"00-000-000"},{code:"+237",placeholder:"0000-0000",mask:"0000-0000"},{code:"+238",placeholder:"(000)00-00",mask:"(000)00-00"},{code:"+236",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"+235",placeholder:"00-00-00-00",mask:"00-00-00-00"},{code:"+56",placeholder:"0-0000-0000",mask:"0-0000-0000"},{code:"+86",placeholder:"(000)0000-000",mask:"(000)0000-000|(000)0000-0000|00-00000-00000"},{code:"+57",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"+269",placeholder:"00-00000",mask:"00-00000"},{code:"+242",placeholder:"00-00000",mask:"00-00000"},{code:"+506",placeholder:"0000-0000",mask:"0000-0000"},{code:"+385",placeholder:"00-000-000",mask:"00-000-000"},{code:"+53",placeholder:"0-000-0000",mask:"0-000-0000"},{code:"+357",placeholder:"00-000-000",mask:"00-000-000"},{code:"+420",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+243",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+45",placeholder:"00-00-00-00",mask:"00-00-00-00"},{code:"+253",placeholder:"00-00-00-00",mask:"00-00-00-00"},{code:"+593",placeholder:"0-000-0000",mask:"0-000-0000|00-000-0000"},{code:"+20",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"+503",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"+240",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+291",placeholder:"0-000-000",mask:"0-000-000"},{code:"+372",placeholder:"000-0000",mask:"000-0000|0000-0000"},{code:"+268",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"+251",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+679",placeholder:"00-00000",mask:"00-00000"},{code:"+358",placeholder:"(000)000-00-00",mask:"(000)000-00-00"},{code:"+33",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+241",placeholder:"0-00-00-00",mask:"0-00-00-00"},{code:"+220",placeholder:"(000)00-00",mask:"(000)00-00"},{code:"+995",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+49",placeholder:"000-000",mask:"000-000|(000)00-00|(000)00-000|(000)00-0000|(000)000-0000|(0000)000-0000"},{code:"+233",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+30",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"+502",placeholder:"0-000-0000",mask:"0-000-0000"},{code:"+224",placeholder:"00-000-000",mask:"00-000-000|00-000-0000"},{code:"+245",placeholder:"0-000000",mask:"0-000000"},{code:"+592",placeholder:"000-0000",mask:"000-0000"},{code:"+509",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"+504",placeholder:"0000-0000",mask:"0000-0000"},{code:"+852",placeholder:"0000-0000",mask:"0000-0000"},{code:"+36",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+354",placeholder:"000-0000",mask:"000-0000"},{code:"+91",placeholder:"(0000)000-000",mask:"(0000)000-000"},{code:"+62",placeholder:"00-000-00",mask:"00-000-00|00-000-000|00-000-0000|(800)000-000|(800)000-00-000"},{code:"+98",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"+924",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"+353",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+972",placeholder:"0-000-0000",mask:"0-000-0000|50-000-0000"},{code:"+39",placeholder:"(000)0000-000",mask:"(000)0000-000"},{code:"+225",placeholder:"00-000-000",mask:"00-000-000"},{code:"+81",placeholder:"(000)000-000",mask:"(000)000-000|00-0000-0000"},{code:"+962",placeholder:"0-0000-0000",mask:"0-0000-0000"},{code:"+77",placeholder:"(600)000-00-00",mask:"(600)000-00-00|(700)000-00-00"},{code:"+254",placeholder:"000-000000",mask:"000-000000"},{code:"+850",placeholder:"000-000",mask:"000-000|0000-0000|00-000-000|000-0000-000|191-000-0000|0000-0000000000000"},{code:"+82",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+965",placeholder:"0000-0000",mask:"0000-0000"},{code:"+996",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+856",placeholder:"00-000-000",mask:"00-000-000|(2000)000-000"},{code:"+371",placeholder:"00-000-000",mask:"00-000-000"},{code:"+961",placeholder:"0-000-000",mask:"0-000-000|00-000-000"},{code:"+266",placeholder:"0-000-0000",mask:"0-000-0000"},{code:"+231",placeholder:"00-000-000",mask:"00-000-000"},{code:"+218",placeholder:"00-000-000",mask:"00-000-000|21-000-0000"},{code:"+423",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"+370",placeholder:"(000)00-000",mask:"(000)00-000"},{code:"+352",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+261",placeholder:"00-00-00000",mask:"00-00-00000"},{code:"+265",placeholder:"1-000-000",mask:"1-000-000|0-0000-0000"},{code:"+60",placeholder:"0-000-000",mask:"0-000-000|00-000-000|(000)000-000|00-000-0000"},{code:"+960",placeholder:"000-0000",mask:"000-0000"},{code:"+223",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"+356",placeholder:"0000-0000",mask:"0000-0000"},{code:"+596",placeholder:"(000)00-00-00",mask:"(000)00-00-00"},{code:"+222",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"+230",placeholder:"000-0000",mask:"000-0000"},{code:"+52",placeholder:"00-00-0000",mask:"00-00-0000|(000)000-0000"},{code:"+691",placeholder:"000-0000",mask:"000-0000"},{code:"+373",placeholder:"0000-0000",mask:"0000-0000"},{code:"+377",placeholder:"00-000-000",mask:"00-000-000|(000)000-000"},{code:"+976",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"+382",placeholder:"00-000-000",mask:"00-000-000"},{code:"+212",placeholder:"00-0000-000",mask:"00-0000-000"},{code:"+258",placeholder:"00-000-000",mask:"00-000-000"},{code:"+95",placeholder:"000-000",mask:"000-000|0-000-000|00-000-000"},{code:"+674",placeholder:"000-0000",mask:"000-0000"},{code:"+977",placeholder:"00-000-000",mask:"00-000-000"},{code:"+31",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+24",placeholder:"0-000-000",mask:"0-000-000|(000)000-000|(000)000-0000"},{code:"+505",placeholder:"0000-0000",mask:"0000-0000"},{code:"+227",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"+234",placeholder:"00-000-00",mask:"00-000-00|00-000-000|(000)000-0000"},{code:"+389",placeholder:"00-000-000",mask:"00-000-000"},{code:"+47",placeholder:"(000)00-000",mask:"(000)00-000"},{code:"+968",placeholder:"00-000-000",mask:"00-000-000"},{code:"+92",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"+680",placeholder:"000-0000",mask:"000-0000"},{code:"+970",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+507",placeholder:"000-0000",mask:"000-0000"},{code:"+675",placeholder:"(000)00-000",mask:"(000)00-000"},{code:"+595",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+51",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+63",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"+48",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+351",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+974",placeholder:"0000-0000",mask:"0000-0000"},{code:"+40",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+7",placeholder:"(000)000-00-00",mask:"(000)000-00-00"},{code:"+250",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+685",placeholder:"00-0000",mask:"00-0000"},{code:"+378",placeholder:"0000-000000",mask:"0000-000000"},{code:"+239",placeholder:"00-00000",mask:"00-00000"},{code:"+966",placeholder:"0-000-0000",mask:"0-000-0000|50-0000-0000"},{code:"+221",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+381",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+248",placeholder:"0-000-000",mask:"0-000-000"},{code:"+232",placeholder:"00-000000",mask:"00-000000"},{code:"+65",placeholder:"0000-0000",mask:"0000-0000"},{code:"+421",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+386",placeholder:"00-000-000",mask:"00-000-000"},{code:"+677",placeholder:"00000",mask:"00000|000-0000"},{code:"+252",placeholder:"0-000-000",mask:"0-000-000|00-000-000"},{code:"+27",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+211",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+34",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+94",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+249",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+597",placeholder:"000-000",mask:"000-000|000-0000"},{code:"+46",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+41",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+963",placeholder:"00-0000-000",mask:"00-0000-000"},{code:"+992",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+255",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+66",placeholder:"00-000-000",mask:"00-000-000|00-000-0000"},{code:"+670",placeholder:"000-0000",mask:"000-0000|770-00000|780-00000"},{code:"+228",placeholder:"00-000-000",mask:"00-000-000"},{code:"+676",placeholder:"00000",mask:"00000"},{code:"+216",placeholder:"00-000-000",mask:"00-000-000"},{code:"+90",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"+993",placeholder:"0-000-0000",mask:"0-000-0000"},{code:"+256",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+380",placeholder:"(00)000-00-00",mask:"(00)000-00-00"},{code:"+971",placeholder:"0-000-0000",mask:"0-000-0000|50-000-0000"},{code:"+44",placeholder:"00-0000-0000",mask:"00-0000-0000"},{code:"+598",placeholder:"0-000-00-00",mask:"0-000-00-00"},{code:"+998",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+678",placeholder:"00000",mask:"00000|00-00000"},{code:"+58",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"+84",placeholder:"00-0000-000",mask:"00-0000-000|(000)0000-000"},{code:"+967",placeholder:"0-000-000",mask:"0-000-000|00-000-000|000-000-000"},{code:"+260",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+263",placeholder:"",mask:""}],Gye={class:"phone-input"},Hye={class:"flex"},zye=["disabled","placeholder"],Yye=Te({__name:"component",props:{data:null,hasError:{type:Boolean},response:null},emits:["change","setInitialValue"],setup(e,{emit:t}){const n=e,r=ke(Math.random().toString(36).substr(2,9)),i=B(()=>{var b;return n.data.placeholder||((b=u.value)==null?void 0:b.placeholder)||""}),a=ke(rv),d=b=>{a.value=rv.filter(v=>v.code.toString().includes(b.query))},s=ke(""),u=ke(null),o=b=>{var v;s.value=u.value?Bs(((v=u.value)==null?void 0:v.mask)||"",b.target.value):b.target.value},l=()=>{var b;s.value=Bs(((b=u.value)==null?void 0:b.mask)||"",s.value),u.value&&m({countryCode:u.value.code,nationalNumber:s.value})},c=(b,v)=>({masked:`${b?b.code:""} ${v}`,raw:parseInt(`${b?b.code:""} ${v}`.replace(/\D/g,"")),countryCode:(b==null?void 0:b.code)||"",nationalNumber:v.replace(/\D/g,"")}),p=b=>{if(!!b){if(typeof b!="string"&&typeof b!="number")throw new Error("Invalid selectedOption code format");if(typeof b=="number"&&(b=b.toString()),b=b.trim(),b.startsWith("+")&&(b=b.slice(1)),uee(b))throw new Error("Invalid selectedOption code format");return`+${b}`}},f=b=>{if(!b)return null;if(typeof b=="number")return b.toString();if(typeof b=="string")return MP(b);throw new Error("Invalid national number format. It must contain only digit characters")},m=(b,v=!0)=>{var T;if(!b){s.value="",u.value=null;return}const E=rv.filter(O=>O.code===p(b.countryCode));if(!E.length)return;u.value=E[0];const y=f(b.nationalNumber);b.nationalNumber&&(s.value=Bs((T=u.value)==null?void 0:T.mask,y||"")),v&&(t("change",b),n.response.setValue(c(u.value,s.value)))},g=ke(),h=()=>{var E,y,T,O,C,R,x;const b=(T=(E=n.response.value)==null?void 0:E.countryCode)!=null?T:(y=n.data.initialValue)==null?void 0:y.countryCode,v=(x=(R=(O=n.response.value)==null?void 0:O.nationalNumber)!=null?R:(C=n.data.initialValue)==null?void 0:C.nationalNumber)!=null?x:"";return b?{countryCode:b,nationalNumber:v}:null};return it(()=>{const b=h();b&&m(b,!1);const v=document.querySelector(`#country-code-input-${r.value}`);v&&Cr.addInput(v),g.value&&Cr.addInput(g.value),t("setInitialValue",n.response)}),ze(()=>n.response.value,(b,v)=>{jt.exports.isEqual(b,v)||!n.response.value||m(n.response.value)}),(b,v)=>(Se(),Re("div",Gye,[N(mn,{label:e.data.label,required:!!e.data.required},null,8,["label","required"]),He("div",Hye,[N(Ve(H0),{modelValue:u.value,"onUpdate:modelValue":v[0]||(v[0]=E=>u.value=E),class:"select",pt:{input:{id:`country-code-input-${r.value}`}},"append-to":"self",dropdown:!0,suggestions:a.value,"option-label":"code",placeholder:"+00","force-selection":"",onComplete:v[1]||(v[1]=E=>d(E)),onItemSelect:v[2]||(v[2]=E=>l()),onItemUnselect:v[3]||(v[3]=E=>l())},{option:kn(E=>[He("span",null,pt(E.option.code),1)]),_:1},8,["modelValue","pt","suggestions"]),ur(He("input",{ref_key:"nationalNumberInput",ref:g,"onUpdate:modelValue":v[4]||(v[4]=E=>s.value=E),class:ct(["input",e.hasError&&"error",e.data.disabled&&"disabled"]),disabled:e.data.disabled,placeholder:Ve(i),onInput:o,onChange:v[5]||(v[5]=E=>l())},null,42,zye),[[Ul,s.value]])])]))}});const Vye=Qt(Yye,[["__scopeId","data-v-b6afb140"]]),qye={class:"rating-input"},jye={ref:"input",class:"rating-icons"},Wye=["onClick"],Kye=Te({__name:"component",props:{data:null,hasError:{type:Boolean},response:null},emits:["change","setInitialValue"],setup(e,{emit:t}){const n=e,r=s=>{var u;return s<((u=n.response.value)!=null?u:0)},i=B(()=>{var s,u;return Array((s=n.data.max)!=null?s:5).fill((u=n.data.char)!=null?u:"\u2B50")}),a=(s,u=!0)=>{n.response.setValue(s),u&&t("change",n.response)},d=s=>{n.data.disabled||a(s==n.response.value?null:s)};return it(()=>{var s,u;a((u=(s=n.response.value)!=null?s:n.data.initialValue)!=null?u:null,!1),t("setInitialValue",n.response)}),(s,u)=>(Se(),Re("div",qye,[N(mn,{label:e.data.label,required:!!e.data.required},null,8,["label","required"]),He("div",jye,[(Se(!0),Re(Xe,null,On(Ve(i),(o,l)=>(Se(),Re("div",{key:l,class:ct(["rating-icon",{active:r(l),disabled:e.data.disabled}]),tabindex:"0",onClick:c=>d(l+1)},pt(o),11,Wye))),128))],512)]))}});const Qye=Qt(Kye,[["__scopeId","data-v-68649f0f"]]);const Xye=Te({__name:"component",props:{data:null,hasError:{type:Boolean},response:null},emits:["change","setInitialValue"],setup(e,{emit:t}){const n=e,r=ke(null);window.document&&bM(()=>import("./vue-quill.esm-bundler.6c8b376b.js"),[]).then(s=>{r.value=s.QuillEditor});const i=(s,u=!0)=>{s!=d.value.getHTML()&&d.value.setHTML(s),s!=n.response.value&&n.response.setValue(s),u&&t("change",n.response)},a=()=>{var u,o;const s=(o=(u=d.value)==null?void 0:u.getHTML())!=null?o:"";i(s)},d=ke();return it(async()=>{var s,u,o;i((u=(s=n.response.value)!=null?s:n.data.initialValue)!=null?u:"",!1),t("setInitialValue",n.response),Cr.addInput((o=d.value)==null?void 0:o.getEditor(),!0),console.log("importing quill")}),ze(()=>n.response.value,s=>i(s!=null?s:"",!1)),(s,u)=>(Se(),Re(Xe,null,[N(mn,{label:e.data.label,required:!!e.data.required},null,8,["label","required"]),r.value?(Se(),Vn(iu(r.value),{key:0,ref_key:"input",ref:d,style:{height:"100%"},class:ct(["input",e.hasError&&"error",e.data.disabled&&"disabled"]),disabled:e.data.disabled,placeholder:e.data.placeholder,"onUpdate:content":u[0]||(u[0]=o=>a())},null,40,["class","disabled","placeholder"])):Lt("",!0)],64))}});const Zye={class:"tag-input"},Jye={class:"tags"},e0e=["onClick"],t0e={class:"remove-icon",viewBox:"0 0 24 24"},n0e=["d"],r0e=["disabled","placeholder"],i0e=Te({__name:"component",props:{data:null,response:null},emits:["change","setInitialValue"],setup(e,{emit:t}){const n=e,r=Dee,i=(o,l=!0)=>{var c;(c=n.response)==null||c.setValue(o),l&&t("change",n.response)},a=B(()=>{var o,l;return(l=(o=n.response)==null?void 0:o.value)!=null?l:[]}),d=o=>{if(n.data.disabled||!o)return;let l=a.value;l.find(c=>c===o)||(l=[...l,o],i(l),u.value.value="")},s=o=>{if(n.data.disabled)return;const l=a.value.filter((c,p)=>p!==o);i(l)},u=ke();return it(()=>{var o,l,c;i((c=(l=(o=n.response)==null?void 0:o.value)!=null?l:n.data.initialValue)!=null?c:[],!1),t("setInitialValue",n.response),Cr.addInput(u.value,!0)}),(o,l)=>(Se(),Re(Xe,null,[N(mn,{label:e.data.label,required:!!e.data.required},null,8,["label","required"]),He("div",Zye,[He("div",Jye,[(Se(!0),Re(Xe,null,On(Ve(a),(c,p)=>(Se(),Re("div",{key:c,class:"tag"},[Pn(pt(c)+" ",1),He("button",{class:"remove-tag",onClick:f=>s(p)},[(Se(),Re("svg",t0e,[He("path",{d:Ve(r)},null,8,n0e)]))],8,e0e)]))),128))]),He("input",{ref_key:"input",ref:u,class:ct(["input",{disabled:e.data.disabled}]),disabled:e.data.disabled,type:"text",placeholder:e.data.placeholder,onChange:l[0]||(l[0]=c=>d(c.target.value)),onKeyup:l[1]||(l[1]=pM(c=>d(c.target.value),["enter"]))},null,42,r0e)])],64))}});const o0e=Qt(i0e,[["__scopeId","data-v-dd0f7570"]]),a0e={class:"text-input"},s0e=["disabled","placeholder"],l0e=Te({__name:"component",props:{data:null,hasError:{type:Boolean},response:null},emits:["change","enter","setInitialValue"],setup(e,{emit:t}){const n=e,r=(s,u=!0)=>{s!=d.value.value&&(d.value.value=s),s!=n.response.value&&n.response.setValue(s),u&&t("change",n.response)},i=s=>{const u=n.data.mask?Bs(n.data.mask,s):s;r(u)},a=s=>{const u=s.target;n.data.mask&&Mp(n.data.mask,u.value)&&s.preventDefault()},d=ke();return it(()=>{var s,u;r((u=(s=n.response.value)!=null?s:n.data.initialValue)!=null?u:"",!1),t("setInitialValue",n.response),Cr.addInput(d.value)}),ze(()=>n.response.value,s=>r(s!=null?s:"",!1)),(s,u)=>(Se(),Re("div",a0e,[N(mn,{label:e.data.label,required:!!e.data.required},null,8,["label","required"]),He("input",{ref_key:"input",ref:d,class:ct(["input",e.hasError&&"error",e.data.disabled&&"disabled"]),disabled:e.data.disabled,placeholder:e.data.placeholder,onKeypress:u[0]||(u[0]=o=>a(o)),onInput:u[1]||(u[1]=o=>i(o.target.value))},null,42,s0e)]))}}),c0e=["disabled","placeholder"],u0e=Te({__name:"component",props:{data:null,hasError:{type:Boolean},response:null},emits:["change","setInitialValue"],setup(e,{emit:t}){const n=e,r=(d,s=!0)=>{d!=a.value.value&&(a.value.value=d),d!=n.response.value&&n.response.setValue(d),s&&t("change",n.response)},i=d=>{r(d)},a=ke();return it(()=>{var d,s;r((s=(d=n.response.value)!=null?d:n.data.initialValue)!=null?s:"",!1),t("setInitialValue",n.response),Cr.addInput(a.value,!0)}),ze(()=>n.response.value,d=>r(d!=null?d:"",!1)),(d,s)=>(Se(),Re(Xe,null,[N(mn,{label:e.data.label,required:!!e.data.required},null,8,["label","required"]),He("textarea",{ref_key:"input",ref:a,style:{height:"100%"},class:ct(["input",e.hasError&&"error",e.data.disabled&&"disabled"]),disabled:e.data.disabled,placeholder:e.data.placeholder,onInput:s[0]||(s[0]=u=>i(u.target.value))},null,42,c0e)],64))}});const d0e={class:"time-input"},p0e=["disabled"],f0e=Te({__name:"component",props:{data:null,hasError:{type:Boolean},response:null},emits:["change","setInitialValue"],setup(e,{emit:t}){var o,l;const n=e,r=B(()=>n.data.format==="ampm"?lee():cee()),i=B(()=>r.value.find(c=>jt.exports.isEqual(c.value,n.response.value))),a=ke((l=(o=i.value)==null?void 0:o.value)!=null?l:null),d=(c,p=!0)=>{if(typeof c=="string"){const[f,m]=c.split(":");c={hour:parseInt(f),minute:parseInt(m)}}n.response.setValue(c!=null?c:null),p&&t("change",n.response)},s=()=>{var p,f;let c=n.data.initialValue;return c===""?null:(f=(p=r.value.find(m=>m.label===c))==null?void 0:p.value)!=null?f:null},u=()=>{d(n.response.value||s()||null,!1),t("setInitialValue",n.response)};return it(()=>{u()}),(c,p)=>(Se(),Re("div",d0e,[N(mn,{label:e.data.label,required:!!e.data.required},null,8,["label","required"]),ur(He("input",{"onUpdate:modelValue":p[0]||(p[0]=f=>a.value=f),type:"time",class:"input",disabled:e.data.disabled,onChange:p[1]||(p[1]=f=>d(f.target.value))},null,40,p0e),[[Ul,a.value]])]))}});const _0e=Qt(f0e,[["__scopeId","data-v-05b46d78"]]),m0e={class:"toggle-input"},g0e={class:"label"},h0e=Te({__name:"component",props:{data:null,hasError:{type:Boolean},response:null},emits:["change","setInitialValue"],setup(e,{emit:t}){const n=e,r={background:"#ffffff",border:"1px solid #ced4da",color:"#495057",transition:"background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s"},i={...r,background:"var(--color-main)",border:"1px solid #ced4da"},a=B(()=>n.response.value=="1"),d=(u,o=!0)=>{n.response.setValue(u),o&&t("change",n.response)},s=()=>{n.data.disabled||d(a.value?"0":"1")};return it(()=>{var u;d((u=n.response.value)!=null?u:"0",!1),t("setInitialValue",n.response)}),(u,o)=>(Se(),Re("div",m0e,[He("div",g0e,pt(e.data.label),1),He("div",{class:ct(["toggle-box",e.data.disabled&&"disabled"]),style:Zn(Ve(a)?i:r),onClick:s},[N(Q5,{path:Ve(a)?Ve(ene):Ve(tne),widget:"25",height:"25",fill:Ve(a)?"#ffffff":"#000000"},null,8,["path","fill"]),He("span",{class:"toggle-text",style:Zn(Ve(a)?"color: #fff":"color: #000")},pt(Ve(a)?n.data.onText:n.data.offText),5)],6)]))}});const b0e=Qt(h0e,[["__scopeId","data-v-4eb73b47"]]),S0e={key:0,class:"upload-input"},v0e=["multiple","disabled"],E0e={key:0,class:"span-error"},y0e={class:"uploaded-files"},C0e=["src"],T0e=["onClick"],O0e=Te({__name:"component",props:{data:null,hasError:{type:Boolean},response:null},emits:["change","setInitialValue"],setup(e,{emit:t}){const n=e,r=B(()=>jt.exports.isArray(n.response.value)?n.response.value:n.response.value!=null?[n.response.value]:[]),i=Kt({files:[],isLoading:!1,assetURL:"",error:""}),a=async(c,p=!0)=>{var v;const f=n.data.multiple?c:(v=c[0])!=null?v:null;jt.exports.isEqual(f,n.response.value)||n.response.setValue(f);const m=i.files.filter(E=>c.includes(E.url)),g=m.map(E=>E.url),h=c.filter(E=>!g.includes(E)),b=await Promise.all(h.map(async E=>{var O;const y=await fetch(E).then(C=>C.blob());return{file:new File([y],(O=E.split("/").pop())!=null?O:""),url:E}}));i.files=[...m,...b],p&&t("change",n.response)},d=c=>{i.files=i.files.filter((p,f)=>f!==c),a(r.value.filter((p,f)=>f!==c))},u=z0({state:i,props:n,clearErrors:()=>{i.error="",n.response.clearErrors()},setValue:a}),o=()=>{let c=n.data.initialValue;return jt.exports.isArray(c)?c=c.filter(p=>p!=null):c?c=[c]:c=[],c},l=()=>{const c=o();r.value.length?a(r.value,!1):c.length?a(c,!1):a([]),t("setInitialValue",n.response)};return it(()=>{l()}),ze(()=>n.response.value,(c,p)=>{jt.exports.isEqual(c,p)||a(r.value,!1)}),(c,p)=>(Se(),Re(Xe,null,[N(mn,{label:e.data.label,required:!!e.data.required},null,8,["label","required"]),i.isLoading?(Se(),Vn(Y0,{key:1})):(Se(),Re("div",S0e,[He("input",{ref:"input",type:"file",class:ct(["input",e.hasError&&"error"]),style:{display:"none"},accept:"video/*",multiple:e.data.multiple,disabled:e.data.disabled,onChange:p[0]||(p[0]=f=>Ve(u)(f)),onDragover:p[1]||(p[1]=li(()=>{},["prevent"]))},null,42,v0e),He("button",{class:ct(["button",{disabled:e.data.disabled}]),onClick:p[2]||(p[2]=f=>c.$refs.input.click())},[N(pf,{class:"icon",path:Ve(Mee)},null,8,["path"]),Pn(" Upload Video ")],2),i.error?(Se(),Re("span",E0e,pt(i.error),1)):Lt("",!0),He("div",y0e,[(Se(!0),Re(Xe,null,On(i.files,(f,m)=>(Se(),Re("div",{key:m,class:"video-file"},[He("video",{src:f.url,controls:!0},null,8,C0e),He("span",{onClick:g=>d(m)},"X",8,T0e)]))),128))])]))],64))}});const w0e=Qt(O0e,[["__scopeId","data-v-687e0d3a"]]),R0e={"answer-sheet-input":AJ,"cards-input":YJ,"checkbox-input":jJ,"checklist-input":tee,"click-input":nee,"cnpj-input":_ee,"code-input":gee,"cpf-input":See,"currency-input":Tee,"custom-input":Ree,"date-input":Aee,"dropdown-input":_te,"email-input":hte,"file-input":Ite,"image-input":$te,"kanban-board-input":Kte,"list-input":dne,"multiple-choice-input":vne,"nps-input":Rne,"number-input":Ane,"number-slider-input":Pne,"pandas-row-selection-input":Lye,"password-input":Uye,"phone-input":Vye,"rating-input":Qye,"rich-text-input":Xye,"tag-input":o0e,"text-input":l0e,"textarea-input":u0e,"time-input":_0e,"toggle-input":b0e,"video-input":w0e},DCe=e=>R0e.hasOwnProperty(e),x0e=e=>(m1("data-v-64b8373a"),e=e(),g1(),e),I0e={class:"file-output"},N0e=["href"],A0e=x0e(()=>He("iframe",{src:"about:blank",name:"iframe_a",class:"target-frame"},null,-1)),D0e=Te({__name:"component",props:{data:null},setup(e){return(t,n)=>{var r;return Se(),Re("div",I0e,[He("a",{href:e.data.fileUrl,class:"download-button button",target:"iframe_a"},[N(pf,{class:"icon",path:Ve(kP)},null,8,["path"]),Pn(" "+pt((r=e.data.downloadText)!=null?r:"Download"),1)],8,N0e),A0e])}}});const M0e=Qt(D0e,[["__scopeId","data-v-64b8373a"]]),k0e=["innerHTML"],P0e=Te({__name:"component",props:{data:null},setup(e){return(t,n)=>(Se(),Re("div",{innerHTML:e.data.html},null,8,k0e))}}),L0e=["src","width","height"],$0e=Te({__name:"component",props:{data:null},setup(e){return(t,n)=>(Se(),Re("iframe",{class:"iframe",src:e.data.url,width:e.data.width,height:e.data.height},null,8,L0e))}});const F0e=Qt($0e,[["__scopeId","data-v-1f59d435"]]),B0e=["src","alt"],U0e={key:0,class:"subtitle center"},G0e=Te({__name:"component",props:{data:null},setup(e){return(t,n)=>(Se(),Re(Xe,null,[N(mn,{label:e.data.label,required:!1},null,8,["label"]),He("img",{class:"image",src:e.data.imageUrl,alt:e.data.subtitle},null,8,B0e),e.data.subtitle?(Se(),Re("div",U0e,pt(e.data.subtitle),1)):Lt("",!0)],64))}});const H0e=Qt(G0e,[["__scopeId","data-v-fe95b470"]]),z0e=Te({__name:"component",props:{data:null},setup(e){const t=ke(null);return it(async()=>{await Promise.all([SE("https://polyfill.io/v3/polyfill.min.js?features=es6"),SE("https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js")]),window.MathJax.typesetPromise([t.value])}),(n,r)=>(Se(),Re("div",{ref_key:"latex",ref:t,class:"latex"},pt(e.data.text),513))}});const Y0e=Qt(z0e,[["__scopeId","data-v-93c800e2"]]),V0e=["href","target"],q0e=Te({__name:"component",props:{data:null},setup(e){return(t,n)=>(Se(),Re("a",{class:"link",href:e.data.linkUrl,target:e.data.sameTab?"":"_blank"},pt(e.data.linkText),9,V0e))}}),j0e=Te({__name:"component",props:{data:null},setup(e){return(t,n)=>{const r=Nl("Markdown");return Se(),Vn(r,{class:"markdown-output",source:e.data.text,html:""},null,8,["source"])}}});const W0e=Qt(j0e,[["__scopeId","data-v-450605a7"]]),K0e=["height","width"],Q0e=Te({__name:"component",props:{data:null,runtime:null,containerHeight:null,containerWidth:null,zoom:null},emits:["row-click","action-click","row-edit"],setup(e,{emit:t}){const n=e,r=55+32,i=68,a=10,d=ke(null),s=B(()=>n.runtime==="dash"),u=({action:f,row:m})=>{t("action-click",{action:f,data:m})};function o({row:f}){t("row-click",{data:f.data,index:f.index})}function l({oldRow:f,newRow:m}){const g=pee(f,m);t("row-edit",{old:f,new:g,index:f.index})}ze(n.data.table.data,()=>{});const c=B(()=>(n.data.displayIndex?n.data.table.schema.fields:n.data.table.schema.fields.filter(f=>f.name!="index")).map(f=>({...f,title:f.name.toString(),key:f.name.toString()}))),p=B(()=>!s.value||typeof n.containerHeight!="number"?a:Math.trunc((n.containerHeight-r)/i));return(f,m)=>{var g;return Se(),Re("div",{height:e.containerHeight,width:e.containerWidth},[N(mn,{ref_key:"label",ref:d,label:n.data.label,required:!1},null,8,["label"]),N(jB,{data:e.data.table.data,"onUpdate:data":m[0]||(m[0]=h=>e.data.table.data=h),columns:Ve(c),"rows-per-page":Ve(p),"enable-search":"",editable:e.data.editable,actions:(g=n.data.actions)!=null&&g.length?n.data.actions:void 0,onActionClick:u,onRowClick:o,onRowEdit:l},null,8,["data","columns","rows-per-page","editable","actions"])],8,K0e)}}}),X0e=Te({__name:"component",props:{data:null},setup(e){const t=e,n=ke(null);it(async()=>{r()});const r=async()=>{await SE("https://cdn.plot.ly/plotly-latest.min.js"),Plotly.newPlot(n.value,t.data.figure.data,t.data.figure.layout)};return ze(()=>t.data.figure,r,{deep:!0}),(i,a)=>(Se(),Re(Xe,null,[N(mn,{label:e.data.label,required:!1},null,8,["label"]),He("div",{ref_key:"root",ref:n,class:"chart"},null,512)],64))}});const Z0e=Qt(X0e,[["__scopeId","data-v-cbdcf11a"]]),J0e={class:"progress-output"},eCe={class:"progress-container"},tCe={class:"progress-text label"},nCe=Te({__name:"component",props:{data:null},setup(e){const t=e,n=B(()=>{const{current:r,total:i}=t.data;return{width:`calc(${Math.min(100*r/i,100).toFixed(2)}% - 6px)`}});return(r,i)=>(Se(),Re("div",J0e,[He("div",eCe,[He("div",{class:"progress-content",style:Zn(Ve(n))},null,4)]),He("div",tCe,pt(e.data.text),1)]))}});const rCe=Qt(nCe,[["__scopeId","data-v-752753e3"]]),iCe=Te({__name:"component",props:{data:null},setup(e){const t=e;function n(i){switch(i){case"small":return"12px";case"medium":return"16px";case"large":return"24px";default:return"16px"}}const r=B(()=>({fontSize:n(t.data.size)}));return(i,a)=>(Se(),Re("div",{class:"text",style:Zn(Ve(r))},pt(e.data.text),5))}}),oCe={class:"start-widget"},aCe={class:"title"},sCe={class:"start-message"},lCe=Te({__name:"component",props:{form:{type:Object,required:!0}},setup(e){return(t,n)=>(Se(),Re("div",oCe,[He("div",aCe,pt(e.form.welcomeTitle||e.form.title),1),He("div",sCe,pt(e.form.startMessage),1)]))}});const cCe=Qt(lCe,[["__scopeId","data-v-9cd9cf8d"]]),uCe={class:"text"},dCe=Te({__name:"component",props:{form:{type:Object,required:!0}},setup(e){return(t,n)=>{var r;return Se(),Re("div",uCe,pt((r=e.form.endMessage)!=null?r:"Thank you"),1)}}});const pCe=Qt(dCe,[["__scopeId","data-v-1baab646"]]),fCe={class:"text"},_Ce={key:0,class:"session-id"},mCe=Te({__name:"component",props:{form:{type:Object,required:!0},sessionId:{type:String,required:!1}},setup(e){return(t,n)=>{var r;return Se(),Re("div",fCe,[Pn(pt((r=e.form.errorMessage)!=null?r:"Oops.. something went wrong")+" ",1),e.sessionId?(Se(),Re("div",_Ce,"Reference: "+pt(e.sessionId),1)):Lt("",!0)])}}});const gCe=Qt(mCe,[["__scopeId","data-v-9c18087d"]]),MCe={start:cCe,end:pCe,error:gCe},kCe={"file-output":M0e,"html-output":P0e,"iframe-output":F0e,"image-output":H0e,"latex-output":Y0e,"link-output":q0e,"markdown-output":W0e,"pandas-output":Q0e,"plotly-output":Z0e,"progress-output":rCe,"text-output":iCe},PCe=(e,t)=>{Object.keys(t).forEach(n=>{e.component(n,t[n])})};export{HV as $,Zn as A,ln as B,OCe as C,Lt as D,li as E,Xe as F,ct as G,yCe as H,Q5 as I,CCe as J,B as K,On as L,TCe as M,pt as N,m1 as O,xCe as P,g1 as Q,Ie as R,ky as S,Qd as T,Pn as U,jt as V,ur as W,lM as X,zi as Y,Ul as Z,bM as _,Nl as a,q5 as a0,GV as a1,ze as a2,t0 as a3,ACe as a4,Cr as a5,ICe as a6,NCe as a7,iu as a8,DCe as a9,G0 as aA,$P as aB,LP as aC,Ju as aD,$t as aa,bt as ab,Ya as ac,pf as ad,en as ae,pM as af,ZM as ag,vCe as ah,NY as ai,e0 as aj,$6 as ak,tn as al,$a as am,I1 as an,Ds as ao,Ky as ap,Yi as aq,F5 as ar,uM as as,gI as at,dS as au,Nn as av,Gn as aw,zee as ax,oJ as ay,RCe as az,Se as b,Re as c,Te as d,N as e,ECe as f,SCe as g,MV as h,wCe as i,PCe as j,Bl as k,R0e as l,kCe as m,MCe as n,it as o,zc as p,Qt as q,ke as r,fJ as s,Vn as t,bCe as u,Kt as v,kn as w,He as x,HY as y,Ve as z}; -//# sourceMappingURL=registerWidgets.3fe0df5a.js.map + `]:{borderTopColor:"transparent","&:first-child":{borderStartStartRadius:l,borderEndStartRadius:l},"&:last-child":{borderStartEndRadius:l,borderEndEndRadius:l}}},[`${t}-footer`]:{padding:`${r}px ${i}px`,color:v,background:E}})}},Oye=Or("Table",e=>{const{controlItemBgActive:t,controlItemBgActiveHover:n,colorTextPlaceholder:r,colorTextHeading:i,colorSplit:a,colorBorderSecondary:d,fontSize:s,padding:u,paddingXS:o,paddingSM:l,controlHeight:c,colorFillAlter:p,colorIcon:f,colorIconHover:m,opacityLoading:g,colorBgContainer:h,borderRadiusLG:b,colorFillContent:v,colorFillSecondary:E,controlInteractiveSize:y}=e,T=new Kn(f),O=new Kn(m),C=t,R=2,x=new Kn(E).onBackground(h).toHexString(),I=new Kn(v).onBackground(h).toHexString(),k=new Kn(p).onBackground(h).toHexString(),L=_n(e,{tableFontSize:s,tableBg:h,tableRadius:b,tablePaddingVertical:u,tablePaddingHorizontal:u,tablePaddingVerticalMiddle:l,tablePaddingHorizontalMiddle:o,tablePaddingVerticalSmall:o,tablePaddingHorizontalSmall:o,tableBorderColor:d,tableHeaderTextColor:i,tableHeaderBg:k,tableFooterTextColor:i,tableFooterBg:k,tableHeaderCellSplitColor:d,tableHeaderSortBg:x,tableHeaderSortHoverBg:I,tableHeaderIconColor:T.clone().setAlpha(T.getAlpha()*g).toRgbString(),tableHeaderIconColorHover:O.clone().setAlpha(O.getAlpha()*g).toRgbString(),tableBodySortBg:k,tableFixedHeaderSortActiveBg:x,tableHeaderFilterActiveBg:v,tableFilterDropdownBg:h,tableRowHoverBg:k,tableSelectedRowBg:C,tableSelectedRowHoverBg:n,zIndexTableFixed:R,zIndexTableSticky:R+1,tableFontSizeMiddle:s,tableFontSizeSmall:s,tableSelectionColumnWidth:c,tableExpandIconBg:h,tableExpandColumnWidth:y+2*e.padding,tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:r,tableScrollThumbBgHover:i,tableScrollBg:a});return[Tye(L),lye(L),HD(L),vye(L),iye(L),QEe(L),uye(L),nye(L),HD(L),eye(L),_ye(L),aye(L),yye(L),ZEe(L),gye(L),bye(L),pye(L)]}),wye=[],qB=()=>({prefixCls:rr(),columns:Nr(),rowKey:Xr([String,Function]),tableLayout:rr(),rowClassName:Xr([String,Function]),title:Bt(),footer:Bt(),id:rr(),showHeader:Ct(),components:an(),customRow:Bt(),customHeaderRow:Bt(),direction:rr(),expandFixed:Xr([Boolean,String]),expandColumnWidth:Number,expandedRowKeys:Nr(),defaultExpandedRowKeys:Nr(),expandedRowRender:Bt(),expandRowByClick:Ct(),expandIcon:Bt(),onExpand:Bt(),onExpandedRowsChange:Bt(),"onUpdate:expandedRowKeys":Bt(),defaultExpandAllRows:Ct(),indentSize:Number,expandIconColumnIndex:Number,showExpandColumn:Ct(),expandedRowClassName:Bt(),childrenColumnName:rr(),rowExpandable:Bt(),sticky:Xr([Boolean,Object]),dropdownPrefixCls:String,dataSource:Nr(),pagination:Xr([Boolean,Object]),loading:Xr([Boolean,Object]),size:rr(),bordered:Ct(),locale:an(),onChange:Bt(),onResizeColumn:Bt(),rowSelection:an(),getPopupContainer:Bt(),scroll:an(),sortDirections:Nr(),showSorterTooltip:Xr([Boolean,Object],!0),transformCellText:Bt()}),Rye=Te({name:"InteralTable",inheritAttrs:!1,props:Vr(M(M({},qB()),{contextSlots:an()}),{rowKey:"key"}),setup(e,t){let{attrs:n,slots:r,expose:i,emit:a}=t;Yr(!(typeof e.rowKey=="function"&&e.rowKey.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected."),hve(B(()=>e.contextSlots)),bve({onResizeColumn:(ae,be)=>{a("resizeColumn",ae,be)}});const d=Q$(),s=B(()=>{const ae=new Set(Object.keys(d.value).filter(be=>d.value[be]));return e.columns.filter(be=>!be.responsive||be.responsive.some(ve=>ae.has(ve)))}),{size:u,renderEmpty:o,direction:l,prefixCls:c,configProvider:p}=dn("table",e),[f,m]=Oye(c),g=B(()=>{var ae;return e.transformCellText||((ae=p.transformCellText)===null||ae===void 0?void 0:ae.value)}),[h]=NC("Table",Ws.Table,cn(e,"locale")),b=B(()=>e.dataSource||wye),v=B(()=>p.getPrefixCls("dropdown",e.dropdownPrefixCls)),E=B(()=>e.childrenColumnName||"children"),y=B(()=>b.value.some(ae=>ae==null?void 0:ae[E.value])?"nest":e.expandedRowRender?"row":null),T=Kt({body:null}),O=ae=>{M(T,ae)},C=B(()=>typeof e.rowKey=="function"?e.rowKey:ae=>ae==null?void 0:ae[e.rowKey]),[R]=uEe(b,E,C),x={},I=function(ae,be){let ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{pagination:ge,scroll:ce,onChange:ee}=e,Ne=M(M({},x),ae);ve&&(x.resetPagination(),Ne.pagination.current&&(Ne.pagination.current=1),ge&&ge.onChange&&ge.onChange(1,Ne.pagination.pageSize)),ce&&ce.scrollToFirstRowOnChange!==!1&&T.body&&Ole(0,{getContainer:()=>T.body}),ee==null||ee(Ne.pagination,Ne.filters,Ne.sorter,{currentDataSource:GD(vy(b.value,Ne.sorterStates,E.value),Ne.filterStates),action:be})},k=(ae,be)=>{I({sorter:ae,sorterStates:be},"sort",!1)},[L,A,D,$]=mEe({prefixCls:c,mergedColumns:s,onSorterChange:k,sortDirections:B(()=>e.sortDirections||["ascend","descend"]),tableLocale:h,showSorterTooltip:cn(e,"showSorterTooltip")}),F=B(()=>vy(b.value,A.value,E.value)),z=(ae,be)=>{I({filters:ae,filterStates:be},"filter",!0)},[H,V,W]=VEe({prefixCls:c,locale:h,dropdownPrefixCls:v,mergedColumns:s,onFilterChange:z,getPopupContainer:cn(e,"getPopupContainer")}),te=B(()=>GD(F.value,V.value)),[X]=WEe(cn(e,"contextSlots")),ne=B(()=>{const ae={},be=W.value;return Object.keys(be).forEach(ve=>{be[ve]!==null&&(ae[ve]=be[ve])}),M(M({},D.value),{filters:ae})}),[oe]=qEe(ne),Q=(ae,be)=>{I({pagination:M(M({},x.pagination),{current:ae,pageSize:be})},"paginate")},[Z,q]=cEe(B(()=>te.value.length),cn(e,"pagination"),Q);Ht(()=>{x.sorter=$.value,x.sorterStates=A.value,x.filters=W.value,x.filterStates=V.value,x.pagination=e.pagination===!1?{}:lEe(Z.value,e.pagination),x.resetPagination=q});const se=B(()=>{if(e.pagination===!1||!Z.value.pageSize)return te.value;const{current:ae=1,total:be,pageSize:ve=my}=Z.value;return Yr(ae>0,"Table","`current` should be positive number."),te.value.lengthve?te.value.slice((ae-1)*ve,ae*ve):te.value:te.value.slice((ae-1)*ve,ae*ve)});Ht(()=>{en(()=>{const{total:ae,pageSize:be=my}=Z.value;te.value.lengthbe&&Yr(!1,"Table","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode.")})},{flush:"post"});const re=B(()=>e.showExpandColumn===!1?-1:y.value==="nest"&&e.expandIconColumnIndex===void 0?e.rowSelection?1:0:e.expandIconColumnIndex>0&&e.rowSelection?e.expandIconColumnIndex-1:e.expandIconColumnIndex),_e=ke();ze(()=>e.rowSelection,()=>{_e.value=e.rowSelection?M({},e.rowSelection):e.rowSelection},{deep:!0,immediate:!0});const[me,U]=pEe(_e,{prefixCls:c,data:te,pageData:se,getRowKey:C,getRecordByKey:R,expandType:y,childrenColumnName:E,locale:h,getPopupContainer:B(()=>e.getPopupContainer)}),j=(ae,be,ve)=>{let ge;const{rowClassName:ce}=e;return typeof ce=="function"?ge=Ue(ce(ae,be,ve)):ge=Ue(ce),Ue({[`${c.value}-row-selected`]:U.value.has(C.value(ae,be))},ge)};i({selectedKeySet:U});const J=B(()=>typeof e.indentSize=="number"?e.indentSize:15),pe=ae=>oe(me(H(L(X(ae)))));return()=>{var ae;const{expandIcon:be=r.expandIcon||jEe(h.value),pagination:ve,loading:ge,bordered:ce}=e;let ee,Ne;if(ve!==!1&&((ae=Z.value)===null||ae===void 0?void 0:ae.total)){let ie;Z.value.size?ie=Z.value.size:ie=u.value==="small"||u.value==="middle"?"small":void 0;const Ee=Ke=>N(rve,he(he({},Z.value),{},{class:[`${c.value}-pagination ${c.value}-pagination-${Ke}`,Z.value.class],size:ie}),null),Le=l.value==="rtl"?"left":"right",{position:We}=Z.value;if(We!==null&&Array.isArray(We)){const Ke=We.find(Pe=>Pe.includes("top")),xe=We.find(Pe=>Pe.includes("bottom")),Me=We.every(Pe=>`${Pe}`=="none");!Ke&&!xe&&!Me&&(Ne=Ee(Le)),Ke&&(ee=Ee(Ke.toLowerCase().replace("top",""))),xe&&(Ne=Ee(xe.toLowerCase().replace("bottom","")))}else Ne=Ee(Le)}let Oe;typeof ge=="boolean"?Oe={spinning:ge}:typeof ge=="object"&&(Oe=M({spinning:!0},ge));const Ae=Ue(`${c.value}-wrapper`,{[`${c.value}-wrapper-rtl`]:l.value==="rtl"},n.class,m.value),ue=dr(e,["columns"]);return f(N("div",{class:Ae,style:n.style},[N(fp,he({spinning:!1},Oe),{default:()=>[ee,N(aEe,he(he(he({},n),ue),{},{expandedRowKeys:e.expandedRowKeys,defaultExpandedRowKeys:e.defaultExpandedRowKeys,expandIconColumnIndex:re.value,indentSize:J.value,expandIcon:be,columns:s.value,direction:l.value,prefixCls:c.value,class:Ue({[`${c.value}-middle`]:u.value==="middle",[`${c.value}-small`]:u.value==="small",[`${c.value}-bordered`]:ce,[`${c.value}-empty`]:b.value.length===0}),data:se.value,rowKey:C.value,rowClassName:j,internalHooks:_y,internalRefs:T,onUpdateInternalRefs:O,transformColumns:pe,transformCellText:g.value}),M(M({},r),{emptyText:()=>{var ie,Ee;return((ie=r.emptyText)===null||ie===void 0?void 0:ie.call(r))||((Ee=e.locale)===null||Ee===void 0?void 0:Ee.emptyText)||o("Table")}})),Ne]})]))}}}),xye=Te({name:"ATable",inheritAttrs:!1,props:Vr(qB(),{rowKey:"key"}),slots:Object,setup(e,t){let{attrs:n,slots:r,expose:i}=t;const a=ke();return i({table:a}),()=>{var d;const s=e.columns||$B((d=r.default)===null||d===void 0?void 0:d.call(r));return N(Rye,he(he(he({ref:a},n),e),{},{columns:s||[],expandedRowRender:r.expandedRowRender,contextSlots:M({},r)}),r)}}}),JS=xye,ev=Te({name:"ATableColumn",slots:Object,render(){return null}}),tv=Te({name:"ATableColumnGroup",slots:Object,__ANT_TABLE_COLUMN_GROUP:!0,render(){return null}}),Cy=Wve,Ty=Xve,nv=M(Zve,{Cell:Ty,Row:Cy,name:"ATableSummary"}),Iye=M(JS,{SELECTION_ALL:gy,SELECTION_INVERT:hy,SELECTION_NONE:by,SELECTION_COLUMN:Aa,EXPAND_COLUMN:Rs,Column:ev,ColumnGroup:tv,Summary:nv,install:e=>(e.component(nv.name,nv),e.component(Ty.name,Ty),e.component(Cy.name,Cy),e.component(JS.name,JS),e.component(ev.name,ev),e.component(tv.name,tv),e)}),Nye={style:{padding:"8px"}},Aye=["onclick"],Dye={key:1,class:"buttons"},Mye={key:0},kye=Te({__name:"ATable",props:{data:null,columns:null,enableSearch:{type:Boolean},editable:{type:Boolean},mainColor:null,actions:null,rowsPerPage:null,selectedIndexes:null,selectable:null,selectionDisabled:{type:Boolean}},emits:["rowEdit","actionClick","rowClick","update:selectedIndexes"],setup(e,{emit:t}){const n=e,r=B(()=>{var E;return(E=n.mainColor)!=null?E:"#D14056"}),i=Kt({searchText:"",searchedColumn:""}),a=ke(),d=B(()=>n.rowsPerPage),s=B(()=>n.data.map((y,T)=>({...y,key:T}))),u=B(()=>{const E=n.columns.map((y,T)=>({title:y.title,dataIndex:y.key,key:y.key,customFilterDropdown:!0,sorter:{compare:(O,C)=>typeof O[y.key]=="number"&&typeof C[y.key]=="number"?O[y.key]-C[y.key]:typeof O[y.key]=="string"&&typeof C[y.key]=="string"?O[y.key].localeCompare(C[y.key]):1,multiple:T},onFilter:(O,C)=>C[y.key].toString().toLowerCase().includes(O.toString().toLowerCase()),onFilterDropdownOpenChange:O=>{O&&en().then(()=>{a.value.focus()})}}));if(n.editable||n.actions){const y=n.editable?80:0,T=n.actions?40:0;E.push({title:"",dataIndex:"buttons",width:y+T,fixed:"right",align:"center"})}return E}),o=(E,y,T)=>{y(),i.searchText=E[0],i.searchedColumn=T},l=E=>{E({confirm:!0}),i.searchText=""},c=Kt({}),p=E=>{t("rowClick",{row:E})},f=(E,y)=>{t("actionClick",{action:E,row:y})},m=E=>{c[E.index]={...E}},g=E=>{const y=n.data.filter(T=>T.index===E.index);t("rowEdit",{oldRow:y[0],newRow:c[E.index]}),delete c[E.index]},h=E=>{delete c[E.index]},b=ke([]),v=()=>n.selectable?{type:{multiple:"checkbox",single:"radio"}[n.selectable],selectedRowKeys:Ve(b),onChange:y=>{b.value=y,t("update:selectedIndexes",y)},getCheckboxProps:y=>({disabled:n.selectionDisabled,name:y[n.columns[0].key]})}:void 0;return(E,y)=>(Se(),Vn(Ve(_B),{theme:{token:{colorPrimary:Ve(r)}},class:"ant-table"},{default:kn(()=>[(Se(),Vn(Ve(Iye),{key:Ve(d),"data-source":Ve(s),columns:Ve(u),pagination:{position:["bottomCenter"],defaultPageSize:n.rowsPerPage,showSizeChanger:!n.rowsPerPage},"row-selection":v(),scroll:{x:n.columns.length*200}},Ky({bodyCell:kn(({column:T,text:O,record:C})=>[n.columns.map(R=>R.key).includes(T.dataIndex)?(Se(),Re("div",{key:0,onclick:()=>p(C)},[c[C.index]?(Se(),Vn(Ve(fr),{key:0,value:c[C.index][T.dataIndex],"onUpdate:value":R=>c[C.index][T.dataIndex]=R,style:{margin:"-5px 0"}},null,8,["value","onUpdate:value"])):(Se(),Re(Xe,{key:1},[Pn(pt(O),1)],64))],8,Aye)):T.dataIndex==="buttons"?(Se(),Re("div",Dye,[c[C.index]?(Se(),Vn(Ve(Ar),{key:0,type:"text",onClick:R=>g(C)},{default:kn(()=>[N(Ve(Noe),{"two-tone-color":Ve(r)},null,8,["two-tone-color"])]),_:2},1032,["onClick"])):Lt("",!0),c[C.index]?(Se(),Vn(Ve(fve),{key:1,title:"Sure to cancel?",onConfirm:R=>h(C)},{default:kn(()=>[N(Ve(Ar),{type:"text"},{default:kn(()=>[N(Ve(rie),{"two-tone-color":Ve(r)},null,8,["two-tone-color"])]),_:1})]),_:2},1032,["onConfirm"])):Lt("",!0),n.editable&&!c[C.index]?(Se(),Vn(Ve(Ar),{key:2,type:"text",onClick:R=>m(C)},{default:kn(()=>[N(Ve(Sie),{"two-tone-color":Ve(r)},null,8,["two-tone-color"])]),_:2},1032,["onClick"])):Lt("",!0),n.actions&&!c[C.index]?(Se(),Vn(Ve(Gs),{key:3,trigger:"click"},{overlay:kn(()=>[N(Ve(go),null,{default:kn(()=>[(Se(!0),Re(Xe,null,On(n.actions,R=>(Se(),Vn(Ve(ju),{key:R,type:"text",onClick:x=>f(R,C)},{default:kn(()=>[Pn(pt(R),1)]),_:2},1032,["onClick"]))),128))]),_:2},1024)]),default:kn(()=>[N(Ve(Ar),{type:"text"},{default:kn(()=>[N(Ve(moe),{style:Zn({color:Ve(r)})},null,8,["style"])]),_:1})]),_:2},1024)):Lt("",!0)])):(Se(),Re(Xe,{key:2},[i.searchText&&i.searchedColumn===T.dataIndex?(Se(),Re("span",Mye,[(Se(!0),Re(Xe,null,On(O.toString().split(new RegExp(`(?<=${i.searchText})|(?=${i.searchText})`,"i")),(R,x)=>(Se(),Re(Xe,null,[R.toLowerCase()===i.searchText.toLowerCase()?(Se(),Re("mark",{key:x,class:"highlight"},pt(R),1)):(Se(),Re(Xe,{key:1},[Pn(pt(R),1)],64))],64))),256))])):Lt("",!0)],64))]),_:2},[n.enableSearch?{name:"customFilterDropdown",fn:kn(({setSelectedKeys:T,selectedKeys:O,confirm:C,clearFilters:R,column:x})=>[He("div",Nye,[N(Ve(fr),{ref_key:"searchInput",ref:a,placeholder:`Search ${x.dataIndex}`,value:O[0],style:{width:"188px","margin-bottom":"8px",display:"block"},onChange:I=>T(I.target.value?[I.target.value]:[]),onPressEnter:I=>o(O,C,x.dataIndex)},null,8,["placeholder","value","onChange","onPressEnter"]),N(Ve(Ar),{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:I=>o(O,C,x.dataIndex)},{icon:kn(()=>[N(Ve(kp))]),default:kn(()=>[Pn(" Search ")]),_:2},1032,["onClick"]),N(Ve(Ar),{size:"small",style:{width:"90px"},onClick:I=>l(R)},{default:kn(()=>[Pn(" Reset ")]),_:2},1032,["onClick"])])]),key:"0"}:void 0,n.enableSearch?{name:"customFilterIcon",fn:kn(({filtered:T})=>[N(Ve(kp),{style:Zn({color:T?"#108ee9":void 0})},null,8,["style"])]),key:"1"}:void 0]),1032,["data-source","columns","pagination","row-selection","scroll"]))]),_:1},8,["theme"]))}});const jB=Qt(kye,[["__scopeId","data-v-72b2e327"]]),Pye=["height","width"],Lye=Te({__name:"component",props:{data:null,hasError:{type:Boolean},runtime:null,containerHeight:null,containerWidth:null,zoom:null,response:null},emits:["change"],setup(e,{emit:t}){const n=e,r=55+32,i=68,a=10;ze(n.data.table.data,()=>{});const d=B(()=>n.runtime==="dash"),s=ke([]),u=m=>m==null?[]:jt.exports.isArray(m)?m:[m],o=B(()=>(n.data.displayIndex?n.data.table.schema.fields:n.data.table.schema.fields.filter(m=>m.name!="index")).map(m=>({...m,title:m.name.toString(),key:m.name.toString()}))),l=ke([]),c=m=>{const g=u(m),h=n.data.multiple?g:g[0]||null;jt.exports.isEqual(h,l.value)||(l.value=h),jt.exports.isEqual(h,n.response.value)||(n.response.setValue(h),t("change",n.response))};ze(()=>n.response.value,()=>c(n.response.value)),ze(()=>s.value,()=>{c(n.data.table.data.filter(m=>s.value.includes(m.index)))});const p=B(()=>!d.value||typeof n.containerHeight!="number"?a:Math.trunc((n.containerHeight-r)/i)),f=ke(null);return it(()=>c(n.response.value)),(m,g)=>(Se(),Re("div",{height:e.containerHeight,width:e.containerWidth},[N(mn,{ref_key:"label",ref:f,label:n.data.label,required:!1},null,8,["label"]),N(jB,{data:e.data.table.data,"onUpdate:data":g[0]||(g[0]=h=>e.data.table.data=h),"selected-indexes":s.value,"onUpdate:selectedIndexes":g[1]||(g[1]=h=>s.value=h),columns:Ve(o),"rows-per-page":Ve(p),"enable-search":"",selectable:e.data.multiple?"multiple":"single","selection-disabled":n.data.disabled},null,8,["data","selected-indexes","columns","rows-per-page","selectable","selection-disabled"])],8,Pye))}}),$ye={class:"password-input"},Fye=["pattern","required","disabled","placeholder"],Bye=["required","placeholder"],Uye=Te({__name:"component",props:{data:null,hasError:{type:Boolean},response:null},emits:["change","enter","setInitialValue"],setup(e,{emit:t}){const n=e,r=(u,o=!0)=>{u=String(u).trim(),u!=s.value.value&&(s.value.value=u),u!=n.response.value&&n.response.setValue(u),o&&t("change",n.response)},i=B(()=>n.data.pattern?n.data.pattern:[()=>{const m=n.data.lowercaseRequired;let g="";return m&&(g+="(?=.*[a-z])"),g},()=>{const m=n.data.uppercaseRequired;let g="";return m&&(g+="(?=.*[A-Z])"),g},()=>{const m=n.data.digitRequired;let g="";return m&&(g+="(?=.*\\d)"),g},()=>{const m=n.data.specialRequired;let g="";return m&&(g+="(?=.*[!?@#$\\-%^&+=])"),g},()=>{var v,E,y;const m=(v=n.data.minLength)!=null?v:null,g=(E=n.data.maxLength)!=null?E:null,h=(y=n.data.size)!=null?y:null;let b="";return h?b+=`(.{${h},${h}})`:m&&g?b+=`(.{${m},${g}})`:m?b+=`(.{${m},})`:g&&(b+=`(.{,${g}})`),b}].reduce((m,g)=>m+g(),"")||null),a=u=>[()=>n.data.digitRequired&&!/[0-9]/.test(u)?"Your password must have at least one digit between 0 and 9":null,()=>{const m=/[a-z]/g;return n.data.lowercaseRequired&&!m.test(u)?"Your password must have at least one lowercase letter":null},()=>{var v,E,y;const m=(v=n.data.minLength)!=null?v:null,g=(E=n.data.maxLength)!=null?E:null,h=(y=n.data.size)!=null?y:null,b=u.length;return h&&b!==h?`Your password must have ${h} characters`:m&&g&&(bg)?`Your password must have between ${m} and ${g} characters`:m&&bg?`Your password must have at most ${g} characters`:null},()=>n.data.specialRequired&&!/[!?@#$\-%^&+=]/g.test(u)?"Your password must have at least one special character":null,()=>{const m=/[A-Z]/g;return n.data.uppercaseRequired&&!m.test(u)?"Your password must have at leat one uppercase letter":null}].reduce((m,g)=>{const h=g();return h&&m.push(h),m},[]),d=u=>{n.response.clearErrors(),r(u)},s=ke();return it(()=>{var u;r((u=n.response.value)!=null?u:"",!1),en().then(()=>Cr.addInput(s.value)),n.response.setValidation(()=>{var o,l,c;return(o=s.value)!=null&&o.checkValidity()?[]:a((c=(l=s.value)==null?void 0:l.value)!=null?c:"")})}),ze(()=>n.response.value,u=>r(u!=null?u:"",!1)),(u,o)=>(Se(),Re("div",$ye,[N(mn,{label:e.data.label,required:!!e.data.required},null,8,["label","required"]),Ve(i)?(Se(),Re("input",{key:0,ref_key:"input",ref:s,type:"password",pattern:Ve(i),required:!!e.data.required,class:ct(["input",e.hasError&&"error",e.data.disabled&&"disabled"]),disabled:e.data.disabled,placeholder:e.data.placeholder,onInput:o[0]||(o[0]=l=>d(l.target.value))},null,42,Fye)):(Se(),Re("input",{key:1,ref_key:"input",ref:s,type:"password",required:!!e.data.required,class:ct(["input",e.hasError&&"error"]),placeholder:e.data.placeholder,onInput:o[1]||(o[1]=l=>d(l.target.value))},null,42,Bye))]))}}),rv=[{code:"+93",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+355",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+213",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+376",placeholder:"000-000",mask:"000-000"},{code:"+244",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+1",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"+54",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"+374",placeholder:"00-000-000",mask:"00-000-000"},{code:"+297",placeholder:"000-0000",mask:"000-0000"},{code:"+61",placeholder:"0-0000-0000",mask:"0-0000-0000"},{code:"+43",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"+994",placeholder:"00-000-00-00",mask:"00-000-00-00"},{code:"+973",placeholder:"0000-0000",mask:"0000-0000"},{code:"+880",placeholder:"1000-000000",mask:"1000-000000"},{code:"+375",placeholder:"(00)000-00-00",mask:"(00)000-00-00"},{code:"+32",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+501",placeholder:"000-0000",mask:"000-0000"},{code:"+229",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"+975",placeholder:"17-000-000",mask:"17-000-000|0-000-000"},{code:"+591",placeholder:"0-000-0000",mask:"0-000-0000"},{code:"+387",placeholder:"00-0000",mask:"00-0000|00-00000"},{code:"+267",placeholder:"00-000-000",mask:"00-000-000"},{code:"+55",placeholder:"(00)0000-0000",mask:"(00)0000-0000|(00)00000-0000"},{code:"+673",placeholder:"000-0000",mask:"000-0000"},{code:"+359",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+226",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"+257",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"+855",placeholder:"00-000-000",mask:"00-000-000"},{code:"+237",placeholder:"0000-0000",mask:"0000-0000"},{code:"+238",placeholder:"(000)00-00",mask:"(000)00-00"},{code:"+236",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"+235",placeholder:"00-00-00-00",mask:"00-00-00-00"},{code:"+56",placeholder:"0-0000-0000",mask:"0-0000-0000"},{code:"+86",placeholder:"(000)0000-000",mask:"(000)0000-000|(000)0000-0000|00-00000-00000"},{code:"+57",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"+269",placeholder:"00-00000",mask:"00-00000"},{code:"+242",placeholder:"00-00000",mask:"00-00000"},{code:"+506",placeholder:"0000-0000",mask:"0000-0000"},{code:"+385",placeholder:"00-000-000",mask:"00-000-000"},{code:"+53",placeholder:"0-000-0000",mask:"0-000-0000"},{code:"+357",placeholder:"00-000-000",mask:"00-000-000"},{code:"+420",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+243",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+45",placeholder:"00-00-00-00",mask:"00-00-00-00"},{code:"+253",placeholder:"00-00-00-00",mask:"00-00-00-00"},{code:"+593",placeholder:"0-000-0000",mask:"0-000-0000|00-000-0000"},{code:"+20",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"+503",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"+240",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+291",placeholder:"0-000-000",mask:"0-000-000"},{code:"+372",placeholder:"000-0000",mask:"000-0000|0000-0000"},{code:"+268",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"+251",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+679",placeholder:"00-00000",mask:"00-00000"},{code:"+358",placeholder:"(000)000-00-00",mask:"(000)000-00-00"},{code:"+33",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+241",placeholder:"0-00-00-00",mask:"0-00-00-00"},{code:"+220",placeholder:"(000)00-00",mask:"(000)00-00"},{code:"+995",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+49",placeholder:"000-000",mask:"000-000|(000)00-00|(000)00-000|(000)00-0000|(000)000-0000|(0000)000-0000"},{code:"+233",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+30",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"+502",placeholder:"0-000-0000",mask:"0-000-0000"},{code:"+224",placeholder:"00-000-000",mask:"00-000-000|00-000-0000"},{code:"+245",placeholder:"0-000000",mask:"0-000000"},{code:"+592",placeholder:"000-0000",mask:"000-0000"},{code:"+509",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"+504",placeholder:"0000-0000",mask:"0000-0000"},{code:"+852",placeholder:"0000-0000",mask:"0000-0000"},{code:"+36",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+354",placeholder:"000-0000",mask:"000-0000"},{code:"+91",placeholder:"(0000)000-000",mask:"(0000)000-000"},{code:"+62",placeholder:"00-000-00",mask:"00-000-00|00-000-000|00-000-0000|(800)000-000|(800)000-00-000"},{code:"+98",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"+924",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"+353",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+972",placeholder:"0-000-0000",mask:"0-000-0000|50-000-0000"},{code:"+39",placeholder:"(000)0000-000",mask:"(000)0000-000"},{code:"+225",placeholder:"00-000-000",mask:"00-000-000"},{code:"+81",placeholder:"(000)000-000",mask:"(000)000-000|00-0000-0000"},{code:"+962",placeholder:"0-0000-0000",mask:"0-0000-0000"},{code:"+77",placeholder:"(600)000-00-00",mask:"(600)000-00-00|(700)000-00-00"},{code:"+254",placeholder:"000-000000",mask:"000-000000"},{code:"+850",placeholder:"000-000",mask:"000-000|0000-0000|00-000-000|000-0000-000|191-000-0000|0000-0000000000000"},{code:"+82",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+965",placeholder:"0000-0000",mask:"0000-0000"},{code:"+996",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+856",placeholder:"00-000-000",mask:"00-000-000|(2000)000-000"},{code:"+371",placeholder:"00-000-000",mask:"00-000-000"},{code:"+961",placeholder:"0-000-000",mask:"0-000-000|00-000-000"},{code:"+266",placeholder:"0-000-0000",mask:"0-000-0000"},{code:"+231",placeholder:"00-000-000",mask:"00-000-000"},{code:"+218",placeholder:"00-000-000",mask:"00-000-000|21-000-0000"},{code:"+423",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"+370",placeholder:"(000)00-000",mask:"(000)00-000"},{code:"+352",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+261",placeholder:"00-00-00000",mask:"00-00-00000"},{code:"+265",placeholder:"1-000-000",mask:"1-000-000|0-0000-0000"},{code:"+60",placeholder:"0-000-000",mask:"0-000-000|00-000-000|(000)000-000|00-000-0000"},{code:"+960",placeholder:"000-0000",mask:"000-0000"},{code:"+223",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"+356",placeholder:"0000-0000",mask:"0000-0000"},{code:"+596",placeholder:"(000)00-00-00",mask:"(000)00-00-00"},{code:"+222",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"+230",placeholder:"000-0000",mask:"000-0000"},{code:"+52",placeholder:"00-00-0000",mask:"00-00-0000|(000)000-0000"},{code:"+691",placeholder:"000-0000",mask:"000-0000"},{code:"+373",placeholder:"0000-0000",mask:"0000-0000"},{code:"+377",placeholder:"00-000-000",mask:"00-000-000|(000)000-000"},{code:"+976",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"+382",placeholder:"00-000-000",mask:"00-000-000"},{code:"+212",placeholder:"00-0000-000",mask:"00-0000-000"},{code:"+258",placeholder:"00-000-000",mask:"00-000-000"},{code:"+95",placeholder:"000-000",mask:"000-000|0-000-000|00-000-000"},{code:"+674",placeholder:"000-0000",mask:"000-0000"},{code:"+977",placeholder:"00-000-000",mask:"00-000-000"},{code:"+31",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+24",placeholder:"0-000-000",mask:"0-000-000|(000)000-000|(000)000-0000"},{code:"+505",placeholder:"0000-0000",mask:"0000-0000"},{code:"+227",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"+234",placeholder:"00-000-00",mask:"00-000-00|00-000-000|(000)000-0000"},{code:"+389",placeholder:"00-000-000",mask:"00-000-000"},{code:"+47",placeholder:"(000)00-000",mask:"(000)00-000"},{code:"+968",placeholder:"00-000-000",mask:"00-000-000"},{code:"+92",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"+680",placeholder:"000-0000",mask:"000-0000"},{code:"+970",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+507",placeholder:"000-0000",mask:"000-0000"},{code:"+675",placeholder:"(000)00-000",mask:"(000)00-000"},{code:"+595",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+51",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+63",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"+48",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+351",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+974",placeholder:"0000-0000",mask:"0000-0000"},{code:"+40",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+7",placeholder:"(000)000-00-00",mask:"(000)000-00-00"},{code:"+250",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+685",placeholder:"00-0000",mask:"00-0000"},{code:"+378",placeholder:"0000-000000",mask:"0000-000000"},{code:"+239",placeholder:"00-00000",mask:"00-00000"},{code:"+966",placeholder:"0-000-0000",mask:"0-000-0000|50-0000-0000"},{code:"+221",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+381",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+248",placeholder:"0-000-000",mask:"0-000-000"},{code:"+232",placeholder:"00-000000",mask:"00-000000"},{code:"+65",placeholder:"0000-0000",mask:"0000-0000"},{code:"+421",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+386",placeholder:"00-000-000",mask:"00-000-000"},{code:"+677",placeholder:"00000",mask:"00000|000-0000"},{code:"+252",placeholder:"0-000-000",mask:"0-000-000|00-000-000"},{code:"+27",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+211",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+34",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+94",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+249",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+597",placeholder:"000-000",mask:"000-000|000-0000"},{code:"+46",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+41",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+963",placeholder:"00-0000-000",mask:"00-0000-000"},{code:"+992",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+255",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+66",placeholder:"00-000-000",mask:"00-000-000|00-000-0000"},{code:"+670",placeholder:"000-0000",mask:"000-0000|770-00000|780-00000"},{code:"+228",placeholder:"00-000-000",mask:"00-000-000"},{code:"+676",placeholder:"00000",mask:"00000"},{code:"+216",placeholder:"00-000-000",mask:"00-000-000"},{code:"+90",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"+993",placeholder:"0-000-0000",mask:"0-000-0000"},{code:"+256",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"+380",placeholder:"(00)000-00-00",mask:"(00)000-00-00"},{code:"+971",placeholder:"0-000-0000",mask:"0-000-0000|50-000-0000"},{code:"+44",placeholder:"00-0000-0000",mask:"00-0000-0000"},{code:"+598",placeholder:"0-000-00-00",mask:"0-000-00-00"},{code:"+998",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+678",placeholder:"00000",mask:"00000|00-00000"},{code:"+58",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"+84",placeholder:"00-0000-000",mask:"00-0000-000|(000)0000-000"},{code:"+967",placeholder:"0-000-000",mask:"0-000-000|00-000-000|000-000-000"},{code:"+260",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"+263",placeholder:"",mask:""}],Gye={class:"phone-input"},Hye={class:"flex"},zye=["disabled","placeholder"],Yye=Te({__name:"component",props:{data:null,hasError:{type:Boolean},response:null},emits:["change","setInitialValue"],setup(e,{emit:t}){const n=e,r=ke(Math.random().toString(36).substr(2,9)),i=B(()=>{var b;return n.data.placeholder||((b=u.value)==null?void 0:b.placeholder)||""}),a=ke(rv),d=b=>{a.value=rv.filter(v=>v.code.toString().includes(b.query))},s=ke(""),u=ke(null),o=b=>{var v;s.value=u.value?Bs(((v=u.value)==null?void 0:v.mask)||"",b.target.value):b.target.value},l=()=>{var b;s.value=Bs(((b=u.value)==null?void 0:b.mask)||"",s.value),u.value&&m({countryCode:u.value.code,nationalNumber:s.value})},c=(b,v)=>({masked:`${b?b.code:""} ${v}`,raw:parseInt(`${b?b.code:""} ${v}`.replace(/\D/g,"")),countryCode:(b==null?void 0:b.code)||"",nationalNumber:v.replace(/\D/g,"")}),p=b=>{if(!!b){if(typeof b!="string"&&typeof b!="number")throw new Error("Invalid selectedOption code format");if(typeof b=="number"&&(b=b.toString()),b=b.trim(),b.startsWith("+")&&(b=b.slice(1)),uee(b))throw new Error("Invalid selectedOption code format");return`+${b}`}},f=b=>{if(!b)return null;if(typeof b=="number")return b.toString();if(typeof b=="string")return MP(b);throw new Error("Invalid national number format. It must contain only digit characters")},m=(b,v=!0)=>{var T;if(!b){s.value="",u.value=null;return}const E=rv.filter(O=>O.code===p(b.countryCode));if(!E.length)return;u.value=E[0];const y=f(b.nationalNumber);b.nationalNumber&&(s.value=Bs((T=u.value)==null?void 0:T.mask,y||"")),v&&(t("change",b),n.response.setValue(c(u.value,s.value)))},g=ke(),h=()=>{var E,y,T,O,C,R,x;const b=(T=(E=n.response.value)==null?void 0:E.countryCode)!=null?T:(y=n.data.initialValue)==null?void 0:y.countryCode,v=(x=(R=(O=n.response.value)==null?void 0:O.nationalNumber)!=null?R:(C=n.data.initialValue)==null?void 0:C.nationalNumber)!=null?x:"";return b?{countryCode:b,nationalNumber:v}:null};return it(()=>{const b=h();b&&m(b,!1);const v=document.querySelector(`#country-code-input-${r.value}`);v&&Cr.addInput(v),g.value&&Cr.addInput(g.value),t("setInitialValue",n.response)}),ze(()=>n.response.value,(b,v)=>{jt.exports.isEqual(b,v)||!n.response.value||m(n.response.value)}),(b,v)=>(Se(),Re("div",Gye,[N(mn,{label:e.data.label,required:!!e.data.required},null,8,["label","required"]),He("div",Hye,[N(Ve(H0),{modelValue:u.value,"onUpdate:modelValue":v[0]||(v[0]=E=>u.value=E),class:"select",pt:{input:{id:`country-code-input-${r.value}`}},"append-to":"self",dropdown:!0,suggestions:a.value,"option-label":"code",placeholder:"+00","force-selection":"",onComplete:v[1]||(v[1]=E=>d(E)),onItemSelect:v[2]||(v[2]=E=>l()),onItemUnselect:v[3]||(v[3]=E=>l())},{option:kn(E=>[He("span",null,pt(E.option.code),1)]),_:1},8,["modelValue","pt","suggestions"]),ur(He("input",{ref_key:"nationalNumberInput",ref:g,"onUpdate:modelValue":v[4]||(v[4]=E=>s.value=E),class:ct(["input",e.hasError&&"error",e.data.disabled&&"disabled"]),disabled:e.data.disabled,placeholder:Ve(i),onInput:o,onChange:v[5]||(v[5]=E=>l())},null,42,zye),[[Ul,s.value]])])]))}});const Vye=Qt(Yye,[["__scopeId","data-v-b6afb140"]]),qye={class:"rating-input"},jye={ref:"input",class:"rating-icons"},Wye=["onClick"],Kye=Te({__name:"component",props:{data:null,hasError:{type:Boolean},response:null},emits:["change","setInitialValue"],setup(e,{emit:t}){const n=e,r=s=>{var u;return s<((u=n.response.value)!=null?u:0)},i=B(()=>{var s,u;return Array((s=n.data.max)!=null?s:5).fill((u=n.data.char)!=null?u:"\u2B50")}),a=(s,u=!0)=>{n.response.setValue(s),u&&t("change",n.response)},d=s=>{n.data.disabled||a(s==n.response.value?null:s)};return it(()=>{var s,u;a((u=(s=n.response.value)!=null?s:n.data.initialValue)!=null?u:null,!1),t("setInitialValue",n.response)}),(s,u)=>(Se(),Re("div",qye,[N(mn,{label:e.data.label,required:!!e.data.required},null,8,["label","required"]),He("div",jye,[(Se(!0),Re(Xe,null,On(Ve(i),(o,l)=>(Se(),Re("div",{key:l,class:ct(["rating-icon",{active:r(l),disabled:e.data.disabled}]),tabindex:"0",onClick:c=>d(l+1)},pt(o),11,Wye))),128))],512)]))}});const Qye=Qt(Kye,[["__scopeId","data-v-68649f0f"]]);const Xye=Te({__name:"component",props:{data:null,hasError:{type:Boolean},response:null},emits:["change","setInitialValue"],setup(e,{emit:t}){const n=e,r=ke(null);window.document&&bM(()=>import("./vue-quill.esm-bundler.8d697628.js"),[]).then(s=>{r.value=s.QuillEditor});const i=(s,u=!0)=>{s!=d.value.getHTML()&&d.value.setHTML(s),s!=n.response.value&&n.response.setValue(s),u&&t("change",n.response)},a=()=>{var u,o;const s=(o=(u=d.value)==null?void 0:u.getHTML())!=null?o:"";i(s)},d=ke();return it(async()=>{var s,u,o;i((u=(s=n.response.value)!=null?s:n.data.initialValue)!=null?u:"",!1),t("setInitialValue",n.response),Cr.addInput((o=d.value)==null?void 0:o.getEditor(),!0),console.log("importing quill")}),ze(()=>n.response.value,s=>i(s!=null?s:"",!1)),(s,u)=>(Se(),Re(Xe,null,[N(mn,{label:e.data.label,required:!!e.data.required},null,8,["label","required"]),r.value?(Se(),Vn(iu(r.value),{key:0,ref_key:"input",ref:d,style:{height:"100%"},class:ct(["input",e.hasError&&"error",e.data.disabled&&"disabled"]),disabled:e.data.disabled,placeholder:e.data.placeholder,"onUpdate:content":u[0]||(u[0]=o=>a())},null,40,["class","disabled","placeholder"])):Lt("",!0)],64))}});const Zye={class:"tag-input"},Jye={class:"tags"},e0e=["onClick"],t0e={class:"remove-icon",viewBox:"0 0 24 24"},n0e=["d"],r0e=["disabled","placeholder"],i0e=Te({__name:"component",props:{data:null,response:null},emits:["change","setInitialValue"],setup(e,{emit:t}){const n=e,r=Dee,i=(o,l=!0)=>{var c;(c=n.response)==null||c.setValue(o),l&&t("change",n.response)},a=B(()=>{var o,l;return(l=(o=n.response)==null?void 0:o.value)!=null?l:[]}),d=o=>{if(n.data.disabled||!o)return;let l=a.value;l.find(c=>c===o)||(l=[...l,o],i(l),u.value.value="")},s=o=>{if(n.data.disabled)return;const l=a.value.filter((c,p)=>p!==o);i(l)},u=ke();return it(()=>{var o,l,c;i((c=(l=(o=n.response)==null?void 0:o.value)!=null?l:n.data.initialValue)!=null?c:[],!1),t("setInitialValue",n.response),Cr.addInput(u.value,!0)}),(o,l)=>(Se(),Re(Xe,null,[N(mn,{label:e.data.label,required:!!e.data.required},null,8,["label","required"]),He("div",Zye,[He("div",Jye,[(Se(!0),Re(Xe,null,On(Ve(a),(c,p)=>(Se(),Re("div",{key:c,class:"tag"},[Pn(pt(c)+" ",1),He("button",{class:"remove-tag",onClick:f=>s(p)},[(Se(),Re("svg",t0e,[He("path",{d:Ve(r)},null,8,n0e)]))],8,e0e)]))),128))]),He("input",{ref_key:"input",ref:u,class:ct(["input",{disabled:e.data.disabled}]),disabled:e.data.disabled,type:"text",placeholder:e.data.placeholder,onChange:l[0]||(l[0]=c=>d(c.target.value)),onKeyup:l[1]||(l[1]=pM(c=>d(c.target.value),["enter"]))},null,42,r0e)])],64))}});const o0e=Qt(i0e,[["__scopeId","data-v-dd0f7570"]]),a0e={class:"text-input"},s0e=["disabled","placeholder"],l0e=Te({__name:"component",props:{data:null,hasError:{type:Boolean},response:null},emits:["change","enter","setInitialValue"],setup(e,{emit:t}){const n=e,r=(s,u=!0)=>{s!=d.value.value&&(d.value.value=s),s!=n.response.value&&n.response.setValue(s),u&&t("change",n.response)},i=s=>{const u=n.data.mask?Bs(n.data.mask,s):s;r(u)},a=s=>{const u=s.target;n.data.mask&&Mp(n.data.mask,u.value)&&s.preventDefault()},d=ke();return it(()=>{var s,u;r((u=(s=n.response.value)!=null?s:n.data.initialValue)!=null?u:"",!1),t("setInitialValue",n.response),Cr.addInput(d.value)}),ze(()=>n.response.value,s=>r(s!=null?s:"",!1)),(s,u)=>(Se(),Re("div",a0e,[N(mn,{label:e.data.label,required:!!e.data.required},null,8,["label","required"]),He("input",{ref_key:"input",ref:d,class:ct(["input",e.hasError&&"error",e.data.disabled&&"disabled"]),disabled:e.data.disabled,placeholder:e.data.placeholder,onKeypress:u[0]||(u[0]=o=>a(o)),onInput:u[1]||(u[1]=o=>i(o.target.value))},null,42,s0e)]))}}),c0e=["disabled","placeholder"],u0e=Te({__name:"component",props:{data:null,hasError:{type:Boolean},response:null},emits:["change","setInitialValue"],setup(e,{emit:t}){const n=e,r=(d,s=!0)=>{d!=a.value.value&&(a.value.value=d),d!=n.response.value&&n.response.setValue(d),s&&t("change",n.response)},i=d=>{r(d)},a=ke();return it(()=>{var d,s;r((s=(d=n.response.value)!=null?d:n.data.initialValue)!=null?s:"",!1),t("setInitialValue",n.response),Cr.addInput(a.value,!0)}),ze(()=>n.response.value,d=>r(d!=null?d:"",!1)),(d,s)=>(Se(),Re(Xe,null,[N(mn,{label:e.data.label,required:!!e.data.required},null,8,["label","required"]),He("textarea",{ref_key:"input",ref:a,style:{height:"100%"},class:ct(["input",e.hasError&&"error",e.data.disabled&&"disabled"]),disabled:e.data.disabled,placeholder:e.data.placeholder,onInput:s[0]||(s[0]=u=>i(u.target.value))},null,42,c0e)],64))}});const d0e={class:"time-input"},p0e=["disabled"],f0e=Te({__name:"component",props:{data:null,hasError:{type:Boolean},response:null},emits:["change","setInitialValue"],setup(e,{emit:t}){var o,l;const n=e,r=B(()=>n.data.format==="ampm"?lee():cee()),i=B(()=>r.value.find(c=>jt.exports.isEqual(c.value,n.response.value))),a=ke((l=(o=i.value)==null?void 0:o.value)!=null?l:null),d=(c,p=!0)=>{if(typeof c=="string"){const[f,m]=c.split(":");c={hour:parseInt(f),minute:parseInt(m)}}n.response.setValue(c!=null?c:null),p&&t("change",n.response)},s=()=>{var p,f;let c=n.data.initialValue;return c===""?null:(f=(p=r.value.find(m=>m.label===c))==null?void 0:p.value)!=null?f:null},u=()=>{d(n.response.value||s()||null,!1),t("setInitialValue",n.response)};return it(()=>{u()}),(c,p)=>(Se(),Re("div",d0e,[N(mn,{label:e.data.label,required:!!e.data.required},null,8,["label","required"]),ur(He("input",{"onUpdate:modelValue":p[0]||(p[0]=f=>a.value=f),type:"time",class:"input",disabled:e.data.disabled,onChange:p[1]||(p[1]=f=>d(f.target.value))},null,40,p0e),[[Ul,a.value]])]))}});const _0e=Qt(f0e,[["__scopeId","data-v-05b46d78"]]),m0e={class:"toggle-input"},g0e={class:"label"},h0e=Te({__name:"component",props:{data:null,hasError:{type:Boolean},response:null},emits:["change","setInitialValue"],setup(e,{emit:t}){const n=e,r={background:"#ffffff",border:"1px solid #ced4da",color:"#495057",transition:"background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s"},i={...r,background:"var(--color-main)",border:"1px solid #ced4da"},a=B(()=>n.response.value=="1"),d=(u,o=!0)=>{n.response.setValue(u),o&&t("change",n.response)},s=()=>{n.data.disabled||d(a.value?"0":"1")};return it(()=>{var u;d((u=n.response.value)!=null?u:"0",!1),t("setInitialValue",n.response)}),(u,o)=>(Se(),Re("div",m0e,[He("div",g0e,pt(e.data.label),1),He("div",{class:ct(["toggle-box",e.data.disabled&&"disabled"]),style:Zn(Ve(a)?i:r),onClick:s},[N(Q5,{path:Ve(a)?Ve(ene):Ve(tne),widget:"25",height:"25",fill:Ve(a)?"#ffffff":"#000000"},null,8,["path","fill"]),He("span",{class:"toggle-text",style:Zn(Ve(a)?"color: #fff":"color: #000")},pt(Ve(a)?n.data.onText:n.data.offText),5)],6)]))}});const b0e=Qt(h0e,[["__scopeId","data-v-4eb73b47"]]),S0e={key:0,class:"upload-input"},v0e=["multiple","disabled"],E0e={key:0,class:"span-error"},y0e={class:"uploaded-files"},C0e=["src"],T0e=["onClick"],O0e=Te({__name:"component",props:{data:null,hasError:{type:Boolean},response:null},emits:["change","setInitialValue"],setup(e,{emit:t}){const n=e,r=B(()=>jt.exports.isArray(n.response.value)?n.response.value:n.response.value!=null?[n.response.value]:[]),i=Kt({files:[],isLoading:!1,assetURL:"",error:""}),a=async(c,p=!0)=>{var v;const f=n.data.multiple?c:(v=c[0])!=null?v:null;jt.exports.isEqual(f,n.response.value)||n.response.setValue(f);const m=i.files.filter(E=>c.includes(E.url)),g=m.map(E=>E.url),h=c.filter(E=>!g.includes(E)),b=await Promise.all(h.map(async E=>{var O;const y=await fetch(E).then(C=>C.blob());return{file:new File([y],(O=E.split("/").pop())!=null?O:""),url:E}}));i.files=[...m,...b],p&&t("change",n.response)},d=c=>{i.files=i.files.filter((p,f)=>f!==c),a(r.value.filter((p,f)=>f!==c))},u=z0({state:i,props:n,clearErrors:()=>{i.error="",n.response.clearErrors()},setValue:a}),o=()=>{let c=n.data.initialValue;return jt.exports.isArray(c)?c=c.filter(p=>p!=null):c?c=[c]:c=[],c},l=()=>{const c=o();r.value.length?a(r.value,!1):c.length?a(c,!1):a([]),t("setInitialValue",n.response)};return it(()=>{l()}),ze(()=>n.response.value,(c,p)=>{jt.exports.isEqual(c,p)||a(r.value,!1)}),(c,p)=>(Se(),Re(Xe,null,[N(mn,{label:e.data.label,required:!!e.data.required},null,8,["label","required"]),i.isLoading?(Se(),Vn(Y0,{key:1})):(Se(),Re("div",S0e,[He("input",{ref:"input",type:"file",class:ct(["input",e.hasError&&"error"]),style:{display:"none"},accept:"video/*",multiple:e.data.multiple,disabled:e.data.disabled,onChange:p[0]||(p[0]=f=>Ve(u)(f)),onDragover:p[1]||(p[1]=li(()=>{},["prevent"]))},null,42,v0e),He("button",{class:ct(["button",{disabled:e.data.disabled}]),onClick:p[2]||(p[2]=f=>c.$refs.input.click())},[N(pf,{class:"icon",path:Ve(Mee)},null,8,["path"]),Pn(" Upload Video ")],2),i.error?(Se(),Re("span",E0e,pt(i.error),1)):Lt("",!0),He("div",y0e,[(Se(!0),Re(Xe,null,On(i.files,(f,m)=>(Se(),Re("div",{key:m,class:"video-file"},[He("video",{src:f.url,controls:!0},null,8,C0e),He("span",{onClick:g=>d(m)},"X",8,T0e)]))),128))])]))],64))}});const w0e=Qt(O0e,[["__scopeId","data-v-687e0d3a"]]),R0e={"answer-sheet-input":AJ,"cards-input":YJ,"checkbox-input":jJ,"checklist-input":tee,"click-input":nee,"cnpj-input":_ee,"code-input":gee,"cpf-input":See,"currency-input":Tee,"custom-input":Ree,"date-input":Aee,"dropdown-input":_te,"email-input":hte,"file-input":Ite,"image-input":$te,"kanban-board-input":Kte,"list-input":dne,"multiple-choice-input":vne,"nps-input":Rne,"number-input":Ane,"number-slider-input":Pne,"pandas-row-selection-input":Lye,"password-input":Uye,"phone-input":Vye,"rating-input":Qye,"rich-text-input":Xye,"tag-input":o0e,"text-input":l0e,"textarea-input":u0e,"time-input":_0e,"toggle-input":b0e,"video-input":w0e},DCe=e=>R0e.hasOwnProperty(e),x0e=e=>(m1("data-v-64b8373a"),e=e(),g1(),e),I0e={class:"file-output"},N0e=["href"],A0e=x0e(()=>He("iframe",{src:"about:blank",name:"iframe_a",class:"target-frame"},null,-1)),D0e=Te({__name:"component",props:{data:null},setup(e){return(t,n)=>{var r;return Se(),Re("div",I0e,[He("a",{href:e.data.fileUrl,class:"download-button button",target:"iframe_a"},[N(pf,{class:"icon",path:Ve(kP)},null,8,["path"]),Pn(" "+pt((r=e.data.downloadText)!=null?r:"Download"),1)],8,N0e),A0e])}}});const M0e=Qt(D0e,[["__scopeId","data-v-64b8373a"]]),k0e=["innerHTML"],P0e=Te({__name:"component",props:{data:null},setup(e){return(t,n)=>(Se(),Re("div",{innerHTML:e.data.html},null,8,k0e))}}),L0e=["src","width","height"],$0e=Te({__name:"component",props:{data:null},setup(e){return(t,n)=>(Se(),Re("iframe",{class:"iframe",src:e.data.url,width:e.data.width,height:e.data.height},null,8,L0e))}});const F0e=Qt($0e,[["__scopeId","data-v-1f59d435"]]),B0e=["src","alt"],U0e={key:0,class:"subtitle center"},G0e=Te({__name:"component",props:{data:null},setup(e){return(t,n)=>(Se(),Re(Xe,null,[N(mn,{label:e.data.label,required:!1},null,8,["label"]),He("img",{class:"image",src:e.data.imageUrl,alt:e.data.subtitle},null,8,B0e),e.data.subtitle?(Se(),Re("div",U0e,pt(e.data.subtitle),1)):Lt("",!0)],64))}});const H0e=Qt(G0e,[["__scopeId","data-v-fe95b470"]]),z0e=Te({__name:"component",props:{data:null},setup(e){const t=ke(null);return it(async()=>{await Promise.all([SE("https://polyfill.io/v3/polyfill.min.js?features=es6"),SE("https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js")]),window.MathJax.typesetPromise([t.value])}),(n,r)=>(Se(),Re("div",{ref_key:"latex",ref:t,class:"latex"},pt(e.data.text),513))}});const Y0e=Qt(z0e,[["__scopeId","data-v-93c800e2"]]),V0e=["href","target"],q0e=Te({__name:"component",props:{data:null},setup(e){return(t,n)=>(Se(),Re("a",{class:"link",href:e.data.linkUrl,target:e.data.sameTab?"":"_blank"},pt(e.data.linkText),9,V0e))}}),j0e=Te({__name:"component",props:{data:null},setup(e){return(t,n)=>{const r=Nl("Markdown");return Se(),Vn(r,{class:"markdown-output",source:e.data.text,html:""},null,8,["source"])}}});const W0e=Qt(j0e,[["__scopeId","data-v-450605a7"]]),K0e=["height","width"],Q0e=Te({__name:"component",props:{data:null,runtime:null,containerHeight:null,containerWidth:null,zoom:null},emits:["row-click","action-click","row-edit"],setup(e,{emit:t}){const n=e,r=55+32,i=68,a=10,d=ke(null),s=B(()=>n.runtime==="dash"),u=({action:f,row:m})=>{t("action-click",{action:f,data:m})};function o({row:f}){t("row-click",{data:f.data,index:f.index})}function l({oldRow:f,newRow:m}){const g=pee(f,m);t("row-edit",{old:f,new:g,index:f.index})}ze(n.data.table.data,()=>{});const c=B(()=>(n.data.displayIndex?n.data.table.schema.fields:n.data.table.schema.fields.filter(f=>f.name!="index")).map(f=>({...f,title:f.name.toString(),key:f.name.toString()}))),p=B(()=>!s.value||typeof n.containerHeight!="number"?a:Math.trunc((n.containerHeight-r)/i));return(f,m)=>{var g;return Se(),Re("div",{height:e.containerHeight,width:e.containerWidth},[N(mn,{ref_key:"label",ref:d,label:n.data.label,required:!1},null,8,["label"]),N(jB,{data:e.data.table.data,"onUpdate:data":m[0]||(m[0]=h=>e.data.table.data=h),columns:Ve(c),"rows-per-page":Ve(p),"enable-search":"",editable:e.data.editable,actions:(g=n.data.actions)!=null&&g.length?n.data.actions:void 0,onActionClick:u,onRowClick:o,onRowEdit:l},null,8,["data","columns","rows-per-page","editable","actions"])],8,K0e)}}}),X0e=Te({__name:"component",props:{data:null},setup(e){const t=e,n=ke(null);it(async()=>{r()});const r=async()=>{await SE("https://cdn.plot.ly/plotly-latest.min.js"),Plotly.newPlot(n.value,t.data.figure.data,t.data.figure.layout)};return ze(()=>t.data.figure,r,{deep:!0}),(i,a)=>(Se(),Re(Xe,null,[N(mn,{label:e.data.label,required:!1},null,8,["label"]),He("div",{ref_key:"root",ref:n,class:"chart"},null,512)],64))}});const Z0e=Qt(X0e,[["__scopeId","data-v-cbdcf11a"]]),J0e={class:"progress-output"},eCe={class:"progress-container"},tCe={class:"progress-text label"},nCe=Te({__name:"component",props:{data:null},setup(e){const t=e,n=B(()=>{const{current:r,total:i}=t.data;return{width:`calc(${Math.min(100*r/i,100).toFixed(2)}% - 6px)`}});return(r,i)=>(Se(),Re("div",J0e,[He("div",eCe,[He("div",{class:"progress-content",style:Zn(Ve(n))},null,4)]),He("div",tCe,pt(e.data.text),1)]))}});const rCe=Qt(nCe,[["__scopeId","data-v-752753e3"]]),iCe=Te({__name:"component",props:{data:null},setup(e){const t=e;function n(i){switch(i){case"small":return"12px";case"medium":return"16px";case"large":return"24px";default:return"16px"}}const r=B(()=>({fontSize:n(t.data.size)}));return(i,a)=>(Se(),Re("div",{class:"text",style:Zn(Ve(r))},pt(e.data.text),5))}}),oCe={class:"start-widget"},aCe={class:"title"},sCe={class:"start-message"},lCe=Te({__name:"component",props:{form:{type:Object,required:!0}},setup(e){return(t,n)=>(Se(),Re("div",oCe,[He("div",aCe,pt(e.form.welcomeTitle||e.form.title),1),He("div",sCe,pt(e.form.startMessage),1)]))}});const cCe=Qt(lCe,[["__scopeId","data-v-9cd9cf8d"]]),uCe={class:"text"},dCe=Te({__name:"component",props:{form:{type:Object,required:!0}},setup(e){return(t,n)=>{var r;return Se(),Re("div",uCe,pt((r=e.form.endMessage)!=null?r:"Thank you"),1)}}});const pCe=Qt(dCe,[["__scopeId","data-v-1baab646"]]),fCe={class:"text"},_Ce={key:0,class:"session-id"},mCe=Te({__name:"component",props:{form:{type:Object,required:!0},sessionId:{type:String,required:!1}},setup(e){return(t,n)=>{var r;return Se(),Re("div",fCe,[Pn(pt((r=e.form.errorMessage)!=null?r:"Oops.. something went wrong")+" ",1),e.sessionId?(Se(),Re("div",_Ce,"Reference: "+pt(e.sessionId),1)):Lt("",!0)])}}});const gCe=Qt(mCe,[["__scopeId","data-v-9c18087d"]]),MCe={start:cCe,end:pCe,error:gCe},kCe={"file-output":M0e,"html-output":P0e,"iframe-output":F0e,"image-output":H0e,"latex-output":Y0e,"link-output":q0e,"markdown-output":W0e,"pandas-output":Q0e,"plotly-output":Z0e,"progress-output":rCe,"text-output":iCe},PCe=(e,t)=>{Object.keys(t).forEach(n=>{e.component(n,t[n])})};export{HV as $,Zn as A,ln as B,OCe as C,Lt as D,li as E,Xe as F,ct as G,yCe as H,Q5 as I,CCe as J,B as K,On as L,TCe as M,pt as N,m1 as O,xCe as P,g1 as Q,Ie as R,ky as S,Qd as T,Pn as U,jt as V,ur as W,lM as X,zi as Y,Ul as Z,bM as _,Nl as a,q5 as a0,GV as a1,ze as a2,t0 as a3,ACe as a4,Cr as a5,ICe as a6,NCe as a7,iu as a8,DCe as a9,G0 as aA,$P as aB,LP as aC,Ju as aD,$t as aa,bt as ab,Ya as ac,pf as ad,en as ae,pM as af,ZM as ag,vCe as ah,NY as ai,e0 as aj,$6 as ak,tn as al,$a as am,I1 as an,Ds as ao,Ky as ap,Yi as aq,F5 as ar,uM as as,gI as at,dS as au,Nn as av,Gn as aw,zee as ax,oJ as ay,RCe as az,Se as b,Re as c,Te as d,N as e,ECe as f,SCe as g,MV as h,wCe as i,PCe as j,Bl as k,R0e as l,kCe as m,MCe as n,it as o,zc as p,Qt as q,ke as r,fJ as s,Vn as t,bCe as u,Kt as v,kn as w,He as x,HY as y,Ve as z}; +//# sourceMappingURL=registerWidgets.cb3a7b8d.js.map diff --git a/abstra_statics/dist/assets/runnerData.331b4b09.js b/abstra_statics/dist/assets/runnerData.7b7cb682.js similarity index 99% rename from abstra_statics/dist/assets/runnerData.331b4b09.js rename to abstra_statics/dist/assets/runnerData.7b7cb682.js index f4aaf453fc..16417b92dc 100644 --- a/abstra_statics/dist/assets/runnerData.331b4b09.js +++ b/abstra_statics/dist/assets/runnerData.7b7cb682.js @@ -1,4 +1,4 @@ -import{V as d}from"./registerWidgets.3fe0df5a.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ce8e3733-8b64-4545-aec5-e23ced8c21ab",e._sentryDebugIdIdentifier="sentry-dbid-ce8e3733-8b64-4545-aec5-e23ced8c21ab")}catch{}})();const w={"answer-sheet-input":{name:"Answer sheet",description:"Retrieve the answers from a test on usual answersheet",type:"answer-sheet-input",events:[{key:"change",description:"Function or expression to be run when the input value changes",payloadSchema:[]}],autoHeight:!0,dashProperties:{minWidth:200,minHeight:350,initialWidth:200,initialHeight:350},pythonAPI:{name:"read_answer_sheet",params:[{argName:"label",description:"The label to display to the user",typeName:"str",isKwarg:!1,default:null,dashesInitialValue:'"Answer Sheet Title"'},{argName:"options",description:"The options which can be chosen as an answer",typeName:"list",typeDescription:["list[str]"],isKwarg:!1,default:'["A", "B", "C", "D", "E"]',dashesInitialValue:'["A", "B", "C", "D", "E"]'},{argName:"number_of_questions",description:"Number of questions the answersheet will cover",typeName:"int",isKwarg:!1,default:"5",dashesInitialValue:"5"},{argName:"disabled",description:"whether the input is disabled. Defaults to False.",typeName:"bool",isKwarg:!0,default:"False"},{argName:"required",description:'Whether the input is required or not eg. "this field is required". Defaults to True.',typeName:"Union[bool, str]",typeDescription:["bool","str"],isKwarg:!0,default:"True",formOnly:!0},{argName:"hint",description:"A tooltip displayed to the user. Defaults to None.",typeName:"str",isKwarg:!0,default:"None"},{argName:"end_program",description:"Whether the program should end after the widget is shown. Defaults to False.",typeName:"bool",isKwarg:!0,default:"False",formOnly:!0},{argName:"full_width",description:"Whether the input should use full screen width. Defaults to False.",typeName:"bool",isKwarg:!0,default:"False",formOnly:!0},{argName:"button_text",description:"What text to display on the button when the widget is not part of a Page. Defaults to 'Next'.",typeName:"str",isKwarg:!0,default:"Next",formOnly:!0}],returns:[{typeName:null,typeDescription:"list: The values/value selected by the user"}]},brokerAPI:{params:[{argName:"label",typeName:"string",description:"The label of the input"},{argName:"options",typeName:"array",description:"The options which can be chosen as an answer"},{argName:"numberOfQuestions",typeName:"number",description:"Number of questions the answersheet will cover"},{argName:"key",typeName:"string",description:"The key of the input on the returning object"},{argName:"disabled",typeName:"boolean",description:"Whether the input is disabled"},{argName:"hint",typeName:["string","null"],description:"message describing the input",default:null,isOptional:!0},{argName:"end_program",typeName:["boolean","null"],description:"End program after this widget is shown",default:!1,isOptional:!0},{argName:"required",typeName:["boolean","string"],description:"Whether the input is required or not",default:!0,isOptional:!0,formOnly:!0},{argName:"columns",typeName:"number",description:"number of columns this input will take",isOptional:!0,formOnly:!0},{argName:"fullWidth",typeName:"boolean",description:"Whether the widget should take up the full width of the page",isOptional:!0,formOnly:!0}]},examples:[{props:{label:"SAT - 2023",options:["A","B","C","D","E"],numberOfQuestions:5},name:"Basic Example",description:"The following example demonstrate some of the available functionality for read_answer_sheet",key:"example1",code:`from abstra.forms import read_answer_sheet +import{V as d}from"./registerWidgets.cb3a7b8d.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="45aa1712-f701-4453-9877-517ac2e81a08",e._sentryDebugIdIdentifier="sentry-dbid-45aa1712-f701-4453-9877-517ac2e81a08")}catch{}})();const w={"answer-sheet-input":{name:"Answer sheet",description:"Retrieve the answers from a test on usual answersheet",type:"answer-sheet-input",events:[{key:"change",description:"Function or expression to be run when the input value changes",payloadSchema:[]}],autoHeight:!0,dashProperties:{minWidth:200,minHeight:350,initialWidth:200,initialHeight:350},pythonAPI:{name:"read_answer_sheet",params:[{argName:"label",description:"The label to display to the user",typeName:"str",isKwarg:!1,default:null,dashesInitialValue:'"Answer Sheet Title"'},{argName:"options",description:"The options which can be chosen as an answer",typeName:"list",typeDescription:["list[str]"],isKwarg:!1,default:'["A", "B", "C", "D", "E"]',dashesInitialValue:'["A", "B", "C", "D", "E"]'},{argName:"number_of_questions",description:"Number of questions the answersheet will cover",typeName:"int",isKwarg:!1,default:"5",dashesInitialValue:"5"},{argName:"disabled",description:"whether the input is disabled. Defaults to False.",typeName:"bool",isKwarg:!0,default:"False"},{argName:"required",description:'Whether the input is required or not eg. "this field is required". Defaults to True.',typeName:"Union[bool, str]",typeDescription:["bool","str"],isKwarg:!0,default:"True",formOnly:!0},{argName:"hint",description:"A tooltip displayed to the user. Defaults to None.",typeName:"str",isKwarg:!0,default:"None"},{argName:"end_program",description:"Whether the program should end after the widget is shown. Defaults to False.",typeName:"bool",isKwarg:!0,default:"False",formOnly:!0},{argName:"full_width",description:"Whether the input should use full screen width. Defaults to False.",typeName:"bool",isKwarg:!0,default:"False",formOnly:!0},{argName:"button_text",description:"What text to display on the button when the widget is not part of a Page. Defaults to 'Next'.",typeName:"str",isKwarg:!0,default:"Next",formOnly:!0}],returns:[{typeName:null,typeDescription:"list: The values/value selected by the user"}]},brokerAPI:{params:[{argName:"label",typeName:"string",description:"The label of the input"},{argName:"options",typeName:"array",description:"The options which can be chosen as an answer"},{argName:"numberOfQuestions",typeName:"number",description:"Number of questions the answersheet will cover"},{argName:"key",typeName:"string",description:"The key of the input on the returning object"},{argName:"disabled",typeName:"boolean",description:"Whether the input is disabled"},{argName:"hint",typeName:["string","null"],description:"message describing the input",default:null,isOptional:!0},{argName:"end_program",typeName:["boolean","null"],description:"End program after this widget is shown",default:!1,isOptional:!0},{argName:"required",typeName:["boolean","string"],description:"Whether the input is required or not",default:!0,isOptional:!0,formOnly:!0},{argName:"columns",typeName:"number",description:"number of columns this input will take",isOptional:!0,formOnly:!0},{argName:"fullWidth",typeName:"boolean",description:"Whether the widget should take up the full width of the page",isOptional:!0,formOnly:!0}]},examples:[{props:{label:"SAT - 2023",options:["A","B","C","D","E"],numberOfQuestions:5},name:"Basic Example",description:"The following example demonstrate some of the available functionality for read_answer_sheet",key:"example1",code:`from abstra.forms import read_answer_sheet answer_sheet = read_answer_sheet("SAT - 2023", ["A", "B", "C", "D", "E"], 5) # answer_sheet = { '1': 'A', '2': None, '3': 'C' } @@ -491,4 +491,4 @@ for i in range(10): display("Hello world!") `}]}},h=e=>"type"in e&&e.type in w,_=e=>"type"in e&&e.type in w,F=e=>d.exports.upperFirst(d.exports.camelCase(e)),P=(e,t)=>d.exports.pickBy(e,a=>{const i=t[a.type].pythonAPI.params,r=d.exports.pickBy(a.props,(o,s)=>{const l=i.find(p=>p.argName===s),u=o.trim();return!(!l||u.length===0)});return!i.some(o=>{if(!o.isKwarg&&!(o.argName in r)&&!o.default)return!0})});function I(e,t){const a=(i,r)=>{var n;return((n=i.toLocaleLowerCase().match(new RegExp(r.toLocaleLowerCase().replace(/(\\)/g,"\\\\"),"g")))!=null?n:[]).length/i.length};return t.reduce((i,r)=>i+10*a(e.type,r)+5*a(e.name,r)+1*a(e.description,r),0)}function A(e,t){return e.length!==t.length?!1:e.every(a=>t.includes(a))}const g=(e,t)=>{for(const a in t){if(a===e)return t[a];const i=t[a];if(h(i))continue;const r=g(e,i.slot);if(r)return r}return null},x=(e,t)=>{for(const a in t){const i=t[a];if(h(i))continue;if(a===e)return i;const r=x(e,i.slot);if(r)return r}return null},q=(e,t)=>g(e,m(t)),H=(e,t)=>{const a=g(e,m(t));if(!a)throw new Error("widget not found");return a.id=e,a},E=(e,t)=>x(e,m(t)),m=e=>e.version==="0.1"?e.widgets:e.slot,S=e=>e.version==="0.1"?"/widgets":"/slot",B=e=>{const t=e.slot,a=[],i=r=>{for(const n in r){const o=r[n];_(o)?a.push(n):i(o.slot)}};return i(t),a},O="#414a58",T="DM Sans",W="Inter";function C(e){var t,a,i,r,n,o,s,l,u,p,f,c,y,N,b;return{id:e.id,path:e.path,theme:(t=e.workspace.theme)!=null?t:"#FFFFFF",brandName:(a=e.workspace.brand_name)!=null?a:null,title:e.title,isLocal:(i=e.is_local)!=null?i:!1,startMessage:(r=e.start_message)!=null?r:null,endMessage:(n=e.end_message)!=null?n:null,errorMessage:(o=e.error_message)!=null?o:null,timeoutMessage:(s=e.timeout_message)!=null?s:null,startButtonText:(l=e.start_button_text)!=null?l:null,restartButtonText:(u=e.restart_button_text)!=null?u:null,logoUrl:e.workspace.logo_url,mainColor:(p=e.workspace.main_color)!=null?p:O,fontFamily:(f=e.workspace.font_family)!=null?f:T,autoStart:(c=e.auto_start)!=null?c:!1,allowRestart:e.allow_restart,welcomeTitle:(y=e.welcome_title)!=null?y:null,runtimeType:"form",sidebar:(b=(N=e.workspace)==null?void 0:N.sidebar)!=null?b:[]}}function V(e){var t,a,i,r,n,o,s;return{id:e.path,path:e.path,title:e.title,theme:(t=e.workspace.theme)!=null?t:"#FFFFFF",brandName:e.workspace.brand_name,logoUrl:e.workspace.logo_url,mainColor:(a=e.workspace.main_color)!=null?a:O,fontFamily:(i=e.workspace.font_family)!=null?i:W,layout:e.layout,workspaceName:(n=(r=e.workspace)==null?void 0:r.name)!=null?n:"Untitled Workspace",runtimeType:"dash",sidebar:(s=(o=e.workspace)==null?void 0:o.sidebar)!=null?s:[]}}const U=e=>({...e,slot:k(m(e))}),D=e=>{var t,a;return{...e,id:(t=e.id)!=null?t:"",variable:(a=e.variable)!=null?a:null,props:Object.keys(e.props),events:Object.keys(e.events),position:{rowStart:e.rowStart,rowEnd:e.rowEnd,colStart:e.colStart,colEnd:e.colEnd}}},v=e=>({...e,slot:k(e.slot),props:e.props,position:{row:e.row,height:e.height,order:e.order}}),k=e=>{if(!e)throw new Error("Slot is undefined");return Object.keys(e).reduce((t,a)=>{const i=e[a];return h(i)?{...t,[a]:D(i)}:{...t,[a]:v(i)}},{})};export{H as a,m as b,S as c,U as d,E as e,g as f,F as g,q as h,h as i,P as j,A as k,_ as l,B as m,V as n,C as r,I as s,w}; -//# sourceMappingURL=runnerData.331b4b09.js.map +//# sourceMappingURL=runnerData.7b7cb682.js.map diff --git a/abstra_statics/dist/assets/tables.7792ead3.js b/abstra_statics/dist/assets/tables.b367c7a5.js similarity index 92% rename from abstra_statics/dist/assets/tables.7792ead3.js rename to abstra_statics/dist/assets/tables.b367c7a5.js index 2b1c95d34c..ba013ea7bd 100644 --- a/abstra_statics/dist/assets/tables.7792ead3.js +++ b/abstra_statics/dist/assets/tables.b367c7a5.js @@ -1,2 +1,2 @@ -var d=Object.defineProperty;var p=(a,e,t)=>e in a?d(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var c=(a,e,t)=>(p(a,typeof e!="symbol"?e+"":e,t),t);import{A as u}from"./activeRecord.2bc1b71f.js";import"./registerWidgets.3fe0df5a.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="6b74973b-1b9a-4489-83ad-8bd5e07648f7",a._sentryDebugIdIdentifier="sentry-dbid-6b74973b-1b9a-4489-83ad-8bd5e07648f7")}catch{}})();class y{async list(){return await(await fetch("/_editor/api/tables")).json()}async create(){return await(await fetch("/_editor/api/tables",{method:"POST",headers:{"Content-Type":"application/json"}})).json()}async get(e){return await(await fetch(`/_editor/api/tables/${e}`)).json()}async update(e,t){return await(await fetch(`/_editor/api/tables/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})).json()}async delete(e){await fetch(`/_editor/api/tables/${e}`,{method:"DELETE"})}async duplicate(e){return await(await fetch(`/_editor/api/tables/${e}/duplicate`,{method:"POST"})).json()}async dbTypes(){return(await fetch("/_editor/api/workspace/db-types")).json()}async selectRow(e,t,s){return(await fetch(`/_editor/api/tables/${e}/rows`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"select",where:t,params:s})})).json()}async insertRow(e,t){const s=await fetch(`/_editor/api/tables/${e}/rows`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"insert",values:t})});return s.ok?{type:"insert-row:success",row:await s.json()}:{type:"insert-row:error",reason:await s.text()}}async updateRow(e,t,s,r){const o=await fetch(`/_editor/api/tables/${e}/rows`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"update",params:r,where:t,set:s})});return o.ok?{type:"update-row:success",row:await o.json()}:{type:"update-row:error",reason:await o.text()}}async deleteRow(e,t,s){await fetch(`/_editor/api/tables/${e}/rows`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"delete",where:t,params:s})})}}const n=new y;class i{constructor(e){c(this,"record");this.record=u.create(n,e,"name")}static async list(){return(await n.list()).map(t=>new i(t))}static async create(){const e=await n.create();return new i(e)}static async get(e){const t=await n.get(e);return new i(t)}async delete(){await n.delete(this.name)}async duplicate(){const e=await n.duplicate(this.name);return new i(e)}async save(){await this.record.save()}onUpdate(e){this.record.pubsub.subscribe("update",e)}hasChanges(){return this.record.hasChanges()}get name(){return this.record.get("name")}set name(e){this.record.set("name",e)}getColumns(){return this.record.get("columns").map(e=>new Proxy(e,{get:(t,s)=>t[s],set:(t,s,r)=>(this.record.set("columns",this.record.get("columns").map(o=>o.name===t.name?{...o,[s]:r}:o)),!0)}))}async addColumn(e,t){const s={name:e,default:null,not_null:!1,primary_key:!1,type:t};this.record.set("columns",[...this.record.get("columns").map(r=>r),s])}static async dbTypes(){return n.dbTypes()}async deleteColumn(e){this.record.set("columns",this.record.get("columns").filter(t=>t.name!==e))}async select(e={}){const t=Object.keys(e).map(s=>`${s} = :${s}`).join(" AND ");return n.selectRow(this.name,t,e)}async insertRow(e){return n.insertRow(this.name,e)}async updateRow(e,t){const s=Object.keys(e).map(r=>`${r} = :${r}`).join(" AND ");return n.updateRow(this.name,s,t,e)}async deleteRow(e){const t=Object.keys(e).map(s=>`${s} = :${s}`).join(" AND ");return n.deleteRow(this.name,t,e)}}export{i as T}; -//# sourceMappingURL=tables.7792ead3.js.map +var d=Object.defineProperty;var p=(a,e,t)=>e in a?d(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var c=(a,e,t)=>(p(a,typeof e!="symbol"?e+"":e,t),t);import{A as u}from"./activeRecord.adfc6223.js";import"./registerWidgets.cb3a7b8d.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="844c9e61-bd17-4db0-9eeb-b447baa886a9",a._sentryDebugIdIdentifier="sentry-dbid-844c9e61-bd17-4db0-9eeb-b447baa886a9")}catch{}})();class y{async list(){return await(await fetch("/_editor/api/tables")).json()}async create(){return await(await fetch("/_editor/api/tables",{method:"POST",headers:{"Content-Type":"application/json"}})).json()}async get(e){return await(await fetch(`/_editor/api/tables/${e}`)).json()}async update(e,t){return await(await fetch(`/_editor/api/tables/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})).json()}async delete(e){await fetch(`/_editor/api/tables/${e}`,{method:"DELETE"})}async duplicate(e){return await(await fetch(`/_editor/api/tables/${e}/duplicate`,{method:"POST"})).json()}async dbTypes(){return(await fetch("/_editor/api/workspace/db-types")).json()}async selectRow(e,t,s){return(await fetch(`/_editor/api/tables/${e}/rows`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"select",where:t,params:s})})).json()}async insertRow(e,t){const s=await fetch(`/_editor/api/tables/${e}/rows`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"insert",values:t})});return s.ok?{type:"insert-row:success",row:await s.json()}:{type:"insert-row:error",reason:await s.text()}}async updateRow(e,t,s,r){const o=await fetch(`/_editor/api/tables/${e}/rows`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"update",params:r,where:t,set:s})});return o.ok?{type:"update-row:success",row:await o.json()}:{type:"update-row:error",reason:await o.text()}}async deleteRow(e,t,s){await fetch(`/_editor/api/tables/${e}/rows`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"delete",where:t,params:s})})}}const n=new y;class i{constructor(e){c(this,"record");this.record=u.create(n,e,"name")}static async list(){return(await n.list()).map(t=>new i(t))}static async create(){const e=await n.create();return new i(e)}static async get(e){const t=await n.get(e);return new i(t)}async delete(){await n.delete(this.name)}async duplicate(){const e=await n.duplicate(this.name);return new i(e)}async save(){await this.record.save()}onUpdate(e){this.record.pubsub.subscribe("update",e)}hasChanges(){return this.record.hasChanges()}get name(){return this.record.get("name")}set name(e){this.record.set("name",e)}getColumns(){return this.record.get("columns").map(e=>new Proxy(e,{get:(t,s)=>t[s],set:(t,s,r)=>(this.record.set("columns",this.record.get("columns").map(o=>o.name===t.name?{...o,[s]:r}:o)),!0)}))}async addColumn(e,t){const s={name:e,default:null,not_null:!1,primary_key:!1,type:t};this.record.set("columns",[...this.record.get("columns").map(r=>r),s])}static async dbTypes(){return n.dbTypes()}async deleteColumn(e){this.record.set("columns",this.record.get("columns").filter(t=>t.name!==e))}async select(e={}){const t=Object.keys(e).map(s=>`${s} = :${s}`).join(" AND ");return n.selectRow(this.name,t,e)}async insertRow(e){return n.insertRow(this.name,e)}async updateRow(e,t){const s=Object.keys(e).map(r=>`${r} = :${r}`).join(" AND ");return n.updateRow(this.name,s,t,e)}async deleteRow(e){const t=Object.keys(e).map(s=>`${s} = :${s}`).join(" AND ");return n.deleteRow(this.name,t,e)}}export{i as T}; +//# sourceMappingURL=tables.b367c7a5.js.map diff --git a/abstra_statics/dist/assets/tsMode.a31fb17b.js b/abstra_statics/dist/assets/tsMode.2820b8e7.js similarity index 98% rename from abstra_statics/dist/assets/tsMode.a31fb17b.js rename to abstra_statics/dist/assets/tsMode.2820b8e7.js index acd4674a88..a0ae564594 100644 --- a/abstra_statics/dist/assets/tsMode.a31fb17b.js +++ b/abstra_statics/dist/assets/tsMode.2820b8e7.js @@ -1,4 +1,4 @@ -var M=Object.defineProperty;var K=(e,t,r)=>t in e?M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var _=(e,t,r)=>(K(e,typeof t!="symbol"?t+"":t,r),r);import{t as R,m as E}from"./editor.main.aa43f13b.js";import"./registerWidgets.3fe0df5a.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="98039636-ca4a-418b-8718-cb4599864e3d",e._sentryDebugIdIdentifier="sentry-dbid-98039636-ca4a-418b-8718-cb4599864e3d")}catch{}})();/*!----------------------------------------------------------------------------- +var M=Object.defineProperty;var K=(e,t,r)=>t in e?M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var _=(e,t,r)=>(K(e,typeof t!="symbol"?t+"":t,r),r);import{t as R,m as E}from"./editor.main.2331c6e5.js";import"./registerWidgets.cb3a7b8d.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="dd305bda-fba1-4d16-94be-bf206d2e7162",e._sentryDebugIdIdentifier="sentry-dbid-dd305bda-fba1-4d16-94be-bf206d2e7162")}catch{}})();/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license @@ -14,4 +14,4 @@ ${O(r)}`;return t}};function O(e){let t=`*@${e.name}*`;if(e.name==="param"&&e.te `+n:"")}]}}},J=class extends w{async provideDocumentHighlights(e,t,r){const s=e.uri,a=e.getOffsetAt(t),u=await this._worker(s);if(e.isDisposed())return;const c=await u.getOccurrencesAtPosition(s.toString(),a);if(!(!c||e.isDisposed()))return c.map(g=>({range:this._textSpanToRange(e,g.textSpan),kind:g.isWriteAccess?i.languages.DocumentHighlightKind.Write:i.languages.DocumentHighlightKind.Text}))}},Q=class extends w{constructor(e,t){super(t),this._libFiles=e}async provideDefinition(e,t,r){const s=e.uri,a=e.getOffsetAt(t),u=await this._worker(s);if(e.isDisposed())return;const c=await u.getDefinitionAtPosition(s.toString(),a);if(!c||e.isDisposed()||(await this._libFiles.fetchLibFilesIfNecessary(c.map(n=>i.Uri.parse(n.fileName))),e.isDisposed()))return;const g=[];for(let n of c){const p=this._libFiles.getOrCreateModel(n.fileName);p&&g.push({uri:p.uri,range:this._textSpanToRange(p,n.textSpan)})}return g}},q=class extends w{constructor(e,t){super(t),this._libFiles=e}async provideReferences(e,t,r,s){const a=e.uri,u=e.getOffsetAt(t),c=await this._worker(a);if(e.isDisposed())return;const g=await c.getReferencesAtPosition(a.toString(),u);if(!g||e.isDisposed()||(await this._libFiles.fetchLibFilesIfNecessary(g.map(p=>i.Uri.parse(p.fileName))),e.isDisposed()))return;const n=[];for(let p of g){const d=this._libFiles.getOrCreateModel(p.fileName);d&&n.push({uri:d.uri,range:this._textSpanToRange(d,p.textSpan)})}return n}},X=class extends w{async provideDocumentSymbols(e,t){const r=e.uri,s=await this._worker(r);if(e.isDisposed())return;const a=await s.getNavigationBarItems(r.toString());if(!a||e.isDisposed())return;const u=(g,n,p)=>{let d={name:n.text,detail:"",kind:m[n.kind]||i.languages.SymbolKind.Variable,range:this._textSpanToRange(e,n.spans[0]),selectionRange:this._textSpanToRange(e,n.spans[0]),tags:[]};if(p&&(d.containerName=p),n.childItems&&n.childItems.length>0)for(let f of n.childItems)u(g,f,d.name);g.push(d)};let c=[];return a.forEach(g=>u(c,g)),c}},l=class{};b(l,"unknown","");b(l,"keyword","keyword");b(l,"script","script");b(l,"module","module");b(l,"class","class");b(l,"interface","interface");b(l,"type","type");b(l,"enum","enum");b(l,"variable","var");b(l,"localVariable","local var");b(l,"function","function");b(l,"localFunction","local function");b(l,"memberFunction","method");b(l,"memberGetAccessor","getter");b(l,"memberSetAccessor","setter");b(l,"memberVariable","property");b(l,"constructorImplementation","constructor");b(l,"callSignature","call");b(l,"indexSignature","index");b(l,"constructSignature","construct");b(l,"parameter","parameter");b(l,"typeParameter","type parameter");b(l,"primitiveType","primitive type");b(l,"label","label");b(l,"alias","alias");b(l,"const","const");b(l,"let","let");b(l,"warning","warning");var m=Object.create(null);m[l.module]=i.languages.SymbolKind.Module;m[l.class]=i.languages.SymbolKind.Class;m[l.enum]=i.languages.SymbolKind.Enum;m[l.interface]=i.languages.SymbolKind.Interface;m[l.memberFunction]=i.languages.SymbolKind.Method;m[l.memberVariable]=i.languages.SymbolKind.Property;m[l.memberGetAccessor]=i.languages.SymbolKind.Property;m[l.memberSetAccessor]=i.languages.SymbolKind.Property;m[l.variable]=i.languages.SymbolKind.Variable;m[l.const]=i.languages.SymbolKind.Variable;m[l.localVariable]=i.languages.SymbolKind.Variable;m[l.variable]=i.languages.SymbolKind.Variable;m[l.function]=i.languages.SymbolKind.Function;m[l.localFunction]=i.languages.SymbolKind.Function;var S=class extends w{static _convertOptions(e){return{ConvertTabsToSpaces:e.insertSpaces,TabSize:e.tabSize,IndentSize:e.tabSize,IndentStyle:2,NewLineCharacter:` `,InsertSpaceAfterCommaDelimiter:!0,InsertSpaceAfterSemicolonInForStatements:!0,InsertSpaceBeforeAndAfterBinaryOperators:!0,InsertSpaceAfterKeywordsInControlFlowStatements:!0,InsertSpaceAfterFunctionKeywordForAnonymousFunctions:!0,InsertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,InsertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,PlaceOpenBraceOnNewLineForControlBlocks:!1,PlaceOpenBraceOnNewLineForFunctions:!1}}_convertTextChanges(e,t){return{text:t.newText,range:this._textSpanToRange(e,t.span)}}},Y=class extends S{async provideDocumentRangeFormattingEdits(e,t,r,s){const a=e.uri,u=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),c=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),g=await this._worker(a);if(e.isDisposed())return;const n=await g.getFormattingEditsForRange(a.toString(),u,c,S._convertOptions(r));if(!(!n||e.isDisposed()))return n.map(p=>this._convertTextChanges(e,p))}},Z=class extends S{get autoFormatTriggerCharacters(){return[";","}",` `]}async provideOnTypeFormattingEdits(e,t,r,s,a){const u=e.uri,c=e.getOffsetAt(t),g=await this._worker(u);if(e.isDisposed())return;const n=await g.getFormattingEditsAfterKeystroke(u.toString(),c,r,S._convertOptions(s));if(!(!n||e.isDisposed()))return n.map(p=>this._convertTextChanges(e,p))}},ee=class extends S{async provideCodeActions(e,t,r,s){const a=e.uri,u=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),c=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),g=S._convertOptions(e.getOptions()),n=r.markers.filter(h=>h.code).map(h=>h.code).map(Number),p=await this._worker(a);if(e.isDisposed())return;const d=await p.getCodeFixesAtPosition(a.toString(),u,c,n,g);return!d||e.isDisposed()?{actions:[],dispose:()=>{}}:{actions:d.filter(h=>h.changes.filter(y=>y.isNewFile).length===0).map(h=>this._tsCodeFixActionToMonacoCodeAction(e,r,h)),dispose:()=>{}}}_tsCodeFixActionToMonacoCodeAction(e,t,r){const s=[];for(const u of r.changes)for(const c of u.textChanges)s.push({resource:e.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(e,c.span),text:c.newText}});return{title:r.description,edit:{edits:s},diagnostics:t.markers,kind:"quickfix"}}},te=class extends w{constructor(e,t){super(t),this._libFiles=e}async provideRenameEdits(e,t,r,s){const a=e.uri,u=a.toString(),c=e.getOffsetAt(t),g=await this._worker(a);if(e.isDisposed())return;const n=await g.getRenameInfo(u,c,{allowRenameOfImportPath:!1});if(n.canRename===!1)return{edits:[],rejectReason:n.localizedErrorMessage};if(n.fileToRename!==void 0)throw new Error("Renaming files is not supported.");const p=await g.findRenameLocations(u,c,!1,!1,!1);if(!p||e.isDisposed())return;const d=[];for(const f of p){const h=this._libFiles.getOrCreateModel(f.fileName);if(h)d.push({resource:h.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(h,f.textSpan),text:r}});else throw new Error(`Unknown file ${f.fileName}.`)}return{edits:d}}},re=class extends w{async provideInlayHints(e,t,r){const s=e.uri,a=s.toString(),u=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),c=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),g=await this._worker(s);return e.isDisposed()?null:{hints:(await g.provideInlayHints(a,u,c)).map(d=>({...d,label:d.text,position:e.getPositionAt(d.position),kind:this._convertHintKind(d.kind)})),dispose:()=>{}}}_convertHintKind(e){switch(e){case"Parameter":return i.languages.InlayHintKind.Parameter;case"Type":return i.languages.InlayHintKind.Type;default:return i.languages.InlayHintKind.Type}}},A,L;function ae(e){L=N(e,"typescript")}function oe(e){A=N(e,"javascript")}function le(){return new Promise((e,t)=>{if(!A)return t("JavaScript not registered!");e(A)})}function ce(){return new Promise((e,t)=>{if(!L)return t("TypeScript not registered!");e(L)})}function N(e,t){const r=new U(t,e),s=(...u)=>r.getLanguageServiceWorker(...u),a=new $(s);return i.languages.registerCompletionItemProvider(t,new D(s)),i.languages.registerSignatureHelpProvider(t,new I(s)),i.languages.registerHoverProvider(t,new G(s)),i.languages.registerDocumentHighlightProvider(t,new J(s)),i.languages.registerDefinitionProvider(t,new Q(a,s)),i.languages.registerReferenceProvider(t,new q(a,s)),i.languages.registerDocumentSymbolProvider(t,new X(s)),i.languages.registerDocumentRangeFormattingEditProvider(t,new Y(s)),i.languages.registerOnTypeFormattingEditProvider(t,new Z(s)),i.languages.registerCodeActionProvider(t,new ee(s)),i.languages.registerRenameProvider(t,new te(a,s)),i.languages.registerInlayHintsProvider(t,new re(s)),new z(a,e,t,s),s}export{w as Adapter,ee as CodeActionAdaptor,Q as DefinitionAdapter,z as DiagnosticsAdapter,Y as FormatAdapter,S as FormatHelper,Z as FormatOnTypeAdapter,re as InlayHintsAdapter,l as Kind,$ as LibFiles,J as OccurrencesAdapter,X as OutlineAdapter,G as QuickInfoAdapter,q as ReferenceAdapter,te as RenameAdapter,I as SignatureHelpAdapter,D as SuggestAdapter,U as WorkerManager,F as flattenDiagnosticMessageText,le as getJavaScriptWorker,ce as getTypeScriptWorker,oe as setupJavaScript,ae as setupTypeScript}; -//# sourceMappingURL=tsMode.a31fb17b.js.map +//# sourceMappingURL=tsMode.2820b8e7.js.map diff --git a/abstra_statics/dist/assets/typescript.71d17c95.js b/abstra_statics/dist/assets/typescript.b253befb.js similarity index 88% rename from abstra_statics/dist/assets/typescript.71d17c95.js rename to abstra_statics/dist/assets/typescript.b253befb.js index 573ba03f68..a65b3d6249 100644 --- a/abstra_statics/dist/assets/typescript.71d17c95.js +++ b/abstra_statics/dist/assets/typescript.b253befb.js @@ -1,7 +1,7 @@ -import{m as c}from"./editor.main.aa43f13b.js";import"./registerWidgets.3fe0df5a.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="ee0710ac-1f3f-434b-9863-c0ddded8e727",t._sentryDebugIdIdentifier="sentry-dbid-ee0710ac-1f3f-434b-9863-c0ddded8e727")}catch{}})();/*!----------------------------------------------------------------------------- +import{m as a}from"./editor.main.2331c6e5.js";import"./registerWidgets.cb3a7b8d.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="86265c74-3b97-4480-a234-7558e5999e3d",t._sentryDebugIdIdentifier="sentry-dbid-86265c74-3b97-4480-a234-7558e5999e3d")}catch{}})();/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var a=Object.defineProperty,p=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,g=Object.prototype.hasOwnProperty,s=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of d(e))!g.call(t,r)&&r!==n&&a(t,r,{get:()=>e[r],enumerable:!(i=p(e,r))||i.enumerable});return t},l=(t,e,n)=>(s(t,e,"default"),n&&s(n,e,"default")),o={};l(o,c);var u={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:o.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:o.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:o.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:o.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},f={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","out","package","private","protected","public","override","readonly","require","global","return","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<",">",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}};export{u as conf,f as language}; -//# sourceMappingURL=typescript.71d17c95.js.map + *-----------------------------------------------------------------------------*/var c=Object.defineProperty,p=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,s=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of g(e))!d.call(t,r)&&r!==n&&c(t,r,{get:()=>e[r],enumerable:!(i=p(e,r))||i.enumerable});return t},l=(t,e,n)=>(s(t,e,"default"),n&&s(n,e,"default")),o={};l(o,a);var u={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:o.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:o.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:o.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:o.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},x={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","out","package","private","protected","public","override","readonly","require","global","return","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<",">",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}};export{u as conf,x as language}; +//# sourceMappingURL=typescript.b253befb.js.map diff --git a/abstra_statics/dist/assets/uuid.0e63ad64.js b/abstra_statics/dist/assets/uuid.0e63ad64.js new file mode 100644 index 0000000000..caa78654bf --- /dev/null +++ b/abstra_statics/dist/assets/uuid.0e63ad64.js @@ -0,0 +1,2 @@ +import"./registerWidgets.cb3a7b8d.js";(function(){try{var x=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(x._sentryDebugIds=x._sentryDebugIds||{},x._sentryDebugIds[e]="468e8e98-8831-4642-bd79-0c99881878bb",x._sentryDebugIdIdentifier="sentry-dbid-468e8e98-8831-4642-bd79-0c99881878bb")}catch{}})();const d=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(x){const e=Math.random()*16|0;return(x=="x"?e:e&3|8).toString(16)});export{d as u}; +//# sourceMappingURL=uuid.0e63ad64.js.map diff --git a/abstra_statics/dist/assets/uuid.8e57fc19.js b/abstra_statics/dist/assets/uuid.8e57fc19.js deleted file mode 100644 index fd19a441c0..0000000000 --- a/abstra_statics/dist/assets/uuid.8e57fc19.js +++ /dev/null @@ -1,2 +0,0 @@ -import"./registerWidgets.3fe0df5a.js";(function(){try{var x=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(x._sentryDebugIds=x._sentryDebugIds||{},x._sentryDebugIds[e]="e10a7d6d-8bb1-48d0-b8d9-2a3f16482fb1",x._sentryDebugIdIdentifier="sentry-dbid-e10a7d6d-8bb1-48d0-b8d9-2a3f16482fb1")}catch{}})();const t=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(x){const e=Math.random()*16|0;return(x=="x"?e:e&3|8).toString(16)});export{t as u}; -//# sourceMappingURL=uuid.8e57fc19.js.map diff --git a/abstra_statics/dist/assets/vue-quill.esm-bundler.6c8b376b.js b/abstra_statics/dist/assets/vue-quill.esm-bundler.8d697628.js similarity index 99% rename from abstra_statics/dist/assets/vue-quill.esm-bundler.6c8b376b.js rename to abstra_statics/dist/assets/vue-quill.esm-bundler.8d697628.js index d29c945f19..c7a6a6929f 100644 --- a/abstra_statics/dist/assets/vue-quill.esm-bundler.6c8b376b.js +++ b/abstra_statics/dist/assets/vue-quill.esm-bundler.8d697628.js @@ -1,4 +1,4 @@ -import{a1 as tr,p as Tt,d as er,o as nr,al as rr,r as Fn,a2 as Ln,k as ir,ae as Un}from"./registerWidgets.3fe0df5a.js";(function(){try{var R=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},U=new Error().stack;U&&(R._sentryDebugIds=R._sentryDebugIds||{},R._sentryDebugIds[U]="7ae38af4-0288-4b98-85b9-c41461fe5b6f",R._sentryDebugIdIdentifier="sentry-dbid-7ae38af4-0288-4b98-85b9-c41461fe5b6f")}catch{}})();var Gn={exports:{}};/*! +import{a1 as tr,p as Tt,d as er,o as nr,al as rr,r as Fn,a2 as Ln,k as ir,ae as Un}from"./registerWidgets.cb3a7b8d.js";(function(){try{var R=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},U=new Error().stack;U&&(R._sentryDebugIds=R._sentryDebugIds||{},R._sentryDebugIds[U]="9feeb24b-1819-4522-94d3-a3f890eaad99",R._sentryDebugIdIdentifier="sentry-dbid-9feeb24b-1819-4522-94d3-a3f890eaad99")}catch{}})();var Gn={exports:{}};/*! * Quill Editor v1.3.7 * https://quilljs.com/ * Copyright (c) 2014, Jason Chen @@ -52,4 +52,4 @@ import{a1 as tr,p as Tt,d as er,o as nr,al as rr,r as Fn,a2 as Ln,k as ir,ae as */const $n={essential:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}],["blockquote","code-block","link"],[{color:[]},"clean"]],minimal:[[{header:1},{header:2}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}]],full:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["link","video","image"],["clean"]]},_r=er({name:"QuillEditor",inheritAttrs:!1,props:{content:{type:[String,Object]},contentType:{type:String,default:"delta",validator:R=>["delta","html","text"].includes(R)},enable:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},placeholder:{type:String,required:!1},theme:{type:String,default:"snow",validator:R=>["snow","bubble",""].includes(R)},toolbar:{type:[String,Array,Object],required:!1,validator:R=>typeof R=="string"&&R!==""?R.charAt(0)==="#"?!0:Object.keys($n).indexOf(R)!==-1:!0},modules:{type:Object,required:!1},options:{type:Object,required:!1},globalOptions:{type:Object,required:!1}},emits:["textChange","selectionChange","editorChange","update:content","focus","blur","ready"],setup:(R,U)=>{nr(()=>{E()}),rr(()=>{m=null});let m,p;const c=Fn(),E=()=>{var v;if(!!c.value){if(p=b(),R.modules)if(Array.isArray(R.modules))for(const O of R.modules)qn.register(`modules/${O.name}`,O.module);else qn.register(`modules/${R.modules.name}`,R.modules.module);m=new qn(c.value,p),f(R.content),m.on("text-change",o),m.on("selection-change",e),m.on("editor-change",s),R.theme!=="bubble"&&c.value.classList.remove("ql-bubble"),R.theme!=="snow"&&c.value.classList.remove("ql-snow"),(v=m.getModule("toolbar"))===null||v===void 0||v.container.addEventListener("mousedown",O=>{O.preventDefault()}),U.emit("ready",m)}},b=()=>{const v={};if(R.theme!==""&&(v.theme=R.theme),R.readOnly&&(v.readOnly=R.readOnly),R.placeholder&&(v.placeholder=R.placeholder),R.toolbar&&R.toolbar!==""&&(v.modules={toolbar:(()=>{if(typeof R.toolbar=="object")return R.toolbar;if(typeof R.toolbar=="string")return R.toolbar.charAt(0)==="#"?R.toolbar:$n[R.toolbar]})()}),R.modules){const O=(()=>{var k,L;const D={};if(Array.isArray(R.modules))for(const z of R.modules)D[z.name]=(k=z.options)!==null&&k!==void 0?k:{};else D[R.modules.name]=(L=R.modules.options)!==null&&L!==void 0?L:{};return D})();v.modules=Object.assign({},v.modules,O)}return Object.assign({},R.globalOptions,R.options,v)},_=v=>typeof v=="object"&&v?v.slice():v,y=v=>Object.values(v.ops).some(O=>!O.retain||Object.keys(O).length!==1);let g;const h=v=>{if(typeof g==typeof v){if(v===g)return!0;if(typeof v=="object"&&v&&typeof g=="object"&&g)return!y(g.diff(v))}return!1},o=(v,O,k)=>{g=_(i()),h(R.content)||U.emit("update:content",g),U.emit("textChange",{delta:v,oldContents:O,source:k})},t=Fn(),e=(v,O,k)=>{t.value=!!(m!=null&&m.hasFocus()),U.emit("selectionChange",{range:v,oldRange:O,source:k})};Ln(t,v=>{v?U.emit("focus",c):U.emit("blur",c)});const s=(...v)=>{v[0]==="text-change"&&U.emit("editorChange",{name:v[0],delta:v[1],oldContents:v[2],source:v[3]}),v[0]==="selection-change"&&U.emit("editorChange",{name:v[0],range:v[1],oldRange:v[2],source:v[3]})},l=()=>c.value,u=()=>{var v;return(v=m==null?void 0:m.getModule("toolbar"))===null||v===void 0?void 0:v.container},r=()=>{if(m)return m;throw`The quill editor hasn't been instantiated yet, make sure to call this method when the editor ready or use v-on:ready="onReady(quill)" event instead.`},i=(v,O)=>R.contentType==="html"?N():R.contentType==="text"?n(v,O):m==null?void 0:m.getContents(v,O),f=(v,O="api")=>{const k=v||(R.contentType==="delta"?new mr:"");R.contentType==="html"?w(k):R.contentType==="text"?d(k,O):m==null||m.setContents(k,O),g=_(k)},n=(v,O)=>{var k;return(k=m==null?void 0:m.getText(v,O))!==null&&k!==void 0?k:""},d=(v,O="api")=>{m==null||m.setText(v,O)},N=()=>{var v;return(v=m==null?void 0:m.root.innerHTML)!==null&&v!==void 0?v:""},w=v=>{m&&(m.root.innerHTML=v)},T=(v,O="api")=>{const k=m==null?void 0:m.clipboard.convert(v);k&&(m==null||m.setContents(k,O))},P=()=>{m==null||m.focus()},A=()=>{Un(()=>{var v;!U.slots.toolbar&&m&&((v=m.getModule("toolbar"))===null||v===void 0||v.container.remove()),E()})};return Ln(()=>R.content,v=>{if(!m||!v||h(v))return;const O=m.getSelection();O&&Un(()=>m==null?void 0:m.setSelection(O)),f(v)},{deep:!0}),Ln(()=>R.enable,v=>{m&&m.enable(v)}),{editor:c,getEditor:l,getToolbar:u,getQuill:r,getContents:i,setContents:f,getHTML:N,setHTML:w,pasteHTML:T,focus:P,getText:n,setText:d,reinit:A}},render(){var R,U;return[(U=(R=this.$slots).toolbar)===null||U===void 0?void 0:U.call(R),ir("div",{ref:"editor",...this.$attrs})]}});export{mr as Delta,qn as Quill,_r as QuillEditor}; -//# sourceMappingURL=vue-quill.esm-bundler.6c8b376b.js.map +//# sourceMappingURL=vue-quill.esm-bundler.8d697628.js.map diff --git a/abstra_statics/dist/assets/workspaces.220ebb5a.js b/abstra_statics/dist/assets/workspaces.5f21a554.js similarity index 88% rename from abstra_statics/dist/assets/workspaces.220ebb5a.js rename to abstra_statics/dist/assets/workspaces.5f21a554.js index b88a5093d5..7e5e26eeea 100644 --- a/abstra_statics/dist/assets/workspaces.220ebb5a.js +++ b/abstra_statics/dist/assets/workspaces.5f21a554.js @@ -1,2 +1,2 @@ -var n=Object.defineProperty;var i=(t,e,r)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var a=(t,e,r)=>(i(t,typeof e!="symbol"?e+"":e,r),r);import{A as d}from"./activeRecord.2bc1b71f.js";import"./registerWidgets.3fe0df5a.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="c8852de5-f53a-42c0-9389-66057a587099",t._sentryDebugIdIdentifier="sentry-dbid-c8852de5-f53a-42c0-9389-66057a587099")}catch{}})();class c{async get(){return await(await fetch("/_editor/api/workspace",{method:"GET",headers:{"Content-Type":"application/json"}})).json()}async update(e,r){return await(await fetch("/_editor/api/workspace",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)})).json()}async create(e){throw new Error("Not implemented")}async openFile(e){await fetch("/_editor/api/workspace/open-file",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e})})}async deploy(){await fetch("/_editor/api/workspace/deploy",{method:"POST",headers:{"Content-Type":"application/json"}})}}const o=new c;class s{constructor(e){a(this,"record");this.record=d.create(o,e,null)}static async get(){const e=await o.get();return new s(e)}static from(e){return new s(e)}get brandName(){var e;return(e=this.record.get("brand_name"))!=null?e:""}set brandName(e){this.record.set("brand_name",e)}get fontColor(){var e;return(e=this.record.get("font_color"))!=null?e:"#000000"}set fontColor(e){this.record.set("font_color",e)}get logoUrl(){return this.record.get("logo_url")}set logoUrl(e){this.record.set("logo_url",e)}get mainColor(){var e;return(e=this.record.get("main_color"))!=null?e:"#000000"}set mainColor(e){this.record.set("main_color",e)}get fontFamily(){var e;return(e=this.record.get("font_family"))!=null?e:"Inter"}set fontFamily(e){this.record.set("font_family",e)}get theme(){var e;return(e=this.record.get("theme"))!=null?e:"#ffffff"}set theme(e){this.record.set("theme",e)}async save(){return this.record.save()}hasChanges(){return this.record.hasChanges()}async openFile(e){await o.openFile(e)}static async deploy(){await o.deploy()}get sidebar(){var e;return(e=this.record.get("sidebar"))!=null?e:[]}set sidebar(e){this.record.set("sidebar",e)}makeRunnerData(){const e=this.logoUrl?this.logoUrl.startsWith("http://")?this.logoUrl:this.logoUrl.startsWith("https://")?this.logoUrl:"/_assets/logo":this.logoUrl;return{sidebar:this.sidebar,brandName:this.brandName,fontFamily:this.fontFamily,logoUrl:e,mainColor:this.mainColor,theme:this.theme}}}export{s as W}; -//# sourceMappingURL=workspaces.220ebb5a.js.map +var n=Object.defineProperty;var i=(t,e,r)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var a=(t,e,r)=>(i(t,typeof e!="symbol"?e+"":e,r),r);import{A as d}from"./activeRecord.adfc6223.js";import"./registerWidgets.cb3a7b8d.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="e615adf2-115c-43da-901f-9a7f54e626b2",t._sentryDebugIdIdentifier="sentry-dbid-e615adf2-115c-43da-901f-9a7f54e626b2")}catch{}})();class c{async get(){return await(await fetch("/_editor/api/workspace",{method:"GET",headers:{"Content-Type":"application/json"}})).json()}async update(e,r){return await(await fetch("/_editor/api/workspace",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)})).json()}async create(e){throw new Error("Not implemented")}async openFile(e){await fetch("/_editor/api/workspace/open-file",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e})})}async deploy(){await fetch("/_editor/api/workspace/deploy",{method:"POST",headers:{"Content-Type":"application/json"}})}}const o=new c;class s{constructor(e){a(this,"record");this.record=d.create(o,e,null)}static async get(){const e=await o.get();return new s(e)}static from(e){return new s(e)}get brandName(){var e;return(e=this.record.get("brand_name"))!=null?e:""}set brandName(e){this.record.set("brand_name",e)}get fontColor(){var e;return(e=this.record.get("font_color"))!=null?e:"#000000"}set fontColor(e){this.record.set("font_color",e)}get logoUrl(){return this.record.get("logo_url")}set logoUrl(e){this.record.set("logo_url",e)}get mainColor(){var e;return(e=this.record.get("main_color"))!=null?e:"#000000"}set mainColor(e){this.record.set("main_color",e)}get fontFamily(){var e;return(e=this.record.get("font_family"))!=null?e:"Inter"}set fontFamily(e){this.record.set("font_family",e)}get theme(){var e;return(e=this.record.get("theme"))!=null?e:"#ffffff"}set theme(e){this.record.set("theme",e)}async save(){return this.record.save()}hasChanges(){return this.record.hasChanges()}async openFile(e){await o.openFile(e)}static async deploy(){await o.deploy()}get sidebar(){var e;return(e=this.record.get("sidebar"))!=null?e:[]}set sidebar(e){this.record.set("sidebar",e)}makeRunnerData(){const e=this.logoUrl?this.logoUrl.startsWith("http://")?this.logoUrl:this.logoUrl.startsWith("https://")?this.logoUrl:"/_assets/logo":this.logoUrl;return{sidebar:this.sidebar,brandName:this.brandName,fontFamily:this.fontFamily,logoUrl:e,mainColor:this.mainColor,theme:this.theme}}}export{s as W}; +//# sourceMappingURL=workspaces.5f21a554.js.map diff --git a/abstra_statics/dist/assets/xml.67d02d73.js b/abstra_statics/dist/assets/xml.22301ab3.js similarity index 84% rename from abstra_statics/dist/assets/xml.67d02d73.js rename to abstra_statics/dist/assets/xml.22301ab3.js index dd784b2ee9..0f19a1e6ea 100644 --- a/abstra_statics/dist/assets/xml.67d02d73.js +++ b/abstra_statics/dist/assets/xml.22301ab3.js @@ -1,7 +1,7 @@ -import{m as d}from"./editor.main.aa43f13b.js";import"./registerWidgets.3fe0df5a.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="97af2749-85a5-4f14-8f5b-179c556279dd",t._sentryDebugIdIdentifier="sentry-dbid-97af2749-85a5-4f14-8f5b-179c556279dd")}catch{}})();/*!----------------------------------------------------------------------------- +import{m as d}from"./editor.main.2331c6e5.js";import"./registerWidgets.cb3a7b8d.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="3648bbd8-d76a-45bb-9ca0-6d166f633287",t._sentryDebugIdIdentifier="sentry-dbid-3648bbd8-d76a-45bb-9ca0-6d166f633287")}catch{}})();/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,m=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,r=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of m(e))!s.call(t,a)&&a!==n&&c(t,a,{get:()=>e[a],enumerable:!(i=l(e,a))||i.enumerable});return t},p=(t,e,n)=>(r(t,e,"default"),n&&r(n,e,"default")),o={};p(o,d);var g={comments:{blockComment:[""]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],onEnterRules:[{beforeText:new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:o.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:o.languages.IndentAction.Indent}}]},b={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[//,{token:"comment",next:"@pop"}],[/"]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],onEnterRules:[{beforeText:new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:o.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:o.languages.IndentAction.Indent}}]},g={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[//,{token:"comment",next:"@pop"}],[/