From a904ec0cd0e90bf3b4eeab946e03364463983592 Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Tue, 12 Nov 2024 00:13:41 +0100 Subject: [PATCH] upgraded and fixed multiple ui problems --- lollms_core | 2 +- .../windows/ui_installer/lollms_installer.iss | 23 ++- .../ui_installer/lollmsenv_installer.bat | 13 +- web/dist/assets/index-C4lyxCdb.css | 8 + .../{index-BxkXwSKb.js => index-ZQkh7DUY.js} | 58 +++---- web/dist/assets/index-x900GuGZ.css | 8 - web/dist/index.html | 4 +- web/dist/themes/amber.css | 110 ++++++++----- web/dist/themes/borg.css | 152 ++++++++++++++---- web/dist/themes/default.css | 110 ++++++++----- web/dist/themes/lollms_blue.css | 110 ++++++++----- web/dist/themes/matrix_reborn.css | 136 ++++++++++------ web/dist/themes/red_dragon.css | 137 ++++++++++------ web/dist/themes/sober_gray.css | 110 ++++++++----- web/dist/themes/strawberry.css | 110 ++++++++----- web/dist/themes/strawberry_milkshake.css | 137 ++++++++++------ web/public/themes/amber.css | 110 ++++++++----- web/public/themes/borg.css | 152 ++++++++++++++---- web/public/themes/default.css | 110 ++++++++----- web/public/themes/lollms_blue.css | 110 ++++++++----- web/public/themes/matrix_reborn.css | 136 ++++++++++------ web/public/themes/red_dragon.css | 137 ++++++++++------ web/public/themes/sober_gray.css | 110 ++++++++----- web/public/themes/strawberry.css | 110 ++++++++----- web/public/themes/strawberry_milkshake.css | 137 ++++++++++------ web/src/components/AppCard.vue | 2 +- web/src/components/PersonalityEntry.vue | 2 +- web/src/components/TopBar.vue | 87 +++++----- web/src/themes/amber.css | 2 +- web/src/themes/borg.css | 32 ++++ web/src/themes/default.css | 2 +- web/src/themes/lollms_blue.css | 2 +- web/src/themes/strawberry.css | 2 +- web/src/views/AppsZoo.vue | 14 +- web/src/views/PersonalitiesZoo.vue | 19 ++- 35 files changed, 1639 insertions(+), 865 deletions(-) create mode 100644 web/dist/assets/index-C4lyxCdb.css rename web/dist/assets/{index-BxkXwSKb.js => index-ZQkh7DUY.js} (94%) delete mode 100644 web/dist/assets/index-x900GuGZ.css diff --git a/lollms_core b/lollms_core index 63b093887..9942d177a 160000 --- a/lollms_core +++ b/lollms_core @@ -1 +1 @@ -Subproject commit 63b09388787cb244e2dfed7422cfd91f8549a379 +Subproject commit 9942d177a1b4c8c424d6dcb89cdb1a6ff6fa99d4 diff --git a/scripts/windows/ui_installer/lollms_installer.iss b/scripts/windows/ui_installer/lollms_installer.iss index 43220b1e9..8180f7020 100644 --- a/scripts/windows/ui_installer/lollms_installer.iss +++ b/scripts/windows/ui_installer/lollms_installer.iss @@ -1,5 +1,5 @@ #define MyAppName "LOLLMS" -#define MyAppVersion "13.0" +#define MyAppVersion "14.0" #define MyAppPublisher "ParisNeo" #define MyAppURL "https://github.com/ParisNeo/lollms-webui" @@ -43,7 +43,6 @@ Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\lollms.bat"; IconFilename: Name: "{autoprograms}\{#MyAppName} CMD"; Filename: "{app}\lollms_cmd.bat"; IconFilename: "{app}\logo.ico" Name: "{autodesktop}\{#MyAppName} CMD"; Filename: "{app}\lollms_cmd.bat"; IconFilename: "{app}\logo.ico"; Tasks: desktopicon - [Run] Filename: "{app}\lollmsenv_installer.bat"; Parameters: "--dir ""{app}\lollmsenv"" -y"; StatusMsg: "Installing LollmsEnv..."; Flags: runhidden Filename: "{app}\lollmsenv\bin\lollmsenv.bat"; Parameters: "create-env lollms_env"; StatusMsg: "Creating Python environment..."; Flags: runhidden @@ -53,18 +52,17 @@ Filename: "{app}\lollmsenv\envs\lollms_env\Scripts\python.exe"; Parameters: "-m Filename: "{app}\lollmsenv\envs\lollms_env\Scripts\python.exe"; Parameters: "-m pip install -e ""{app}\lollms-webui\lollms_core"""; StatusMsg: "Installing LOLLMS core..."; Flags: runhidden Filename: "{app}\lollms.bat"; Description: "Run LOLLMS"; Flags: postinstall nowait skipifsilent; Tasks: runafterinstall - [UninstallDelete] Type: files; Name: "{app}\lollms.bat" Type: files; Name: "{app}\lollms_cmd.bat" Type: filesandordirs; Name: "{app}\lollmsenv" Type: filesandordirs; Name: "{app}\lollms-webui" Type: filesandordirs; Name: "{app}\lollmsenv_install" + [Code] var BindingPage: TInputOptionWizardPage; PersonalFolderPage: TInputDirWizardPage; - UninstallPersonalDataPage: TInputOptionWizardPage; function IsGitInstalled: Boolean; var @@ -177,7 +175,7 @@ begin // Create global_paths_cfg.yaml file YamlContent := 'lollms_path: ' + ExpandConstant('{app}\lollms-webui\lollms_core\lollms') + #13#10 + - 'lollms_personal_path: ' + PersonalFolder; + 'lollms_personal_path: ' + PersonalFolder ; SaveStringToFile(ExpandConstant('{app}\lollms-webui\global_paths_cfg.yaml'), YamlContent, False); case BindingPage.SelectedValueIndex of @@ -205,22 +203,21 @@ begin '', SW_SHOW, ewWaitUntilTerminated, ResultCode); end; - - SaveStringToFile(ExpandConstant('{app}\lollms.bat'), '@echo off' + #13#10 + - 'call "' + ExpandConstant('{app}') + '\lollmsenv\envs\lollms_env\Scripts\activate.bat"' + #13#10 + - 'cd "' + ExpandConstant('{app}') + '\lollms-webui"' + #13#10 + + 'call "lollmsenv\envs\lollms_env\Scripts\activate.bat"' + #13#10 + + 'cd /d "lollms-webui"' + #13#10 + 'python app.py %*' + #13#10 + 'pause', False); SaveStringToFile(ExpandConstant('{app}\lollms_cmd.bat'), '@echo off' + #13#10 + - 'call "' + ExpandConstant('{app}') + '\lollmsenv\envs\lollms_env\Scripts\activate.bat"' + #13#10 + - 'cd "' + ExpandConstant('{app}') + '\lollms-webui"' + #13#10 + + 'call "lollmsenv\envs\lollms_env\Scripts\activate.bat"' + #13#10 + + 'cd /d "lollms-webui"' + #13#10 + 'cmd /k', False); end; end; + procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep); var PersonalFolder: string; @@ -242,6 +239,9 @@ begin if Pos('lollms_personal_path:', YamlContent[I]) = 1 then begin PersonalFolder := Trim(Copy(YamlContent[I], Length('lollms_personal_path:') + 1, MaxInt)); + // Remove surrounding quotes if present + if (Length(PersonalFolder) > 1) and (PersonalFolder[1] = '"') and (PersonalFolder[Length(PersonalFolder)] = '"') then + PersonalFolder := Copy(PersonalFolder, 2, Length(PersonalFolder) - 2); Break; end; end; @@ -272,4 +272,3 @@ begin end; end; end; - diff --git a/scripts/windows/ui_installer/lollmsenv_installer.bat b/scripts/windows/ui_installer/lollmsenv_installer.bat index 58133059a..e60cee564 100644 --- a/scripts/windows/ui_installer/lollmsenv_installer.bat +++ b/scripts/windows/ui_installer/lollmsenv_installer.bat @@ -1,12 +1,17 @@ @echo off setlocal enabledelayedexpansion :: Version number -set VERSION=1.3.3 +set VERSION=1.4.2 set USE_MASTER=false :: Check for --use-master option +set ARGS= for %%a in (%*) do ( - if "%%a"=="--use-master" set USE_MASTER=true + if "%%a"=="--use-master" ( + set USE_MASTER=true + ) else ( + set ARGS=!ARGS! %%a + ) ) :: Temporary directory for downloading and extraction @@ -41,10 +46,6 @@ if "%USE_MASTER%"=="true" ( cd /d "%TEMP_DIR%\LollmsEnv-%VERSION%" ) -:: Remove --use-master from arguments -set ARGS=%* -set ARGS=%ARGS:--use-master=% - :: Run the install script with forwarded parameters echo Running installation... call install.bat %ARGS% diff --git a/web/dist/assets/index-C4lyxCdb.css b/web/dist/assets/index-C4lyxCdb.css new file mode 100644 index 000000000..cec3d5eba --- /dev/null +++ b/web/dist/assets/index-C4lyxCdb.css @@ -0,0 +1,8 @@ +@import"https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap";.hljs-comment,.hljs-quote{color:#7285b7}.hljs-variable,.hljs-template-variable,.hljs-tag,.hljs-name,.hljs-selector-id,.hljs-selector-class,.hljs-regexp,.hljs-deletion{color:#ff9da4}.hljs-number,.hljs-built_in,.hljs-literal,.hljs-type,.hljs-params,.hljs-meta,.hljs-link{color:#ffc58f}.hljs-attribute{color:#ffeead}.hljs-string,.hljs-symbol,.hljs-bullet,.hljs-addition{color:#d1f1a9}.hljs-title,.hljs-section{color:#bbdaff}.hljs-keyword,.hljs-selector-tag{color:#ebbbff}.hljs{background:#002451;color:#fff}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*! + Theme: Tokyo-night-Dark + origin: https://github.com/enkia/tokyo-night-vscode-theme + Description: Original highlight.js style + Author: (c) Henri Vandersleyen + License: see project LICENSE + Touched: 2022 +*/.hljs-meta,.hljs-comment{color:#565f89}.hljs-tag,.hljs-doctag,.hljs-selector-id,.hljs-selector-class,.hljs-regexp,.hljs-template-tag,.hljs-selector-pseudo,.hljs-selector-attr,.hljs-variable.language_,.hljs-deletion{color:#f7768e}.hljs-variable,.hljs-template-variable,.hljs-number,.hljs-literal,.hljs-type,.hljs-params,.hljs-link{color:#ff9e64}.hljs-built_in,.hljs-attribute{color:#e0af68}.hljs-selector-tag{color:#2ac3de}.hljs-keyword,.hljs-title.function_,.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-subst,.hljs-property{color:#7dcfff}.hljs-selector-tag{color:#73daca}.hljs-quote,.hljs-string,.hljs-symbol,.hljs-bullet,.hljs-addition{color:#9ece6a}.hljs-code,.hljs-formula,.hljs-section{color:#7aa2f7}.hljs-name,.hljs-keyword,.hljs-operator,.hljs-char.escape_,.hljs-attr{color:#bb9af7}.hljs-punctuation{color:#c0caf5}.hljs{background:#1a1b26;color:#9aa5ce}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.code-container{display:flex;margin:0}.line-numbers{flex-shrink:0;padding-right:5px;color:#999;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap;margin:0}.code-content{flex-grow:1;margin:0;outline:none}.katex-display{display:inline-block;margin:0}.katex{display:inline-block;white-space:nowrap}.inline-latex{display:inline!important}.progress-bar-container{background-color:#f0f0f0;border-radius:4px;height:8px;overflow:hidden}.progress-bar{background-color:#3498db;height:100%;transition:width .3s ease}.custom-scrollbar[data-v-8a34bb65]{scrollbar-width:thin;scrollbar-color:rgba(156,163,175,.5) transparent}.custom-scrollbar[data-v-8a34bb65]::-webkit-scrollbar{width:6px}.custom-scrollbar[data-v-8a34bb65]::-webkit-scrollbar-track{background:transparent}.custom-scrollbar[data-v-8a34bb65]::-webkit-scrollbar-thumb{background-color:#9ca3af80;border-radius:3px}.custom-scrollbar[data-v-8a34bb65]::-webkit-scrollbar-thumb:hover{background-color:#9ca3afb3}.toastItem-enter-active[data-v-46f379e5],.toastItem-leave-active[data-v-46f379e5]{transition:all .5s ease}.toastItem-enter-from[data-v-46f379e5],.toastItem-leave-to[data-v-46f379e5]{opacity:0;transform:translate(-30px)}.topbar-container[data-v-84d35012]{position:fixed;top:0;left:0;right:0;z-index:1000}.topbar[data-v-84d35012]{background-color:#ffffff1a;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);transition:transform .3s ease-in-out;display:flex;justify-content:center}.topbar-hidden[data-v-84d35012]{transform:translateY(-100%)}.topbar-content[data-v-84d35012]{display:flex;justify-content:space-between;align-items:center;max-width:1200px;width:100%}.pin-button[data-v-84d35012]{background-color:transparent;border:none;cursor:pointer;padding:5px;display:flex;align-items:center;justify-content:center}.pin-button svg[data-v-84d35012]{width:24px;height:24px;transition:transform .3s ease}.pin-button:hover svg[data-v-84d35012]{transform:scale(1.2)}.placeholder[data-v-84d35012]{height:10px}.toolbar-button[data-v-84d35012]{cursor:pointer;border-style:none;background-color:transparent;padding:.5rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.toolbar-button[data-v-84d35012]:hover{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.topbar-container[data-v-84d35012]{position:relative;width:100%}.hover-zone[data-v-84d35012]{opacity:0}.error[data-v-84d35012]{color:red;margin-left:1rem}.overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;z-index:1000}.hovered{transform:scale(1.05);transition:transform .2s ease-in-out}.active{transform:scale(1.1);transition:transform .2s ease-in-out}.dropdown-shadow[data-v-6c3ea3a5]{box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}:root.dark .dropdown-shadow[data-v-6c3ea3a5]{box-shadow:0 4px 6px -1px #ffffff1a,0 2px 4px -1px #ffffff0f}select{width:200px}body{background-color:#fafafa;font-family:sans-serif}.container{margin:4px auto;width:800px}.settings{position:fixed;top:0;right:0;width:500px;background-color:#fff;z-index:1000;overflow-y:auto;height:100%}.slider-container{margin-top:20px}.slider-value{display:inline-block;margin-left:10px;color:#6b7280;font-size:14px}.small-button{padding:.5rem .75rem;font-size:.875rem}.active-tab{font-weight:700}.help-view[data-v-8c1798f3]{min-height:100vh}.big-card[data-v-8c1798f3]{margin-left:auto;margin-right:auto;border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding:2rem;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.big-card[data-v-8c1798f3]:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.help-sections-container[data-v-8c1798f3]{max-height:70vh;overflow-y:auto;padding-right:1rem}.help-section[data-v-8c1798f3]{transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.help-content[data-v-8c1798f3]{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.help-content[data-v-8c1798f3]:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.help-sections-container[data-v-8c1798f3]::-webkit-scrollbar{width:12px}.help-sections-container[data-v-8c1798f3]::-webkit-scrollbar-track{background:#f1f1f1;border-radius:10px}.help-sections-container[data-v-8c1798f3]::-webkit-scrollbar-thumb{background:#888;border-radius:10px;border:3px solid #f1f1f1}.help-sections-container[data-v-8c1798f3]::-webkit-scrollbar-thumb:hover{background:#555}.help-sections-container[data-v-8c1798f3]{scrollbar-width:thin;scrollbar-color:#888 #f1f1f1}.menu-container{position:relative;display:inline-block}.menu-button{background-color:#007bff;color:#fff;padding:10px;border:none;cursor:pointer;border-radius:4px}.menu-list{position:absolute;background-color:#fff;color:#000;border:1px solid #ccc;border-radius:4px;box-shadow:0 2px 4px #0003;padding:10px;max-width:500px;z-index:1000}.slide-enter-active,.slide-leave-active{transition:transform .2s}.slide-enter-to,.slide-leave-from{transform:translateY(-10px)}.menu-ul{list-style:none;padding:0;margin:0}.menu-li{cursor:pointer;display:flex;align-items:center;padding:5px}.menu-icon{width:20px;height:20px;margin-right:8px}.menu-command{min-width:200px;text-align:left}.fade-enter-active[data-v-f43216be],.fade-leave-active[data-v-f43216be]{transition:opacity .3s}.fade-enter[data-v-f43216be],.fade-leave-to[data-v-f43216be]{opacity:0}.heartbeat-text[data-v-f29485cf]{font-size:24px;animation:pulsate-f29485cf 1.5s infinite}@keyframes pulsate-f29485cf{0%{transform:scale(1);opacity:1}50%{transform:scale(1.1);opacity:.7}to{transform:scale(1);opacity:1}}.list-move[data-v-f29485cf],.list-enter-active[data-v-f29485cf],.list-leave-active[data-v-f29485cf]{transition:all .5s ease}.list-enter-from[data-v-f29485cf]{transform:translatey(-30px)}.list-leave-to[data-v-f29485cf]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-f29485cf]{position:absolute}.bounce-enter-active[data-v-f29485cf]{animation:bounce-in-f29485cf .5s}.bounce-leave-active[data-v-f29485cf]{animation:bounce-in-f29485cf .5s reverse}@keyframes bounce-in-f29485cf{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.bg-primary-light[data-v-f29485cf]{background-color:#0ff}.hover[data-v-f29485cf]:bg-primary-light:hover{background-color:#7fffd4}.font-bold[data-v-f29485cf]{font-weight:700}.control-buttons[data-v-5bb76742]{position:absolute;top:0;right:0;height:100%;display:flex;align-items:center;transform:translate(100%);transition:transform .3s}.group:hover .control-buttons[data-v-5bb76742]{transform:translate(0)}.control-buttons-inner[data-v-5bb76742]{display:flex;gap:10px;align-items:center;background-color:#fff;padding:8px;border-radius:0 0 0 8px;box-shadow:0 2px 8px #0000001a}.json-tree-view[data-v-40406ec6]{margin-left:16px}.json-item[data-v-40406ec6]{margin-bottom:4px}.json-key[data-v-40406ec6]{cursor:pointer;display:flex;align-items:center}.toggle-icon[data-v-40406ec6]{margin-right:4px;width:12px}.key[data-v-40406ec6]{font-weight:700;margin-right:4px}.value[data-v-40406ec6]{margin-left:4px}.string[data-v-40406ec6]{color:#0b7285}.number[data-v-40406ec6]{color:#d9480f}.boolean[data-v-40406ec6]{color:#5c940d}.null[data-v-40406ec6]{color:#868e96}.json-nested[data-v-40406ec6]{margin-left:16px;border-left:1px dashed #ccc;padding-left:8px}.json-viewer[data-v-83fc9727]{font-family:Monaco,Menlo,Ubuntu Mono,Consolas,source-code-pro,monospace;font-size:14px;line-height:1.5;color:#333}.collapsible-section[data-v-83fc9727]{cursor:pointer;padding:8px;background-color:#f0f0f0;border-radius:4px;display:flex;align-items:center;transition:background-color .2s}.collapsible-section[data-v-83fc9727]:hover{background-color:#e0e0e0}.toggle-icon[data-v-83fc9727]{margin-right:8px;transition:transform .2s}.json-content[data-v-83fc9727]{margin-top:8px;padding-left:16px}.step-container[data-v-78f415f6]{margin-bottom:1rem}.step-wrapper[data-v-78f415f6]{display:flex;align-items:flex-start;border-radius:.5rem;padding:1rem;--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.step-icon[data-v-78f415f6]{margin-right:1rem;display:flex;height:1.5rem;width:1.5rem;flex-shrink:0;align-items:center;justify-content:center}.feather-icon[data-v-78f415f6]{height:1.5rem;width:1.5rem;stroke:currentColor;stroke-width:2}.spinner[data-v-78f415f6]{height:1.5rem;width:1.5rem}@keyframes spin-78f415f6{to{transform:rotate(360deg)}}.spinner[data-v-78f415f6]{animation:spin-78f415f6 1s linear infinite;border-radius:9999px;border-width:2px;border-top-width:2px;border-color:rgb(75 85 99 / var(--tw-border-opacity));--tw-border-opacity: 1;border-top-color:rgb(28 100 242 / var(--tw-border-opacity))}.step-content[data-v-78f415f6]{flex-grow:1}.step-text[data-v-78f415f6]{margin-bottom:.25rem;font-size:1.125rem;line-height:1.75rem;font-weight:600}.step-description[data-v-78f415f6]{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.step-description[data-v-78f415f6]:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.expand-button{margin-left:10px;margin-right:10px;background:none;border:none;padding:0;cursor:pointer}.htmljs{background:none}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.animate-fadeIn{animation:fadeIn .5s ease-out forwards}details[open] summary~*{animation:slideDown .3s ease-in-out}details summary::marker{display:none}details summary::-webkit-details-marker{display:none}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.bounce-enter-active[data-v-f44002af]{animation:bounce-in-f44002af .5s}.bounce-leave-active[data-v-f44002af]{animation:bounce-in-f44002af .5s reverse}@keyframes bounce-in-f44002af{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.custom-scrollbar[data-v-1a32c141]::-webkit-scrollbar{width:8px}.custom-scrollbar[data-v-1a32c141]::-webkit-scrollbar-track{background-color:#f1f1f1}.custom-scrollbar[data-v-1a32c141]::-webkit-scrollbar-thumb{background-color:#888;border-radius:4px}.custom-scrollbar[data-v-1a32c141]::-webkit-scrollbar-thumb:hover{background-color:#555}.menu[data-v-1a32c141]{display:flex;flex-direction:column;align-items:center}.commands-menu-items-wrapper[data-v-1a32c141]{position:relative;display:flex;flex-direction:column;align-items:center}.commands-menu-items-wrapper>#commands-menu-items[data-v-1a32c141]{top:calc(-100% - 2rem)}.personalities-hover-area[data-v-e3d676fa]{position:relative;padding-top:10px}.custom-scrollbar[data-v-e3d676fa]{scrollbar-width:thin;scrollbar-color:rgba(155,155,155,.5) transparent}.custom-scrollbar[data-v-e3d676fa]::-webkit-scrollbar{width:6px}.custom-scrollbar[data-v-e3d676fa]::-webkit-scrollbar-track{background:transparent}.custom-scrollbar[data-v-e3d676fa]::-webkit-scrollbar-thumb{background-color:#9b9b9b80;border-radius:20px;border:transparent}.chat-bar[data-v-e3d676fa]{transition:all .3s ease}.chat-bar[data-v-e3d676fa]:hover{box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.list-move[data-v-e3d676fa],.list-enter-active[data-v-e3d676fa],.list-leave-active[data-v-e3d676fa]{transition:all .5s ease}.list-enter-from[data-v-e3d676fa]{transform:translatey(-30px)}.list-leave-to[data-v-e3d676fa]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-e3d676fa]{position:absolute}@keyframes rolling-ball-1756add6{0%{transform:translate(-50px) rotate(0)}25%{transform:translate(0) rotate(90deg)}50%{transform:translate(50px) rotate(180deg)}75%{transform:translate(0) rotate(270deg)}to{transform:translate(-50px) rotate(360deg)}}@keyframes bounce-1756add6{0%,to{transform:translateY(0)}50%{transform:translateY(-20px)}}@keyframes fade-in-up-1756add6{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.animate-rolling-ball[data-v-1756add6]{animation:rolling-ball-1756add6 4s infinite ease-in-out,bounce-1756add6 1s infinite ease-in-out}.animate-fade-in-up[data-v-1756add6]{animation:fade-in-up-1756add6 1.5s ease-out}.popup-container[data-v-d504dfc9]{background-color:#fff;color:#333;border-radius:8px;box-shadow:0 4px 6px #0000001a;padding:24px;width:100%;height:100%;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center}.close-button[data-v-d504dfc9]{position:absolute;top:16px;right:16px;background-color:#3490dc;color:#fff;font-weight:700;padding:8px 16px;border-radius:8px;cursor:pointer;transition:background-color .3s ease}.close-button[data-v-d504dfc9]:hover{background-color:#2779bd}.iframe-content[data-v-d504dfc9]{width:100%;height:80%;border:none;margin-bottom:16px}.checkbox-container[data-v-d504dfc9]{display:flex;align-items:center;justify-content:center}.styled-checkbox[data-v-d504dfc9]{width:24px;height:24px;accent-color:#3490dc;cursor:pointer}.checkbox-label[data-v-d504dfc9]{margin-left:8px;font-size:16px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.fade-enter-active[data-v-d504dfc9],.fade-leave-active[data-v-d504dfc9]{transition:opacity .5s}.fade-enter[data-v-d504dfc9],.fade-leave-to[data-v-d504dfc9]{opacity:0}@keyframes giggle-dcd0e4ad{0%,to{transform:translate(0) rotate(0) scale(1)}25%{transform:translate(-5px) rotate(-10deg) scale(1.05)}50%{transform:translate(5px) rotate(10deg) scale(.95)}75%{transform:translate(-5px) rotate(-10deg) scale(1.05)}}.animate-giggle[data-v-dcd0e4ad]{animation:giggle-dcd0e4ad 1.5s infinite ease-in-out}.custom-scrollbar[data-v-dcd0e4ad]{scrollbar-width:thin;scrollbar-color:rgba(155,155,155,.5) transparent}.custom-scrollbar[data-v-dcd0e4ad]::-webkit-scrollbar{width:8px}.custom-scrollbar[data-v-dcd0e4ad]::-webkit-scrollbar-track{background:transparent}.custom-scrollbar[data-v-dcd0e4ad]::-webkit-scrollbar-thumb{background-color:#9b9b9b80;border-radius:20px;border:transparent}@keyframes custom-pulse-dcd0e4ad{0%,to{box-shadow:0 0 #3b82f680}50%{box-shadow:0 0 0 15px #3b82f600}}.animate-pulse[data-v-dcd0e4ad]{animation:custom-pulse-dcd0e4ad 2s infinite}.slide-right-enter-active[data-v-dcd0e4ad],.slide-right-leave-active[data-v-dcd0e4ad]{transition:transform .3s ease}.slide-right-enter[data-v-dcd0e4ad],.slide-right-leave-to[data-v-dcd0e4ad]{transform:translate(-100%)}.slide-left-enter-active[data-v-dcd0e4ad],.slide-left-leave-active[data-v-dcd0e4ad]{transition:transform .3s ease}.slide-left-enter[data-v-dcd0e4ad],.slide-left-leave-to[data-v-dcd0e4ad]{transform:translate(100%)}.fade-and-fly-enter-active[data-v-dcd0e4ad]{animation:fade-and-fly-enter-dcd0e4ad .5s ease}.fade-and-fly-leave-active[data-v-dcd0e4ad]{animation:fade-and-fly-leave-dcd0e4ad .5s ease}@keyframes fade-and-fly-enter-dcd0e4ad{0%{opacity:0;transform:translateY(20px) scale(.8)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes fade-and-fly-leave-dcd0e4ad{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-20px) scale(1.2)}}.list-move[data-v-dcd0e4ad],.list-enter-active[data-v-dcd0e4ad],.list-leave-active[data-v-dcd0e4ad]{transition:all .5s ease}.list-enter-from[data-v-dcd0e4ad]{transform:translatey(-30px)}.list-leave-to[data-v-dcd0e4ad]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-dcd0e4ad]{position:absolute}@keyframes float-dcd0e4ad{0%,to{transform:translateY(0)}50%{transform:translateY(-20px)}}.animate-float[data-v-dcd0e4ad]{animation:float-dcd0e4ad linear infinite}@keyframes star-move-dcd0e4ad{0%{transform:translate(0) rotate(0)}50%{transform:translate(20px,20px) rotate(180deg)}to{transform:translate(0) rotate(360deg)}}.animate-star[data-v-dcd0e4ad]{animation:star-move-dcd0e4ad linear infinite}@keyframes fall-dcd0e4ad{0%{transform:translateY(-20px) rotate(0);opacity:1}to{transform:translateY(calc(100vh + 20px)) rotate(360deg);opacity:0}}.animate-fall[data-v-dcd0e4ad]{animation:fall-dcd0e4ad linear infinite}@keyframes glow-dcd0e4ad{0%,to{text-shadow:0 0 5px rgba(66,153,225,.5),0 0 10px rgba(66,153,225,.5)}50%{text-shadow:0 0 20px rgba(66,153,225,.8),0 0 30px rgba(66,153,225,.8)}}.animate-glow[data-v-dcd0e4ad]{animation:glow-dcd0e4ad 2s ease-in-out infinite}@media (prefers-color-scheme: dark){@keyframes glow-dcd0e4ad{0%,to{text-shadow:0 0 5px rgba(147,197,253,.5),0 0 10px rgba(147,197,253,.5)}50%{text-shadow:0 0 20px rgba(147,197,253,.8),0 0 30px rgba(147,197,253,.8)}0%,to{text-shadow:0 0 5px rgba(147,197,253,.5),0 0 10px rgba(147,197,253,.5)}50%{text-shadow:0 0 20px rgba(147,197,253,.8),0 0 30px rgba(147,197,253,.8)}}}@keyframes roll-dcd0e4ad{0%{transform:translate(-50%) rotate(0)}to{transform:translate(50%) rotate(360deg)}}.animate-roll[data-v-dcd0e4ad]{animation:roll-dcd0e4ad 4s linear infinite}.toolbar[data-v-dcd0e4ad]{position:relative;width:100%}.toolbar-container[data-v-dcd0e4ad]{display:flex;height:2.5rem;align-items:center}.toolbar-button[data-v-dcd0e4ad]{cursor:pointer;border-style:none;background-color:transparent;padding:.5rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.toolbar-button[data-v-dcd0e4ad]:hover{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.menu-container[data-v-dcd0e4ad]{position:relative}.expandable-menu[data-v-dcd0e4ad]{position:absolute;top:100%;left:.625rem;flex-direction:column;border-radius:.25rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity));--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.menu-container:hover .expandable-menu[data-v-dcd0e4ad],.menu-visible[data-v-dcd0e4ad]{display:flex}.menu-item[data-v-dcd0e4ad]{background:none;border:none;cursor:pointer;padding:8px;color:#333;transition:background-color .3s}.menu-item[data-v-dcd0e4ad]:hover{background-color:#f0f0f0}.dot[data-v-dcd0e4ad]{width:10px;height:10px;border-radius:50%}.dot-green[data-v-dcd0e4ad]{background-color:green}.dot-red[data-v-dcd0e4ad]{background-color:red}.animate-pulse[data-v-dcd0e4ad]{animation:pulse-dcd0e4ad 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes pulse-dcd0e4ad{0%,to{opacity:1}50%{opacity:.7}}.logo-container[data-v-dcd0e4ad]{position:relative;width:48px;height:48px}.logo-image[data-v-dcd0e4ad]{width:100%;height:100%;border-radius:50%;-o-object-fit:cover;object-fit:cover}@keyframes bounce-dcd0e4ad{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:translateY(0);animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce[data-v-dcd0e4ad]{animation:bounce-dcd0e4ad 1s infinite}@keyframes roll-and-bounce-dcd0e4ad{0%,to{transform:translate(0) rotate(0)}45%{transform:translate(100px) rotate(360deg)}50%{transform:translate(90px) rotate(390deg)}55%{transform:translate(100px) rotate(360deg)}95%{transform:translate(0) rotate(0)}}@keyframes spin-dcd0e4ad{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.container{display:flex;justify-content:flex-start;align-items:flex-start;flex-wrap:wrap}.floating-frame{margin:15px;float:left;height:auto;border:1px solid #000;border-radius:4px;overflow:hidden;z-index:5000;position:fixed;cursor:move;bottom:0;right:0}.handle{width:100%;height:20px;background:#ccc;cursor:move;text-align:center}.floating-frame img{width:100%;height:auto}.controls{margin-top:10px}#webglContainer{top:0;left:0}.floating-frame2{margin:15px;width:800px;height:auto;border:1px solid #000;border-radius:4px;overflow:hidden;min-height:200px;z-index:5000}:root{--baklava-control-color-primary: #e28b46;--baklava-control-color-error: #d00000;--baklava-control-color-background: #2c3748;--baklava-control-color-foreground: white;--baklava-control-color-hover: #455670;--baklava-control-color-active: #556986;--baklava-control-color-disabled-foreground: #666c75;--baklava-control-border-radius: 3px;--baklava-sidebar-color-background: #1b202c;--baklava-sidebar-color-foreground: white;--baklava-node-color-background: #1b202c;--baklava-node-color-foreground: white;--baklava-node-color-hover: #e28c4677;--baklava-node-color-selected: var(--baklava-control-color-primary);--baklava-node-color-resize-handle: var(--baklava-control-color-background);--baklava-node-title-color-background: #151a24;--baklava-node-title-color-foreground: white;--baklava-group-node-title-color-background: #215636;--baklava-group-node-title-color-foreground: white;--baklava-node-interface-port-tooltip-color-foreground: var(--baklava-control-color-primary);--baklava-node-interface-port-tooltip-color-background: var(--baklava-editor-background-pattern-black);--baklava-node-border-radius: 6px;--baklava-color-connection-default: #737f96;--baklava-color-connection-allowed: #48bc79;--baklava-color-connection-forbidden: #bc4848;--baklava-editor-background-pattern-default: #202b3c;--baklava-editor-background-pattern-line: #263140;--baklava-editor-background-pattern-black: #263140;--baklava-context-menu-background: #1b202c;--baklava-context-menu-shadow: 0 0 8px rgba(0, 0, 0, .65);--baklava-toolbar-background: #1b202caa;--baklava-toolbar-foreground: white;--baklava-node-palette-background: #1b202caa;--baklava-node-palette-foreground: white;--baklava-selectionbox-color-border: var(--baklava-node-color-background);--baklava-selectionbox-color-background: var(--baklava-node-color-hover);--baklava-visual-transition: .1s linear}.baklava-button{background-color:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);transition:background-color var(--baklava-visual-transition);border:none;padding:.45em .35em;border-radius:var(--baklava-control-border-radius);font-size:inherit;cursor:pointer;overflow-x:hidden}.baklava-button:hover{background-color:var(--baklava-control-color-hover)}.baklava-button:active{background-color:var(--baklava-control-color-primary)}.baklava-button.--block{width:100%}.baklava-checkbox{display:flex;padding:.35em 0;cursor:pointer;overflow-x:hidden;align-items:center}.baklava-checkbox .__checkmark-container{display:flex;background-color:var(--baklava-control-color-background);border-radius:var(--baklava-control-border-radius);transition:background-color var(--baklava-visual-transition);width:18px;height:18px}.baklava-checkbox:hover .__checkmark-container{background-color:var(--baklava-control-color-hover)}.baklava-checkbox:active .__checkmark-container{background-color:var(--baklava-control-color-active)}.baklava-checkbox .__checkmark{stroke-dasharray:15;stroke-dashoffset:15;stroke:var(--baklava-control-color-foreground);stroke-width:2px;fill:none;transition:stroke-dashoffset var(--baklava-visual-transition)}.baklava-checkbox.--checked .__checkmark{stroke-dashoffset:0}.baklava-checkbox.--checked .__checkmark-container{background-color:var(--baklava-control-color-primary)}.baklava-checkbox .__label{margin-left:.5rem}.baklava-context-menu{color:var(--baklava-control-color-foreground);position:absolute;display:inline-block;z-index:100;background-color:var(--baklava-context-menu-background);box-shadow:var(--baklava-context-menu-shadow);border-radius:0 0 var(--baklava-control-border-radius) var(--baklava-control-border-radius);min-width:6rem;width:-moz-max-content;width:max-content}.baklava-context-menu>.item{display:flex;align-items:center;padding:.35em 1em;transition:background .05s linear;position:relative}.baklava-context-menu>.item>.__label{flex:1 1 auto}.baklava-context-menu>.item>.__submenu-icon{margin-left:.75rem}.baklava-context-menu>.item.--disabled{color:var(--baklava-control-color-hover)}.baklava-context-menu>.item:not(.--header):not(.--active):not(.--disabled):hover{background:var(--baklava-control-color-primary)}.baklava-context-menu>.item.--active{background:var(--baklava-control-color-primary)}.baklava-context-menu.--nested{left:100%;top:0}.baklava-context-menu.--flipped-x.--nested{left:unset;right:100%}.baklava-context-menu.--flipped-y.--nested{top:unset;bottom:0}.baklava-context-menu>.divider{margin:.35em 0;height:1px;background-color:var(--baklava-control-color-hover)}.baklava-icon{display:block;height:100%}.baklava-icon.--clickable{cursor:pointer;transition:color var(--baklava-visual-transition)}.baklava-icon.--clickable:hover{color:var(--baklava-control-color-primary)}.baklava-input{background-color:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);caret-color:var(--baklava-control-color-primary);border:none;border-radius:var(--baklava-control-border-radius);padding:.45em .75em;width:100%;transition:background-color var(--baklava-visual-transition);font-size:inherit;font:inherit}.baklava-input:hover{background-color:var(--baklava-control-color-hover)}.baklava-input:active{background-color:var(--baklava-control-color-active)}.baklava-input:focus-visible{outline:1px solid var(--baklava-control-color-primary)}.baklava-input[type=number]::-webkit-inner-spin-button,.baklava-input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.baklava-input.--invalid{box-shadow:0 0 2px 2px var(--baklava-control-color-error)}.baklava-num-input{background:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);border-radius:var(--baklava-control-border-radius);width:100%;display:grid;grid-template-columns:20px 1fr 20px}.baklava-num-input>.__button{display:flex;flex:0 0 auto;width:20px;justify-content:center;align-items:center;transition:background var(--baklava-visual-transition);cursor:pointer}.baklava-num-input>.__button:hover{background-color:var(--baklava-control-color-hover)}.baklava-num-input>.__button:active{background-color:var(--baklava-control-color-active)}.baklava-num-input>.__button.--dec{grid-area:1/1/span 1/span 1}.baklava-num-input>.__button.--dec>svg{transform:rotate(90deg)}.baklava-num-input>.__button.--inc{grid-area:1/3/span 1/span 1}.baklava-num-input>.__button.--inc>svg{transform:rotate(-90deg)}.baklava-num-input>.__button path{stroke:var(--baklava-control-color-foreground);fill:var(--baklava-control-color-foreground)}.baklava-num-input>.__content{grid-area:1/2/span 1/span 1;display:inline-flex;cursor:pointer;max-width:100%;min-width:0;align-items:center;transition:background-color var(--baklava-visual-transition)}.baklava-num-input>.__content:hover{background-color:var(--baklava-control-color-hover)}.baklava-num-input>.__content:active{background-color:var(--baklava-control-color-active)}.baklava-num-input>.__content>.__label,.baklava-num-input>.__content>.__value{margin:.35em 0;padding:0 .5em}.baklava-num-input>.__content>.__label{flex:1;min-width:0;overflow:hidden}.baklava-num-input>.__content>.__value{text-align:right}.baklava-num-input>.__content>input{background-color:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);caret-color:var(--baklava-control-color-primary);padding:.35em;width:100%}.baklava-select{width:100%;position:relative;color:var(--baklava-control-color-foreground)}.baklava-select.--open>.__selected{border-bottom-left-radius:0;border-bottom-right-radius:0}.baklava-select.--open>.__selected>.__icon{transform:rotate(180deg)}.baklava-select>.__selected{background-color:var(--baklava-control-color-background);padding:.35em .75em;border-radius:var(--baklava-control-border-radius);transition:background var(--baklava-visual-transition);min-height:1.7em;display:flex;align-items:center;cursor:pointer}.baklava-select>.__selected:hover{background:var(--baklava-control-color-hover)}.baklava-select>.__selected:active{background:var(--baklava-control-color-active)}.baklava-select>.__selected>.__text{flex:1 0 auto;flex-basis:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.baklava-select>.__selected>.__icon{flex:0 0 auto;display:flex;justify-content:center;align-items:center;transition:transform .25s ease;width:18px;height:18px}.baklava-select>.__selected>.__icon path{stroke:var(--baklava-control-color-foreground);fill:var(--baklava-control-color-foreground)}.baklava-select>.__dropdown{position:absolute;top:100%;left:0;right:0;z-index:10;background-color:var(--baklava-context-menu-background);filter:drop-shadow(0 0 4px black);border-radius:0 0 var(--baklava-control-border-radius) var(--baklava-control-border-radius);max-height:15em;overflow-y:scroll}.baklava-select>.__dropdown::-webkit-scrollbar{width:0px;background:transparent}.baklava-select>.__dropdown>.item{padding:.35em .35em .35em 1em;transition:background .05s linear}.baklava-select>.__dropdown>.item:not(.--header):not(.--active){cursor:pointer}.baklava-select>.__dropdown>.item:not(.--header):not(.--active):hover{background:var(--baklava-control-color-hover)}.baklava-select>.__dropdown>.item.--active{background:var(--baklava-control-color-primary)}.baklava-select>.__dropdown>.item.--header{color:var(--baklava-control-color-disabled-foreground);border-bottom:1px solid var(--baklava-control-color-disabled-foreground);padding:.5em .35em .5em 1em}.baklava-slider{background:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);border-radius:var(--baklava-control-border-radius);position:relative;cursor:pointer}.baklava-slider>.__content{display:flex;position:relative}.baklava-slider>.__content>.__label,.baklava-slider>.__content>.__value{flex:1 1 auto;margin:.35em 0;padding:0 .5em;text-overflow:ellipsis}.baklava-slider>.__content>.__value{text-align:right}.baklava-slider>.__content>input{background-color:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);caret-color:var(--baklava-control-color-primary);padding:.35em;width:100%}.baklava-slider>.__slider{position:absolute;top:0;bottom:0;left:0;background-color:var(--baklava-control-color-primary);border-radius:var(--baklava-control-border-radius)}.baklava-connection{stroke:var(--baklava-color-connection-default);stroke-width:2px;fill:none}.baklava-connection.--temporary{stroke-width:4px;stroke-dasharray:5 5;stroke-dashoffset:0;animation:dash 1s linear infinite;transform:translateY(-1px)}@keyframes dash{to{stroke-dashoffset:20}}.baklava-connection.--allowed{stroke:var(--baklava-color-connection-allowed)}.baklava-connection.--forbidden{stroke:var(--baklava-color-connection-forbidden)}.baklava-minimap{position:absolute;height:15%;width:15%;min-width:150px;max-width:90%;top:20px;right:20px;z-index:900}.baklava-editor{width:100%;height:100%;position:relative;overflow:hidden;outline:none!important;font-family:Lato,Segoe UI,Tahoma,Geneva,Verdana,sans-serif;font-size:15px;touch-action:none}.baklava-editor .background{background-color:var(--baklava-editor-background-pattern-default);background-image:linear-gradient(var(--baklava-editor-background-pattern-black) 2px,transparent 2px),linear-gradient(90deg,var(--baklava-editor-background-pattern-black) 2px,transparent 2px),linear-gradient(var(--baklava-editor-background-pattern-line) 1px,transparent 1px),linear-gradient(90deg,var(--baklava-editor-background-pattern-line) 1px,transparent 1px);background-repeat:repeat;width:100%;height:100%;pointer-events:none!important}.baklava-editor .selection-box{position:absolute;border:1px solid var(--baklava-selectionbox-color-border);background-color:var(--baklava-selectionbox-color-background);pointer-events:none;opacity:.5}.baklava-editor.--start-selection-box{cursor:crosshair}.baklava-editor *:not(input):not(textarea){user-select:none;-moz-user-select:none;-webkit-user-select:none;touch-action:none}.baklava-editor .input-user-select{user-select:auto;-moz-user-select:auto;-webkit-user-select:auto}.baklava-editor *,.baklava-editor *:after,.baklava-editor *:before{box-sizing:border-box}.baklava-editor.--temporary-connection{cursor:crosshair}.baklava-editor .connections-container{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none!important}.baklava-editor .node-container{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.baklava-editor .node-container *{pointer-events:all}.baklava-ignore-mouse *{pointer-events:none!important}.baklava-ignore-mouse .__port{pointer-events:all!important}.baklava-node-interface{padding:.25em 0;position:relative}.baklava-node-interface .__port{position:absolute;width:10px;height:10px;background:#fff;border-radius:50%;top:calc(50% - 5px);cursor:crosshair}.baklava-node-interface .__port.--selected{outline:2px var(--baklava-color-connection-default) solid;outline-offset:4px}.baklava-node-interface.--input{text-align:left;padding-left:.5em}.baklava-node-interface.--input .__port{left:-1.1em}.baklava-node-interface.--output{text-align:right;padding-right:.5em}.baklava-node-interface.--output .__port{right:-1.1em}.baklava-node-interface .__tooltip{position:absolute;left:5px;top:15px;transform:translate(-50%);background:var(--baklava-node-interface-port-tooltip-color-background);color:var(--baklava-node-interface-port-tooltip-color-foreground);padding:.25em .5em;text-align:center;z-index:2}.baklava-node-palette{position:absolute;left:0;top:60px;width:250px;height:calc(100% - 60px);z-index:3;padding:2rem;overflow-y:auto;background:var(--baklava-node-palette-background);color:var(--baklava-node-palette-foreground)}.baklava-node-palette h1{margin-top:2rem}.baklava-node.--palette{position:unset;margin:1rem 0;cursor:grab}.baklava-node.--palette:first-child{margin-top:0}.baklava-node.--palette .__title{padding:.5rem;border-radius:var(--baklava-node-border-radius)}.baklava-dragged-node{position:absolute;width:calc(250px - 4rem);height:40px;z-index:4;pointer-events:none}.baklava-node{background:var(--baklava-node-color-background);color:var(--baklava-node-color-foreground);border:1px solid transparent;border-radius:var(--baklava-node-border-radius);position:absolute;box-shadow:0 0 4px #000c;transition:border-color var(--baklava-visual-transition),box-shadow var(--baklava-visual-transition);width:var(--width)}.baklava-node:hover{border-color:var(--baklava-node-color-hover)}.baklava-node:hover .__resize-handle:after{opacity:1}.baklava-node.--selected{z-index:5;border-color:var(--baklava-node-color-selected)}.baklava-node.--dragging{box-shadow:0 0 12px #000c}.baklava-node.--dragging>.__title{cursor:grabbing}.baklava-node>.__title{display:flex;background:var(--baklava-node-title-color-background);color:var(--baklava-node-title-color-foreground);padding:.4em .75em;border-radius:var(--baklava-node-border-radius) var(--baklava-node-border-radius) 0 0;cursor:grab}.baklava-node>.__title>*:first-child{flex-grow:1}.baklava-node>.__title>.__title-label{pointer-events:none}.baklava-node>.__title>.__menu{position:relative;cursor:initial}.baklava-node[data-node-type^=__baklava_]>.__title{background:var(--baklava-group-node-title-color-background);color:var(--baklava-group-node-title-color-foreground)}.baklava-node>.__content{padding:.75em}.baklava-node>.__content.--reverse-y{display:flex;flex-direction:column-reverse}.baklava-node>.__content>div>div{margin:.5em 0}.baklava-node.--two-column>.__content{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto;grid-template-areas:". ." ". ."}.baklava-node.--two-column>.__content>.__inputs{grid-row:1;grid-column:1}.baklava-node.--two-column>.__content>.__outputs{grid-row:1;grid-column:2}.baklava-node .__resize-handle{position:absolute;right:0;bottom:0;width:1rem;height:1rem;transform:translate(50%);cursor:ew-resize}.baklava-node .__resize-handle:after{content:"";position:absolute;bottom:0;left:-.5rem;width:1rem;height:1rem;opacity:0;border-bottom-right-radius:var(--baklava-node-border-radius);transition:opacity var(--baklava-visual-transition);background:linear-gradient(-45deg,transparent 10%,var(--baklava-node-color-resize-handle) 10%,var(--baklava-node-color-resize-handle) 15%,transparent 15%,transparent 30%,var(--baklava-node-color-resize-handle) 30%,var(--baklava-node-color-resize-handle) 35%,transparent 35%,transparent 50%,var(--baklava-node-color-resize-handle) 50%,var(--baklava-node-color-resize-handle) 55%,transparent 55%)}.baklava-sidebar{position:absolute;height:100%;width:25%;min-width:300px;max-width:90%;top:0;right:0;z-index:1000;background-color:var(--baklava-sidebar-color-background);color:var(--baklava-sidebar-color-foreground);box-shadow:none;overflow-x:hidden;padding:1em;transform:translate(100%);transition:transform .5s;display:flex;flex-direction:column}.baklava-sidebar.--open{transform:translate(0);box-shadow:0 0 15px #000}.baklava-sidebar .__resizer{position:absolute;left:0;top:0;height:100%;width:4px;cursor:col-resize}.baklava-sidebar .__header{display:flex;align-items:center}.baklava-sidebar .__header .__node-name{margin-left:.5rem}.baklava-sidebar .__close{font-size:2em;border:none;background:none;color:inherit;cursor:pointer}.baklava-sidebar .__interface{margin:.5em 0}.baklava-toolbar{position:absolute;left:0;top:0;width:100%;height:60px;z-index:3;padding:.5rem 2rem;background:var(--baklava-toolbar-background);color:var(--baklava-toolbar-foreground);display:flex;align-items:center}.baklava-toolbar-entry{margin-left:.5rem;margin-right:.5rem}.baklava-toolbar-button{color:var(--baklava-toolbar-foreground);background:none;border:none;transition:color var(--baklava-visual-transition)}.baklava-toolbar-button:not([disabled]){cursor:pointer}.baklava-toolbar-button:hover:not([disabled]){color:var(--baklava-control-color-primary)}.baklava-toolbar-button[disabled]{color:var(--baklava-control-color-disabled-foreground)}.slide-fade-enter-active,.slide-fade-leave-active{transition:all .1s ease-out}.slide-fade-enter-from,.slide-fade-leave-to{transform:translateY(5px);opacity:0}.fade-enter-active,.fade-leave-active{transition:opacity .1s ease-out!important}.fade-enter-from,.fade-leave-to{opacity:0}.loading-indicator[data-v-f8c39e0b]{display:flex;justify-content:center;align-items:center;height:100px;font-size:1.2em;color:#666}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(63 131 248 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(63 131 248 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:PTSans,Roboto,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.tooltip-arrow,.tooltip-arrow:before{position:absolute;width:8px;height:8px;background:inherit}.tooltip-arrow{visibility:hidden}.tooltip-arrow:before{content:"";visibility:visible;transform:rotate(45deg)}[data-tooltip-style^=light]+.tooltip>.tooltip-arrow:before{border-style:solid;border-color:#e5e7eb}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=top]>.tooltip-arrow:before{border-bottom-width:1px;border-right-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=right]>.tooltip-arrow:before{border-bottom-width:1px;border-left-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=bottom]>.tooltip-arrow:before{border-top-width:1px;border-left-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=left]>.tooltip-arrow:before{border-top-width:1px;border-right-width:1px}.tooltip[data-popper-placement^=top]>.tooltip-arrow{bottom:-4px}.tooltip[data-popper-placement^=bottom]>.tooltip-arrow{top:-4px}.tooltip[data-popper-placement^=left]>.tooltip-arrow{right:-4px}.tooltip[data-popper-placement^=right]>.tooltip-arrow{left:-4px}.tooltip.invisible>.tooltip-arrow:before{visibility:hidden}[data-popper-arrow],[data-popper-arrow]:before{position:absolute;width:8px;height:8px;background:inherit}[data-popper-arrow]{visibility:hidden}[data-popper-arrow]:before{content:"";visibility:visible;transform:rotate(45deg)}[data-popper-arrow]:after{content:"";visibility:visible;transform:rotate(45deg);position:absolute;width:9px;height:9px;background:inherit}[role=tooltip]>[data-popper-arrow]:before{border-style:solid;border-color:#e5e7eb}.dark [role=tooltip]>[data-popper-arrow]:before{border-style:solid;border-color:#4b5563}[role=tooltip]>[data-popper-arrow]:after{border-style:solid;border-color:#e5e7eb}.dark [role=tooltip]>[data-popper-arrow]:after{border-style:solid;border-color:#4b5563}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]:before{border-bottom-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]:after{border-bottom-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]:before{border-bottom-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]:after{border-bottom-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]:before{border-top-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]:after{border-top-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]:before{border-top-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]:after{border-top-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]{bottom:-5px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]{top:-5px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]{right:-5px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]{left:-5px}[role=tooltip].invisible>[data-popper-arrow]:before{visibility:hidden}[role=tooltip].invisible>[data-popper-arrow]:after{visibility:hidden}[type=text],[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #1C64F2;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#1c64f2}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}select:not([size]){background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 10 6'%3e %3cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 1 4 4 4-4'/%3e %3c/svg%3e");background-position:right .75rem center;background-repeat:no-repeat;background-size:.75em .75em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple]{background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#1c64f2;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #1C64F2;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked,.dark [type=checkbox]:checked,.dark [type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:.55em .55em;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 12'%3e %3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M1 5.917 5.724 10.5 15 1.5'/%3e %3c/svg%3e");background-repeat:no-repeat;background-size:.55em .55em;-webkit-print-color-adjust:exact;print-color-adjust:exact}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");background-size:1em 1em}.dark [type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");background-size:1em 1em}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 12'%3e %3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M1 5.917 5.724 10.5 15 1.5'/%3e %3c/svg%3e");background-color:currentColor;border-color:transparent;background-position:center;background-repeat:no-repeat;background-size:.55em .55em;-webkit-print-color-adjust:exact;print-color-adjust:exact}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px auto inherit}input[type=file]::file-selector-button{color:#fff;background:#1f2937;border:0;font-weight:500;font-size:.875rem;cursor:pointer;padding:.625rem 1rem .625rem 2rem;margin-inline-start:-1rem;margin-inline-end:1rem}input[type=file]::file-selector-button:hover{background:#374151}.dark input[type=file]::file-selector-button{color:#fff;background:#4b5563}.dark input[type=file]::file-selector-button:hover{background:#6b7280}input[type=range]::-webkit-slider-thumb{height:1.25rem;width:1.25rem;background:#1c64f2;border-radius:9999px;border:0;appearance:none;-moz-appearance:none;-webkit-appearance:none;cursor:pointer}input[type=range]:disabled::-webkit-slider-thumb{background:#9ca3af}.dark input[type=range]:disabled::-webkit-slider-thumb{background:#6b7280}input[type=range]:focus::-webkit-slider-thumb{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1px;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity))}input[type=range]::-moz-range-thumb{height:1.25rem;width:1.25rem;background:#1c64f2;border-radius:9999px;border:0;appearance:none;-moz-appearance:none;-webkit-appearance:none;cursor:pointer}input[type=range]:disabled::-moz-range-thumb{background:#9ca3af}.dark input[type=range]:disabled::-moz-range-thumb{background:#6b7280}input[type=range]::-moz-range-progress{background:#3f83f8}input[type=range]::-ms-fill-lower{background:#3f83f8}.toggle-bg:after{content:"";position:absolute;top:.125rem;left:.125rem;background:#fff;border-color:#d1d5db;border-width:1px;border-radius:9999px;height:1.25rem;width:1.25rem;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.15s;box-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color)}input:checked+.toggle-bg:after{transform:translate(100%);border-color:#fff}input:checked+.toggle-bg{background:#1c64f2;border-color:#1c64f2}*{scrollbar-color:initial;scrollbar-width:initial}body{min-height:100vh;background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #e0eaff var(--tw-gradient-from-position);--tw-gradient-to: rgb(224 234 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #f0e6ff var(--tw-gradient-to-position)}body:is(.dark *){background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #0f2647 var(--tw-gradient-from-position);--tw-gradient-to: rgb(15 38 71 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #1e1b4b var(--tw-gradient-to-position)}html{scroll-behavior:smooth}body{font-family:Roboto,sans-serif}.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-y-0{top:0;bottom:0}.-bottom-0\.5{bottom:-.125rem}.-bottom-1{bottom:-.25rem}.-bottom-1\.5{bottom:-.375rem}.-bottom-2{bottom:-.5rem}.-bottom-4{bottom:-1rem}.-left-1\.5{left:-.375rem}.-right-0\.5{right:-.125rem}.-right-1{right:-.25rem}.-right-1\.5{right:-.375rem}.-top-1\.5{top:-.375rem}.-top-2{top:-.5rem}.bottom-0{bottom:0}.bottom-16{bottom:4rem}.bottom-2{bottom:.5rem}.bottom-2\.5{bottom:.625rem}.bottom-20{bottom:5rem}.bottom-4{bottom:1rem}.bottom-5{bottom:1.25rem}.bottom-6{bottom:1.5rem}.bottom-\[60px\]{bottom:60px}.bottom-full{bottom:100%}.left-0{left:0}.left-1\/2{left:50%}.left-2{left:.5rem}.left-2\.5{left:.625rem}.left-20{left:5rem}.left-3{left:.75rem}.right-0{right:0}.right-2{right:.5rem}.right-2\.5{right:.625rem}.right-20{right:5rem}.right-3{right:.75rem}.right-4{right:1rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-2{top:.5rem}.top-20{top:5rem}.top-3{top:.75rem}.top-full{top:100%}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.-m-1{margin:-.25rem}.-m-2{margin:-.5rem}.-m-4{margin:-1rem}.m-0{margin:0}.m-1{margin:.25rem}.m-2{margin:.5rem}.m-4{margin:1rem}.-mx-1\.5{margin-left:-.375rem;margin-right:-.375rem}.-mx-5{margin-left:-1.25rem;margin-right:-1.25rem}.-my-1\.5{margin-top:-.375rem;margin-bottom:-.375rem}.mx-0{margin-left:0;margin-right:0}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-1\.5{margin-left:.375rem;margin-right:.375rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-8{margin-top:2rem;margin-bottom:2rem}.-mb-px{margin-bottom:-1px}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-3\.5{margin-bottom:.875rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-0{margin-left:0}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-5{margin-left:1.25rem}.ml-auto{margin-left:auto}.mr-0{margin-right:0}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-12{margin-top:3rem}.mt-14{margin-top:3.5rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-0{height:0px}.h-0\.5{height:.125rem}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-20{height:5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-32{height:8rem}.h-36{height:9rem}.h-4{height:1rem}.h-4\/5{height:80%}.h-48{height:12rem}.h-5{height:1.25rem}.h-5\/6{height:83.333333%}.h-56{height:14rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-\[200px\]{height:200px}.h-auto{height:auto}.h-full{height:100%}.h-modal{height:calc(100% - 2rem)}.h-px{height:1px}.h-screen{height:100vh}.max-h-60{max-height:15rem}.max-h-64{max-height:16rem}.max-h-80{max-height:20rem}.max-h-96{max-height:24rem}.max-h-\[400px\]{max-height:400px}.max-h-\[60vh\]{max-height:60vh}.max-h-\[70vh\]{max-height:70vh}.max-h-\[80vh\]{max-height:80vh}.max-h-\[90vh\]{max-height:90vh}.max-h-full{max-height:100%}.min-h-0{min-height:0px}.min-h-\[220px\]{min-height:220px}.min-h-\[500px\]{min-height:500px}.min-h-full{min-height:100%}.min-h-screen{min-height:100vh}.w-0{width:0px}.w-0\.5{width:.125rem}.w-1{width:.25rem}.w-1\.5{width:.375rem}.w-1\/2{width:50%}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-11\/12{width:91.666667%}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-20{width:5rem}.w-24{width:6rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-3\/5{width:60%}.w-36{width:9rem}.w-4{width:1rem}.w-4\/5{width:80%}.w-40{width:10rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-96{width:24rem}.w-\[300px\]{width:300px}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-px{width:1px}.w-screen{width:100vw}.min-w-80{min-width:20rem}.min-w-96{min-width:24rem}.min-w-\[14rem\]{min-width:14rem}.min-w-\[15rem\]{min-width:15rem}.min-w-\[23rem\]{min-width:23rem}.min-w-\[24rem\]{min-width:24rem}.min-w-\[300px\]{min-width:300px}.min-w-full{min-width:100%}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-5xl{max-width:64rem}.max-w-6xl{max-width:72rem}.max-w-7xl{max-width:80rem}.max-w-\[14rem\]{max-width:14rem}.max-w-\[15rem\]{max-width:15rem}.max-w-\[23rem\]{max-width:23rem}.max-w-\[24rem\]{max-width:24rem}.max-w-\[300px\]{max-width:300px}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.flex-grow-0{flex-grow:0}.grow{flex-grow:1}.origin-left{transform-origin:left}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-0{--tw-translate-y: -0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-full{--tw-translate-y: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-1\/2{--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1\/2{--tw-translate-y: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-95{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-x-0{--tw-scale-x: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform-none{transform:none}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-move{cursor:move}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.grid-cols-\[50px\,1fr\]{grid-template-columns:50px 1fr}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.flex-nowrap{flex-wrap:nowrap}.place-content-center{place-content:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.-space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-1rem * var(--tw-space-x-reverse));margin-left:calc(-1rem * calc(1 - var(--tw-space-x-reverse)))}.-space-x-px>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-1px * var(--tw-space-x-reverse));margin-left:calc(-1px * calc(1 - var(--tw-space-x-reverse)))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-100>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(243 244 246 / var(--tw-divide-opacity))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.self-center{align-self:center}.self-stretch{align-self:stretch}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-hidden{overflow-y:hidden}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.\!rounded-full{border-radius:9999px!important}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-4{border-width:4px}.border-x-0{border-left-width:0px;border-right-width:0px}.border-b{border-bottom-width:1px}.border-b-0{border-bottom-width:0px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-t{border-top-width:1px}.border-t-0{border-top-width:0px}.border-t-2{border-top-width:2px}.border-t-4{border-top-width:4px}.border-dashed{border-style:dashed}.border-none{border-style:none}.border-bg-dark{border-color:var(--color-bg-dark)}.border-blue-200{--tw-border-opacity: 1;border-color:rgb(195 221 253 / var(--tw-border-opacity))}.border-blue-300{--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.border-blue-600{--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity))}.border-blue-700{--tw-border-opacity: 1;border-color:rgb(26 86 219 / var(--tw-border-opacity))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-gray-500{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}.border-gray-600{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.border-gray-800{--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}.border-green-500{--tw-border-opacity: 1;border-color:rgb(14 159 110 / var(--tw-border-opacity))}.border-green-600{--tw-border-opacity: 1;border-color:rgb(5 122 85 / var(--tw-border-opacity))}.border-green-700{--tw-border-opacity: 1;border-color:rgb(4 108 78 / var(--tw-border-opacity))}.border-pink-600{--tw-border-opacity: 1;border-color:rgb(214 31 105 / var(--tw-border-opacity))}.border-pink-700{--tw-border-opacity: 1;border-color:rgb(191 18 93 / var(--tw-border-opacity))}.border-primary{border-color:var(--color-primary)}.border-primary-light{border-color:var(--color-primary-light)}.border-purple-600{--tw-border-opacity: 1;border-color:rgb(126 58 242 / var(--tw-border-opacity))}.border-purple-700{--tw-border-opacity: 1;border-color:rgb(108 43 217 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity))}.border-red-600{--tw-border-opacity: 1;border-color:rgb(224 36 36 / var(--tw-border-opacity))}.border-red-700{--tw-border-opacity: 1;border-color:rgb(200 30 30 / var(--tw-border-opacity))}.border-secondary{border-color:var(--color-secondary)}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.border-yellow-400{--tw-border-opacity: 1;border-color:rgb(227 160 8 / var(--tw-border-opacity))}.border-yellow-500{--tw-border-opacity: 1;border-color:rgb(194 120 3 / var(--tw-border-opacity))}.border-t-blue-600{--tw-border-opacity: 1;border-top-color:rgb(28 100 242 / var(--tw-border-opacity))}.bg-accent{background-color:var(--color-accent)}.bg-bg-dark-tone-panel{background-color:var(--color-bg-dark-tone-panel)}.bg-bg-light{background-color:var(--color-bg-light)}.bg-bg-light-tone{background-color:var(--color-bg-light-tone)}.bg-bg-light-tone-panel{background-color:var(--color-bg-light-tone-panel)}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}.bg-blue-200{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(235 245 255 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(222 247 236 / var(--tw-bg-opacity))}.bg-green-200{--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity))}.bg-green-400{--tw-bg-opacity: 1;background-color:rgb(49 196 141 / var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(14 159 110 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}.bg-green-700{--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}.bg-green-900{--tw-bg-opacity: 1;background-color:rgb(1 71 55 / var(--tw-bg-opacity))}.bg-indigo-100{--tw-bg-opacity: 1;background-color:rgb(229 237 255 / var(--tw-bg-opacity))}.bg-indigo-200{--tw-bg-opacity: 1;background-color:rgb(205 219 254 / var(--tw-bg-opacity))}.bg-indigo-500{--tw-bg-opacity: 1;background-color:rgb(104 117 245 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(88 80 236 / var(--tw-bg-opacity))}.bg-orange-100{--tw-bg-opacity: 1;background-color:rgb(254 236 220 / var(--tw-bg-opacity))}.bg-pink-100{--tw-bg-opacity: 1;background-color:rgb(252 232 243 / var(--tw-bg-opacity))}.bg-pink-200{--tw-bg-opacity: 1;background-color:rgb(250 209 232 / var(--tw-bg-opacity))}.bg-pink-700{--tw-bg-opacity: 1;background-color:rgb(191 18 93 / var(--tw-bg-opacity))}.bg-primary{background-color:var(--color-primary)}.bg-primary-light{background-color:var(--color-primary-light)}.bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(237 235 254 / var(--tw-bg-opacity))}.bg-purple-200{--tw-bg-opacity: 1;background-color:rgb(220 215 254 / var(--tw-bg-opacity))}.bg-purple-500{--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}.bg-purple-600{--tw-bg-opacity: 1;background-color:rgb(126 58 242 / var(--tw-bg-opacity))}.bg-purple-700{--tw-bg-opacity: 1;background-color:rgb(108 43 217 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(253 232 232 / var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(249 128 128 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(240 82 82 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.bg-red-700{--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}.bg-red-900{--tw-bg-opacity: 1;background-color:rgb(119 29 29 / var(--tw-bg-opacity))}.bg-secondary{background-color:var(--color-secondary)}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\/30{background-color:#ffffff4d}.bg-white\/50{background-color:#ffffff80}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(253 246 178 / var(--tw-bg-opacity))}.bg-yellow-200{--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}.bg-yellow-400{--tw-bg-opacity: 1;background-color:rgb(227 160 8 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.bg-opacity-70{--tw-bg-opacity: .7}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-bg-light{--tw-gradient-from: var(--color-bg-light) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-bg-light-tone{--tw-gradient-from: var(--color-bg-light-tone) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-blue-400{--tw-gradient-from: #76A9FA var(--tw-gradient-from-position);--tw-gradient-to: rgb(118 169 250 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-blue-500{--tw-gradient-from: #3F83F8 var(--tw-gradient-from-position);--tw-gradient-to: rgb(63 131 248 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-blue-500\/10{--tw-gradient-from: rgb(63 131 248 / .1) var(--tw-gradient-from-position);--tw-gradient-to: rgb(63 131 248 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-cyan-500{--tw-gradient-from: #06b6d4 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 182 212 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-green-400{--tw-gradient-from: #31C48D var(--tw-gradient-from-position);--tw-gradient-to: rgb(49 196 141 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-green-500{--tw-gradient-from: #0E9F6E var(--tw-gradient-from-position);--tw-gradient-to: rgb(14 159 110 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-indigo-600{--tw-gradient-from: #5850EC var(--tw-gradient-from-position);--tw-gradient-to: rgb(88 80 236 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-lime-500{--tw-gradient-from: #84cc16 var(--tw-gradient-from-position);--tw-gradient-to: rgb(132 204 22 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-pink-500{--tw-gradient-from: #E74694 var(--tw-gradient-from-position);--tw-gradient-to: rgb(231 70 148 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-500{--tw-gradient-from: #9061F9 var(--tw-gradient-from-position);--tw-gradient-to: rgb(144 97 249 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-600{--tw-gradient-from: #7E3AF2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-red-200{--tw-gradient-from: #FBD5D5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(251 213 213 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-red-500{--tw-gradient-from: #F05252 var(--tw-gradient-from-position);--tw-gradient-to: rgb(240 82 82 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-200{--tw-gradient-from: #AFECEF var(--tw-gradient-from-position);--tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-300{--tw-gradient-from: #7EDCE2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 220 226 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-500{--tw-gradient-from: #0694A2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 148 162 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-5\%{--tw-gradient-from-position: 5%}.via-bg-light{--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--color-bg-light) var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-blue-600{--tw-gradient-to: rgb(28 100 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #1C64F2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-cyan-600{--tw-gradient-to: rgb(8 145 178 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #0891b2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-green-600{--tw-gradient-to: rgb(5 122 85 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #057A55 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-lime-600{--tw-gradient-to: rgb(101 163 13 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #65a30d var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-pink-600{--tw-gradient-to: rgb(214 31 105 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #D61F69 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-purple-600{--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #7E3AF2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-red-300{--tw-gradient-to: rgb(248 180 180 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #F8B4B4 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-red-600{--tw-gradient-to: rgb(224 36 36 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #E02424 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-teal-600{--tw-gradient-to: rgb(4 116 129 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #047481 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-10\%{--tw-gradient-via-position: 10%}.to-blue-500{--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position)}.to-blue-600{--tw-gradient-to: #1C64F2 var(--tw-gradient-to-position)}.to-blue-700{--tw-gradient-to: #1A56DB var(--tw-gradient-to-position)}.to-cyan-700{--tw-gradient-to: #0e7490 var(--tw-gradient-to-position)}.to-green-700{--tw-gradient-to: #046C4E var(--tw-gradient-to-position)}.to-lime-200{--tw-gradient-to: #d9f99d var(--tw-gradient-to-position)}.to-lime-300{--tw-gradient-to: #bef264 var(--tw-gradient-to-position)}.to-lime-700{--tw-gradient-to: #4d7c0f var(--tw-gradient-to-position)}.to-orange-400{--tw-gradient-to: #FF8A4C var(--tw-gradient-to-position)}.to-pink-500{--tw-gradient-to: #E74694 var(--tw-gradient-to-position)}.to-pink-700{--tw-gradient-to: #BF125D var(--tw-gradient-to-position)}.to-purple-500{--tw-gradient-to: #9061F9 var(--tw-gradient-to-position)}.to-purple-500\/10{--tw-gradient-to: rgb(144 97 249 / .1) var(--tw-gradient-to-position)}.to-purple-600{--tw-gradient-to: #7E3AF2 var(--tw-gradient-to-position)}.to-purple-700{--tw-gradient-to: #6C2BD9 var(--tw-gradient-to-position)}.to-red-700{--tw-gradient-to: #C81E1E var(--tw-gradient-to-position)}.to-teal-700{--tw-gradient-to: #036672 var(--tw-gradient-to-position)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.to-yellow-200{--tw-gradient-to: #FCE96A var(--tw-gradient-to-position)}.to-100\%{--tw-gradient-to-position: 100%}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.fill-blue-600{fill:#1c64f2}.fill-current{fill:currentColor}.fill-gray-300{fill:#d1d5db}.fill-gray-600{fill:#4b5563}.fill-green-500{fill:#0e9f6e}.fill-pink-600{fill:#d61f69}.fill-purple-600{fill:#7e3af2}.fill-red-600{fill:#e02424}.fill-secondary{fill:var(--color-secondary)}.fill-white{fill:#fff}.fill-yellow-400{fill:#e3a008}.stroke-2{stroke-width:2}.object-cover{-o-object-fit:cover;object-fit:cover}.object-fill{-o-object-fit:fill;object-fit:fill}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-0{padding-bottom:0}.pb-2{padding-bottom:.5rem}.pb-20{padding-bottom:5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-5{padding-bottom:1.25rem}.pb-6{padding-bottom:1.5rem}.pb-80{padding-bottom:20rem}.pl-10{padding-left:2.5rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pt-0{padding-top:0}.pt-12{padding-top:3rem}.pt-16{padding-top:4rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.align-bottom{vertical-align:bottom}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:PTSans,Roboto,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-6xl{font-size:3.75rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.font-thin{font-weight:100}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-9{line-height:2.25rem}.leading-none{line-height:1}.leading-tight{line-height:1.25}.tracking-wide{letter-spacing:.025em}.text-amber-500{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-blue-100{--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-green-200{--tw-text-opacity: 1;color:rgb(188 240 218 / var(--tw-text-opacity))}.text-green-400{--tw-text-opacity: 1;color:rgb(49 196 141 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:rgb(5 122 85 / var(--tw-text-opacity))}.text-green-700{--tw-text-opacity: 1;color:rgb(4 108 78 / var(--tw-text-opacity))}.text-green-800{--tw-text-opacity: 1;color:rgb(3 84 63 / var(--tw-text-opacity))}.text-green-900{--tw-text-opacity: 1;color:rgb(1 71 55 / var(--tw-text-opacity))}.text-indigo-500{--tw-text-opacity: 1;color:rgb(104 117 245 / var(--tw-text-opacity))}.text-indigo-700{--tw-text-opacity: 1;color:rgb(81 69 205 / var(--tw-text-opacity))}.text-indigo-800{--tw-text-opacity: 1;color:rgb(66 56 157 / var(--tw-text-opacity))}.text-indigo-900{--tw-text-opacity: 1;color:rgb(54 47 120 / var(--tw-text-opacity))}.text-light-text-panel{color:var(--color-light-text-panel)}.text-orange-200{--tw-text-opacity: 1;color:rgb(252 217 189 / var(--tw-text-opacity))}.text-orange-500{--tw-text-opacity: 1;color:rgb(255 90 31 / var(--tw-text-opacity))}.text-orange-600{--tw-text-opacity: 1;color:rgb(208 56 1 / var(--tw-text-opacity))}.text-pink-500{--tw-text-opacity: 1;color:rgb(231 70 148 / var(--tw-text-opacity))}.text-pink-600{--tw-text-opacity: 1;color:rgb(214 31 105 / var(--tw-text-opacity))}.text-pink-700{--tw-text-opacity: 1;color:rgb(191 18 93 / var(--tw-text-opacity))}.text-pink-800{--tw-text-opacity: 1;color:rgb(153 21 75 / var(--tw-text-opacity))}.text-pink-900{--tw-text-opacity: 1;color:rgb(117 26 61 / var(--tw-text-opacity))}.text-purple-500{--tw-text-opacity: 1;color:rgb(144 97 249 / var(--tw-text-opacity))}.text-purple-600{--tw-text-opacity: 1;color:rgb(126 58 242 / var(--tw-text-opacity))}.text-purple-700{--tw-text-opacity: 1;color:rgb(108 43 217 / var(--tw-text-opacity))}.text-purple-800{--tw-text-opacity: 1;color:rgb(85 33 181 / var(--tw-text-opacity))}.text-purple-900{--tw-text-opacity: 1;color:rgb(74 29 150 / var(--tw-text-opacity))}.text-red-100{--tw-text-opacity: 1;color:rgb(253 232 232 / var(--tw-text-opacity))}.text-red-200{--tw-text-opacity: 1;color:rgb(251 213 213 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(249 128 128 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(224 36 36 / var(--tw-text-opacity))}.text-red-700{--tw-text-opacity: 1;color:rgb(200 30 30 / var(--tw-text-opacity))}.text-red-800{--tw-text-opacity: 1;color:rgb(155 28 28 / var(--tw-text-opacity))}.text-red-900{--tw-text-opacity: 1;color:rgb(119 29 29 / var(--tw-text-opacity))}.text-secondary{color:var(--color-secondary)}.text-slate-50{--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.text-slate-950{--tw-text-opacity: 1;color:rgb(2 6 23 / var(--tw-text-opacity))}.text-teal-500{--tw-text-opacity: 1;color:rgb(6 148 162 / var(--tw-text-opacity))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(227 160 8 / var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(194 120 3 / var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(142 75 16 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(114 59 19 / var(--tw-text-opacity))}.text-yellow-900{--tw-text-opacity: 1;color:rgb(99 49 18 / var(--tw-text-opacity))}.text-opacity-95{--tw-text-opacity: .95}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-20{opacity:.2}.opacity-25{opacity:.25}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-inner{--tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / .05);--tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-blue-500\/50{--tw-shadow-color: rgb(63 131 248 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-blue-800\/80{--tw-shadow-color: rgb(30 66 159 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-cyan-500\/50{--tw-shadow-color: rgb(6 182 212 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-cyan-800\/80{--tw-shadow-color: rgb(21 94 117 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-green-500\/50{--tw-shadow-color: rgb(14 159 110 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-green-800\/80{--tw-shadow-color: rgb(3 84 63 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-lime-500\/50{--tw-shadow-color: rgb(132 204 22 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-lime-800\/80{--tw-shadow-color: rgb(63 98 18 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-pink-500\/50{--tw-shadow-color: rgb(231 70 148 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-pink-800\/80{--tw-shadow-color: rgb(153 21 75 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-purple-500\/50{--tw-shadow-color: rgb(144 97 249 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-purple-800\/80{--tw-shadow-color: rgb(85 33 181 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-red-500\/50{--tw-shadow-color: rgb(240 82 82 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-red-800\/80{--tw-shadow-color: rgb(155 28 28 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-teal-500\/50{--tw-shadow-color: rgb(6 148 162 / .5);--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}.ring-blue-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(30 66 159 / var(--tw-ring-opacity))}.ring-cyan-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(21 94 117 / var(--tw-ring-opacity))}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.ring-gray-600{--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}.ring-gray-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(31 41 55 / var(--tw-ring-opacity))}.ring-green-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(3 84 63 / var(--tw-ring-opacity))}.ring-pink-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(153 21 75 / var(--tw-ring-opacity))}.ring-pink-900{--tw-ring-opacity: 1;--tw-ring-color: rgb(117 26 61 / var(--tw-ring-opacity))}.ring-purple-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(85 33 181 / var(--tw-ring-opacity))}.ring-purple-900{--tw-ring-opacity: 1;--tw-ring-color: rgb(74 29 150 / var(--tw-ring-opacity))}.ring-red-400{--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}.ring-red-900{--tw-ring-opacity: 1;--tw-ring-color: rgb(119 29 29 / var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity: .05}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-md{--tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / .07)) drop-shadow(0 2px 2px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-sm{--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-75{transition-duration:75ms}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.scrollbar{scrollbar-width:auto;scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.scrollbar::-webkit-scrollbar{display:block;width:var(--scrollbar-width, 16px);height:var(--scrollbar-height, 16px)}.scrollbar-thin::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}.scrollbar-thin::-webkit-scrollbar-track:hover{background-color:var(--scrollbar-track-hover, var(--scrollbar-track))}.scrollbar-thin::-webkit-scrollbar-track:active{background-color:var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)))}.scrollbar-thin::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}.scrollbar-thin::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover, var(--scrollbar-thumb))}.scrollbar-thin::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)))}.scrollbar-thin::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}.scrollbar-thin::-webkit-scrollbar-corner:hover{background-color:var(--scrollbar-corner-hover, var(--scrollbar-corner))}.scrollbar-thin::-webkit-scrollbar-corner:active{background-color:var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)))}.scrollbar-thin{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.scrollbar-thin::-webkit-scrollbar{display:block;width:8px;height:8px}.scrollbar-track-bg-light{--scrollbar-track: var(--color-bg-light) !important}.scrollbar-track-bg-light-tone{--scrollbar-track: var(--color-bg-light-tone) !important}.scrollbar-track-blue-100{--scrollbar-track: #E1EFFE !important}.scrollbar-track-gray-200{--scrollbar-track: #E5E7EB !important}.scrollbar-thumb-bg-light-tone{--scrollbar-thumb: var(--color-bg-light-tone) !important}.scrollbar-thumb-bg-light-tone-panel{--scrollbar-thumb: var(--color-bg-light-tone-panel) !important}.scrollbar-thumb-blue-500{--scrollbar-thumb: #3F83F8 !important}.scrollbar-thumb-gray-400{--scrollbar-thumb: #9CA3AF !important}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.display-none{display:none}h1{margin-bottom:1.5rem;font-size:2.25rem;line-height:2.5rem;font-weight:700;--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}h1:is(.dark *){--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}@media (min-width: 768px){h1{font-size:3rem;line-height:1}}h2{margin-bottom:1rem;font-size:1.875rem;line-height:2.25rem;font-weight:600;--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}h2:is(.dark *){--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}h3{margin-bottom:.75rem;font-size:1.5rem;line-height:2rem;font-weight:500;--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}h3:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}h4{margin-bottom:.5rem;font-size:1.25rem;line-height:1.75rem;font-weight:500;--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}h4:is(.dark *){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}h1,h2{border-bottom-width:1px;--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity));padding-bottom:.5rem}h1:is(.dark *),h2:is(.dark *){--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity))}p{overflow-wrap:break-word;font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}p:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}ul{margin-left:0;list-style-type:disc}li{margin-left:1.25rem;list-style-type:disc}ol{margin-left:1.25rem;list-style-type:decimal}:root{--color-primary: #4a90e2;--color-primary-light: #6ab7f1;--color-secondary: #8ab8e0;--color-accent: #3a7ca1;--color-light-text-panel: #ffffff;--color-dark-text-panel: #e0e0e0;--color-bg-light-panel: #f0faff;--color-bg-light: #ffffff;--color-bg-light-tone: #e0f0ff;--color-bg-light-code-block: #f5faff;--color-bg-light-tone-panel: #d0e0f0;--color-bg-light-discussion: #f8faff;--color-bg-light-discussion-odd: #f0faff;--color-bg-dark: #0a0a1a;--color-bg-dark-tone: #151521;--color-bg-dark-tone-panel: #1c1c2a;--color-bg-dark-code-block: #151521;--color-bg-dark-discussion: #0e0e1a;--color-bg-dark-discussion-odd: #0d0d1a}textarea,input,select{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}textarea:is(.dark *),input:is(.dark *),select:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}.background-color{min-height:100vh;background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #E1EFFE var(--tw-gradient-from-position);--tw-gradient-to: rgb(225 239 254 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #CABFFD var(--tw-gradient-to-position)}.background-color:is(.dark *){--tw-gradient-from: #1E429F var(--tw-gradient-from-position);--tw-gradient-to: rgb(30 66 159 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #4A1D96 var(--tw-gradient-to-position)}.toolbar-color{border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity));--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.toolbar-color:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.panels-color{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.panels-color:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.unicolor-panels-color{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.unicolor-panels-color:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.chatbox-color{--tw-bg-opacity: 1;background-color:rgb(235 245 255 / var(--tw-bg-opacity))}.chatbox-color:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.message{position:relative;margin:.5rem;display:flex;width:100%;flex-grow:1;flex-direction:column;flex-wrap:wrap;overflow:visible;border-radius:.5rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity));padding:1.25rem 1.25rem .75rem;font-size:1.125rem;line-height:1.75rem;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.message:is(.dark *){--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity))}.message{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(35 56 118 / var(--tw-text-opacity))}.message:is(.dark *){background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #233876 var(--tw-gradient-from-position);--tw-gradient-to: rgb(35 56 118 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #1E429F var(--tw-gradient-to-position);--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.message:hover{--tw-border-opacity: 1;border-color:rgb(118 169 250 / var(--tw-border-opacity))}.message:hover:is(.dark *){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.message:nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(235 245 255 / var(--tw-bg-opacity))}.message:nth-child(2n):is(.dark *){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}.message:nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}.message:nth-child(odd):is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.message-header{margin-bottom:.5rem;font-size:1.25rem;line-height:1.75rem;font-weight:600}.message-content{font-size:1.125rem;line-height:1.75rem;line-height:1.625}body{min-height:100vh;--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity));font-size:1rem;line-height:1.5rem}body:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}.discussion{margin-right:.5rem;font-size:.75rem;line-height:1rem}.discussion-hilighted{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity));font-size:.75rem;line-height:1rem}.discussion-hilighted:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.bg-gradient-welcome{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #E1EFFE var(--tw-gradient-from-position);--tw-gradient-to: rgb(225 239 254 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #CABFFD var(--tw-gradient-to-position)}.bg-gradient-welcome:is(.dark *){--tw-gradient-from: #1E429F var(--tw-gradient-from-position);--tw-gradient-to: rgb(30 66 159 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #4A1D96 var(--tw-gradient-to-position)}.bg-gradient-progress{background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: #C3DDFD var(--tw-gradient-from-position);--tw-gradient-to: rgb(195 221 253 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #A4CAFE var(--tw-gradient-to-position)}.bg-gradient-progress:is(.dark *){--tw-gradient-from: #1A56DB var(--tw-gradient-from-position);--tw-gradient-to: rgb(26 86 219 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #1C64F2 var(--tw-gradient-to-position)}.text-gradient-title{background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: #1A56DB var(--tw-gradient-from-position);--tw-gradient-to: rgb(26 86 219 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position);-webkit-background-clip:text;background-clip:text;color:transparent}.text-gradient-title:is(.dark *){--tw-gradient-from: #A4CAFE var(--tw-gradient-from-position);--tw-gradient-to: rgb(164 202 254 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position)}.text-subtitle{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.text-subtitle:is(.dark *){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.text-author{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.text-author:is(.dark *){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.text-loading{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.text-loading:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.text-progress{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.text-progress:is(.dark *){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.btn-primary{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity));padding:.5rem 1rem;font-weight:700;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.btn-secondary{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity));padding:.5rem 1rem;font-weight:700;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.btn-secondary:hover{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.card{border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding:1.5rem;--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.card:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.input{border-radius:.375rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity));padding:.5rem 1rem}.input:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity))}.input:is(.dark *){--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.input:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(118 169 250 / var(--tw-ring-opacity))}.label{margin-bottom:.25rem;display:block;font-size:.875rem;line-height:1.25rem;font-weight:500;--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.label:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.link{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.link:hover{--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.link:is(.dark *){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.link:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.navbar-container{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity));--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.navbar-container:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.game-menu{position:relative;display:flex;align-items:center;justify-content:center}.text-shadow-custom{text-shadow:1px 1px 0px #e0e0e0,-1px -1px 0px #e0e0e0,1px -1px 0px #e0e0e0,-1px 1px 0px #e0e0e0}.menu-item{margin-bottom:.5rem;padding:.5rem 1rem;font-size:1.125rem;line-height:1.75rem;font-weight:700;--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity));transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.menu-item:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.menu-item:hover{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.menu-item:is(.dark *):hover{--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.menu-item.active-link{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-top-left-radius:.375rem;border-top-right-radius:.375rem;--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity));font-size:1.125rem;line-height:1.75rem;font-weight:700;--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity));transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);text-shadow:1px 1px 0px #e0e0e0,-1px -1px 0px #e0e0e0,1px -1px 0px #e0e0e0,-1px 1px 0px #e0e0e0}.menu-item.active-link:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.menu-item.active-link:hover{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));--tw-text-opacity: 1;color:rgb(35 56 118 / var(--tw-text-opacity))}.menu-item.active-link:is(.dark *):hover{--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.menu-item.active-link{text-shadow:0 0 10px rgba(128,128,128,.5)}.menu-item.active-link:before{content:"";position:absolute;bottom:-5px;left:0;width:100%;height:5px;background:linear-gradient(to right,#4a90e2,#8ab8e0,#4a90e2);border-radius:10px;animation:shimmer 2s infinite}.dark .menu-item.active-link:before{background:linear-gradient(to right,#6ab7f1,#aaa,#6ab7f1)}@keyframes shimmer{0%{background-position:-100% 0}to{background-position:100% 0}}@keyframes bounce{0%,to{transform:translateY(0)}50%{transform:translateY(-5px)}}.feather-emoji{display:inline-block;margin-left:5px;animation:bounce 2s infinite}.app-card{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity));--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.app-card:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.app-card:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.app-card:hover{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}button{transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}button:hover{--tw-translate-y: -.125rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scrollbar-thin{scrollbar-width:thin;scrollbar-color:#76A9FA #C3DDFD}.dark .scrollbar-thin{scrollbar-color:#1C64F2 #1E429F}.scrollbar-thin::-webkit-scrollbar{width:.5rem}.scrollbar-thin::-webkit-scrollbar-track{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.scrollbar-thin:is(.dark *)::-webkit-scrollbar-track{--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.scrollbar-thin::-webkit-scrollbar-thumb{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity))}.scrollbar-thin:is(.dark *)::-webkit-scrollbar-thumb{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.scrollbar-thin::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.scrollbar-thin:is(.dark *)::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.btn{display:flex;align-items:center;border-radius:.5rem;padding:.5rem 1rem;font-weight:600;--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.btn-primary{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.btn-primary:hover{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.btn-primary:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity))}.btn-primary:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(28 100 242 / var(--tw-ring-opacity))}.btn-secondary{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.btn-secondary:hover{--tw-bg-opacity: 1;background-color:rgb(164 202 254 / var(--tw-bg-opacity))}.btn-secondary:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(195 221 253 / var(--tw-ring-opacity))}.btn-secondary:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.btn-secondary:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.btn-secondary:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(28 100 242 / var(--tw-ring-opacity))}.search-input{width:100%;border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity));background-color:transparent;padding:.5rem 1rem .5rem 2.5rem;--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.search-input:focus{--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity));outline:2px solid transparent;outline-offset:2px}.search-input:is(.dark *){--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity));--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.search-input:focus:is(.dark *){--tw-border-opacity: 1;border-color:rgb(118 169 250 / var(--tw-border-opacity))}.scrollbar::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}.scrollbar::-webkit-scrollbar-track:hover{background-color:var(--scrollbar-track-hover, var(--scrollbar-track))}.scrollbar::-webkit-scrollbar-track:active{background-color:var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)))}.scrollbar::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}.scrollbar::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover, var(--scrollbar-thumb))}.scrollbar::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)))}.scrollbar::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}.scrollbar::-webkit-scrollbar-corner:hover{background-color:var(--scrollbar-corner-hover, var(--scrollbar-corner))}.scrollbar::-webkit-scrollbar-corner:active{background-color:var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)))}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.scrollbar::-webkit-scrollbar{display:block;width:8px;height:8px}.scrollbar{--scrollbar-track: #C3DDFD;--scrollbar-thumb: #76A9FA;scrollbar-width:thin;scrollbar-color:#76A9FA #C3DDFD}.dark .scrollbar{scrollbar-color:#1C64F2 #1E429F}.scrollbar::-webkit-scrollbar{width:.5rem}.scrollbar::-webkit-scrollbar-track{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.scrollbar:is(.dark *)::-webkit-scrollbar-track{--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity))}.scrollbar:is(.dark *)::-webkit-scrollbar-thumb{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.scrollbar::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.scrollbar:is(.dark *)::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.scrollbar{--scrollbar-thumb-hover: #3F83F8}.scrollbar:is(.dark *){--scrollbar-track: #1A56DB;--scrollbar-thumb: #1C64F2;--scrollbar-thumb-hover: #3F83F8}.card-title{margin-bottom:.5rem;font-size:1.25rem;line-height:1.75rem;font-weight:700;--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.card-title:is(.dark *){--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.card-content{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.card-content:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.card-footer{margin-top:1rem;display:flex;align-items:center;justify-content:space-between}.card-footer-button{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity));padding:.5rem 1rem;font-weight:700;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.card-footer-button:hover{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.subcard{border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(235 245 255 / var(--tw-bg-opacity));padding:1rem;--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.subcard:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.subcard-title{margin-bottom:.5rem;font-size:1.125rem;line-height:1.75rem;font-weight:700;--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.subcard-title:is(.dark *){--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.subcard-content{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.subcard-content:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.subcard-footer{margin-top:1rem;display:flex;align-items:center;justify-content:space-between}.subcard-footer-button{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity));padding:.5rem 1rem;font-weight:700;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.subcard-footer-button:hover{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.last\:mb-0:last-child{margin-bottom:0}.last\:\!border-transparent:last-child{border-color:transparent!important}.last\:pb-0:last-child{padding-bottom:0}.even\:bg-bg-light-discussion-odd:nth-child(2n){background-color:var(--color-bg-light-discussion-odd)}.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:block{display:block}.group:hover .group-hover\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group\/item:hover .group-hover\/item\:scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group\/item:hover .group-hover\/item\:scale-110{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:border-secondary{border-color:var(--color-secondary)}.group:hover .group-hover\:bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.group:hover .group-hover\:bg-white\/50{background-color:#ffffff80}.group:hover .group-hover\:bg-opacity-0{--tw-bg-opacity: 0}.group:hover .group-hover\:from-cyan-500{--tw-gradient-from: #06b6d4 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 182 212 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-green-400{--tw-gradient-from: #31C48D var(--tw-gradient-from-position);--tw-gradient-to: rgb(49 196 141 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-pink-500{--tw-gradient-from: #E74694 var(--tw-gradient-from-position);--tw-gradient-to: rgb(231 70 148 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-purple-500{--tw-gradient-from: #9061F9 var(--tw-gradient-from-position);--tw-gradient-to: rgb(144 97 249 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-purple-600{--tw-gradient-from: #7E3AF2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-red-200{--tw-gradient-from: #FBD5D5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(251 213 213 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-teal-300{--tw-gradient-from: #7EDCE2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 220 226 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:via-red-300{--tw-gradient-to: rgb(248 180 180 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #F8B4B4 var(--tw-gradient-via-position), var(--tw-gradient-to)}.group:hover .group-hover\:to-blue-500{--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-blue-600{--tw-gradient-to: #1C64F2 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-lime-300{--tw-gradient-to: #bef264 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-orange-400{--tw-gradient-to: #FF8A4C var(--tw-gradient-to-position)}.group:hover .group-hover\:to-pink-500{--tw-gradient-to: #E74694 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-yellow-200{--tw-gradient-to: #FCE96A var(--tw-gradient-to-position)}.group:hover .group-hover\:text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.group\/item:hover .group-hover\/item\:opacity-100,.group:hover .group-hover\:opacity-100{opacity:1}.group:focus .group-focus\:outline-none{outline:2px solid transparent;outline-offset:2px}.group:focus .group-focus\:ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.group:focus .group-focus\:ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.peer:checked~.peer-checked\:text-primary{color:var(--color-primary)}.hover\:z-10:hover{z-index:10}.hover\:z-20:hover{z-index:20}.hover\:h-8:hover{height:2rem}.hover\:-translate-y-1:hover{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:-translate-y-2:hover{--tw-translate-y: -.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-110:hover{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-x-100:hover{--tw-scale-x: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-2:hover{border-width:2px}.hover\:border-solid:hover{border-style:solid}.hover\:border-blue-300:hover{--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity))}.hover\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\:border-gray-600:hover{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.hover\:border-green-200:hover{--tw-border-opacity: 1;border-color:rgb(188 240 218 / var(--tw-border-opacity))}.hover\:border-primary:hover{border-color:var(--color-primary)}.hover\:border-primary-light:hover{border-color:var(--color-primary-light)}.hover\:border-secondary:hover{border-color:var(--color-secondary)}.hover\:bg-bg-light-tone:hover{background-color:var(--color-bg-light-tone)}.hover\:bg-bg-light-tone-panel:hover{background-color:var(--color-bg-light-tone-panel)}.hover\:bg-blue-100:hover{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}.hover\:bg-blue-200:hover{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.hover\:bg-blue-300:hover{--tw-bg-opacity: 1;background-color:rgb(164 202 254 / var(--tw-bg-opacity))}.hover\:bg-blue-400:hover{--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity))}.hover\:bg-blue-500:hover{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.hover\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.hover\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.hover\:bg-blue-800:hover{--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\:bg-gray-400:hover{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\:bg-gray-600:hover{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.hover\:bg-gray-900:hover{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.hover\:bg-green-200:hover{--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity))}.hover\:bg-green-300:hover{--tw-bg-opacity: 1;background-color:rgb(132 225 188 / var(--tw-bg-opacity))}.hover\:bg-green-600:hover{--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}.hover\:bg-green-700:hover{--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}.hover\:bg-green-800:hover{--tw-bg-opacity: 1;background-color:rgb(3 84 63 / var(--tw-bg-opacity))}.hover\:bg-pink-800:hover{--tw-bg-opacity: 1;background-color:rgb(153 21 75 / var(--tw-bg-opacity))}.hover\:bg-primary:hover{background-color:var(--color-primary)}.hover\:bg-primary-light:hover{background-color:var(--color-primary-light)}.hover\:bg-purple-800:hover{--tw-bg-opacity: 1;background-color:rgb(85 33 181 / var(--tw-bg-opacity))}.hover\:bg-red-200:hover{--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}.hover\:bg-red-300:hover{--tw-bg-opacity: 1;background-color:rgb(248 180 180 / var(--tw-bg-opacity))}.hover\:bg-red-600:hover{--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.hover\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}.hover\:bg-red-800:hover{--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity))}.hover\:bg-white:hover{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.hover\:bg-yellow-200:hover{--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}.hover\:bg-yellow-500:hover{--tw-bg-opacity: 1;background-color:rgb(194 120 3 / var(--tw-bg-opacity))}.hover\:bg-gradient-to-bl:hover{background-image:linear-gradient(to bottom left,var(--tw-gradient-stops))}.hover\:bg-gradient-to-br:hover{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.hover\:bg-gradient-to-l:hover{background-image:linear-gradient(to left,var(--tw-gradient-stops))}.hover\:bg-gradient-to-r:hover{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.hover\:from-blue-50:hover{--tw-gradient-from: #EBF5FF var(--tw-gradient-from-position);--tw-gradient-to: rgb(235 245 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:from-blue-500\/20:hover{--tw-gradient-from: rgb(63 131 248 / .2) var(--tw-gradient-from-position);--tw-gradient-to: rgb(63 131 248 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:from-teal-200:hover{--tw-gradient-from: #AFECEF var(--tw-gradient-from-position);--tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:to-lime-200:hover{--tw-gradient-to: #d9f99d var(--tw-gradient-to-position)}.hover\:to-purple-50:hover{--tw-gradient-to: #F6F5FF var(--tw-gradient-to-position)}.hover\:to-purple-500\/20:hover{--tw-gradient-to: rgb(144 97 249 / .2) var(--tw-gradient-to-position)}.hover\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.hover\:text-blue-700:hover{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.hover\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.hover\:text-gray-800:hover{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.hover\:text-green-300:hover{--tw-text-opacity: 1;color:rgb(132 225 188 / var(--tw-text-opacity))}.hover\:text-green-500:hover{--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.hover\:text-green-600:hover{--tw-text-opacity: 1;color:rgb(5 122 85 / var(--tw-text-opacity))}.hover\:text-indigo-600:hover{--tw-text-opacity: 1;color:rgb(88 80 236 / var(--tw-text-opacity))}.hover\:text-primary:hover{color:var(--color-primary)}.hover\:text-purple-600:hover{--tw-text-opacity: 1;color:rgb(126 58 242 / var(--tw-text-opacity))}.hover\:text-red-300:hover{--tw-text-opacity: 1;color:rgb(248 180 180 / var(--tw-text-opacity))}.hover\:text-red-500:hover{--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}.hover\:text-red-600:hover{--tw-text-opacity: 1;color:rgb(224 36 36 / var(--tw-text-opacity))}.hover\:text-red-700:hover{--tw-text-opacity: 1;color:rgb(200 30 30 / var(--tw-text-opacity))}.hover\:text-secondary:hover{color:var(--color-secondary)}.hover\:text-teal-600:hover{--tw-text-opacity: 1;color:rgb(4 116 129 / var(--tw-text-opacity))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\:text-yellow-600:hover{--tw-text-opacity: 1;color:rgb(159 88 10 / var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:no-underline:hover{text-decoration-line:none}.hover\:shadow-md:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-none:hover{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-xl:hover{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:scrollbar-thumb-primary{--scrollbar-thumb-hover: var(--color-primary) !important}.focus\:z-10:focus{z-index:10}.focus\:border-blue-300:focus{--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity))}.focus\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.focus\:border-secondary:focus{border-color:var(--color-secondary)}.focus\:border-transparent:focus{border-color:transparent}.focus\:text-blue-700:focus{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-4:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-blue-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(195 221 253 / var(--tw-ring-opacity))}.focus\:ring-blue-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity))}.focus\:ring-blue-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(118 169 250 / var(--tw-ring-opacity))}.focus\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity))}.focus\:ring-blue-500\/50:focus{--tw-ring-color: rgb(63 131 248 / .5)}.focus\:ring-blue-700:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(26 86 219 / var(--tw-ring-opacity))}.focus\:ring-cyan-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(165 243 252 / var(--tw-ring-opacity))}.focus\:ring-cyan-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(103 232 249 / var(--tw-ring-opacity))}.focus\:ring-gray-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity))}.focus\:ring-gray-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.focus\:ring-gray-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity))}.focus\:ring-green-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(188 240 218 / var(--tw-ring-opacity))}.focus\:ring-green-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(132 225 188 / var(--tw-ring-opacity))}.focus\:ring-green-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(49 196 141 / var(--tw-ring-opacity))}.focus\:ring-lime-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(217 249 157 / var(--tw-ring-opacity))}.focus\:ring-lime-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(190 242 100 / var(--tw-ring-opacity))}.focus\:ring-pink-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 209 232 / var(--tw-ring-opacity))}.focus\:ring-pink-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 180 217 / var(--tw-ring-opacity))}.focus\:ring-purple-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(220 215 254 / var(--tw-ring-opacity))}.focus\:ring-purple-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(202 191 253 / var(--tw-ring-opacity))}.focus\:ring-red-100:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(253 232 232 / var(--tw-ring-opacity))}.focus\:ring-red-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 180 180 / var(--tw-ring-opacity))}.focus\:ring-red-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}.focus\:ring-red-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(240 82 82 / var(--tw-ring-opacity))}.focus\:ring-secondary:focus{--tw-ring-color: var(--color-secondary)}.focus\:ring-teal-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(126 220 226 / var(--tw-ring-opacity))}.focus\:ring-yellow-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 202 21 / var(--tw-ring-opacity))}.focus\:ring-yellow-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(227 160 8 / var(--tw-ring-opacity))}.focus\:ring-opacity-50:focus{--tw-ring-opacity: .5}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.active\:scale-75:active{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:scale-90:active{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:bg-gray-300:active{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.active\:scrollbar-thumb-secondary{--scrollbar-thumb-active: var(--color-secondary) !important}.dark\:divide-gray-700:is(.dark *)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(55 65 81 / var(--tw-divide-opacity))}.dark\:border-bg-light:is(.dark *){border-color:var(--color-bg-light)}.dark\:border-blue-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.dark\:border-blue-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(26 86 219 / var(--tw-border-opacity))}.dark\:border-gray-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}.dark\:border-gray-600:is(.dark *){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.dark\:border-gray-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.dark\:border-gray-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}.dark\:border-gray-900:is(.dark *){--tw-border-opacity: 1;border-color:rgb(17 24 39 / var(--tw-border-opacity))}.dark\:border-green-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(14 159 110 / var(--tw-border-opacity))}.dark\:border-pink-400:is(.dark *){--tw-border-opacity: 1;border-color:rgb(241 126 184 / var(--tw-border-opacity))}.dark\:border-pink-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(231 70 148 / var(--tw-border-opacity))}.dark\:border-purple-400:is(.dark *){--tw-border-opacity: 1;border-color:rgb(172 148 250 / var(--tw-border-opacity))}.dark\:border-purple-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(144 97 249 / var(--tw-border-opacity))}.dark\:border-red-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity))}.dark\:border-transparent:is(.dark *){border-color:transparent}.dark\:border-yellow-300:is(.dark *){--tw-border-opacity: 1;border-color:rgb(250 202 21 / var(--tw-border-opacity))}.dark\:bg-bg-dark:is(.dark *){background-color:var(--color-bg-dark)}.dark\:bg-bg-dark-tone:is(.dark *){background-color:var(--color-bg-dark-tone)}.dark\:bg-bg-dark-tone-panel:is(.dark *){background-color:var(--color-bg-dark-tone-panel)}.dark\:bg-black:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.dark\:bg-blue-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.dark\:bg-blue-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.dark\:bg-blue-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.dark\:bg-blue-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.dark\:bg-blue-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.dark\:bg-blue-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}.dark\:bg-gray-300:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.dark\:bg-gray-400:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.dark\:bg-gray-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.dark\:bg-gray-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.dark\:bg-gray-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.dark\:bg-gray-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.dark\:bg-gray-800\/30:is(.dark *){background-color:#1f29374d}.dark\:bg-gray-800\/50:is(.dark *){background-color:#1f293780}.dark\:bg-gray-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.dark\:bg-green-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity))}.dark\:bg-green-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(14 159 110 / var(--tw-bg-opacity))}.dark\:bg-green-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}.dark\:bg-green-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(3 84 63 / var(--tw-bg-opacity))}.dark\:bg-green-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(1 71 55 / var(--tw-bg-opacity))}.dark\:bg-indigo-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(205 219 254 / var(--tw-bg-opacity))}.dark\:bg-indigo-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(104 117 245 / var(--tw-bg-opacity))}.dark\:bg-orange-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(180 52 3 / var(--tw-bg-opacity))}.dark\:bg-orange-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(138 44 13 / var(--tw-bg-opacity))}.dark\:bg-pink-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(250 209 232 / var(--tw-bg-opacity))}.dark\:bg-pink-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(214 31 105 / var(--tw-bg-opacity))}.dark\:bg-purple-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(220 215 254 / var(--tw-bg-opacity))}.dark\:bg-purple-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}.dark\:bg-purple-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(126 58 242 / var(--tw-bg-opacity))}.dark\:bg-red-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}.dark\:bg-red-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(240 82 82 / var(--tw-bg-opacity))}.dark\:bg-red-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.dark\:bg-red-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity))}.dark\:bg-red-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(119 29 29 / var(--tw-bg-opacity))}.dark\:bg-white:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.dark\:bg-yellow-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}.dark\:bg-opacity-70:is(.dark *){--tw-bg-opacity: .7}.dark\:bg-opacity-80:is(.dark *){--tw-bg-opacity: .8}.dark\:from-bg-dark:is(.dark *){--tw-gradient-from: var(--color-bg-dark) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:from-bg-dark-tone:is(.dark *){--tw-gradient-from: var(--color-bg-dark-tone) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:from-blue-400\/20:is(.dark *){--tw-gradient-from: rgb(118 169 250 / .2) var(--tw-gradient-from-position);--tw-gradient-to: rgb(118 169 250 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:from-indigo-400:is(.dark *){--tw-gradient-from: #8DA2FB var(--tw-gradient-from-position);--tw-gradient-to: rgb(141 162 251 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:via-bg-dark:is(.dark *){--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--color-bg-dark) var(--tw-gradient-via-position), var(--tw-gradient-to)}.dark\:to-purple-400:is(.dark *){--tw-gradient-to: #AC94FA var(--tw-gradient-to-position)}.dark\:to-purple-400\/20:is(.dark *){--tw-gradient-to: rgb(172 148 250 / .2) var(--tw-gradient-to-position)}.dark\:fill-gray-300:is(.dark *){fill:#d1d5db}.dark\:text-blue-200:is(.dark *){--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.dark\:text-blue-400:is(.dark *){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.dark\:text-blue-500:is(.dark *){--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.dark\:text-blue-800:is(.dark *){--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.dark\:text-dark-text-panel:is(.dark *){color:var(--color-dark-text-panel)}.dark\:text-gray-100:is(.dark *){--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}.dark\:text-gray-200:is(.dark *){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.dark\:text-gray-300:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.dark\:text-gray-400:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.dark\:text-gray-500:is(.dark *){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.dark\:text-gray-600:is(.dark *){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.dark\:text-gray-800:is(.dark *){--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.dark\:text-green-200:is(.dark *){--tw-text-opacity: 1;color:rgb(188 240 218 / var(--tw-text-opacity))}.dark\:text-green-400:is(.dark *){--tw-text-opacity: 1;color:rgb(49 196 141 / var(--tw-text-opacity))}.dark\:text-green-500:is(.dark *){--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.dark\:text-green-800:is(.dark *){--tw-text-opacity: 1;color:rgb(3 84 63 / var(--tw-text-opacity))}.dark\:text-green-900:is(.dark *){--tw-text-opacity: 1;color:rgb(1 71 55 / var(--tw-text-opacity))}.dark\:text-indigo-500:is(.dark *){--tw-text-opacity: 1;color:rgb(104 117 245 / var(--tw-text-opacity))}.dark\:text-indigo-900:is(.dark *){--tw-text-opacity: 1;color:rgb(54 47 120 / var(--tw-text-opacity))}.dark\:text-orange-200:is(.dark *){--tw-text-opacity: 1;color:rgb(252 217 189 / var(--tw-text-opacity))}.dark\:text-pink-400:is(.dark *){--tw-text-opacity: 1;color:rgb(241 126 184 / var(--tw-text-opacity))}.dark\:text-pink-500:is(.dark *){--tw-text-opacity: 1;color:rgb(231 70 148 / var(--tw-text-opacity))}.dark\:text-pink-900:is(.dark *){--tw-text-opacity: 1;color:rgb(117 26 61 / var(--tw-text-opacity))}.dark\:text-primary:is(.dark *){color:var(--color-primary)}.dark\:text-purple-400:is(.dark *){--tw-text-opacity: 1;color:rgb(172 148 250 / var(--tw-text-opacity))}.dark\:text-purple-500:is(.dark *){--tw-text-opacity: 1;color:rgb(144 97 249 / var(--tw-text-opacity))}.dark\:text-purple-900:is(.dark *){--tw-text-opacity: 1;color:rgb(74 29 150 / var(--tw-text-opacity))}.dark\:text-red-200:is(.dark *){--tw-text-opacity: 1;color:rgb(251 213 213 / var(--tw-text-opacity))}.dark\:text-red-300:is(.dark *){--tw-text-opacity: 1;color:rgb(248 180 180 / var(--tw-text-opacity))}.dark\:text-red-400:is(.dark *){--tw-text-opacity: 1;color:rgb(249 128 128 / var(--tw-text-opacity))}.dark\:text-red-500:is(.dark *){--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}.dark\:text-red-800:is(.dark *){--tw-text-opacity: 1;color:rgb(155 28 28 / var(--tw-text-opacity))}.dark\:text-red-900:is(.dark *){--tw-text-opacity: 1;color:rgb(119 29 29 / var(--tw-text-opacity))}.dark\:text-slate-50:is(.dark *){--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.dark\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:text-yellow-300:is(.dark *){--tw-text-opacity: 1;color:rgb(250 202 21 / var(--tw-text-opacity))}.dark\:text-yellow-400:is(.dark *){--tw-text-opacity: 1;color:rgb(227 160 8 / var(--tw-text-opacity))}.dark\:text-yellow-500:is(.dark *){--tw-text-opacity: 1;color:rgb(194 120 3 / var(--tw-text-opacity))}.dark\:text-yellow-800:is(.dark *){--tw-text-opacity: 1;color:rgb(114 59 19 / var(--tw-text-opacity))}.dark\:text-yellow-900:is(.dark *){--tw-text-opacity: 1;color:rgb(99 49 18 / var(--tw-text-opacity))}.dark\:placeholder-gray-400:is(.dark *)::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}.dark\:placeholder-gray-400:is(.dark *)::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}.dark\:shadow-lg:is(.dark *){--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.dark\:shadow-blue-800\/80:is(.dark *){--tw-shadow-color: rgb(30 66 159 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-cyan-800\/80:is(.dark *){--tw-shadow-color: rgb(21 94 117 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-green-800\/80:is(.dark *){--tw-shadow-color: rgb(3 84 63 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-lime-800\/80:is(.dark *){--tw-shadow-color: rgb(63 98 18 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-pink-800\/80:is(.dark *){--tw-shadow-color: rgb(153 21 75 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-purple-800\/80:is(.dark *){--tw-shadow-color: rgb(85 33 181 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-red-800\/80:is(.dark *){--tw-shadow-color: rgb(155 28 28 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-teal-800\/80:is(.dark *){--tw-shadow-color: rgb(5 80 92 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:ring-gray-500:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity))}.dark\:ring-white:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.dark\:ring-opacity-20:is(.dark *){--tw-ring-opacity: .2}.dark\:ring-offset-gray-700:is(.dark *){--tw-ring-offset-color: #374151}.dark\:ring-offset-gray-800:is(.dark *){--tw-ring-offset-color: #1F2937}.dark\:scrollbar-track-bg-dark:is(.dark *){--scrollbar-track: var(--color-bg-dark) !important}.dark\:scrollbar-track-bg-dark-tone:is(.dark *){--scrollbar-track: var(--color-bg-dark-tone) !important}.dark\:scrollbar-track-gray-700:is(.dark *){--scrollbar-track: #374151 !important}.dark\:scrollbar-track-gray-800:is(.dark *){--scrollbar-track: #1F2937 !important}.dark\:scrollbar-thumb-bg-dark-tone:is(.dark *){--scrollbar-thumb: var(--color-bg-dark-tone) !important}.dark\:scrollbar-thumb-bg-dark-tone-panel:is(.dark *){--scrollbar-thumb: var(--color-bg-dark-tone-panel) !important}.dark\:scrollbar-thumb-gray-500:is(.dark *){--scrollbar-thumb: #6B7280 !important}.dark\:scrollbar-thumb-gray-600:is(.dark *){--scrollbar-thumb: #4B5563 !important}.dark\:even\:bg-bg-dark-discussion-odd:nth-child(2n):is(.dark *){background-color:var(--color-bg-dark-discussion-odd)}.group:hover .dark\:group-hover\:bg-gray-800\/60:is(.dark *){background-color:#1f293799}.group:hover .dark\:group-hover\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.group:focus .dark\:group-focus\:ring-gray-800\/70:is(.dark *){--tw-ring-color: rgb(31 41 55 / .7)}.dark\:hover\:border-blue-600:hover:is(.dark *){--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity))}.dark\:hover\:border-gray-600:hover:is(.dark *){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.dark\:hover\:border-primary:hover:is(.dark *){border-color:var(--color-primary)}.dark\:hover\:bg-blue-300:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(164 202 254 / var(--tw-bg-opacity))}.dark\:hover\:bg-blue-600:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.dark\:hover\:bg-blue-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.dark\:hover\:bg-blue-900:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}.dark\:hover\:bg-gray-600:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.dark\:hover\:bg-gray-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.dark\:hover\:bg-gray-800:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.dark\:hover\:bg-green-300:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(132 225 188 / var(--tw-bg-opacity))}.dark\:hover\:bg-green-600:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}.dark\:hover\:bg-green-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}.dark\:hover\:bg-pink-500:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(231 70 148 / var(--tw-bg-opacity))}.dark\:hover\:bg-pink-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(191 18 93 / var(--tw-bg-opacity))}.dark\:hover\:bg-primary:hover:is(.dark *){background-color:var(--color-primary)}.dark\:hover\:bg-purple-500:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}.dark\:hover\:bg-purple-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(108 43 217 / var(--tw-bg-opacity))}.dark\:hover\:bg-red-300:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(248 180 180 / var(--tw-bg-opacity))}.dark\:hover\:bg-red-600:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.dark\:hover\:bg-red-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}.dark\:hover\:bg-yellow-300:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(250 202 21 / var(--tw-bg-opacity))}.dark\:hover\:bg-yellow-400:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(227 160 8 / var(--tw-bg-opacity))}.hover\:dark\:bg-bg-dark-tone:is(.dark *):hover{background-color:var(--color-bg-dark-tone)}.hover\:dark\:bg-bg-dark-tone-panel:is(.dark *):hover{background-color:var(--color-bg-dark-tone-panel)}.dark\:hover\:from-blue-400\/30:hover:is(.dark *){--tw-gradient-from: rgb(118 169 250 / .3) var(--tw-gradient-from-position);--tw-gradient-to: rgb(118 169 250 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:hover\:from-blue-900\/30:hover:is(.dark *){--tw-gradient-from: rgb(35 56 118 / .3) var(--tw-gradient-from-position);--tw-gradient-to: rgb(35 56 118 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:hover\:to-purple-400\/30:hover:is(.dark *){--tw-gradient-to: rgb(172 148 250 / .3) var(--tw-gradient-to-position)}.dark\:hover\:to-purple-900\/30:hover:is(.dark *){--tw-gradient-to: rgb(74 29 150 / .3) var(--tw-gradient-to-position)}.dark\:hover\:text-blue-500:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.dark\:hover\:text-gray-200:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.dark\:hover\:text-gray-300:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.dark\:hover\:text-gray-900:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.dark\:hover\:text-green-300:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(132 225 188 / var(--tw-text-opacity))}.dark\:hover\:text-green-400:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(49 196 141 / var(--tw-text-opacity))}.dark\:hover\:text-primary:hover:is(.dark *){color:var(--color-primary)}.dark\:hover\:text-red-400:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(249 128 128 / var(--tw-text-opacity))}.dark\:hover\:text-white:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:hover\:scrollbar-thumb-primary:is(.dark *){--scrollbar-thumb-hover: var(--color-primary) !important}.dark\:focus\:border-blue-500:focus:is(.dark *){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.dark\:focus\:border-secondary:focus:is(.dark *){border-color:var(--color-secondary)}.dark\:focus\:text-white:focus:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:focus\:ring-blue-500:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity))}.dark\:focus\:ring-blue-600:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(28 100 242 / var(--tw-ring-opacity))}.dark\:focus\:ring-blue-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(30 66 159 / var(--tw-ring-opacity))}.dark\:focus\:ring-cyan-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(21 94 117 / var(--tw-ring-opacity))}.dark\:focus\:ring-gray-500:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity))}.dark\:focus\:ring-gray-600:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}.dark\:focus\:ring-gray-700:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(55 65 81 / var(--tw-ring-opacity))}.dark\:focus\:ring-gray-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(31 41 55 / var(--tw-ring-opacity))}.dark\:focus\:ring-green-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(3 84 63 / var(--tw-ring-opacity))}.dark\:focus\:ring-lime-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(63 98 18 / var(--tw-ring-opacity))}.dark\:focus\:ring-pink-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(153 21 75 / var(--tw-ring-opacity))}.dark\:focus\:ring-pink-900:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(117 26 61 / var(--tw-ring-opacity))}.dark\:focus\:ring-purple-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(85 33 181 / var(--tw-ring-opacity))}.dark\:focus\:ring-purple-900:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(74 29 150 / var(--tw-ring-opacity))}.dark\:focus\:ring-red-400:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}.dark\:focus\:ring-red-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(155 28 28 / var(--tw-ring-opacity))}.dark\:focus\:ring-red-900:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(119 29 29 / var(--tw-ring-opacity))}.dark\:focus\:ring-secondary:focus:is(.dark *){--tw-ring-color: var(--color-secondary)}.dark\:focus\:ring-teal-700:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(3 102 114 / var(--tw-ring-opacity))}.dark\:focus\:ring-teal-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(5 80 92 / var(--tw-ring-opacity))}.dark\:focus\:ring-yellow-900:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(99 49 18 / var(--tw-ring-opacity))}.dark\:focus\:ring-offset-gray-700:focus:is(.dark *){--tw-ring-offset-color: #374151}.dark\:active\:bg-gray-600:active:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}@media (min-width: 640px){.sm\:mt-0{margin-top:0}.sm\:h-10{height:2.5rem}.sm\:h-6{height:1.5rem}.sm\:h-64{height:16rem}.sm\:w-1\/4{width:25%}.sm\:w-10{width:2.5rem}.sm\:w-6{width:1.5rem}.sm\:w-auto{width:auto}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:rounded-lg{border-radius:.5rem}.sm\:px-4{padding-left:1rem;padding-right:1rem}.sm\:text-center{text-align:center}.sm\:text-xs{font-size:.75rem;line-height:1rem}}@media (min-width: 768px){.md\:inset-0{top:0;right:0;bottom:0;left:0}.md\:order-2{order:2}.md\:mr-6{margin-right:1.5rem}.md\:mt-0{margin-top:0}.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:h-auto{height:auto}.md\:h-full{height:100%}.md\:w-1\/4{width:25%}.md\:w-48{width:12rem}.md\:w-auto{width:auto}.md\:max-w-xl{max-width:36rem}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:justify-between{justify-content:space-between}.md\:space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.md\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.md\:rounded-none{border-radius:0}.md\:rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.md\:border-0{border-width:0px}.md\:bg-transparent{background-color:transparent}.md\:p-0{padding:0}.md\:p-6{padding:1.5rem}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-6xl{font-size:3.75rem;line-height:1}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:font-medium{font-weight:500}.md\:text-blue-700{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.md\:hover\:bg-transparent:hover{background-color:transparent}.md\:hover\:text-blue-700:hover{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.md\:dark\:bg-gray-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.md\:dark\:hover\:bg-transparent:hover:is(.dark *){background-color:transparent}.md\:dark\:hover\:text-white:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}}@media (min-width: 1024px){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}}@media (min-width: 1280px){.xl\:h-80{height:20rem}.xl\:w-1\/6{width:16.666667%}}@media (min-width: 1536px){.\32xl\:h-96{height:24rem}} diff --git a/web/dist/assets/index-BxkXwSKb.js b/web/dist/assets/index-ZQkh7DUY.js similarity index 94% rename from web/dist/assets/index-BxkXwSKb.js rename to web/dist/assets/index-ZQkh7DUY.js index 13f316a6f..2064c2fa1 100644 --- a/web/dist/assets/index-BxkXwSKb.js +++ b/web/dist/assets/index-ZQkh7DUY.js @@ -3,19 +3,19 @@ var l5=Object.defineProperty;var c5=(n,e,t)=>e in n?l5(n,e,{enumerable:!0,config * @vue/shared v3.5.10 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function j1(n){const e=Object.create(null);for(const t of n.split(","))e[t]=1;return t=>t in e}const hn={},ll=[],Ki=()=>{},d5=()=>!1,dh=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&(n.charCodeAt(2)>122||n.charCodeAt(2)<97),Q1=n=>n.startsWith("onUpdate:"),Ln=Object.assign,X1=(n,e)=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)},u5=Object.prototype.hasOwnProperty,en=(n,e)=>u5.call(n,e),vt=Array.isArray,cl=n=>Kl(n)==="[object Map]",Wl=n=>Kl(n)==="[object Set]",CE=n=>Kl(n)==="[object Date]",p5=n=>Kl(n)==="[object RegExp]",kt=n=>typeof n=="function",yn=n=>typeof n=="string",Qi=n=>typeof n=="symbol",cn=n=>n!==null&&typeof n=="object",CM=n=>(cn(n)||kt(n))&&kt(n.then)&&kt(n.catch),AM=Object.prototype.toString,Kl=n=>AM.call(n),h5=n=>Kl(n).slice(8,-1),RM=n=>Kl(n)==="[object Object]",Z1=n=>yn(n)&&n!=="NaN"&&n[0]!=="-"&&""+parseInt(n,10)===n,Pc=j1(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),uh=n=>{const e=Object.create(null);return t=>e[t]||(e[t]=n(t))},m5=/-(\w)/g,di=uh(n=>n.replace(m5,(e,t)=>t?t.toUpperCase():"")),f5=/\B([A-Z])/g,Io=uh(n=>n.replace(f5,"-$1").toLowerCase()),ph=uh(n=>n.charAt(0).toUpperCase()+n.slice(1)),Zu=uh(n=>n?`on${ph(n)}`:""),Co=(n,e)=>!Object.is(n,e),dl=(n,...e)=>{for(let t=0;t{Object.defineProperty(n,e,{configurable:!0,enumerable:!1,writable:r,value:t})},bp=n=>{const e=parseFloat(n);return isNaN(e)?n:e},g5=n=>{const e=yn(n)?Number(n):NaN;return isNaN(e)?n:e};let AE;const NM=()=>AE||(AE=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function on(n){if(vt(n)){const e={};for(let t=0;t{if(t){const r=t.split(b5);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function qe(n){let e="";if(yn(n))e=n;else if(vt(n))for(let t=0;tga(t,e))}const IM=n=>!!(n&&n.__v_isRef===!0),X=n=>yn(n)?n:n==null?"":vt(n)||cn(n)&&(n.toString===AM||!kt(n.toString))?IM(n)?X(n.value):JSON.stringify(n,OM,2):String(n),OM=(n,e)=>IM(e)?OM(n,e.value):cl(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[r,i],s)=>(t[ym(r,s)+" =>"]=i,t),{})}:Wl(e)?{[`Set(${e.size})`]:[...e.values()].map(t=>ym(t))}:Qi(e)?ym(e):cn(e)&&!vt(e)&&!RM(e)?String(e):e,ym=(n,e="")=>{var t;return Qi(n)?`Symbol(${(t=n.description)!=null?t:e})`:n};/** +**//*! #__NO_SIDE_EFFECTS__ */function j1(n){const e=Object.create(null);for(const t of n.split(","))e[t]=1;return t=>t in e}const hn={},ll=[],Ki=()=>{},d5=()=>!1,dh=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&(n.charCodeAt(2)>122||n.charCodeAt(2)<97),Q1=n=>n.startsWith("onUpdate:"),Ln=Object.assign,X1=(n,e)=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)},u5=Object.prototype.hasOwnProperty,en=(n,e)=>u5.call(n,e),vt=Array.isArray,cl=n=>Kl(n)==="[object Map]",Wl=n=>Kl(n)==="[object Set]",CE=n=>Kl(n)==="[object Date]",p5=n=>Kl(n)==="[object RegExp]",kt=n=>typeof n=="function",yn=n=>typeof n=="string",Xi=n=>typeof n=="symbol",cn=n=>n!==null&&typeof n=="object",CM=n=>(cn(n)||kt(n))&&kt(n.then)&&kt(n.catch),AM=Object.prototype.toString,Kl=n=>AM.call(n),h5=n=>Kl(n).slice(8,-1),RM=n=>Kl(n)==="[object Object]",Z1=n=>yn(n)&&n!=="NaN"&&n[0]!=="-"&&""+parseInt(n,10)===n,Pc=j1(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),uh=n=>{const e=Object.create(null);return t=>e[t]||(e[t]=n(t))},m5=/-(\w)/g,di=uh(n=>n.replace(m5,(e,t)=>t?t.toUpperCase():"")),f5=/\B([A-Z])/g,Io=uh(n=>n.replace(f5,"-$1").toLowerCase()),ph=uh(n=>n.charAt(0).toUpperCase()+n.slice(1)),Zu=uh(n=>n?`on${ph(n)}`:""),Co=(n,e)=>!Object.is(n,e),dl=(n,...e)=>{for(let t=0;t{Object.defineProperty(n,e,{configurable:!0,enumerable:!1,writable:r,value:t})},bp=n=>{const e=parseFloat(n);return isNaN(e)?n:e},g5=n=>{const e=yn(n)?Number(n):NaN;return isNaN(e)?n:e};let AE;const NM=()=>AE||(AE=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function on(n){if(vt(n)){const e={};for(let t=0;t{if(t){const r=t.split(b5);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function qe(n){let e="";if(yn(n))e=n;else if(vt(n))for(let t=0;tga(t,e))}const IM=n=>!!(n&&n.__v_isRef===!0),X=n=>yn(n)?n:n==null?"":vt(n)||cn(n)&&(n.toString===AM||!kt(n.toString))?IM(n)?X(n.value):JSON.stringify(n,OM,2):String(n),OM=(n,e)=>IM(e)?OM(n,e.value):cl(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[r,i],s)=>(t[ym(r,s)+" =>"]=i,t),{})}:Wl(e)?{[`Set(${e.size})`]:[...e.values()].map(t=>ym(t))}:Xi(e)?ym(e):cn(e)&&!vt(e)&&!RM(e)?String(e):e,ym=(n,e="")=>{var t;return Xi(n)?`Symbol(${(t=n.description)!=null?t:e})`:n};/** * @vue/reactivity v3.5.10 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let mr;class DM{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=mr,!e&&mr&&(this.index=(mr.scopes||(mr.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e0)return;let n;for(;il;){let e=il,t;for(;e;)e.flags&1||(e.flags&=-9),e=e.next;for(e=il,il=void 0;e;){if(t=e.next,e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(r){n||(n=r)}e=t}}if(n)throw n}function BM(n){for(let e=n.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function GM(n){let e,t=n.depsTail,r=t;for(;r;){const i=r.prevDep;r.version===-1?(r===t&&(t=i),nv(r),C5(r)):e=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}n.deps=e,n.depsTail=t}function Ob(n){for(let e=n.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(zM(e.dep.computed)||e.dep.version!==e.version))return!0;return!!n._dirty}function zM(n){if(n.flags&4&&!(n.flags&16)||(n.flags&=-17,n.globalVersion===td))return;n.globalVersion=td;const e=n.dep;if(n.flags|=2,e.version>0&&!n.isSSR&&n.deps&&!Ob(n)){n.flags&=-3;return}const t=gn,r=Ci;gn=n,Ci=!0;try{BM(n);const i=n.fn(n._value);(e.version===0||Co(i,n._value))&&(n._value=i,e.version++)}catch(i){throw e.version++,i}finally{gn=t,Ci=r,GM(n),n.flags&=-3}}function nv(n,e=!1){const{dep:t,prevSub:r,nextSub:i}=n;if(r&&(r.nextSub=i,n.prevSub=void 0),i&&(i.prevSub=r,n.nextSub=void 0),t.subs===n&&(t.subs=r),!t.subs&&t.computed){t.computed.flags&=-5;for(let s=t.computed.deps;s;s=s.nextDep)nv(s,!0)}!e&&!--t.sc&&t.map&&t.map.delete(t.key)}function C5(n){const{prevDep:e,nextDep:t}=n;e&&(e.nextDep=t,n.prevDep=void 0),t&&(t.prevDep=e,n.nextDep=void 0)}let Ci=!0;const VM=[];function Oo(){VM.push(Ci),Ci=!1}function Do(){const n=VM.pop();Ci=n===void 0?!0:n}function RE(n){const{cleanup:e}=n;if(n.cleanup=void 0,e){const t=gn;gn=void 0;try{e()}finally{gn=t}}}let td=0;class A5{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class hh{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.target=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(e){if(!gn||!Ci||gn===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==gn)t=this.activeLink=new A5(gn,this),gn.deps?(t.prevDep=gn.depsTail,gn.depsTail.nextDep=t,gn.depsTail=t):gn.deps=gn.depsTail=t,HM(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){const r=t.nextDep;r.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=r),t.prevDep=gn.depsTail,t.nextDep=void 0,gn.depsTail.nextDep=t,gn.depsTail=t,gn.deps===t&&(gn.deps=r)}return t}trigger(e){this.version++,td++,this.notify(e)}notify(e){ev();try{for(let t=this.subs;t;t=t.prevSub)t.sub.notify()&&t.sub.dep.notify()}finally{tv()}}}function HM(n){if(n.dep.sc++,n.sub.flags&4){const e=n.dep.computed;if(e&&!n.dep.subs){e.flags|=20;for(let r=e.deps;r;r=r.nextDep)HM(r)}const t=n.dep.subs;t!==n&&(n.prevSub=t,t&&(t.nextSub=n)),n.dep.subs=n}}const vp=new WeakMap,aa=Symbol(""),Db=Symbol(""),nd=Symbol("");function cr(n,e,t){if(Ci&&gn){let r=vp.get(n);r||vp.set(n,r=new Map);let i=r.get(t);i||(r.set(t,i=new hh),i.target=n,i.map=r,i.key=t),i.track()}}function ws(n,e,t,r,i,s){const o=vp.get(n);if(!o){td++;return}const a=l=>{l&&l.trigger()};if(ev(),e==="clear")o.forEach(a);else{const l=vt(n),d=l&&Z1(t);if(l&&t==="length"){const u=Number(r);o.forEach((m,f)=>{(f==="length"||f===nd||!Qi(f)&&f>=u)&&a(m)})}else switch(t!==void 0&&a(o.get(t)),d&&a(o.get(nd)),e){case"add":l?d&&a(o.get("length")):(a(o.get(aa)),cl(n)&&a(o.get(Db)));break;case"delete":l||(a(o.get(aa)),cl(n)&&a(o.get(Db)));break;case"set":cl(n)&&a(o.get(aa));break}}tv()}function R5(n,e){const t=vp.get(n);return t&&t.get(e)}function Oa(n){const e=Xt(n);return e===n?e:(cr(e,"iterate",nd),oi(n)?e:e.map(sr))}function mh(n){return cr(n=Xt(n),"iterate",nd),n}const M5={__proto__:null,[Symbol.iterator](){return Sm(this,Symbol.iterator,sr)},concat(...n){return Oa(this).concat(...n.map(e=>vt(e)?Oa(e):e))},entries(){return Sm(this,"entries",n=>(n[1]=sr(n[1]),n))},every(n,e){return ls(this,"every",n,e,void 0,arguments)},filter(n,e){return ls(this,"filter",n,e,t=>t.map(sr),arguments)},find(n,e){return ls(this,"find",n,e,sr,arguments)},findIndex(n,e){return ls(this,"findIndex",n,e,void 0,arguments)},findLast(n,e){return ls(this,"findLast",n,e,sr,arguments)},findLastIndex(n,e){return ls(this,"findLastIndex",n,e,void 0,arguments)},forEach(n,e){return ls(this,"forEach",n,e,void 0,arguments)},includes(...n){return xm(this,"includes",n)},indexOf(...n){return xm(this,"indexOf",n)},join(n){return Oa(this).join(n)},lastIndexOf(...n){return xm(this,"lastIndexOf",n)},map(n,e){return ls(this,"map",n,e,void 0,arguments)},pop(){return hc(this,"pop")},push(...n){return hc(this,"push",n)},reduce(n,...e){return ME(this,"reduce",n,e)},reduceRight(n,...e){return ME(this,"reduceRight",n,e)},shift(){return hc(this,"shift")},some(n,e){return ls(this,"some",n,e,void 0,arguments)},splice(...n){return hc(this,"splice",n)},toReversed(){return Oa(this).toReversed()},toSorted(n){return Oa(this).toSorted(n)},toSpliced(...n){return Oa(this).toSpliced(...n)},unshift(...n){return hc(this,"unshift",n)},values(){return Sm(this,"values",sr)}};function Sm(n,e,t){const r=mh(n),i=r[e]();return r!==n&&!oi(n)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.value&&(s.value=t(s.value)),s}),i}const N5=Array.prototype;function ls(n,e,t,r,i,s){const o=mh(n),a=o!==n&&!oi(n),l=o[e];if(l!==N5[e]){const m=l.apply(n,s);return a?sr(m):m}let d=t;o!==n&&(a?d=function(m,f){return t.call(this,sr(m),f,n)}:t.length>2&&(d=function(m,f){return t.call(this,m,f,n)}));const u=l.call(o,d,r);return a&&i?i(u):u}function ME(n,e,t,r){const i=mh(n);let s=t;return i!==n&&(oi(n)?t.length>3&&(s=function(o,a,l){return t.call(this,o,a,l,n)}):s=function(o,a,l){return t.call(this,o,sr(a),l,n)}),i[e](s,...r)}function xm(n,e,t){const r=Xt(n);cr(r,"iterate",nd);const i=r[e](...t);return(i===-1||i===!1)&&iv(t[0])?(t[0]=Xt(t[0]),r[e](...t)):i}function hc(n,e,t=[]){Oo(),ev();const r=Xt(n)[e].apply(n,t);return tv(),Do(),r}const k5=j1("__proto__,__v_isRef,__isVue"),qM=new Set(Object.getOwnPropertyNames(Symbol).filter(n=>n!=="arguments"&&n!=="caller").map(n=>Symbol[n]).filter(Qi));function I5(n){Qi(n)||(n=String(n));const e=Xt(this);return cr(e,"has",n),e.hasOwnProperty(n)}class YM{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,r){const i=this._isReadonly,s=this._isShallow;if(t==="__v_isReactive")return!i;if(t==="__v_isReadonly")return i;if(t==="__v_isShallow")return s;if(t==="__v_raw")return r===(i?s?XM:QM:s?jM:KM).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const o=vt(e);if(!i){let l;if(o&&(l=M5[t]))return l;if(t==="hasOwnProperty")return I5}const a=Reflect.get(e,t,Gn(e)?e:r);return(Qi(t)?qM.has(t):k5(t))||(i||cr(e,"get",t),s)?a:Gn(a)?o&&Z1(t)?a:a.value:cn(a)?i?JM(a):yr(a):a}}class $M extends YM{constructor(e=!1){super(!1,e)}set(e,t,r,i){let s=e[t];if(!this._isShallow){const l=_a(s);if(!oi(r)&&!_a(r)&&(s=Xt(s),r=Xt(r)),!vt(e)&&Gn(s)&&!Gn(r))return l?!1:(s.value=r,!0)}const o=vt(e)&&Z1(t)?Number(t)n,fh=n=>Reflect.getPrototypeOf(n);function Yd(n,e,t=!1,r=!1){n=n.__v_raw;const i=Xt(n),s=Xt(e);t||(Co(e,s)&&cr(i,"get",e),cr(i,"get",s));const{has:o}=fh(i),a=r?rv:t?sv:sr;if(o.call(i,e))return a(n.get(e));if(o.call(i,s))return a(n.get(s));n!==i&&n.get(e)}function $d(n,e=!1){const t=this.__v_raw,r=Xt(t),i=Xt(n);return e||(Co(n,i)&&cr(r,"has",n),cr(r,"has",i)),n===i?t.has(n):t.has(n)||t.has(i)}function Wd(n,e=!1){return n=n.__v_raw,!e&&cr(Xt(n),"iterate",aa),Reflect.get(n,"size",n)}function NE(n,e=!1){!e&&!oi(n)&&!_a(n)&&(n=Xt(n));const t=Xt(this);return fh(t).has.call(t,n)||(t.add(n),ws(t,"add",n,n)),this}function kE(n,e,t=!1){!t&&!oi(e)&&!_a(e)&&(e=Xt(e));const r=Xt(this),{has:i,get:s}=fh(r);let o=i.call(r,n);o||(n=Xt(n),o=i.call(r,n));const a=s.call(r,n);return r.set(n,e),o?Co(e,a)&&ws(r,"set",n,e):ws(r,"add",n,e),this}function IE(n){const e=Xt(this),{has:t,get:r}=fh(e);let i=t.call(e,n);i||(n=Xt(n),i=t.call(e,n)),r&&r.call(e,n);const s=e.delete(n);return i&&ws(e,"delete",n,void 0),s}function OE(){const n=Xt(this),e=n.size!==0,t=n.clear();return e&&ws(n,"clear",void 0,void 0),t}function Kd(n,e){return function(r,i){const s=this,o=s.__v_raw,a=Xt(o),l=e?rv:n?sv:sr;return!n&&cr(a,"iterate",aa),o.forEach((d,u)=>r.call(i,l(d),l(u),s))}}function jd(n,e,t){return function(...r){const i=this.__v_raw,s=Xt(i),o=cl(s),a=n==="entries"||n===Symbol.iterator&&o,l=n==="keys"&&o,d=i[n](...r),u=t?rv:e?sv:sr;return!e&&cr(s,"iterate",l?Db:aa),{next(){const{value:m,done:f}=d.next();return f?{value:m,done:f}:{value:a?[u(m[0]),u(m[1])]:u(m),done:f}},[Symbol.iterator](){return this}}}}function Ys(n){return function(...e){return n==="delete"?!1:n==="clear"?void 0:this}}function F5(){const n={get(s){return Yd(this,s)},get size(){return Wd(this)},has:$d,add:NE,set:kE,delete:IE,clear:OE,forEach:Kd(!1,!1)},e={get(s){return Yd(this,s,!1,!0)},get size(){return Wd(this)},has:$d,add(s){return NE.call(this,s,!0)},set(s,o){return kE.call(this,s,o,!0)},delete:IE,clear:OE,forEach:Kd(!1,!0)},t={get(s){return Yd(this,s,!0)},get size(){return Wd(this,!0)},has(s){return $d.call(this,s,!0)},add:Ys("add"),set:Ys("set"),delete:Ys("delete"),clear:Ys("clear"),forEach:Kd(!0,!1)},r={get(s){return Yd(this,s,!0,!0)},get size(){return Wd(this,!0)},has(s){return $d.call(this,s,!0)},add:Ys("add"),set:Ys("set"),delete:Ys("delete"),clear:Ys("clear"),forEach:Kd(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=jd(s,!1,!1),t[s]=jd(s,!0,!1),e[s]=jd(s,!1,!0),r[s]=jd(s,!0,!0)}),[n,t,e,r]}const[U5,B5,G5,z5]=F5();function gh(n,e){const t=e?n?z5:G5:n?B5:U5;return(r,i,s)=>i==="__v_isReactive"?!n:i==="__v_isReadonly"?n:i==="__v_raw"?r:Reflect.get(en(t,i)&&i in r?t:r,i,s)}const V5={get:gh(!1,!1)},H5={get:gh(!1,!0)},q5={get:gh(!0,!1)},Y5={get:gh(!0,!0)},KM=new WeakMap,jM=new WeakMap,QM=new WeakMap,XM=new WeakMap;function $5(n){switch(n){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function W5(n){return n.__v_skip||!Object.isExtensible(n)?0:$5(h5(n))}function yr(n){return _a(n)?n:_h(n,!1,O5,V5,KM)}function ZM(n){return _h(n,!1,L5,H5,jM)}function JM(n){return _h(n,!0,D5,q5,QM)}function K5(n){return _h(n,!0,P5,Y5,XM)}function _h(n,e,t,r,i){if(!cn(n)||n.__v_raw&&!(e&&n.__v_isReactive))return n;const s=i.get(n);if(s)return s;const o=W5(n);if(o===0)return n;const a=new Proxy(n,o===2?r:t);return i.set(n,a),a}function ul(n){return _a(n)?ul(n.__v_raw):!!(n&&n.__v_isReactive)}function _a(n){return!!(n&&n.__v_isReadonly)}function oi(n){return!!(n&&n.__v_isShallow)}function iv(n){return n?!!n.__v_raw:!1}function Xt(n){const e=n&&n.__v_raw;return e?Xt(e):n}function bh(n){return!en(n,"__v_skip")&&Object.isExtensible(n)&&MM(n,"__v_skip",!0),n}const sr=n=>cn(n)?yr(n):n,sv=n=>cn(n)?JM(n):n;function Gn(n){return n?n.__v_isRef===!0:!1}function yt(n){return e4(n,!1)}function j5(n){return e4(n,!0)}function e4(n,e){return Gn(n)?n:new Q5(n,e)}class Q5{constructor(e,t){this.dep=new hh,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:Xt(e),this._value=t?e:sr(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,r=this.__v_isShallow||oi(e)||_a(e);e=r?e:Xt(e),Co(e,t)&&(this._rawValue=e,this._value=r?e:sr(e),this.dep.trigger())}}function Pt(n){return Gn(n)?n.value:n}const X5={get:(n,e,t)=>e==="__v_raw"?n:Pt(Reflect.get(n,e,t)),set:(n,e,t,r)=>{const i=n[e];return Gn(i)&&!Gn(t)?(i.value=t,!0):Reflect.set(n,e,t,r)}};function t4(n){return ul(n)?n:new Proxy(n,X5)}class Z5{constructor(e){this.__v_isRef=!0,this._value=void 0;const t=this.dep=new hh,{get:r,set:i}=e(t.track.bind(t),t.trigger.bind(t));this._get=r,this._set=i}get value(){return this._value=this._get()}set value(e){this._set(e)}}function J5(n){return new Z5(n)}function eD(n){const e=vt(n)?new Array(n.length):{};for(const t in n)e[t]=n4(n,t);return e}class tD{constructor(e,t,r){this._object=e,this._key=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return R5(Xt(this._object),this._key)}}class nD{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function yp(n,e,t){return Gn(n)?n:kt(n)?new nD(n):cn(n)&&arguments.length>1?n4(n,e,t):yt(n)}function n4(n,e,t){const r=n[e];return Gn(r)?r:new tD(n,e,t)}class rD{constructor(e,t,r){this.fn=e,this.setter=t,this._value=void 0,this.dep=new hh(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=td-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&gn!==this)return UM(this),!0}get value(){const e=this.dep.track();return zM(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function iD(n,e,t=!1){let r,i;return kt(n)?r=n:(r=n.get,i=n.set),new rD(r,i,t)}const Qd={},Ep=new WeakMap;let Qo;function sD(n,e=!1,t=Qo){if(t){let r=Ep.get(t);r||Ep.set(t,r=[]),r.push(n)}}function oD(n,e,t=hn){const{immediate:r,deep:i,once:s,scheduler:o,augmentJob:a,call:l}=t,d=x=>i?x:oi(x)||i===!1||i===0?Es(x,1):Es(x);let u,m,f,g,h=!1,v=!1;if(Gn(n)?(m=()=>n.value,h=oi(n)):ul(n)?(m=()=>d(n),h=!0):vt(n)?(v=!0,h=n.some(x=>ul(x)||oi(x)),m=()=>n.map(x=>{if(Gn(x))return x.value;if(ul(x))return d(x);if(kt(x))return l?l(x,2):x()})):kt(n)?e?m=l?()=>l(n,2):n:m=()=>{if(f){Oo();try{f()}finally{Do()}}const x=Qo;Qo=u;try{return l?l(n,3,[g]):n(g)}finally{Qo=x}}:m=Ki,e&&i){const x=m,A=i===!0?1/0:i;m=()=>Es(x(),A)}const b=LM(),_=()=>{u.stop(),b&&X1(b.effects,u)};if(s&&e){const x=e;e=(...A)=>{x(...A),_()}}let y=v?new Array(n.length).fill(Qd):Qd;const E=x=>{if(!(!(u.flags&1)||!u.dirty&&!x))if(e){const A=u.run();if(i||h||(v?A.some((w,N)=>Co(w,y[N])):Co(A,y))){f&&f();const w=Qo;Qo=u;try{const N=[A,y===Qd?void 0:v&&y[0]===Qd?[]:y,g];l?l(e,3,N):e(...N),y=A}finally{Qo=w}}}else u.run()};return a&&a(E),u=new PM(m),u.scheduler=o?()=>o(E,!1):E,g=x=>sD(x,!1,u),f=u.onStop=()=>{const x=Ep.get(u);if(x){if(l)l(x,4);else for(const A of x)A();Ep.delete(u)}},e?r?E(!0):y=u.run():o?o(E.bind(null,!0),!0):u.run(),_.pause=u.pause.bind(u),_.resume=u.resume.bind(u),_.stop=_,_}function Es(n,e=1/0,t){if(e<=0||!cn(n)||n.__v_skip||(t=t||new Set,t.has(n)))return n;if(t.add(n),e--,Gn(n))Es(n.value,e,t);else if(vt(n))for(let r=0;r{Es(r,e,t)});else if(RM(n)){for(const r in n)Es(n[r],e,t);for(const r of Object.getOwnPropertySymbols(n))Object.prototype.propertyIsEnumerable.call(n,r)&&Es(n[r],e,t)}return n}/** +**/let mr;class DM{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=mr,!e&&mr&&(this.index=(mr.scopes||(mr.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e0)return;let n;for(;il;){let e=il,t;for(;e;)e.flags&1||(e.flags&=-9),e=e.next;for(e=il,il=void 0;e;){if(t=e.next,e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(r){n||(n=r)}e=t}}if(n)throw n}function BM(n){for(let e=n.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function GM(n){let e,t=n.depsTail,r=t;for(;r;){const i=r.prevDep;r.version===-1?(r===t&&(t=i),nv(r),C5(r)):e=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}n.deps=e,n.depsTail=t}function Ob(n){for(let e=n.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(zM(e.dep.computed)||e.dep.version!==e.version))return!0;return!!n._dirty}function zM(n){if(n.flags&4&&!(n.flags&16)||(n.flags&=-17,n.globalVersion===td))return;n.globalVersion=td;const e=n.dep;if(n.flags|=2,e.version>0&&!n.isSSR&&n.deps&&!Ob(n)){n.flags&=-3;return}const t=gn,r=Ci;gn=n,Ci=!0;try{BM(n);const i=n.fn(n._value);(e.version===0||Co(i,n._value))&&(n._value=i,e.version++)}catch(i){throw e.version++,i}finally{gn=t,Ci=r,GM(n),n.flags&=-3}}function nv(n,e=!1){const{dep:t,prevSub:r,nextSub:i}=n;if(r&&(r.nextSub=i,n.prevSub=void 0),i&&(i.prevSub=r,n.nextSub=void 0),t.subs===n&&(t.subs=r),!t.subs&&t.computed){t.computed.flags&=-5;for(let s=t.computed.deps;s;s=s.nextDep)nv(s,!0)}!e&&!--t.sc&&t.map&&t.map.delete(t.key)}function C5(n){const{prevDep:e,nextDep:t}=n;e&&(e.nextDep=t,n.prevDep=void 0),t&&(t.prevDep=e,n.nextDep=void 0)}let Ci=!0;const VM=[];function Oo(){VM.push(Ci),Ci=!1}function Do(){const n=VM.pop();Ci=n===void 0?!0:n}function RE(n){const{cleanup:e}=n;if(n.cleanup=void 0,e){const t=gn;gn=void 0;try{e()}finally{gn=t}}}let td=0;class A5{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class hh{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.target=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(e){if(!gn||!Ci||gn===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==gn)t=this.activeLink=new A5(gn,this),gn.deps?(t.prevDep=gn.depsTail,gn.depsTail.nextDep=t,gn.depsTail=t):gn.deps=gn.depsTail=t,HM(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){const r=t.nextDep;r.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=r),t.prevDep=gn.depsTail,t.nextDep=void 0,gn.depsTail.nextDep=t,gn.depsTail=t,gn.deps===t&&(gn.deps=r)}return t}trigger(e){this.version++,td++,this.notify(e)}notify(e){ev();try{for(let t=this.subs;t;t=t.prevSub)t.sub.notify()&&t.sub.dep.notify()}finally{tv()}}}function HM(n){if(n.dep.sc++,n.sub.flags&4){const e=n.dep.computed;if(e&&!n.dep.subs){e.flags|=20;for(let r=e.deps;r;r=r.nextDep)HM(r)}const t=n.dep.subs;t!==n&&(n.prevSub=t,t&&(t.nextSub=n)),n.dep.subs=n}}const vp=new WeakMap,aa=Symbol(""),Db=Symbol(""),nd=Symbol("");function cr(n,e,t){if(Ci&&gn){let r=vp.get(n);r||vp.set(n,r=new Map);let i=r.get(t);i||(r.set(t,i=new hh),i.target=n,i.map=r,i.key=t),i.track()}}function Cs(n,e,t,r,i,s){const o=vp.get(n);if(!o){td++;return}const a=l=>{l&&l.trigger()};if(ev(),e==="clear")o.forEach(a);else{const l=vt(n),d=l&&Z1(t);if(l&&t==="length"){const u=Number(r);o.forEach((m,f)=>{(f==="length"||f===nd||!Xi(f)&&f>=u)&&a(m)})}else switch(t!==void 0&&a(o.get(t)),d&&a(o.get(nd)),e){case"add":l?d&&a(o.get("length")):(a(o.get(aa)),cl(n)&&a(o.get(Db)));break;case"delete":l||(a(o.get(aa)),cl(n)&&a(o.get(Db)));break;case"set":cl(n)&&a(o.get(aa));break}}tv()}function R5(n,e){const t=vp.get(n);return t&&t.get(e)}function Oa(n){const e=Xt(n);return e===n?e:(cr(e,"iterate",nd),oi(n)?e:e.map(sr))}function mh(n){return cr(n=Xt(n),"iterate",nd),n}const M5={__proto__:null,[Symbol.iterator](){return Sm(this,Symbol.iterator,sr)},concat(...n){return Oa(this).concat(...n.map(e=>vt(e)?Oa(e):e))},entries(){return Sm(this,"entries",n=>(n[1]=sr(n[1]),n))},every(n,e){return cs(this,"every",n,e,void 0,arguments)},filter(n,e){return cs(this,"filter",n,e,t=>t.map(sr),arguments)},find(n,e){return cs(this,"find",n,e,sr,arguments)},findIndex(n,e){return cs(this,"findIndex",n,e,void 0,arguments)},findLast(n,e){return cs(this,"findLast",n,e,sr,arguments)},findLastIndex(n,e){return cs(this,"findLastIndex",n,e,void 0,arguments)},forEach(n,e){return cs(this,"forEach",n,e,void 0,arguments)},includes(...n){return xm(this,"includes",n)},indexOf(...n){return xm(this,"indexOf",n)},join(n){return Oa(this).join(n)},lastIndexOf(...n){return xm(this,"lastIndexOf",n)},map(n,e){return cs(this,"map",n,e,void 0,arguments)},pop(){return hc(this,"pop")},push(...n){return hc(this,"push",n)},reduce(n,...e){return ME(this,"reduce",n,e)},reduceRight(n,...e){return ME(this,"reduceRight",n,e)},shift(){return hc(this,"shift")},some(n,e){return cs(this,"some",n,e,void 0,arguments)},splice(...n){return hc(this,"splice",n)},toReversed(){return Oa(this).toReversed()},toSorted(n){return Oa(this).toSorted(n)},toSpliced(...n){return Oa(this).toSpliced(...n)},unshift(...n){return hc(this,"unshift",n)},values(){return Sm(this,"values",sr)}};function Sm(n,e,t){const r=mh(n),i=r[e]();return r!==n&&!oi(n)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.value&&(s.value=t(s.value)),s}),i}const N5=Array.prototype;function cs(n,e,t,r,i,s){const o=mh(n),a=o!==n&&!oi(n),l=o[e];if(l!==N5[e]){const m=l.apply(n,s);return a?sr(m):m}let d=t;o!==n&&(a?d=function(m,f){return t.call(this,sr(m),f,n)}:t.length>2&&(d=function(m,f){return t.call(this,m,f,n)}));const u=l.call(o,d,r);return a&&i?i(u):u}function ME(n,e,t,r){const i=mh(n);let s=t;return i!==n&&(oi(n)?t.length>3&&(s=function(o,a,l){return t.call(this,o,a,l,n)}):s=function(o,a,l){return t.call(this,o,sr(a),l,n)}),i[e](s,...r)}function xm(n,e,t){const r=Xt(n);cr(r,"iterate",nd);const i=r[e](...t);return(i===-1||i===!1)&&iv(t[0])?(t[0]=Xt(t[0]),r[e](...t)):i}function hc(n,e,t=[]){Oo(),ev();const r=Xt(n)[e].apply(n,t);return tv(),Do(),r}const k5=j1("__proto__,__v_isRef,__isVue"),qM=new Set(Object.getOwnPropertyNames(Symbol).filter(n=>n!=="arguments"&&n!=="caller").map(n=>Symbol[n]).filter(Xi));function I5(n){Xi(n)||(n=String(n));const e=Xt(this);return cr(e,"has",n),e.hasOwnProperty(n)}class YM{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,r){const i=this._isReadonly,s=this._isShallow;if(t==="__v_isReactive")return!i;if(t==="__v_isReadonly")return i;if(t==="__v_isShallow")return s;if(t==="__v_raw")return r===(i?s?XM:QM:s?jM:KM).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const o=vt(e);if(!i){let l;if(o&&(l=M5[t]))return l;if(t==="hasOwnProperty")return I5}const a=Reflect.get(e,t,Gn(e)?e:r);return(Xi(t)?qM.has(t):k5(t))||(i||cr(e,"get",t),s)?a:Gn(a)?o&&Z1(t)?a:a.value:cn(a)?i?JM(a):yr(a):a}}class $M extends YM{constructor(e=!1){super(!1,e)}set(e,t,r,i){let s=e[t];if(!this._isShallow){const l=_a(s);if(!oi(r)&&!_a(r)&&(s=Xt(s),r=Xt(r)),!vt(e)&&Gn(s)&&!Gn(r))return l?!1:(s.value=r,!0)}const o=vt(e)&&Z1(t)?Number(t)n,fh=n=>Reflect.getPrototypeOf(n);function Yd(n,e,t=!1,r=!1){n=n.__v_raw;const i=Xt(n),s=Xt(e);t||(Co(e,s)&&cr(i,"get",e),cr(i,"get",s));const{has:o}=fh(i),a=r?rv:t?sv:sr;if(o.call(i,e))return a(n.get(e));if(o.call(i,s))return a(n.get(s));n!==i&&n.get(e)}function $d(n,e=!1){const t=this.__v_raw,r=Xt(t),i=Xt(n);return e||(Co(n,i)&&cr(r,"has",n),cr(r,"has",i)),n===i?t.has(n):t.has(n)||t.has(i)}function Wd(n,e=!1){return n=n.__v_raw,!e&&cr(Xt(n),"iterate",aa),Reflect.get(n,"size",n)}function NE(n,e=!1){!e&&!oi(n)&&!_a(n)&&(n=Xt(n));const t=Xt(this);return fh(t).has.call(t,n)||(t.add(n),Cs(t,"add",n,n)),this}function kE(n,e,t=!1){!t&&!oi(e)&&!_a(e)&&(e=Xt(e));const r=Xt(this),{has:i,get:s}=fh(r);let o=i.call(r,n);o||(n=Xt(n),o=i.call(r,n));const a=s.call(r,n);return r.set(n,e),o?Co(e,a)&&Cs(r,"set",n,e):Cs(r,"add",n,e),this}function IE(n){const e=Xt(this),{has:t,get:r}=fh(e);let i=t.call(e,n);i||(n=Xt(n),i=t.call(e,n)),r&&r.call(e,n);const s=e.delete(n);return i&&Cs(e,"delete",n,void 0),s}function OE(){const n=Xt(this),e=n.size!==0,t=n.clear();return e&&Cs(n,"clear",void 0,void 0),t}function Kd(n,e){return function(r,i){const s=this,o=s.__v_raw,a=Xt(o),l=e?rv:n?sv:sr;return!n&&cr(a,"iterate",aa),o.forEach((d,u)=>r.call(i,l(d),l(u),s))}}function jd(n,e,t){return function(...r){const i=this.__v_raw,s=Xt(i),o=cl(s),a=n==="entries"||n===Symbol.iterator&&o,l=n==="keys"&&o,d=i[n](...r),u=t?rv:e?sv:sr;return!e&&cr(s,"iterate",l?Db:aa),{next(){const{value:m,done:f}=d.next();return f?{value:m,done:f}:{value:a?[u(m[0]),u(m[1])]:u(m),done:f}},[Symbol.iterator](){return this}}}}function Ys(n){return function(...e){return n==="delete"?!1:n==="clear"?void 0:this}}function F5(){const n={get(s){return Yd(this,s)},get size(){return Wd(this)},has:$d,add:NE,set:kE,delete:IE,clear:OE,forEach:Kd(!1,!1)},e={get(s){return Yd(this,s,!1,!0)},get size(){return Wd(this)},has:$d,add(s){return NE.call(this,s,!0)},set(s,o){return kE.call(this,s,o,!0)},delete:IE,clear:OE,forEach:Kd(!1,!0)},t={get(s){return Yd(this,s,!0)},get size(){return Wd(this,!0)},has(s){return $d.call(this,s,!0)},add:Ys("add"),set:Ys("set"),delete:Ys("delete"),clear:Ys("clear"),forEach:Kd(!0,!1)},r={get(s){return Yd(this,s,!0,!0)},get size(){return Wd(this,!0)},has(s){return $d.call(this,s,!0)},add:Ys("add"),set:Ys("set"),delete:Ys("delete"),clear:Ys("clear"),forEach:Kd(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=jd(s,!1,!1),t[s]=jd(s,!0,!1),e[s]=jd(s,!1,!0),r[s]=jd(s,!0,!0)}),[n,t,e,r]}const[U5,B5,G5,z5]=F5();function gh(n,e){const t=e?n?z5:G5:n?B5:U5;return(r,i,s)=>i==="__v_isReactive"?!n:i==="__v_isReadonly"?n:i==="__v_raw"?r:Reflect.get(en(t,i)&&i in r?t:r,i,s)}const V5={get:gh(!1,!1)},H5={get:gh(!1,!0)},q5={get:gh(!0,!1)},Y5={get:gh(!0,!0)},KM=new WeakMap,jM=new WeakMap,QM=new WeakMap,XM=new WeakMap;function $5(n){switch(n){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function W5(n){return n.__v_skip||!Object.isExtensible(n)?0:$5(h5(n))}function yr(n){return _a(n)?n:_h(n,!1,O5,V5,KM)}function ZM(n){return _h(n,!1,L5,H5,jM)}function JM(n){return _h(n,!0,D5,q5,QM)}function K5(n){return _h(n,!0,P5,Y5,XM)}function _h(n,e,t,r,i){if(!cn(n)||n.__v_raw&&!(e&&n.__v_isReactive))return n;const s=i.get(n);if(s)return s;const o=W5(n);if(o===0)return n;const a=new Proxy(n,o===2?r:t);return i.set(n,a),a}function ul(n){return _a(n)?ul(n.__v_raw):!!(n&&n.__v_isReactive)}function _a(n){return!!(n&&n.__v_isReadonly)}function oi(n){return!!(n&&n.__v_isShallow)}function iv(n){return n?!!n.__v_raw:!1}function Xt(n){const e=n&&n.__v_raw;return e?Xt(e):n}function bh(n){return!en(n,"__v_skip")&&Object.isExtensible(n)&&MM(n,"__v_skip",!0),n}const sr=n=>cn(n)?yr(n):n,sv=n=>cn(n)?JM(n):n;function Gn(n){return n?n.__v_isRef===!0:!1}function yt(n){return e4(n,!1)}function j5(n){return e4(n,!0)}function e4(n,e){return Gn(n)?n:new Q5(n,e)}class Q5{constructor(e,t){this.dep=new hh,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:Xt(e),this._value=t?e:sr(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,r=this.__v_isShallow||oi(e)||_a(e);e=r?e:Xt(e),Co(e,t)&&(this._rawValue=e,this._value=r?e:sr(e),this.dep.trigger())}}function Pt(n){return Gn(n)?n.value:n}const X5={get:(n,e,t)=>e==="__v_raw"?n:Pt(Reflect.get(n,e,t)),set:(n,e,t,r)=>{const i=n[e];return Gn(i)&&!Gn(t)?(i.value=t,!0):Reflect.set(n,e,t,r)}};function t4(n){return ul(n)?n:new Proxy(n,X5)}class Z5{constructor(e){this.__v_isRef=!0,this._value=void 0;const t=this.dep=new hh,{get:r,set:i}=e(t.track.bind(t),t.trigger.bind(t));this._get=r,this._set=i}get value(){return this._value=this._get()}set value(e){this._set(e)}}function J5(n){return new Z5(n)}function eD(n){const e=vt(n)?new Array(n.length):{};for(const t in n)e[t]=n4(n,t);return e}class tD{constructor(e,t,r){this._object=e,this._key=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return R5(Xt(this._object),this._key)}}class nD{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function yp(n,e,t){return Gn(n)?n:kt(n)?new nD(n):cn(n)&&arguments.length>1?n4(n,e,t):yt(n)}function n4(n,e,t){const r=n[e];return Gn(r)?r:new tD(n,e,t)}class rD{constructor(e,t,r){this.fn=e,this.setter=t,this._value=void 0,this.dep=new hh(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=td-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&gn!==this)return UM(this),!0}get value(){const e=this.dep.track();return zM(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function iD(n,e,t=!1){let r,i;return kt(n)?r=n:(r=n.get,i=n.set),new rD(r,i,t)}const Qd={},Ep=new WeakMap;let Qo;function sD(n,e=!1,t=Qo){if(t){let r=Ep.get(t);r||Ep.set(t,r=[]),r.push(n)}}function oD(n,e,t=hn){const{immediate:r,deep:i,once:s,scheduler:o,augmentJob:a,call:l}=t,d=x=>i?x:oi(x)||i===!1||i===0?Ss(x,1):Ss(x);let u,m,f,g,h=!1,v=!1;if(Gn(n)?(m=()=>n.value,h=oi(n)):ul(n)?(m=()=>d(n),h=!0):vt(n)?(v=!0,h=n.some(x=>ul(x)||oi(x)),m=()=>n.map(x=>{if(Gn(x))return x.value;if(ul(x))return d(x);if(kt(x))return l?l(x,2):x()})):kt(n)?e?m=l?()=>l(n,2):n:m=()=>{if(f){Oo();try{f()}finally{Do()}}const x=Qo;Qo=u;try{return l?l(n,3,[g]):n(g)}finally{Qo=x}}:m=Ki,e&&i){const x=m,A=i===!0?1/0:i;m=()=>Ss(x(),A)}const b=LM(),_=()=>{u.stop(),b&&X1(b.effects,u)};if(s&&e){const x=e;e=(...A)=>{x(...A),_()}}let y=v?new Array(n.length).fill(Qd):Qd;const E=x=>{if(!(!(u.flags&1)||!u.dirty&&!x))if(e){const A=u.run();if(i||h||(v?A.some((w,N)=>Co(w,y[N])):Co(A,y))){f&&f();const w=Qo;Qo=u;try{const N=[A,y===Qd?void 0:v&&y[0]===Qd?[]:y,g];l?l(e,3,N):e(...N),y=A}finally{Qo=w}}}else u.run()};return a&&a(E),u=new PM(m),u.scheduler=o?()=>o(E,!1):E,g=x=>sD(x,!1,u),f=u.onStop=()=>{const x=Ep.get(u);if(x){if(l)l(x,4);else for(const A of x)A();Ep.delete(u)}},e?r?E(!0):y=u.run():o?o(E.bind(null,!0),!0):u.run(),_.pause=u.pause.bind(u),_.resume=u.resume.bind(u),_.stop=_,_}function Ss(n,e=1/0,t){if(e<=0||!cn(n)||n.__v_skip||(t=t||new Set,t.has(n)))return n;if(t.add(n),e--,Gn(n))Ss(n.value,e,t);else if(vt(n))for(let r=0;r{Ss(r,e,t)});else if(RM(n)){for(const r in n)Ss(n[r],e,t);for(const r of Object.getOwnPropertySymbols(n))Object.prototype.propertyIsEnumerable.call(n,r)&&Ss(n[r],e,t)}return n}/** * @vue/runtime-core v3.5.10 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function Sd(n,e,t,r){try{return r?n(...r):n()}catch(i){vh(i,e,t)}}function Ni(n,e,t,r){if(kt(n)){const i=Sd(n,e,t,r);return i&&CM(i)&&i.catch(s=>{vh(s,e,t)}),i}if(vt(n)){const i=[];for(let s=0;s>>1,i=fr[r],s=id(i);s=id(t)?fr.push(n):fr.splice(lD(e),0,n),n.flags|=1,i4()}}function i4(){!rd&&!Lb&&(Lb=!0,ov=r4.then(o4))}function cD(n){vt(n)?pl.push(...n):io&&n.id===-1?io.splice(nl+1,0,n):n.flags&1||(pl.push(n),n.flags|=1),i4()}function DE(n,e,t=rd?Fi+1:0){for(;tid(t)-id(r));if(pl.length=0,io){io.push(...e);return}for(io=e,nl=0;nln.id==null?n.flags&2?-1:1/0:n.id;function o4(n){Lb=!1,rd=!0;try{for(Fi=0;Fi{r._d&&YE(-1);const s=Sp(e);let o;try{o=n(...i)}finally{Sp(s),r._d&&YE(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function F(n,e){if(Wn===null)return n;const t=Ch(Wn),r=n.dirs||(n.dirs=[]);for(let i=0;in.__isTeleport,Fc=n=>n&&(n.disabled||n.disabled===""),dD=n=>n&&(n.defer||n.defer===""),LE=n=>typeof SVGElement<"u"&&n instanceof SVGElement,PE=n=>typeof MathMLElement=="function"&&n instanceof MathMLElement,Pb=(n,e)=>{const t=n&&n.to;return yn(t)?e?e(t):null:t},uD={name:"Teleport",__isTeleport:!0,process(n,e,t,r,i,s,o,a,l,d){const{mc:u,pc:m,pbc:f,o:{insert:g,querySelector:h,createText:v,createComment:b}}=d,_=Fc(e.props);let{shapeFlag:y,children:E,dynamicChildren:x}=e;if(n==null){const A=e.el=v(""),w=e.anchor=v("");g(A,t,r),g(w,t,r);const N=(C,k)=>{y&16&&(i&&i.isCE&&(i.ce._teleportTarget=C),u(E,C,k,i,s,o,a,l))},L=()=>{const C=e.target=Pb(e.props,h),k=d4(C,e,v,g);C&&(o!=="svg"&&LE(C)?o="svg":o!=="mathml"&&PE(C)&&(o="mathml"),_||(N(C,k),Ju(e)))};_&&(N(t,w),Ju(e)),dD(e.props)?Yn(L,s):L()}else{e.el=n.el,e.targetStart=n.targetStart;const A=e.anchor=n.anchor,w=e.target=n.target,N=e.targetAnchor=n.targetAnchor,L=Fc(n.props),C=L?t:w,k=L?A:N;if(o==="svg"||LE(w)?o="svg":(o==="mathml"||PE(w))&&(o="mathml"),x?(f(n.dynamicChildren,x,C,i,s,o,a),uv(n,e,!0)):l||m(n,e,C,k,i,s,o,a,!1),_)L?e.props&&n.props&&e.props.to!==n.props.to&&(e.props.to=n.props.to):Xd(e,t,A,d,1);else if((e.props&&e.props.to)!==(n.props&&n.props.to)){const H=e.target=Pb(e.props,h);H&&Xd(e,H,null,d,0)}else L&&Xd(e,w,N,d,1);Ju(e)}},remove(n,e,t,{um:r,o:{remove:i}},s){const{shapeFlag:o,children:a,anchor:l,targetStart:d,targetAnchor:u,target:m,props:f}=n;if(m&&(i(d),i(u)),s&&i(l),o&16){const g=s||!Fc(f);for(let h=0;h{n.isMounted=!0}),jl(()=>{n.isUnmounting=!0}),n}const Wr=[Function,Array],p4={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Wr,onEnter:Wr,onAfterEnter:Wr,onEnterCancelled:Wr,onBeforeLeave:Wr,onLeave:Wr,onAfterLeave:Wr,onLeaveCancelled:Wr,onBeforeAppear:Wr,onAppear:Wr,onAfterAppear:Wr,onAppearCancelled:Wr},h4=n=>{const e=n.subTree;return e.component?h4(e.component):e},mD={name:"BaseTransition",props:p4,setup(n,{slots:e}){const t=hv(),r=u4();return()=>{const i=e.default&&lv(e.default(),!0);if(!i||!i.length)return;const s=m4(i),o=Xt(n),{mode:a}=o;if(r.isLeaving)return Tm(s);const l=FE(s);if(!l)return Tm(s);let d=sd(l,o,r,t,f=>d=f);l.type!==ar&&Ao(l,d);const u=t.subTree,m=u&&FE(u);if(m&&m.type!==ar&&!fo(l,m)&&h4(t).type!==ar){const f=sd(m,o,r,t);if(Ao(m,f),a==="out-in"&&l.type!==ar)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,t.job.flags&8||t.update(),delete f.afterLeave},Tm(s);a==="in-out"&&l.type!==ar&&(f.delayLeave=(g,h,v)=>{const b=f4(r,m);b[String(m.key)]=m,g[so]=()=>{h(),g[so]=void 0,delete d.delayedLeave},d.delayedLeave=v})}return s}}};function m4(n){let e=n[0];if(n.length>1){for(const t of n)if(t.type!==ar){e=t;break}}return e}const fD=mD;function f4(n,e){const{leavingVNodes:t}=n;let r=t.get(e.type);return r||(r=Object.create(null),t.set(e.type,r)),r}function sd(n,e,t,r,i){const{appear:s,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:d,onAfterEnter:u,onEnterCancelled:m,onBeforeLeave:f,onLeave:g,onAfterLeave:h,onLeaveCancelled:v,onBeforeAppear:b,onAppear:_,onAfterAppear:y,onAppearCancelled:E}=e,x=String(n.key),A=f4(t,n),w=(C,k)=>{C&&Ni(C,r,9,k)},N=(C,k)=>{const H=k[1];w(C,k),vt(C)?C.every(q=>q.length<=1)&&H():C.length<=1&&H()},L={mode:o,persisted:a,beforeEnter(C){let k=l;if(!t.isMounted)if(s)k=b||l;else return;C[so]&&C[so](!0);const H=A[x];H&&fo(n,H)&&H.el[so]&&H.el[so](),w(k,[C])},enter(C){let k=d,H=u,q=m;if(!t.isMounted)if(s)k=_||d,H=y||u,q=E||m;else return;let ie=!1;const D=C[Zd]=$=>{ie||(ie=!0,$?w(q,[C]):w(H,[C]),L.delayedLeave&&L.delayedLeave(),C[Zd]=void 0)};k?N(k,[C,D]):D()},leave(C,k){const H=String(n.key);if(C[Zd]&&C[Zd](!0),t.isUnmounting)return k();w(f,[C]);let q=!1;const ie=C[so]=D=>{q||(q=!0,k(),D?w(v,[C]):w(h,[C]),C[so]=void 0,A[H]===n&&delete A[H])};A[H]=n,g?N(g,[C,ie]):ie()},clone(C){const k=sd(C,e,t,r,i);return i&&i(k),k}};return L}function Tm(n){if(yh(n))return n=Is(n),n.children=null,n}function FE(n){if(!yh(n))return c4(n.type)&&n.children?m4(n.children):n;const{shapeFlag:e,children:t}=n;if(t){if(e&16)return t[0];if(e&32&&kt(t.default))return t.default()}}function Ao(n,e){n.shapeFlag&6&&n.component?(n.transition=e,Ao(n.component.subTree,e)):n.shapeFlag&128?(n.ssContent.transition=e.clone(n.ssContent),n.ssFallback.transition=e.clone(n.ssFallback)):n.transition=e}function lv(n,e=!1,t){let r=[],i=0;for(let s=0;s1)for(let s=0;sFb(h,e&&(vt(e)?e[v]:e),t,r,i));return}if(la(r)&&!i)return;const s=r.shapeFlag&4?Ch(r.component):r.el,o=i?null:s,{i:a,r:l}=n,d=e&&e.r,u=a.refs===hn?a.refs={}:a.refs,m=a.setupState,f=Xt(m),g=m===hn?()=>!1:h=>en(f,h);if(d!=null&&d!==l&&(yn(d)?(u[d]=null,g(d)&&(m[d]=null)):Gn(d)&&(d.value=null)),kt(l))Sd(l,a,12,[o,u]);else{const h=yn(l),v=Gn(l);if(h||v){const b=()=>{if(n.f){const _=h?g(l)?m[l]:u[l]:l.value;i?vt(_)&&X1(_,s):vt(_)?_.includes(s)||_.push(s):h?(u[l]=[s],g(l)&&(m[l]=u[l])):(l.value=[s],n.k&&(u[n.k]=l.value))}else h?(u[l]=o,g(l)&&(m[l]=o)):v&&(l.value=o,n.k&&(u[n.k]=o))};o?(b.id=-1,Yn(b,t)):b()}}}const la=n=>!!n.type.__asyncLoader,yh=n=>n.type.__isKeepAlive,gD={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(n,{slots:e}){const t=hv(),r=t.ctx;if(!r.renderer)return()=>{const y=e.default&&e.default();return y&&y.length===1?y[0]:y};const i=new Map,s=new Set;let o=null;const a=t.suspense,{renderer:{p:l,m:d,um:u,o:{createElement:m}}}=r,f=m("div");r.activate=(y,E,x,A,w)=>{const N=y.component;d(y,E,x,0,a),l(N.vnode,y,E,x,N,a,A,y.slotScopeIds,w),Yn(()=>{N.isDeactivated=!1,N.a&&dl(N.a);const L=y.props&&y.props.onVnodeMounted;L&&jr(L,N.parent,y)},a)},r.deactivate=y=>{const E=y.component;Tp(E.m),Tp(E.a),d(y,f,null,1,a),Yn(()=>{E.da&&dl(E.da);const x=y.props&&y.props.onVnodeUnmounted;x&&jr(x,E.parent,y),E.isDeactivated=!0},a)};function g(y){wm(y),u(y,t,a,!0)}function h(y){i.forEach((E,x)=>{const A=Hb(E.type);A&&!y(A)&&v(x)})}function v(y){const E=i.get(y);E&&(!o||!fo(E,o))?g(E):o&&wm(o),i.delete(y),s.delete(y)}Zn(()=>[n.include,n.exclude],([y,E])=>{y&&h(x=>Nc(y,x)),E&&h(x=>!Nc(E,x))},{flush:"post",deep:!0});let b=null;const _=()=>{b!=null&&(wp(t.subTree.type)?Yn(()=>{i.set(b,Jd(t.subTree))},t.subTree.suspense):i.set(b,Jd(t.subTree)))};return Ji(_),xd(_),jl(()=>{i.forEach(y=>{const{subTree:E,suspense:x}=t,A=Jd(E);if(y.type===A.type&&y.key===A.key){wm(A);const w=A.component.da;w&&Yn(w,x);return}g(y)})}),()=>{if(b=null,!e.default)return o=null;const y=e.default(),E=y[0];if(y.length>1)return o=null,y;if(!El(E)||!(E.shapeFlag&4)&&!(E.shapeFlag&128))return o=null,E;let x=Jd(E);if(x.type===ar)return o=null,x;const A=x.type,w=Hb(la(x)?x.type.__asyncResolved||{}:A),{include:N,exclude:L,max:C}=n;if(N&&(!w||!Nc(N,w))||L&&w&&Nc(L,w))return x.shapeFlag&=-257,o=x,E;const k=x.key==null?A:x.key,H=i.get(k);return x.el&&(x=Is(x),E.shapeFlag&128&&(E.ssContent=x)),b=k,H?(x.el=H.el,x.component=H.component,x.transition&&Ao(x,x.transition),x.shapeFlag|=512,s.delete(k),s.add(k)):(s.add(k),C&&s.size>parseInt(C,10)&&v(s.values().next().value)),x.shapeFlag|=256,o=x,wp(E.type)?E:x}}},_D=gD;function Nc(n,e){return vt(n)?n.some(t=>Nc(t,e)):yn(n)?n.split(",").includes(e):p5(n)?(n.lastIndex=0,n.test(e)):!1}function bD(n,e){_4(n,"a",e)}function vD(n,e){_4(n,"da",e)}function _4(n,e,t=Xn){const r=n.__wdc||(n.__wdc=()=>{let i=t;for(;i;){if(i.isDeactivated)return;i=i.parent}return n()});if(Eh(e,r,t),t){let i=t.parent;for(;i&&i.parent;)yh(i.parent.vnode)&&yD(r,e,t,i),i=i.parent}}function yD(n,e,t,r){const i=Eh(e,n,r,!0);b4(()=>{X1(r[e],i)},t)}function wm(n){n.shapeFlag&=-257,n.shapeFlag&=-513}function Jd(n){return n.shapeFlag&128?n.ssContent:n}function Eh(n,e,t=Xn,r=!1){if(t){const i=t[n]||(t[n]=[]),s=e.__weh||(e.__weh=(...o)=>{Oo();const a=Td(t),l=Ni(e,t,n,o);return a(),Do(),l});return r?i.unshift(s):i.push(s),s}}const Us=n=>(e,t=Xn)=>{(!wh||n==="sp")&&Eh(n,(...r)=>e(...r),t)},ED=Us("bm"),Ji=Us("m"),SD=Us("bu"),xd=Us("u"),jl=Us("bum"),b4=Us("um"),xD=Us("sp"),TD=Us("rtg"),wD=Us("rtc");function CD(n,e=Xn){Eh("ec",n,e)}const v4="components";function ht(n,e){return E4(v4,n,!0,e)||n}const y4=Symbol.for("v-ndc");function Sh(n){return yn(n)?E4(v4,n,!1)||n:n||y4}function E4(n,e,t=!0,r=!1){const i=Wn||Xn;if(i){const s=i.type;{const a=Hb(s,!1);if(a&&(a===e||a===di(e)||a===ph(di(e))))return s}const o=UE(i[n]||s[n],e)||UE(i.appContext[n],e);return!o&&r?s:o}}function UE(n,e){return n&&(n[e]||n[di(e)]||n[ph(di(e))])}function at(n,e,t,r){let i;const s=t,o=vt(n);if(o||yn(n)){const a=o&&ul(n);let l=!1;a&&(l=!oi(n),n=mh(n)),i=new Array(n.length);for(let d=0,u=n.length;de(a,l,void 0,s));else{const a=Object.keys(n);i=new Array(a.length);for(let l=0,d=a.length;lEl(e)?!(e.type===ar||e.type===je&&!S4(e.children)):!0)?n:null}function AD(n,e){const t={};for(const r in n)t[/[A-Z]/.test(r)?`on:${r}`:Zu(r)]=n[r];return t}const Ub=n=>n?z4(n)?Ch(n):Ub(n.parent):null,Uc=Ln(Object.create(null),{$:n=>n,$el:n=>n.vnode.el,$data:n=>n.data,$props:n=>n.props,$attrs:n=>n.attrs,$slots:n=>n.slots,$refs:n=>n.refs,$parent:n=>Ub(n.parent),$root:n=>Ub(n.root),$host:n=>n.ce,$emit:n=>n.emit,$options:n=>cv(n),$forceUpdate:n=>n.f||(n.f=()=>{av(n.update)}),$nextTick:n=>n.n||(n.n=We.bind(n.proxy)),$watch:n=>KD.bind(n)}),Cm=(n,e)=>n!==hn&&!n.__isScriptSetup&&en(n,e),RD={get({_:n},e){if(e==="__v_skip")return!0;const{ctx:t,setupState:r,data:i,props:s,accessCache:o,type:a,appContext:l}=n;let d;if(e[0]!=="$"){const g=o[e];if(g!==void 0)switch(g){case 1:return r[e];case 2:return i[e];case 4:return t[e];case 3:return s[e]}else{if(Cm(r,e))return o[e]=1,r[e];if(i!==hn&&en(i,e))return o[e]=2,i[e];if((d=n.propsOptions[0])&&en(d,e))return o[e]=3,s[e];if(t!==hn&&en(t,e))return o[e]=4,t[e];Bb&&(o[e]=0)}}const u=Uc[e];let m,f;if(u)return e==="$attrs"&&cr(n.attrs,"get",""),u(n);if((m=a.__cssModules)&&(m=m[e]))return m;if(t!==hn&&en(t,e))return o[e]=4,t[e];if(f=l.config.globalProperties,en(f,e))return f[e]},set({_:n},e,t){const{data:r,setupState:i,ctx:s}=n;return Cm(i,e)?(i[e]=t,!0):r!==hn&&en(r,e)?(r[e]=t,!0):en(n.props,e)||e[0]==="$"&&e.slice(1)in n?!1:(s[e]=t,!0)},has({_:{data:n,setupState:e,accessCache:t,ctx:r,appContext:i,propsOptions:s}},o){let a;return!!t[o]||n!==hn&&en(n,o)||Cm(e,o)||(a=s[0])&&en(a,o)||en(r,o)||en(Uc,o)||en(i.config.globalProperties,o)},defineProperty(n,e,t){return t.get!=null?n._.accessCache[e]=0:en(t,"value")&&this.set(n,e,t.value,null),Reflect.defineProperty(n,e,t)}};function BE(n){return vt(n)?n.reduce((e,t)=>(e[t]=null,e),{}):n}let Bb=!0;function MD(n){const e=cv(n),t=n.proxy,r=n.ctx;Bb=!1,e.beforeCreate&&GE(e.beforeCreate,n,"bc");const{data:i,computed:s,methods:o,watch:a,provide:l,inject:d,created:u,beforeMount:m,mounted:f,beforeUpdate:g,updated:h,activated:v,deactivated:b,beforeDestroy:_,beforeUnmount:y,destroyed:E,unmounted:x,render:A,renderTracked:w,renderTriggered:N,errorCaptured:L,serverPrefetch:C,expose:k,inheritAttrs:H,components:q,directives:ie,filters:D}=e;if(d&&ND(d,r,null),o)for(const B in o){const Z=o[B];kt(Z)&&(r[B]=Z.bind(t))}if(i){const B=i.call(t,t);cn(B)&&(n.data=yr(B))}if(Bb=!0,s)for(const B in s){const Z=s[B],ce=kt(Z)?Z.bind(t,t):kt(Z.get)?Z.get.bind(t,t):Ki,ue=!kt(Z)&&kt(Z.set)?Z.set.bind(t):Ki,xe=mt({get:ce,set:ue});Object.defineProperty(r,B,{enumerable:!0,configurable:!0,get:()=>xe.value,set:Ce=>xe.value=Ce})}if(a)for(const B in a)x4(a[B],r,t,B);if(l){const B=kt(l)?l.call(t):l;Reflect.ownKeys(B).forEach(Z=>{ml(Z,B[Z])})}u&&GE(u,n,"c");function K(B,Z){vt(Z)?Z.forEach(ce=>B(ce.bind(t))):Z&&B(Z.bind(t))}if(K(ED,m),K(Ji,f),K(SD,g),K(xd,h),K(bD,v),K(vD,b),K(CD,L),K(wD,w),K(TD,N),K(jl,y),K(b4,x),K(xD,C),vt(k))if(k.length){const B=n.exposed||(n.exposed={});k.forEach(Z=>{Object.defineProperty(B,Z,{get:()=>t[Z],set:ce=>t[Z]=ce})})}else n.exposed||(n.exposed={});A&&n.render===Ki&&(n.render=A),H!=null&&(n.inheritAttrs=H),q&&(n.components=q),ie&&(n.directives=ie),C&&g4(n)}function ND(n,e,t=Ki){vt(n)&&(n=Gb(n));for(const r in n){const i=n[r];let s;cn(i)?"default"in i?s=Gr(i.from||r,i.default,!0):s=Gr(i.from||r):s=Gr(i),Gn(s)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:o=>s.value=o}):e[r]=s}}function GE(n,e,t){Ni(vt(n)?n.map(r=>r.bind(e.proxy)):n.bind(e.proxy),e,t)}function x4(n,e,t,r){let i=r.includes(".")?P4(t,r):()=>t[r];if(yn(n)){const s=e[n];kt(s)&&Zn(i,s)}else if(kt(n))Zn(i,n.bind(t));else if(cn(n))if(vt(n))n.forEach(s=>x4(s,e,t,r));else{const s=kt(n.handler)?n.handler.bind(t):e[n.handler];kt(s)&&Zn(i,s,n)}}function cv(n){const e=n.type,{mixins:t,extends:r}=e,{mixins:i,optionsCache:s,config:{optionMergeStrategies:o}}=n.appContext,a=s.get(e);let l;return a?l=a:!i.length&&!t&&!r?l=e:(l={},i.length&&i.forEach(d=>xp(l,d,o,!0)),xp(l,e,o)),cn(e)&&s.set(e,l),l}function xp(n,e,t,r=!1){const{mixins:i,extends:s}=e;s&&xp(n,s,t,!0),i&&i.forEach(o=>xp(n,o,t,!0));for(const o in e)if(!(r&&o==="expose")){const a=kD[o]||t&&t[o];n[o]=a?a(n[o],e[o]):e[o]}return n}const kD={data:zE,props:VE,emits:VE,methods:kc,computed:kc,beforeCreate:pr,created:pr,beforeMount:pr,mounted:pr,beforeUpdate:pr,updated:pr,beforeDestroy:pr,beforeUnmount:pr,destroyed:pr,unmounted:pr,activated:pr,deactivated:pr,errorCaptured:pr,serverPrefetch:pr,components:kc,directives:kc,watch:OD,provide:zE,inject:ID};function zE(n,e){return e?n?function(){return Ln(kt(n)?n.call(this,this):n,kt(e)?e.call(this,this):e)}:e:n}function ID(n,e){return kc(Gb(n),Gb(e))}function Gb(n){if(vt(n)){const e={};for(let t=0;t1)return t&&kt(e)?e.call(r&&r.proxy):e}}const w4={},C4=()=>Object.create(w4),A4=n=>Object.getPrototypeOf(n)===w4;function PD(n,e,t,r=!1){const i={},s=C4();n.propsDefaults=Object.create(null),R4(n,e,i,s);for(const o in n.propsOptions[0])o in i||(i[o]=void 0);t?n.props=r?i:ZM(i):n.type.props?n.props=i:n.props=s,n.attrs=s}function FD(n,e,t,r){const{props:i,attrs:s,vnode:{patchFlag:o}}=n,a=Xt(i),[l]=n.propsOptions;let d=!1;if((r||o>0)&&!(o&16)){if(o&8){const u=n.vnode.dynamicProps;for(let m=0;m{l=!0;const[f,g]=M4(m,e,!0);Ln(o,f),g&&a.push(...g)};!t&&e.mixins.length&&e.mixins.forEach(u),n.extends&&u(n.extends),n.mixins&&n.mixins.forEach(u)}if(!s&&!l)return cn(n)&&r.set(n,ll),ll;if(vt(s))for(let u=0;un[0]==="_"||n==="$stable",dv=n=>vt(n)?n.map(Bi):[Bi(n)],BD=(n,e,t)=>{if(e._n)return e;const r=Ge((...i)=>dv(e(...i)),t);return r._c=!1,r},k4=(n,e,t)=>{const r=n._ctx;for(const i in n){if(N4(i))continue;const s=n[i];if(kt(s))e[i]=BD(i,s,r);else if(s!=null){const o=dv(s);e[i]=()=>o}}},I4=(n,e)=>{const t=dv(e);n.slots.default=()=>t},O4=(n,e,t)=>{for(const r in e)(t||r!=="_")&&(n[r]=e[r])},GD=(n,e,t)=>{const r=n.slots=C4();if(n.vnode.shapeFlag&32){const i=e._;i?(O4(r,e,t),t&&MM(r,"_",i,!0)):k4(e,r)}else e&&I4(n,e)},zD=(n,e,t)=>{const{vnode:r,slots:i}=n;let s=!0,o=hn;if(r.shapeFlag&32){const a=e._;a?t&&a===1?s=!1:O4(i,e,t):(s=!e.$stable,k4(e,i)),o=e}else e&&(I4(n,e),o={default:1});if(s)for(const a in i)!N4(a)&&o[a]==null&&delete i[a]},Yn=tL;function VD(n){return HD(n)}function HD(n,e){const t=NM();t.__VUE__=!0;const{insert:r,remove:i,patchProp:s,createElement:o,createText:a,createComment:l,setText:d,setElementText:u,parentNode:m,nextSibling:f,setScopeId:g=Ki,insertStaticContent:h}=n,v=(V,G,oe,ge=null,Ee=null,Te=null,fe=void 0,Ue=null,Pe=!!G.dynamicChildren)=>{if(V===G)return;V&&!fo(V,G)&&(ge=te(V),Ce(V,Ee,Te,!0),V=null),G.patchFlag===-2&&(Pe=!1,G.dynamicChildren=null);const{type:Re,ref:U,shapeFlag:I}=G;switch(Re){case Th:b(V,G,oe,ge);break;case ar:_(V,G,oe,ge);break;case ep:V==null&&y(G,oe,ge,fe);break;case je:q(V,G,oe,ge,Ee,Te,fe,Ue,Pe);break;default:I&1?A(V,G,oe,ge,Ee,Te,fe,Ue,Pe):I&6?ie(V,G,oe,ge,Ee,Te,fe,Ue,Pe):(I&64||I&128)&&Re.process(V,G,oe,ge,Ee,Te,fe,Ue,Pe,Oe)}U!=null&&Ee&&Fb(U,V&&V.ref,Te,G||V,!G)},b=(V,G,oe,ge)=>{if(V==null)r(G.el=a(G.children),oe,ge);else{const Ee=G.el=V.el;G.children!==V.children&&d(Ee,G.children)}},_=(V,G,oe,ge)=>{V==null?r(G.el=l(G.children||""),oe,ge):G.el=V.el},y=(V,G,oe,ge)=>{[V.el,V.anchor]=h(V.children,G,oe,ge,V.el,V.anchor)},E=({el:V,anchor:G},oe,ge)=>{let Ee;for(;V&&V!==G;)Ee=f(V),r(V,oe,ge),V=Ee;r(G,oe,ge)},x=({el:V,anchor:G})=>{let oe;for(;V&&V!==G;)oe=f(V),i(V),V=oe;i(G)},A=(V,G,oe,ge,Ee,Te,fe,Ue,Pe)=>{G.type==="svg"?fe="svg":G.type==="math"&&(fe="mathml"),V==null?w(G,oe,ge,Ee,Te,fe,Ue,Pe):C(V,G,Ee,Te,fe,Ue,Pe)},w=(V,G,oe,ge,Ee,Te,fe,Ue)=>{let Pe,Re;const{props:U,shapeFlag:I,transition:ee,dirs:we}=V;if(Pe=V.el=o(V.type,Te,U&&U.is,U),I&8?u(Pe,V.children):I&16&&L(V.children,Pe,null,ge,Ee,Am(V,Te),fe,Ue),we&&Bo(V,null,ge,"created"),N(Pe,V,V.scopeId,fe,ge),U){for(const pe in U)pe!=="value"&&!Pc(pe)&&s(Pe,pe,null,U[pe],Te,ge);"value"in U&&s(Pe,"value",null,U.value,Te),(Re=U.onVnodeBeforeMount)&&jr(Re,ge,V)}we&&Bo(V,null,ge,"beforeMount");const ne=qD(Ee,ee);ne&&ee.beforeEnter(Pe),r(Pe,G,oe),((Re=U&&U.onVnodeMounted)||ne||we)&&Yn(()=>{Re&&jr(Re,ge,V),ne&&ee.enter(Pe),we&&Bo(V,null,ge,"mounted")},Ee)},N=(V,G,oe,ge,Ee)=>{if(oe&&g(V,oe),ge)for(let Te=0;Te{for(let Re=Pe;Re{const Ue=G.el=V.el;let{patchFlag:Pe,dynamicChildren:Re,dirs:U}=G;Pe|=V.patchFlag&16;const I=V.props||hn,ee=G.props||hn;let we;if(oe&&Go(oe,!1),(we=ee.onVnodeBeforeUpdate)&&jr(we,oe,G,V),U&&Bo(G,V,oe,"beforeUpdate"),oe&&Go(oe,!0),(I.innerHTML&&ee.innerHTML==null||I.textContent&&ee.textContent==null)&&u(Ue,""),Re?k(V.dynamicChildren,Re,Ue,oe,ge,Am(G,Ee),Te):fe||Z(V,G,Ue,null,oe,ge,Am(G,Ee),Te,!1),Pe>0){if(Pe&16)H(Ue,I,ee,oe,Ee);else if(Pe&2&&I.class!==ee.class&&s(Ue,"class",null,ee.class,Ee),Pe&4&&s(Ue,"style",I.style,ee.style,Ee),Pe&8){const ne=G.dynamicProps;for(let pe=0;pe{we&&jr(we,oe,G,V),U&&Bo(G,V,oe,"updated")},ge)},k=(V,G,oe,ge,Ee,Te,fe)=>{for(let Ue=0;Ue{if(G!==oe){if(G!==hn)for(const Te in G)!Pc(Te)&&!(Te in oe)&&s(V,Te,G[Te],null,Ee,ge);for(const Te in oe){if(Pc(Te))continue;const fe=oe[Te],Ue=G[Te];fe!==Ue&&Te!=="value"&&s(V,Te,Ue,fe,Ee,ge)}"value"in oe&&s(V,"value",G.value,oe.value,Ee)}},q=(V,G,oe,ge,Ee,Te,fe,Ue,Pe)=>{const Re=G.el=V?V.el:a(""),U=G.anchor=V?V.anchor:a("");let{patchFlag:I,dynamicChildren:ee,slotScopeIds:we}=G;we&&(Ue=Ue?Ue.concat(we):we),V==null?(r(Re,oe,ge),r(U,oe,ge),L(G.children||[],oe,U,Ee,Te,fe,Ue,Pe)):I>0&&I&64&&ee&&V.dynamicChildren?(k(V.dynamicChildren,ee,oe,Ee,Te,fe,Ue),(G.key!=null||Ee&&G===Ee.subTree)&&uv(V,G,!0)):Z(V,G,oe,U,Ee,Te,fe,Ue,Pe)},ie=(V,G,oe,ge,Ee,Te,fe,Ue,Pe)=>{G.slotScopeIds=Ue,V==null?G.shapeFlag&512?Ee.ctx.activate(G,oe,ge,fe,Pe):D(G,oe,ge,Ee,Te,fe,Pe):$(V,G,Pe)},D=(V,G,oe,ge,Ee,Te,fe)=>{const Ue=V.component=aL(V,ge,Ee);if(yh(V)&&(Ue.ctx.renderer=Oe),lL(Ue,!1,fe),Ue.asyncDep){if(Ee&&Ee.registerDep(Ue,K,fe),!V.el){const Pe=Ue.subTree=W(ar);_(null,Pe,G,oe)}}else K(Ue,V,G,oe,Ee,Te,fe)},$=(V,G,oe)=>{const ge=G.component=V.component;if(JD(V,G,oe))if(ge.asyncDep&&!ge.asyncResolved){B(ge,G,oe);return}else ge.next=G,ge.update();else G.el=V.el,ge.vnode=G},K=(V,G,oe,ge,Ee,Te,fe)=>{const Ue=()=>{if(V.isMounted){let{next:I,bu:ee,u:we,parent:ne,vnode:pe}=V;{const wt=D4(V);if(wt){I&&(I.el=pe.el,B(V,I,fe)),wt.asyncDep.then(()=>{V.isUnmounted||Ue()});return}}let De=I,Le;Go(V,!1),I?(I.el=pe.el,B(V,I,fe)):I=pe,ee&&dl(ee),(Le=I.props&&I.props.onVnodeBeforeUpdate)&&jr(Le,ne,I,pe),Go(V,!0);const Ve=Rm(V),ot=V.subTree;V.subTree=Ve,v(ot,Ve,m(ot.el),te(ot),V,Ee,Te),I.el=Ve.el,De===null&&eL(V,Ve.el),we&&Yn(we,Ee),(Le=I.props&&I.props.onVnodeUpdated)&&Yn(()=>jr(Le,ne,I,pe),Ee)}else{let I;const{el:ee,props:we}=G,{bm:ne,m:pe,parent:De,root:Le,type:Ve}=V,ot=la(G);if(Go(V,!1),ne&&dl(ne),!ot&&(I=we&&we.onVnodeBeforeMount)&&jr(I,De,G),Go(V,!0),ee&&le){const wt=()=>{V.subTree=Rm(V),le(ee,V.subTree,V,Ee,null)};ot&&Ve.__asyncHydrate?Ve.__asyncHydrate(ee,V,wt):wt()}else{Le.ce&&Le.ce._injectChildStyle(Ve);const wt=V.subTree=Rm(V);v(null,wt,oe,ge,V,Ee,Te),G.el=wt.el}if(pe&&Yn(pe,Ee),!ot&&(I=we&&we.onVnodeMounted)){const wt=G;Yn(()=>jr(I,De,wt),Ee)}(G.shapeFlag&256||De&&la(De.vnode)&&De.vnode.shapeFlag&256)&&V.a&&Yn(V.a,Ee),V.isMounted=!0,G=oe=ge=null}};V.scope.on();const Pe=V.effect=new PM(Ue);V.scope.off();const Re=V.update=Pe.run.bind(Pe),U=V.job=Pe.runIfDirty.bind(Pe);U.i=V,U.id=V.uid,Pe.scheduler=()=>av(U),Go(V,!0),Re()},B=(V,G,oe)=>{G.component=V;const ge=V.vnode.props;V.vnode=G,V.next=null,FD(V,G.props,ge,oe),zD(V,G.children,oe),Oo(),DE(V),Do()},Z=(V,G,oe,ge,Ee,Te,fe,Ue,Pe=!1)=>{const Re=V&&V.children,U=V?V.shapeFlag:0,I=G.children,{patchFlag:ee,shapeFlag:we}=G;if(ee>0){if(ee&128){ue(Re,I,oe,ge,Ee,Te,fe,Ue,Pe);return}else if(ee&256){ce(Re,I,oe,ge,Ee,Te,fe,Ue,Pe);return}}we&8?(U&16&&ze(Re,Ee,Te),I!==Re&&u(oe,I)):U&16?we&16?ue(Re,I,oe,ge,Ee,Te,fe,Ue,Pe):ze(Re,Ee,Te,!0):(U&8&&u(oe,""),we&16&&L(I,oe,ge,Ee,Te,fe,Ue,Pe))},ce=(V,G,oe,ge,Ee,Te,fe,Ue,Pe)=>{V=V||ll,G=G||ll;const Re=V.length,U=G.length,I=Math.min(Re,U);let ee;for(ee=0;eeU?ze(V,Ee,Te,!0,!1,I):L(G,oe,ge,Ee,Te,fe,Ue,Pe,I)},ue=(V,G,oe,ge,Ee,Te,fe,Ue,Pe)=>{let Re=0;const U=G.length;let I=V.length-1,ee=U-1;for(;Re<=I&&Re<=ee;){const we=V[Re],ne=G[Re]=Pe?oo(G[Re]):Bi(G[Re]);if(fo(we,ne))v(we,ne,oe,null,Ee,Te,fe,Ue,Pe);else break;Re++}for(;Re<=I&&Re<=ee;){const we=V[I],ne=G[ee]=Pe?oo(G[ee]):Bi(G[ee]);if(fo(we,ne))v(we,ne,oe,null,Ee,Te,fe,Ue,Pe);else break;I--,ee--}if(Re>I){if(Re<=ee){const we=ee+1,ne=weee)for(;Re<=I;)Ce(V[Re],Ee,Te,!0),Re++;else{const we=Re,ne=Re,pe=new Map;for(Re=ne;Re<=ee;Re++){const ft=G[Re]=Pe?oo(G[Re]):Bi(G[Re]);ft.key!=null&&pe.set(ft.key,Re)}let De,Le=0;const Ve=ee-ne+1;let ot=!1,wt=0;const $e=new Array(Ve);for(Re=0;Re=Ve){Ce(ft,Ee,Te,!0);continue}let gt;if(ft.key!=null)gt=pe.get(ft.key);else for(De=ne;De<=ee;De++)if($e[De-ne]===0&&fo(ft,G[De])){gt=De;break}gt===void 0?Ce(ft,Ee,Te,!0):($e[gt-ne]=Re+1,gt>=wt?wt=gt:ot=!0,v(ft,G[gt],oe,null,Ee,Te,fe,Ue,Pe),Le++)}const Kt=ot?YD($e):ll;for(De=Kt.length-1,Re=Ve-1;Re>=0;Re--){const ft=ne+Re,gt=G[ft],et=ft+1{const{el:Te,type:fe,transition:Ue,children:Pe,shapeFlag:Re}=V;if(Re&6){xe(V.component.subTree,G,oe,ge);return}if(Re&128){V.suspense.move(G,oe,ge);return}if(Re&64){fe.move(V,G,oe,Oe);return}if(fe===je){r(Te,G,oe);for(let I=0;IUe.enter(Te),Ee);else{const{leave:I,delayLeave:ee,afterLeave:we}=Ue,ne=()=>r(Te,G,oe),pe=()=>{I(Te,()=>{ne(),we&&we()})};ee?ee(Te,ne,pe):pe()}else r(Te,G,oe)},Ce=(V,G,oe,ge=!1,Ee=!1)=>{const{type:Te,props:fe,ref:Ue,children:Pe,dynamicChildren:Re,shapeFlag:U,patchFlag:I,dirs:ee,cacheIndex:we}=V;if(I===-2&&(Ee=!1),Ue!=null&&Fb(Ue,null,oe,V,!0),we!=null&&(G.renderCache[we]=void 0),U&256){G.ctx.deactivate(V);return}const ne=U&1&&ee,pe=!la(V);let De;if(pe&&(De=fe&&fe.onVnodeBeforeUnmount)&&jr(De,G,V),U&6)Fe(V.component,oe,ge);else{if(U&128){V.suspense.unmount(oe,ge);return}ne&&Bo(V,null,G,"beforeUnmount"),U&64?V.type.remove(V,G,oe,Oe,ge):Re&&!Re.hasOnce&&(Te!==je||I>0&&I&64)?ze(Re,G,oe,!1,!0):(Te===je&&I&384||!Ee&&U&16)&&ze(Pe,G,oe),ge&&me(V)}(pe&&(De=fe&&fe.onVnodeUnmounted)||ne)&&Yn(()=>{De&&jr(De,G,V),ne&&Bo(V,null,G,"unmounted")},oe)},me=V=>{const{type:G,el:oe,anchor:ge,transition:Ee}=V;if(G===je){Ae(oe,ge);return}if(G===ep){x(V);return}const Te=()=>{i(oe),Ee&&!Ee.persisted&&Ee.afterLeave&&Ee.afterLeave()};if(V.shapeFlag&1&&Ee&&!Ee.persisted){const{leave:fe,delayLeave:Ue}=Ee,Pe=()=>fe(oe,Te);Ue?Ue(V.el,Te,Pe):Pe()}else Te()},Ae=(V,G)=>{let oe;for(;V!==G;)oe=f(V),i(V),V=oe;i(G)},Fe=(V,G,oe)=>{const{bum:ge,scope:Ee,job:Te,subTree:fe,um:Ue,m:Pe,a:Re}=V;Tp(Pe),Tp(Re),ge&&dl(ge),Ee.stop(),Te&&(Te.flags|=8,Ce(fe,V,G,oe)),Ue&&Yn(Ue,G),Yn(()=>{V.isUnmounted=!0},G),G&&G.pendingBranch&&!G.isUnmounted&&V.asyncDep&&!V.asyncResolved&&V.suspenseId===G.pendingId&&(G.deps--,G.deps===0&&G.resolve())},ze=(V,G,oe,ge=!1,Ee=!1,Te=0)=>{for(let fe=Te;fe{if(V.shapeFlag&6)return te(V.component.subTree);if(V.shapeFlag&128)return V.suspense.next();const G=f(V.anchor||V.el),oe=G&&G[l4];return oe?f(oe):G};let ye=!1;const Se=(V,G,oe)=>{V==null?G._vnode&&Ce(G._vnode,null,null,!0):v(G._vnode||null,V,G,null,null,null,oe),G._vnode=V,ye||(ye=!0,DE(),s4(),ye=!1)},Oe={p:v,um:Ce,m:xe,r:me,mt:D,mc:L,pc:Z,pbc:k,n:te,o:n};let Ye,le;return{render:Se,hydrate:Ye,createApp:LD(Se,Ye)}}function Am({type:n,props:e},t){return t==="svg"&&n==="foreignObject"||t==="mathml"&&n==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:t}function Go({effect:n,job:e},t){t?(n.flags|=32,e.flags|=4):(n.flags&=-33,e.flags&=-5)}function qD(n,e){return(!n||n&&!n.pendingBranch)&&e&&!e.persisted}function uv(n,e,t=!1){const r=n.children,i=e.children;if(vt(r)&&vt(i))for(let s=0;s>1,n[t[a]]0&&(e[r]=t[s-1]),t[s]=r)}}for(s=t.length,o=t[s-1];s-- >0;)t[s]=o,o=e[o];return t}function D4(n){const e=n.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:D4(e)}function Tp(n){if(n)for(let e=0;eGr($D);function Zn(n,e,t){return L4(n,e,t)}function L4(n,e,t=hn){const{immediate:r,deep:i,flush:s,once:o}=t,a=Ln({},t);let l;if(wh)if(s==="sync"){const f=WD();l=f.__watcherHandles||(f.__watcherHandles=[])}else if(!e||r)a.once=!0;else{const f=()=>{};return f.stop=Ki,f.resume=Ki,f.pause=Ki,f}const d=Xn;a.call=(f,g,h)=>Ni(f,d,g,h);let u=!1;s==="post"?a.scheduler=f=>{Yn(f,d&&d.suspense)}:s!=="sync"&&(u=!0,a.scheduler=(f,g)=>{g?f():av(f)}),a.augmentJob=f=>{e&&(f.flags|=4),u&&(f.flags|=2,d&&(f.id=d.uid,f.i=d))};const m=oD(n,e,a);return l&&l.push(m),m}function KD(n,e,t){const r=this.proxy,i=yn(n)?n.includes(".")?P4(r,n):()=>r[n]:n.bind(r,r);let s;kt(e)?s=e:(s=e.handler,t=e);const o=Td(this),a=L4(i,s.bind(r),t);return o(),a}function P4(n,e){const t=e.split(".");return()=>{let r=n;for(let i=0;ie==="modelValue"||e==="model-value"?n.modelModifiers:n[`${e}Modifiers`]||n[`${di(e)}Modifiers`]||n[`${Io(e)}Modifiers`];function QD(n,e,...t){if(n.isUnmounted)return;const r=n.vnode.props||hn;let i=t;const s=e.startsWith("update:"),o=s&&jD(r,e.slice(7));o&&(o.trim&&(i=t.map(u=>yn(u)?u.trim():u)),o.number&&(i=t.map(bp)));let a,l=r[a=Zu(e)]||r[a=Zu(di(e))];!l&&s&&(l=r[a=Zu(Io(e))]),l&&Ni(l,n,6,i);const d=r[a+"Once"];if(d){if(!n.emitted)n.emitted={};else if(n.emitted[a])return;n.emitted[a]=!0,Ni(d,n,6,i)}}function F4(n,e,t=!1){const r=e.emitsCache,i=r.get(n);if(i!==void 0)return i;const s=n.emits;let o={},a=!1;if(!kt(n)){const l=d=>{const u=F4(d,e,!0);u&&(a=!0,Ln(o,u))};!t&&e.mixins.length&&e.mixins.forEach(l),n.extends&&l(n.extends),n.mixins&&n.mixins.forEach(l)}return!s&&!a?(cn(n)&&r.set(n,null),null):(vt(s)?s.forEach(l=>o[l]=null):Ln(o,s),cn(n)&&r.set(n,o),o)}function xh(n,e){return!n||!dh(e)?!1:(e=e.slice(2).replace(/Once$/,""),en(n,e[0].toLowerCase()+e.slice(1))||en(n,Io(e))||en(n,e))}function Rm(n){const{type:e,vnode:t,proxy:r,withProxy:i,propsOptions:[s],slots:o,attrs:a,emit:l,render:d,renderCache:u,props:m,data:f,setupState:g,ctx:h,inheritAttrs:v}=n,b=Sp(n);let _,y;try{if(t.shapeFlag&4){const x=i||r,A=x;_=Bi(d.call(A,x,u,m,g,f,h)),y=a}else{const x=e;_=Bi(x.length>1?x(m,{attrs:a,slots:o,emit:l}):x(m,null)),y=e.props?a:XD(a)}}catch(x){Bc.length=0,vh(x,n,1),_=W(ar)}let E=_;if(y&&v!==!1){const x=Object.keys(y),{shapeFlag:A}=E;x.length&&A&7&&(s&&x.some(Q1)&&(y=ZD(y,s)),E=Is(E,y,!1,!0))}return t.dirs&&(E=Is(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(t.dirs):t.dirs),t.transition&&Ao(E,t.transition),_=E,Sp(b),_}const XD=n=>{let e;for(const t in n)(t==="class"||t==="style"||dh(t))&&((e||(e={}))[t]=n[t]);return e},ZD=(n,e)=>{const t={};for(const r in n)(!Q1(r)||!(r.slice(9)in e))&&(t[r]=n[r]);return t};function JD(n,e,t){const{props:r,children:i,component:s}=n,{props:o,children:a,patchFlag:l}=e,d=s.emitsOptions;if(e.dirs||e.transition)return!0;if(t&&l>=0){if(l&1024)return!0;if(l&16)return r?qE(r,o,d):!!o;if(l&8){const u=e.dynamicProps;for(let m=0;mn.__isSuspense;function tL(n,e){e&&e.pendingBranch?vt(n)?e.effects.push(...n):e.effects.push(n):cD(n)}const je=Symbol.for("v-fgt"),Th=Symbol.for("v-txt"),ar=Symbol.for("v-cmt"),ep=Symbol.for("v-stc"),Bc=[];let Br=null;function T(n=!1){Bc.push(Br=n?null:[])}function nL(){Bc.pop(),Br=Bc[Bc.length-1]||null}let od=1;function YE(n){od+=n,n<0&&Br&&(Br.hasOnce=!0)}function U4(n){return n.dynamicChildren=od>0?Br||ll:null,nL(),od>0&&Br&&Br.push(n),n}function M(n,e,t,r,i,s){return U4(c(n,e,t,r,i,s,!0))}function Tt(n,e,t,r,i){return U4(W(n,e,t,r,i,!0))}function El(n){return n?n.__v_isVNode===!0:!1}function fo(n,e){return n.type===e.type&&n.key===e.key}const B4=({key:n})=>n??null,tp=({ref:n,ref_key:e,ref_for:t})=>(typeof n=="number"&&(n=""+n),n!=null?yn(n)||Gn(n)||kt(n)?{i:Wn,r:n,k:e,f:!!t}:n:null);function c(n,e=null,t=null,r=0,i=null,s=n===je?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:n,props:e,key:e&&B4(e),ref:e&&tp(e),scopeId:a4,slotScopeIds:null,children:t,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Wn};return a?(pv(l,t),s&128&&n.normalize(l)):t&&(l.shapeFlag|=yn(t)?8:16),od>0&&!o&&Br&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&Br.push(l),l}const W=rL;function rL(n,e=null,t=null,r=0,i=null,s=!1){if((!n||n===y4)&&(n=ar),El(n)){const a=Is(n,e,!0);return t&&pv(a,t),od>0&&!s&&Br&&(a.shapeFlag&6?Br[Br.indexOf(n)]=a:Br.push(a)),a.patchFlag=-2,a}if(pL(n)&&(n=n.__vccOpts),e){e=iL(e);let{class:a,style:l}=e;a&&!yn(a)&&(e.class=qe(a)),cn(l)&&(iv(l)&&!vt(l)&&(l=Ln({},l)),e.style=on(l))}const o=yn(n)?1:wp(n)?128:c4(n)?64:cn(n)?4:kt(n)?2:0;return c(n,e,t,r,i,o,s,!0)}function iL(n){return n?iv(n)||A4(n)?Ln({},n):n:null}function Is(n,e,t=!1,r=!1){const{props:i,ref:s,patchFlag:o,children:a,transition:l}=n,d=e?G4(i||{},e):i,u={__v_isVNode:!0,__v_skip:!0,type:n.type,props:d,key:d&&B4(d),ref:e&&e.ref?t&&s?vt(s)?s.concat(tp(e)):[s,tp(e)]:tp(e):s,scopeId:n.scopeId,slotScopeIds:n.slotScopeIds,children:a,target:n.target,targetStart:n.targetStart,targetAnchor:n.targetAnchor,staticCount:n.staticCount,shapeFlag:n.shapeFlag,patchFlag:e&&n.type!==je?o===-1?16:o|16:o,dynamicProps:n.dynamicProps,dynamicChildren:n.dynamicChildren,appContext:n.appContext,dirs:n.dirs,transition:l,component:n.component,suspense:n.suspense,ssContent:n.ssContent&&Is(n.ssContent),ssFallback:n.ssFallback&&Is(n.ssFallback),el:n.el,anchor:n.anchor,ctx:n.ctx,ce:n.ce};return l&&r&&Ao(u,l.clone(u)),u}function pt(n=" ",e=0){return W(Th,null,n,e)}function yo(n,e){const t=W(ep,null,n);return t.staticCount=e,t}function Y(n="",e=!1){return e?(T(),Tt(ar,null,n)):W(ar,null,n)}function Bi(n){return n==null||typeof n=="boolean"?W(ar):vt(n)?W(je,null,n.slice()):El(n)?oo(n):W(Th,null,String(n))}function oo(n){return n.el===null&&n.patchFlag!==-1||n.memo?n:Is(n)}function pv(n,e){let t=0;const{shapeFlag:r}=n;if(e==null)e=null;else if(vt(e))t=16;else if(typeof e=="object")if(r&65){const i=e.default;i&&(i._c&&(i._d=!1),pv(n,i()),i._c&&(i._d=!0));return}else{t=32;const i=e._;!i&&!A4(e)?e._ctx=Wn:i===3&&Wn&&(Wn.slots._===1?e._=1:(e._=2,n.patchFlag|=1024))}else kt(e)?(e={default:e,_ctx:Wn},t=32):(e=String(e),r&64?(t=16,e=[pt(e)]):t=8);n.children=e,n.shapeFlag|=t}function G4(...n){const e={};for(let t=0;tXn||Wn;let Cp,Vb;{const n=NM(),e=(t,r)=>{let i;return(i=n[t])||(i=n[t]=[]),i.push(r),s=>{i.length>1?i.forEach(o=>o(s)):i[0](s)}};Cp=e("__VUE_INSTANCE_SETTERS__",t=>Xn=t),Vb=e("__VUE_SSR_SETTERS__",t=>wh=t)}const Td=n=>{const e=Xn;return Cp(n),n.scope.on(),()=>{n.scope.off(),Cp(e)}},$E=()=>{Xn&&Xn.scope.off(),Cp(null)};function z4(n){return n.vnode.shapeFlag&4}let wh=!1;function lL(n,e=!1,t=!1){e&&Vb(e);const{props:r,children:i}=n.vnode,s=z4(n);PD(n,r,s,e),GD(n,i,t);const o=s?cL(n,e):void 0;return e&&Vb(!1),o}function cL(n,e){const t=n.type;n.accessCache=Object.create(null),n.proxy=new Proxy(n.ctx,RD);const{setup:r}=t;if(r){const i=n.setupContext=r.length>1?uL(n):null,s=Td(n);Oo();const o=Sd(r,n,0,[n.props,i]);if(Do(),s(),CM(o)){if(la(n)||g4(n),o.then($E,$E),e)return o.then(a=>{WE(n,a,e)}).catch(a=>{vh(a,n,0)});n.asyncDep=o}else WE(n,o,e)}else V4(n,e)}function WE(n,e,t){kt(e)?n.type.__ssrInlineRender?n.ssrRender=e:n.render=e:cn(e)&&(n.setupState=t4(e)),V4(n,t)}let KE;function V4(n,e,t){const r=n.type;if(!n.render){if(!e&&KE&&!r.render){const i=r.template||cv(n).template;if(i){const{isCustomElement:s,compilerOptions:o}=n.appContext.config,{delimiters:a,compilerOptions:l}=r,d=Ln(Ln({isCustomElement:s,delimiters:a},o),l);r.render=KE(i,d)}}n.render=r.render||Ki}{const i=Td(n);Oo();try{MD(n)}finally{Do(),i()}}}const dL={get(n,e){return cr(n,"get",""),n[e]}};function uL(n){const e=t=>{n.exposed=t||{}};return{attrs:new Proxy(n.attrs,dL),slots:n.slots,emit:n.emit,expose:e}}function Ch(n){return n.exposed?n.exposeProxy||(n.exposeProxy=new Proxy(t4(bh(n.exposed)),{get(e,t){if(t in e)return e[t];if(t in Uc)return Uc[t](n)},has(e,t){return t in e||t in Uc}})):n.proxy}function Hb(n,e=!0){return kt(n)?n.displayName||n.name:n.name||e&&n.__name}function pL(n){return kt(n)&&"__vccOpts"in n}const mt=(n,e)=>iD(n,e,wh);function mv(n,e,t){const r=arguments.length;return r===2?cn(e)&&!vt(e)?El(e)?W(n,null,[e]):W(n,e):W(n,null,e):(r>3?t=Array.prototype.slice.call(arguments,2):r===3&&El(t)&&(t=[t]),W(n,e,t))}const hL="3.5.10";/** +**/function Sd(n,e,t,r){try{return r?n(...r):n()}catch(i){vh(i,e,t)}}function Ni(n,e,t,r){if(kt(n)){const i=Sd(n,e,t,r);return i&&CM(i)&&i.catch(s=>{vh(s,e,t)}),i}if(vt(n)){const i=[];for(let s=0;s>>1,i=fr[r],s=id(i);s=id(t)?fr.push(n):fr.splice(lD(e),0,n),n.flags|=1,i4()}}function i4(){!rd&&!Lb&&(Lb=!0,ov=r4.then(o4))}function cD(n){vt(n)?pl.push(...n):io&&n.id===-1?io.splice(nl+1,0,n):n.flags&1||(pl.push(n),n.flags|=1),i4()}function DE(n,e,t=rd?Fi+1:0){for(;tid(t)-id(r));if(pl.length=0,io){io.push(...e);return}for(io=e,nl=0;nln.id==null?n.flags&2?-1:1/0:n.id;function o4(n){Lb=!1,rd=!0;try{for(Fi=0;Fi{r._d&&YE(-1);const s=Sp(e);let o;try{o=n(...i)}finally{Sp(s),r._d&&YE(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function F(n,e){if(Wn===null)return n;const t=Ch(Wn),r=n.dirs||(n.dirs=[]);for(let i=0;in.__isTeleport,Fc=n=>n&&(n.disabled||n.disabled===""),dD=n=>n&&(n.defer||n.defer===""),LE=n=>typeof SVGElement<"u"&&n instanceof SVGElement,PE=n=>typeof MathMLElement=="function"&&n instanceof MathMLElement,Pb=(n,e)=>{const t=n&&n.to;return yn(t)?e?e(t):null:t},uD={name:"Teleport",__isTeleport:!0,process(n,e,t,r,i,s,o,a,l,d){const{mc:u,pc:m,pbc:f,o:{insert:g,querySelector:h,createText:v,createComment:b}}=d,_=Fc(e.props);let{shapeFlag:y,children:E,dynamicChildren:x}=e;if(n==null){const A=e.el=v(""),w=e.anchor=v("");g(A,t,r),g(w,t,r);const N=(C,k)=>{y&16&&(i&&i.isCE&&(i.ce._teleportTarget=C),u(E,C,k,i,s,o,a,l))},L=()=>{const C=e.target=Pb(e.props,h),k=d4(C,e,v,g);C&&(o!=="svg"&&LE(C)?o="svg":o!=="mathml"&&PE(C)&&(o="mathml"),_||(N(C,k),Ju(e)))};_&&(N(t,w),Ju(e)),dD(e.props)?Yn(L,s):L()}else{e.el=n.el,e.targetStart=n.targetStart;const A=e.anchor=n.anchor,w=e.target=n.target,N=e.targetAnchor=n.targetAnchor,L=Fc(n.props),C=L?t:w,k=L?A:N;if(o==="svg"||LE(w)?o="svg":(o==="mathml"||PE(w))&&(o="mathml"),x?(f(n.dynamicChildren,x,C,i,s,o,a),uv(n,e,!0)):l||m(n,e,C,k,i,s,o,a,!1),_)L?e.props&&n.props&&e.props.to!==n.props.to&&(e.props.to=n.props.to):Xd(e,t,A,d,1);else if((e.props&&e.props.to)!==(n.props&&n.props.to)){const H=e.target=Pb(e.props,h);H&&Xd(e,H,null,d,0)}else L&&Xd(e,w,N,d,1);Ju(e)}},remove(n,e,t,{um:r,o:{remove:i}},s){const{shapeFlag:o,children:a,anchor:l,targetStart:d,targetAnchor:u,target:m,props:f}=n;if(m&&(i(d),i(u)),s&&i(l),o&16){const g=s||!Fc(f);for(let h=0;h{n.isMounted=!0}),jl(()=>{n.isUnmounting=!0}),n}const Wr=[Function,Array],p4={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Wr,onEnter:Wr,onAfterEnter:Wr,onEnterCancelled:Wr,onBeforeLeave:Wr,onLeave:Wr,onAfterLeave:Wr,onLeaveCancelled:Wr,onBeforeAppear:Wr,onAppear:Wr,onAfterAppear:Wr,onAppearCancelled:Wr},h4=n=>{const e=n.subTree;return e.component?h4(e.component):e},mD={name:"BaseTransition",props:p4,setup(n,{slots:e}){const t=hv(),r=u4();return()=>{const i=e.default&&lv(e.default(),!0);if(!i||!i.length)return;const s=m4(i),o=Xt(n),{mode:a}=o;if(r.isLeaving)return Tm(s);const l=FE(s);if(!l)return Tm(s);let d=sd(l,o,r,t,f=>d=f);l.type!==ar&&Ao(l,d);const u=t.subTree,m=u&&FE(u);if(m&&m.type!==ar&&!fo(l,m)&&h4(t).type!==ar){const f=sd(m,o,r,t);if(Ao(m,f),a==="out-in"&&l.type!==ar)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,t.job.flags&8||t.update(),delete f.afterLeave},Tm(s);a==="in-out"&&l.type!==ar&&(f.delayLeave=(g,h,v)=>{const b=f4(r,m);b[String(m.key)]=m,g[so]=()=>{h(),g[so]=void 0,delete d.delayedLeave},d.delayedLeave=v})}return s}}};function m4(n){let e=n[0];if(n.length>1){for(const t of n)if(t.type!==ar){e=t;break}}return e}const fD=mD;function f4(n,e){const{leavingVNodes:t}=n;let r=t.get(e.type);return r||(r=Object.create(null),t.set(e.type,r)),r}function sd(n,e,t,r,i){const{appear:s,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:d,onAfterEnter:u,onEnterCancelled:m,onBeforeLeave:f,onLeave:g,onAfterLeave:h,onLeaveCancelled:v,onBeforeAppear:b,onAppear:_,onAfterAppear:y,onAppearCancelled:E}=e,x=String(n.key),A=f4(t,n),w=(C,k)=>{C&&Ni(C,r,9,k)},N=(C,k)=>{const H=k[1];w(C,k),vt(C)?C.every(q=>q.length<=1)&&H():C.length<=1&&H()},L={mode:o,persisted:a,beforeEnter(C){let k=l;if(!t.isMounted)if(s)k=b||l;else return;C[so]&&C[so](!0);const H=A[x];H&&fo(n,H)&&H.el[so]&&H.el[so](),w(k,[C])},enter(C){let k=d,H=u,q=m;if(!t.isMounted)if(s)k=_||d,H=y||u,q=E||m;else return;let ie=!1;const D=C[Zd]=$=>{ie||(ie=!0,$?w(q,[C]):w(H,[C]),L.delayedLeave&&L.delayedLeave(),C[Zd]=void 0)};k?N(k,[C,D]):D()},leave(C,k){const H=String(n.key);if(C[Zd]&&C[Zd](!0),t.isUnmounting)return k();w(f,[C]);let q=!1;const ie=C[so]=D=>{q||(q=!0,k(),D?w(v,[C]):w(h,[C]),C[so]=void 0,A[H]===n&&delete A[H])};A[H]=n,g?N(g,[C,ie]):ie()},clone(C){const k=sd(C,e,t,r,i);return i&&i(k),k}};return L}function Tm(n){if(yh(n))return n=Is(n),n.children=null,n}function FE(n){if(!yh(n))return c4(n.type)&&n.children?m4(n.children):n;const{shapeFlag:e,children:t}=n;if(t){if(e&16)return t[0];if(e&32&&kt(t.default))return t.default()}}function Ao(n,e){n.shapeFlag&6&&n.component?(n.transition=e,Ao(n.component.subTree,e)):n.shapeFlag&128?(n.ssContent.transition=e.clone(n.ssContent),n.ssFallback.transition=e.clone(n.ssFallback)):n.transition=e}function lv(n,e=!1,t){let r=[],i=0;for(let s=0;s1)for(let s=0;sFb(h,e&&(vt(e)?e[v]:e),t,r,i));return}if(la(r)&&!i)return;const s=r.shapeFlag&4?Ch(r.component):r.el,o=i?null:s,{i:a,r:l}=n,d=e&&e.r,u=a.refs===hn?a.refs={}:a.refs,m=a.setupState,f=Xt(m),g=m===hn?()=>!1:h=>en(f,h);if(d!=null&&d!==l&&(yn(d)?(u[d]=null,g(d)&&(m[d]=null)):Gn(d)&&(d.value=null)),kt(l))Sd(l,a,12,[o,u]);else{const h=yn(l),v=Gn(l);if(h||v){const b=()=>{if(n.f){const _=h?g(l)?m[l]:u[l]:l.value;i?vt(_)&&X1(_,s):vt(_)?_.includes(s)||_.push(s):h?(u[l]=[s],g(l)&&(m[l]=u[l])):(l.value=[s],n.k&&(u[n.k]=l.value))}else h?(u[l]=o,g(l)&&(m[l]=o)):v&&(l.value=o,n.k&&(u[n.k]=o))};o?(b.id=-1,Yn(b,t)):b()}}}const la=n=>!!n.type.__asyncLoader,yh=n=>n.type.__isKeepAlive,gD={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(n,{slots:e}){const t=hv(),r=t.ctx;if(!r.renderer)return()=>{const y=e.default&&e.default();return y&&y.length===1?y[0]:y};const i=new Map,s=new Set;let o=null;const a=t.suspense,{renderer:{p:l,m:d,um:u,o:{createElement:m}}}=r,f=m("div");r.activate=(y,E,x,A,w)=>{const N=y.component;d(y,E,x,0,a),l(N.vnode,y,E,x,N,a,A,y.slotScopeIds,w),Yn(()=>{N.isDeactivated=!1,N.a&&dl(N.a);const L=y.props&&y.props.onVnodeMounted;L&&jr(L,N.parent,y)},a)},r.deactivate=y=>{const E=y.component;Tp(E.m),Tp(E.a),d(y,f,null,1,a),Yn(()=>{E.da&&dl(E.da);const x=y.props&&y.props.onVnodeUnmounted;x&&jr(x,E.parent,y),E.isDeactivated=!0},a)};function g(y){wm(y),u(y,t,a,!0)}function h(y){i.forEach((E,x)=>{const A=Hb(E.type);A&&!y(A)&&v(x)})}function v(y){const E=i.get(y);E&&(!o||!fo(E,o))?g(E):o&&wm(o),i.delete(y),s.delete(y)}Zn(()=>[n.include,n.exclude],([y,E])=>{y&&h(x=>Nc(y,x)),E&&h(x=>!Nc(E,x))},{flush:"post",deep:!0});let b=null;const _=()=>{b!=null&&(wp(t.subTree.type)?Yn(()=>{i.set(b,Jd(t.subTree))},t.subTree.suspense):i.set(b,Jd(t.subTree)))};return es(_),xd(_),jl(()=>{i.forEach(y=>{const{subTree:E,suspense:x}=t,A=Jd(E);if(y.type===A.type&&y.key===A.key){wm(A);const w=A.component.da;w&&Yn(w,x);return}g(y)})}),()=>{if(b=null,!e.default)return o=null;const y=e.default(),E=y[0];if(y.length>1)return o=null,y;if(!El(E)||!(E.shapeFlag&4)&&!(E.shapeFlag&128))return o=null,E;let x=Jd(E);if(x.type===ar)return o=null,x;const A=x.type,w=Hb(la(x)?x.type.__asyncResolved||{}:A),{include:N,exclude:L,max:C}=n;if(N&&(!w||!Nc(N,w))||L&&w&&Nc(L,w))return x.shapeFlag&=-257,o=x,E;const k=x.key==null?A:x.key,H=i.get(k);return x.el&&(x=Is(x),E.shapeFlag&128&&(E.ssContent=x)),b=k,H?(x.el=H.el,x.component=H.component,x.transition&&Ao(x,x.transition),x.shapeFlag|=512,s.delete(k),s.add(k)):(s.add(k),C&&s.size>parseInt(C,10)&&v(s.values().next().value)),x.shapeFlag|=256,o=x,wp(E.type)?E:x}}},_D=gD;function Nc(n,e){return vt(n)?n.some(t=>Nc(t,e)):yn(n)?n.split(",").includes(e):p5(n)?(n.lastIndex=0,n.test(e)):!1}function bD(n,e){_4(n,"a",e)}function vD(n,e){_4(n,"da",e)}function _4(n,e,t=Xn){const r=n.__wdc||(n.__wdc=()=>{let i=t;for(;i;){if(i.isDeactivated)return;i=i.parent}return n()});if(Eh(e,r,t),t){let i=t.parent;for(;i&&i.parent;)yh(i.parent.vnode)&&yD(r,e,t,i),i=i.parent}}function yD(n,e,t,r){const i=Eh(e,n,r,!0);b4(()=>{X1(r[e],i)},t)}function wm(n){n.shapeFlag&=-257,n.shapeFlag&=-513}function Jd(n){return n.shapeFlag&128?n.ssContent:n}function Eh(n,e,t=Xn,r=!1){if(t){const i=t[n]||(t[n]=[]),s=e.__weh||(e.__weh=(...o)=>{Oo();const a=Td(t),l=Ni(e,t,n,o);return a(),Do(),l});return r?i.unshift(s):i.push(s),s}}const Us=n=>(e,t=Xn)=>{(!wh||n==="sp")&&Eh(n,(...r)=>e(...r),t)},ED=Us("bm"),es=Us("m"),SD=Us("bu"),xd=Us("u"),jl=Us("bum"),b4=Us("um"),xD=Us("sp"),TD=Us("rtg"),wD=Us("rtc");function CD(n,e=Xn){Eh("ec",n,e)}const v4="components";function ht(n,e){return E4(v4,n,!0,e)||n}const y4=Symbol.for("v-ndc");function Sh(n){return yn(n)?E4(v4,n,!1)||n:n||y4}function E4(n,e,t=!0,r=!1){const i=Wn||Xn;if(i){const s=i.type;{const a=Hb(s,!1);if(a&&(a===e||a===di(e)||a===ph(di(e))))return s}const o=UE(i[n]||s[n],e)||UE(i.appContext[n],e);return!o&&r?s:o}}function UE(n,e){return n&&(n[e]||n[di(e)]||n[ph(di(e))])}function at(n,e,t,r){let i;const s=t,o=vt(n);if(o||yn(n)){const a=o&&ul(n);let l=!1;a&&(l=!oi(n),n=mh(n)),i=new Array(n.length);for(let d=0,u=n.length;de(a,l,void 0,s));else{const a=Object.keys(n);i=new Array(a.length);for(let l=0,d=a.length;lEl(e)?!(e.type===ar||e.type===je&&!S4(e.children)):!0)?n:null}function AD(n,e){const t={};for(const r in n)t[/[A-Z]/.test(r)?`on:${r}`:Zu(r)]=n[r];return t}const Ub=n=>n?z4(n)?Ch(n):Ub(n.parent):null,Uc=Ln(Object.create(null),{$:n=>n,$el:n=>n.vnode.el,$data:n=>n.data,$props:n=>n.props,$attrs:n=>n.attrs,$slots:n=>n.slots,$refs:n=>n.refs,$parent:n=>Ub(n.parent),$root:n=>Ub(n.root),$host:n=>n.ce,$emit:n=>n.emit,$options:n=>cv(n),$forceUpdate:n=>n.f||(n.f=()=>{av(n.update)}),$nextTick:n=>n.n||(n.n=We.bind(n.proxy)),$watch:n=>KD.bind(n)}),Cm=(n,e)=>n!==hn&&!n.__isScriptSetup&&en(n,e),RD={get({_:n},e){if(e==="__v_skip")return!0;const{ctx:t,setupState:r,data:i,props:s,accessCache:o,type:a,appContext:l}=n;let d;if(e[0]!=="$"){const g=o[e];if(g!==void 0)switch(g){case 1:return r[e];case 2:return i[e];case 4:return t[e];case 3:return s[e]}else{if(Cm(r,e))return o[e]=1,r[e];if(i!==hn&&en(i,e))return o[e]=2,i[e];if((d=n.propsOptions[0])&&en(d,e))return o[e]=3,s[e];if(t!==hn&&en(t,e))return o[e]=4,t[e];Bb&&(o[e]=0)}}const u=Uc[e];let m,f;if(u)return e==="$attrs"&&cr(n.attrs,"get",""),u(n);if((m=a.__cssModules)&&(m=m[e]))return m;if(t!==hn&&en(t,e))return o[e]=4,t[e];if(f=l.config.globalProperties,en(f,e))return f[e]},set({_:n},e,t){const{data:r,setupState:i,ctx:s}=n;return Cm(i,e)?(i[e]=t,!0):r!==hn&&en(r,e)?(r[e]=t,!0):en(n.props,e)||e[0]==="$"&&e.slice(1)in n?!1:(s[e]=t,!0)},has({_:{data:n,setupState:e,accessCache:t,ctx:r,appContext:i,propsOptions:s}},o){let a;return!!t[o]||n!==hn&&en(n,o)||Cm(e,o)||(a=s[0])&&en(a,o)||en(r,o)||en(Uc,o)||en(i.config.globalProperties,o)},defineProperty(n,e,t){return t.get!=null?n._.accessCache[e]=0:en(t,"value")&&this.set(n,e,t.value,null),Reflect.defineProperty(n,e,t)}};function BE(n){return vt(n)?n.reduce((e,t)=>(e[t]=null,e),{}):n}let Bb=!0;function MD(n){const e=cv(n),t=n.proxy,r=n.ctx;Bb=!1,e.beforeCreate&&GE(e.beforeCreate,n,"bc");const{data:i,computed:s,methods:o,watch:a,provide:l,inject:d,created:u,beforeMount:m,mounted:f,beforeUpdate:g,updated:h,activated:v,deactivated:b,beforeDestroy:_,beforeUnmount:y,destroyed:E,unmounted:x,render:A,renderTracked:w,renderTriggered:N,errorCaptured:L,serverPrefetch:C,expose:k,inheritAttrs:H,components:q,directives:ie,filters:D}=e;if(d&&ND(d,r,null),o)for(const B in o){const Z=o[B];kt(Z)&&(r[B]=Z.bind(t))}if(i){const B=i.call(t,t);cn(B)&&(n.data=yr(B))}if(Bb=!0,s)for(const B in s){const Z=s[B],ce=kt(Z)?Z.bind(t,t):kt(Z.get)?Z.get.bind(t,t):Ki,ue=!kt(Z)&&kt(Z.set)?Z.set.bind(t):Ki,xe=mt({get:ce,set:ue});Object.defineProperty(r,B,{enumerable:!0,configurable:!0,get:()=>xe.value,set:Ce=>xe.value=Ce})}if(a)for(const B in a)x4(a[B],r,t,B);if(l){const B=kt(l)?l.call(t):l;Reflect.ownKeys(B).forEach(Z=>{ml(Z,B[Z])})}u&&GE(u,n,"c");function K(B,Z){vt(Z)?Z.forEach(ce=>B(ce.bind(t))):Z&&B(Z.bind(t))}if(K(ED,m),K(es,f),K(SD,g),K(xd,h),K(bD,v),K(vD,b),K(CD,L),K(wD,w),K(TD,N),K(jl,y),K(b4,x),K(xD,C),vt(k))if(k.length){const B=n.exposed||(n.exposed={});k.forEach(Z=>{Object.defineProperty(B,Z,{get:()=>t[Z],set:ce=>t[Z]=ce})})}else n.exposed||(n.exposed={});A&&n.render===Ki&&(n.render=A),H!=null&&(n.inheritAttrs=H),q&&(n.components=q),ie&&(n.directives=ie),C&&g4(n)}function ND(n,e,t=Ki){vt(n)&&(n=Gb(n));for(const r in n){const i=n[r];let s;cn(i)?"default"in i?s=Gr(i.from||r,i.default,!0):s=Gr(i.from||r):s=Gr(i),Gn(s)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:o=>s.value=o}):e[r]=s}}function GE(n,e,t){Ni(vt(n)?n.map(r=>r.bind(e.proxy)):n.bind(e.proxy),e,t)}function x4(n,e,t,r){let i=r.includes(".")?P4(t,r):()=>t[r];if(yn(n)){const s=e[n];kt(s)&&Zn(i,s)}else if(kt(n))Zn(i,n.bind(t));else if(cn(n))if(vt(n))n.forEach(s=>x4(s,e,t,r));else{const s=kt(n.handler)?n.handler.bind(t):e[n.handler];kt(s)&&Zn(i,s,n)}}function cv(n){const e=n.type,{mixins:t,extends:r}=e,{mixins:i,optionsCache:s,config:{optionMergeStrategies:o}}=n.appContext,a=s.get(e);let l;return a?l=a:!i.length&&!t&&!r?l=e:(l={},i.length&&i.forEach(d=>xp(l,d,o,!0)),xp(l,e,o)),cn(e)&&s.set(e,l),l}function xp(n,e,t,r=!1){const{mixins:i,extends:s}=e;s&&xp(n,s,t,!0),i&&i.forEach(o=>xp(n,o,t,!0));for(const o in e)if(!(r&&o==="expose")){const a=kD[o]||t&&t[o];n[o]=a?a(n[o],e[o]):e[o]}return n}const kD={data:zE,props:VE,emits:VE,methods:kc,computed:kc,beforeCreate:pr,created:pr,beforeMount:pr,mounted:pr,beforeUpdate:pr,updated:pr,beforeDestroy:pr,beforeUnmount:pr,destroyed:pr,unmounted:pr,activated:pr,deactivated:pr,errorCaptured:pr,serverPrefetch:pr,components:kc,directives:kc,watch:OD,provide:zE,inject:ID};function zE(n,e){return e?n?function(){return Ln(kt(n)?n.call(this,this):n,kt(e)?e.call(this,this):e)}:e:n}function ID(n,e){return kc(Gb(n),Gb(e))}function Gb(n){if(vt(n)){const e={};for(let t=0;t1)return t&&kt(e)?e.call(r&&r.proxy):e}}const w4={},C4=()=>Object.create(w4),A4=n=>Object.getPrototypeOf(n)===w4;function PD(n,e,t,r=!1){const i={},s=C4();n.propsDefaults=Object.create(null),R4(n,e,i,s);for(const o in n.propsOptions[0])o in i||(i[o]=void 0);t?n.props=r?i:ZM(i):n.type.props?n.props=i:n.props=s,n.attrs=s}function FD(n,e,t,r){const{props:i,attrs:s,vnode:{patchFlag:o}}=n,a=Xt(i),[l]=n.propsOptions;let d=!1;if((r||o>0)&&!(o&16)){if(o&8){const u=n.vnode.dynamicProps;for(let m=0;m{l=!0;const[f,g]=M4(m,e,!0);Ln(o,f),g&&a.push(...g)};!t&&e.mixins.length&&e.mixins.forEach(u),n.extends&&u(n.extends),n.mixins&&n.mixins.forEach(u)}if(!s&&!l)return cn(n)&&r.set(n,ll),ll;if(vt(s))for(let u=0;un[0]==="_"||n==="$stable",dv=n=>vt(n)?n.map(Bi):[Bi(n)],BD=(n,e,t)=>{if(e._n)return e;const r=Ge((...i)=>dv(e(...i)),t);return r._c=!1,r},k4=(n,e,t)=>{const r=n._ctx;for(const i in n){if(N4(i))continue;const s=n[i];if(kt(s))e[i]=BD(i,s,r);else if(s!=null){const o=dv(s);e[i]=()=>o}}},I4=(n,e)=>{const t=dv(e);n.slots.default=()=>t},O4=(n,e,t)=>{for(const r in e)(t||r!=="_")&&(n[r]=e[r])},GD=(n,e,t)=>{const r=n.slots=C4();if(n.vnode.shapeFlag&32){const i=e._;i?(O4(r,e,t),t&&MM(r,"_",i,!0)):k4(e,r)}else e&&I4(n,e)},zD=(n,e,t)=>{const{vnode:r,slots:i}=n;let s=!0,o=hn;if(r.shapeFlag&32){const a=e._;a?t&&a===1?s=!1:O4(i,e,t):(s=!e.$stable,k4(e,i)),o=e}else e&&(I4(n,e),o={default:1});if(s)for(const a in i)!N4(a)&&o[a]==null&&delete i[a]},Yn=tL;function VD(n){return HD(n)}function HD(n,e){const t=NM();t.__VUE__=!0;const{insert:r,remove:i,patchProp:s,createElement:o,createText:a,createComment:l,setText:d,setElementText:u,parentNode:m,nextSibling:f,setScopeId:g=Ki,insertStaticContent:h}=n,v=(V,G,oe,ge=null,Ee=null,Te=null,fe=void 0,Ue=null,Pe=!!G.dynamicChildren)=>{if(V===G)return;V&&!fo(V,G)&&(ge=te(V),Ce(V,Ee,Te,!0),V=null),G.patchFlag===-2&&(Pe=!1,G.dynamicChildren=null);const{type:Re,ref:U,shapeFlag:I}=G;switch(Re){case Th:b(V,G,oe,ge);break;case ar:_(V,G,oe,ge);break;case ep:V==null&&y(G,oe,ge,fe);break;case je:q(V,G,oe,ge,Ee,Te,fe,Ue,Pe);break;default:I&1?A(V,G,oe,ge,Ee,Te,fe,Ue,Pe):I&6?ie(V,G,oe,ge,Ee,Te,fe,Ue,Pe):(I&64||I&128)&&Re.process(V,G,oe,ge,Ee,Te,fe,Ue,Pe,Oe)}U!=null&&Ee&&Fb(U,V&&V.ref,Te,G||V,!G)},b=(V,G,oe,ge)=>{if(V==null)r(G.el=a(G.children),oe,ge);else{const Ee=G.el=V.el;G.children!==V.children&&d(Ee,G.children)}},_=(V,G,oe,ge)=>{V==null?r(G.el=l(G.children||""),oe,ge):G.el=V.el},y=(V,G,oe,ge)=>{[V.el,V.anchor]=h(V.children,G,oe,ge,V.el,V.anchor)},E=({el:V,anchor:G},oe,ge)=>{let Ee;for(;V&&V!==G;)Ee=f(V),r(V,oe,ge),V=Ee;r(G,oe,ge)},x=({el:V,anchor:G})=>{let oe;for(;V&&V!==G;)oe=f(V),i(V),V=oe;i(G)},A=(V,G,oe,ge,Ee,Te,fe,Ue,Pe)=>{G.type==="svg"?fe="svg":G.type==="math"&&(fe="mathml"),V==null?w(G,oe,ge,Ee,Te,fe,Ue,Pe):C(V,G,Ee,Te,fe,Ue,Pe)},w=(V,G,oe,ge,Ee,Te,fe,Ue)=>{let Pe,Re;const{props:U,shapeFlag:I,transition:ee,dirs:we}=V;if(Pe=V.el=o(V.type,Te,U&&U.is,U),I&8?u(Pe,V.children):I&16&&L(V.children,Pe,null,ge,Ee,Am(V,Te),fe,Ue),we&&Bo(V,null,ge,"created"),N(Pe,V,V.scopeId,fe,ge),U){for(const pe in U)pe!=="value"&&!Pc(pe)&&s(Pe,pe,null,U[pe],Te,ge);"value"in U&&s(Pe,"value",null,U.value,Te),(Re=U.onVnodeBeforeMount)&&jr(Re,ge,V)}we&&Bo(V,null,ge,"beforeMount");const ne=qD(Ee,ee);ne&&ee.beforeEnter(Pe),r(Pe,G,oe),((Re=U&&U.onVnodeMounted)||ne||we)&&Yn(()=>{Re&&jr(Re,ge,V),ne&&ee.enter(Pe),we&&Bo(V,null,ge,"mounted")},Ee)},N=(V,G,oe,ge,Ee)=>{if(oe&&g(V,oe),ge)for(let Te=0;Te{for(let Re=Pe;Re{const Ue=G.el=V.el;let{patchFlag:Pe,dynamicChildren:Re,dirs:U}=G;Pe|=V.patchFlag&16;const I=V.props||hn,ee=G.props||hn;let we;if(oe&&Go(oe,!1),(we=ee.onVnodeBeforeUpdate)&&jr(we,oe,G,V),U&&Bo(G,V,oe,"beforeUpdate"),oe&&Go(oe,!0),(I.innerHTML&&ee.innerHTML==null||I.textContent&&ee.textContent==null)&&u(Ue,""),Re?k(V.dynamicChildren,Re,Ue,oe,ge,Am(G,Ee),Te):fe||Z(V,G,Ue,null,oe,ge,Am(G,Ee),Te,!1),Pe>0){if(Pe&16)H(Ue,I,ee,oe,Ee);else if(Pe&2&&I.class!==ee.class&&s(Ue,"class",null,ee.class,Ee),Pe&4&&s(Ue,"style",I.style,ee.style,Ee),Pe&8){const ne=G.dynamicProps;for(let pe=0;pe{we&&jr(we,oe,G,V),U&&Bo(G,V,oe,"updated")},ge)},k=(V,G,oe,ge,Ee,Te,fe)=>{for(let Ue=0;Ue{if(G!==oe){if(G!==hn)for(const Te in G)!Pc(Te)&&!(Te in oe)&&s(V,Te,G[Te],null,Ee,ge);for(const Te in oe){if(Pc(Te))continue;const fe=oe[Te],Ue=G[Te];fe!==Ue&&Te!=="value"&&s(V,Te,Ue,fe,Ee,ge)}"value"in oe&&s(V,"value",G.value,oe.value,Ee)}},q=(V,G,oe,ge,Ee,Te,fe,Ue,Pe)=>{const Re=G.el=V?V.el:a(""),U=G.anchor=V?V.anchor:a("");let{patchFlag:I,dynamicChildren:ee,slotScopeIds:we}=G;we&&(Ue=Ue?Ue.concat(we):we),V==null?(r(Re,oe,ge),r(U,oe,ge),L(G.children||[],oe,U,Ee,Te,fe,Ue,Pe)):I>0&&I&64&&ee&&V.dynamicChildren?(k(V.dynamicChildren,ee,oe,Ee,Te,fe,Ue),(G.key!=null||Ee&&G===Ee.subTree)&&uv(V,G,!0)):Z(V,G,oe,U,Ee,Te,fe,Ue,Pe)},ie=(V,G,oe,ge,Ee,Te,fe,Ue,Pe)=>{G.slotScopeIds=Ue,V==null?G.shapeFlag&512?Ee.ctx.activate(G,oe,ge,fe,Pe):D(G,oe,ge,Ee,Te,fe,Pe):$(V,G,Pe)},D=(V,G,oe,ge,Ee,Te,fe)=>{const Ue=V.component=aL(V,ge,Ee);if(yh(V)&&(Ue.ctx.renderer=Oe),lL(Ue,!1,fe),Ue.asyncDep){if(Ee&&Ee.registerDep(Ue,K,fe),!V.el){const Pe=Ue.subTree=W(ar);_(null,Pe,G,oe)}}else K(Ue,V,G,oe,Ee,Te,fe)},$=(V,G,oe)=>{const ge=G.component=V.component;if(JD(V,G,oe))if(ge.asyncDep&&!ge.asyncResolved){B(ge,G,oe);return}else ge.next=G,ge.update();else G.el=V.el,ge.vnode=G},K=(V,G,oe,ge,Ee,Te,fe)=>{const Ue=()=>{if(V.isMounted){let{next:I,bu:ee,u:we,parent:ne,vnode:pe}=V;{const wt=D4(V);if(wt){I&&(I.el=pe.el,B(V,I,fe)),wt.asyncDep.then(()=>{V.isUnmounted||Ue()});return}}let De=I,Le;Go(V,!1),I?(I.el=pe.el,B(V,I,fe)):I=pe,ee&&dl(ee),(Le=I.props&&I.props.onVnodeBeforeUpdate)&&jr(Le,ne,I,pe),Go(V,!0);const Ve=Rm(V),ot=V.subTree;V.subTree=Ve,v(ot,Ve,m(ot.el),te(ot),V,Ee,Te),I.el=Ve.el,De===null&&eL(V,Ve.el),we&&Yn(we,Ee),(Le=I.props&&I.props.onVnodeUpdated)&&Yn(()=>jr(Le,ne,I,pe),Ee)}else{let I;const{el:ee,props:we}=G,{bm:ne,m:pe,parent:De,root:Le,type:Ve}=V,ot=la(G);if(Go(V,!1),ne&&dl(ne),!ot&&(I=we&&we.onVnodeBeforeMount)&&jr(I,De,G),Go(V,!0),ee&&le){const wt=()=>{V.subTree=Rm(V),le(ee,V.subTree,V,Ee,null)};ot&&Ve.__asyncHydrate?Ve.__asyncHydrate(ee,V,wt):wt()}else{Le.ce&&Le.ce._injectChildStyle(Ve);const wt=V.subTree=Rm(V);v(null,wt,oe,ge,V,Ee,Te),G.el=wt.el}if(pe&&Yn(pe,Ee),!ot&&(I=we&&we.onVnodeMounted)){const wt=G;Yn(()=>jr(I,De,wt),Ee)}(G.shapeFlag&256||De&&la(De.vnode)&&De.vnode.shapeFlag&256)&&V.a&&Yn(V.a,Ee),V.isMounted=!0,G=oe=ge=null}};V.scope.on();const Pe=V.effect=new PM(Ue);V.scope.off();const Re=V.update=Pe.run.bind(Pe),U=V.job=Pe.runIfDirty.bind(Pe);U.i=V,U.id=V.uid,Pe.scheduler=()=>av(U),Go(V,!0),Re()},B=(V,G,oe)=>{G.component=V;const ge=V.vnode.props;V.vnode=G,V.next=null,FD(V,G.props,ge,oe),zD(V,G.children,oe),Oo(),DE(V),Do()},Z=(V,G,oe,ge,Ee,Te,fe,Ue,Pe=!1)=>{const Re=V&&V.children,U=V?V.shapeFlag:0,I=G.children,{patchFlag:ee,shapeFlag:we}=G;if(ee>0){if(ee&128){ue(Re,I,oe,ge,Ee,Te,fe,Ue,Pe);return}else if(ee&256){ce(Re,I,oe,ge,Ee,Te,fe,Ue,Pe);return}}we&8?(U&16&&ze(Re,Ee,Te),I!==Re&&u(oe,I)):U&16?we&16?ue(Re,I,oe,ge,Ee,Te,fe,Ue,Pe):ze(Re,Ee,Te,!0):(U&8&&u(oe,""),we&16&&L(I,oe,ge,Ee,Te,fe,Ue,Pe))},ce=(V,G,oe,ge,Ee,Te,fe,Ue,Pe)=>{V=V||ll,G=G||ll;const Re=V.length,U=G.length,I=Math.min(Re,U);let ee;for(ee=0;eeU?ze(V,Ee,Te,!0,!1,I):L(G,oe,ge,Ee,Te,fe,Ue,Pe,I)},ue=(V,G,oe,ge,Ee,Te,fe,Ue,Pe)=>{let Re=0;const U=G.length;let I=V.length-1,ee=U-1;for(;Re<=I&&Re<=ee;){const we=V[Re],ne=G[Re]=Pe?oo(G[Re]):Bi(G[Re]);if(fo(we,ne))v(we,ne,oe,null,Ee,Te,fe,Ue,Pe);else break;Re++}for(;Re<=I&&Re<=ee;){const we=V[I],ne=G[ee]=Pe?oo(G[ee]):Bi(G[ee]);if(fo(we,ne))v(we,ne,oe,null,Ee,Te,fe,Ue,Pe);else break;I--,ee--}if(Re>I){if(Re<=ee){const we=ee+1,ne=weee)for(;Re<=I;)Ce(V[Re],Ee,Te,!0),Re++;else{const we=Re,ne=Re,pe=new Map;for(Re=ne;Re<=ee;Re++){const ft=G[Re]=Pe?oo(G[Re]):Bi(G[Re]);ft.key!=null&&pe.set(ft.key,Re)}let De,Le=0;const Ve=ee-ne+1;let ot=!1,wt=0;const $e=new Array(Ve);for(Re=0;Re=Ve){Ce(ft,Ee,Te,!0);continue}let gt;if(ft.key!=null)gt=pe.get(ft.key);else for(De=ne;De<=ee;De++)if($e[De-ne]===0&&fo(ft,G[De])){gt=De;break}gt===void 0?Ce(ft,Ee,Te,!0):($e[gt-ne]=Re+1,gt>=wt?wt=gt:ot=!0,v(ft,G[gt],oe,null,Ee,Te,fe,Ue,Pe),Le++)}const Kt=ot?YD($e):ll;for(De=Kt.length-1,Re=Ve-1;Re>=0;Re--){const ft=ne+Re,gt=G[ft],et=ft+1{const{el:Te,type:fe,transition:Ue,children:Pe,shapeFlag:Re}=V;if(Re&6){xe(V.component.subTree,G,oe,ge);return}if(Re&128){V.suspense.move(G,oe,ge);return}if(Re&64){fe.move(V,G,oe,Oe);return}if(fe===je){r(Te,G,oe);for(let I=0;IUe.enter(Te),Ee);else{const{leave:I,delayLeave:ee,afterLeave:we}=Ue,ne=()=>r(Te,G,oe),pe=()=>{I(Te,()=>{ne(),we&&we()})};ee?ee(Te,ne,pe):pe()}else r(Te,G,oe)},Ce=(V,G,oe,ge=!1,Ee=!1)=>{const{type:Te,props:fe,ref:Ue,children:Pe,dynamicChildren:Re,shapeFlag:U,patchFlag:I,dirs:ee,cacheIndex:we}=V;if(I===-2&&(Ee=!1),Ue!=null&&Fb(Ue,null,oe,V,!0),we!=null&&(G.renderCache[we]=void 0),U&256){G.ctx.deactivate(V);return}const ne=U&1&&ee,pe=!la(V);let De;if(pe&&(De=fe&&fe.onVnodeBeforeUnmount)&&jr(De,G,V),U&6)Fe(V.component,oe,ge);else{if(U&128){V.suspense.unmount(oe,ge);return}ne&&Bo(V,null,G,"beforeUnmount"),U&64?V.type.remove(V,G,oe,Oe,ge):Re&&!Re.hasOnce&&(Te!==je||I>0&&I&64)?ze(Re,G,oe,!1,!0):(Te===je&&I&384||!Ee&&U&16)&&ze(Pe,G,oe),ge&&me(V)}(pe&&(De=fe&&fe.onVnodeUnmounted)||ne)&&Yn(()=>{De&&jr(De,G,V),ne&&Bo(V,null,G,"unmounted")},oe)},me=V=>{const{type:G,el:oe,anchor:ge,transition:Ee}=V;if(G===je){Ae(oe,ge);return}if(G===ep){x(V);return}const Te=()=>{i(oe),Ee&&!Ee.persisted&&Ee.afterLeave&&Ee.afterLeave()};if(V.shapeFlag&1&&Ee&&!Ee.persisted){const{leave:fe,delayLeave:Ue}=Ee,Pe=()=>fe(oe,Te);Ue?Ue(V.el,Te,Pe):Pe()}else Te()},Ae=(V,G)=>{let oe;for(;V!==G;)oe=f(V),i(V),V=oe;i(G)},Fe=(V,G,oe)=>{const{bum:ge,scope:Ee,job:Te,subTree:fe,um:Ue,m:Pe,a:Re}=V;Tp(Pe),Tp(Re),ge&&dl(ge),Ee.stop(),Te&&(Te.flags|=8,Ce(fe,V,G,oe)),Ue&&Yn(Ue,G),Yn(()=>{V.isUnmounted=!0},G),G&&G.pendingBranch&&!G.isUnmounted&&V.asyncDep&&!V.asyncResolved&&V.suspenseId===G.pendingId&&(G.deps--,G.deps===0&&G.resolve())},ze=(V,G,oe,ge=!1,Ee=!1,Te=0)=>{for(let fe=Te;fe{if(V.shapeFlag&6)return te(V.component.subTree);if(V.shapeFlag&128)return V.suspense.next();const G=f(V.anchor||V.el),oe=G&&G[l4];return oe?f(oe):G};let ye=!1;const Se=(V,G,oe)=>{V==null?G._vnode&&Ce(G._vnode,null,null,!0):v(G._vnode||null,V,G,null,null,null,oe),G._vnode=V,ye||(ye=!0,DE(),s4(),ye=!1)},Oe={p:v,um:Ce,m:xe,r:me,mt:D,mc:L,pc:Z,pbc:k,n:te,o:n};let Ye,le;return{render:Se,hydrate:Ye,createApp:LD(Se,Ye)}}function Am({type:n,props:e},t){return t==="svg"&&n==="foreignObject"||t==="mathml"&&n==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:t}function Go({effect:n,job:e},t){t?(n.flags|=32,e.flags|=4):(n.flags&=-33,e.flags&=-5)}function qD(n,e){return(!n||n&&!n.pendingBranch)&&e&&!e.persisted}function uv(n,e,t=!1){const r=n.children,i=e.children;if(vt(r)&&vt(i))for(let s=0;s>1,n[t[a]]0&&(e[r]=t[s-1]),t[s]=r)}}for(s=t.length,o=t[s-1];s-- >0;)t[s]=o,o=e[o];return t}function D4(n){const e=n.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:D4(e)}function Tp(n){if(n)for(let e=0;eGr($D);function Zn(n,e,t){return L4(n,e,t)}function L4(n,e,t=hn){const{immediate:r,deep:i,flush:s,once:o}=t,a=Ln({},t);let l;if(wh)if(s==="sync"){const f=WD();l=f.__watcherHandles||(f.__watcherHandles=[])}else if(!e||r)a.once=!0;else{const f=()=>{};return f.stop=Ki,f.resume=Ki,f.pause=Ki,f}const d=Xn;a.call=(f,g,h)=>Ni(f,d,g,h);let u=!1;s==="post"?a.scheduler=f=>{Yn(f,d&&d.suspense)}:s!=="sync"&&(u=!0,a.scheduler=(f,g)=>{g?f():av(f)}),a.augmentJob=f=>{e&&(f.flags|=4),u&&(f.flags|=2,d&&(f.id=d.uid,f.i=d))};const m=oD(n,e,a);return l&&l.push(m),m}function KD(n,e,t){const r=this.proxy,i=yn(n)?n.includes(".")?P4(r,n):()=>r[n]:n.bind(r,r);let s;kt(e)?s=e:(s=e.handler,t=e);const o=Td(this),a=L4(i,s.bind(r),t);return o(),a}function P4(n,e){const t=e.split(".");return()=>{let r=n;for(let i=0;ie==="modelValue"||e==="model-value"?n.modelModifiers:n[`${e}Modifiers`]||n[`${di(e)}Modifiers`]||n[`${Io(e)}Modifiers`];function QD(n,e,...t){if(n.isUnmounted)return;const r=n.vnode.props||hn;let i=t;const s=e.startsWith("update:"),o=s&&jD(r,e.slice(7));o&&(o.trim&&(i=t.map(u=>yn(u)?u.trim():u)),o.number&&(i=t.map(bp)));let a,l=r[a=Zu(e)]||r[a=Zu(di(e))];!l&&s&&(l=r[a=Zu(Io(e))]),l&&Ni(l,n,6,i);const d=r[a+"Once"];if(d){if(!n.emitted)n.emitted={};else if(n.emitted[a])return;n.emitted[a]=!0,Ni(d,n,6,i)}}function F4(n,e,t=!1){const r=e.emitsCache,i=r.get(n);if(i!==void 0)return i;const s=n.emits;let o={},a=!1;if(!kt(n)){const l=d=>{const u=F4(d,e,!0);u&&(a=!0,Ln(o,u))};!t&&e.mixins.length&&e.mixins.forEach(l),n.extends&&l(n.extends),n.mixins&&n.mixins.forEach(l)}return!s&&!a?(cn(n)&&r.set(n,null),null):(vt(s)?s.forEach(l=>o[l]=null):Ln(o,s),cn(n)&&r.set(n,o),o)}function xh(n,e){return!n||!dh(e)?!1:(e=e.slice(2).replace(/Once$/,""),en(n,e[0].toLowerCase()+e.slice(1))||en(n,Io(e))||en(n,e))}function Rm(n){const{type:e,vnode:t,proxy:r,withProxy:i,propsOptions:[s],slots:o,attrs:a,emit:l,render:d,renderCache:u,props:m,data:f,setupState:g,ctx:h,inheritAttrs:v}=n,b=Sp(n);let _,y;try{if(t.shapeFlag&4){const x=i||r,A=x;_=Bi(d.call(A,x,u,m,g,f,h)),y=a}else{const x=e;_=Bi(x.length>1?x(m,{attrs:a,slots:o,emit:l}):x(m,null)),y=e.props?a:XD(a)}}catch(x){Bc.length=0,vh(x,n,1),_=W(ar)}let E=_;if(y&&v!==!1){const x=Object.keys(y),{shapeFlag:A}=E;x.length&&A&7&&(s&&x.some(Q1)&&(y=ZD(y,s)),E=Is(E,y,!1,!0))}return t.dirs&&(E=Is(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(t.dirs):t.dirs),t.transition&&Ao(E,t.transition),_=E,Sp(b),_}const XD=n=>{let e;for(const t in n)(t==="class"||t==="style"||dh(t))&&((e||(e={}))[t]=n[t]);return e},ZD=(n,e)=>{const t={};for(const r in n)(!Q1(r)||!(r.slice(9)in e))&&(t[r]=n[r]);return t};function JD(n,e,t){const{props:r,children:i,component:s}=n,{props:o,children:a,patchFlag:l}=e,d=s.emitsOptions;if(e.dirs||e.transition)return!0;if(t&&l>=0){if(l&1024)return!0;if(l&16)return r?qE(r,o,d):!!o;if(l&8){const u=e.dynamicProps;for(let m=0;mn.__isSuspense;function tL(n,e){e&&e.pendingBranch?vt(n)?e.effects.push(...n):e.effects.push(n):cD(n)}const je=Symbol.for("v-fgt"),Th=Symbol.for("v-txt"),ar=Symbol.for("v-cmt"),ep=Symbol.for("v-stc"),Bc=[];let Br=null;function T(n=!1){Bc.push(Br=n?null:[])}function nL(){Bc.pop(),Br=Bc[Bc.length-1]||null}let od=1;function YE(n){od+=n,n<0&&Br&&(Br.hasOnce=!0)}function U4(n){return n.dynamicChildren=od>0?Br||ll:null,nL(),od>0&&Br&&Br.push(n),n}function M(n,e,t,r,i,s){return U4(c(n,e,t,r,i,s,!0))}function Tt(n,e,t,r,i){return U4(W(n,e,t,r,i,!0))}function El(n){return n?n.__v_isVNode===!0:!1}function fo(n,e){return n.type===e.type&&n.key===e.key}const B4=({key:n})=>n??null,tp=({ref:n,ref_key:e,ref_for:t})=>(typeof n=="number"&&(n=""+n),n!=null?yn(n)||Gn(n)||kt(n)?{i:Wn,r:n,k:e,f:!!t}:n:null);function c(n,e=null,t=null,r=0,i=null,s=n===je?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:n,props:e,key:e&&B4(e),ref:e&&tp(e),scopeId:a4,slotScopeIds:null,children:t,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Wn};return a?(pv(l,t),s&128&&n.normalize(l)):t&&(l.shapeFlag|=yn(t)?8:16),od>0&&!o&&Br&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&Br.push(l),l}const W=rL;function rL(n,e=null,t=null,r=0,i=null,s=!1){if((!n||n===y4)&&(n=ar),El(n)){const a=Is(n,e,!0);return t&&pv(a,t),od>0&&!s&&Br&&(a.shapeFlag&6?Br[Br.indexOf(n)]=a:Br.push(a)),a.patchFlag=-2,a}if(pL(n)&&(n=n.__vccOpts),e){e=iL(e);let{class:a,style:l}=e;a&&!yn(a)&&(e.class=qe(a)),cn(l)&&(iv(l)&&!vt(l)&&(l=Ln({},l)),e.style=on(l))}const o=yn(n)?1:wp(n)?128:c4(n)?64:cn(n)?4:kt(n)?2:0;return c(n,e,t,r,i,o,s,!0)}function iL(n){return n?iv(n)||A4(n)?Ln({},n):n:null}function Is(n,e,t=!1,r=!1){const{props:i,ref:s,patchFlag:o,children:a,transition:l}=n,d=e?G4(i||{},e):i,u={__v_isVNode:!0,__v_skip:!0,type:n.type,props:d,key:d&&B4(d),ref:e&&e.ref?t&&s?vt(s)?s.concat(tp(e)):[s,tp(e)]:tp(e):s,scopeId:n.scopeId,slotScopeIds:n.slotScopeIds,children:a,target:n.target,targetStart:n.targetStart,targetAnchor:n.targetAnchor,staticCount:n.staticCount,shapeFlag:n.shapeFlag,patchFlag:e&&n.type!==je?o===-1?16:o|16:o,dynamicProps:n.dynamicProps,dynamicChildren:n.dynamicChildren,appContext:n.appContext,dirs:n.dirs,transition:l,component:n.component,suspense:n.suspense,ssContent:n.ssContent&&Is(n.ssContent),ssFallback:n.ssFallback&&Is(n.ssFallback),el:n.el,anchor:n.anchor,ctx:n.ctx,ce:n.ce};return l&&r&&Ao(u,l.clone(u)),u}function pt(n=" ",e=0){return W(Th,null,n,e)}function yo(n,e){const t=W(ep,null,n);return t.staticCount=e,t}function Y(n="",e=!1){return e?(T(),Tt(ar,null,n)):W(ar,null,n)}function Bi(n){return n==null||typeof n=="boolean"?W(ar):vt(n)?W(je,null,n.slice()):El(n)?oo(n):W(Th,null,String(n))}function oo(n){return n.el===null&&n.patchFlag!==-1||n.memo?n:Is(n)}function pv(n,e){let t=0;const{shapeFlag:r}=n;if(e==null)e=null;else if(vt(e))t=16;else if(typeof e=="object")if(r&65){const i=e.default;i&&(i._c&&(i._d=!1),pv(n,i()),i._c&&(i._d=!0));return}else{t=32;const i=e._;!i&&!A4(e)?e._ctx=Wn:i===3&&Wn&&(Wn.slots._===1?e._=1:(e._=2,n.patchFlag|=1024))}else kt(e)?(e={default:e,_ctx:Wn},t=32):(e=String(e),r&64?(t=16,e=[pt(e)]):t=8);n.children=e,n.shapeFlag|=t}function G4(...n){const e={};for(let t=0;tXn||Wn;let Cp,Vb;{const n=NM(),e=(t,r)=>{let i;return(i=n[t])||(i=n[t]=[]),i.push(r),s=>{i.length>1?i.forEach(o=>o(s)):i[0](s)}};Cp=e("__VUE_INSTANCE_SETTERS__",t=>Xn=t),Vb=e("__VUE_SSR_SETTERS__",t=>wh=t)}const Td=n=>{const e=Xn;return Cp(n),n.scope.on(),()=>{n.scope.off(),Cp(e)}},$E=()=>{Xn&&Xn.scope.off(),Cp(null)};function z4(n){return n.vnode.shapeFlag&4}let wh=!1;function lL(n,e=!1,t=!1){e&&Vb(e);const{props:r,children:i}=n.vnode,s=z4(n);PD(n,r,s,e),GD(n,i,t);const o=s?cL(n,e):void 0;return e&&Vb(!1),o}function cL(n,e){const t=n.type;n.accessCache=Object.create(null),n.proxy=new Proxy(n.ctx,RD);const{setup:r}=t;if(r){const i=n.setupContext=r.length>1?uL(n):null,s=Td(n);Oo();const o=Sd(r,n,0,[n.props,i]);if(Do(),s(),CM(o)){if(la(n)||g4(n),o.then($E,$E),e)return o.then(a=>{WE(n,a,e)}).catch(a=>{vh(a,n,0)});n.asyncDep=o}else WE(n,o,e)}else V4(n,e)}function WE(n,e,t){kt(e)?n.type.__ssrInlineRender?n.ssrRender=e:n.render=e:cn(e)&&(n.setupState=t4(e)),V4(n,t)}let KE;function V4(n,e,t){const r=n.type;if(!n.render){if(!e&&KE&&!r.render){const i=r.template||cv(n).template;if(i){const{isCustomElement:s,compilerOptions:o}=n.appContext.config,{delimiters:a,compilerOptions:l}=r,d=Ln(Ln({isCustomElement:s,delimiters:a},o),l);r.render=KE(i,d)}}n.render=r.render||Ki}{const i=Td(n);Oo();try{MD(n)}finally{Do(),i()}}}const dL={get(n,e){return cr(n,"get",""),n[e]}};function uL(n){const e=t=>{n.exposed=t||{}};return{attrs:new Proxy(n.attrs,dL),slots:n.slots,emit:n.emit,expose:e}}function Ch(n){return n.exposed?n.exposeProxy||(n.exposeProxy=new Proxy(t4(bh(n.exposed)),{get(e,t){if(t in e)return e[t];if(t in Uc)return Uc[t](n)},has(e,t){return t in e||t in Uc}})):n.proxy}function Hb(n,e=!0){return kt(n)?n.displayName||n.name:n.name||e&&n.__name}function pL(n){return kt(n)&&"__vccOpts"in n}const mt=(n,e)=>iD(n,e,wh);function mv(n,e,t){const r=arguments.length;return r===2?cn(e)&&!vt(e)?El(e)?W(n,null,[e]):W(n,e):W(n,null,e):(r>3?t=Array.prototype.slice.call(arguments,2):r===3&&El(t)&&(t=[t]),W(n,e,t))}const hL="3.5.10";/** * @vue/runtime-dom v3.5.10 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let qb;const jE=typeof window<"u"&&window.trustedTypes;if(jE)try{qb=jE.createPolicy("vue",{createHTML:n=>n})}catch{}const H4=qb?n=>qb.createHTML(n):n=>n,mL="http://www.w3.org/2000/svg",fL="http://www.w3.org/1998/Math/MathML",vs=typeof document<"u"?document:null,QE=vs&&vs.createElement("template"),gL={insert:(n,e,t)=>{e.insertBefore(n,t||null)},remove:n=>{const e=n.parentNode;e&&e.removeChild(n)},createElement:(n,e,t,r)=>{const i=e==="svg"?vs.createElementNS(mL,n):e==="mathml"?vs.createElementNS(fL,n):t?vs.createElement(n,{is:t}):vs.createElement(n);return n==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:n=>vs.createTextNode(n),createComment:n=>vs.createComment(n),setText:(n,e)=>{n.nodeValue=e},setElementText:(n,e)=>{n.textContent=e},parentNode:n=>n.parentNode,nextSibling:n=>n.nextSibling,querySelector:n=>vs.querySelector(n),setScopeId(n,e){n.setAttribute(e,"")},insertStaticContent(n,e,t,r,i,s){const o=t?t.previousSibling:e.lastChild;if(i&&(i===s||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),t),!(i===s||!(i=i.nextSibling)););else{QE.innerHTML=H4(r==="svg"?`${n}`:r==="mathml"?`${n}`:n);const a=QE.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,t)}return[o?o.nextSibling:e.firstChild,t?t.previousSibling:e.lastChild]}},$s="transition",mc="animation",Sl=Symbol("_vtc"),q4={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},Y4=Ln({},p4,q4),_L=n=>(n.displayName="Transition",n.props=Y4,n),Cs=_L((n,{slots:e})=>mv(fD,$4(n),e)),zo=(n,e=[])=>{vt(n)?n.forEach(t=>t(...e)):n&&n(...e)},XE=n=>n?vt(n)?n.some(e=>e.length>1):n.length>1:!1;function $4(n){const e={};for(const q in n)q in q4||(e[q]=n[q]);if(n.css===!1)return e;const{name:t="v",type:r,duration:i,enterFromClass:s=`${t}-enter-from`,enterActiveClass:o=`${t}-enter-active`,enterToClass:a=`${t}-enter-to`,appearFromClass:l=s,appearActiveClass:d=o,appearToClass:u=a,leaveFromClass:m=`${t}-leave-from`,leaveActiveClass:f=`${t}-leave-active`,leaveToClass:g=`${t}-leave-to`}=n,h=bL(i),v=h&&h[0],b=h&&h[1],{onBeforeEnter:_,onEnter:y,onEnterCancelled:E,onLeave:x,onLeaveCancelled:A,onBeforeAppear:w=_,onAppear:N=y,onAppearCancelled:L=E}=e,C=(q,ie,D)=>{ro(q,ie?u:a),ro(q,ie?d:o),D&&D()},k=(q,ie)=>{q._isLeaving=!1,ro(q,m),ro(q,g),ro(q,f),ie&&ie()},H=q=>(ie,D)=>{const $=q?N:y,K=()=>C(ie,q,D);zo($,[ie,K]),ZE(()=>{ro(ie,q?l:s),_s(ie,q?u:a),XE($)||JE(ie,r,v,K)})};return Ln(e,{onBeforeEnter(q){zo(_,[q]),_s(q,s),_s(q,o)},onBeforeAppear(q){zo(w,[q]),_s(q,l),_s(q,d)},onEnter:H(!1),onAppear:H(!0),onLeave(q,ie){q._isLeaving=!0;const D=()=>k(q,ie);_s(q,m),_s(q,f),K4(),ZE(()=>{q._isLeaving&&(ro(q,m),_s(q,g),XE(x)||JE(q,r,b,D))}),zo(x,[q,D])},onEnterCancelled(q){C(q,!1),zo(E,[q])},onAppearCancelled(q){C(q,!0),zo(L,[q])},onLeaveCancelled(q){k(q),zo(A,[q])}})}function bL(n){if(n==null)return null;if(cn(n))return[Mm(n.enter),Mm(n.leave)];{const e=Mm(n);return[e,e]}}function Mm(n){return g5(n)}function _s(n,e){e.split(/\s+/).forEach(t=>t&&n.classList.add(t)),(n[Sl]||(n[Sl]=new Set)).add(e)}function ro(n,e){e.split(/\s+/).forEach(r=>r&&n.classList.remove(r));const t=n[Sl];t&&(t.delete(e),t.size||(n[Sl]=void 0))}function ZE(n){requestAnimationFrame(()=>{requestAnimationFrame(n)})}let vL=0;function JE(n,e,t,r){const i=n._endId=++vL,s=()=>{i===n._endId&&r()};if(t!=null)return setTimeout(s,t);const{type:o,timeout:a,propCount:l}=W4(n,e);if(!o)return r();const d=o+"end";let u=0;const m=()=>{n.removeEventListener(d,f),s()},f=g=>{g.target===n&&++u>=l&&m()};setTimeout(()=>{u(t[h]||"").split(", "),i=r(`${$s}Delay`),s=r(`${$s}Duration`),o=eS(i,s),a=r(`${mc}Delay`),l=r(`${mc}Duration`),d=eS(a,l);let u=null,m=0,f=0;e===$s?o>0&&(u=$s,m=o,f=s.length):e===mc?d>0&&(u=mc,m=d,f=l.length):(m=Math.max(o,d),u=m>0?o>d?$s:mc:null,f=u?u===$s?s.length:l.length:0);const g=u===$s&&/\b(transform|all)(,|$)/.test(r(`${$s}Property`).toString());return{type:u,timeout:m,propCount:f,hasTransform:g}}function eS(n,e){for(;n.lengthtS(t)+tS(n[r])))}function tS(n){return n==="auto"?0:Number(n.slice(0,-1).replace(",","."))*1e3}function K4(){return document.body.offsetHeight}function yL(n,e,t){const r=n[Sl];r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?n.removeAttribute("class"):t?n.setAttribute("class",e):n.className=e}const Ap=Symbol("_vod"),j4=Symbol("_vsh"),Dt={beforeMount(n,{value:e},{transition:t}){n[Ap]=n.style.display==="none"?"":n.style.display,t&&e?t.beforeEnter(n):fc(n,e)},mounted(n,{value:e},{transition:t}){t&&e&&t.enter(n)},updated(n,{value:e,oldValue:t},{transition:r}){!e!=!t&&(r?e?(r.beforeEnter(n),fc(n,!0),r.enter(n)):r.leave(n,()=>{fc(n,!1)}):fc(n,e))},beforeUnmount(n,{value:e}){fc(n,e)}};function fc(n,e){n.style.display=e?n[Ap]:"none",n[j4]=!e}const EL=Symbol(""),SL=/(^|;)\s*display\s*:/;function xL(n,e,t){const r=n.style,i=yn(t);let s=!1;if(t&&!i){if(e)if(yn(e))for(const o of e.split(";")){const a=o.slice(0,o.indexOf(":")).trim();t[a]==null&&np(r,a,"")}else for(const o in e)t[o]==null&&np(r,o,"");for(const o in t)o==="display"&&(s=!0),np(r,o,t[o])}else if(i){if(e!==t){const o=r[EL];o&&(t+=";"+o),r.cssText=t,s=SL.test(t)}}else e&&n.removeAttribute("style");Ap in n&&(n[Ap]=s?r.display:"",n[j4]&&(r.display="none"))}const nS=/\s*!important$/;function np(n,e,t){if(vt(t))t.forEach(r=>np(n,e,r));else if(t==null&&(t=""),e.startsWith("--"))n.setProperty(e,t);else{const r=TL(n,e);nS.test(t)?n.setProperty(Io(r),t.replace(nS,""),"important"):n[r]=t}}const rS=["Webkit","Moz","ms"],Nm={};function TL(n,e){const t=Nm[e];if(t)return t;let r=di(e);if(r!=="filter"&&r in n)return Nm[e]=r;r=ph(r);for(let i=0;ikm||(RL.then(()=>km=0),km=Date.now());function NL(n,e){const t=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=t.attached)return;Ni(kL(r,t.value),e,5,[r])};return t.value=n,t.attached=ML(),t}function kL(n,e){if(vt(e)){const t=n.stopImmediatePropagation;return n.stopImmediatePropagation=()=>{t.call(n),n._stopped=!0},e.map(r=>i=>!i._stopped&&r&&r(i))}else return e}const cS=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)>96&&n.charCodeAt(2)<123,IL=(n,e,t,r,i,s)=>{const o=i==="svg";e==="class"?yL(n,r,o):e==="style"?xL(n,t,r):dh(e)?Q1(e)||CL(n,e,t,r,s):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):OL(n,e,r,o))?(oS(n,e,r),!n.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&sS(n,e,r,o,s,e!=="value")):n._isVueCE&&(/[A-Z]/.test(e)||!yn(r))?oS(n,di(e),r):(e==="true-value"?n._trueValue=r:e==="false-value"&&(n._falseValue=r),sS(n,e,r,o))};function OL(n,e,t,r){if(r)return!!(e==="innerHTML"||e==="textContent"||e in n&&cS(e)&&kt(t));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&n.tagName==="INPUT"||e==="type"&&n.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=n.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return cS(e)&&yn(t)?!1:e in n}const Q4=new WeakMap,X4=new WeakMap,Rp=Symbol("_moveCb"),dS=Symbol("_enterCb"),DL=n=>(delete n.props.mode,n),LL=DL({name:"TransitionGroup",props:Ln({},Y4,{tag:String,moveClass:String}),setup(n,{slots:e}){const t=hv(),r=u4();let i,s;return xd(()=>{if(!i.length)return;const o=n.moveClass||`${n.name||"v"}-move`;if(!BL(i[0].el,t.vnode.el,o))return;i.forEach(PL),i.forEach(FL);const a=i.filter(UL);K4(),a.forEach(l=>{const d=l.el,u=d.style;_s(d,o),u.transform=u.webkitTransform=u.transitionDuration="";const m=d[Rp]=f=>{f&&f.target!==d||(!f||/transform$/.test(f.propertyName))&&(d.removeEventListener("transitionend",m),d[Rp]=null,ro(d,o))};d.addEventListener("transitionend",m)})}),()=>{const o=Xt(n),a=$4(o);let l=o.tag||je;if(i=[],s)for(let d=0;d{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),t.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const s=e.nodeType===1?e:e.parentNode;s.appendChild(r);const{hasTransform:o}=W4(r);return s.removeChild(r),o}const Ro=n=>{const e=n.props["onUpdate:modelValue"]||!1;return vt(e)?t=>dl(e,t):e};function GL(n){n.target.composing=!0}function uS(n){const e=n.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const ai=Symbol("_assign"),_e={created(n,{modifiers:{lazy:e,trim:t,number:r}},i){n[ai]=Ro(i);const s=r||i.props&&i.props.type==="number";Ss(n,e?"change":"input",o=>{if(o.target.composing)return;let a=n.value;t&&(a=a.trim()),s&&(a=bp(a)),n[ai](a)}),t&&Ss(n,"change",()=>{n.value=n.value.trim()}),e||(Ss(n,"compositionstart",GL),Ss(n,"compositionend",uS),Ss(n,"change",uS))},mounted(n,{value:e}){n.value=e??""},beforeUpdate(n,{value:e,oldValue:t,modifiers:{lazy:r,trim:i,number:s}},o){if(n[ai]=Ro(o),n.composing)return;const a=(s||n.type==="number")&&!/^0\d/.test(n.value)?bp(n.value):n.value,l=e??"";a!==l&&(document.activeElement===n&&n.type!=="range"&&(r&&e===t||i&&n.value.trim()===l)||(n.value=l))}},tt={deep:!0,created(n,e,t){n[ai]=Ro(t),Ss(n,"change",()=>{const r=n._modelValue,i=xl(n),s=n.checked,o=n[ai];if(vt(r)){const a=J1(r,i),l=a!==-1;if(s&&!l)o(r.concat(i));else if(!s&&l){const d=[...r];d.splice(a,1),o(d)}}else if(Wl(r)){const a=new Set(r);s?a.add(i):a.delete(i),o(a)}else o(Z4(n,s))})},mounted:pS,beforeUpdate(n,e,t){n[ai]=Ro(t),pS(n,e,t)}};function pS(n,{value:e},t){n._modelValue=e;let r;vt(e)?r=J1(e,t.props.value)>-1:Wl(e)?r=e.has(t.props.value):r=ga(e,Z4(n,!0)),n.checked!==r&&(n.checked=r)}const zL={created(n,{value:e},t){n.checked=ga(e,t.props.value),n[ai]=Ro(t),Ss(n,"change",()=>{n[ai](xl(n))})},beforeUpdate(n,{value:e,oldValue:t},r){n[ai]=Ro(r),e!==t&&(n.checked=ga(e,r.props.value))}},Qt={deep:!0,created(n,{value:e,modifiers:{number:t}},r){const i=Wl(e);Ss(n,"change",()=>{const s=Array.prototype.filter.call(n.options,o=>o.selected).map(o=>t?bp(xl(o)):xl(o));n[ai](n.multiple?i?new Set(s):s:s[0]),n._assigning=!0,We(()=>{n._assigning=!1})}),n[ai]=Ro(r)},mounted(n,{value:e}){hS(n,e)},beforeUpdate(n,e,t){n[ai]=Ro(t)},updated(n,{value:e}){n._assigning||hS(n,e)}};function hS(n,e){const t=n.multiple,r=vt(e);if(!(t&&!r&&!Wl(e))){for(let i=0,s=n.options.length;iString(d)===String(a)):o.selected=J1(e,a)>-1}else o.selected=e.has(a);else if(ga(xl(o),e)){n.selectedIndex!==i&&(n.selectedIndex=i);return}}!t&&n.selectedIndex!==-1&&(n.selectedIndex=-1)}}function xl(n){return"_value"in n?n._value:n.value}function Z4(n,e){const t=e?"_trueValue":"_falseValue";return t in n?n[t]:e}const VL=["ctrl","shift","alt","meta"],HL={stop:n=>n.stopPropagation(),prevent:n=>n.preventDefault(),self:n=>n.target!==n.currentTarget,ctrl:n=>!n.ctrlKey,shift:n=>!n.shiftKey,alt:n=>!n.altKey,meta:n=>!n.metaKey,left:n=>"button"in n&&n.button!==0,middle:n=>"button"in n&&n.button!==1,right:n=>"button"in n&&n.button!==2,exact:(n,e)=>VL.some(t=>n[`${t}Key`]&&!e.includes(t))},J=(n,e)=>{const t=n._withMods||(n._withMods={}),r=e.join(".");return t[r]||(t[r]=(i,...s)=>{for(let o=0;o{const t=n._withKeys||(n._withKeys={}),r=e.join(".");return t[r]||(t[r]=i=>{if(!("key"in i))return;const s=Io(i.key);if(e.some(o=>o===s||qL[o]===s))return n(i)})},YL=Ln({patchProp:IL},gL);let mS;function $L(){return mS||(mS=VD(YL))}const WL=(...n)=>{const e=$L().createApp(...n),{mount:t}=e;return e.mount=r=>{const i=jL(r);if(!i)return;const s=e._component;!kt(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=t(i,!1,KL(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},e};function KL(n){if(n instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&n instanceof MathMLElement)return"mathml"}function jL(n){return yn(n)?document.querySelector(n):n}function QL(){return J4().__VUE_DEVTOOLS_GLOBAL_HOOK__}function J4(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const XL=typeof Proxy=="function",ZL="devtools-plugin:setup",JL="plugin:settings:set";let Da,Yb;function e6(){var n;return Da!==void 0||(typeof window<"u"&&window.performance?(Da=!0,Yb=window.performance):typeof globalThis<"u"&&(!((n=globalThis.perf_hooks)===null||n===void 0)&&n.performance)?(Da=!0,Yb=globalThis.perf_hooks.performance):Da=!1),Da}function t6(){return e6()?Yb.now():Date.now()}class n6{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const r={};if(e.settings)for(const o in e.settings){const a=e.settings[o];r[o]=a.defaultValue}const i=`__vue-devtools-plugin-settings__${e.id}`;let s=Object.assign({},r);try{const o=localStorage.getItem(i),a=JSON.parse(o);Object.assign(s,a)}catch{}this.fallbacks={getSettings(){return s},setSettings(o){try{localStorage.setItem(i,JSON.stringify(o))}catch{}s=o},now(){return t6()}},t&&t.on(JL,(o,a)=>{o===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(o,a)=>this.target?this.target.on[a]:(...l)=>{this.onQueue.push({method:a,args:l})}}),this.proxiedTarget=new Proxy({},{get:(o,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...l)=>(this.targetQueue.push({method:a,args:l,resolve:()=>{}}),this.fallbacks[a](...l)):(...l)=>new Promise(d=>{this.targetQueue.push({method:a,args:l,resolve:d})})})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function r6(n,e){const t=n,r=J4(),i=QL(),s=XL&&t.enableEarlyProxy;if(i&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))i.emit(ZL,n,e);else{const o=s?new n6(t,i):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:t,setupFn:e,proxy:o}),o&&e(o.proxiedTarget)}}/*! +**/let qb;const jE=typeof window<"u"&&window.trustedTypes;if(jE)try{qb=jE.createPolicy("vue",{createHTML:n=>n})}catch{}const H4=qb?n=>qb.createHTML(n):n=>n,mL="http://www.w3.org/2000/svg",fL="http://www.w3.org/1998/Math/MathML",ys=typeof document<"u"?document:null,QE=ys&&ys.createElement("template"),gL={insert:(n,e,t)=>{e.insertBefore(n,t||null)},remove:n=>{const e=n.parentNode;e&&e.removeChild(n)},createElement:(n,e,t,r)=>{const i=e==="svg"?ys.createElementNS(mL,n):e==="mathml"?ys.createElementNS(fL,n):t?ys.createElement(n,{is:t}):ys.createElement(n);return n==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:n=>ys.createTextNode(n),createComment:n=>ys.createComment(n),setText:(n,e)=>{n.nodeValue=e},setElementText:(n,e)=>{n.textContent=e},parentNode:n=>n.parentNode,nextSibling:n=>n.nextSibling,querySelector:n=>ys.querySelector(n),setScopeId(n,e){n.setAttribute(e,"")},insertStaticContent(n,e,t,r,i,s){const o=t?t.previousSibling:e.lastChild;if(i&&(i===s||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),t),!(i===s||!(i=i.nextSibling)););else{QE.innerHTML=H4(r==="svg"?`${n}`:r==="mathml"?`${n}`:n);const a=QE.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,t)}return[o?o.nextSibling:e.firstChild,t?t.previousSibling:e.lastChild]}},$s="transition",mc="animation",Sl=Symbol("_vtc"),q4={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},Y4=Ln({},p4,q4),_L=n=>(n.displayName="Transition",n.props=Y4,n),ji=_L((n,{slots:e})=>mv(fD,$4(n),e)),zo=(n,e=[])=>{vt(n)?n.forEach(t=>t(...e)):n&&n(...e)},XE=n=>n?vt(n)?n.some(e=>e.length>1):n.length>1:!1;function $4(n){const e={};for(const q in n)q in q4||(e[q]=n[q]);if(n.css===!1)return e;const{name:t="v",type:r,duration:i,enterFromClass:s=`${t}-enter-from`,enterActiveClass:o=`${t}-enter-active`,enterToClass:a=`${t}-enter-to`,appearFromClass:l=s,appearActiveClass:d=o,appearToClass:u=a,leaveFromClass:m=`${t}-leave-from`,leaveActiveClass:f=`${t}-leave-active`,leaveToClass:g=`${t}-leave-to`}=n,h=bL(i),v=h&&h[0],b=h&&h[1],{onBeforeEnter:_,onEnter:y,onEnterCancelled:E,onLeave:x,onLeaveCancelled:A,onBeforeAppear:w=_,onAppear:N=y,onAppearCancelled:L=E}=e,C=(q,ie,D)=>{ro(q,ie?u:a),ro(q,ie?d:o),D&&D()},k=(q,ie)=>{q._isLeaving=!1,ro(q,m),ro(q,g),ro(q,f),ie&&ie()},H=q=>(ie,D)=>{const $=q?N:y,K=()=>C(ie,q,D);zo($,[ie,K]),ZE(()=>{ro(ie,q?l:s),bs(ie,q?u:a),XE($)||JE(ie,r,v,K)})};return Ln(e,{onBeforeEnter(q){zo(_,[q]),bs(q,s),bs(q,o)},onBeforeAppear(q){zo(w,[q]),bs(q,l),bs(q,d)},onEnter:H(!1),onAppear:H(!0),onLeave(q,ie){q._isLeaving=!0;const D=()=>k(q,ie);bs(q,m),bs(q,f),K4(),ZE(()=>{q._isLeaving&&(ro(q,m),bs(q,g),XE(x)||JE(q,r,b,D))}),zo(x,[q,D])},onEnterCancelled(q){C(q,!1),zo(E,[q])},onAppearCancelled(q){C(q,!0),zo(L,[q])},onLeaveCancelled(q){k(q),zo(A,[q])}})}function bL(n){if(n==null)return null;if(cn(n))return[Mm(n.enter),Mm(n.leave)];{const e=Mm(n);return[e,e]}}function Mm(n){return g5(n)}function bs(n,e){e.split(/\s+/).forEach(t=>t&&n.classList.add(t)),(n[Sl]||(n[Sl]=new Set)).add(e)}function ro(n,e){e.split(/\s+/).forEach(r=>r&&n.classList.remove(r));const t=n[Sl];t&&(t.delete(e),t.size||(n[Sl]=void 0))}function ZE(n){requestAnimationFrame(()=>{requestAnimationFrame(n)})}let vL=0;function JE(n,e,t,r){const i=n._endId=++vL,s=()=>{i===n._endId&&r()};if(t!=null)return setTimeout(s,t);const{type:o,timeout:a,propCount:l}=W4(n,e);if(!o)return r();const d=o+"end";let u=0;const m=()=>{n.removeEventListener(d,f),s()},f=g=>{g.target===n&&++u>=l&&m()};setTimeout(()=>{u(t[h]||"").split(", "),i=r(`${$s}Delay`),s=r(`${$s}Duration`),o=eS(i,s),a=r(`${mc}Delay`),l=r(`${mc}Duration`),d=eS(a,l);let u=null,m=0,f=0;e===$s?o>0&&(u=$s,m=o,f=s.length):e===mc?d>0&&(u=mc,m=d,f=l.length):(m=Math.max(o,d),u=m>0?o>d?$s:mc:null,f=u?u===$s?s.length:l.length:0);const g=u===$s&&/\b(transform|all)(,|$)/.test(r(`${$s}Property`).toString());return{type:u,timeout:m,propCount:f,hasTransform:g}}function eS(n,e){for(;n.lengthtS(t)+tS(n[r])))}function tS(n){return n==="auto"?0:Number(n.slice(0,-1).replace(",","."))*1e3}function K4(){return document.body.offsetHeight}function yL(n,e,t){const r=n[Sl];r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?n.removeAttribute("class"):t?n.setAttribute("class",e):n.className=e}const Ap=Symbol("_vod"),j4=Symbol("_vsh"),Dt={beforeMount(n,{value:e},{transition:t}){n[Ap]=n.style.display==="none"?"":n.style.display,t&&e?t.beforeEnter(n):fc(n,e)},mounted(n,{value:e},{transition:t}){t&&e&&t.enter(n)},updated(n,{value:e,oldValue:t},{transition:r}){!e!=!t&&(r?e?(r.beforeEnter(n),fc(n,!0),r.enter(n)):r.leave(n,()=>{fc(n,!1)}):fc(n,e))},beforeUnmount(n,{value:e}){fc(n,e)}};function fc(n,e){n.style.display=e?n[Ap]:"none",n[j4]=!e}const EL=Symbol(""),SL=/(^|;)\s*display\s*:/;function xL(n,e,t){const r=n.style,i=yn(t);let s=!1;if(t&&!i){if(e)if(yn(e))for(const o of e.split(";")){const a=o.slice(0,o.indexOf(":")).trim();t[a]==null&&np(r,a,"")}else for(const o in e)t[o]==null&&np(r,o,"");for(const o in t)o==="display"&&(s=!0),np(r,o,t[o])}else if(i){if(e!==t){const o=r[EL];o&&(t+=";"+o),r.cssText=t,s=SL.test(t)}}else e&&n.removeAttribute("style");Ap in n&&(n[Ap]=s?r.display:"",n[j4]&&(r.display="none"))}const nS=/\s*!important$/;function np(n,e,t){if(vt(t))t.forEach(r=>np(n,e,r));else if(t==null&&(t=""),e.startsWith("--"))n.setProperty(e,t);else{const r=TL(n,e);nS.test(t)?n.setProperty(Io(r),t.replace(nS,""),"important"):n[r]=t}}const rS=["Webkit","Moz","ms"],Nm={};function TL(n,e){const t=Nm[e];if(t)return t;let r=di(e);if(r!=="filter"&&r in n)return Nm[e]=r;r=ph(r);for(let i=0;ikm||(RL.then(()=>km=0),km=Date.now());function NL(n,e){const t=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=t.attached)return;Ni(kL(r,t.value),e,5,[r])};return t.value=n,t.attached=ML(),t}function kL(n,e){if(vt(e)){const t=n.stopImmediatePropagation;return n.stopImmediatePropagation=()=>{t.call(n),n._stopped=!0},e.map(r=>i=>!i._stopped&&r&&r(i))}else return e}const cS=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)>96&&n.charCodeAt(2)<123,IL=(n,e,t,r,i,s)=>{const o=i==="svg";e==="class"?yL(n,r,o):e==="style"?xL(n,t,r):dh(e)?Q1(e)||CL(n,e,t,r,s):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):OL(n,e,r,o))?(oS(n,e,r),!n.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&sS(n,e,r,o,s,e!=="value")):n._isVueCE&&(/[A-Z]/.test(e)||!yn(r))?oS(n,di(e),r):(e==="true-value"?n._trueValue=r:e==="false-value"&&(n._falseValue=r),sS(n,e,r,o))};function OL(n,e,t,r){if(r)return!!(e==="innerHTML"||e==="textContent"||e in n&&cS(e)&&kt(t));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&n.tagName==="INPUT"||e==="type"&&n.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=n.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return cS(e)&&yn(t)?!1:e in n}const Q4=new WeakMap,X4=new WeakMap,Rp=Symbol("_moveCb"),dS=Symbol("_enterCb"),DL=n=>(delete n.props.mode,n),LL=DL({name:"TransitionGroup",props:Ln({},Y4,{tag:String,moveClass:String}),setup(n,{slots:e}){const t=hv(),r=u4();let i,s;return xd(()=>{if(!i.length)return;const o=n.moveClass||`${n.name||"v"}-move`;if(!BL(i[0].el,t.vnode.el,o))return;i.forEach(PL),i.forEach(FL);const a=i.filter(UL);K4(),a.forEach(l=>{const d=l.el,u=d.style;bs(d,o),u.transform=u.webkitTransform=u.transitionDuration="";const m=d[Rp]=f=>{f&&f.target!==d||(!f||/transform$/.test(f.propertyName))&&(d.removeEventListener("transitionend",m),d[Rp]=null,ro(d,o))};d.addEventListener("transitionend",m)})}),()=>{const o=Xt(n),a=$4(o);let l=o.tag||je;if(i=[],s)for(let d=0;d{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),t.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const s=e.nodeType===1?e:e.parentNode;s.appendChild(r);const{hasTransform:o}=W4(r);return s.removeChild(r),o}const Ro=n=>{const e=n.props["onUpdate:modelValue"]||!1;return vt(e)?t=>dl(e,t):e};function GL(n){n.target.composing=!0}function uS(n){const e=n.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const ai=Symbol("_assign"),_e={created(n,{modifiers:{lazy:e,trim:t,number:r}},i){n[ai]=Ro(i);const s=r||i.props&&i.props.type==="number";xs(n,e?"change":"input",o=>{if(o.target.composing)return;let a=n.value;t&&(a=a.trim()),s&&(a=bp(a)),n[ai](a)}),t&&xs(n,"change",()=>{n.value=n.value.trim()}),e||(xs(n,"compositionstart",GL),xs(n,"compositionend",uS),xs(n,"change",uS))},mounted(n,{value:e}){n.value=e??""},beforeUpdate(n,{value:e,oldValue:t,modifiers:{lazy:r,trim:i,number:s}},o){if(n[ai]=Ro(o),n.composing)return;const a=(s||n.type==="number")&&!/^0\d/.test(n.value)?bp(n.value):n.value,l=e??"";a!==l&&(document.activeElement===n&&n.type!=="range"&&(r&&e===t||i&&n.value.trim()===l)||(n.value=l))}},tt={deep:!0,created(n,e,t){n[ai]=Ro(t),xs(n,"change",()=>{const r=n._modelValue,i=xl(n),s=n.checked,o=n[ai];if(vt(r)){const a=J1(r,i),l=a!==-1;if(s&&!l)o(r.concat(i));else if(!s&&l){const d=[...r];d.splice(a,1),o(d)}}else if(Wl(r)){const a=new Set(r);s?a.add(i):a.delete(i),o(a)}else o(Z4(n,s))})},mounted:pS,beforeUpdate(n,e,t){n[ai]=Ro(t),pS(n,e,t)}};function pS(n,{value:e},t){n._modelValue=e;let r;vt(e)?r=J1(e,t.props.value)>-1:Wl(e)?r=e.has(t.props.value):r=ga(e,Z4(n,!0)),n.checked!==r&&(n.checked=r)}const zL={created(n,{value:e},t){n.checked=ga(e,t.props.value),n[ai]=Ro(t),xs(n,"change",()=>{n[ai](xl(n))})},beforeUpdate(n,{value:e,oldValue:t},r){n[ai]=Ro(r),e!==t&&(n.checked=ga(e,r.props.value))}},Qt={deep:!0,created(n,{value:e,modifiers:{number:t}},r){const i=Wl(e);xs(n,"change",()=>{const s=Array.prototype.filter.call(n.options,o=>o.selected).map(o=>t?bp(xl(o)):xl(o));n[ai](n.multiple?i?new Set(s):s:s[0]),n._assigning=!0,We(()=>{n._assigning=!1})}),n[ai]=Ro(r)},mounted(n,{value:e}){hS(n,e)},beforeUpdate(n,e,t){n[ai]=Ro(t)},updated(n,{value:e}){n._assigning||hS(n,e)}};function hS(n,e){const t=n.multiple,r=vt(e);if(!(t&&!r&&!Wl(e))){for(let i=0,s=n.options.length;iString(d)===String(a)):o.selected=J1(e,a)>-1}else o.selected=e.has(a);else if(ga(xl(o),e)){n.selectedIndex!==i&&(n.selectedIndex=i);return}}!t&&n.selectedIndex!==-1&&(n.selectedIndex=-1)}}function xl(n){return"_value"in n?n._value:n.value}function Z4(n,e){const t=e?"_trueValue":"_falseValue";return t in n?n[t]:e}const VL=["ctrl","shift","alt","meta"],HL={stop:n=>n.stopPropagation(),prevent:n=>n.preventDefault(),self:n=>n.target!==n.currentTarget,ctrl:n=>!n.ctrlKey,shift:n=>!n.shiftKey,alt:n=>!n.altKey,meta:n=>!n.metaKey,left:n=>"button"in n&&n.button!==0,middle:n=>"button"in n&&n.button!==1,right:n=>"button"in n&&n.button!==2,exact:(n,e)=>VL.some(t=>n[`${t}Key`]&&!e.includes(t))},J=(n,e)=>{const t=n._withMods||(n._withMods={}),r=e.join(".");return t[r]||(t[r]=(i,...s)=>{for(let o=0;o{const t=n._withKeys||(n._withKeys={}),r=e.join(".");return t[r]||(t[r]=i=>{if(!("key"in i))return;const s=Io(i.key);if(e.some(o=>o===s||qL[o]===s))return n(i)})},YL=Ln({patchProp:IL},gL);let mS;function $L(){return mS||(mS=VD(YL))}const WL=(...n)=>{const e=$L().createApp(...n),{mount:t}=e;return e.mount=r=>{const i=jL(r);if(!i)return;const s=e._component;!kt(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=t(i,!1,KL(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},e};function KL(n){if(n instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&n instanceof MathMLElement)return"mathml"}function jL(n){return yn(n)?document.querySelector(n):n}function QL(){return J4().__VUE_DEVTOOLS_GLOBAL_HOOK__}function J4(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const XL=typeof Proxy=="function",ZL="devtools-plugin:setup",JL="plugin:settings:set";let Da,Yb;function e6(){var n;return Da!==void 0||(typeof window<"u"&&window.performance?(Da=!0,Yb=window.performance):typeof globalThis<"u"&&(!((n=globalThis.perf_hooks)===null||n===void 0)&&n.performance)?(Da=!0,Yb=globalThis.perf_hooks.performance):Da=!1),Da}function t6(){return e6()?Yb.now():Date.now()}class n6{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const r={};if(e.settings)for(const o in e.settings){const a=e.settings[o];r[o]=a.defaultValue}const i=`__vue-devtools-plugin-settings__${e.id}`;let s=Object.assign({},r);try{const o=localStorage.getItem(i),a=JSON.parse(o);Object.assign(s,a)}catch{}this.fallbacks={getSettings(){return s},setSettings(o){try{localStorage.setItem(i,JSON.stringify(o))}catch{}s=o},now(){return t6()}},t&&t.on(JL,(o,a)=>{o===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(o,a)=>this.target?this.target.on[a]:(...l)=>{this.onQueue.push({method:a,args:l})}}),this.proxiedTarget=new Proxy({},{get:(o,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...l)=>(this.targetQueue.push({method:a,args:l,resolve:()=>{}}),this.fallbacks[a](...l)):(...l)=>new Promise(d=>{this.targetQueue.push({method:a,args:l,resolve:d})})})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function r6(n,e){const t=n,r=J4(),i=QL(),s=XL&&t.enableEarlyProxy;if(i&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))i.emit(ZL,n,e);else{const o=s?new n6(t,i):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:t,setupFn:e,proxy:o}),o&&e(o.proxiedTarget)}}/*! * vuex v4.1.0 * (c) 2022 Evan You * @license MIT @@ -28,27 +28,27 @@ var l5=Object.defineProperty;var c5=(n,e,t)=>e in n?l5(n,e,{enumerable:!0,config * vue-router v4.4.5 * (c) 2024 Eduardo San Martin Morote * @license MIT - */const rl=typeof document<"u";function L3(n){return typeof n=="object"||"displayName"in n||"props"in n||"__vccOpts"in n}function t7(n){return n.__esModule||n[Symbol.toStringTag]==="Module"||n.default&&L3(n.default)}const rn=Object.assign;function Fm(n,e){const t={};for(const r in e){const i=e[r];t[r]=ki(i)?i.map(n):n(i)}return t}const Gc=()=>{},ki=Array.isArray,P3=/#/g,n7=/&/g,r7=/\//g,i7=/=/g,s7=/\?/g,F3=/\+/g,o7=/%5B/g,a7=/%5D/g,U3=/%5E/g,l7=/%60/g,B3=/%7B/g,c7=/%7C/g,G3=/%7D/g,d7=/%20/g;function xv(n){return encodeURI(""+n).replace(c7,"|").replace(o7,"[").replace(a7,"]")}function u7(n){return xv(n).replace(B3,"{").replace(G3,"}").replace(U3,"^")}function e1(n){return xv(n).replace(F3,"%2B").replace(d7,"+").replace(P3,"%23").replace(n7,"%26").replace(l7,"`").replace(B3,"{").replace(G3,"}").replace(U3,"^")}function p7(n){return e1(n).replace(i7,"%3D")}function h7(n){return xv(n).replace(P3,"%23").replace(s7,"%3F")}function m7(n){return n==null?"":h7(n).replace(r7,"%2F")}function ld(n){try{return decodeURIComponent(""+n)}catch{}return""+n}const f7=/\/$/,g7=n=>n.replace(f7,"");function Um(n,e,t="/"){let r,i={},s="",o="";const a=e.indexOf("#");let l=e.indexOf("?");return a=0&&(l=-1),l>-1&&(r=e.slice(0,l),s=e.slice(l+1,a>-1?a:e.length),i=n(s)),a>-1&&(r=r||e.slice(0,a),o=e.slice(a,e.length)),r=y7(r??e,t),{fullPath:r+(s&&"?")+s+o,path:r,query:i,hash:ld(o)}}function _7(n,e){const t=e.query?n(e.query):"";return e.path+(t&&"?")+t+(e.hash||"")}function kS(n,e){return!e||!n.toLowerCase().startsWith(e.toLowerCase())?n:n.slice(e.length)||"/"}function b7(n,e,t){const r=e.matched.length-1,i=t.matched.length-1;return r>-1&&r===i&&Tl(e.matched[r],t.matched[i])&&z3(e.params,t.params)&&n(e.query)===n(t.query)&&e.hash===t.hash}function Tl(n,e){return(n.aliasOf||n)===(e.aliasOf||e)}function z3(n,e){if(Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(!v7(n[t],e[t]))return!1;return!0}function v7(n,e){return ki(n)?IS(n,e):ki(e)?IS(e,n):n===e}function IS(n,e){return ki(e)?n.length===e.length&&n.every((t,r)=>t===e[r]):n.length===1&&n[0]===e}function y7(n,e){if(n.startsWith("/"))return n;if(!n)return e;const t=e.split("/"),r=n.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let s=t.length-1,o,a;for(o=0;o1&&s--;else break;return t.slice(0,s).join("/")+"/"+r.slice(o).join("/")}const Ks={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var cd;(function(n){n.pop="pop",n.push="push"})(cd||(cd={}));var zc;(function(n){n.back="back",n.forward="forward",n.unknown=""})(zc||(zc={}));function E7(n){if(!n)if(rl){const e=document.querySelector("base");n=e&&e.getAttribute("href")||"/",n=n.replace(/^\w+:\/\/[^\/]+/,"")}else n="/";return n[0]!=="/"&&n[0]!=="#"&&(n="/"+n),g7(n)}const S7=/^[^#]+#/;function x7(n,e){return n.replace(S7,"#")+e}function T7(n,e){const t=document.documentElement.getBoundingClientRect(),r=n.getBoundingClientRect();return{behavior:e.behavior,left:r.left-t.left-(e.left||0),top:r.top-t.top-(e.top||0)}}const Oh=()=>({left:window.scrollX,top:window.scrollY});function w7(n){let e;if("el"in n){const t=n.el,r=typeof t=="string"&&t.startsWith("#"),i=typeof t=="string"?r?document.getElementById(t.slice(1)):document.querySelector(t):t;if(!i)return;e=T7(i,n)}else e=n;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function OS(n,e){return(history.state?history.state.position-e:-1)+n}const t1=new Map;function C7(n,e){t1.set(n,e)}function A7(n){const e=t1.get(n);return t1.delete(n),e}let R7=()=>location.protocol+"//"+location.host;function V3(n,e){const{pathname:t,search:r,hash:i}=e,s=n.indexOf("#");if(s>-1){let a=i.includes(n.slice(s))?n.slice(s).length:1,l=i.slice(a);return l[0]!=="/"&&(l="/"+l),kS(l,"")}return kS(t,n)+r+i}function M7(n,e,t,r){let i=[],s=[],o=null;const a=({state:f})=>{const g=V3(n,location),h=t.value,v=e.value;let b=0;if(f){if(t.value=g,e.value=f,o&&o===h){o=null;return}b=v?f.position-v.position:0}else r(g);i.forEach(_=>{_(t.value,h,{delta:b,type:cd.pop,direction:b?b>0?zc.forward:zc.back:zc.unknown})})};function l(){o=t.value}function d(f){i.push(f);const g=()=>{const h=i.indexOf(f);h>-1&&i.splice(h,1)};return s.push(g),g}function u(){const{history:f}=window;f.state&&f.replaceState(rn({},f.state,{scroll:Oh()}),"")}function m(){for(const f of s)f();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:d,destroy:m}}function DS(n,e,t,r=!1,i=!1){return{back:n,current:e,forward:t,replaced:r,position:window.history.length,scroll:i?Oh():null}}function N7(n){const{history:e,location:t}=window,r={value:V3(n,t)},i={value:e.state};i.value||s(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function s(l,d,u){const m=n.indexOf("#"),f=m>-1?(t.host&&document.querySelector("base")?n:n.slice(m))+l:R7()+n+l;try{e[u?"replaceState":"pushState"](d,"",f),i.value=d}catch(g){console.error(g),t[u?"replace":"assign"](f)}}function o(l,d){const u=rn({},e.state,DS(i.value.back,l,i.value.forward,!0),d,{position:i.value.position});s(l,u,!0),r.value=l}function a(l,d){const u=rn({},i.value,e.state,{forward:l,scroll:Oh()});s(u.current,u,!0);const m=rn({},DS(r.value,l,null),{position:u.position+1},d);s(l,m,!1),r.value=l}return{location:r,state:i,push:a,replace:o}}function k7(n){n=E7(n);const e=N7(n),t=M7(n,e.state,e.location,e.replace);function r(s,o=!0){o||t.pauseListeners(),history.go(s)}const i=rn({location:"",base:n,go:r,createHref:x7.bind(null,n)},e,t);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>e.state.value}),i}function I7(n){return typeof n=="string"||n&&typeof n=="object"}function H3(n){return typeof n=="string"||typeof n=="symbol"}const q3=Symbol("");var LS;(function(n){n[n.aborted=4]="aborted",n[n.cancelled=8]="cancelled",n[n.duplicated=16]="duplicated"})(LS||(LS={}));function wl(n,e){return rn(new Error,{type:n,[q3]:!0},e)}function cs(n,e){return n instanceof Error&&q3 in n&&(e==null||!!(n.type&e))}const PS="[^/]+?",O7={sensitive:!1,strict:!1,start:!0,end:!0},D7=/[.+*?^${}()[\]/\\]/g;function L7(n,e){const t=rn({},O7,e),r=[];let i=t.start?"^":"";const s=[];for(const d of n){const u=d.length?[]:[90];t.strict&&!d.length&&(i+="/");for(let m=0;me.length?e.length===1&&e[0]===80?1:-1:0}function Y3(n,e){let t=0;const r=n.score,i=e.score;for(;t0&&e[e.length-1]<0}const F7={type:0,value:""},U7=/[a-zA-Z0-9_]/;function B7(n){if(!n)return[[]];if(n==="/")return[[F7]];if(!n.startsWith("/"))throw new Error(`Invalid path "${n}"`);function e(g){throw new Error(`ERR (${t})/"${d}": ${g}`)}let t=0,r=t;const i=[];let s;function o(){s&&i.push(s),s=[]}let a=0,l,d="",u="";function m(){d&&(t===0?s.push({type:0,value:d}):t===1||t===2||t===3?(s.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:d,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),d="")}function f(){d+=l}for(;a{o(E)}:Gc}function o(m){if(H3(m)){const f=r.get(m);f&&(r.delete(m),t.splice(t.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=t.indexOf(m);f>-1&&(t.splice(f,1),m.record.name&&r.delete(m.record.name),m.children.forEach(o),m.alias.forEach(o))}}function a(){return t}function l(m){const f=q7(m,t);t.splice(f,0,m),m.record.name&&!GS(m)&&r.set(m.record.name,m)}function d(m,f){let g,h={},v,b;if("name"in m&&m.name){if(g=r.get(m.name),!g)throw wl(1,{location:m});b=g.record.name,h=rn(US(f.params,g.keys.filter(E=>!E.optional).concat(g.parent?g.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),m.params&&US(m.params,g.keys.map(E=>E.name))),v=g.stringify(h)}else if(m.path!=null)v=m.path,g=t.find(E=>E.re.test(v)),g&&(h=g.parse(v),b=g.record.name);else{if(g=f.name?r.get(f.name):t.find(E=>E.re.test(f.path)),!g)throw wl(1,{location:m,currentLocation:f});b=g.record.name,h=rn({},f.params,m.params),v=g.stringify(h)}const _=[];let y=g;for(;y;)_.unshift(y.record),y=y.parent;return{name:b,path:v,params:h,matched:_,meta:H7(_)}}n.forEach(m=>s(m));function u(){t.length=0,r.clear()}return{addRoute:s,resolve:d,removeRoute:o,clearRoutes:u,getRoutes:a,getRecordMatcher:i}}function US(n,e){const t={};for(const r of e)r in n&&(t[r]=n[r]);return t}function BS(n){const e={path:n.path,redirect:n.redirect,name:n.name,meta:n.meta||{},aliasOf:n.aliasOf,beforeEnter:n.beforeEnter,props:V7(n),children:n.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in n?n.components||null:n.component&&{default:n.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function V7(n){const e={},t=n.props||!1;if("component"in n)e.default=t;else for(const r in n.components)e[r]=typeof t=="object"?t[r]:t;return e}function GS(n){for(;n;){if(n.record.aliasOf)return!0;n=n.parent}return!1}function H7(n){return n.reduce((e,t)=>rn(e,t.meta),{})}function zS(n,e){const t={};for(const r in n)t[r]=r in e?e[r]:n[r];return t}function q7(n,e){let t=0,r=e.length;for(;t!==r;){const s=t+r>>1;Y3(n,e[s])<0?r=s:t=s+1}const i=Y7(n);return i&&(r=e.lastIndexOf(i,r-1)),r}function Y7(n){let e=n;for(;e=e.parent;)if($3(e)&&Y3(n,e)===0)return e}function $3({record:n}){return!!(n.name||n.components&&Object.keys(n.components).length||n.redirect)}function $7(n){const e={};if(n===""||n==="?")return e;const r=(n[0]==="?"?n.slice(1):n).split("&");for(let i=0;is&&e1(s)):[r&&e1(r)]).forEach(s=>{s!==void 0&&(e+=(e.length?"&":"")+t,s!=null&&(e+="="+s))})}return e}function W7(n){const e={};for(const t in n){const r=n[t];r!==void 0&&(e[t]=ki(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return e}const K7=Symbol(""),HS=Symbol(""),Tv=Symbol(""),wv=Symbol(""),n1=Symbol("");function _c(){let n=[];function e(r){return n.push(r),()=>{const i=n.indexOf(r);i>-1&&n.splice(i,1)}}function t(){n=[]}return{add:e,list:()=>n.slice(),reset:t}}function ao(n,e,t,r,i,s=o=>o()){const o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((a,l)=>{const d=f=>{f===!1?l(wl(4,{from:t,to:e})):f instanceof Error?l(f):I7(f)?l(wl(2,{from:e,to:f})):(o&&r.enterCallbacks[i]===o&&typeof f=="function"&&o.push(f),a())},u=s(()=>n.call(r&&r.instances[i],e,t,d));let m=Promise.resolve(u);n.length<3&&(m=m.then(d)),m.catch(f=>l(f))})}function Bm(n,e,t,r,i=s=>s()){const s=[];for(const o of n)for(const a in o.components){let l=o.components[a];if(!(e!=="beforeRouteEnter"&&!o.instances[a]))if(L3(l)){const u=(l.__vccOpts||l)[e];u&&s.push(ao(u,t,r,o,a,i))}else{let d=l();s.push(()=>d.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const m=t7(u)?u.default:u;o.mods[a]=u,o.components[a]=m;const g=(m.__vccOpts||m)[e];return g&&ao(g,t,r,o,a,i)()}))}}return s}function qS(n){const e=Gr(Tv),t=Gr(wv),r=mt(()=>{const l=Pt(n.to);return e.resolve(l)}),i=mt(()=>{const{matched:l}=r.value,{length:d}=l,u=l[d-1],m=t.matched;if(!u||!m.length)return-1;const f=m.findIndex(Tl.bind(null,u));if(f>-1)return f;const g=YS(l[d-2]);return d>1&&YS(u)===g&&m[m.length-1].path!==g?m.findIndex(Tl.bind(null,l[d-2])):f}),s=mt(()=>i.value>-1&&X7(t.params,r.value.params)),o=mt(()=>i.value>-1&&i.value===t.matched.length-1&&z3(t.params,r.value.params));function a(l={}){return Q7(l)?e[Pt(n.replace)?"replace":"push"](Pt(n.to)).catch(Gc):Promise.resolve()}return{route:r,href:mt(()=>r.value.href),isActive:s,isExactActive:o,navigate:a}}const j7=Pn({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:qS,setup(n,{slots:e}){const t=yr(qS(n)),{options:r}=Gr(Tv),i=mt(()=>({[$S(n.activeClass,r.linkActiveClass,"router-link-active")]:t.isActive,[$S(n.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:t.isExactActive}));return()=>{const s=e.default&&e.default(t);return n.custom?s:mv("a",{"aria-current":t.isExactActive?n.ariaCurrentValue:null,href:t.href,onClick:t.navigate,class:i.value},s)}}}),Ip=j7;function Q7(n){if(!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)&&!n.defaultPrevented&&!(n.button!==void 0&&n.button!==0)){if(n.currentTarget&&n.currentTarget.getAttribute){const e=n.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return n.preventDefault&&n.preventDefault(),!0}}function X7(n,e){for(const t in e){const r=e[t],i=n[t];if(typeof r=="string"){if(r!==i)return!1}else if(!ki(i)||i.length!==r.length||r.some((s,o)=>s!==i[o]))return!1}return!0}function YS(n){return n?n.aliasOf?n.aliasOf.path:n.path:""}const $S=(n,e,t)=>n??e??t,Z7=Pn({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(n,{attrs:e,slots:t}){const r=Gr(n1),i=mt(()=>n.route||r.value),s=Gr(HS,0),o=mt(()=>{let d=Pt(s);const{matched:u}=i.value;let m;for(;(m=u[d])&&!m.components;)d++;return d}),a=mt(()=>i.value.matched[o.value]);ml(HS,mt(()=>o.value+1)),ml(K7,a),ml(n1,i);const l=yt();return Zn(()=>[l.value,a.value,n.name],([d,u,m],[f,g,h])=>{u&&(u.instances[m]=d,g&&g!==u&&d&&d===f&&(u.leaveGuards.size||(u.leaveGuards=g.leaveGuards),u.updateGuards.size||(u.updateGuards=g.updateGuards))),d&&u&&(!g||!Tl(u,g)||!f)&&(u.enterCallbacks[m]||[]).forEach(v=>v(d))},{flush:"post"}),()=>{const d=i.value,u=n.name,m=a.value,f=m&&m.components[u];if(!f)return WS(t.default,{Component:f,route:d});const g=m.props[u],h=g?g===!0?d.params:typeof g=="function"?g(d):g:null,b=mv(f,rn({},h,e,{onVnodeUnmounted:_=>{_.component.isUnmounted&&(m.instances[u]=null)},ref:l}));return WS(t.default,{Component:b,route:d})||b}}});function WS(n,e){if(!n)return null;const t=n(e);return t.length===1?t[0]:t}const W3=Z7;function J7(n){const e=z7(n.routes,n),t=n.parseQuery||$7,r=n.stringifyQuery||VS,i=n.history,s=_c(),o=_c(),a=_c(),l=j5(Ks);let d=Ks;rl&&n.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Fm.bind(null,te=>""+te),m=Fm.bind(null,m7),f=Fm.bind(null,ld);function g(te,ye){let Se,Oe;return H3(te)?(Se=e.getRecordMatcher(te),Oe=ye):Oe=te,e.addRoute(Oe,Se)}function h(te){const ye=e.getRecordMatcher(te);ye&&e.removeRoute(ye)}function v(){return e.getRoutes().map(te=>te.record)}function b(te){return!!e.getRecordMatcher(te)}function _(te,ye){if(ye=rn({},ye||l.value),typeof te=="string"){const G=Um(t,te,ye.path),oe=e.resolve({path:G.path},ye),ge=i.createHref(G.fullPath);return rn(G,oe,{params:f(oe.params),hash:ld(G.hash),redirectedFrom:void 0,href:ge})}let Se;if(te.path!=null)Se=rn({},te,{path:Um(t,te.path,ye.path).path});else{const G=rn({},te.params);for(const oe in G)G[oe]==null&&delete G[oe];Se=rn({},te,{params:m(G)}),ye.params=m(ye.params)}const Oe=e.resolve(Se,ye),Ye=te.hash||"";Oe.params=u(f(Oe.params));const le=_7(r,rn({},te,{hash:u7(Ye),path:Oe.path})),V=i.createHref(le);return rn({fullPath:le,hash:Ye,query:r===VS?W7(te.query):te.query||{}},Oe,{redirectedFrom:void 0,href:V})}function y(te){return typeof te=="string"?Um(t,te,l.value.path):rn({},te)}function E(te,ye){if(d!==te)return wl(8,{from:ye,to:te})}function x(te){return N(te)}function A(te){return x(rn(y(te),{replace:!0}))}function w(te){const ye=te.matched[te.matched.length-1];if(ye&&ye.redirect){const{redirect:Se}=ye;let Oe=typeof Se=="function"?Se(te):Se;return typeof Oe=="string"&&(Oe=Oe.includes("?")||Oe.includes("#")?Oe=y(Oe):{path:Oe},Oe.params={}),rn({query:te.query,hash:te.hash,params:Oe.path!=null?{}:te.params},Oe)}}function N(te,ye){const Se=d=_(te),Oe=l.value,Ye=te.state,le=te.force,V=te.replace===!0,G=w(Se);if(G)return N(rn(y(G),{state:typeof G=="object"?rn({},Ye,G.state):Ye,force:le,replace:V}),ye||Se);const oe=Se;oe.redirectedFrom=ye;let ge;return!le&&b7(r,Oe,Se)&&(ge=wl(16,{to:oe,from:Oe}),xe(Oe,Oe,!0,!1)),(ge?Promise.resolve(ge):k(oe,Oe)).catch(Ee=>cs(Ee)?cs(Ee,2)?Ee:ue(Ee):Z(Ee,oe,Oe)).then(Ee=>{if(Ee){if(cs(Ee,2))return N(rn({replace:V},y(Ee.to),{state:typeof Ee.to=="object"?rn({},Ye,Ee.to.state):Ye,force:le}),ye||oe)}else Ee=q(oe,Oe,!0,V,Ye);return H(oe,Oe,Ee),Ee})}function L(te,ye){const Se=E(te,ye);return Se?Promise.reject(Se):Promise.resolve()}function C(te){const ye=Ae.values().next().value;return ye&&typeof ye.runWithContext=="function"?ye.runWithContext(te):te()}function k(te,ye){let Se;const[Oe,Ye,le]=e8(te,ye);Se=Bm(Oe.reverse(),"beforeRouteLeave",te,ye);for(const G of Oe)G.leaveGuards.forEach(oe=>{Se.push(ao(oe,te,ye))});const V=L.bind(null,te,ye);return Se.push(V),ze(Se).then(()=>{Se=[];for(const G of s.list())Se.push(ao(G,te,ye));return Se.push(V),ze(Se)}).then(()=>{Se=Bm(Ye,"beforeRouteUpdate",te,ye);for(const G of Ye)G.updateGuards.forEach(oe=>{Se.push(ao(oe,te,ye))});return Se.push(V),ze(Se)}).then(()=>{Se=[];for(const G of le)if(G.beforeEnter)if(ki(G.beforeEnter))for(const oe of G.beforeEnter)Se.push(ao(oe,te,ye));else Se.push(ao(G.beforeEnter,te,ye));return Se.push(V),ze(Se)}).then(()=>(te.matched.forEach(G=>G.enterCallbacks={}),Se=Bm(le,"beforeRouteEnter",te,ye,C),Se.push(V),ze(Se))).then(()=>{Se=[];for(const G of o.list())Se.push(ao(G,te,ye));return Se.push(V),ze(Se)}).catch(G=>cs(G,8)?G:Promise.reject(G))}function H(te,ye,Se){a.list().forEach(Oe=>C(()=>Oe(te,ye,Se)))}function q(te,ye,Se,Oe,Ye){const le=E(te,ye);if(le)return le;const V=ye===Ks,G=rl?history.state:{};Se&&(Oe||V?i.replace(te.fullPath,rn({scroll:V&&G&&G.scroll},Ye)):i.push(te.fullPath,Ye)),l.value=te,xe(te,ye,Se,V),ue()}let ie;function D(){ie||(ie=i.listen((te,ye,Se)=>{if(!Fe.listening)return;const Oe=_(te),Ye=w(Oe);if(Ye){N(rn(Ye,{replace:!0}),Oe).catch(Gc);return}d=Oe;const le=l.value;rl&&C7(OS(le.fullPath,Se.delta),Oh()),k(Oe,le).catch(V=>cs(V,12)?V:cs(V,2)?(N(V.to,Oe).then(G=>{cs(G,20)&&!Se.delta&&Se.type===cd.pop&&i.go(-1,!1)}).catch(Gc),Promise.reject()):(Se.delta&&i.go(-Se.delta,!1),Z(V,Oe,le))).then(V=>{V=V||q(Oe,le,!1),V&&(Se.delta&&!cs(V,8)?i.go(-Se.delta,!1):Se.type===cd.pop&&cs(V,20)&&i.go(-1,!1)),H(Oe,le,V)}).catch(Gc)}))}let $=_c(),K=_c(),B;function Z(te,ye,Se){ue(te);const Oe=K.list();return Oe.length?Oe.forEach(Ye=>Ye(te,ye,Se)):console.error(te),Promise.reject(te)}function ce(){return B&&l.value!==Ks?Promise.resolve():new Promise((te,ye)=>{$.add([te,ye])})}function ue(te){return B||(B=!te,D(),$.list().forEach(([ye,Se])=>te?Se(te):ye()),$.reset()),te}function xe(te,ye,Se,Oe){const{scrollBehavior:Ye}=n;if(!rl||!Ye)return Promise.resolve();const le=!Se&&A7(OS(te.fullPath,0))||(Oe||!Se)&&history.state&&history.state.scroll||null;return We().then(()=>Ye(te,ye,le)).then(V=>V&&w7(V)).catch(V=>Z(V,te,ye))}const Ce=te=>i.go(te);let me;const Ae=new Set,Fe={currentRoute:l,listening:!0,addRoute:g,removeRoute:h,clearRoutes:e.clearRoutes,hasRoute:b,getRoutes:v,resolve:_,options:n,push:x,replace:A,go:Ce,back:()=>Ce(-1),forward:()=>Ce(1),beforeEach:s.add,beforeResolve:o.add,afterEach:a.add,onError:K.add,isReady:ce,install(te){const ye=this;te.component("RouterLink",Ip),te.component("RouterView",W3),te.config.globalProperties.$router=ye,Object.defineProperty(te.config.globalProperties,"$route",{enumerable:!0,get:()=>Pt(l)}),rl&&!me&&l.value===Ks&&(me=!0,x(i.location).catch(Ye=>{}));const Se={};for(const Ye in Ks)Object.defineProperty(Se,Ye,{get:()=>l.value[Ye],enumerable:!0});te.provide(Tv,ye),te.provide(wv,ZM(Se)),te.provide(n1,l);const Oe=te.unmount;Ae.add(te),te.unmount=function(){Ae.delete(te),Ae.size<1&&(d=Ks,ie&&ie(),ie=null,l.value=Ks,me=!1,B=!1),Oe()}}};function ze(te){return te.reduce((ye,Se)=>ye.then(()=>C(Se)),Promise.resolve())}return Fe}function e8(n,e){const t=[],r=[],i=[],s=Math.max(e.matched.length,n.matched.length);for(let o=0;oTl(d,a))?r.push(a):t.push(a));const l=n.matched[o];l&&(e.matched.find(d=>Tl(d,l))||i.push(l))}return[t,r,i]}function t8(n){return Gr(wv)}const n8="modulepreload",r8=function(n){return"/"+n},KS={},Gm=function(e,t,r){let i=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.allSettled(t.map(l=>{if(l=r8(l),l in KS)return;KS[l]=!0;const d=l.endsWith(".css"),u=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const m=document.createElement("link");if(m.rel=d?"stylesheet":n8,d||(m.as="script"),m.crossOrigin="",m.href=l,a&&m.setAttribute("nonce",a),document.head.appendChild(m),d)return new Promise((f,g)=>{m.addEventListener("load",f),m.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return i.then(o=>{for(const a of o||[])a.status==="rejected"&&s(a.reason);return e().catch(s)})},i8={class:"sticky top-0 z-50 w-full bg-transparent"},s8={class:"container mx-auto px-4"},o8={class:"flex items-center justify-between h-16"},a8={class:"hidden md:block"},l8={class:"flex items-center space-x-4"},c8={class:"flex items-center space-x-1"},d8={key:0,class:"ml-1 text-xs","aria-hidden":"true"},u8={class:"md:hidden"},p8={class:"px-2 pt-2 pb-3 space-y-1"},h8={class:"flex items-center justify-between"},m8={key:0,class:"text-xs","aria-hidden":"true"},f8={name:"Navigation"},g8=Object.assign(f8,{setup(n){const e=t8(),t=yt(0),r=yt([]),i=yt(!1),s=[{active:!0,route:"discussions",text:"Discussions"},{active:!0,route:"playground",text:"Playground"},{active:!0,route:"PersonalitiesZoo",text:"Personalities Zoo"},{active:!0,route:"AppsZoo",text:"Apps Zoo"},{active:!1,route:"AutoSD",text:"Auto111-SD",condition:()=>Ti.state.config.enable_sd_service||Ti.state.config.active_tti_service==="autosd"},{active:!1,route:"ComfyUI",text:"ComfyUI",condition:()=>Ti.state.config.enable_comfyui_service||Ti.state.config.active_tti_service==="comfyui"},{active:!1,route:"interactive",text:"Interactive",condition:()=>Ti.state.config.active_tts_service!=="None"&&Ti.state.config.active_stt_service!=="None"},{active:!0,route:"settings",text:"Settings"},{active:!0,route:"help_view",text:"Help"}],o=mt(()=>Ti.state.ready?s.filter(u=>u.condition?u.condition():u.active):s.filter(u=>u.active));Ji(()=>{a()}),Zn(()=>e.name,a);function a(){const u=o.value.findIndex(m=>m.route===e.name);u!==-1&&(t.value=u)}function l(u){return e.name===u}function d(u){t.value=u}return(u,m)=>(T(),M("div",i8,[c("nav",s8,[c("div",o8,[c("div",a8,[c("div",l8,[(T(!0),M(je,null,at(o.value,(f,g)=>(T(),Tt(Pt(Ip),{key:g,to:{name:f.route},class:qe(["px-3 py-2 rounded-md text-sm font-medium transition-colors duration-200 ease-in-out hover:bg-gray-100 dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300",{"bg-blue-500 text-white hover:bg-blue-600 dark:bg-blue-600 dark:hover:bg-blue-700":l(f.route)}]),onClick:h=>d(g),ref_for:!0,ref_key:"menuItems",ref:r},{default:Ge(()=>[c("div",c8,[pt(X(f.text)+" ",1),l(f.route)?(T(),M("span",d8," ✨ ")):Y("",!0)])]),_:2},1032,["to","class","onClick"]))),128))])]),c("div",u8,[c("button",{onClick:m[0]||(m[0]=f=>i.value=!i.value),class:"inline-flex items-center justify-center p-2 rounded-md text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 focus:outline-none"},[(T(),M("svg",{class:qe(["h-6 w-6",{hidden:i.value,block:!i.value}]),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},m[1]||(m[1]=[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h16"},null,-1)]),2)),(T(),M("svg",{class:qe(["h-6 w-6",{block:i.value,hidden:!i.value}]),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},m[2]||(m[2]=[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1)]),2))])])]),c("div",{class:qe([{block:i.value,hidden:!i.value},"md:hidden"])},[c("div",p8,[(T(!0),M(je,null,at(o.value,(f,g)=>(T(),Tt(Pt(Ip),{key:g,to:{name:f.route},class:qe(["block px-3 py-2 rounded-md text-base font-medium transition-colors duration-200 ease-in-out text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700",{"bg-blue-500 text-white hover:bg-blue-600 dark:bg-blue-600 dark:hover:bg-blue-700":l(f.route)}]),onClick:h=>{d(g),i.value=!1}},{default:Ge(()=>[c("div",h8,[pt(X(f.text)+" ",1),l(f.route)?(T(),M("span",m8," ✨ ")):Y("",!0)])]),_:2},1032,["to","class","onClick"]))),128))])],2)])]))}}),bt=(n,e)=>{const t=n.__vccOpts||n;for(const[r,i]of e)t[r]=i;return t},_8={props:{href:{type:String,default:"#"},icon:{type:String,required:!0},title:{type:String,default:""}},methods:{onClick(n){this.href==="#"&&(n.preventDefault(),this.$emit("click"))}}},b8=["href","title"],v8=["data-feather"];function y8(n,e,t,r,i,s){return T(),M("a",{href:t.href,onClick:e[0]||(e[0]=(...o)=>s.onClick&&s.onClick(...o)),class:"text-2xl hover:text-primary transition duration-150 ease-in-out",title:t.title},[c("i",{"data-feather":t.icon},null,8,v8)],8,b8)}const K3=bt(_8,[["render",y8]]),E8={props:{href:{type:String,required:!0},icon:{type:String,required:!0},title:{type:String,default:"Visit our social media"}}},S8=["href","title"],x8=["data-feather"],T8={key:1,class:"w-6 h-6 fill-current",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},w8={key:2,class:"w-6 h-6 fill-current",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function C8(n,e,t,r,i,s){return T(),M("a",{href:t.href,target:"_blank",class:"text-2xl hover:text-primary transition duration-150 ease-in-out",title:t.title},[t.icon!=="x"&&t.icon!=="discord"?(T(),M("i",{key:0,"data-feather":t.icon},null,8,x8)):t.icon==="x"?(T(),M("svg",T8,e[0]||(e[0]=[c("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"},null,-1)]))):t.icon==="discord"?(T(),M("svg",w8,e[1]||(e[1]=[c("path",{d:"M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"},null,-1)]))):Y("",!0)],8,S8)}const j3=bt(E8,[["render",C8]]);var Q3=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ra(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function X3(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var i=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return n[r]}})}),t}var Z3={exports:{}};(function(n,e){(function(r,i){n.exports=i()})(typeof self<"u"?self:Q3,function(){return function(t){var r={};function i(s){if(r[s])return r[s].exports;var o=r[s]={i:s,l:!1,exports:{}};return t[s].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=t,i.c=r,i.d=function(s,o,a){i.o(s,o)||Object.defineProperty(s,o,{configurable:!1,enumerable:!0,get:a})},i.r=function(s){Object.defineProperty(s,"__esModule",{value:!0})},i.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return i.d(o,"a",o),o},i.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},i.p="",i(i.s=0)}({"./dist/icons.json":function(t){t.exports={activity:'',airplay:'',"alert-circle":'',"alert-octagon":'',"alert-triangle":'',"align-center":'',"align-justify":'',"align-left":'',"align-right":'',anchor:'',aperture:'',archive:'',"arrow-down-circle":'',"arrow-down-left":'',"arrow-down-right":'',"arrow-down":'',"arrow-left-circle":'',"arrow-left":'',"arrow-right-circle":'',"arrow-right":'',"arrow-up-circle":'',"arrow-up-left":'',"arrow-up-right":'',"arrow-up":'',"at-sign":'',award:'',"bar-chart-2":'',"bar-chart":'',"battery-charging":'',battery:'',"bell-off":'',bell:'',bluetooth:'',bold:'',"book-open":'',book:'',bookmark:'',box:'',briefcase:'',calendar:'',"camera-off":'',camera:'',cast:'',"check-circle":'',"check-square":'',check:'',"chevron-down":'',"chevron-left":'',"chevron-right":'',"chevron-up":'',"chevrons-down":'',"chevrons-left":'',"chevrons-right":'',"chevrons-up":'',chrome:'',circle:'',clipboard:'',clock:'',"cloud-drizzle":'',"cloud-lightning":'',"cloud-off":'',"cloud-rain":'',"cloud-snow":'',cloud:'',code:'',codepen:'',codesandbox:'',coffee:'',columns:'',command:'',compass:'',copy:'',"corner-down-left":'',"corner-down-right":'',"corner-left-down":'',"corner-left-up":'',"corner-right-down":'',"corner-right-up":'',"corner-up-left":'',"corner-up-right":'',cpu:'',"credit-card":'',crop:'',crosshair:'',database:'',delete:'',disc:'',"divide-circle":'',"divide-square":'',divide:'',"dollar-sign":'',"download-cloud":'',download:'',dribbble:'',droplet:'',"edit-2":'',"edit-3":'',edit:'',"external-link":'',"eye-off":'',eye:'',facebook:'',"fast-forward":'',feather:'',figma:'',"file-minus":'',"file-plus":'',"file-text":'',file:'',film:'',filter:'',flag:'',"folder-minus":'',"folder-plus":'',folder:'',framer:'',frown:'',gift:'',"git-branch":'',"git-commit":'',"git-merge":'',"git-pull-request":'',github:'',gitlab:'',globe:'',grid:'',"hard-drive":'',hash:'',headphones:'',heart:'',"help-circle":'',hexagon:'',home:'',image:'',inbox:'',info:'',instagram:'',italic:'',key:'',layers:'',layout:'',"life-buoy":'',"link-2":'',link:'',linkedin:'',list:'',loader:'',lock:'',"log-in":'',"log-out":'',mail:'',"map-pin":'',map:'',"maximize-2":'',maximize:'',meh:'',menu:'',"message-circle":'',"message-square":'',"mic-off":'',mic:'',"minimize-2":'',minimize:'',"minus-circle":'',"minus-square":'',minus:'',monitor:'',moon:'',"more-horizontal":'',"more-vertical":'',"mouse-pointer":'',move:'',music:'',"navigation-2":'',navigation:'',octagon:'',package:'',paperclip:'',"pause-circle":'',pause:'',"pen-tool":'',percent:'',"phone-call":'',"phone-forwarded":'',"phone-incoming":'',"phone-missed":'',"phone-off":'',"phone-outgoing":'',phone:'',"pie-chart":'',"play-circle":'',play:'',"plus-circle":'',"plus-square":'',plus:'',pocket:'',power:'',printer:'',radio:'',"refresh-ccw":'',"refresh-cw":'',repeat:'',rewind:'',"rotate-ccw":'',"rotate-cw":'',rss:'',save:'',scissors:'',search:'',send:'',server:'',settings:'',"share-2":'',share:'',"shield-off":'',shield:'',"shopping-bag":'',"shopping-cart":'',shuffle:'',sidebar:'',"skip-back":'',"skip-forward":'',slack:'',slash:'',sliders:'',smartphone:'',smile:'',speaker:'',square:'',star:'',"stop-circle":'',sun:'',sunrise:'',sunset:'',table:'',tablet:'',tag:'',target:'',terminal:'',thermometer:'',"thumbs-down":'',"thumbs-up":'',"toggle-left":'',"toggle-right":'',tool:'',"trash-2":'',trash:'',trello:'',"trending-down":'',"trending-up":'',triangle:'',truck:'',tv:'',twitch:'',twitter:'',type:'',umbrella:'',underline:'',unlock:'',"upload-cloud":'',upload:'',"user-check":'',"user-minus":'',"user-plus":'',"user-x":'',user:'',users:'',"video-off":'',video:'',voicemail:'',"volume-1":'',"volume-2":'',"volume-x":'',volume:'',watch:'',"wifi-off":'',wifi:'',wind:'',"x-circle":'',"x-octagon":'',"x-square":'',x:'',youtube:'',"zap-off":'',zap:'',"zoom-in":'',"zoom-out":''}},"./node_modules/classnames/dedupe.js":function(t,r,i){var s,o;/*! + */const rl=typeof document<"u";function L3(n){return typeof n=="object"||"displayName"in n||"props"in n||"__vccOpts"in n}function t7(n){return n.__esModule||n[Symbol.toStringTag]==="Module"||n.default&&L3(n.default)}const rn=Object.assign;function Fm(n,e){const t={};for(const r in e){const i=e[r];t[r]=ki(i)?i.map(n):n(i)}return t}const Gc=()=>{},ki=Array.isArray,P3=/#/g,n7=/&/g,r7=/\//g,i7=/=/g,s7=/\?/g,F3=/\+/g,o7=/%5B/g,a7=/%5D/g,U3=/%5E/g,l7=/%60/g,B3=/%7B/g,c7=/%7C/g,G3=/%7D/g,d7=/%20/g;function xv(n){return encodeURI(""+n).replace(c7,"|").replace(o7,"[").replace(a7,"]")}function u7(n){return xv(n).replace(B3,"{").replace(G3,"}").replace(U3,"^")}function e1(n){return xv(n).replace(F3,"%2B").replace(d7,"+").replace(P3,"%23").replace(n7,"%26").replace(l7,"`").replace(B3,"{").replace(G3,"}").replace(U3,"^")}function p7(n){return e1(n).replace(i7,"%3D")}function h7(n){return xv(n).replace(P3,"%23").replace(s7,"%3F")}function m7(n){return n==null?"":h7(n).replace(r7,"%2F")}function ld(n){try{return decodeURIComponent(""+n)}catch{}return""+n}const f7=/\/$/,g7=n=>n.replace(f7,"");function Um(n,e,t="/"){let r,i={},s="",o="";const a=e.indexOf("#");let l=e.indexOf("?");return a=0&&(l=-1),l>-1&&(r=e.slice(0,l),s=e.slice(l+1,a>-1?a:e.length),i=n(s)),a>-1&&(r=r||e.slice(0,a),o=e.slice(a,e.length)),r=y7(r??e,t),{fullPath:r+(s&&"?")+s+o,path:r,query:i,hash:ld(o)}}function _7(n,e){const t=e.query?n(e.query):"";return e.path+(t&&"?")+t+(e.hash||"")}function kS(n,e){return!e||!n.toLowerCase().startsWith(e.toLowerCase())?n:n.slice(e.length)||"/"}function b7(n,e,t){const r=e.matched.length-1,i=t.matched.length-1;return r>-1&&r===i&&Tl(e.matched[r],t.matched[i])&&z3(e.params,t.params)&&n(e.query)===n(t.query)&&e.hash===t.hash}function Tl(n,e){return(n.aliasOf||n)===(e.aliasOf||e)}function z3(n,e){if(Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(!v7(n[t],e[t]))return!1;return!0}function v7(n,e){return ki(n)?IS(n,e):ki(e)?IS(e,n):n===e}function IS(n,e){return ki(e)?n.length===e.length&&n.every((t,r)=>t===e[r]):n.length===1&&n[0]===e}function y7(n,e){if(n.startsWith("/"))return n;if(!n)return e;const t=e.split("/"),r=n.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let s=t.length-1,o,a;for(o=0;o1&&s--;else break;return t.slice(0,s).join("/")+"/"+r.slice(o).join("/")}const Ks={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var cd;(function(n){n.pop="pop",n.push="push"})(cd||(cd={}));var zc;(function(n){n.back="back",n.forward="forward",n.unknown=""})(zc||(zc={}));function E7(n){if(!n)if(rl){const e=document.querySelector("base");n=e&&e.getAttribute("href")||"/",n=n.replace(/^\w+:\/\/[^\/]+/,"")}else n="/";return n[0]!=="/"&&n[0]!=="#"&&(n="/"+n),g7(n)}const S7=/^[^#]+#/;function x7(n,e){return n.replace(S7,"#")+e}function T7(n,e){const t=document.documentElement.getBoundingClientRect(),r=n.getBoundingClientRect();return{behavior:e.behavior,left:r.left-t.left-(e.left||0),top:r.top-t.top-(e.top||0)}}const Oh=()=>({left:window.scrollX,top:window.scrollY});function w7(n){let e;if("el"in n){const t=n.el,r=typeof t=="string"&&t.startsWith("#"),i=typeof t=="string"?r?document.getElementById(t.slice(1)):document.querySelector(t):t;if(!i)return;e=T7(i,n)}else e=n;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function OS(n,e){return(history.state?history.state.position-e:-1)+n}const t1=new Map;function C7(n,e){t1.set(n,e)}function A7(n){const e=t1.get(n);return t1.delete(n),e}let R7=()=>location.protocol+"//"+location.host;function V3(n,e){const{pathname:t,search:r,hash:i}=e,s=n.indexOf("#");if(s>-1){let a=i.includes(n.slice(s))?n.slice(s).length:1,l=i.slice(a);return l[0]!=="/"&&(l="/"+l),kS(l,"")}return kS(t,n)+r+i}function M7(n,e,t,r){let i=[],s=[],o=null;const a=({state:f})=>{const g=V3(n,location),h=t.value,v=e.value;let b=0;if(f){if(t.value=g,e.value=f,o&&o===h){o=null;return}b=v?f.position-v.position:0}else r(g);i.forEach(_=>{_(t.value,h,{delta:b,type:cd.pop,direction:b?b>0?zc.forward:zc.back:zc.unknown})})};function l(){o=t.value}function d(f){i.push(f);const g=()=>{const h=i.indexOf(f);h>-1&&i.splice(h,1)};return s.push(g),g}function u(){const{history:f}=window;f.state&&f.replaceState(rn({},f.state,{scroll:Oh()}),"")}function m(){for(const f of s)f();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:d,destroy:m}}function DS(n,e,t,r=!1,i=!1){return{back:n,current:e,forward:t,replaced:r,position:window.history.length,scroll:i?Oh():null}}function N7(n){const{history:e,location:t}=window,r={value:V3(n,t)},i={value:e.state};i.value||s(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function s(l,d,u){const m=n.indexOf("#"),f=m>-1?(t.host&&document.querySelector("base")?n:n.slice(m))+l:R7()+n+l;try{e[u?"replaceState":"pushState"](d,"",f),i.value=d}catch(g){console.error(g),t[u?"replace":"assign"](f)}}function o(l,d){const u=rn({},e.state,DS(i.value.back,l,i.value.forward,!0),d,{position:i.value.position});s(l,u,!0),r.value=l}function a(l,d){const u=rn({},i.value,e.state,{forward:l,scroll:Oh()});s(u.current,u,!0);const m=rn({},DS(r.value,l,null),{position:u.position+1},d);s(l,m,!1),r.value=l}return{location:r,state:i,push:a,replace:o}}function k7(n){n=E7(n);const e=N7(n),t=M7(n,e.state,e.location,e.replace);function r(s,o=!0){o||t.pauseListeners(),history.go(s)}const i=rn({location:"",base:n,go:r,createHref:x7.bind(null,n)},e,t);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>e.state.value}),i}function I7(n){return typeof n=="string"||n&&typeof n=="object"}function H3(n){return typeof n=="string"||typeof n=="symbol"}const q3=Symbol("");var LS;(function(n){n[n.aborted=4]="aborted",n[n.cancelled=8]="cancelled",n[n.duplicated=16]="duplicated"})(LS||(LS={}));function wl(n,e){return rn(new Error,{type:n,[q3]:!0},e)}function ds(n,e){return n instanceof Error&&q3 in n&&(e==null||!!(n.type&e))}const PS="[^/]+?",O7={sensitive:!1,strict:!1,start:!0,end:!0},D7=/[.+*?^${}()[\]/\\]/g;function L7(n,e){const t=rn({},O7,e),r=[];let i=t.start?"^":"";const s=[];for(const d of n){const u=d.length?[]:[90];t.strict&&!d.length&&(i+="/");for(let m=0;me.length?e.length===1&&e[0]===80?1:-1:0}function Y3(n,e){let t=0;const r=n.score,i=e.score;for(;t0&&e[e.length-1]<0}const F7={type:0,value:""},U7=/[a-zA-Z0-9_]/;function B7(n){if(!n)return[[]];if(n==="/")return[[F7]];if(!n.startsWith("/"))throw new Error(`Invalid path "${n}"`);function e(g){throw new Error(`ERR (${t})/"${d}": ${g}`)}let t=0,r=t;const i=[];let s;function o(){s&&i.push(s),s=[]}let a=0,l,d="",u="";function m(){d&&(t===0?s.push({type:0,value:d}):t===1||t===2||t===3?(s.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:d,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),d="")}function f(){d+=l}for(;a{o(E)}:Gc}function o(m){if(H3(m)){const f=r.get(m);f&&(r.delete(m),t.splice(t.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=t.indexOf(m);f>-1&&(t.splice(f,1),m.record.name&&r.delete(m.record.name),m.children.forEach(o),m.alias.forEach(o))}}function a(){return t}function l(m){const f=q7(m,t);t.splice(f,0,m),m.record.name&&!GS(m)&&r.set(m.record.name,m)}function d(m,f){let g,h={},v,b;if("name"in m&&m.name){if(g=r.get(m.name),!g)throw wl(1,{location:m});b=g.record.name,h=rn(US(f.params,g.keys.filter(E=>!E.optional).concat(g.parent?g.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),m.params&&US(m.params,g.keys.map(E=>E.name))),v=g.stringify(h)}else if(m.path!=null)v=m.path,g=t.find(E=>E.re.test(v)),g&&(h=g.parse(v),b=g.record.name);else{if(g=f.name?r.get(f.name):t.find(E=>E.re.test(f.path)),!g)throw wl(1,{location:m,currentLocation:f});b=g.record.name,h=rn({},f.params,m.params),v=g.stringify(h)}const _=[];let y=g;for(;y;)_.unshift(y.record),y=y.parent;return{name:b,path:v,params:h,matched:_,meta:H7(_)}}n.forEach(m=>s(m));function u(){t.length=0,r.clear()}return{addRoute:s,resolve:d,removeRoute:o,clearRoutes:u,getRoutes:a,getRecordMatcher:i}}function US(n,e){const t={};for(const r of e)r in n&&(t[r]=n[r]);return t}function BS(n){const e={path:n.path,redirect:n.redirect,name:n.name,meta:n.meta||{},aliasOf:n.aliasOf,beforeEnter:n.beforeEnter,props:V7(n),children:n.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in n?n.components||null:n.component&&{default:n.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function V7(n){const e={},t=n.props||!1;if("component"in n)e.default=t;else for(const r in n.components)e[r]=typeof t=="object"?t[r]:t;return e}function GS(n){for(;n;){if(n.record.aliasOf)return!0;n=n.parent}return!1}function H7(n){return n.reduce((e,t)=>rn(e,t.meta),{})}function zS(n,e){const t={};for(const r in n)t[r]=r in e?e[r]:n[r];return t}function q7(n,e){let t=0,r=e.length;for(;t!==r;){const s=t+r>>1;Y3(n,e[s])<0?r=s:t=s+1}const i=Y7(n);return i&&(r=e.lastIndexOf(i,r-1)),r}function Y7(n){let e=n;for(;e=e.parent;)if($3(e)&&Y3(n,e)===0)return e}function $3({record:n}){return!!(n.name||n.components&&Object.keys(n.components).length||n.redirect)}function $7(n){const e={};if(n===""||n==="?")return e;const r=(n[0]==="?"?n.slice(1):n).split("&");for(let i=0;is&&e1(s)):[r&&e1(r)]).forEach(s=>{s!==void 0&&(e+=(e.length?"&":"")+t,s!=null&&(e+="="+s))})}return e}function W7(n){const e={};for(const t in n){const r=n[t];r!==void 0&&(e[t]=ki(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return e}const K7=Symbol(""),HS=Symbol(""),Tv=Symbol(""),wv=Symbol(""),n1=Symbol("");function _c(){let n=[];function e(r){return n.push(r),()=>{const i=n.indexOf(r);i>-1&&n.splice(i,1)}}function t(){n=[]}return{add:e,list:()=>n.slice(),reset:t}}function ao(n,e,t,r,i,s=o=>o()){const o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((a,l)=>{const d=f=>{f===!1?l(wl(4,{from:t,to:e})):f instanceof Error?l(f):I7(f)?l(wl(2,{from:e,to:f})):(o&&r.enterCallbacks[i]===o&&typeof f=="function"&&o.push(f),a())},u=s(()=>n.call(r&&r.instances[i],e,t,d));let m=Promise.resolve(u);n.length<3&&(m=m.then(d)),m.catch(f=>l(f))})}function Bm(n,e,t,r,i=s=>s()){const s=[];for(const o of n)for(const a in o.components){let l=o.components[a];if(!(e!=="beforeRouteEnter"&&!o.instances[a]))if(L3(l)){const u=(l.__vccOpts||l)[e];u&&s.push(ao(u,t,r,o,a,i))}else{let d=l();s.push(()=>d.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const m=t7(u)?u.default:u;o.mods[a]=u,o.components[a]=m;const g=(m.__vccOpts||m)[e];return g&&ao(g,t,r,o,a,i)()}))}}return s}function qS(n){const e=Gr(Tv),t=Gr(wv),r=mt(()=>{const l=Pt(n.to);return e.resolve(l)}),i=mt(()=>{const{matched:l}=r.value,{length:d}=l,u=l[d-1],m=t.matched;if(!u||!m.length)return-1;const f=m.findIndex(Tl.bind(null,u));if(f>-1)return f;const g=YS(l[d-2]);return d>1&&YS(u)===g&&m[m.length-1].path!==g?m.findIndex(Tl.bind(null,l[d-2])):f}),s=mt(()=>i.value>-1&&X7(t.params,r.value.params)),o=mt(()=>i.value>-1&&i.value===t.matched.length-1&&z3(t.params,r.value.params));function a(l={}){return Q7(l)?e[Pt(n.replace)?"replace":"push"](Pt(n.to)).catch(Gc):Promise.resolve()}return{route:r,href:mt(()=>r.value.href),isActive:s,isExactActive:o,navigate:a}}const j7=Pn({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:qS,setup(n,{slots:e}){const t=yr(qS(n)),{options:r}=Gr(Tv),i=mt(()=>({[$S(n.activeClass,r.linkActiveClass,"router-link-active")]:t.isActive,[$S(n.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:t.isExactActive}));return()=>{const s=e.default&&e.default(t);return n.custom?s:mv("a",{"aria-current":t.isExactActive?n.ariaCurrentValue:null,href:t.href,onClick:t.navigate,class:i.value},s)}}}),Ip=j7;function Q7(n){if(!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)&&!n.defaultPrevented&&!(n.button!==void 0&&n.button!==0)){if(n.currentTarget&&n.currentTarget.getAttribute){const e=n.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return n.preventDefault&&n.preventDefault(),!0}}function X7(n,e){for(const t in e){const r=e[t],i=n[t];if(typeof r=="string"){if(r!==i)return!1}else if(!ki(i)||i.length!==r.length||r.some((s,o)=>s!==i[o]))return!1}return!0}function YS(n){return n?n.aliasOf?n.aliasOf.path:n.path:""}const $S=(n,e,t)=>n??e??t,Z7=Pn({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(n,{attrs:e,slots:t}){const r=Gr(n1),i=mt(()=>n.route||r.value),s=Gr(HS,0),o=mt(()=>{let d=Pt(s);const{matched:u}=i.value;let m;for(;(m=u[d])&&!m.components;)d++;return d}),a=mt(()=>i.value.matched[o.value]);ml(HS,mt(()=>o.value+1)),ml(K7,a),ml(n1,i);const l=yt();return Zn(()=>[l.value,a.value,n.name],([d,u,m],[f,g,h])=>{u&&(u.instances[m]=d,g&&g!==u&&d&&d===f&&(u.leaveGuards.size||(u.leaveGuards=g.leaveGuards),u.updateGuards.size||(u.updateGuards=g.updateGuards))),d&&u&&(!g||!Tl(u,g)||!f)&&(u.enterCallbacks[m]||[]).forEach(v=>v(d))},{flush:"post"}),()=>{const d=i.value,u=n.name,m=a.value,f=m&&m.components[u];if(!f)return WS(t.default,{Component:f,route:d});const g=m.props[u],h=g?g===!0?d.params:typeof g=="function"?g(d):g:null,b=mv(f,rn({},h,e,{onVnodeUnmounted:_=>{_.component.isUnmounted&&(m.instances[u]=null)},ref:l}));return WS(t.default,{Component:b,route:d})||b}}});function WS(n,e){if(!n)return null;const t=n(e);return t.length===1?t[0]:t}const W3=Z7;function J7(n){const e=z7(n.routes,n),t=n.parseQuery||$7,r=n.stringifyQuery||VS,i=n.history,s=_c(),o=_c(),a=_c(),l=j5(Ks);let d=Ks;rl&&n.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Fm.bind(null,te=>""+te),m=Fm.bind(null,m7),f=Fm.bind(null,ld);function g(te,ye){let Se,Oe;return H3(te)?(Se=e.getRecordMatcher(te),Oe=ye):Oe=te,e.addRoute(Oe,Se)}function h(te){const ye=e.getRecordMatcher(te);ye&&e.removeRoute(ye)}function v(){return e.getRoutes().map(te=>te.record)}function b(te){return!!e.getRecordMatcher(te)}function _(te,ye){if(ye=rn({},ye||l.value),typeof te=="string"){const G=Um(t,te,ye.path),oe=e.resolve({path:G.path},ye),ge=i.createHref(G.fullPath);return rn(G,oe,{params:f(oe.params),hash:ld(G.hash),redirectedFrom:void 0,href:ge})}let Se;if(te.path!=null)Se=rn({},te,{path:Um(t,te.path,ye.path).path});else{const G=rn({},te.params);for(const oe in G)G[oe]==null&&delete G[oe];Se=rn({},te,{params:m(G)}),ye.params=m(ye.params)}const Oe=e.resolve(Se,ye),Ye=te.hash||"";Oe.params=u(f(Oe.params));const le=_7(r,rn({},te,{hash:u7(Ye),path:Oe.path})),V=i.createHref(le);return rn({fullPath:le,hash:Ye,query:r===VS?W7(te.query):te.query||{}},Oe,{redirectedFrom:void 0,href:V})}function y(te){return typeof te=="string"?Um(t,te,l.value.path):rn({},te)}function E(te,ye){if(d!==te)return wl(8,{from:ye,to:te})}function x(te){return N(te)}function A(te){return x(rn(y(te),{replace:!0}))}function w(te){const ye=te.matched[te.matched.length-1];if(ye&&ye.redirect){const{redirect:Se}=ye;let Oe=typeof Se=="function"?Se(te):Se;return typeof Oe=="string"&&(Oe=Oe.includes("?")||Oe.includes("#")?Oe=y(Oe):{path:Oe},Oe.params={}),rn({query:te.query,hash:te.hash,params:Oe.path!=null?{}:te.params},Oe)}}function N(te,ye){const Se=d=_(te),Oe=l.value,Ye=te.state,le=te.force,V=te.replace===!0,G=w(Se);if(G)return N(rn(y(G),{state:typeof G=="object"?rn({},Ye,G.state):Ye,force:le,replace:V}),ye||Se);const oe=Se;oe.redirectedFrom=ye;let ge;return!le&&b7(r,Oe,Se)&&(ge=wl(16,{to:oe,from:Oe}),xe(Oe,Oe,!0,!1)),(ge?Promise.resolve(ge):k(oe,Oe)).catch(Ee=>ds(Ee)?ds(Ee,2)?Ee:ue(Ee):Z(Ee,oe,Oe)).then(Ee=>{if(Ee){if(ds(Ee,2))return N(rn({replace:V},y(Ee.to),{state:typeof Ee.to=="object"?rn({},Ye,Ee.to.state):Ye,force:le}),ye||oe)}else Ee=q(oe,Oe,!0,V,Ye);return H(oe,Oe,Ee),Ee})}function L(te,ye){const Se=E(te,ye);return Se?Promise.reject(Se):Promise.resolve()}function C(te){const ye=Ae.values().next().value;return ye&&typeof ye.runWithContext=="function"?ye.runWithContext(te):te()}function k(te,ye){let Se;const[Oe,Ye,le]=e8(te,ye);Se=Bm(Oe.reverse(),"beforeRouteLeave",te,ye);for(const G of Oe)G.leaveGuards.forEach(oe=>{Se.push(ao(oe,te,ye))});const V=L.bind(null,te,ye);return Se.push(V),ze(Se).then(()=>{Se=[];for(const G of s.list())Se.push(ao(G,te,ye));return Se.push(V),ze(Se)}).then(()=>{Se=Bm(Ye,"beforeRouteUpdate",te,ye);for(const G of Ye)G.updateGuards.forEach(oe=>{Se.push(ao(oe,te,ye))});return Se.push(V),ze(Se)}).then(()=>{Se=[];for(const G of le)if(G.beforeEnter)if(ki(G.beforeEnter))for(const oe of G.beforeEnter)Se.push(ao(oe,te,ye));else Se.push(ao(G.beforeEnter,te,ye));return Se.push(V),ze(Se)}).then(()=>(te.matched.forEach(G=>G.enterCallbacks={}),Se=Bm(le,"beforeRouteEnter",te,ye,C),Se.push(V),ze(Se))).then(()=>{Se=[];for(const G of o.list())Se.push(ao(G,te,ye));return Se.push(V),ze(Se)}).catch(G=>ds(G,8)?G:Promise.reject(G))}function H(te,ye,Se){a.list().forEach(Oe=>C(()=>Oe(te,ye,Se)))}function q(te,ye,Se,Oe,Ye){const le=E(te,ye);if(le)return le;const V=ye===Ks,G=rl?history.state:{};Se&&(Oe||V?i.replace(te.fullPath,rn({scroll:V&&G&&G.scroll},Ye)):i.push(te.fullPath,Ye)),l.value=te,xe(te,ye,Se,V),ue()}let ie;function D(){ie||(ie=i.listen((te,ye,Se)=>{if(!Fe.listening)return;const Oe=_(te),Ye=w(Oe);if(Ye){N(rn(Ye,{replace:!0}),Oe).catch(Gc);return}d=Oe;const le=l.value;rl&&C7(OS(le.fullPath,Se.delta),Oh()),k(Oe,le).catch(V=>ds(V,12)?V:ds(V,2)?(N(V.to,Oe).then(G=>{ds(G,20)&&!Se.delta&&Se.type===cd.pop&&i.go(-1,!1)}).catch(Gc),Promise.reject()):(Se.delta&&i.go(-Se.delta,!1),Z(V,Oe,le))).then(V=>{V=V||q(Oe,le,!1),V&&(Se.delta&&!ds(V,8)?i.go(-Se.delta,!1):Se.type===cd.pop&&ds(V,20)&&i.go(-1,!1)),H(Oe,le,V)}).catch(Gc)}))}let $=_c(),K=_c(),B;function Z(te,ye,Se){ue(te);const Oe=K.list();return Oe.length?Oe.forEach(Ye=>Ye(te,ye,Se)):console.error(te),Promise.reject(te)}function ce(){return B&&l.value!==Ks?Promise.resolve():new Promise((te,ye)=>{$.add([te,ye])})}function ue(te){return B||(B=!te,D(),$.list().forEach(([ye,Se])=>te?Se(te):ye()),$.reset()),te}function xe(te,ye,Se,Oe){const{scrollBehavior:Ye}=n;if(!rl||!Ye)return Promise.resolve();const le=!Se&&A7(OS(te.fullPath,0))||(Oe||!Se)&&history.state&&history.state.scroll||null;return We().then(()=>Ye(te,ye,le)).then(V=>V&&w7(V)).catch(V=>Z(V,te,ye))}const Ce=te=>i.go(te);let me;const Ae=new Set,Fe={currentRoute:l,listening:!0,addRoute:g,removeRoute:h,clearRoutes:e.clearRoutes,hasRoute:b,getRoutes:v,resolve:_,options:n,push:x,replace:A,go:Ce,back:()=>Ce(-1),forward:()=>Ce(1),beforeEach:s.add,beforeResolve:o.add,afterEach:a.add,onError:K.add,isReady:ce,install(te){const ye=this;te.component("RouterLink",Ip),te.component("RouterView",W3),te.config.globalProperties.$router=ye,Object.defineProperty(te.config.globalProperties,"$route",{enumerable:!0,get:()=>Pt(l)}),rl&&!me&&l.value===Ks&&(me=!0,x(i.location).catch(Ye=>{}));const Se={};for(const Ye in Ks)Object.defineProperty(Se,Ye,{get:()=>l.value[Ye],enumerable:!0});te.provide(Tv,ye),te.provide(wv,ZM(Se)),te.provide(n1,l);const Oe=te.unmount;Ae.add(te),te.unmount=function(){Ae.delete(te),Ae.size<1&&(d=Ks,ie&&ie(),ie=null,l.value=Ks,me=!1,B=!1),Oe()}}};function ze(te){return te.reduce((ye,Se)=>ye.then(()=>C(Se)),Promise.resolve())}return Fe}function e8(n,e){const t=[],r=[],i=[],s=Math.max(e.matched.length,n.matched.length);for(let o=0;oTl(d,a))?r.push(a):t.push(a));const l=n.matched[o];l&&(e.matched.find(d=>Tl(d,l))||i.push(l))}return[t,r,i]}function t8(n){return Gr(wv)}const n8="modulepreload",r8=function(n){return"/"+n},KS={},Gm=function(e,t,r){let i=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.allSettled(t.map(l=>{if(l=r8(l),l in KS)return;KS[l]=!0;const d=l.endsWith(".css"),u=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const m=document.createElement("link");if(m.rel=d?"stylesheet":n8,d||(m.as="script"),m.crossOrigin="",m.href=l,a&&m.setAttribute("nonce",a),document.head.appendChild(m),d)return new Promise((f,g)=>{m.addEventListener("load",f),m.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return i.then(o=>{for(const a of o||[])a.status==="rejected"&&s(a.reason);return e().catch(s)})},i8={class:"sticky top-0 z-50 w-full bg-transparent"},s8={class:"container mx-auto px-4"},o8={class:"flex items-center justify-between h-16"},a8={class:"hidden md:block"},l8={class:"flex items-center space-x-4"},c8={class:"flex items-center space-x-1"},d8={key:0,class:"ml-1 text-xs","aria-hidden":"true"},u8={class:"md:hidden"},p8={class:"px-2 pt-2 pb-3 space-y-1"},h8={class:"flex items-center justify-between"},m8={key:0,class:"text-xs","aria-hidden":"true"},f8={name:"Navigation"},g8=Object.assign(f8,{setup(n){const e=t8(),t=yt(0),r=yt([]),i=yt(!1),s=[{active:!0,route:"discussions",text:"Discussions"},{active:!0,route:"playground",text:"Playground"},{active:!0,route:"PersonalitiesZoo",text:"Personalities Zoo"},{active:!0,route:"AppsZoo",text:"Apps Zoo"},{active:!1,route:"AutoSD",text:"Auto111-SD",condition:()=>Ti.state.config.enable_sd_service||Ti.state.config.active_tti_service==="autosd"},{active:!1,route:"ComfyUI",text:"ComfyUI",condition:()=>Ti.state.config.enable_comfyui_service||Ti.state.config.active_tti_service==="comfyui"},{active:!1,route:"interactive",text:"Interactive",condition:()=>Ti.state.config.active_tts_service!=="None"&&Ti.state.config.active_stt_service!=="None"},{active:!0,route:"settings",text:"Settings"},{active:!0,route:"help_view",text:"Help"}],o=mt(()=>Ti.state.ready?s.filter(u=>u.condition?u.condition():u.active):s.filter(u=>u.active));es(()=>{a()}),Zn(()=>e.name,a);function a(){const u=o.value.findIndex(m=>m.route===e.name);u!==-1&&(t.value=u)}function l(u){return e.name===u}function d(u){t.value=u}return(u,m)=>(T(),M("div",i8,[c("nav",s8,[c("div",o8,[c("div",a8,[c("div",l8,[(T(!0),M(je,null,at(o.value,(f,g)=>(T(),Tt(Pt(Ip),{key:g,to:{name:f.route},class:qe(["px-3 py-2 rounded-md text-sm font-medium transition-colors duration-200 ease-in-out hover:bg-gray-100 dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300",{"bg-blue-500 text-white hover:bg-blue-600 dark:bg-blue-600 dark:hover:bg-blue-700":l(f.route)}]),onClick:h=>d(g),ref_for:!0,ref_key:"menuItems",ref:r},{default:Ge(()=>[c("div",c8,[pt(X(f.text)+" ",1),l(f.route)?(T(),M("span",d8," ✨ ")):Y("",!0)])]),_:2},1032,["to","class","onClick"]))),128))])]),c("div",u8,[c("button",{onClick:m[0]||(m[0]=f=>i.value=!i.value),class:"inline-flex items-center justify-center p-2 rounded-md text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 focus:outline-none"},[(T(),M("svg",{class:qe(["h-6 w-6",{hidden:i.value,block:!i.value}]),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},m[1]||(m[1]=[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h16"},null,-1)]),2)),(T(),M("svg",{class:qe(["h-6 w-6",{block:i.value,hidden:!i.value}]),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},m[2]||(m[2]=[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1)]),2))])])]),c("div",{class:qe([{block:i.value,hidden:!i.value},"md:hidden"])},[c("div",p8,[(T(!0),M(je,null,at(o.value,(f,g)=>(T(),Tt(Pt(Ip),{key:g,to:{name:f.route},class:qe(["block px-3 py-2 rounded-md text-base font-medium transition-colors duration-200 ease-in-out text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700",{"bg-blue-500 text-white hover:bg-blue-600 dark:bg-blue-600 dark:hover:bg-blue-700":l(f.route)}]),onClick:h=>{d(g),i.value=!1}},{default:Ge(()=>[c("div",h8,[pt(X(f.text)+" ",1),l(f.route)?(T(),M("span",m8," ✨ ")):Y("",!0)])]),_:2},1032,["to","class","onClick"]))),128))])],2)])]))}}),bt=(n,e)=>{const t=n.__vccOpts||n;for(const[r,i]of e)t[r]=i;return t},_8={props:{href:{type:String,default:"#"},icon:{type:String,required:!0},title:{type:String,default:""}},methods:{onClick(n){this.href==="#"&&(n.preventDefault(),this.$emit("click"))}}},b8=["href","title"],v8=["data-feather"];function y8(n,e,t,r,i,s){return T(),M("a",{href:t.href,onClick:e[0]||(e[0]=(...o)=>s.onClick&&s.onClick(...o)),class:"text-2xl hover:text-primary transition duration-150 ease-in-out",title:t.title},[c("i",{"data-feather":t.icon},null,8,v8)],8,b8)}const K3=bt(_8,[["render",y8]]),E8={props:{href:{type:String,required:!0},icon:{type:String,required:!0},title:{type:String,default:"Visit our social media"}}},S8=["href","title"],x8=["data-feather"],T8={key:1,class:"w-6 h-6 fill-current",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},w8={key:2,class:"w-6 h-6 fill-current",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function C8(n,e,t,r,i,s){return T(),M("a",{href:t.href,target:"_blank",class:"text-2xl hover:text-primary transition duration-150 ease-in-out",title:t.title},[t.icon!=="x"&&t.icon!=="discord"?(T(),M("i",{key:0,"data-feather":t.icon},null,8,x8)):t.icon==="x"?(T(),M("svg",T8,e[0]||(e[0]=[c("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"},null,-1)]))):t.icon==="discord"?(T(),M("svg",w8,e[1]||(e[1]=[c("path",{d:"M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"},null,-1)]))):Y("",!0)],8,S8)}const j3=bt(E8,[["render",C8]]);var Q3=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ra(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function X3(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var i=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return n[r]}})}),t}var Z3={exports:{}};(function(n,e){(function(r,i){n.exports=i()})(typeof self<"u"?self:Q3,function(){return function(t){var r={};function i(s){if(r[s])return r[s].exports;var o=r[s]={i:s,l:!1,exports:{}};return t[s].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=t,i.c=r,i.d=function(s,o,a){i.o(s,o)||Object.defineProperty(s,o,{configurable:!1,enumerable:!0,get:a})},i.r=function(s){Object.defineProperty(s,"__esModule",{value:!0})},i.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return i.d(o,"a",o),o},i.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},i.p="",i(i.s=0)}({"./dist/icons.json":function(t){t.exports={activity:'',airplay:'',"alert-circle":'',"alert-octagon":'',"alert-triangle":'',"align-center":'',"align-justify":'',"align-left":'',"align-right":'',anchor:'',aperture:'',archive:'',"arrow-down-circle":'',"arrow-down-left":'',"arrow-down-right":'',"arrow-down":'',"arrow-left-circle":'',"arrow-left":'',"arrow-right-circle":'',"arrow-right":'',"arrow-up-circle":'',"arrow-up-left":'',"arrow-up-right":'',"arrow-up":'',"at-sign":'',award:'',"bar-chart-2":'',"bar-chart":'',"battery-charging":'',battery:'',"bell-off":'',bell:'',bluetooth:'',bold:'',"book-open":'',book:'',bookmark:'',box:'',briefcase:'',calendar:'',"camera-off":'',camera:'',cast:'',"check-circle":'',"check-square":'',check:'',"chevron-down":'',"chevron-left":'',"chevron-right":'',"chevron-up":'',"chevrons-down":'',"chevrons-left":'',"chevrons-right":'',"chevrons-up":'',chrome:'',circle:'',clipboard:'',clock:'',"cloud-drizzle":'',"cloud-lightning":'',"cloud-off":'',"cloud-rain":'',"cloud-snow":'',cloud:'',code:'',codepen:'',codesandbox:'',coffee:'',columns:'',command:'',compass:'',copy:'',"corner-down-left":'',"corner-down-right":'',"corner-left-down":'',"corner-left-up":'',"corner-right-down":'',"corner-right-up":'',"corner-up-left":'',"corner-up-right":'',cpu:'',"credit-card":'',crop:'',crosshair:'',database:'',delete:'',disc:'',"divide-circle":'',"divide-square":'',divide:'',"dollar-sign":'',"download-cloud":'',download:'',dribbble:'',droplet:'',"edit-2":'',"edit-3":'',edit:'',"external-link":'',"eye-off":'',eye:'',facebook:'',"fast-forward":'',feather:'',figma:'',"file-minus":'',"file-plus":'',"file-text":'',file:'',film:'',filter:'',flag:'',"folder-minus":'',"folder-plus":'',folder:'',framer:'',frown:'',gift:'',"git-branch":'',"git-commit":'',"git-merge":'',"git-pull-request":'',github:'',gitlab:'',globe:'',grid:'',"hard-drive":'',hash:'',headphones:'',heart:'',"help-circle":'',hexagon:'',home:'',image:'',inbox:'',info:'',instagram:'',italic:'',key:'',layers:'',layout:'',"life-buoy":'',"link-2":'',link:'',linkedin:'',list:'',loader:'',lock:'',"log-in":'',"log-out":'',mail:'',"map-pin":'',map:'',"maximize-2":'',maximize:'',meh:'',menu:'',"message-circle":'',"message-square":'',"mic-off":'',mic:'',"minimize-2":'',minimize:'',"minus-circle":'',"minus-square":'',minus:'',monitor:'',moon:'',"more-horizontal":'',"more-vertical":'',"mouse-pointer":'',move:'',music:'',"navigation-2":'',navigation:'',octagon:'',package:'',paperclip:'',"pause-circle":'',pause:'',"pen-tool":'',percent:'',"phone-call":'',"phone-forwarded":'',"phone-incoming":'',"phone-missed":'',"phone-off":'',"phone-outgoing":'',phone:'',"pie-chart":'',"play-circle":'',play:'',"plus-circle":'',"plus-square":'',plus:'',pocket:'',power:'',printer:'',radio:'',"refresh-ccw":'',"refresh-cw":'',repeat:'',rewind:'',"rotate-ccw":'',"rotate-cw":'',rss:'',save:'',scissors:'',search:'',send:'',server:'',settings:'',"share-2":'',share:'',"shield-off":'',shield:'',"shopping-bag":'',"shopping-cart":'',shuffle:'',sidebar:'',"skip-back":'',"skip-forward":'',slack:'',slash:'',sliders:'',smartphone:'',smile:'',speaker:'',square:'',star:'',"stop-circle":'',sun:'',sunrise:'',sunset:'',table:'',tablet:'',tag:'',target:'',terminal:'',thermometer:'',"thumbs-down":'',"thumbs-up":'',"toggle-left":'',"toggle-right":'',tool:'',"trash-2":'',trash:'',trello:'',"trending-down":'',"trending-up":'',triangle:'',truck:'',tv:'',twitch:'',twitter:'',type:'',umbrella:'',underline:'',unlock:'',"upload-cloud":'',upload:'',"user-check":'',"user-minus":'',"user-plus":'',"user-x":'',user:'',users:'',"video-off":'',video:'',voicemail:'',"volume-1":'',"volume-2":'',"volume-x":'',volume:'',watch:'',"wifi-off":'',wifi:'',wind:'',"x-circle":'',"x-octagon":'',"x-square":'',x:'',youtube:'',"zap-off":'',zap:'',"zoom-in":'',"zoom-out":''}},"./node_modules/classnames/dedupe.js":function(t,r,i){var s,o;/*! Copyright (c) 2016 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */(function(){var a=function(){function l(){}l.prototype=Object.create(null);function d(_,y){for(var E=y.length,x=0;x1?arguments[1]:void 0,y=_!==void 0,E=0,x=m(h),A,w,N,L;if(y&&(_=s(_,b>2?arguments[2]:void 0,2)),x!=null&&!(v==Array&&l(x)))for(L=x.call(h),w=new v;!(N=L.next()).done;E++)u(w,E,y?a(L,_,[N.value,E],!0):N.value);else for(A=d(h.length),w=new v(A);A>E;E++)u(w,E,y?_(h[E],E):h[E]);return w.length=E,w}},"./node_modules/core-js/internals/array-includes.js":function(t,r,i){var s=i("./node_modules/core-js/internals/to-indexed-object.js"),o=i("./node_modules/core-js/internals/to-length.js"),a=i("./node_modules/core-js/internals/to-absolute-index.js");t.exports=function(l){return function(d,u,m){var f=s(d),g=o(f.length),h=a(m,g),v;if(l&&u!=u){for(;g>h;)if(v=f[h++],v!=v)return!0}else for(;g>h;h++)if((l||h in f)&&f[h]===u)return l||h||0;return!l&&-1}}},"./node_modules/core-js/internals/bind-context.js":function(t,r,i){var s=i("./node_modules/core-js/internals/a-function.js");t.exports=function(o,a,l){if(s(o),a===void 0)return o;switch(l){case 0:return function(){return o.call(a)};case 1:return function(d){return o.call(a,d)};case 2:return function(d,u){return o.call(a,d,u)};case 3:return function(d,u,m){return o.call(a,d,u,m)}}return function(){return o.apply(a,arguments)}}},"./node_modules/core-js/internals/call-with-safe-iteration-closing.js":function(t,r,i){var s=i("./node_modules/core-js/internals/an-object.js");t.exports=function(o,a,l,d){try{return d?a(s(l)[0],l[1]):a(l)}catch(m){var u=o.return;throw u!==void 0&&s(u.call(o)),m}}},"./node_modules/core-js/internals/check-correctness-of-iteration.js":function(t,r,i){var s=i("./node_modules/core-js/internals/well-known-symbol.js"),o=s("iterator"),a=!1;try{var l=0,d={next:function(){return{done:!!l++}},return:function(){a=!0}};d[o]=function(){return this},Array.from(d,function(){throw 2})}catch{}t.exports=function(u,m){if(!m&&!a)return!1;var f=!1;try{var g={};g[o]=function(){return{next:function(){return{done:f=!0}}}},u(g)}catch{}return f}},"./node_modules/core-js/internals/classof-raw.js":function(t,r){var i={}.toString;t.exports=function(s){return i.call(s).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(t,r,i){var s=i("./node_modules/core-js/internals/classof-raw.js"),o=i("./node_modules/core-js/internals/well-known-symbol.js"),a=o("toStringTag"),l=s(function(){return arguments}())=="Arguments",d=function(u,m){try{return u[m]}catch{}};t.exports=function(u){var m,f,g;return u===void 0?"Undefined":u===null?"Null":typeof(f=d(m=Object(u),a))=="string"?f:l?s(m):(g=s(m))=="Object"&&typeof m.callee=="function"?"Arguments":g}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(t,r,i){var s=i("./node_modules/core-js/internals/has.js"),o=i("./node_modules/core-js/internals/own-keys.js"),a=i("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),l=i("./node_modules/core-js/internals/object-define-property.js");t.exports=function(d,u){for(var m=o(u),f=l.f,g=a.f,h=0;h",A="java"+E+":",w;for(b.style.display="none",d.appendChild(b),b.src=String(A),w=b.contentWindow.document,w.open(),w.write(y+E+x+"document.F=Object"+y+"/"+E+x),w.close(),v=w.F;_--;)delete v[g][a[_]];return v()};t.exports=Object.create||function(_,y){var E;return _!==null?(h[g]=s(_),E=new h,h[g]=null,E[f]=_):E=v(),y===void 0?E:o(E,y)},l[f]=!0},"./node_modules/core-js/internals/object-define-properties.js":function(t,r,i){var s=i("./node_modules/core-js/internals/descriptors.js"),o=i("./node_modules/core-js/internals/object-define-property.js"),a=i("./node_modules/core-js/internals/an-object.js"),l=i("./node_modules/core-js/internals/object-keys.js");t.exports=s?Object.defineProperties:function(u,m){a(u);for(var f=l(m),g=f.length,h=0,v;g>h;)o.f(u,v=f[h++],m[v]);return u}},"./node_modules/core-js/internals/object-define-property.js":function(t,r,i){var s=i("./node_modules/core-js/internals/descriptors.js"),o=i("./node_modules/core-js/internals/ie8-dom-define.js"),a=i("./node_modules/core-js/internals/an-object.js"),l=i("./node_modules/core-js/internals/to-primitive.js"),d=Object.defineProperty;r.f=s?d:function(m,f,g){if(a(m),f=l(f,!0),a(g),o)try{return d(m,f,g)}catch{}if("get"in g||"set"in g)throw TypeError("Accessors not supported");return"value"in g&&(m[f]=g.value),m}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(t,r,i){var s=i("./node_modules/core-js/internals/descriptors.js"),o=i("./node_modules/core-js/internals/object-property-is-enumerable.js"),a=i("./node_modules/core-js/internals/create-property-descriptor.js"),l=i("./node_modules/core-js/internals/to-indexed-object.js"),d=i("./node_modules/core-js/internals/to-primitive.js"),u=i("./node_modules/core-js/internals/has.js"),m=i("./node_modules/core-js/internals/ie8-dom-define.js"),f=Object.getOwnPropertyDescriptor;r.f=s?f:function(h,v){if(h=l(h),v=d(v,!0),m)try{return f(h,v)}catch{}if(u(h,v))return a(!o.f.call(h,v),h[v])}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(t,r,i){var s=i("./node_modules/core-js/internals/object-keys-internal.js"),o=i("./node_modules/core-js/internals/enum-bug-keys.js"),a=o.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(d){return s(d,a)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(t,r){r.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(t,r,i){var s=i("./node_modules/core-js/internals/has.js"),o=i("./node_modules/core-js/internals/to-object.js"),a=i("./node_modules/core-js/internals/shared-key.js"),l=i("./node_modules/core-js/internals/correct-prototype-getter.js"),d=a("IE_PROTO"),u=Object.prototype;t.exports=l?Object.getPrototypeOf:function(m){return m=o(m),s(m,d)?m[d]:typeof m.constructor=="function"&&m instanceof m.constructor?m.constructor.prototype:m instanceof Object?u:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(t,r,i){var s=i("./node_modules/core-js/internals/has.js"),o=i("./node_modules/core-js/internals/to-indexed-object.js"),a=i("./node_modules/core-js/internals/array-includes.js"),l=i("./node_modules/core-js/internals/hidden-keys.js"),d=a(!1);t.exports=function(u,m){var f=o(u),g=0,h=[],v;for(v in f)!s(l,v)&&s(f,v)&&h.push(v);for(;m.length>g;)s(f,v=m[g++])&&(~d(h,v)||h.push(v));return h}},"./node_modules/core-js/internals/object-keys.js":function(t,r,i){var s=i("./node_modules/core-js/internals/object-keys-internal.js"),o=i("./node_modules/core-js/internals/enum-bug-keys.js");t.exports=Object.keys||function(l){return s(l,o)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(t,r,i){var s={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,a=o&&!s.call({1:2},1);r.f=a?function(d){var u=o(this,d);return!!u&&u.enumerable}:s},"./node_modules/core-js/internals/object-set-prototype-of.js":function(t,r,i){var s=i("./node_modules/core-js/internals/validate-set-prototype-of-arguments.js");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var o=!1,a={},l;try{l=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,l.call(a,[]),o=a instanceof Array}catch{}return function(u,m){return s(u,m),o?l.call(u,m):u.__proto__=m,u}}():void 0)},"./node_modules/core-js/internals/own-keys.js":function(t,r,i){var s=i("./node_modules/core-js/internals/global.js"),o=i("./node_modules/core-js/internals/object-get-own-property-names.js"),a=i("./node_modules/core-js/internals/object-get-own-property-symbols.js"),l=i("./node_modules/core-js/internals/an-object.js"),d=s.Reflect;t.exports=d&&d.ownKeys||function(m){var f=o.f(l(m)),g=a.f;return g?f.concat(g(m)):f}},"./node_modules/core-js/internals/path.js":function(t,r,i){t.exports=i("./node_modules/core-js/internals/global.js")},"./node_modules/core-js/internals/redefine.js":function(t,r,i){var s=i("./node_modules/core-js/internals/global.js"),o=i("./node_modules/core-js/internals/shared.js"),a=i("./node_modules/core-js/internals/hide.js"),l=i("./node_modules/core-js/internals/has.js"),d=i("./node_modules/core-js/internals/set-global.js"),u=i("./node_modules/core-js/internals/function-to-string.js"),m=i("./node_modules/core-js/internals/internal-state.js"),f=m.get,g=m.enforce,h=String(u).split("toString");o("inspectSource",function(v){return u.call(v)}),(t.exports=function(v,b,_,y){var E=y?!!y.unsafe:!1,x=y?!!y.enumerable:!1,A=y?!!y.noTargetGet:!1;if(typeof _=="function"&&(typeof b=="string"&&!l(_,"name")&&a(_,"name",b),g(_).source=h.join(typeof b=="string"?b:"")),v===s){x?v[b]=_:d(b,_);return}else E?!A&&v[b]&&(x=!0):delete v[b];x?v[b]=_:a(v,b,_)})(Function.prototype,"toString",function(){return typeof this=="function"&&f(this).source||u.call(this)})},"./node_modules/core-js/internals/require-object-coercible.js":function(t,r){t.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},"./node_modules/core-js/internals/set-global.js":function(t,r,i){var s=i("./node_modules/core-js/internals/global.js"),o=i("./node_modules/core-js/internals/hide.js");t.exports=function(a,l){try{o(s,a,l)}catch{s[a]=l}return l}},"./node_modules/core-js/internals/set-to-string-tag.js":function(t,r,i){var s=i("./node_modules/core-js/internals/object-define-property.js").f,o=i("./node_modules/core-js/internals/has.js"),a=i("./node_modules/core-js/internals/well-known-symbol.js"),l=a("toStringTag");t.exports=function(d,u,m){d&&!o(d=m?d:d.prototype,l)&&s(d,l,{configurable:!0,value:u})}},"./node_modules/core-js/internals/shared-key.js":function(t,r,i){var s=i("./node_modules/core-js/internals/shared.js"),o=i("./node_modules/core-js/internals/uid.js"),a=s("keys");t.exports=function(l){return a[l]||(a[l]=o(l))}},"./node_modules/core-js/internals/shared.js":function(t,r,i){var s=i("./node_modules/core-js/internals/global.js"),o=i("./node_modules/core-js/internals/set-global.js"),a=i("./node_modules/core-js/internals/is-pure.js"),l="__core-js_shared__",d=s[l]||o(l,{});(t.exports=function(u,m){return d[u]||(d[u]=m!==void 0?m:{})})("versions",[]).push({version:"3.1.3",mode:a?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-at.js":function(t,r,i){var s=i("./node_modules/core-js/internals/to-integer.js"),o=i("./node_modules/core-js/internals/require-object-coercible.js");t.exports=function(a,l,d){var u=String(o(a)),m=s(l),f=u.length,g,h;return m<0||m>=f?d?"":void 0:(g=u.charCodeAt(m),g<55296||g>56319||m+1===f||(h=u.charCodeAt(m+1))<56320||h>57343?d?u.charAt(m):g:d?u.slice(m,m+2):(g-55296<<10)+(h-56320)+65536)}},"./node_modules/core-js/internals/to-absolute-index.js":function(t,r,i){var s=i("./node_modules/core-js/internals/to-integer.js"),o=Math.max,a=Math.min;t.exports=function(l,d){var u=s(l);return u<0?o(u+d,0):a(u,d)}},"./node_modules/core-js/internals/to-indexed-object.js":function(t,r,i){var s=i("./node_modules/core-js/internals/indexed-object.js"),o=i("./node_modules/core-js/internals/require-object-coercible.js");t.exports=function(a){return s(o(a))}},"./node_modules/core-js/internals/to-integer.js":function(t,r){var i=Math.ceil,s=Math.floor;t.exports=function(o){return isNaN(o=+o)?0:(o>0?s:i)(o)}},"./node_modules/core-js/internals/to-length.js":function(t,r,i){var s=i("./node_modules/core-js/internals/to-integer.js"),o=Math.min;t.exports=function(a){return a>0?o(s(a),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(t,r,i){var s=i("./node_modules/core-js/internals/require-object-coercible.js");t.exports=function(o){return Object(s(o))}},"./node_modules/core-js/internals/to-primitive.js":function(t,r,i){var s=i("./node_modules/core-js/internals/is-object.js");t.exports=function(o,a){if(!s(o))return o;var l,d;if(a&&typeof(l=o.toString)=="function"&&!s(d=l.call(o))||typeof(l=o.valueOf)=="function"&&!s(d=l.call(o))||!a&&typeof(l=o.toString)=="function"&&!s(d=l.call(o)))return d;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/uid.js":function(t,r){var i=0,s=Math.random();t.exports=function(o){return"Symbol(".concat(o===void 0?"":o,")_",(++i+s).toString(36))}},"./node_modules/core-js/internals/validate-set-prototype-of-arguments.js":function(t,r,i){var s=i("./node_modules/core-js/internals/is-object.js"),o=i("./node_modules/core-js/internals/an-object.js");t.exports=function(a,l){if(o(a),!s(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype")}},"./node_modules/core-js/internals/well-known-symbol.js":function(t,r,i){var s=i("./node_modules/core-js/internals/global.js"),o=i("./node_modules/core-js/internals/shared.js"),a=i("./node_modules/core-js/internals/uid.js"),l=i("./node_modules/core-js/internals/native-symbol.js"),d=s.Symbol,u=o("wks");t.exports=function(m){return u[m]||(u[m]=l&&d[m]||(l?d:a)("Symbol."+m))}},"./node_modules/core-js/modules/es.array.from.js":function(t,r,i){var s=i("./node_modules/core-js/internals/export.js"),o=i("./node_modules/core-js/internals/array-from.js"),a=i("./node_modules/core-js/internals/check-correctness-of-iteration.js"),l=!a(function(d){Array.from(d)});s({target:"Array",stat:!0,forced:l},{from:o})},"./node_modules/core-js/modules/es.string.iterator.js":function(t,r,i){var s=i("./node_modules/core-js/internals/string-at.js"),o=i("./node_modules/core-js/internals/internal-state.js"),a=i("./node_modules/core-js/internals/define-iterator.js"),l="String Iterator",d=o.set,u=o.getterFor(l);a(String,"String",function(m){d(this,{type:l,string:String(m),index:0})},function(){var f=u(this),g=f.string,h=f.index,v;return h>=g.length?{value:void 0,done:!0}:(v=s(g,h,!0),f.index+=v.length,{value:v,done:!1})})},"./node_modules/webpack/buildin/global.js":function(t,r){var i;i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(i=window)}t.exports=i},"./src/default-attrs.json":function(t){t.exports={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"}},"./src/icon.js":function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=Object.assign||function(v){for(var b=1;b2&&arguments[2]!==void 0?arguments[2]:[];f(this,v),this.name=b,this.contents=_,this.tags=y,this.attrs=s({},u.default,{class:"feather feather-"+b})}return o(v,[{key:"toSvg",value:function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},y=s({},this.attrs,_,{class:(0,l.default)(this.attrs.class,_.class)});return""+this.contents+""}},{key:"toString",value:function(){return this.contents}}]),v}();function h(v){return Object.keys(v).map(function(b){return b+'="'+v[b]+'"'}).join(" ")}r.default=g},"./src/icons.js":function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=i("./src/icon.js"),o=m(s),a=i("./dist/icons.json"),l=m(a),d=i("./src/tags.json"),u=m(d);function m(f){return f&&f.__esModule?f:{default:f}}r.default=Object.keys(l.default).map(function(f){return new o.default(f,l.default[f],u.default[f])}).reduce(function(f,g){return f[g.name]=g,f},{})},"./src/index.js":function(t,r,i){var s=i("./src/icons.js"),o=m(s),a=i("./src/to-svg.js"),l=m(a),d=i("./src/replace.js"),u=m(d);function m(f){return f&&f.__esModule?f:{default:f}}t.exports={icons:o.default,toSvg:l.default,replace:u.default}},"./src/replace.js":function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=Object.assign||function(h){for(var v=1;v0&&arguments[0]!==void 0?arguments[0]:{};if(typeof document>"u")throw new Error("`feather.replace()` only works in a browser environment.");var v=document.querySelectorAll("[data-feather]");Array.from(v).forEach(function(b){return f(b,h)})}function f(h){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=g(h),_=b["data-feather"];if(delete b["data-feather"],d.default[_]===void 0){console.warn("feather: '"+_+"' is not a valid icon");return}var y=d.default[_].toSvg(s({},v,b,{class:(0,a.default)(v.class,b.class)})),E=new DOMParser().parseFromString(y,"image/svg+xml"),x=E.querySelector("svg");h.parentNode.replaceChild(x,h)}function g(h){return Array.from(h.attributes).reduce(function(v,b){return v[b.name]=b.value,v},{})}r.default=m},"./src/tags.json":function(t){t.exports={activity:["pulse","health","action","motion"],airplay:["stream","cast","mirroring"],"alert-circle":["warning","alert","danger"],"alert-octagon":["warning","alert","danger"],"alert-triangle":["warning","alert","danger"],"align-center":["text alignment","center"],"align-justify":["text alignment","justified"],"align-left":["text alignment","left"],"align-right":["text alignment","right"],anchor:[],archive:["index","box"],"at-sign":["mention","at","email","message"],award:["achievement","badge"],aperture:["camera","photo"],"bar-chart":["statistics","diagram","graph"],"bar-chart-2":["statistics","diagram","graph"],battery:["power","electricity"],"battery-charging":["power","electricity"],bell:["alarm","notification","sound"],"bell-off":["alarm","notification","silent"],bluetooth:["wireless"],"book-open":["read","library"],book:["read","dictionary","booklet","magazine","library"],bookmark:["read","clip","marker","tag"],box:["cube"],briefcase:["work","bag","baggage","folder"],calendar:["date"],camera:["photo"],cast:["chromecast","airplay"],"chevron-down":["expand"],"chevron-up":["collapse"],circle:["off","zero","record"],clipboard:["copy"],clock:["time","watch","alarm"],"cloud-drizzle":["weather","shower"],"cloud-lightning":["weather","bolt"],"cloud-rain":["weather"],"cloud-snow":["weather","blizzard"],cloud:["weather"],codepen:["logo"],codesandbox:["logo"],code:["source","programming"],coffee:["drink","cup","mug","tea","cafe","hot","beverage"],columns:["layout"],command:["keyboard","cmd","terminal","prompt"],compass:["navigation","safari","travel","direction"],copy:["clone","duplicate"],"corner-down-left":["arrow","return"],"corner-down-right":["arrow"],"corner-left-down":["arrow"],"corner-left-up":["arrow"],"corner-right-down":["arrow"],"corner-right-up":["arrow"],"corner-up-left":["arrow"],"corner-up-right":["arrow"],cpu:["processor","technology"],"credit-card":["purchase","payment","cc"],crop:["photo","image"],crosshair:["aim","target"],database:["storage","memory"],delete:["remove"],disc:["album","cd","dvd","music"],"dollar-sign":["currency","money","payment"],droplet:["water"],edit:["pencil","change"],"edit-2":["pencil","change"],"edit-3":["pencil","change"],eye:["view","watch"],"eye-off":["view","watch","hide","hidden"],"external-link":["outbound"],facebook:["logo","social"],"fast-forward":["music"],figma:["logo","design","tool"],"file-minus":["delete","remove","erase"],"file-plus":["add","create","new"],"file-text":["data","txt","pdf"],film:["movie","video"],filter:["funnel","hopper"],flag:["report"],"folder-minus":["directory"],"folder-plus":["directory"],folder:["directory"],framer:["logo","design","tool"],frown:["emoji","face","bad","sad","emotion"],gift:["present","box","birthday","party"],"git-branch":["code","version control"],"git-commit":["code","version control"],"git-merge":["code","version control"],"git-pull-request":["code","version control"],github:["logo","version control"],gitlab:["logo","version control"],globe:["world","browser","language","translate"],"hard-drive":["computer","server","memory","data"],hash:["hashtag","number","pound"],headphones:["music","audio","sound"],heart:["like","love","emotion"],"help-circle":["question mark"],hexagon:["shape","node.js","logo"],home:["house","living"],image:["picture"],inbox:["email"],instagram:["logo","camera"],key:["password","login","authentication","secure"],layers:["stack"],layout:["window","webpage"],"life-buoy":["help","life ring","support"],link:["chain","url"],"link-2":["chain","url"],linkedin:["logo","social media"],list:["options"],lock:["security","password","secure"],"log-in":["sign in","arrow","enter"],"log-out":["sign out","arrow","exit"],mail:["email","message"],"map-pin":["location","navigation","travel","marker"],map:["location","navigation","travel"],maximize:["fullscreen"],"maximize-2":["fullscreen","arrows","expand"],meh:["emoji","face","neutral","emotion"],menu:["bars","navigation","hamburger"],"message-circle":["comment","chat"],"message-square":["comment","chat"],"mic-off":["record","sound","mute"],mic:["record","sound","listen"],minimize:["exit fullscreen","close"],"minimize-2":["exit fullscreen","arrows","close"],minus:["subtract"],monitor:["tv","screen","display"],moon:["dark","night"],"more-horizontal":["ellipsis"],"more-vertical":["ellipsis"],"mouse-pointer":["arrow","cursor"],move:["arrows"],music:["note"],navigation:["location","travel"],"navigation-2":["location","travel"],octagon:["stop"],package:["box","container"],paperclip:["attachment"],pause:["music","stop"],"pause-circle":["music","audio","stop"],"pen-tool":["vector","drawing"],percent:["discount"],"phone-call":["ring"],"phone-forwarded":["call"],"phone-incoming":["call"],"phone-missed":["call"],"phone-off":["call","mute"],"phone-outgoing":["call"],phone:["call"],play:["music","start"],"pie-chart":["statistics","diagram"],"play-circle":["music","start"],plus:["add","new"],"plus-circle":["add","new"],"plus-square":["add","new"],pocket:["logo","save"],power:["on","off"],printer:["fax","office","device"],radio:["signal"],"refresh-cw":["synchronise","arrows"],"refresh-ccw":["arrows"],repeat:["loop","arrows"],rewind:["music"],"rotate-ccw":["arrow"],"rotate-cw":["arrow"],rss:["feed","subscribe"],save:["floppy disk"],scissors:["cut"],search:["find","magnifier","magnifying glass"],send:["message","mail","email","paper airplane","paper aeroplane"],settings:["cog","edit","gear","preferences"],"share-2":["network","connections"],shield:["security","secure"],"shield-off":["security","insecure"],"shopping-bag":["ecommerce","cart","purchase","store"],"shopping-cart":["ecommerce","cart","purchase","store"],shuffle:["music"],"skip-back":["music"],"skip-forward":["music"],slack:["logo"],slash:["ban","no"],sliders:["settings","controls"],smartphone:["cellphone","device"],smile:["emoji","face","happy","good","emotion"],speaker:["audio","music"],star:["bookmark","favorite","like"],"stop-circle":["media","music"],sun:["brightness","weather","light"],sunrise:["weather","time","morning","day"],sunset:["weather","time","evening","night"],tablet:["device"],tag:["label"],target:["logo","bullseye"],terminal:["code","command line","prompt"],thermometer:["temperature","celsius","fahrenheit","weather"],"thumbs-down":["dislike","bad","emotion"],"thumbs-up":["like","good","emotion"],"toggle-left":["on","off","switch"],"toggle-right":["on","off","switch"],tool:["settings","spanner"],trash:["garbage","delete","remove","bin"],"trash-2":["garbage","delete","remove","bin"],triangle:["delta"],truck:["delivery","van","shipping","transport","lorry"],tv:["television","stream"],twitch:["logo"],twitter:["logo","social"],type:["text"],umbrella:["rain","weather"],unlock:["security"],"user-check":["followed","subscribed"],"user-minus":["delete","remove","unfollow","unsubscribe"],"user-plus":["new","add","create","follow","subscribe"],"user-x":["delete","remove","unfollow","unsubscribe","unavailable"],user:["person","account"],users:["group"],"video-off":["camera","movie","film"],video:["camera","movie","film"],voicemail:["phone"],volume:["music","sound","mute"],"volume-1":["music","sound"],"volume-2":["music","sound"],"volume-x":["music","sound","mute"],watch:["clock","time"],"wifi-off":["disabled"],wifi:["connection","signal","wireless"],wind:["weather","air"],"x-circle":["cancel","close","delete","remove","times","clear"],"x-octagon":["delete","stop","alert","warning","times","clear"],"x-square":["cancel","close","delete","remove","times","clear"],x:["cancel","close","delete","remove","times","clear"],youtube:["logo","video","play"],"zap-off":["flash","camera","lightning"],zap:["flash","camera","lightning"],"zoom-in":["magnifying glass"],"zoom-out":["magnifying glass"]}},"./src/to-svg.js":function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=i("./src/icons.js"),o=a(s);function a(d){return d&&d.__esModule?d:{default:d}}function l(d){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(console.warn("feather.toSvg() is deprecated. Please use feather.icons[name].toSvg() instead."),!d)throw new Error("The required `key` (icon name) parameter is missing.");if(!o.default[d])throw new Error("No icon matching '"+d+"'. See the complete list of icons at https://feathericons.com");return o.default[d].toSvg(u)}r.default=l},0:function(t,r,i){i("./node_modules/core-js/es/array/from.js"),t.exports=i("./src/index.js")}})})})(Z3);var A8=Z3.exports;const Ze=Ra(A8);var Jt={};const R8="Á",M8="á",N8="Ă",k8="ă",I8="∾",O8="∿",D8="∾̳",L8="Â",P8="â",F8="´",U8="А",B8="а",G8="Æ",z8="æ",V8="⁡",H8="𝔄",q8="𝔞",Y8="À",$8="à",W8="ℵ",K8="ℵ",j8="Α",Q8="α",X8="Ā",Z8="ā",J8="⨿",e9="&",t9="&",n9="⩕",r9="⩓",i9="∧",s9="⩜",o9="⩘",a9="⩚",l9="∠",c9="⦤",d9="∠",u9="⦨",p9="⦩",h9="⦪",m9="⦫",f9="⦬",g9="⦭",_9="⦮",b9="⦯",v9="∡",y9="∟",E9="⊾",S9="⦝",x9="∢",T9="Å",w9="⍼",C9="Ą",A9="ą",R9="𝔸",M9="𝕒",N9="⩯",k9="≈",I9="⩰",O9="≊",D9="≋",L9="'",P9="⁡",F9="≈",U9="≊",B9="Å",G9="å",z9="𝒜",V9="𝒶",H9="≔",q9="*",Y9="≈",$9="≍",W9="Ã",K9="ã",j9="Ä",Q9="ä",X9="∳",Z9="⨑",J9="≌",eF="϶",tF="‵",nF="∽",rF="⋍",iF="∖",sF="⫧",oF="⊽",aF="⌅",lF="⌆",cF="⌅",dF="⎵",uF="⎶",pF="≌",hF="Б",mF="б",fF="„",gF="∵",_F="∵",bF="∵",vF="⦰",yF="϶",EF="ℬ",SF="ℬ",xF="Β",TF="β",wF="ℶ",CF="≬",AF="𝔅",RF="𝔟",MF="⋂",NF="◯",kF="⋃",IF="⨀",OF="⨁",DF="⨂",LF="⨆",PF="★",FF="▽",UF="△",BF="⨄",GF="⋁",zF="⋀",VF="⤍",HF="⧫",qF="▪",YF="▴",$F="▾",WF="◂",KF="▸",jF="␣",QF="▒",XF="░",ZF="▓",JF="█",eU="=⃥",tU="≡⃥",nU="⫭",rU="⌐",iU="𝔹",sU="𝕓",oU="⊥",aU="⊥",lU="⋈",cU="⧉",dU="┐",uU="╕",pU="╖",hU="╗",mU="┌",fU="╒",gU="╓",_U="╔",bU="─",vU="═",yU="┬",EU="╤",SU="╥",xU="╦",TU="┴",wU="╧",CU="╨",AU="╩",RU="⊟",MU="⊞",NU="⊠",kU="┘",IU="╛",OU="╜",DU="╝",LU="└",PU="╘",FU="╙",UU="╚",BU="│",GU="║",zU="┼",VU="╪",HU="╫",qU="╬",YU="┤",$U="╡",WU="╢",KU="╣",jU="├",QU="╞",XU="╟",ZU="╠",JU="‵",eB="˘",tB="˘",nB="¦",rB="𝒷",iB="ℬ",sB="⁏",oB="∽",aB="⋍",lB="⧅",cB="\\",dB="⟈",uB="•",pB="•",hB="≎",mB="⪮",fB="≏",gB="≎",_B="≏",bB="Ć",vB="ć",yB="⩄",EB="⩉",SB="⩋",xB="∩",TB="⋒",wB="⩇",CB="⩀",AB="ⅅ",RB="∩︀",MB="⁁",NB="ˇ",kB="ℭ",IB="⩍",OB="Č",DB="č",LB="Ç",PB="ç",FB="Ĉ",UB="ĉ",BB="∰",GB="⩌",zB="⩐",VB="Ċ",HB="ċ",qB="¸",YB="¸",$B="⦲",WB="¢",KB="·",jB="·",QB="𝔠",XB="ℭ",ZB="Ч",JB="ч",eG="✓",tG="✓",nG="Χ",rG="χ",iG="ˆ",sG="≗",oG="↺",aG="↻",lG="⊛",cG="⊚",dG="⊝",uG="⊙",pG="®",hG="Ⓢ",mG="⊖",fG="⊕",gG="⊗",_G="○",bG="⧃",vG="≗",yG="⨐",EG="⫯",SG="⧂",xG="∲",TG="”",wG="’",CG="♣",AG="♣",RG=":",MG="∷",NG="⩴",kG="≔",IG="≔",OG=",",DG="@",LG="∁",PG="∘",FG="∁",UG="ℂ",BG="≅",GG="⩭",zG="≡",VG="∮",HG="∯",qG="∮",YG="𝕔",$G="ℂ",WG="∐",KG="∐",jG="©",QG="©",XG="℗",ZG="∳",JG="↵",ez="✗",tz="⨯",nz="𝒞",rz="𝒸",iz="⫏",sz="⫑",oz="⫐",az="⫒",lz="⋯",cz="⤸",dz="⤵",uz="⋞",pz="⋟",hz="↶",mz="⤽",fz="⩈",gz="⩆",_z="≍",bz="∪",vz="⋓",yz="⩊",Ez="⊍",Sz="⩅",xz="∪︀",Tz="↷",wz="⤼",Cz="⋞",Az="⋟",Rz="⋎",Mz="⋏",Nz="¤",kz="↶",Iz="↷",Oz="⋎",Dz="⋏",Lz="∲",Pz="∱",Fz="⌭",Uz="†",Bz="‡",Gz="ℸ",zz="↓",Vz="↡",Hz="⇓",qz="‐",Yz="⫤",$z="⊣",Wz="⤏",Kz="˝",jz="Ď",Qz="ď",Xz="Д",Zz="д",Jz="‡",eV="⇊",tV="ⅅ",nV="ⅆ",rV="⤑",iV="⩷",sV="°",oV="∇",aV="Δ",lV="δ",cV="⦱",dV="⥿",uV="𝔇",pV="𝔡",hV="⥥",mV="⇃",fV="⇂",gV="´",_V="˙",bV="˝",vV="`",yV="˜",EV="⋄",SV="⋄",xV="⋄",TV="♦",wV="♦",CV="¨",AV="ⅆ",RV="ϝ",MV="⋲",NV="÷",kV="÷",IV="⋇",OV="⋇",DV="Ђ",LV="ђ",PV="⌞",FV="⌍",UV="$",BV="𝔻",GV="𝕕",zV="¨",VV="˙",HV="⃜",qV="≐",YV="≑",$V="≐",WV="∸",KV="∔",jV="⊡",QV="⌆",XV="∯",ZV="¨",JV="⇓",eH="⇐",tH="⇔",nH="⫤",rH="⟸",iH="⟺",sH="⟹",oH="⇒",aH="⊨",lH="⇑",cH="⇕",dH="∥",uH="⤓",pH="↓",hH="↓",mH="⇓",fH="⇵",gH="̑",_H="⇊",bH="⇃",vH="⇂",yH="⥐",EH="⥞",SH="⥖",xH="↽",TH="⥟",wH="⥗",CH="⇁",AH="↧",RH="⊤",MH="⤐",NH="⌟",kH="⌌",IH="𝒟",OH="𝒹",DH="Ѕ",LH="ѕ",PH="⧶",FH="Đ",UH="đ",BH="⋱",GH="▿",zH="▾",VH="⇵",HH="⥯",qH="⦦",YH="Џ",$H="џ",WH="⟿",KH="É",jH="é",QH="⩮",XH="Ě",ZH="ě",JH="Ê",eq="ê",tq="≖",nq="≕",rq="Э",iq="э",sq="⩷",oq="Ė",aq="ė",lq="≑",cq="ⅇ",dq="≒",uq="𝔈",pq="𝔢",hq="⪚",mq="È",fq="è",gq="⪖",_q="⪘",bq="⪙",vq="∈",yq="⏧",Eq="ℓ",Sq="⪕",xq="⪗",Tq="Ē",wq="ē",Cq="∅",Aq="∅",Rq="◻",Mq="∅",Nq="▫",kq=" ",Iq=" ",Oq=" ",Dq="Ŋ",Lq="ŋ",Pq=" ",Fq="Ę",Uq="ę",Bq="𝔼",Gq="𝕖",zq="⋕",Vq="⧣",Hq="⩱",qq="ε",Yq="Ε",$q="ε",Wq="ϵ",Kq="≖",jq="≕",Qq="≂",Xq="⪖",Zq="⪕",Jq="⩵",eY="=",tY="≂",nY="≟",rY="⇌",iY="≡",sY="⩸",oY="⧥",aY="⥱",lY="≓",cY="ℯ",dY="ℰ",uY="≐",pY="⩳",hY="≂",mY="Η",fY="η",gY="Ð",_Y="ð",bY="Ë",vY="ë",yY="€",EY="!",SY="∃",xY="∃",TY="ℰ",wY="ⅇ",CY="ⅇ",AY="≒",RY="Ф",MY="ф",NY="♀",kY="ffi",IY="ff",OY="ffl",DY="𝔉",LY="𝔣",PY="fi",FY="◼",UY="▪",BY="fj",GY="♭",zY="fl",VY="▱",HY="ƒ",qY="𝔽",YY="𝕗",$Y="∀",WY="∀",KY="⋔",jY="⫙",QY="ℱ",XY="⨍",ZY="½",JY="⅓",e$="¼",t$="⅕",n$="⅙",r$="⅛",i$="⅔",s$="⅖",o$="¾",a$="⅗",l$="⅜",c$="⅘",d$="⅚",u$="⅝",p$="⅞",h$="⁄",m$="⌢",f$="𝒻",g$="ℱ",_$="ǵ",b$="Γ",v$="γ",y$="Ϝ",E$="ϝ",S$="⪆",x$="Ğ",T$="ğ",w$="Ģ",C$="Ĝ",A$="ĝ",R$="Г",M$="г",N$="Ġ",k$="ġ",I$="≥",O$="≧",D$="⪌",L$="⋛",P$="≥",F$="≧",U$="⩾",B$="⪩",G$="⩾",z$="⪀",V$="⪂",H$="⪄",q$="⋛︀",Y$="⪔",$$="𝔊",W$="𝔤",K$="≫",j$="⋙",Q$="⋙",X$="ℷ",Z$="Ѓ",J$="ѓ",eW="⪥",tW="≷",nW="⪒",rW="⪤",iW="⪊",sW="⪊",oW="⪈",aW="≩",lW="⪈",cW="≩",dW="⋧",uW="𝔾",pW="𝕘",hW="`",mW="≥",fW="⋛",gW="≧",_W="⪢",bW="≷",vW="⩾",yW="≳",EW="𝒢",SW="ℊ",xW="≳",TW="⪎",wW="⪐",CW="⪧",AW="⩺",RW=">",MW=">",NW="≫",kW="⋗",IW="⦕",OW="⩼",DW="⪆",LW="⥸",PW="⋗",FW="⋛",UW="⪌",BW="≷",GW="≳",zW="≩︀",VW="≩︀",HW="ˇ",qW=" ",YW="½",$W="ℋ",WW="Ъ",KW="ъ",jW="⥈",QW="↔",XW="⇔",ZW="↭",JW="^",eK="ℏ",tK="Ĥ",nK="ĥ",rK="♥",iK="♥",sK="…",oK="⊹",aK="𝔥",lK="ℌ",cK="ℋ",dK="⤥",uK="⤦",pK="⇿",hK="∻",mK="↩",fK="↪",gK="𝕙",_K="ℍ",bK="―",vK="─",yK="𝒽",EK="ℋ",SK="ℏ",xK="Ħ",TK="ħ",wK="≎",CK="≏",AK="⁃",RK="‐",MK="Í",NK="í",kK="⁣",IK="Î",OK="î",DK="И",LK="и",PK="İ",FK="Е",UK="е",BK="¡",GK="⇔",zK="𝔦",VK="ℑ",HK="Ì",qK="ì",YK="ⅈ",$K="⨌",WK="∭",KK="⧜",jK="℩",QK="IJ",XK="ij",ZK="Ī",JK="ī",ej="ℑ",tj="ⅈ",nj="ℐ",rj="ℑ",ij="ı",sj="ℑ",oj="⊷",aj="Ƶ",lj="⇒",cj="℅",dj="∞",uj="⧝",pj="ı",hj="⊺",mj="∫",fj="∬",gj="ℤ",_j="∫",bj="⊺",vj="⋂",yj="⨗",Ej="⨼",Sj="⁣",xj="⁢",Tj="Ё",wj="ё",Cj="Į",Aj="į",Rj="𝕀",Mj="𝕚",Nj="Ι",kj="ι",Ij="⨼",Oj="¿",Dj="𝒾",Lj="ℐ",Pj="∈",Fj="⋵",Uj="⋹",Bj="⋴",Gj="⋳",zj="∈",Vj="⁢",Hj="Ĩ",qj="ĩ",Yj="І",$j="і",Wj="Ï",Kj="ï",jj="Ĵ",Qj="ĵ",Xj="Й",Zj="й",Jj="𝔍",eQ="𝔧",tQ="ȷ",nQ="𝕁",rQ="𝕛",iQ="𝒥",sQ="𝒿",oQ="Ј",aQ="ј",lQ="Є",cQ="є",dQ="Κ",uQ="κ",pQ="ϰ",hQ="Ķ",mQ="ķ",fQ="К",gQ="к",_Q="𝔎",bQ="𝔨",vQ="ĸ",yQ="Х",EQ="х",SQ="Ќ",xQ="ќ",TQ="𝕂",wQ="𝕜",CQ="𝒦",AQ="𝓀",RQ="⇚",MQ="Ĺ",NQ="ĺ",kQ="⦴",IQ="ℒ",OQ="Λ",DQ="λ",LQ="⟨",PQ="⟪",FQ="⦑",UQ="⟨",BQ="⪅",GQ="ℒ",zQ="«",VQ="⇤",HQ="⤟",qQ="←",YQ="↞",$Q="⇐",WQ="⤝",KQ="↩",jQ="↫",QQ="⤹",XQ="⥳",ZQ="↢",JQ="⤙",eX="⤛",tX="⪫",nX="⪭",rX="⪭︀",iX="⤌",sX="⤎",oX="❲",aX="{",lX="[",cX="⦋",dX="⦏",uX="⦍",pX="Ľ",hX="ľ",mX="Ļ",fX="ļ",gX="⌈",_X="{",bX="Л",vX="л",yX="⤶",EX="“",SX="„",xX="⥧",TX="⥋",wX="↲",CX="≤",AX="≦",RX="⟨",MX="⇤",NX="←",kX="←",IX="⇐",OX="⇆",DX="↢",LX="⌈",PX="⟦",FX="⥡",UX="⥙",BX="⇃",GX="⌊",zX="↽",VX="↼",HX="⇇",qX="↔",YX="↔",$X="⇔",WX="⇆",KX="⇋",jX="↭",QX="⥎",XX="↤",ZX="⊣",JX="⥚",eZ="⋋",tZ="⧏",nZ="⊲",rZ="⊴",iZ="⥑",sZ="⥠",oZ="⥘",aZ="↿",lZ="⥒",cZ="↼",dZ="⪋",uZ="⋚",pZ="≤",hZ="≦",mZ="⩽",fZ="⪨",gZ="⩽",_Z="⩿",bZ="⪁",vZ="⪃",yZ="⋚︀",EZ="⪓",SZ="⪅",xZ="⋖",TZ="⋚",wZ="⪋",CZ="⋚",AZ="≦",RZ="≶",MZ="≶",NZ="⪡",kZ="≲",IZ="⩽",OZ="≲",DZ="⥼",LZ="⌊",PZ="𝔏",FZ="𝔩",UZ="≶",BZ="⪑",GZ="⥢",zZ="↽",VZ="↼",HZ="⥪",qZ="▄",YZ="Љ",$Z="љ",WZ="⇇",KZ="≪",jZ="⋘",QZ="⌞",XZ="⇚",ZZ="⥫",JZ="◺",eJ="Ŀ",tJ="ŀ",nJ="⎰",rJ="⎰",iJ="⪉",sJ="⪉",oJ="⪇",aJ="≨",lJ="⪇",cJ="≨",dJ="⋦",uJ="⟬",pJ="⇽",hJ="⟦",mJ="⟵",fJ="⟵",gJ="⟸",_J="⟷",bJ="⟷",vJ="⟺",yJ="⟼",EJ="⟶",SJ="⟶",xJ="⟹",TJ="↫",wJ="↬",CJ="⦅",AJ="𝕃",RJ="𝕝",MJ="⨭",NJ="⨴",kJ="∗",IJ="_",OJ="↙",DJ="↘",LJ="◊",PJ="◊",FJ="⧫",UJ="(",BJ="⦓",GJ="⇆",zJ="⌟",VJ="⇋",HJ="⥭",qJ="‎",YJ="⊿",$J="‹",WJ="𝓁",KJ="ℒ",jJ="↰",QJ="↰",XJ="≲",ZJ="⪍",JJ="⪏",eee="[",tee="‘",nee="‚",ree="Ł",iee="ł",see="⪦",oee="⩹",aee="<",lee="<",cee="≪",dee="⋖",uee="⋋",pee="⋉",hee="⥶",mee="⩻",fee="◃",gee="⊴",_ee="◂",bee="⦖",vee="⥊",yee="⥦",Eee="≨︀",See="≨︀",xee="¯",Tee="♂",wee="✠",Cee="✠",Aee="↦",Ree="↦",Mee="↧",Nee="↤",kee="↥",Iee="▮",Oee="⨩",Dee="М",Lee="м",Pee="—",Fee="∺",Uee="∡",Bee=" ",Gee="ℳ",zee="𝔐",Vee="𝔪",Hee="℧",qee="µ",Yee="*",$ee="⫰",Wee="∣",Kee="·",jee="⊟",Qee="−",Xee="∸",Zee="⨪",Jee="∓",ete="⫛",tte="…",nte="∓",rte="⊧",ite="𝕄",ste="𝕞",ote="∓",ate="𝓂",lte="ℳ",cte="∾",dte="Μ",ute="μ",pte="⊸",hte="⊸",mte="∇",fte="Ń",gte="ń",_te="∠⃒",bte="≉",vte="⩰̸",yte="≋̸",Ete="ʼn",Ste="≉",xte="♮",Tte="ℕ",wte="♮",Cte=" ",Ate="≎̸",Rte="≏̸",Mte="⩃",Nte="Ň",kte="ň",Ite="Ņ",Ote="ņ",Dte="≇",Lte="⩭̸",Pte="⩂",Fte="Н",Ute="н",Bte="–",Gte="⤤",zte="↗",Vte="⇗",Hte="↗",qte="≠",Yte="≐̸",$te="​",Wte="​",Kte="​",jte="​",Qte="≢",Xte="⤨",Zte="≂̸",Jte="≫",ene="≪",tne=` `,nne="∄",rne="∄",ine="𝔑",sne="𝔫",one="≧̸",ane="≱",lne="≱",cne="≧̸",dne="⩾̸",une="⩾̸",pne="⋙̸",hne="≵",mne="≫⃒",fne="≯",gne="≯",_ne="≫̸",bne="↮",vne="⇎",yne="⫲",Ene="∋",Sne="⋼",xne="⋺",Tne="∋",wne="Њ",Cne="њ",Ane="↚",Rne="⇍",Mne="‥",Nne="≦̸",kne="≰",Ine="↚",One="⇍",Dne="↮",Lne="⇎",Pne="≰",Fne="≦̸",Une="⩽̸",Bne="⩽̸",Gne="≮",zne="⋘̸",Vne="≴",Hne="≪⃒",qne="≮",Yne="⋪",$ne="⋬",Wne="≪̸",Kne="∤",jne="⁠",Qne=" ",Xne="𝕟",Zne="ℕ",Jne="⫬",ere="¬",tre="≢",nre="≭",rre="∦",ire="∉",sre="≠",ore="≂̸",are="∄",lre="≯",cre="≱",dre="≧̸",ure="≫̸",pre="≹",hre="⩾̸",mre="≵",fre="≎̸",gre="≏̸",_re="∉",bre="⋵̸",vre="⋹̸",yre="∉",Ere="⋷",Sre="⋶",xre="⧏̸",Tre="⋪",wre="⋬",Cre="≮",Are="≰",Rre="≸",Mre="≪̸",Nre="⩽̸",kre="≴",Ire="⪢̸",Ore="⪡̸",Dre="∌",Lre="∌",Pre="⋾",Fre="⋽",Ure="⊀",Bre="⪯̸",Gre="⋠",zre="∌",Vre="⧐̸",Hre="⋫",qre="⋭",Yre="⊏̸",$re="⋢",Wre="⊐̸",Kre="⋣",jre="⊂⃒",Qre="⊈",Xre="⊁",Zre="⪰̸",Jre="⋡",eie="≿̸",tie="⊃⃒",nie="⊉",rie="≁",iie="≄",sie="≇",oie="≉",aie="∤",lie="∦",cie="∦",die="⫽⃥",uie="∂̸",pie="⨔",hie="⊀",mie="⋠",fie="⊀",gie="⪯̸",_ie="⪯̸",bie="⤳̸",vie="↛",yie="⇏",Eie="↝̸",Sie="↛",xie="⇏",Tie="⋫",wie="⋭",Cie="⊁",Aie="⋡",Rie="⪰̸",Mie="𝒩",Nie="𝓃",kie="∤",Iie="∦",Oie="≁",Die="≄",Lie="≄",Pie="∤",Fie="∦",Uie="⋢",Bie="⋣",Gie="⊄",zie="⫅̸",Vie="⊈",Hie="⊂⃒",qie="⊈",Yie="⫅̸",$ie="⊁",Wie="⪰̸",Kie="⊅",jie="⫆̸",Qie="⊉",Xie="⊃⃒",Zie="⊉",Jie="⫆̸",ese="≹",tse="Ñ",nse="ñ",rse="≸",ise="⋪",sse="⋬",ose="⋫",ase="⋭",lse="Ν",cse="ν",dse="#",use="№",pse=" ",hse="≍⃒",mse="⊬",fse="⊭",gse="⊮",_se="⊯",bse="≥⃒",vse=">⃒",yse="⤄",Ese="⧞",Sse="⤂",xse="≤⃒",Tse="<⃒",wse="⊴⃒",Cse="⤃",Ase="⊵⃒",Rse="∼⃒",Mse="⤣",Nse="↖",kse="⇖",Ise="↖",Ose="⤧",Dse="Ó",Lse="ó",Pse="⊛",Fse="Ô",Use="ô",Bse="⊚",Gse="О",zse="о",Vse="⊝",Hse="Ő",qse="ő",Yse="⨸",$se="⊙",Wse="⦼",Kse="Œ",jse="œ",Qse="⦿",Xse="𝔒",Zse="𝔬",Jse="˛",eoe="Ò",toe="ò",noe="⧁",roe="⦵",ioe="Ω",soe="∮",ooe="↺",aoe="⦾",loe="⦻",coe="‾",doe="⧀",uoe="Ō",poe="ō",hoe="Ω",moe="ω",foe="Ο",goe="ο",_oe="⦶",boe="⊖",voe="𝕆",yoe="𝕠",Eoe="⦷",Soe="“",xoe="‘",Toe="⦹",woe="⊕",Coe="↻",Aoe="⩔",Roe="∨",Moe="⩝",Noe="ℴ",koe="ℴ",Ioe="ª",Ooe="º",Doe="⊶",Loe="⩖",Poe="⩗",Foe="⩛",Uoe="Ⓢ",Boe="𝒪",Goe="ℴ",zoe="Ø",Voe="ø",Hoe="⊘",qoe="Õ",Yoe="õ",$oe="⨶",Woe="⨷",Koe="⊗",joe="Ö",Qoe="ö",Xoe="⌽",Zoe="‾",Joe="⏞",eae="⎴",tae="⏜",nae="¶",rae="∥",iae="∥",sae="⫳",oae="⫽",aae="∂",lae="∂",cae="П",dae="п",uae="%",pae=".",hae="‰",mae="⊥",fae="‱",gae="𝔓",_ae="𝔭",bae="Φ",vae="φ",yae="ϕ",Eae="ℳ",Sae="☎",xae="Π",Tae="π",wae="⋔",Cae="ϖ",Aae="ℏ",Rae="ℎ",Mae="ℏ",Nae="⨣",kae="⊞",Iae="⨢",Oae="+",Dae="∔",Lae="⨥",Pae="⩲",Fae="±",Uae="±",Bae="⨦",Gae="⨧",zae="±",Vae="ℌ",Hae="⨕",qae="𝕡",Yae="ℙ",$ae="£",Wae="⪷",Kae="⪻",jae="≺",Qae="≼",Xae="⪷",Zae="≺",Jae="≼",ele="≺",tle="⪯",nle="≼",rle="≾",ile="⪯",sle="⪹",ole="⪵",ale="⋨",lle="⪯",cle="⪳",dle="≾",ule="′",ple="″",hle="ℙ",mle="⪹",fle="⪵",gle="⋨",_le="∏",ble="∏",vle="⌮",yle="⌒",Ele="⌓",Sle="∝",xle="∝",Tle="∷",wle="∝",Cle="≾",Ale="⊰",Rle="𝒫",Mle="𝓅",Nle="Ψ",kle="ψ",Ile=" ",Ole="𝔔",Dle="𝔮",Lle="⨌",Ple="𝕢",Fle="ℚ",Ule="⁗",Ble="𝒬",Gle="𝓆",zle="ℍ",Vle="⨖",Hle="?",qle="≟",Yle='"',$le='"',Wle="⇛",Kle="∽̱",jle="Ŕ",Qle="ŕ",Xle="√",Zle="⦳",Jle="⟩",ece="⟫",tce="⦒",nce="⦥",rce="⟩",ice="»",sce="⥵",oce="⇥",ace="⤠",lce="⤳",cce="→",dce="↠",uce="⇒",pce="⤞",hce="↪",mce="↬",fce="⥅",gce="⥴",_ce="⤖",bce="↣",vce="↝",yce="⤚",Ece="⤜",Sce="∶",xce="ℚ",Tce="⤍",wce="⤏",Cce="⤐",Ace="❳",Rce="}",Mce="]",Nce="⦌",kce="⦎",Ice="⦐",Oce="Ř",Dce="ř",Lce="Ŗ",Pce="ŗ",Fce="⌉",Uce="}",Bce="Р",Gce="р",zce="⤷",Vce="⥩",Hce="”",qce="”",Yce="↳",$ce="ℜ",Wce="ℛ",Kce="ℜ",jce="ℝ",Qce="ℜ",Xce="▭",Zce="®",Jce="®",ede="∋",tde="⇋",nde="⥯",rde="⥽",ide="⌋",sde="𝔯",ode="ℜ",ade="⥤",lde="⇁",cde="⇀",dde="⥬",ude="Ρ",pde="ρ",hde="ϱ",mde="⟩",fde="⇥",gde="→",_de="→",bde="⇒",vde="⇄",yde="↣",Ede="⌉",Sde="⟧",xde="⥝",Tde="⥕",wde="⇂",Cde="⌋",Ade="⇁",Rde="⇀",Mde="⇄",Nde="⇌",kde="⇉",Ide="↝",Ode="↦",Dde="⊢",Lde="⥛",Pde="⋌",Fde="⧐",Ude="⊳",Bde="⊵",Gde="⥏",zde="⥜",Vde="⥔",Hde="↾",qde="⥓",Yde="⇀",$de="˚",Wde="≓",Kde="⇄",jde="⇌",Qde="‏",Xde="⎱",Zde="⎱",Jde="⫮",eue="⟭",tue="⇾",nue="⟧",rue="⦆",iue="𝕣",sue="ℝ",oue="⨮",aue="⨵",lue="⥰",cue=")",due="⦔",uue="⨒",pue="⇉",hue="⇛",mue="›",fue="𝓇",gue="ℛ",_ue="↱",bue="↱",vue="]",yue="’",Eue="’",Sue="⋌",xue="⋊",Tue="▹",wue="⊵",Cue="▸",Aue="⧎",Rue="⧴",Mue="⥨",Nue="℞",kue="Ś",Iue="ś",Oue="‚",Due="⪸",Lue="Š",Pue="š",Fue="⪼",Uue="≻",Bue="≽",Gue="⪰",zue="⪴",Vue="Ş",Hue="ş",que="Ŝ",Yue="ŝ",$ue="⪺",Wue="⪶",Kue="⋩",jue="⨓",Que="≿",Xue="С",Zue="с",Jue="⊡",epe="⋅",tpe="⩦",npe="⤥",rpe="↘",ipe="⇘",spe="↘",ope="§",ape=";",lpe="⤩",cpe="∖",dpe="∖",upe="✶",ppe="𝔖",hpe="𝔰",mpe="⌢",fpe="♯",gpe="Щ",_pe="щ",bpe="Ш",vpe="ш",ype="↓",Epe="←",Spe="∣",xpe="∥",Tpe="→",wpe="↑",Cpe="­",Ape="Σ",Rpe="σ",Mpe="ς",Npe="ς",kpe="∼",Ipe="⩪",Ope="≃",Dpe="≃",Lpe="⪞",Ppe="⪠",Fpe="⪝",Upe="⪟",Bpe="≆",Gpe="⨤",zpe="⥲",Vpe="←",Hpe="∘",qpe="∖",Ype="⨳",$pe="⧤",Wpe="∣",Kpe="⌣",jpe="⪪",Qpe="⪬",Xpe="⪬︀",Zpe="Ь",Jpe="ь",ehe="⌿",the="⧄",nhe="/",rhe="𝕊",ihe="𝕤",she="♠",ohe="♠",ahe="∥",lhe="⊓",che="⊓︀",dhe="⊔",uhe="⊔︀",phe="√",hhe="⊏",mhe="⊑",fhe="⊏",ghe="⊑",_he="⊐",bhe="⊒",vhe="⊐",yhe="⊒",Ehe="□",She="□",xhe="⊓",The="⊏",whe="⊑",Che="⊐",Ahe="⊒",Rhe="⊔",Mhe="▪",Nhe="□",khe="▪",Ihe="→",Ohe="𝒮",Dhe="𝓈",Lhe="∖",Phe="⌣",Fhe="⋆",Uhe="⋆",Bhe="☆",Ghe="★",zhe="ϵ",Vhe="ϕ",Hhe="¯",qhe="⊂",Yhe="⋐",$he="⪽",Whe="⫅",Khe="⊆",jhe="⫃",Qhe="⫁",Xhe="⫋",Zhe="⊊",Jhe="⪿",eme="⥹",tme="⊂",nme="⋐",rme="⊆",ime="⫅",sme="⊆",ome="⊊",ame="⫋",lme="⫇",cme="⫕",dme="⫓",ume="⪸",pme="≻",hme="≽",mme="≻",fme="⪰",gme="≽",_me="≿",bme="⪰",vme="⪺",yme="⪶",Eme="⋩",Sme="≿",xme="∋",Tme="∑",wme="∑",Cme="♪",Ame="¹",Rme="²",Mme="³",Nme="⊃",kme="⋑",Ime="⪾",Ome="⫘",Dme="⫆",Lme="⊇",Pme="⫄",Fme="⊃",Ume="⊇",Bme="⟉",Gme="⫗",zme="⥻",Vme="⫂",Hme="⫌",qme="⊋",Yme="⫀",$me="⊃",Wme="⋑",Kme="⊇",jme="⫆",Qme="⊋",Xme="⫌",Zme="⫈",Jme="⫔",efe="⫖",tfe="⤦",nfe="↙",rfe="⇙",ife="↙",sfe="⤪",ofe="ß",afe=" ",lfe="⌖",cfe="Τ",dfe="τ",ufe="⎴",pfe="Ť",hfe="ť",mfe="Ţ",ffe="ţ",gfe="Т",_fe="т",bfe="⃛",vfe="⌕",yfe="𝔗",Efe="𝔱",Sfe="∴",xfe="∴",Tfe="∴",wfe="Θ",Cfe="θ",Afe="ϑ",Rfe="ϑ",Mfe="≈",Nfe="∼",kfe="  ",Ife=" ",Ofe=" ",Dfe="≈",Lfe="∼",Pfe="Þ",Ffe="þ",Ufe="˜",Bfe="∼",Gfe="≃",zfe="≅",Vfe="≈",Hfe="⨱",qfe="⊠",Yfe="×",$fe="⨰",Wfe="∭",Kfe="⤨",jfe="⌶",Qfe="⫱",Xfe="⊤",Zfe="𝕋",Jfe="𝕥",ege="⫚",tge="⤩",nge="‴",rge="™",ige="™",sge="▵",oge="▿",age="◃",lge="⊴",cge="≜",dge="▹",uge="⊵",pge="◬",hge="≜",mge="⨺",fge="⃛",gge="⨹",_ge="⧍",bge="⨻",vge="⏢",yge="𝒯",Ege="𝓉",Sge="Ц",xge="ц",Tge="Ћ",wge="ћ",Cge="Ŧ",Age="ŧ",Rge="≬",Mge="↞",Nge="↠",kge="Ú",Ige="ú",Oge="↑",Dge="↟",Lge="⇑",Pge="⥉",Fge="Ў",Uge="ў",Bge="Ŭ",Gge="ŭ",zge="Û",Vge="û",Hge="У",qge="у",Yge="⇅",$ge="Ű",Wge="ű",Kge="⥮",jge="⥾",Qge="𝔘",Xge="𝔲",Zge="Ù",Jge="ù",e_e="⥣",t_e="↿",n_e="↾",r_e="▀",i_e="⌜",s_e="⌜",o_e="⌏",a_e="◸",l_e="Ū",c_e="ū",d_e="¨",u_e="_",p_e="⏟",h_e="⎵",m_e="⏝",f_e="⋃",g_e="⊎",__e="Ų",b_e="ų",v_e="𝕌",y_e="𝕦",E_e="⤒",S_e="↑",x_e="↑",T_e="⇑",w_e="⇅",C_e="↕",A_e="↕",R_e="⇕",M_e="⥮",N_e="↿",k_e="↾",I_e="⊎",O_e="↖",D_e="↗",L_e="υ",P_e="ϒ",F_e="ϒ",U_e="Υ",B_e="υ",G_e="↥",z_e="⊥",V_e="⇈",H_e="⌝",q_e="⌝",Y_e="⌎",$_e="Ů",W_e="ů",K_e="◹",j_e="𝒰",Q_e="𝓊",X_e="⋰",Z_e="Ũ",J_e="ũ",e0e="▵",t0e="▴",n0e="⇈",r0e="Ü",i0e="ü",s0e="⦧",o0e="⦜",a0e="ϵ",l0e="ϰ",c0e="∅",d0e="ϕ",u0e="ϖ",p0e="∝",h0e="↕",m0e="⇕",f0e="ϱ",g0e="ς",_0e="⊊︀",b0e="⫋︀",v0e="⊋︀",y0e="⫌︀",E0e="ϑ",S0e="⊲",x0e="⊳",T0e="⫨",w0e="⫫",C0e="⫩",A0e="В",R0e="в",M0e="⊢",N0e="⊨",k0e="⊩",I0e="⊫",O0e="⫦",D0e="⊻",L0e="∨",P0e="⋁",F0e="≚",U0e="⋮",B0e="|",G0e="‖",z0e="|",V0e="‖",H0e="∣",q0e="|",Y0e="❘",$0e="≀",W0e=" ",K0e="𝔙",j0e="𝔳",Q0e="⊲",X0e="⊂⃒",Z0e="⊃⃒",J0e="𝕍",ebe="𝕧",tbe="∝",nbe="⊳",rbe="𝒱",ibe="𝓋",sbe="⫋︀",obe="⊊︀",abe="⫌︀",lbe="⊋︀",cbe="⊪",dbe="⦚",ube="Ŵ",pbe="ŵ",hbe="⩟",mbe="∧",fbe="⋀",gbe="≙",_be="℘",bbe="𝔚",vbe="𝔴",ybe="𝕎",Ebe="𝕨",Sbe="℘",xbe="≀",Tbe="≀",wbe="𝒲",Cbe="𝓌",Abe="⋂",Rbe="◯",Mbe="⋃",Nbe="▽",kbe="𝔛",Ibe="𝔵",Obe="⟷",Dbe="⟺",Lbe="Ξ",Pbe="ξ",Fbe="⟵",Ube="⟸",Bbe="⟼",Gbe="⋻",zbe="⨀",Vbe="𝕏",Hbe="𝕩",qbe="⨁",Ybe="⨂",$be="⟶",Wbe="⟹",Kbe="𝒳",jbe="𝓍",Qbe="⨆",Xbe="⨄",Zbe="△",Jbe="⋁",e1e="⋀",t1e="Ý",n1e="ý",r1e="Я",i1e="я",s1e="Ŷ",o1e="ŷ",a1e="Ы",l1e="ы",c1e="¥",d1e="𝔜",u1e="𝔶",p1e="Ї",h1e="ї",m1e="𝕐",f1e="𝕪",g1e="𝒴",_1e="𝓎",b1e="Ю",v1e="ю",y1e="ÿ",E1e="Ÿ",S1e="Ź",x1e="ź",T1e="Ž",w1e="ž",C1e="З",A1e="з",R1e="Ż",M1e="ż",N1e="ℨ",k1e="​",I1e="Ζ",O1e="ζ",D1e="𝔷",L1e="ℨ",P1e="Ж",F1e="ж",U1e="⇝",B1e="𝕫",G1e="ℤ",z1e="𝒵",V1e="𝓏",H1e="‍",q1e="‌",Y1e={Aacute:R8,aacute:M8,Abreve:N8,abreve:k8,ac:I8,acd:O8,acE:D8,Acirc:L8,acirc:P8,acute:F8,Acy:U8,acy:B8,AElig:G8,aelig:z8,af:V8,Afr:H8,afr:q8,Agrave:Y8,agrave:$8,alefsym:W8,aleph:K8,Alpha:j8,alpha:Q8,Amacr:X8,amacr:Z8,amalg:J8,amp:e9,AMP:t9,andand:n9,And:r9,and:i9,andd:s9,andslope:o9,andv:a9,ang:l9,ange:c9,angle:d9,angmsdaa:u9,angmsdab:p9,angmsdac:h9,angmsdad:m9,angmsdae:f9,angmsdaf:g9,angmsdag:_9,angmsdah:b9,angmsd:v9,angrt:y9,angrtvb:E9,angrtvbd:S9,angsph:x9,angst:T9,angzarr:w9,Aogon:C9,aogon:A9,Aopf:R9,aopf:M9,apacir:N9,ap:k9,apE:I9,ape:O9,apid:D9,apos:L9,ApplyFunction:P9,approx:F9,approxeq:U9,Aring:B9,aring:G9,Ascr:z9,ascr:V9,Assign:H9,ast:q9,asymp:Y9,asympeq:$9,Atilde:W9,atilde:K9,Auml:j9,auml:Q9,awconint:X9,awint:Z9,backcong:J9,backepsilon:eF,backprime:tF,backsim:nF,backsimeq:rF,Backslash:iF,Barv:sF,barvee:oF,barwed:aF,Barwed:lF,barwedge:cF,bbrk:dF,bbrktbrk:uF,bcong:pF,Bcy:hF,bcy:mF,bdquo:fF,becaus:gF,because:_F,Because:bF,bemptyv:vF,bepsi:yF,bernou:EF,Bernoullis:SF,Beta:xF,beta:TF,beth:wF,between:CF,Bfr:AF,bfr:RF,bigcap:MF,bigcirc:NF,bigcup:kF,bigodot:IF,bigoplus:OF,bigotimes:DF,bigsqcup:LF,bigstar:PF,bigtriangledown:FF,bigtriangleup:UF,biguplus:BF,bigvee:GF,bigwedge:zF,bkarow:VF,blacklozenge:HF,blacksquare:qF,blacktriangle:YF,blacktriangledown:$F,blacktriangleleft:WF,blacktriangleright:KF,blank:jF,blk12:QF,blk14:XF,blk34:ZF,block:JF,bne:eU,bnequiv:tU,bNot:nU,bnot:rU,Bopf:iU,bopf:sU,bot:oU,bottom:aU,bowtie:lU,boxbox:cU,boxdl:dU,boxdL:uU,boxDl:pU,boxDL:hU,boxdr:mU,boxdR:fU,boxDr:gU,boxDR:_U,boxh:bU,boxH:vU,boxhd:yU,boxHd:EU,boxhD:SU,boxHD:xU,boxhu:TU,boxHu:wU,boxhU:CU,boxHU:AU,boxminus:RU,boxplus:MU,boxtimes:NU,boxul:kU,boxuL:IU,boxUl:OU,boxUL:DU,boxur:LU,boxuR:PU,boxUr:FU,boxUR:UU,boxv:BU,boxV:GU,boxvh:zU,boxvH:VU,boxVh:HU,boxVH:qU,boxvl:YU,boxvL:$U,boxVl:WU,boxVL:KU,boxvr:jU,boxvR:QU,boxVr:XU,boxVR:ZU,bprime:JU,breve:eB,Breve:tB,brvbar:nB,bscr:rB,Bscr:iB,bsemi:sB,bsim:oB,bsime:aB,bsolb:lB,bsol:cB,bsolhsub:dB,bull:uB,bullet:pB,bump:hB,bumpE:mB,bumpe:fB,Bumpeq:gB,bumpeq:_B,Cacute:bB,cacute:vB,capand:yB,capbrcup:EB,capcap:SB,cap:xB,Cap:TB,capcup:wB,capdot:CB,CapitalDifferentialD:AB,caps:RB,caret:MB,caron:NB,Cayleys:kB,ccaps:IB,Ccaron:OB,ccaron:DB,Ccedil:LB,ccedil:PB,Ccirc:FB,ccirc:UB,Cconint:BB,ccups:GB,ccupssm:zB,Cdot:VB,cdot:HB,cedil:qB,Cedilla:YB,cemptyv:$B,cent:WB,centerdot:KB,CenterDot:jB,cfr:QB,Cfr:XB,CHcy:ZB,chcy:JB,check:eG,checkmark:tG,Chi:nG,chi:rG,circ:iG,circeq:sG,circlearrowleft:oG,circlearrowright:aG,circledast:lG,circledcirc:cG,circleddash:dG,CircleDot:uG,circledR:pG,circledS:hG,CircleMinus:mG,CirclePlus:fG,CircleTimes:gG,cir:_G,cirE:bG,cire:vG,cirfnint:yG,cirmid:EG,cirscir:SG,ClockwiseContourIntegral:xG,CloseCurlyDoubleQuote:TG,CloseCurlyQuote:wG,clubs:CG,clubsuit:AG,colon:RG,Colon:MG,Colone:NG,colone:kG,coloneq:IG,comma:OG,commat:DG,comp:LG,compfn:PG,complement:FG,complexes:UG,cong:BG,congdot:GG,Congruent:zG,conint:VG,Conint:HG,ContourIntegral:qG,copf:YG,Copf:$G,coprod:WG,Coproduct:KG,copy:jG,COPY:QG,copysr:XG,CounterClockwiseContourIntegral:ZG,crarr:JG,cross:ez,Cross:tz,Cscr:nz,cscr:rz,csub:iz,csube:sz,csup:oz,csupe:az,ctdot:lz,cudarrl:cz,cudarrr:dz,cuepr:uz,cuesc:pz,cularr:hz,cularrp:mz,cupbrcap:fz,cupcap:gz,CupCap:_z,cup:bz,Cup:vz,cupcup:yz,cupdot:Ez,cupor:Sz,cups:xz,curarr:Tz,curarrm:wz,curlyeqprec:Cz,curlyeqsucc:Az,curlyvee:Rz,curlywedge:Mz,curren:Nz,curvearrowleft:kz,curvearrowright:Iz,cuvee:Oz,cuwed:Dz,cwconint:Lz,cwint:Pz,cylcty:Fz,dagger:Uz,Dagger:Bz,daleth:Gz,darr:zz,Darr:Vz,dArr:Hz,dash:qz,Dashv:Yz,dashv:$z,dbkarow:Wz,dblac:Kz,Dcaron:jz,dcaron:Qz,Dcy:Xz,dcy:Zz,ddagger:Jz,ddarr:eV,DD:tV,dd:nV,DDotrahd:rV,ddotseq:iV,deg:sV,Del:oV,Delta:aV,delta:lV,demptyv:cV,dfisht:dV,Dfr:uV,dfr:pV,dHar:hV,dharl:mV,dharr:fV,DiacriticalAcute:gV,DiacriticalDot:_V,DiacriticalDoubleAcute:bV,DiacriticalGrave:vV,DiacriticalTilde:yV,diam:EV,diamond:SV,Diamond:xV,diamondsuit:TV,diams:wV,die:CV,DifferentialD:AV,digamma:RV,disin:MV,div:NV,divide:kV,divideontimes:IV,divonx:OV,DJcy:DV,djcy:LV,dlcorn:PV,dlcrop:FV,dollar:UV,Dopf:BV,dopf:GV,Dot:zV,dot:VV,DotDot:HV,doteq:qV,doteqdot:YV,DotEqual:$V,dotminus:WV,dotplus:KV,dotsquare:jV,doublebarwedge:QV,DoubleContourIntegral:XV,DoubleDot:ZV,DoubleDownArrow:JV,DoubleLeftArrow:eH,DoubleLeftRightArrow:tH,DoubleLeftTee:nH,DoubleLongLeftArrow:rH,DoubleLongLeftRightArrow:iH,DoubleLongRightArrow:sH,DoubleRightArrow:oH,DoubleRightTee:aH,DoubleUpArrow:lH,DoubleUpDownArrow:cH,DoubleVerticalBar:dH,DownArrowBar:uH,downarrow:pH,DownArrow:hH,Downarrow:mH,DownArrowUpArrow:fH,DownBreve:gH,downdownarrows:_H,downharpoonleft:bH,downharpoonright:vH,DownLeftRightVector:yH,DownLeftTeeVector:EH,DownLeftVectorBar:SH,DownLeftVector:xH,DownRightTeeVector:TH,DownRightVectorBar:wH,DownRightVector:CH,DownTeeArrow:AH,DownTee:RH,drbkarow:MH,drcorn:NH,drcrop:kH,Dscr:IH,dscr:OH,DScy:DH,dscy:LH,dsol:PH,Dstrok:FH,dstrok:UH,dtdot:BH,dtri:GH,dtrif:zH,duarr:VH,duhar:HH,dwangle:qH,DZcy:YH,dzcy:$H,dzigrarr:WH,Eacute:KH,eacute:jH,easter:QH,Ecaron:XH,ecaron:ZH,Ecirc:JH,ecirc:eq,ecir:tq,ecolon:nq,Ecy:rq,ecy:iq,eDDot:sq,Edot:oq,edot:aq,eDot:lq,ee:cq,efDot:dq,Efr:uq,efr:pq,eg:hq,Egrave:mq,egrave:fq,egs:gq,egsdot:_q,el:bq,Element:vq,elinters:yq,ell:Eq,els:Sq,elsdot:xq,Emacr:Tq,emacr:wq,empty:Cq,emptyset:Aq,EmptySmallSquare:Rq,emptyv:Mq,EmptyVerySmallSquare:Nq,emsp13:kq,emsp14:Iq,emsp:Oq,ENG:Dq,eng:Lq,ensp:Pq,Eogon:Fq,eogon:Uq,Eopf:Bq,eopf:Gq,epar:zq,eparsl:Vq,eplus:Hq,epsi:qq,Epsilon:Yq,epsilon:$q,epsiv:Wq,eqcirc:Kq,eqcolon:jq,eqsim:Qq,eqslantgtr:Xq,eqslantless:Zq,Equal:Jq,equals:eY,EqualTilde:tY,equest:nY,Equilibrium:rY,equiv:iY,equivDD:sY,eqvparsl:oY,erarr:aY,erDot:lY,escr:cY,Escr:dY,esdot:uY,Esim:pY,esim:hY,Eta:mY,eta:fY,ETH:gY,eth:_Y,Euml:bY,euml:vY,euro:yY,excl:EY,exist:SY,Exists:xY,expectation:TY,exponentiale:wY,ExponentialE:CY,fallingdotseq:AY,Fcy:RY,fcy:MY,female:NY,ffilig:kY,fflig:IY,ffllig:OY,Ffr:DY,ffr:LY,filig:PY,FilledSmallSquare:FY,FilledVerySmallSquare:UY,fjlig:BY,flat:GY,fllig:zY,fltns:VY,fnof:HY,Fopf:qY,fopf:YY,forall:$Y,ForAll:WY,fork:KY,forkv:jY,Fouriertrf:QY,fpartint:XY,frac12:ZY,frac13:JY,frac14:e$,frac15:t$,frac16:n$,frac18:r$,frac23:i$,frac25:s$,frac34:o$,frac35:a$,frac38:l$,frac45:c$,frac56:d$,frac58:u$,frac78:p$,frasl:h$,frown:m$,fscr:f$,Fscr:g$,gacute:_$,Gamma:b$,gamma:v$,Gammad:y$,gammad:E$,gap:S$,Gbreve:x$,gbreve:T$,Gcedil:w$,Gcirc:C$,gcirc:A$,Gcy:R$,gcy:M$,Gdot:N$,gdot:k$,ge:I$,gE:O$,gEl:D$,gel:L$,geq:P$,geqq:F$,geqslant:U$,gescc:B$,ges:G$,gesdot:z$,gesdoto:V$,gesdotol:H$,gesl:q$,gesles:Y$,Gfr:$$,gfr:W$,gg:K$,Gg:j$,ggg:Q$,gimel:X$,GJcy:Z$,gjcy:J$,gla:eW,gl:tW,glE:nW,glj:rW,gnap:iW,gnapprox:sW,gne:oW,gnE:aW,gneq:lW,gneqq:cW,gnsim:dW,Gopf:uW,gopf:pW,grave:hW,GreaterEqual:mW,GreaterEqualLess:fW,GreaterFullEqual:gW,GreaterGreater:_W,GreaterLess:bW,GreaterSlantEqual:vW,GreaterTilde:yW,Gscr:EW,gscr:SW,gsim:xW,gsime:TW,gsiml:wW,gtcc:CW,gtcir:AW,gt:RW,GT:MW,Gt:NW,gtdot:kW,gtlPar:IW,gtquest:OW,gtrapprox:DW,gtrarr:LW,gtrdot:PW,gtreqless:FW,gtreqqless:UW,gtrless:BW,gtrsim:GW,gvertneqq:zW,gvnE:VW,Hacek:HW,hairsp:qW,half:YW,hamilt:$W,HARDcy:WW,hardcy:KW,harrcir:jW,harr:QW,hArr:XW,harrw:ZW,Hat:JW,hbar:eK,Hcirc:tK,hcirc:nK,hearts:rK,heartsuit:iK,hellip:sK,hercon:oK,hfr:aK,Hfr:lK,HilbertSpace:cK,hksearow:dK,hkswarow:uK,hoarr:pK,homtht:hK,hookleftarrow:mK,hookrightarrow:fK,hopf:gK,Hopf:_K,horbar:bK,HorizontalLine:vK,hscr:yK,Hscr:EK,hslash:SK,Hstrok:xK,hstrok:TK,HumpDownHump:wK,HumpEqual:CK,hybull:AK,hyphen:RK,Iacute:MK,iacute:NK,ic:kK,Icirc:IK,icirc:OK,Icy:DK,icy:LK,Idot:PK,IEcy:FK,iecy:UK,iexcl:BK,iff:GK,ifr:zK,Ifr:VK,Igrave:HK,igrave:qK,ii:YK,iiiint:$K,iiint:WK,iinfin:KK,iiota:jK,IJlig:QK,ijlig:XK,Imacr:ZK,imacr:JK,image:ej,ImaginaryI:tj,imagline:nj,imagpart:rj,imath:ij,Im:sj,imof:oj,imped:aj,Implies:lj,incare:cj,in:"∈",infin:dj,infintie:uj,inodot:pj,intcal:hj,int:mj,Int:fj,integers:gj,Integral:_j,intercal:bj,Intersection:vj,intlarhk:yj,intprod:Ej,InvisibleComma:Sj,InvisibleTimes:xj,IOcy:Tj,iocy:wj,Iogon:Cj,iogon:Aj,Iopf:Rj,iopf:Mj,Iota:Nj,iota:kj,iprod:Ij,iquest:Oj,iscr:Dj,Iscr:Lj,isin:Pj,isindot:Fj,isinE:Uj,isins:Bj,isinsv:Gj,isinv:zj,it:Vj,Itilde:Hj,itilde:qj,Iukcy:Yj,iukcy:$j,Iuml:Wj,iuml:Kj,Jcirc:jj,jcirc:Qj,Jcy:Xj,jcy:Zj,Jfr:Jj,jfr:eQ,jmath:tQ,Jopf:nQ,jopf:rQ,Jscr:iQ,jscr:sQ,Jsercy:oQ,jsercy:aQ,Jukcy:lQ,jukcy:cQ,Kappa:dQ,kappa:uQ,kappav:pQ,Kcedil:hQ,kcedil:mQ,Kcy:fQ,kcy:gQ,Kfr:_Q,kfr:bQ,kgreen:vQ,KHcy:yQ,khcy:EQ,KJcy:SQ,kjcy:xQ,Kopf:TQ,kopf:wQ,Kscr:CQ,kscr:AQ,lAarr:RQ,Lacute:MQ,lacute:NQ,laemptyv:kQ,lagran:IQ,Lambda:OQ,lambda:DQ,lang:LQ,Lang:PQ,langd:FQ,langle:UQ,lap:BQ,Laplacetrf:GQ,laquo:zQ,larrb:VQ,larrbfs:HQ,larr:qQ,Larr:YQ,lArr:$Q,larrfs:WQ,larrhk:KQ,larrlp:jQ,larrpl:QQ,larrsim:XQ,larrtl:ZQ,latail:JQ,lAtail:eX,lat:tX,late:nX,lates:rX,lbarr:iX,lBarr:sX,lbbrk:oX,lbrace:aX,lbrack:lX,lbrke:cX,lbrksld:dX,lbrkslu:uX,Lcaron:pX,lcaron:hX,Lcedil:mX,lcedil:fX,lceil:gX,lcub:_X,Lcy:bX,lcy:vX,ldca:yX,ldquo:EX,ldquor:SX,ldrdhar:xX,ldrushar:TX,ldsh:wX,le:CX,lE:AX,LeftAngleBracket:RX,LeftArrowBar:MX,leftarrow:NX,LeftArrow:kX,Leftarrow:IX,LeftArrowRightArrow:OX,leftarrowtail:DX,LeftCeiling:LX,LeftDoubleBracket:PX,LeftDownTeeVector:FX,LeftDownVectorBar:UX,LeftDownVector:BX,LeftFloor:GX,leftharpoondown:zX,leftharpoonup:VX,leftleftarrows:HX,leftrightarrow:qX,LeftRightArrow:YX,Leftrightarrow:$X,leftrightarrows:WX,leftrightharpoons:KX,leftrightsquigarrow:jX,LeftRightVector:QX,LeftTeeArrow:XX,LeftTee:ZX,LeftTeeVector:JX,leftthreetimes:eZ,LeftTriangleBar:tZ,LeftTriangle:nZ,LeftTriangleEqual:rZ,LeftUpDownVector:iZ,LeftUpTeeVector:sZ,LeftUpVectorBar:oZ,LeftUpVector:aZ,LeftVectorBar:lZ,LeftVector:cZ,lEg:dZ,leg:uZ,leq:pZ,leqq:hZ,leqslant:mZ,lescc:fZ,les:gZ,lesdot:_Z,lesdoto:bZ,lesdotor:vZ,lesg:yZ,lesges:EZ,lessapprox:SZ,lessdot:xZ,lesseqgtr:TZ,lesseqqgtr:wZ,LessEqualGreater:CZ,LessFullEqual:AZ,LessGreater:RZ,lessgtr:MZ,LessLess:NZ,lesssim:kZ,LessSlantEqual:IZ,LessTilde:OZ,lfisht:DZ,lfloor:LZ,Lfr:PZ,lfr:FZ,lg:UZ,lgE:BZ,lHar:GZ,lhard:zZ,lharu:VZ,lharul:HZ,lhblk:qZ,LJcy:YZ,ljcy:$Z,llarr:WZ,ll:KZ,Ll:jZ,llcorner:QZ,Lleftarrow:XZ,llhard:ZZ,lltri:JZ,Lmidot:eJ,lmidot:tJ,lmoustache:nJ,lmoust:rJ,lnap:iJ,lnapprox:sJ,lne:oJ,lnE:aJ,lneq:lJ,lneqq:cJ,lnsim:dJ,loang:uJ,loarr:pJ,lobrk:hJ,longleftarrow:mJ,LongLeftArrow:fJ,Longleftarrow:gJ,longleftrightarrow:_J,LongLeftRightArrow:bJ,Longleftrightarrow:vJ,longmapsto:yJ,longrightarrow:EJ,LongRightArrow:SJ,Longrightarrow:xJ,looparrowleft:TJ,looparrowright:wJ,lopar:CJ,Lopf:AJ,lopf:RJ,loplus:MJ,lotimes:NJ,lowast:kJ,lowbar:IJ,LowerLeftArrow:OJ,LowerRightArrow:DJ,loz:LJ,lozenge:PJ,lozf:FJ,lpar:UJ,lparlt:BJ,lrarr:GJ,lrcorner:zJ,lrhar:VJ,lrhard:HJ,lrm:qJ,lrtri:YJ,lsaquo:$J,lscr:WJ,Lscr:KJ,lsh:jJ,Lsh:QJ,lsim:XJ,lsime:ZJ,lsimg:JJ,lsqb:eee,lsquo:tee,lsquor:nee,Lstrok:ree,lstrok:iee,ltcc:see,ltcir:oee,lt:aee,LT:lee,Lt:cee,ltdot:dee,lthree:uee,ltimes:pee,ltlarr:hee,ltquest:mee,ltri:fee,ltrie:gee,ltrif:_ee,ltrPar:bee,lurdshar:vee,luruhar:yee,lvertneqq:Eee,lvnE:See,macr:xee,male:Tee,malt:wee,maltese:Cee,Map:"⤅",map:Aee,mapsto:Ree,mapstodown:Mee,mapstoleft:Nee,mapstoup:kee,marker:Iee,mcomma:Oee,Mcy:Dee,mcy:Lee,mdash:Pee,mDDot:Fee,measuredangle:Uee,MediumSpace:Bee,Mellintrf:Gee,Mfr:zee,mfr:Vee,mho:Hee,micro:qee,midast:Yee,midcir:$ee,mid:Wee,middot:Kee,minusb:jee,minus:Qee,minusd:Xee,minusdu:Zee,MinusPlus:Jee,mlcp:ete,mldr:tte,mnplus:nte,models:rte,Mopf:ite,mopf:ste,mp:ote,mscr:ate,Mscr:lte,mstpos:cte,Mu:dte,mu:ute,multimap:pte,mumap:hte,nabla:mte,Nacute:fte,nacute:gte,nang:_te,nap:bte,napE:vte,napid:yte,napos:Ete,napprox:Ste,natural:xte,naturals:Tte,natur:wte,nbsp:Cte,nbump:Ate,nbumpe:Rte,ncap:Mte,Ncaron:Nte,ncaron:kte,Ncedil:Ite,ncedil:Ote,ncong:Dte,ncongdot:Lte,ncup:Pte,Ncy:Fte,ncy:Ute,ndash:Bte,nearhk:Gte,nearr:zte,neArr:Vte,nearrow:Hte,ne:qte,nedot:Yte,NegativeMediumSpace:$te,NegativeThickSpace:Wte,NegativeThinSpace:Kte,NegativeVeryThinSpace:jte,nequiv:Qte,nesear:Xte,nesim:Zte,NestedGreaterGreater:Jte,NestedLessLess:ene,NewLine:tne,nexist:nne,nexists:rne,Nfr:ine,nfr:sne,ngE:one,nge:ane,ngeq:lne,ngeqq:cne,ngeqslant:dne,nges:une,nGg:pne,ngsim:hne,nGt:mne,ngt:fne,ngtr:gne,nGtv:_ne,nharr:bne,nhArr:vne,nhpar:yne,ni:Ene,nis:Sne,nisd:xne,niv:Tne,NJcy:wne,njcy:Cne,nlarr:Ane,nlArr:Rne,nldr:Mne,nlE:Nne,nle:kne,nleftarrow:Ine,nLeftarrow:One,nleftrightarrow:Dne,nLeftrightarrow:Lne,nleq:Pne,nleqq:Fne,nleqslant:Une,nles:Bne,nless:Gne,nLl:zne,nlsim:Vne,nLt:Hne,nlt:qne,nltri:Yne,nltrie:$ne,nLtv:Wne,nmid:Kne,NoBreak:jne,NonBreakingSpace:Qne,nopf:Xne,Nopf:Zne,Not:Jne,not:ere,NotCongruent:tre,NotCupCap:nre,NotDoubleVerticalBar:rre,NotElement:ire,NotEqual:sre,NotEqualTilde:ore,NotExists:are,NotGreater:lre,NotGreaterEqual:cre,NotGreaterFullEqual:dre,NotGreaterGreater:ure,NotGreaterLess:pre,NotGreaterSlantEqual:hre,NotGreaterTilde:mre,NotHumpDownHump:fre,NotHumpEqual:gre,notin:_re,notindot:bre,notinE:vre,notinva:yre,notinvb:Ere,notinvc:Sre,NotLeftTriangleBar:xre,NotLeftTriangle:Tre,NotLeftTriangleEqual:wre,NotLess:Cre,NotLessEqual:Are,NotLessGreater:Rre,NotLessLess:Mre,NotLessSlantEqual:Nre,NotLessTilde:kre,NotNestedGreaterGreater:Ire,NotNestedLessLess:Ore,notni:Dre,notniva:Lre,notnivb:Pre,notnivc:Fre,NotPrecedes:Ure,NotPrecedesEqual:Bre,NotPrecedesSlantEqual:Gre,NotReverseElement:zre,NotRightTriangleBar:Vre,NotRightTriangle:Hre,NotRightTriangleEqual:qre,NotSquareSubset:Yre,NotSquareSubsetEqual:$re,NotSquareSuperset:Wre,NotSquareSupersetEqual:Kre,NotSubset:jre,NotSubsetEqual:Qre,NotSucceeds:Xre,NotSucceedsEqual:Zre,NotSucceedsSlantEqual:Jre,NotSucceedsTilde:eie,NotSuperset:tie,NotSupersetEqual:nie,NotTilde:rie,NotTildeEqual:iie,NotTildeFullEqual:sie,NotTildeTilde:oie,NotVerticalBar:aie,nparallel:lie,npar:cie,nparsl:die,npart:uie,npolint:pie,npr:hie,nprcue:mie,nprec:fie,npreceq:gie,npre:_ie,nrarrc:bie,nrarr:vie,nrArr:yie,nrarrw:Eie,nrightarrow:Sie,nRightarrow:xie,nrtri:Tie,nrtrie:wie,nsc:Cie,nsccue:Aie,nsce:Rie,Nscr:Mie,nscr:Nie,nshortmid:kie,nshortparallel:Iie,nsim:Oie,nsime:Die,nsimeq:Lie,nsmid:Pie,nspar:Fie,nsqsube:Uie,nsqsupe:Bie,nsub:Gie,nsubE:zie,nsube:Vie,nsubset:Hie,nsubseteq:qie,nsubseteqq:Yie,nsucc:$ie,nsucceq:Wie,nsup:Kie,nsupE:jie,nsupe:Qie,nsupset:Xie,nsupseteq:Zie,nsupseteqq:Jie,ntgl:ese,Ntilde:tse,ntilde:nse,ntlg:rse,ntriangleleft:ise,ntrianglelefteq:sse,ntriangleright:ose,ntrianglerighteq:ase,Nu:lse,nu:cse,num:dse,numero:use,numsp:pse,nvap:hse,nvdash:mse,nvDash:fse,nVdash:gse,nVDash:_se,nvge:bse,nvgt:vse,nvHarr:yse,nvinfin:Ese,nvlArr:Sse,nvle:xse,nvlt:Tse,nvltrie:wse,nvrArr:Cse,nvrtrie:Ase,nvsim:Rse,nwarhk:Mse,nwarr:Nse,nwArr:kse,nwarrow:Ise,nwnear:Ose,Oacute:Dse,oacute:Lse,oast:Pse,Ocirc:Fse,ocirc:Use,ocir:Bse,Ocy:Gse,ocy:zse,odash:Vse,Odblac:Hse,odblac:qse,odiv:Yse,odot:$se,odsold:Wse,OElig:Kse,oelig:jse,ofcir:Qse,Ofr:Xse,ofr:Zse,ogon:Jse,Ograve:eoe,ograve:toe,ogt:noe,ohbar:roe,ohm:ioe,oint:soe,olarr:ooe,olcir:aoe,olcross:loe,oline:coe,olt:doe,Omacr:uoe,omacr:poe,Omega:hoe,omega:moe,Omicron:foe,omicron:goe,omid:_oe,ominus:boe,Oopf:voe,oopf:yoe,opar:Eoe,OpenCurlyDoubleQuote:Soe,OpenCurlyQuote:xoe,operp:Toe,oplus:woe,orarr:Coe,Or:Aoe,or:Roe,ord:Moe,order:Noe,orderof:koe,ordf:Ioe,ordm:Ooe,origof:Doe,oror:Loe,orslope:Poe,orv:Foe,oS:Uoe,Oscr:Boe,oscr:Goe,Oslash:zoe,oslash:Voe,osol:Hoe,Otilde:qoe,otilde:Yoe,otimesas:$oe,Otimes:Woe,otimes:Koe,Ouml:joe,ouml:Qoe,ovbar:Xoe,OverBar:Zoe,OverBrace:Joe,OverBracket:eae,OverParenthesis:tae,para:nae,parallel:rae,par:iae,parsim:sae,parsl:oae,part:aae,PartialD:lae,Pcy:cae,pcy:dae,percnt:uae,period:pae,permil:hae,perp:mae,pertenk:fae,Pfr:gae,pfr:_ae,Phi:bae,phi:vae,phiv:yae,phmmat:Eae,phone:Sae,Pi:xae,pi:Tae,pitchfork:wae,piv:Cae,planck:Aae,planckh:Rae,plankv:Mae,plusacir:Nae,plusb:kae,pluscir:Iae,plus:Oae,plusdo:Dae,plusdu:Lae,pluse:Pae,PlusMinus:Fae,plusmn:Uae,plussim:Bae,plustwo:Gae,pm:zae,Poincareplane:Vae,pointint:Hae,popf:qae,Popf:Yae,pound:$ae,prap:Wae,Pr:Kae,pr:jae,prcue:Qae,precapprox:Xae,prec:Zae,preccurlyeq:Jae,Precedes:ele,PrecedesEqual:tle,PrecedesSlantEqual:nle,PrecedesTilde:rle,preceq:ile,precnapprox:sle,precneqq:ole,precnsim:ale,pre:lle,prE:cle,precsim:dle,prime:ule,Prime:ple,primes:hle,prnap:mle,prnE:fle,prnsim:gle,prod:_le,Product:ble,profalar:vle,profline:yle,profsurf:Ele,prop:Sle,Proportional:xle,Proportion:Tle,propto:wle,prsim:Cle,prurel:Ale,Pscr:Rle,pscr:Mle,Psi:Nle,psi:kle,puncsp:Ile,Qfr:Ole,qfr:Dle,qint:Lle,qopf:Ple,Qopf:Fle,qprime:Ule,Qscr:Ble,qscr:Gle,quaternions:zle,quatint:Vle,quest:Hle,questeq:qle,quot:Yle,QUOT:$le,rAarr:Wle,race:Kle,Racute:jle,racute:Qle,radic:Xle,raemptyv:Zle,rang:Jle,Rang:ece,rangd:tce,range:nce,rangle:rce,raquo:ice,rarrap:sce,rarrb:oce,rarrbfs:ace,rarrc:lce,rarr:cce,Rarr:dce,rArr:uce,rarrfs:pce,rarrhk:hce,rarrlp:mce,rarrpl:fce,rarrsim:gce,Rarrtl:_ce,rarrtl:bce,rarrw:vce,ratail:yce,rAtail:Ece,ratio:Sce,rationals:xce,rbarr:Tce,rBarr:wce,RBarr:Cce,rbbrk:Ace,rbrace:Rce,rbrack:Mce,rbrke:Nce,rbrksld:kce,rbrkslu:Ice,Rcaron:Oce,rcaron:Dce,Rcedil:Lce,rcedil:Pce,rceil:Fce,rcub:Uce,Rcy:Bce,rcy:Gce,rdca:zce,rdldhar:Vce,rdquo:Hce,rdquor:qce,rdsh:Yce,real:$ce,realine:Wce,realpart:Kce,reals:jce,Re:Qce,rect:Xce,reg:Zce,REG:Jce,ReverseElement:ede,ReverseEquilibrium:tde,ReverseUpEquilibrium:nde,rfisht:rde,rfloor:ide,rfr:sde,Rfr:ode,rHar:ade,rhard:lde,rharu:cde,rharul:dde,Rho:ude,rho:pde,rhov:hde,RightAngleBracket:mde,RightArrowBar:fde,rightarrow:gde,RightArrow:_de,Rightarrow:bde,RightArrowLeftArrow:vde,rightarrowtail:yde,RightCeiling:Ede,RightDoubleBracket:Sde,RightDownTeeVector:xde,RightDownVectorBar:Tde,RightDownVector:wde,RightFloor:Cde,rightharpoondown:Ade,rightharpoonup:Rde,rightleftarrows:Mde,rightleftharpoons:Nde,rightrightarrows:kde,rightsquigarrow:Ide,RightTeeArrow:Ode,RightTee:Dde,RightTeeVector:Lde,rightthreetimes:Pde,RightTriangleBar:Fde,RightTriangle:Ude,RightTriangleEqual:Bde,RightUpDownVector:Gde,RightUpTeeVector:zde,RightUpVectorBar:Vde,RightUpVector:Hde,RightVectorBar:qde,RightVector:Yde,ring:$de,risingdotseq:Wde,rlarr:Kde,rlhar:jde,rlm:Qde,rmoustache:Xde,rmoust:Zde,rnmid:Jde,roang:eue,roarr:tue,robrk:nue,ropar:rue,ropf:iue,Ropf:sue,roplus:oue,rotimes:aue,RoundImplies:lue,rpar:cue,rpargt:due,rppolint:uue,rrarr:pue,Rrightarrow:hue,rsaquo:mue,rscr:fue,Rscr:gue,rsh:_ue,Rsh:bue,rsqb:vue,rsquo:yue,rsquor:Eue,rthree:Sue,rtimes:xue,rtri:Tue,rtrie:wue,rtrif:Cue,rtriltri:Aue,RuleDelayed:Rue,ruluhar:Mue,rx:Nue,Sacute:kue,sacute:Iue,sbquo:Oue,scap:Due,Scaron:Lue,scaron:Pue,Sc:Fue,sc:Uue,sccue:Bue,sce:Gue,scE:zue,Scedil:Vue,scedil:Hue,Scirc:que,scirc:Yue,scnap:$ue,scnE:Wue,scnsim:Kue,scpolint:jue,scsim:Que,Scy:Xue,scy:Zue,sdotb:Jue,sdot:epe,sdote:tpe,searhk:npe,searr:rpe,seArr:ipe,searrow:spe,sect:ope,semi:ape,seswar:lpe,setminus:cpe,setmn:dpe,sext:upe,Sfr:ppe,sfr:hpe,sfrown:mpe,sharp:fpe,SHCHcy:gpe,shchcy:_pe,SHcy:bpe,shcy:vpe,ShortDownArrow:ype,ShortLeftArrow:Epe,shortmid:Spe,shortparallel:xpe,ShortRightArrow:Tpe,ShortUpArrow:wpe,shy:Cpe,Sigma:Ape,sigma:Rpe,sigmaf:Mpe,sigmav:Npe,sim:kpe,simdot:Ipe,sime:Ope,simeq:Dpe,simg:Lpe,simgE:Ppe,siml:Fpe,simlE:Upe,simne:Bpe,simplus:Gpe,simrarr:zpe,slarr:Vpe,SmallCircle:Hpe,smallsetminus:qpe,smashp:Ype,smeparsl:$pe,smid:Wpe,smile:Kpe,smt:jpe,smte:Qpe,smtes:Xpe,SOFTcy:Zpe,softcy:Jpe,solbar:ehe,solb:the,sol:nhe,Sopf:rhe,sopf:ihe,spades:she,spadesuit:ohe,spar:ahe,sqcap:lhe,sqcaps:che,sqcup:dhe,sqcups:uhe,Sqrt:phe,sqsub:hhe,sqsube:mhe,sqsubset:fhe,sqsubseteq:ghe,sqsup:_he,sqsupe:bhe,sqsupset:vhe,sqsupseteq:yhe,square:Ehe,Square:She,SquareIntersection:xhe,SquareSubset:The,SquareSubsetEqual:whe,SquareSuperset:Che,SquareSupersetEqual:Ahe,SquareUnion:Rhe,squarf:Mhe,squ:Nhe,squf:khe,srarr:Ihe,Sscr:Ohe,sscr:Dhe,ssetmn:Lhe,ssmile:Phe,sstarf:Fhe,Star:Uhe,star:Bhe,starf:Ghe,straightepsilon:zhe,straightphi:Vhe,strns:Hhe,sub:qhe,Sub:Yhe,subdot:$he,subE:Whe,sube:Khe,subedot:jhe,submult:Qhe,subnE:Xhe,subne:Zhe,subplus:Jhe,subrarr:eme,subset:tme,Subset:nme,subseteq:rme,subseteqq:ime,SubsetEqual:sme,subsetneq:ome,subsetneqq:ame,subsim:lme,subsub:cme,subsup:dme,succapprox:ume,succ:pme,succcurlyeq:hme,Succeeds:mme,SucceedsEqual:fme,SucceedsSlantEqual:gme,SucceedsTilde:_me,succeq:bme,succnapprox:vme,succneqq:yme,succnsim:Eme,succsim:Sme,SuchThat:xme,sum:Tme,Sum:wme,sung:Cme,sup1:Ame,sup2:Rme,sup3:Mme,sup:Nme,Sup:kme,supdot:Ime,supdsub:Ome,supE:Dme,supe:Lme,supedot:Pme,Superset:Fme,SupersetEqual:Ume,suphsol:Bme,suphsub:Gme,suplarr:zme,supmult:Vme,supnE:Hme,supne:qme,supplus:Yme,supset:$me,Supset:Wme,supseteq:Kme,supseteqq:jme,supsetneq:Qme,supsetneqq:Xme,supsim:Zme,supsub:Jme,supsup:efe,swarhk:tfe,swarr:nfe,swArr:rfe,swarrow:ife,swnwar:sfe,szlig:ofe,Tab:afe,target:lfe,Tau:cfe,tau:dfe,tbrk:ufe,Tcaron:pfe,tcaron:hfe,Tcedil:mfe,tcedil:ffe,Tcy:gfe,tcy:_fe,tdot:bfe,telrec:vfe,Tfr:yfe,tfr:Efe,there4:Sfe,therefore:xfe,Therefore:Tfe,Theta:wfe,theta:Cfe,thetasym:Afe,thetav:Rfe,thickapprox:Mfe,thicksim:Nfe,ThickSpace:kfe,ThinSpace:Ife,thinsp:Ofe,thkap:Dfe,thksim:Lfe,THORN:Pfe,thorn:Ffe,tilde:Ufe,Tilde:Bfe,TildeEqual:Gfe,TildeFullEqual:zfe,TildeTilde:Vfe,timesbar:Hfe,timesb:qfe,times:Yfe,timesd:$fe,tint:Wfe,toea:Kfe,topbot:jfe,topcir:Qfe,top:Xfe,Topf:Zfe,topf:Jfe,topfork:ege,tosa:tge,tprime:nge,trade:rge,TRADE:ige,triangle:sge,triangledown:oge,triangleleft:age,trianglelefteq:lge,triangleq:cge,triangleright:dge,trianglerighteq:uge,tridot:pge,trie:hge,triminus:mge,TripleDot:fge,triplus:gge,trisb:_ge,tritime:bge,trpezium:vge,Tscr:yge,tscr:Ege,TScy:Sge,tscy:xge,TSHcy:Tge,tshcy:wge,Tstrok:Cge,tstrok:Age,twixt:Rge,twoheadleftarrow:Mge,twoheadrightarrow:Nge,Uacute:kge,uacute:Ige,uarr:Oge,Uarr:Dge,uArr:Lge,Uarrocir:Pge,Ubrcy:Fge,ubrcy:Uge,Ubreve:Bge,ubreve:Gge,Ucirc:zge,ucirc:Vge,Ucy:Hge,ucy:qge,udarr:Yge,Udblac:$ge,udblac:Wge,udhar:Kge,ufisht:jge,Ufr:Qge,ufr:Xge,Ugrave:Zge,ugrave:Jge,uHar:e_e,uharl:t_e,uharr:n_e,uhblk:r_e,ulcorn:i_e,ulcorner:s_e,ulcrop:o_e,ultri:a_e,Umacr:l_e,umacr:c_e,uml:d_e,UnderBar:u_e,UnderBrace:p_e,UnderBracket:h_e,UnderParenthesis:m_e,Union:f_e,UnionPlus:g_e,Uogon:__e,uogon:b_e,Uopf:v_e,uopf:y_e,UpArrowBar:E_e,uparrow:S_e,UpArrow:x_e,Uparrow:T_e,UpArrowDownArrow:w_e,updownarrow:C_e,UpDownArrow:A_e,Updownarrow:R_e,UpEquilibrium:M_e,upharpoonleft:N_e,upharpoonright:k_e,uplus:I_e,UpperLeftArrow:O_e,UpperRightArrow:D_e,upsi:L_e,Upsi:P_e,upsih:F_e,Upsilon:U_e,upsilon:B_e,UpTeeArrow:G_e,UpTee:z_e,upuparrows:V_e,urcorn:H_e,urcorner:q_e,urcrop:Y_e,Uring:$_e,uring:W_e,urtri:K_e,Uscr:j_e,uscr:Q_e,utdot:X_e,Utilde:Z_e,utilde:J_e,utri:e0e,utrif:t0e,uuarr:n0e,Uuml:r0e,uuml:i0e,uwangle:s0e,vangrt:o0e,varepsilon:a0e,varkappa:l0e,varnothing:c0e,varphi:d0e,varpi:u0e,varpropto:p0e,varr:h0e,vArr:m0e,varrho:f0e,varsigma:g0e,varsubsetneq:_0e,varsubsetneqq:b0e,varsupsetneq:v0e,varsupsetneqq:y0e,vartheta:E0e,vartriangleleft:S0e,vartriangleright:x0e,vBar:T0e,Vbar:w0e,vBarv:C0e,Vcy:A0e,vcy:R0e,vdash:M0e,vDash:N0e,Vdash:k0e,VDash:I0e,Vdashl:O0e,veebar:D0e,vee:L0e,Vee:P0e,veeeq:F0e,vellip:U0e,verbar:B0e,Verbar:G0e,vert:z0e,Vert:V0e,VerticalBar:H0e,VerticalLine:q0e,VerticalSeparator:Y0e,VerticalTilde:$0e,VeryThinSpace:W0e,Vfr:K0e,vfr:j0e,vltri:Q0e,vnsub:X0e,vnsup:Z0e,Vopf:J0e,vopf:ebe,vprop:tbe,vrtri:nbe,Vscr:rbe,vscr:ibe,vsubnE:sbe,vsubne:obe,vsupnE:abe,vsupne:lbe,Vvdash:cbe,vzigzag:dbe,Wcirc:ube,wcirc:pbe,wedbar:hbe,wedge:mbe,Wedge:fbe,wedgeq:gbe,weierp:_be,Wfr:bbe,wfr:vbe,Wopf:ybe,wopf:Ebe,wp:Sbe,wr:xbe,wreath:Tbe,Wscr:wbe,wscr:Cbe,xcap:Abe,xcirc:Rbe,xcup:Mbe,xdtri:Nbe,Xfr:kbe,xfr:Ibe,xharr:Obe,xhArr:Dbe,Xi:Lbe,xi:Pbe,xlarr:Fbe,xlArr:Ube,xmap:Bbe,xnis:Gbe,xodot:zbe,Xopf:Vbe,xopf:Hbe,xoplus:qbe,xotime:Ybe,xrarr:$be,xrArr:Wbe,Xscr:Kbe,xscr:jbe,xsqcup:Qbe,xuplus:Xbe,xutri:Zbe,xvee:Jbe,xwedge:e1e,Yacute:t1e,yacute:n1e,YAcy:r1e,yacy:i1e,Ycirc:s1e,ycirc:o1e,Ycy:a1e,ycy:l1e,yen:c1e,Yfr:d1e,yfr:u1e,YIcy:p1e,yicy:h1e,Yopf:m1e,yopf:f1e,Yscr:g1e,yscr:_1e,YUcy:b1e,yucy:v1e,yuml:y1e,Yuml:E1e,Zacute:S1e,zacute:x1e,Zcaron:T1e,zcaron:w1e,Zcy:C1e,zcy:A1e,Zdot:R1e,zdot:M1e,zeetrf:N1e,ZeroWidthSpace:k1e,Zeta:I1e,zeta:O1e,zfr:D1e,Zfr:L1e,ZHcy:P1e,zhcy:F1e,zigrarr:U1e,zopf:B1e,Zopf:G1e,Zscr:z1e,zscr:V1e,zwj:H1e,zwnj:q1e};var J3=Y1e,Cv=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Jl={},jS={};function $1e(n){var e,t,r=jS[n];if(r)return r;for(r=jS[n]=[],e=0;e<128;e++)t=String.fromCharCode(e),/^[0-9a-z]$/i.test(t)?r.push(t):r.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e"u"&&(t=!0),a=$1e(e),r=0,i=n.length;r=55296&&s<=57343){if(s>=55296&&s<=56319&&r+1=56320&&o<=57343)){l+=encodeURIComponent(n[r]+n[r+1]),r++;continue}l+="%EF%BF%BD";continue}l+=encodeURIComponent(n[r])}return l}Dh.defaultChars=";/?:@&=+$,-_.!~*'()#";Dh.componentChars="-_.!~*'()";var W1e=Dh,QS={};function K1e(n){var e,t,r=QS[n];if(r)return r;for(r=QS[n]=[],e=0;e<128;e++)t=String.fromCharCode(e),r.push(t);for(e=0;e=55296&&u<=57343?m+="���":m+=String.fromCharCode(u),i+=6;continue}if((o&248)===240&&i+91114111?m+="����":(u-=65536,m+=String.fromCharCode(55296+(u>>10),56320+(u&1023))),i+=9;continue}m+="�"}return m})}Lh.defaultChars=";/?:@&=+$,#";Lh.componentChars="";var j1e=Lh,Q1e=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t};function Op(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var X1e=/^([a-z0-9.+-]+:)/i,Z1e=/:[0-9]*$/,J1e=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,eve=["<",">",'"',"`"," ","\r",` -`," "],tve=["{","}","|","\\","^","`"].concat(eve),nve=["'"].concat(tve),XS=["%","/","?",";","#"].concat(nve),ZS=["/","?","#"],rve=255,JS=/^[+a-z0-9A-Z_-]{0,63}$/,ive=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,e2={javascript:!0,"javascript:":!0},t2={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function sve(n,e){if(n&&n instanceof Op)return n;var t=new Op;return t.parse(n,e),t}Op.prototype.parse=function(n,e){var t,r,i,s,o,a=n;if(a=a.trim(),!e&&n.split("#").length===1){var l=J1e.exec(a);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}var d=X1e.exec(a);if(d&&(d=d[0],i=d.toLowerCase(),this.protocol=d,a=a.substr(d.length)),(e||d||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=a.substr(0,2)==="//",o&&!(d&&e2[d])&&(a=a.substr(2),this.slashes=!0)),!e2[d]&&(o||d&&!t2[d])){var u=-1;for(t=0;t127?_+="x":_+=b[y];if(!_.match(JS)){var x=v.slice(0,t),A=v.slice(t+1),w=b.match(ive);w&&(x.push(w[1]),A.unshift(w[2])),A.length&&(a=A.join(".")+a),this.hostname=x.join(".");break}}}}this.hostname.length>rve&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var N=a.indexOf("#");N!==-1&&(this.hash=a.substr(N),a=a.slice(0,N));var L=a.indexOf("?");return L!==-1&&(this.search=a.substr(L),a=a.slice(0,L)),a&&(this.pathname=a),t2[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Op.prototype.parseHost=function(n){var e=Z1e.exec(n);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),n=n.substr(0,n.length-e.length)),n&&(this.hostname=n)};var ove=sve;Jl.encode=W1e;Jl.decode=j1e;Jl.format=Q1e;Jl.parse=ove;var Vo={},zm,n2;function eN(){return n2||(n2=1,zm=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),zm}var Vm,r2;function tN(){return r2||(r2=1,Vm=/[\0-\x1F\x7F-\x9F]/),Vm}var Hm,i2;function ave(){return i2||(i2=1,Hm=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),Hm}var qm,s2;function nN(){return s2||(s2=1,qm=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),qm}var o2;function lve(){return o2||(o2=1,Vo.Any=eN(),Vo.Cc=tN(),Vo.Cf=ave(),Vo.P=Cv,Vo.Z=nN()),Vo}(function(n){function e(D){return Object.prototype.toString.call(D)}function t(D){return e(D)==="[object String]"}var r=Object.prototype.hasOwnProperty;function i(D,$){return r.call(D,$)}function s(D){var $=Array.prototype.slice.call(arguments,1);return $.forEach(function(K){if(K){if(typeof K!="object")throw new TypeError(K+"must be object");Object.keys(K).forEach(function(B){D[B]=K[B]})}}),D}function o(D,$,K){return[].concat(D.slice(0,$),K,D.slice($+1))}function a(D){return!(D>=55296&&D<=57343||D>=64976&&D<=65007||(D&65535)===65535||(D&65535)===65534||D>=0&&D<=8||D===11||D>=14&&D<=31||D>=127&&D<=159||D>1114111)}function l(D){if(D>65535){D-=65536;var $=55296+(D>>10),K=56320+(D&1023);return String.fromCharCode($,K)}return String.fromCharCode(D)}var d=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=/&([a-z#][a-z0-9]{1,31});/gi,m=new RegExp(d.source+"|"+u.source,"gi"),f=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,g=J3;function h(D,$){var K;return i(g,$)?g[$]:$.charCodeAt(0)===35&&f.test($)&&(K=$[1].toLowerCase()==="x"?parseInt($.slice(2),16):parseInt($.slice(1),10),a(K))?l(K):D}function v(D){return D.indexOf("\\")<0?D:D.replace(d,"$1")}function b(D){return D.indexOf("\\")<0&&D.indexOf("&")<0?D:D.replace(m,function($,K,B){return K||h($,B)})}var _=/[&<>"]/,y=/[&<>"]/g,E={"&":"&","<":"<",">":">",'"':"""};function x(D){return E[D]}function A(D){return _.test(D)?D.replace(y,x):D}var w=/[.?*+^$[\]\\(){}|-]/g;function N(D){return D.replace(w,"\\$&")}function L(D){switch(D){case 9:case 32:return!0}return!1}function C(D){if(D>=8192&&D<=8202)return!0;switch(D){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var k=Cv;function H(D){return k.test(D)}function q(D){switch(D){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function ie(D){return D=D.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(D=D.replace(/ẞ/g,"ß")),D.toLowerCase().toUpperCase()}n.lib={},n.lib.mdurl=Jl,n.lib.ucmicro=lve(),n.assign=s,n.isString=t,n.has=i,n.unescapeMd=v,n.unescapeAll=b,n.isValidEntityCode=a,n.fromCodePoint=l,n.escapeHtml=A,n.arrayReplaceAt=o,n.isSpace=L,n.isWhiteSpace=C,n.isMdAsciiPunct=q,n.isPunctChar=H,n.escapeRE=N,n.normalizeReference=ie})(Jt);var Ph={},cve=function(e,t,r){var i,s,o,a,l=-1,d=e.posMax,u=e.pos;for(e.pos=t+1,i=1;e.pos32))return a;if(i===41){if(s===0)break;s--}o++}return t===o||s!==0||(a.str=a2(e.slice(t,o)),a.pos=o,a.ok=!0),a},uve=Jt.unescapeAll,pve=function(e,t,r){var i,s,o=0,a=t,l={ok:!1,pos:0,lines:0,str:""};if(a>=r||(s=e.charCodeAt(a),s!==34&&s!==39&&s!==40))return l;for(a++,s===40&&(s=41);a"+va(s.content)+""};es.code_block=function(n,e,t,r,i){var s=n[e];return""+va(n[e].content)+` -`};es.fence=function(n,e,t,r,i){var s=n[e],o=s.info?mve(s.info).trim():"",a="",l="",d,u,m,f,g;return o&&(m=o.split(/(\s+)/g),a=m[0],l=m.slice(2).join("")),t.highlight?d=t.highlight(s.content,a,l)||va(s.content):d=va(s.content),d.indexOf("127?_+="x":_+=b[y];if(!_.match(JS)){var x=v.slice(0,t),A=v.slice(t+1),w=b.match(ive);w&&(x.push(w[1]),A.unshift(w[2])),A.length&&(a=A.join(".")+a),this.hostname=x.join(".");break}}}}this.hostname.length>rve&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var N=a.indexOf("#");N!==-1&&(this.hash=a.substr(N),a=a.slice(0,N));var L=a.indexOf("?");return L!==-1&&(this.search=a.substr(L),a=a.slice(0,L)),a&&(this.pathname=a),t2[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Op.prototype.parseHost=function(n){var e=Z1e.exec(n);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),n=n.substr(0,n.length-e.length)),n&&(this.hostname=n)};var ove=sve;Jl.encode=W1e;Jl.decode=j1e;Jl.format=Q1e;Jl.parse=ove;var Vo={},zm,n2;function eN(){return n2||(n2=1,zm=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),zm}var Vm,r2;function tN(){return r2||(r2=1,Vm=/[\0-\x1F\x7F-\x9F]/),Vm}var Hm,i2;function ave(){return i2||(i2=1,Hm=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),Hm}var qm,s2;function nN(){return s2||(s2=1,qm=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),qm}var o2;function lve(){return o2||(o2=1,Vo.Any=eN(),Vo.Cc=tN(),Vo.Cf=ave(),Vo.P=Cv,Vo.Z=nN()),Vo}(function(n){function e(D){return Object.prototype.toString.call(D)}function t(D){return e(D)==="[object String]"}var r=Object.prototype.hasOwnProperty;function i(D,$){return r.call(D,$)}function s(D){var $=Array.prototype.slice.call(arguments,1);return $.forEach(function(K){if(K){if(typeof K!="object")throw new TypeError(K+"must be object");Object.keys(K).forEach(function(B){D[B]=K[B]})}}),D}function o(D,$,K){return[].concat(D.slice(0,$),K,D.slice($+1))}function a(D){return!(D>=55296&&D<=57343||D>=64976&&D<=65007||(D&65535)===65535||(D&65535)===65534||D>=0&&D<=8||D===11||D>=14&&D<=31||D>=127&&D<=159||D>1114111)}function l(D){if(D>65535){D-=65536;var $=55296+(D>>10),K=56320+(D&1023);return String.fromCharCode($,K)}return String.fromCharCode(D)}var d=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=/&([a-z#][a-z0-9]{1,31});/gi,m=new RegExp(d.source+"|"+u.source,"gi"),f=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,g=J3;function h(D,$){var K;return i(g,$)?g[$]:$.charCodeAt(0)===35&&f.test($)&&(K=$[1].toLowerCase()==="x"?parseInt($.slice(2),16):parseInt($.slice(1),10),a(K))?l(K):D}function v(D){return D.indexOf("\\")<0?D:D.replace(d,"$1")}function b(D){return D.indexOf("\\")<0&&D.indexOf("&")<0?D:D.replace(m,function($,K,B){return K||h($,B)})}var _=/[&<>"]/,y=/[&<>"]/g,E={"&":"&","<":"<",">":">",'"':"""};function x(D){return E[D]}function A(D){return _.test(D)?D.replace(y,x):D}var w=/[.?*+^$[\]\\(){}|-]/g;function N(D){return D.replace(w,"\\$&")}function L(D){switch(D){case 9:case 32:return!0}return!1}function C(D){if(D>=8192&&D<=8202)return!0;switch(D){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var k=Cv;function H(D){return k.test(D)}function q(D){switch(D){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function ie(D){return D=D.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(D=D.replace(/ẞ/g,"ß")),D.toLowerCase().toUpperCase()}n.lib={},n.lib.mdurl=Jl,n.lib.ucmicro=lve(),n.assign=s,n.isString=t,n.has=i,n.unescapeMd=v,n.unescapeAll=b,n.isValidEntityCode=a,n.fromCodePoint=l,n.escapeHtml=A,n.arrayReplaceAt=o,n.isSpace=L,n.isWhiteSpace=C,n.isMdAsciiPunct=q,n.isPunctChar=H,n.escapeRE=N,n.normalizeReference=ie})(Jt);var Ph={},cve=function(e,t,r){var i,s,o,a,l=-1,d=e.posMax,u=e.pos;for(e.pos=t+1,i=1;e.pos32))return a;if(i===41){if(s===0)break;s--}o++}return t===o||s!==0||(a.str=a2(e.slice(t,o)),a.pos=o,a.ok=!0),a},uve=Jt.unescapeAll,pve=function(e,t,r){var i,s,o=0,a=t,l={ok:!1,pos:0,lines:0,str:""};if(a>=r||(s=e.charCodeAt(a),s!==34&&s!==39&&s!==40))return l;for(a++,s===40&&(s=41);a"+va(s.content)+""};ts.code_block=function(n,e,t,r,i){var s=n[e];return""+va(n[e].content)+` +`};ts.fence=function(n,e,t,r,i){var s=n[e],o=s.info?mve(s.info).trim():"",a="",l="",d,u,m,f,g;return o&&(m=o.split(/(\s+)/g),a=m[0],l=m.slice(2).join("")),t.highlight?d=t.highlight(s.content,a,l)||va(s.content):d=va(s.content),d.indexOf(""+d+` `):"
"+d+`
-`};es.image=function(n,e,t,r,i){var s=n[e];return s.attrs[s.attrIndex("alt")][1]=i.renderInlineAsText(s.children,t,r),i.renderToken(n,e,t)};es.hardbreak=function(n,e,t){return t.xhtmlOut?`
+`};ts.image=function(n,e,t,r,i){var s=n[e];return s.attrs[s.attrIndex("alt")][1]=i.renderInlineAsText(s.children,t,r),i.renderToken(n,e,t)};ts.hardbreak=function(n,e,t){return t.xhtmlOut?`
`:`
-`};es.softbreak=function(n,e,t){return t.breaks?t.xhtmlOut?`
+`};ts.softbreak=function(n,e,t){return t.breaks?t.xhtmlOut?`
`:`
`:` -`};es.text=function(n,e){return va(n[e].content)};es.html_block=function(n,e){return n[e].content};es.html_inline=function(n,e){return n[e].content};function ec(){this.rules=hve({},es)}ec.prototype.renderAttrs=function(e){var t,r,i;if(!e.attrs)return"";for(i="",t=0,r=e.attrs.length;t `:">",s)};ec.prototype.renderInline=function(n,e,t){for(var r,i="",s=this.rules,o=0,a=n.length;o\s]/i.test(n)}function xve(n){return/^<\/a\s*>/i.test(n)}var Tve=function(e){var t,r,i,s,o,a,l,d,u,m,f,g,h,v,b,_,y=e.tokens,E;if(e.md.options.linkify){for(r=0,i=y.length;r=0;t--){if(a=s[t],a.type==="link_close"){for(t--;s[t].level!==a.level&&s[t].type!=="link_open";)t--;continue}if(a.type==="html_inline"&&(Sve(a.content)&&h>0&&h--,xve(a.content)&&h++),!(h>0)&&a.type==="text"&&e.md.linkify.test(a.content)){for(u=a.content,E=e.md.linkify.match(u),l=[],g=a.level,f=0,E.length>0&&E[0].index===0&&t>0&&s[t-1].type==="text_special"&&(E=E.slice(1)),d=0;df&&(o=new e.Token("text","",0),o.content=u.slice(f,m),o.level=g,l.push(o)),o=new e.Token("link_open","a",1),o.attrs=[["href",b]],o.level=g++,o.markup="linkify",o.info="auto",l.push(o),o=new e.Token("text","",0),o.content=_,o.level=g,l.push(o),o=new e.Token("link_close","a",-1),o.level=--g,o.markup="linkify",o.info="auto",l.push(o),f=E[d].lastIndex);f=0;e--)t=n[e],t.type==="text"&&!r&&(t.content=t.content.replace(Cve,Rve)),t.type==="link_open"&&t.info==="auto"&&r--,t.type==="link_close"&&t.info==="auto"&&r++}function Nve(n){var e,t,r=0;for(e=n.length-1;e>=0;e--)t=n[e],t.type==="text"&&!r&&rN.test(t.content)&&(t.content=t.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),t.type==="link_open"&&t.info==="auto"&&r--,t.type==="link_close"&&t.info==="auto"&&r++}var kve=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(wve.test(e.tokens[t].content)&&Mve(e.tokens[t].children),rN.test(e.tokens[t].content)&&Nve(e.tokens[t].children))},l2=Jt.isWhiteSpace,c2=Jt.isPunctChar,d2=Jt.isMdAsciiPunct,Ive=/['"]/,u2=/['"]/g,p2="’";function eu(n,e,t){return n.slice(0,e)+t+n.slice(e+1)}function Ove(n,e){var t,r,i,s,o,a,l,d,u,m,f,g,h,v,b,_,y,E,x,A,w;for(x=[],t=0;t=0&&!(x[y].level<=l);y--);if(x.length=y+1,r.type==="text"){i=r.content,o=0,a=i.length;e:for(;o=0)u=i.charCodeAt(s.index-1);else for(y=t-1;y>=0&&!(n[y].type==="softbreak"||n[y].type==="hardbreak");y--)if(n[y].content){u=n[y].content.charCodeAt(n[y].content.length-1);break}if(m=32,o=48&&u<=57&&(_=b=!1),b&&_&&(b=f,_=g),!b&&!_){E&&(r.content=eu(r.content,s.index,p2));continue}if(_){for(y=x.length-1;y>=0&&(d=x[y],!(x[y].level=0;t--)e.tokens[t].type!=="inline"||!Ive.test(e.tokens[t].content)||Ove(e.tokens[t].children,e)},Lve=function(e){var t,r,i,s,o,a,l=e.tokens;for(t=0,r=l.length;t=0&&(r=this.attrs[t][1]),r};tc.prototype.attrJoin=function(e,t){var r=this.attrIndex(e);r<0?this.attrPush([e,t]):this.attrs[r][1]=this.attrs[r][1]+" "+t};var Rv=tc,Pve=Rv;function iN(n,e,t){this.src=n,this.env=t,this.tokens=[],this.inlineMode=!1,this.md=e}iN.prototype.Token=Pve;var Fve=iN,Uve=Av,Ym=[["normalize",bve],["block",vve],["inline",yve],["linkify",Tve],["replacements",kve],["smartquotes",Dve],["text_join",Lve]];function Mv(){this.ruler=new Uve;for(var n=0;nr||(u=t+1,e.sCount[u]=4||(a=e.bMarks[u]+e.tShift[u],a>=e.eMarks[u])||(A=e.src.charCodeAt(a++),A!==124&&A!==45&&A!==58)||a>=e.eMarks[u]||(w=e.src.charCodeAt(a++),w!==124&&w!==45&&w!==58&&!$m(w))||A===45&&$m(w))return!1;for(;a=4||(m=h2(o),m.length&&m[0]===""&&m.shift(),m.length&&m[m.length-1]===""&&m.pop(),f=m.length,f===0||f!==h.length))return!1;if(i)return!0;for(y=e.parentType,e.parentType="table",x=e.md.block.ruler.getRules("blockquote"),g=e.push("table_open","table",1),g.map=b=[t,0],g=e.push("thead_open","thead",1),g.map=[t,t+1],g=e.push("tr_open","tr",1),g.map=[t,t+1],l=0;l=4)break;for(m=h2(o),m.length&&m[0]===""&&m.shift(),m.length&&m[m.length-1]===""&&m.pop(),u===t+2&&(g=e.push("tbody_open","tbody",1),g.map=_=[t+2,0]),g=e.push("tr_open","tr",1),g.map=[u,u+1],l=0;l=4){i++,s=i;continue}break}return e.line=s,o=e.push("code_block","code",0),o.content=e.getLines(t,s,4+e.blkIndent,!1)+` -`,o.map=[t,e.line],!0},Vve=function(e,t,r,i){var s,o,a,l,d,u,m,f=!1,g=e.bMarks[t]+e.tShift[t],h=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||g+3>h||(s=e.src.charCodeAt(g),s!==126&&s!==96)||(d=g,g=e.skipChars(g,s),o=g-d,o<3)||(m=e.src.slice(d,g),a=e.src.slice(g,h),s===96&&a.indexOf(String.fromCharCode(s))>=0))return!1;if(i)return!0;for(l=t;l++,!(l>=r||(g=d=e.bMarks[l]+e.tShift[l],h=e.eMarks[l],g=4)&&(g=e.skipChars(g,s),!(g-d=4||e.src.charCodeAt(k)!==62)return!1;if(i)return!0;for(h=[],v=[],y=[],E=[],w=e.md.block.ruler.getRules("blockquote"),_=e.parentType,e.parentType="blockquote",f=t;f=H));f++){if(e.src.charCodeAt(k++)===62&&!L){for(l=e.sCount[f]+1,e.src.charCodeAt(k)===32?(k++,l++,s=!1,x=!0):e.src.charCodeAt(k)===9?(x=!0,(e.bsCount[f]+l)%4===3?(k++,l++,s=!1):s=!0):x=!1,g=l,h.push(e.bMarks[f]),e.bMarks[f]=k;k=H,v.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(x?1:0),y.push(e.sCount[f]),e.sCount[f]=g-l,E.push(e.tShift[f]),e.tShift[f]=k-e.bMarks[f];continue}if(u)break;for(A=!1,a=0,d=w.length;a",N.map=m=[t,0],e.md.block.tokenize(e,t,f),N=e.push("blockquote_close","blockquote",-1),N.markup=">",e.lineMax=C,e.parentType=_,m[1]=e.line,a=0;a=4||(s=e.src.charCodeAt(d++),s!==42&&s!==45&&s!==95))return!1;for(o=1;d=s||(t=n.src.charCodeAt(i++),t<48||t>57))return-1;for(;;){if(i>=s)return-1;if(t=n.src.charCodeAt(i++),t>=48&&t<=57){if(i-r>=10)return-1;continue}if(t===41||t===46)break;return-1}return i=4||e.listIndent>=0&&e.sCount[K]-e.listIndent>=4&&e.sCount[K]=e.blkIndent&&(B=!0),(k=f2(e,K))>=0){if(m=!0,q=e.bMarks[K]+e.tShift[K],_=Number(e.src.slice(q,k-1)),B&&_!==1)return!1}else if((k=m2(e,K))>=0)m=!1;else return!1;if(B&&e.skipSpaces(k)>=e.eMarks[K])return!1;if(i)return!0;for(b=e.src.charCodeAt(k-1),v=e.tokens.length,m?($=e.push("ordered_list_open","ol",1),_!==1&&($.attrs=[["start",_]])):$=e.push("bullet_list_open","ul",1),$.map=h=[K,0],$.markup=String.fromCharCode(b),H=!1,D=e.md.block.ruler.getRules("list"),A=e.parentType,e.parentType="list";K=y?d=1:d=E-u,d>4&&(d=1),l=u+d,$=e.push("list_item_open","li",1),$.markup=String.fromCharCode(b),$.map=f=[K,0],m&&($.info=e.src.slice(q,k-1)),L=e.tight,N=e.tShift[K],w=e.sCount[K],x=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=l,e.tight=!0,e.tShift[K]=o-e.bMarks[K],e.sCount[K]=E,o>=y&&e.isEmpty(K+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,K,r,!0),(!e.tight||H)&&(Z=!1),H=e.line-K>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=x,e.tShift[K]=N,e.sCount[K]=w,e.tight=L,$=e.push("list_item_close","li",-1),$.markup=String.fromCharCode(b),K=e.line,f[1]=K,K>=r||e.sCount[K]=4)break;for(ie=!1,a=0,g=D.length;a=4||e.src.charCodeAt(w)!==91)return!1;for(;++w3)&&!(e.sCount[L]<0)){for(y=!1,u=0,m=E.length;u"u"&&(e.env.references={}),typeof e.env.references[f]>"u"&&(e.env.references[f]={title:x,href:d}),e.parentType=h,e.line=t+A+1),!0)},Xve=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Fh={},Zve="[a-zA-Z_:][a-zA-Z0-9:._-]*",Jve="[^\"'=<>`\\x00-\\x20]+",eye="'[^']*'",tye='"[^"]*"',nye="(?:"+Jve+"|"+eye+"|"+tye+")",rye="(?:\\s+"+Zve+"(?:\\s*=\\s*"+nye+")?)",oN="<[A-Za-z][A-Za-z0-9\\-]*"+rye+"*\\s*\\/?>",aN="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",iye="|",sye="<[?][\\s\\S]*?[?]>",oye="]*>",aye="",lye=new RegExp("^(?:"+oN+"|"+aN+"|"+iye+"|"+sye+"|"+oye+"|"+aye+")"),cye=new RegExp("^(?:"+oN+"|"+aN+")");Fh.HTML_TAG_RE=lye;Fh.HTML_OPEN_CLOSE_TAG_RE=cye;var dye=Xve,uye=Fh.HTML_OPEN_CLOSE_TAG_RE,Pa=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(uye.source+"\\s*$"),/^$/,!1]],pye=function(e,t,r,i){var s,o,a,l,d=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(d)!==60)return!1;for(l=e.src.slice(d,u),s=0;s=4||(s=e.src.charCodeAt(d),s!==35||d>=u))return!1;for(o=1,s=e.src.charCodeAt(++d);s===35&&d6||dd&&g2(e.src.charCodeAt(a-1))&&(u=a),e.line=t+1,l=e.push("heading_open","h"+String(o),1),l.markup="########".slice(0,o),l.map=[t,e.line],l=e.push("inline","",0),l.content=e.src.slice(d,u).trim(),l.map=[t,e.line],l.children=[],l=e.push("heading_close","h"+String(o),-1),l.markup="########".slice(0,o)),!0)},mye=function(e,t,r){var i,s,o,a,l,d,u,m,f,g=t+1,h,v=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(h=e.parentType,e.parentType="paragraph";g3)){if(e.sCount[g]>=e.blkIndent&&(d=e.bMarks[g]+e.tShift[g],u=e.eMarks[g],d=u)))){m=f===61?1:2;break}if(!(e.sCount[g]<0)){for(s=!1,o=0,a=v.length;o3)&&!(e.sCount[u]<0)){for(s=!1,o=0,a=m.length;o0&&this.level++,this.tokens.push(r),r};ts.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};ts.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;et;)if(!Uh(this.src.charCodeAt(--e)))return e+1;return e};ts.prototype.skipChars=function(e,t){for(var r=this.src.length;er;)if(t!==this.src.charCodeAt(--e))return e+1;return e};ts.prototype.getLines=function(e,t,r,i){var s,o,a,l,d,u,m,f=e;if(e>=t)return"";for(u=new Array(t-e),s=0;fr?u[s]=new Array(o-r+1).join(" ")+this.src.slice(l,d):u[s]=this.src.slice(l,d)}return u.join("")};ts.prototype.Token=lN;var gye=ts,_ye=Av,nu=[["table",Gve,["paragraph","reference"]],["code",zve],["fence",Vve,["paragraph","reference","blockquote","list"]],["blockquote",qve,["paragraph","reference","blockquote","list"]],["hr",$ve,["paragraph","reference","blockquote","list"]],["list",Kve,["paragraph","reference","blockquote"]],["reference",Qve],["html_block",pye,["paragraph","reference","blockquote"]],["heading",hye,["paragraph","reference","blockquote"]],["lheading",mye],["paragraph",fye]];function Bh(){this.ruler=new _ye;for(var n=0;n=t||n.sCount[l]=u){n.line=t;break}for(s=n.line,i=0;i=n.line)throw new Error("block rule didn't increment state.line");break}if(!r)throw new Error("none of the block rules matched");n.tight=!d,n.isEmpty(n.line-1)&&(d=!0),l=n.line,l0||(r=e.pos,i=e.posMax,r+3>i)||e.src.charCodeAt(r)!==58||e.src.charCodeAt(r+1)!==47||e.src.charCodeAt(r+2)!==47||(s=e.pending.match(Eye),!s)||(o=s[1],a=e.md.linkify.matchAtStart(e.src.slice(r-o.length)),!a)||(l=a.url,l.length<=o.length)||(l=l.replace(/\*+$/,""),d=e.md.normalizeLink(l),!e.md.validateLink(d))?!1:(t||(e.pending=e.pending.slice(0,-o.length),u=e.push("link_open","a",1),u.attrs=[["href",d]],u.markup="linkify",u.info="auto",u=e.push("text","",0),u.content=e.md.normalizeLinkText(l),u=e.push("link_close","a",-1),u.markup="linkify",u.info="auto"),e.pos+=l.length-o.length,!0)},xye=Jt.isSpace,Tye=function(e,t){var r,i,s,o=e.pos;if(e.src.charCodeAt(o)!==10)return!1;if(r=e.pending.length-1,i=e.posMax,!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){for(s=r-1;s>=1&&e.pending.charCodeAt(s-1)===32;)s--;e.pending=e.pending.slice(0,s),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(o++;o?@[]^_`{|}~-".split("").forEach(function(n){Nv[n.charCodeAt(0)]=1});var Cye=function(e,t){var r,i,s,o,a,l=e.pos,d=e.posMax;if(e.src.charCodeAt(l)!==92||(l++,l>=d))return!1;if(r=e.src.charCodeAt(l),r===10){for(t||e.push("hardbreak","br",0),l++;l=55296&&r<=56319&&l+1=56320&&i<=57343&&(o+=e.src[l+1],l++)),s="\\"+o,t||(a=e.push("text_special","",0),r<256&&Nv[r]!==0?a.content=o:a.content=s,a.markup=s,a.info="escape"),e.pos=l+1,!0},Aye=function(e,t){var r,i,s,o,a,l,d,u,m=e.pos,f=e.src.charCodeAt(m);if(f!==96)return!1;for(r=m,m++,i=e.posMax;m=0;t--)r=e[t],!(r.marker!==95&&r.marker!==42)&&r.end!==-1&&(i=e[r.end],a=t>0&&e[t-1].end===r.end+1&&e[t-1].marker===r.marker&&e[t-1].token===r.token-1&&e[r.end+1].token===i.token+1,o=String.fromCharCode(r.marker),s=n.tokens[r.token],s.type=a?"strong_open":"em_open",s.tag=a?"strong":"em",s.nesting=1,s.markup=a?o+o:o,s.content="",s=n.tokens[i.token],s.type=a?"strong_close":"em_close",s.tag=a?"strong":"em",s.nesting=-1,s.markup=a?o+o:o,s.content="",a&&(n.tokens[e[t-1].token].content="",n.tokens[e[r.end+1].token].content="",t--))}zh.postProcess=function(e){var t,r=e.tokens_meta,i=e.tokens_meta.length;for(v2(e,e.delimiters),t=0;t=v)return!1;if(b=l,d=e.md.helpers.parseLinkDestination(e.src,l,e.posMax),d.ok){for(f=e.md.normalizeLink(d.str),e.md.validateLink(f)?l=d.pos:f="",b=l;l=v||e.src.charCodeAt(l)!==41)&&(_=!0),l++}if(_){if(typeof e.env.references>"u")return!1;if(l=0?s=e.src.slice(b,l++):l=o+1):l=o+1,s||(s=e.src.slice(a,o)),u=e.env.references[Rye(s)],!u)return e.pos=h,!1;f=u.href,g=u.title}return t||(e.pos=a,e.posMax=o,m=e.push("link_open","a",1),m.attrs=r=[["href",f]],g&&r.push(["title",g]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,m=e.push("link_close","a",-1)),e.pos=l,e.posMax=v,!0},Nye=Jt.normalizeReference,jm=Jt.isSpace,kye=function(e,t){var r,i,s,o,a,l,d,u,m,f,g,h,v,b="",_=e.pos,y=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(l=e.pos+2,a=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),a<0))return!1;if(d=a+1,d=y)return!1;for(v=d,m=e.md.helpers.parseLinkDestination(e.src,d,e.posMax),m.ok&&(b=e.md.normalizeLink(m.str),e.md.validateLink(b)?d=m.pos:b=""),v=d;d=y||e.src.charCodeAt(d)!==41)return e.pos=_,!1;d++}else{if(typeof e.env.references>"u")return!1;if(d=0?o=e.src.slice(v,d++):d=a+1):d=a+1,o||(o=e.src.slice(l,a)),u=e.env.references[Nye(o)],!u)return e.pos=_,!1;b=u.href,f=u.title}return t||(s=e.src.slice(l,a),e.md.inline.parse(s,e.md,e.env,h=[]),g=e.push("image","img",0),g.attrs=r=[["src",b],["alt",""]],g.children=h,g.content=s,f&&r.push(["title",f])),e.pos=d,e.posMax=y,!0},Iye=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Oye=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,Dye=function(e,t){var r,i,s,o,a,l,d=e.pos;if(e.src.charCodeAt(d)!==60)return!1;for(a=e.pos,l=e.posMax;;){if(++d>=l||(o=e.src.charCodeAt(d),o===60))return!1;if(o===62)break}return r=e.src.slice(a+1,d),Oye.test(r)?(i=e.md.normalizeLink(r),e.md.validateLink(i)?(t||(s=e.push("link_open","a",1),s.attrs=[["href",i]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(r),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=r.length+2,!0):!1):Iye.test(r)?(i=e.md.normalizeLink("mailto:"+r),e.md.validateLink(i)?(t||(s=e.push("link_open","a",1),s.attrs=[["href",i]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(r),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=r.length+2,!0):!1):!1},Lye=Fh.HTML_TAG_RE;function Pye(n){return/^\s]/i.test(n)}function Fye(n){return/^<\/a\s*>/i.test(n)}function Uye(n){var e=n|32;return e>=97&&e<=122}var Bye=function(e,t){var r,i,s,o,a=e.pos;return!e.md.options.html||(s=e.posMax,e.src.charCodeAt(a)!==60||a+2>=s)||(r=e.src.charCodeAt(a+1),r!==33&&r!==63&&r!==47&&!Uye(r))||(i=e.src.slice(a).match(Lye),!i)?!1:(t||(o=e.push("html_inline","",0),o.content=i[0],Pye(o.content)&&e.linkLevel++,Fye(o.content)&&e.linkLevel--),e.pos+=i[0].length,!0)},y2=J3,Gye=Jt.has,zye=Jt.isValidEntityCode,E2=Jt.fromCodePoint,Vye=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Hye=/^&([a-z][a-z0-9]{1,31});/i,qye=function(e,t){var r,i,s,o,a=e.pos,l=e.posMax;if(e.src.charCodeAt(a)!==38||a+1>=l)return!1;if(r=e.src.charCodeAt(a+1),r===35){if(s=e.src.slice(a).match(Vye),s)return t||(i=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),o=e.push("text_special","",0),o.content=zye(i)?E2(i):E2(65533),o.markup=s[0],o.info="entity"),e.pos+=s[0].length,!0}else if(s=e.src.slice(a).match(Hye),s&&Gye(y2,s[1]))return t||(o=e.push("text_special","",0),o.content=y2[s[1]],o.markup=s[0],o.info="entity"),e.pos+=s[0].length,!0;return!1};function S2(n){var e,t,r,i,s,o,a,l,d={},u=n.length;if(u){var m=0,f=-2,g=[];for(e=0;es;t-=g[t]+1)if(i=n[t],i.marker===r.marker&&i.open&&i.end<0&&(a=!1,(i.close||r.open)&&(i.length+r.length)%3===0&&(i.length%3!==0||r.length%3!==0)&&(a=!0),!a)){l=t>0&&!n[t-1].open?g[t-1]+1:0,g[e]=e-t+l,g[t]=l,r.open=!1,i.end=e,i.close=!1,o=-1,f=-2;break}o!==-1&&(d[r.marker][(r.open?3:0)+(r.length||0)%3]=o)}}}var Yye=function(e){var t,r=e.tokens_meta,i=e.tokens_meta.length;for(S2(e.delimiters),t=0;t0&&i++,s[t].type==="text"&&t+10&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r};Ad.prototype.scanDelims=function(n,e){var t=n,r,i,s,o,a,l,d,u,m,f=!0,g=!0,h=this.posMax,v=this.src.charCodeAt(n);for(r=n>0?this.src.charCodeAt(n-1):32;t=n.pos)throw new Error("inline rule didn't increment state.pos");break}}else n.pos=n.posMax;e||n.pos++,a[r]=n.pos};Rd.prototype.tokenize=function(n){for(var e,t,r,i=this.ruler.getRules(""),s=i.length,o=n.posMax,a=n.md.options.maxNesting;n.pos=n.pos)throw new Error("inline rule didn't increment state.pos");break}}if(e){if(n.pos>=o)break;continue}n.pending+=n.src[n.pos++]}n.pending&&n.pushPending()};Rd.prototype.parse=function(n,e,t,r){var i,s,o,a=new this.State(n,e,t,r);for(this.tokenize(a),s=this.ruler2.getRules(""),o=s.length,i=0;i|$))",e.tpl_email_fuzzy="(^|"+t+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),Zm}function r1(n){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(t){t&&Object.keys(t).forEach(function(r){n[r]=t[r]})}),n}function Vh(n){return Object.prototype.toString.call(n)}function Qye(n){return Vh(n)==="[object String]"}function Xye(n){return Vh(n)==="[object Object]"}function Zye(n){return Vh(n)==="[object RegExp]"}function R2(n){return Vh(n)==="[object Function]"}function Jye(n){return n.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var cN={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function eEe(n){return Object.keys(n||{}).reduce(function(e,t){return e||cN.hasOwnProperty(t)},!1)}var tEe={"http:":{validate:function(n,e,t){var r=n.slice(e);return t.re.http||(t.re.http=new RegExp("^\\/\\/"+t.re.src_auth+t.re.src_host_port_strict+t.re.src_path,"i")),t.re.http.test(r)?r.match(t.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(n,e,t){var r=n.slice(e);return t.re.no_http||(t.re.no_http=new RegExp("^"+t.re.src_auth+"(?:localhost|(?:(?:"+t.re.src_domain+")\\.)+"+t.re.src_domain_root+")"+t.re.src_port+t.re.src_host_terminator+t.re.src_path,"i")),t.re.no_http.test(r)?e>=3&&n[e-3]===":"||e>=3&&n[e-3]==="/"?0:r.match(t.re.no_http)[0].length:0}},"mailto:":{validate:function(n,e,t){var r=n.slice(e);return t.re.mailto||(t.re.mailto=new RegExp("^"+t.re.src_email_name+"@"+t.re.src_host_strict,"i")),t.re.mailto.test(r)?r.match(t.re.mailto)[0].length:0}}},nEe="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",rEe="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function iEe(n){n.__index__=-1,n.__text_cache__=""}function sEe(n){return function(e,t){var r=e.slice(t);return n.test(r)?r.match(n)[0].length:0}}function M2(){return function(n,e){e.normalize(n)}}function Dp(n){var e=n.re=jye()(n.__opts__),t=n.__tlds__.slice();n.onCompile(),n.__tlds_replaced__||t.push(nEe),t.push(e.src_xn),e.src_tlds=t.join("|");function r(a){return a.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(r(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(r(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(r(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(r(e.tpl_host_fuzzy_test),"i");var i=[];n.__compiled__={};function s(a,l){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+l)}Object.keys(n.__schemas__).forEach(function(a){var l=n.__schemas__[a];if(l!==null){var d={validate:null,link:null};if(n.__compiled__[a]=d,Xye(l)){Zye(l.validate)?d.validate=sEe(l.validate):R2(l.validate)?d.validate=l.validate:s(a,l),R2(l.normalize)?d.normalize=l.normalize:l.normalize?s(a,l):d.normalize=M2();return}if(Qye(l)){i.push(a);return}s(a,l)}}),i.forEach(function(a){n.__compiled__[n.__schemas__[a]]&&(n.__compiled__[a].validate=n.__compiled__[n.__schemas__[a]].validate,n.__compiled__[a].normalize=n.__compiled__[n.__schemas__[a]].normalize)}),n.__compiled__[""]={validate:null,normalize:M2()};var o=Object.keys(n.__compiled__).filter(function(a){return a.length>0&&n.__compiled__[a]}).map(Jye).join("|");n.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+o+")","i"),n.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+o+")","ig"),n.re.schema_at_start=RegExp("^"+n.re.schema_search.source,"i"),n.re.pretest=RegExp("("+n.re.schema_test.source+")|("+n.re.host_fuzzy_test.source+")|@","i"),iEe(n)}function oEe(n,e){var t=n.__index__,r=n.__last_index__,i=n.__text_cache__.slice(t,r);this.schema=n.__schema__.toLowerCase(),this.index=t+e,this.lastIndex=r+e,this.raw=i,this.text=i,this.url=i}function i1(n,e){var t=new oEe(n,e);return n.__compiled__[t.schema].normalize(t,n),t}function Vr(n,e){if(!(this instanceof Vr))return new Vr(n,e);e||eEe(n)&&(e=n,n={}),this.__opts__=r1({},cN,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r1({},tEe,n),this.__compiled__={},this.__tlds__=rEe,this.__tlds_replaced__=!1,this.re={},Dp(this)}Vr.prototype.add=function(e,t){return this.__schemas__[e]=t,Dp(this),this};Vr.prototype.set=function(e){return this.__opts__=r1(this.__opts__,e),this};Vr.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,r,i,s,o,a,l,d,u;if(this.re.schema_test.test(e)){for(l=this.re.schema_search,l.lastIndex=0;(t=l.exec(e))!==null;)if(s=this.testSchemaAt(e,t[2],l.lastIndex),s){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+s;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(d=e.search(this.re.host_fuzzy_test),d>=0&&(this.__index__<0||d=0&&(i=e.match(this.re.email_fuzzy))!==null&&(o=i.index+i[1].length,a=i.index+i[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a))),this.__index__>=0};Vr.prototype.pretest=function(e){return this.re.pretest.test(e)};Vr.prototype.testSchemaAt=function(e,t,r){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,r,this):0};Vr.prototype.match=function(e){var t=0,r=[];this.__index__>=0&&this.__text_cache__===e&&(r.push(i1(this,t)),t=this.__last_index__);for(var i=t?e.slice(t):e;this.test(i);)r.push(i1(this,t)),i=i.slice(this.__last_index__),t+=this.__last_index__;return r.length?r:null};Vr.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var t=this.re.schema_at_start.exec(e);if(!t)return null;var r=this.testSchemaAt(e,t[2],t[0].length);return r?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+r,i1(this,0)):null};Vr.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(r,i,s){return r!==s[i-1]}).reverse(),Dp(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Dp(this),this)};Vr.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};Vr.prototype.onCompile=function(){};var aEe=Vr;const fl=2147483647,qi=36,Iv=1,dd=26,lEe=38,cEe=700,dN=72,uN=128,pN="-",dEe=/^xn--/,uEe=/[^\0-\x7F]/,pEe=/[\x2E\u3002\uFF0E\uFF61]/g,hEe={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Jm=qi-Iv,Yi=Math.floor,ef=String.fromCharCode;function lo(n){throw new RangeError(hEe[n])}function mEe(n,e){const t=[];let r=n.length;for(;r--;)t[r]=e(n[r]);return t}function hN(n,e){const t=n.split("@");let r="";t.length>1&&(r=t[0]+"@",n=t[1]),n=n.replace(pEe,".");const i=n.split("."),s=mEe(i,e).join(".");return r+s}function Ov(n){const e=[];let t=0;const r=n.length;for(;t=55296&&i<=56319&&tString.fromCodePoint(...n),fEe=function(n){return n>=48&&n<58?26+(n-48):n>=65&&n<91?n-65:n>=97&&n<123?n-97:qi},N2=function(n,e){return n+22+75*(n<26)-((e!=0)<<5)},fN=function(n,e,t){let r=0;for(n=t?Yi(n/cEe):n>>1,n+=Yi(n/e);n>Jm*dd>>1;r+=qi)n=Yi(n/Jm);return Yi(r+(Jm+1)*n/(n+lEe))},Dv=function(n){const e=[],t=n.length;let r=0,i=uN,s=dN,o=n.lastIndexOf(pN);o<0&&(o=0);for(let a=0;a=128&&lo("not-basic"),e.push(n.charCodeAt(a));for(let a=o>0?o+1:0;a=t&&lo("invalid-input");const f=fEe(n.charCodeAt(a++));f>=qi&&lo("invalid-input"),f>Yi((fl-r)/u)&&lo("overflow"),r+=f*u;const g=m<=s?Iv:m>=s+dd?dd:m-s;if(fYi(fl/h)&&lo("overflow"),u*=h}const d=e.length+1;s=fN(r-l,d,l==0),Yi(r/d)>fl-i&&lo("overflow"),i+=Yi(r/d),r%=d,e.splice(r++,0,i)}return String.fromCodePoint(...e)},Lv=function(n){const e=[];n=Ov(n);const t=n.length;let r=uN,i=0,s=dN;for(const l of n)l<128&&e.push(ef(l));const o=e.length;let a=o;for(o&&e.push(pN);a=r&&uYi((fl-i)/d)&&lo("overflow"),i+=(l-r)*d,r=l;for(const u of n)if(ufl&&lo("overflow"),u===r){let m=i;for(let f=qi;;f+=qi){const g=f<=s?Iv:f>=s+dd?dd:f-s;if(m=0))try{e.hostname=bN.toASCII(e.hostname)}catch{}return sa.encode(sa.format(e))}function OEe(n){var e=sa.parse(n,!0);if(e.hostname&&(!e.protocol||vN.indexOf(e.protocol)>=0))try{e.hostname=bN.toUnicode(e.hostname)}catch{}return sa.decode(sa.format(e),sa.decode.defaultChars+"%")}function pi(n,e){if(!(this instanceof pi))return new pi(n,e);e||Vc.isString(n)||(e=n||{},n="default"),this.inline=new CEe,this.block=new wEe,this.core=new TEe,this.renderer=new xEe,this.linkify=new AEe,this.validateLink=kEe,this.normalizeLink=IEe,this.normalizeLinkText=OEe,this.utils=Vc,this.helpers=Vc.assign({},SEe),this.options={},this.configure(n),e&&this.set(e)}pi.prototype.set=function(n){return Vc.assign(this.options,n),this};pi.prototype.configure=function(n){var e=this,t;if(Vc.isString(n)&&(t=n,n=REe[t],!n))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!n)throw new Error("Wrong `markdown-it` preset, can't be empty");return n.options&&e.set(n.options),n.components&&Object.keys(n.components).forEach(function(r){n.components[r].rules&&e[r].ruler.enableOnly(n.components[r].rules),n.components[r].rules2&&e[r].ruler2.enableOnly(n.components[r].rules2)}),this};pi.prototype.enable=function(n,e){var t=[];Array.isArray(n)||(n=[n]),["core","block","inline"].forEach(function(i){t=t.concat(this[i].ruler.enable(n,!0))},this),t=t.concat(this.inline.ruler2.enable(n,!0));var r=n.filter(function(i){return t.indexOf(i)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this};pi.prototype.disable=function(n,e){var t=[];Array.isArray(n)||(n=[n]),["core","block","inline"].forEach(function(i){t=t.concat(this[i].ruler.disable(n,!0))},this),t=t.concat(this.inline.ruler2.disable(n,!0));var r=n.filter(function(i){return t.indexOf(i)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this};pi.prototype.use=function(n){var e=[this].concat(Array.prototype.slice.call(arguments,1));return n.apply(n,e),this};pi.prototype.parse=function(n,e){if(typeof n!="string")throw new Error("Input data should be a String");var t=new this.core.State(n,this,e);return this.core.process(t),t.tokens};pi.prototype.render=function(n,e){return e=e||{},this.renderer.render(this.parse(n,e),this.options,e)};pi.prototype.parseInline=function(n,e){var t=new this.core.State(n,this,e);return t.inlineMode=!0,this.core.process(t),t.tokens};pi.prototype.renderInline=function(n,e){return e=e||{},this.renderer.render(this.parseInline(n,e),this.options,e)};var DEe=pi,LEe=DEe;const PEe=Ra(LEe),FEe="😀",UEe="😃",BEe="😄",GEe="😁",zEe="😆",VEe="😆",HEe="😅",qEe="🤣",YEe="😂",$Ee="🙂",WEe="🙃",KEe="😉",jEe="😊",QEe="😇",XEe="🥰",ZEe="😍",JEe="🤩",eSe="😘",tSe="😗",nSe="☺️",rSe="😚",iSe="😙",sSe="🥲",oSe="😋",aSe="😛",lSe="😜",cSe="🤪",dSe="😝",uSe="🤑",pSe="🤗",hSe="🤭",mSe="🤫",fSe="🤔",gSe="🤐",_Se="🤨",bSe="😐",vSe="😑",ySe="😶",ESe="😏",SSe="😒",xSe="🙄",TSe="😬",wSe="🤥",CSe="😌",ASe="😔",RSe="😪",MSe="🤤",NSe="😴",kSe="😷",ISe="🤒",OSe="🤕",DSe="🤢",LSe="🤮",PSe="🤧",FSe="🥵",USe="🥶",BSe="🥴",GSe="😵",zSe="🤯",VSe="🤠",HSe="🥳",qSe="🥸",YSe="😎",$Se="🤓",WSe="🧐",KSe="😕",jSe="😟",QSe="🙁",XSe="☹️",ZSe="😮",JSe="😯",e2e="😲",t2e="😳",n2e="🥺",r2e="😦",i2e="😧",s2e="😨",o2e="😰",a2e="😥",l2e="😢",c2e="😭",d2e="😱",u2e="😖",p2e="😣",h2e="😞",m2e="😓",f2e="😩",g2e="😫",_2e="🥱",b2e="😤",v2e="😡",y2e="😡",E2e="😠",S2e="🤬",x2e="😈",T2e="👿",w2e="💀",C2e="☠️",A2e="💩",R2e="💩",M2e="💩",N2e="🤡",k2e="👹",I2e="👺",O2e="👻",D2e="👽",L2e="👾",P2e="🤖",F2e="😺",U2e="😸",B2e="😹",G2e="😻",z2e="😼",V2e="😽",H2e="🙀",q2e="😿",Y2e="😾",$2e="🙈",W2e="🙉",K2e="🙊",j2e="💋",Q2e="💌",X2e="💘",Z2e="💝",J2e="💖",exe="💗",txe="💓",nxe="💞",rxe="💕",ixe="💟",sxe="❣️",oxe="💔",axe="❤️",lxe="🧡",cxe="💛",dxe="💚",uxe="💙",pxe="💜",hxe="🤎",mxe="🖤",fxe="🤍",gxe="💢",_xe="💥",bxe="💥",vxe="💫",yxe="💦",Exe="💨",Sxe="🕳️",xxe="💣",Txe="💬",wxe="👁️‍🗨️",Cxe="🗨️",Axe="🗯️",Rxe="💭",Mxe="💤",Nxe="👋",kxe="🤚",Ixe="🖐️",Oxe="✋",Dxe="✋",Lxe="🖖",Pxe="👌",Fxe="🤌",Uxe="🤏",Bxe="✌️",Gxe="🤞",zxe="🤟",Vxe="🤘",Hxe="🤙",qxe="👈",Yxe="👉",$xe="👆",Wxe="🖕",Kxe="🖕",jxe="👇",Qxe="☝️",Xxe="👍",Zxe="👎",Jxe="✊",eTe="✊",tTe="👊",nTe="👊",rTe="👊",iTe="🤛",sTe="🤜",oTe="👏",aTe="🙌",lTe="👐",cTe="🤲",dTe="🤝",uTe="🙏",pTe="✍️",hTe="💅",mTe="🤳",fTe="💪",gTe="🦾",_Te="🦿",bTe="🦵",vTe="🦶",yTe="👂",ETe="🦻",STe="👃",xTe="🧠",TTe="🫀",wTe="🫁",CTe="🦷",ATe="🦴",RTe="👀",MTe="👁️",NTe="👅",kTe="👄",ITe="👶",OTe="🧒",DTe="👦",LTe="👧",PTe="🧑",FTe="👱",UTe="👨",BTe="🧔",GTe="👨‍🦰",zTe="👨‍🦱",VTe="👨‍🦳",HTe="👨‍🦲",qTe="👩",YTe="👩‍🦰",$Te="🧑‍🦰",WTe="👩‍🦱",KTe="🧑‍🦱",jTe="👩‍🦳",QTe="🧑‍🦳",XTe="👩‍🦲",ZTe="🧑‍🦲",JTe="👱‍♀️",ewe="👱‍♀️",twe="👱‍♂️",nwe="🧓",rwe="👴",iwe="👵",swe="🙍",owe="🙍‍♂️",awe="🙍‍♀️",lwe="🙎",cwe="🙎‍♂️",dwe="🙎‍♀️",uwe="🙅",pwe="🙅‍♂️",hwe="🙅‍♂️",mwe="🙅‍♀️",fwe="🙅‍♀️",gwe="🙆",_we="🙆‍♂️",bwe="🙆‍♀️",vwe="💁",ywe="💁",Ewe="💁‍♂️",Swe="💁‍♂️",xwe="💁‍♀️",Twe="💁‍♀️",wwe="🙋",Cwe="🙋‍♂️",Awe="🙋‍♀️",Rwe="🧏",Mwe="🧏‍♂️",Nwe="🧏‍♀️",kwe="🙇",Iwe="🙇‍♂️",Owe="🙇‍♀️",Dwe="🤦",Lwe="🤦‍♂️",Pwe="🤦‍♀️",Fwe="🤷",Uwe="🤷‍♂️",Bwe="🤷‍♀️",Gwe="🧑‍⚕️",zwe="👨‍⚕️",Vwe="👩‍⚕️",Hwe="🧑‍🎓",qwe="👨‍🎓",Ywe="👩‍🎓",$we="🧑‍🏫",Wwe="👨‍🏫",Kwe="👩‍🏫",jwe="🧑‍⚖️",Qwe="👨‍⚖️",Xwe="👩‍⚖️",Zwe="🧑‍🌾",Jwe="👨‍🌾",eCe="👩‍🌾",tCe="🧑‍🍳",nCe="👨‍🍳",rCe="👩‍🍳",iCe="🧑‍🔧",sCe="👨‍🔧",oCe="👩‍🔧",aCe="🧑‍🏭",lCe="👨‍🏭",cCe="👩‍🏭",dCe="🧑‍💼",uCe="👨‍💼",pCe="👩‍💼",hCe="🧑‍🔬",mCe="👨‍🔬",fCe="👩‍🔬",gCe="🧑‍💻",_Ce="👨‍💻",bCe="👩‍💻",vCe="🧑‍🎤",yCe="👨‍🎤",ECe="👩‍🎤",SCe="🧑‍🎨",xCe="👨‍🎨",TCe="👩‍🎨",wCe="🧑‍✈️",CCe="👨‍✈️",ACe="👩‍✈️",RCe="🧑‍🚀",MCe="👨‍🚀",NCe="👩‍🚀",kCe="🧑‍🚒",ICe="👨‍🚒",OCe="👩‍🚒",DCe="👮",LCe="👮",PCe="👮‍♂️",FCe="👮‍♀️",UCe="🕵️",BCe="🕵️‍♂️",GCe="🕵️‍♀️",zCe="💂",VCe="💂‍♂️",HCe="💂‍♀️",qCe="🥷",YCe="👷",$Ce="👷‍♂️",WCe="👷‍♀️",KCe="🤴",jCe="👸",QCe="👳",XCe="👳‍♂️",ZCe="👳‍♀️",JCe="👲",eAe="🧕",tAe="🤵",nAe="🤵‍♂️",rAe="🤵‍♀️",iAe="👰",sAe="👰‍♂️",oAe="👰‍♀️",aAe="👰‍♀️",lAe="🤰",cAe="🤱",dAe="👩‍🍼",uAe="👨‍🍼",pAe="🧑‍🍼",hAe="👼",mAe="🎅",fAe="🤶",gAe="🧑‍🎄",_Ae="🦸",bAe="🦸‍♂️",vAe="🦸‍♀️",yAe="🦹",EAe="🦹‍♂️",SAe="🦹‍♀️",xAe="🧙",TAe="🧙‍♂️",wAe="🧙‍♀️",CAe="🧚",AAe="🧚‍♂️",RAe="🧚‍♀️",MAe="🧛",NAe="🧛‍♂️",kAe="🧛‍♀️",IAe="🧜",OAe="🧜‍♂️",DAe="🧜‍♀️",LAe="🧝",PAe="🧝‍♂️",FAe="🧝‍♀️",UAe="🧞",BAe="🧞‍♂️",GAe="🧞‍♀️",zAe="🧟",VAe="🧟‍♂️",HAe="🧟‍♀️",qAe="💆",YAe="💆‍♂️",$Ae="💆‍♀️",WAe="💇",KAe="💇‍♂️",jAe="💇‍♀️",QAe="🚶",XAe="🚶‍♂️",ZAe="🚶‍♀️",JAe="🧍",eRe="🧍‍♂️",tRe="🧍‍♀️",nRe="🧎",rRe="🧎‍♂️",iRe="🧎‍♀️",sRe="🧑‍🦯",oRe="👨‍🦯",aRe="👩‍🦯",lRe="🧑‍🦼",cRe="👨‍🦼",dRe="👩‍🦼",uRe="🧑‍🦽",pRe="👨‍🦽",hRe="👩‍🦽",mRe="🏃",fRe="🏃",gRe="🏃‍♂️",_Re="🏃‍♀️",bRe="💃",vRe="💃",yRe="🕺",ERe="🕴️",SRe="👯",xRe="👯‍♂️",TRe="👯‍♀️",wRe="🧖",CRe="🧖‍♂️",ARe="🧖‍♀️",RRe="🧗",MRe="🧗‍♂️",NRe="🧗‍♀️",kRe="🤺",IRe="🏇",ORe="⛷️",DRe="🏂",LRe="🏌️",PRe="🏌️‍♂️",FRe="🏌️‍♀️",URe="🏄",BRe="🏄‍♂️",GRe="🏄‍♀️",zRe="🚣",VRe="🚣‍♂️",HRe="🚣‍♀️",qRe="🏊",YRe="🏊‍♂️",$Re="🏊‍♀️",WRe="⛹️",KRe="⛹️‍♂️",jRe="⛹️‍♂️",QRe="⛹️‍♀️",XRe="⛹️‍♀️",ZRe="🏋️",JRe="🏋️‍♂️",eMe="🏋️‍♀️",tMe="🚴",nMe="🚴‍♂️",rMe="🚴‍♀️",iMe="🚵",sMe="🚵‍♂️",oMe="🚵‍♀️",aMe="🤸",lMe="🤸‍♂️",cMe="🤸‍♀️",dMe="🤼",uMe="🤼‍♂️",pMe="🤼‍♀️",hMe="🤽",mMe="🤽‍♂️",fMe="🤽‍♀️",gMe="🤾",_Me="🤾‍♂️",bMe="🤾‍♀️",vMe="🤹",yMe="🤹‍♂️",EMe="🤹‍♀️",SMe="🧘",xMe="🧘‍♂️",TMe="🧘‍♀️",wMe="🛀",CMe="🛌",AMe="🧑‍🤝‍🧑",RMe="👭",MMe="👫",NMe="👬",kMe="💏",IMe="👩‍❤️‍💋‍👨",OMe="👨‍❤️‍💋‍👨",DMe="👩‍❤️‍💋‍👩",LMe="💑",PMe="👩‍❤️‍👨",FMe="👨‍❤️‍👨",UMe="👩‍❤️‍👩",BMe="👪",GMe="👨‍👩‍👦",zMe="👨‍👩‍👧",VMe="👨‍👩‍👧‍👦",HMe="👨‍👩‍👦‍👦",qMe="👨‍👩‍👧‍👧",YMe="👨‍👨‍👦",$Me="👨‍👨‍👧",WMe="👨‍👨‍👧‍👦",KMe="👨‍👨‍👦‍👦",jMe="👨‍👨‍👧‍👧",QMe="👩‍👩‍👦",XMe="👩‍👩‍👧",ZMe="👩‍👩‍👧‍👦",JMe="👩‍👩‍👦‍👦",e4e="👩‍👩‍👧‍👧",t4e="👨‍👦",n4e="👨‍👦‍👦",r4e="👨‍👧",i4e="👨‍👧‍👦",s4e="👨‍👧‍👧",o4e="👩‍👦",a4e="👩‍👦‍👦",l4e="👩‍👧",c4e="👩‍👧‍👦",d4e="👩‍👧‍👧",u4e="🗣️",p4e="👤",h4e="👥",m4e="🫂",f4e="👣",g4e="🐵",_4e="🐒",b4e="🦍",v4e="🦧",y4e="🐶",E4e="🐕",S4e="🦮",x4e="🐕‍🦺",T4e="🐩",w4e="🐺",C4e="🦊",A4e="🦝",R4e="🐱",M4e="🐈",N4e="🐈‍⬛",k4e="🦁",I4e="🐯",O4e="🐅",D4e="🐆",L4e="🐴",P4e="🐎",F4e="🦄",U4e="🦓",B4e="🦌",G4e="🦬",z4e="🐮",V4e="🐂",H4e="🐃",q4e="🐄",Y4e="🐷",$4e="🐖",W4e="🐗",K4e="🐽",j4e="🐏",Q4e="🐑",X4e="🐐",Z4e="🐪",J4e="🐫",e3e="🦙",t3e="🦒",n3e="🐘",r3e="🦣",i3e="🦏",s3e="🦛",o3e="🐭",a3e="🐁",l3e="🐀",c3e="🐹",d3e="🐰",u3e="🐇",p3e="🐿️",h3e="🦫",m3e="🦔",f3e="🦇",g3e="🐻",_3e="🐻‍❄️",b3e="🐨",v3e="🐼",y3e="🦥",E3e="🦦",S3e="🦨",x3e="🦘",T3e="🦡",w3e="🐾",C3e="🐾",A3e="🦃",R3e="🐔",M3e="🐓",N3e="🐣",k3e="🐤",I3e="🐥",O3e="🐦",D3e="🐧",L3e="🕊️",P3e="🦅",F3e="🦆",U3e="🦢",B3e="🦉",G3e="🦤",z3e="🪶",V3e="🦩",H3e="🦚",q3e="🦜",Y3e="🐸",$3e="🐊",W3e="🐢",K3e="🦎",j3e="🐍",Q3e="🐲",X3e="🐉",Z3e="🦕",J3e="🐳",eNe="🐋",tNe="🐬",nNe="🐬",rNe="🦭",iNe="🐟",sNe="🐠",oNe="🐡",aNe="🦈",lNe="🐙",cNe="🐚",dNe="🐌",uNe="🦋",pNe="🐛",hNe="🐜",mNe="🐝",fNe="🐝",gNe="🪲",_Ne="🐞",bNe="🦗",vNe="🪳",yNe="🕷️",ENe="🕸️",SNe="🦂",xNe="🦟",TNe="🪰",wNe="🪱",CNe="🦠",ANe="💐",RNe="🌸",MNe="💮",NNe="🏵️",kNe="🌹",INe="🥀",ONe="🌺",DNe="🌻",LNe="🌼",PNe="🌷",FNe="🌱",UNe="🪴",BNe="🌲",GNe="🌳",zNe="🌴",VNe="🌵",HNe="🌾",qNe="🌿",YNe="☘️",$Ne="🍀",WNe="🍁",KNe="🍂",jNe="🍃",QNe="🍇",XNe="🍈",ZNe="🍉",JNe="🍊",eke="🍊",tke="🍊",nke="🍋",rke="🍌",ike="🍍",ske="🥭",oke="🍎",ake="🍏",lke="🍐",cke="🍑",dke="🍒",uke="🍓",pke="🫐",hke="🥝",mke="🍅",fke="🫒",gke="🥥",_ke="🥑",bke="🍆",vke="🥔",yke="🥕",Eke="🌽",Ske="🌶️",xke="🫑",Tke="🥒",wke="🥬",Cke="🥦",Ake="🧄",Rke="🧅",Mke="🍄",Nke="🥜",kke="🌰",Ike="🍞",Oke="🥐",Dke="🥖",Lke="🫓",Pke="🥨",Fke="🥯",Uke="🥞",Bke="🧇",Gke="🧀",zke="🍖",Vke="🍗",Hke="🥩",qke="🥓",Yke="🍔",$ke="🍟",Wke="🍕",Kke="🌭",jke="🥪",Qke="🌮",Xke="🌯",Zke="🫔",Jke="🥙",eIe="🧆",tIe="🥚",nIe="🍳",rIe="🥘",iIe="🍲",sIe="🫕",oIe="🥣",aIe="🥗",lIe="🍿",cIe="🧈",dIe="🧂",uIe="🥫",pIe="🍱",hIe="🍘",mIe="🍙",fIe="🍚",gIe="🍛",_Ie="🍜",bIe="🍝",vIe="🍠",yIe="🍢",EIe="🍣",SIe="🍤",xIe="🍥",TIe="🥮",wIe="🍡",CIe="🥟",AIe="🥠",RIe="🥡",MIe="🦀",NIe="🦞",kIe="🦐",IIe="🦑",OIe="🦪",DIe="🍦",LIe="🍧",PIe="🍨",FIe="🍩",UIe="🍪",BIe="🎂",GIe="🍰",zIe="🧁",VIe="🥧",HIe="🍫",qIe="🍬",YIe="🍭",$Ie="🍮",WIe="🍯",KIe="🍼",jIe="🥛",QIe="☕",XIe="🫖",ZIe="🍵",JIe="🍶",eOe="🍾",tOe="🍷",nOe="🍸",rOe="🍹",iOe="🍺",sOe="🍻",oOe="🥂",aOe="🥃",lOe="🥤",cOe="🧋",dOe="🧃",uOe="🧉",pOe="🧊",hOe="🥢",mOe="🍽️",fOe="🍴",gOe="🥄",_Oe="🔪",bOe="🔪",vOe="🏺",yOe="🌍",EOe="🌎",SOe="🌏",xOe="🌐",TOe="🗺️",wOe="🗾",COe="🧭",AOe="🏔️",ROe="⛰️",MOe="🌋",NOe="🗻",kOe="🏕️",IOe="🏖️",OOe="🏜️",DOe="🏝️",LOe="🏞️",POe="🏟️",FOe="🏛️",UOe="🏗️",BOe="🧱",GOe="🪨",zOe="🪵",VOe="🛖",HOe="🏘️",qOe="🏚️",YOe="🏠",$Oe="🏡",WOe="🏢",KOe="🏣",jOe="🏤",QOe="🏥",XOe="🏦",ZOe="🏨",JOe="🏩",e5e="🏪",t5e="🏫",n5e="🏬",r5e="🏭",i5e="🏯",s5e="🏰",o5e="💒",a5e="🗼",l5e="🗽",c5e="⛪",d5e="🕌",u5e="🛕",p5e="🕍",h5e="⛩️",m5e="🕋",f5e="⛲",g5e="⛺",_5e="🌁",b5e="🌃",v5e="🏙️",y5e="🌄",E5e="🌅",S5e="🌆",x5e="🌇",T5e="🌉",w5e="♨️",C5e="🎠",A5e="🎡",R5e="🎢",M5e="💈",N5e="🎪",k5e="🚂",I5e="🚃",O5e="🚄",D5e="🚅",L5e="🚆",P5e="🚇",F5e="🚈",U5e="🚉",B5e="🚊",G5e="🚝",z5e="🚞",V5e="🚋",H5e="🚌",q5e="🚍",Y5e="🚎",$5e="🚐",W5e="🚑",K5e="🚒",j5e="🚓",Q5e="🚔",X5e="🚕",Z5e="🚖",J5e="🚗",eDe="🚗",tDe="🚘",nDe="🚙",rDe="🛻",iDe="🚚",sDe="🚛",oDe="🚜",aDe="🏎️",lDe="🏍️",cDe="🛵",dDe="🦽",uDe="🦼",pDe="🛺",hDe="🚲",mDe="🛴",fDe="🛹",gDe="🛼",_De="🚏",bDe="🛣️",vDe="🛤️",yDe="🛢️",EDe="⛽",SDe="🚨",xDe="🚥",TDe="🚦",wDe="🛑",CDe="🚧",ADe="⚓",RDe="⛵",MDe="⛵",NDe="🛶",kDe="🚤",IDe="🛳️",ODe="⛴️",DDe="🛥️",LDe="🚢",PDe="✈️",FDe="🛩️",UDe="🛫",BDe="🛬",GDe="🪂",zDe="💺",VDe="🚁",HDe="🚟",qDe="🚠",YDe="🚡",$De="🛰️",WDe="🚀",KDe="🛸",jDe="🛎️",QDe="🧳",XDe="⌛",ZDe="⏳",JDe="⌚",eLe="⏰",tLe="⏱️",nLe="⏲️",rLe="🕰️",iLe="🕛",sLe="🕧",oLe="🕐",aLe="🕜",lLe="🕑",cLe="🕝",dLe="🕒",uLe="🕞",pLe="🕓",hLe="🕟",mLe="🕔",fLe="🕠",gLe="🕕",_Le="🕡",bLe="🕖",vLe="🕢",yLe="🕗",ELe="🕣",SLe="🕘",xLe="🕤",TLe="🕙",wLe="🕥",CLe="🕚",ALe="🕦",RLe="🌑",MLe="🌒",NLe="🌓",kLe="🌔",ILe="🌔",OLe="🌕",DLe="🌖",LLe="🌗",PLe="🌘",FLe="🌙",ULe="🌚",BLe="🌛",GLe="🌜",zLe="🌡️",VLe="☀️",HLe="🌝",qLe="🌞",YLe="🪐",$Le="⭐",WLe="🌟",KLe="🌠",jLe="🌌",QLe="☁️",XLe="⛅",ZLe="⛈️",JLe="🌤️",e6e="🌥️",t6e="🌦️",n6e="🌧️",r6e="🌨️",i6e="🌩️",s6e="🌪️",o6e="🌫️",a6e="🌬️",l6e="🌀",c6e="🌈",d6e="🌂",u6e="☂️",p6e="☔",h6e="⛱️",m6e="⚡",f6e="❄️",g6e="☃️",_6e="⛄",b6e="☄️",v6e="🔥",y6e="💧",E6e="🌊",S6e="🎃",x6e="🎄",T6e="🎆",w6e="🎇",C6e="🧨",A6e="✨",R6e="🎈",M6e="🎉",N6e="🎊",k6e="🎋",I6e="🎍",O6e="🎎",D6e="🎏",L6e="🎐",P6e="🎑",F6e="🧧",U6e="🎀",B6e="🎁",G6e="🎗️",z6e="🎟️",V6e="🎫",H6e="🎖️",q6e="🏆",Y6e="🏅",$6e="⚽",W6e="⚾",K6e="🥎",j6e="🏀",Q6e="🏐",X6e="🏈",Z6e="🏉",J6e="🎾",ePe="🥏",tPe="🎳",nPe="🏏",rPe="🏑",iPe="🏒",sPe="🥍",oPe="🏓",aPe="🏸",lPe="🥊",cPe="🥋",dPe="🥅",uPe="⛳",pPe="⛸️",hPe="🎣",mPe="🤿",fPe="🎽",gPe="🎿",_Pe="🛷",bPe="🥌",vPe="🎯",yPe="🪀",EPe="🪁",SPe="🔮",xPe="🪄",TPe="🧿",wPe="🎮",CPe="🕹️",APe="🎰",RPe="🎲",MPe="🧩",NPe="🧸",kPe="🪅",IPe="🪆",OPe="♠️",DPe="♥️",LPe="♦️",PPe="♣️",FPe="♟️",UPe="🃏",BPe="🀄",GPe="🎴",zPe="🎭",VPe="🖼️",HPe="🎨",qPe="🧵",YPe="🪡",$Pe="🧶",WPe="🪢",KPe="👓",jPe="🕶️",QPe="🥽",XPe="🥼",ZPe="🦺",JPe="👔",e7e="👕",t7e="👕",n7e="👖",r7e="🧣",i7e="🧤",s7e="🧥",o7e="🧦",a7e="👗",l7e="👘",c7e="🥻",d7e="🩱",u7e="🩲",p7e="🩳",h7e="👙",m7e="👚",f7e="👛",g7e="👜",_7e="👝",b7e="🛍️",v7e="🎒",y7e="🩴",E7e="👞",S7e="👞",x7e="👟",T7e="🥾",w7e="🥿",C7e="👠",A7e="👡",R7e="🩰",M7e="👢",N7e="👑",k7e="👒",I7e="🎩",O7e="🎓",D7e="🧢",L7e="🪖",P7e="⛑️",F7e="📿",U7e="💄",B7e="💍",G7e="💎",z7e="🔇",V7e="🔈",H7e="🔉",q7e="🔊",Y7e="📢",$7e="📣",W7e="📯",K7e="🔔",j7e="🔕",Q7e="🎼",X7e="🎵",Z7e="🎶",J7e="🎙️",e8e="🎚️",t8e="🎛️",n8e="🎤",r8e="🎧",i8e="📻",s8e="🎷",o8e="🪗",a8e="🎸",l8e="🎹",c8e="🎺",d8e="🎻",u8e="🪕",p8e="🥁",h8e="🪘",m8e="📱",f8e="📲",g8e="☎️",_8e="☎️",b8e="📞",v8e="📟",y8e="📠",E8e="🔋",S8e="🔌",x8e="💻",T8e="🖥️",w8e="🖨️",C8e="⌨️",A8e="🖱️",R8e="🖲️",M8e="💽",N8e="💾",k8e="💿",I8e="📀",O8e="🧮",D8e="🎥",L8e="🎞️",P8e="📽️",F8e="🎬",U8e="📺",B8e="📷",G8e="📸",z8e="📹",V8e="📼",H8e="🔍",q8e="🔎",Y8e="🕯️",$8e="💡",W8e="🔦",K8e="🏮",j8e="🏮",Q8e="🪔",X8e="📔",Z8e="📕",J8e="📖",e9e="📖",t9e="📗",n9e="📘",r9e="📙",i9e="📚",s9e="📓",o9e="📒",a9e="📃",l9e="📜",c9e="📄",d9e="📰",u9e="🗞️",p9e="📑",h9e="🔖",m9e="🏷️",f9e="💰",g9e="🪙",_9e="💴",b9e="💵",v9e="💶",y9e="💷",E9e="💸",S9e="💳",x9e="🧾",T9e="💹",w9e="✉️",C9e="📧",A9e="📨",R9e="📩",M9e="📤",N9e="📥",k9e="📫",I9e="📪",O9e="📬",D9e="📭",L9e="📮",P9e="🗳️",F9e="✏️",U9e="✒️",B9e="🖋️",G9e="🖊️",z9e="🖌️",V9e="🖍️",H9e="📝",q9e="📝",Y9e="💼",$9e="📁",W9e="📂",K9e="🗂️",j9e="📅",Q9e="📆",X9e="🗒️",Z9e="🗓️",J9e="📇",eFe="📈",tFe="📉",nFe="📊",rFe="📋",iFe="📌",sFe="📍",oFe="📎",aFe="🖇️",lFe="📏",cFe="📐",dFe="✂️",uFe="🗃️",pFe="🗄️",hFe="🗑️",mFe="🔒",fFe="🔓",gFe="🔏",_Fe="🔐",bFe="🔑",vFe="🗝️",yFe="🔨",EFe="🪓",SFe="⛏️",xFe="⚒️",TFe="🛠️",wFe="🗡️",CFe="⚔️",AFe="🔫",RFe="🪃",MFe="🏹",NFe="🛡️",kFe="🪚",IFe="🔧",OFe="🪛",DFe="🔩",LFe="⚙️",PFe="🗜️",FFe="⚖️",UFe="🦯",BFe="🔗",GFe="⛓️",zFe="🪝",VFe="🧰",HFe="🧲",qFe="🪜",YFe="⚗️",$Fe="🧪",WFe="🧫",KFe="🧬",jFe="🔬",QFe="🔭",XFe="📡",ZFe="💉",JFe="🩸",eUe="💊",tUe="🩹",nUe="🩺",rUe="🚪",iUe="🛗",sUe="🪞",oUe="🪟",aUe="🛏️",lUe="🛋️",cUe="🪑",dUe="🚽",uUe="🪠",pUe="🚿",hUe="🛁",mUe="🪤",fUe="🪒",gUe="🧴",_Ue="🧷",bUe="🧹",vUe="🧺",yUe="🧻",EUe="🪣",SUe="🧼",xUe="🪥",TUe="🧽",wUe="🧯",CUe="🛒",AUe="🚬",RUe="⚰️",MUe="🪦",NUe="⚱️",kUe="🗿",IUe="🪧",OUe="🏧",DUe="🚮",LUe="🚰",PUe="♿",FUe="🚹",UUe="🚺",BUe="🚻",GUe="🚼",zUe="🚾",VUe="🛂",HUe="🛃",qUe="🛄",YUe="🛅",$Ue="⚠️",WUe="🚸",KUe="⛔",jUe="🚫",QUe="🚳",XUe="🚭",ZUe="🚯",JUe="🚷",eBe="📵",tBe="🔞",nBe="☢️",rBe="☣️",iBe="⬆️",sBe="↗️",oBe="➡️",aBe="↘️",lBe="⬇️",cBe="↙️",dBe="⬅️",uBe="↖️",pBe="↕️",hBe="↔️",mBe="↩️",fBe="↪️",gBe="⤴️",_Be="⤵️",bBe="🔃",vBe="🔄",yBe="🔙",EBe="🔚",SBe="🔛",xBe="🔜",TBe="🔝",wBe="🛐",CBe="⚛️",ABe="🕉️",RBe="✡️",MBe="☸️",NBe="☯️",kBe="✝️",IBe="☦️",OBe="☪️",DBe="☮️",LBe="🕎",PBe="🔯",FBe="♈",UBe="♉",BBe="♊",GBe="♋",zBe="♌",VBe="♍",HBe="♎",qBe="♏",YBe="♐",$Be="♑",WBe="♒",KBe="♓",jBe="⛎",QBe="🔀",XBe="🔁",ZBe="🔂",JBe="▶️",eGe="⏩",tGe="⏭️",nGe="⏯️",rGe="◀️",iGe="⏪",sGe="⏮️",oGe="🔼",aGe="⏫",lGe="🔽",cGe="⏬",dGe="⏸️",uGe="⏹️",pGe="⏺️",hGe="⏏️",mGe="🎦",fGe="🔅",gGe="🔆",_Ge="📶",bGe="📳",vGe="📴",yGe="♀️",EGe="♂️",SGe="⚧️",xGe="✖️",TGe="➕",wGe="➖",CGe="➗",AGe="♾️",RGe="‼️",MGe="⁉️",NGe="❓",kGe="❔",IGe="❕",OGe="❗",DGe="❗",LGe="〰️",PGe="💱",FGe="💲",UGe="⚕️",BGe="♻️",GGe="⚜️",zGe="🔱",VGe="📛",HGe="🔰",qGe="⭕",YGe="✅",$Ge="☑️",WGe="✔️",KGe="❌",jGe="❎",QGe="➰",XGe="➿",ZGe="〽️",JGe="✳️",eze="✴️",tze="❇️",nze="©️",rze="®️",ize="™️",sze="#️⃣",oze="*️⃣",aze="0️⃣",lze="1️⃣",cze="2️⃣",dze="3️⃣",uze="4️⃣",pze="5️⃣",hze="6️⃣",mze="7️⃣",fze="8️⃣",gze="9️⃣",_ze="🔟",bze="🔠",vze="🔡",yze="🔣",Eze="🔤",Sze="🅰️",xze="🆎",Tze="🅱️",wze="🆑",Cze="🆒",Aze="🆓",Rze="ℹ️",Mze="🆔",Nze="Ⓜ️",kze="🆖",Ize="🅾️",Oze="🆗",Dze="🅿️",Lze="🆘",Pze="🆙",Fze="🆚",Uze="🈁",Bze="🈂️",Gze="🉐",zze="🉑",Vze="㊗️",Hze="㊙️",qze="🈵",Yze="🔴",$ze="🟠",Wze="🟡",Kze="🟢",jze="🔵",Qze="🟣",Xze="🟤",Zze="⚫",Jze="⚪",eVe="🟥",tVe="🟧",nVe="🟨",rVe="🟩",iVe="🟦",sVe="🟪",oVe="🟫",aVe="⬛",lVe="⬜",cVe="◼️",dVe="◻️",uVe="◾",pVe="◽",hVe="▪️",mVe="▫️",fVe="🔶",gVe="🔷",_Ve="🔸",bVe="🔹",vVe="🔺",yVe="🔻",EVe="💠",SVe="🔘",xVe="🔳",TVe="🔲",wVe="🏁",CVe="🚩",AVe="🎌",RVe="🏴",MVe="🏳️",NVe="🏳️‍🌈",kVe="🏳️‍⚧️",IVe="🏴‍☠️",OVe="🇦🇨",DVe="🇦🇩",LVe="🇦🇪",PVe="🇦🇫",FVe="🇦🇬",UVe="🇦🇮",BVe="🇦🇱",GVe="🇦🇲",zVe="🇦🇴",VVe="🇦🇶",HVe="🇦🇷",qVe="🇦🇸",YVe="🇦🇹",$Ve="🇦🇺",WVe="🇦🇼",KVe="🇦🇽",jVe="🇦🇿",QVe="🇧🇦",XVe="🇧🇧",ZVe="🇧🇩",JVe="🇧🇪",eHe="🇧🇫",tHe="🇧🇬",nHe="🇧🇭",rHe="🇧🇮",iHe="🇧🇯",sHe="🇧🇱",oHe="🇧🇲",aHe="🇧🇳",lHe="🇧🇴",cHe="🇧🇶",dHe="🇧🇷",uHe="🇧🇸",pHe="🇧🇹",hHe="🇧🇻",mHe="🇧🇼",fHe="🇧🇾",gHe="🇧🇿",_He="🇨🇦",bHe="🇨🇨",vHe="🇨🇩",yHe="🇨🇫",EHe="🇨🇬",SHe="🇨🇭",xHe="🇨🇮",THe="🇨🇰",wHe="🇨🇱",CHe="🇨🇲",AHe="🇨🇳",RHe="🇨🇴",MHe="🇨🇵",NHe="🇨🇷",kHe="🇨🇺",IHe="🇨🇻",OHe="🇨🇼",DHe="🇨🇽",LHe="🇨🇾",PHe="🇨🇿",FHe="🇩🇪",UHe="🇩🇬",BHe="🇩🇯",GHe="🇩🇰",zHe="🇩🇲",VHe="🇩🇴",HHe="🇩🇿",qHe="🇪🇦",YHe="🇪🇨",$He="🇪🇪",WHe="🇪🇬",KHe="🇪🇭",jHe="🇪🇷",QHe="🇪🇸",XHe="🇪🇹",ZHe="🇪🇺",JHe="🇪🇺",eqe="🇫🇮",tqe="🇫🇯",nqe="🇫🇰",rqe="🇫🇲",iqe="🇫🇴",sqe="🇫🇷",oqe="🇬🇦",aqe="🇬🇧",lqe="🇬🇧",cqe="🇬🇩",dqe="🇬🇪",uqe="🇬🇫",pqe="🇬🇬",hqe="🇬🇭",mqe="🇬🇮",fqe="🇬🇱",gqe="🇬🇲",_qe="🇬🇳",bqe="🇬🇵",vqe="🇬🇶",yqe="🇬🇷",Eqe="🇬🇸",Sqe="🇬🇹",xqe="🇬🇺",Tqe="🇬🇼",wqe="🇬🇾",Cqe="🇭🇰",Aqe="🇭🇲",Rqe="🇭🇳",Mqe="🇭🇷",Nqe="🇭🇹",kqe="🇭🇺",Iqe="🇮🇨",Oqe="🇮🇩",Dqe="🇮🇪",Lqe="🇮🇱",Pqe="🇮🇲",Fqe="🇮🇳",Uqe="🇮🇴",Bqe="🇮🇶",Gqe="🇮🇷",zqe="🇮🇸",Vqe="🇮🇹",Hqe="🇯🇪",qqe="🇯🇲",Yqe="🇯🇴",$qe="🇯🇵",Wqe="🇰🇪",Kqe="🇰🇬",jqe="🇰🇭",Qqe="🇰🇮",Xqe="🇰🇲",Zqe="🇰🇳",Jqe="🇰🇵",eYe="🇰🇷",tYe="🇰🇼",nYe="🇰🇾",rYe="🇰🇿",iYe="🇱🇦",sYe="🇱🇧",oYe="🇱🇨",aYe="🇱🇮",lYe="🇱🇰",cYe="🇱🇷",dYe="🇱🇸",uYe="🇱🇹",pYe="🇱🇺",hYe="🇱🇻",mYe="🇱🇾",fYe="🇲🇦",gYe="🇲🇨",_Ye="🇲🇩",bYe="🇲🇪",vYe="🇲🇫",yYe="🇲🇬",EYe="🇲🇭",SYe="🇲🇰",xYe="🇲🇱",TYe="🇲🇲",wYe="🇲🇳",CYe="🇲🇴",AYe="🇲🇵",RYe="🇲🇶",MYe="🇲🇷",NYe="🇲🇸",kYe="🇲🇹",IYe="🇲🇺",OYe="🇲🇻",DYe="🇲🇼",LYe="🇲🇽",PYe="🇲🇾",FYe="🇲🇿",UYe="🇳🇦",BYe="🇳🇨",GYe="🇳🇪",zYe="🇳🇫",VYe="🇳🇬",HYe="🇳🇮",qYe="🇳🇱",YYe="🇳🇴",$Ye="🇳🇵",WYe="🇳🇷",KYe="🇳🇺",jYe="🇳🇿",QYe="🇴🇲",XYe="🇵🇦",ZYe="🇵🇪",JYe="🇵🇫",e$e="🇵🇬",t$e="🇵🇭",n$e="🇵🇰",r$e="🇵🇱",i$e="🇵🇲",s$e="🇵🇳",o$e="🇵🇷",a$e="🇵🇸",l$e="🇵🇹",c$e="🇵🇼",d$e="🇵🇾",u$e="🇶🇦",p$e="🇷🇪",h$e="🇷🇴",m$e="🇷🇸",f$e="🇷🇺",g$e="🇷🇼",_$e="🇸🇦",b$e="🇸🇧",v$e="🇸🇨",y$e="🇸🇩",E$e="🇸🇪",S$e="🇸🇬",x$e="🇸🇭",T$e="🇸🇮",w$e="🇸🇯",C$e="🇸🇰",A$e="🇸🇱",R$e="🇸🇲",M$e="🇸🇳",N$e="🇸🇴",k$e="🇸🇷",I$e="🇸🇸",O$e="🇸🇹",D$e="🇸🇻",L$e="🇸🇽",P$e="🇸🇾",F$e="🇸🇿",U$e="🇹🇦",B$e="🇹🇨",G$e="🇹🇩",z$e="🇹🇫",V$e="🇹🇬",H$e="🇹🇭",q$e="🇹🇯",Y$e="🇹🇰",$$e="🇹🇱",W$e="🇹🇲",K$e="🇹🇳",j$e="🇹🇴",Q$e="🇹🇷",X$e="🇹🇹",Z$e="🇹🇻",J$e="🇹🇼",eWe="🇹🇿",tWe="🇺🇦",nWe="🇺🇬",rWe="🇺🇲",iWe="🇺🇳",sWe="🇺🇸",oWe="🇺🇾",aWe="🇺🇿",lWe="🇻🇦",cWe="🇻🇨",dWe="🇻🇪",uWe="🇻🇬",pWe="🇻🇮",hWe="🇻🇳",mWe="🇻🇺",fWe="🇼🇫",gWe="🇼🇸",_We="🇽🇰",bWe="🇾🇪",vWe="🇾🇹",yWe="🇿🇦",EWe="🇿🇲",SWe="🇿🇼",xWe="🏴󠁧󠁢󠁥󠁮󠁧󠁿",TWe="🏴󠁧󠁢󠁳󠁣󠁴󠁿",wWe="🏴󠁧󠁢󠁷󠁬󠁳󠁿",CWe={100:"💯",1234:"🔢",grinning:FEe,smiley:UEe,smile:BEe,grin:GEe,laughing:zEe,satisfied:VEe,sweat_smile:HEe,rofl:qEe,joy:YEe,slightly_smiling_face:$Ee,upside_down_face:WEe,wink:KEe,blush:jEe,innocent:QEe,smiling_face_with_three_hearts:XEe,heart_eyes:ZEe,star_struck:JEe,kissing_heart:eSe,kissing:tSe,relaxed:nSe,kissing_closed_eyes:rSe,kissing_smiling_eyes:iSe,smiling_face_with_tear:sSe,yum:oSe,stuck_out_tongue:aSe,stuck_out_tongue_winking_eye:lSe,zany_face:cSe,stuck_out_tongue_closed_eyes:dSe,money_mouth_face:uSe,hugs:pSe,hand_over_mouth:hSe,shushing_face:mSe,thinking:fSe,zipper_mouth_face:gSe,raised_eyebrow:_Se,neutral_face:bSe,expressionless:vSe,no_mouth:ySe,smirk:ESe,unamused:SSe,roll_eyes:xSe,grimacing:TSe,lying_face:wSe,relieved:CSe,pensive:ASe,sleepy:RSe,drooling_face:MSe,sleeping:NSe,mask:kSe,face_with_thermometer:ISe,face_with_head_bandage:OSe,nauseated_face:DSe,vomiting_face:LSe,sneezing_face:PSe,hot_face:FSe,cold_face:USe,woozy_face:BSe,dizzy_face:GSe,exploding_head:zSe,cowboy_hat_face:VSe,partying_face:HSe,disguised_face:qSe,sunglasses:YSe,nerd_face:$Se,monocle_face:WSe,confused:KSe,worried:jSe,slightly_frowning_face:QSe,frowning_face:XSe,open_mouth:ZSe,hushed:JSe,astonished:e2e,flushed:t2e,pleading_face:n2e,frowning:r2e,anguished:i2e,fearful:s2e,cold_sweat:o2e,disappointed_relieved:a2e,cry:l2e,sob:c2e,scream:d2e,confounded:u2e,persevere:p2e,disappointed:h2e,sweat:m2e,weary:f2e,tired_face:g2e,yawning_face:_2e,triumph:b2e,rage:v2e,pout:y2e,angry:E2e,cursing_face:S2e,smiling_imp:x2e,imp:T2e,skull:w2e,skull_and_crossbones:C2e,hankey:A2e,poop:R2e,shit:M2e,clown_face:N2e,japanese_ogre:k2e,japanese_goblin:I2e,ghost:O2e,alien:D2e,space_invader:L2e,robot:P2e,smiley_cat:F2e,smile_cat:U2e,joy_cat:B2e,heart_eyes_cat:G2e,smirk_cat:z2e,kissing_cat:V2e,scream_cat:H2e,crying_cat_face:q2e,pouting_cat:Y2e,see_no_evil:$2e,hear_no_evil:W2e,speak_no_evil:K2e,kiss:j2e,love_letter:Q2e,cupid:X2e,gift_heart:Z2e,sparkling_heart:J2e,heartpulse:exe,heartbeat:txe,revolving_hearts:nxe,two_hearts:rxe,heart_decoration:ixe,heavy_heart_exclamation:sxe,broken_heart:oxe,heart:axe,orange_heart:lxe,yellow_heart:cxe,green_heart:dxe,blue_heart:uxe,purple_heart:pxe,brown_heart:hxe,black_heart:mxe,white_heart:fxe,anger:gxe,boom:_xe,collision:bxe,dizzy:vxe,sweat_drops:yxe,dash:Exe,hole:Sxe,bomb:xxe,speech_balloon:Txe,eye_speech_bubble:wxe,left_speech_bubble:Cxe,right_anger_bubble:Axe,thought_balloon:Rxe,zzz:Mxe,wave:Nxe,raised_back_of_hand:kxe,raised_hand_with_fingers_splayed:Ixe,hand:Oxe,raised_hand:Dxe,vulcan_salute:Lxe,ok_hand:Pxe,pinched_fingers:Fxe,pinching_hand:Uxe,v:Bxe,crossed_fingers:Gxe,love_you_gesture:zxe,metal:Vxe,call_me_hand:Hxe,point_left:qxe,point_right:Yxe,point_up_2:$xe,middle_finger:Wxe,fu:Kxe,point_down:jxe,point_up:Qxe,"+1":"👍",thumbsup:Xxe,"-1":"👎",thumbsdown:Zxe,fist_raised:Jxe,fist:eTe,fist_oncoming:tTe,facepunch:nTe,punch:rTe,fist_left:iTe,fist_right:sTe,clap:oTe,raised_hands:aTe,open_hands:lTe,palms_up_together:cTe,handshake:dTe,pray:uTe,writing_hand:pTe,nail_care:hTe,selfie:mTe,muscle:fTe,mechanical_arm:gTe,mechanical_leg:_Te,leg:bTe,foot:vTe,ear:yTe,ear_with_hearing_aid:ETe,nose:STe,brain:xTe,anatomical_heart:TTe,lungs:wTe,tooth:CTe,bone:ATe,eyes:RTe,eye:MTe,tongue:NTe,lips:kTe,baby:ITe,child:OTe,boy:DTe,girl:LTe,adult:PTe,blond_haired_person:FTe,man:UTe,bearded_person:BTe,red_haired_man:GTe,curly_haired_man:zTe,white_haired_man:VTe,bald_man:HTe,woman:qTe,red_haired_woman:YTe,person_red_hair:$Te,curly_haired_woman:WTe,person_curly_hair:KTe,white_haired_woman:jTe,person_white_hair:QTe,bald_woman:XTe,person_bald:ZTe,blond_haired_woman:JTe,blonde_woman:ewe,blond_haired_man:twe,older_adult:nwe,older_man:rwe,older_woman:iwe,frowning_person:swe,frowning_man:owe,frowning_woman:awe,pouting_face:lwe,pouting_man:cwe,pouting_woman:dwe,no_good:uwe,no_good_man:pwe,ng_man:hwe,no_good_woman:mwe,ng_woman:fwe,ok_person:gwe,ok_man:_we,ok_woman:bwe,tipping_hand_person:vwe,information_desk_person:ywe,tipping_hand_man:Ewe,sassy_man:Swe,tipping_hand_woman:xwe,sassy_woman:Twe,raising_hand:wwe,raising_hand_man:Cwe,raising_hand_woman:Awe,deaf_person:Rwe,deaf_man:Mwe,deaf_woman:Nwe,bow:kwe,bowing_man:Iwe,bowing_woman:Owe,facepalm:Dwe,man_facepalming:Lwe,woman_facepalming:Pwe,shrug:Fwe,man_shrugging:Uwe,woman_shrugging:Bwe,health_worker:Gwe,man_health_worker:zwe,woman_health_worker:Vwe,student:Hwe,man_student:qwe,woman_student:Ywe,teacher:$we,man_teacher:Wwe,woman_teacher:Kwe,judge:jwe,man_judge:Qwe,woman_judge:Xwe,farmer:Zwe,man_farmer:Jwe,woman_farmer:eCe,cook:tCe,man_cook:nCe,woman_cook:rCe,mechanic:iCe,man_mechanic:sCe,woman_mechanic:oCe,factory_worker:aCe,man_factory_worker:lCe,woman_factory_worker:cCe,office_worker:dCe,man_office_worker:uCe,woman_office_worker:pCe,scientist:hCe,man_scientist:mCe,woman_scientist:fCe,technologist:gCe,man_technologist:_Ce,woman_technologist:bCe,singer:vCe,man_singer:yCe,woman_singer:ECe,artist:SCe,man_artist:xCe,woman_artist:TCe,pilot:wCe,man_pilot:CCe,woman_pilot:ACe,astronaut:RCe,man_astronaut:MCe,woman_astronaut:NCe,firefighter:kCe,man_firefighter:ICe,woman_firefighter:OCe,police_officer:DCe,cop:LCe,policeman:PCe,policewoman:FCe,detective:UCe,male_detective:BCe,female_detective:GCe,guard:zCe,guardsman:VCe,guardswoman:HCe,ninja:qCe,construction_worker:YCe,construction_worker_man:$Ce,construction_worker_woman:WCe,prince:KCe,princess:jCe,person_with_turban:QCe,man_with_turban:XCe,woman_with_turban:ZCe,man_with_gua_pi_mao:JCe,woman_with_headscarf:eAe,person_in_tuxedo:tAe,man_in_tuxedo:nAe,woman_in_tuxedo:rAe,person_with_veil:iAe,man_with_veil:sAe,woman_with_veil:oAe,bride_with_veil:aAe,pregnant_woman:lAe,breast_feeding:cAe,woman_feeding_baby:dAe,man_feeding_baby:uAe,person_feeding_baby:pAe,angel:hAe,santa:mAe,mrs_claus:fAe,mx_claus:gAe,superhero:_Ae,superhero_man:bAe,superhero_woman:vAe,supervillain:yAe,supervillain_man:EAe,supervillain_woman:SAe,mage:xAe,mage_man:TAe,mage_woman:wAe,fairy:CAe,fairy_man:AAe,fairy_woman:RAe,vampire:MAe,vampire_man:NAe,vampire_woman:kAe,merperson:IAe,merman:OAe,mermaid:DAe,elf:LAe,elf_man:PAe,elf_woman:FAe,genie:UAe,genie_man:BAe,genie_woman:GAe,zombie:zAe,zombie_man:VAe,zombie_woman:HAe,massage:qAe,massage_man:YAe,massage_woman:$Ae,haircut:WAe,haircut_man:KAe,haircut_woman:jAe,walking:QAe,walking_man:XAe,walking_woman:ZAe,standing_person:JAe,standing_man:eRe,standing_woman:tRe,kneeling_person:nRe,kneeling_man:rRe,kneeling_woman:iRe,person_with_probing_cane:sRe,man_with_probing_cane:oRe,woman_with_probing_cane:aRe,person_in_motorized_wheelchair:lRe,man_in_motorized_wheelchair:cRe,woman_in_motorized_wheelchair:dRe,person_in_manual_wheelchair:uRe,man_in_manual_wheelchair:pRe,woman_in_manual_wheelchair:hRe,runner:mRe,running:fRe,running_man:gRe,running_woman:_Re,woman_dancing:bRe,dancer:vRe,man_dancing:yRe,business_suit_levitating:ERe,dancers:SRe,dancing_men:xRe,dancing_women:TRe,sauna_person:wRe,sauna_man:CRe,sauna_woman:ARe,climbing:RRe,climbing_man:MRe,climbing_woman:NRe,person_fencing:kRe,horse_racing:IRe,skier:ORe,snowboarder:DRe,golfing:LRe,golfing_man:PRe,golfing_woman:FRe,surfer:URe,surfing_man:BRe,surfing_woman:GRe,rowboat:zRe,rowing_man:VRe,rowing_woman:HRe,swimmer:qRe,swimming_man:YRe,swimming_woman:$Re,bouncing_ball_person:WRe,bouncing_ball_man:KRe,basketball_man:jRe,bouncing_ball_woman:QRe,basketball_woman:XRe,weight_lifting:ZRe,weight_lifting_man:JRe,weight_lifting_woman:eMe,bicyclist:tMe,biking_man:nMe,biking_woman:rMe,mountain_bicyclist:iMe,mountain_biking_man:sMe,mountain_biking_woman:oMe,cartwheeling:aMe,man_cartwheeling:lMe,woman_cartwheeling:cMe,wrestling:dMe,men_wrestling:uMe,women_wrestling:pMe,water_polo:hMe,man_playing_water_polo:mMe,woman_playing_water_polo:fMe,handball_person:gMe,man_playing_handball:_Me,woman_playing_handball:bMe,juggling_person:vMe,man_juggling:yMe,woman_juggling:EMe,lotus_position:SMe,lotus_position_man:xMe,lotus_position_woman:TMe,bath:wMe,sleeping_bed:CMe,people_holding_hands:AMe,two_women_holding_hands:RMe,couple:MMe,two_men_holding_hands:NMe,couplekiss:kMe,couplekiss_man_woman:IMe,couplekiss_man_man:OMe,couplekiss_woman_woman:DMe,couple_with_heart:LMe,couple_with_heart_woman_man:PMe,couple_with_heart_man_man:FMe,couple_with_heart_woman_woman:UMe,family:BMe,family_man_woman_boy:GMe,family_man_woman_girl:zMe,family_man_woman_girl_boy:VMe,family_man_woman_boy_boy:HMe,family_man_woman_girl_girl:qMe,family_man_man_boy:YMe,family_man_man_girl:$Me,family_man_man_girl_boy:WMe,family_man_man_boy_boy:KMe,family_man_man_girl_girl:jMe,family_woman_woman_boy:QMe,family_woman_woman_girl:XMe,family_woman_woman_girl_boy:ZMe,family_woman_woman_boy_boy:JMe,family_woman_woman_girl_girl:e4e,family_man_boy:t4e,family_man_boy_boy:n4e,family_man_girl:r4e,family_man_girl_boy:i4e,family_man_girl_girl:s4e,family_woman_boy:o4e,family_woman_boy_boy:a4e,family_woman_girl:l4e,family_woman_girl_boy:c4e,family_woman_girl_girl:d4e,speaking_head:u4e,bust_in_silhouette:p4e,busts_in_silhouette:h4e,people_hugging:m4e,footprints:f4e,monkey_face:g4e,monkey:_4e,gorilla:b4e,orangutan:v4e,dog:y4e,dog2:E4e,guide_dog:S4e,service_dog:x4e,poodle:T4e,wolf:w4e,fox_face:C4e,raccoon:A4e,cat:R4e,cat2:M4e,black_cat:N4e,lion:k4e,tiger:I4e,tiger2:O4e,leopard:D4e,horse:L4e,racehorse:P4e,unicorn:F4e,zebra:U4e,deer:B4e,bison:G4e,cow:z4e,ox:V4e,water_buffalo:H4e,cow2:q4e,pig:Y4e,pig2:$4e,boar:W4e,pig_nose:K4e,ram:j4e,sheep:Q4e,goat:X4e,dromedary_camel:Z4e,camel:J4e,llama:e3e,giraffe:t3e,elephant:n3e,mammoth:r3e,rhinoceros:i3e,hippopotamus:s3e,mouse:o3e,mouse2:a3e,rat:l3e,hamster:c3e,rabbit:d3e,rabbit2:u3e,chipmunk:p3e,beaver:h3e,hedgehog:m3e,bat:f3e,bear:g3e,polar_bear:_3e,koala:b3e,panda_face:v3e,sloth:y3e,otter:E3e,skunk:S3e,kangaroo:x3e,badger:T3e,feet:w3e,paw_prints:C3e,turkey:A3e,chicken:R3e,rooster:M3e,hatching_chick:N3e,baby_chick:k3e,hatched_chick:I3e,bird:O3e,penguin:D3e,dove:L3e,eagle:P3e,duck:F3e,swan:U3e,owl:B3e,dodo:G3e,feather:z3e,flamingo:V3e,peacock:H3e,parrot:q3e,frog:Y3e,crocodile:$3e,turtle:W3e,lizard:K3e,snake:j3e,dragon_face:Q3e,dragon:X3e,sauropod:Z3e,"t-rex":"🦖",whale:J3e,whale2:eNe,dolphin:tNe,flipper:nNe,seal:rNe,fish:iNe,tropical_fish:sNe,blowfish:oNe,shark:aNe,octopus:lNe,shell:cNe,snail:dNe,butterfly:uNe,bug:pNe,ant:hNe,bee:mNe,honeybee:fNe,beetle:gNe,lady_beetle:_Ne,cricket:bNe,cockroach:vNe,spider:yNe,spider_web:ENe,scorpion:SNe,mosquito:xNe,fly:TNe,worm:wNe,microbe:CNe,bouquet:ANe,cherry_blossom:RNe,white_flower:MNe,rosette:NNe,rose:kNe,wilted_flower:INe,hibiscus:ONe,sunflower:DNe,blossom:LNe,tulip:PNe,seedling:FNe,potted_plant:UNe,evergreen_tree:BNe,deciduous_tree:GNe,palm_tree:zNe,cactus:VNe,ear_of_rice:HNe,herb:qNe,shamrock:YNe,four_leaf_clover:$Ne,maple_leaf:WNe,fallen_leaf:KNe,leaves:jNe,grapes:QNe,melon:XNe,watermelon:ZNe,tangerine:JNe,orange:eke,mandarin:tke,lemon:nke,banana:rke,pineapple:ike,mango:ske,apple:oke,green_apple:ake,pear:lke,peach:cke,cherries:dke,strawberry:uke,blueberries:pke,kiwi_fruit:hke,tomato:mke,olive:fke,coconut:gke,avocado:_ke,eggplant:bke,potato:vke,carrot:yke,corn:Eke,hot_pepper:Ske,bell_pepper:xke,cucumber:Tke,leafy_green:wke,broccoli:Cke,garlic:Ake,onion:Rke,mushroom:Mke,peanuts:Nke,chestnut:kke,bread:Ike,croissant:Oke,baguette_bread:Dke,flatbread:Lke,pretzel:Pke,bagel:Fke,pancakes:Uke,waffle:Bke,cheese:Gke,meat_on_bone:zke,poultry_leg:Vke,cut_of_meat:Hke,bacon:qke,hamburger:Yke,fries:$ke,pizza:Wke,hotdog:Kke,sandwich:jke,taco:Qke,burrito:Xke,tamale:Zke,stuffed_flatbread:Jke,falafel:eIe,egg:tIe,fried_egg:nIe,shallow_pan_of_food:rIe,stew:iIe,fondue:sIe,bowl_with_spoon:oIe,green_salad:aIe,popcorn:lIe,butter:cIe,salt:dIe,canned_food:uIe,bento:pIe,rice_cracker:hIe,rice_ball:mIe,rice:fIe,curry:gIe,ramen:_Ie,spaghetti:bIe,sweet_potato:vIe,oden:yIe,sushi:EIe,fried_shrimp:SIe,fish_cake:xIe,moon_cake:TIe,dango:wIe,dumpling:CIe,fortune_cookie:AIe,takeout_box:RIe,crab:MIe,lobster:NIe,shrimp:kIe,squid:IIe,oyster:OIe,icecream:DIe,shaved_ice:LIe,ice_cream:PIe,doughnut:FIe,cookie:UIe,birthday:BIe,cake:GIe,cupcake:zIe,pie:VIe,chocolate_bar:HIe,candy:qIe,lollipop:YIe,custard:$Ie,honey_pot:WIe,baby_bottle:KIe,milk_glass:jIe,coffee:QIe,teapot:XIe,tea:ZIe,sake:JIe,champagne:eOe,wine_glass:tOe,cocktail:nOe,tropical_drink:rOe,beer:iOe,beers:sOe,clinking_glasses:oOe,tumbler_glass:aOe,cup_with_straw:lOe,bubble_tea:cOe,beverage_box:dOe,mate:uOe,ice_cube:pOe,chopsticks:hOe,plate_with_cutlery:mOe,fork_and_knife:fOe,spoon:gOe,hocho:_Oe,knife:bOe,amphora:vOe,earth_africa:yOe,earth_americas:EOe,earth_asia:SOe,globe_with_meridians:xOe,world_map:TOe,japan:wOe,compass:COe,mountain_snow:AOe,mountain:ROe,volcano:MOe,mount_fuji:NOe,camping:kOe,beach_umbrella:IOe,desert:OOe,desert_island:DOe,national_park:LOe,stadium:POe,classical_building:FOe,building_construction:UOe,bricks:BOe,rock:GOe,wood:zOe,hut:VOe,houses:HOe,derelict_house:qOe,house:YOe,house_with_garden:$Oe,office:WOe,post_office:KOe,european_post_office:jOe,hospital:QOe,bank:XOe,hotel:ZOe,love_hotel:JOe,convenience_store:e5e,school:t5e,department_store:n5e,factory:r5e,japanese_castle:i5e,european_castle:s5e,wedding:o5e,tokyo_tower:a5e,statue_of_liberty:l5e,church:c5e,mosque:d5e,hindu_temple:u5e,synagogue:p5e,shinto_shrine:h5e,kaaba:m5e,fountain:f5e,tent:g5e,foggy:_5e,night_with_stars:b5e,cityscape:v5e,sunrise_over_mountains:y5e,sunrise:E5e,city_sunset:S5e,city_sunrise:x5e,bridge_at_night:T5e,hotsprings:w5e,carousel_horse:C5e,ferris_wheel:A5e,roller_coaster:R5e,barber:M5e,circus_tent:N5e,steam_locomotive:k5e,railway_car:I5e,bullettrain_side:O5e,bullettrain_front:D5e,train2:L5e,metro:P5e,light_rail:F5e,station:U5e,tram:B5e,monorail:G5e,mountain_railway:z5e,train:V5e,bus:H5e,oncoming_bus:q5e,trolleybus:Y5e,minibus:$5e,ambulance:W5e,fire_engine:K5e,police_car:j5e,oncoming_police_car:Q5e,taxi:X5e,oncoming_taxi:Z5e,car:J5e,red_car:eDe,oncoming_automobile:tDe,blue_car:nDe,pickup_truck:rDe,truck:iDe,articulated_lorry:sDe,tractor:oDe,racing_car:aDe,motorcycle:lDe,motor_scooter:cDe,manual_wheelchair:dDe,motorized_wheelchair:uDe,auto_rickshaw:pDe,bike:hDe,kick_scooter:mDe,skateboard:fDe,roller_skate:gDe,busstop:_De,motorway:bDe,railway_track:vDe,oil_drum:yDe,fuelpump:EDe,rotating_light:SDe,traffic_light:xDe,vertical_traffic_light:TDe,stop_sign:wDe,construction:CDe,anchor:ADe,boat:RDe,sailboat:MDe,canoe:NDe,speedboat:kDe,passenger_ship:IDe,ferry:ODe,motor_boat:DDe,ship:LDe,airplane:PDe,small_airplane:FDe,flight_departure:UDe,flight_arrival:BDe,parachute:GDe,seat:zDe,helicopter:VDe,suspension_railway:HDe,mountain_cableway:qDe,aerial_tramway:YDe,artificial_satellite:$De,rocket:WDe,flying_saucer:KDe,bellhop_bell:jDe,luggage:QDe,hourglass:XDe,hourglass_flowing_sand:ZDe,watch:JDe,alarm_clock:eLe,stopwatch:tLe,timer_clock:nLe,mantelpiece_clock:rLe,clock12:iLe,clock1230:sLe,clock1:oLe,clock130:aLe,clock2:lLe,clock230:cLe,clock3:dLe,clock330:uLe,clock4:pLe,clock430:hLe,clock5:mLe,clock530:fLe,clock6:gLe,clock630:_Le,clock7:bLe,clock730:vLe,clock8:yLe,clock830:ELe,clock9:SLe,clock930:xLe,clock10:TLe,clock1030:wLe,clock11:CLe,clock1130:ALe,new_moon:RLe,waxing_crescent_moon:MLe,first_quarter_moon:NLe,moon:kLe,waxing_gibbous_moon:ILe,full_moon:OLe,waning_gibbous_moon:DLe,last_quarter_moon:LLe,waning_crescent_moon:PLe,crescent_moon:FLe,new_moon_with_face:ULe,first_quarter_moon_with_face:BLe,last_quarter_moon_with_face:GLe,thermometer:zLe,sunny:VLe,full_moon_with_face:HLe,sun_with_face:qLe,ringed_planet:YLe,star:$Le,star2:WLe,stars:KLe,milky_way:jLe,cloud:QLe,partly_sunny:XLe,cloud_with_lightning_and_rain:ZLe,sun_behind_small_cloud:JLe,sun_behind_large_cloud:e6e,sun_behind_rain_cloud:t6e,cloud_with_rain:n6e,cloud_with_snow:r6e,cloud_with_lightning:i6e,tornado:s6e,fog:o6e,wind_face:a6e,cyclone:l6e,rainbow:c6e,closed_umbrella:d6e,open_umbrella:u6e,umbrella:p6e,parasol_on_ground:h6e,zap:m6e,snowflake:f6e,snowman_with_snow:g6e,snowman:_6e,comet:b6e,fire:v6e,droplet:y6e,ocean:E6e,jack_o_lantern:S6e,christmas_tree:x6e,fireworks:T6e,sparkler:w6e,firecracker:C6e,sparkles:A6e,balloon:R6e,tada:M6e,confetti_ball:N6e,tanabata_tree:k6e,bamboo:I6e,dolls:O6e,flags:D6e,wind_chime:L6e,rice_scene:P6e,red_envelope:F6e,ribbon:U6e,gift:B6e,reminder_ribbon:G6e,tickets:z6e,ticket:V6e,medal_military:H6e,trophy:q6e,medal_sports:Y6e,"1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉",soccer:$6e,baseball:W6e,softball:K6e,basketball:j6e,volleyball:Q6e,football:X6e,rugby_football:Z6e,tennis:J6e,flying_disc:ePe,bowling:tPe,cricket_game:nPe,field_hockey:rPe,ice_hockey:iPe,lacrosse:sPe,ping_pong:oPe,badminton:aPe,boxing_glove:lPe,martial_arts_uniform:cPe,goal_net:dPe,golf:uPe,ice_skate:pPe,fishing_pole_and_fish:hPe,diving_mask:mPe,running_shirt_with_sash:fPe,ski:gPe,sled:_Pe,curling_stone:bPe,dart:vPe,yo_yo:yPe,kite:EPe,"8ball":"🎱",crystal_ball:SPe,magic_wand:xPe,nazar_amulet:TPe,video_game:wPe,joystick:CPe,slot_machine:APe,game_die:RPe,jigsaw:MPe,teddy_bear:NPe,pinata:kPe,nesting_dolls:IPe,spades:OPe,hearts:DPe,diamonds:LPe,clubs:PPe,chess_pawn:FPe,black_joker:UPe,mahjong:BPe,flower_playing_cards:GPe,performing_arts:zPe,framed_picture:VPe,art:HPe,thread:qPe,sewing_needle:YPe,yarn:$Pe,knot:WPe,eyeglasses:KPe,dark_sunglasses:jPe,goggles:QPe,lab_coat:XPe,safety_vest:ZPe,necktie:JPe,shirt:e7e,tshirt:t7e,jeans:n7e,scarf:r7e,gloves:i7e,coat:s7e,socks:o7e,dress:a7e,kimono:l7e,sari:c7e,one_piece_swimsuit:d7e,swim_brief:u7e,shorts:p7e,bikini:h7e,womans_clothes:m7e,purse:f7e,handbag:g7e,pouch:_7e,shopping:b7e,school_satchel:v7e,thong_sandal:y7e,mans_shoe:E7e,shoe:S7e,athletic_shoe:x7e,hiking_boot:T7e,flat_shoe:w7e,high_heel:C7e,sandal:A7e,ballet_shoes:R7e,boot:M7e,crown:N7e,womans_hat:k7e,tophat:I7e,mortar_board:O7e,billed_cap:D7e,military_helmet:L7e,rescue_worker_helmet:P7e,prayer_beads:F7e,lipstick:U7e,ring:B7e,gem:G7e,mute:z7e,speaker:V7e,sound:H7e,loud_sound:q7e,loudspeaker:Y7e,mega:$7e,postal_horn:W7e,bell:K7e,no_bell:j7e,musical_score:Q7e,musical_note:X7e,notes:Z7e,studio_microphone:J7e,level_slider:e8e,control_knobs:t8e,microphone:n8e,headphones:r8e,radio:i8e,saxophone:s8e,accordion:o8e,guitar:a8e,musical_keyboard:l8e,trumpet:c8e,violin:d8e,banjo:u8e,drum:p8e,long_drum:h8e,iphone:m8e,calling:f8e,phone:g8e,telephone:_8e,telephone_receiver:b8e,pager:v8e,fax:y8e,battery:E8e,electric_plug:S8e,computer:x8e,desktop_computer:T8e,printer:w8e,keyboard:C8e,computer_mouse:A8e,trackball:R8e,minidisc:M8e,floppy_disk:N8e,cd:k8e,dvd:I8e,abacus:O8e,movie_camera:D8e,film_strip:L8e,film_projector:P8e,clapper:F8e,tv:U8e,camera:B8e,camera_flash:G8e,video_camera:z8e,vhs:V8e,mag:H8e,mag_right:q8e,candle:Y8e,bulb:$8e,flashlight:W8e,izakaya_lantern:K8e,lantern:j8e,diya_lamp:Q8e,notebook_with_decorative_cover:X8e,closed_book:Z8e,book:J8e,open_book:e9e,green_book:t9e,blue_book:n9e,orange_book:r9e,books:i9e,notebook:s9e,ledger:o9e,page_with_curl:a9e,scroll:l9e,page_facing_up:c9e,newspaper:d9e,newspaper_roll:u9e,bookmark_tabs:p9e,bookmark:h9e,label:m9e,moneybag:f9e,coin:g9e,yen:_9e,dollar:b9e,euro:v9e,pound:y9e,money_with_wings:E9e,credit_card:S9e,receipt:x9e,chart:T9e,envelope:w9e,email:C9e,"e-mail":"📧",incoming_envelope:A9e,envelope_with_arrow:R9e,outbox_tray:M9e,inbox_tray:N9e,package:"📦",mailbox:k9e,mailbox_closed:I9e,mailbox_with_mail:O9e,mailbox_with_no_mail:D9e,postbox:L9e,ballot_box:P9e,pencil2:F9e,black_nib:U9e,fountain_pen:B9e,pen:G9e,paintbrush:z9e,crayon:V9e,memo:H9e,pencil:q9e,briefcase:Y9e,file_folder:$9e,open_file_folder:W9e,card_index_dividers:K9e,date:j9e,calendar:Q9e,spiral_notepad:X9e,spiral_calendar:Z9e,card_index:J9e,chart_with_upwards_trend:eFe,chart_with_downwards_trend:tFe,bar_chart:nFe,clipboard:rFe,pushpin:iFe,round_pushpin:sFe,paperclip:oFe,paperclips:aFe,straight_ruler:lFe,triangular_ruler:cFe,scissors:dFe,card_file_box:uFe,file_cabinet:pFe,wastebasket:hFe,lock:mFe,unlock:fFe,lock_with_ink_pen:gFe,closed_lock_with_key:_Fe,key:bFe,old_key:vFe,hammer:yFe,axe:EFe,pick:SFe,hammer_and_pick:xFe,hammer_and_wrench:TFe,dagger:wFe,crossed_swords:CFe,gun:AFe,boomerang:RFe,bow_and_arrow:MFe,shield:NFe,carpentry_saw:kFe,wrench:IFe,screwdriver:OFe,nut_and_bolt:DFe,gear:LFe,clamp:PFe,balance_scale:FFe,probing_cane:UFe,link:BFe,chains:GFe,hook:zFe,toolbox:VFe,magnet:HFe,ladder:qFe,alembic:YFe,test_tube:$Fe,petri_dish:WFe,dna:KFe,microscope:jFe,telescope:QFe,satellite:XFe,syringe:ZFe,drop_of_blood:JFe,pill:eUe,adhesive_bandage:tUe,stethoscope:nUe,door:rUe,elevator:iUe,mirror:sUe,window:oUe,bed:aUe,couch_and_lamp:lUe,chair:cUe,toilet:dUe,plunger:uUe,shower:pUe,bathtub:hUe,mouse_trap:mUe,razor:fUe,lotion_bottle:gUe,safety_pin:_Ue,broom:bUe,basket:vUe,roll_of_paper:yUe,bucket:EUe,soap:SUe,toothbrush:xUe,sponge:TUe,fire_extinguisher:wUe,shopping_cart:CUe,smoking:AUe,coffin:RUe,headstone:MUe,funeral_urn:NUe,moyai:kUe,placard:IUe,atm:OUe,put_litter_in_its_place:DUe,potable_water:LUe,wheelchair:PUe,mens:FUe,womens:UUe,restroom:BUe,baby_symbol:GUe,wc:zUe,passport_control:VUe,customs:HUe,baggage_claim:qUe,left_luggage:YUe,warning:$Ue,children_crossing:WUe,no_entry:KUe,no_entry_sign:jUe,no_bicycles:QUe,no_smoking:XUe,do_not_litter:ZUe,"non-potable_water":"🚱",no_pedestrians:JUe,no_mobile_phones:eBe,underage:tBe,radioactive:nBe,biohazard:rBe,arrow_up:iBe,arrow_upper_right:sBe,arrow_right:oBe,arrow_lower_right:aBe,arrow_down:lBe,arrow_lower_left:cBe,arrow_left:dBe,arrow_upper_left:uBe,arrow_up_down:pBe,left_right_arrow:hBe,leftwards_arrow_with_hook:mBe,arrow_right_hook:fBe,arrow_heading_up:gBe,arrow_heading_down:_Be,arrows_clockwise:bBe,arrows_counterclockwise:vBe,back:yBe,end:EBe,on:SBe,soon:xBe,top:TBe,place_of_worship:wBe,atom_symbol:CBe,om:ABe,star_of_david:RBe,wheel_of_dharma:MBe,yin_yang:NBe,latin_cross:kBe,orthodox_cross:IBe,star_and_crescent:OBe,peace_symbol:DBe,menorah:LBe,six_pointed_star:PBe,aries:FBe,taurus:UBe,gemini:BBe,cancer:GBe,leo:zBe,virgo:VBe,libra:HBe,scorpius:qBe,sagittarius:YBe,capricorn:$Be,aquarius:WBe,pisces:KBe,ophiuchus:jBe,twisted_rightwards_arrows:QBe,repeat:XBe,repeat_one:ZBe,arrow_forward:JBe,fast_forward:eGe,next_track_button:tGe,play_or_pause_button:nGe,arrow_backward:rGe,rewind:iGe,previous_track_button:sGe,arrow_up_small:oGe,arrow_double_up:aGe,arrow_down_small:lGe,arrow_double_down:cGe,pause_button:dGe,stop_button:uGe,record_button:pGe,eject_button:hGe,cinema:mGe,low_brightness:fGe,high_brightness:gGe,signal_strength:_Ge,vibration_mode:bGe,mobile_phone_off:vGe,female_sign:yGe,male_sign:EGe,transgender_symbol:SGe,heavy_multiplication_x:xGe,heavy_plus_sign:TGe,heavy_minus_sign:wGe,heavy_division_sign:CGe,infinity:AGe,bangbang:RGe,interrobang:MGe,question:NGe,grey_question:kGe,grey_exclamation:IGe,exclamation:OGe,heavy_exclamation_mark:DGe,wavy_dash:LGe,currency_exchange:PGe,heavy_dollar_sign:FGe,medical_symbol:UGe,recycle:BGe,fleur_de_lis:GGe,trident:zGe,name_badge:VGe,beginner:HGe,o:qGe,white_check_mark:YGe,ballot_box_with_check:$Ge,heavy_check_mark:WGe,x:KGe,negative_squared_cross_mark:jGe,curly_loop:QGe,loop:XGe,part_alternation_mark:ZGe,eight_spoked_asterisk:JGe,eight_pointed_black_star:eze,sparkle:tze,copyright:nze,registered:rze,tm:ize,hash:sze,asterisk:oze,zero:aze,one:lze,two:cze,three:dze,four:uze,five:pze,six:hze,seven:mze,eight:fze,nine:gze,keycap_ten:_ze,capital_abcd:bze,abcd:vze,symbols:yze,abc:Eze,a:Sze,ab:xze,b:Tze,cl:wze,cool:Cze,free:Aze,information_source:Rze,id:Mze,m:Nze,new:"🆕",ng:kze,o2:Ize,ok:Oze,parking:Dze,sos:Lze,up:Pze,vs:Fze,koko:Uze,sa:Bze,ideograph_advantage:Gze,accept:zze,congratulations:Vze,secret:Hze,u6e80:qze,red_circle:Yze,orange_circle:$ze,yellow_circle:Wze,green_circle:Kze,large_blue_circle:jze,purple_circle:Qze,brown_circle:Xze,black_circle:Zze,white_circle:Jze,red_square:eVe,orange_square:tVe,yellow_square:nVe,green_square:rVe,blue_square:iVe,purple_square:sVe,brown_square:oVe,black_large_square:aVe,white_large_square:lVe,black_medium_square:cVe,white_medium_square:dVe,black_medium_small_square:uVe,white_medium_small_square:pVe,black_small_square:hVe,white_small_square:mVe,large_orange_diamond:fVe,large_blue_diamond:gVe,small_orange_diamond:_Ve,small_blue_diamond:bVe,small_red_triangle:vVe,small_red_triangle_down:yVe,diamond_shape_with_a_dot_inside:EVe,radio_button:SVe,white_square_button:xVe,black_square_button:TVe,checkered_flag:wVe,triangular_flag_on_post:CVe,crossed_flags:AVe,black_flag:RVe,white_flag:MVe,rainbow_flag:NVe,transgender_flag:kVe,pirate_flag:IVe,ascension_island:OVe,andorra:DVe,united_arab_emirates:LVe,afghanistan:PVe,antigua_barbuda:FVe,anguilla:UVe,albania:BVe,armenia:GVe,angola:zVe,antarctica:VVe,argentina:HVe,american_samoa:qVe,austria:YVe,australia:$Ve,aruba:WVe,aland_islands:KVe,azerbaijan:jVe,bosnia_herzegovina:QVe,barbados:XVe,bangladesh:ZVe,belgium:JVe,burkina_faso:eHe,bulgaria:tHe,bahrain:nHe,burundi:rHe,benin:iHe,st_barthelemy:sHe,bermuda:oHe,brunei:aHe,bolivia:lHe,caribbean_netherlands:cHe,brazil:dHe,bahamas:uHe,bhutan:pHe,bouvet_island:hHe,botswana:mHe,belarus:fHe,belize:gHe,canada:_He,cocos_islands:bHe,congo_kinshasa:vHe,central_african_republic:yHe,congo_brazzaville:EHe,switzerland:SHe,cote_divoire:xHe,cook_islands:THe,chile:wHe,cameroon:CHe,cn:AHe,colombia:RHe,clipperton_island:MHe,costa_rica:NHe,cuba:kHe,cape_verde:IHe,curacao:OHe,christmas_island:DHe,cyprus:LHe,czech_republic:PHe,de:FHe,diego_garcia:UHe,djibouti:BHe,denmark:GHe,dominica:zHe,dominican_republic:VHe,algeria:HHe,ceuta_melilla:qHe,ecuador:YHe,estonia:$He,egypt:WHe,western_sahara:KHe,eritrea:jHe,es:QHe,ethiopia:XHe,eu:ZHe,european_union:JHe,finland:eqe,fiji:tqe,falkland_islands:nqe,micronesia:rqe,faroe_islands:iqe,fr:sqe,gabon:oqe,gb:aqe,uk:lqe,grenada:cqe,georgia:dqe,french_guiana:uqe,guernsey:pqe,ghana:hqe,gibraltar:mqe,greenland:fqe,gambia:gqe,guinea:_qe,guadeloupe:bqe,equatorial_guinea:vqe,greece:yqe,south_georgia_south_sandwich_islands:Eqe,guatemala:Sqe,guam:xqe,guinea_bissau:Tqe,guyana:wqe,hong_kong:Cqe,heard_mcdonald_islands:Aqe,honduras:Rqe,croatia:Mqe,haiti:Nqe,hungary:kqe,canary_islands:Iqe,indonesia:Oqe,ireland:Dqe,israel:Lqe,isle_of_man:Pqe,india:Fqe,british_indian_ocean_territory:Uqe,iraq:Bqe,iran:Gqe,iceland:zqe,it:Vqe,jersey:Hqe,jamaica:qqe,jordan:Yqe,jp:$qe,kenya:Wqe,kyrgyzstan:Kqe,cambodia:jqe,kiribati:Qqe,comoros:Xqe,st_kitts_nevis:Zqe,north_korea:Jqe,kr:eYe,kuwait:tYe,cayman_islands:nYe,kazakhstan:rYe,laos:iYe,lebanon:sYe,st_lucia:oYe,liechtenstein:aYe,sri_lanka:lYe,liberia:cYe,lesotho:dYe,lithuania:uYe,luxembourg:pYe,latvia:hYe,libya:mYe,morocco:fYe,monaco:gYe,moldova:_Ye,montenegro:bYe,st_martin:vYe,madagascar:yYe,marshall_islands:EYe,macedonia:SYe,mali:xYe,myanmar:TYe,mongolia:wYe,macau:CYe,northern_mariana_islands:AYe,martinique:RYe,mauritania:MYe,montserrat:NYe,malta:kYe,mauritius:IYe,maldives:OYe,malawi:DYe,mexico:LYe,malaysia:PYe,mozambique:FYe,namibia:UYe,new_caledonia:BYe,niger:GYe,norfolk_island:zYe,nigeria:VYe,nicaragua:HYe,netherlands:qYe,norway:YYe,nepal:$Ye,nauru:WYe,niue:KYe,new_zealand:jYe,oman:QYe,panama:XYe,peru:ZYe,french_polynesia:JYe,papua_new_guinea:e$e,philippines:t$e,pakistan:n$e,poland:r$e,st_pierre_miquelon:i$e,pitcairn_islands:s$e,puerto_rico:o$e,palestinian_territories:a$e,portugal:l$e,palau:c$e,paraguay:d$e,qatar:u$e,reunion:p$e,romania:h$e,serbia:m$e,ru:f$e,rwanda:g$e,saudi_arabia:_$e,solomon_islands:b$e,seychelles:v$e,sudan:y$e,sweden:E$e,singapore:S$e,st_helena:x$e,slovenia:T$e,svalbard_jan_mayen:w$e,slovakia:C$e,sierra_leone:A$e,san_marino:R$e,senegal:M$e,somalia:N$e,suriname:k$e,south_sudan:I$e,sao_tome_principe:O$e,el_salvador:D$e,sint_maarten:L$e,syria:P$e,swaziland:F$e,tristan_da_cunha:U$e,turks_caicos_islands:B$e,chad:G$e,french_southern_territories:z$e,togo:V$e,thailand:H$e,tajikistan:q$e,tokelau:Y$e,timor_leste:$$e,turkmenistan:W$e,tunisia:K$e,tonga:j$e,tr:Q$e,trinidad_tobago:X$e,tuvalu:Z$e,taiwan:J$e,tanzania:eWe,ukraine:tWe,uganda:nWe,us_outlying_islands:rWe,united_nations:iWe,us:sWe,uruguay:oWe,uzbekistan:aWe,vatican_city:lWe,st_vincent_grenadines:cWe,venezuela:dWe,british_virgin_islands:uWe,us_virgin_islands:pWe,vietnam:hWe,vanuatu:mWe,wallis_futuna:fWe,samoa:gWe,kosovo:_We,yemen:bWe,mayotte:vWe,south_africa:yWe,zambia:EWe,zimbabwe:SWe,england:xWe,scotland:TWe,wales:wWe};var AWe={angry:[">:(",">:-("],blush:[':")',':-")'],broken_heart:["0&&!l.test(y[_-1])||_+b.lengthh&&(g=new f("text","",0),g.content=u.slice(h,_),v.push(g)),g=new f("emoji","",0),g.markup=E,g.content=t[E],v.push(g),h=_+b.length}),h=0;f--)b=v[f],(b.type==="link_open"||b.type==="link_close")&&b.info==="auto"&&(y-=b.nesting),b.type==="text"&&y===0&&i.test(b.content)&&(_[g].children=v=o(v,f,d(b.content,b.level,m.Token)))}};function NWe(n){return n.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var kWe=function(e){var t=e.defs,r;e.enabled.length&&(t=Object.keys(t).reduce(function(l,d){return e.enabled.indexOf(d)>=0&&(l[d]=t[d]),l},{})),r=Object.keys(e.shortcuts).reduce(function(l,d){return t[d]?Array.isArray(e.shortcuts[d])?(e.shortcuts[d].forEach(function(u){l[u]=d}),l):(l[e.shortcuts[d]]=d,l):l},{});var i=Object.keys(t),s;i.length===0?s="^$":s=i.map(function(l){return":"+l+":"}).concat(Object.keys(r)).sort().reverse().map(function(l){return NWe(l)}).join("|");var o=RegExp(s),a=RegExp(s,"g");return{defs:t,shortcuts:r,scanRE:o,replaceRE:a}},IWe=RWe,OWe=MWe,DWe=kWe,LWe=function(e,t){var r={defs:{},shortcuts:{},enabled:[]},i=DWe(e.utils.assign({},r,t||{}));e.renderer.rules.emoji=IWe,e.core.ruler.after("linkify","emoji",OWe(e,i.defs,i.shortcuts,i.scanRE,i.replaceRE))},PWe=CWe,FWe=AWe,UWe=LWe,BWe=function(e,t){var r={defs:PWe,shortcuts:FWe,enabled:[]},i=e.utils.assign({},r,t||{});UWe(e,i)};const GWe=Ra(BWe);var k2=!1,Cl={false:"push",true:"unshift",after:"push",before:"unshift"},Lp={isPermalinkSymbol:!0};function s1(n,e,t,r){var i;if(!k2){var s="Using deprecated markdown-it-anchor permalink option, see https://github.com/valeriangalliat/markdown-it-anchor#permalinks";typeof process=="object"&&process&&process.emitWarning?process.emitWarning(s):console.warn(s),k2=!0}var o=[Object.assign(new t.Token("link_open","a",1),{attrs:[].concat(e.permalinkClass?[["class",e.permalinkClass]]:[],[["href",e.permalinkHref(n,t)]],Object.entries(e.permalinkAttrs(n,t)))}),Object.assign(new t.Token("html_block","",0),{content:e.permalinkSymbol,meta:Lp}),new t.Token("link_close","a",-1)];e.permalinkSpace&&t.tokens[r+1].children[Cl[e.permalinkBefore]](Object.assign(new t.Token("text","",0),{content:" "})),(i=t.tokens[r+1].children)[Cl[e.permalinkBefore]].apply(i,o)}function yN(n){return"#"+n}function EN(n){return{}}var zWe={class:"header-anchor",symbol:"#",renderHref:yN,renderAttrs:EN};function Md(n){function e(t){return t=Object.assign({},e.defaults,t),function(r,i,s,o){return n(r,t,i,s,o)}}return e.defaults=Object.assign({},zWe),e.renderPermalinkImpl=n,e}var Hh=Md(function(n,e,t,r,i){var s,o=[Object.assign(new r.Token("link_open","a",1),{attrs:[].concat(e.class?[["class",e.class]]:[],[["href",e.renderHref(n,r)]],e.ariaHidden?[["aria-hidden","true"]]:[],Object.entries(e.renderAttrs(n,r)))}),Object.assign(new r.Token("html_inline","",0),{content:e.symbol,meta:Lp}),new r.Token("link_close","a",-1)];if(e.space){var a=typeof e.space=="string"?e.space:" ";r.tokens[i+1].children[Cl[e.placement]](Object.assign(new r.Token(typeof e.space=="string"?"html_inline":"text","",0),{content:a}))}(s=r.tokens[i+1].children)[Cl[e.placement]].apply(s,o)});Object.assign(Hh.defaults,{space:!0,placement:"after",ariaHidden:!1});var Xo=Md(Hh.renderPermalinkImpl);Xo.defaults=Object.assign({},Hh.defaults,{ariaHidden:!0});var SN=Md(function(n,e,t,r,i){var s=[Object.assign(new r.Token("link_open","a",1),{attrs:[].concat(e.class?[["class",e.class]]:[],[["href",e.renderHref(n,r)]],Object.entries(e.renderAttrs(n,r)))})].concat(e.safariReaderFix?[new r.Token("span_open","span",1)]:[],r.tokens[i+1].children,e.safariReaderFix?[new r.Token("span_close","span",-1)]:[],[new r.Token("link_close","a",-1)]);r.tokens[i+1]=Object.assign(new r.Token("inline","",0),{children:s})});Object.assign(SN.defaults,{safariReaderFix:!1});var I2=Md(function(n,e,t,r,i){var s;if(!["visually-hidden","aria-label","aria-describedby","aria-labelledby"].includes(e.style))throw new Error("`permalink.linkAfterHeader` called with unknown style option `"+e.style+"`");if(!["aria-describedby","aria-labelledby"].includes(e.style)&&!e.assistiveText)throw new Error("`permalink.linkAfterHeader` called without the `assistiveText` option in `"+e.style+"` style");if(e.style==="visually-hidden"&&!e.visuallyHiddenClass)throw new Error("`permalink.linkAfterHeader` called without the `visuallyHiddenClass` option in `visually-hidden` style");var o=r.tokens[i+1].children.filter(function(m){return m.type==="text"||m.type==="code_inline"}).reduce(function(m,f){return m+f.content},""),a=[],l=[];if(e.class&&l.push(["class",e.class]),l.push(["href",e.renderHref(n,r)]),l.push.apply(l,Object.entries(e.renderAttrs(n,r))),e.style==="visually-hidden"){if(a.push(Object.assign(new r.Token("span_open","span",1),{attrs:[["class",e.visuallyHiddenClass]]}),Object.assign(new r.Token("text","",0),{content:e.assistiveText(o)}),new r.Token("span_close","span",-1)),e.space){var d=typeof e.space=="string"?e.space:" ";a[Cl[e.placement]](Object.assign(new r.Token(typeof e.space=="string"?"html_inline":"text","",0),{content:d}))}a[Cl[e.placement]](Object.assign(new r.Token("span_open","span",1),{attrs:[["aria-hidden","true"]]}),Object.assign(new r.Token("html_inline","",0),{content:e.symbol,meta:Lp}),new r.Token("span_close","span",-1))}else a.push(Object.assign(new r.Token("html_inline","",0),{content:e.symbol,meta:Lp}));e.style==="aria-label"?l.push(["aria-label",e.assistiveText(o)]):["aria-describedby","aria-labelledby"].includes(e.style)&&l.push([e.style,n]);var u=[Object.assign(new r.Token("link_open","a",1),{attrs:l})].concat(a,[new r.Token("link_close","a",-1)]);(s=r.tokens).splice.apply(s,[i+3,0].concat(u)),e.wrapper&&(r.tokens.splice(i,0,Object.assign(new r.Token("html_block","",0),{content:e.wrapper[0]+` +`,o.map=[t,e.line],!0},Vve=function(e,t,r,i){var s,o,a,l,d,u,m,f=!1,g=e.bMarks[t]+e.tShift[t],h=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||g+3>h||(s=e.src.charCodeAt(g),s!==126&&s!==96)||(d=g,g=e.skipChars(g,s),o=g-d,o<3)||(m=e.src.slice(d,g),a=e.src.slice(g,h),s===96&&a.indexOf(String.fromCharCode(s))>=0))return!1;if(i)return!0;for(l=t;l++,!(l>=r||(g=d=e.bMarks[l]+e.tShift[l],h=e.eMarks[l],g=4)&&(g=e.skipChars(g,s),!(g-d=4||e.src.charCodeAt(k)!==62)return!1;if(i)return!0;for(h=[],v=[],y=[],E=[],w=e.md.block.ruler.getRules("blockquote"),_=e.parentType,e.parentType="blockquote",f=t;f=H));f++){if(e.src.charCodeAt(k++)===62&&!L){for(l=e.sCount[f]+1,e.src.charCodeAt(k)===32?(k++,l++,s=!1,x=!0):e.src.charCodeAt(k)===9?(x=!0,(e.bsCount[f]+l)%4===3?(k++,l++,s=!1):s=!0):x=!1,g=l,h.push(e.bMarks[f]),e.bMarks[f]=k;k=H,v.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(x?1:0),y.push(e.sCount[f]),e.sCount[f]=g-l,E.push(e.tShift[f]),e.tShift[f]=k-e.bMarks[f];continue}if(u)break;for(A=!1,a=0,d=w.length;a",N.map=m=[t,0],e.md.block.tokenize(e,t,f),N=e.push("blockquote_close","blockquote",-1),N.markup=">",e.lineMax=C,e.parentType=_,m[1]=e.line,a=0;a=4||(s=e.src.charCodeAt(d++),s!==42&&s!==45&&s!==95))return!1;for(o=1;d=s||(t=n.src.charCodeAt(i++),t<48||t>57))return-1;for(;;){if(i>=s)return-1;if(t=n.src.charCodeAt(i++),t>=48&&t<=57){if(i-r>=10)return-1;continue}if(t===41||t===46)break;return-1}return i=4||e.listIndent>=0&&e.sCount[K]-e.listIndent>=4&&e.sCount[K]=e.blkIndent&&(B=!0),(k=f2(e,K))>=0){if(m=!0,q=e.bMarks[K]+e.tShift[K],_=Number(e.src.slice(q,k-1)),B&&_!==1)return!1}else if((k=m2(e,K))>=0)m=!1;else return!1;if(B&&e.skipSpaces(k)>=e.eMarks[K])return!1;if(i)return!0;for(b=e.src.charCodeAt(k-1),v=e.tokens.length,m?($=e.push("ordered_list_open","ol",1),_!==1&&($.attrs=[["start",_]])):$=e.push("bullet_list_open","ul",1),$.map=h=[K,0],$.markup=String.fromCharCode(b),H=!1,D=e.md.block.ruler.getRules("list"),A=e.parentType,e.parentType="list";K=y?d=1:d=E-u,d>4&&(d=1),l=u+d,$=e.push("list_item_open","li",1),$.markup=String.fromCharCode(b),$.map=f=[K,0],m&&($.info=e.src.slice(q,k-1)),L=e.tight,N=e.tShift[K],w=e.sCount[K],x=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=l,e.tight=!0,e.tShift[K]=o-e.bMarks[K],e.sCount[K]=E,o>=y&&e.isEmpty(K+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,K,r,!0),(!e.tight||H)&&(Z=!1),H=e.line-K>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=x,e.tShift[K]=N,e.sCount[K]=w,e.tight=L,$=e.push("list_item_close","li",-1),$.markup=String.fromCharCode(b),K=e.line,f[1]=K,K>=r||e.sCount[K]=4)break;for(ie=!1,a=0,g=D.length;a=4||e.src.charCodeAt(w)!==91)return!1;for(;++w3)&&!(e.sCount[L]<0)){for(y=!1,u=0,m=E.length;u"u"&&(e.env.references={}),typeof e.env.references[f]>"u"&&(e.env.references[f]={title:x,href:d}),e.parentType=h,e.line=t+A+1),!0)},Xve=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Fh={},Zve="[a-zA-Z_:][a-zA-Z0-9:._-]*",Jve="[^\"'=<>`\\x00-\\x20]+",eye="'[^']*'",tye='"[^"]*"',nye="(?:"+Jve+"|"+eye+"|"+tye+")",rye="(?:\\s+"+Zve+"(?:\\s*=\\s*"+nye+")?)",oN="<[A-Za-z][A-Za-z0-9\\-]*"+rye+"*\\s*\\/?>",aN="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",iye="|",sye="<[?][\\s\\S]*?[?]>",oye="]*>",aye="",lye=new RegExp("^(?:"+oN+"|"+aN+"|"+iye+"|"+sye+"|"+oye+"|"+aye+")"),cye=new RegExp("^(?:"+oN+"|"+aN+")");Fh.HTML_TAG_RE=lye;Fh.HTML_OPEN_CLOSE_TAG_RE=cye;var dye=Xve,uye=Fh.HTML_OPEN_CLOSE_TAG_RE,Pa=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(uye.source+"\\s*$"),/^$/,!1]],pye=function(e,t,r,i){var s,o,a,l,d=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(d)!==60)return!1;for(l=e.src.slice(d,u),s=0;s=4||(s=e.src.charCodeAt(d),s!==35||d>=u))return!1;for(o=1,s=e.src.charCodeAt(++d);s===35&&d6||dd&&g2(e.src.charCodeAt(a-1))&&(u=a),e.line=t+1,l=e.push("heading_open","h"+String(o),1),l.markup="########".slice(0,o),l.map=[t,e.line],l=e.push("inline","",0),l.content=e.src.slice(d,u).trim(),l.map=[t,e.line],l.children=[],l=e.push("heading_close","h"+String(o),-1),l.markup="########".slice(0,o)),!0)},mye=function(e,t,r){var i,s,o,a,l,d,u,m,f,g=t+1,h,v=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(h=e.parentType,e.parentType="paragraph";g3)){if(e.sCount[g]>=e.blkIndent&&(d=e.bMarks[g]+e.tShift[g],u=e.eMarks[g],d=u)))){m=f===61?1:2;break}if(!(e.sCount[g]<0)){for(s=!1,o=0,a=v.length;o3)&&!(e.sCount[u]<0)){for(s=!1,o=0,a=m.length;o0&&this.level++,this.tokens.push(r),r};ns.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};ns.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;et;)if(!Uh(this.src.charCodeAt(--e)))return e+1;return e};ns.prototype.skipChars=function(e,t){for(var r=this.src.length;er;)if(t!==this.src.charCodeAt(--e))return e+1;return e};ns.prototype.getLines=function(e,t,r,i){var s,o,a,l,d,u,m,f=e;if(e>=t)return"";for(u=new Array(t-e),s=0;fr?u[s]=new Array(o-r+1).join(" ")+this.src.slice(l,d):u[s]=this.src.slice(l,d)}return u.join("")};ns.prototype.Token=lN;var gye=ns,_ye=Av,nu=[["table",Gve,["paragraph","reference"]],["code",zve],["fence",Vve,["paragraph","reference","blockquote","list"]],["blockquote",qve,["paragraph","reference","blockquote","list"]],["hr",$ve,["paragraph","reference","blockquote","list"]],["list",Kve,["paragraph","reference","blockquote"]],["reference",Qve],["html_block",pye,["paragraph","reference","blockquote"]],["heading",hye,["paragraph","reference","blockquote"]],["lheading",mye],["paragraph",fye]];function Bh(){this.ruler=new _ye;for(var n=0;n=t||n.sCount[l]=u){n.line=t;break}for(s=n.line,i=0;i=n.line)throw new Error("block rule didn't increment state.line");break}if(!r)throw new Error("none of the block rules matched");n.tight=!d,n.isEmpty(n.line-1)&&(d=!0),l=n.line,l0||(r=e.pos,i=e.posMax,r+3>i)||e.src.charCodeAt(r)!==58||e.src.charCodeAt(r+1)!==47||e.src.charCodeAt(r+2)!==47||(s=e.pending.match(Eye),!s)||(o=s[1],a=e.md.linkify.matchAtStart(e.src.slice(r-o.length)),!a)||(l=a.url,l.length<=o.length)||(l=l.replace(/\*+$/,""),d=e.md.normalizeLink(l),!e.md.validateLink(d))?!1:(t||(e.pending=e.pending.slice(0,-o.length),u=e.push("link_open","a",1),u.attrs=[["href",d]],u.markup="linkify",u.info="auto",u=e.push("text","",0),u.content=e.md.normalizeLinkText(l),u=e.push("link_close","a",-1),u.markup="linkify",u.info="auto"),e.pos+=l.length-o.length,!0)},xye=Jt.isSpace,Tye=function(e,t){var r,i,s,o=e.pos;if(e.src.charCodeAt(o)!==10)return!1;if(r=e.pending.length-1,i=e.posMax,!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){for(s=r-1;s>=1&&e.pending.charCodeAt(s-1)===32;)s--;e.pending=e.pending.slice(0,s),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(o++;o?@[]^_`{|}~-".split("").forEach(function(n){Nv[n.charCodeAt(0)]=1});var Cye=function(e,t){var r,i,s,o,a,l=e.pos,d=e.posMax;if(e.src.charCodeAt(l)!==92||(l++,l>=d))return!1;if(r=e.src.charCodeAt(l),r===10){for(t||e.push("hardbreak","br",0),l++;l=55296&&r<=56319&&l+1=56320&&i<=57343&&(o+=e.src[l+1],l++)),s="\\"+o,t||(a=e.push("text_special","",0),r<256&&Nv[r]!==0?a.content=o:a.content=s,a.markup=s,a.info="escape"),e.pos=l+1,!0},Aye=function(e,t){var r,i,s,o,a,l,d,u,m=e.pos,f=e.src.charCodeAt(m);if(f!==96)return!1;for(r=m,m++,i=e.posMax;m=0;t--)r=e[t],!(r.marker!==95&&r.marker!==42)&&r.end!==-1&&(i=e[r.end],a=t>0&&e[t-1].end===r.end+1&&e[t-1].marker===r.marker&&e[t-1].token===r.token-1&&e[r.end+1].token===i.token+1,o=String.fromCharCode(r.marker),s=n.tokens[r.token],s.type=a?"strong_open":"em_open",s.tag=a?"strong":"em",s.nesting=1,s.markup=a?o+o:o,s.content="",s=n.tokens[i.token],s.type=a?"strong_close":"em_close",s.tag=a?"strong":"em",s.nesting=-1,s.markup=a?o+o:o,s.content="",a&&(n.tokens[e[t-1].token].content="",n.tokens[e[r.end+1].token].content="",t--))}zh.postProcess=function(e){var t,r=e.tokens_meta,i=e.tokens_meta.length;for(v2(e,e.delimiters),t=0;t=v)return!1;if(b=l,d=e.md.helpers.parseLinkDestination(e.src,l,e.posMax),d.ok){for(f=e.md.normalizeLink(d.str),e.md.validateLink(f)?l=d.pos:f="",b=l;l=v||e.src.charCodeAt(l)!==41)&&(_=!0),l++}if(_){if(typeof e.env.references>"u")return!1;if(l=0?s=e.src.slice(b,l++):l=o+1):l=o+1,s||(s=e.src.slice(a,o)),u=e.env.references[Rye(s)],!u)return e.pos=h,!1;f=u.href,g=u.title}return t||(e.pos=a,e.posMax=o,m=e.push("link_open","a",1),m.attrs=r=[["href",f]],g&&r.push(["title",g]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,m=e.push("link_close","a",-1)),e.pos=l,e.posMax=v,!0},Nye=Jt.normalizeReference,jm=Jt.isSpace,kye=function(e,t){var r,i,s,o,a,l,d,u,m,f,g,h,v,b="",_=e.pos,y=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(l=e.pos+2,a=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),a<0))return!1;if(d=a+1,d=y)return!1;for(v=d,m=e.md.helpers.parseLinkDestination(e.src,d,e.posMax),m.ok&&(b=e.md.normalizeLink(m.str),e.md.validateLink(b)?d=m.pos:b=""),v=d;d=y||e.src.charCodeAt(d)!==41)return e.pos=_,!1;d++}else{if(typeof e.env.references>"u")return!1;if(d=0?o=e.src.slice(v,d++):d=a+1):d=a+1,o||(o=e.src.slice(l,a)),u=e.env.references[Nye(o)],!u)return e.pos=_,!1;b=u.href,f=u.title}return t||(s=e.src.slice(l,a),e.md.inline.parse(s,e.md,e.env,h=[]),g=e.push("image","img",0),g.attrs=r=[["src",b],["alt",""]],g.children=h,g.content=s,f&&r.push(["title",f])),e.pos=d,e.posMax=y,!0},Iye=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Oye=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,Dye=function(e,t){var r,i,s,o,a,l,d=e.pos;if(e.src.charCodeAt(d)!==60)return!1;for(a=e.pos,l=e.posMax;;){if(++d>=l||(o=e.src.charCodeAt(d),o===60))return!1;if(o===62)break}return r=e.src.slice(a+1,d),Oye.test(r)?(i=e.md.normalizeLink(r),e.md.validateLink(i)?(t||(s=e.push("link_open","a",1),s.attrs=[["href",i]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(r),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=r.length+2,!0):!1):Iye.test(r)?(i=e.md.normalizeLink("mailto:"+r),e.md.validateLink(i)?(t||(s=e.push("link_open","a",1),s.attrs=[["href",i]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(r),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=r.length+2,!0):!1):!1},Lye=Fh.HTML_TAG_RE;function Pye(n){return/^\s]/i.test(n)}function Fye(n){return/^<\/a\s*>/i.test(n)}function Uye(n){var e=n|32;return e>=97&&e<=122}var Bye=function(e,t){var r,i,s,o,a=e.pos;return!e.md.options.html||(s=e.posMax,e.src.charCodeAt(a)!==60||a+2>=s)||(r=e.src.charCodeAt(a+1),r!==33&&r!==63&&r!==47&&!Uye(r))||(i=e.src.slice(a).match(Lye),!i)?!1:(t||(o=e.push("html_inline","",0),o.content=i[0],Pye(o.content)&&e.linkLevel++,Fye(o.content)&&e.linkLevel--),e.pos+=i[0].length,!0)},y2=J3,Gye=Jt.has,zye=Jt.isValidEntityCode,E2=Jt.fromCodePoint,Vye=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Hye=/^&([a-z][a-z0-9]{1,31});/i,qye=function(e,t){var r,i,s,o,a=e.pos,l=e.posMax;if(e.src.charCodeAt(a)!==38||a+1>=l)return!1;if(r=e.src.charCodeAt(a+1),r===35){if(s=e.src.slice(a).match(Vye),s)return t||(i=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),o=e.push("text_special","",0),o.content=zye(i)?E2(i):E2(65533),o.markup=s[0],o.info="entity"),e.pos+=s[0].length,!0}else if(s=e.src.slice(a).match(Hye),s&&Gye(y2,s[1]))return t||(o=e.push("text_special","",0),o.content=y2[s[1]],o.markup=s[0],o.info="entity"),e.pos+=s[0].length,!0;return!1};function S2(n){var e,t,r,i,s,o,a,l,d={},u=n.length;if(u){var m=0,f=-2,g=[];for(e=0;es;t-=g[t]+1)if(i=n[t],i.marker===r.marker&&i.open&&i.end<0&&(a=!1,(i.close||r.open)&&(i.length+r.length)%3===0&&(i.length%3!==0||r.length%3!==0)&&(a=!0),!a)){l=t>0&&!n[t-1].open?g[t-1]+1:0,g[e]=e-t+l,g[t]=l,r.open=!1,i.end=e,i.close=!1,o=-1,f=-2;break}o!==-1&&(d[r.marker][(r.open?3:0)+(r.length||0)%3]=o)}}}var Yye=function(e){var t,r=e.tokens_meta,i=e.tokens_meta.length;for(S2(e.delimiters),t=0;t0&&i++,s[t].type==="text"&&t+10&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r};Ad.prototype.scanDelims=function(n,e){var t=n,r,i,s,o,a,l,d,u,m,f=!0,g=!0,h=this.posMax,v=this.src.charCodeAt(n);for(r=n>0?this.src.charCodeAt(n-1):32;t=n.pos)throw new Error("inline rule didn't increment state.pos");break}}else n.pos=n.posMax;e||n.pos++,a[r]=n.pos};Rd.prototype.tokenize=function(n){for(var e,t,r,i=this.ruler.getRules(""),s=i.length,o=n.posMax,a=n.md.options.maxNesting;n.pos=n.pos)throw new Error("inline rule didn't increment state.pos");break}}if(e){if(n.pos>=o)break;continue}n.pending+=n.src[n.pos++]}n.pending&&n.pushPending()};Rd.prototype.parse=function(n,e,t,r){var i,s,o,a=new this.State(n,e,t,r);for(this.tokenize(a),s=this.ruler2.getRules(""),o=s.length,i=0;i|$))",e.tpl_email_fuzzy="(^|"+t+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),Zm}function r1(n){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(t){t&&Object.keys(t).forEach(function(r){n[r]=t[r]})}),n}function Vh(n){return Object.prototype.toString.call(n)}function Qye(n){return Vh(n)==="[object String]"}function Xye(n){return Vh(n)==="[object Object]"}function Zye(n){return Vh(n)==="[object RegExp]"}function R2(n){return Vh(n)==="[object Function]"}function Jye(n){return n.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var cN={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function eEe(n){return Object.keys(n||{}).reduce(function(e,t){return e||cN.hasOwnProperty(t)},!1)}var tEe={"http:":{validate:function(n,e,t){var r=n.slice(e);return t.re.http||(t.re.http=new RegExp("^\\/\\/"+t.re.src_auth+t.re.src_host_port_strict+t.re.src_path,"i")),t.re.http.test(r)?r.match(t.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(n,e,t){var r=n.slice(e);return t.re.no_http||(t.re.no_http=new RegExp("^"+t.re.src_auth+"(?:localhost|(?:(?:"+t.re.src_domain+")\\.)+"+t.re.src_domain_root+")"+t.re.src_port+t.re.src_host_terminator+t.re.src_path,"i")),t.re.no_http.test(r)?e>=3&&n[e-3]===":"||e>=3&&n[e-3]==="/"?0:r.match(t.re.no_http)[0].length:0}},"mailto:":{validate:function(n,e,t){var r=n.slice(e);return t.re.mailto||(t.re.mailto=new RegExp("^"+t.re.src_email_name+"@"+t.re.src_host_strict,"i")),t.re.mailto.test(r)?r.match(t.re.mailto)[0].length:0}}},nEe="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",rEe="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function iEe(n){n.__index__=-1,n.__text_cache__=""}function sEe(n){return function(e,t){var r=e.slice(t);return n.test(r)?r.match(n)[0].length:0}}function M2(){return function(n,e){e.normalize(n)}}function Dp(n){var e=n.re=jye()(n.__opts__),t=n.__tlds__.slice();n.onCompile(),n.__tlds_replaced__||t.push(nEe),t.push(e.src_xn),e.src_tlds=t.join("|");function r(a){return a.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(r(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(r(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(r(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(r(e.tpl_host_fuzzy_test),"i");var i=[];n.__compiled__={};function s(a,l){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+l)}Object.keys(n.__schemas__).forEach(function(a){var l=n.__schemas__[a];if(l!==null){var d={validate:null,link:null};if(n.__compiled__[a]=d,Xye(l)){Zye(l.validate)?d.validate=sEe(l.validate):R2(l.validate)?d.validate=l.validate:s(a,l),R2(l.normalize)?d.normalize=l.normalize:l.normalize?s(a,l):d.normalize=M2();return}if(Qye(l)){i.push(a);return}s(a,l)}}),i.forEach(function(a){n.__compiled__[n.__schemas__[a]]&&(n.__compiled__[a].validate=n.__compiled__[n.__schemas__[a]].validate,n.__compiled__[a].normalize=n.__compiled__[n.__schemas__[a]].normalize)}),n.__compiled__[""]={validate:null,normalize:M2()};var o=Object.keys(n.__compiled__).filter(function(a){return a.length>0&&n.__compiled__[a]}).map(Jye).join("|");n.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+o+")","i"),n.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+o+")","ig"),n.re.schema_at_start=RegExp("^"+n.re.schema_search.source,"i"),n.re.pretest=RegExp("("+n.re.schema_test.source+")|("+n.re.host_fuzzy_test.source+")|@","i"),iEe(n)}function oEe(n,e){var t=n.__index__,r=n.__last_index__,i=n.__text_cache__.slice(t,r);this.schema=n.__schema__.toLowerCase(),this.index=t+e,this.lastIndex=r+e,this.raw=i,this.text=i,this.url=i}function i1(n,e){var t=new oEe(n,e);return n.__compiled__[t.schema].normalize(t,n),t}function Vr(n,e){if(!(this instanceof Vr))return new Vr(n,e);e||eEe(n)&&(e=n,n={}),this.__opts__=r1({},cN,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r1({},tEe,n),this.__compiled__={},this.__tlds__=rEe,this.__tlds_replaced__=!1,this.re={},Dp(this)}Vr.prototype.add=function(e,t){return this.__schemas__[e]=t,Dp(this),this};Vr.prototype.set=function(e){return this.__opts__=r1(this.__opts__,e),this};Vr.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,r,i,s,o,a,l,d,u;if(this.re.schema_test.test(e)){for(l=this.re.schema_search,l.lastIndex=0;(t=l.exec(e))!==null;)if(s=this.testSchemaAt(e,t[2],l.lastIndex),s){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+s;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(d=e.search(this.re.host_fuzzy_test),d>=0&&(this.__index__<0||d=0&&(i=e.match(this.re.email_fuzzy))!==null&&(o=i.index+i[1].length,a=i.index+i[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a))),this.__index__>=0};Vr.prototype.pretest=function(e){return this.re.pretest.test(e)};Vr.prototype.testSchemaAt=function(e,t,r){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,r,this):0};Vr.prototype.match=function(e){var t=0,r=[];this.__index__>=0&&this.__text_cache__===e&&(r.push(i1(this,t)),t=this.__last_index__);for(var i=t?e.slice(t):e;this.test(i);)r.push(i1(this,t)),i=i.slice(this.__last_index__),t+=this.__last_index__;return r.length?r:null};Vr.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var t=this.re.schema_at_start.exec(e);if(!t)return null;var r=this.testSchemaAt(e,t[2],t[0].length);return r?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+r,i1(this,0)):null};Vr.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(r,i,s){return r!==s[i-1]}).reverse(),Dp(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Dp(this),this)};Vr.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};Vr.prototype.onCompile=function(){};var aEe=Vr;const fl=2147483647,qi=36,Iv=1,dd=26,lEe=38,cEe=700,dN=72,uN=128,pN="-",dEe=/^xn--/,uEe=/[^\0-\x7F]/,pEe=/[\x2E\u3002\uFF0E\uFF61]/g,hEe={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Jm=qi-Iv,Yi=Math.floor,ef=String.fromCharCode;function lo(n){throw new RangeError(hEe[n])}function mEe(n,e){const t=[];let r=n.length;for(;r--;)t[r]=e(n[r]);return t}function hN(n,e){const t=n.split("@");let r="";t.length>1&&(r=t[0]+"@",n=t[1]),n=n.replace(pEe,".");const i=n.split("."),s=mEe(i,e).join(".");return r+s}function Ov(n){const e=[];let t=0;const r=n.length;for(;t=55296&&i<=56319&&tString.fromCodePoint(...n),fEe=function(n){return n>=48&&n<58?26+(n-48):n>=65&&n<91?n-65:n>=97&&n<123?n-97:qi},N2=function(n,e){return n+22+75*(n<26)-((e!=0)<<5)},fN=function(n,e,t){let r=0;for(n=t?Yi(n/cEe):n>>1,n+=Yi(n/e);n>Jm*dd>>1;r+=qi)n=Yi(n/Jm);return Yi(r+(Jm+1)*n/(n+lEe))},Dv=function(n){const e=[],t=n.length;let r=0,i=uN,s=dN,o=n.lastIndexOf(pN);o<0&&(o=0);for(let a=0;a=128&&lo("not-basic"),e.push(n.charCodeAt(a));for(let a=o>0?o+1:0;a=t&&lo("invalid-input");const f=fEe(n.charCodeAt(a++));f>=qi&&lo("invalid-input"),f>Yi((fl-r)/u)&&lo("overflow"),r+=f*u;const g=m<=s?Iv:m>=s+dd?dd:m-s;if(fYi(fl/h)&&lo("overflow"),u*=h}const d=e.length+1;s=fN(r-l,d,l==0),Yi(r/d)>fl-i&&lo("overflow"),i+=Yi(r/d),r%=d,e.splice(r++,0,i)}return String.fromCodePoint(...e)},Lv=function(n){const e=[];n=Ov(n);const t=n.length;let r=uN,i=0,s=dN;for(const l of n)l<128&&e.push(ef(l));const o=e.length;let a=o;for(o&&e.push(pN);a=r&&uYi((fl-i)/d)&&lo("overflow"),i+=(l-r)*d,r=l;for(const u of n)if(ufl&&lo("overflow"),u===r){let m=i;for(let f=qi;;f+=qi){const g=f<=s?Iv:f>=s+dd?dd:f-s;if(m=0))try{e.hostname=bN.toASCII(e.hostname)}catch{}return sa.encode(sa.format(e))}function OEe(n){var e=sa.parse(n,!0);if(e.hostname&&(!e.protocol||vN.indexOf(e.protocol)>=0))try{e.hostname=bN.toUnicode(e.hostname)}catch{}return sa.decode(sa.format(e),sa.decode.defaultChars+"%")}function pi(n,e){if(!(this instanceof pi))return new pi(n,e);e||Vc.isString(n)||(e=n||{},n="default"),this.inline=new CEe,this.block=new wEe,this.core=new TEe,this.renderer=new xEe,this.linkify=new AEe,this.validateLink=kEe,this.normalizeLink=IEe,this.normalizeLinkText=OEe,this.utils=Vc,this.helpers=Vc.assign({},SEe),this.options={},this.configure(n),e&&this.set(e)}pi.prototype.set=function(n){return Vc.assign(this.options,n),this};pi.prototype.configure=function(n){var e=this,t;if(Vc.isString(n)&&(t=n,n=REe[t],!n))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!n)throw new Error("Wrong `markdown-it` preset, can't be empty");return n.options&&e.set(n.options),n.components&&Object.keys(n.components).forEach(function(r){n.components[r].rules&&e[r].ruler.enableOnly(n.components[r].rules),n.components[r].rules2&&e[r].ruler2.enableOnly(n.components[r].rules2)}),this};pi.prototype.enable=function(n,e){var t=[];Array.isArray(n)||(n=[n]),["core","block","inline"].forEach(function(i){t=t.concat(this[i].ruler.enable(n,!0))},this),t=t.concat(this.inline.ruler2.enable(n,!0));var r=n.filter(function(i){return t.indexOf(i)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this};pi.prototype.disable=function(n,e){var t=[];Array.isArray(n)||(n=[n]),["core","block","inline"].forEach(function(i){t=t.concat(this[i].ruler.disable(n,!0))},this),t=t.concat(this.inline.ruler2.disable(n,!0));var r=n.filter(function(i){return t.indexOf(i)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this};pi.prototype.use=function(n){var e=[this].concat(Array.prototype.slice.call(arguments,1));return n.apply(n,e),this};pi.prototype.parse=function(n,e){if(typeof n!="string")throw new Error("Input data should be a String");var t=new this.core.State(n,this,e);return this.core.process(t),t.tokens};pi.prototype.render=function(n,e){return e=e||{},this.renderer.render(this.parse(n,e),this.options,e)};pi.prototype.parseInline=function(n,e){var t=new this.core.State(n,this,e);return t.inlineMode=!0,this.core.process(t),t.tokens};pi.prototype.renderInline=function(n,e){return e=e||{},this.renderer.render(this.parseInline(n,e),this.options,e)};var DEe=pi,LEe=DEe;const PEe=Ra(LEe),FEe="😀",UEe="😃",BEe="😄",GEe="😁",zEe="😆",VEe="😆",HEe="😅",qEe="🤣",YEe="😂",$Ee="🙂",WEe="🙃",KEe="😉",jEe="😊",QEe="😇",XEe="🥰",ZEe="😍",JEe="🤩",eSe="😘",tSe="😗",nSe="☺️",rSe="😚",iSe="😙",sSe="🥲",oSe="😋",aSe="😛",lSe="😜",cSe="🤪",dSe="😝",uSe="🤑",pSe="🤗",hSe="🤭",mSe="🤫",fSe="🤔",gSe="🤐",_Se="🤨",bSe="😐",vSe="😑",ySe="😶",ESe="😏",SSe="😒",xSe="🙄",TSe="😬",wSe="🤥",CSe="😌",ASe="😔",RSe="😪",MSe="🤤",NSe="😴",kSe="😷",ISe="🤒",OSe="🤕",DSe="🤢",LSe="🤮",PSe="🤧",FSe="🥵",USe="🥶",BSe="🥴",GSe="😵",zSe="🤯",VSe="🤠",HSe="🥳",qSe="🥸",YSe="😎",$Se="🤓",WSe="🧐",KSe="😕",jSe="😟",QSe="🙁",XSe="☹️",ZSe="😮",JSe="😯",e2e="😲",t2e="😳",n2e="🥺",r2e="😦",i2e="😧",s2e="😨",o2e="😰",a2e="😥",l2e="😢",c2e="😭",d2e="😱",u2e="😖",p2e="😣",h2e="😞",m2e="😓",f2e="😩",g2e="😫",_2e="🥱",b2e="😤",v2e="😡",y2e="😡",E2e="😠",S2e="🤬",x2e="😈",T2e="👿",w2e="💀",C2e="☠️",A2e="💩",R2e="💩",M2e="💩",N2e="🤡",k2e="👹",I2e="👺",O2e="👻",D2e="👽",L2e="👾",P2e="🤖",F2e="😺",U2e="😸",B2e="😹",G2e="😻",z2e="😼",V2e="😽",H2e="🙀",q2e="😿",Y2e="😾",$2e="🙈",W2e="🙉",K2e="🙊",j2e="💋",Q2e="💌",X2e="💘",Z2e="💝",J2e="💖",exe="💗",txe="💓",nxe="💞",rxe="💕",ixe="💟",sxe="❣️",oxe="💔",axe="❤️",lxe="🧡",cxe="💛",dxe="💚",uxe="💙",pxe="💜",hxe="🤎",mxe="🖤",fxe="🤍",gxe="💢",_xe="💥",bxe="💥",vxe="💫",yxe="💦",Exe="💨",Sxe="🕳️",xxe="💣",Txe="💬",wxe="👁️‍🗨️",Cxe="🗨️",Axe="🗯️",Rxe="💭",Mxe="💤",Nxe="👋",kxe="🤚",Ixe="🖐️",Oxe="✋",Dxe="✋",Lxe="🖖",Pxe="👌",Fxe="🤌",Uxe="🤏",Bxe="✌️",Gxe="🤞",zxe="🤟",Vxe="🤘",Hxe="🤙",qxe="👈",Yxe="👉",$xe="👆",Wxe="🖕",Kxe="🖕",jxe="👇",Qxe="☝️",Xxe="👍",Zxe="👎",Jxe="✊",eTe="✊",tTe="👊",nTe="👊",rTe="👊",iTe="🤛",sTe="🤜",oTe="👏",aTe="🙌",lTe="👐",cTe="🤲",dTe="🤝",uTe="🙏",pTe="✍️",hTe="💅",mTe="🤳",fTe="💪",gTe="🦾",_Te="🦿",bTe="🦵",vTe="🦶",yTe="👂",ETe="🦻",STe="👃",xTe="🧠",TTe="🫀",wTe="🫁",CTe="🦷",ATe="🦴",RTe="👀",MTe="👁️",NTe="👅",kTe="👄",ITe="👶",OTe="🧒",DTe="👦",LTe="👧",PTe="🧑",FTe="👱",UTe="👨",BTe="🧔",GTe="👨‍🦰",zTe="👨‍🦱",VTe="👨‍🦳",HTe="👨‍🦲",qTe="👩",YTe="👩‍🦰",$Te="🧑‍🦰",WTe="👩‍🦱",KTe="🧑‍🦱",jTe="👩‍🦳",QTe="🧑‍🦳",XTe="👩‍🦲",ZTe="🧑‍🦲",JTe="👱‍♀️",ewe="👱‍♀️",twe="👱‍♂️",nwe="🧓",rwe="👴",iwe="👵",swe="🙍",owe="🙍‍♂️",awe="🙍‍♀️",lwe="🙎",cwe="🙎‍♂️",dwe="🙎‍♀️",uwe="🙅",pwe="🙅‍♂️",hwe="🙅‍♂️",mwe="🙅‍♀️",fwe="🙅‍♀️",gwe="🙆",_we="🙆‍♂️",bwe="🙆‍♀️",vwe="💁",ywe="💁",Ewe="💁‍♂️",Swe="💁‍♂️",xwe="💁‍♀️",Twe="💁‍♀️",wwe="🙋",Cwe="🙋‍♂️",Awe="🙋‍♀️",Rwe="🧏",Mwe="🧏‍♂️",Nwe="🧏‍♀️",kwe="🙇",Iwe="🙇‍♂️",Owe="🙇‍♀️",Dwe="🤦",Lwe="🤦‍♂️",Pwe="🤦‍♀️",Fwe="🤷",Uwe="🤷‍♂️",Bwe="🤷‍♀️",Gwe="🧑‍⚕️",zwe="👨‍⚕️",Vwe="👩‍⚕️",Hwe="🧑‍🎓",qwe="👨‍🎓",Ywe="👩‍🎓",$we="🧑‍🏫",Wwe="👨‍🏫",Kwe="👩‍🏫",jwe="🧑‍⚖️",Qwe="👨‍⚖️",Xwe="👩‍⚖️",Zwe="🧑‍🌾",Jwe="👨‍🌾",eCe="👩‍🌾",tCe="🧑‍🍳",nCe="👨‍🍳",rCe="👩‍🍳",iCe="🧑‍🔧",sCe="👨‍🔧",oCe="👩‍🔧",aCe="🧑‍🏭",lCe="👨‍🏭",cCe="👩‍🏭",dCe="🧑‍💼",uCe="👨‍💼",pCe="👩‍💼",hCe="🧑‍🔬",mCe="👨‍🔬",fCe="👩‍🔬",gCe="🧑‍💻",_Ce="👨‍💻",bCe="👩‍💻",vCe="🧑‍🎤",yCe="👨‍🎤",ECe="👩‍🎤",SCe="🧑‍🎨",xCe="👨‍🎨",TCe="👩‍🎨",wCe="🧑‍✈️",CCe="👨‍✈️",ACe="👩‍✈️",RCe="🧑‍🚀",MCe="👨‍🚀",NCe="👩‍🚀",kCe="🧑‍🚒",ICe="👨‍🚒",OCe="👩‍🚒",DCe="👮",LCe="👮",PCe="👮‍♂️",FCe="👮‍♀️",UCe="🕵️",BCe="🕵️‍♂️",GCe="🕵️‍♀️",zCe="💂",VCe="💂‍♂️",HCe="💂‍♀️",qCe="🥷",YCe="👷",$Ce="👷‍♂️",WCe="👷‍♀️",KCe="🤴",jCe="👸",QCe="👳",XCe="👳‍♂️",ZCe="👳‍♀️",JCe="👲",eAe="🧕",tAe="🤵",nAe="🤵‍♂️",rAe="🤵‍♀️",iAe="👰",sAe="👰‍♂️",oAe="👰‍♀️",aAe="👰‍♀️",lAe="🤰",cAe="🤱",dAe="👩‍🍼",uAe="👨‍🍼",pAe="🧑‍🍼",hAe="👼",mAe="🎅",fAe="🤶",gAe="🧑‍🎄",_Ae="🦸",bAe="🦸‍♂️",vAe="🦸‍♀️",yAe="🦹",EAe="🦹‍♂️",SAe="🦹‍♀️",xAe="🧙",TAe="🧙‍♂️",wAe="🧙‍♀️",CAe="🧚",AAe="🧚‍♂️",RAe="🧚‍♀️",MAe="🧛",NAe="🧛‍♂️",kAe="🧛‍♀️",IAe="🧜",OAe="🧜‍♂️",DAe="🧜‍♀️",LAe="🧝",PAe="🧝‍♂️",FAe="🧝‍♀️",UAe="🧞",BAe="🧞‍♂️",GAe="🧞‍♀️",zAe="🧟",VAe="🧟‍♂️",HAe="🧟‍♀️",qAe="💆",YAe="💆‍♂️",$Ae="💆‍♀️",WAe="💇",KAe="💇‍♂️",jAe="💇‍♀️",QAe="🚶",XAe="🚶‍♂️",ZAe="🚶‍♀️",JAe="🧍",eRe="🧍‍♂️",tRe="🧍‍♀️",nRe="🧎",rRe="🧎‍♂️",iRe="🧎‍♀️",sRe="🧑‍🦯",oRe="👨‍🦯",aRe="👩‍🦯",lRe="🧑‍🦼",cRe="👨‍🦼",dRe="👩‍🦼",uRe="🧑‍🦽",pRe="👨‍🦽",hRe="👩‍🦽",mRe="🏃",fRe="🏃",gRe="🏃‍♂️",_Re="🏃‍♀️",bRe="💃",vRe="💃",yRe="🕺",ERe="🕴️",SRe="👯",xRe="👯‍♂️",TRe="👯‍♀️",wRe="🧖",CRe="🧖‍♂️",ARe="🧖‍♀️",RRe="🧗",MRe="🧗‍♂️",NRe="🧗‍♀️",kRe="🤺",IRe="🏇",ORe="⛷️",DRe="🏂",LRe="🏌️",PRe="🏌️‍♂️",FRe="🏌️‍♀️",URe="🏄",BRe="🏄‍♂️",GRe="🏄‍♀️",zRe="🚣",VRe="🚣‍♂️",HRe="🚣‍♀️",qRe="🏊",YRe="🏊‍♂️",$Re="🏊‍♀️",WRe="⛹️",KRe="⛹️‍♂️",jRe="⛹️‍♂️",QRe="⛹️‍♀️",XRe="⛹️‍♀️",ZRe="🏋️",JRe="🏋️‍♂️",eMe="🏋️‍♀️",tMe="🚴",nMe="🚴‍♂️",rMe="🚴‍♀️",iMe="🚵",sMe="🚵‍♂️",oMe="🚵‍♀️",aMe="🤸",lMe="🤸‍♂️",cMe="🤸‍♀️",dMe="🤼",uMe="🤼‍♂️",pMe="🤼‍♀️",hMe="🤽",mMe="🤽‍♂️",fMe="🤽‍♀️",gMe="🤾",_Me="🤾‍♂️",bMe="🤾‍♀️",vMe="🤹",yMe="🤹‍♂️",EMe="🤹‍♀️",SMe="🧘",xMe="🧘‍♂️",TMe="🧘‍♀️",wMe="🛀",CMe="🛌",AMe="🧑‍🤝‍🧑",RMe="👭",MMe="👫",NMe="👬",kMe="💏",IMe="👩‍❤️‍💋‍👨",OMe="👨‍❤️‍💋‍👨",DMe="👩‍❤️‍💋‍👩",LMe="💑",PMe="👩‍❤️‍👨",FMe="👨‍❤️‍👨",UMe="👩‍❤️‍👩",BMe="👪",GMe="👨‍👩‍👦",zMe="👨‍👩‍👧",VMe="👨‍👩‍👧‍👦",HMe="👨‍👩‍👦‍👦",qMe="👨‍👩‍👧‍👧",YMe="👨‍👨‍👦",$Me="👨‍👨‍👧",WMe="👨‍👨‍👧‍👦",KMe="👨‍👨‍👦‍👦",jMe="👨‍👨‍👧‍👧",QMe="👩‍👩‍👦",XMe="👩‍👩‍👧",ZMe="👩‍👩‍👧‍👦",JMe="👩‍👩‍👦‍👦",e4e="👩‍👩‍👧‍👧",t4e="👨‍👦",n4e="👨‍👦‍👦",r4e="👨‍👧",i4e="👨‍👧‍👦",s4e="👨‍👧‍👧",o4e="👩‍👦",a4e="👩‍👦‍👦",l4e="👩‍👧",c4e="👩‍👧‍👦",d4e="👩‍👧‍👧",u4e="🗣️",p4e="👤",h4e="👥",m4e="🫂",f4e="👣",g4e="🐵",_4e="🐒",b4e="🦍",v4e="🦧",y4e="🐶",E4e="🐕",S4e="🦮",x4e="🐕‍🦺",T4e="🐩",w4e="🐺",C4e="🦊",A4e="🦝",R4e="🐱",M4e="🐈",N4e="🐈‍⬛",k4e="🦁",I4e="🐯",O4e="🐅",D4e="🐆",L4e="🐴",P4e="🐎",F4e="🦄",U4e="🦓",B4e="🦌",G4e="🦬",z4e="🐮",V4e="🐂",H4e="🐃",q4e="🐄",Y4e="🐷",$4e="🐖",W4e="🐗",K4e="🐽",j4e="🐏",Q4e="🐑",X4e="🐐",Z4e="🐪",J4e="🐫",e3e="🦙",t3e="🦒",n3e="🐘",r3e="🦣",i3e="🦏",s3e="🦛",o3e="🐭",a3e="🐁",l3e="🐀",c3e="🐹",d3e="🐰",u3e="🐇",p3e="🐿️",h3e="🦫",m3e="🦔",f3e="🦇",g3e="🐻",_3e="🐻‍❄️",b3e="🐨",v3e="🐼",y3e="🦥",E3e="🦦",S3e="🦨",x3e="🦘",T3e="🦡",w3e="🐾",C3e="🐾",A3e="🦃",R3e="🐔",M3e="🐓",N3e="🐣",k3e="🐤",I3e="🐥",O3e="🐦",D3e="🐧",L3e="🕊️",P3e="🦅",F3e="🦆",U3e="🦢",B3e="🦉",G3e="🦤",z3e="🪶",V3e="🦩",H3e="🦚",q3e="🦜",Y3e="🐸",$3e="🐊",W3e="🐢",K3e="🦎",j3e="🐍",Q3e="🐲",X3e="🐉",Z3e="🦕",J3e="🐳",eNe="🐋",tNe="🐬",nNe="🐬",rNe="🦭",iNe="🐟",sNe="🐠",oNe="🐡",aNe="🦈",lNe="🐙",cNe="🐚",dNe="🐌",uNe="🦋",pNe="🐛",hNe="🐜",mNe="🐝",fNe="🐝",gNe="🪲",_Ne="🐞",bNe="🦗",vNe="🪳",yNe="🕷️",ENe="🕸️",SNe="🦂",xNe="🦟",TNe="🪰",wNe="🪱",CNe="🦠",ANe="💐",RNe="🌸",MNe="💮",NNe="🏵️",kNe="🌹",INe="🥀",ONe="🌺",DNe="🌻",LNe="🌼",PNe="🌷",FNe="🌱",UNe="🪴",BNe="🌲",GNe="🌳",zNe="🌴",VNe="🌵",HNe="🌾",qNe="🌿",YNe="☘️",$Ne="🍀",WNe="🍁",KNe="🍂",jNe="🍃",QNe="🍇",XNe="🍈",ZNe="🍉",JNe="🍊",eke="🍊",tke="🍊",nke="🍋",rke="🍌",ike="🍍",ske="🥭",oke="🍎",ake="🍏",lke="🍐",cke="🍑",dke="🍒",uke="🍓",pke="🫐",hke="🥝",mke="🍅",fke="🫒",gke="🥥",_ke="🥑",bke="🍆",vke="🥔",yke="🥕",Eke="🌽",Ske="🌶️",xke="🫑",Tke="🥒",wke="🥬",Cke="🥦",Ake="🧄",Rke="🧅",Mke="🍄",Nke="🥜",kke="🌰",Ike="🍞",Oke="🥐",Dke="🥖",Lke="🫓",Pke="🥨",Fke="🥯",Uke="🥞",Bke="🧇",Gke="🧀",zke="🍖",Vke="🍗",Hke="🥩",qke="🥓",Yke="🍔",$ke="🍟",Wke="🍕",Kke="🌭",jke="🥪",Qke="🌮",Xke="🌯",Zke="🫔",Jke="🥙",eIe="🧆",tIe="🥚",nIe="🍳",rIe="🥘",iIe="🍲",sIe="🫕",oIe="🥣",aIe="🥗",lIe="🍿",cIe="🧈",dIe="🧂",uIe="🥫",pIe="🍱",hIe="🍘",mIe="🍙",fIe="🍚",gIe="🍛",_Ie="🍜",bIe="🍝",vIe="🍠",yIe="🍢",EIe="🍣",SIe="🍤",xIe="🍥",TIe="🥮",wIe="🍡",CIe="🥟",AIe="🥠",RIe="🥡",MIe="🦀",NIe="🦞",kIe="🦐",IIe="🦑",OIe="🦪",DIe="🍦",LIe="🍧",PIe="🍨",FIe="🍩",UIe="🍪",BIe="🎂",GIe="🍰",zIe="🧁",VIe="🥧",HIe="🍫",qIe="🍬",YIe="🍭",$Ie="🍮",WIe="🍯",KIe="🍼",jIe="🥛",QIe="☕",XIe="🫖",ZIe="🍵",JIe="🍶",eOe="🍾",tOe="🍷",nOe="🍸",rOe="🍹",iOe="🍺",sOe="🍻",oOe="🥂",aOe="🥃",lOe="🥤",cOe="🧋",dOe="🧃",uOe="🧉",pOe="🧊",hOe="🥢",mOe="🍽️",fOe="🍴",gOe="🥄",_Oe="🔪",bOe="🔪",vOe="🏺",yOe="🌍",EOe="🌎",SOe="🌏",xOe="🌐",TOe="🗺️",wOe="🗾",COe="🧭",AOe="🏔️",ROe="⛰️",MOe="🌋",NOe="🗻",kOe="🏕️",IOe="🏖️",OOe="🏜️",DOe="🏝️",LOe="🏞️",POe="🏟️",FOe="🏛️",UOe="🏗️",BOe="🧱",GOe="🪨",zOe="🪵",VOe="🛖",HOe="🏘️",qOe="🏚️",YOe="🏠",$Oe="🏡",WOe="🏢",KOe="🏣",jOe="🏤",QOe="🏥",XOe="🏦",ZOe="🏨",JOe="🏩",e5e="🏪",t5e="🏫",n5e="🏬",r5e="🏭",i5e="🏯",s5e="🏰",o5e="💒",a5e="🗼",l5e="🗽",c5e="⛪",d5e="🕌",u5e="🛕",p5e="🕍",h5e="⛩️",m5e="🕋",f5e="⛲",g5e="⛺",_5e="🌁",b5e="🌃",v5e="🏙️",y5e="🌄",E5e="🌅",S5e="🌆",x5e="🌇",T5e="🌉",w5e="♨️",C5e="🎠",A5e="🎡",R5e="🎢",M5e="💈",N5e="🎪",k5e="🚂",I5e="🚃",O5e="🚄",D5e="🚅",L5e="🚆",P5e="🚇",F5e="🚈",U5e="🚉",B5e="🚊",G5e="🚝",z5e="🚞",V5e="🚋",H5e="🚌",q5e="🚍",Y5e="🚎",$5e="🚐",W5e="🚑",K5e="🚒",j5e="🚓",Q5e="🚔",X5e="🚕",Z5e="🚖",J5e="🚗",eDe="🚗",tDe="🚘",nDe="🚙",rDe="🛻",iDe="🚚",sDe="🚛",oDe="🚜",aDe="🏎️",lDe="🏍️",cDe="🛵",dDe="🦽",uDe="🦼",pDe="🛺",hDe="🚲",mDe="🛴",fDe="🛹",gDe="🛼",_De="🚏",bDe="🛣️",vDe="🛤️",yDe="🛢️",EDe="⛽",SDe="🚨",xDe="🚥",TDe="🚦",wDe="🛑",CDe="🚧",ADe="⚓",RDe="⛵",MDe="⛵",NDe="🛶",kDe="🚤",IDe="🛳️",ODe="⛴️",DDe="🛥️",LDe="🚢",PDe="✈️",FDe="🛩️",UDe="🛫",BDe="🛬",GDe="🪂",zDe="💺",VDe="🚁",HDe="🚟",qDe="🚠",YDe="🚡",$De="🛰️",WDe="🚀",KDe="🛸",jDe="🛎️",QDe="🧳",XDe="⌛",ZDe="⏳",JDe="⌚",eLe="⏰",tLe="⏱️",nLe="⏲️",rLe="🕰️",iLe="🕛",sLe="🕧",oLe="🕐",aLe="🕜",lLe="🕑",cLe="🕝",dLe="🕒",uLe="🕞",pLe="🕓",hLe="🕟",mLe="🕔",fLe="🕠",gLe="🕕",_Le="🕡",bLe="🕖",vLe="🕢",yLe="🕗",ELe="🕣",SLe="🕘",xLe="🕤",TLe="🕙",wLe="🕥",CLe="🕚",ALe="🕦",RLe="🌑",MLe="🌒",NLe="🌓",kLe="🌔",ILe="🌔",OLe="🌕",DLe="🌖",LLe="🌗",PLe="🌘",FLe="🌙",ULe="🌚",BLe="🌛",GLe="🌜",zLe="🌡️",VLe="☀️",HLe="🌝",qLe="🌞",YLe="🪐",$Le="⭐",WLe="🌟",KLe="🌠",jLe="🌌",QLe="☁️",XLe="⛅",ZLe="⛈️",JLe="🌤️",e6e="🌥️",t6e="🌦️",n6e="🌧️",r6e="🌨️",i6e="🌩️",s6e="🌪️",o6e="🌫️",a6e="🌬️",l6e="🌀",c6e="🌈",d6e="🌂",u6e="☂️",p6e="☔",h6e="⛱️",m6e="⚡",f6e="❄️",g6e="☃️",_6e="⛄",b6e="☄️",v6e="🔥",y6e="💧",E6e="🌊",S6e="🎃",x6e="🎄",T6e="🎆",w6e="🎇",C6e="🧨",A6e="✨",R6e="🎈",M6e="🎉",N6e="🎊",k6e="🎋",I6e="🎍",O6e="🎎",D6e="🎏",L6e="🎐",P6e="🎑",F6e="🧧",U6e="🎀",B6e="🎁",G6e="🎗️",z6e="🎟️",V6e="🎫",H6e="🎖️",q6e="🏆",Y6e="🏅",$6e="⚽",W6e="⚾",K6e="🥎",j6e="🏀",Q6e="🏐",X6e="🏈",Z6e="🏉",J6e="🎾",ePe="🥏",tPe="🎳",nPe="🏏",rPe="🏑",iPe="🏒",sPe="🥍",oPe="🏓",aPe="🏸",lPe="🥊",cPe="🥋",dPe="🥅",uPe="⛳",pPe="⛸️",hPe="🎣",mPe="🤿",fPe="🎽",gPe="🎿",_Pe="🛷",bPe="🥌",vPe="🎯",yPe="🪀",EPe="🪁",SPe="🔮",xPe="🪄",TPe="🧿",wPe="🎮",CPe="🕹️",APe="🎰",RPe="🎲",MPe="🧩",NPe="🧸",kPe="🪅",IPe="🪆",OPe="♠️",DPe="♥️",LPe="♦️",PPe="♣️",FPe="♟️",UPe="🃏",BPe="🀄",GPe="🎴",zPe="🎭",VPe="🖼️",HPe="🎨",qPe="🧵",YPe="🪡",$Pe="🧶",WPe="🪢",KPe="👓",jPe="🕶️",QPe="🥽",XPe="🥼",ZPe="🦺",JPe="👔",e7e="👕",t7e="👕",n7e="👖",r7e="🧣",i7e="🧤",s7e="🧥",o7e="🧦",a7e="👗",l7e="👘",c7e="🥻",d7e="🩱",u7e="🩲",p7e="🩳",h7e="👙",m7e="👚",f7e="👛",g7e="👜",_7e="👝",b7e="🛍️",v7e="🎒",y7e="🩴",E7e="👞",S7e="👞",x7e="👟",T7e="🥾",w7e="🥿",C7e="👠",A7e="👡",R7e="🩰",M7e="👢",N7e="👑",k7e="👒",I7e="🎩",O7e="🎓",D7e="🧢",L7e="🪖",P7e="⛑️",F7e="📿",U7e="💄",B7e="💍",G7e="💎",z7e="🔇",V7e="🔈",H7e="🔉",q7e="🔊",Y7e="📢",$7e="📣",W7e="📯",K7e="🔔",j7e="🔕",Q7e="🎼",X7e="🎵",Z7e="🎶",J7e="🎙️",e8e="🎚️",t8e="🎛️",n8e="🎤",r8e="🎧",i8e="📻",s8e="🎷",o8e="🪗",a8e="🎸",l8e="🎹",c8e="🎺",d8e="🎻",u8e="🪕",p8e="🥁",h8e="🪘",m8e="📱",f8e="📲",g8e="☎️",_8e="☎️",b8e="📞",v8e="📟",y8e="📠",E8e="🔋",S8e="🔌",x8e="💻",T8e="🖥️",w8e="🖨️",C8e="⌨️",A8e="🖱️",R8e="🖲️",M8e="💽",N8e="💾",k8e="💿",I8e="📀",O8e="🧮",D8e="🎥",L8e="🎞️",P8e="📽️",F8e="🎬",U8e="📺",B8e="📷",G8e="📸",z8e="📹",V8e="📼",H8e="🔍",q8e="🔎",Y8e="🕯️",$8e="💡",W8e="🔦",K8e="🏮",j8e="🏮",Q8e="🪔",X8e="📔",Z8e="📕",J8e="📖",e9e="📖",t9e="📗",n9e="📘",r9e="📙",i9e="📚",s9e="📓",o9e="📒",a9e="📃",l9e="📜",c9e="📄",d9e="📰",u9e="🗞️",p9e="📑",h9e="🔖",m9e="🏷️",f9e="💰",g9e="🪙",_9e="💴",b9e="💵",v9e="💶",y9e="💷",E9e="💸",S9e="💳",x9e="🧾",T9e="💹",w9e="✉️",C9e="📧",A9e="📨",R9e="📩",M9e="📤",N9e="📥",k9e="📫",I9e="📪",O9e="📬",D9e="📭",L9e="📮",P9e="🗳️",F9e="✏️",U9e="✒️",B9e="🖋️",G9e="🖊️",z9e="🖌️",V9e="🖍️",H9e="📝",q9e="📝",Y9e="💼",$9e="📁",W9e="📂",K9e="🗂️",j9e="📅",Q9e="📆",X9e="🗒️",Z9e="🗓️",J9e="📇",eFe="📈",tFe="📉",nFe="📊",rFe="📋",iFe="📌",sFe="📍",oFe="📎",aFe="🖇️",lFe="📏",cFe="📐",dFe="✂️",uFe="🗃️",pFe="🗄️",hFe="🗑️",mFe="🔒",fFe="🔓",gFe="🔏",_Fe="🔐",bFe="🔑",vFe="🗝️",yFe="🔨",EFe="🪓",SFe="⛏️",xFe="⚒️",TFe="🛠️",wFe="🗡️",CFe="⚔️",AFe="🔫",RFe="🪃",MFe="🏹",NFe="🛡️",kFe="🪚",IFe="🔧",OFe="🪛",DFe="🔩",LFe="⚙️",PFe="🗜️",FFe="⚖️",UFe="🦯",BFe="🔗",GFe="⛓️",zFe="🪝",VFe="🧰",HFe="🧲",qFe="🪜",YFe="⚗️",$Fe="🧪",WFe="🧫",KFe="🧬",jFe="🔬",QFe="🔭",XFe="📡",ZFe="💉",JFe="🩸",eUe="💊",tUe="🩹",nUe="🩺",rUe="🚪",iUe="🛗",sUe="🪞",oUe="🪟",aUe="🛏️",lUe="🛋️",cUe="🪑",dUe="🚽",uUe="🪠",pUe="🚿",hUe="🛁",mUe="🪤",fUe="🪒",gUe="🧴",_Ue="🧷",bUe="🧹",vUe="🧺",yUe="🧻",EUe="🪣",SUe="🧼",xUe="🪥",TUe="🧽",wUe="🧯",CUe="🛒",AUe="🚬",RUe="⚰️",MUe="🪦",NUe="⚱️",kUe="🗿",IUe="🪧",OUe="🏧",DUe="🚮",LUe="🚰",PUe="♿",FUe="🚹",UUe="🚺",BUe="🚻",GUe="🚼",zUe="🚾",VUe="🛂",HUe="🛃",qUe="🛄",YUe="🛅",$Ue="⚠️",WUe="🚸",KUe="⛔",jUe="🚫",QUe="🚳",XUe="🚭",ZUe="🚯",JUe="🚷",eBe="📵",tBe="🔞",nBe="☢️",rBe="☣️",iBe="⬆️",sBe="↗️",oBe="➡️",aBe="↘️",lBe="⬇️",cBe="↙️",dBe="⬅️",uBe="↖️",pBe="↕️",hBe="↔️",mBe="↩️",fBe="↪️",gBe="⤴️",_Be="⤵️",bBe="🔃",vBe="🔄",yBe="🔙",EBe="🔚",SBe="🔛",xBe="🔜",TBe="🔝",wBe="🛐",CBe="⚛️",ABe="🕉️",RBe="✡️",MBe="☸️",NBe="☯️",kBe="✝️",IBe="☦️",OBe="☪️",DBe="☮️",LBe="🕎",PBe="🔯",FBe="♈",UBe="♉",BBe="♊",GBe="♋",zBe="♌",VBe="♍",HBe="♎",qBe="♏",YBe="♐",$Be="♑",WBe="♒",KBe="♓",jBe="⛎",QBe="🔀",XBe="🔁",ZBe="🔂",JBe="▶️",eGe="⏩",tGe="⏭️",nGe="⏯️",rGe="◀️",iGe="⏪",sGe="⏮️",oGe="🔼",aGe="⏫",lGe="🔽",cGe="⏬",dGe="⏸️",uGe="⏹️",pGe="⏺️",hGe="⏏️",mGe="🎦",fGe="🔅",gGe="🔆",_Ge="📶",bGe="📳",vGe="📴",yGe="♀️",EGe="♂️",SGe="⚧️",xGe="✖️",TGe="➕",wGe="➖",CGe="➗",AGe="♾️",RGe="‼️",MGe="⁉️",NGe="❓",kGe="❔",IGe="❕",OGe="❗",DGe="❗",LGe="〰️",PGe="💱",FGe="💲",UGe="⚕️",BGe="♻️",GGe="⚜️",zGe="🔱",VGe="📛",HGe="🔰",qGe="⭕",YGe="✅",$Ge="☑️",WGe="✔️",KGe="❌",jGe="❎",QGe="➰",XGe="➿",ZGe="〽️",JGe="✳️",eze="✴️",tze="❇️",nze="©️",rze="®️",ize="™️",sze="#️⃣",oze="*️⃣",aze="0️⃣",lze="1️⃣",cze="2️⃣",dze="3️⃣",uze="4️⃣",pze="5️⃣",hze="6️⃣",mze="7️⃣",fze="8️⃣",gze="9️⃣",_ze="🔟",bze="🔠",vze="🔡",yze="🔣",Eze="🔤",Sze="🅰️",xze="🆎",Tze="🅱️",wze="🆑",Cze="🆒",Aze="🆓",Rze="ℹ️",Mze="🆔",Nze="Ⓜ️",kze="🆖",Ize="🅾️",Oze="🆗",Dze="🅿️",Lze="🆘",Pze="🆙",Fze="🆚",Uze="🈁",Bze="🈂️",Gze="🉐",zze="🉑",Vze="㊗️",Hze="㊙️",qze="🈵",Yze="🔴",$ze="🟠",Wze="🟡",Kze="🟢",jze="🔵",Qze="🟣",Xze="🟤",Zze="⚫",Jze="⚪",eVe="🟥",tVe="🟧",nVe="🟨",rVe="🟩",iVe="🟦",sVe="🟪",oVe="🟫",aVe="⬛",lVe="⬜",cVe="◼️",dVe="◻️",uVe="◾",pVe="◽",hVe="▪️",mVe="▫️",fVe="🔶",gVe="🔷",_Ve="🔸",bVe="🔹",vVe="🔺",yVe="🔻",EVe="💠",SVe="🔘",xVe="🔳",TVe="🔲",wVe="🏁",CVe="🚩",AVe="🎌",RVe="🏴",MVe="🏳️",NVe="🏳️‍🌈",kVe="🏳️‍⚧️",IVe="🏴‍☠️",OVe="🇦🇨",DVe="🇦🇩",LVe="🇦🇪",PVe="🇦🇫",FVe="🇦🇬",UVe="🇦🇮",BVe="🇦🇱",GVe="🇦🇲",zVe="🇦🇴",VVe="🇦🇶",HVe="🇦🇷",qVe="🇦🇸",YVe="🇦🇹",$Ve="🇦🇺",WVe="🇦🇼",KVe="🇦🇽",jVe="🇦🇿",QVe="🇧🇦",XVe="🇧🇧",ZVe="🇧🇩",JVe="🇧🇪",eHe="🇧🇫",tHe="🇧🇬",nHe="🇧🇭",rHe="🇧🇮",iHe="🇧🇯",sHe="🇧🇱",oHe="🇧🇲",aHe="🇧🇳",lHe="🇧🇴",cHe="🇧🇶",dHe="🇧🇷",uHe="🇧🇸",pHe="🇧🇹",hHe="🇧🇻",mHe="🇧🇼",fHe="🇧🇾",gHe="🇧🇿",_He="🇨🇦",bHe="🇨🇨",vHe="🇨🇩",yHe="🇨🇫",EHe="🇨🇬",SHe="🇨🇭",xHe="🇨🇮",THe="🇨🇰",wHe="🇨🇱",CHe="🇨🇲",AHe="🇨🇳",RHe="🇨🇴",MHe="🇨🇵",NHe="🇨🇷",kHe="🇨🇺",IHe="🇨🇻",OHe="🇨🇼",DHe="🇨🇽",LHe="🇨🇾",PHe="🇨🇿",FHe="🇩🇪",UHe="🇩🇬",BHe="🇩🇯",GHe="🇩🇰",zHe="🇩🇲",VHe="🇩🇴",HHe="🇩🇿",qHe="🇪🇦",YHe="🇪🇨",$He="🇪🇪",WHe="🇪🇬",KHe="🇪🇭",jHe="🇪🇷",QHe="🇪🇸",XHe="🇪🇹",ZHe="🇪🇺",JHe="🇪🇺",eqe="🇫🇮",tqe="🇫🇯",nqe="🇫🇰",rqe="🇫🇲",iqe="🇫🇴",sqe="🇫🇷",oqe="🇬🇦",aqe="🇬🇧",lqe="🇬🇧",cqe="🇬🇩",dqe="🇬🇪",uqe="🇬🇫",pqe="🇬🇬",hqe="🇬🇭",mqe="🇬🇮",fqe="🇬🇱",gqe="🇬🇲",_qe="🇬🇳",bqe="🇬🇵",vqe="🇬🇶",yqe="🇬🇷",Eqe="🇬🇸",Sqe="🇬🇹",xqe="🇬🇺",Tqe="🇬🇼",wqe="🇬🇾",Cqe="🇭🇰",Aqe="🇭🇲",Rqe="🇭🇳",Mqe="🇭🇷",Nqe="🇭🇹",kqe="🇭🇺",Iqe="🇮🇨",Oqe="🇮🇩",Dqe="🇮🇪",Lqe="🇮🇱",Pqe="🇮🇲",Fqe="🇮🇳",Uqe="🇮🇴",Bqe="🇮🇶",Gqe="🇮🇷",zqe="🇮🇸",Vqe="🇮🇹",Hqe="🇯🇪",qqe="🇯🇲",Yqe="🇯🇴",$qe="🇯🇵",Wqe="🇰🇪",Kqe="🇰🇬",jqe="🇰🇭",Qqe="🇰🇮",Xqe="🇰🇲",Zqe="🇰🇳",Jqe="🇰🇵",eYe="🇰🇷",tYe="🇰🇼",nYe="🇰🇾",rYe="🇰🇿",iYe="🇱🇦",sYe="🇱🇧",oYe="🇱🇨",aYe="🇱🇮",lYe="🇱🇰",cYe="🇱🇷",dYe="🇱🇸",uYe="🇱🇹",pYe="🇱🇺",hYe="🇱🇻",mYe="🇱🇾",fYe="🇲🇦",gYe="🇲🇨",_Ye="🇲🇩",bYe="🇲🇪",vYe="🇲🇫",yYe="🇲🇬",EYe="🇲🇭",SYe="🇲🇰",xYe="🇲🇱",TYe="🇲🇲",wYe="🇲🇳",CYe="🇲🇴",AYe="🇲🇵",RYe="🇲🇶",MYe="🇲🇷",NYe="🇲🇸",kYe="🇲🇹",IYe="🇲🇺",OYe="🇲🇻",DYe="🇲🇼",LYe="🇲🇽",PYe="🇲🇾",FYe="🇲🇿",UYe="🇳🇦",BYe="🇳🇨",GYe="🇳🇪",zYe="🇳🇫",VYe="🇳🇬",HYe="🇳🇮",qYe="🇳🇱",YYe="🇳🇴",$Ye="🇳🇵",WYe="🇳🇷",KYe="🇳🇺",jYe="🇳🇿",QYe="🇴🇲",XYe="🇵🇦",ZYe="🇵🇪",JYe="🇵🇫",e$e="🇵🇬",t$e="🇵🇭",n$e="🇵🇰",r$e="🇵🇱",i$e="🇵🇲",s$e="🇵🇳",o$e="🇵🇷",a$e="🇵🇸",l$e="🇵🇹",c$e="🇵🇼",d$e="🇵🇾",u$e="🇶🇦",p$e="🇷🇪",h$e="🇷🇴",m$e="🇷🇸",f$e="🇷🇺",g$e="🇷🇼",_$e="🇸🇦",b$e="🇸🇧",v$e="🇸🇨",y$e="🇸🇩",E$e="🇸🇪",S$e="🇸🇬",x$e="🇸🇭",T$e="🇸🇮",w$e="🇸🇯",C$e="🇸🇰",A$e="🇸🇱",R$e="🇸🇲",M$e="🇸🇳",N$e="🇸🇴",k$e="🇸🇷",I$e="🇸🇸",O$e="🇸🇹",D$e="🇸🇻",L$e="🇸🇽",P$e="🇸🇾",F$e="🇸🇿",U$e="🇹🇦",B$e="🇹🇨",G$e="🇹🇩",z$e="🇹🇫",V$e="🇹🇬",H$e="🇹🇭",q$e="🇹🇯",Y$e="🇹🇰",$$e="🇹🇱",W$e="🇹🇲",K$e="🇹🇳",j$e="🇹🇴",Q$e="🇹🇷",X$e="🇹🇹",Z$e="🇹🇻",J$e="🇹🇼",eWe="🇹🇿",tWe="🇺🇦",nWe="🇺🇬",rWe="🇺🇲",iWe="🇺🇳",sWe="🇺🇸",oWe="🇺🇾",aWe="🇺🇿",lWe="🇻🇦",cWe="🇻🇨",dWe="🇻🇪",uWe="🇻🇬",pWe="🇻🇮",hWe="🇻🇳",mWe="🇻🇺",fWe="🇼🇫",gWe="🇼🇸",_We="🇽🇰",bWe="🇾🇪",vWe="🇾🇹",yWe="🇿🇦",EWe="🇿🇲",SWe="🇿🇼",xWe="🏴󠁧󠁢󠁥󠁮󠁧󠁿",TWe="🏴󠁧󠁢󠁳󠁣󠁴󠁿",wWe="🏴󠁧󠁢󠁷󠁬󠁳󠁿",CWe={100:"💯",1234:"🔢",grinning:FEe,smiley:UEe,smile:BEe,grin:GEe,laughing:zEe,satisfied:VEe,sweat_smile:HEe,rofl:qEe,joy:YEe,slightly_smiling_face:$Ee,upside_down_face:WEe,wink:KEe,blush:jEe,innocent:QEe,smiling_face_with_three_hearts:XEe,heart_eyes:ZEe,star_struck:JEe,kissing_heart:eSe,kissing:tSe,relaxed:nSe,kissing_closed_eyes:rSe,kissing_smiling_eyes:iSe,smiling_face_with_tear:sSe,yum:oSe,stuck_out_tongue:aSe,stuck_out_tongue_winking_eye:lSe,zany_face:cSe,stuck_out_tongue_closed_eyes:dSe,money_mouth_face:uSe,hugs:pSe,hand_over_mouth:hSe,shushing_face:mSe,thinking:fSe,zipper_mouth_face:gSe,raised_eyebrow:_Se,neutral_face:bSe,expressionless:vSe,no_mouth:ySe,smirk:ESe,unamused:SSe,roll_eyes:xSe,grimacing:TSe,lying_face:wSe,relieved:CSe,pensive:ASe,sleepy:RSe,drooling_face:MSe,sleeping:NSe,mask:kSe,face_with_thermometer:ISe,face_with_head_bandage:OSe,nauseated_face:DSe,vomiting_face:LSe,sneezing_face:PSe,hot_face:FSe,cold_face:USe,woozy_face:BSe,dizzy_face:GSe,exploding_head:zSe,cowboy_hat_face:VSe,partying_face:HSe,disguised_face:qSe,sunglasses:YSe,nerd_face:$Se,monocle_face:WSe,confused:KSe,worried:jSe,slightly_frowning_face:QSe,frowning_face:XSe,open_mouth:ZSe,hushed:JSe,astonished:e2e,flushed:t2e,pleading_face:n2e,frowning:r2e,anguished:i2e,fearful:s2e,cold_sweat:o2e,disappointed_relieved:a2e,cry:l2e,sob:c2e,scream:d2e,confounded:u2e,persevere:p2e,disappointed:h2e,sweat:m2e,weary:f2e,tired_face:g2e,yawning_face:_2e,triumph:b2e,rage:v2e,pout:y2e,angry:E2e,cursing_face:S2e,smiling_imp:x2e,imp:T2e,skull:w2e,skull_and_crossbones:C2e,hankey:A2e,poop:R2e,shit:M2e,clown_face:N2e,japanese_ogre:k2e,japanese_goblin:I2e,ghost:O2e,alien:D2e,space_invader:L2e,robot:P2e,smiley_cat:F2e,smile_cat:U2e,joy_cat:B2e,heart_eyes_cat:G2e,smirk_cat:z2e,kissing_cat:V2e,scream_cat:H2e,crying_cat_face:q2e,pouting_cat:Y2e,see_no_evil:$2e,hear_no_evil:W2e,speak_no_evil:K2e,kiss:j2e,love_letter:Q2e,cupid:X2e,gift_heart:Z2e,sparkling_heart:J2e,heartpulse:exe,heartbeat:txe,revolving_hearts:nxe,two_hearts:rxe,heart_decoration:ixe,heavy_heart_exclamation:sxe,broken_heart:oxe,heart:axe,orange_heart:lxe,yellow_heart:cxe,green_heart:dxe,blue_heart:uxe,purple_heart:pxe,brown_heart:hxe,black_heart:mxe,white_heart:fxe,anger:gxe,boom:_xe,collision:bxe,dizzy:vxe,sweat_drops:yxe,dash:Exe,hole:Sxe,bomb:xxe,speech_balloon:Txe,eye_speech_bubble:wxe,left_speech_bubble:Cxe,right_anger_bubble:Axe,thought_balloon:Rxe,zzz:Mxe,wave:Nxe,raised_back_of_hand:kxe,raised_hand_with_fingers_splayed:Ixe,hand:Oxe,raised_hand:Dxe,vulcan_salute:Lxe,ok_hand:Pxe,pinched_fingers:Fxe,pinching_hand:Uxe,v:Bxe,crossed_fingers:Gxe,love_you_gesture:zxe,metal:Vxe,call_me_hand:Hxe,point_left:qxe,point_right:Yxe,point_up_2:$xe,middle_finger:Wxe,fu:Kxe,point_down:jxe,point_up:Qxe,"+1":"👍",thumbsup:Xxe,"-1":"👎",thumbsdown:Zxe,fist_raised:Jxe,fist:eTe,fist_oncoming:tTe,facepunch:nTe,punch:rTe,fist_left:iTe,fist_right:sTe,clap:oTe,raised_hands:aTe,open_hands:lTe,palms_up_together:cTe,handshake:dTe,pray:uTe,writing_hand:pTe,nail_care:hTe,selfie:mTe,muscle:fTe,mechanical_arm:gTe,mechanical_leg:_Te,leg:bTe,foot:vTe,ear:yTe,ear_with_hearing_aid:ETe,nose:STe,brain:xTe,anatomical_heart:TTe,lungs:wTe,tooth:CTe,bone:ATe,eyes:RTe,eye:MTe,tongue:NTe,lips:kTe,baby:ITe,child:OTe,boy:DTe,girl:LTe,adult:PTe,blond_haired_person:FTe,man:UTe,bearded_person:BTe,red_haired_man:GTe,curly_haired_man:zTe,white_haired_man:VTe,bald_man:HTe,woman:qTe,red_haired_woman:YTe,person_red_hair:$Te,curly_haired_woman:WTe,person_curly_hair:KTe,white_haired_woman:jTe,person_white_hair:QTe,bald_woman:XTe,person_bald:ZTe,blond_haired_woman:JTe,blonde_woman:ewe,blond_haired_man:twe,older_adult:nwe,older_man:rwe,older_woman:iwe,frowning_person:swe,frowning_man:owe,frowning_woman:awe,pouting_face:lwe,pouting_man:cwe,pouting_woman:dwe,no_good:uwe,no_good_man:pwe,ng_man:hwe,no_good_woman:mwe,ng_woman:fwe,ok_person:gwe,ok_man:_we,ok_woman:bwe,tipping_hand_person:vwe,information_desk_person:ywe,tipping_hand_man:Ewe,sassy_man:Swe,tipping_hand_woman:xwe,sassy_woman:Twe,raising_hand:wwe,raising_hand_man:Cwe,raising_hand_woman:Awe,deaf_person:Rwe,deaf_man:Mwe,deaf_woman:Nwe,bow:kwe,bowing_man:Iwe,bowing_woman:Owe,facepalm:Dwe,man_facepalming:Lwe,woman_facepalming:Pwe,shrug:Fwe,man_shrugging:Uwe,woman_shrugging:Bwe,health_worker:Gwe,man_health_worker:zwe,woman_health_worker:Vwe,student:Hwe,man_student:qwe,woman_student:Ywe,teacher:$we,man_teacher:Wwe,woman_teacher:Kwe,judge:jwe,man_judge:Qwe,woman_judge:Xwe,farmer:Zwe,man_farmer:Jwe,woman_farmer:eCe,cook:tCe,man_cook:nCe,woman_cook:rCe,mechanic:iCe,man_mechanic:sCe,woman_mechanic:oCe,factory_worker:aCe,man_factory_worker:lCe,woman_factory_worker:cCe,office_worker:dCe,man_office_worker:uCe,woman_office_worker:pCe,scientist:hCe,man_scientist:mCe,woman_scientist:fCe,technologist:gCe,man_technologist:_Ce,woman_technologist:bCe,singer:vCe,man_singer:yCe,woman_singer:ECe,artist:SCe,man_artist:xCe,woman_artist:TCe,pilot:wCe,man_pilot:CCe,woman_pilot:ACe,astronaut:RCe,man_astronaut:MCe,woman_astronaut:NCe,firefighter:kCe,man_firefighter:ICe,woman_firefighter:OCe,police_officer:DCe,cop:LCe,policeman:PCe,policewoman:FCe,detective:UCe,male_detective:BCe,female_detective:GCe,guard:zCe,guardsman:VCe,guardswoman:HCe,ninja:qCe,construction_worker:YCe,construction_worker_man:$Ce,construction_worker_woman:WCe,prince:KCe,princess:jCe,person_with_turban:QCe,man_with_turban:XCe,woman_with_turban:ZCe,man_with_gua_pi_mao:JCe,woman_with_headscarf:eAe,person_in_tuxedo:tAe,man_in_tuxedo:nAe,woman_in_tuxedo:rAe,person_with_veil:iAe,man_with_veil:sAe,woman_with_veil:oAe,bride_with_veil:aAe,pregnant_woman:lAe,breast_feeding:cAe,woman_feeding_baby:dAe,man_feeding_baby:uAe,person_feeding_baby:pAe,angel:hAe,santa:mAe,mrs_claus:fAe,mx_claus:gAe,superhero:_Ae,superhero_man:bAe,superhero_woman:vAe,supervillain:yAe,supervillain_man:EAe,supervillain_woman:SAe,mage:xAe,mage_man:TAe,mage_woman:wAe,fairy:CAe,fairy_man:AAe,fairy_woman:RAe,vampire:MAe,vampire_man:NAe,vampire_woman:kAe,merperson:IAe,merman:OAe,mermaid:DAe,elf:LAe,elf_man:PAe,elf_woman:FAe,genie:UAe,genie_man:BAe,genie_woman:GAe,zombie:zAe,zombie_man:VAe,zombie_woman:HAe,massage:qAe,massage_man:YAe,massage_woman:$Ae,haircut:WAe,haircut_man:KAe,haircut_woman:jAe,walking:QAe,walking_man:XAe,walking_woman:ZAe,standing_person:JAe,standing_man:eRe,standing_woman:tRe,kneeling_person:nRe,kneeling_man:rRe,kneeling_woman:iRe,person_with_probing_cane:sRe,man_with_probing_cane:oRe,woman_with_probing_cane:aRe,person_in_motorized_wheelchair:lRe,man_in_motorized_wheelchair:cRe,woman_in_motorized_wheelchair:dRe,person_in_manual_wheelchair:uRe,man_in_manual_wheelchair:pRe,woman_in_manual_wheelchair:hRe,runner:mRe,running:fRe,running_man:gRe,running_woman:_Re,woman_dancing:bRe,dancer:vRe,man_dancing:yRe,business_suit_levitating:ERe,dancers:SRe,dancing_men:xRe,dancing_women:TRe,sauna_person:wRe,sauna_man:CRe,sauna_woman:ARe,climbing:RRe,climbing_man:MRe,climbing_woman:NRe,person_fencing:kRe,horse_racing:IRe,skier:ORe,snowboarder:DRe,golfing:LRe,golfing_man:PRe,golfing_woman:FRe,surfer:URe,surfing_man:BRe,surfing_woman:GRe,rowboat:zRe,rowing_man:VRe,rowing_woman:HRe,swimmer:qRe,swimming_man:YRe,swimming_woman:$Re,bouncing_ball_person:WRe,bouncing_ball_man:KRe,basketball_man:jRe,bouncing_ball_woman:QRe,basketball_woman:XRe,weight_lifting:ZRe,weight_lifting_man:JRe,weight_lifting_woman:eMe,bicyclist:tMe,biking_man:nMe,biking_woman:rMe,mountain_bicyclist:iMe,mountain_biking_man:sMe,mountain_biking_woman:oMe,cartwheeling:aMe,man_cartwheeling:lMe,woman_cartwheeling:cMe,wrestling:dMe,men_wrestling:uMe,women_wrestling:pMe,water_polo:hMe,man_playing_water_polo:mMe,woman_playing_water_polo:fMe,handball_person:gMe,man_playing_handball:_Me,woman_playing_handball:bMe,juggling_person:vMe,man_juggling:yMe,woman_juggling:EMe,lotus_position:SMe,lotus_position_man:xMe,lotus_position_woman:TMe,bath:wMe,sleeping_bed:CMe,people_holding_hands:AMe,two_women_holding_hands:RMe,couple:MMe,two_men_holding_hands:NMe,couplekiss:kMe,couplekiss_man_woman:IMe,couplekiss_man_man:OMe,couplekiss_woman_woman:DMe,couple_with_heart:LMe,couple_with_heart_woman_man:PMe,couple_with_heart_man_man:FMe,couple_with_heart_woman_woman:UMe,family:BMe,family_man_woman_boy:GMe,family_man_woman_girl:zMe,family_man_woman_girl_boy:VMe,family_man_woman_boy_boy:HMe,family_man_woman_girl_girl:qMe,family_man_man_boy:YMe,family_man_man_girl:$Me,family_man_man_girl_boy:WMe,family_man_man_boy_boy:KMe,family_man_man_girl_girl:jMe,family_woman_woman_boy:QMe,family_woman_woman_girl:XMe,family_woman_woman_girl_boy:ZMe,family_woman_woman_boy_boy:JMe,family_woman_woman_girl_girl:e4e,family_man_boy:t4e,family_man_boy_boy:n4e,family_man_girl:r4e,family_man_girl_boy:i4e,family_man_girl_girl:s4e,family_woman_boy:o4e,family_woman_boy_boy:a4e,family_woman_girl:l4e,family_woman_girl_boy:c4e,family_woman_girl_girl:d4e,speaking_head:u4e,bust_in_silhouette:p4e,busts_in_silhouette:h4e,people_hugging:m4e,footprints:f4e,monkey_face:g4e,monkey:_4e,gorilla:b4e,orangutan:v4e,dog:y4e,dog2:E4e,guide_dog:S4e,service_dog:x4e,poodle:T4e,wolf:w4e,fox_face:C4e,raccoon:A4e,cat:R4e,cat2:M4e,black_cat:N4e,lion:k4e,tiger:I4e,tiger2:O4e,leopard:D4e,horse:L4e,racehorse:P4e,unicorn:F4e,zebra:U4e,deer:B4e,bison:G4e,cow:z4e,ox:V4e,water_buffalo:H4e,cow2:q4e,pig:Y4e,pig2:$4e,boar:W4e,pig_nose:K4e,ram:j4e,sheep:Q4e,goat:X4e,dromedary_camel:Z4e,camel:J4e,llama:e3e,giraffe:t3e,elephant:n3e,mammoth:r3e,rhinoceros:i3e,hippopotamus:s3e,mouse:o3e,mouse2:a3e,rat:l3e,hamster:c3e,rabbit:d3e,rabbit2:u3e,chipmunk:p3e,beaver:h3e,hedgehog:m3e,bat:f3e,bear:g3e,polar_bear:_3e,koala:b3e,panda_face:v3e,sloth:y3e,otter:E3e,skunk:S3e,kangaroo:x3e,badger:T3e,feet:w3e,paw_prints:C3e,turkey:A3e,chicken:R3e,rooster:M3e,hatching_chick:N3e,baby_chick:k3e,hatched_chick:I3e,bird:O3e,penguin:D3e,dove:L3e,eagle:P3e,duck:F3e,swan:U3e,owl:B3e,dodo:G3e,feather:z3e,flamingo:V3e,peacock:H3e,parrot:q3e,frog:Y3e,crocodile:$3e,turtle:W3e,lizard:K3e,snake:j3e,dragon_face:Q3e,dragon:X3e,sauropod:Z3e,"t-rex":"🦖",whale:J3e,whale2:eNe,dolphin:tNe,flipper:nNe,seal:rNe,fish:iNe,tropical_fish:sNe,blowfish:oNe,shark:aNe,octopus:lNe,shell:cNe,snail:dNe,butterfly:uNe,bug:pNe,ant:hNe,bee:mNe,honeybee:fNe,beetle:gNe,lady_beetle:_Ne,cricket:bNe,cockroach:vNe,spider:yNe,spider_web:ENe,scorpion:SNe,mosquito:xNe,fly:TNe,worm:wNe,microbe:CNe,bouquet:ANe,cherry_blossom:RNe,white_flower:MNe,rosette:NNe,rose:kNe,wilted_flower:INe,hibiscus:ONe,sunflower:DNe,blossom:LNe,tulip:PNe,seedling:FNe,potted_plant:UNe,evergreen_tree:BNe,deciduous_tree:GNe,palm_tree:zNe,cactus:VNe,ear_of_rice:HNe,herb:qNe,shamrock:YNe,four_leaf_clover:$Ne,maple_leaf:WNe,fallen_leaf:KNe,leaves:jNe,grapes:QNe,melon:XNe,watermelon:ZNe,tangerine:JNe,orange:eke,mandarin:tke,lemon:nke,banana:rke,pineapple:ike,mango:ske,apple:oke,green_apple:ake,pear:lke,peach:cke,cherries:dke,strawberry:uke,blueberries:pke,kiwi_fruit:hke,tomato:mke,olive:fke,coconut:gke,avocado:_ke,eggplant:bke,potato:vke,carrot:yke,corn:Eke,hot_pepper:Ske,bell_pepper:xke,cucumber:Tke,leafy_green:wke,broccoli:Cke,garlic:Ake,onion:Rke,mushroom:Mke,peanuts:Nke,chestnut:kke,bread:Ike,croissant:Oke,baguette_bread:Dke,flatbread:Lke,pretzel:Pke,bagel:Fke,pancakes:Uke,waffle:Bke,cheese:Gke,meat_on_bone:zke,poultry_leg:Vke,cut_of_meat:Hke,bacon:qke,hamburger:Yke,fries:$ke,pizza:Wke,hotdog:Kke,sandwich:jke,taco:Qke,burrito:Xke,tamale:Zke,stuffed_flatbread:Jke,falafel:eIe,egg:tIe,fried_egg:nIe,shallow_pan_of_food:rIe,stew:iIe,fondue:sIe,bowl_with_spoon:oIe,green_salad:aIe,popcorn:lIe,butter:cIe,salt:dIe,canned_food:uIe,bento:pIe,rice_cracker:hIe,rice_ball:mIe,rice:fIe,curry:gIe,ramen:_Ie,spaghetti:bIe,sweet_potato:vIe,oden:yIe,sushi:EIe,fried_shrimp:SIe,fish_cake:xIe,moon_cake:TIe,dango:wIe,dumpling:CIe,fortune_cookie:AIe,takeout_box:RIe,crab:MIe,lobster:NIe,shrimp:kIe,squid:IIe,oyster:OIe,icecream:DIe,shaved_ice:LIe,ice_cream:PIe,doughnut:FIe,cookie:UIe,birthday:BIe,cake:GIe,cupcake:zIe,pie:VIe,chocolate_bar:HIe,candy:qIe,lollipop:YIe,custard:$Ie,honey_pot:WIe,baby_bottle:KIe,milk_glass:jIe,coffee:QIe,teapot:XIe,tea:ZIe,sake:JIe,champagne:eOe,wine_glass:tOe,cocktail:nOe,tropical_drink:rOe,beer:iOe,beers:sOe,clinking_glasses:oOe,tumbler_glass:aOe,cup_with_straw:lOe,bubble_tea:cOe,beverage_box:dOe,mate:uOe,ice_cube:pOe,chopsticks:hOe,plate_with_cutlery:mOe,fork_and_knife:fOe,spoon:gOe,hocho:_Oe,knife:bOe,amphora:vOe,earth_africa:yOe,earth_americas:EOe,earth_asia:SOe,globe_with_meridians:xOe,world_map:TOe,japan:wOe,compass:COe,mountain_snow:AOe,mountain:ROe,volcano:MOe,mount_fuji:NOe,camping:kOe,beach_umbrella:IOe,desert:OOe,desert_island:DOe,national_park:LOe,stadium:POe,classical_building:FOe,building_construction:UOe,bricks:BOe,rock:GOe,wood:zOe,hut:VOe,houses:HOe,derelict_house:qOe,house:YOe,house_with_garden:$Oe,office:WOe,post_office:KOe,european_post_office:jOe,hospital:QOe,bank:XOe,hotel:ZOe,love_hotel:JOe,convenience_store:e5e,school:t5e,department_store:n5e,factory:r5e,japanese_castle:i5e,european_castle:s5e,wedding:o5e,tokyo_tower:a5e,statue_of_liberty:l5e,church:c5e,mosque:d5e,hindu_temple:u5e,synagogue:p5e,shinto_shrine:h5e,kaaba:m5e,fountain:f5e,tent:g5e,foggy:_5e,night_with_stars:b5e,cityscape:v5e,sunrise_over_mountains:y5e,sunrise:E5e,city_sunset:S5e,city_sunrise:x5e,bridge_at_night:T5e,hotsprings:w5e,carousel_horse:C5e,ferris_wheel:A5e,roller_coaster:R5e,barber:M5e,circus_tent:N5e,steam_locomotive:k5e,railway_car:I5e,bullettrain_side:O5e,bullettrain_front:D5e,train2:L5e,metro:P5e,light_rail:F5e,station:U5e,tram:B5e,monorail:G5e,mountain_railway:z5e,train:V5e,bus:H5e,oncoming_bus:q5e,trolleybus:Y5e,minibus:$5e,ambulance:W5e,fire_engine:K5e,police_car:j5e,oncoming_police_car:Q5e,taxi:X5e,oncoming_taxi:Z5e,car:J5e,red_car:eDe,oncoming_automobile:tDe,blue_car:nDe,pickup_truck:rDe,truck:iDe,articulated_lorry:sDe,tractor:oDe,racing_car:aDe,motorcycle:lDe,motor_scooter:cDe,manual_wheelchair:dDe,motorized_wheelchair:uDe,auto_rickshaw:pDe,bike:hDe,kick_scooter:mDe,skateboard:fDe,roller_skate:gDe,busstop:_De,motorway:bDe,railway_track:vDe,oil_drum:yDe,fuelpump:EDe,rotating_light:SDe,traffic_light:xDe,vertical_traffic_light:TDe,stop_sign:wDe,construction:CDe,anchor:ADe,boat:RDe,sailboat:MDe,canoe:NDe,speedboat:kDe,passenger_ship:IDe,ferry:ODe,motor_boat:DDe,ship:LDe,airplane:PDe,small_airplane:FDe,flight_departure:UDe,flight_arrival:BDe,parachute:GDe,seat:zDe,helicopter:VDe,suspension_railway:HDe,mountain_cableway:qDe,aerial_tramway:YDe,artificial_satellite:$De,rocket:WDe,flying_saucer:KDe,bellhop_bell:jDe,luggage:QDe,hourglass:XDe,hourglass_flowing_sand:ZDe,watch:JDe,alarm_clock:eLe,stopwatch:tLe,timer_clock:nLe,mantelpiece_clock:rLe,clock12:iLe,clock1230:sLe,clock1:oLe,clock130:aLe,clock2:lLe,clock230:cLe,clock3:dLe,clock330:uLe,clock4:pLe,clock430:hLe,clock5:mLe,clock530:fLe,clock6:gLe,clock630:_Le,clock7:bLe,clock730:vLe,clock8:yLe,clock830:ELe,clock9:SLe,clock930:xLe,clock10:TLe,clock1030:wLe,clock11:CLe,clock1130:ALe,new_moon:RLe,waxing_crescent_moon:MLe,first_quarter_moon:NLe,moon:kLe,waxing_gibbous_moon:ILe,full_moon:OLe,waning_gibbous_moon:DLe,last_quarter_moon:LLe,waning_crescent_moon:PLe,crescent_moon:FLe,new_moon_with_face:ULe,first_quarter_moon_with_face:BLe,last_quarter_moon_with_face:GLe,thermometer:zLe,sunny:VLe,full_moon_with_face:HLe,sun_with_face:qLe,ringed_planet:YLe,star:$Le,star2:WLe,stars:KLe,milky_way:jLe,cloud:QLe,partly_sunny:XLe,cloud_with_lightning_and_rain:ZLe,sun_behind_small_cloud:JLe,sun_behind_large_cloud:e6e,sun_behind_rain_cloud:t6e,cloud_with_rain:n6e,cloud_with_snow:r6e,cloud_with_lightning:i6e,tornado:s6e,fog:o6e,wind_face:a6e,cyclone:l6e,rainbow:c6e,closed_umbrella:d6e,open_umbrella:u6e,umbrella:p6e,parasol_on_ground:h6e,zap:m6e,snowflake:f6e,snowman_with_snow:g6e,snowman:_6e,comet:b6e,fire:v6e,droplet:y6e,ocean:E6e,jack_o_lantern:S6e,christmas_tree:x6e,fireworks:T6e,sparkler:w6e,firecracker:C6e,sparkles:A6e,balloon:R6e,tada:M6e,confetti_ball:N6e,tanabata_tree:k6e,bamboo:I6e,dolls:O6e,flags:D6e,wind_chime:L6e,rice_scene:P6e,red_envelope:F6e,ribbon:U6e,gift:B6e,reminder_ribbon:G6e,tickets:z6e,ticket:V6e,medal_military:H6e,trophy:q6e,medal_sports:Y6e,"1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉",soccer:$6e,baseball:W6e,softball:K6e,basketball:j6e,volleyball:Q6e,football:X6e,rugby_football:Z6e,tennis:J6e,flying_disc:ePe,bowling:tPe,cricket_game:nPe,field_hockey:rPe,ice_hockey:iPe,lacrosse:sPe,ping_pong:oPe,badminton:aPe,boxing_glove:lPe,martial_arts_uniform:cPe,goal_net:dPe,golf:uPe,ice_skate:pPe,fishing_pole_and_fish:hPe,diving_mask:mPe,running_shirt_with_sash:fPe,ski:gPe,sled:_Pe,curling_stone:bPe,dart:vPe,yo_yo:yPe,kite:EPe,"8ball":"🎱",crystal_ball:SPe,magic_wand:xPe,nazar_amulet:TPe,video_game:wPe,joystick:CPe,slot_machine:APe,game_die:RPe,jigsaw:MPe,teddy_bear:NPe,pinata:kPe,nesting_dolls:IPe,spades:OPe,hearts:DPe,diamonds:LPe,clubs:PPe,chess_pawn:FPe,black_joker:UPe,mahjong:BPe,flower_playing_cards:GPe,performing_arts:zPe,framed_picture:VPe,art:HPe,thread:qPe,sewing_needle:YPe,yarn:$Pe,knot:WPe,eyeglasses:KPe,dark_sunglasses:jPe,goggles:QPe,lab_coat:XPe,safety_vest:ZPe,necktie:JPe,shirt:e7e,tshirt:t7e,jeans:n7e,scarf:r7e,gloves:i7e,coat:s7e,socks:o7e,dress:a7e,kimono:l7e,sari:c7e,one_piece_swimsuit:d7e,swim_brief:u7e,shorts:p7e,bikini:h7e,womans_clothes:m7e,purse:f7e,handbag:g7e,pouch:_7e,shopping:b7e,school_satchel:v7e,thong_sandal:y7e,mans_shoe:E7e,shoe:S7e,athletic_shoe:x7e,hiking_boot:T7e,flat_shoe:w7e,high_heel:C7e,sandal:A7e,ballet_shoes:R7e,boot:M7e,crown:N7e,womans_hat:k7e,tophat:I7e,mortar_board:O7e,billed_cap:D7e,military_helmet:L7e,rescue_worker_helmet:P7e,prayer_beads:F7e,lipstick:U7e,ring:B7e,gem:G7e,mute:z7e,speaker:V7e,sound:H7e,loud_sound:q7e,loudspeaker:Y7e,mega:$7e,postal_horn:W7e,bell:K7e,no_bell:j7e,musical_score:Q7e,musical_note:X7e,notes:Z7e,studio_microphone:J7e,level_slider:e8e,control_knobs:t8e,microphone:n8e,headphones:r8e,radio:i8e,saxophone:s8e,accordion:o8e,guitar:a8e,musical_keyboard:l8e,trumpet:c8e,violin:d8e,banjo:u8e,drum:p8e,long_drum:h8e,iphone:m8e,calling:f8e,phone:g8e,telephone:_8e,telephone_receiver:b8e,pager:v8e,fax:y8e,battery:E8e,electric_plug:S8e,computer:x8e,desktop_computer:T8e,printer:w8e,keyboard:C8e,computer_mouse:A8e,trackball:R8e,minidisc:M8e,floppy_disk:N8e,cd:k8e,dvd:I8e,abacus:O8e,movie_camera:D8e,film_strip:L8e,film_projector:P8e,clapper:F8e,tv:U8e,camera:B8e,camera_flash:G8e,video_camera:z8e,vhs:V8e,mag:H8e,mag_right:q8e,candle:Y8e,bulb:$8e,flashlight:W8e,izakaya_lantern:K8e,lantern:j8e,diya_lamp:Q8e,notebook_with_decorative_cover:X8e,closed_book:Z8e,book:J8e,open_book:e9e,green_book:t9e,blue_book:n9e,orange_book:r9e,books:i9e,notebook:s9e,ledger:o9e,page_with_curl:a9e,scroll:l9e,page_facing_up:c9e,newspaper:d9e,newspaper_roll:u9e,bookmark_tabs:p9e,bookmark:h9e,label:m9e,moneybag:f9e,coin:g9e,yen:_9e,dollar:b9e,euro:v9e,pound:y9e,money_with_wings:E9e,credit_card:S9e,receipt:x9e,chart:T9e,envelope:w9e,email:C9e,"e-mail":"📧",incoming_envelope:A9e,envelope_with_arrow:R9e,outbox_tray:M9e,inbox_tray:N9e,package:"📦",mailbox:k9e,mailbox_closed:I9e,mailbox_with_mail:O9e,mailbox_with_no_mail:D9e,postbox:L9e,ballot_box:P9e,pencil2:F9e,black_nib:U9e,fountain_pen:B9e,pen:G9e,paintbrush:z9e,crayon:V9e,memo:H9e,pencil:q9e,briefcase:Y9e,file_folder:$9e,open_file_folder:W9e,card_index_dividers:K9e,date:j9e,calendar:Q9e,spiral_notepad:X9e,spiral_calendar:Z9e,card_index:J9e,chart_with_upwards_trend:eFe,chart_with_downwards_trend:tFe,bar_chart:nFe,clipboard:rFe,pushpin:iFe,round_pushpin:sFe,paperclip:oFe,paperclips:aFe,straight_ruler:lFe,triangular_ruler:cFe,scissors:dFe,card_file_box:uFe,file_cabinet:pFe,wastebasket:hFe,lock:mFe,unlock:fFe,lock_with_ink_pen:gFe,closed_lock_with_key:_Fe,key:bFe,old_key:vFe,hammer:yFe,axe:EFe,pick:SFe,hammer_and_pick:xFe,hammer_and_wrench:TFe,dagger:wFe,crossed_swords:CFe,gun:AFe,boomerang:RFe,bow_and_arrow:MFe,shield:NFe,carpentry_saw:kFe,wrench:IFe,screwdriver:OFe,nut_and_bolt:DFe,gear:LFe,clamp:PFe,balance_scale:FFe,probing_cane:UFe,link:BFe,chains:GFe,hook:zFe,toolbox:VFe,magnet:HFe,ladder:qFe,alembic:YFe,test_tube:$Fe,petri_dish:WFe,dna:KFe,microscope:jFe,telescope:QFe,satellite:XFe,syringe:ZFe,drop_of_blood:JFe,pill:eUe,adhesive_bandage:tUe,stethoscope:nUe,door:rUe,elevator:iUe,mirror:sUe,window:oUe,bed:aUe,couch_and_lamp:lUe,chair:cUe,toilet:dUe,plunger:uUe,shower:pUe,bathtub:hUe,mouse_trap:mUe,razor:fUe,lotion_bottle:gUe,safety_pin:_Ue,broom:bUe,basket:vUe,roll_of_paper:yUe,bucket:EUe,soap:SUe,toothbrush:xUe,sponge:TUe,fire_extinguisher:wUe,shopping_cart:CUe,smoking:AUe,coffin:RUe,headstone:MUe,funeral_urn:NUe,moyai:kUe,placard:IUe,atm:OUe,put_litter_in_its_place:DUe,potable_water:LUe,wheelchair:PUe,mens:FUe,womens:UUe,restroom:BUe,baby_symbol:GUe,wc:zUe,passport_control:VUe,customs:HUe,baggage_claim:qUe,left_luggage:YUe,warning:$Ue,children_crossing:WUe,no_entry:KUe,no_entry_sign:jUe,no_bicycles:QUe,no_smoking:XUe,do_not_litter:ZUe,"non-potable_water":"🚱",no_pedestrians:JUe,no_mobile_phones:eBe,underage:tBe,radioactive:nBe,biohazard:rBe,arrow_up:iBe,arrow_upper_right:sBe,arrow_right:oBe,arrow_lower_right:aBe,arrow_down:lBe,arrow_lower_left:cBe,arrow_left:dBe,arrow_upper_left:uBe,arrow_up_down:pBe,left_right_arrow:hBe,leftwards_arrow_with_hook:mBe,arrow_right_hook:fBe,arrow_heading_up:gBe,arrow_heading_down:_Be,arrows_clockwise:bBe,arrows_counterclockwise:vBe,back:yBe,end:EBe,on:SBe,soon:xBe,top:TBe,place_of_worship:wBe,atom_symbol:CBe,om:ABe,star_of_david:RBe,wheel_of_dharma:MBe,yin_yang:NBe,latin_cross:kBe,orthodox_cross:IBe,star_and_crescent:OBe,peace_symbol:DBe,menorah:LBe,six_pointed_star:PBe,aries:FBe,taurus:UBe,gemini:BBe,cancer:GBe,leo:zBe,virgo:VBe,libra:HBe,scorpius:qBe,sagittarius:YBe,capricorn:$Be,aquarius:WBe,pisces:KBe,ophiuchus:jBe,twisted_rightwards_arrows:QBe,repeat:XBe,repeat_one:ZBe,arrow_forward:JBe,fast_forward:eGe,next_track_button:tGe,play_or_pause_button:nGe,arrow_backward:rGe,rewind:iGe,previous_track_button:sGe,arrow_up_small:oGe,arrow_double_up:aGe,arrow_down_small:lGe,arrow_double_down:cGe,pause_button:dGe,stop_button:uGe,record_button:pGe,eject_button:hGe,cinema:mGe,low_brightness:fGe,high_brightness:gGe,signal_strength:_Ge,vibration_mode:bGe,mobile_phone_off:vGe,female_sign:yGe,male_sign:EGe,transgender_symbol:SGe,heavy_multiplication_x:xGe,heavy_plus_sign:TGe,heavy_minus_sign:wGe,heavy_division_sign:CGe,infinity:AGe,bangbang:RGe,interrobang:MGe,question:NGe,grey_question:kGe,grey_exclamation:IGe,exclamation:OGe,heavy_exclamation_mark:DGe,wavy_dash:LGe,currency_exchange:PGe,heavy_dollar_sign:FGe,medical_symbol:UGe,recycle:BGe,fleur_de_lis:GGe,trident:zGe,name_badge:VGe,beginner:HGe,o:qGe,white_check_mark:YGe,ballot_box_with_check:$Ge,heavy_check_mark:WGe,x:KGe,negative_squared_cross_mark:jGe,curly_loop:QGe,loop:XGe,part_alternation_mark:ZGe,eight_spoked_asterisk:JGe,eight_pointed_black_star:eze,sparkle:tze,copyright:nze,registered:rze,tm:ize,hash:sze,asterisk:oze,zero:aze,one:lze,two:cze,three:dze,four:uze,five:pze,six:hze,seven:mze,eight:fze,nine:gze,keycap_ten:_ze,capital_abcd:bze,abcd:vze,symbols:yze,abc:Eze,a:Sze,ab:xze,b:Tze,cl:wze,cool:Cze,free:Aze,information_source:Rze,id:Mze,m:Nze,new:"🆕",ng:kze,o2:Ize,ok:Oze,parking:Dze,sos:Lze,up:Pze,vs:Fze,koko:Uze,sa:Bze,ideograph_advantage:Gze,accept:zze,congratulations:Vze,secret:Hze,u6e80:qze,red_circle:Yze,orange_circle:$ze,yellow_circle:Wze,green_circle:Kze,large_blue_circle:jze,purple_circle:Qze,brown_circle:Xze,black_circle:Zze,white_circle:Jze,red_square:eVe,orange_square:tVe,yellow_square:nVe,green_square:rVe,blue_square:iVe,purple_square:sVe,brown_square:oVe,black_large_square:aVe,white_large_square:lVe,black_medium_square:cVe,white_medium_square:dVe,black_medium_small_square:uVe,white_medium_small_square:pVe,black_small_square:hVe,white_small_square:mVe,large_orange_diamond:fVe,large_blue_diamond:gVe,small_orange_diamond:_Ve,small_blue_diamond:bVe,small_red_triangle:vVe,small_red_triangle_down:yVe,diamond_shape_with_a_dot_inside:EVe,radio_button:SVe,white_square_button:xVe,black_square_button:TVe,checkered_flag:wVe,triangular_flag_on_post:CVe,crossed_flags:AVe,black_flag:RVe,white_flag:MVe,rainbow_flag:NVe,transgender_flag:kVe,pirate_flag:IVe,ascension_island:OVe,andorra:DVe,united_arab_emirates:LVe,afghanistan:PVe,antigua_barbuda:FVe,anguilla:UVe,albania:BVe,armenia:GVe,angola:zVe,antarctica:VVe,argentina:HVe,american_samoa:qVe,austria:YVe,australia:$Ve,aruba:WVe,aland_islands:KVe,azerbaijan:jVe,bosnia_herzegovina:QVe,barbados:XVe,bangladesh:ZVe,belgium:JVe,burkina_faso:eHe,bulgaria:tHe,bahrain:nHe,burundi:rHe,benin:iHe,st_barthelemy:sHe,bermuda:oHe,brunei:aHe,bolivia:lHe,caribbean_netherlands:cHe,brazil:dHe,bahamas:uHe,bhutan:pHe,bouvet_island:hHe,botswana:mHe,belarus:fHe,belize:gHe,canada:_He,cocos_islands:bHe,congo_kinshasa:vHe,central_african_republic:yHe,congo_brazzaville:EHe,switzerland:SHe,cote_divoire:xHe,cook_islands:THe,chile:wHe,cameroon:CHe,cn:AHe,colombia:RHe,clipperton_island:MHe,costa_rica:NHe,cuba:kHe,cape_verde:IHe,curacao:OHe,christmas_island:DHe,cyprus:LHe,czech_republic:PHe,de:FHe,diego_garcia:UHe,djibouti:BHe,denmark:GHe,dominica:zHe,dominican_republic:VHe,algeria:HHe,ceuta_melilla:qHe,ecuador:YHe,estonia:$He,egypt:WHe,western_sahara:KHe,eritrea:jHe,es:QHe,ethiopia:XHe,eu:ZHe,european_union:JHe,finland:eqe,fiji:tqe,falkland_islands:nqe,micronesia:rqe,faroe_islands:iqe,fr:sqe,gabon:oqe,gb:aqe,uk:lqe,grenada:cqe,georgia:dqe,french_guiana:uqe,guernsey:pqe,ghana:hqe,gibraltar:mqe,greenland:fqe,gambia:gqe,guinea:_qe,guadeloupe:bqe,equatorial_guinea:vqe,greece:yqe,south_georgia_south_sandwich_islands:Eqe,guatemala:Sqe,guam:xqe,guinea_bissau:Tqe,guyana:wqe,hong_kong:Cqe,heard_mcdonald_islands:Aqe,honduras:Rqe,croatia:Mqe,haiti:Nqe,hungary:kqe,canary_islands:Iqe,indonesia:Oqe,ireland:Dqe,israel:Lqe,isle_of_man:Pqe,india:Fqe,british_indian_ocean_territory:Uqe,iraq:Bqe,iran:Gqe,iceland:zqe,it:Vqe,jersey:Hqe,jamaica:qqe,jordan:Yqe,jp:$qe,kenya:Wqe,kyrgyzstan:Kqe,cambodia:jqe,kiribati:Qqe,comoros:Xqe,st_kitts_nevis:Zqe,north_korea:Jqe,kr:eYe,kuwait:tYe,cayman_islands:nYe,kazakhstan:rYe,laos:iYe,lebanon:sYe,st_lucia:oYe,liechtenstein:aYe,sri_lanka:lYe,liberia:cYe,lesotho:dYe,lithuania:uYe,luxembourg:pYe,latvia:hYe,libya:mYe,morocco:fYe,monaco:gYe,moldova:_Ye,montenegro:bYe,st_martin:vYe,madagascar:yYe,marshall_islands:EYe,macedonia:SYe,mali:xYe,myanmar:TYe,mongolia:wYe,macau:CYe,northern_mariana_islands:AYe,martinique:RYe,mauritania:MYe,montserrat:NYe,malta:kYe,mauritius:IYe,maldives:OYe,malawi:DYe,mexico:LYe,malaysia:PYe,mozambique:FYe,namibia:UYe,new_caledonia:BYe,niger:GYe,norfolk_island:zYe,nigeria:VYe,nicaragua:HYe,netherlands:qYe,norway:YYe,nepal:$Ye,nauru:WYe,niue:KYe,new_zealand:jYe,oman:QYe,panama:XYe,peru:ZYe,french_polynesia:JYe,papua_new_guinea:e$e,philippines:t$e,pakistan:n$e,poland:r$e,st_pierre_miquelon:i$e,pitcairn_islands:s$e,puerto_rico:o$e,palestinian_territories:a$e,portugal:l$e,palau:c$e,paraguay:d$e,qatar:u$e,reunion:p$e,romania:h$e,serbia:m$e,ru:f$e,rwanda:g$e,saudi_arabia:_$e,solomon_islands:b$e,seychelles:v$e,sudan:y$e,sweden:E$e,singapore:S$e,st_helena:x$e,slovenia:T$e,svalbard_jan_mayen:w$e,slovakia:C$e,sierra_leone:A$e,san_marino:R$e,senegal:M$e,somalia:N$e,suriname:k$e,south_sudan:I$e,sao_tome_principe:O$e,el_salvador:D$e,sint_maarten:L$e,syria:P$e,swaziland:F$e,tristan_da_cunha:U$e,turks_caicos_islands:B$e,chad:G$e,french_southern_territories:z$e,togo:V$e,thailand:H$e,tajikistan:q$e,tokelau:Y$e,timor_leste:$$e,turkmenistan:W$e,tunisia:K$e,tonga:j$e,tr:Q$e,trinidad_tobago:X$e,tuvalu:Z$e,taiwan:J$e,tanzania:eWe,ukraine:tWe,uganda:nWe,us_outlying_islands:rWe,united_nations:iWe,us:sWe,uruguay:oWe,uzbekistan:aWe,vatican_city:lWe,st_vincent_grenadines:cWe,venezuela:dWe,british_virgin_islands:uWe,us_virgin_islands:pWe,vietnam:hWe,vanuatu:mWe,wallis_futuna:fWe,samoa:gWe,kosovo:_We,yemen:bWe,mayotte:vWe,south_africa:yWe,zambia:EWe,zimbabwe:SWe,england:xWe,scotland:TWe,wales:wWe};var AWe={angry:[">:(",">:-("],blush:[':")',':-")'],broken_heart:["0&&!l.test(y[_-1])||_+b.lengthh&&(g=new f("text","",0),g.content=u.slice(h,_),v.push(g)),g=new f("emoji","",0),g.markup=E,g.content=t[E],v.push(g),h=_+b.length}),h=0;f--)b=v[f],(b.type==="link_open"||b.type==="link_close")&&b.info==="auto"&&(y-=b.nesting),b.type==="text"&&y===0&&i.test(b.content)&&(_[g].children=v=o(v,f,d(b.content,b.level,m.Token)))}};function NWe(n){return n.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var kWe=function(e){var t=e.defs,r;e.enabled.length&&(t=Object.keys(t).reduce(function(l,d){return e.enabled.indexOf(d)>=0&&(l[d]=t[d]),l},{})),r=Object.keys(e.shortcuts).reduce(function(l,d){return t[d]?Array.isArray(e.shortcuts[d])?(e.shortcuts[d].forEach(function(u){l[u]=d}),l):(l[e.shortcuts[d]]=d,l):l},{});var i=Object.keys(t),s;i.length===0?s="^$":s=i.map(function(l){return":"+l+":"}).concat(Object.keys(r)).sort().reverse().map(function(l){return NWe(l)}).join("|");var o=RegExp(s),a=RegExp(s,"g");return{defs:t,shortcuts:r,scanRE:o,replaceRE:a}},IWe=RWe,OWe=MWe,DWe=kWe,LWe=function(e,t){var r={defs:{},shortcuts:{},enabled:[]},i=DWe(e.utils.assign({},r,t||{}));e.renderer.rules.emoji=IWe,e.core.ruler.after("linkify","emoji",OWe(e,i.defs,i.shortcuts,i.scanRE,i.replaceRE))},PWe=CWe,FWe=AWe,UWe=LWe,BWe=function(e,t){var r={defs:PWe,shortcuts:FWe,enabled:[]},i=e.utils.assign({},r,t||{});UWe(e,i)};const GWe=Ra(BWe);var k2=!1,Cl={false:"push",true:"unshift",after:"push",before:"unshift"},Lp={isPermalinkSymbol:!0};function s1(n,e,t,r){var i;if(!k2){var s="Using deprecated markdown-it-anchor permalink option, see https://github.com/valeriangalliat/markdown-it-anchor#permalinks";typeof process=="object"&&process&&process.emitWarning?process.emitWarning(s):console.warn(s),k2=!0}var o=[Object.assign(new t.Token("link_open","a",1),{attrs:[].concat(e.permalinkClass?[["class",e.permalinkClass]]:[],[["href",e.permalinkHref(n,t)]],Object.entries(e.permalinkAttrs(n,t)))}),Object.assign(new t.Token("html_block","",0),{content:e.permalinkSymbol,meta:Lp}),new t.Token("link_close","a",-1)];e.permalinkSpace&&t.tokens[r+1].children[Cl[e.permalinkBefore]](Object.assign(new t.Token("text","",0),{content:" "})),(i=t.tokens[r+1].children)[Cl[e.permalinkBefore]].apply(i,o)}function yN(n){return"#"+n}function EN(n){return{}}var zWe={class:"header-anchor",symbol:"#",renderHref:yN,renderAttrs:EN};function Md(n){function e(t){return t=Object.assign({},e.defaults,t),function(r,i,s,o){return n(r,t,i,s,o)}}return e.defaults=Object.assign({},zWe),e.renderPermalinkImpl=n,e}var Hh=Md(function(n,e,t,r,i){var s,o=[Object.assign(new r.Token("link_open","a",1),{attrs:[].concat(e.class?[["class",e.class]]:[],[["href",e.renderHref(n,r)]],e.ariaHidden?[["aria-hidden","true"]]:[],Object.entries(e.renderAttrs(n,r)))}),Object.assign(new r.Token("html_inline","",0),{content:e.symbol,meta:Lp}),new r.Token("link_close","a",-1)];if(e.space){var a=typeof e.space=="string"?e.space:" ";r.tokens[i+1].children[Cl[e.placement]](Object.assign(new r.Token(typeof e.space=="string"?"html_inline":"text","",0),{content:a}))}(s=r.tokens[i+1].children)[Cl[e.placement]].apply(s,o)});Object.assign(Hh.defaults,{space:!0,placement:"after",ariaHidden:!1});var Xo=Md(Hh.renderPermalinkImpl);Xo.defaults=Object.assign({},Hh.defaults,{ariaHidden:!0});var SN=Md(function(n,e,t,r,i){var s=[Object.assign(new r.Token("link_open","a",1),{attrs:[].concat(e.class?[["class",e.class]]:[],[["href",e.renderHref(n,r)]],Object.entries(e.renderAttrs(n,r)))})].concat(e.safariReaderFix?[new r.Token("span_open","span",1)]:[],r.tokens[i+1].children,e.safariReaderFix?[new r.Token("span_close","span",-1)]:[],[new r.Token("link_close","a",-1)]);r.tokens[i+1]=Object.assign(new r.Token("inline","",0),{children:s})});Object.assign(SN.defaults,{safariReaderFix:!1});var I2=Md(function(n,e,t,r,i){var s;if(!["visually-hidden","aria-label","aria-describedby","aria-labelledby"].includes(e.style))throw new Error("`permalink.linkAfterHeader` called with unknown style option `"+e.style+"`");if(!["aria-describedby","aria-labelledby"].includes(e.style)&&!e.assistiveText)throw new Error("`permalink.linkAfterHeader` called without the `assistiveText` option in `"+e.style+"` style");if(e.style==="visually-hidden"&&!e.visuallyHiddenClass)throw new Error("`permalink.linkAfterHeader` called without the `visuallyHiddenClass` option in `visually-hidden` style");var o=r.tokens[i+1].children.filter(function(m){return m.type==="text"||m.type==="code_inline"}).reduce(function(m,f){return m+f.content},""),a=[],l=[];if(e.class&&l.push(["class",e.class]),l.push(["href",e.renderHref(n,r)]),l.push.apply(l,Object.entries(e.renderAttrs(n,r))),e.style==="visually-hidden"){if(a.push(Object.assign(new r.Token("span_open","span",1),{attrs:[["class",e.visuallyHiddenClass]]}),Object.assign(new r.Token("text","",0),{content:e.assistiveText(o)}),new r.Token("span_close","span",-1)),e.space){var d=typeof e.space=="string"?e.space:" ";a[Cl[e.placement]](Object.assign(new r.Token(typeof e.space=="string"?"html_inline":"text","",0),{content:d}))}a[Cl[e.placement]](Object.assign(new r.Token("span_open","span",1),{attrs:[["aria-hidden","true"]]}),Object.assign(new r.Token("html_inline","",0),{content:e.symbol,meta:Lp}),new r.Token("span_close","span",-1))}else a.push(Object.assign(new r.Token("html_inline","",0),{content:e.symbol,meta:Lp}));e.style==="aria-label"?l.push(["aria-label",e.assistiveText(o)]):["aria-describedby","aria-labelledby"].includes(e.style)&&l.push([e.style,n]);var u=[Object.assign(new r.Token("link_open","a",1),{attrs:l})].concat(a,[new r.Token("link_close","a",-1)]);(s=r.tokens).splice.apply(s,[i+3,0].concat(u)),e.wrapper&&(r.tokens.splice(i,0,Object.assign(new r.Token("html_block","",0),{content:e.wrapper[0]+` `})),r.tokens.splice(i+3+u.length+1,0,Object.assign(new r.Token("html_block","",0),{content:e.wrapper[1]+` `})))});function O2(n,e,t,r){var i=n,s=r;if(t&&Object.prototype.hasOwnProperty.call(e,i))throw new Error("User defined `id` attribute `"+n+"` is not unique. Please fix it in your Markdown to continue.");for(;Object.prototype.hasOwnProperty.call(e,i);)i=n+"-"+s,s+=1;return e[i]=!0,i}function sl(n,e){e=Object.assign({},sl.defaults,e),n.core.ruler.push("anchor",function(t){for(var r,i={},s=t.tokens,o=Array.isArray(e.level)?(r=e.level,function(m){return r.includes(m)}):function(m){return function(f){return f>=m}}(e.level),a=0;a0&&!(t&i&&this.__match_alphabets__[i].call(this,r,t,i));i>>=4);if(this.__actions__(r,t,i),i===0)break;t=this.__transitions__[t][i]||0}return!!this.__accept_states__[t]};var VWe=Bs,HWe=VWe,qWe=function(e,t){var r={multiline:!1,rowspan:!1,headerless:!1,multibody:!0,autolabel:!0};t=e.utils.assign({},r,t||{});function i(u,m){var f=u.bMarks[m]+u.sCount[m],g=u.bMarks[m]+u.blkIndent,h=u.skipSpacesBack(u.eMarks[m],g),v=[],b,_,y=!1,E=!1,x=0;for(b=f;bb?(E||(x===0?x=_-b:x===_-b&&(x=0)),b=_):(E||!y&&!x)&&(E=!E),y=!1;break;case 124:!E&&!y&&v.push(b),y=!1;break;default:y=!1;break}return v.length===0||(v[0]>g&&v.unshift(g-1),v[v.length-1]=4||h.length===0)return!1;for(b=0;bf||(y=new u.Token("table_open","table",1),y.meta={sep:null,cap:null,tr:[]},h.set_highest_alphabet(65536),h.set_initial_state(65792),h.set_accept_states([65552,65553,0]),h.set_match_alphabets({65536:s.bind(this,u,!0),4096:a.bind(this,u,!0),256:o.bind(this,u,!0),16:o.bind(this,u,!0),1:l.bind(this,u,!0)}),h.set_transitions({65792:{65536:256,256:4352},256:{256:4352},4352:{4096:65552,256:4352},65552:{65536:0,16:65553},65553:{65536:0,16:65553,1:65552}}),t.headerless&&(h.set_initial_state(69888),h.update_transition(69888,{65536:4352,4096:65552,256:4352}),E=new u.Token("tr_placeholder","tr",0),E.meta=Object()),t.multibody||h.update_transition(65552,{65536:0,16:65552}),h.set_actions(function(ue,xe,Ce){switch(Ce){case 65536:if(y.meta.cap)break;y.meta.cap=s(u,!1,ue),y.meta.cap.map=[ue,ue+1],y.meta.cap.first=ue===m;break;case 4096:y.meta.sep=a(u,!1,ue),y.meta.sep.map=[ue,ue+1],E.meta.grp|=1,v=16;break;case 256:case 16:E=new u.Token("tr_open","tr",1),E.map=[ue,ue+1],E.meta=o(u,!1,ue),E.meta.type=Ce,E.meta.grp=v,v=0,y.meta.tr.push(E),t.multiline&&(E.meta.multiline&&b<0?b=y.meta.tr.length-1:!E.meta.multiline&&b>=0&&(_=y.meta.tr[b],_.meta.mbounds=y.meta.tr.slice(b).map(function(me){return me.meta.bounds}),_.map[1]=E.map[1],y.meta.tr=y.meta.tr.slice(0,b+1),b=-1));break;case 1:E.meta.grp|=1,v=16;break}}),h.execute(m,f)===!1)||!y.meta.tr.length)return!1;if(g)return!0;if(y.meta.tr[y.meta.tr.length-1].meta.grp|=1,y.map=L=[m,0],y.block=!0,y.level=u.level++,u.tokens.push(y),y.meta.cap){_=u.push("caption_open","caption",1),_.map=y.meta.cap.map;var Z=[],ce=y.meta.cap.first?"top":"bottom";y.meta.cap.label!==null&&Z.push(["id",y.meta.cap.label]),ce!=="top"&&Z.push(["style","caption-side: "+ce]),_.attrs=Z,_=u.push("inline","",0),_.content=y.meta.cap.text,_.map=y.meta.cap.map,_.children=[],_=u.push("caption_close","caption",-1)}for(ie=0;ieE.meta.mbounds[$].length-2||(q=[E.meta.mbounds[$][D]+1,E.meta.mbounds[$][D+1]],H.push(u.src.slice.apply(u.src,q).trimRight()));for(B=new u.md.block.State(H.join(` `),u.md,u.env,[]),B.level=E.level+1,u.md.block.tokenize(B,E.map[0],B.lineMax),K=0;Kf.match(m))}t.tabindex==!0&&(i.tokens[o-1].attrPush(["tabindex",s]),s++),t.lazyLoading==!0&&u.attrPush(["loading","lazy"])}}}e.core.ruler.before("linkify","implicit_figures",r)};const WWe=Ra($We),KWe=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var Lo={};Lo.getAttrs=function(n,e,t){const r=/[^\t\n\f />"'=]/,i=" ",s="=",o=".",a="#",l=[];let d="",u="",m=!0,f=!1;for(let g=e+t.leftDelimiter.length;g=r+1:u.length>=r}let s,o,a,l;const d=r-e.rightDelimiter.length;switch(n){case"start":a=t.slice(0,e.leftDelimiter.length),s=a===e.leftDelimiter?0:-1,o=s===-1?-1:t.indexOf(e.rightDelimiter,d),l=t.charAt(o+e.rightDelimiter.length),l&&e.rightDelimiter.indexOf(l)!==-1&&(o=-1);break;case"end":s=t.lastIndexOf(e.leftDelimiter),o=s===-1?-1:t.indexOf(e.rightDelimiter,s+d),o=o===t.length-e.rightDelimiter.length?o:-1;break;case"only":a=t.slice(0,e.leftDelimiter.length),s=a===e.leftDelimiter?0:-1,a=t.slice(t.length-e.rightDelimiter.length),o=a===e.rightDelimiter?t.length-e.rightDelimiter.length:-1;break;default:throw new Error(`Unexpected case ${n}, expected 'start', 'end' or 'only'`)}return s!==-1&&o!==-1&&i(t.substring(s,o+e.rightDelimiter.length))}};Lo.removeDelimiter=function(n,e){const t=o1(e.leftDelimiter),r=o1(e.rightDelimiter),i=new RegExp("[ \\n]?"+t+"[^"+t+r+"]+"+r+"$"),s=n.search(i);return s!==-1?n.slice(0,s):n};function o1(n){return n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}Lo.escapeRegExp=o1;Lo.getMatchingOpeningToken=function(n,e){if(n[e].type==="softbreak")return!1;if(n[e].nesting===0)return n[e];const t=n[e].level,r=n[e].type.replace("_close","_open");for(;e>=0;--e)if(n[e].type===r&&n[e].level===t)return n[e];return!1};const jWe=/[&<>"]/,QWe=/[&<>"]/g,XWe={"&":"&","<":"<",">":">",'"':"""};function ZWe(n){return XWe[n]}Lo.escapeHtml=function(n){return jWe.test(n)?n.replace(QWe,ZWe):n};const qt=Lo;var JWe=n=>{const e=new RegExp("^ {0,3}[-*_]{3,} ?"+qt.escapeRegExp(n.leftDelimiter)+"[^"+qt.escapeRegExp(n.rightDelimiter)+"]");return[{name:"fenced code blocks",tests:[{shift:0,block:!0,info:qt.hasDelimiters("end",n)}],transform:(t,r)=>{const i=t[r],s=i.info.lastIndexOf(n.leftDelimiter),o=qt.getAttrs(i.info,s,n);qt.addAttrs(o,i),i.info=qt.removeDelimiter(i.info,n)}},{name:"inline nesting 0",tests:[{shift:0,type:"inline",children:[{shift:-1,type:t=>t==="image"||t==="code_inline"},{shift:0,type:"text",content:qt.hasDelimiters("start",n)}]}],transform:(t,r,i)=>{const s=t[r].children[i],o=s.content.indexOf(n.rightDelimiter),a=t[r].children[i-1],l=qt.getAttrs(s.content,0,n);qt.addAttrs(l,a),s.content.length===o+n.rightDelimiter.length?t[r].children.splice(i,1):s.content=s.content.slice(o+n.rightDelimiter.length)}},{name:"tables",tests:[{shift:0,type:"table_close"},{shift:1,type:"paragraph_open"},{shift:2,type:"inline",content:qt.hasDelimiters("only",n)}],transform:(t,r)=>{const i=t[r+2],s=qt.getMatchingOpeningToken(t,r),o=qt.getAttrs(i.content,0,n);qt.addAttrs(o,s),t.splice(r+1,3)}},{name:"inline attributes",tests:[{shift:0,type:"inline",children:[{shift:-1,nesting:-1},{shift:0,type:"text",content:qt.hasDelimiters("start",n)}]}],transform:(t,r,i)=>{const s=t[r].children[i],o=s.content,a=qt.getAttrs(o,0,n),l=qt.getMatchingOpeningToken(t[r].children,i-1);qt.addAttrs(a,l),s.content=o.slice(o.indexOf(n.rightDelimiter)+n.rightDelimiter.length)}},{name:"list softbreak",tests:[{shift:-2,type:"list_item_open"},{shift:0,type:"inline",children:[{position:-2,type:"softbreak"},{position:-1,type:"text",content:qt.hasDelimiters("only",n)}]}],transform:(t,r,i)=>{const o=t[r].children[i].content,a=qt.getAttrs(o,0,n);let l=r-2;for(;t[l-1]&&t[l-1].type!=="ordered_list_open"&&t[l-1].type!=="bullet_list_open";)l--;qt.addAttrs(a,t[l-1]),t[r].children=t[r].children.slice(0,-2)}},{name:"list double softbreak",tests:[{shift:0,type:t=>t==="bullet_list_close"||t==="ordered_list_close"},{shift:1,type:"paragraph_open"},{shift:2,type:"inline",content:qt.hasDelimiters("only",n),children:t=>t.length===1},{shift:3,type:"paragraph_close"}],transform:(t,r)=>{const s=t[r+2].content,o=qt.getAttrs(s,0,n),a=qt.getMatchingOpeningToken(t,r);qt.addAttrs(o,a),t.splice(r+1,3)}},{name:"list item end",tests:[{shift:-2,type:"list_item_open"},{shift:0,type:"inline",children:[{position:-1,type:"text",content:qt.hasDelimiters("end",n)}]}],transform:(t,r,i)=>{const s=t[r].children[i],o=s.content,a=qt.getAttrs(o,o.lastIndexOf(n.leftDelimiter),n);qt.addAttrs(a,t[r-2]);const l=o.slice(0,o.lastIndexOf(n.leftDelimiter));s.content=D2(l)!==" "?l:l.slice(0,-1)}},{name:` @@ -322,20 +322,20 @@ c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6 c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, --470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class Nd{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return Et.contains(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),t=0;tt.toText();return this.children.map(e).join("")}}var $i={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},iu={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},vC={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function TJe(n,e){$i[n]=e}function Vv(n,e,t){if(!$i[e])throw new Error("Font metrics not found for font: "+e+".");var r=n.charCodeAt(0),i=$i[e][r];if(!i&&n[0]in vC&&(r=vC[n[0]].charCodeAt(0),i=$i[e][r]),!i&&t==="text"&&PN(r)&&(i=$i[e][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var O0={};function wJe(n){var e;if(n>=5?e=0:n>=3?e=1:e=2,!O0[e]){var t=O0[e]={cssEmPerMu:iu.quad[e]/18};for(var r in iu)iu.hasOwnProperty(r)&&(t[r]=iu[r][e])}return O0[e]}var CJe=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],yC=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],EC=function(e,t){return t.size<2?e:CJe[e-1][t.size-1]};class ys{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||ys.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=yC[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return new ys(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:EC(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:yC[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=EC(ys.BASESIZE,e);return this.size===t&&this.textSize===ys.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==ys.BASESIZE?["sizing","reset-size"+this.size,"size"+ys.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=wJe(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}ys.BASESIZE=6;var c1={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},AJe={ex:!0,em:!0,mu:!0},FN=function(e){return typeof e!="string"&&(e=e.unit),e in c1||e in AJe||e==="ex"},Tn=function(e,t){var r;if(e.unit in c1)r=c1[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit==="mu")r=t.fontMetrics().cssEmPerMu;else{var i;if(t.style.isTight()?i=t.havingStyle(t.style.text()):i=t,e.unit==="ex")r=i.fontMetrics().xHeight;else if(e.unit==="em")r=i.fontMetrics().quad;else throw new Qe("Invalid unit: '"+e.unit+"'");i!==t&&(r*=i.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*r,t.maxSize)},Je=function(e){return+e.toFixed(4)+"em"},Mo=function(e){return e.filter(t=>t).join(" ")},UN=function(e,t,r){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},t){t.style.isTight()&&this.classes.push("mtight");var i=t.getColor();i&&(this.style.color=i)}},BN=function(e){var t=document.createElement(e);t.className=Mo(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(t.style[r]=this.style[r]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&t.setAttribute(i,this.attributes[i]);for(var s=0;s",t};class kd{constructor(e,t,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,UN.call(this,e,r,i),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return Et.contains(this.classes,e)}toNode(){return BN.call(this,"span")}toMarkup(){return GN.call(this,"span")}}class Hv{constructor(e,t,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,UN.call(this,t,i),this.children=r||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return Et.contains(this.classes,e)}toNode(){return BN.call(this,"a")}toMarkup(){return GN.call(this,"a")}}class RJe{constructor(e,t,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=r}hasClass(e){return Et.contains(this.classes,e)}toNode(){var e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(var t in this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){var e=''+Et.escape(this.alt)+'0&&(t=document.createElement("span"),t.style.marginRight=Je(this.italic)),this.classes.length>0&&(t=t||document.createElement("span"),t.className=Mo(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(t=t||document.createElement("span"),t.style[r]=this.style[r]);return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="0&&(r+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=Et.hyphenate(i)+":"+this.style[i]+";");r&&(e=!0,t+=' style="'+Et.escape(r)+'"');var s=Et.escape(this.text);return e?(t+=">",t+=s,t+="",t):s}}class Os{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);for(var i=0;i':''}}class d1{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);return t}toMarkup(){var e=" but got "+String(n)+".")}var kJe={bin:1,close:1,inner:1,open:1,punct:1,rel:1},IJe={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},_n={math:{},text:{}};function S(n,e,t,r,i,s){_n[n][i]={font:e,group:t,replace:r},s&&r&&(_n[n][r]=_n[n][i])}var R="math",He="text",O="main",j="ams",En="accent-token",ct="bin",Er="close",nc="inner",St="mathord",Fn="op-token",Yr="open",Yh="punct",Q="rel",Gs="spacing",se="textord";S(R,O,Q,"≡","\\equiv",!0);S(R,O,Q,"≺","\\prec",!0);S(R,O,Q,"≻","\\succ",!0);S(R,O,Q,"∼","\\sim",!0);S(R,O,Q,"⊥","\\perp");S(R,O,Q,"⪯","\\preceq",!0);S(R,O,Q,"⪰","\\succeq",!0);S(R,O,Q,"≃","\\simeq",!0);S(R,O,Q,"∣","\\mid",!0);S(R,O,Q,"≪","\\ll",!0);S(R,O,Q,"≫","\\gg",!0);S(R,O,Q,"≍","\\asymp",!0);S(R,O,Q,"∥","\\parallel");S(R,O,Q,"⋈","\\bowtie",!0);S(R,O,Q,"⌣","\\smile",!0);S(R,O,Q,"⊑","\\sqsubseteq",!0);S(R,O,Q,"⊒","\\sqsupseteq",!0);S(R,O,Q,"≐","\\doteq",!0);S(R,O,Q,"⌢","\\frown",!0);S(R,O,Q,"∋","\\ni",!0);S(R,O,Q,"∝","\\propto",!0);S(R,O,Q,"⊢","\\vdash",!0);S(R,O,Q,"⊣","\\dashv",!0);S(R,O,Q,"∋","\\owns");S(R,O,Yh,".","\\ldotp");S(R,O,Yh,"⋅","\\cdotp");S(R,O,se,"#","\\#");S(He,O,se,"#","\\#");S(R,O,se,"&","\\&");S(He,O,se,"&","\\&");S(R,O,se,"ℵ","\\aleph",!0);S(R,O,se,"∀","\\forall",!0);S(R,O,se,"ℏ","\\hbar",!0);S(R,O,se,"∃","\\exists",!0);S(R,O,se,"∇","\\nabla",!0);S(R,O,se,"♭","\\flat",!0);S(R,O,se,"ℓ","\\ell",!0);S(R,O,se,"♮","\\natural",!0);S(R,O,se,"♣","\\clubsuit",!0);S(R,O,se,"℘","\\wp",!0);S(R,O,se,"♯","\\sharp",!0);S(R,O,se,"♢","\\diamondsuit",!0);S(R,O,se,"ℜ","\\Re",!0);S(R,O,se,"♡","\\heartsuit",!0);S(R,O,se,"ℑ","\\Im",!0);S(R,O,se,"♠","\\spadesuit",!0);S(R,O,se,"§","\\S",!0);S(He,O,se,"§","\\S");S(R,O,se,"¶","\\P",!0);S(He,O,se,"¶","\\P");S(R,O,se,"†","\\dag");S(He,O,se,"†","\\dag");S(He,O,se,"†","\\textdagger");S(R,O,se,"‡","\\ddag");S(He,O,se,"‡","\\ddag");S(He,O,se,"‡","\\textdaggerdbl");S(R,O,Er,"⎱","\\rmoustache",!0);S(R,O,Yr,"⎰","\\lmoustache",!0);S(R,O,Er,"⟯","\\rgroup",!0);S(R,O,Yr,"⟮","\\lgroup",!0);S(R,O,ct,"∓","\\mp",!0);S(R,O,ct,"⊖","\\ominus",!0);S(R,O,ct,"⊎","\\uplus",!0);S(R,O,ct,"⊓","\\sqcap",!0);S(R,O,ct,"∗","\\ast");S(R,O,ct,"⊔","\\sqcup",!0);S(R,O,ct,"◯","\\bigcirc",!0);S(R,O,ct,"∙","\\bullet",!0);S(R,O,ct,"‡","\\ddagger");S(R,O,ct,"≀","\\wr",!0);S(R,O,ct,"⨿","\\amalg");S(R,O,ct,"&","\\And");S(R,O,Q,"⟵","\\longleftarrow",!0);S(R,O,Q,"⇐","\\Leftarrow",!0);S(R,O,Q,"⟸","\\Longleftarrow",!0);S(R,O,Q,"⟶","\\longrightarrow",!0);S(R,O,Q,"⇒","\\Rightarrow",!0);S(R,O,Q,"⟹","\\Longrightarrow",!0);S(R,O,Q,"↔","\\leftrightarrow",!0);S(R,O,Q,"⟷","\\longleftrightarrow",!0);S(R,O,Q,"⇔","\\Leftrightarrow",!0);S(R,O,Q,"⟺","\\Longleftrightarrow",!0);S(R,O,Q,"↦","\\mapsto",!0);S(R,O,Q,"⟼","\\longmapsto",!0);S(R,O,Q,"↗","\\nearrow",!0);S(R,O,Q,"↩","\\hookleftarrow",!0);S(R,O,Q,"↪","\\hookrightarrow",!0);S(R,O,Q,"↘","\\searrow",!0);S(R,O,Q,"↼","\\leftharpoonup",!0);S(R,O,Q,"⇀","\\rightharpoonup",!0);S(R,O,Q,"↙","\\swarrow",!0);S(R,O,Q,"↽","\\leftharpoondown",!0);S(R,O,Q,"⇁","\\rightharpoondown",!0);S(R,O,Q,"↖","\\nwarrow",!0);S(R,O,Q,"⇌","\\rightleftharpoons",!0);S(R,j,Q,"≮","\\nless",!0);S(R,j,Q,"","\\@nleqslant");S(R,j,Q,"","\\@nleqq");S(R,j,Q,"⪇","\\lneq",!0);S(R,j,Q,"≨","\\lneqq",!0);S(R,j,Q,"","\\@lvertneqq");S(R,j,Q,"⋦","\\lnsim",!0);S(R,j,Q,"⪉","\\lnapprox",!0);S(R,j,Q,"⊀","\\nprec",!0);S(R,j,Q,"⋠","\\npreceq",!0);S(R,j,Q,"⋨","\\precnsim",!0);S(R,j,Q,"⪹","\\precnapprox",!0);S(R,j,Q,"≁","\\nsim",!0);S(R,j,Q,"","\\@nshortmid");S(R,j,Q,"∤","\\nmid",!0);S(R,j,Q,"⊬","\\nvdash",!0);S(R,j,Q,"⊭","\\nvDash",!0);S(R,j,Q,"⋪","\\ntriangleleft");S(R,j,Q,"⋬","\\ntrianglelefteq",!0);S(R,j,Q,"⊊","\\subsetneq",!0);S(R,j,Q,"","\\@varsubsetneq");S(R,j,Q,"⫋","\\subsetneqq",!0);S(R,j,Q,"","\\@varsubsetneqq");S(R,j,Q,"≯","\\ngtr",!0);S(R,j,Q,"","\\@ngeqslant");S(R,j,Q,"","\\@ngeqq");S(R,j,Q,"⪈","\\gneq",!0);S(R,j,Q,"≩","\\gneqq",!0);S(R,j,Q,"","\\@gvertneqq");S(R,j,Q,"⋧","\\gnsim",!0);S(R,j,Q,"⪊","\\gnapprox",!0);S(R,j,Q,"⊁","\\nsucc",!0);S(R,j,Q,"⋡","\\nsucceq",!0);S(R,j,Q,"⋩","\\succnsim",!0);S(R,j,Q,"⪺","\\succnapprox",!0);S(R,j,Q,"≆","\\ncong",!0);S(R,j,Q,"","\\@nshortparallel");S(R,j,Q,"∦","\\nparallel",!0);S(R,j,Q,"⊯","\\nVDash",!0);S(R,j,Q,"⋫","\\ntriangleright");S(R,j,Q,"⋭","\\ntrianglerighteq",!0);S(R,j,Q,"","\\@nsupseteqq");S(R,j,Q,"⊋","\\supsetneq",!0);S(R,j,Q,"","\\@varsupsetneq");S(R,j,Q,"⫌","\\supsetneqq",!0);S(R,j,Q,"","\\@varsupsetneqq");S(R,j,Q,"⊮","\\nVdash",!0);S(R,j,Q,"⪵","\\precneqq",!0);S(R,j,Q,"⪶","\\succneqq",!0);S(R,j,Q,"","\\@nsubseteqq");S(R,j,ct,"⊴","\\unlhd");S(R,j,ct,"⊵","\\unrhd");S(R,j,Q,"↚","\\nleftarrow",!0);S(R,j,Q,"↛","\\nrightarrow",!0);S(R,j,Q,"⇍","\\nLeftarrow",!0);S(R,j,Q,"⇏","\\nRightarrow",!0);S(R,j,Q,"↮","\\nleftrightarrow",!0);S(R,j,Q,"⇎","\\nLeftrightarrow",!0);S(R,j,Q,"△","\\vartriangle");S(R,j,se,"ℏ","\\hslash");S(R,j,se,"▽","\\triangledown");S(R,j,se,"◊","\\lozenge");S(R,j,se,"Ⓢ","\\circledS");S(R,j,se,"®","\\circledR");S(He,j,se,"®","\\circledR");S(R,j,se,"∡","\\measuredangle",!0);S(R,j,se,"∄","\\nexists");S(R,j,se,"℧","\\mho");S(R,j,se,"Ⅎ","\\Finv",!0);S(R,j,se,"⅁","\\Game",!0);S(R,j,se,"‵","\\backprime");S(R,j,se,"▲","\\blacktriangle");S(R,j,se,"▼","\\blacktriangledown");S(R,j,se,"■","\\blacksquare");S(R,j,se,"⧫","\\blacklozenge");S(R,j,se,"★","\\bigstar");S(R,j,se,"∢","\\sphericalangle",!0);S(R,j,se,"∁","\\complement",!0);S(R,j,se,"ð","\\eth",!0);S(He,O,se,"ð","ð");S(R,j,se,"╱","\\diagup");S(R,j,se,"╲","\\diagdown");S(R,j,se,"□","\\square");S(R,j,se,"□","\\Box");S(R,j,se,"◊","\\Diamond");S(R,j,se,"¥","\\yen",!0);S(He,j,se,"¥","\\yen",!0);S(R,j,se,"✓","\\checkmark",!0);S(He,j,se,"✓","\\checkmark");S(R,j,se,"ℶ","\\beth",!0);S(R,j,se,"ℸ","\\daleth",!0);S(R,j,se,"ℷ","\\gimel",!0);S(R,j,se,"ϝ","\\digamma",!0);S(R,j,se,"ϰ","\\varkappa");S(R,j,Yr,"┌","\\@ulcorner",!0);S(R,j,Er,"┐","\\@urcorner",!0);S(R,j,Yr,"└","\\@llcorner",!0);S(R,j,Er,"┘","\\@lrcorner",!0);S(R,j,Q,"≦","\\leqq",!0);S(R,j,Q,"⩽","\\leqslant",!0);S(R,j,Q,"⪕","\\eqslantless",!0);S(R,j,Q,"≲","\\lesssim",!0);S(R,j,Q,"⪅","\\lessapprox",!0);S(R,j,Q,"≊","\\approxeq",!0);S(R,j,ct,"⋖","\\lessdot");S(R,j,Q,"⋘","\\lll",!0);S(R,j,Q,"≶","\\lessgtr",!0);S(R,j,Q,"⋚","\\lesseqgtr",!0);S(R,j,Q,"⪋","\\lesseqqgtr",!0);S(R,j,Q,"≑","\\doteqdot");S(R,j,Q,"≓","\\risingdotseq",!0);S(R,j,Q,"≒","\\fallingdotseq",!0);S(R,j,Q,"∽","\\backsim",!0);S(R,j,Q,"⋍","\\backsimeq",!0);S(R,j,Q,"⫅","\\subseteqq",!0);S(R,j,Q,"⋐","\\Subset",!0);S(R,j,Q,"⊏","\\sqsubset",!0);S(R,j,Q,"≼","\\preccurlyeq",!0);S(R,j,Q,"⋞","\\curlyeqprec",!0);S(R,j,Q,"≾","\\precsim",!0);S(R,j,Q,"⪷","\\precapprox",!0);S(R,j,Q,"⊲","\\vartriangleleft");S(R,j,Q,"⊴","\\trianglelefteq");S(R,j,Q,"⊨","\\vDash",!0);S(R,j,Q,"⊪","\\Vvdash",!0);S(R,j,Q,"⌣","\\smallsmile");S(R,j,Q,"⌢","\\smallfrown");S(R,j,Q,"≏","\\bumpeq",!0);S(R,j,Q,"≎","\\Bumpeq",!0);S(R,j,Q,"≧","\\geqq",!0);S(R,j,Q,"⩾","\\geqslant",!0);S(R,j,Q,"⪖","\\eqslantgtr",!0);S(R,j,Q,"≳","\\gtrsim",!0);S(R,j,Q,"⪆","\\gtrapprox",!0);S(R,j,ct,"⋗","\\gtrdot");S(R,j,Q,"⋙","\\ggg",!0);S(R,j,Q,"≷","\\gtrless",!0);S(R,j,Q,"⋛","\\gtreqless",!0);S(R,j,Q,"⪌","\\gtreqqless",!0);S(R,j,Q,"≖","\\eqcirc",!0);S(R,j,Q,"≗","\\circeq",!0);S(R,j,Q,"≜","\\triangleq",!0);S(R,j,Q,"∼","\\thicksim");S(R,j,Q,"≈","\\thickapprox");S(R,j,Q,"⫆","\\supseteqq",!0);S(R,j,Q,"⋑","\\Supset",!0);S(R,j,Q,"⊐","\\sqsupset",!0);S(R,j,Q,"≽","\\succcurlyeq",!0);S(R,j,Q,"⋟","\\curlyeqsucc",!0);S(R,j,Q,"≿","\\succsim",!0);S(R,j,Q,"⪸","\\succapprox",!0);S(R,j,Q,"⊳","\\vartriangleright");S(R,j,Q,"⊵","\\trianglerighteq");S(R,j,Q,"⊩","\\Vdash",!0);S(R,j,Q,"∣","\\shortmid");S(R,j,Q,"∥","\\shortparallel");S(R,j,Q,"≬","\\between",!0);S(R,j,Q,"⋔","\\pitchfork",!0);S(R,j,Q,"∝","\\varpropto");S(R,j,Q,"◀","\\blacktriangleleft");S(R,j,Q,"∴","\\therefore",!0);S(R,j,Q,"∍","\\backepsilon");S(R,j,Q,"▶","\\blacktriangleright");S(R,j,Q,"∵","\\because",!0);S(R,j,Q,"⋘","\\llless");S(R,j,Q,"⋙","\\gggtr");S(R,j,ct,"⊲","\\lhd");S(R,j,ct,"⊳","\\rhd");S(R,j,Q,"≂","\\eqsim",!0);S(R,O,Q,"⋈","\\Join");S(R,j,Q,"≑","\\Doteq",!0);S(R,j,ct,"∔","\\dotplus",!0);S(R,j,ct,"∖","\\smallsetminus");S(R,j,ct,"⋒","\\Cap",!0);S(R,j,ct,"⋓","\\Cup",!0);S(R,j,ct,"⩞","\\doublebarwedge",!0);S(R,j,ct,"⊟","\\boxminus",!0);S(R,j,ct,"⊞","\\boxplus",!0);S(R,j,ct,"⋇","\\divideontimes",!0);S(R,j,ct,"⋉","\\ltimes",!0);S(R,j,ct,"⋊","\\rtimes",!0);S(R,j,ct,"⋋","\\leftthreetimes",!0);S(R,j,ct,"⋌","\\rightthreetimes",!0);S(R,j,ct,"⋏","\\curlywedge",!0);S(R,j,ct,"⋎","\\curlyvee",!0);S(R,j,ct,"⊝","\\circleddash",!0);S(R,j,ct,"⊛","\\circledast",!0);S(R,j,ct,"⋅","\\centerdot");S(R,j,ct,"⊺","\\intercal",!0);S(R,j,ct,"⋒","\\doublecap");S(R,j,ct,"⋓","\\doublecup");S(R,j,ct,"⊠","\\boxtimes",!0);S(R,j,Q,"⇢","\\dashrightarrow",!0);S(R,j,Q,"⇠","\\dashleftarrow",!0);S(R,j,Q,"⇇","\\leftleftarrows",!0);S(R,j,Q,"⇆","\\leftrightarrows",!0);S(R,j,Q,"⇚","\\Lleftarrow",!0);S(R,j,Q,"↞","\\twoheadleftarrow",!0);S(R,j,Q,"↢","\\leftarrowtail",!0);S(R,j,Q,"↫","\\looparrowleft",!0);S(R,j,Q,"⇋","\\leftrightharpoons",!0);S(R,j,Q,"↶","\\curvearrowleft",!0);S(R,j,Q,"↺","\\circlearrowleft",!0);S(R,j,Q,"↰","\\Lsh",!0);S(R,j,Q,"⇈","\\upuparrows",!0);S(R,j,Q,"↿","\\upharpoonleft",!0);S(R,j,Q,"⇃","\\downharpoonleft",!0);S(R,O,Q,"⊶","\\origof",!0);S(R,O,Q,"⊷","\\imageof",!0);S(R,j,Q,"⊸","\\multimap",!0);S(R,j,Q,"↭","\\leftrightsquigarrow",!0);S(R,j,Q,"⇉","\\rightrightarrows",!0);S(R,j,Q,"⇄","\\rightleftarrows",!0);S(R,j,Q,"↠","\\twoheadrightarrow",!0);S(R,j,Q,"↣","\\rightarrowtail",!0);S(R,j,Q,"↬","\\looparrowright",!0);S(R,j,Q,"↷","\\curvearrowright",!0);S(R,j,Q,"↻","\\circlearrowright",!0);S(R,j,Q,"↱","\\Rsh",!0);S(R,j,Q,"⇊","\\downdownarrows",!0);S(R,j,Q,"↾","\\upharpoonright",!0);S(R,j,Q,"⇂","\\downharpoonright",!0);S(R,j,Q,"⇝","\\rightsquigarrow",!0);S(R,j,Q,"⇝","\\leadsto");S(R,j,Q,"⇛","\\Rrightarrow",!0);S(R,j,Q,"↾","\\restriction");S(R,O,se,"‘","`");S(R,O,se,"$","\\$");S(He,O,se,"$","\\$");S(He,O,se,"$","\\textdollar");S(R,O,se,"%","\\%");S(He,O,se,"%","\\%");S(R,O,se,"_","\\_");S(He,O,se,"_","\\_");S(He,O,se,"_","\\textunderscore");S(R,O,se,"∠","\\angle",!0);S(R,O,se,"∞","\\infty",!0);S(R,O,se,"′","\\prime");S(R,O,se,"△","\\triangle");S(R,O,se,"Γ","\\Gamma",!0);S(R,O,se,"Δ","\\Delta",!0);S(R,O,se,"Θ","\\Theta",!0);S(R,O,se,"Λ","\\Lambda",!0);S(R,O,se,"Ξ","\\Xi",!0);S(R,O,se,"Π","\\Pi",!0);S(R,O,se,"Σ","\\Sigma",!0);S(R,O,se,"Υ","\\Upsilon",!0);S(R,O,se,"Φ","\\Phi",!0);S(R,O,se,"Ψ","\\Psi",!0);S(R,O,se,"Ω","\\Omega",!0);S(R,O,se,"A","Α");S(R,O,se,"B","Β");S(R,O,se,"E","Ε");S(R,O,se,"Z","Ζ");S(R,O,se,"H","Η");S(R,O,se,"I","Ι");S(R,O,se,"K","Κ");S(R,O,se,"M","Μ");S(R,O,se,"N","Ν");S(R,O,se,"O","Ο");S(R,O,se,"P","Ρ");S(R,O,se,"T","Τ");S(R,O,se,"X","Χ");S(R,O,se,"¬","\\neg",!0);S(R,O,se,"¬","\\lnot");S(R,O,se,"⊤","\\top");S(R,O,se,"⊥","\\bot");S(R,O,se,"∅","\\emptyset");S(R,j,se,"∅","\\varnothing");S(R,O,St,"α","\\alpha",!0);S(R,O,St,"β","\\beta",!0);S(R,O,St,"γ","\\gamma",!0);S(R,O,St,"δ","\\delta",!0);S(R,O,St,"ϵ","\\epsilon",!0);S(R,O,St,"ζ","\\zeta",!0);S(R,O,St,"η","\\eta",!0);S(R,O,St,"θ","\\theta",!0);S(R,O,St,"ι","\\iota",!0);S(R,O,St,"κ","\\kappa",!0);S(R,O,St,"λ","\\lambda",!0);S(R,O,St,"μ","\\mu",!0);S(R,O,St,"ν","\\nu",!0);S(R,O,St,"ξ","\\xi",!0);S(R,O,St,"ο","\\omicron",!0);S(R,O,St,"π","\\pi",!0);S(R,O,St,"ρ","\\rho",!0);S(R,O,St,"σ","\\sigma",!0);S(R,O,St,"τ","\\tau",!0);S(R,O,St,"υ","\\upsilon",!0);S(R,O,St,"ϕ","\\phi",!0);S(R,O,St,"χ","\\chi",!0);S(R,O,St,"ψ","\\psi",!0);S(R,O,St,"ω","\\omega",!0);S(R,O,St,"ε","\\varepsilon",!0);S(R,O,St,"ϑ","\\vartheta",!0);S(R,O,St,"ϖ","\\varpi",!0);S(R,O,St,"ϱ","\\varrho",!0);S(R,O,St,"ς","\\varsigma",!0);S(R,O,St,"φ","\\varphi",!0);S(R,O,ct,"∗","*",!0);S(R,O,ct,"+","+");S(R,O,ct,"−","-",!0);S(R,O,ct,"⋅","\\cdot",!0);S(R,O,ct,"∘","\\circ",!0);S(R,O,ct,"÷","\\div",!0);S(R,O,ct,"±","\\pm",!0);S(R,O,ct,"×","\\times",!0);S(R,O,ct,"∩","\\cap",!0);S(R,O,ct,"∪","\\cup",!0);S(R,O,ct,"∖","\\setminus",!0);S(R,O,ct,"∧","\\land");S(R,O,ct,"∨","\\lor");S(R,O,ct,"∧","\\wedge",!0);S(R,O,ct,"∨","\\vee",!0);S(R,O,se,"√","\\surd");S(R,O,Yr,"⟨","\\langle",!0);S(R,O,Yr,"∣","\\lvert");S(R,O,Yr,"∥","\\lVert");S(R,O,Er,"?","?");S(R,O,Er,"!","!");S(R,O,Er,"⟩","\\rangle",!0);S(R,O,Er,"∣","\\rvert");S(R,O,Er,"∥","\\rVert");S(R,O,Q,"=","=");S(R,O,Q,":",":");S(R,O,Q,"≈","\\approx",!0);S(R,O,Q,"≅","\\cong",!0);S(R,O,Q,"≥","\\ge");S(R,O,Q,"≥","\\geq",!0);S(R,O,Q,"←","\\gets");S(R,O,Q,">","\\gt",!0);S(R,O,Q,"∈","\\in",!0);S(R,O,Q,"","\\@not");S(R,O,Q,"⊂","\\subset",!0);S(R,O,Q,"⊃","\\supset",!0);S(R,O,Q,"⊆","\\subseteq",!0);S(R,O,Q,"⊇","\\supseteq",!0);S(R,j,Q,"⊈","\\nsubseteq",!0);S(R,j,Q,"⊉","\\nsupseteq",!0);S(R,O,Q,"⊨","\\models");S(R,O,Q,"←","\\leftarrow",!0);S(R,O,Q,"≤","\\le");S(R,O,Q,"≤","\\leq",!0);S(R,O,Q,"<","\\lt",!0);S(R,O,Q,"→","\\rightarrow",!0);S(R,O,Q,"→","\\to");S(R,j,Q,"≱","\\ngeq",!0);S(R,j,Q,"≰","\\nleq",!0);S(R,O,Gs," ","\\ ");S(R,O,Gs," ","\\space");S(R,O,Gs," ","\\nobreakspace");S(He,O,Gs," ","\\ ");S(He,O,Gs," "," ");S(He,O,Gs," ","\\space");S(He,O,Gs," ","\\nobreakspace");S(R,O,Gs,null,"\\nobreak");S(R,O,Gs,null,"\\allowbreak");S(R,O,Yh,",",",");S(R,O,Yh,";",";");S(R,j,ct,"⊼","\\barwedge",!0);S(R,j,ct,"⊻","\\veebar",!0);S(R,O,ct,"⊙","\\odot",!0);S(R,O,ct,"⊕","\\oplus",!0);S(R,O,ct,"⊗","\\otimes",!0);S(R,O,se,"∂","\\partial",!0);S(R,O,ct,"⊘","\\oslash",!0);S(R,j,ct,"⊚","\\circledcirc",!0);S(R,j,ct,"⊡","\\boxdot",!0);S(R,O,ct,"△","\\bigtriangleup");S(R,O,ct,"▽","\\bigtriangledown");S(R,O,ct,"†","\\dagger");S(R,O,ct,"⋄","\\diamond");S(R,O,ct,"⋆","\\star");S(R,O,ct,"◃","\\triangleleft");S(R,O,ct,"▹","\\triangleright");S(R,O,Yr,"{","\\{");S(He,O,se,"{","\\{");S(He,O,se,"{","\\textbraceleft");S(R,O,Er,"}","\\}");S(He,O,se,"}","\\}");S(He,O,se,"}","\\textbraceright");S(R,O,Yr,"{","\\lbrace");S(R,O,Er,"}","\\rbrace");S(R,O,Yr,"[","\\lbrack",!0);S(He,O,se,"[","\\lbrack",!0);S(R,O,Er,"]","\\rbrack",!0);S(He,O,se,"]","\\rbrack",!0);S(R,O,Yr,"(","\\lparen",!0);S(R,O,Er,")","\\rparen",!0);S(He,O,se,"<","\\textless",!0);S(He,O,se,">","\\textgreater",!0);S(R,O,Yr,"⌊","\\lfloor",!0);S(R,O,Er,"⌋","\\rfloor",!0);S(R,O,Yr,"⌈","\\lceil",!0);S(R,O,Er,"⌉","\\rceil",!0);S(R,O,se,"\\","\\backslash");S(R,O,se,"∣","|");S(R,O,se,"∣","\\vert");S(He,O,se,"|","\\textbar",!0);S(R,O,se,"∥","\\|");S(R,O,se,"∥","\\Vert");S(He,O,se,"∥","\\textbardbl");S(He,O,se,"~","\\textasciitilde");S(He,O,se,"\\","\\textbackslash");S(He,O,se,"^","\\textasciicircum");S(R,O,Q,"↑","\\uparrow",!0);S(R,O,Q,"⇑","\\Uparrow",!0);S(R,O,Q,"↓","\\downarrow",!0);S(R,O,Q,"⇓","\\Downarrow",!0);S(R,O,Q,"↕","\\updownarrow",!0);S(R,O,Q,"⇕","\\Updownarrow",!0);S(R,O,Fn,"∐","\\coprod");S(R,O,Fn,"⋁","\\bigvee");S(R,O,Fn,"⋀","\\bigwedge");S(R,O,Fn,"⨄","\\biguplus");S(R,O,Fn,"⋂","\\bigcap");S(R,O,Fn,"⋃","\\bigcup");S(R,O,Fn,"∫","\\int");S(R,O,Fn,"∫","\\intop");S(R,O,Fn,"∬","\\iint");S(R,O,Fn,"∭","\\iiint");S(R,O,Fn,"∏","\\prod");S(R,O,Fn,"∑","\\sum");S(R,O,Fn,"⨂","\\bigotimes");S(R,O,Fn,"⨁","\\bigoplus");S(R,O,Fn,"⨀","\\bigodot");S(R,O,Fn,"∮","\\oint");S(R,O,Fn,"∯","\\oiint");S(R,O,Fn,"∰","\\oiiint");S(R,O,Fn,"⨆","\\bigsqcup");S(R,O,Fn,"∫","\\smallint");S(He,O,nc,"…","\\textellipsis");S(R,O,nc,"…","\\mathellipsis");S(He,O,nc,"…","\\ldots",!0);S(R,O,nc,"…","\\ldots",!0);S(R,O,nc,"⋯","\\@cdots",!0);S(R,O,nc,"⋱","\\ddots",!0);S(R,O,se,"⋮","\\varvdots");S(R,O,En,"ˊ","\\acute");S(R,O,En,"ˋ","\\grave");S(R,O,En,"¨","\\ddot");S(R,O,En,"~","\\tilde");S(R,O,En,"ˉ","\\bar");S(R,O,En,"˘","\\breve");S(R,O,En,"ˇ","\\check");S(R,O,En,"^","\\hat");S(R,O,En,"⃗","\\vec");S(R,O,En,"˙","\\dot");S(R,O,En,"˚","\\mathring");S(R,O,St,"","\\@imath");S(R,O,St,"","\\@jmath");S(R,O,se,"ı","ı");S(R,O,se,"ȷ","ȷ");S(He,O,se,"ı","\\i",!0);S(He,O,se,"ȷ","\\j",!0);S(He,O,se,"ß","\\ss",!0);S(He,O,se,"æ","\\ae",!0);S(He,O,se,"œ","\\oe",!0);S(He,O,se,"ø","\\o",!0);S(He,O,se,"Æ","\\AE",!0);S(He,O,se,"Œ","\\OE",!0);S(He,O,se,"Ø","\\O",!0);S(He,O,En,"ˊ","\\'");S(He,O,En,"ˋ","\\`");S(He,O,En,"ˆ","\\^");S(He,O,En,"˜","\\~");S(He,O,En,"ˉ","\\=");S(He,O,En,"˘","\\u");S(He,O,En,"˙","\\.");S(He,O,En,"¸","\\c");S(He,O,En,"˚","\\r");S(He,O,En,"ˇ","\\v");S(He,O,En,"¨",'\\"');S(He,O,En,"˝","\\H");S(He,O,En,"◯","\\textcircled");var zN={"--":!0,"---":!0,"``":!0,"''":!0};S(He,O,se,"–","--",!0);S(He,O,se,"–","\\textendash");S(He,O,se,"—","---",!0);S(He,O,se,"—","\\textemdash");S(He,O,se,"‘","`",!0);S(He,O,se,"‘","\\textquoteleft");S(He,O,se,"’","'",!0);S(He,O,se,"’","\\textquoteright");S(He,O,se,"“","``",!0);S(He,O,se,"“","\\textquotedblleft");S(He,O,se,"”","''",!0);S(He,O,se,"”","\\textquotedblright");S(R,O,se,"°","\\degree",!0);S(He,O,se,"°","\\degree");S(He,O,se,"°","\\textdegree",!0);S(R,O,se,"£","\\pounds");S(R,O,se,"£","\\mathsterling",!0);S(He,O,se,"£","\\pounds");S(He,O,se,"£","\\textsterling",!0);S(R,j,se,"✠","\\maltese");S(He,j,se,"✠","\\maltese");var xC='0123456789/@."';for(var D0=0;D00)return Si(s,d,i,t,o.concat(u));if(l){var m,f;if(l==="boldsymbol"){var g=LJe(s,i,t,o,r);m=g.fontName,f=[g.fontClass]}else a?(m=qN[l].fontName,f=[l]):(m=lu(l,t.fontWeight,t.fontShape),f=[l,t.fontWeight,t.fontShape]);if($h(s,m,i).metrics)return Si(s,m,i,t,o.concat(f));if(zN.hasOwnProperty(s)&&m.slice(0,10)==="Typewriter"){for(var h=[],v=0;v{if(Mo(n.classes)!==Mo(e.classes)||n.skew!==e.skew||n.maxFontSize!==e.maxFontSize)return!1;if(n.classes.length===1){var t=n.classes[0];if(t==="mbin"||t==="mord")return!1}for(var r in n.style)if(n.style.hasOwnProperty(r)&&n.style[r]!==e.style[r])return!1;for(var i in e.style)if(e.style.hasOwnProperty(i)&&n.style[i]!==e.style[i])return!1;return!0},UJe=n=>{for(var e=0;et&&(t=o.height),o.depth>r&&(r=o.depth),o.maxFontSize>i&&(i=o.maxFontSize)}e.height=t,e.depth=r,e.maxFontSize=i},Tr=function(e,t,r,i){var s=new kd(e,t,r,i);return qv(s),s},VN=(n,e,t,r)=>new kd(n,e,t,r),BJe=function(e,t,r){var i=Tr([e],[],t);return i.height=Math.max(r||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),i.style.borderBottomWidth=Je(i.height),i.maxFontSize=1,i},GJe=function(e,t,r,i){var s=new Hv(e,t,r,i);return qv(s),s},HN=function(e){var t=new Nd(e);return qv(t),t},zJe=function(e,t){return e instanceof Nd?Tr([],[e],t):e},VJe=function(e){if(e.positionType==="individualShift"){for(var t=e.children,r=[t[0]],i=-t[0].shift-t[0].elem.depth,s=i,o=1;o{var t=Tr(["mspace"],[],e),r=Tn(n,e);return t.style.marginRight=Je(r),t},lu=function(e,t,r){var i="";switch(e){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=e}var s;return t==="textbf"&&r==="textit"?s="BoldItalic":t==="textbf"?s="Bold":t==="textit"?s="Italic":s="Regular",i+"-"+s},qN={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},YN={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},YJe=function(e,t){var[r,i,s]=YN[e],o=new No(r),a=new Os([o],{width:Je(i),height:Je(s),style:"width:"+Je(i),viewBox:"0 0 "+1e3*i+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),l=VN(["overlay"],[a],t);return l.height=s,l.style.height=Je(s),l.style.width=Je(i),l},ve={fontMap:qN,makeSymbol:Si,mathsym:DJe,makeSpan:Tr,makeSvgSpan:VN,makeLineSpan:BJe,makeAnchor:GJe,makeFragment:HN,wrapFragment:zJe,makeVList:HJe,makeOrd:PJe,makeGlue:qJe,staticSvg:YJe,svgData:YN,tryCombineChars:UJe},xn={number:3,unit:"mu"},qo={number:4,unit:"mu"},ds={number:5,unit:"mu"},$Je={mord:{mop:xn,mbin:qo,mrel:ds,minner:xn},mop:{mord:xn,mop:xn,mrel:ds,minner:xn},mbin:{mord:qo,mop:qo,mopen:qo,minner:qo},mrel:{mord:ds,mop:ds,mopen:ds,minner:ds},mopen:{},mclose:{mop:xn,mbin:qo,mrel:ds,minner:xn},mpunct:{mord:xn,mop:xn,mrel:ds,mopen:xn,mclose:xn,mpunct:xn,minner:xn},minner:{mord:xn,mop:xn,mbin:qo,mrel:ds,mopen:xn,mpunct:xn,minner:xn}},WJe={mord:{mop:xn},mop:{mord:xn,mop:xn},mbin:{},mrel:{},mopen:{},mclose:{mop:xn},mpunct:{},minner:{mop:xn}},$N={},Bp={},Gp={};function st(n){for(var{type:e,names:t,props:r,handler:i,htmlBuilder:s,mathmlBuilder:o}=n,a={type:e,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},l=0;l{var b=v.classes[0],_=h.classes[0];b==="mbin"&&Et.contains(jJe,_)?v.classes[0]="mord":_==="mbin"&&Et.contains(KJe,b)&&(h.classes[0]="mord")},{node:m},f,g),RC(s,(h,v)=>{var b=p1(v),_=p1(h),y=b&&_?h.hasClass("mtight")?WJe[b][_]:$Je[b][_]:null;if(y)return ve.makeGlue(y,d)},{node:m},f,g),s},RC=function n(e,t,r,i,s){i&&e.push(i);for(var o=0;of=>{e.splice(m+1,0,f),o++})(o)}i&&e.pop()},WN=function(e){return e instanceof Nd||e instanceof Hv||e instanceof kd&&e.hasClass("enclosing")?e:null},ZJe=function n(e,t){var r=WN(e);if(r){var i=r.children;if(i.length){if(t==="right")return n(i[i.length-1],"right");if(t==="left")return n(i[0],"left")}}return e},p1=function(e,t){return e?(t&&(e=ZJe(e,t)),XJe[e.classes[0]]||null):null},md=function(e,t){var r=["nulldelimiter"].concat(e.baseSizingClasses());return Ds(t.concat(r))},Zt=function(e,t,r){if(!e)return Ds();if(Bp[e.type]){var i=Bp[e.type](e,t);if(r&&t.size!==r.size){i=Ds(t.sizingClasses(r),[i],t);var s=t.sizeMultiplier/r.sizeMultiplier;i.height*=s,i.depth*=s}return i}else throw new Qe("Got group of unknown type: '"+e.type+"'")};function cu(n,e){var t=Ds(["base"],n,e),r=Ds(["strut"]);return r.style.height=Je(t.height+t.depth),t.depth&&(r.style.verticalAlign=Je(-t.depth)),t.children.unshift(r),t}function h1(n,e){var t=null;n.length===1&&n[0].type==="tag"&&(t=n[0].tag,n=n[0].body);var r=zn(n,e,"root"),i;r.length===2&&r[1].hasClass("tag")&&(i=r.pop());for(var s=[],o=[],a=0;a0&&(s.push(cu(o,e)),o=[]),s.push(r[a]));o.length>0&&s.push(cu(o,e));var d;t?(d=cu(zn(t,e,!0)),d.classes=["tag"],s.push(d)):i&&s.push(i);var u=Ds(["katex-html"],s);if(u.setAttribute("aria-hidden","true"),d){var m=d.children[0];m.style.height=Je(u.height+u.depth),u.depth&&(m.style.verticalAlign=Je(-u.depth))}return u}function KN(n){return new Nd(n)}class Zr{constructor(e,t,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=r||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=Mo(this.classes));for(var r=0;r0&&(e+=' class ="'+Et.escape(Mo(this.classes))+'"'),e+=">";for(var r=0;r",e}toText(){return this.children.map(e=>e.toText()).join("")}}class Hc{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return Et.escape(this.toText())}toText(){return this.text}}class JJe{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character=" ":e>=.1666&&e<=.1667?this.character=" ":e>=.2222&&e<=.2223?this.character=" ":e>=.2777&&e<=.2778?this.character="  ":e>=-.05556&&e<=-.05555?this.character=" ⁣":e>=-.1667&&e<=-.1666?this.character=" ⁣":e>=-.2223&&e<=-.2222?this.character=" ⁣":e>=-.2778&&e<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",Je(this.width)),e}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}var Ke={MathNode:Zr,TextNode:Hc,SpaceNode:JJe,newDocumentFragment:KN},mi=function(e,t,r){return _n[t][e]&&_n[t][e].replace&&e.charCodeAt(0)!==55349&&!(zN.hasOwnProperty(e)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(e=_n[t][e].replace),new Ke.TextNode(e)},Yv=function(e){return e.length===1?e[0]:new Ke.MathNode("mrow",e)},$v=function(e,t){if(t.fontFamily==="texttt")return"monospace";if(t.fontFamily==="textsf")return t.fontShape==="textit"&&t.fontWeight==="textbf"?"sans-serif-bold-italic":t.fontShape==="textit"?"sans-serif-italic":t.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(t.fontShape==="textit"&&t.fontWeight==="textbf")return"bold-italic";if(t.fontShape==="textit")return"italic";if(t.fontWeight==="textbf")return"bold";var r=t.font;if(!r||r==="mathnormal")return null;var i=e.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return e.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var s=e.text;if(Et.contains(["\\imath","\\jmath"],s))return null;_n[i][s]&&_n[i][s].replace&&(s=_n[i][s].replace);var o=ve.fontMap[r].fontName;return Vv(s,o,i)?ve.fontMap[r].variant:null},Or=function(e,t,r){if(e.length===1){var i=fn(e[0],t);return r&&i instanceof Zr&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var s=[],o,a=0;a0&&(m.text=m.text.slice(0,1)+"̸"+m.text.slice(1),s.pop())}}}s.push(l),o=l}return s},ko=function(e,t,r){return Yv(Or(e,t,r))},fn=function(e,t){if(!e)return new Ke.MathNode("mrow");if(Gp[e.type]){var r=Gp[e.type](e,t);return r}else throw new Qe("Got group of unknown type: '"+e.type+"'")};function MC(n,e,t,r,i){var s=Or(n,t),o;s.length===1&&s[0]instanceof Zr&&Et.contains(["mrow","mtable"],s[0].type)?o=s[0]:o=new Ke.MathNode("mrow",s);var a=new Ke.MathNode("annotation",[new Ke.TextNode(e)]);a.setAttribute("encoding","application/x-tex");var l=new Ke.MathNode("semantics",[o,a]),d=new Ke.MathNode("math",[l]);d.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&d.setAttribute("display","block");var u=i?"katex":"katex-mathml";return ve.makeSpan([u],[d])}var jN=function(e){return new ys({style:e.displayMode?xt.DISPLAY:xt.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},QN=function(e,t){if(t.displayMode){var r=["katex-display"];t.leqno&&r.push("leqno"),t.fleqn&&r.push("fleqn"),e=ve.makeSpan(r,[e])}return e},eet=function(e,t,r){var i=jN(r),s;if(r.output==="mathml")return MC(e,t,i,r.displayMode,!0);if(r.output==="html"){var o=h1(e,i);s=ve.makeSpan(["katex"],[o])}else{var a=MC(e,t,i,r.displayMode,!1),l=h1(e,i);s=ve.makeSpan(["katex"],[a,l])}return QN(s,r)},tet=function(e,t,r){var i=jN(r),s=h1(e,i),o=ve.makeSpan(["katex"],[s]);return QN(o,r)},net={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},ret=function(e){var t=new Ke.MathNode("mo",[new Ke.TextNode(net[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},iet={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},set=function(e){return e.type==="ordgroup"?e.body.length:1},oet=function(e,t){function r(){var a=4e5,l=e.label.slice(1);if(Et.contains(["widehat","widecheck","widetilde","utilde"],l)){var d=e,u=set(d.base),m,f,g;if(u>5)l==="widehat"||l==="widecheck"?(m=420,a=2364,g=.42,f=l+"4"):(m=312,a=2340,g=.34,f="tilde4");else{var h=[1,1,2,2,3,3][u];l==="widehat"||l==="widecheck"?(a=[0,1062,2364,2364,2364][h],m=[0,239,300,360,420][h],g=[0,.24,.3,.3,.36,.42][h],f=l+h):(a=[0,600,1033,2339,2340][h],m=[0,260,286,306,312][h],g=[0,.26,.286,.3,.306,.34][h],f="tilde"+h)}var v=new No(f),b=new Os([v],{width:"100%",height:Je(g),viewBox:"0 0 "+a+" "+m,preserveAspectRatio:"none"});return{span:ve.makeSvgSpan([],[b],t),minWidth:0,height:g}}else{var _=[],y=iet[l],[E,x,A]=y,w=A/1e3,N=E.length,L,C;if(N===1){var k=y[3];L=["hide-tail"],C=[k]}else if(N===2)L=["halfarrow-left","halfarrow-right"],C=["xMinYMin","xMaxYMin"];else if(N===3)L=["brace-left","brace-center","brace-right"],C=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support - `+N+" children.");for(var H=0;H0&&(i.style.minWidth=Je(s)),i},aet=function(e,t,r,i,s){var o,a=e.height+e.depth+r+i;if(/fbox|color|angl/.test(t)){if(o=ve.makeSpan(["stretchy",t],[],s),t==="fbox"){var l=s.color&&s.getColor();l&&(o.style.borderColor=l)}}else{var d=[];/^[bx]cancel$/.test(t)&&d.push(new d1({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&d.push(new d1({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var u=new Os(d,{width:"100%",height:Je(a)});o=ve.makeSvgSpan([],[u],s)}return o.height=a,o.style.height=Je(a),o},Ls={encloseSpan:aet,mathMLnode:ret,svgSpan:oet};function Ut(n,e){if(!n||n.type!==e)throw new Error("Expected node of type "+e+", but got "+(n?"node of type "+n.type:String(n)));return n}function Wv(n){var e=Wh(n);if(!e)throw new Error("Expected node of symbol group type, but got "+(n?"node of type "+n.type:String(n)));return e}function Wh(n){return n&&(n.type==="atom"||IJe.hasOwnProperty(n.type))?n:null}var Kv=(n,e)=>{var t,r,i;n&&n.type==="supsub"?(r=Ut(n.base,"accent"),t=r.base,n.base=t,i=NJe(Zt(n,e)),n.base=r):(r=Ut(n,"accent"),t=r.base);var s=Zt(t,e.havingCrampedStyle()),o=r.isShifty&&Et.isCharacterBox(t),a=0;if(o){var l=Et.getBaseElem(t),d=Zt(l,e.havingCrampedStyle());a=SC(d).skew}var u=r.label==="\\c",m=u?s.height+s.depth:Math.min(s.height,e.fontMetrics().xHeight),f;if(r.isStretchy)f=Ls.svgSpan(r,e),f=ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:f,wrapperClasses:["svg-align"],wrapperStyle:a>0?{width:"calc(100% - "+Je(2*a)+")",marginLeft:Je(2*a)}:void 0}]},e);else{var g,h;r.label==="\\vec"?(g=ve.staticSvg("vec",e),h=ve.svgData.vec[1]):(g=ve.makeOrd({mode:r.mode,text:r.label},e,"textord"),g=SC(g),g.italic=0,h=g.width,u&&(m+=g.depth)),f=ve.makeSpan(["accent-body"],[g]);var v=r.label==="\\textcircled";v&&(f.classes.push("accent-full"),m=s.height);var b=a;v||(b-=h/2),f.style.left=Je(b),r.label==="\\textcircled"&&(f.style.top=".2em"),f=ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-m},{type:"elem",elem:f}]},e)}var _=ve.makeSpan(["mord","accent"],[f],e);return i?(i.children[0]=_,i.height=Math.max(_.height,i.height),i.classes[0]="mord",i):_},XN=(n,e)=>{var t=n.isStretchy?Ls.mathMLnode(n.label):new Ke.MathNode("mo",[mi(n.label,n.mode)]),r=new Ke.MathNode("mover",[fn(n.base,e),t]);return r.setAttribute("accent","true"),r},cet=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(n=>"\\"+n).join("|"));st({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(n,e)=>{var t=zp(e[0]),r=!cet.test(n.funcName),i=!r||n.funcName==="\\widehat"||n.funcName==="\\widetilde"||n.funcName==="\\widecheck";return{type:"accent",mode:n.parser.mode,label:n.funcName,isStretchy:r,isShifty:i,base:t}},htmlBuilder:Kv,mathmlBuilder:XN});st({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(n,e)=>{var t=e[0],r=n.parser.mode;return r==="math"&&(n.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+n.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:n.funcName,isStretchy:!1,isShifty:!0,base:t}},htmlBuilder:Kv,mathmlBuilder:XN});st({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(n,e)=>{var{parser:t,funcName:r}=n,i=e[0];return{type:"accentUnder",mode:t.mode,label:r,base:i}},htmlBuilder:(n,e)=>{var t=Zt(n.base,e),r=Ls.svgSpan(n,e),i=n.label==="\\utilde"?.12:0,s=ve.makeVList({positionType:"top",positionData:t.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:t}]},e);return ve.makeSpan(["mord","accentunder"],[s],e)},mathmlBuilder:(n,e)=>{var t=Ls.mathMLnode(n.label),r=new Ke.MathNode("munder",[fn(n.base,e),t]);return r.setAttribute("accentunder","true"),r}});var du=n=>{var e=new Ke.MathNode("mpadded",n?[n]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};st({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(n,e,t){var{parser:r,funcName:i}=n;return{type:"xArrow",mode:r.mode,label:i,body:e[0],below:t[0]}},htmlBuilder(n,e){var t=e.style,r=e.havingStyle(t.sup()),i=ve.wrapFragment(Zt(n.body,r,e),e),s=n.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(s+"-arrow-pad");var o;n.below&&(r=e.havingStyle(t.sub()),o=ve.wrapFragment(Zt(n.below,r,e),e),o.classes.push(s+"-arrow-pad"));var a=Ls.svgSpan(n,e),l=-e.fontMetrics().axisHeight+.5*a.height,d=-e.fontMetrics().axisHeight-.5*a.height-.111;(i.depth>.25||n.label==="\\xleftequilibrium")&&(d-=i.depth);var u;if(o){var m=-e.fontMetrics().axisHeight+o.height+.5*a.height+.111;u=ve.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:d},{type:"elem",elem:a,shift:l},{type:"elem",elem:o,shift:m}]},e)}else u=ve.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:d},{type:"elem",elem:a,shift:l}]},e);return u.children[0].children[0].children[1].classes.push("svg-align"),ve.makeSpan(["mrel","x-arrow"],[u],e)},mathmlBuilder(n,e){var t=Ls.mathMLnode(n.label);t.setAttribute("minsize",n.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(n.body){var i=du(fn(n.body,e));if(n.below){var s=du(fn(n.below,e));r=new Ke.MathNode("munderover",[t,s,i])}else r=new Ke.MathNode("mover",[t,i])}else if(n.below){var o=du(fn(n.below,e));r=new Ke.MathNode("munder",[t,o])}else r=du(),r=new Ke.MathNode("mover",[t,r]);return r}});var det=ve.makeSpan;function ZN(n,e){var t=zn(n.body,e,!0);return det([n.mclass],t,e)}function JN(n,e){var t,r=Or(n.body,e);return n.mclass==="minner"?t=new Ke.MathNode("mpadded",r):n.mclass==="mord"?n.isCharacterBox?(t=r[0],t.type="mi"):t=new Ke.MathNode("mi",r):(n.isCharacterBox?(t=r[0],t.type="mo"):t=new Ke.MathNode("mo",r),n.mclass==="mbin"?(t.attributes.lspace="0.22em",t.attributes.rspace="0.22em"):n.mclass==="mpunct"?(t.attributes.lspace="0em",t.attributes.rspace="0.17em"):n.mclass==="mopen"||n.mclass==="mclose"?(t.attributes.lspace="0em",t.attributes.rspace="0em"):n.mclass==="minner"&&(t.attributes.lspace="0.0556em",t.attributes.width="+0.1111em")),t}st({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(n,e){var{parser:t,funcName:r}=n,i=e[0];return{type:"mclass",mode:t.mode,mclass:"m"+r.slice(5),body:kn(i),isCharacterBox:Et.isCharacterBox(i)}},htmlBuilder:ZN,mathmlBuilder:JN});var Kh=n=>{var e=n.type==="ordgroup"&&n.body.length?n.body[0]:n;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};st({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(n,e){var{parser:t}=n;return{type:"mclass",mode:t.mode,mclass:Kh(e[0]),body:kn(e[1]),isCharacterBox:Et.isCharacterBox(e[1])}}});st({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(n,e){var{parser:t,funcName:r}=n,i=e[1],s=e[0],o;r!=="\\stackrel"?o=Kh(i):o="mrel";var a={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:kn(i)},l={type:"supsub",mode:s.mode,base:a,sup:r==="\\underset"?null:s,sub:r==="\\underset"?s:null};return{type:"mclass",mode:t.mode,mclass:o,body:[l],isCharacterBox:Et.isCharacterBox(l)}},htmlBuilder:ZN,mathmlBuilder:JN});st({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(n,e){var{parser:t}=n;return{type:"pmb",mode:t.mode,mclass:Kh(e[0]),body:kn(e[0])}},htmlBuilder(n,e){var t=zn(n.body,e,!0),r=ve.makeSpan([n.mclass],t,e);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(n,e){var t=Or(n.body,e),r=new Ke.MathNode("mstyle",t);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var uet={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},NC=()=>({type:"styling",body:[],mode:"math",style:"display"}),kC=n=>n.type==="textord"&&n.text==="@",pet=(n,e)=>(n.type==="mathord"||n.type==="atom")&&n.text===e;function het(n,e,t){var r=uet[n];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return t.callFunction(r,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var i=t.callFunction("\\\\cdleft",[e[0]],[]),s={type:"atom",text:r,mode:"math",family:"rel"},o=t.callFunction("\\Big",[s],[]),a=t.callFunction("\\\\cdright",[e[1]],[]),l={type:"ordgroup",mode:"math",body:[i,o,a]};return t.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return t.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var d={type:"textord",text:"\\Vert",mode:"math"};return t.callFunction("\\Big",[d],[])}default:return{type:"textord",text:" ",mode:"math"}}}function met(n){var e=[];for(n.gullet.beginGroup(),n.gullet.macros.set("\\cr","\\\\\\relax"),n.gullet.beginGroup();;){e.push(n.parseExpression(!1,"\\\\")),n.gullet.endGroup(),n.gullet.beginGroup();var t=n.fetch().text;if(t==="&"||t==="\\\\")n.consume();else if(t==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new Qe("Expected \\\\ or \\cr or \\end",n.nextToken)}for(var r=[],i=[r],s=0;s-1))if("<>AV".indexOf(d)>-1)for(var m=0;m<2;m++){for(var f=!0,g=l+1;gAV=|." after @',o[l]);var h=het(d,u,n),v={type:"styling",body:[h],mode:"math",style:"display"};r.push(v),a=NC()}s%2===0?r.push(a):r.shift(),r=[],i.push(r)}n.gullet.endGroup(),n.gullet.endGroup();var b=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:b,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}st({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(n,e){var{parser:t,funcName:r}=n;return{type:"cdlabel",mode:t.mode,side:r.slice(4),label:e[0]}},htmlBuilder(n,e){var t=e.havingStyle(e.style.sup()),r=ve.wrapFragment(Zt(n.label,t,e),e);return r.classes.push("cd-label-"+n.side),r.style.bottom=Je(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(n,e){var t=new Ke.MathNode("mrow",[fn(n.label,e)]);return t=new Ke.MathNode("mpadded",[t]),t.setAttribute("width","0"),n.side==="left"&&t.setAttribute("lspace","-1width"),t.setAttribute("voffset","0.7em"),t=new Ke.MathNode("mstyle",[t]),t.setAttribute("displaystyle","false"),t.setAttribute("scriptlevel","1"),t}});st({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(n,e){var{parser:t}=n;return{type:"cdlabelparent",mode:t.mode,fragment:e[0]}},htmlBuilder(n,e){var t=ve.wrapFragment(Zt(n.fragment,e),e);return t.classes.push("cd-vert-arrow"),t},mathmlBuilder(n,e){return new Ke.MathNode("mrow",[fn(n.fragment,e)])}});st({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(n,e){for(var{parser:t}=n,r=Ut(e[0],"ordgroup"),i=r.body,s="",o=0;o=1114111)throw new Qe("\\@char with invalid code point "+s);return l<=65535?d=String.fromCharCode(l):(l-=65536,d=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:t.mode,text:d}}});var ek=(n,e)=>{var t=zn(n.body,e.withColor(n.color),!1);return ve.makeFragment(t)},tk=(n,e)=>{var t=Or(n.body,e.withColor(n.color)),r=new Ke.MathNode("mstyle",t);return r.setAttribute("mathcolor",n.color),r};st({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(n,e){var{parser:t}=n,r=Ut(e[0],"color-token").color,i=e[1];return{type:"color",mode:t.mode,color:r,body:kn(i)}},htmlBuilder:ek,mathmlBuilder:tk});st({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(n,e){var{parser:t,breakOnTokenText:r}=n,i=Ut(e[0],"color-token").color;t.gullet.macros.set("\\current@color",i);var s=t.parseExpression(!0,r);return{type:"color",mode:t.mode,color:i,body:s}},htmlBuilder:ek,mathmlBuilder:tk});st({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(n,e,t){var{parser:r}=n,i=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,s=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:s,size:i&&Ut(i,"size").value}},htmlBuilder(n,e){var t=ve.makeSpan(["mspace"],[],e);return n.newLine&&(t.classes.push("newline"),n.size&&(t.style.marginTop=Je(Tn(n.size,e)))),t},mathmlBuilder(n,e){var t=new Ke.MathNode("mspace");return n.newLine&&(t.setAttribute("linebreak","newline"),n.size&&t.setAttribute("height",Je(Tn(n.size,e)))),t}});var m1={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},nk=n=>{var e=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new Qe("Expected a control sequence",n);return e},fet=n=>{var e=n.gullet.popToken();return e.text==="="&&(e=n.gullet.popToken(),e.text===" "&&(e=n.gullet.popToken())),e},rk=(n,e,t,r)=>{var i=n.gullet.macros.get(t.text);i==null&&(t.noexpand=!0,i={tokens:[t],numArgs:0,unexpandable:!n.gullet.isExpandable(t.text)}),n.gullet.macros.set(e,i,r)};st({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(n){var{parser:e,funcName:t}=n;e.consumeSpaces();var r=e.fetch();if(m1[r.text])return(t==="\\global"||t==="\\\\globallong")&&(r.text=m1[r.text]),Ut(e.parseFunction(),"internal");throw new Qe("Invalid token after macro prefix",r)}});st({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(n){var{parser:e,funcName:t}=n,r=e.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new Qe("Expected a control sequence",r);for(var s=0,o,a=[[]];e.gullet.future().text!=="{";)if(r=e.gullet.popToken(),r.text==="#"){if(e.gullet.future().text==="{"){o=e.gullet.future(),a[s].push("{");break}if(r=e.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new Qe('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==s+1)throw new Qe('Argument number "'+r.text+'" out of order');s++,a.push([])}else{if(r.text==="EOF")throw new Qe("Expected a macro definition");a[s].push(r.text)}var{tokens:l}=e.gullet.consumeArg();return o&&l.unshift(o),(t==="\\edef"||t==="\\xdef")&&(l=e.gullet.expandTokens(l),l.reverse()),e.gullet.macros.set(i,{tokens:l,numArgs:s,delimiters:a},t===m1[t]),{type:"internal",mode:e.mode}}});st({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(n){var{parser:e,funcName:t}=n,r=nk(e.gullet.popToken());e.gullet.consumeSpaces();var i=fet(e);return rk(e,r,i,t==="\\\\globallet"),{type:"internal",mode:e.mode}}});st({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(n){var{parser:e,funcName:t}=n,r=nk(e.gullet.popToken()),i=e.gullet.popToken(),s=e.gullet.popToken();return rk(e,r,s,t==="\\\\globalfuture"),e.gullet.pushToken(s),e.gullet.pushToken(i),{type:"internal",mode:e.mode}}});var Ic=function(e,t,r){var i=_n.math[e]&&_n.math[e].replace,s=Vv(i||e,t,r);if(!s)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return s},jv=function(e,t,r,i){var s=r.havingBaseStyle(t),o=ve.makeSpan(i.concat(s.sizingClasses(r)),[e],r),a=s.sizeMultiplier/r.sizeMultiplier;return o.height*=a,o.depth*=a,o.maxFontSize=s.sizeMultiplier,o},ik=function(e,t,r){var i=t.havingBaseStyle(r),s=(1-t.sizeMultiplier/i.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=Je(s),e.height-=s,e.depth+=s},get=function(e,t,r,i,s,o){var a=ve.makeSymbol(e,"Main-Regular",s,i),l=jv(a,t,i,o);return r&&ik(l,i,t),l},_et=function(e,t,r,i){return ve.makeSymbol(e,"Size"+t+"-Regular",r,i)},sk=function(e,t,r,i,s,o){var a=_et(e,t,s,i),l=jv(ve.makeSpan(["delimsizing","size"+t],[a],i),xt.TEXT,i,o);return r&&ik(l,i,xt.TEXT),l},U0=function(e,t,r){var i;t==="Size1-Regular"?i="delim-size1":i="delim-size4";var s=ve.makeSpan(["delimsizinginner",i],[ve.makeSpan([],[ve.makeSymbol(e,t,r)])]);return{type:"elem",elem:s}},B0=function(e,t,r){var i=$i["Size4-Regular"][e.charCodeAt(0)]?$i["Size4-Regular"][e.charCodeAt(0)][4]:$i["Size1-Regular"][e.charCodeAt(0)][4],s=new No("inner",SJe(e,Math.round(1e3*t))),o=new Os([s],{width:Je(i),height:Je(t),style:"width:"+Je(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),a=ve.makeSvgSpan([],[o],r);return a.height=t,a.style.height=Je(t),a.style.width=Je(i),{type:"elem",elem:a}},f1=.008,uu={type:"kern",size:-1*f1},bet=["|","\\lvert","\\rvert","\\vert"],vet=["\\|","\\lVert","\\rVert","\\Vert"],ok=function(e,t,r,i,s,o){var a,l,d,u,m="",f=0;a=d=u=e,l=null;var g="Size1-Regular";e==="\\uparrow"?d=u="⏐":e==="\\Uparrow"?d=u="‖":e==="\\downarrow"?a=d="⏐":e==="\\Downarrow"?a=d="‖":e==="\\updownarrow"?(a="\\uparrow",d="⏐",u="\\downarrow"):e==="\\Updownarrow"?(a="\\Uparrow",d="‖",u="\\Downarrow"):Et.contains(bet,e)?(d="∣",m="vert",f=333):Et.contains(vet,e)?(d="∥",m="doublevert",f=556):e==="["||e==="\\lbrack"?(a="⎡",d="⎢",u="⎣",g="Size4-Regular",m="lbrack",f=667):e==="]"||e==="\\rbrack"?(a="⎤",d="⎥",u="⎦",g="Size4-Regular",m="rbrack",f=667):e==="\\lfloor"||e==="⌊"?(d=a="⎢",u="⎣",g="Size4-Regular",m="lfloor",f=667):e==="\\lceil"||e==="⌈"?(a="⎡",d=u="⎢",g="Size4-Regular",m="lceil",f=667):e==="\\rfloor"||e==="⌋"?(d=a="⎥",u="⎦",g="Size4-Regular",m="rfloor",f=667):e==="\\rceil"||e==="⌉"?(a="⎤",d=u="⎥",g="Size4-Regular",m="rceil",f=667):e==="("||e==="\\lparen"?(a="⎛",d="⎜",u="⎝",g="Size4-Regular",m="lparen",f=875):e===")"||e==="\\rparen"?(a="⎞",d="⎟",u="⎠",g="Size4-Regular",m="rparen",f=875):e==="\\{"||e==="\\lbrace"?(a="⎧",l="⎨",u="⎩",d="⎪",g="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(a="⎫",l="⎬",u="⎭",d="⎪",g="Size4-Regular"):e==="\\lgroup"||e==="⟮"?(a="⎧",u="⎩",d="⎪",g="Size4-Regular"):e==="\\rgroup"||e==="⟯"?(a="⎫",u="⎭",d="⎪",g="Size4-Regular"):e==="\\lmoustache"||e==="⎰"?(a="⎧",u="⎭",d="⎪",g="Size4-Regular"):(e==="\\rmoustache"||e==="⎱")&&(a="⎫",u="⎩",d="⎪",g="Size4-Regular");var h=Ic(a,g,s),v=h.height+h.depth,b=Ic(d,g,s),_=b.height+b.depth,y=Ic(u,g,s),E=y.height+y.depth,x=0,A=1;if(l!==null){var w=Ic(l,g,s);x=w.height+w.depth,A=2}var N=v+E+x,L=Math.max(0,Math.ceil((t-N)/(A*_))),C=N+L*A*_,k=i.fontMetrics().axisHeight;r&&(k*=i.sizeMultiplier);var H=C/2-k,q=[];if(m.length>0){var ie=C-v-E,D=Math.round(C*1e3),$=xJe(m,Math.round(ie*1e3)),K=new No(m,$),B=(f/1e3).toFixed(3)+"em",Z=(D/1e3).toFixed(3)+"em",ce=new Os([K],{width:B,height:Z,viewBox:"0 0 "+f+" "+D}),ue=ve.makeSvgSpan([],[ce],i);ue.height=D/1e3,ue.style.width=B,ue.style.height=Z,q.push({type:"elem",elem:ue})}else{if(q.push(U0(u,g,s)),q.push(uu),l===null){var xe=C-v-E+2*f1;q.push(B0(d,xe,i))}else{var Ce=(C-v-E-x)/2+2*f1;q.push(B0(d,Ce,i)),q.push(uu),q.push(U0(l,g,s)),q.push(uu),q.push(B0(d,Ce,i))}q.push(uu),q.push(U0(a,g,s))}var me=i.havingBaseStyle(xt.TEXT),Ae=ve.makeVList({positionType:"bottom",positionData:H,children:q},me);return jv(ve.makeSpan(["delimsizing","mult"],[Ae],me),xt.TEXT,i,o)},G0=80,z0=.08,V0=function(e,t,r,i,s){var o=EJe(e,i,r),a=new No(e,o),l=new Os([a],{width:"400em",height:Je(t),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return ve.makeSvgSpan(["hide-tail"],[l],s)},yet=function(e,t){var r=t.havingBaseSizing(),i=dk("\\surd",e*r.sizeMultiplier,ck,r),s=r.sizeMultiplier,o=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),a,l=0,d=0,u=0,m;return i.type==="small"?(u=1e3+1e3*o+G0,e<1?s=1:e<1.4&&(s=.7),l=(1+o+z0)/s,d=(1+o)/s,a=V0("sqrtMain",l,u,o,t),a.style.minWidth="0.853em",m=.833/s):i.type==="large"?(u=(1e3+G0)*qc[i.size],d=(qc[i.size]+o)/s,l=(qc[i.size]+o+z0)/s,a=V0("sqrtSize"+i.size,l,u,o,t),a.style.minWidth="1.02em",m=1/s):(l=e+o+z0,d=e+o,u=Math.floor(1e3*e+o)+G0,a=V0("sqrtTall",l,u,o,t),a.style.minWidth="0.742em",m=1.056),a.height=d,a.style.height=Je(l),{span:a,advanceWidth:m,ruleWidth:(t.fontMetrics().sqrtRuleThickness+o)*s}},ak=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],Eet=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],lk=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],qc=[0,1.2,1.8,2.4,3],xet=function(e,t,r,i,s){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),Et.contains(ak,e)||Et.contains(lk,e))return sk(e,t,!1,r,i,s);if(Et.contains(Eet,e))return ok(e,qc[t],!1,r,i,s);throw new Qe("Illegal delimiter: '"+e+"'")},Tet=[{type:"small",style:xt.SCRIPTSCRIPT},{type:"small",style:xt.SCRIPT},{type:"small",style:xt.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],wet=[{type:"small",style:xt.SCRIPTSCRIPT},{type:"small",style:xt.SCRIPT},{type:"small",style:xt.TEXT},{type:"stack"}],ck=[{type:"small",style:xt.SCRIPTSCRIPT},{type:"small",style:xt.SCRIPT},{type:"small",style:xt.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Cet=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},dk=function(e,t,r,i){for(var s=Math.min(2,3-i.style.size),o=s;ot)return r[o]}return r[r.length-1]},uk=function(e,t,r,i,s,o){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var a;Et.contains(lk,e)?a=Tet:Et.contains(ak,e)?a=ck:a=wet;var l=dk(e,t,a,i);return l.type==="small"?get(e,l.style,r,i,s,o):l.type==="large"?sk(e,l.size,r,i,s,o):ok(e,t,r,i,s,o)},Aet=function(e,t,r,i,s,o){var a=i.fontMetrics().axisHeight*i.sizeMultiplier,l=901,d=5/i.fontMetrics().ptPerEm,u=Math.max(t-a,r+a),m=Math.max(u/500*l,2*u-d);return uk(e,m,!0,i,s,o)},Ms={sqrtImage:yet,sizedDelim:xet,sizeToMaxHeight:qc,customSizedDelim:uk,leftRightDelim:Aet},IC={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Ret=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function jh(n,e){var t=Wh(n);if(t&&Et.contains(Ret,t.text))return t;throw t?new Qe("Invalid delimiter '"+t.text+"' after '"+e.funcName+"'",n):new Qe("Invalid delimiter type '"+n.type+"'",n)}st({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(n,e)=>{var t=jh(e[0],n);return{type:"delimsizing",mode:n.parser.mode,size:IC[n.funcName].size,mclass:IC[n.funcName].mclass,delim:t.text}},htmlBuilder:(n,e)=>n.delim==="."?ve.makeSpan([n.mclass]):Ms.sizedDelim(n.delim,n.size,e,n.mode,[n.mclass]),mathmlBuilder:n=>{var e=[];n.delim!=="."&&e.push(mi(n.delim,n.mode));var t=new Ke.MathNode("mo",e);n.mclass==="mopen"||n.mclass==="mclose"?t.setAttribute("fence","true"):t.setAttribute("fence","false"),t.setAttribute("stretchy","true");var r=Je(Ms.sizeToMaxHeight[n.size]);return t.setAttribute("minsize",r),t.setAttribute("maxsize",r),t}});function OC(n){if(!n.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}st({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(n,e)=>{var t=n.parser.gullet.macros.get("\\current@color");if(t&&typeof t!="string")throw new Qe("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:n.parser.mode,delim:jh(e[0],n).text,color:t}}});st({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(n,e)=>{var t=jh(e[0],n),r=n.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var s=Ut(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:t.text,right:s.delim,rightColor:s.color}},htmlBuilder:(n,e)=>{OC(n);for(var t=zn(n.body,e,!0,["mopen","mclose"]),r=0,i=0,s=!1,o=0;o{OC(n);var t=Or(n.body,e);if(n.left!=="."){var r=new Ke.MathNode("mo",[mi(n.left,n.mode)]);r.setAttribute("fence","true"),t.unshift(r)}if(n.right!=="."){var i=new Ke.MathNode("mo",[mi(n.right,n.mode)]);i.setAttribute("fence","true"),n.rightColor&&i.setAttribute("mathcolor",n.rightColor),t.push(i)}return Yv(t)}});st({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(n,e)=>{var t=jh(e[0],n);if(!n.parser.leftrightDepth)throw new Qe("\\middle without preceding \\left",t);return{type:"middle",mode:n.parser.mode,delim:t.text}},htmlBuilder:(n,e)=>{var t;if(n.delim===".")t=md(e,[]);else{t=Ms.sizedDelim(n.delim,1,e,n.mode,[]);var r={delim:n.delim,options:e};t.isMiddle=r}return t},mathmlBuilder:(n,e)=>{var t=n.delim==="\\vert"||n.delim==="|"?mi("|","text"):mi(n.delim,n.mode),r=new Ke.MathNode("mo",[t]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var Qv=(n,e)=>{var t=ve.wrapFragment(Zt(n.body,e),e),r=n.label.slice(1),i=e.sizeMultiplier,s,o=0,a=Et.isCharacterBox(n.body);if(r==="sout")s=ve.makeSpan(["stretchy","sout"]),s.height=e.fontMetrics().defaultRuleThickness/i,o=-.5*e.fontMetrics().xHeight;else if(r==="phase"){var l=Tn({number:.6,unit:"pt"},e),d=Tn({number:.35,unit:"ex"},e),u=e.havingBaseSizing();i=i/u.sizeMultiplier;var m=t.height+t.depth+l+d;t.style.paddingLeft=Je(m/2+l);var f=Math.floor(1e3*m*i),g=vJe(f),h=new Os([new No("phase",g)],{width:"400em",height:Je(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});s=ve.makeSvgSpan(["hide-tail"],[h],e),s.style.height=Je(m),o=t.depth+l+d}else{/cancel/.test(r)?a||t.classes.push("cancel-pad"):r==="angl"?t.classes.push("anglpad"):t.classes.push("boxpad");var v=0,b=0,_=0;/box/.test(r)?(_=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),v=e.fontMetrics().fboxsep+(r==="colorbox"?0:_),b=v):r==="angl"?(_=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),v=4*_,b=Math.max(0,.25-t.depth)):(v=a?.2:0,b=v),s=Ls.encloseSpan(t,r,v,b,e),/fbox|boxed|fcolorbox/.test(r)?(s.style.borderStyle="solid",s.style.borderWidth=Je(_)):r==="angl"&&_!==.049&&(s.style.borderTopWidth=Je(_),s.style.borderRightWidth=Je(_)),o=t.depth+b,n.backgroundColor&&(s.style.backgroundColor=n.backgroundColor,n.borderColor&&(s.style.borderColor=n.borderColor))}var y;if(n.backgroundColor)y=ve.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:o},{type:"elem",elem:t,shift:0}]},e);else{var E=/cancel|phase/.test(r)?["svg-align"]:[];y=ve.makeVList({positionType:"individualShift",children:[{type:"elem",elem:t,shift:0},{type:"elem",elem:s,shift:o,wrapperClasses:E}]},e)}return/cancel/.test(r)&&(y.height=t.height,y.depth=t.depth),/cancel/.test(r)&&!a?ve.makeSpan(["mord","cancel-lap"],[y],e):ve.makeSpan(["mord"],[y],e)},Xv=(n,e)=>{var t=0,r=new Ke.MathNode(n.label.indexOf("colorbox")>-1?"mpadded":"menclose",[fn(n.body,e)]);switch(n.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(t=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*t+"pt"),r.setAttribute("height","+"+2*t+"pt"),r.setAttribute("lspace",t+"pt"),r.setAttribute("voffset",t+"pt"),n.label==="\\fcolorbox"){var i=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(n.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return n.backgroundColor&&r.setAttribute("mathbackground",n.backgroundColor),r};st({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(n,e,t){var{parser:r,funcName:i}=n,s=Ut(e[0],"color-token").color,o=e[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:s,body:o}},htmlBuilder:Qv,mathmlBuilder:Xv});st({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(n,e,t){var{parser:r,funcName:i}=n,s=Ut(e[0],"color-token").color,o=Ut(e[1],"color-token").color,a=e[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:o,borderColor:s,body:a}},htmlBuilder:Qv,mathmlBuilder:Xv});st({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(n,e){var{parser:t}=n;return{type:"enclose",mode:t.mode,label:"\\fbox",body:e[0]}}});st({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(n,e){var{parser:t,funcName:r}=n,i=e[0];return{type:"enclose",mode:t.mode,label:r,body:i}},htmlBuilder:Qv,mathmlBuilder:Xv});st({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(n,e){var{parser:t}=n;return{type:"enclose",mode:t.mode,label:"\\angl",body:e[0]}}});var pk={};function ns(n){for(var{type:e,names:t,props:r,handler:i,htmlBuilder:s,mathmlBuilder:o}=n,a={type:e,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l{var e=n.parser.settings;if(!e.displayMode)throw new Qe("{"+n.envName+"} can be used only in display mode.")};function Zv(n){if(n.indexOf("ed")===-1)return n.indexOf("*")===-1}function Po(n,e,t){var{hskipBeforeAndAfter:r,addJot:i,cols:s,arraystretch:o,colSeparationType:a,autoTag:l,singleRow:d,emptySingleRow:u,maxNumCols:m,leqno:f}=e;if(n.gullet.beginGroup(),d||n.gullet.macros.set("\\cr","\\\\\\relax"),!o){var g=n.gullet.expandMacroAsText("\\arraystretch");if(g==null)o=1;else if(o=parseFloat(g),!o||o<0)throw new Qe("Invalid \\arraystretch: "+g)}n.gullet.beginGroup();var h=[],v=[h],b=[],_=[],y=l!=null?[]:void 0;function E(){l&&n.gullet.macros.set("\\@eqnsw","1",!0)}function x(){y&&(n.gullet.macros.get("\\df@tag")?(y.push(n.subparse([new li("\\df@tag")])),n.gullet.macros.set("\\df@tag",void 0,!0)):y.push(!!l&&n.gullet.macros.get("\\@eqnsw")==="1"))}for(E(),_.push(DC(n));;){var A=n.parseExpression(!1,d?"\\end":"\\\\");n.gullet.endGroup(),n.gullet.beginGroup(),A={type:"ordgroup",mode:n.mode,body:A},t&&(A={type:"styling",mode:n.mode,style:t,body:[A]}),h.push(A);var w=n.fetch().text;if(w==="&"){if(m&&h.length===m){if(d||a)throw new Qe("Too many tab characters: &",n.nextToken);n.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}n.consume()}else if(w==="\\end"){x(),h.length===1&&A.type==="styling"&&A.body[0].body.length===0&&(v.length>1||!u)&&v.pop(),_.length0&&(E+=.25),d.push({pos:E,isDashed:Te[fe]})}for(x(o[0]),r=0;r0&&(H+=y,NTe))for(r=0;r=a)){var te=void 0;(i>0||e.hskipBeforeAndAfter)&&(te=Et.deflt(Ce.pregap,f),te!==0&&($=ve.makeSpan(["arraycolsep"],[]),$.style.width=Je(te),D.push($)));var ye=[];for(r=0;r0){for(var le=ve.makeLineSpan("hline",t,u),V=ve.makeLineSpan("hdashline",t,u),G=[{type:"elem",elem:l,shift:0}];d.length>0;){var oe=d.pop(),ge=oe.pos-q;oe.isDashed?G.push({type:"elem",elem:V,shift:ge}):G.push({type:"elem",elem:le,shift:ge})}l=ve.makeVList({positionType:"individualShift",children:G},t)}if(B.length===0)return ve.makeSpan(["mord"],[l],t);var Ee=ve.makeVList({positionType:"individualShift",children:B},t);return Ee=ve.makeSpan(["tag"],[Ee],t),ve.makeFragment([l,Ee])},Met={c:"center ",l:"left ",r:"right "},is=function(e,t){for(var r=[],i=new Ke.MathNode("mtd",[],["mtr-glue"]),s=new Ke.MathNode("mtd",[],["mml-eqn-num"]),o=0;o0){var h=e.cols,v="",b=!1,_=0,y=h.length;h[0].type==="separator"&&(f+="top ",_=1),h[h.length-1].type==="separator"&&(f+="bottom ",y-=1);for(var E=_;E0?"left ":"",f+=L[L.length-1].length>0?"right ":"";for(var C=1;C-1?"alignat":"align",s=e.envName==="split",o=Po(e.parser,{cols:r,addJot:!0,autoTag:s?void 0:Zv(e.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:s?2:void 0,leqno:e.parser.settings.leqno},"display"),a,l=0,d={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&t[0].type==="ordgroup"){for(var u="",m=0;m0&&g&&(b=1),r[h]={type:"align",align:v,pregap:b,postgap:0}}return o.colSeparationType=g?"align":"alignat",o};ns({type:"array",names:["array","darray"],props:{numArgs:1},handler(n,e){var t=Wh(e[0]),r=t?[e[0]]:Ut(e[0],"ordgroup").body,i=r.map(function(o){var a=Wv(o),l=a.text;if("lcr".indexOf(l)!==-1)return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new Qe("Unknown column alignment: "+l,o)}),s={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return Po(n.parser,s,Jv(n.envName))},htmlBuilder:rs,mathmlBuilder:is});ns({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(n){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[n.envName.replace("*","")],t="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:t}]};if(n.envName.charAt(n.envName.length-1)==="*"){var i=n.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),t=i.fetch().text,"lcr".indexOf(t)===-1)throw new Qe("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),r.cols=[{type:"align",align:t}]}}var s=Po(n.parser,r,Jv(n.envName)),o=Math.max(0,...s.body.map(a=>a.length));return s.cols=new Array(o).fill({type:"align",align:t}),e?{type:"leftright",mode:n.mode,body:[s],left:e[0],right:e[1],rightColor:void 0}:s},htmlBuilder:rs,mathmlBuilder:is});ns({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(n){var e={arraystretch:.5},t=Po(n.parser,e,"script");return t.colSeparationType="small",t},htmlBuilder:rs,mathmlBuilder:is});ns({type:"array",names:["subarray"],props:{numArgs:1},handler(n,e){var t=Wh(e[0]),r=t?[e[0]]:Ut(e[0],"ordgroup").body,i=r.map(function(o){var a=Wv(o),l=a.text;if("lc".indexOf(l)!==-1)return{type:"align",align:l};throw new Qe("Unknown column alignment: "+l,o)});if(i.length>1)throw new Qe("{subarray} can contain only one column");var s={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(s=Po(n.parser,s,"script"),s.body.length>0&&s.body[0].length>1)throw new Qe("{subarray} can contain only one column");return s},htmlBuilder:rs,mathmlBuilder:is});ns({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(n){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},t=Po(n.parser,e,Jv(n.envName));return{type:"leftright",mode:n.mode,body:[t],left:n.envName.indexOf("r")>-1?".":"\\{",right:n.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:rs,mathmlBuilder:is});ns({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:mk,htmlBuilder:rs,mathmlBuilder:is});ns({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(n){Et.contains(["gather","gather*"],n.envName)&&Qh(n);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Zv(n.envName),emptySingleRow:!0,leqno:n.parser.settings.leqno};return Po(n.parser,e,"display")},htmlBuilder:rs,mathmlBuilder:is});ns({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:mk,htmlBuilder:rs,mathmlBuilder:is});ns({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(n){Qh(n);var e={autoTag:Zv(n.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:n.parser.settings.leqno};return Po(n.parser,e,"display")},htmlBuilder:rs,mathmlBuilder:is});ns({type:"array",names:["CD"],props:{numArgs:0},handler(n){return Qh(n),met(n.parser)},htmlBuilder:rs,mathmlBuilder:is});P("\\nonumber","\\gdef\\@eqnsw{0}");P("\\notag","\\nonumber");st({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(n,e){throw new Qe(n.funcName+" valid only within array environment")}});var LC=pk;st({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(n,e){var{parser:t,funcName:r}=n,i=e[0];if(i.type!=="ordgroup")throw new Qe("Invalid environment name",i);for(var s="",o=0;o{var t=n.font,r=e.withFont(t);return Zt(n.body,r)},gk=(n,e)=>{var t=n.font,r=e.withFont(t);return fn(n.body,r)},PC={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};st({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(n,e)=>{var{parser:t,funcName:r}=n,i=zp(e[0]),s=r;return s in PC&&(s=PC[s]),{type:"font",mode:t.mode,font:s.slice(1),body:i}},htmlBuilder:fk,mathmlBuilder:gk});st({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(n,e)=>{var{parser:t}=n,r=e[0],i=Et.isCharacterBox(r);return{type:"mclass",mode:t.mode,mclass:Kh(r),body:[{type:"font",mode:t.mode,font:"boldsymbol",body:r}],isCharacterBox:i}}});st({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(n,e)=>{var{parser:t,funcName:r,breakOnTokenText:i}=n,{mode:s}=t,o=t.parseExpression(!0,i),a="math"+r.slice(1);return{type:"font",mode:s,font:a,body:{type:"ordgroup",mode:t.mode,body:o}}},htmlBuilder:fk,mathmlBuilder:gk});var _k=(n,e)=>{var t=e;return n==="display"?t=t.id>=xt.SCRIPT.id?t.text():xt.DISPLAY:n==="text"&&t.size===xt.DISPLAY.size?t=xt.TEXT:n==="script"?t=xt.SCRIPT:n==="scriptscript"&&(t=xt.SCRIPTSCRIPT),t},ey=(n,e)=>{var t=_k(n.size,e.style),r=t.fracNum(),i=t.fracDen(),s;s=e.havingStyle(r);var o=Zt(n.numer,s,e);if(n.continued){var a=8.5/e.fontMetrics().ptPerEm,l=3.5/e.fontMetrics().ptPerEm;o.height=o.height0?h=3*f:h=7*f,v=e.fontMetrics().denom1):(m>0?(g=e.fontMetrics().num2,h=f):(g=e.fontMetrics().num3,h=3*f),v=e.fontMetrics().denom2);var b;if(u){var y=e.fontMetrics().axisHeight;g-o.depth-(y+.5*m){var t=new Ke.MathNode("mfrac",[fn(n.numer,e),fn(n.denom,e)]);if(!n.hasBarLine)t.setAttribute("linethickness","0px");else if(n.barSize){var r=Tn(n.barSize,e);t.setAttribute("linethickness",Je(r))}var i=_k(n.size,e.style);if(i.size!==e.style.size){t=new Ke.MathNode("mstyle",[t]);var s=i.size===xt.DISPLAY.size?"true":"false";t.setAttribute("displaystyle",s),t.setAttribute("scriptlevel","0")}if(n.leftDelim!=null||n.rightDelim!=null){var o=[];if(n.leftDelim!=null){var a=new Ke.MathNode("mo",[new Ke.TextNode(n.leftDelim.replace("\\",""))]);a.setAttribute("fence","true"),o.push(a)}if(o.push(t),n.rightDelim!=null){var l=new Ke.MathNode("mo",[new Ke.TextNode(n.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),o.push(l)}return Yv(o)}return t};st({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(n,e)=>{var{parser:t,funcName:r}=n,i=e[0],s=e[1],o,a=null,l=null,d="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":o=!0;break;case"\\\\atopfrac":o=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":o=!1,a="(",l=")";break;case"\\\\bracefrac":o=!1,a="\\{",l="\\}";break;case"\\\\brackfrac":o=!1,a="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":d="display";break;case"\\tfrac":case"\\tbinom":d="text";break}return{type:"genfrac",mode:t.mode,continued:!1,numer:i,denom:s,hasBarLine:o,leftDelim:a,rightDelim:l,size:d,barSize:null}},htmlBuilder:ey,mathmlBuilder:ty});st({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(n,e)=>{var{parser:t,funcName:r}=n,i=e[0],s=e[1];return{type:"genfrac",mode:t.mode,continued:!0,numer:i,denom:s,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});st({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(n){var{parser:e,funcName:t,token:r}=n,i;switch(t){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:i,token:r}}});var FC=["display","text","script","scriptscript"],UC=function(e){var t=null;return e.length>0&&(t=e,t=t==="."?null:t),t};st({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(n,e){var{parser:t}=n,r=e[4],i=e[5],s=zp(e[0]),o=s.type==="atom"&&s.family==="open"?UC(s.text):null,a=zp(e[1]),l=a.type==="atom"&&a.family==="close"?UC(a.text):null,d=Ut(e[2],"size"),u,m=null;d.isBlank?u=!0:(m=d.value,u=m.number>0);var f="auto",g=e[3];if(g.type==="ordgroup"){if(g.body.length>0){var h=Ut(g.body[0],"textord");f=FC[Number(h.text)]}}else g=Ut(g,"textord"),f=FC[Number(g.text)];return{type:"genfrac",mode:t.mode,numer:r,denom:i,continued:!1,hasBarLine:u,barSize:m,leftDelim:o,rightDelim:l,size:f}},htmlBuilder:ey,mathmlBuilder:ty});st({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(n,e){var{parser:t,funcName:r,token:i}=n;return{type:"infix",mode:t.mode,replaceWith:"\\\\abovefrac",size:Ut(e[0],"size").value,token:i}}});st({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(n,e)=>{var{parser:t,funcName:r}=n,i=e[0],s=iJe(Ut(e[1],"infix").size),o=e[2],a=s.number>0;return{type:"genfrac",mode:t.mode,numer:i,denom:o,continued:!1,hasBarLine:a,barSize:s,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:ey,mathmlBuilder:ty});var bk=(n,e)=>{var t=e.style,r,i;n.type==="supsub"?(r=n.sup?Zt(n.sup,e.havingStyle(t.sup()),e):Zt(n.sub,e.havingStyle(t.sub()),e),i=Ut(n.base,"horizBrace")):i=Ut(n,"horizBrace");var s=Zt(i.base,e.havingBaseStyle(xt.DISPLAY)),o=Ls.svgSpan(i,e),a;if(i.isOver?(a=ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o}]},e),a.children[0].children[0].children[1].classes.push("svg-align")):(a=ve.makeVList({positionType:"bottom",positionData:s.depth+.1+o.height,children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:s}]},e),a.children[0].children[0].children[0].classes.push("svg-align")),r){var l=ve.makeSpan(["mord",i.isOver?"mover":"munder"],[a],e);i.isOver?a=ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]},e):a=ve.makeVList({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]},e)}return ve.makeSpan(["mord",i.isOver?"mover":"munder"],[a],e)},Net=(n,e)=>{var t=Ls.mathMLnode(n.label);return new Ke.MathNode(n.isOver?"mover":"munder",[fn(n.base,e),t])};st({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(n,e){var{parser:t,funcName:r}=n;return{type:"horizBrace",mode:t.mode,label:r,isOver:/^\\over/.test(r),base:e[0]}},htmlBuilder:bk,mathmlBuilder:Net});st({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(n,e)=>{var{parser:t}=n,r=e[1],i=Ut(e[0],"url").url;return t.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:t.mode,href:i,body:kn(r)}:t.formatUnsupportedCmd("\\href")},htmlBuilder:(n,e)=>{var t=zn(n.body,e,!1);return ve.makeAnchor(n.href,[],t,e)},mathmlBuilder:(n,e)=>{var t=ko(n.body,e);return t instanceof Zr||(t=new Zr("mrow",[t])),t.setAttribute("href",n.href),t}});st({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(n,e)=>{var{parser:t}=n,r=Ut(e[0],"url").url;if(!t.settings.isTrusted({command:"\\url",url:r}))return t.formatUnsupportedCmd("\\url");for(var i=[],s=0;s{var{parser:t,funcName:r,token:i}=n,s=Ut(e[0],"raw").string,o=e[1];t.settings.strict&&t.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var a,l={};switch(r){case"\\htmlClass":l.class=s,a={command:"\\htmlClass",class:s};break;case"\\htmlId":l.id=s,a={command:"\\htmlId",id:s};break;case"\\htmlStyle":l.style=s,a={command:"\\htmlStyle",style:s};break;case"\\htmlData":{for(var d=s.split(","),u=0;u{var t=zn(n.body,e,!1),r=["enclosing"];n.attributes.class&&r.push(...n.attributes.class.trim().split(/\s+/));var i=ve.makeSpan(r,t,e);for(var s in n.attributes)s!=="class"&&n.attributes.hasOwnProperty(s)&&i.setAttribute(s,n.attributes[s]);return i},mathmlBuilder:(n,e)=>ko(n.body,e)});st({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(n,e)=>{var{parser:t}=n;return{type:"htmlmathml",mode:t.mode,html:kn(e[0]),mathml:kn(e[1])}},htmlBuilder:(n,e)=>{var t=zn(n.html,e,!1);return ve.makeFragment(t)},mathmlBuilder:(n,e)=>ko(n.mathml,e)});var H0=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new Qe("Invalid size: '"+e+"' in \\includegraphics");var r={number:+(t[1]+t[2]),unit:t[3]};if(!FN(r))throw new Qe("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};st({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(n,e,t)=>{var{parser:r}=n,i={number:0,unit:"em"},s={number:.9,unit:"em"},o={number:0,unit:"em"},a="";if(t[0])for(var l=Ut(t[0],"raw").string,d=l.split(","),u=0;u{var t=Tn(n.height,e),r=0;n.totalheight.number>0&&(r=Tn(n.totalheight,e)-t);var i=0;n.width.number>0&&(i=Tn(n.width,e));var s={height:Je(t+r)};i>0&&(s.width=Je(i)),r>0&&(s.verticalAlign=Je(-r));var o=new RJe(n.src,n.alt,s);return o.height=t,o.depth=r,o},mathmlBuilder:(n,e)=>{var t=new Ke.MathNode("mglyph",[]);t.setAttribute("alt",n.alt);var r=Tn(n.height,e),i=0;if(n.totalheight.number>0&&(i=Tn(n.totalheight,e)-r,t.setAttribute("valign",Je(-i))),t.setAttribute("height",Je(r+i)),n.width.number>0){var s=Tn(n.width,e);t.setAttribute("width",Je(s))}return t.setAttribute("src",n.src),t}});st({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(n,e){var{parser:t,funcName:r}=n,i=Ut(e[0],"size");if(t.settings.strict){var s=r[1]==="m",o=i.value.unit==="mu";s?(o||t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+i.value.unit+" units")),t.mode!=="math"&&t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):o&&t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:t.mode,dimension:i.value}},htmlBuilder(n,e){return ve.makeGlue(n.dimension,e)},mathmlBuilder(n,e){var t=Tn(n.dimension,e);return new Ke.SpaceNode(t)}});st({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(n,e)=>{var{parser:t,funcName:r}=n,i=e[0];return{type:"lap",mode:t.mode,alignment:r.slice(5),body:i}},htmlBuilder:(n,e)=>{var t;n.alignment==="clap"?(t=ve.makeSpan([],[Zt(n.body,e)]),t=ve.makeSpan(["inner"],[t],e)):t=ve.makeSpan(["inner"],[Zt(n.body,e)]);var r=ve.makeSpan(["fix"],[]),i=ve.makeSpan([n.alignment],[t,r],e),s=ve.makeSpan(["strut"]);return s.style.height=Je(i.height+i.depth),i.depth&&(s.style.verticalAlign=Je(-i.depth)),i.children.unshift(s),i=ve.makeSpan(["thinbox"],[i],e),ve.makeSpan(["mord","vbox"],[i],e)},mathmlBuilder:(n,e)=>{var t=new Ke.MathNode("mpadded",[fn(n.body,e)]);if(n.alignment!=="rlap"){var r=n.alignment==="llap"?"-1":"-0.5";t.setAttribute("lspace",r+"width")}return t.setAttribute("width","0px"),t}});st({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(n,e){var{funcName:t,parser:r}=n,i=r.mode;r.switchMode("math");var s=t==="\\("?"\\)":"$",o=r.parseExpression(!1,s);return r.expect(s),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:o}}});st({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(n,e){throw new Qe("Mismatched "+n.funcName)}});var BC=(n,e)=>{switch(e.style.size){case xt.DISPLAY.size:return n.display;case xt.TEXT.size:return n.text;case xt.SCRIPT.size:return n.script;case xt.SCRIPTSCRIPT.size:return n.scriptscript;default:return n.text}};st({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(n,e)=>{var{parser:t}=n;return{type:"mathchoice",mode:t.mode,display:kn(e[0]),text:kn(e[1]),script:kn(e[2]),scriptscript:kn(e[3])}},htmlBuilder:(n,e)=>{var t=BC(n,e),r=zn(t,e,!1);return ve.makeFragment(r)},mathmlBuilder:(n,e)=>{var t=BC(n,e);return ko(t,e)}});var vk=(n,e,t,r,i,s,o)=>{n=ve.makeSpan([],[n]);var a=t&&Et.isCharacterBox(t),l,d;if(e){var u=Zt(e,r.havingStyle(i.sup()),r);d={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(t){var m=Zt(t,r.havingStyle(i.sub()),r);l={elem:m,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-m.height)}}var f;if(d&&l){var g=r.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+n.depth+o;f=ve.makeVList({positionType:"bottom",positionData:g,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Je(-s)},{type:"kern",size:l.kern},{type:"elem",elem:n},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:Je(s)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(l){var h=n.height-o;f=ve.makeVList({positionType:"top",positionData:h,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Je(-s)},{type:"kern",size:l.kern},{type:"elem",elem:n}]},r)}else if(d){var v=n.depth+o;f=ve.makeVList({positionType:"bottom",positionData:v,children:[{type:"elem",elem:n},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:Je(s)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return n;var b=[f];if(l&&s!==0&&!a){var _=ve.makeSpan(["mspace"],[],r);_.style.marginRight=Je(s),b.unshift(_)}return ve.makeSpan(["mop","op-limits"],b,r)},yk=["\\smallint"],rc=(n,e)=>{var t,r,i=!1,s;n.type==="supsub"?(t=n.sup,r=n.sub,s=Ut(n.base,"op"),i=!0):s=Ut(n,"op");var o=e.style,a=!1;o.size===xt.DISPLAY.size&&s.symbol&&!Et.contains(yk,s.name)&&(a=!0);var l;if(s.symbol){var d=a?"Size2-Regular":"Size1-Regular",u="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(u=s.name.slice(1),s.name=u==="oiint"?"\\iint":"\\iiint"),l=ve.makeSymbol(s.name,d,"math",e,["mop","op-symbol",a?"large-op":"small-op"]),u.length>0){var m=l.italic,f=ve.staticSvg(u+"Size"+(a?"2":"1"),e);l=ve.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:f,shift:a?.08:0}]},e),s.name="\\"+u,l.classes.unshift("mop"),l.italic=m}}else if(s.body){var g=zn(s.body,e,!0);g.length===1&&g[0]instanceof hi?(l=g[0],l.classes[0]="mop"):l=ve.makeSpan(["mop"],g,e)}else{for(var h=[],v=1;v{var t;if(n.symbol)t=new Zr("mo",[mi(n.name,n.mode)]),Et.contains(yk,n.name)&&t.setAttribute("largeop","false");else if(n.body)t=new Zr("mo",Or(n.body,e));else{t=new Zr("mi",[new Hc(n.name.slice(1))]);var r=new Zr("mo",[mi("⁡","text")]);n.parentIsSupSub?t=new Zr("mrow",[t,r]):t=KN([t,r])}return t},ket={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};st({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(n,e)=>{var{parser:t,funcName:r}=n,i=r;return i.length===1&&(i=ket[i]),{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:rc,mathmlBuilder:Id});st({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(n,e)=>{var{parser:t}=n,r=e[0];return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:kn(r)}},htmlBuilder:rc,mathmlBuilder:Id});var Iet={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};st({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(n){var{parser:e,funcName:t}=n;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:rc,mathmlBuilder:Id});st({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(n){var{parser:e,funcName:t}=n;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:rc,mathmlBuilder:Id});st({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(n){var{parser:e,funcName:t}=n,r=t;return r.length===1&&(r=Iet[r]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:rc,mathmlBuilder:Id});var Ek=(n,e)=>{var t,r,i=!1,s;n.type==="supsub"?(t=n.sup,r=n.sub,s=Ut(n.base,"operatorname"),i=!0):s=Ut(n,"operatorname");var o;if(s.body.length>0){for(var a=s.body.map(m=>{var f=m.text;return typeof f=="string"?{type:"textord",mode:m.mode,text:f}:m}),l=zn(a,e.withFont("mathrm"),!0),d=0;d{for(var t=Or(n.body,e.withFont("mathrm")),r=!0,i=0;iu.toText()).join("");t=[new Ke.TextNode(a)]}var l=new Ke.MathNode("mi",t);l.setAttribute("mathvariant","normal");var d=new Ke.MathNode("mo",[mi("⁡","text")]);return n.parentIsSupSub?new Ke.MathNode("mrow",[l,d]):Ke.newDocumentFragment([l,d])};st({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(n,e)=>{var{parser:t,funcName:r}=n,i=e[0];return{type:"operatorname",mode:t.mode,body:kn(i),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Ek,mathmlBuilder:Oet});P("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Na({type:"ordgroup",htmlBuilder(n,e){return n.semisimple?ve.makeFragment(zn(n.body,e,!1)):ve.makeSpan(["mord"],zn(n.body,e,!0),e)},mathmlBuilder(n,e){return ko(n.body,e,!0)}});st({type:"overline",names:["\\overline"],props:{numArgs:1},handler(n,e){var{parser:t}=n,r=e[0];return{type:"overline",mode:t.mode,body:r}},htmlBuilder(n,e){var t=Zt(n.body,e.havingCrampedStyle()),r=ve.makeLineSpan("overline-line",e),i=e.fontMetrics().defaultRuleThickness,s=ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]},e);return ve.makeSpan(["mord","overline"],[s],e)},mathmlBuilder(n,e){var t=new Ke.MathNode("mo",[new Ke.TextNode("‾")]);t.setAttribute("stretchy","true");var r=new Ke.MathNode("mover",[fn(n.body,e),t]);return r.setAttribute("accent","true"),r}});st({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(n,e)=>{var{parser:t}=n,r=e[0];return{type:"phantom",mode:t.mode,body:kn(r)}},htmlBuilder:(n,e)=>{var t=zn(n.body,e.withPhantom(),!1);return ve.makeFragment(t)},mathmlBuilder:(n,e)=>{var t=Or(n.body,e);return new Ke.MathNode("mphantom",t)}});st({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(n,e)=>{var{parser:t}=n,r=e[0];return{type:"hphantom",mode:t.mode,body:r}},htmlBuilder:(n,e)=>{var t=ve.makeSpan([],[Zt(n.body,e.withPhantom())]);if(t.height=0,t.depth=0,t.children)for(var r=0;r{var t=Or(kn(n.body),e),r=new Ke.MathNode("mphantom",t),i=new Ke.MathNode("mpadded",[r]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}});st({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(n,e)=>{var{parser:t}=n,r=e[0];return{type:"vphantom",mode:t.mode,body:r}},htmlBuilder:(n,e)=>{var t=ve.makeSpan(["inner"],[Zt(n.body,e.withPhantom())]),r=ve.makeSpan(["fix"],[]);return ve.makeSpan(["mord","rlap"],[t,r],e)},mathmlBuilder:(n,e)=>{var t=Or(kn(n.body),e),r=new Ke.MathNode("mphantom",t),i=new Ke.MathNode("mpadded",[r]);return i.setAttribute("width","0px"),i}});st({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(n,e){var{parser:t}=n,r=Ut(e[0],"size").value,i=e[1];return{type:"raisebox",mode:t.mode,dy:r,body:i}},htmlBuilder(n,e){var t=Zt(n.body,e),r=Tn(n.dy,e);return ve.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:t}]},e)},mathmlBuilder(n,e){var t=new Ke.MathNode("mpadded",[fn(n.body,e)]),r=n.dy.number+n.dy.unit;return t.setAttribute("voffset",r),t}});st({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(n){var{parser:e}=n;return{type:"internal",mode:e.mode}}});st({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(n,e,t){var{parser:r}=n,i=t[0],s=Ut(e[0],"size"),o=Ut(e[1],"size");return{type:"rule",mode:r.mode,shift:i&&Ut(i,"size").value,width:s.value,height:o.value}},htmlBuilder(n,e){var t=ve.makeSpan(["mord","rule"],[],e),r=Tn(n.width,e),i=Tn(n.height,e),s=n.shift?Tn(n.shift,e):0;return t.style.borderRightWidth=Je(r),t.style.borderTopWidth=Je(i),t.style.bottom=Je(s),t.width=r,t.height=i+s,t.depth=-s,t.maxFontSize=i*1.125*e.sizeMultiplier,t},mathmlBuilder(n,e){var t=Tn(n.width,e),r=Tn(n.height,e),i=n.shift?Tn(n.shift,e):0,s=e.color&&e.getColor()||"black",o=new Ke.MathNode("mspace");o.setAttribute("mathbackground",s),o.setAttribute("width",Je(t)),o.setAttribute("height",Je(r));var a=new Ke.MathNode("mpadded",[o]);return i>=0?a.setAttribute("height",Je(i)):(a.setAttribute("height",Je(i)),a.setAttribute("depth",Je(-i))),a.setAttribute("voffset",Je(i)),a}});function Sk(n,e,t){for(var r=zn(n,e,!1),i=e.sizeMultiplier/t.sizeMultiplier,s=0;s{var t=e.havingSize(n.size);return Sk(n.body,t,e)};st({type:"sizing",names:GC,props:{numArgs:0,allowedInText:!0},handler:(n,e)=>{var{breakOnTokenText:t,funcName:r,parser:i}=n,s=i.parseExpression(!1,t);return{type:"sizing",mode:i.mode,size:GC.indexOf(r)+1,body:s}},htmlBuilder:Det,mathmlBuilder:(n,e)=>{var t=e.havingSize(n.size),r=Or(n.body,t),i=new Ke.MathNode("mstyle",r);return i.setAttribute("mathsize",Je(t.sizeMultiplier)),i}});st({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(n,e,t)=>{var{parser:r}=n,i=!1,s=!1,o=t[0]&&Ut(t[0],"ordgroup");if(o)for(var a="",l=0;l{var t=ve.makeSpan([],[Zt(n.body,e)]);if(!n.smashHeight&&!n.smashDepth)return t;if(n.smashHeight&&(t.height=0,t.children))for(var r=0;r{var t=new Ke.MathNode("mpadded",[fn(n.body,e)]);return n.smashHeight&&t.setAttribute("height","0px"),n.smashDepth&&t.setAttribute("depth","0px"),t}});st({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(n,e,t){var{parser:r}=n,i=t[0],s=e[0];return{type:"sqrt",mode:r.mode,body:s,index:i}},htmlBuilder(n,e){var t=Zt(n.body,e.havingCrampedStyle());t.height===0&&(t.height=e.fontMetrics().xHeight),t=ve.wrapFragment(t,e);var r=e.fontMetrics(),i=r.defaultRuleThickness,s=i;e.style.idt.height+t.depth+o&&(o=(o+m-t.height-t.depth)/2);var f=l.height-t.height-o-d;t.style.paddingLeft=Je(u);var g=ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t,wrapperClasses:["svg-align"]},{type:"kern",size:-(t.height+f)},{type:"elem",elem:l},{type:"kern",size:d}]},e);if(n.index){var h=e.havingStyle(xt.SCRIPTSCRIPT),v=Zt(n.index,h,e),b=.6*(g.height-g.depth),_=ve.makeVList({positionType:"shift",positionData:-b,children:[{type:"elem",elem:v}]},e),y=ve.makeSpan(["root"],[_]);return ve.makeSpan(["mord","sqrt"],[y,g],e)}else return ve.makeSpan(["mord","sqrt"],[g],e)},mathmlBuilder(n,e){var{body:t,index:r}=n;return r?new Ke.MathNode("mroot",[fn(t,e),fn(r,e)]):new Ke.MathNode("msqrt",[fn(t,e)])}});var zC={display:xt.DISPLAY,text:xt.TEXT,script:xt.SCRIPT,scriptscript:xt.SCRIPTSCRIPT};st({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(n,e){var{breakOnTokenText:t,funcName:r,parser:i}=n,s=i.parseExpression(!0,t),o=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:o,body:s}},htmlBuilder(n,e){var t=zC[n.style],r=e.havingStyle(t).withFont("");return Sk(n.body,r,e)},mathmlBuilder(n,e){var t=zC[n.style],r=e.havingStyle(t),i=Or(n.body,r),s=new Ke.MathNode("mstyle",i),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},a=o[n.style];return s.setAttribute("scriptlevel",a[0]),s.setAttribute("displaystyle",a[1]),s}});var Let=function(e,t){var r=e.base;if(r)if(r.type==="op"){var i=r.limits&&(t.style.size===xt.DISPLAY.size||r.alwaysHandleSupSub);return i?rc:null}else if(r.type==="operatorname"){var s=r.alwaysHandleSupSub&&(t.style.size===xt.DISPLAY.size||r.limits);return s?Ek:null}else{if(r.type==="accent")return Et.isCharacterBox(r.base)?Kv:null;if(r.type==="horizBrace"){var o=!e.sub;return o===r.isOver?bk:null}else return null}else return null};Na({type:"supsub",htmlBuilder(n,e){var t=Let(n,e);if(t)return t(n,e);var{base:r,sup:i,sub:s}=n,o=Zt(r,e),a,l,d=e.fontMetrics(),u=0,m=0,f=r&&Et.isCharacterBox(r);if(i){var g=e.havingStyle(e.style.sup());a=Zt(i,g,e),f||(u=o.height-g.fontMetrics().supDrop*g.sizeMultiplier/e.sizeMultiplier)}if(s){var h=e.havingStyle(e.style.sub());l=Zt(s,h,e),f||(m=o.depth+h.fontMetrics().subDrop*h.sizeMultiplier/e.sizeMultiplier)}var v;e.style===xt.DISPLAY?v=d.sup1:e.style.cramped?v=d.sup3:v=d.sup2;var b=e.sizeMultiplier,_=Je(.5/d.ptPerEm/b),y=null;if(l){var E=n.base&&n.base.type==="op"&&n.base.name&&(n.base.name==="\\oiint"||n.base.name==="\\oiiint");(o instanceof hi||E)&&(y=Je(-o.italic))}var x;if(a&&l){u=Math.max(u,v,a.depth+.25*d.xHeight),m=Math.max(m,d.sub2);var A=d.defaultRuleThickness,w=4*A;if(u-a.depth-(l.height-m)0&&(u+=N,m-=N)}var L=[{type:"elem",elem:l,shift:m,marginRight:_,marginLeft:y},{type:"elem",elem:a,shift:-u,marginRight:_}];x=ve.makeVList({positionType:"individualShift",children:L},e)}else if(l){m=Math.max(m,d.sub1,l.height-.8*d.xHeight);var C=[{type:"elem",elem:l,marginLeft:y,marginRight:_}];x=ve.makeVList({positionType:"shift",positionData:m,children:C},e)}else if(a)u=Math.max(u,v,a.depth+.25*d.xHeight),x=ve.makeVList({positionType:"shift",positionData:-u,children:[{type:"elem",elem:a,marginRight:_}]},e);else throw new Error("supsub must have either sup or sub.");var k=p1(o,"right")||"mord";return ve.makeSpan([k],[o,ve.makeSpan(["msupsub"],[x])],e)},mathmlBuilder(n,e){var t=!1,r,i;n.base&&n.base.type==="horizBrace"&&(i=!!n.sup,i===n.base.isOver&&(t=!0,r=n.base.isOver)),n.base&&(n.base.type==="op"||n.base.type==="operatorname")&&(n.base.parentIsSupSub=!0);var s=[fn(n.base,e)];n.sub&&s.push(fn(n.sub,e)),n.sup&&s.push(fn(n.sup,e));var o;if(t)o=r?"mover":"munder";else if(n.sub)if(n.sup){var d=n.base;d&&d.type==="op"&&d.limits&&e.style===xt.DISPLAY||d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(e.style===xt.DISPLAY||d.limits)?o="munderover":o="msubsup"}else{var l=n.base;l&&l.type==="op"&&l.limits&&(e.style===xt.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||e.style===xt.DISPLAY)?o="munder":o="msub"}else{var a=n.base;a&&a.type==="op"&&a.limits&&(e.style===xt.DISPLAY||a.alwaysHandleSupSub)||a&&a.type==="operatorname"&&a.alwaysHandleSupSub&&(a.limits||e.style===xt.DISPLAY)?o="mover":o="msup"}return new Ke.MathNode(o,s)}});Na({type:"atom",htmlBuilder(n,e){return ve.mathsym(n.text,n.mode,e,["m"+n.family])},mathmlBuilder(n,e){var t=new Ke.MathNode("mo",[mi(n.text,n.mode)]);if(n.family==="bin"){var r=$v(n,e);r==="bold-italic"&&t.setAttribute("mathvariant",r)}else n.family==="punct"?t.setAttribute("separator","true"):(n.family==="open"||n.family==="close")&&t.setAttribute("stretchy","false");return t}});var xk={mi:"italic",mn:"normal",mtext:"normal"};Na({type:"mathord",htmlBuilder(n,e){return ve.makeOrd(n,e,"mathord")},mathmlBuilder(n,e){var t=new Ke.MathNode("mi",[mi(n.text,n.mode,e)]),r=$v(n,e)||"italic";return r!==xk[t.type]&&t.setAttribute("mathvariant",r),t}});Na({type:"textord",htmlBuilder(n,e){return ve.makeOrd(n,e,"textord")},mathmlBuilder(n,e){var t=mi(n.text,n.mode,e),r=$v(n,e)||"normal",i;return n.mode==="text"?i=new Ke.MathNode("mtext",[t]):/[0-9]/.test(n.text)?i=new Ke.MathNode("mn",[t]):n.text==="\\prime"?i=new Ke.MathNode("mo",[t]):i=new Ke.MathNode("mi",[t]),r!==xk[i.type]&&i.setAttribute("mathvariant",r),i}});var q0={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Y0={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Na({type:"spacing",htmlBuilder(n,e){if(Y0.hasOwnProperty(n.text)){var t=Y0[n.text].className||"";if(n.mode==="text"){var r=ve.makeOrd(n,e,"textord");return r.classes.push(t),r}else return ve.makeSpan(["mspace",t],[ve.mathsym(n.text,n.mode,e)],e)}else{if(q0.hasOwnProperty(n.text))return ve.makeSpan(["mspace",q0[n.text]],[],e);throw new Qe('Unknown type of space "'+n.text+'"')}},mathmlBuilder(n,e){var t;if(Y0.hasOwnProperty(n.text))t=new Ke.MathNode("mtext",[new Ke.TextNode(" ")]);else{if(q0.hasOwnProperty(n.text))return new Ke.MathNode("mspace");throw new Qe('Unknown type of space "'+n.text+'"')}return t}});var VC=()=>{var n=new Ke.MathNode("mtd",[]);return n.setAttribute("width","50%"),n};Na({type:"tag",mathmlBuilder(n,e){var t=new Ke.MathNode("mtable",[new Ke.MathNode("mtr",[VC(),new Ke.MathNode("mtd",[ko(n.body,e)]),VC(),new Ke.MathNode("mtd",[ko(n.tag,e)])])]);return t.setAttribute("width","100%"),t}});var HC={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},qC={"\\textbf":"textbf","\\textmd":"textmd"},Pet={"\\textit":"textit","\\textup":"textup"},YC=(n,e)=>{var t=n.font;if(t){if(HC[t])return e.withTextFontFamily(HC[t]);if(qC[t])return e.withTextFontWeight(qC[t]);if(t==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(Pet[t])};st({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(n,e){var{parser:t,funcName:r}=n,i=e[0];return{type:"text",mode:t.mode,body:kn(i),font:r}},htmlBuilder(n,e){var t=YC(n,e),r=zn(n.body,t,!0);return ve.makeSpan(["mord","text"],r,t)},mathmlBuilder(n,e){var t=YC(n,e);return ko(n.body,t)}});st({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(n,e){var{parser:t}=n;return{type:"underline",mode:t.mode,body:e[0]}},htmlBuilder(n,e){var t=Zt(n.body,e),r=ve.makeLineSpan("underline-line",e),i=e.fontMetrics().defaultRuleThickness,s=ve.makeVList({positionType:"top",positionData:t.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:t}]},e);return ve.makeSpan(["mord","underline"],[s],e)},mathmlBuilder(n,e){var t=new Ke.MathNode("mo",[new Ke.TextNode("‾")]);t.setAttribute("stretchy","true");var r=new Ke.MathNode("munder",[fn(n.body,e),t]);return r.setAttribute("accentunder","true"),r}});st({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(n,e){var{parser:t}=n;return{type:"vcenter",mode:t.mode,body:e[0]}},htmlBuilder(n,e){var t=Zt(n.body,e),r=e.fontMetrics().axisHeight,i=.5*(t.height-r-(t.depth+r));return ve.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:t}]},e)},mathmlBuilder(n,e){return new Ke.MathNode("mpadded",[fn(n.body,e)],["vcenter"])}});st({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(n,e,t){throw new Qe("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(n,e){for(var t=$C(n),r=[],i=e.havingStyle(e.style.text()),s=0;sn.body.replace(/ /g,n.star?"␣":" "),_o=$N,Tk=`[ \r +-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class Nd{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return Et.contains(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),t=0;tt.toText();return this.children.map(e).join("")}}var $i={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},iu={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},vC={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function TJe(n,e){$i[n]=e}function Vv(n,e,t){if(!$i[e])throw new Error("Font metrics not found for font: "+e+".");var r=n.charCodeAt(0),i=$i[e][r];if(!i&&n[0]in vC&&(r=vC[n[0]].charCodeAt(0),i=$i[e][r]),!i&&t==="text"&&PN(r)&&(i=$i[e][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var O0={};function wJe(n){var e;if(n>=5?e=0:n>=3?e=1:e=2,!O0[e]){var t=O0[e]={cssEmPerMu:iu.quad[e]/18};for(var r in iu)iu.hasOwnProperty(r)&&(t[r]=iu[r][e])}return O0[e]}var CJe=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],yC=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],EC=function(e,t){return t.size<2?e:CJe[e-1][t.size-1]};class Es{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||Es.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=yC[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return new Es(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:EC(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:yC[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=EC(Es.BASESIZE,e);return this.size===t&&this.textSize===Es.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Es.BASESIZE?["sizing","reset-size"+this.size,"size"+Es.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=wJe(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Es.BASESIZE=6;var c1={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},AJe={ex:!0,em:!0,mu:!0},FN=function(e){return typeof e!="string"&&(e=e.unit),e in c1||e in AJe||e==="ex"},Tn=function(e,t){var r;if(e.unit in c1)r=c1[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit==="mu")r=t.fontMetrics().cssEmPerMu;else{var i;if(t.style.isTight()?i=t.havingStyle(t.style.text()):i=t,e.unit==="ex")r=i.fontMetrics().xHeight;else if(e.unit==="em")r=i.fontMetrics().quad;else throw new Qe("Invalid unit: '"+e.unit+"'");i!==t&&(r*=i.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*r,t.maxSize)},Je=function(e){return+e.toFixed(4)+"em"},Mo=function(e){return e.filter(t=>t).join(" ")},UN=function(e,t,r){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},t){t.style.isTight()&&this.classes.push("mtight");var i=t.getColor();i&&(this.style.color=i)}},BN=function(e){var t=document.createElement(e);t.className=Mo(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(t.style[r]=this.style[r]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&t.setAttribute(i,this.attributes[i]);for(var s=0;s",t};class kd{constructor(e,t,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,UN.call(this,e,r,i),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return Et.contains(this.classes,e)}toNode(){return BN.call(this,"span")}toMarkup(){return GN.call(this,"span")}}class Hv{constructor(e,t,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,UN.call(this,t,i),this.children=r||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return Et.contains(this.classes,e)}toNode(){return BN.call(this,"a")}toMarkup(){return GN.call(this,"a")}}class RJe{constructor(e,t,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=r}hasClass(e){return Et.contains(this.classes,e)}toNode(){var e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(var t in this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){var e=''+Et.escape(this.alt)+'0&&(t=document.createElement("span"),t.style.marginRight=Je(this.italic)),this.classes.length>0&&(t=t||document.createElement("span"),t.className=Mo(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(t=t||document.createElement("span"),t.style[r]=this.style[r]);return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="0&&(r+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=Et.hyphenate(i)+":"+this.style[i]+";");r&&(e=!0,t+=' style="'+Et.escape(r)+'"');var s=Et.escape(this.text);return e?(t+=">",t+=s,t+="",t):s}}class Os{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);for(var i=0;i':''}}class d1{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);return t}toMarkup(){var e=" but got "+String(n)+".")}var kJe={bin:1,close:1,inner:1,open:1,punct:1,rel:1},IJe={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},_n={math:{},text:{}};function S(n,e,t,r,i,s){_n[n][i]={font:e,group:t,replace:r},s&&r&&(_n[n][r]=_n[n][i])}var R="math",He="text",O="main",j="ams",En="accent-token",ct="bin",Er="close",nc="inner",St="mathord",Fn="op-token",Yr="open",Yh="punct",Q="rel",Gs="spacing",se="textord";S(R,O,Q,"≡","\\equiv",!0);S(R,O,Q,"≺","\\prec",!0);S(R,O,Q,"≻","\\succ",!0);S(R,O,Q,"∼","\\sim",!0);S(R,O,Q,"⊥","\\perp");S(R,O,Q,"⪯","\\preceq",!0);S(R,O,Q,"⪰","\\succeq",!0);S(R,O,Q,"≃","\\simeq",!0);S(R,O,Q,"∣","\\mid",!0);S(R,O,Q,"≪","\\ll",!0);S(R,O,Q,"≫","\\gg",!0);S(R,O,Q,"≍","\\asymp",!0);S(R,O,Q,"∥","\\parallel");S(R,O,Q,"⋈","\\bowtie",!0);S(R,O,Q,"⌣","\\smile",!0);S(R,O,Q,"⊑","\\sqsubseteq",!0);S(R,O,Q,"⊒","\\sqsupseteq",!0);S(R,O,Q,"≐","\\doteq",!0);S(R,O,Q,"⌢","\\frown",!0);S(R,O,Q,"∋","\\ni",!0);S(R,O,Q,"∝","\\propto",!0);S(R,O,Q,"⊢","\\vdash",!0);S(R,O,Q,"⊣","\\dashv",!0);S(R,O,Q,"∋","\\owns");S(R,O,Yh,".","\\ldotp");S(R,O,Yh,"⋅","\\cdotp");S(R,O,se,"#","\\#");S(He,O,se,"#","\\#");S(R,O,se,"&","\\&");S(He,O,se,"&","\\&");S(R,O,se,"ℵ","\\aleph",!0);S(R,O,se,"∀","\\forall",!0);S(R,O,se,"ℏ","\\hbar",!0);S(R,O,se,"∃","\\exists",!0);S(R,O,se,"∇","\\nabla",!0);S(R,O,se,"♭","\\flat",!0);S(R,O,se,"ℓ","\\ell",!0);S(R,O,se,"♮","\\natural",!0);S(R,O,se,"♣","\\clubsuit",!0);S(R,O,se,"℘","\\wp",!0);S(R,O,se,"♯","\\sharp",!0);S(R,O,se,"♢","\\diamondsuit",!0);S(R,O,se,"ℜ","\\Re",!0);S(R,O,se,"♡","\\heartsuit",!0);S(R,O,se,"ℑ","\\Im",!0);S(R,O,se,"♠","\\spadesuit",!0);S(R,O,se,"§","\\S",!0);S(He,O,se,"§","\\S");S(R,O,se,"¶","\\P",!0);S(He,O,se,"¶","\\P");S(R,O,se,"†","\\dag");S(He,O,se,"†","\\dag");S(He,O,se,"†","\\textdagger");S(R,O,se,"‡","\\ddag");S(He,O,se,"‡","\\ddag");S(He,O,se,"‡","\\textdaggerdbl");S(R,O,Er,"⎱","\\rmoustache",!0);S(R,O,Yr,"⎰","\\lmoustache",!0);S(R,O,Er,"⟯","\\rgroup",!0);S(R,O,Yr,"⟮","\\lgroup",!0);S(R,O,ct,"∓","\\mp",!0);S(R,O,ct,"⊖","\\ominus",!0);S(R,O,ct,"⊎","\\uplus",!0);S(R,O,ct,"⊓","\\sqcap",!0);S(R,O,ct,"∗","\\ast");S(R,O,ct,"⊔","\\sqcup",!0);S(R,O,ct,"◯","\\bigcirc",!0);S(R,O,ct,"∙","\\bullet",!0);S(R,O,ct,"‡","\\ddagger");S(R,O,ct,"≀","\\wr",!0);S(R,O,ct,"⨿","\\amalg");S(R,O,ct,"&","\\And");S(R,O,Q,"⟵","\\longleftarrow",!0);S(R,O,Q,"⇐","\\Leftarrow",!0);S(R,O,Q,"⟸","\\Longleftarrow",!0);S(R,O,Q,"⟶","\\longrightarrow",!0);S(R,O,Q,"⇒","\\Rightarrow",!0);S(R,O,Q,"⟹","\\Longrightarrow",!0);S(R,O,Q,"↔","\\leftrightarrow",!0);S(R,O,Q,"⟷","\\longleftrightarrow",!0);S(R,O,Q,"⇔","\\Leftrightarrow",!0);S(R,O,Q,"⟺","\\Longleftrightarrow",!0);S(R,O,Q,"↦","\\mapsto",!0);S(R,O,Q,"⟼","\\longmapsto",!0);S(R,O,Q,"↗","\\nearrow",!0);S(R,O,Q,"↩","\\hookleftarrow",!0);S(R,O,Q,"↪","\\hookrightarrow",!0);S(R,O,Q,"↘","\\searrow",!0);S(R,O,Q,"↼","\\leftharpoonup",!0);S(R,O,Q,"⇀","\\rightharpoonup",!0);S(R,O,Q,"↙","\\swarrow",!0);S(R,O,Q,"↽","\\leftharpoondown",!0);S(R,O,Q,"⇁","\\rightharpoondown",!0);S(R,O,Q,"↖","\\nwarrow",!0);S(R,O,Q,"⇌","\\rightleftharpoons",!0);S(R,j,Q,"≮","\\nless",!0);S(R,j,Q,"","\\@nleqslant");S(R,j,Q,"","\\@nleqq");S(R,j,Q,"⪇","\\lneq",!0);S(R,j,Q,"≨","\\lneqq",!0);S(R,j,Q,"","\\@lvertneqq");S(R,j,Q,"⋦","\\lnsim",!0);S(R,j,Q,"⪉","\\lnapprox",!0);S(R,j,Q,"⊀","\\nprec",!0);S(R,j,Q,"⋠","\\npreceq",!0);S(R,j,Q,"⋨","\\precnsim",!0);S(R,j,Q,"⪹","\\precnapprox",!0);S(R,j,Q,"≁","\\nsim",!0);S(R,j,Q,"","\\@nshortmid");S(R,j,Q,"∤","\\nmid",!0);S(R,j,Q,"⊬","\\nvdash",!0);S(R,j,Q,"⊭","\\nvDash",!0);S(R,j,Q,"⋪","\\ntriangleleft");S(R,j,Q,"⋬","\\ntrianglelefteq",!0);S(R,j,Q,"⊊","\\subsetneq",!0);S(R,j,Q,"","\\@varsubsetneq");S(R,j,Q,"⫋","\\subsetneqq",!0);S(R,j,Q,"","\\@varsubsetneqq");S(R,j,Q,"≯","\\ngtr",!0);S(R,j,Q,"","\\@ngeqslant");S(R,j,Q,"","\\@ngeqq");S(R,j,Q,"⪈","\\gneq",!0);S(R,j,Q,"≩","\\gneqq",!0);S(R,j,Q,"","\\@gvertneqq");S(R,j,Q,"⋧","\\gnsim",!0);S(R,j,Q,"⪊","\\gnapprox",!0);S(R,j,Q,"⊁","\\nsucc",!0);S(R,j,Q,"⋡","\\nsucceq",!0);S(R,j,Q,"⋩","\\succnsim",!0);S(R,j,Q,"⪺","\\succnapprox",!0);S(R,j,Q,"≆","\\ncong",!0);S(R,j,Q,"","\\@nshortparallel");S(R,j,Q,"∦","\\nparallel",!0);S(R,j,Q,"⊯","\\nVDash",!0);S(R,j,Q,"⋫","\\ntriangleright");S(R,j,Q,"⋭","\\ntrianglerighteq",!0);S(R,j,Q,"","\\@nsupseteqq");S(R,j,Q,"⊋","\\supsetneq",!0);S(R,j,Q,"","\\@varsupsetneq");S(R,j,Q,"⫌","\\supsetneqq",!0);S(R,j,Q,"","\\@varsupsetneqq");S(R,j,Q,"⊮","\\nVdash",!0);S(R,j,Q,"⪵","\\precneqq",!0);S(R,j,Q,"⪶","\\succneqq",!0);S(R,j,Q,"","\\@nsubseteqq");S(R,j,ct,"⊴","\\unlhd");S(R,j,ct,"⊵","\\unrhd");S(R,j,Q,"↚","\\nleftarrow",!0);S(R,j,Q,"↛","\\nrightarrow",!0);S(R,j,Q,"⇍","\\nLeftarrow",!0);S(R,j,Q,"⇏","\\nRightarrow",!0);S(R,j,Q,"↮","\\nleftrightarrow",!0);S(R,j,Q,"⇎","\\nLeftrightarrow",!0);S(R,j,Q,"△","\\vartriangle");S(R,j,se,"ℏ","\\hslash");S(R,j,se,"▽","\\triangledown");S(R,j,se,"◊","\\lozenge");S(R,j,se,"Ⓢ","\\circledS");S(R,j,se,"®","\\circledR");S(He,j,se,"®","\\circledR");S(R,j,se,"∡","\\measuredangle",!0);S(R,j,se,"∄","\\nexists");S(R,j,se,"℧","\\mho");S(R,j,se,"Ⅎ","\\Finv",!0);S(R,j,se,"⅁","\\Game",!0);S(R,j,se,"‵","\\backprime");S(R,j,se,"▲","\\blacktriangle");S(R,j,se,"▼","\\blacktriangledown");S(R,j,se,"■","\\blacksquare");S(R,j,se,"⧫","\\blacklozenge");S(R,j,se,"★","\\bigstar");S(R,j,se,"∢","\\sphericalangle",!0);S(R,j,se,"∁","\\complement",!0);S(R,j,se,"ð","\\eth",!0);S(He,O,se,"ð","ð");S(R,j,se,"╱","\\diagup");S(R,j,se,"╲","\\diagdown");S(R,j,se,"□","\\square");S(R,j,se,"□","\\Box");S(R,j,se,"◊","\\Diamond");S(R,j,se,"¥","\\yen",!0);S(He,j,se,"¥","\\yen",!0);S(R,j,se,"✓","\\checkmark",!0);S(He,j,se,"✓","\\checkmark");S(R,j,se,"ℶ","\\beth",!0);S(R,j,se,"ℸ","\\daleth",!0);S(R,j,se,"ℷ","\\gimel",!0);S(R,j,se,"ϝ","\\digamma",!0);S(R,j,se,"ϰ","\\varkappa");S(R,j,Yr,"┌","\\@ulcorner",!0);S(R,j,Er,"┐","\\@urcorner",!0);S(R,j,Yr,"└","\\@llcorner",!0);S(R,j,Er,"┘","\\@lrcorner",!0);S(R,j,Q,"≦","\\leqq",!0);S(R,j,Q,"⩽","\\leqslant",!0);S(R,j,Q,"⪕","\\eqslantless",!0);S(R,j,Q,"≲","\\lesssim",!0);S(R,j,Q,"⪅","\\lessapprox",!0);S(R,j,Q,"≊","\\approxeq",!0);S(R,j,ct,"⋖","\\lessdot");S(R,j,Q,"⋘","\\lll",!0);S(R,j,Q,"≶","\\lessgtr",!0);S(R,j,Q,"⋚","\\lesseqgtr",!0);S(R,j,Q,"⪋","\\lesseqqgtr",!0);S(R,j,Q,"≑","\\doteqdot");S(R,j,Q,"≓","\\risingdotseq",!0);S(R,j,Q,"≒","\\fallingdotseq",!0);S(R,j,Q,"∽","\\backsim",!0);S(R,j,Q,"⋍","\\backsimeq",!0);S(R,j,Q,"⫅","\\subseteqq",!0);S(R,j,Q,"⋐","\\Subset",!0);S(R,j,Q,"⊏","\\sqsubset",!0);S(R,j,Q,"≼","\\preccurlyeq",!0);S(R,j,Q,"⋞","\\curlyeqprec",!0);S(R,j,Q,"≾","\\precsim",!0);S(R,j,Q,"⪷","\\precapprox",!0);S(R,j,Q,"⊲","\\vartriangleleft");S(R,j,Q,"⊴","\\trianglelefteq");S(R,j,Q,"⊨","\\vDash",!0);S(R,j,Q,"⊪","\\Vvdash",!0);S(R,j,Q,"⌣","\\smallsmile");S(R,j,Q,"⌢","\\smallfrown");S(R,j,Q,"≏","\\bumpeq",!0);S(R,j,Q,"≎","\\Bumpeq",!0);S(R,j,Q,"≧","\\geqq",!0);S(R,j,Q,"⩾","\\geqslant",!0);S(R,j,Q,"⪖","\\eqslantgtr",!0);S(R,j,Q,"≳","\\gtrsim",!0);S(R,j,Q,"⪆","\\gtrapprox",!0);S(R,j,ct,"⋗","\\gtrdot");S(R,j,Q,"⋙","\\ggg",!0);S(R,j,Q,"≷","\\gtrless",!0);S(R,j,Q,"⋛","\\gtreqless",!0);S(R,j,Q,"⪌","\\gtreqqless",!0);S(R,j,Q,"≖","\\eqcirc",!0);S(R,j,Q,"≗","\\circeq",!0);S(R,j,Q,"≜","\\triangleq",!0);S(R,j,Q,"∼","\\thicksim");S(R,j,Q,"≈","\\thickapprox");S(R,j,Q,"⫆","\\supseteqq",!0);S(R,j,Q,"⋑","\\Supset",!0);S(R,j,Q,"⊐","\\sqsupset",!0);S(R,j,Q,"≽","\\succcurlyeq",!0);S(R,j,Q,"⋟","\\curlyeqsucc",!0);S(R,j,Q,"≿","\\succsim",!0);S(R,j,Q,"⪸","\\succapprox",!0);S(R,j,Q,"⊳","\\vartriangleright");S(R,j,Q,"⊵","\\trianglerighteq");S(R,j,Q,"⊩","\\Vdash",!0);S(R,j,Q,"∣","\\shortmid");S(R,j,Q,"∥","\\shortparallel");S(R,j,Q,"≬","\\between",!0);S(R,j,Q,"⋔","\\pitchfork",!0);S(R,j,Q,"∝","\\varpropto");S(R,j,Q,"◀","\\blacktriangleleft");S(R,j,Q,"∴","\\therefore",!0);S(R,j,Q,"∍","\\backepsilon");S(R,j,Q,"▶","\\blacktriangleright");S(R,j,Q,"∵","\\because",!0);S(R,j,Q,"⋘","\\llless");S(R,j,Q,"⋙","\\gggtr");S(R,j,ct,"⊲","\\lhd");S(R,j,ct,"⊳","\\rhd");S(R,j,Q,"≂","\\eqsim",!0);S(R,O,Q,"⋈","\\Join");S(R,j,Q,"≑","\\Doteq",!0);S(R,j,ct,"∔","\\dotplus",!0);S(R,j,ct,"∖","\\smallsetminus");S(R,j,ct,"⋒","\\Cap",!0);S(R,j,ct,"⋓","\\Cup",!0);S(R,j,ct,"⩞","\\doublebarwedge",!0);S(R,j,ct,"⊟","\\boxminus",!0);S(R,j,ct,"⊞","\\boxplus",!0);S(R,j,ct,"⋇","\\divideontimes",!0);S(R,j,ct,"⋉","\\ltimes",!0);S(R,j,ct,"⋊","\\rtimes",!0);S(R,j,ct,"⋋","\\leftthreetimes",!0);S(R,j,ct,"⋌","\\rightthreetimes",!0);S(R,j,ct,"⋏","\\curlywedge",!0);S(R,j,ct,"⋎","\\curlyvee",!0);S(R,j,ct,"⊝","\\circleddash",!0);S(R,j,ct,"⊛","\\circledast",!0);S(R,j,ct,"⋅","\\centerdot");S(R,j,ct,"⊺","\\intercal",!0);S(R,j,ct,"⋒","\\doublecap");S(R,j,ct,"⋓","\\doublecup");S(R,j,ct,"⊠","\\boxtimes",!0);S(R,j,Q,"⇢","\\dashrightarrow",!0);S(R,j,Q,"⇠","\\dashleftarrow",!0);S(R,j,Q,"⇇","\\leftleftarrows",!0);S(R,j,Q,"⇆","\\leftrightarrows",!0);S(R,j,Q,"⇚","\\Lleftarrow",!0);S(R,j,Q,"↞","\\twoheadleftarrow",!0);S(R,j,Q,"↢","\\leftarrowtail",!0);S(R,j,Q,"↫","\\looparrowleft",!0);S(R,j,Q,"⇋","\\leftrightharpoons",!0);S(R,j,Q,"↶","\\curvearrowleft",!0);S(R,j,Q,"↺","\\circlearrowleft",!0);S(R,j,Q,"↰","\\Lsh",!0);S(R,j,Q,"⇈","\\upuparrows",!0);S(R,j,Q,"↿","\\upharpoonleft",!0);S(R,j,Q,"⇃","\\downharpoonleft",!0);S(R,O,Q,"⊶","\\origof",!0);S(R,O,Q,"⊷","\\imageof",!0);S(R,j,Q,"⊸","\\multimap",!0);S(R,j,Q,"↭","\\leftrightsquigarrow",!0);S(R,j,Q,"⇉","\\rightrightarrows",!0);S(R,j,Q,"⇄","\\rightleftarrows",!0);S(R,j,Q,"↠","\\twoheadrightarrow",!0);S(R,j,Q,"↣","\\rightarrowtail",!0);S(R,j,Q,"↬","\\looparrowright",!0);S(R,j,Q,"↷","\\curvearrowright",!0);S(R,j,Q,"↻","\\circlearrowright",!0);S(R,j,Q,"↱","\\Rsh",!0);S(R,j,Q,"⇊","\\downdownarrows",!0);S(R,j,Q,"↾","\\upharpoonright",!0);S(R,j,Q,"⇂","\\downharpoonright",!0);S(R,j,Q,"⇝","\\rightsquigarrow",!0);S(R,j,Q,"⇝","\\leadsto");S(R,j,Q,"⇛","\\Rrightarrow",!0);S(R,j,Q,"↾","\\restriction");S(R,O,se,"‘","`");S(R,O,se,"$","\\$");S(He,O,se,"$","\\$");S(He,O,se,"$","\\textdollar");S(R,O,se,"%","\\%");S(He,O,se,"%","\\%");S(R,O,se,"_","\\_");S(He,O,se,"_","\\_");S(He,O,se,"_","\\textunderscore");S(R,O,se,"∠","\\angle",!0);S(R,O,se,"∞","\\infty",!0);S(R,O,se,"′","\\prime");S(R,O,se,"△","\\triangle");S(R,O,se,"Γ","\\Gamma",!0);S(R,O,se,"Δ","\\Delta",!0);S(R,O,se,"Θ","\\Theta",!0);S(R,O,se,"Λ","\\Lambda",!0);S(R,O,se,"Ξ","\\Xi",!0);S(R,O,se,"Π","\\Pi",!0);S(R,O,se,"Σ","\\Sigma",!0);S(R,O,se,"Υ","\\Upsilon",!0);S(R,O,se,"Φ","\\Phi",!0);S(R,O,se,"Ψ","\\Psi",!0);S(R,O,se,"Ω","\\Omega",!0);S(R,O,se,"A","Α");S(R,O,se,"B","Β");S(R,O,se,"E","Ε");S(R,O,se,"Z","Ζ");S(R,O,se,"H","Η");S(R,O,se,"I","Ι");S(R,O,se,"K","Κ");S(R,O,se,"M","Μ");S(R,O,se,"N","Ν");S(R,O,se,"O","Ο");S(R,O,se,"P","Ρ");S(R,O,se,"T","Τ");S(R,O,se,"X","Χ");S(R,O,se,"¬","\\neg",!0);S(R,O,se,"¬","\\lnot");S(R,O,se,"⊤","\\top");S(R,O,se,"⊥","\\bot");S(R,O,se,"∅","\\emptyset");S(R,j,se,"∅","\\varnothing");S(R,O,St,"α","\\alpha",!0);S(R,O,St,"β","\\beta",!0);S(R,O,St,"γ","\\gamma",!0);S(R,O,St,"δ","\\delta",!0);S(R,O,St,"ϵ","\\epsilon",!0);S(R,O,St,"ζ","\\zeta",!0);S(R,O,St,"η","\\eta",!0);S(R,O,St,"θ","\\theta",!0);S(R,O,St,"ι","\\iota",!0);S(R,O,St,"κ","\\kappa",!0);S(R,O,St,"λ","\\lambda",!0);S(R,O,St,"μ","\\mu",!0);S(R,O,St,"ν","\\nu",!0);S(R,O,St,"ξ","\\xi",!0);S(R,O,St,"ο","\\omicron",!0);S(R,O,St,"π","\\pi",!0);S(R,O,St,"ρ","\\rho",!0);S(R,O,St,"σ","\\sigma",!0);S(R,O,St,"τ","\\tau",!0);S(R,O,St,"υ","\\upsilon",!0);S(R,O,St,"ϕ","\\phi",!0);S(R,O,St,"χ","\\chi",!0);S(R,O,St,"ψ","\\psi",!0);S(R,O,St,"ω","\\omega",!0);S(R,O,St,"ε","\\varepsilon",!0);S(R,O,St,"ϑ","\\vartheta",!0);S(R,O,St,"ϖ","\\varpi",!0);S(R,O,St,"ϱ","\\varrho",!0);S(R,O,St,"ς","\\varsigma",!0);S(R,O,St,"φ","\\varphi",!0);S(R,O,ct,"∗","*",!0);S(R,O,ct,"+","+");S(R,O,ct,"−","-",!0);S(R,O,ct,"⋅","\\cdot",!0);S(R,O,ct,"∘","\\circ",!0);S(R,O,ct,"÷","\\div",!0);S(R,O,ct,"±","\\pm",!0);S(R,O,ct,"×","\\times",!0);S(R,O,ct,"∩","\\cap",!0);S(R,O,ct,"∪","\\cup",!0);S(R,O,ct,"∖","\\setminus",!0);S(R,O,ct,"∧","\\land");S(R,O,ct,"∨","\\lor");S(R,O,ct,"∧","\\wedge",!0);S(R,O,ct,"∨","\\vee",!0);S(R,O,se,"√","\\surd");S(R,O,Yr,"⟨","\\langle",!0);S(R,O,Yr,"∣","\\lvert");S(R,O,Yr,"∥","\\lVert");S(R,O,Er,"?","?");S(R,O,Er,"!","!");S(R,O,Er,"⟩","\\rangle",!0);S(R,O,Er,"∣","\\rvert");S(R,O,Er,"∥","\\rVert");S(R,O,Q,"=","=");S(R,O,Q,":",":");S(R,O,Q,"≈","\\approx",!0);S(R,O,Q,"≅","\\cong",!0);S(R,O,Q,"≥","\\ge");S(R,O,Q,"≥","\\geq",!0);S(R,O,Q,"←","\\gets");S(R,O,Q,">","\\gt",!0);S(R,O,Q,"∈","\\in",!0);S(R,O,Q,"","\\@not");S(R,O,Q,"⊂","\\subset",!0);S(R,O,Q,"⊃","\\supset",!0);S(R,O,Q,"⊆","\\subseteq",!0);S(R,O,Q,"⊇","\\supseteq",!0);S(R,j,Q,"⊈","\\nsubseteq",!0);S(R,j,Q,"⊉","\\nsupseteq",!0);S(R,O,Q,"⊨","\\models");S(R,O,Q,"←","\\leftarrow",!0);S(R,O,Q,"≤","\\le");S(R,O,Q,"≤","\\leq",!0);S(R,O,Q,"<","\\lt",!0);S(R,O,Q,"→","\\rightarrow",!0);S(R,O,Q,"→","\\to");S(R,j,Q,"≱","\\ngeq",!0);S(R,j,Q,"≰","\\nleq",!0);S(R,O,Gs," ","\\ ");S(R,O,Gs," ","\\space");S(R,O,Gs," ","\\nobreakspace");S(He,O,Gs," ","\\ ");S(He,O,Gs," "," ");S(He,O,Gs," ","\\space");S(He,O,Gs," ","\\nobreakspace");S(R,O,Gs,null,"\\nobreak");S(R,O,Gs,null,"\\allowbreak");S(R,O,Yh,",",",");S(R,O,Yh,";",";");S(R,j,ct,"⊼","\\barwedge",!0);S(R,j,ct,"⊻","\\veebar",!0);S(R,O,ct,"⊙","\\odot",!0);S(R,O,ct,"⊕","\\oplus",!0);S(R,O,ct,"⊗","\\otimes",!0);S(R,O,se,"∂","\\partial",!0);S(R,O,ct,"⊘","\\oslash",!0);S(R,j,ct,"⊚","\\circledcirc",!0);S(R,j,ct,"⊡","\\boxdot",!0);S(R,O,ct,"△","\\bigtriangleup");S(R,O,ct,"▽","\\bigtriangledown");S(R,O,ct,"†","\\dagger");S(R,O,ct,"⋄","\\diamond");S(R,O,ct,"⋆","\\star");S(R,O,ct,"◃","\\triangleleft");S(R,O,ct,"▹","\\triangleright");S(R,O,Yr,"{","\\{");S(He,O,se,"{","\\{");S(He,O,se,"{","\\textbraceleft");S(R,O,Er,"}","\\}");S(He,O,se,"}","\\}");S(He,O,se,"}","\\textbraceright");S(R,O,Yr,"{","\\lbrace");S(R,O,Er,"}","\\rbrace");S(R,O,Yr,"[","\\lbrack",!0);S(He,O,se,"[","\\lbrack",!0);S(R,O,Er,"]","\\rbrack",!0);S(He,O,se,"]","\\rbrack",!0);S(R,O,Yr,"(","\\lparen",!0);S(R,O,Er,")","\\rparen",!0);S(He,O,se,"<","\\textless",!0);S(He,O,se,">","\\textgreater",!0);S(R,O,Yr,"⌊","\\lfloor",!0);S(R,O,Er,"⌋","\\rfloor",!0);S(R,O,Yr,"⌈","\\lceil",!0);S(R,O,Er,"⌉","\\rceil",!0);S(R,O,se,"\\","\\backslash");S(R,O,se,"∣","|");S(R,O,se,"∣","\\vert");S(He,O,se,"|","\\textbar",!0);S(R,O,se,"∥","\\|");S(R,O,se,"∥","\\Vert");S(He,O,se,"∥","\\textbardbl");S(He,O,se,"~","\\textasciitilde");S(He,O,se,"\\","\\textbackslash");S(He,O,se,"^","\\textasciicircum");S(R,O,Q,"↑","\\uparrow",!0);S(R,O,Q,"⇑","\\Uparrow",!0);S(R,O,Q,"↓","\\downarrow",!0);S(R,O,Q,"⇓","\\Downarrow",!0);S(R,O,Q,"↕","\\updownarrow",!0);S(R,O,Q,"⇕","\\Updownarrow",!0);S(R,O,Fn,"∐","\\coprod");S(R,O,Fn,"⋁","\\bigvee");S(R,O,Fn,"⋀","\\bigwedge");S(R,O,Fn,"⨄","\\biguplus");S(R,O,Fn,"⋂","\\bigcap");S(R,O,Fn,"⋃","\\bigcup");S(R,O,Fn,"∫","\\int");S(R,O,Fn,"∫","\\intop");S(R,O,Fn,"∬","\\iint");S(R,O,Fn,"∭","\\iiint");S(R,O,Fn,"∏","\\prod");S(R,O,Fn,"∑","\\sum");S(R,O,Fn,"⨂","\\bigotimes");S(R,O,Fn,"⨁","\\bigoplus");S(R,O,Fn,"⨀","\\bigodot");S(R,O,Fn,"∮","\\oint");S(R,O,Fn,"∯","\\oiint");S(R,O,Fn,"∰","\\oiiint");S(R,O,Fn,"⨆","\\bigsqcup");S(R,O,Fn,"∫","\\smallint");S(He,O,nc,"…","\\textellipsis");S(R,O,nc,"…","\\mathellipsis");S(He,O,nc,"…","\\ldots",!0);S(R,O,nc,"…","\\ldots",!0);S(R,O,nc,"⋯","\\@cdots",!0);S(R,O,nc,"⋱","\\ddots",!0);S(R,O,se,"⋮","\\varvdots");S(R,O,En,"ˊ","\\acute");S(R,O,En,"ˋ","\\grave");S(R,O,En,"¨","\\ddot");S(R,O,En,"~","\\tilde");S(R,O,En,"ˉ","\\bar");S(R,O,En,"˘","\\breve");S(R,O,En,"ˇ","\\check");S(R,O,En,"^","\\hat");S(R,O,En,"⃗","\\vec");S(R,O,En,"˙","\\dot");S(R,O,En,"˚","\\mathring");S(R,O,St,"","\\@imath");S(R,O,St,"","\\@jmath");S(R,O,se,"ı","ı");S(R,O,se,"ȷ","ȷ");S(He,O,se,"ı","\\i",!0);S(He,O,se,"ȷ","\\j",!0);S(He,O,se,"ß","\\ss",!0);S(He,O,se,"æ","\\ae",!0);S(He,O,se,"œ","\\oe",!0);S(He,O,se,"ø","\\o",!0);S(He,O,se,"Æ","\\AE",!0);S(He,O,se,"Œ","\\OE",!0);S(He,O,se,"Ø","\\O",!0);S(He,O,En,"ˊ","\\'");S(He,O,En,"ˋ","\\`");S(He,O,En,"ˆ","\\^");S(He,O,En,"˜","\\~");S(He,O,En,"ˉ","\\=");S(He,O,En,"˘","\\u");S(He,O,En,"˙","\\.");S(He,O,En,"¸","\\c");S(He,O,En,"˚","\\r");S(He,O,En,"ˇ","\\v");S(He,O,En,"¨",'\\"');S(He,O,En,"˝","\\H");S(He,O,En,"◯","\\textcircled");var zN={"--":!0,"---":!0,"``":!0,"''":!0};S(He,O,se,"–","--",!0);S(He,O,se,"–","\\textendash");S(He,O,se,"—","---",!0);S(He,O,se,"—","\\textemdash");S(He,O,se,"‘","`",!0);S(He,O,se,"‘","\\textquoteleft");S(He,O,se,"’","'",!0);S(He,O,se,"’","\\textquoteright");S(He,O,se,"“","``",!0);S(He,O,se,"“","\\textquotedblleft");S(He,O,se,"”","''",!0);S(He,O,se,"”","\\textquotedblright");S(R,O,se,"°","\\degree",!0);S(He,O,se,"°","\\degree");S(He,O,se,"°","\\textdegree",!0);S(R,O,se,"£","\\pounds");S(R,O,se,"£","\\mathsterling",!0);S(He,O,se,"£","\\pounds");S(He,O,se,"£","\\textsterling",!0);S(R,j,se,"✠","\\maltese");S(He,j,se,"✠","\\maltese");var xC='0123456789/@."';for(var D0=0;D00)return Si(s,d,i,t,o.concat(u));if(l){var m,f;if(l==="boldsymbol"){var g=LJe(s,i,t,o,r);m=g.fontName,f=[g.fontClass]}else a?(m=qN[l].fontName,f=[l]):(m=lu(l,t.fontWeight,t.fontShape),f=[l,t.fontWeight,t.fontShape]);if($h(s,m,i).metrics)return Si(s,m,i,t,o.concat(f));if(zN.hasOwnProperty(s)&&m.slice(0,10)==="Typewriter"){for(var h=[],v=0;v{if(Mo(n.classes)!==Mo(e.classes)||n.skew!==e.skew||n.maxFontSize!==e.maxFontSize)return!1;if(n.classes.length===1){var t=n.classes[0];if(t==="mbin"||t==="mord")return!1}for(var r in n.style)if(n.style.hasOwnProperty(r)&&n.style[r]!==e.style[r])return!1;for(var i in e.style)if(e.style.hasOwnProperty(i)&&n.style[i]!==e.style[i])return!1;return!0},UJe=n=>{for(var e=0;et&&(t=o.height),o.depth>r&&(r=o.depth),o.maxFontSize>i&&(i=o.maxFontSize)}e.height=t,e.depth=r,e.maxFontSize=i},Tr=function(e,t,r,i){var s=new kd(e,t,r,i);return qv(s),s},VN=(n,e,t,r)=>new kd(n,e,t,r),BJe=function(e,t,r){var i=Tr([e],[],t);return i.height=Math.max(r||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),i.style.borderBottomWidth=Je(i.height),i.maxFontSize=1,i},GJe=function(e,t,r,i){var s=new Hv(e,t,r,i);return qv(s),s},HN=function(e){var t=new Nd(e);return qv(t),t},zJe=function(e,t){return e instanceof Nd?Tr([],[e],t):e},VJe=function(e){if(e.positionType==="individualShift"){for(var t=e.children,r=[t[0]],i=-t[0].shift-t[0].elem.depth,s=i,o=1;o{var t=Tr(["mspace"],[],e),r=Tn(n,e);return t.style.marginRight=Je(r),t},lu=function(e,t,r){var i="";switch(e){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=e}var s;return t==="textbf"&&r==="textit"?s="BoldItalic":t==="textbf"?s="Bold":t==="textit"?s="Italic":s="Regular",i+"-"+s},qN={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},YN={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},YJe=function(e,t){var[r,i,s]=YN[e],o=new No(r),a=new Os([o],{width:Je(i),height:Je(s),style:"width:"+Je(i),viewBox:"0 0 "+1e3*i+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),l=VN(["overlay"],[a],t);return l.height=s,l.style.height=Je(s),l.style.width=Je(i),l},ve={fontMap:qN,makeSymbol:Si,mathsym:DJe,makeSpan:Tr,makeSvgSpan:VN,makeLineSpan:BJe,makeAnchor:GJe,makeFragment:HN,wrapFragment:zJe,makeVList:HJe,makeOrd:PJe,makeGlue:qJe,staticSvg:YJe,svgData:YN,tryCombineChars:UJe},xn={number:3,unit:"mu"},qo={number:4,unit:"mu"},us={number:5,unit:"mu"},$Je={mord:{mop:xn,mbin:qo,mrel:us,minner:xn},mop:{mord:xn,mop:xn,mrel:us,minner:xn},mbin:{mord:qo,mop:qo,mopen:qo,minner:qo},mrel:{mord:us,mop:us,mopen:us,minner:us},mopen:{},mclose:{mop:xn,mbin:qo,mrel:us,minner:xn},mpunct:{mord:xn,mop:xn,mrel:us,mopen:xn,mclose:xn,mpunct:xn,minner:xn},minner:{mord:xn,mop:xn,mbin:qo,mrel:us,mopen:xn,mpunct:xn,minner:xn}},WJe={mord:{mop:xn},mop:{mord:xn,mop:xn},mbin:{},mrel:{},mopen:{},mclose:{mop:xn},mpunct:{},minner:{mop:xn}},$N={},Bp={},Gp={};function st(n){for(var{type:e,names:t,props:r,handler:i,htmlBuilder:s,mathmlBuilder:o}=n,a={type:e,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},l=0;l{var b=v.classes[0],_=h.classes[0];b==="mbin"&&Et.contains(jJe,_)?v.classes[0]="mord":_==="mbin"&&Et.contains(KJe,b)&&(h.classes[0]="mord")},{node:m},f,g),RC(s,(h,v)=>{var b=p1(v),_=p1(h),y=b&&_?h.hasClass("mtight")?WJe[b][_]:$Je[b][_]:null;if(y)return ve.makeGlue(y,d)},{node:m},f,g),s},RC=function n(e,t,r,i,s){i&&e.push(i);for(var o=0;of=>{e.splice(m+1,0,f),o++})(o)}i&&e.pop()},WN=function(e){return e instanceof Nd||e instanceof Hv||e instanceof kd&&e.hasClass("enclosing")?e:null},ZJe=function n(e,t){var r=WN(e);if(r){var i=r.children;if(i.length){if(t==="right")return n(i[i.length-1],"right");if(t==="left")return n(i[0],"left")}}return e},p1=function(e,t){return e?(t&&(e=ZJe(e,t)),XJe[e.classes[0]]||null):null},md=function(e,t){var r=["nulldelimiter"].concat(e.baseSizingClasses());return Ds(t.concat(r))},Zt=function(e,t,r){if(!e)return Ds();if(Bp[e.type]){var i=Bp[e.type](e,t);if(r&&t.size!==r.size){i=Ds(t.sizingClasses(r),[i],t);var s=t.sizeMultiplier/r.sizeMultiplier;i.height*=s,i.depth*=s}return i}else throw new Qe("Got group of unknown type: '"+e.type+"'")};function cu(n,e){var t=Ds(["base"],n,e),r=Ds(["strut"]);return r.style.height=Je(t.height+t.depth),t.depth&&(r.style.verticalAlign=Je(-t.depth)),t.children.unshift(r),t}function h1(n,e){var t=null;n.length===1&&n[0].type==="tag"&&(t=n[0].tag,n=n[0].body);var r=zn(n,e,"root"),i;r.length===2&&r[1].hasClass("tag")&&(i=r.pop());for(var s=[],o=[],a=0;a0&&(s.push(cu(o,e)),o=[]),s.push(r[a]));o.length>0&&s.push(cu(o,e));var d;t?(d=cu(zn(t,e,!0)),d.classes=["tag"],s.push(d)):i&&s.push(i);var u=Ds(["katex-html"],s);if(u.setAttribute("aria-hidden","true"),d){var m=d.children[0];m.style.height=Je(u.height+u.depth),u.depth&&(m.style.verticalAlign=Je(-u.depth))}return u}function KN(n){return new Nd(n)}class Zr{constructor(e,t,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=r||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=Mo(this.classes));for(var r=0;r0&&(e+=' class ="'+Et.escape(Mo(this.classes))+'"'),e+=">";for(var r=0;r",e}toText(){return this.children.map(e=>e.toText()).join("")}}class Hc{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return Et.escape(this.toText())}toText(){return this.text}}class JJe{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character=" ":e>=.1666&&e<=.1667?this.character=" ":e>=.2222&&e<=.2223?this.character=" ":e>=.2777&&e<=.2778?this.character="  ":e>=-.05556&&e<=-.05555?this.character=" ⁣":e>=-.1667&&e<=-.1666?this.character=" ⁣":e>=-.2223&&e<=-.2222?this.character=" ⁣":e>=-.2778&&e<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",Je(this.width)),e}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}var Ke={MathNode:Zr,TextNode:Hc,SpaceNode:JJe,newDocumentFragment:KN},mi=function(e,t,r){return _n[t][e]&&_n[t][e].replace&&e.charCodeAt(0)!==55349&&!(zN.hasOwnProperty(e)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(e=_n[t][e].replace),new Ke.TextNode(e)},Yv=function(e){return e.length===1?e[0]:new Ke.MathNode("mrow",e)},$v=function(e,t){if(t.fontFamily==="texttt")return"monospace";if(t.fontFamily==="textsf")return t.fontShape==="textit"&&t.fontWeight==="textbf"?"sans-serif-bold-italic":t.fontShape==="textit"?"sans-serif-italic":t.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(t.fontShape==="textit"&&t.fontWeight==="textbf")return"bold-italic";if(t.fontShape==="textit")return"italic";if(t.fontWeight==="textbf")return"bold";var r=t.font;if(!r||r==="mathnormal")return null;var i=e.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return e.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var s=e.text;if(Et.contains(["\\imath","\\jmath"],s))return null;_n[i][s]&&_n[i][s].replace&&(s=_n[i][s].replace);var o=ve.fontMap[r].fontName;return Vv(s,o,i)?ve.fontMap[r].variant:null},Or=function(e,t,r){if(e.length===1){var i=fn(e[0],t);return r&&i instanceof Zr&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var s=[],o,a=0;a0&&(m.text=m.text.slice(0,1)+"̸"+m.text.slice(1),s.pop())}}}s.push(l),o=l}return s},ko=function(e,t,r){return Yv(Or(e,t,r))},fn=function(e,t){if(!e)return new Ke.MathNode("mrow");if(Gp[e.type]){var r=Gp[e.type](e,t);return r}else throw new Qe("Got group of unknown type: '"+e.type+"'")};function MC(n,e,t,r,i){var s=Or(n,t),o;s.length===1&&s[0]instanceof Zr&&Et.contains(["mrow","mtable"],s[0].type)?o=s[0]:o=new Ke.MathNode("mrow",s);var a=new Ke.MathNode("annotation",[new Ke.TextNode(e)]);a.setAttribute("encoding","application/x-tex");var l=new Ke.MathNode("semantics",[o,a]),d=new Ke.MathNode("math",[l]);d.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&d.setAttribute("display","block");var u=i?"katex":"katex-mathml";return ve.makeSpan([u],[d])}var jN=function(e){return new Es({style:e.displayMode?xt.DISPLAY:xt.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},QN=function(e,t){if(t.displayMode){var r=["katex-display"];t.leqno&&r.push("leqno"),t.fleqn&&r.push("fleqn"),e=ve.makeSpan(r,[e])}return e},eet=function(e,t,r){var i=jN(r),s;if(r.output==="mathml")return MC(e,t,i,r.displayMode,!0);if(r.output==="html"){var o=h1(e,i);s=ve.makeSpan(["katex"],[o])}else{var a=MC(e,t,i,r.displayMode,!1),l=h1(e,i);s=ve.makeSpan(["katex"],[a,l])}return QN(s,r)},tet=function(e,t,r){var i=jN(r),s=h1(e,i),o=ve.makeSpan(["katex"],[s]);return QN(o,r)},net={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},ret=function(e){var t=new Ke.MathNode("mo",[new Ke.TextNode(net[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},iet={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},set=function(e){return e.type==="ordgroup"?e.body.length:1},oet=function(e,t){function r(){var a=4e5,l=e.label.slice(1);if(Et.contains(["widehat","widecheck","widetilde","utilde"],l)){var d=e,u=set(d.base),m,f,g;if(u>5)l==="widehat"||l==="widecheck"?(m=420,a=2364,g=.42,f=l+"4"):(m=312,a=2340,g=.34,f="tilde4");else{var h=[1,1,2,2,3,3][u];l==="widehat"||l==="widecheck"?(a=[0,1062,2364,2364,2364][h],m=[0,239,300,360,420][h],g=[0,.24,.3,.3,.36,.42][h],f=l+h):(a=[0,600,1033,2339,2340][h],m=[0,260,286,306,312][h],g=[0,.26,.286,.3,.306,.34][h],f="tilde"+h)}var v=new No(f),b=new Os([v],{width:"100%",height:Je(g),viewBox:"0 0 "+a+" "+m,preserveAspectRatio:"none"});return{span:ve.makeSvgSpan([],[b],t),minWidth:0,height:g}}else{var _=[],y=iet[l],[E,x,A]=y,w=A/1e3,N=E.length,L,C;if(N===1){var k=y[3];L=["hide-tail"],C=[k]}else if(N===2)L=["halfarrow-left","halfarrow-right"],C=["xMinYMin","xMaxYMin"];else if(N===3)L=["brace-left","brace-center","brace-right"],C=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support + `+N+" children.");for(var H=0;H0&&(i.style.minWidth=Je(s)),i},aet=function(e,t,r,i,s){var o,a=e.height+e.depth+r+i;if(/fbox|color|angl/.test(t)){if(o=ve.makeSpan(["stretchy",t],[],s),t==="fbox"){var l=s.color&&s.getColor();l&&(o.style.borderColor=l)}}else{var d=[];/^[bx]cancel$/.test(t)&&d.push(new d1({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&d.push(new d1({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var u=new Os(d,{width:"100%",height:Je(a)});o=ve.makeSvgSpan([],[u],s)}return o.height=a,o.style.height=Je(a),o},Ls={encloseSpan:aet,mathMLnode:ret,svgSpan:oet};function Ut(n,e){if(!n||n.type!==e)throw new Error("Expected node of type "+e+", but got "+(n?"node of type "+n.type:String(n)));return n}function Wv(n){var e=Wh(n);if(!e)throw new Error("Expected node of symbol group type, but got "+(n?"node of type "+n.type:String(n)));return e}function Wh(n){return n&&(n.type==="atom"||IJe.hasOwnProperty(n.type))?n:null}var Kv=(n,e)=>{var t,r,i;n&&n.type==="supsub"?(r=Ut(n.base,"accent"),t=r.base,n.base=t,i=NJe(Zt(n,e)),n.base=r):(r=Ut(n,"accent"),t=r.base);var s=Zt(t,e.havingCrampedStyle()),o=r.isShifty&&Et.isCharacterBox(t),a=0;if(o){var l=Et.getBaseElem(t),d=Zt(l,e.havingCrampedStyle());a=SC(d).skew}var u=r.label==="\\c",m=u?s.height+s.depth:Math.min(s.height,e.fontMetrics().xHeight),f;if(r.isStretchy)f=Ls.svgSpan(r,e),f=ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:f,wrapperClasses:["svg-align"],wrapperStyle:a>0?{width:"calc(100% - "+Je(2*a)+")",marginLeft:Je(2*a)}:void 0}]},e);else{var g,h;r.label==="\\vec"?(g=ve.staticSvg("vec",e),h=ve.svgData.vec[1]):(g=ve.makeOrd({mode:r.mode,text:r.label},e,"textord"),g=SC(g),g.italic=0,h=g.width,u&&(m+=g.depth)),f=ve.makeSpan(["accent-body"],[g]);var v=r.label==="\\textcircled";v&&(f.classes.push("accent-full"),m=s.height);var b=a;v||(b-=h/2),f.style.left=Je(b),r.label==="\\textcircled"&&(f.style.top=".2em"),f=ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-m},{type:"elem",elem:f}]},e)}var _=ve.makeSpan(["mord","accent"],[f],e);return i?(i.children[0]=_,i.height=Math.max(_.height,i.height),i.classes[0]="mord",i):_},XN=(n,e)=>{var t=n.isStretchy?Ls.mathMLnode(n.label):new Ke.MathNode("mo",[mi(n.label,n.mode)]),r=new Ke.MathNode("mover",[fn(n.base,e),t]);return r.setAttribute("accent","true"),r},cet=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(n=>"\\"+n).join("|"));st({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(n,e)=>{var t=zp(e[0]),r=!cet.test(n.funcName),i=!r||n.funcName==="\\widehat"||n.funcName==="\\widetilde"||n.funcName==="\\widecheck";return{type:"accent",mode:n.parser.mode,label:n.funcName,isStretchy:r,isShifty:i,base:t}},htmlBuilder:Kv,mathmlBuilder:XN});st({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(n,e)=>{var t=e[0],r=n.parser.mode;return r==="math"&&(n.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+n.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:n.funcName,isStretchy:!1,isShifty:!0,base:t}},htmlBuilder:Kv,mathmlBuilder:XN});st({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(n,e)=>{var{parser:t,funcName:r}=n,i=e[0];return{type:"accentUnder",mode:t.mode,label:r,base:i}},htmlBuilder:(n,e)=>{var t=Zt(n.base,e),r=Ls.svgSpan(n,e),i=n.label==="\\utilde"?.12:0,s=ve.makeVList({positionType:"top",positionData:t.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:t}]},e);return ve.makeSpan(["mord","accentunder"],[s],e)},mathmlBuilder:(n,e)=>{var t=Ls.mathMLnode(n.label),r=new Ke.MathNode("munder",[fn(n.base,e),t]);return r.setAttribute("accentunder","true"),r}});var du=n=>{var e=new Ke.MathNode("mpadded",n?[n]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};st({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(n,e,t){var{parser:r,funcName:i}=n;return{type:"xArrow",mode:r.mode,label:i,body:e[0],below:t[0]}},htmlBuilder(n,e){var t=e.style,r=e.havingStyle(t.sup()),i=ve.wrapFragment(Zt(n.body,r,e),e),s=n.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(s+"-arrow-pad");var o;n.below&&(r=e.havingStyle(t.sub()),o=ve.wrapFragment(Zt(n.below,r,e),e),o.classes.push(s+"-arrow-pad"));var a=Ls.svgSpan(n,e),l=-e.fontMetrics().axisHeight+.5*a.height,d=-e.fontMetrics().axisHeight-.5*a.height-.111;(i.depth>.25||n.label==="\\xleftequilibrium")&&(d-=i.depth);var u;if(o){var m=-e.fontMetrics().axisHeight+o.height+.5*a.height+.111;u=ve.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:d},{type:"elem",elem:a,shift:l},{type:"elem",elem:o,shift:m}]},e)}else u=ve.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:d},{type:"elem",elem:a,shift:l}]},e);return u.children[0].children[0].children[1].classes.push("svg-align"),ve.makeSpan(["mrel","x-arrow"],[u],e)},mathmlBuilder(n,e){var t=Ls.mathMLnode(n.label);t.setAttribute("minsize",n.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(n.body){var i=du(fn(n.body,e));if(n.below){var s=du(fn(n.below,e));r=new Ke.MathNode("munderover",[t,s,i])}else r=new Ke.MathNode("mover",[t,i])}else if(n.below){var o=du(fn(n.below,e));r=new Ke.MathNode("munder",[t,o])}else r=du(),r=new Ke.MathNode("mover",[t,r]);return r}});var det=ve.makeSpan;function ZN(n,e){var t=zn(n.body,e,!0);return det([n.mclass],t,e)}function JN(n,e){var t,r=Or(n.body,e);return n.mclass==="minner"?t=new Ke.MathNode("mpadded",r):n.mclass==="mord"?n.isCharacterBox?(t=r[0],t.type="mi"):t=new Ke.MathNode("mi",r):(n.isCharacterBox?(t=r[0],t.type="mo"):t=new Ke.MathNode("mo",r),n.mclass==="mbin"?(t.attributes.lspace="0.22em",t.attributes.rspace="0.22em"):n.mclass==="mpunct"?(t.attributes.lspace="0em",t.attributes.rspace="0.17em"):n.mclass==="mopen"||n.mclass==="mclose"?(t.attributes.lspace="0em",t.attributes.rspace="0em"):n.mclass==="minner"&&(t.attributes.lspace="0.0556em",t.attributes.width="+0.1111em")),t}st({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(n,e){var{parser:t,funcName:r}=n,i=e[0];return{type:"mclass",mode:t.mode,mclass:"m"+r.slice(5),body:kn(i),isCharacterBox:Et.isCharacterBox(i)}},htmlBuilder:ZN,mathmlBuilder:JN});var Kh=n=>{var e=n.type==="ordgroup"&&n.body.length?n.body[0]:n;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};st({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(n,e){var{parser:t}=n;return{type:"mclass",mode:t.mode,mclass:Kh(e[0]),body:kn(e[1]),isCharacterBox:Et.isCharacterBox(e[1])}}});st({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(n,e){var{parser:t,funcName:r}=n,i=e[1],s=e[0],o;r!=="\\stackrel"?o=Kh(i):o="mrel";var a={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:kn(i)},l={type:"supsub",mode:s.mode,base:a,sup:r==="\\underset"?null:s,sub:r==="\\underset"?s:null};return{type:"mclass",mode:t.mode,mclass:o,body:[l],isCharacterBox:Et.isCharacterBox(l)}},htmlBuilder:ZN,mathmlBuilder:JN});st({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(n,e){var{parser:t}=n;return{type:"pmb",mode:t.mode,mclass:Kh(e[0]),body:kn(e[0])}},htmlBuilder(n,e){var t=zn(n.body,e,!0),r=ve.makeSpan([n.mclass],t,e);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(n,e){var t=Or(n.body,e),r=new Ke.MathNode("mstyle",t);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var uet={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},NC=()=>({type:"styling",body:[],mode:"math",style:"display"}),kC=n=>n.type==="textord"&&n.text==="@",pet=(n,e)=>(n.type==="mathord"||n.type==="atom")&&n.text===e;function het(n,e,t){var r=uet[n];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return t.callFunction(r,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var i=t.callFunction("\\\\cdleft",[e[0]],[]),s={type:"atom",text:r,mode:"math",family:"rel"},o=t.callFunction("\\Big",[s],[]),a=t.callFunction("\\\\cdright",[e[1]],[]),l={type:"ordgroup",mode:"math",body:[i,o,a]};return t.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return t.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var d={type:"textord",text:"\\Vert",mode:"math"};return t.callFunction("\\Big",[d],[])}default:return{type:"textord",text:" ",mode:"math"}}}function met(n){var e=[];for(n.gullet.beginGroup(),n.gullet.macros.set("\\cr","\\\\\\relax"),n.gullet.beginGroup();;){e.push(n.parseExpression(!1,"\\\\")),n.gullet.endGroup(),n.gullet.beginGroup();var t=n.fetch().text;if(t==="&"||t==="\\\\")n.consume();else if(t==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new Qe("Expected \\\\ or \\cr or \\end",n.nextToken)}for(var r=[],i=[r],s=0;s-1))if("<>AV".indexOf(d)>-1)for(var m=0;m<2;m++){for(var f=!0,g=l+1;gAV=|." after @',o[l]);var h=het(d,u,n),v={type:"styling",body:[h],mode:"math",style:"display"};r.push(v),a=NC()}s%2===0?r.push(a):r.shift(),r=[],i.push(r)}n.gullet.endGroup(),n.gullet.endGroup();var b=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:b,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}st({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(n,e){var{parser:t,funcName:r}=n;return{type:"cdlabel",mode:t.mode,side:r.slice(4),label:e[0]}},htmlBuilder(n,e){var t=e.havingStyle(e.style.sup()),r=ve.wrapFragment(Zt(n.label,t,e),e);return r.classes.push("cd-label-"+n.side),r.style.bottom=Je(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(n,e){var t=new Ke.MathNode("mrow",[fn(n.label,e)]);return t=new Ke.MathNode("mpadded",[t]),t.setAttribute("width","0"),n.side==="left"&&t.setAttribute("lspace","-1width"),t.setAttribute("voffset","0.7em"),t=new Ke.MathNode("mstyle",[t]),t.setAttribute("displaystyle","false"),t.setAttribute("scriptlevel","1"),t}});st({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(n,e){var{parser:t}=n;return{type:"cdlabelparent",mode:t.mode,fragment:e[0]}},htmlBuilder(n,e){var t=ve.wrapFragment(Zt(n.fragment,e),e);return t.classes.push("cd-vert-arrow"),t},mathmlBuilder(n,e){return new Ke.MathNode("mrow",[fn(n.fragment,e)])}});st({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(n,e){for(var{parser:t}=n,r=Ut(e[0],"ordgroup"),i=r.body,s="",o=0;o=1114111)throw new Qe("\\@char with invalid code point "+s);return l<=65535?d=String.fromCharCode(l):(l-=65536,d=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:t.mode,text:d}}});var ek=(n,e)=>{var t=zn(n.body,e.withColor(n.color),!1);return ve.makeFragment(t)},tk=(n,e)=>{var t=Or(n.body,e.withColor(n.color)),r=new Ke.MathNode("mstyle",t);return r.setAttribute("mathcolor",n.color),r};st({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(n,e){var{parser:t}=n,r=Ut(e[0],"color-token").color,i=e[1];return{type:"color",mode:t.mode,color:r,body:kn(i)}},htmlBuilder:ek,mathmlBuilder:tk});st({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(n,e){var{parser:t,breakOnTokenText:r}=n,i=Ut(e[0],"color-token").color;t.gullet.macros.set("\\current@color",i);var s=t.parseExpression(!0,r);return{type:"color",mode:t.mode,color:i,body:s}},htmlBuilder:ek,mathmlBuilder:tk});st({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(n,e,t){var{parser:r}=n,i=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,s=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:s,size:i&&Ut(i,"size").value}},htmlBuilder(n,e){var t=ve.makeSpan(["mspace"],[],e);return n.newLine&&(t.classes.push("newline"),n.size&&(t.style.marginTop=Je(Tn(n.size,e)))),t},mathmlBuilder(n,e){var t=new Ke.MathNode("mspace");return n.newLine&&(t.setAttribute("linebreak","newline"),n.size&&t.setAttribute("height",Je(Tn(n.size,e)))),t}});var m1={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},nk=n=>{var e=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new Qe("Expected a control sequence",n);return e},fet=n=>{var e=n.gullet.popToken();return e.text==="="&&(e=n.gullet.popToken(),e.text===" "&&(e=n.gullet.popToken())),e},rk=(n,e,t,r)=>{var i=n.gullet.macros.get(t.text);i==null&&(t.noexpand=!0,i={tokens:[t],numArgs:0,unexpandable:!n.gullet.isExpandable(t.text)}),n.gullet.macros.set(e,i,r)};st({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(n){var{parser:e,funcName:t}=n;e.consumeSpaces();var r=e.fetch();if(m1[r.text])return(t==="\\global"||t==="\\\\globallong")&&(r.text=m1[r.text]),Ut(e.parseFunction(),"internal");throw new Qe("Invalid token after macro prefix",r)}});st({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(n){var{parser:e,funcName:t}=n,r=e.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new Qe("Expected a control sequence",r);for(var s=0,o,a=[[]];e.gullet.future().text!=="{";)if(r=e.gullet.popToken(),r.text==="#"){if(e.gullet.future().text==="{"){o=e.gullet.future(),a[s].push("{");break}if(r=e.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new Qe('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==s+1)throw new Qe('Argument number "'+r.text+'" out of order');s++,a.push([])}else{if(r.text==="EOF")throw new Qe("Expected a macro definition");a[s].push(r.text)}var{tokens:l}=e.gullet.consumeArg();return o&&l.unshift(o),(t==="\\edef"||t==="\\xdef")&&(l=e.gullet.expandTokens(l),l.reverse()),e.gullet.macros.set(i,{tokens:l,numArgs:s,delimiters:a},t===m1[t]),{type:"internal",mode:e.mode}}});st({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(n){var{parser:e,funcName:t}=n,r=nk(e.gullet.popToken());e.gullet.consumeSpaces();var i=fet(e);return rk(e,r,i,t==="\\\\globallet"),{type:"internal",mode:e.mode}}});st({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(n){var{parser:e,funcName:t}=n,r=nk(e.gullet.popToken()),i=e.gullet.popToken(),s=e.gullet.popToken();return rk(e,r,s,t==="\\\\globalfuture"),e.gullet.pushToken(s),e.gullet.pushToken(i),{type:"internal",mode:e.mode}}});var Ic=function(e,t,r){var i=_n.math[e]&&_n.math[e].replace,s=Vv(i||e,t,r);if(!s)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return s},jv=function(e,t,r,i){var s=r.havingBaseStyle(t),o=ve.makeSpan(i.concat(s.sizingClasses(r)),[e],r),a=s.sizeMultiplier/r.sizeMultiplier;return o.height*=a,o.depth*=a,o.maxFontSize=s.sizeMultiplier,o},ik=function(e,t,r){var i=t.havingBaseStyle(r),s=(1-t.sizeMultiplier/i.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=Je(s),e.height-=s,e.depth+=s},get=function(e,t,r,i,s,o){var a=ve.makeSymbol(e,"Main-Regular",s,i),l=jv(a,t,i,o);return r&&ik(l,i,t),l},_et=function(e,t,r,i){return ve.makeSymbol(e,"Size"+t+"-Regular",r,i)},sk=function(e,t,r,i,s,o){var a=_et(e,t,s,i),l=jv(ve.makeSpan(["delimsizing","size"+t],[a],i),xt.TEXT,i,o);return r&&ik(l,i,xt.TEXT),l},U0=function(e,t,r){var i;t==="Size1-Regular"?i="delim-size1":i="delim-size4";var s=ve.makeSpan(["delimsizinginner",i],[ve.makeSpan([],[ve.makeSymbol(e,t,r)])]);return{type:"elem",elem:s}},B0=function(e,t,r){var i=$i["Size4-Regular"][e.charCodeAt(0)]?$i["Size4-Regular"][e.charCodeAt(0)][4]:$i["Size1-Regular"][e.charCodeAt(0)][4],s=new No("inner",SJe(e,Math.round(1e3*t))),o=new Os([s],{width:Je(i),height:Je(t),style:"width:"+Je(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),a=ve.makeSvgSpan([],[o],r);return a.height=t,a.style.height=Je(t),a.style.width=Je(i),{type:"elem",elem:a}},f1=.008,uu={type:"kern",size:-1*f1},bet=["|","\\lvert","\\rvert","\\vert"],vet=["\\|","\\lVert","\\rVert","\\Vert"],ok=function(e,t,r,i,s,o){var a,l,d,u,m="",f=0;a=d=u=e,l=null;var g="Size1-Regular";e==="\\uparrow"?d=u="⏐":e==="\\Uparrow"?d=u="‖":e==="\\downarrow"?a=d="⏐":e==="\\Downarrow"?a=d="‖":e==="\\updownarrow"?(a="\\uparrow",d="⏐",u="\\downarrow"):e==="\\Updownarrow"?(a="\\Uparrow",d="‖",u="\\Downarrow"):Et.contains(bet,e)?(d="∣",m="vert",f=333):Et.contains(vet,e)?(d="∥",m="doublevert",f=556):e==="["||e==="\\lbrack"?(a="⎡",d="⎢",u="⎣",g="Size4-Regular",m="lbrack",f=667):e==="]"||e==="\\rbrack"?(a="⎤",d="⎥",u="⎦",g="Size4-Regular",m="rbrack",f=667):e==="\\lfloor"||e==="⌊"?(d=a="⎢",u="⎣",g="Size4-Regular",m="lfloor",f=667):e==="\\lceil"||e==="⌈"?(a="⎡",d=u="⎢",g="Size4-Regular",m="lceil",f=667):e==="\\rfloor"||e==="⌋"?(d=a="⎥",u="⎦",g="Size4-Regular",m="rfloor",f=667):e==="\\rceil"||e==="⌉"?(a="⎤",d=u="⎥",g="Size4-Regular",m="rceil",f=667):e==="("||e==="\\lparen"?(a="⎛",d="⎜",u="⎝",g="Size4-Regular",m="lparen",f=875):e===")"||e==="\\rparen"?(a="⎞",d="⎟",u="⎠",g="Size4-Regular",m="rparen",f=875):e==="\\{"||e==="\\lbrace"?(a="⎧",l="⎨",u="⎩",d="⎪",g="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(a="⎫",l="⎬",u="⎭",d="⎪",g="Size4-Regular"):e==="\\lgroup"||e==="⟮"?(a="⎧",u="⎩",d="⎪",g="Size4-Regular"):e==="\\rgroup"||e==="⟯"?(a="⎫",u="⎭",d="⎪",g="Size4-Regular"):e==="\\lmoustache"||e==="⎰"?(a="⎧",u="⎭",d="⎪",g="Size4-Regular"):(e==="\\rmoustache"||e==="⎱")&&(a="⎫",u="⎩",d="⎪",g="Size4-Regular");var h=Ic(a,g,s),v=h.height+h.depth,b=Ic(d,g,s),_=b.height+b.depth,y=Ic(u,g,s),E=y.height+y.depth,x=0,A=1;if(l!==null){var w=Ic(l,g,s);x=w.height+w.depth,A=2}var N=v+E+x,L=Math.max(0,Math.ceil((t-N)/(A*_))),C=N+L*A*_,k=i.fontMetrics().axisHeight;r&&(k*=i.sizeMultiplier);var H=C/2-k,q=[];if(m.length>0){var ie=C-v-E,D=Math.round(C*1e3),$=xJe(m,Math.round(ie*1e3)),K=new No(m,$),B=(f/1e3).toFixed(3)+"em",Z=(D/1e3).toFixed(3)+"em",ce=new Os([K],{width:B,height:Z,viewBox:"0 0 "+f+" "+D}),ue=ve.makeSvgSpan([],[ce],i);ue.height=D/1e3,ue.style.width=B,ue.style.height=Z,q.push({type:"elem",elem:ue})}else{if(q.push(U0(u,g,s)),q.push(uu),l===null){var xe=C-v-E+2*f1;q.push(B0(d,xe,i))}else{var Ce=(C-v-E-x)/2+2*f1;q.push(B0(d,Ce,i)),q.push(uu),q.push(U0(l,g,s)),q.push(uu),q.push(B0(d,Ce,i))}q.push(uu),q.push(U0(a,g,s))}var me=i.havingBaseStyle(xt.TEXT),Ae=ve.makeVList({positionType:"bottom",positionData:H,children:q},me);return jv(ve.makeSpan(["delimsizing","mult"],[Ae],me),xt.TEXT,i,o)},G0=80,z0=.08,V0=function(e,t,r,i,s){var o=EJe(e,i,r),a=new No(e,o),l=new Os([a],{width:"400em",height:Je(t),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return ve.makeSvgSpan(["hide-tail"],[l],s)},yet=function(e,t){var r=t.havingBaseSizing(),i=dk("\\surd",e*r.sizeMultiplier,ck,r),s=r.sizeMultiplier,o=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),a,l=0,d=0,u=0,m;return i.type==="small"?(u=1e3+1e3*o+G0,e<1?s=1:e<1.4&&(s=.7),l=(1+o+z0)/s,d=(1+o)/s,a=V0("sqrtMain",l,u,o,t),a.style.minWidth="0.853em",m=.833/s):i.type==="large"?(u=(1e3+G0)*qc[i.size],d=(qc[i.size]+o)/s,l=(qc[i.size]+o+z0)/s,a=V0("sqrtSize"+i.size,l,u,o,t),a.style.minWidth="1.02em",m=1/s):(l=e+o+z0,d=e+o,u=Math.floor(1e3*e+o)+G0,a=V0("sqrtTall",l,u,o,t),a.style.minWidth="0.742em",m=1.056),a.height=d,a.style.height=Je(l),{span:a,advanceWidth:m,ruleWidth:(t.fontMetrics().sqrtRuleThickness+o)*s}},ak=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],Eet=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],lk=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],qc=[0,1.2,1.8,2.4,3],xet=function(e,t,r,i,s){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),Et.contains(ak,e)||Et.contains(lk,e))return sk(e,t,!1,r,i,s);if(Et.contains(Eet,e))return ok(e,qc[t],!1,r,i,s);throw new Qe("Illegal delimiter: '"+e+"'")},Tet=[{type:"small",style:xt.SCRIPTSCRIPT},{type:"small",style:xt.SCRIPT},{type:"small",style:xt.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],wet=[{type:"small",style:xt.SCRIPTSCRIPT},{type:"small",style:xt.SCRIPT},{type:"small",style:xt.TEXT},{type:"stack"}],ck=[{type:"small",style:xt.SCRIPTSCRIPT},{type:"small",style:xt.SCRIPT},{type:"small",style:xt.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Cet=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},dk=function(e,t,r,i){for(var s=Math.min(2,3-i.style.size),o=s;ot)return r[o]}return r[r.length-1]},uk=function(e,t,r,i,s,o){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var a;Et.contains(lk,e)?a=Tet:Et.contains(ak,e)?a=ck:a=wet;var l=dk(e,t,a,i);return l.type==="small"?get(e,l.style,r,i,s,o):l.type==="large"?sk(e,l.size,r,i,s,o):ok(e,t,r,i,s,o)},Aet=function(e,t,r,i,s,o){var a=i.fontMetrics().axisHeight*i.sizeMultiplier,l=901,d=5/i.fontMetrics().ptPerEm,u=Math.max(t-a,r+a),m=Math.max(u/500*l,2*u-d);return uk(e,m,!0,i,s,o)},Ms={sqrtImage:yet,sizedDelim:xet,sizeToMaxHeight:qc,customSizedDelim:uk,leftRightDelim:Aet},IC={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Ret=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function jh(n,e){var t=Wh(n);if(t&&Et.contains(Ret,t.text))return t;throw t?new Qe("Invalid delimiter '"+t.text+"' after '"+e.funcName+"'",n):new Qe("Invalid delimiter type '"+n.type+"'",n)}st({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(n,e)=>{var t=jh(e[0],n);return{type:"delimsizing",mode:n.parser.mode,size:IC[n.funcName].size,mclass:IC[n.funcName].mclass,delim:t.text}},htmlBuilder:(n,e)=>n.delim==="."?ve.makeSpan([n.mclass]):Ms.sizedDelim(n.delim,n.size,e,n.mode,[n.mclass]),mathmlBuilder:n=>{var e=[];n.delim!=="."&&e.push(mi(n.delim,n.mode));var t=new Ke.MathNode("mo",e);n.mclass==="mopen"||n.mclass==="mclose"?t.setAttribute("fence","true"):t.setAttribute("fence","false"),t.setAttribute("stretchy","true");var r=Je(Ms.sizeToMaxHeight[n.size]);return t.setAttribute("minsize",r),t.setAttribute("maxsize",r),t}});function OC(n){if(!n.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}st({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(n,e)=>{var t=n.parser.gullet.macros.get("\\current@color");if(t&&typeof t!="string")throw new Qe("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:n.parser.mode,delim:jh(e[0],n).text,color:t}}});st({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(n,e)=>{var t=jh(e[0],n),r=n.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var s=Ut(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:t.text,right:s.delim,rightColor:s.color}},htmlBuilder:(n,e)=>{OC(n);for(var t=zn(n.body,e,!0,["mopen","mclose"]),r=0,i=0,s=!1,o=0;o{OC(n);var t=Or(n.body,e);if(n.left!=="."){var r=new Ke.MathNode("mo",[mi(n.left,n.mode)]);r.setAttribute("fence","true"),t.unshift(r)}if(n.right!=="."){var i=new Ke.MathNode("mo",[mi(n.right,n.mode)]);i.setAttribute("fence","true"),n.rightColor&&i.setAttribute("mathcolor",n.rightColor),t.push(i)}return Yv(t)}});st({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(n,e)=>{var t=jh(e[0],n);if(!n.parser.leftrightDepth)throw new Qe("\\middle without preceding \\left",t);return{type:"middle",mode:n.parser.mode,delim:t.text}},htmlBuilder:(n,e)=>{var t;if(n.delim===".")t=md(e,[]);else{t=Ms.sizedDelim(n.delim,1,e,n.mode,[]);var r={delim:n.delim,options:e};t.isMiddle=r}return t},mathmlBuilder:(n,e)=>{var t=n.delim==="\\vert"||n.delim==="|"?mi("|","text"):mi(n.delim,n.mode),r=new Ke.MathNode("mo",[t]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var Qv=(n,e)=>{var t=ve.wrapFragment(Zt(n.body,e),e),r=n.label.slice(1),i=e.sizeMultiplier,s,o=0,a=Et.isCharacterBox(n.body);if(r==="sout")s=ve.makeSpan(["stretchy","sout"]),s.height=e.fontMetrics().defaultRuleThickness/i,o=-.5*e.fontMetrics().xHeight;else if(r==="phase"){var l=Tn({number:.6,unit:"pt"},e),d=Tn({number:.35,unit:"ex"},e),u=e.havingBaseSizing();i=i/u.sizeMultiplier;var m=t.height+t.depth+l+d;t.style.paddingLeft=Je(m/2+l);var f=Math.floor(1e3*m*i),g=vJe(f),h=new Os([new No("phase",g)],{width:"400em",height:Je(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});s=ve.makeSvgSpan(["hide-tail"],[h],e),s.style.height=Je(m),o=t.depth+l+d}else{/cancel/.test(r)?a||t.classes.push("cancel-pad"):r==="angl"?t.classes.push("anglpad"):t.classes.push("boxpad");var v=0,b=0,_=0;/box/.test(r)?(_=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),v=e.fontMetrics().fboxsep+(r==="colorbox"?0:_),b=v):r==="angl"?(_=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),v=4*_,b=Math.max(0,.25-t.depth)):(v=a?.2:0,b=v),s=Ls.encloseSpan(t,r,v,b,e),/fbox|boxed|fcolorbox/.test(r)?(s.style.borderStyle="solid",s.style.borderWidth=Je(_)):r==="angl"&&_!==.049&&(s.style.borderTopWidth=Je(_),s.style.borderRightWidth=Je(_)),o=t.depth+b,n.backgroundColor&&(s.style.backgroundColor=n.backgroundColor,n.borderColor&&(s.style.borderColor=n.borderColor))}var y;if(n.backgroundColor)y=ve.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:o},{type:"elem",elem:t,shift:0}]},e);else{var E=/cancel|phase/.test(r)?["svg-align"]:[];y=ve.makeVList({positionType:"individualShift",children:[{type:"elem",elem:t,shift:0},{type:"elem",elem:s,shift:o,wrapperClasses:E}]},e)}return/cancel/.test(r)&&(y.height=t.height,y.depth=t.depth),/cancel/.test(r)&&!a?ve.makeSpan(["mord","cancel-lap"],[y],e):ve.makeSpan(["mord"],[y],e)},Xv=(n,e)=>{var t=0,r=new Ke.MathNode(n.label.indexOf("colorbox")>-1?"mpadded":"menclose",[fn(n.body,e)]);switch(n.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(t=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*t+"pt"),r.setAttribute("height","+"+2*t+"pt"),r.setAttribute("lspace",t+"pt"),r.setAttribute("voffset",t+"pt"),n.label==="\\fcolorbox"){var i=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(n.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return n.backgroundColor&&r.setAttribute("mathbackground",n.backgroundColor),r};st({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(n,e,t){var{parser:r,funcName:i}=n,s=Ut(e[0],"color-token").color,o=e[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:s,body:o}},htmlBuilder:Qv,mathmlBuilder:Xv});st({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(n,e,t){var{parser:r,funcName:i}=n,s=Ut(e[0],"color-token").color,o=Ut(e[1],"color-token").color,a=e[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:o,borderColor:s,body:a}},htmlBuilder:Qv,mathmlBuilder:Xv});st({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(n,e){var{parser:t}=n;return{type:"enclose",mode:t.mode,label:"\\fbox",body:e[0]}}});st({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(n,e){var{parser:t,funcName:r}=n,i=e[0];return{type:"enclose",mode:t.mode,label:r,body:i}},htmlBuilder:Qv,mathmlBuilder:Xv});st({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(n,e){var{parser:t}=n;return{type:"enclose",mode:t.mode,label:"\\angl",body:e[0]}}});var pk={};function rs(n){for(var{type:e,names:t,props:r,handler:i,htmlBuilder:s,mathmlBuilder:o}=n,a={type:e,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l{var e=n.parser.settings;if(!e.displayMode)throw new Qe("{"+n.envName+"} can be used only in display mode.")};function Zv(n){if(n.indexOf("ed")===-1)return n.indexOf("*")===-1}function Po(n,e,t){var{hskipBeforeAndAfter:r,addJot:i,cols:s,arraystretch:o,colSeparationType:a,autoTag:l,singleRow:d,emptySingleRow:u,maxNumCols:m,leqno:f}=e;if(n.gullet.beginGroup(),d||n.gullet.macros.set("\\cr","\\\\\\relax"),!o){var g=n.gullet.expandMacroAsText("\\arraystretch");if(g==null)o=1;else if(o=parseFloat(g),!o||o<0)throw new Qe("Invalid \\arraystretch: "+g)}n.gullet.beginGroup();var h=[],v=[h],b=[],_=[],y=l!=null?[]:void 0;function E(){l&&n.gullet.macros.set("\\@eqnsw","1",!0)}function x(){y&&(n.gullet.macros.get("\\df@tag")?(y.push(n.subparse([new li("\\df@tag")])),n.gullet.macros.set("\\df@tag",void 0,!0)):y.push(!!l&&n.gullet.macros.get("\\@eqnsw")==="1"))}for(E(),_.push(DC(n));;){var A=n.parseExpression(!1,d?"\\end":"\\\\");n.gullet.endGroup(),n.gullet.beginGroup(),A={type:"ordgroup",mode:n.mode,body:A},t&&(A={type:"styling",mode:n.mode,style:t,body:[A]}),h.push(A);var w=n.fetch().text;if(w==="&"){if(m&&h.length===m){if(d||a)throw new Qe("Too many tab characters: &",n.nextToken);n.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}n.consume()}else if(w==="\\end"){x(),h.length===1&&A.type==="styling"&&A.body[0].body.length===0&&(v.length>1||!u)&&v.pop(),_.length0&&(E+=.25),d.push({pos:E,isDashed:Te[fe]})}for(x(o[0]),r=0;r0&&(H+=y,NTe))for(r=0;r=a)){var te=void 0;(i>0||e.hskipBeforeAndAfter)&&(te=Et.deflt(Ce.pregap,f),te!==0&&($=ve.makeSpan(["arraycolsep"],[]),$.style.width=Je(te),D.push($)));var ye=[];for(r=0;r0){for(var le=ve.makeLineSpan("hline",t,u),V=ve.makeLineSpan("hdashline",t,u),G=[{type:"elem",elem:l,shift:0}];d.length>0;){var oe=d.pop(),ge=oe.pos-q;oe.isDashed?G.push({type:"elem",elem:V,shift:ge}):G.push({type:"elem",elem:le,shift:ge})}l=ve.makeVList({positionType:"individualShift",children:G},t)}if(B.length===0)return ve.makeSpan(["mord"],[l],t);var Ee=ve.makeVList({positionType:"individualShift",children:B},t);return Ee=ve.makeSpan(["tag"],[Ee],t),ve.makeFragment([l,Ee])},Met={c:"center ",l:"left ",r:"right "},ss=function(e,t){for(var r=[],i=new Ke.MathNode("mtd",[],["mtr-glue"]),s=new Ke.MathNode("mtd",[],["mml-eqn-num"]),o=0;o0){var h=e.cols,v="",b=!1,_=0,y=h.length;h[0].type==="separator"&&(f+="top ",_=1),h[h.length-1].type==="separator"&&(f+="bottom ",y-=1);for(var E=_;E0?"left ":"",f+=L[L.length-1].length>0?"right ":"";for(var C=1;C-1?"alignat":"align",s=e.envName==="split",o=Po(e.parser,{cols:r,addJot:!0,autoTag:s?void 0:Zv(e.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:s?2:void 0,leqno:e.parser.settings.leqno},"display"),a,l=0,d={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&t[0].type==="ordgroup"){for(var u="",m=0;m0&&g&&(b=1),r[h]={type:"align",align:v,pregap:b,postgap:0}}return o.colSeparationType=g?"align":"alignat",o};rs({type:"array",names:["array","darray"],props:{numArgs:1},handler(n,e){var t=Wh(e[0]),r=t?[e[0]]:Ut(e[0],"ordgroup").body,i=r.map(function(o){var a=Wv(o),l=a.text;if("lcr".indexOf(l)!==-1)return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new Qe("Unknown column alignment: "+l,o)}),s={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return Po(n.parser,s,Jv(n.envName))},htmlBuilder:is,mathmlBuilder:ss});rs({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(n){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[n.envName.replace("*","")],t="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:t}]};if(n.envName.charAt(n.envName.length-1)==="*"){var i=n.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),t=i.fetch().text,"lcr".indexOf(t)===-1)throw new Qe("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),r.cols=[{type:"align",align:t}]}}var s=Po(n.parser,r,Jv(n.envName)),o=Math.max(0,...s.body.map(a=>a.length));return s.cols=new Array(o).fill({type:"align",align:t}),e?{type:"leftright",mode:n.mode,body:[s],left:e[0],right:e[1],rightColor:void 0}:s},htmlBuilder:is,mathmlBuilder:ss});rs({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(n){var e={arraystretch:.5},t=Po(n.parser,e,"script");return t.colSeparationType="small",t},htmlBuilder:is,mathmlBuilder:ss});rs({type:"array",names:["subarray"],props:{numArgs:1},handler(n,e){var t=Wh(e[0]),r=t?[e[0]]:Ut(e[0],"ordgroup").body,i=r.map(function(o){var a=Wv(o),l=a.text;if("lc".indexOf(l)!==-1)return{type:"align",align:l};throw new Qe("Unknown column alignment: "+l,o)});if(i.length>1)throw new Qe("{subarray} can contain only one column");var s={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(s=Po(n.parser,s,"script"),s.body.length>0&&s.body[0].length>1)throw new Qe("{subarray} can contain only one column");return s},htmlBuilder:is,mathmlBuilder:ss});rs({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(n){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},t=Po(n.parser,e,Jv(n.envName));return{type:"leftright",mode:n.mode,body:[t],left:n.envName.indexOf("r")>-1?".":"\\{",right:n.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:is,mathmlBuilder:ss});rs({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:mk,htmlBuilder:is,mathmlBuilder:ss});rs({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(n){Et.contains(["gather","gather*"],n.envName)&&Qh(n);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Zv(n.envName),emptySingleRow:!0,leqno:n.parser.settings.leqno};return Po(n.parser,e,"display")},htmlBuilder:is,mathmlBuilder:ss});rs({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:mk,htmlBuilder:is,mathmlBuilder:ss});rs({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(n){Qh(n);var e={autoTag:Zv(n.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:n.parser.settings.leqno};return Po(n.parser,e,"display")},htmlBuilder:is,mathmlBuilder:ss});rs({type:"array",names:["CD"],props:{numArgs:0},handler(n){return Qh(n),met(n.parser)},htmlBuilder:is,mathmlBuilder:ss});P("\\nonumber","\\gdef\\@eqnsw{0}");P("\\notag","\\nonumber");st({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(n,e){throw new Qe(n.funcName+" valid only within array environment")}});var LC=pk;st({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(n,e){var{parser:t,funcName:r}=n,i=e[0];if(i.type!=="ordgroup")throw new Qe("Invalid environment name",i);for(var s="",o=0;o{var t=n.font,r=e.withFont(t);return Zt(n.body,r)},gk=(n,e)=>{var t=n.font,r=e.withFont(t);return fn(n.body,r)},PC={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};st({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(n,e)=>{var{parser:t,funcName:r}=n,i=zp(e[0]),s=r;return s in PC&&(s=PC[s]),{type:"font",mode:t.mode,font:s.slice(1),body:i}},htmlBuilder:fk,mathmlBuilder:gk});st({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(n,e)=>{var{parser:t}=n,r=e[0],i=Et.isCharacterBox(r);return{type:"mclass",mode:t.mode,mclass:Kh(r),body:[{type:"font",mode:t.mode,font:"boldsymbol",body:r}],isCharacterBox:i}}});st({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(n,e)=>{var{parser:t,funcName:r,breakOnTokenText:i}=n,{mode:s}=t,o=t.parseExpression(!0,i),a="math"+r.slice(1);return{type:"font",mode:s,font:a,body:{type:"ordgroup",mode:t.mode,body:o}}},htmlBuilder:fk,mathmlBuilder:gk});var _k=(n,e)=>{var t=e;return n==="display"?t=t.id>=xt.SCRIPT.id?t.text():xt.DISPLAY:n==="text"&&t.size===xt.DISPLAY.size?t=xt.TEXT:n==="script"?t=xt.SCRIPT:n==="scriptscript"&&(t=xt.SCRIPTSCRIPT),t},ey=(n,e)=>{var t=_k(n.size,e.style),r=t.fracNum(),i=t.fracDen(),s;s=e.havingStyle(r);var o=Zt(n.numer,s,e);if(n.continued){var a=8.5/e.fontMetrics().ptPerEm,l=3.5/e.fontMetrics().ptPerEm;o.height=o.height0?h=3*f:h=7*f,v=e.fontMetrics().denom1):(m>0?(g=e.fontMetrics().num2,h=f):(g=e.fontMetrics().num3,h=3*f),v=e.fontMetrics().denom2);var b;if(u){var y=e.fontMetrics().axisHeight;g-o.depth-(y+.5*m){var t=new Ke.MathNode("mfrac",[fn(n.numer,e),fn(n.denom,e)]);if(!n.hasBarLine)t.setAttribute("linethickness","0px");else if(n.barSize){var r=Tn(n.barSize,e);t.setAttribute("linethickness",Je(r))}var i=_k(n.size,e.style);if(i.size!==e.style.size){t=new Ke.MathNode("mstyle",[t]);var s=i.size===xt.DISPLAY.size?"true":"false";t.setAttribute("displaystyle",s),t.setAttribute("scriptlevel","0")}if(n.leftDelim!=null||n.rightDelim!=null){var o=[];if(n.leftDelim!=null){var a=new Ke.MathNode("mo",[new Ke.TextNode(n.leftDelim.replace("\\",""))]);a.setAttribute("fence","true"),o.push(a)}if(o.push(t),n.rightDelim!=null){var l=new Ke.MathNode("mo",[new Ke.TextNode(n.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),o.push(l)}return Yv(o)}return t};st({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(n,e)=>{var{parser:t,funcName:r}=n,i=e[0],s=e[1],o,a=null,l=null,d="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":o=!0;break;case"\\\\atopfrac":o=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":o=!1,a="(",l=")";break;case"\\\\bracefrac":o=!1,a="\\{",l="\\}";break;case"\\\\brackfrac":o=!1,a="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":d="display";break;case"\\tfrac":case"\\tbinom":d="text";break}return{type:"genfrac",mode:t.mode,continued:!1,numer:i,denom:s,hasBarLine:o,leftDelim:a,rightDelim:l,size:d,barSize:null}},htmlBuilder:ey,mathmlBuilder:ty});st({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(n,e)=>{var{parser:t,funcName:r}=n,i=e[0],s=e[1];return{type:"genfrac",mode:t.mode,continued:!0,numer:i,denom:s,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});st({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(n){var{parser:e,funcName:t,token:r}=n,i;switch(t){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:i,token:r}}});var FC=["display","text","script","scriptscript"],UC=function(e){var t=null;return e.length>0&&(t=e,t=t==="."?null:t),t};st({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(n,e){var{parser:t}=n,r=e[4],i=e[5],s=zp(e[0]),o=s.type==="atom"&&s.family==="open"?UC(s.text):null,a=zp(e[1]),l=a.type==="atom"&&a.family==="close"?UC(a.text):null,d=Ut(e[2],"size"),u,m=null;d.isBlank?u=!0:(m=d.value,u=m.number>0);var f="auto",g=e[3];if(g.type==="ordgroup"){if(g.body.length>0){var h=Ut(g.body[0],"textord");f=FC[Number(h.text)]}}else g=Ut(g,"textord"),f=FC[Number(g.text)];return{type:"genfrac",mode:t.mode,numer:r,denom:i,continued:!1,hasBarLine:u,barSize:m,leftDelim:o,rightDelim:l,size:f}},htmlBuilder:ey,mathmlBuilder:ty});st({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(n,e){var{parser:t,funcName:r,token:i}=n;return{type:"infix",mode:t.mode,replaceWith:"\\\\abovefrac",size:Ut(e[0],"size").value,token:i}}});st({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(n,e)=>{var{parser:t,funcName:r}=n,i=e[0],s=iJe(Ut(e[1],"infix").size),o=e[2],a=s.number>0;return{type:"genfrac",mode:t.mode,numer:i,denom:o,continued:!1,hasBarLine:a,barSize:s,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:ey,mathmlBuilder:ty});var bk=(n,e)=>{var t=e.style,r,i;n.type==="supsub"?(r=n.sup?Zt(n.sup,e.havingStyle(t.sup()),e):Zt(n.sub,e.havingStyle(t.sub()),e),i=Ut(n.base,"horizBrace")):i=Ut(n,"horizBrace");var s=Zt(i.base,e.havingBaseStyle(xt.DISPLAY)),o=Ls.svgSpan(i,e),a;if(i.isOver?(a=ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o}]},e),a.children[0].children[0].children[1].classes.push("svg-align")):(a=ve.makeVList({positionType:"bottom",positionData:s.depth+.1+o.height,children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:s}]},e),a.children[0].children[0].children[0].classes.push("svg-align")),r){var l=ve.makeSpan(["mord",i.isOver?"mover":"munder"],[a],e);i.isOver?a=ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]},e):a=ve.makeVList({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]},e)}return ve.makeSpan(["mord",i.isOver?"mover":"munder"],[a],e)},Net=(n,e)=>{var t=Ls.mathMLnode(n.label);return new Ke.MathNode(n.isOver?"mover":"munder",[fn(n.base,e),t])};st({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(n,e){var{parser:t,funcName:r}=n;return{type:"horizBrace",mode:t.mode,label:r,isOver:/^\\over/.test(r),base:e[0]}},htmlBuilder:bk,mathmlBuilder:Net});st({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(n,e)=>{var{parser:t}=n,r=e[1],i=Ut(e[0],"url").url;return t.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:t.mode,href:i,body:kn(r)}:t.formatUnsupportedCmd("\\href")},htmlBuilder:(n,e)=>{var t=zn(n.body,e,!1);return ve.makeAnchor(n.href,[],t,e)},mathmlBuilder:(n,e)=>{var t=ko(n.body,e);return t instanceof Zr||(t=new Zr("mrow",[t])),t.setAttribute("href",n.href),t}});st({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(n,e)=>{var{parser:t}=n,r=Ut(e[0],"url").url;if(!t.settings.isTrusted({command:"\\url",url:r}))return t.formatUnsupportedCmd("\\url");for(var i=[],s=0;s{var{parser:t,funcName:r,token:i}=n,s=Ut(e[0],"raw").string,o=e[1];t.settings.strict&&t.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var a,l={};switch(r){case"\\htmlClass":l.class=s,a={command:"\\htmlClass",class:s};break;case"\\htmlId":l.id=s,a={command:"\\htmlId",id:s};break;case"\\htmlStyle":l.style=s,a={command:"\\htmlStyle",style:s};break;case"\\htmlData":{for(var d=s.split(","),u=0;u{var t=zn(n.body,e,!1),r=["enclosing"];n.attributes.class&&r.push(...n.attributes.class.trim().split(/\s+/));var i=ve.makeSpan(r,t,e);for(var s in n.attributes)s!=="class"&&n.attributes.hasOwnProperty(s)&&i.setAttribute(s,n.attributes[s]);return i},mathmlBuilder:(n,e)=>ko(n.body,e)});st({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(n,e)=>{var{parser:t}=n;return{type:"htmlmathml",mode:t.mode,html:kn(e[0]),mathml:kn(e[1])}},htmlBuilder:(n,e)=>{var t=zn(n.html,e,!1);return ve.makeFragment(t)},mathmlBuilder:(n,e)=>ko(n.mathml,e)});var H0=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new Qe("Invalid size: '"+e+"' in \\includegraphics");var r={number:+(t[1]+t[2]),unit:t[3]};if(!FN(r))throw new Qe("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};st({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(n,e,t)=>{var{parser:r}=n,i={number:0,unit:"em"},s={number:.9,unit:"em"},o={number:0,unit:"em"},a="";if(t[0])for(var l=Ut(t[0],"raw").string,d=l.split(","),u=0;u{var t=Tn(n.height,e),r=0;n.totalheight.number>0&&(r=Tn(n.totalheight,e)-t);var i=0;n.width.number>0&&(i=Tn(n.width,e));var s={height:Je(t+r)};i>0&&(s.width=Je(i)),r>0&&(s.verticalAlign=Je(-r));var o=new RJe(n.src,n.alt,s);return o.height=t,o.depth=r,o},mathmlBuilder:(n,e)=>{var t=new Ke.MathNode("mglyph",[]);t.setAttribute("alt",n.alt);var r=Tn(n.height,e),i=0;if(n.totalheight.number>0&&(i=Tn(n.totalheight,e)-r,t.setAttribute("valign",Je(-i))),t.setAttribute("height",Je(r+i)),n.width.number>0){var s=Tn(n.width,e);t.setAttribute("width",Je(s))}return t.setAttribute("src",n.src),t}});st({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(n,e){var{parser:t,funcName:r}=n,i=Ut(e[0],"size");if(t.settings.strict){var s=r[1]==="m",o=i.value.unit==="mu";s?(o||t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+i.value.unit+" units")),t.mode!=="math"&&t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):o&&t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:t.mode,dimension:i.value}},htmlBuilder(n,e){return ve.makeGlue(n.dimension,e)},mathmlBuilder(n,e){var t=Tn(n.dimension,e);return new Ke.SpaceNode(t)}});st({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(n,e)=>{var{parser:t,funcName:r}=n,i=e[0];return{type:"lap",mode:t.mode,alignment:r.slice(5),body:i}},htmlBuilder:(n,e)=>{var t;n.alignment==="clap"?(t=ve.makeSpan([],[Zt(n.body,e)]),t=ve.makeSpan(["inner"],[t],e)):t=ve.makeSpan(["inner"],[Zt(n.body,e)]);var r=ve.makeSpan(["fix"],[]),i=ve.makeSpan([n.alignment],[t,r],e),s=ve.makeSpan(["strut"]);return s.style.height=Je(i.height+i.depth),i.depth&&(s.style.verticalAlign=Je(-i.depth)),i.children.unshift(s),i=ve.makeSpan(["thinbox"],[i],e),ve.makeSpan(["mord","vbox"],[i],e)},mathmlBuilder:(n,e)=>{var t=new Ke.MathNode("mpadded",[fn(n.body,e)]);if(n.alignment!=="rlap"){var r=n.alignment==="llap"?"-1":"-0.5";t.setAttribute("lspace",r+"width")}return t.setAttribute("width","0px"),t}});st({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(n,e){var{funcName:t,parser:r}=n,i=r.mode;r.switchMode("math");var s=t==="\\("?"\\)":"$",o=r.parseExpression(!1,s);return r.expect(s),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:o}}});st({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(n,e){throw new Qe("Mismatched "+n.funcName)}});var BC=(n,e)=>{switch(e.style.size){case xt.DISPLAY.size:return n.display;case xt.TEXT.size:return n.text;case xt.SCRIPT.size:return n.script;case xt.SCRIPTSCRIPT.size:return n.scriptscript;default:return n.text}};st({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(n,e)=>{var{parser:t}=n;return{type:"mathchoice",mode:t.mode,display:kn(e[0]),text:kn(e[1]),script:kn(e[2]),scriptscript:kn(e[3])}},htmlBuilder:(n,e)=>{var t=BC(n,e),r=zn(t,e,!1);return ve.makeFragment(r)},mathmlBuilder:(n,e)=>{var t=BC(n,e);return ko(t,e)}});var vk=(n,e,t,r,i,s,o)=>{n=ve.makeSpan([],[n]);var a=t&&Et.isCharacterBox(t),l,d;if(e){var u=Zt(e,r.havingStyle(i.sup()),r);d={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(t){var m=Zt(t,r.havingStyle(i.sub()),r);l={elem:m,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-m.height)}}var f;if(d&&l){var g=r.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+n.depth+o;f=ve.makeVList({positionType:"bottom",positionData:g,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Je(-s)},{type:"kern",size:l.kern},{type:"elem",elem:n},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:Je(s)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(l){var h=n.height-o;f=ve.makeVList({positionType:"top",positionData:h,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Je(-s)},{type:"kern",size:l.kern},{type:"elem",elem:n}]},r)}else if(d){var v=n.depth+o;f=ve.makeVList({positionType:"bottom",positionData:v,children:[{type:"elem",elem:n},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:Je(s)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return n;var b=[f];if(l&&s!==0&&!a){var _=ve.makeSpan(["mspace"],[],r);_.style.marginRight=Je(s),b.unshift(_)}return ve.makeSpan(["mop","op-limits"],b,r)},yk=["\\smallint"],rc=(n,e)=>{var t,r,i=!1,s;n.type==="supsub"?(t=n.sup,r=n.sub,s=Ut(n.base,"op"),i=!0):s=Ut(n,"op");var o=e.style,a=!1;o.size===xt.DISPLAY.size&&s.symbol&&!Et.contains(yk,s.name)&&(a=!0);var l;if(s.symbol){var d=a?"Size2-Regular":"Size1-Regular",u="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(u=s.name.slice(1),s.name=u==="oiint"?"\\iint":"\\iiint"),l=ve.makeSymbol(s.name,d,"math",e,["mop","op-symbol",a?"large-op":"small-op"]),u.length>0){var m=l.italic,f=ve.staticSvg(u+"Size"+(a?"2":"1"),e);l=ve.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:f,shift:a?.08:0}]},e),s.name="\\"+u,l.classes.unshift("mop"),l.italic=m}}else if(s.body){var g=zn(s.body,e,!0);g.length===1&&g[0]instanceof hi?(l=g[0],l.classes[0]="mop"):l=ve.makeSpan(["mop"],g,e)}else{for(var h=[],v=1;v{var t;if(n.symbol)t=new Zr("mo",[mi(n.name,n.mode)]),Et.contains(yk,n.name)&&t.setAttribute("largeop","false");else if(n.body)t=new Zr("mo",Or(n.body,e));else{t=new Zr("mi",[new Hc(n.name.slice(1))]);var r=new Zr("mo",[mi("⁡","text")]);n.parentIsSupSub?t=new Zr("mrow",[t,r]):t=KN([t,r])}return t},ket={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};st({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(n,e)=>{var{parser:t,funcName:r}=n,i=r;return i.length===1&&(i=ket[i]),{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:rc,mathmlBuilder:Id});st({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(n,e)=>{var{parser:t}=n,r=e[0];return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:kn(r)}},htmlBuilder:rc,mathmlBuilder:Id});var Iet={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};st({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(n){var{parser:e,funcName:t}=n;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:rc,mathmlBuilder:Id});st({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(n){var{parser:e,funcName:t}=n;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:rc,mathmlBuilder:Id});st({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(n){var{parser:e,funcName:t}=n,r=t;return r.length===1&&(r=Iet[r]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:rc,mathmlBuilder:Id});var Ek=(n,e)=>{var t,r,i=!1,s;n.type==="supsub"?(t=n.sup,r=n.sub,s=Ut(n.base,"operatorname"),i=!0):s=Ut(n,"operatorname");var o;if(s.body.length>0){for(var a=s.body.map(m=>{var f=m.text;return typeof f=="string"?{type:"textord",mode:m.mode,text:f}:m}),l=zn(a,e.withFont("mathrm"),!0),d=0;d{for(var t=Or(n.body,e.withFont("mathrm")),r=!0,i=0;iu.toText()).join("");t=[new Ke.TextNode(a)]}var l=new Ke.MathNode("mi",t);l.setAttribute("mathvariant","normal");var d=new Ke.MathNode("mo",[mi("⁡","text")]);return n.parentIsSupSub?new Ke.MathNode("mrow",[l,d]):Ke.newDocumentFragment([l,d])};st({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(n,e)=>{var{parser:t,funcName:r}=n,i=e[0];return{type:"operatorname",mode:t.mode,body:kn(i),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Ek,mathmlBuilder:Oet});P("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Na({type:"ordgroup",htmlBuilder(n,e){return n.semisimple?ve.makeFragment(zn(n.body,e,!1)):ve.makeSpan(["mord"],zn(n.body,e,!0),e)},mathmlBuilder(n,e){return ko(n.body,e,!0)}});st({type:"overline",names:["\\overline"],props:{numArgs:1},handler(n,e){var{parser:t}=n,r=e[0];return{type:"overline",mode:t.mode,body:r}},htmlBuilder(n,e){var t=Zt(n.body,e.havingCrampedStyle()),r=ve.makeLineSpan("overline-line",e),i=e.fontMetrics().defaultRuleThickness,s=ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]},e);return ve.makeSpan(["mord","overline"],[s],e)},mathmlBuilder(n,e){var t=new Ke.MathNode("mo",[new Ke.TextNode("‾")]);t.setAttribute("stretchy","true");var r=new Ke.MathNode("mover",[fn(n.body,e),t]);return r.setAttribute("accent","true"),r}});st({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(n,e)=>{var{parser:t}=n,r=e[0];return{type:"phantom",mode:t.mode,body:kn(r)}},htmlBuilder:(n,e)=>{var t=zn(n.body,e.withPhantom(),!1);return ve.makeFragment(t)},mathmlBuilder:(n,e)=>{var t=Or(n.body,e);return new Ke.MathNode("mphantom",t)}});st({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(n,e)=>{var{parser:t}=n,r=e[0];return{type:"hphantom",mode:t.mode,body:r}},htmlBuilder:(n,e)=>{var t=ve.makeSpan([],[Zt(n.body,e.withPhantom())]);if(t.height=0,t.depth=0,t.children)for(var r=0;r{var t=Or(kn(n.body),e),r=new Ke.MathNode("mphantom",t),i=new Ke.MathNode("mpadded",[r]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}});st({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(n,e)=>{var{parser:t}=n,r=e[0];return{type:"vphantom",mode:t.mode,body:r}},htmlBuilder:(n,e)=>{var t=ve.makeSpan(["inner"],[Zt(n.body,e.withPhantom())]),r=ve.makeSpan(["fix"],[]);return ve.makeSpan(["mord","rlap"],[t,r],e)},mathmlBuilder:(n,e)=>{var t=Or(kn(n.body),e),r=new Ke.MathNode("mphantom",t),i=new Ke.MathNode("mpadded",[r]);return i.setAttribute("width","0px"),i}});st({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(n,e){var{parser:t}=n,r=Ut(e[0],"size").value,i=e[1];return{type:"raisebox",mode:t.mode,dy:r,body:i}},htmlBuilder(n,e){var t=Zt(n.body,e),r=Tn(n.dy,e);return ve.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:t}]},e)},mathmlBuilder(n,e){var t=new Ke.MathNode("mpadded",[fn(n.body,e)]),r=n.dy.number+n.dy.unit;return t.setAttribute("voffset",r),t}});st({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(n){var{parser:e}=n;return{type:"internal",mode:e.mode}}});st({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(n,e,t){var{parser:r}=n,i=t[0],s=Ut(e[0],"size"),o=Ut(e[1],"size");return{type:"rule",mode:r.mode,shift:i&&Ut(i,"size").value,width:s.value,height:o.value}},htmlBuilder(n,e){var t=ve.makeSpan(["mord","rule"],[],e),r=Tn(n.width,e),i=Tn(n.height,e),s=n.shift?Tn(n.shift,e):0;return t.style.borderRightWidth=Je(r),t.style.borderTopWidth=Je(i),t.style.bottom=Je(s),t.width=r,t.height=i+s,t.depth=-s,t.maxFontSize=i*1.125*e.sizeMultiplier,t},mathmlBuilder(n,e){var t=Tn(n.width,e),r=Tn(n.height,e),i=n.shift?Tn(n.shift,e):0,s=e.color&&e.getColor()||"black",o=new Ke.MathNode("mspace");o.setAttribute("mathbackground",s),o.setAttribute("width",Je(t)),o.setAttribute("height",Je(r));var a=new Ke.MathNode("mpadded",[o]);return i>=0?a.setAttribute("height",Je(i)):(a.setAttribute("height",Je(i)),a.setAttribute("depth",Je(-i))),a.setAttribute("voffset",Je(i)),a}});function Sk(n,e,t){for(var r=zn(n,e,!1),i=e.sizeMultiplier/t.sizeMultiplier,s=0;s{var t=e.havingSize(n.size);return Sk(n.body,t,e)};st({type:"sizing",names:GC,props:{numArgs:0,allowedInText:!0},handler:(n,e)=>{var{breakOnTokenText:t,funcName:r,parser:i}=n,s=i.parseExpression(!1,t);return{type:"sizing",mode:i.mode,size:GC.indexOf(r)+1,body:s}},htmlBuilder:Det,mathmlBuilder:(n,e)=>{var t=e.havingSize(n.size),r=Or(n.body,t),i=new Ke.MathNode("mstyle",r);return i.setAttribute("mathsize",Je(t.sizeMultiplier)),i}});st({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(n,e,t)=>{var{parser:r}=n,i=!1,s=!1,o=t[0]&&Ut(t[0],"ordgroup");if(o)for(var a="",l=0;l{var t=ve.makeSpan([],[Zt(n.body,e)]);if(!n.smashHeight&&!n.smashDepth)return t;if(n.smashHeight&&(t.height=0,t.children))for(var r=0;r{var t=new Ke.MathNode("mpadded",[fn(n.body,e)]);return n.smashHeight&&t.setAttribute("height","0px"),n.smashDepth&&t.setAttribute("depth","0px"),t}});st({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(n,e,t){var{parser:r}=n,i=t[0],s=e[0];return{type:"sqrt",mode:r.mode,body:s,index:i}},htmlBuilder(n,e){var t=Zt(n.body,e.havingCrampedStyle());t.height===0&&(t.height=e.fontMetrics().xHeight),t=ve.wrapFragment(t,e);var r=e.fontMetrics(),i=r.defaultRuleThickness,s=i;e.style.idt.height+t.depth+o&&(o=(o+m-t.height-t.depth)/2);var f=l.height-t.height-o-d;t.style.paddingLeft=Je(u);var g=ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t,wrapperClasses:["svg-align"]},{type:"kern",size:-(t.height+f)},{type:"elem",elem:l},{type:"kern",size:d}]},e);if(n.index){var h=e.havingStyle(xt.SCRIPTSCRIPT),v=Zt(n.index,h,e),b=.6*(g.height-g.depth),_=ve.makeVList({positionType:"shift",positionData:-b,children:[{type:"elem",elem:v}]},e),y=ve.makeSpan(["root"],[_]);return ve.makeSpan(["mord","sqrt"],[y,g],e)}else return ve.makeSpan(["mord","sqrt"],[g],e)},mathmlBuilder(n,e){var{body:t,index:r}=n;return r?new Ke.MathNode("mroot",[fn(t,e),fn(r,e)]):new Ke.MathNode("msqrt",[fn(t,e)])}});var zC={display:xt.DISPLAY,text:xt.TEXT,script:xt.SCRIPT,scriptscript:xt.SCRIPTSCRIPT};st({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(n,e){var{breakOnTokenText:t,funcName:r,parser:i}=n,s=i.parseExpression(!0,t),o=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:o,body:s}},htmlBuilder(n,e){var t=zC[n.style],r=e.havingStyle(t).withFont("");return Sk(n.body,r,e)},mathmlBuilder(n,e){var t=zC[n.style],r=e.havingStyle(t),i=Or(n.body,r),s=new Ke.MathNode("mstyle",i),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},a=o[n.style];return s.setAttribute("scriptlevel",a[0]),s.setAttribute("displaystyle",a[1]),s}});var Let=function(e,t){var r=e.base;if(r)if(r.type==="op"){var i=r.limits&&(t.style.size===xt.DISPLAY.size||r.alwaysHandleSupSub);return i?rc:null}else if(r.type==="operatorname"){var s=r.alwaysHandleSupSub&&(t.style.size===xt.DISPLAY.size||r.limits);return s?Ek:null}else{if(r.type==="accent")return Et.isCharacterBox(r.base)?Kv:null;if(r.type==="horizBrace"){var o=!e.sub;return o===r.isOver?bk:null}else return null}else return null};Na({type:"supsub",htmlBuilder(n,e){var t=Let(n,e);if(t)return t(n,e);var{base:r,sup:i,sub:s}=n,o=Zt(r,e),a,l,d=e.fontMetrics(),u=0,m=0,f=r&&Et.isCharacterBox(r);if(i){var g=e.havingStyle(e.style.sup());a=Zt(i,g,e),f||(u=o.height-g.fontMetrics().supDrop*g.sizeMultiplier/e.sizeMultiplier)}if(s){var h=e.havingStyle(e.style.sub());l=Zt(s,h,e),f||(m=o.depth+h.fontMetrics().subDrop*h.sizeMultiplier/e.sizeMultiplier)}var v;e.style===xt.DISPLAY?v=d.sup1:e.style.cramped?v=d.sup3:v=d.sup2;var b=e.sizeMultiplier,_=Je(.5/d.ptPerEm/b),y=null;if(l){var E=n.base&&n.base.type==="op"&&n.base.name&&(n.base.name==="\\oiint"||n.base.name==="\\oiiint");(o instanceof hi||E)&&(y=Je(-o.italic))}var x;if(a&&l){u=Math.max(u,v,a.depth+.25*d.xHeight),m=Math.max(m,d.sub2);var A=d.defaultRuleThickness,w=4*A;if(u-a.depth-(l.height-m)0&&(u+=N,m-=N)}var L=[{type:"elem",elem:l,shift:m,marginRight:_,marginLeft:y},{type:"elem",elem:a,shift:-u,marginRight:_}];x=ve.makeVList({positionType:"individualShift",children:L},e)}else if(l){m=Math.max(m,d.sub1,l.height-.8*d.xHeight);var C=[{type:"elem",elem:l,marginLeft:y,marginRight:_}];x=ve.makeVList({positionType:"shift",positionData:m,children:C},e)}else if(a)u=Math.max(u,v,a.depth+.25*d.xHeight),x=ve.makeVList({positionType:"shift",positionData:-u,children:[{type:"elem",elem:a,marginRight:_}]},e);else throw new Error("supsub must have either sup or sub.");var k=p1(o,"right")||"mord";return ve.makeSpan([k],[o,ve.makeSpan(["msupsub"],[x])],e)},mathmlBuilder(n,e){var t=!1,r,i;n.base&&n.base.type==="horizBrace"&&(i=!!n.sup,i===n.base.isOver&&(t=!0,r=n.base.isOver)),n.base&&(n.base.type==="op"||n.base.type==="operatorname")&&(n.base.parentIsSupSub=!0);var s=[fn(n.base,e)];n.sub&&s.push(fn(n.sub,e)),n.sup&&s.push(fn(n.sup,e));var o;if(t)o=r?"mover":"munder";else if(n.sub)if(n.sup){var d=n.base;d&&d.type==="op"&&d.limits&&e.style===xt.DISPLAY||d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(e.style===xt.DISPLAY||d.limits)?o="munderover":o="msubsup"}else{var l=n.base;l&&l.type==="op"&&l.limits&&(e.style===xt.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||e.style===xt.DISPLAY)?o="munder":o="msub"}else{var a=n.base;a&&a.type==="op"&&a.limits&&(e.style===xt.DISPLAY||a.alwaysHandleSupSub)||a&&a.type==="operatorname"&&a.alwaysHandleSupSub&&(a.limits||e.style===xt.DISPLAY)?o="mover":o="msup"}return new Ke.MathNode(o,s)}});Na({type:"atom",htmlBuilder(n,e){return ve.mathsym(n.text,n.mode,e,["m"+n.family])},mathmlBuilder(n,e){var t=new Ke.MathNode("mo",[mi(n.text,n.mode)]);if(n.family==="bin"){var r=$v(n,e);r==="bold-italic"&&t.setAttribute("mathvariant",r)}else n.family==="punct"?t.setAttribute("separator","true"):(n.family==="open"||n.family==="close")&&t.setAttribute("stretchy","false");return t}});var xk={mi:"italic",mn:"normal",mtext:"normal"};Na({type:"mathord",htmlBuilder(n,e){return ve.makeOrd(n,e,"mathord")},mathmlBuilder(n,e){var t=new Ke.MathNode("mi",[mi(n.text,n.mode,e)]),r=$v(n,e)||"italic";return r!==xk[t.type]&&t.setAttribute("mathvariant",r),t}});Na({type:"textord",htmlBuilder(n,e){return ve.makeOrd(n,e,"textord")},mathmlBuilder(n,e){var t=mi(n.text,n.mode,e),r=$v(n,e)||"normal",i;return n.mode==="text"?i=new Ke.MathNode("mtext",[t]):/[0-9]/.test(n.text)?i=new Ke.MathNode("mn",[t]):n.text==="\\prime"?i=new Ke.MathNode("mo",[t]):i=new Ke.MathNode("mi",[t]),r!==xk[i.type]&&i.setAttribute("mathvariant",r),i}});var q0={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Y0={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Na({type:"spacing",htmlBuilder(n,e){if(Y0.hasOwnProperty(n.text)){var t=Y0[n.text].className||"";if(n.mode==="text"){var r=ve.makeOrd(n,e,"textord");return r.classes.push(t),r}else return ve.makeSpan(["mspace",t],[ve.mathsym(n.text,n.mode,e)],e)}else{if(q0.hasOwnProperty(n.text))return ve.makeSpan(["mspace",q0[n.text]],[],e);throw new Qe('Unknown type of space "'+n.text+'"')}},mathmlBuilder(n,e){var t;if(Y0.hasOwnProperty(n.text))t=new Ke.MathNode("mtext",[new Ke.TextNode(" ")]);else{if(q0.hasOwnProperty(n.text))return new Ke.MathNode("mspace");throw new Qe('Unknown type of space "'+n.text+'"')}return t}});var VC=()=>{var n=new Ke.MathNode("mtd",[]);return n.setAttribute("width","50%"),n};Na({type:"tag",mathmlBuilder(n,e){var t=new Ke.MathNode("mtable",[new Ke.MathNode("mtr",[VC(),new Ke.MathNode("mtd",[ko(n.body,e)]),VC(),new Ke.MathNode("mtd",[ko(n.tag,e)])])]);return t.setAttribute("width","100%"),t}});var HC={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},qC={"\\textbf":"textbf","\\textmd":"textmd"},Pet={"\\textit":"textit","\\textup":"textup"},YC=(n,e)=>{var t=n.font;if(t){if(HC[t])return e.withTextFontFamily(HC[t]);if(qC[t])return e.withTextFontWeight(qC[t]);if(t==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(Pet[t])};st({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(n,e){var{parser:t,funcName:r}=n,i=e[0];return{type:"text",mode:t.mode,body:kn(i),font:r}},htmlBuilder(n,e){var t=YC(n,e),r=zn(n.body,t,!0);return ve.makeSpan(["mord","text"],r,t)},mathmlBuilder(n,e){var t=YC(n,e);return ko(n.body,t)}});st({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(n,e){var{parser:t}=n;return{type:"underline",mode:t.mode,body:e[0]}},htmlBuilder(n,e){var t=Zt(n.body,e),r=ve.makeLineSpan("underline-line",e),i=e.fontMetrics().defaultRuleThickness,s=ve.makeVList({positionType:"top",positionData:t.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:t}]},e);return ve.makeSpan(["mord","underline"],[s],e)},mathmlBuilder(n,e){var t=new Ke.MathNode("mo",[new Ke.TextNode("‾")]);t.setAttribute("stretchy","true");var r=new Ke.MathNode("munder",[fn(n.body,e),t]);return r.setAttribute("accentunder","true"),r}});st({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(n,e){var{parser:t}=n;return{type:"vcenter",mode:t.mode,body:e[0]}},htmlBuilder(n,e){var t=Zt(n.body,e),r=e.fontMetrics().axisHeight,i=.5*(t.height-r-(t.depth+r));return ve.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:t}]},e)},mathmlBuilder(n,e){return new Ke.MathNode("mpadded",[fn(n.body,e)],["vcenter"])}});st({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(n,e,t){throw new Qe("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(n,e){for(var t=$C(n),r=[],i=e.havingStyle(e.style.text()),s=0;sn.body.replace(/ /g,n.star?"␣":" "),_o=$N,Tk=`[ \r ]`,Fet="\\\\[a-zA-Z@]+",Uet="\\\\[^\uD800-\uDFFF]",Bet="("+Fet+")"+Tk+"*",Get=`\\\\( |[ \r ]+ ?)[ \r ]*`,g1="[̀-ͯ]",zet=new RegExp(g1+"+$"),Vet="("+Tk+"+)|"+(Get+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(g1+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(g1+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Bet)+("|"+Uet+")");class WC{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(Vet,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new li("EOF",new Fr(this,t,t));var r=this.tokenRegex.exec(e);if(r===null||r.index!==t)throw new Qe("Unexpected character: '"+e[t]+"'",new li(e[t],new Fr(this,t,t+1)));var i=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[i]===14){var s=e.indexOf(` `,this.tokenRegex.lastIndex);return s===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=s+1,this.lex()}return new li(i,new Fr(this,t,this.tokenRegex.lastIndex))}}class Het{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Qe("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(e[t]==null?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,r){if(r===void 0&&(r=!1),r){for(var i=0;i0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var s=this.undefStack[this.undefStack.length-1];s&&!s.hasOwnProperty(e)&&(s[e]=this.current[e])}t==null?delete this.current[e]:this.current[e]=t}}var qet=hk;P("\\noexpand",function(n){var e=n.popToken();return n.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});P("\\expandafter",function(n){var e=n.popToken();return n.expandOnce(!0),{tokens:[e],numArgs:0}});P("\\@firstoftwo",function(n){var e=n.consumeArgs(2);return{tokens:e[0],numArgs:0}});P("\\@secondoftwo",function(n){var e=n.consumeArgs(2);return{tokens:e[1],numArgs:0}});P("\\@ifnextchar",function(n){var e=n.consumeArgs(3);n.consumeSpaces();var t=n.future();return e[0].length===1&&e[0][0].text===t.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});P("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");P("\\TextOrMath",function(n){var e=n.consumeArgs(2);return n.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var KC={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};P("\\char",function(n){var e=n.popToken(),t,r="";if(e.text==="'")t=8,e=n.popToken();else if(e.text==='"')t=16,e=n.popToken();else if(e.text==="`")if(e=n.popToken(),e.text[0]==="\\")r=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new Qe("\\char` missing argument");r=e.text.charCodeAt(0)}else t=10;if(t){if(r=KC[e.text],r==null||r>=t)throw new Qe("Invalid base-"+t+" digit "+e.text);for(var i;(i=KC[n.future().text])!=null&&i{var r=n.consumeArg().tokens;if(r.length!==1)throw new Qe("\\newcommand's first argument must be a macro name");var i=r[0].text,s=n.isDefined(i);if(s&&!e)throw new Qe("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!s&&!t)throw new Qe("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var o=0;if(r=n.consumeArg().tokens,r.length===1&&r[0].text==="["){for(var a="",l=n.expandNextToken();l.text!=="]"&&l.text!=="EOF";)a+=l.text,l=n.expandNextToken();if(!a.match(/^\s*[0-9]+\s*$/))throw new Qe("Invalid number of arguments: "+a);o=parseInt(a),r=n.consumeArg().tokens}return n.macros.set(i,{tokens:r,numArgs:o}),""};P("\\newcommand",n=>ny(n,!1,!0));P("\\renewcommand",n=>ny(n,!0,!1));P("\\providecommand",n=>ny(n,!0,!0));P("\\message",n=>{var e=n.consumeArgs(1)[0];return console.log(e.reverse().map(t=>t.text).join("")),""});P("\\errmessage",n=>{var e=n.consumeArgs(1)[0];return console.error(e.reverse().map(t=>t.text).join("")),""});P("\\show",n=>{var e=n.popToken(),t=e.text;return console.log(e,n.macros.get(t),_o[t],_n.math[t],_n.text[t]),""});P("\\bgroup","{");P("\\egroup","}");P("~","\\nobreakspace");P("\\lq","`");P("\\rq","'");P("\\aa","\\r a");P("\\AA","\\r A");P("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");P("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");P("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");P("ℬ","\\mathscr{B}");P("ℰ","\\mathscr{E}");P("ℱ","\\mathscr{F}");P("ℋ","\\mathscr{H}");P("ℐ","\\mathscr{I}");P("ℒ","\\mathscr{L}");P("ℳ","\\mathscr{M}");P("ℛ","\\mathscr{R}");P("ℭ","\\mathfrak{C}");P("ℌ","\\mathfrak{H}");P("ℨ","\\mathfrak{Z}");P("\\Bbbk","\\Bbb{k}");P("·","\\cdotp");P("\\llap","\\mathllap{\\textrm{#1}}");P("\\rlap","\\mathrlap{\\textrm{#1}}");P("\\clap","\\mathclap{\\textrm{#1}}");P("\\mathstrut","\\vphantom{(}");P("\\underbar","\\underline{\\text{#1}}");P("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');P("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");P("\\ne","\\neq");P("≠","\\neq");P("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");P("∉","\\notin");P("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");P("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");P("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");P("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");P("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");P("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");P("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");P("⟂","\\perp");P("‼","\\mathclose{!\\mkern-0.8mu!}");P("∌","\\notni");P("⌜","\\ulcorner");P("⌝","\\urcorner");P("⌞","\\llcorner");P("⌟","\\lrcorner");P("©","\\copyright");P("®","\\textregistered");P("️","\\textregistered");P("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');P("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');P("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');P("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');P("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}");P("⋮","\\vdots");P("\\varGamma","\\mathit{\\Gamma}");P("\\varDelta","\\mathit{\\Delta}");P("\\varTheta","\\mathit{\\Theta}");P("\\varLambda","\\mathit{\\Lambda}");P("\\varXi","\\mathit{\\Xi}");P("\\varPi","\\mathit{\\Pi}");P("\\varSigma","\\mathit{\\Sigma}");P("\\varUpsilon","\\mathit{\\Upsilon}");P("\\varPhi","\\mathit{\\Phi}");P("\\varPsi","\\mathit{\\Psi}");P("\\varOmega","\\mathit{\\Omega}");P("\\substack","\\begin{subarray}{c}#1\\end{subarray}");P("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");P("\\boxed","\\fbox{$\\displaystyle{#1}$}");P("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");P("\\implies","\\DOTSB\\;\\Longrightarrow\\;");P("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var jC={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};P("\\dots",function(n){var e="\\dotso",t=n.expandAfterFuture().text;return t in jC?e=jC[t]:(t.slice(0,4)==="\\not"||t in _n.math&&Et.contains(["bin","rel"],_n.math[t].group))&&(e="\\dotsb"),e});var ry={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};P("\\dotso",function(n){var e=n.future().text;return e in ry?"\\ldots\\,":"\\ldots"});P("\\dotsc",function(n){var e=n.future().text;return e in ry&&e!==","?"\\ldots\\,":"\\ldots"});P("\\cdots",function(n){var e=n.future().text;return e in ry?"\\@cdots\\,":"\\@cdots"});P("\\dotsb","\\cdots");P("\\dotsm","\\cdots");P("\\dotsi","\\!\\cdots");P("\\dotsx","\\ldots\\,");P("\\DOTSI","\\relax");P("\\DOTSB","\\relax");P("\\DOTSX","\\relax");P("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");P("\\,","\\tmspace+{3mu}{.1667em}");P("\\thinspace","\\,");P("\\>","\\mskip{4mu}");P("\\:","\\tmspace+{4mu}{.2222em}");P("\\medspace","\\:");P("\\;","\\tmspace+{5mu}{.2777em}");P("\\thickspace","\\;");P("\\!","\\tmspace-{3mu}{.1667em}");P("\\negthinspace","\\!");P("\\negmedspace","\\tmspace-{4mu}{.2222em}");P("\\negthickspace","\\tmspace-{5mu}{.277em}");P("\\enspace","\\kern.5em ");P("\\enskip","\\hskip.5em\\relax");P("\\quad","\\hskip1em\\relax");P("\\qquad","\\hskip2em\\relax");P("\\tag","\\@ifstar\\tag@literal\\tag@paren");P("\\tag@paren","\\tag@literal{({#1})}");P("\\tag@literal",n=>{if(n.macros.get("\\df@tag"))throw new Qe("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});P("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");P("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");P("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");P("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");P("\\newline","\\\\\\relax");P("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var wk=Je($i["Main-Regular"][84][1]-.7*$i["Main-Regular"][65][1]);P("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+wk+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");P("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+wk+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");P("\\hspace","\\@ifstar\\@hspacer\\@hspace");P("\\@hspace","\\hskip #1\\relax");P("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");P("\\ordinarycolon",":");P("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");P("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');P("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');P("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');P("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');P("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');P("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');P("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');P("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');P("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');P("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');P("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');P("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');P("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');P("∷","\\dblcolon");P("∹","\\eqcolon");P("≔","\\coloneqq");P("≕","\\eqqcolon");P("⩴","\\Coloneqq");P("\\ratio","\\vcentcolon");P("\\coloncolon","\\dblcolon");P("\\colonequals","\\coloneqq");P("\\coloncolonequals","\\Coloneqq");P("\\equalscolon","\\eqqcolon");P("\\equalscoloncolon","\\Eqqcolon");P("\\colonminus","\\coloneq");P("\\coloncolonminus","\\Coloneq");P("\\minuscolon","\\eqcolon");P("\\minuscoloncolon","\\Eqcolon");P("\\coloncolonapprox","\\Colonapprox");P("\\coloncolonsim","\\Colonsim");P("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");P("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");P("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");P("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");P("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");P("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");P("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");P("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");P("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");P("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");P("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");P("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");P("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");P("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");P("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");P("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");P("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");P("\\nleqq","\\html@mathml{\\@nleqq}{≰}");P("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");P("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");P("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");P("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");P("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");P("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");P("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");P("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");P("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");P("\\imath","\\html@mathml{\\@imath}{ı}");P("\\jmath","\\html@mathml{\\@jmath}{ȷ}");P("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");P("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");P("⟦","\\llbracket");P("⟧","\\rrbracket");P("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");P("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");P("⦃","\\lBrace");P("⦄","\\rBrace");P("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");P("⦵","\\minuso");P("\\darr","\\downarrow");P("\\dArr","\\Downarrow");P("\\Darr","\\Downarrow");P("\\lang","\\langle");P("\\rang","\\rangle");P("\\uarr","\\uparrow");P("\\uArr","\\Uparrow");P("\\Uarr","\\Uparrow");P("\\N","\\mathbb{N}");P("\\R","\\mathbb{R}");P("\\Z","\\mathbb{Z}");P("\\alef","\\aleph");P("\\alefsym","\\aleph");P("\\Alpha","\\mathrm{A}");P("\\Beta","\\mathrm{B}");P("\\bull","\\bullet");P("\\Chi","\\mathrm{X}");P("\\clubs","\\clubsuit");P("\\cnums","\\mathbb{C}");P("\\Complex","\\mathbb{C}");P("\\Dagger","\\ddagger");P("\\diamonds","\\diamondsuit");P("\\empty","\\emptyset");P("\\Epsilon","\\mathrm{E}");P("\\Eta","\\mathrm{H}");P("\\exist","\\exists");P("\\harr","\\leftrightarrow");P("\\hArr","\\Leftrightarrow");P("\\Harr","\\Leftrightarrow");P("\\hearts","\\heartsuit");P("\\image","\\Im");P("\\infin","\\infty");P("\\Iota","\\mathrm{I}");P("\\isin","\\in");P("\\Kappa","\\mathrm{K}");P("\\larr","\\leftarrow");P("\\lArr","\\Leftarrow");P("\\Larr","\\Leftarrow");P("\\lrarr","\\leftrightarrow");P("\\lrArr","\\Leftrightarrow");P("\\Lrarr","\\Leftrightarrow");P("\\Mu","\\mathrm{M}");P("\\natnums","\\mathbb{N}");P("\\Nu","\\mathrm{N}");P("\\Omicron","\\mathrm{O}");P("\\plusmn","\\pm");P("\\rarr","\\rightarrow");P("\\rArr","\\Rightarrow");P("\\Rarr","\\Rightarrow");P("\\real","\\Re");P("\\reals","\\mathbb{R}");P("\\Reals","\\mathbb{R}");P("\\Rho","\\mathrm{P}");P("\\sdot","\\cdot");P("\\sect","\\S");P("\\spades","\\spadesuit");P("\\sub","\\subset");P("\\sube","\\subseteq");P("\\supe","\\supseteq");P("\\Tau","\\mathrm{T}");P("\\thetasym","\\vartheta");P("\\weierp","\\wp");P("\\Zeta","\\mathrm{Z}");P("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");P("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");P("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");P("\\bra","\\mathinner{\\langle{#1}|}");P("\\ket","\\mathinner{|{#1}\\rangle}");P("\\braket","\\mathinner{\\langle{#1}\\rangle}");P("\\Bra","\\left\\langle#1\\right|");P("\\Ket","\\left|#1\\right\\rangle");var Ck=n=>e=>{var t=e.consumeArg().tokens,r=e.consumeArg().tokens,i=e.consumeArg().tokens,s=e.consumeArg().tokens,o=e.macros.get("|"),a=e.macros.get("\\|");e.macros.beginGroup();var l=m=>f=>{n&&(f.macros.set("|",o),i.length&&f.macros.set("\\|",a));var g=m;if(!m&&i.length){var h=f.future();h.text==="|"&&(f.popToken(),g=!0)}return{tokens:g?i:r,numArgs:0}};e.macros.set("|",l(!1)),i.length&&e.macros.set("\\|",l(!0));var d=e.consumeArg().tokens,u=e.expandTokens([...s,...d,...t]);return e.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};P("\\bra@ket",Ck(!1));P("\\bra@set",Ck(!0));P("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");P("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");P("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");P("\\angln","{\\angl n}");P("\\blue","\\textcolor{##6495ed}{#1}");P("\\orange","\\textcolor{##ffa500}{#1}");P("\\pink","\\textcolor{##ff00af}{#1}");P("\\red","\\textcolor{##df0030}{#1}");P("\\green","\\textcolor{##28ae7b}{#1}");P("\\gray","\\textcolor{gray}{#1}");P("\\purple","\\textcolor{##9d38bd}{#1}");P("\\blueA","\\textcolor{##ccfaff}{#1}");P("\\blueB","\\textcolor{##80f6ff}{#1}");P("\\blueC","\\textcolor{##63d9ea}{#1}");P("\\blueD","\\textcolor{##11accd}{#1}");P("\\blueE","\\textcolor{##0c7f99}{#1}");P("\\tealA","\\textcolor{##94fff5}{#1}");P("\\tealB","\\textcolor{##26edd5}{#1}");P("\\tealC","\\textcolor{##01d1c1}{#1}");P("\\tealD","\\textcolor{##01a995}{#1}");P("\\tealE","\\textcolor{##208170}{#1}");P("\\greenA","\\textcolor{##b6ffb0}{#1}");P("\\greenB","\\textcolor{##8af281}{#1}");P("\\greenC","\\textcolor{##74cf70}{#1}");P("\\greenD","\\textcolor{##1fab54}{#1}");P("\\greenE","\\textcolor{##0d923f}{#1}");P("\\goldA","\\textcolor{##ffd0a9}{#1}");P("\\goldB","\\textcolor{##ffbb71}{#1}");P("\\goldC","\\textcolor{##ff9c39}{#1}");P("\\goldD","\\textcolor{##e07d10}{#1}");P("\\goldE","\\textcolor{##a75a05}{#1}");P("\\redA","\\textcolor{##fca9a9}{#1}");P("\\redB","\\textcolor{##ff8482}{#1}");P("\\redC","\\textcolor{##f9685d}{#1}");P("\\redD","\\textcolor{##e84d39}{#1}");P("\\redE","\\textcolor{##bc2612}{#1}");P("\\maroonA","\\textcolor{##ffbde0}{#1}");P("\\maroonB","\\textcolor{##ff92c6}{#1}");P("\\maroonC","\\textcolor{##ed5fa6}{#1}");P("\\maroonD","\\textcolor{##ca337c}{#1}");P("\\maroonE","\\textcolor{##9e034e}{#1}");P("\\purpleA","\\textcolor{##ddd7ff}{#1}");P("\\purpleB","\\textcolor{##c6b9fc}{#1}");P("\\purpleC","\\textcolor{##aa87ff}{#1}");P("\\purpleD","\\textcolor{##7854ab}{#1}");P("\\purpleE","\\textcolor{##543b78}{#1}");P("\\mintA","\\textcolor{##f5f9e8}{#1}");P("\\mintB","\\textcolor{##edf2df}{#1}");P("\\mintC","\\textcolor{##e0e5cc}{#1}");P("\\grayA","\\textcolor{##f6f7f7}{#1}");P("\\grayB","\\textcolor{##f0f1f2}{#1}");P("\\grayC","\\textcolor{##e3e5e6}{#1}");P("\\grayD","\\textcolor{##d6d8da}{#1}");P("\\grayE","\\textcolor{##babec2}{#1}");P("\\grayF","\\textcolor{##888d93}{#1}");P("\\grayG","\\textcolor{##626569}{#1}");P("\\grayH","\\textcolor{##3b3e40}{#1}");P("\\grayI","\\textcolor{##21242c}{#1}");P("\\kaBlue","\\textcolor{##314453}{#1}");P("\\kaGreen","\\textcolor{##71B307}{#1}");var Ak={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Yet{constructor(e,t,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new Het(qet,t.macros),this.mode=r,this.stack=[]}feed(e){this.lexer=new WC(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,r,i;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;t=this.popToken(),{tokens:i,end:r}=this.consumeArg(["]"])}else({tokens:i,start:t,end:r}=this.consumeArg());return this.pushToken(new li("EOF",r.loc)),this.pushTokens(i),t.range(r,"")}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var t=[],r=e&&e.length>0;r||this.consumeSpaces();var i=this.future(),s,o=0,a=0;do{if(s=this.popToken(),t.push(s),s.text==="{")++o;else if(s.text==="}"){if(--o,o===-1)throw new Qe("Extra }",s)}else if(s.text==="EOF")throw new Qe("Unexpected end of input in a macro argument, expected '"+(e&&r?e[a]:"}")+"'",s);if(e&&r)if((o===0||o===1&&e[a]==="{")&&s.text===e[a]){if(++a,a===e.length){t.splice(-a,a);break}}else a=0}while(o!==0||r);return i.text==="{"&&t[t.length-1].text==="}"&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:i,end:s}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new Qe("The length of delimiters doesn't match the number of args!");for(var r=t[0],i=0;ithis.settings.maxExpand)throw new Qe("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var t=this.popToken(),r=t.text,i=t.noexpand?null:this._getExpansion(r);if(i==null||e&&i.unexpandable){if(e&&i==null&&r[0]==="\\"&&!this.isDefined(r))throw new Qe("Undefined control sequence: "+r);return this.pushToken(t),!1}this.countExpansion(1);var s=i.tokens,o=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){s=s.slice();for(var a=s.length-1;a>=0;--a){var l=s[a];if(l.text==="#"){if(a===0)throw new Qe("Incomplete placeholder at end of macro body",l);if(l=s[--a],l.text==="#")s.splice(a+1,1);else if(/^[1-9]$/.test(l.text))s.splice(a,2,...o[+l.text-1]);else throw new Qe("Not a valid argument number",l)}}}return this.pushTokens(s),s.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new li(e)]):void 0}expandTokens(e){var t=[],r=this.stack.length;for(this.pushTokens(e);this.stack.length>r;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),t.push(i)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(r=>r.text).join("")}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var r=this.lexer.catcodes[e];if(r!=null&&r!==13)return}var i=typeof t=="function"?t(this):t;if(typeof i=="string"){var s=0;if(i.indexOf("#")!==-1)for(var o=i.replace(/##/g,"");o.indexOf("#"+(s+1))!==-1;)++s;for(var a=new WC(i,this.settings),l=[],d=a.lex();d.text!=="EOF";)l.push(d),d=a.lex();l.reverse();var u={tokens:l,numArgs:s};return u}return i}isDefined(e){return this.macros.has(e)||_o.hasOwnProperty(e)||_n.math.hasOwnProperty(e)||_n.text.hasOwnProperty(e)||Ak.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t!=null?typeof t=="string"||typeof t=="function"||!t.unexpandable:_o.hasOwnProperty(e)&&!_o[e].primitive}}var QC=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,pu=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),$0={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},XC={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class Xh{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Yet(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new Qe("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new li("}")),this.gullet.pushTokens(e);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,r}parseExpression(e,t){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(Xh.endOfExpression.indexOf(i.text)!==-1||t&&i.text===t||e&&_o[i.text]&&_o[i.text].infix)break;var s=this.parseAtom(t);if(s){if(s.type==="internal")continue}else break;r.push(s)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t=-1,r,i=0;i=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var a=_n[this.mode][t].group,l=Fr.range(e),d;if(kJe.hasOwnProperty(a)){var u=a;d={type:"atom",mode:this.mode,family:u,loc:l,text:t}}else d={type:a,mode:this.mode,loc:l,text:t};o=d}else if(t.charCodeAt(0)>=128)this.settings.strict&&(PN(t.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'"'+(" ("+t.charCodeAt(0)+")"),e)),o={type:"textord",mode:"text",loc:Fr.range(e),text:t};else return null;if(this.consume(),s)for(var m=0;m/g,">").replace(/"/g,""").replace(/'/g,"'")}function t(r,i){const s=t.mergeDelimiters(i&&i.delimiters),o=i&&i.outerSpace||!1,a=i&&i.katexOptions||{};a.throwOnError=a.throwOnError||!1,a.macros=a.macros||i&&i.macros,t.katex||(i&&typeof i.engine=="object"?t.katex=i.engine:t.katex=Xet);for(const l of s.inline)o&&"outerSpace"in l&&(l.outerSpace=!0),r.inline.ruler.before("escape",l.name,t.inline(l)),r.renderer.rules[l.name]=(d,u)=>l.tmpl.replace(/\$1/,t.render(d[u].content,!!l.displayMode,a));for(const l of s.block)r.block.ruler.before("fence",l.name,t.block(l)),r.renderer.rules[l.name]=(d,u)=>l.tmpl.replace(/\$2/,e(d[u].info)).replace(/\$1/,t.render(d[u].content,!0,a))}t.mergeDelimiters=function(r){const i=Array.isArray(r)?r:typeof r=="string"?[r]:["dollars"],s={inline:[],block:[]};for(const o of i)o in t.rules&&(s.inline.push(...t.rules[o].inline),s.block.push(...t.rules[o].block));return s},t.inline=r=>function(i,s){const o=i.pos,a=i.src,d=a.startsWith(r.tag,r.rex.lastIndex=o)&&(!r.pre||r.pre(a,r.outerSpace,o))&&r.rex.exec(a),u=!!d&&ofunction(s,o,a,l){const d=s.bMarks[o]+s.tShift[o],u=s.src,f=u.startsWith(r.tag,r.rex.lastIndex=d)&&(!r.pre||r.pre(u,!1,d))&&r.rex.exec(u),g=!!f&&d=s.bMarks[v]+s.tShift[v]&&h<=s.eMarks[v]);v++);const b=s.lineMax,_=s.parentType;s.lineMax=v,s.parentType="math",_==="blockquote"&&(f[1]=f[1].replace(/(\n*?^(?:\s*>)+)/gm,""));let y=s.push(r.name,"math",0);y.block=!0,y.tag=r.tag,y.markup="",y.content=f[1],y.info=f[f.length-1],y.map=[o,v+1],s.parentType=_,s.lineMax=b,s.line=v+1}return g},t.render=function(r,i,s){s.displayMode=i;let o;try{o=t.katex.renderToString(r,s)}catch(a){o=e(`${r}:${a.message}`)}return o},t.use=function(r){return t.katex=r,t},t.inlineRuleNames=["math_inline","math_inline_double"],t.blockRuleNames=["math_block","math_block_eqno"],t.$_pre=(r,i,s)=>{const o=s>0?r[s-1].charCodeAt(0):!1;return i?!o||o===32:!o||o!==92&&(o<48||o>57)},t.$_post=(r,i,s)=>{const o=r[s+1]&&r[s+1].charCodeAt(0);return i?!o||o===32||o===46||o===44||o===59:!o||o<48||o>57},t.rules={brackets:{inline:[{name:"math_inline",rex:/\\\((.+?)\\\)/gy,tmpl:"$1",tag:"\\("}],block:[{name:"math_block_eqno",rex:/\\\[(((?!\\\]|\\\[)[\s\S])+?)\\\]\s*?\(([^)$\r\n]+?)\)/gmy,tmpl:'
$1($2)
',tag:"\\["},{name:"math_block",rex:/\\\[([\s\S]+?)\\\]/gmy,tmpl:"
$1
",tag:"\\["}]},doxygen:{inline:[{name:"math_inline",rex:/\\f\$(.+?)\\f\$/gy,tmpl:"$1",tag:"\\f$"}],block:[{name:"math_block_eqno",rex:/\\f\[([^]+?)\\f\]\s*?\(([^)\s]+?)\)/gmy,tmpl:'
$1($2)
',tag:"\\f["},{name:"math_block",rex:/\\f\[([^]+?)\\f\]/gmy,tmpl:"
$1
",tag:"\\f["}]},gitlab:{inline:[{name:"math_inline",rex:/\$`(.+?)`\$/gy,tmpl:"$1",tag:"$`"}],block:[{name:"math_block_eqno",rex:/`{3}math\s*([^`]+?)\s*?`{3}\s*\(([^)\r\n]+?)\)/gm,tmpl:'
$1($2)
',tag:"```math"},{name:"math_block",rex:/`{3}math\s*([^`]*?)\s*`{3}/gm,tmpl:"
$1
",tag:"```math"}]},julia:{inline:[{name:"math_inline",rex:/`{2}([^`]+?)`{2}/gy,tmpl:"$1",tag:"``"},{name:"math_inline",rex:/\$((?:\S?)|(?:\S.*?\S))\$/gy,tmpl:"$1",tag:"$",spaceEnclosed:!1,pre:t.$_pre,post:t.$_post}],block:[{name:"math_block_eqno",rex:/`{3}math\s+?([^`]+?)\s+?`{3}\s*?\(([^)$\r\n]+?)\)/gmy,tmpl:'
$1($2)
',tag:"```math"},{name:"math_block",rex:/`{3}math\s+?([^`]+?)\s+?`{3}/gmy,tmpl:"
$1
",tag:"```math"}]},kramdown:{inline:[{name:"math_inline",rex:/\${2}(.+?)\${2}/gy,tmpl:"$1",tag:"$$"}],block:[{name:"math_block_eqno",rex:/\${2}([^$]+?)\${2}\s*?\(([^)\s]+?)\)/gmy,tmpl:'
$1($2)
',tag:"$$"},{name:"math_block",rex:/\${2}([^$]+?)\${2}/gmy,tmpl:"
$1
",tag:"$$"}]},beg_end:{inline:[],block:[{name:"math_block",rex:/(\\(?:begin)\{([a-z]+)\}[\s\S]+?\\(?:end)\{\2\})/gmy,tmpl:"
$1
",tag:"\\"}]},dollars:{inline:[{name:"math_inline_double",rex:/\${2}([^$]*?[^\\])\${2}/gy,tmpl:"
$1
",tag:"$$",displayMode:!0,pre:t.$_pre,post:t.$_post},{name:"math_inline",rex:/\$((?:[^\s\\])|(?:\S.*?[^\s\\]))\$/gy,tmpl:"$1",tag:"$",outerSpace:!1,pre:t.$_pre,post:t.$_post}],block:[{name:"math_block_eqno",rex:/\${2}([^$]*?[^\\])\${2}\s*?\(([^)\s]+?)\)/gmy,tmpl:'
$1($2)
',tag:"$$"},{name:"math_block",rex:/\${2}([^$]*?[^\\])\${2}/gmy,tmpl:"
$1
",tag:"$$"}]}},n.exports&&(n.exports=t)})(jZe);function Zet(n){return n.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const Jet={name:"MarkdownRenderer",props:{host:{type:String,required:!1,default:"http://localhost:9600"},client_id:{type:String,required:!0},markdownText:{type:String,required:!0},discussion_id:{type:[String,Number],default:"0",required:!1},message_id:{value:"0",type:[String,Number],required:!1}},components:{CodeBlock:WZe},setup(n){const e=new PEe({html:!0,highlight:(s,o)=>{const a=o&&ya.getLanguage(o)?o:"plaintext";return ya.highlight(a,s).value},renderInline:!0,breaks:!1}).use(GWe).use(sl).use(WWe,{figcaption:!0}).use(aKe).use(YWe,{enableRowspan:!0,enableColspan:!0,enableGridTables:!0,enableGridTablesExtra:!0,enableTableIndentation:!0,tableCellPadding:" ",tableCellJoiner:"|",multilineCellStartMarker:"|>",multilineCellEndMarker:"<|",multilineCellPadding:" ",multilineCellJoiner:` -`}),t=yt([]),r=()=>{if(n.markdownText){let s=e.parse(n.markdownText,{}),o=[];t.value=[];for(let a=0;a0&&(t.value.push({type:"html",html:e.renderer.render(o,e.options,{})}),o=[]),t.value.push({type:"code",language:Zet(s[a].info),code:s[a].content}));o.length>0&&(t.value.push({type:"html",html:e.renderer.render(o,e.options,{})}),o=[])}else t.value=[];We(()=>{Ze.replace()})},i=(s,o)=>{t.value[s].code=o};return Zn(()=>n.markdownText,r),Ji(()=>{r(),We(()=>{window.MathJax&&window.MathJax.typesetPromise()})}),{markdownItems:t,updateCode:i}}},ett={class:"break-all container w-full"},ttt={ref:"mdRender",class:"markdown-content"},ntt=["innerHTML"];function rtt(n,e,t,r,i,s){const o=ht("code-block");return T(),M("div",ett,[c("div",ttt,[(T(!0),M(je,null,at(r.markdownItems,(a,l)=>(T(),M("div",{key:l},[a.type==="code"?(T(),Tt(o,{key:0,host:t.host,language:a.language,code:a.code,discussion_id:t.discussion_id,message_id:t.message_id,client_id:t.client_id,onUpdateCode:d=>r.updateCode(l,d)},null,8,["host","language","code","discussion_id","message_id","client_id","onUpdateCode"])):(T(),M("div",{key:1,innerHTML:a.html},null,8,ntt))]))),128))],512)])}const Zh=bt(Jet,[["render",rtt]]),itt={data(){return{show:!1,has_button:!0,message:""}},components:{MarkdownRenderer:Zh},methods:{hide(){this.show=!1,this.$emit("ok")},showMessage(n){this.message=n,this.has_button=!0,this.show=!0},showBlockingMessage(n){this.message=n,this.has_button=!1,this.show=!0},updateMessage(n){this.message=n,this.show=!0},hideMessage(){this.show=!1}}},stt={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 z-50"},ott={class:"pl-10 pr-10 bg-bg-light dark:bg-bg-dark p-8 rounded-lg shadow-lg"},att={class:"container max-h-500 overflow-y-auto"},ltt={class:"text-lg font-medium"},ctt={class:"mt-4 flex justify-center"},dtt={key:1,"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function utt(n,e,t,r,i,s){const o=ht("MarkdownRenderer");return i.show?(T(),M("div",stt,[c("div",ott,[c("div",att,[c("div",ltt,[W(o,{ref:"mdRender",host:"","markdown-text":i.message,message_id:0,discussion_id:0},null,8,["markdown-text"])])]),c("div",ctt,[i.has_button?(T(),M("button",{key:0,onClick:e[0]||(e[0]=(...a)=>s.hide&&s.hide(...a)),class:"bg-primary hover:bg-primary-light active:scale-95 duration-150 text-white px-4 py-2 rounded-lg shadow-lg hover:bg-secondary-dark"}," OK ")):Y("",!0),i.has_button?Y("",!0):(T(),M("svg",dtt,e[1]||(e[1]=[c("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"},null,-1),c("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"},null,-1)])))])])])):Y("",!0)}const ptt=bt(itt,[["render",utt]]),htt={props:{progress:{type:Number,required:!0}}},mtt={class:"progress-bar-container"};function ftt(n,e,t,r,i,s){return T(),M("div",mtt,[c("div",{class:"progress-bar",style:on({width:`${t.progress}%`})},null,4)])}const oy=bt(htt,[["render",ftt]]),gtt={setup(){return{}},name:"UniversalForm",data(){return{show:!1,resolve:null,controls_array:[],title:"Universal form",ConfirmButtonText:"Submit",DenyButtonText:"Cancel"}},mounted(){We(()=>{Ze.replace()})},methods:{btn_clicked(n){console.log(n)},hide(n){this.show=!1,this.resolve&&n&&(this.resolve(this.controls_array),this.resolve=null)},showForm(n,e,t,r){this.ConfirmButtonText=t||this.ConfirmButtonText,this.DenyButtonText=r||this.DenyButtonText;for(let i=0;i{this.controls_array=n,this.show=!0,this.title=e||this.title,this.resolve=i,console.log("show form",this.controls_array)})},openFileDialog(n){const e=document.createElement("input");e.type="file",n.type==="folder"&&(e.webkitdirectory=!0,e.directory=!0),n.accept&&(e.accept=n.accept),e.onchange=t=>{t.target.files.length>0&&(n.value=t.target.files[0].path)},e.click()}},watch:{controls_array:{deep:!0,handler(n){n.forEach(e=>{e.type==="int"?e.value=parseInt(e.value):e.type==="float"&&(e.value=parseFloat(e.value))})}},show(){We(()=>{Ze.replace()})}}},_tt={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 p-4 overflow-hidden"},btt={class:"relative w-full max-w-md max-h-[80vh]"},vtt={class:"flex flex-col rounded-lg bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel shadow-lg"},ytt={class:"flex flex-row items-center p-4 border-b border-gray-200 dark:border-gray-700"},Ett={class:"grow flex items-center"},Stt={class:"text-lg font-semibold select-none"},xtt={class:"overflow-y-auto p-4 max-h-[60vh] custom-scrollbar"},Ttt={class:"space-y-2"},wtt={key:0},Ctt={key:0},Att={class:"text-base font-semibold"},Rtt={key:0,class:"relative inline-flex"},Mtt=["onUpdate:modelValue"],Ntt={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},ktt=["onUpdate:modelValue"],Itt={key:1},Ott={class:"text-base font-semibold"},Dtt={key:0,class:"relative inline-flex"},Ltt=["onUpdate:modelValue"],Ptt={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},Ftt=["onUpdate:modelValue"],Utt=["value","selected"],Btt={key:1},Gtt={class:"",onclick:"btn_clicked(item)"},ztt={key:2},Vtt={key:0},Htt={class:"text-base font-semibold"},qtt={key:0,class:"relative inline-flex"},Ytt=["onUpdate:modelValue"],$tt={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},Wtt=["onUpdate:modelValue"],Ktt={key:1},jtt={class:"text-base font-semibold"},Qtt={key:0,class:"relative inline-flex"},Xtt=["onUpdate:modelValue"],Ztt={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},Jtt=["onUpdate:modelValue"],ent=["value","selected"],tnt={key:3},nnt={class:"text-base font-semibold"},rnt={key:0,class:"relative inline-flex"},int=["onUpdate:modelValue"],snt={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},ont=["onUpdate:modelValue"],ant=["onUpdate:modelValue","min","max"],lnt={key:4},cnt={class:"text-base font-semibold"},dnt={key:0,class:"relative inline-flex"},unt=["onUpdate:modelValue"],pnt={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},hnt=["onUpdate:modelValue"],mnt=["onUpdate:modelValue","min","max"],fnt={key:5},gnt={class:"mb-2 relative flex items-center gap-2"},_nt={for:"default-checkbox",class:"text-base font-semibold"},bnt=["onUpdate:modelValue"],vnt={key:0,class:"relative inline-flex"},ynt=["onUpdate:modelValue"],Ent={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},Snt={key:6},xnt={class:"text-base font-semibold"},Tnt={key:0,class:"relative inline-flex"},wnt=["onUpdate:modelValue"],Cnt={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},Ant=["onUpdate:modelValue"],Rnt={key:7,class:"space-y-2"},Mnt={class:"flex items-center gap-2"},Nnt={class:"text-base font-semibold"},knt={key:0,class:"relative inline-flex"},Int=["onUpdate:modelValue"],Ont={key:0,class:"text-sm text-gray-600 dark:text-gray-400"},Dnt={class:"flex gap-2"},Lnt=["onUpdate:modelValue","placeholder"],Pnt=["onClick"],Fnt={key:8,class:"h-px my-4 bg-gray-200 border-0 dark:bg-gray-700"},Unt={class:"flex justify-center gap-3 p-4 border-t border-gray-200 dark:border-gray-700"};function Bnt(n,e,t,r,i,s){return i.show?(T(),M("div",_tt,[c("div",btt,[c("div",vtt,[c("div",ytt,[c("div",Ett,[e[3]||(e[3]=c("i",{"data-feather":"sliders",class:"mr-2 flex-shrink-0"},null,-1)),c("h3",Stt,X(i.title),1)]),c("button",{onClick:e[0]||(e[0]=J(o=>s.hide(!1),["stop"])),title:"Close",class:"p-1.5 hover:bg-gray-200 rounded-lg dark:hover:bg-gray-800"},e[4]||(e[4]=[c("svg",{class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20"},[c("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"})],-1)]))]),c("div",xtt,[c("div",Ttt,[(T(!0),M(je,null,at(i.controls_array,(o,a)=>(T(),M("div",{key:a,class:"p-1"},[o.type=="str"||o.type=="string"?(T(),M("div",wtt,[o.options?Y("",!0):(T(),M("div",Ctt,[c("label",{class:qe(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[c("div",Att,X(o.name)+": ",1),o.help?(T(),M("label",Rtt,[F(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,Mtt),[[tt,o.isHelp]]),e[5]||(e[5]=c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[c("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):Y("",!0)],2),o.isHelp?(T(),M("p",Ntt,X(o.help),1)):Y("",!0),F(c("input",{type:"text","onUpdate:modelValue":l=>o.value=l,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter string"},null,8,ktt),[[_e,o.value]])])),o.options?(T(),M("div",Itt,[c("label",{class:qe(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[c("div",Ott,X(o.name)+": ",1),o.help?(T(),M("label",Dtt,[F(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,Ltt),[[tt,o.isHelp]]),e[6]||(e[6]=c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[c("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):Y("",!0)],2),o.isHelp?(T(),M("p",Ptt,X(o.help),1)):Y("",!0),F(c("select",{"onUpdate:modelValue":l=>o.value=l,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(T(!0),M(je,null,at(o.options,l=>(T(),M("option",{value:l,selected:o.value===l},X(l),9,Utt))),256))],8,Ftt),[[Qt,o.value]])])):Y("",!0)])):Y("",!0),o.type=="btn"?(T(),M("div",Btt,[c("button",Gtt,X(o.name),1)])):Y("",!0),o.type=="text"?(T(),M("div",ztt,[o.options?Y("",!0):(T(),M("div",Vtt,[c("label",{class:qe(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[c("div",Htt,X(o.name)+": ",1),o.help?(T(),M("label",qtt,[F(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,Ytt),[[tt,o.isHelp]]),e[7]||(e[7]=c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[c("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):Y("",!0)],2),o.isHelp?(T(),M("p",$tt,X(o.help),1)):Y("",!0),F(c("textarea",{"onUpdate:modelValue":l=>o.value=l,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter string"},null,8,Wtt),[[_e,o.value]])])),o.options?(T(),M("div",Ktt,[c("label",{class:qe(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[c("div",jtt,X(o.name)+": ",1),o.help?(T(),M("label",Qtt,[F(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,Xtt),[[tt,o.isHelp]]),e[8]||(e[8]=c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[c("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):Y("",!0)],2),o.isHelp?(T(),M("p",Ztt,X(o.help),1)):Y("",!0),F(c("select",{"onUpdate:modelValue":l=>o.value=l,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(T(!0),M(je,null,at(o.options,l=>(T(),M("option",{value:l,selected:o.value===l},X(l),9,ent))),256))],8,Jtt),[[Qt,o.value]])])):Y("",!0)])):Y("",!0),o.type=="int"?(T(),M("div",tnt,[c("label",{class:qe(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[c("div",nnt,X(o.name)+": ",1),o.help?(T(),M("label",rnt,[F(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,int),[[tt,o.isHelp]]),e[9]||(e[9]=c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[c("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):Y("",!0)],2),o.isHelp?(T(),M("p",snt,X(o.help),1)):Y("",!0),F(c("input",{type:"number","onUpdate:modelValue":l=>o.value=l,step:"1",class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter number"},null,8,ont),[[_e,o.value]]),o.min!=null&&o.max!=null?F((T(),M("input",{key:1,type:"range","onUpdate:modelValue":l=>o.value=l,min:o.min,max:o.max,step:"1",class:"flex-none h-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,8,ant)),[[_e,o.value]]):Y("",!0)])):Y("",!0),o.type=="float"?(T(),M("div",lnt,[c("label",{class:qe(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[c("div",cnt,X(o.name)+": ",1),o.help?(T(),M("label",dnt,[F(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,unt),[[tt,o.isHelp]]),e[10]||(e[10]=c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[c("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):Y("",!0)],2),o.isHelp?(T(),M("p",pnt,X(o.help),1)):Y("",!0),F(c("input",{type:"number","onUpdate:modelValue":l=>o.value=l,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter number"},null,8,hnt),[[_e,o.value]]),o.min!=null&&o.max!=null?F((T(),M("input",{key:1,type:"range","onUpdate:modelValue":l=>o.value=l,min:o.min,max:o.max,step:"0.1",class:"flex-none h-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,8,mnt)),[[_e,o.value]]):Y("",!0)])):Y("",!0),o.type=="bool"?(T(),M("div",fnt,[c("div",gnt,[c("label",_nt,X(o.name)+": ",1),F(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.value=l,class:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600"},null,8,bnt),[[tt,o.value]]),o.help?(T(),M("label",vnt,[F(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,ynt),[[tt,o.isHelp]]),e[11]||(e[11]=c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[c("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):Y("",!0)]),o.isHelp?(T(),M("p",Ent,X(o.help),1)):Y("",!0)])):Y("",!0),o.type=="list"?(T(),M("div",Snt,[c("label",{class:qe(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[c("div",xnt,X(o.name)+": ",1),o.help?(T(),M("label",Tnt,[F(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,wnt),[[tt,o.isHelp]]),e[12]||(e[12]=c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[c("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):Y("",!0)],2),o.isHelp?(T(),M("p",Cnt,X(o.help),1)):Y("",!0),F(c("input",{type:"text","onUpdate:modelValue":l=>o.value=l,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter comma separated values"},null,8,Ant),[[_e,o.value]])])):Y("",!0),o.type==="file"||o.type==="folder"?(T(),M("div",Rnt,[c("label",Mnt,[c("span",Nnt,X(o.name)+":",1),o.help?(T(),M("label",knt,[F(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,Int),[[tt,o.isHelp]]),e[13]||(e[13]=c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[c("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):Y("",!0)]),o.isHelp?(T(),M("p",Ont,X(o.help),1)):Y("",!0),c("div",Dnt,[F(c("input",{type:"text","onUpdate:modelValue":l=>o.value=l,readonly:"",class:"flex-1 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:text-white",placeholder:o.type==="file"?"Select file...":"Select folder..."},null,8,Lnt),[[_e,o.value]]),c("button",{onClick:l=>s.openFileDialog(o),class:"px-3 py-2 text-sm font-medium text-gray-900 bg-white border border-gray-300 rounded-lg hover:bg-gray-100 dark:bg-gray-700 dark:text-white dark:border-gray-600 dark:hover:bg-gray-600"}," ... ",8,Pnt)])])):Y("",!0),as.hide(!0),["stop"])),class:"px-5 py-2.5 text-sm font-medium text-white bg-blue-700 rounded-lg hover:bg-blue-800 dark:bg-blue-600 dark:hover:bg-blue-700"},X(i.ConfirmButtonText),1),c("button",{onClick:e[2]||(e[2]=J(o=>s.hide(!1),["stop"])),class:"px-5 py-2.5 text-sm font-medium text-gray-500 bg-white rounded-lg border border-gray-200 hover:bg-gray-100 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:bg-gray-600"},X(i.DenyButtonText),1)])])])])):Y("",!0)}const Nk=bt(gtt,[["render",Bnt],["__scopeId","data-v-8a34bb65"]]),Gnt={name:"Toast",props:{},data(){return{show:!1,log_type:1,message:"",toastArr:[]}},methods:{close(n){this.toastArr=this.toastArr.filter(e=>e.id!=n)},copyToClipBoard(n){navigator.clipboard.writeText(n),We(()=>{Ze.replace()})},showToast(n,e=3,t=!0){const r=parseInt((new Date().getTime()*Math.random()).toString()).toString(),i={id:r,log_type:t,message:n,show:!0};this.toastArr.push(i),We(()=>{Ze.replace()}),setTimeout(()=>{this.toastArr=this.toastArr.filter(s=>s.id!=r)},e*1e3)}},watch:{}},znt={class:"absolute bottom-16 right-2 z-20 flex flex-col gap-3 min-w-[300px]"},Vnt={class:"flex flex-row items-center w-full p-4 mb-4 text-gray-500 bg-white rounded-lg shadow dark:text-gray-400 dark:bg-gray-800",role:"alert"},Hnt={class:"flex flex-row flex-grow items-center h-auto"},qnt={key:0,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-red-500 bg-red-100 rounded-lg dark:bg-red-800 dark:text-red-200"},Ynt={key:1,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-green-500 bg-green-100 rounded-lg dark:bg-green-800 dark:text-green-200"},$nt={key:2,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-blue-500 bg-blue-100 rounded-lg dark:bg-blue-800 dark:text-blue-200"},Wnt={key:3,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-orange-500 bg-orange-100 rounded-lg dark:bg-orange-800 dark:text-orange-200"},Knt=["title"],jnt={class:"flex"},Qnt=["onClick"],Xnt=["onClick"];function Znt(n,e,t,r,i,s){return T(),M("div",znt,[W(As,{name:"toastItem",tag:"div"},{default:Ge(()=>[(T(!0),M(je,null,at(i.toastArr,o=>(T(),M("div",{key:o.id,class:"relative"},[c("div",Vnt,[c("div",Hnt,[o.log_type==0?(T(),M("div",qnt,e[0]||(e[0]=[c("i",{"data-feather":"x"},null,-1),c("span",{class:"sr-only"},"Cross icon",-1)]))):Y("",!0),o.log_type==1?(T(),M("div",Ynt,e[1]||(e[1]=[c("i",{"data-feather":"check"},null,-1),c("span",{class:"sr-only"},"Check icon",-1)]))):Y("",!0),o.log_type==2?(T(),M("div",$nt,e[2]||(e[2]=[c("i",{"data-feather":"info"},null,-1),c("span",{class:"sr-only"},null,-1)]))):Y("",!0),o.log_type==3?(T(),M("div",Wnt,e[3]||(e[3]=[c("i",{"data-feather":"alert-triangle"},null,-1),c("span",{class:"sr-only"},null,-1)]))):Y("",!0),c("div",{class:"ml-3 text-sm font-normal whitespace-pre-wrap line-clamp-3 max-w-xs max-h-[400px] overflow-auto break-words",title:o.message},X(o.message),9,Knt)]),c("div",jnt,[c("button",{type:"button",onClick:J(a=>s.copyToClipBoard(o.message),["stop"]),title:"Copy message",class:"bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700"},e[4]||(e[4]=[c("span",{class:"sr-only"},"Copy message",-1),c("i",{"data-feather":"clipboard",class:"w-5 h-5"},null,-1)]),8,Qnt),c("button",{type:"button",onClick:a=>s.close(o.id),title:"Close",class:"bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700"},e[5]||(e[5]=[c("span",{class:"sr-only"},"Close",-1),c("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)]),8,Xnt)])])]))),128))]),_:1})])}const ay=bt(Gnt,[["render",Znt],["__scopeId","data-v-46f379e5"]]),Jnt={data(){return{show:!1,message:"",resolve:null,ConfirmButtonText:"Yes, I'm sure",DenyButtonText:"No, cancel"}},methods:{hide(n){this.show=!1,this.resolve&&(this.resolve(n),this.resolve=null)},askQuestion(n,e,t){return this.ConfirmButtonText=e||this.ConfirmButtonText,this.DenyButtonText=t||this.DenyButtonText,new Promise(r=>{this.message=n,this.show=!0,this.resolve=r})}}},ert={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},trt={class:"relative w-full max-w-md max-h-full"},nrt={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},rrt={class:"p-4 text-center"},irt={class:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400 select-none break-all"};function srt(n,e,t,r,i,s){return i.show?(T(),M("div",ert,[c("div",trt,[c("div",nrt,[c("button",{type:"button",onClick:e[0]||(e[0]=o=>s.hide(!1)),class:"absolute top-3 right-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-800 dark:hover:text-white"},e[3]||(e[3]=[c("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),c("span",{class:"sr-only"},"Close modal",-1)])),c("div",rrt,[e[4]||(e[4]=c("svg",{"aria-hidden":"true",class:"mx-auto mb-4 text-gray-400 w-14 h-14 dark:text-gray-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)),c("h3",irt,X(i.message),1),c("button",{onClick:e[1]||(e[1]=o=>s.hide(!0)),type:"button",class:"text-white bg-red-600 hover:bg-red-800 focus:ring-4 focus:outline-none focus:ring-red-300 dark:focus:ring-red-800 font-medium rounded-lg text-sm inline-flex items-center px-5 py-2.5 text-center mr-2"},X(i.ConfirmButtonText),1),c("button",{onClick:e[2]||(e[2]=o=>s.hide(!1)),type:"button",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"},X(i.DenyButtonText),1)])])])])):Y("",!0)}const ort=bt(Jnt,[["render",srt]]),art={name:"TopBar",components:{Navigation:g8,ActionButton:K3,SocialIcon:j3,Toast:ay,MessageBox:ptt,ProgressBar:oy,UniversalForm:Nk,YesNoDialog:ort},data(){return{themeDropdownOpen:!1,currentTheme:localStorage.getItem("preferred-theme")||"default",availableThemes:["default","strawberry_milkshake","red_dragon","matrix_reborn","borg","amber","sober_gray","strawberry"],isLoading:!1,error:null,isInfosMenuVisible:!1,isVisible:!1,isPinned:!1,selectedLanguage:"",isLanguageMenuVisible:!1,sunIcon:document.querySelector(".sun"),moonIcon:document.querySelector(".moon"),userTheme:localStorage.getItem("theme"),systemTheme:window.matchMedia("prefers-color-scheme: dark").matches}},computed:{isModelOK(){return this.$store.state.isModelOk},isDarkMode(){return document.documentElement.classList.contains("dark")},languages:{get(){return console.log("searching languages",this.$store.state.languages),this.$store.state.languages}},language:{get(){return console.log("searching language",this.$store.state.language),this.$store.state.language}},is_fun_mode(){try{return this.$store.state.config?this.$store.state.config.fun_mode:!1}catch(n){return console.error("Oopsie! Looks like we hit a snag: ",n),!1}},isGenerating(){return this.$store.state.isGenerating},isConnected(){return this.$store.state.isConnected}},async mounted(){try{this.$store.state.toast=this.$refs.toast,this.$store.state.messageBox=this.$refs.messageBox,this.$store.state.universalForm=this.$refs.universalForm,this.$store.state.yesNoDialog=this.$refs.yesNoDialog,document.addEventListener("click",this.handleClickOutside);const n=localStorage.getItem("preferred-theme");n&&this.availableThemes.includes(n)&&(this.currentTheme=n);try{await this.loadTheme(this.currentTheme)}catch(e){this.error="Failed to initialize theme system",console.error(e)}}catch(n){this.error="Failed to initialize theme system",console.error(n)}},beforeUnmount(){document.removeEventListener("click",this.handleClickOutside)},async created(){this.sunIcon=document.querySelector(".sun"),this.moonIcon=document.querySelector(".moon"),this.userTheme=localStorage.getItem("theme"),console.log(this.userTheme),this.systemTheme=window.matchMedia("prefers-color-scheme: dark").matches,this.themeCheck(),this.$nextTick(()=>{Ze.replace()})},methods:{addCustomLanguage(){this.customLanguage.trim()!==""&&(this.selectLanguage(this.customLanguage),this.customLanguage="")},handleClickOutside(n){this.$el.contains(n.target)||(this.themeDropdownOpen=!1)},getSavedTheme(){try{return localStorage.getItem("preferred-theme")}catch(n){return console.warn("Failed to access localStorage:",n),null}},saveTheme(n){try{this.clearOldStorageItems(),localStorage.setItem("preferred-theme",n)}catch(e){console.warn("Failed to save theme preference:",e)}},clearOldStorageItems(){try{const n=["preferred-theme"];for(let e=0;ePromise.resolve().then(()=>KWe),void 0),document.documentElement.classList.add("dark"),localStorage.setItem("theme","dark"),this.userTheme=="dark",this.iconToggle(),window.dispatchEvent(new Event("themeChanged"))},async selectLanguage(n){await this.$store.dispatch("changeLanguage",n);const e=this.$store.state.config.personalities[this.$store.state.config.active_personality_id];let t=this.$store.state.personalities.find(r=>r.full_path===e);if(console.log("personality",t),console.log("this.$store.state.language",t.language),console.log("personality.language",t.language),this.$store.state.language!=t.language){console.log("getting personality");const r=await de.get("/get_personality");console.log(r),t=r.data,console.log(t),this.$store.commit("updatePersonality",t)}console.log("personality:",t),this.toggleLanguageMenu(),this.language=n},async deleteLanguage(n){await this.$store.dispatch("deleteLanguage",n),this.toggleLanguageMenu(),this.language=n},toggleLanguageMenu(){console.log("Toggling language ",this.isLanguageMenuVisible),this.isLanguageMenuVisible=!this.isLanguageMenuVisible},showInfosMenu(){this.isInfosMenuVisible=!0,this.$nextTick(()=>{Ze.replace()})},hideInfosMenu(){this.isInfosMenuVisible=!1,this.$nextTick(()=>{Ze.replace()})},show(){this.isVisible=!0},hide(){this.isPinned||(this.isVisible=!1)},togglePin(){this.isPinned=!this.isPinned,this.isVisible=this.isPinned},fun_mode_on(){console.log("Turning on fun mode"),this.$store.state.config.fun_mode=!0,this.applyConfiguration()},fun_mode_off(){console.log("Turning off fun mode"),this.$store.state.config.fun_mode=!1,this.applyConfiguration()},showNews(){this.$store.state.news.show(),this.$nextTick(()=>{Ze.replace()})},themeCheck(){if(this.userTheme=="dark"||!this.userTheme&&this.systemTheme){document.documentElement.classList.add("dark"),this.moonIcon.classList.add("display-none"),this.$nextTick(()=>{Gm(()=>Promise.resolve({}),__vite__mapDeps([0]))});return}this.$nextTick(()=>{Gm(()=>Promise.resolve({}),__vite__mapDeps([1]))})},iconToggle(){this.sunIcon.classList.toggle("display-none"),this.moonIcon.classList.toggle("display-none")},refreshPage(){window.location.href.split("/").length>4?window.location.href="/":window.location.reload(!0)},handleOk(n){console.log("Input text:",n)}}},lrt={class:"topbar-content"},crt=["title"],drt=["fill"],urt={class:"relative inline-block"},prt={class:"p-4 container flex flex-col lg:flex-row items-center gap-2"},hrt={class:"flex gap-3 flex-1 items-center justify-end"},mrt={key:0,title:"Model is ok",class:"text-green-500 dark:text-green-400 cursor-pointer transition-transform hover:scale-110"},frt={key:1,title:"Model is not ok",class:"text-red-500 dark:text-red-400 cursor-pointer transition-transform hover:scale-110"},grt={key:2,title:"Text is not being generated. Ready to generate",class:"text-green-500 dark:text-green-400 cursor-pointer transition-transform hover:scale-110"},_rt={key:3,title:"Generation in progress...",class:"text-yellow-500 dark:text-yellow-400 cursor-pointer transition-transform hover:scale-110"},brt={key:4,title:"Connection status: Connected",class:"text-green-500 dark:text-green-400 cursor-pointer transition-transform hover:scale-110"},vrt={key:5,title:"Connection status: Not connected",class:"text-red-500 dark:text-red-400 cursor-pointer transition-transform hover:scale-110"},yrt={class:"flex items-center space-x-4"},Ert={class:"relative group",title:"Lollms News"},Srt={class:"absolute hidden group-hover:block bg-gray-800 text-white text-xs rounded py-1 px-2 top-full left-1/2 transform -translate-x-1/2 mb-2 whitespace-nowrap"},xrt={class:"language-selector relative"},Trt={key:0,ref:"languageMenu",class:"container language-menu absolute left-0 mt-1 bg-white dark:bg-bg-dark-tone rounded shadow-lg z-10 overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",style:{position:"absolute",top:"100%",width:"200px","max-height":"300px","overflow-y":"auto"}},wrt={style:{"list-style-type":"none","padding-left":"0","margin-left":"0"}},Crt=["onClick"],Art=["onClick"],Rrt={class:"cursor-pointer hover:text-white py-0 px-0 block whitespace-no-wrap"},Mrt={class:"relative inline-flex"},Nrt={class:"flex items-center space-x-2"},krt={class:"font-medium"},Irt={key:0,class:"absolute left-0 z-50 w-full mt-2 overflow-hidden bg-white dark:bg-gray-800 border border-blue-200 dark:border-blue-700 rounded-lg shadow-lg transform origin-top animate-dropdown"},Ort={class:"max-h-60 overflow-y-auto"},Drt=["onClick"],Lrt={class:"font-medium"},Prt={role:"status",class:"fixed m-0 p-2 left-2 bottom-2 min-w-[24rem] max-w-[24rem] h-20 flex flex-col justify-center items-center pb-4 bg-blue-500 rounded-lg shadow-lg z-50 background-a"},Frt={class:"text-2xl animate-pulse mt-2 text-light-text-panel dark:text-dark-text-panel"};function Urt(n,e,t,r,i,s){const o=ht("Navigation"),a=ht("ActionButton"),l=ht("SocialIcon"),d=ht("ProgressBar"),u=ht("InputBox"),m=ht("SkillsLibraryViewer"),f=ht("Toast"),g=ht("MessageBox"),h=ht("YesNoDialog"),v=ht("UniversalForm");return T(),M(je,null,[c("div",{ref:"topbar-container",class:qe(["topbar-container",{"h-0":!i.isPinned}])},[c("div",{class:"hover-zone",onMouseenter:e[0]||(e[0]=(...b)=>s.show&&s.show(...b)),style:{position:"fixed",top:"0",left:"0",width:"100%",height:"10px","z-index":"50"}},null,32),c("div",{class:qe(["topbar",{"topbar-hidden":!i.isVisible}]),onMouseleave:e[14]||(e[14]=(...b)=>s.hide&&s.hide(...b))},[c("div",lrt,[On(n.$slots,"navigation",{},void 0,!0),c("button",{class:"pin-button",onClick:e[1]||(e[1]=(...b)=>s.togglePin&&s.togglePin(...b)),title:i.isPinned?"Unpin":"Pin"},[(T(),M("svg",{fill:i.isPinned?"#FF0000":"#000000",height:"24px",width:"24px",version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 490.125 490.125","xml:space":"preserve"},e[15]||(e[15]=[c("g",null,[c("path",{d:`M300.625,5.025c-6.7-6.7-17.6-6.7-24.3,0l-72.6,72.6c-6.7,6.7-6.7,17.6,0,24.3l16.3,16.3l-40.3,40.3l-63.5-7\r +`}),t=yt([]),r=()=>{if(n.markdownText){let s=e.parse(n.markdownText,{}),o=[];t.value=[];for(let a=0;a0&&(t.value.push({type:"html",html:e.renderer.render(o,e.options,{})}),o=[]),t.value.push({type:"code",language:Zet(s[a].info),code:s[a].content}));o.length>0&&(t.value.push({type:"html",html:e.renderer.render(o,e.options,{})}),o=[])}else t.value=[];We(()=>{Ze.replace()})},i=(s,o)=>{t.value[s].code=o};return Zn(()=>n.markdownText,r),es(()=>{r(),We(()=>{window.MathJax&&window.MathJax.typesetPromise()})}),{markdownItems:t,updateCode:i}}},ett={class:"break-all container w-full"},ttt={ref:"mdRender",class:"markdown-content"},ntt=["innerHTML"];function rtt(n,e,t,r,i,s){const o=ht("code-block");return T(),M("div",ett,[c("div",ttt,[(T(!0),M(je,null,at(r.markdownItems,(a,l)=>(T(),M("div",{key:l},[a.type==="code"?(T(),Tt(o,{key:0,host:t.host,language:a.language,code:a.code,discussion_id:t.discussion_id,message_id:t.message_id,client_id:t.client_id,onUpdateCode:d=>r.updateCode(l,d)},null,8,["host","language","code","discussion_id","message_id","client_id","onUpdateCode"])):(T(),M("div",{key:1,innerHTML:a.html},null,8,ntt))]))),128))],512)])}const Zh=bt(Jet,[["render",rtt]]),itt={data(){return{show:!1,has_button:!0,message:""}},components:{MarkdownRenderer:Zh},methods:{hide(){this.show=!1,this.$emit("ok")},showMessage(n){this.message=n,this.has_button=!0,this.show=!0},showBlockingMessage(n){this.message=n,this.has_button=!1,this.show=!0},updateMessage(n){this.message=n,this.show=!0},hideMessage(){this.show=!1}}},stt={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 z-50"},ott={class:"pl-10 pr-10 bg-bg-light dark:bg-bg-dark p-8 rounded-lg shadow-lg"},att={class:"container max-h-500 overflow-y-auto"},ltt={class:"text-lg font-medium"},ctt={class:"mt-4 flex justify-center"},dtt={key:1,"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function utt(n,e,t,r,i,s){const o=ht("MarkdownRenderer");return i.show?(T(),M("div",stt,[c("div",ott,[c("div",att,[c("div",ltt,[W(o,{ref:"mdRender",host:"","markdown-text":i.message,message_id:0,discussion_id:0},null,8,["markdown-text"])])]),c("div",ctt,[i.has_button?(T(),M("button",{key:0,onClick:e[0]||(e[0]=(...a)=>s.hide&&s.hide(...a)),class:"bg-primary hover:bg-primary-light active:scale-95 duration-150 text-white px-4 py-2 rounded-lg shadow-lg hover:bg-secondary-dark"}," OK ")):Y("",!0),i.has_button?Y("",!0):(T(),M("svg",dtt,e[1]||(e[1]=[c("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"},null,-1),c("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"},null,-1)])))])])])):Y("",!0)}const ptt=bt(itt,[["render",utt]]),htt={props:{progress:{type:Number,required:!0}}},mtt={class:"progress-bar-container"};function ftt(n,e,t,r,i,s){return T(),M("div",mtt,[c("div",{class:"progress-bar",style:on({width:`${t.progress}%`})},null,4)])}const oy=bt(htt,[["render",ftt]]),gtt={setup(){return{}},name:"UniversalForm",data(){return{show:!1,resolve:null,controls_array:[],title:"Universal form",ConfirmButtonText:"Submit",DenyButtonText:"Cancel"}},mounted(){We(()=>{Ze.replace()})},methods:{btn_clicked(n){console.log(n)},hide(n){this.show=!1,this.resolve&&n&&(this.resolve(this.controls_array),this.resolve=null)},showForm(n,e,t,r){this.ConfirmButtonText=t||this.ConfirmButtonText,this.DenyButtonText=r||this.DenyButtonText;for(let i=0;i{this.controls_array=n,this.show=!0,this.title=e||this.title,this.resolve=i,console.log("show form",this.controls_array)})},openFileDialog(n){const e=document.createElement("input");e.type="file",n.type==="folder"&&(e.webkitdirectory=!0,e.directory=!0),n.accept&&(e.accept=n.accept),e.onchange=t=>{t.target.files.length>0&&(n.value=t.target.files[0].path)},e.click()}},watch:{controls_array:{deep:!0,handler(n){n.forEach(e=>{e.type==="int"?e.value=parseInt(e.value):e.type==="float"&&(e.value=parseFloat(e.value))})}},show(){We(()=>{Ze.replace()})}}},_tt={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 p-4 overflow-hidden"},btt={class:"relative w-full max-w-md max-h-[80vh]"},vtt={class:"flex flex-col rounded-lg bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel shadow-lg"},ytt={class:"flex flex-row items-center p-4 border-b border-gray-200 dark:border-gray-700"},Ett={class:"grow flex items-center"},Stt={class:"text-lg font-semibold select-none"},xtt={class:"overflow-y-auto p-4 max-h-[60vh] custom-scrollbar"},Ttt={class:"space-y-2"},wtt={key:0},Ctt={key:0},Att={class:"text-base font-semibold"},Rtt={key:0,class:"relative inline-flex"},Mtt=["onUpdate:modelValue"],Ntt={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},ktt=["onUpdate:modelValue"],Itt={key:1},Ott={class:"text-base font-semibold"},Dtt={key:0,class:"relative inline-flex"},Ltt=["onUpdate:modelValue"],Ptt={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},Ftt=["onUpdate:modelValue"],Utt=["value","selected"],Btt={key:1},Gtt={class:"",onclick:"btn_clicked(item)"},ztt={key:2},Vtt={key:0},Htt={class:"text-base font-semibold"},qtt={key:0,class:"relative inline-flex"},Ytt=["onUpdate:modelValue"],$tt={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},Wtt=["onUpdate:modelValue"],Ktt={key:1},jtt={class:"text-base font-semibold"},Qtt={key:0,class:"relative inline-flex"},Xtt=["onUpdate:modelValue"],Ztt={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},Jtt=["onUpdate:modelValue"],ent=["value","selected"],tnt={key:3},nnt={class:"text-base font-semibold"},rnt={key:0,class:"relative inline-flex"},int=["onUpdate:modelValue"],snt={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},ont=["onUpdate:modelValue"],ant=["onUpdate:modelValue","min","max"],lnt={key:4},cnt={class:"text-base font-semibold"},dnt={key:0,class:"relative inline-flex"},unt=["onUpdate:modelValue"],pnt={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},hnt=["onUpdate:modelValue"],mnt=["onUpdate:modelValue","min","max"],fnt={key:5},gnt={class:"mb-2 relative flex items-center gap-2"},_nt={for:"default-checkbox",class:"text-base font-semibold"},bnt=["onUpdate:modelValue"],vnt={key:0,class:"relative inline-flex"},ynt=["onUpdate:modelValue"],Ent={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},Snt={key:6},xnt={class:"text-base font-semibold"},Tnt={key:0,class:"relative inline-flex"},wnt=["onUpdate:modelValue"],Cnt={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},Ant=["onUpdate:modelValue"],Rnt={key:7,class:"space-y-2"},Mnt={class:"flex items-center gap-2"},Nnt={class:"text-base font-semibold"},knt={key:0,class:"relative inline-flex"},Int=["onUpdate:modelValue"],Ont={key:0,class:"text-sm text-gray-600 dark:text-gray-400"},Dnt={class:"flex gap-2"},Lnt=["onUpdate:modelValue","placeholder"],Pnt=["onClick"],Fnt={key:8,class:"h-px my-4 bg-gray-200 border-0 dark:bg-gray-700"},Unt={class:"flex justify-center gap-3 p-4 border-t border-gray-200 dark:border-gray-700"};function Bnt(n,e,t,r,i,s){return i.show?(T(),M("div",_tt,[c("div",btt,[c("div",vtt,[c("div",ytt,[c("div",Ett,[e[3]||(e[3]=c("i",{"data-feather":"sliders",class:"mr-2 flex-shrink-0"},null,-1)),c("h3",Stt,X(i.title),1)]),c("button",{onClick:e[0]||(e[0]=J(o=>s.hide(!1),["stop"])),title:"Close",class:"p-1.5 hover:bg-gray-200 rounded-lg dark:hover:bg-gray-800"},e[4]||(e[4]=[c("svg",{class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20"},[c("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"})],-1)]))]),c("div",xtt,[c("div",Ttt,[(T(!0),M(je,null,at(i.controls_array,(o,a)=>(T(),M("div",{key:a,class:"p-1"},[o.type=="str"||o.type=="string"?(T(),M("div",wtt,[o.options?Y("",!0):(T(),M("div",Ctt,[c("label",{class:qe(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[c("div",Att,X(o.name)+": ",1),o.help?(T(),M("label",Rtt,[F(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,Mtt),[[tt,o.isHelp]]),e[5]||(e[5]=c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[c("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):Y("",!0)],2),o.isHelp?(T(),M("p",Ntt,X(o.help),1)):Y("",!0),F(c("input",{type:"text","onUpdate:modelValue":l=>o.value=l,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter string"},null,8,ktt),[[_e,o.value]])])),o.options?(T(),M("div",Itt,[c("label",{class:qe(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[c("div",Ott,X(o.name)+": ",1),o.help?(T(),M("label",Dtt,[F(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,Ltt),[[tt,o.isHelp]]),e[6]||(e[6]=c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[c("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):Y("",!0)],2),o.isHelp?(T(),M("p",Ptt,X(o.help),1)):Y("",!0),F(c("select",{"onUpdate:modelValue":l=>o.value=l,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(T(!0),M(je,null,at(o.options,l=>(T(),M("option",{value:l,selected:o.value===l},X(l),9,Utt))),256))],8,Ftt),[[Qt,o.value]])])):Y("",!0)])):Y("",!0),o.type=="btn"?(T(),M("div",Btt,[c("button",Gtt,X(o.name),1)])):Y("",!0),o.type=="text"?(T(),M("div",ztt,[o.options?Y("",!0):(T(),M("div",Vtt,[c("label",{class:qe(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[c("div",Htt,X(o.name)+": ",1),o.help?(T(),M("label",qtt,[F(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,Ytt),[[tt,o.isHelp]]),e[7]||(e[7]=c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[c("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):Y("",!0)],2),o.isHelp?(T(),M("p",$tt,X(o.help),1)):Y("",!0),F(c("textarea",{"onUpdate:modelValue":l=>o.value=l,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter string"},null,8,Wtt),[[_e,o.value]])])),o.options?(T(),M("div",Ktt,[c("label",{class:qe(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[c("div",jtt,X(o.name)+": ",1),o.help?(T(),M("label",Qtt,[F(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,Xtt),[[tt,o.isHelp]]),e[8]||(e[8]=c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[c("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):Y("",!0)],2),o.isHelp?(T(),M("p",Ztt,X(o.help),1)):Y("",!0),F(c("select",{"onUpdate:modelValue":l=>o.value=l,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(T(!0),M(je,null,at(o.options,l=>(T(),M("option",{value:l,selected:o.value===l},X(l),9,ent))),256))],8,Jtt),[[Qt,o.value]])])):Y("",!0)])):Y("",!0),o.type=="int"?(T(),M("div",tnt,[c("label",{class:qe(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[c("div",nnt,X(o.name)+": ",1),o.help?(T(),M("label",rnt,[F(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,int),[[tt,o.isHelp]]),e[9]||(e[9]=c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[c("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):Y("",!0)],2),o.isHelp?(T(),M("p",snt,X(o.help),1)):Y("",!0),F(c("input",{type:"number","onUpdate:modelValue":l=>o.value=l,step:"1",class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter number"},null,8,ont),[[_e,o.value]]),o.min!=null&&o.max!=null?F((T(),M("input",{key:1,type:"range","onUpdate:modelValue":l=>o.value=l,min:o.min,max:o.max,step:"1",class:"flex-none h-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,8,ant)),[[_e,o.value]]):Y("",!0)])):Y("",!0),o.type=="float"?(T(),M("div",lnt,[c("label",{class:qe(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[c("div",cnt,X(o.name)+": ",1),o.help?(T(),M("label",dnt,[F(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,unt),[[tt,o.isHelp]]),e[10]||(e[10]=c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[c("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):Y("",!0)],2),o.isHelp?(T(),M("p",pnt,X(o.help),1)):Y("",!0),F(c("input",{type:"number","onUpdate:modelValue":l=>o.value=l,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter number"},null,8,hnt),[[_e,o.value]]),o.min!=null&&o.max!=null?F((T(),M("input",{key:1,type:"range","onUpdate:modelValue":l=>o.value=l,min:o.min,max:o.max,step:"0.1",class:"flex-none h-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,8,mnt)),[[_e,o.value]]):Y("",!0)])):Y("",!0),o.type=="bool"?(T(),M("div",fnt,[c("div",gnt,[c("label",_nt,X(o.name)+": ",1),F(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.value=l,class:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600"},null,8,bnt),[[tt,o.value]]),o.help?(T(),M("label",vnt,[F(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,ynt),[[tt,o.isHelp]]),e[11]||(e[11]=c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[c("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):Y("",!0)]),o.isHelp?(T(),M("p",Ent,X(o.help),1)):Y("",!0)])):Y("",!0),o.type=="list"?(T(),M("div",Snt,[c("label",{class:qe(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[c("div",xnt,X(o.name)+": ",1),o.help?(T(),M("label",Tnt,[F(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,wnt),[[tt,o.isHelp]]),e[12]||(e[12]=c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[c("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):Y("",!0)],2),o.isHelp?(T(),M("p",Cnt,X(o.help),1)):Y("",!0),F(c("input",{type:"text","onUpdate:modelValue":l=>o.value=l,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter comma separated values"},null,8,Ant),[[_e,o.value]])])):Y("",!0),o.type==="file"||o.type==="folder"?(T(),M("div",Rnt,[c("label",Mnt,[c("span",Nnt,X(o.name)+":",1),o.help?(T(),M("label",knt,[F(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,Int),[[tt,o.isHelp]]),e[13]||(e[13]=c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[c("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):Y("",!0)]),o.isHelp?(T(),M("p",Ont,X(o.help),1)):Y("",!0),c("div",Dnt,[F(c("input",{type:"text","onUpdate:modelValue":l=>o.value=l,readonly:"",class:"flex-1 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:text-white",placeholder:o.type==="file"?"Select file...":"Select folder..."},null,8,Lnt),[[_e,o.value]]),c("button",{onClick:l=>s.openFileDialog(o),class:"px-3 py-2 text-sm font-medium text-gray-900 bg-white border border-gray-300 rounded-lg hover:bg-gray-100 dark:bg-gray-700 dark:text-white dark:border-gray-600 dark:hover:bg-gray-600"}," ... ",8,Pnt)])])):Y("",!0),as.hide(!0),["stop"])),class:"px-5 py-2.5 text-sm font-medium text-white bg-blue-700 rounded-lg hover:bg-blue-800 dark:bg-blue-600 dark:hover:bg-blue-700"},X(i.ConfirmButtonText),1),c("button",{onClick:e[2]||(e[2]=J(o=>s.hide(!1),["stop"])),class:"px-5 py-2.5 text-sm font-medium text-gray-500 bg-white rounded-lg border border-gray-200 hover:bg-gray-100 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:bg-gray-600"},X(i.DenyButtonText),1)])])])])):Y("",!0)}const Nk=bt(gtt,[["render",Bnt],["__scopeId","data-v-8a34bb65"]]),Gnt={name:"Toast",props:{},data(){return{show:!1,log_type:1,message:"",toastArr:[]}},methods:{close(n){this.toastArr=this.toastArr.filter(e=>e.id!=n)},copyToClipBoard(n){navigator.clipboard.writeText(n),We(()=>{Ze.replace()})},showToast(n,e=3,t=!0){const r=parseInt((new Date().getTime()*Math.random()).toString()).toString(),i={id:r,log_type:t,message:n,show:!0};this.toastArr.push(i),We(()=>{Ze.replace()}),setTimeout(()=>{this.toastArr=this.toastArr.filter(s=>s.id!=r)},e*1e3)}},watch:{}},znt={class:"absolute bottom-16 right-2 z-20 flex flex-col gap-3 min-w-[300px]"},Vnt={class:"flex flex-row items-center w-full p-4 mb-4 text-gray-500 bg-white rounded-lg shadow dark:text-gray-400 dark:bg-gray-800",role:"alert"},Hnt={class:"flex flex-row flex-grow items-center h-auto"},qnt={key:0,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-red-500 bg-red-100 rounded-lg dark:bg-red-800 dark:text-red-200"},Ynt={key:1,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-green-500 bg-green-100 rounded-lg dark:bg-green-800 dark:text-green-200"},$nt={key:2,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-blue-500 bg-blue-100 rounded-lg dark:bg-blue-800 dark:text-blue-200"},Wnt={key:3,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-orange-500 bg-orange-100 rounded-lg dark:bg-orange-800 dark:text-orange-200"},Knt=["title"],jnt={class:"flex"},Qnt=["onClick"],Xnt=["onClick"];function Znt(n,e,t,r,i,s){return T(),M("div",znt,[W(As,{name:"toastItem",tag:"div"},{default:Ge(()=>[(T(!0),M(je,null,at(i.toastArr,o=>(T(),M("div",{key:o.id,class:"relative"},[c("div",Vnt,[c("div",Hnt,[o.log_type==0?(T(),M("div",qnt,e[0]||(e[0]=[c("i",{"data-feather":"x"},null,-1),c("span",{class:"sr-only"},"Cross icon",-1)]))):Y("",!0),o.log_type==1?(T(),M("div",Ynt,e[1]||(e[1]=[c("i",{"data-feather":"check"},null,-1),c("span",{class:"sr-only"},"Check icon",-1)]))):Y("",!0),o.log_type==2?(T(),M("div",$nt,e[2]||(e[2]=[c("i",{"data-feather":"info"},null,-1),c("span",{class:"sr-only"},null,-1)]))):Y("",!0),o.log_type==3?(T(),M("div",Wnt,e[3]||(e[3]=[c("i",{"data-feather":"alert-triangle"},null,-1),c("span",{class:"sr-only"},null,-1)]))):Y("",!0),c("div",{class:"ml-3 text-sm font-normal whitespace-pre-wrap line-clamp-3 max-w-xs max-h-[400px] overflow-auto break-words",title:o.message},X(o.message),9,Knt)]),c("div",jnt,[c("button",{type:"button",onClick:J(a=>s.copyToClipBoard(o.message),["stop"]),title:"Copy message",class:"bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700"},e[4]||(e[4]=[c("span",{class:"sr-only"},"Copy message",-1),c("i",{"data-feather":"clipboard",class:"w-5 h-5"},null,-1)]),8,Qnt),c("button",{type:"button",onClick:a=>s.close(o.id),title:"Close",class:"bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700"},e[5]||(e[5]=[c("span",{class:"sr-only"},"Close",-1),c("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)]),8,Xnt)])])]))),128))]),_:1})])}const ay=bt(Gnt,[["render",Znt],["__scopeId","data-v-46f379e5"]]),Jnt={data(){return{show:!1,message:"",resolve:null,ConfirmButtonText:"Yes, I'm sure",DenyButtonText:"No, cancel"}},methods:{hide(n){this.show=!1,this.resolve&&(this.resolve(n),this.resolve=null)},askQuestion(n,e,t){return this.ConfirmButtonText=e||this.ConfirmButtonText,this.DenyButtonText=t||this.DenyButtonText,new Promise(r=>{this.message=n,this.show=!0,this.resolve=r})}}},ert={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},trt={class:"relative w-full max-w-md max-h-full"},nrt={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},rrt={class:"p-4 text-center"},irt={class:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400 select-none break-all"};function srt(n,e,t,r,i,s){return i.show?(T(),M("div",ert,[c("div",trt,[c("div",nrt,[c("button",{type:"button",onClick:e[0]||(e[0]=o=>s.hide(!1)),class:"absolute top-3 right-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-800 dark:hover:text-white"},e[3]||(e[3]=[c("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),c("span",{class:"sr-only"},"Close modal",-1)])),c("div",rrt,[e[4]||(e[4]=c("svg",{"aria-hidden":"true",class:"mx-auto mb-4 text-gray-400 w-14 h-14 dark:text-gray-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)),c("h3",irt,X(i.message),1),c("button",{onClick:e[1]||(e[1]=o=>s.hide(!0)),type:"button",class:"text-white bg-red-600 hover:bg-red-800 focus:ring-4 focus:outline-none focus:ring-red-300 dark:focus:ring-red-800 font-medium rounded-lg text-sm inline-flex items-center px-5 py-2.5 text-center mr-2"},X(i.ConfirmButtonText),1),c("button",{onClick:e[2]||(e[2]=o=>s.hide(!1)),type:"button",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"},X(i.DenyButtonText),1)])])])])):Y("",!0)}const ort=bt(Jnt,[["render",srt]]),art={name:"TopBar",components:{Navigation:g8,ActionButton:K3,SocialIcon:j3,Toast:ay,MessageBox:ptt,ProgressBar:oy,UniversalForm:Nk,YesNoDialog:ort},data(){return{themeDropdownOpen:!1,currentTheme:localStorage.getItem("preferred-theme")||"default",availableThemes:["default","strawberry_milkshake","red_dragon","matrix_reborn","borg","amber","sober_gray","strawberry"],isLoading:!1,error:null,isInfosMenuVisible:!1,isVisible:!1,isPinned:!1,selectedLanguage:"",isLanguageMenuVisible:!1,sunIcon:document.querySelector(".sun"),moonIcon:document.querySelector(".moon"),userTheme:localStorage.getItem("theme"),systemTheme:window.matchMedia("prefers-color-scheme: dark").matches}},computed:{isModelOK(){return this.$store.state.isModelOk},isDarkMode(){return document.documentElement.classList.contains("dark")},languages:{get(){return console.log("searching languages",this.$store.state.languages),this.$store.state.languages}},language:{get(){return console.log("searching language",this.$store.state.language),this.$store.state.language}},is_fun_mode(){try{return this.$store.state.config?this.$store.state.config.fun_mode:!1}catch(n){return console.error("Oopsie! Looks like we hit a snag: ",n),!1}},isGenerating(){return this.$store.state.isGenerating},isConnected(){return this.$store.state.isConnected}},async mounted(){try{this.$store.state.toast=this.$refs.toast,this.$store.state.messageBox=this.$refs.messageBox,this.$store.state.universalForm=this.$refs.universalForm,this.$store.state.yesNoDialog=this.$refs.yesNoDialog,document.addEventListener("click",this.handleClickOutside);const n=localStorage.getItem("preferred-theme");n&&this.availableThemes.includes(n)&&(this.currentTheme=n);try{await this.loadTheme(this.currentTheme)}catch(e){this.error="Failed to initialize theme system",console.error(e)}}catch(n){this.error="Failed to initialize theme system",console.error(n)}},beforeUnmount(){document.removeEventListener("click",this.handleClickOutside)},async created(){this.sunIcon=document.querySelector(".sun"),this.moonIcon=document.querySelector(".moon"),this.userTheme=localStorage.getItem("theme"),console.log(this.userTheme),this.systemTheme=window.matchMedia("prefers-color-scheme: dark").matches,this.themeCheck(),this.$nextTick(()=>{Ze.replace()})},methods:{toggleThemeDropDown(){console.log("Toggling theme down:",this.themeDropdownOpen),this.themeDropdownOpen=!this.themeDropdownOpen,console.log("Toggled theme down:",this.themeDropdownOpen)},addCustomLanguage(){this.customLanguage.trim()!==""&&(this.selectLanguage(this.customLanguage),this.customLanguage="")},handleClickOutside(n){this.$el.contains(n.target)||(this.themeDropdownOpen=!1,console.log("Outside click detected"))},getSavedTheme(){try{return localStorage.getItem("preferred-theme")}catch(n){return console.warn("Failed to access localStorage:",n),null}},saveTheme(n){try{this.clearOldStorageItems(),localStorage.setItem("preferred-theme",n)}catch(e){console.warn("Failed to save theme preference:",e)}},clearOldStorageItems(){try{const n=["preferred-theme"];for(let e=0;ePromise.resolve().then(()=>KWe),void 0),document.documentElement.classList.add("dark"),localStorage.setItem("theme","dark"),this.userTheme=="dark",this.iconToggle(),window.dispatchEvent(new Event("themeChanged"))},async selectLanguage(n){await this.$store.dispatch("changeLanguage",n);const e=this.$store.state.config.personalities[this.$store.state.config.active_personality_id];let t=this.$store.state.personalities.find(r=>r.full_path===e);if(console.log("personality",t),console.log("this.$store.state.language",t.language),console.log("personality.language",t.language),this.$store.state.language!=t.language){console.log("getting personality");const r=await de.get("/get_personality");console.log(r),t=r.data,console.log(t),this.$store.commit("updatePersonality",t)}console.log("personality:",t),this.toggleLanguageMenu(),this.language=n},async deleteLanguage(n){await this.$store.dispatch("deleteLanguage",n),this.toggleLanguageMenu(),this.language=n},toggleLanguageMenu(){console.log("Toggling language ",this.isLanguageMenuVisible),this.isLanguageMenuVisible=!this.isLanguageMenuVisible},showInfosMenu(){this.isInfosMenuVisible=!0,this.$nextTick(()=>{Ze.replace()})},hideInfosMenu(){this.isInfosMenuVisible=!1,this.$nextTick(()=>{Ze.replace()})},show(){this.isVisible=!0},hide(){this.isPinned||(this.isVisible=!1)},togglePin(){this.isPinned=!this.isPinned,this.isVisible=this.isPinned},fun_mode_on(){console.log("Turning on fun mode"),this.$store.state.config.fun_mode=!0,this.applyConfiguration()},fun_mode_off(){console.log("Turning off fun mode"),this.$store.state.config.fun_mode=!1,this.applyConfiguration()},showNews(){this.$store.state.news.show(),this.$nextTick(()=>{Ze.replace()})},themeCheck(){if(this.userTheme=="dark"||!this.userTheme&&this.systemTheme){document.documentElement.classList.add("dark"),this.moonIcon.classList.add("display-none"),this.$nextTick(()=>{Gm(()=>Promise.resolve({}),__vite__mapDeps([0]))});return}this.$nextTick(()=>{Gm(()=>Promise.resolve({}),__vite__mapDeps([1]))})},iconToggle(){this.sunIcon.classList.toggle("display-none"),this.moonIcon.classList.toggle("display-none")},refreshPage(){window.location.href.split("/").length>4?window.location.href="/":window.location.reload(!0)},handleOk(n){console.log("Input text:",n)}}},lrt={class:"topbar-content"},crt=["title"],drt=["fill"],urt={class:"relative inline-block"},prt={class:"p-4 container flex flex-col lg:flex-row items-center gap-2"},hrt={class:"flex gap-3 flex-1 items-center justify-end"},mrt={key:0,title:"Model is ok",class:"text-green-500 dark:text-green-400 cursor-pointer transition-transform hover:scale-110"},frt={key:1,title:"Model is not ok",class:"text-red-500 dark:text-red-400 cursor-pointer transition-transform hover:scale-110"},grt={key:2,title:"Text is not being generated. Ready to generate",class:"text-green-500 dark:text-green-400 cursor-pointer transition-transform hover:scale-110"},_rt={key:3,title:"Generation in progress...",class:"text-yellow-500 dark:text-yellow-400 cursor-pointer transition-transform hover:scale-110"},brt={key:4,title:"Connection status: Connected",class:"text-green-500 dark:text-green-400 cursor-pointer transition-transform hover:scale-110"},vrt={key:5,title:"Connection status: Not connected",class:"text-red-500 dark:text-red-400 cursor-pointer transition-transform hover:scale-110"},yrt={class:"flex items-center space-x-4"},Ert={class:"relative group",title:"Lollms News"},Srt={class:"absolute hidden group-hover:block bg-gray-800 text-white text-xs rounded py-1 px-2 top-full left-1/2 transform -translate-x-1/2 mb-2 whitespace-nowrap"},xrt={class:"language-selector relative"},Trt={key:0,ref:"languageMenu",class:"container language-menu absolute left-0 mt-1 bg-white dark:bg-bg-dark-tone rounded shadow-lg z-10 overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",style:{position:"absolute",top:"100%",width:"200px","max-height":"300px","overflow-y":"auto"}},wrt={style:{"list-style-type":"none","padding-left":"0","margin-left":"0"}},Crt=["onClick"],Art=["onClick"],Rrt={class:"cursor-pointer hover:text-white py-0 px-0 block whitespace-no-wrap"},Mrt={class:"relative inline-flex"},Nrt={class:"flex items-center space-x-2 overflow-hidden"},krt={class:"font-medium truncate"},Irt={key:0,class:"absolute left-0 z-50 w-48 mt-2 overflow-hidden bg-white dark:bg-gray-800 border border-blue-200 dark:border-blue-700 rounded-lg shadow-lg"},Ort={class:"max-h-60 overflow-y-auto scrollbar-thin scrollbar-thumb-blue-500 scrollbar-track-blue-100"},Drt=["onClick"],Lrt={class:"font-medium truncate"},Prt={role:"status",class:"fixed m-0 p-2 left-2 bottom-2 min-w-[24rem] max-w-[24rem] h-20 flex flex-col justify-center items-center pb-4 bg-blue-500 rounded-lg shadow-lg z-50 background-a"},Frt={class:"text-2xl animate-pulse mt-2 text-light-text-panel dark:text-dark-text-panel"};function Urt(n,e,t,r,i,s){const o=ht("Navigation"),a=ht("ActionButton"),l=ht("SocialIcon"),d=ht("ProgressBar"),u=ht("InputBox"),m=ht("SkillsLibraryViewer"),f=ht("Toast"),g=ht("MessageBox"),h=ht("YesNoDialog"),v=ht("UniversalForm");return T(),M(je,null,[c("div",{ref:"topbar-container",class:qe(["topbar-container",{"h-0":!i.isPinned}])},[c("div",{class:"hover-zone",onMouseenter:e[0]||(e[0]=(...b)=>s.show&&s.show(...b)),style:{position:"fixed",top:"0",left:"0",width:"100%",height:"10px","z-index":"50"}},null,32),c("div",{class:qe(["topbar",{"topbar-hidden":!i.isVisible}]),onMouseleave:e[14]||(e[14]=(...b)=>s.hide&&s.hide(...b))},[c("div",lrt,[On(n.$slots,"navigation",{},void 0,!0),c("button",{class:"pin-button",onClick:e[1]||(e[1]=(...b)=>s.togglePin&&s.togglePin(...b)),title:i.isPinned?"Unpin":"Pin"},[(T(),M("svg",{fill:i.isPinned?"#FF0000":"#000000",height:"24px",width:"24px",version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 490.125 490.125","xml:space":"preserve"},e[15]||(e[15]=[c("g",null,[c("path",{d:`M300.625,5.025c-6.7-6.7-17.6-6.7-24.3,0l-72.6,72.6c-6.7,6.7-6.7,17.6,0,24.3l16.3,16.3l-40.3,40.3l-63.5-7\r c-3-0.3-6-0.5-8.9-0.5c-21.7,0-42.2,8.5-57.5,23.8l-20.8,20.8c-6.7,6.7-6.7,17.6,0,24.3l108.5,108.5l-132.4,132.4\r c-6.7,6.7-6.7,17.6,0,24.3c3.3,3.3,7.7,5,12.1,5s8.8-1.7,12.1-5l132.5-132.5l108.5,108.5c3.3,3.3,7.7,5,12.1,5s8.8-1.7,12.1-5\r l20.8-20.8c17.6-17.6,26.1-41.8,23.3-66.4l-7-63.5l40.3-40.3l16.2,16.2c6.7,6.7,17.6,6.7,24.3,0l72.6-72.6c3.2-3.2,5-7.6,5-12.1\r s-1.8-8.9-5-12.1L300.625,5.025z M400.425,250.025l-16.2-16.3c-6.4-6.4-17.8-6.4-24.3,0l-58.2,58.3c-3.7,3.7-5.5,8.8-4.9,14\r l7.9,71.6c1.6,14.3-3.3,28.3-13.5,38.4l-8.7,8.7l-217.1-217.1l8.7-8.6c10.1-10.1,24.2-15,38.4-13.5l71.7,7.9\r - c5.2,0.6,10.3-1.2,14-4.9l58.2-58.2c6.7-6.7,6.7-17.6,0-24.3l-16.3-16.3l48.3-48.3l160.3,160.3L400.425,250.025z`})],-1)]),8,drt))],8,crt),W(o),c("div",{class:"toolbar-button",onMouseleave:e[5]||(e[5]=(...b)=>s.hideInfosMenu&&s.hideInfosMenu(...b))},[c("div",urt,[i.isInfosMenuVisible?(T(),M("div",{key:0,onMouseenter:e[3]||(e[3]=(...b)=>s.showInfosMenu&&s.showInfosMenu(...b)),class:"absolute m-0 p-0 z-50 top-full right-0 transform bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[c("div",prt,[c("div",hrt,[s.isModelOK?(T(),M("div",mrt,e[16]||(e[16]=[c("svg",{class:"w-8 h-8",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),c("path",{d:"M9 12L11 14L15 10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))):(T(),M("div",frt,e[17]||(e[17]=[c("svg",{class:"w-8 h-8",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),c("path",{d:"M15 9L9 15",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),c("path",{d:"M9 9L15 15",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))),s.isGenerating?(T(),M("div",_rt,e[19]||(e[19]=[c("svg",{class:"w-6 h-6 animate-spin",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1)]))):(T(),M("div",grt,e[18]||(e[18]=[c("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 21v-4m0 0V5a2 2 0 012-2h6.5l1 1H21l-3 6 3 6h-8.5l-1-1H5a2 2 0 00-2 2zm9-13.5V9"})],-1)]))),s.isConnected?(T(),M("div",brt,e[20]||(e[20]=[c("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 10V3L4 14h7v7l9-11h-7z"})],-1)]))):(T(),M("div",vrt,e[21]||(e[21]=[c("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636"})],-1)])))]),c("div",yrt,[W(a,{onClick:n.restartProgram,icon:"power",title:"restart program"},null,8,["onClick"]),W(a,{onClick:s.refreshPage,icon:"refresh-ccw",title:"refresh page"},null,8,["onClick"]),W(a,{href:"/docs",icon:"file-text",title:"Fast API doc"})]),W(l,{href:"https://github.com/ParisNeo/lollms-webui",icon:"github"}),W(l,{href:"https://www.youtube.com/channel/UCJzrg0cyQV2Z30SQ1v2FdSQ",icon:"youtube"}),W(l,{href:"https://x.com/ParisNeo_AI",icon:"x"}),W(l,{href:"https://discord.com/channels/1092918764925882418",icon:"discord"}),c("div",Ert,[c("div",{onClick:e[2]||(e[2]=b=>s.showNews()),class:"text-2xl w-8 h-8 cursor-pointer transition-colors duration-300 text-gray-600 hover:text-primary dark:text-gray-300 dark:hover:text-primary"},e[22]||(e[22]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"w-full h-full"},[c("path",{d:"M19 20H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v1m2 13a2 2 0 0 1-2-2V7m2 13a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"})],-1)])),e[23]||(e[23]=c("span",{class:"absolute hidden group-hover:block bg-gray-800 text-white text-xs rounded py-1 px-2 top-full left-1/2 transform -translate-x-1/2 mt-2 whitespace-nowrap"}," Lollms News ",-1))])])],32)):Y("",!0),c("div",{onMouseenter:e[4]||(e[4]=(...b)=>s.showInfosMenu&&s.showInfosMenu(...b)),class:"infos-hover-area"},e[24]||(e[24]=[yo('',1)]),32)])],32),s.is_fun_mode?(T(),M("div",{key:0,title:"Fun mode is on, press to turn off",class:"w-8 h-8 cursor-pointer text-green-500 dark:text-green-400 hover:text-green-600 dark:hover:text-green-300 transition-colors duration-300",onClick:e[6]||(e[6]=b=>s.fun_mode_off())},e[25]||(e[25]=[yo('',1)]))):(T(),M("div",{key:1,title:"Fun mode is off, press to turn on",class:"w-8 h-8 cursor-pointer text-gray-500 dark:text-gray-400 hover:text-gray-600 dark:hover:text-gray-300 transition-colors duration-300",onClick:e[7]||(e[7]=b=>s.fun_mode_on())},e[26]||(e[26]=[yo('',1)]))),c("span",Srt,X(s.is_fun_mode?"Turn off fun mode":"Turn on fun mode"),1),c("div",xrt,[c("button",{onClick:e[8]||(e[8]=(...b)=>s.toggleLanguageMenu&&s.toggleLanguageMenu(...b)),class:"bg-transparent text-black dark:text-white py-1 px-1 rounded font-bold uppercase transition-colors duration-300 hover:bg-blue-500"},X(n.$store.state.language.slice(0,2)),1),i.isLanguageMenuVisible?(T(),M("div",Trt,[c("ul",wrt,[(T(!0),M(je,null,at(s.languages,b=>(T(),M("li",{key:b,class:"relative flex items-center",style:{"padding-left":"0","margin-left":"0"}},[c("button",{onClick:_=>s.deleteLanguage(b),class:"mr-2 text-red-500 hover:text-white hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-opacity-50 rounded-full"},"✕",8,Crt),c("div",{onClick:_=>s.selectLanguage(b),class:qe({"cursor-pointer hover:bg-blue-500 hover:text-white py-2 px-4 block whitespace-no-wrap":!0,"bg-blue-500 text-white":b===n.$store.state.language,"flex-grow":!0})},X(b),11,Art)]))),128)),c("li",Rrt,[F(c("input",{type:"text","onUpdate:modelValue":e[9]||(e[9]=b=>n.customLanguage=b),onKeyup:e[10]||(e[10]=ui(J((...b)=>s.addCustomLanguage&&s.addCustomLanguage(...b),["prevent"]),["enter"])),placeholder:"Enter language...",class:"bg-transparent border border-gray-300 rounded py-0 px-0 mx-0 my-1 w-full"},null,544),[[_e,n.customLanguage]])])])],512)):Y("",!0)]),s.isDarkMode?(T(),M("div",{key:2,class:"sun text-2xl w-6 hover:text-primary duration-150 cursor-pointer",title:"Switch to Light theme",onClick:e[11]||(e[11]=b=>s.themeSwitch())},e[27]||(e[27]=[c("i",{"data-feather":"sun"},null,-1)]))):(T(),M("div",{key:3,class:"moon text-2xl w-6 hover:text-primary duration-150 cursor-pointer",title:"Switch to Dark theme",onClick:e[12]||(e[12]=b=>s.themeSwitch())},e[28]||(e[28]=[c("i",{"data-feather":"moon"},null,-1)]))),c("div",Mrt,[c("button",{onClick:e[13]||(e[13]=b=>i.themeDropdownOpen=!i.themeDropdownOpen),class:"inline-flex items-center justify-between min-w-[120px] px-4 py-2 bg-gradient-to-r from-blue-500/10 to-purple-500/10 dark:from-blue-400/20 dark:to-purple-400/20 border border-blue-200 dark:border-blue-700 rounded-lg shadow-sm text-gray-700 dark:text-gray-200 hover:border-blue-300 dark:hover:border-blue-600 hover:shadow-md focus:outline-none focus:ring-2 focus:ring-blue-500/50 transition-all duration-300 ease-in-out backdrop-blur-sm"},[c("div",Nrt,[e[29]||(e[29]=c("svg",{class:"w-5 h-5 text-blue-500 dark:text-blue-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01"})],-1)),c("span",krt,X(i.currentTheme),1)]),(T(),M("svg",{class:qe(["w-5 h-5 text-blue-500 dark:text-blue-400 transition-transform duration-300",{"rotate-180":i.themeDropdownOpen}]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},e[30]||(e[30]=[c("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"},null,-1)]),2))]),i.themeDropdownOpen?(T(),M("div",Irt,[c("div",Ort,[(T(!0),M(je,null,at(i.availableThemes,b=>(T(),M("a",{key:b,onClick:_=>{s.loadTheme(b),i.currentTheme=b,i.themeDropdownOpen=!1},class:"flex items-center space-x-2 px-4 py-3 text-gray-700 dark:text-gray-200 hover:bg-gradient-to-r hover:from-blue-50 hover:to-purple-50 dark:hover:from-blue-900/30 dark:hover:to-purple-900/30 cursor-pointer transition-colors duration-150 group"},[e[31]||(e[31]=c("div",{class:"w-2 h-2 rounded-full bg-blue-400 group-hover:bg-blue-500 transition-colors duration-150"},null,-1)),c("span",Lrt,X(b),1)],8,Drt))),128))])])):Y("",!0)])])],34)],2),F(c("div",Prt,[W(d,{ref:"progress",progress:n.progress_value,class:"w-full h-4"},null,8,["progress"]),c("p",Frt,X(n.loading_infos)+" ...",1)],512),[[Dt,n.progress_visibility]]),W(u,{"prompt-text":"Enter the url to the page to use as discussion support",onOk:n.addWebpage,ref:"web_url_input_box"},null,8,["onOk"]),W(m,{ref:"skills_lib"},null,512),W(f,{ref:"toast"},null,512),W(g,{ref:"messageBox"},null,512),W(h,{ref:"yesNoDialog",class:"z-20"},null,512),W(v,{ref:"universalForm",class:"z-20"},null,512)],64)}const Brt=bt(art,[["render",Urt],["__scopeId","data-v-7584c3bf"]]),Grt={class:"flex overflow-hidden flex-grow w-full"},zrt={__name:"App",setup(n){return(e,t)=>(T(),M("div",{class:qe([e.currentTheme,"flex flex-col h-screen font-sans background-color text-slate-950 dark:bg-bg-dark dark:text-slate-50 w-full overflow-hidden"])},[W(Brt),c("div",Grt,[W(Pt(W3),null,{default:Ge(({Component:r})=>[(T(),Tt(_D,null,[(T(),Tt(Sh(r)))],1024))]),_:1})])],2))}},Xi=Object.create(null);Xi.open="0";Xi.close="1";Xi.ping="2";Xi.pong="3";Xi.message="4";Xi.upgrade="5";Xi.noop="6";const ap=Object.create(null);Object.keys(Xi).forEach(n=>{ap[Xi[n]]=n});const _1={type:"error",data:"parser error"},kk=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Ik=typeof ArrayBuffer=="function",Ok=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,ly=({type:n,data:e},t,r)=>kk&&e instanceof Blob?t?r(e):ZC(e,r):Ik&&(e instanceof ArrayBuffer||Ok(e))?t?r(e):ZC(new Blob([e]),r):r(Xi[n]+(e||"")),ZC=(n,e)=>{const t=new FileReader;return t.onload=function(){const r=t.result.split(",")[1];e("b"+(r||""))},t.readAsDataURL(n)};function JC(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let W0;function Vrt(n,e){if(kk&&n.data instanceof Blob)return n.data.arrayBuffer().then(JC).then(e);if(Ik&&(n.data instanceof ArrayBuffer||Ok(n.data)))return e(JC(n.data));ly(n,!1,t=>{W0||(W0=new TextEncoder),e(W0.encode(t))})}const eA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Oc=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n{let e=n.length*.75,t=n.length,r,i=0,s,o,a,l;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);const d=new ArrayBuffer(e),u=new Uint8Array(d);for(r=0;r>4,u[i++]=(o&15)<<4|a>>2,u[i++]=(a&3)<<6|l&63;return d},qrt=typeof ArrayBuffer=="function",cy=(n,e)=>{if(typeof n!="string")return{type:"message",data:Dk(n,e)};const t=n.charAt(0);return t==="b"?{type:"message",data:Yrt(n.substring(1),e)}:ap[t]?n.length>1?{type:ap[t],data:n.substring(1)}:{type:ap[t]}:_1},Yrt=(n,e)=>{if(qrt){const t=Hrt(n);return Dk(t,e)}else return{base64:!0,data:n}},Dk=(n,e)=>{switch(e){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},Lk="",$rt=(n,e)=>{const t=n.length,r=new Array(t);let i=0;n.forEach((s,o)=>{ly(s,!1,a=>{r[o]=a,++i===t&&e(r.join(Lk))})})},Wrt=(n,e)=>{const t=n.split(Lk),r=[];for(let i=0;i{const r=t.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const s=new DataView(i.buffer);s.setUint8(0,126),s.setUint16(1,r)}else{i=new Uint8Array(9);const s=new DataView(i.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(r))}n.data&&typeof n.data!="string"&&(i[0]|=128),e.enqueue(i),e.enqueue(t)})}})}let K0;function hu(n){return n.reduce((e,t)=>e+t.length,0)}function mu(n,e){if(n[0].length===e)return n.shift();const t=new Uint8Array(e);let r=0;for(let i=0;iMath.pow(2,21)-1){a.enqueue(_1);break}i=u*Math.pow(2,32)+d.getUint32(4),r=3}else{if(hu(t)n){a.enqueue(_1);break}}}})}const Pk=4;function Dn(n){if(n)return Qrt(n)}function Qrt(n){for(var e in Dn.prototype)n[e]=Dn.prototype[e];return n}Dn.prototype.on=Dn.prototype.addEventListener=function(n,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(e),this};Dn.prototype.once=function(n,e){function t(){this.off(n,t),e.apply(this,arguments)}return t.fn=e,this.on(n,t),this};Dn.prototype.off=Dn.prototype.removeListener=Dn.prototype.removeAllListeners=Dn.prototype.removeEventListener=function(n,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+n];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var r,i=0;iPromise.resolve().then(e):(e,t)=>t(e,0),Xr=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Xrt="arraybuffer";function Fk(n,...e){return e.reduce((t,r)=>(n.hasOwnProperty(r)&&(t[r]=n[r]),t),{})}const Zrt=Xr.setTimeout,Jrt=Xr.clearTimeout;function em(n,e){e.useNativeTimers?(n.setTimeoutFn=Zrt.bind(Xr),n.clearTimeoutFn=Jrt.bind(Xr)):(n.setTimeoutFn=Xr.setTimeout.bind(Xr),n.clearTimeoutFn=Xr.clearTimeout.bind(Xr))}const eit=1.33;function tit(n){return typeof n=="string"?nit(n):Math.ceil((n.byteLength||n.size)*eit)}function nit(n){let e=0,t=0;for(let r=0,i=n.length;r=57344?t+=3:(r++,t+=4);return t}function Uk(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function rit(n){let e="";for(let t in n)n.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(n[t]));return e}function iit(n){let e={},t=n.split("&");for(let r=0,i=t.length;r{this.readyState="paused",e()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||t()})),this.writable||(r++,this.once("drain",function(){--r||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};Wrt(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,$rt(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=Uk()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}}let Bk=!1;try{Bk=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const ait=Bk;function lit(){}class cit extends oit{constructor(e){if(super(e),typeof location<"u"){const t=location.protocol==="https:";let r=location.port;r||(r=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||r!==e.port}}doWrite(e,t){const r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(i,s)=>{this.onError("xhr post error",i,s)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,r)=>{this.onError("xhr poll error",t,r)}),this.pollXhr=e}}let _l=class lp extends Dn{constructor(e,t,r){super(),this.createRequest=e,em(this,r),this._opts=r,this._method=r.method||"GET",this._uri=t,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var e;const t=Fk(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(t);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=lp.requestsCount++,lp.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=lit,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete lp.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};_l.requestsCount=0;_l.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",tA);else if(typeof addEventListener=="function"){const n="onpagehide"in Xr?"pagehide":"unload";addEventListener(n,tA,!1)}}function tA(){for(let n in _l.requests)_l.requests.hasOwnProperty(n)&&_l.requests[n].abort()}const dit=function(){const n=Gk({xdomain:!1});return n&&n.responseType!==null}();class uit extends cit{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=dit&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new _l(Gk,this.uri(),e)}}function Gk(n){const e=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||ait))return new XMLHttpRequest}catch{}if(!e)try{return new Xr[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const zk=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class pit extends dy{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,r=zk?{}:Fk(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t{try{this.doWrite(r,s)}catch{}i&&Jh(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=Uk()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const j0=Xr.WebSocket||Xr.MozWebSocket;class hit extends pit{createSocket(e,t,r){return zk?new j0(e,t,r):t?new j0(e,t):new j0(e)}doWrite(e,t){this.ws.send(t)}}class mit extends dy{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const t=jrt(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),i=Krt();i.readable.pipeTo(e.writable),this._writer=i.writable.getWriter();const s=()=>{r.read().then(({done:a,value:l})=>{a||(this.onPacket(l),s())}).catch(a=>{})};s();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t{i&&Jh(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const fit={websocket:hit,webtransport:mit,polling:uit},git=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,_it=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function b1(n){if(n.length>8e3)throw"URI too long";const e=n,t=n.indexOf("["),r=n.indexOf("]");t!=-1&&r!=-1&&(n=n.substring(0,t)+n.substring(t,r).replace(/:/g,";")+n.substring(r,n.length));let i=git.exec(n||""),s={},o=14;for(;o--;)s[_it[o]]=i[o]||"";return t!=-1&&r!=-1&&(s.source=e,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=bit(s,s.path),s.queryKey=vit(s,s.query),s}function bit(n,e){const t=/\/{2,9}/g,r=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&r.splice(0,1),e.slice(-1)=="/"&&r.splice(r.length-1,1),r}function vit(n,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,s){i&&(t[i]=s)}),t}const v1=typeof addEventListener=="function"&&typeof removeEventListener=="function",cp=[];v1&&addEventListener("offline",()=>{cp.forEach(n=>n())},!1);class Eo extends Dn{constructor(e,t){if(super(),this.binaryType=Xrt,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(t=e,e=null),e){const r=b1(e);t.hostname=r.host,t.secure=r.protocol==="https"||r.protocol==="wss",t.port=r.port,r.query&&(t.query=r.query)}else t.host&&(t.hostname=b1(t.host).host);em(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(r=>{const i=r.prototype.name;this.transports.push(i),this._transportsByName[i]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=iit(this.opts.query)),v1&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},cp.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=Pk,t.transport=e,this.id&&(t.sid=this.id);const r=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&Eo.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",t=>this._onClose("transport close",t))}onOpen(){this.readyState="open",Eo.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let r=0;r0&&t>this._maxPayload)return this.writeBuffer.slice(0,r);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,Jh(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,r){return this._sendPacket("message",e,t,r),this}send(e,t,r){return this._sendPacket("message",e,t,r),this}_sendPacket(e,t,r,i){if(typeof t=="function"&&(i=t,t=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const s={type:e,data:t,options:r};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),i&&this.once("flush",i),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},r=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():e()),this}_onError(e){if(Eo.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),v1&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=cp.indexOf(this._offlineEventListener);r!==-1&&cp.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}Eo.protocol=Pk;class yit extends Eo{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",m=>{if(!r)if(m.type==="pong"&&m.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;Eo.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(u(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=t.name,this.emitReserved("upgradeError",f)}}))};function s(){r||(r=!0,u(),t.close(),t=null)}const o=m=>{const f=new Error("probe error: "+m);f.transport=t.name,s(),this.emitReserved("upgradeError",f)};function a(){o("transport closed")}function l(){o("socket closed")}function d(m){t&&m.name!==t.name&&s()}const u=()=>{t.removeListener("open",i),t.removeListener("error",o),t.removeListener("close",a),this.off("close",l),this.off("upgrading",d)};t.once("open",i),t.once("error",o),t.once("close",a),this.once("close",l),this.once("upgrading",d),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{r||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let r=0;rfit[i]).filter(i=>!!i)),super(e,r)}};function Sit(n,e="",t){let r=n;t=t||typeof location<"u"&&location,n==null&&(n=t.protocol+"//"+t.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=t.protocol+n:n=t.host+n),/^(https?|wss?):\/\//.test(n)||(typeof t<"u"?n=t.protocol+"//"+n:n="https://"+n),r=b1(n)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const s=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+s+":"+r.port+e,r.href=r.protocol+"://"+s+(t&&t.port===r.port?"":":"+r.port),r}const xit=typeof ArrayBuffer=="function",Tit=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,Vk=Object.prototype.toString,wit=typeof Blob=="function"||typeof Blob<"u"&&Vk.call(Blob)==="[object BlobConstructor]",Cit=typeof File=="function"||typeof File<"u"&&Vk.call(File)==="[object FileConstructor]";function uy(n){return xit&&(n instanceof ArrayBuffer||Tit(n))||wit&&n instanceof Blob||Cit&&n instanceof File}function dp(n,e){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let t=0,r=n.length;t=0&&n.num{delete this.acks[e];for(let a=0;a{this.io.clearTimeoutFn(s),t.apply(this,a)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((r,i)=>{const s=(o,a)=>o?i(o):r(a);s.withError=!0,t.push(s),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((i,...s)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(i)):(this._queue.shift(),t&&t(null,...s)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:Wt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(r=>String(r.id)===e)){const r=this.acks[e];delete this.acks[e],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case Wt.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Wt.EVENT:case Wt.BINARY_EVENT:this.onevent(e);break;case Wt.ACK:case Wt.BINARY_ACK:this.onack(e);break;case Wt.DISCONNECT:this.ondisconnect();break;case Wt.CONNECT_ERROR:this.destroy();const r=new Error(e.data.message);r.data=e.data.data,this.emitReserved("connect_error",r);break}}onevent(e){const t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const r of t)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let r=!1;return function(...i){r||(r=!0,t.packet({type:Wt.ACK,id:e,data:i}))}}onack(e){const t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Wt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let r=0;r0&&n.jitter<=1?n.jitter:0,this.attempts=0}ic.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*n);n=Math.floor(e*10)&1?n+t:n-t}return Math.min(n,this.max)|0};ic.prototype.reset=function(){this.attempts=0};ic.prototype.setMin=function(n){this.ms=n};ic.prototype.setMax=function(n){this.max=n};ic.prototype.setJitter=function(n){this.jitter=n};class S1 extends Dn{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,em(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((r=t.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new ic({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;const i=t.parser||Oit;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Eit(this.uri,this.opts);const t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=xi(t,"open",function(){r.onopen(),e&&e()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},o=xi(t,"error",s);if(this._timeout!==!1){const a=this._timeout,l=this.setTimeoutFn(()=>{i(),s(new Error("timeout")),t.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(i),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(xi(e,"ping",this.onping.bind(this)),xi(e,"data",this.ondata.bind(this)),xi(e,"error",this.onerror.bind(this)),xi(e,"close",this.onclose.bind(this)),xi(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){Jh(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new Hk(this,e,t),this.nsps[e]=r),r}_destroy(e){const t=Object.keys(this.nsps);for(const r of t)if(this.nsps[r].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let r=0;re()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(i=>{i?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",i)):e.onreconnect()}))},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const bc={};function up(n,e){typeof n=="object"&&(e=n,n=void 0),e=e||{};const t=Sit(n,e.path||"/socket.io"),r=t.source,i=t.id,s=t.path,o=bc[i]&&s in bc[i].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||o;let l;return a?l=new S1(r,e):(bc[i]||(bc[i]=new S1(r,e)),l=bc[i]),t.query&&!e.query&&(e.query=t.queryKey),l.socket(t.path,e)}Object.assign(up,{Manager:S1,Socket:Hk,io:up,connect:up});const qk="/";console.log(qk);const rt=new up(qk,{reconnection:!0,reconnectionAttempts:10,reconnectionDelay:1e3}),Lit={props:{value:String,inputType:{type:String,default:"text",validator:n=>["text","email","password","file","path","integer","float"].includes(n)},fileAccept:String},data(){return{inputValue:this.value,placeholderText:this.getPlaceholderText()}},watch:{value(n){console.log("Changing value to ",n),this.inputValue=n}},mounted(){We(()=>{Ze.replace()}),console.log("Changing value to ",this.value),this.inputValue=this.value},methods:{handleSliderInput(n){this.inputValue=n.target.value,this.$emit("input",n.target.value)},getPlaceholderText(){switch(this.inputType){case"text":return"Enter text here";case"email":return"Enter your email";case"password":return"Enter your password";case"file":case"path":return"Choose a file";case"integer":return"Enter an integer";case"float":return"Enter a float";default:return"Enter value here"}},handleInput(n){if(this.inputType==="integer"){const e=n.target.value.replace(/[^0-9]/g,"");this.inputValue=e}console.log("handling input : ",n.target.value),this.$emit("input",n.target.value)},async pasteFromClipboard(){try{const n=await navigator.clipboard.readText();this.handleClipboardData(n)}catch(n){console.error("Failed to read from clipboard:",n)}},handlePaste(n){const e=n.clipboardData.getData("text");this.handleClipboardData(e)},handleClipboardData(n){switch(this.inputType){case"email":this.inputValue=this.isValidEmail(n)?n:"";break;case"password":this.inputValue=n;break;case"file":case"path":this.inputValue="";break;case"integer":this.inputValue=this.parseInteger(n);break;case"float":this.inputValue=this.parseFloat(n);break;default:this.inputValue=n;break}},isValidEmail(n){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n)},parseInteger(n){const e=parseInt(n);return isNaN(e)?"":e},parseFloat(n){const e=parseFloat(n);return isNaN(e)?"":e},openFileInput(){this.$refs.fileInput.click()},handleFileInputChange(n){const e=n.target.files[0];e&&(this.inputValue=e.name)}}},Pit={class:"flex items-center space-x-2"},Fit=["value","type","placeholder"],Uit=["value","min","max"],Bit=["accept"];function Git(n,e,t,r,i,s){return T(),M("div",Pit,[n.useSlider?(T(),M("input",{key:1,type:"range",value:parseInt(i.inputValue),min:n.minSliderValue,max:n.maxSliderValue,onInput:e[2]||(e[2]=(...o)=>s.handleSliderInput&&s.handleSliderInput(...o)),class:"flex-1 px-4 py-2 text-lg border dark:bg-gray-600 border-gray-300 rounded-md focus:outline-none focus:ring focus:border-blue-500"},null,40,Uit)):(T(),M("input",{key:0,value:i.inputValue,type:t.inputType,placeholder:i.placeholderText,onInput:e[0]||(e[0]=(...o)=>s.handleInput&&s.handleInput(...o)),onPaste:e[1]||(e[1]=(...o)=>s.handlePaste&&s.handlePaste(...o)),class:"flex-1 px-4 py-2 text-lg dark:bg-gray-600 border border-gray-300 rounded-md focus:outline-none focus:ring focus:border-blue-500"},null,40,Fit)),c("button",{onClick:e[3]||(e[3]=(...o)=>s.pasteFromClipboard&&s.pasteFromClipboard(...o)),class:"p-2 bg-blue-500 dark:bg-gray-600 text-white rounded-md hover:bg-blue-600 focus:outline-none focus:ring focus:border-blue-300"},e[6]||(e[6]=[c("i",{"data-feather":"clipboard"},null,-1)])),t.inputType==="file"?(T(),M("button",{key:2,onClick:e[4]||(e[4]=(...o)=>s.openFileInput&&s.openFileInput(...o)),class:"p-2 bg-blue-500 text-white rounded-md hover:bg-blue-600 focus:outline-none focus:ring focus:border-blue-300"},e[7]||(e[7]=[c("i",{"data-feather":"upload"},null,-1)]))):Y("",!0),t.inputType==="file"?(T(),M("input",{key:3,ref:"fileInput",type:"file",style:{display:"none"},accept:t.fileAccept,onChange:e[5]||(e[5]=(...o)=>s.handleFileInputChange&&s.handleFileInputChange(...o))},null,40,Bit)):Y("",!0)])}const hy=bt(Lit,[["render",Git]]),zit={name:"TokensHighlighter",props:{namedTokens:{type:Object,required:!0}},data(){return{colors:["#FF6633","#FFB399","#FF33FF","#FFFF99","#00B3E6","#E6B333","#3366E6","#999966","#99FF99","#B34D4D","#80B300","#809900","#E6B3B3","#6680B3","#66991A","#FF99E6","#CCFF1A","#FF1A66","#E6331A","#33FFCC","#66994D","#B366CC","#4D8000","#B33300","#CC80CC","#66664D","#991AFF","#E666FF","#4DB3FF","#1AB399","#E666B3","#33991A","#CC9999","#B3B31A","#00E680","#4D8066","#809980","#E6FF80","#1AFF33","#999933","#FF3380","#CCCC00","#66E64D","#4D80CC","#9900B3","#E64D66","#4DB380","#FF4D4D","#99E6E6","#6666FF"]}}},Vit={class:"w-full"},Hit={class:"break-words"},qit={class:"break-words mt-2"},Yit={class:"mt-4"};function $it(n,e,t,r,i,s){return T(),M("div",Vit,[c("div",Hit,[(T(!0),M(je,null,at(t.namedTokens,(o,a)=>(T(),M("span",{key:a},[c("span",{class:"inline-block whitespace-pre-wrap",style:on({backgroundColor:i.colors[a%i.colors.length]})},X(o[0]),5)]))),128))]),c("div",qit,[(T(!0),M(je,null,at(t.namedTokens,(o,a)=>(T(),M("span",{key:a},[c("span",{class:"inline-block px-1 whitespace-pre-wrap",style:on({backgroundColor:i.colors[a%i.colors.length]})},X(o[1]),5)]))),128))]),c("div",Yit,[c("strong",null,"Total Tokens: "+X(t.namedTokens.length),1)])])}const Wit=bt(zit,[["render",$it]]),Kit={name:"ChatBarButton",props:{buttonClass:{type:String,default:"text-gray-600 dark:text-gray-300"}}};function jit(n,e,t,r,i,s){return T(),M("button",G4({class:["p-2 rounded-full transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",[t.buttonClass,"hover:bg-gray-200 dark:hover:bg-gray-700","active:bg-gray-300 dark:active:bg-gray-600"]]},n.$attrs,AD(n.$listeners)),[On(n.$slots,"icon"),On(n.$slots,"default")],16)}const Yk=bt(Kit,[["render",jit]]),Qit={props:{is_subcard:{type:Boolean,default:!1},is_shrunk:{type:Boolean,default:!1},title:{type:String,default:""},isHorizontal:{type:Boolean,default:!1},cardWidth:{type:String,default:"w-3/4"},disableHoverAnimation:{type:Boolean,default:!0},disableFocus:{type:Boolean,default:!1}},data(){return{shrink:this.is_shrunk,isHovered:!1,isActive:!1}},computed:{cardClass(){return["bg-gray-50","border","border-gray-300","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","w-full","p-2.5","dark:bg-gray-500","dark:border-gray-600","dark:placeholder-gray-400","dark:text-white","dark:focus:ring-blue-500","dark:focus:border-blue-500",{"cursor-pointer":!this.isActive&&!this.disableFocus,"w-auto":!this.isActive}]},cardWidthClass(){return this.isActive?this.cardWidth:""}},methods:{toggleCard(){this.disableFocus||(this.isActive=!this.isActive)}}},Xit={key:1,class:"flex flex-wrap"},Zit={key:2,class:"mb-2"};function Jit(n,e,t,r,i,s){return T(),M("div",null,[i.isActive?(T(),M("div",{key:0,class:"overlay",onClick:e[0]||(e[0]=(...o)=>s.toggleCard&&s.toggleCard(...o))})):Y("",!0),F(c("div",{class:qe(["border-blue-300 rounded-lg shadow-lg p-2",s.cardWidthClass,"m-2",{subcard:t.is_subcard},{"bg-white dark:bg-gray-900":!t.is_subcard},{hovered:!t.disableHoverAnimation&&i.isHovered,active:i.isActive}]),onMouseenter:e[2]||(e[2]=o=>i.isHovered=!0),onMouseleave:e[3]||(e[3]=o=>i.isHovered=!1),onClick:e[4]||(e[4]=J((...o)=>s.toggleCard&&s.toggleCard(...o),["self"])),style:on({cursor:this.disableFocus?"":"pointer"})},[t.title?(T(),M("div",{key:0,onClick:e[1]||(e[1]=o=>i.shrink=!0),class:qe([{"text-center p-2 m-2 bg-gray-200":!t.is_subcard},"bg-gray-100 dark:bg-gray-500 rounded-lg pl-2 pr-2 mb-2 font-bold cursor-pointer"])},X(t.title),3)):Y("",!0),t.isHorizontal?(T(),M("div",Xit,[On(n.$slots,"default")])):(T(),M("div",Zit,[On(n.$slots,"default")]))],38),[[Dt,i.shrink===!1]]),t.is_subcard?F((T(),M("div",{key:1,onClick:e[5]||(e[5]=o=>i.shrink=!1),class:"bg-white text-center text-xl bold dark:bg-gray-500 border-blue-300 rounded-lg shadow-lg p-2 h-10 cursor-pointer m-2"},X(t.title),513)),[[Dt,i.shrink===!0]]):F((T(),M("div",{key:2,onClick:e[6]||(e[6]=o=>i.shrink=!1),class:"bg-white text-center text-2xl dark:bg-gray-500 border-2 border-blue-300 rounded-lg shadow-lg p-0 h-7 cursor-pointer hover:h-8 hover:bg-blue-300"}," + ",512)),[[Dt,i.shrink===!0]])])}const tm=bt(Qit,[["render",Jit]]),$k="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20%203H4c-1.103%200-2%20.897-2%202v14c0%201.103.897%202%202%202h16c1.103%200%202-.897%202-2V5c0-1.103-.897-2-2-2zM4%2019V7h16l.002%2012H4z'/%3e%3cpath%20d='M9.293%209.293%205.586%2013l3.707%203.707%201.414-1.414L8.414%2013l2.293-2.293zm5.414%200-1.414%201.414L15.586%2013l-2.293%202.293%201.414%201.414L18.414%2013z'/%3e%3c/svg%3e",Wk="/assets/python_block-Bt12VGEE.png",Kk="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2024.3.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20630%20630'%20style='enable-background:new%200%200%20630%20630;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23EDBF4A;}%20.st1{fill:%230C0C0C;}%20%3c/style%3e%3crect%20class='st0'%20width='630'%20height='630'/%3e%3cpath%20class='st1'%20d='M423.2,492.2c12.7,20.7,29.2,36,58.4,36c24.5,0,40.2-12.3,40.2-29.2c0-20.3-16.1-27.5-43.1-39.3l-14.8-6.4%20c-42.7-18.2-71.1-41-71.1-89.2c0-44.4,33.8-78.2,86.7-78.2c37.6,0,64.7,13.1,84.2,47.4l-46.1,29.6c-10.1-18.2-21.1-25.4-38.1-25.4%20c-17.3,0-28.3,11-28.3,25.4c0,17.8,11,25,36.4,36l14.8,6.3c50.3,21.6,78.7,43.6,78.7,93c0,53.3-41.9,82.5-98.1,82.5%20c-55,0-90.5-26.2-107.9-60.5L423.2,492.2z%20M214.1,497.3c9.3,16.5,17.8,30.5,38.1,30.5c19.5,0,31.7-7.6,31.7-37.2V289.3h59.2v202.1%20c0,61.3-35.9,89.2-88.4,89.2c-47.4,0-74.9-24.5-88.8-54.1L214.1,497.3z'/%3e%3c/svg%3e",jk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAOeSURBVGhD7ZhNaBNBGIZHW/EPbSioRSpi0FRpVdRSjQfxkFilB5UciuChIL0JLaKIhR5KIYKIiBSF0mLVS7AIavUgPQjiT4+KB0EP3gwS8VDBgj8d33d2ZrNJt2lCppKWfeBh5pvdncyXmZ3sZokQQsIFz1JdLni8M8L6QkSNf9HMSJBIpREkUmkEiVQaQSKVRpCIH8lkUtbW1sre3l7fB9FoNCrD4fC8PaSyYyudNzU1yZGRkYJ9dXV1yUQiYTMZNX6rM5LJZERHR0fBh0/MmJDSZh4OVhOZmprStf+P1UQmJyd1zaGvr09NuxM5VFVViYmJCR3Zw1oiPT09koP00tjYKNrb23XkEIlERHV1tY7sMuNbK5XR0VGJwcnBwcGi+uns7Cz7Mz24fVnpdGhoSDY0NBTbjxweHi77MzXu+N2KBebsh7PW0tJi6/OIGr/Vm72mpkbXssTj8ZxBp9NpUV9fryN7WE0kn1QqJcfHx3U0v1hNJBQKqXtFh2JsbEx0d3frKMv09LSu2UWtMadaHm1tberxQ+9Koq6uLqff1tZW2dzcLPXviy3c8bsVG/T398+6I8ViMTkwMGDtszRq/MEfdJVGkEilESRSaZSSyCa43anmsAPGII/7wWd7nnMEbmaDD2G41anmsA76tfui9mGnWpAPkOftVpEQuyDfkMz19Bv0cg56j9NP8AQ07IXm2Es2eHgK2b5RRf6Ya7OVOchP5D1kfA0m4GX4CxouQR7/A6/DC/CObqNRSA5A00Y7oeG/JMJBM65TUS7rIV/gefw4GzzchWx/rKJsIu90+REaik6knJv9hy5vw4NO1WU/XAG/w0ds8MABk326NLyGL+A2eJYNpVBOIhd1eRS+gs/hTjYAc4M+06WX+7rkt7zKqbrc0OV5WNIjUzmJDME9MKUiIQ5DvnyshOZfCL/+l+uSz/I/narLA8gvhLsb77miKScR8haegqfhb7gBcoa4M5G4Lr0069Kck88VXZ6B+TNWEHWzONWCpCHPM78lZhkZ3kAePwa36DpthQYulwxke5INwNzst1Tk8ASa66mVXYtLgFPOc7iVroUtOh6F3Gbv6fgLXAPJVWj65vU3IW9oxl+hWWJ+iRyC5lpqJZHP0JxjbnBO+UP4F5pjXNsnoRf+IJqZpNySmRSXoMEvEeL9Iqwkwm20Cfqt12UwAleraHZCcLbHEzLz75fiUeMP3hArjUWTiHdpLWgWyYwI8Q8rrSjH5vAr6AAAAABJRU5ErkJggg==",Qk="/assets/cpp_block-kkmuBJ_E.png",Xk="/assets/html5_block-beC_-Wtz.png",Zk="/assets/LaTeX_block-BNFNi2yr.png",Jk="/assets/bash_block-DZNRrwlz.png",est="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNTAgNTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+DQogIDxjaXJjbGUgY3g9IjI1IiBjeT0iMjUiIHI9IjI1IiBmaWxsPSJkZWVwc2t5Ymx1ZSIvPg0KICA8dGV4dCB4PSIyNSIgeT0iMzciIGZvbnQtc2l6ZT0iMzYiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGZpbGw9IndoaXRlIiBmb250LXdlaWdodD0iYm9sZCI+VDwvdGV4dD4NCjwvc3ZnPg0K",tst="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='red'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3ccircle%20cx='12'%20cy='12'%20r='10'%3e%3c/circle%3e%3cpath%20d='M16%2016s-1.5-2-4-2-4%202-4%202'%20stroke='currentColor'%3e%3c/path%3e%3cline%20x1='9'%20y1='9'%20x2='15'%20y2='15'%20stroke='currentColor'%3e%3c/line%3e%3c/svg%3e",nst="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3ccircle%20cx='12'%20cy='12'%20r='10'%3e%3c/circle%3e%3cpath%20d='M16%2016s-1.5-2-4-2-4%202-4%202'%3e%3c/path%3e%3cline%20x1='9'%20y1='9'%20x2='15'%20y2='15'%3e%3c/line%3e%3c/svg%3e",rst="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='50'%20height='50'%20viewBox='0%200%2050%2050'%3e%3ccircle%20cx='25'%20cy='25'%20r='24'%20fill='white'%20stroke='black'%20stroke-width='2'/%3e%3ccircle%20id='heartbeat'%20cx='25'%20cy='25'%20r='20'%20fill='red'%3e%3canimate%20attributeName='r'%20dur='1s'%20repeatCount='indefinite'%20keyTimes='0;0.25;0.5;0.75;1'%20values='20;24;20;22;20'/%3e%3c/circle%3e%3c/svg%3e",ist="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='50'%20height='50'%20viewBox='0%200%2050%2050'%3e%3ccircle%20cx='25'%20cy='25'%20r='24'%20fill='white'%20stroke='black'%20stroke-width='2'/%3e%3ccircle%20cx='25'%20cy='25'%20r='20'%20fill='red'/%3e%3c/svg%3e",eI="data:image/svg+xml,%3csvg%20viewBox='0%200%2050%2050'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20transform='translate(25,25)'%3e%3ccircle%20cx='0'%20cy='-15'%20r='3'%20fill='%23f00'%3e%3canimateTransform%20attributeName='transform'%20type='rotate'%20from='0'%20to='360'%20dur='1s'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3ccircle%20cx='0'%20cy='-15'%20r='3'%20fill='%230f0'%20transform='rotate(90)'%3e%3canimateTransform%20attributeName='transform'%20type='rotate'%20from='0'%20to='360'%20dur='1.2s'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3ccircle%20cx='0'%20cy='-15'%20r='3'%20fill='%2300f'%20transform='rotate(180)'%3e%3canimateTransform%20attributeName='transform'%20type='rotate'%20from='0'%20to='360'%20dur='1.4s'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3ccircle%20cx='0'%20cy='-15'%20r='3'%20fill='%23ff0'%20transform='rotate(270)'%3e%3canimateTransform%20attributeName='transform'%20type='rotate'%20from='0'%20to='360'%20dur='1.6s'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3c/g%3e%3c/svg%3e",sst={props:{icon:{type:String,required:!0},title:{type:String,required:!0}},computed:{iconPath(){return this.getIconPath()}},methods:{getIconPath(){switch(this.icon){case"x":return'';case"check":return'';case"code":return'';case"python":return'';case"js":return'JS';case"typescript":return'TS';case"braces":return'';case"cplusplus":case"c++":return'C++';case"csharp":return'C#';case"go":return'Go';case"r-project":return'R';case"rust":return'';case"swift":return'';case"kotlin":return'';case"java":return'';case"html5":return'';case"css3":return'';case"vuejs":return'';case"react":return'';case"angular":return'';case"xml":return'';case"json":return'';case"yaml":return'';case"markdown":return'';case"latex":return'TEX';case"bash":return'';case"powershell":return'';case"perl":return'';case"mermaid":return'';case"graphviz":return'';case"plantuml":return'';case"sql":return'';case"mongodb":return'';case"mathFunction":return'';case"terminal":return'';case"edit":return'';case"copy":return'';case"send":return'';case"globe":return'';case"fastForward":return'';case"sendSimple":return'';default:return""}}}},ost=["title"],ast={class:"w-6 h-6",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},lst=["innerHTML"];function cst(n,e,t,r,i,s){return T(),M("button",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:t.title,onClick:e[0]||(e[0]=o=>n.$emit("click"))},[(T(),M("svg",ast,[c("g",{innerHTML:s.iconPath},null,8,lst)]))],8,ost)}const my=bt(sst,[["render",cst]]);var Mr="top",fi="bottom",gi="right",Nr="left",fy="auto",Od=[Mr,fi,gi,Nr],Ml="start",fd="end",dst="clippingParents",tI="viewport",vc="popper",ust="reference",rA=Od.reduce(function(n,e){return n.concat([e+"-"+Ml,e+"-"+fd])},[]),nI=[].concat(Od,[fy]).reduce(function(n,e){return n.concat([e,e+"-"+Ml,e+"-"+fd])},[]),pst="beforeRead",hst="read",mst="afterRead",fst="beforeMain",gst="main",_st="afterMain",bst="beforeWrite",vst="write",yst="afterWrite",Est=[pst,hst,mst,fst,gst,_st,bst,vst,yst];function Zi(n){return n?(n.nodeName||"").toLowerCase():null}function Hr(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function Ea(n){var e=Hr(n).Element;return n instanceof e||n instanceof Element}function ci(n){var e=Hr(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function gy(n){if(typeof ShadowRoot>"u")return!1;var e=Hr(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function Sst(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var r=e.styles[t]||{},i=e.attributes[t]||{},s=e.elements[t];!ci(s)||!Zi(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(o){var a=i[o];a===!1?s.removeAttribute(o):s.setAttribute(o,a===!0?"":a)}))})}function xst(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],s=e.attributes[r]||{},o=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:t[r]),a=o.reduce(function(l,d){return l[d]="",l},{});!ci(i)||!Zi(i)||(Object.assign(i.style,a),Object.keys(s).forEach(function(l){i.removeAttribute(l)}))})}}const Tst={name:"applyStyles",enabled:!0,phase:"write",fn:Sst,effect:xst,requires:["computeStyles"]};function ji(n){return n.split("-")[0]}var ua=Math.max,Vp=Math.min,Nl=Math.round;function x1(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function rI(){return!/^((?!chrome|android).)*safari/i.test(x1())}function kl(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var r=n.getBoundingClientRect(),i=1,s=1;e&&ci(n)&&(i=n.offsetWidth>0&&Nl(r.width)/n.offsetWidth||1,s=n.offsetHeight>0&&Nl(r.height)/n.offsetHeight||1);var o=Ea(n)?Hr(n):window,a=o.visualViewport,l=!rI()&&t,d=(r.left+(l&&a?a.offsetLeft:0))/i,u=(r.top+(l&&a?a.offsetTop:0))/s,m=r.width/i,f=r.height/s;return{width:m,height:f,top:u,right:d+m,bottom:u+f,left:d,x:d,y:u}}function _y(n){var e=kl(n),t=n.offsetWidth,r=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:r}}function iI(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&gy(t)){var r=e;do{if(r&&n.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ps(n){return Hr(n).getComputedStyle(n)}function wst(n){return["table","td","th"].indexOf(Zi(n))>=0}function Fo(n){return((Ea(n)?n.ownerDocument:n.document)||window.document).documentElement}function nm(n){return Zi(n)==="html"?n:n.assignedSlot||n.parentNode||(gy(n)?n.host:null)||Fo(n)}function iA(n){return!ci(n)||Ps(n).position==="fixed"?null:n.offsetParent}function Cst(n){var e=/firefox/i.test(x1()),t=/Trident/i.test(x1());if(t&&ci(n)){var r=Ps(n);if(r.position==="fixed")return null}var i=nm(n);for(gy(i)&&(i=i.host);ci(i)&&["html","body"].indexOf(Zi(i))<0;){var s=Ps(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function Dd(n){for(var e=Hr(n),t=iA(n);t&&wst(t)&&Ps(t).position==="static";)t=iA(t);return t&&(Zi(t)==="html"||Zi(t)==="body"&&Ps(t).position==="static")?e:t||Cst(n)||e}function by(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function Yc(n,e,t){return ua(n,Vp(e,t))}function Ast(n,e,t){var r=Yc(n,e,t);return r>t?t:r}function sI(){return{top:0,right:0,bottom:0,left:0}}function oI(n){return Object.assign({},sI(),n)}function aI(n,e){return e.reduce(function(t,r){return t[r]=n,t},{})}var Rst=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,oI(typeof e!="number"?e:aI(e,Od))};function Mst(n){var e,t=n.state,r=n.name,i=n.options,s=t.elements.arrow,o=t.modifiersData.popperOffsets,a=ji(t.placement),l=by(a),d=[Nr,gi].indexOf(a)>=0,u=d?"height":"width";if(!(!s||!o)){var m=Rst(i.padding,t),f=_y(s),g=l==="y"?Mr:Nr,h=l==="y"?fi:gi,v=t.rects.reference[u]+t.rects.reference[l]-o[l]-t.rects.popper[u],b=o[l]-t.rects.reference[l],_=Dd(s),y=_?l==="y"?_.clientHeight||0:_.clientWidth||0:0,E=v/2-b/2,x=m[g],A=y-f[u]-m[h],w=y/2-f[u]/2+E,N=Yc(x,w,A),L=l;t.modifiersData[r]=(e={},e[L]=N,e.centerOffset=N-w,e)}}function Nst(n){var e=n.state,t=n.options,r=t.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||iI(e.elements.popper,i)&&(e.elements.arrow=i))}const kst={name:"arrow",enabled:!0,phase:"main",fn:Mst,effect:Nst,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Il(n){return n.split("-")[1]}var Ist={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ost(n,e){var t=n.x,r=n.y,i=e.devicePixelRatio||1;return{x:Nl(t*i)/i||0,y:Nl(r*i)/i||0}}function sA(n){var e,t=n.popper,r=n.popperRect,i=n.placement,s=n.variation,o=n.offsets,a=n.position,l=n.gpuAcceleration,d=n.adaptive,u=n.roundOffsets,m=n.isFixed,f=o.x,g=f===void 0?0:f,h=o.y,v=h===void 0?0:h,b=typeof u=="function"?u({x:g,y:v}):{x:g,y:v};g=b.x,v=b.y;var _=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),E=Nr,x=Mr,A=window;if(d){var w=Dd(t),N="clientHeight",L="clientWidth";if(w===Hr(t)&&(w=Fo(t),Ps(w).position!=="static"&&a==="absolute"&&(N="scrollHeight",L="scrollWidth")),w=w,i===Mr||(i===Nr||i===gi)&&s===fd){x=fi;var C=m&&w===A&&A.visualViewport?A.visualViewport.height:w[N];v-=C-r.height,v*=l?1:-1}if(i===Nr||(i===Mr||i===fi)&&s===fd){E=gi;var k=m&&w===A&&A.visualViewport?A.visualViewport.width:w[L];g-=k-r.width,g*=l?1:-1}}var H=Object.assign({position:a},d&&Ist),q=u===!0?Ost({x:g,y:v},Hr(t)):{x:g,y:v};if(g=q.x,v=q.y,l){var ie;return Object.assign({},H,(ie={},ie[x]=y?"0":"",ie[E]=_?"0":"",ie.transform=(A.devicePixelRatio||1)<=1?"translate("+g+"px, "+v+"px)":"translate3d("+g+"px, "+v+"px, 0)",ie))}return Object.assign({},H,(e={},e[x]=y?v+"px":"",e[E]=_?g+"px":"",e.transform="",e))}function Dst(n){var e=n.state,t=n.options,r=t.gpuAcceleration,i=r===void 0?!0:r,s=t.adaptive,o=s===void 0?!0:s,a=t.roundOffsets,l=a===void 0?!0:a,d={placement:ji(e.placement),variation:Il(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,sA(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,sA(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Lst={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Dst,data:{}};var fu={passive:!0};function Pst(n){var e=n.state,t=n.instance,r=n.options,i=r.scroll,s=i===void 0?!0:i,o=r.resize,a=o===void 0?!0:o,l=Hr(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&d.forEach(function(u){u.addEventListener("scroll",t.update,fu)}),a&&l.addEventListener("resize",t.update,fu),function(){s&&d.forEach(function(u){u.removeEventListener("scroll",t.update,fu)}),a&&l.removeEventListener("resize",t.update,fu)}}const Fst={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Pst,data:{}};var Ust={left:"right",right:"left",bottom:"top",top:"bottom"};function pp(n){return n.replace(/left|right|bottom|top/g,function(e){return Ust[e]})}var Bst={start:"end",end:"start"};function oA(n){return n.replace(/start|end/g,function(e){return Bst[e]})}function vy(n){var e=Hr(n),t=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:t,scrollTop:r}}function yy(n){return kl(Fo(n)).left+vy(n).scrollLeft}function Gst(n,e){var t=Hr(n),r=Fo(n),i=t.visualViewport,s=r.clientWidth,o=r.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;var d=rI();(d||!d&&e==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a+yy(n),y:l}}function zst(n){var e,t=Fo(n),r=vy(n),i=(e=n.ownerDocument)==null?void 0:e.body,s=ua(t.scrollWidth,t.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=ua(t.scrollHeight,t.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+yy(n),l=-r.scrollTop;return Ps(i||t).direction==="rtl"&&(a+=ua(t.clientWidth,i?i.clientWidth:0)-s),{width:s,height:o,x:a,y:l}}function Ey(n){var e=Ps(n),t=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+i+r)}function lI(n){return["html","body","#document"].indexOf(Zi(n))>=0?n.ownerDocument.body:ci(n)&&Ey(n)?n:lI(nm(n))}function $c(n,e){var t;e===void 0&&(e=[]);var r=lI(n),i=r===((t=n.ownerDocument)==null?void 0:t.body),s=Hr(r),o=i?[s].concat(s.visualViewport||[],Ey(r)?r:[]):r,a=e.concat(o);return i?a:a.concat($c(nm(o)))}function T1(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function Vst(n,e){var t=kl(n,!1,e==="fixed");return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function aA(n,e,t){return e===tI?T1(Gst(n,t)):Ea(e)?Vst(e,t):T1(zst(Fo(n)))}function Hst(n){var e=$c(nm(n)),t=["absolute","fixed"].indexOf(Ps(n).position)>=0,r=t&&ci(n)?Dd(n):n;return Ea(r)?e.filter(function(i){return Ea(i)&&iI(i,r)&&Zi(i)!=="body"}):[]}function qst(n,e,t,r){var i=e==="clippingParents"?Hst(n):[].concat(e),s=[].concat(i,[t]),o=s[0],a=s.reduce(function(l,d){var u=aA(n,d,r);return l.top=ua(u.top,l.top),l.right=Vp(u.right,l.right),l.bottom=Vp(u.bottom,l.bottom),l.left=ua(u.left,l.left),l},aA(n,o,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function cI(n){var e=n.reference,t=n.element,r=n.placement,i=r?ji(r):null,s=r?Il(r):null,o=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2,l;switch(i){case Mr:l={x:o,y:e.y-t.height};break;case fi:l={x:o,y:e.y+e.height};break;case gi:l={x:e.x+e.width,y:a};break;case Nr:l={x:e.x-t.width,y:a};break;default:l={x:e.x,y:e.y}}var d=i?by(i):null;if(d!=null){var u=d==="y"?"height":"width";switch(s){case Ml:l[d]=l[d]-(e[u]/2-t[u]/2);break;case fd:l[d]=l[d]+(e[u]/2-t[u]/2);break}}return l}function gd(n,e){e===void 0&&(e={});var t=e,r=t.placement,i=r===void 0?n.placement:r,s=t.strategy,o=s===void 0?n.strategy:s,a=t.boundary,l=a===void 0?dst:a,d=t.rootBoundary,u=d===void 0?tI:d,m=t.elementContext,f=m===void 0?vc:m,g=t.altBoundary,h=g===void 0?!1:g,v=t.padding,b=v===void 0?0:v,_=oI(typeof b!="number"?b:aI(b,Od)),y=f===vc?ust:vc,E=n.rects.popper,x=n.elements[h?y:f],A=qst(Ea(x)?x:x.contextElement||Fo(n.elements.popper),l,u,o),w=kl(n.elements.reference),N=cI({reference:w,element:E,strategy:"absolute",placement:i}),L=T1(Object.assign({},E,N)),C=f===vc?L:w,k={top:A.top-C.top+_.top,bottom:C.bottom-A.bottom+_.bottom,left:A.left-C.left+_.left,right:C.right-A.right+_.right},H=n.modifiersData.offset;if(f===vc&&H){var q=H[i];Object.keys(k).forEach(function(ie){var D=[gi,fi].indexOf(ie)>=0?1:-1,$=[Mr,fi].indexOf(ie)>=0?"y":"x";k[ie]+=q[$]*D})}return k}function Yst(n,e){e===void 0&&(e={});var t=e,r=t.placement,i=t.boundary,s=t.rootBoundary,o=t.padding,a=t.flipVariations,l=t.allowedAutoPlacements,d=l===void 0?nI:l,u=Il(r),m=u?a?rA:rA.filter(function(h){return Il(h)===u}):Od,f=m.filter(function(h){return d.indexOf(h)>=0});f.length===0&&(f=m);var g=f.reduce(function(h,v){return h[v]=gd(n,{placement:v,boundary:i,rootBoundary:s,padding:o})[ji(v)],h},{});return Object.keys(g).sort(function(h,v){return g[h]-g[v]})}function $st(n){if(ji(n)===fy)return[];var e=pp(n);return[oA(n),e,oA(e)]}function Wst(n){var e=n.state,t=n.options,r=n.name;if(!e.modifiersData[r]._skip){for(var i=t.mainAxis,s=i===void 0?!0:i,o=t.altAxis,a=o===void 0?!0:o,l=t.fallbackPlacements,d=t.padding,u=t.boundary,m=t.rootBoundary,f=t.altBoundary,g=t.flipVariations,h=g===void 0?!0:g,v=t.allowedAutoPlacements,b=e.options.placement,_=ji(b),y=_===b,E=l||(y||!h?[pp(b)]:$st(b)),x=[b].concat(E).reduce(function(Ae,Fe){return Ae.concat(ji(Fe)===fy?Yst(e,{placement:Fe,boundary:u,rootBoundary:m,padding:d,flipVariations:h,allowedAutoPlacements:v}):Fe)},[]),A=e.rects.reference,w=e.rects.popper,N=new Map,L=!0,C=x[0],k=0;k=0,$=D?"width":"height",K=gd(e,{placement:H,boundary:u,rootBoundary:m,altBoundary:f,padding:d}),B=D?ie?gi:Nr:ie?fi:Mr;A[$]>w[$]&&(B=pp(B));var Z=pp(B),ce=[];if(s&&ce.push(K[q]<=0),a&&ce.push(K[B]<=0,K[Z]<=0),ce.every(function(Ae){return Ae})){C=H,L=!1;break}N.set(H,ce)}if(L)for(var ue=h?3:1,xe=function(Fe){var ze=x.find(function(te){var ye=N.get(te);if(ye)return ye.slice(0,Fe).every(function(Se){return Se})});if(ze)return C=ze,"break"},Ce=ue;Ce>0;Ce--){var me=xe(Ce);if(me==="break")break}e.placement!==C&&(e.modifiersData[r]._skip=!0,e.placement=C,e.reset=!0)}}const Kst={name:"flip",enabled:!0,phase:"main",fn:Wst,requiresIfExists:["offset"],data:{_skip:!1}};function lA(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function cA(n){return[Mr,gi,fi,Nr].some(function(e){return n[e]>=0})}function jst(n){var e=n.state,t=n.name,r=e.rects.reference,i=e.rects.popper,s=e.modifiersData.preventOverflow,o=gd(e,{elementContext:"reference"}),a=gd(e,{altBoundary:!0}),l=lA(o,r),d=lA(a,i,s),u=cA(l),m=cA(d);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:m},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":m})}const Qst={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:jst};function Xst(n,e,t){var r=ji(n),i=[Nr,Mr].indexOf(r)>=0?-1:1,s=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,o=s[0],a=s[1];return o=o||0,a=(a||0)*i,[Nr,gi].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}function Zst(n){var e=n.state,t=n.options,r=n.name,i=t.offset,s=i===void 0?[0,0]:i,o=nI.reduce(function(u,m){return u[m]=Xst(m,e.rects,s),u},{}),a=o[e.placement],l=a.x,d=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=d),e.modifiersData[r]=o}const Jst={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Zst};function eot(n){var e=n.state,t=n.name;e.modifiersData[t]=cI({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const tot={name:"popperOffsets",enabled:!0,phase:"read",fn:eot,data:{}};function not(n){return n==="x"?"y":"x"}function rot(n){var e=n.state,t=n.options,r=n.name,i=t.mainAxis,s=i===void 0?!0:i,o=t.altAxis,a=o===void 0?!1:o,l=t.boundary,d=t.rootBoundary,u=t.altBoundary,m=t.padding,f=t.tether,g=f===void 0?!0:f,h=t.tetherOffset,v=h===void 0?0:h,b=gd(e,{boundary:l,rootBoundary:d,padding:m,altBoundary:u}),_=ji(e.placement),y=Il(e.placement),E=!y,x=by(_),A=not(x),w=e.modifiersData.popperOffsets,N=e.rects.reference,L=e.rects.popper,C=typeof v=="function"?v(Object.assign({},e.rects,{placement:e.placement})):v,k=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),H=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,q={x:0,y:0};if(w){if(s){var ie,D=x==="y"?Mr:Nr,$=x==="y"?fi:gi,K=x==="y"?"height":"width",B=w[x],Z=B+b[D],ce=B-b[$],ue=g?-L[K]/2:0,xe=y===Ml?N[K]:L[K],Ce=y===Ml?-L[K]:-N[K],me=e.elements.arrow,Ae=g&&me?_y(me):{width:0,height:0},Fe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:sI(),ze=Fe[D],te=Fe[$],ye=Yc(0,N[K],Ae[K]),Se=E?N[K]/2-ue-ye-ze-k.mainAxis:xe-ye-ze-k.mainAxis,Oe=E?-N[K]/2+ue+ye+te+k.mainAxis:Ce+ye+te+k.mainAxis,Ye=e.elements.arrow&&Dd(e.elements.arrow),le=Ye?x==="y"?Ye.clientTop||0:Ye.clientLeft||0:0,V=(ie=H==null?void 0:H[x])!=null?ie:0,G=B+Se-V-le,oe=B+Oe-V,ge=Yc(g?Vp(Z,G):Z,B,g?ua(ce,oe):ce);w[x]=ge,q[x]=ge-B}if(a){var Ee,Te=x==="x"?Mr:Nr,fe=x==="x"?fi:gi,Ue=w[A],Pe=A==="y"?"height":"width",Re=Ue+b[Te],U=Ue-b[fe],I=[Mr,Nr].indexOf(_)!==-1,ee=(Ee=H==null?void 0:H[A])!=null?Ee:0,we=I?Re:Ue-N[Pe]-L[Pe]-ee+k.altAxis,ne=I?Ue+N[Pe]+L[Pe]-ee-k.altAxis:U,pe=g&&I?Ast(we,Ue,ne):Yc(g?we:Re,Ue,g?ne:U);w[A]=pe,q[A]=pe-Ue}e.modifiersData[r]=q}}const iot={name:"preventOverflow",enabled:!0,phase:"main",fn:rot,requiresIfExists:["offset"]};function sot(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function oot(n){return n===Hr(n)||!ci(n)?vy(n):sot(n)}function aot(n){var e=n.getBoundingClientRect(),t=Nl(e.width)/n.offsetWidth||1,r=Nl(e.height)/n.offsetHeight||1;return t!==1||r!==1}function lot(n,e,t){t===void 0&&(t=!1);var r=ci(e),i=ci(e)&&aot(e),s=Fo(e),o=kl(n,i,t),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!t)&&((Zi(e)!=="body"||Ey(s))&&(a=oot(e)),ci(e)?(l=kl(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):s&&(l.x=yy(s))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function cot(n){var e=new Map,t=new Set,r=[];n.forEach(function(s){e.set(s.name,s)});function i(s){t.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(a){if(!t.has(a)){var l=e.get(a);l&&i(l)}}),r.push(s)}return n.forEach(function(s){t.has(s.name)||i(s)}),r}function dot(n){var e=cot(n);return Est.reduce(function(t,r){return t.concat(e.filter(function(i){return i.phase===r}))},[])}function uot(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function pot(n){var e=n.reduce(function(t,r){var i=t[r.name];return t[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,t},{});return Object.keys(e).map(function(t){return e[t]})}var dA={placement:"bottom",modifiers:[],strategy:"absolute"};function uA(){for(var n=arguments.length,e=new Array(n),t=0;t{this.createPopper()})},closeMenu(n){var e;!this.$el.contains(n.target)&&!((e=this.$refs.dropdown)!=null&&e.contains(n.target))&&(this.isOpen=!1)},createPopper(){const n=this.$el.querySelector("button"),e=this.$refs.dropdown;n&&e&&(this.popperInstance=rm(n,e,{placement:"bottom-end",modifiers:[{name:"flip",options:{fallbackPlacements:["top-end","bottom-start","top-start"]}},{name:"preventOverflow",options:{boundary:document.body}}]}))}}},got={class:"relative inline-block text-left"},_ot={key:0,ref:"dropdown",class:"z-50 w-56 rounded-md shadow-lg bg-white dark:bg-gray-800 ring-1 ring-black ring-opacity-5 dark:ring-white dark:ring-opacity-20 focus:outline-none dropdown-shadow text-gray-700 dark:text-white"},bot={class:"py-1",role:"menu","aria-orientation":"vertical","aria-labelledby":"options-menu"};function vot(n,e,t,r,i,s){const o=ht("ToolbarButton");return T(),M("div",got,[c("div",null,[W(o,{onClick:J(s.toggleMenu,["stop"]),title:t.title,icon:"code"},null,8,["onClick","title"])]),(T(),Tt(hD,{to:"body"},[i.isOpen?(T(),M("div",_ot,[c("div",bot,[On(n.$slots,"default",{},void 0,!0)])],512)):Y("",!0)]))])}const dI=bt(fot,[["render",vot],["__scopeId","data-v-6c3ea3a5"]]);async function pA(n,e="",t=[]){return new Promise((r,i)=>{const s=document.createElement("div");s.className="fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 z-50",t.length===0?s.innerHTML=` + c5.2,0.6,10.3-1.2,14-4.9l58.2-58.2c6.7-6.7,6.7-17.6,0-24.3l-16.3-16.3l48.3-48.3l160.3,160.3L400.425,250.025z`})],-1)]),8,drt))],8,crt),W(o),c("div",{class:"toolbar-button",onMouseleave:e[5]||(e[5]=(...b)=>s.hideInfosMenu&&s.hideInfosMenu(...b))},[c("div",urt,[i.isInfosMenuVisible?(T(),M("div",{key:0,onMouseenter:e[3]||(e[3]=(...b)=>s.showInfosMenu&&s.showInfosMenu(...b)),class:"absolute m-0 p-0 z-50 top-full right-0 transform bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[c("div",prt,[c("div",hrt,[s.isModelOK?(T(),M("div",mrt,e[16]||(e[16]=[c("svg",{class:"w-8 h-8",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),c("path",{d:"M9 12L11 14L15 10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))):(T(),M("div",frt,e[17]||(e[17]=[c("svg",{class:"w-8 h-8",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),c("path",{d:"M15 9L9 15",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),c("path",{d:"M9 9L15 15",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))),s.isGenerating?(T(),M("div",_rt,e[19]||(e[19]=[c("svg",{class:"w-6 h-6 animate-spin",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1)]))):(T(),M("div",grt,e[18]||(e[18]=[c("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 21v-4m0 0V5a2 2 0 012-2h6.5l1 1H21l-3 6 3 6h-8.5l-1-1H5a2 2 0 00-2 2zm9-13.5V9"})],-1)]))),s.isConnected?(T(),M("div",brt,e[20]||(e[20]=[c("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 10V3L4 14h7v7l9-11h-7z"})],-1)]))):(T(),M("div",vrt,e[21]||(e[21]=[c("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636"})],-1)])))]),c("div",yrt,[W(a,{onClick:n.restartProgram,icon:"power",title:"restart program"},null,8,["onClick"]),W(a,{onClick:s.refreshPage,icon:"refresh-ccw",title:"refresh page"},null,8,["onClick"]),W(a,{href:"/docs",icon:"file-text",title:"Fast API doc"})]),W(l,{href:"https://github.com/ParisNeo/lollms-webui",icon:"github"}),W(l,{href:"https://www.youtube.com/channel/UCJzrg0cyQV2Z30SQ1v2FdSQ",icon:"youtube"}),W(l,{href:"https://x.com/ParisNeo_AI",icon:"x"}),W(l,{href:"https://discord.com/channels/1092918764925882418",icon:"discord"}),c("div",Ert,[c("div",{onClick:e[2]||(e[2]=b=>s.showNews()),class:"text-2xl w-8 h-8 cursor-pointer transition-colors duration-300 text-gray-600 hover:text-primary dark:text-gray-300 dark:hover:text-primary"},e[22]||(e[22]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"w-full h-full"},[c("path",{d:"M19 20H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v1m2 13a2 2 0 0 1-2-2V7m2 13a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"})],-1)])),e[23]||(e[23]=c("span",{class:"absolute hidden group-hover:block bg-gray-800 text-white text-xs rounded py-1 px-2 top-full left-1/2 transform -translate-x-1/2 mt-2 whitespace-nowrap"}," Lollms News ",-1))])])],32)):Y("",!0),c("div",{onMouseenter:e[4]||(e[4]=(...b)=>s.showInfosMenu&&s.showInfosMenu(...b)),class:"infos-hover-area"},e[24]||(e[24]=[yo('',1)]),32)])],32),s.is_fun_mode?(T(),M("div",{key:0,title:"Fun mode is on, press to turn off",class:"w-8 h-8 cursor-pointer text-green-500 dark:text-green-400 hover:text-green-600 dark:hover:text-green-300 transition-colors duration-300",onClick:e[6]||(e[6]=b=>s.fun_mode_off())},e[25]||(e[25]=[yo('',1)]))):(T(),M("div",{key:1,title:"Fun mode is off, press to turn on",class:"w-8 h-8 cursor-pointer text-gray-500 dark:text-gray-400 hover:text-gray-600 dark:hover:text-gray-300 transition-colors duration-300",onClick:e[7]||(e[7]=b=>s.fun_mode_on())},e[26]||(e[26]=[yo('',1)]))),c("span",Srt,X(s.is_fun_mode?"Turn off fun mode":"Turn on fun mode"),1),c("div",xrt,[c("button",{onClick:e[8]||(e[8]=(...b)=>s.toggleLanguageMenu&&s.toggleLanguageMenu(...b)),class:"bg-transparent text-black dark:text-white py-1 px-1 rounded font-bold uppercase transition-colors duration-300 hover:bg-blue-500"},X(n.$store.state.language.slice(0,2)),1),i.isLanguageMenuVisible?(T(),M("div",Trt,[c("ul",wrt,[(T(!0),M(je,null,at(s.languages,b=>(T(),M("li",{key:b,class:"relative flex items-center",style:{"padding-left":"0","margin-left":"0"}},[c("button",{onClick:_=>s.deleteLanguage(b),class:"mr-2 text-red-500 hover:text-white hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-opacity-50 rounded-full"},"✕",8,Crt),c("div",{onClick:_=>s.selectLanguage(b),class:qe({"cursor-pointer hover:bg-blue-500 hover:text-white py-2 px-4 block whitespace-no-wrap":!0,"bg-blue-500 text-white":b===n.$store.state.language,"flex-grow":!0})},X(b),11,Art)]))),128)),c("li",Rrt,[F(c("input",{type:"text","onUpdate:modelValue":e[9]||(e[9]=b=>n.customLanguage=b),onKeyup:e[10]||(e[10]=ui(J((...b)=>s.addCustomLanguage&&s.addCustomLanguage(...b),["prevent"]),["enter"])),placeholder:"Enter language...",class:"bg-transparent border border-gray-300 rounded py-0 px-0 mx-0 my-1 w-full"},null,544),[[_e,n.customLanguage]])])])],512)):Y("",!0)]),s.isDarkMode?(T(),M("div",{key:2,class:"sun text-2xl w-6 hover:text-primary duration-150 cursor-pointer",title:"Switch to Light theme",onClick:e[11]||(e[11]=b=>s.themeSwitch())},e[27]||(e[27]=[c("i",{"data-feather":"sun"},null,-1)]))):(T(),M("div",{key:3,class:"moon text-2xl w-6 hover:text-primary duration-150 cursor-pointer",title:"Switch to Dark theme",onClick:e[12]||(e[12]=b=>s.themeSwitch())},e[28]||(e[28]=[c("i",{"data-feather":"moon"},null,-1)]))),c("div",Mrt,[c("button",{onClick:e[13]||(e[13]=J((...b)=>s.toggleThemeDropDown&&s.toggleThemeDropDown(...b),["stop"])),class:"inline-flex items-center justify-between w-40 px-4 py-2 bg-gradient-to-r from-blue-500/10 to-purple-500/10 dark:from-blue-400/20 dark:to-purple-400/20 border border-blue-200 dark:border-blue-700 rounded-lg shadow-sm text-gray-700 dark:text-gray-200 hover:from-blue-500/20 hover:to-purple-500/20 dark:hover:from-blue-400/30 dark:hover:to-purple-400/30 hover:border-blue-300 dark:hover:border-blue-600 hover:shadow-md focus:outline-none focus:ring-2 focus:ring-blue-500/50 transition-all duration-300 ease-in-out backdrop-blur-sm"},[c("div",Nrt,[e[29]||(e[29]=c("svg",{class:"w-5 h-5 flex-shrink-0 text-blue-500 dark:text-blue-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01"})],-1)),c("span",krt,X(i.currentTheme),1)]),(T(),M("svg",{class:qe(["w-5 h-5 flex-shrink-0 text-blue-500 dark:text-blue-400 transition-transform duration-300",{"rotate-180":i.themeDropdownOpen}]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},e[30]||(e[30]=[c("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"},null,-1)]),2))]),W(ji,{"enter-active-class":"transition duration-200 ease-out","enter-from-class":"transform scale-95 opacity-0","enter-to-class":"transform scale-100 opacity-100","leave-active-class":"transition duration-75 ease-in","leave-from-class":"transform scale-100 opacity-100","leave-to-class":"transform scale-95 opacity-0"},{default:Ge(()=>[i.themeDropdownOpen?(T(),M("div",Irt,[c("div",Ort,[(T(!0),M(je,null,at(i.availableThemes,b=>(T(),M("a",{key:b,onClick:_=>{s.loadTheme(b),i.currentTheme=b,i.themeDropdownOpen=!1},class:"flex items-center space-x-3 px-4 py-3 text-gray-700 dark:text-gray-200 hover:bg-gradient-to-r hover:from-blue-50 hover:to-purple-50 dark:hover:from-blue-900/30 dark:hover:to-purple-900/30 cursor-pointer transition-colors duration-150 group"},[e[31]||(e[31]=c("div",{class:"w-2 h-2 rounded-full bg-blue-400 group-hover:bg-blue-500 transition-colors duration-150"},null,-1)),c("span",Lrt,X(b),1)],8,Drt))),128))])])):Y("",!0)]),_:1})])])],34)],2),F(c("div",Prt,[W(d,{ref:"progress",progress:n.progress_value,class:"w-full h-4"},null,8,["progress"]),c("p",Frt,X(n.loading_infos)+" ...",1)],512),[[Dt,n.progress_visibility]]),W(u,{"prompt-text":"Enter the url to the page to use as discussion support",onOk:n.addWebpage,ref:"web_url_input_box"},null,8,["onOk"]),W(m,{ref:"skills_lib"},null,512),W(f,{ref:"toast"},null,512),W(g,{ref:"messageBox"},null,512),W(h,{ref:"yesNoDialog",class:"z-20"},null,512),W(v,{ref:"universalForm",class:"z-20"},null,512)],64)}const Brt=bt(art,[["render",Urt],["__scopeId","data-v-84d35012"]]),Grt={class:"flex overflow-hidden flex-grow w-full"},zrt={__name:"App",setup(n){return(e,t)=>(T(),M("div",{class:qe([e.currentTheme,"flex flex-col h-screen font-sans background-color text-slate-950 dark:bg-bg-dark dark:text-slate-50 w-full overflow-hidden"])},[W(Brt),c("div",Grt,[W(Pt(W3),null,{default:Ge(({Component:r})=>[(T(),Tt(_D,null,[(T(),Tt(Sh(r)))],1024))]),_:1})])],2))}},Zi=Object.create(null);Zi.open="0";Zi.close="1";Zi.ping="2";Zi.pong="3";Zi.message="4";Zi.upgrade="5";Zi.noop="6";const ap=Object.create(null);Object.keys(Zi).forEach(n=>{ap[Zi[n]]=n});const _1={type:"error",data:"parser error"},kk=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Ik=typeof ArrayBuffer=="function",Ok=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,ly=({type:n,data:e},t,r)=>kk&&e instanceof Blob?t?r(e):ZC(e,r):Ik&&(e instanceof ArrayBuffer||Ok(e))?t?r(e):ZC(new Blob([e]),r):r(Zi[n]+(e||"")),ZC=(n,e)=>{const t=new FileReader;return t.onload=function(){const r=t.result.split(",")[1];e("b"+(r||""))},t.readAsDataURL(n)};function JC(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let W0;function Vrt(n,e){if(kk&&n.data instanceof Blob)return n.data.arrayBuffer().then(JC).then(e);if(Ik&&(n.data instanceof ArrayBuffer||Ok(n.data)))return e(JC(n.data));ly(n,!1,t=>{W0||(W0=new TextEncoder),e(W0.encode(t))})}const eA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Oc=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n{let e=n.length*.75,t=n.length,r,i=0,s,o,a,l;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);const d=new ArrayBuffer(e),u=new Uint8Array(d);for(r=0;r>4,u[i++]=(o&15)<<4|a>>2,u[i++]=(a&3)<<6|l&63;return d},qrt=typeof ArrayBuffer=="function",cy=(n,e)=>{if(typeof n!="string")return{type:"message",data:Dk(n,e)};const t=n.charAt(0);return t==="b"?{type:"message",data:Yrt(n.substring(1),e)}:ap[t]?n.length>1?{type:ap[t],data:n.substring(1)}:{type:ap[t]}:_1},Yrt=(n,e)=>{if(qrt){const t=Hrt(n);return Dk(t,e)}else return{base64:!0,data:n}},Dk=(n,e)=>{switch(e){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},Lk="",$rt=(n,e)=>{const t=n.length,r=new Array(t);let i=0;n.forEach((s,o)=>{ly(s,!1,a=>{r[o]=a,++i===t&&e(r.join(Lk))})})},Wrt=(n,e)=>{const t=n.split(Lk),r=[];for(let i=0;i{const r=t.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const s=new DataView(i.buffer);s.setUint8(0,126),s.setUint16(1,r)}else{i=new Uint8Array(9);const s=new DataView(i.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(r))}n.data&&typeof n.data!="string"&&(i[0]|=128),e.enqueue(i),e.enqueue(t)})}})}let K0;function hu(n){return n.reduce((e,t)=>e+t.length,0)}function mu(n,e){if(n[0].length===e)return n.shift();const t=new Uint8Array(e);let r=0;for(let i=0;iMath.pow(2,21)-1){a.enqueue(_1);break}i=u*Math.pow(2,32)+d.getUint32(4),r=3}else{if(hu(t)n){a.enqueue(_1);break}}}})}const Pk=4;function Dn(n){if(n)return Qrt(n)}function Qrt(n){for(var e in Dn.prototype)n[e]=Dn.prototype[e];return n}Dn.prototype.on=Dn.prototype.addEventListener=function(n,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(e),this};Dn.prototype.once=function(n,e){function t(){this.off(n,t),e.apply(this,arguments)}return t.fn=e,this.on(n,t),this};Dn.prototype.off=Dn.prototype.removeListener=Dn.prototype.removeAllListeners=Dn.prototype.removeEventListener=function(n,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+n];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var r,i=0;iPromise.resolve().then(e):(e,t)=>t(e,0),Xr=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Xrt="arraybuffer";function Fk(n,...e){return e.reduce((t,r)=>(n.hasOwnProperty(r)&&(t[r]=n[r]),t),{})}const Zrt=Xr.setTimeout,Jrt=Xr.clearTimeout;function em(n,e){e.useNativeTimers?(n.setTimeoutFn=Zrt.bind(Xr),n.clearTimeoutFn=Jrt.bind(Xr)):(n.setTimeoutFn=Xr.setTimeout.bind(Xr),n.clearTimeoutFn=Xr.clearTimeout.bind(Xr))}const eit=1.33;function tit(n){return typeof n=="string"?nit(n):Math.ceil((n.byteLength||n.size)*eit)}function nit(n){let e=0,t=0;for(let r=0,i=n.length;r=57344?t+=3:(r++,t+=4);return t}function Uk(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function rit(n){let e="";for(let t in n)n.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(n[t]));return e}function iit(n){let e={},t=n.split("&");for(let r=0,i=t.length;r{this.readyState="paused",e()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||t()})),this.writable||(r++,this.once("drain",function(){--r||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};Wrt(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,$rt(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=Uk()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}}let Bk=!1;try{Bk=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const ait=Bk;function lit(){}class cit extends oit{constructor(e){if(super(e),typeof location<"u"){const t=location.protocol==="https:";let r=location.port;r||(r=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||r!==e.port}}doWrite(e,t){const r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(i,s)=>{this.onError("xhr post error",i,s)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,r)=>{this.onError("xhr poll error",t,r)}),this.pollXhr=e}}let _l=class lp extends Dn{constructor(e,t,r){super(),this.createRequest=e,em(this,r),this._opts=r,this._method=r.method||"GET",this._uri=t,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var e;const t=Fk(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(t);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=lp.requestsCount++,lp.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=lit,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete lp.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};_l.requestsCount=0;_l.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",tA);else if(typeof addEventListener=="function"){const n="onpagehide"in Xr?"pagehide":"unload";addEventListener(n,tA,!1)}}function tA(){for(let n in _l.requests)_l.requests.hasOwnProperty(n)&&_l.requests[n].abort()}const dit=function(){const n=Gk({xdomain:!1});return n&&n.responseType!==null}();class uit extends cit{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=dit&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new _l(Gk,this.uri(),e)}}function Gk(n){const e=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||ait))return new XMLHttpRequest}catch{}if(!e)try{return new Xr[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const zk=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class pit extends dy{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,r=zk?{}:Fk(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t{try{this.doWrite(r,s)}catch{}i&&Jh(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=Uk()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const j0=Xr.WebSocket||Xr.MozWebSocket;class hit extends pit{createSocket(e,t,r){return zk?new j0(e,t,r):t?new j0(e,t):new j0(e)}doWrite(e,t){this.ws.send(t)}}class mit extends dy{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const t=jrt(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),i=Krt();i.readable.pipeTo(e.writable),this._writer=i.writable.getWriter();const s=()=>{r.read().then(({done:a,value:l})=>{a||(this.onPacket(l),s())}).catch(a=>{})};s();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t{i&&Jh(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const fit={websocket:hit,webtransport:mit,polling:uit},git=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,_it=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function b1(n){if(n.length>8e3)throw"URI too long";const e=n,t=n.indexOf("["),r=n.indexOf("]");t!=-1&&r!=-1&&(n=n.substring(0,t)+n.substring(t,r).replace(/:/g,";")+n.substring(r,n.length));let i=git.exec(n||""),s={},o=14;for(;o--;)s[_it[o]]=i[o]||"";return t!=-1&&r!=-1&&(s.source=e,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=bit(s,s.path),s.queryKey=vit(s,s.query),s}function bit(n,e){const t=/\/{2,9}/g,r=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&r.splice(0,1),e.slice(-1)=="/"&&r.splice(r.length-1,1),r}function vit(n,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,s){i&&(t[i]=s)}),t}const v1=typeof addEventListener=="function"&&typeof removeEventListener=="function",cp=[];v1&&addEventListener("offline",()=>{cp.forEach(n=>n())},!1);class Eo extends Dn{constructor(e,t){if(super(),this.binaryType=Xrt,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(t=e,e=null),e){const r=b1(e);t.hostname=r.host,t.secure=r.protocol==="https"||r.protocol==="wss",t.port=r.port,r.query&&(t.query=r.query)}else t.host&&(t.hostname=b1(t.host).host);em(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(r=>{const i=r.prototype.name;this.transports.push(i),this._transportsByName[i]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=iit(this.opts.query)),v1&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},cp.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=Pk,t.transport=e,this.id&&(t.sid=this.id);const r=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&Eo.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",t=>this._onClose("transport close",t))}onOpen(){this.readyState="open",Eo.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let r=0;r0&&t>this._maxPayload)return this.writeBuffer.slice(0,r);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,Jh(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,r){return this._sendPacket("message",e,t,r),this}send(e,t,r){return this._sendPacket("message",e,t,r),this}_sendPacket(e,t,r,i){if(typeof t=="function"&&(i=t,t=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const s={type:e,data:t,options:r};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),i&&this.once("flush",i),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},r=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():e()),this}_onError(e){if(Eo.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),v1&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=cp.indexOf(this._offlineEventListener);r!==-1&&cp.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}Eo.protocol=Pk;class yit extends Eo{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",m=>{if(!r)if(m.type==="pong"&&m.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;Eo.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(u(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=t.name,this.emitReserved("upgradeError",f)}}))};function s(){r||(r=!0,u(),t.close(),t=null)}const o=m=>{const f=new Error("probe error: "+m);f.transport=t.name,s(),this.emitReserved("upgradeError",f)};function a(){o("transport closed")}function l(){o("socket closed")}function d(m){t&&m.name!==t.name&&s()}const u=()=>{t.removeListener("open",i),t.removeListener("error",o),t.removeListener("close",a),this.off("close",l),this.off("upgrading",d)};t.once("open",i),t.once("error",o),t.once("close",a),this.once("close",l),this.once("upgrading",d),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{r||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let r=0;rfit[i]).filter(i=>!!i)),super(e,r)}};function Sit(n,e="",t){let r=n;t=t||typeof location<"u"&&location,n==null&&(n=t.protocol+"//"+t.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=t.protocol+n:n=t.host+n),/^(https?|wss?):\/\//.test(n)||(typeof t<"u"?n=t.protocol+"//"+n:n="https://"+n),r=b1(n)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const s=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+s+":"+r.port+e,r.href=r.protocol+"://"+s+(t&&t.port===r.port?"":":"+r.port),r}const xit=typeof ArrayBuffer=="function",Tit=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,Vk=Object.prototype.toString,wit=typeof Blob=="function"||typeof Blob<"u"&&Vk.call(Blob)==="[object BlobConstructor]",Cit=typeof File=="function"||typeof File<"u"&&Vk.call(File)==="[object FileConstructor]";function uy(n){return xit&&(n instanceof ArrayBuffer||Tit(n))||wit&&n instanceof Blob||Cit&&n instanceof File}function dp(n,e){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let t=0,r=n.length;t=0&&n.num{delete this.acks[e];for(let a=0;a{this.io.clearTimeoutFn(s),t.apply(this,a)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((r,i)=>{const s=(o,a)=>o?i(o):r(a);s.withError=!0,t.push(s),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((i,...s)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(i)):(this._queue.shift(),t&&t(null,...s)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:Wt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(r=>String(r.id)===e)){const r=this.acks[e];delete this.acks[e],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case Wt.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Wt.EVENT:case Wt.BINARY_EVENT:this.onevent(e);break;case Wt.ACK:case Wt.BINARY_ACK:this.onack(e);break;case Wt.DISCONNECT:this.ondisconnect();break;case Wt.CONNECT_ERROR:this.destroy();const r=new Error(e.data.message);r.data=e.data.data,this.emitReserved("connect_error",r);break}}onevent(e){const t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const r of t)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let r=!1;return function(...i){r||(r=!0,t.packet({type:Wt.ACK,id:e,data:i}))}}onack(e){const t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Wt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let r=0;r0&&n.jitter<=1?n.jitter:0,this.attempts=0}ic.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*n);n=Math.floor(e*10)&1?n+t:n-t}return Math.min(n,this.max)|0};ic.prototype.reset=function(){this.attempts=0};ic.prototype.setMin=function(n){this.ms=n};ic.prototype.setMax=function(n){this.max=n};ic.prototype.setJitter=function(n){this.jitter=n};class S1 extends Dn{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,em(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((r=t.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new ic({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;const i=t.parser||Oit;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Eit(this.uri,this.opts);const t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=xi(t,"open",function(){r.onopen(),e&&e()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},o=xi(t,"error",s);if(this._timeout!==!1){const a=this._timeout,l=this.setTimeoutFn(()=>{i(),s(new Error("timeout")),t.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(i),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(xi(e,"ping",this.onping.bind(this)),xi(e,"data",this.ondata.bind(this)),xi(e,"error",this.onerror.bind(this)),xi(e,"close",this.onclose.bind(this)),xi(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){Jh(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new Hk(this,e,t),this.nsps[e]=r),r}_destroy(e){const t=Object.keys(this.nsps);for(const r of t)if(this.nsps[r].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let r=0;re()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(i=>{i?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",i)):e.onreconnect()}))},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const bc={};function up(n,e){typeof n=="object"&&(e=n,n=void 0),e=e||{};const t=Sit(n,e.path||"/socket.io"),r=t.source,i=t.id,s=t.path,o=bc[i]&&s in bc[i].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||o;let l;return a?l=new S1(r,e):(bc[i]||(bc[i]=new S1(r,e)),l=bc[i]),t.query&&!e.query&&(e.query=t.queryKey),l.socket(t.path,e)}Object.assign(up,{Manager:S1,Socket:Hk,io:up,connect:up});const qk="/";console.log(qk);const rt=new up(qk,{reconnection:!0,reconnectionAttempts:10,reconnectionDelay:1e3}),Lit={props:{value:String,inputType:{type:String,default:"text",validator:n=>["text","email","password","file","path","integer","float"].includes(n)},fileAccept:String},data(){return{inputValue:this.value,placeholderText:this.getPlaceholderText()}},watch:{value(n){console.log("Changing value to ",n),this.inputValue=n}},mounted(){We(()=>{Ze.replace()}),console.log("Changing value to ",this.value),this.inputValue=this.value},methods:{handleSliderInput(n){this.inputValue=n.target.value,this.$emit("input",n.target.value)},getPlaceholderText(){switch(this.inputType){case"text":return"Enter text here";case"email":return"Enter your email";case"password":return"Enter your password";case"file":case"path":return"Choose a file";case"integer":return"Enter an integer";case"float":return"Enter a float";default:return"Enter value here"}},handleInput(n){if(this.inputType==="integer"){const e=n.target.value.replace(/[^0-9]/g,"");this.inputValue=e}console.log("handling input : ",n.target.value),this.$emit("input",n.target.value)},async pasteFromClipboard(){try{const n=await navigator.clipboard.readText();this.handleClipboardData(n)}catch(n){console.error("Failed to read from clipboard:",n)}},handlePaste(n){const e=n.clipboardData.getData("text");this.handleClipboardData(e)},handleClipboardData(n){switch(this.inputType){case"email":this.inputValue=this.isValidEmail(n)?n:"";break;case"password":this.inputValue=n;break;case"file":case"path":this.inputValue="";break;case"integer":this.inputValue=this.parseInteger(n);break;case"float":this.inputValue=this.parseFloat(n);break;default:this.inputValue=n;break}},isValidEmail(n){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n)},parseInteger(n){const e=parseInt(n);return isNaN(e)?"":e},parseFloat(n){const e=parseFloat(n);return isNaN(e)?"":e},openFileInput(){this.$refs.fileInput.click()},handleFileInputChange(n){const e=n.target.files[0];e&&(this.inputValue=e.name)}}},Pit={class:"flex items-center space-x-2"},Fit=["value","type","placeholder"],Uit=["value","min","max"],Bit=["accept"];function Git(n,e,t,r,i,s){return T(),M("div",Pit,[n.useSlider?(T(),M("input",{key:1,type:"range",value:parseInt(i.inputValue),min:n.minSliderValue,max:n.maxSliderValue,onInput:e[2]||(e[2]=(...o)=>s.handleSliderInput&&s.handleSliderInput(...o)),class:"flex-1 px-4 py-2 text-lg border dark:bg-gray-600 border-gray-300 rounded-md focus:outline-none focus:ring focus:border-blue-500"},null,40,Uit)):(T(),M("input",{key:0,value:i.inputValue,type:t.inputType,placeholder:i.placeholderText,onInput:e[0]||(e[0]=(...o)=>s.handleInput&&s.handleInput(...o)),onPaste:e[1]||(e[1]=(...o)=>s.handlePaste&&s.handlePaste(...o)),class:"flex-1 px-4 py-2 text-lg dark:bg-gray-600 border border-gray-300 rounded-md focus:outline-none focus:ring focus:border-blue-500"},null,40,Fit)),c("button",{onClick:e[3]||(e[3]=(...o)=>s.pasteFromClipboard&&s.pasteFromClipboard(...o)),class:"p-2 bg-blue-500 dark:bg-gray-600 text-white rounded-md hover:bg-blue-600 focus:outline-none focus:ring focus:border-blue-300"},e[6]||(e[6]=[c("i",{"data-feather":"clipboard"},null,-1)])),t.inputType==="file"?(T(),M("button",{key:2,onClick:e[4]||(e[4]=(...o)=>s.openFileInput&&s.openFileInput(...o)),class:"p-2 bg-blue-500 text-white rounded-md hover:bg-blue-600 focus:outline-none focus:ring focus:border-blue-300"},e[7]||(e[7]=[c("i",{"data-feather":"upload"},null,-1)]))):Y("",!0),t.inputType==="file"?(T(),M("input",{key:3,ref:"fileInput",type:"file",style:{display:"none"},accept:t.fileAccept,onChange:e[5]||(e[5]=(...o)=>s.handleFileInputChange&&s.handleFileInputChange(...o))},null,40,Bit)):Y("",!0)])}const hy=bt(Lit,[["render",Git]]),zit={name:"TokensHighlighter",props:{namedTokens:{type:Object,required:!0}},data(){return{colors:["#FF6633","#FFB399","#FF33FF","#FFFF99","#00B3E6","#E6B333","#3366E6","#999966","#99FF99","#B34D4D","#80B300","#809900","#E6B3B3","#6680B3","#66991A","#FF99E6","#CCFF1A","#FF1A66","#E6331A","#33FFCC","#66994D","#B366CC","#4D8000","#B33300","#CC80CC","#66664D","#991AFF","#E666FF","#4DB3FF","#1AB399","#E666B3","#33991A","#CC9999","#B3B31A","#00E680","#4D8066","#809980","#E6FF80","#1AFF33","#999933","#FF3380","#CCCC00","#66E64D","#4D80CC","#9900B3","#E64D66","#4DB380","#FF4D4D","#99E6E6","#6666FF"]}}},Vit={class:"w-full"},Hit={class:"break-words"},qit={class:"break-words mt-2"},Yit={class:"mt-4"};function $it(n,e,t,r,i,s){return T(),M("div",Vit,[c("div",Hit,[(T(!0),M(je,null,at(t.namedTokens,(o,a)=>(T(),M("span",{key:a},[c("span",{class:"inline-block whitespace-pre-wrap",style:on({backgroundColor:i.colors[a%i.colors.length]})},X(o[0]),5)]))),128))]),c("div",qit,[(T(!0),M(je,null,at(t.namedTokens,(o,a)=>(T(),M("span",{key:a},[c("span",{class:"inline-block px-1 whitespace-pre-wrap",style:on({backgroundColor:i.colors[a%i.colors.length]})},X(o[1]),5)]))),128))]),c("div",Yit,[c("strong",null,"Total Tokens: "+X(t.namedTokens.length),1)])])}const Wit=bt(zit,[["render",$it]]),Kit={name:"ChatBarButton",props:{buttonClass:{type:String,default:"text-gray-600 dark:text-gray-300"}}};function jit(n,e,t,r,i,s){return T(),M("button",G4({class:["p-2 rounded-full transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",[t.buttonClass,"hover:bg-gray-200 dark:hover:bg-gray-700","active:bg-gray-300 dark:active:bg-gray-600"]]},n.$attrs,AD(n.$listeners)),[On(n.$slots,"icon"),On(n.$slots,"default")],16)}const Yk=bt(Kit,[["render",jit]]),Qit={props:{is_subcard:{type:Boolean,default:!1},is_shrunk:{type:Boolean,default:!1},title:{type:String,default:""},isHorizontal:{type:Boolean,default:!1},cardWidth:{type:String,default:"w-3/4"},disableHoverAnimation:{type:Boolean,default:!0},disableFocus:{type:Boolean,default:!1}},data(){return{shrink:this.is_shrunk,isHovered:!1,isActive:!1}},computed:{cardClass(){return["bg-gray-50","border","border-gray-300","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","w-full","p-2.5","dark:bg-gray-500","dark:border-gray-600","dark:placeholder-gray-400","dark:text-white","dark:focus:ring-blue-500","dark:focus:border-blue-500",{"cursor-pointer":!this.isActive&&!this.disableFocus,"w-auto":!this.isActive}]},cardWidthClass(){return this.isActive?this.cardWidth:""}},methods:{toggleCard(){this.disableFocus||(this.isActive=!this.isActive)}}},Xit={key:1,class:"flex flex-wrap"},Zit={key:2,class:"mb-2"};function Jit(n,e,t,r,i,s){return T(),M("div",null,[i.isActive?(T(),M("div",{key:0,class:"overlay",onClick:e[0]||(e[0]=(...o)=>s.toggleCard&&s.toggleCard(...o))})):Y("",!0),F(c("div",{class:qe(["border-blue-300 rounded-lg shadow-lg p-2",s.cardWidthClass,"m-2",{subcard:t.is_subcard},{"bg-white dark:bg-gray-900":!t.is_subcard},{hovered:!t.disableHoverAnimation&&i.isHovered,active:i.isActive}]),onMouseenter:e[2]||(e[2]=o=>i.isHovered=!0),onMouseleave:e[3]||(e[3]=o=>i.isHovered=!1),onClick:e[4]||(e[4]=J((...o)=>s.toggleCard&&s.toggleCard(...o),["self"])),style:on({cursor:this.disableFocus?"":"pointer"})},[t.title?(T(),M("div",{key:0,onClick:e[1]||(e[1]=o=>i.shrink=!0),class:qe([{"text-center p-2 m-2 bg-gray-200":!t.is_subcard},"bg-gray-100 dark:bg-gray-500 rounded-lg pl-2 pr-2 mb-2 font-bold cursor-pointer"])},X(t.title),3)):Y("",!0),t.isHorizontal?(T(),M("div",Xit,[On(n.$slots,"default")])):(T(),M("div",Zit,[On(n.$slots,"default")]))],38),[[Dt,i.shrink===!1]]),t.is_subcard?F((T(),M("div",{key:1,onClick:e[5]||(e[5]=o=>i.shrink=!1),class:"bg-white text-center text-xl bold dark:bg-gray-500 border-blue-300 rounded-lg shadow-lg p-2 h-10 cursor-pointer m-2"},X(t.title),513)),[[Dt,i.shrink===!0]]):F((T(),M("div",{key:2,onClick:e[6]||(e[6]=o=>i.shrink=!1),class:"bg-white text-center text-2xl dark:bg-gray-500 border-2 border-blue-300 rounded-lg shadow-lg p-0 h-7 cursor-pointer hover:h-8 hover:bg-blue-300"}," + ",512)),[[Dt,i.shrink===!0]])])}const tm=bt(Qit,[["render",Jit]]),$k="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20%203H4c-1.103%200-2%20.897-2%202v14c0%201.103.897%202%202%202h16c1.103%200%202-.897%202-2V5c0-1.103-.897-2-2-2zM4%2019V7h16l.002%2012H4z'/%3e%3cpath%20d='M9.293%209.293%205.586%2013l3.707%203.707%201.414-1.414L8.414%2013l2.293-2.293zm5.414%200-1.414%201.414L15.586%2013l-2.293%202.293%201.414%201.414L18.414%2013z'/%3e%3c/svg%3e",Wk="/assets/python_block-Bt12VGEE.png",Kk="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2024.3.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20630%20630'%20style='enable-background:new%200%200%20630%20630;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23EDBF4A;}%20.st1{fill:%230C0C0C;}%20%3c/style%3e%3crect%20class='st0'%20width='630'%20height='630'/%3e%3cpath%20class='st1'%20d='M423.2,492.2c12.7,20.7,29.2,36,58.4,36c24.5,0,40.2-12.3,40.2-29.2c0-20.3-16.1-27.5-43.1-39.3l-14.8-6.4%20c-42.7-18.2-71.1-41-71.1-89.2c0-44.4,33.8-78.2,86.7-78.2c37.6,0,64.7,13.1,84.2,47.4l-46.1,29.6c-10.1-18.2-21.1-25.4-38.1-25.4%20c-17.3,0-28.3,11-28.3,25.4c0,17.8,11,25,36.4,36l14.8,6.3c50.3,21.6,78.7,43.6,78.7,93c0,53.3-41.9,82.5-98.1,82.5%20c-55,0-90.5-26.2-107.9-60.5L423.2,492.2z%20M214.1,497.3c9.3,16.5,17.8,30.5,38.1,30.5c19.5,0,31.7-7.6,31.7-37.2V289.3h59.2v202.1%20c0,61.3-35.9,89.2-88.4,89.2c-47.4,0-74.9-24.5-88.8-54.1L214.1,497.3z'/%3e%3c/svg%3e",jk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAOeSURBVGhD7ZhNaBNBGIZHW/EPbSioRSpi0FRpVdRSjQfxkFilB5UciuChIL0JLaKIhR5KIYKIiBSF0mLVS7AIavUgPQjiT4+KB0EP3gwS8VDBgj8d33d2ZrNJt2lCppKWfeBh5pvdncyXmZ3sZokQQsIFz1JdLni8M8L6QkSNf9HMSJBIpREkUmkEiVQaQSKVRpCIH8lkUtbW1sre3l7fB9FoNCrD4fC8PaSyYyudNzU1yZGRkYJ9dXV1yUQiYTMZNX6rM5LJZERHR0fBh0/MmJDSZh4OVhOZmprStf+P1UQmJyd1zaGvr09NuxM5VFVViYmJCR3Zw1oiPT09koP00tjYKNrb23XkEIlERHV1tY7sMuNbK5XR0VGJwcnBwcGi+uns7Cz7Mz24fVnpdGhoSDY0NBTbjxweHi77MzXu+N2KBebsh7PW0tJi6/OIGr/Vm72mpkbXssTj8ZxBp9NpUV9fryN7WE0kn1QqJcfHx3U0v1hNJBQKqXtFh2JsbEx0d3frKMv09LSu2UWtMadaHm1tberxQ+9Koq6uLqff1tZW2dzcLPXviy3c8bsVG/T398+6I8ViMTkwMGDtszRq/MEfdJVGkEilESRSaZSSyCa43anmsAPGII/7wWd7nnMEbmaDD2G41anmsA76tfui9mGnWpAPkOftVpEQuyDfkMz19Bv0cg56j9NP8AQ07IXm2Es2eHgK2b5RRf6Ya7OVOchP5D1kfA0m4GX4CxouQR7/A6/DC/CObqNRSA5A00Y7oeG/JMJBM65TUS7rIV/gefw4GzzchWx/rKJsIu90+REaik6knJv9hy5vw4NO1WU/XAG/w0ds8MABk326NLyGL+A2eJYNpVBOIhd1eRS+gs/hTjYAc4M+06WX+7rkt7zKqbrc0OV5WNIjUzmJDME9MKUiIQ5DvnyshOZfCL/+l+uSz/I/narLA8gvhLsb77miKScR8haegqfhb7gBcoa4M5G4Lr0069Kck88VXZ6B+TNWEHWzONWCpCHPM78lZhkZ3kAePwa36DpthQYulwxke5INwNzst1Tk8ASa66mVXYtLgFPOc7iVroUtOh6F3Gbv6fgLXAPJVWj65vU3IW9oxl+hWWJ+iRyC5lpqJZHP0JxjbnBO+UP4F5pjXNsnoRf+IJqZpNySmRSXoMEvEeL9Iqwkwm20Cfqt12UwAleraHZCcLbHEzLz75fiUeMP3hArjUWTiHdpLWgWyYwI8Q8rrSjH5vAr6AAAAABJRU5ErkJggg==",Qk="/assets/cpp_block-kkmuBJ_E.png",Xk="/assets/html5_block-beC_-Wtz.png",Zk="/assets/LaTeX_block-BNFNi2yr.png",Jk="/assets/bash_block-DZNRrwlz.png",est="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNTAgNTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+DQogIDxjaXJjbGUgY3g9IjI1IiBjeT0iMjUiIHI9IjI1IiBmaWxsPSJkZWVwc2t5Ymx1ZSIvPg0KICA8dGV4dCB4PSIyNSIgeT0iMzciIGZvbnQtc2l6ZT0iMzYiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGZpbGw9IndoaXRlIiBmb250LXdlaWdodD0iYm9sZCI+VDwvdGV4dD4NCjwvc3ZnPg0K",tst="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='red'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3ccircle%20cx='12'%20cy='12'%20r='10'%3e%3c/circle%3e%3cpath%20d='M16%2016s-1.5-2-4-2-4%202-4%202'%20stroke='currentColor'%3e%3c/path%3e%3cline%20x1='9'%20y1='9'%20x2='15'%20y2='15'%20stroke='currentColor'%3e%3c/line%3e%3c/svg%3e",nst="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3ccircle%20cx='12'%20cy='12'%20r='10'%3e%3c/circle%3e%3cpath%20d='M16%2016s-1.5-2-4-2-4%202-4%202'%3e%3c/path%3e%3cline%20x1='9'%20y1='9'%20x2='15'%20y2='15'%3e%3c/line%3e%3c/svg%3e",rst="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='50'%20height='50'%20viewBox='0%200%2050%2050'%3e%3ccircle%20cx='25'%20cy='25'%20r='24'%20fill='white'%20stroke='black'%20stroke-width='2'/%3e%3ccircle%20id='heartbeat'%20cx='25'%20cy='25'%20r='20'%20fill='red'%3e%3canimate%20attributeName='r'%20dur='1s'%20repeatCount='indefinite'%20keyTimes='0;0.25;0.5;0.75;1'%20values='20;24;20;22;20'/%3e%3c/circle%3e%3c/svg%3e",ist="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='50'%20height='50'%20viewBox='0%200%2050%2050'%3e%3ccircle%20cx='25'%20cy='25'%20r='24'%20fill='white'%20stroke='black'%20stroke-width='2'/%3e%3ccircle%20cx='25'%20cy='25'%20r='20'%20fill='red'/%3e%3c/svg%3e",eI="data:image/svg+xml,%3csvg%20viewBox='0%200%2050%2050'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20transform='translate(25,25)'%3e%3ccircle%20cx='0'%20cy='-15'%20r='3'%20fill='%23f00'%3e%3canimateTransform%20attributeName='transform'%20type='rotate'%20from='0'%20to='360'%20dur='1s'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3ccircle%20cx='0'%20cy='-15'%20r='3'%20fill='%230f0'%20transform='rotate(90)'%3e%3canimateTransform%20attributeName='transform'%20type='rotate'%20from='0'%20to='360'%20dur='1.2s'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3ccircle%20cx='0'%20cy='-15'%20r='3'%20fill='%2300f'%20transform='rotate(180)'%3e%3canimateTransform%20attributeName='transform'%20type='rotate'%20from='0'%20to='360'%20dur='1.4s'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3ccircle%20cx='0'%20cy='-15'%20r='3'%20fill='%23ff0'%20transform='rotate(270)'%3e%3canimateTransform%20attributeName='transform'%20type='rotate'%20from='0'%20to='360'%20dur='1.6s'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3c/g%3e%3c/svg%3e",sst={props:{icon:{type:String,required:!0},title:{type:String,required:!0}},computed:{iconPath(){return this.getIconPath()}},methods:{getIconPath(){switch(this.icon){case"x":return'';case"check":return'';case"code":return'';case"python":return'';case"js":return'JS';case"typescript":return'TS';case"braces":return'';case"cplusplus":case"c++":return'C++';case"csharp":return'C#';case"go":return'Go';case"r-project":return'R';case"rust":return'';case"swift":return'';case"kotlin":return'';case"java":return'';case"html5":return'';case"css3":return'';case"vuejs":return'';case"react":return'';case"angular":return'';case"xml":return'';case"json":return'';case"yaml":return'';case"markdown":return'';case"latex":return'TEX';case"bash":return'';case"powershell":return'';case"perl":return'';case"mermaid":return'';case"graphviz":return'';case"plantuml":return'';case"sql":return'';case"mongodb":return'';case"mathFunction":return'';case"terminal":return'';case"edit":return'';case"copy":return'';case"send":return'';case"globe":return'';case"fastForward":return'';case"sendSimple":return'';default:return""}}}},ost=["title"],ast={class:"w-6 h-6",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},lst=["innerHTML"];function cst(n,e,t,r,i,s){return T(),M("button",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:t.title,onClick:e[0]||(e[0]=o=>n.$emit("click"))},[(T(),M("svg",ast,[c("g",{innerHTML:s.iconPath},null,8,lst)]))],8,ost)}const my=bt(sst,[["render",cst]]);var Mr="top",fi="bottom",gi="right",Nr="left",fy="auto",Od=[Mr,fi,gi,Nr],Ml="start",fd="end",dst="clippingParents",tI="viewport",vc="popper",ust="reference",rA=Od.reduce(function(n,e){return n.concat([e+"-"+Ml,e+"-"+fd])},[]),nI=[].concat(Od,[fy]).reduce(function(n,e){return n.concat([e,e+"-"+Ml,e+"-"+fd])},[]),pst="beforeRead",hst="read",mst="afterRead",fst="beforeMain",gst="main",_st="afterMain",bst="beforeWrite",vst="write",yst="afterWrite",Est=[pst,hst,mst,fst,gst,_st,bst,vst,yst];function Ji(n){return n?(n.nodeName||"").toLowerCase():null}function Hr(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function Ea(n){var e=Hr(n).Element;return n instanceof e||n instanceof Element}function ci(n){var e=Hr(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function gy(n){if(typeof ShadowRoot>"u")return!1;var e=Hr(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function Sst(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var r=e.styles[t]||{},i=e.attributes[t]||{},s=e.elements[t];!ci(s)||!Ji(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(o){var a=i[o];a===!1?s.removeAttribute(o):s.setAttribute(o,a===!0?"":a)}))})}function xst(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],s=e.attributes[r]||{},o=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:t[r]),a=o.reduce(function(l,d){return l[d]="",l},{});!ci(i)||!Ji(i)||(Object.assign(i.style,a),Object.keys(s).forEach(function(l){i.removeAttribute(l)}))})}}const Tst={name:"applyStyles",enabled:!0,phase:"write",fn:Sst,effect:xst,requires:["computeStyles"]};function Qi(n){return n.split("-")[0]}var ua=Math.max,Vp=Math.min,Nl=Math.round;function x1(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function rI(){return!/^((?!chrome|android).)*safari/i.test(x1())}function kl(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var r=n.getBoundingClientRect(),i=1,s=1;e&&ci(n)&&(i=n.offsetWidth>0&&Nl(r.width)/n.offsetWidth||1,s=n.offsetHeight>0&&Nl(r.height)/n.offsetHeight||1);var o=Ea(n)?Hr(n):window,a=o.visualViewport,l=!rI()&&t,d=(r.left+(l&&a?a.offsetLeft:0))/i,u=(r.top+(l&&a?a.offsetTop:0))/s,m=r.width/i,f=r.height/s;return{width:m,height:f,top:u,right:d+m,bottom:u+f,left:d,x:d,y:u}}function _y(n){var e=kl(n),t=n.offsetWidth,r=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:r}}function iI(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&gy(t)){var r=e;do{if(r&&n.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ps(n){return Hr(n).getComputedStyle(n)}function wst(n){return["table","td","th"].indexOf(Ji(n))>=0}function Fo(n){return((Ea(n)?n.ownerDocument:n.document)||window.document).documentElement}function nm(n){return Ji(n)==="html"?n:n.assignedSlot||n.parentNode||(gy(n)?n.host:null)||Fo(n)}function iA(n){return!ci(n)||Ps(n).position==="fixed"?null:n.offsetParent}function Cst(n){var e=/firefox/i.test(x1()),t=/Trident/i.test(x1());if(t&&ci(n)){var r=Ps(n);if(r.position==="fixed")return null}var i=nm(n);for(gy(i)&&(i=i.host);ci(i)&&["html","body"].indexOf(Ji(i))<0;){var s=Ps(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function Dd(n){for(var e=Hr(n),t=iA(n);t&&wst(t)&&Ps(t).position==="static";)t=iA(t);return t&&(Ji(t)==="html"||Ji(t)==="body"&&Ps(t).position==="static")?e:t||Cst(n)||e}function by(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function Yc(n,e,t){return ua(n,Vp(e,t))}function Ast(n,e,t){var r=Yc(n,e,t);return r>t?t:r}function sI(){return{top:0,right:0,bottom:0,left:0}}function oI(n){return Object.assign({},sI(),n)}function aI(n,e){return e.reduce(function(t,r){return t[r]=n,t},{})}var Rst=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,oI(typeof e!="number"?e:aI(e,Od))};function Mst(n){var e,t=n.state,r=n.name,i=n.options,s=t.elements.arrow,o=t.modifiersData.popperOffsets,a=Qi(t.placement),l=by(a),d=[Nr,gi].indexOf(a)>=0,u=d?"height":"width";if(!(!s||!o)){var m=Rst(i.padding,t),f=_y(s),g=l==="y"?Mr:Nr,h=l==="y"?fi:gi,v=t.rects.reference[u]+t.rects.reference[l]-o[l]-t.rects.popper[u],b=o[l]-t.rects.reference[l],_=Dd(s),y=_?l==="y"?_.clientHeight||0:_.clientWidth||0:0,E=v/2-b/2,x=m[g],A=y-f[u]-m[h],w=y/2-f[u]/2+E,N=Yc(x,w,A),L=l;t.modifiersData[r]=(e={},e[L]=N,e.centerOffset=N-w,e)}}function Nst(n){var e=n.state,t=n.options,r=t.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||iI(e.elements.popper,i)&&(e.elements.arrow=i))}const kst={name:"arrow",enabled:!0,phase:"main",fn:Mst,effect:Nst,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Il(n){return n.split("-")[1]}var Ist={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ost(n,e){var t=n.x,r=n.y,i=e.devicePixelRatio||1;return{x:Nl(t*i)/i||0,y:Nl(r*i)/i||0}}function sA(n){var e,t=n.popper,r=n.popperRect,i=n.placement,s=n.variation,o=n.offsets,a=n.position,l=n.gpuAcceleration,d=n.adaptive,u=n.roundOffsets,m=n.isFixed,f=o.x,g=f===void 0?0:f,h=o.y,v=h===void 0?0:h,b=typeof u=="function"?u({x:g,y:v}):{x:g,y:v};g=b.x,v=b.y;var _=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),E=Nr,x=Mr,A=window;if(d){var w=Dd(t),N="clientHeight",L="clientWidth";if(w===Hr(t)&&(w=Fo(t),Ps(w).position!=="static"&&a==="absolute"&&(N="scrollHeight",L="scrollWidth")),w=w,i===Mr||(i===Nr||i===gi)&&s===fd){x=fi;var C=m&&w===A&&A.visualViewport?A.visualViewport.height:w[N];v-=C-r.height,v*=l?1:-1}if(i===Nr||(i===Mr||i===fi)&&s===fd){E=gi;var k=m&&w===A&&A.visualViewport?A.visualViewport.width:w[L];g-=k-r.width,g*=l?1:-1}}var H=Object.assign({position:a},d&&Ist),q=u===!0?Ost({x:g,y:v},Hr(t)):{x:g,y:v};if(g=q.x,v=q.y,l){var ie;return Object.assign({},H,(ie={},ie[x]=y?"0":"",ie[E]=_?"0":"",ie.transform=(A.devicePixelRatio||1)<=1?"translate("+g+"px, "+v+"px)":"translate3d("+g+"px, "+v+"px, 0)",ie))}return Object.assign({},H,(e={},e[x]=y?v+"px":"",e[E]=_?g+"px":"",e.transform="",e))}function Dst(n){var e=n.state,t=n.options,r=t.gpuAcceleration,i=r===void 0?!0:r,s=t.adaptive,o=s===void 0?!0:s,a=t.roundOffsets,l=a===void 0?!0:a,d={placement:Qi(e.placement),variation:Il(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,sA(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,sA(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Lst={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Dst,data:{}};var fu={passive:!0};function Pst(n){var e=n.state,t=n.instance,r=n.options,i=r.scroll,s=i===void 0?!0:i,o=r.resize,a=o===void 0?!0:o,l=Hr(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&d.forEach(function(u){u.addEventListener("scroll",t.update,fu)}),a&&l.addEventListener("resize",t.update,fu),function(){s&&d.forEach(function(u){u.removeEventListener("scroll",t.update,fu)}),a&&l.removeEventListener("resize",t.update,fu)}}const Fst={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Pst,data:{}};var Ust={left:"right",right:"left",bottom:"top",top:"bottom"};function pp(n){return n.replace(/left|right|bottom|top/g,function(e){return Ust[e]})}var Bst={start:"end",end:"start"};function oA(n){return n.replace(/start|end/g,function(e){return Bst[e]})}function vy(n){var e=Hr(n),t=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:t,scrollTop:r}}function yy(n){return kl(Fo(n)).left+vy(n).scrollLeft}function Gst(n,e){var t=Hr(n),r=Fo(n),i=t.visualViewport,s=r.clientWidth,o=r.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;var d=rI();(d||!d&&e==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a+yy(n),y:l}}function zst(n){var e,t=Fo(n),r=vy(n),i=(e=n.ownerDocument)==null?void 0:e.body,s=ua(t.scrollWidth,t.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=ua(t.scrollHeight,t.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+yy(n),l=-r.scrollTop;return Ps(i||t).direction==="rtl"&&(a+=ua(t.clientWidth,i?i.clientWidth:0)-s),{width:s,height:o,x:a,y:l}}function Ey(n){var e=Ps(n),t=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+i+r)}function lI(n){return["html","body","#document"].indexOf(Ji(n))>=0?n.ownerDocument.body:ci(n)&&Ey(n)?n:lI(nm(n))}function $c(n,e){var t;e===void 0&&(e=[]);var r=lI(n),i=r===((t=n.ownerDocument)==null?void 0:t.body),s=Hr(r),o=i?[s].concat(s.visualViewport||[],Ey(r)?r:[]):r,a=e.concat(o);return i?a:a.concat($c(nm(o)))}function T1(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function Vst(n,e){var t=kl(n,!1,e==="fixed");return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function aA(n,e,t){return e===tI?T1(Gst(n,t)):Ea(e)?Vst(e,t):T1(zst(Fo(n)))}function Hst(n){var e=$c(nm(n)),t=["absolute","fixed"].indexOf(Ps(n).position)>=0,r=t&&ci(n)?Dd(n):n;return Ea(r)?e.filter(function(i){return Ea(i)&&iI(i,r)&&Ji(i)!=="body"}):[]}function qst(n,e,t,r){var i=e==="clippingParents"?Hst(n):[].concat(e),s=[].concat(i,[t]),o=s[0],a=s.reduce(function(l,d){var u=aA(n,d,r);return l.top=ua(u.top,l.top),l.right=Vp(u.right,l.right),l.bottom=Vp(u.bottom,l.bottom),l.left=ua(u.left,l.left),l},aA(n,o,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function cI(n){var e=n.reference,t=n.element,r=n.placement,i=r?Qi(r):null,s=r?Il(r):null,o=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2,l;switch(i){case Mr:l={x:o,y:e.y-t.height};break;case fi:l={x:o,y:e.y+e.height};break;case gi:l={x:e.x+e.width,y:a};break;case Nr:l={x:e.x-t.width,y:a};break;default:l={x:e.x,y:e.y}}var d=i?by(i):null;if(d!=null){var u=d==="y"?"height":"width";switch(s){case Ml:l[d]=l[d]-(e[u]/2-t[u]/2);break;case fd:l[d]=l[d]+(e[u]/2-t[u]/2);break}}return l}function gd(n,e){e===void 0&&(e={});var t=e,r=t.placement,i=r===void 0?n.placement:r,s=t.strategy,o=s===void 0?n.strategy:s,a=t.boundary,l=a===void 0?dst:a,d=t.rootBoundary,u=d===void 0?tI:d,m=t.elementContext,f=m===void 0?vc:m,g=t.altBoundary,h=g===void 0?!1:g,v=t.padding,b=v===void 0?0:v,_=oI(typeof b!="number"?b:aI(b,Od)),y=f===vc?ust:vc,E=n.rects.popper,x=n.elements[h?y:f],A=qst(Ea(x)?x:x.contextElement||Fo(n.elements.popper),l,u,o),w=kl(n.elements.reference),N=cI({reference:w,element:E,strategy:"absolute",placement:i}),L=T1(Object.assign({},E,N)),C=f===vc?L:w,k={top:A.top-C.top+_.top,bottom:C.bottom-A.bottom+_.bottom,left:A.left-C.left+_.left,right:C.right-A.right+_.right},H=n.modifiersData.offset;if(f===vc&&H){var q=H[i];Object.keys(k).forEach(function(ie){var D=[gi,fi].indexOf(ie)>=0?1:-1,$=[Mr,fi].indexOf(ie)>=0?"y":"x";k[ie]+=q[$]*D})}return k}function Yst(n,e){e===void 0&&(e={});var t=e,r=t.placement,i=t.boundary,s=t.rootBoundary,o=t.padding,a=t.flipVariations,l=t.allowedAutoPlacements,d=l===void 0?nI:l,u=Il(r),m=u?a?rA:rA.filter(function(h){return Il(h)===u}):Od,f=m.filter(function(h){return d.indexOf(h)>=0});f.length===0&&(f=m);var g=f.reduce(function(h,v){return h[v]=gd(n,{placement:v,boundary:i,rootBoundary:s,padding:o})[Qi(v)],h},{});return Object.keys(g).sort(function(h,v){return g[h]-g[v]})}function $st(n){if(Qi(n)===fy)return[];var e=pp(n);return[oA(n),e,oA(e)]}function Wst(n){var e=n.state,t=n.options,r=n.name;if(!e.modifiersData[r]._skip){for(var i=t.mainAxis,s=i===void 0?!0:i,o=t.altAxis,a=o===void 0?!0:o,l=t.fallbackPlacements,d=t.padding,u=t.boundary,m=t.rootBoundary,f=t.altBoundary,g=t.flipVariations,h=g===void 0?!0:g,v=t.allowedAutoPlacements,b=e.options.placement,_=Qi(b),y=_===b,E=l||(y||!h?[pp(b)]:$st(b)),x=[b].concat(E).reduce(function(Ae,Fe){return Ae.concat(Qi(Fe)===fy?Yst(e,{placement:Fe,boundary:u,rootBoundary:m,padding:d,flipVariations:h,allowedAutoPlacements:v}):Fe)},[]),A=e.rects.reference,w=e.rects.popper,N=new Map,L=!0,C=x[0],k=0;k=0,$=D?"width":"height",K=gd(e,{placement:H,boundary:u,rootBoundary:m,altBoundary:f,padding:d}),B=D?ie?gi:Nr:ie?fi:Mr;A[$]>w[$]&&(B=pp(B));var Z=pp(B),ce=[];if(s&&ce.push(K[q]<=0),a&&ce.push(K[B]<=0,K[Z]<=0),ce.every(function(Ae){return Ae})){C=H,L=!1;break}N.set(H,ce)}if(L)for(var ue=h?3:1,xe=function(Fe){var ze=x.find(function(te){var ye=N.get(te);if(ye)return ye.slice(0,Fe).every(function(Se){return Se})});if(ze)return C=ze,"break"},Ce=ue;Ce>0;Ce--){var me=xe(Ce);if(me==="break")break}e.placement!==C&&(e.modifiersData[r]._skip=!0,e.placement=C,e.reset=!0)}}const Kst={name:"flip",enabled:!0,phase:"main",fn:Wst,requiresIfExists:["offset"],data:{_skip:!1}};function lA(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function cA(n){return[Mr,gi,fi,Nr].some(function(e){return n[e]>=0})}function jst(n){var e=n.state,t=n.name,r=e.rects.reference,i=e.rects.popper,s=e.modifiersData.preventOverflow,o=gd(e,{elementContext:"reference"}),a=gd(e,{altBoundary:!0}),l=lA(o,r),d=lA(a,i,s),u=cA(l),m=cA(d);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:m},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":m})}const Qst={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:jst};function Xst(n,e,t){var r=Qi(n),i=[Nr,Mr].indexOf(r)>=0?-1:1,s=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,o=s[0],a=s[1];return o=o||0,a=(a||0)*i,[Nr,gi].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}function Zst(n){var e=n.state,t=n.options,r=n.name,i=t.offset,s=i===void 0?[0,0]:i,o=nI.reduce(function(u,m){return u[m]=Xst(m,e.rects,s),u},{}),a=o[e.placement],l=a.x,d=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=d),e.modifiersData[r]=o}const Jst={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Zst};function eot(n){var e=n.state,t=n.name;e.modifiersData[t]=cI({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const tot={name:"popperOffsets",enabled:!0,phase:"read",fn:eot,data:{}};function not(n){return n==="x"?"y":"x"}function rot(n){var e=n.state,t=n.options,r=n.name,i=t.mainAxis,s=i===void 0?!0:i,o=t.altAxis,a=o===void 0?!1:o,l=t.boundary,d=t.rootBoundary,u=t.altBoundary,m=t.padding,f=t.tether,g=f===void 0?!0:f,h=t.tetherOffset,v=h===void 0?0:h,b=gd(e,{boundary:l,rootBoundary:d,padding:m,altBoundary:u}),_=Qi(e.placement),y=Il(e.placement),E=!y,x=by(_),A=not(x),w=e.modifiersData.popperOffsets,N=e.rects.reference,L=e.rects.popper,C=typeof v=="function"?v(Object.assign({},e.rects,{placement:e.placement})):v,k=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),H=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,q={x:0,y:0};if(w){if(s){var ie,D=x==="y"?Mr:Nr,$=x==="y"?fi:gi,K=x==="y"?"height":"width",B=w[x],Z=B+b[D],ce=B-b[$],ue=g?-L[K]/2:0,xe=y===Ml?N[K]:L[K],Ce=y===Ml?-L[K]:-N[K],me=e.elements.arrow,Ae=g&&me?_y(me):{width:0,height:0},Fe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:sI(),ze=Fe[D],te=Fe[$],ye=Yc(0,N[K],Ae[K]),Se=E?N[K]/2-ue-ye-ze-k.mainAxis:xe-ye-ze-k.mainAxis,Oe=E?-N[K]/2+ue+ye+te+k.mainAxis:Ce+ye+te+k.mainAxis,Ye=e.elements.arrow&&Dd(e.elements.arrow),le=Ye?x==="y"?Ye.clientTop||0:Ye.clientLeft||0:0,V=(ie=H==null?void 0:H[x])!=null?ie:0,G=B+Se-V-le,oe=B+Oe-V,ge=Yc(g?Vp(Z,G):Z,B,g?ua(ce,oe):ce);w[x]=ge,q[x]=ge-B}if(a){var Ee,Te=x==="x"?Mr:Nr,fe=x==="x"?fi:gi,Ue=w[A],Pe=A==="y"?"height":"width",Re=Ue+b[Te],U=Ue-b[fe],I=[Mr,Nr].indexOf(_)!==-1,ee=(Ee=H==null?void 0:H[A])!=null?Ee:0,we=I?Re:Ue-N[Pe]-L[Pe]-ee+k.altAxis,ne=I?Ue+N[Pe]+L[Pe]-ee-k.altAxis:U,pe=g&&I?Ast(we,Ue,ne):Yc(g?we:Re,Ue,g?ne:U);w[A]=pe,q[A]=pe-Ue}e.modifiersData[r]=q}}const iot={name:"preventOverflow",enabled:!0,phase:"main",fn:rot,requiresIfExists:["offset"]};function sot(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function oot(n){return n===Hr(n)||!ci(n)?vy(n):sot(n)}function aot(n){var e=n.getBoundingClientRect(),t=Nl(e.width)/n.offsetWidth||1,r=Nl(e.height)/n.offsetHeight||1;return t!==1||r!==1}function lot(n,e,t){t===void 0&&(t=!1);var r=ci(e),i=ci(e)&&aot(e),s=Fo(e),o=kl(n,i,t),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!t)&&((Ji(e)!=="body"||Ey(s))&&(a=oot(e)),ci(e)?(l=kl(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):s&&(l.x=yy(s))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function cot(n){var e=new Map,t=new Set,r=[];n.forEach(function(s){e.set(s.name,s)});function i(s){t.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(a){if(!t.has(a)){var l=e.get(a);l&&i(l)}}),r.push(s)}return n.forEach(function(s){t.has(s.name)||i(s)}),r}function dot(n){var e=cot(n);return Est.reduce(function(t,r){return t.concat(e.filter(function(i){return i.phase===r}))},[])}function uot(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function pot(n){var e=n.reduce(function(t,r){var i=t[r.name];return t[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,t},{});return Object.keys(e).map(function(t){return e[t]})}var dA={placement:"bottom",modifiers:[],strategy:"absolute"};function uA(){for(var n=arguments.length,e=new Array(n),t=0;t{this.createPopper()})},closeMenu(n){var e;!this.$el.contains(n.target)&&!((e=this.$refs.dropdown)!=null&&e.contains(n.target))&&(this.isOpen=!1)},createPopper(){const n=this.$el.querySelector("button"),e=this.$refs.dropdown;n&&e&&(this.popperInstance=rm(n,e,{placement:"bottom-end",modifiers:[{name:"flip",options:{fallbackPlacements:["top-end","bottom-start","top-start"]}},{name:"preventOverflow",options:{boundary:document.body}}]}))}}},got={class:"relative inline-block text-left"},_ot={key:0,ref:"dropdown",class:"z-50 w-56 rounded-md shadow-lg bg-white dark:bg-gray-800 ring-1 ring-black ring-opacity-5 dark:ring-white dark:ring-opacity-20 focus:outline-none dropdown-shadow text-gray-700 dark:text-white"},bot={class:"py-1",role:"menu","aria-orientation":"vertical","aria-labelledby":"options-menu"};function vot(n,e,t,r,i,s){const o=ht("ToolbarButton");return T(),M("div",got,[c("div",null,[W(o,{onClick:J(s.toggleMenu,["stop"]),title:t.title,icon:"code"},null,8,["onClick","title"])]),(T(),Tt(hD,{to:"body"},[i.isOpen?(T(),M("div",_ot,[c("div",bot,[On(n.$slots,"default",{},void 0,!0)])],512)):Y("",!0)]))])}const dI=bt(fot,[["render",vot],["__scopeId","data-v-6c3ea3a5"]]);async function pA(n,e="",t=[]){return new Promise((r,i)=>{const s=document.createElement("div");s.className="fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 z-50",t.length===0?s.innerHTML=`

${n}

@@ -415,7 +415,7 @@ ${e} `}tablecell(e){const t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+` `}strong({tokens:e}){return`${this.parser.parseInline(e)}`}em({tokens:e}){return`${this.parser.parseInline(e)}`}codespan({text:e}){return`${e}`}br(e){return"
"}del({tokens:e}){return`${this.parser.parseInline(e)}`}link({href:e,title:t,tokens:r}){const i=this.parser.parseInline(r),s=mA(e);if(s===null)return i;e=s;let o='",o}image({href:e,title:t,text:r}){const i=mA(e);if(i===null)return r;e=i;let s=`${r}{const d=a[l].flat(1/0);r=r.concat(this.walkTokens(d,t))}):a.tokens&&(r=r.concat(this.walkTokens(a.tokens,t)))}}return r}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(r=>{const i={...r};if(i.async=this.defaults.async||i.async||!1,r.extensions&&(r.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){const o=t.renderers[s.name];o?t.renderers[s.name]=function(...a){let l=s.renderer.apply(this,a);return l===!1&&(l=o.apply(this,a)),l}:t.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const o=t[s.level];o?o.unshift(s.tokenizer):t[s.level]=[s.tokenizer],s.start&&(s.level==="block"?t.startBlock?t.startBlock.push(s.start):t.startBlock=[s.start]:s.level==="inline"&&(t.startInline?t.startInline.push(s.start):t.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(t.childTokens[s.name]=s.childTokens)}),i.extensions=t),r.renderer){const s=this.defaults.renderer||new Yp(this.defaults);for(const o in r.renderer){if(!(o in s))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;const a=o,l=r.renderer[a],d=s[a];s[a]=(...u)=>{let m=l.apply(s,u);return m===!1&&(m=d.apply(s,u)),m||""}}i.renderer=s}if(r.tokenizer){const s=this.defaults.tokenizer||new Hp(this.defaults);for(const o in r.tokenizer){if(!(o in s))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;const a=o,l=r.tokenizer[a],d=s[a];s[a]=(...u)=>{let m=l.apply(s,u);return m===!1&&(m=d.apply(s,u)),m}}i.tokenizer=s}if(r.hooks){const s=this.defaults.hooks||new Kc;for(const o in r.hooks){if(!(o in s))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;const a=o,l=r.hooks[a],d=s[a];Kc.passThroughHooks.has(o)?s[a]=u=>{if(this.defaults.async)return Promise.resolve(l.call(s,u)).then(f=>d.call(s,f));const m=l.call(s,u);return d.call(s,m)}:s[a]=(...u)=>{let m=l.apply(s,u);return m===!1&&(m=d.apply(s,u)),m}}i.hooks=s}if(r.walkTokens){const s=this.defaults.walkTokens,o=r.walkTokens;i.walkTokens=function(a){let l=[];return l.push(o.call(this,a)),s&&(l=l.concat(s.call(this,a))),l}}this.defaults={...this.defaults,...i}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return ii.lex(e,t??this.defaults)}parser(e,t){return si.parse(e,t??this.defaults)}parseMarkdown(e){return(r,i)=>{const s={...i},o={...this.defaults,...s},a=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&s.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));o.hooks&&(o.hooks.options=o,o.hooks.block=e);const l=o.hooks?o.hooks.provideLexer():e?ii.lex:ii.lexInline,d=o.hooks?o.hooks.provideParser():e?si.parse:si.parseInline;if(o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(r):r).then(u=>l(u,o)).then(u=>o.hooks?o.hooks.processAllTokens(u):u).then(u=>o.walkTokens?Promise.all(this.walkTokens(u,o.walkTokens)).then(()=>u):u).then(u=>d(u,o)).then(u=>o.hooks?o.hooks.postprocess(u):u).catch(a);try{o.hooks&&(r=o.hooks.preprocess(r));let u=l(r,o);o.hooks&&(u=o.hooks.processAllTokens(u)),o.walkTokens&&this.walkTokens(u,o.walkTokens);let m=d(u,o);return o.hooks&&(m=o.hooks.postprocess(m)),m}catch(u){return a(u)}}}onError(e,t){return r=>{if(r.message+=` -Please report this to https://github.com/markedjs/marked.`,e){const i="

An error occurred:

"+Ur(r.message+"",!0)+"
";return t?Promise.resolve(i):i}if(t)return Promise.reject(r);throw r}}}const Sa=new $at;function nn(n,e){return Sa.parse(n,e)}nn.options=nn.setOptions=function(n){return Sa.setOptions(n),nn.defaults=Sa.defaults,uI(nn.defaults),nn};nn.getDefaults=Sy;nn.defaults=ka;nn.use=function(...n){return Sa.use(...n),nn.defaults=Sa.defaults,uI(nn.defaults),nn};nn.walkTokens=function(n,e){return Sa.walkTokens(n,e)};nn.parseInline=Sa.parseInline;nn.Parser=si;nn.parser=si.parse;nn.Renderer=Yp;nn.TextRenderer=Ry;nn.Lexer=ii;nn.lexer=ii.lex;nn.Tokenizer=Hp;nn.Hooks=Kc;nn.parse=nn;nn.options;nn.setOptions;nn.use;nn.walkTokens;nn.parseInline;si.parse;ii.lex;const Wat={name:"HelpView",data(){return{helpSections:[]}},methods:{toggleSection(n){this.helpSections[n].isOpen=!this.helpSections[n].isOpen},async loadMarkdownFile(n){try{const t=await(await fetch(`/help/${n}`)).text();return nn(t)}catch(e){return console.error("Error loading markdown file:",e),"Error loading help content."}},async loadHelpSections(){const n=[{title:"About LoLLMs",file:"lollms-context.md"},{title:"Getting Started",file:"getting-started.md"},{title:"Uploading Files",file:"uploading-files.md"},{title:"Sending Images",file:"sending-images.md"},{title:"Using Code Interpreter",file:"code-interpreter.md"},{title:"Internet Search",file:"internet-search.md"}];for(const e of n){const t=await this.loadMarkdownFile(e.file);this.helpSections.push({title:e.title,content:t,isOpen:!1})}}},mounted(){this.loadHelpSections()}},Kat={class:"help-view background-color p-6 w-full"},jat={class:"big-card w-full"},Qat={class:"help-sections-container"},Xat={class:"help-sections space-y-4"},Zat=["onClick"],Jat={class:"toggle-icon"},elt={key:0,class:"help-content mt-4"},tlt=["innerHTML"];function nlt(n,e,t,r,i,s){return T(),M("div",Kat,[c("div",jat,[e[0]||(e[0]=c("h1",{class:"text-4xl md:text-5xl font-bold text-gray-800 dark:text-gray-100 mb-6"},"LoLLMs Help",-1)),c("div",Qat,[c("div",Xat,[(T(!0),M(je,null,at(i.helpSections,(o,a)=>(T(),M("div",{key:a,class:"help-section message"},[c("h2",{onClick:l=>s.toggleSection(a),class:"menu-item cursor-pointer flex justify-between items-center"},[pt(X(o.title)+" ",1),c("span",Jat,X(o.isOpen?"▼":"▶"),1)],8,Zat),o.isOpen?(T(),M("div",elt,[c("div",{innerHTML:o.content,class:"prose dark:prose-invert"},null,8,tlt)])):Y("",!0)]))),128))])])])])}const rlt=bt(Wat,[["render",nlt],["__scopeId","data-v-8c1798f3"]]);function Wi(n,e=!0,t=1){const r=e?1e3:1024;if(Math.abs(n)=r&&s{Ze.replace()})},executeCommand(n){this.isMenuOpen=!1,console.log("Selected"),console.log(n.value),typeof n.value=="function"&&(console.log("Command detected",n),n.value()),this.execute_cmd&&(console.log("executing generic command"),this.execute_cmd(n))},positionMenu(){var n;if(this.$refs.menuButton!=null){if(this.force_position==0||this.force_position==null){const e=this.$refs.menuButton.getBoundingClientRect(),t=window.innerHeight;n=e.bottom>t/2}else this.force_position==1?n=!0:n=!1;this.menuPosition.top=n?"auto":"calc(100% + 10px)",this.menuPosition.bottom=n?"100%":"auto"}}},mounted(){window.addEventListener("resize",this.positionMenu),this.positionMenu(),We(()=>{Ze.replace()})},beforeDestroy(){window.removeEventListener("resize",this.positionMenu)},watch:{isMenuOpen:"positionMenu"}},slt={class:"menu-container"},olt=["title"],alt=["src"],llt=["data-feather"],clt={key:2,class:"w-5 h-5"},dlt={key:3,"data-feather":"menu"},ult={class:"flex-grow menu-ul"},plt=["onClick"],hlt={key:0,"data-feather":"check"},mlt=["src","alt"],flt=["data-feather"],glt={key:3,class:"menu-icon"};function _lt(n,e,t,r,i,s){return T(),M("div",slt,[c("button",{onClick:e[0]||(e[0]=J((...o)=>s.toggleMenu&&s.toggleMenu(...o),["prevent"])),title:t.title,class:qe([t.menuIconClass,"menu-button m-0 p-0 bg-blue-500 text-white dark:bg-blue-200 dark:text-gray-800 rounded flex items-center justify-center w-6 h-6 border-none cursor-pointer hover:bg-blue-400 w-8 h-8 object-fill text-red-700 border-2 active:scale-90 hover:z-20 hover:-translate-y-2 duration-150 border-gray-300 border-secondary cursor-pointer"]),ref:"menuButton"},[t.icon&&!t.icon.includes("#")&&!t.icon.includes("feather")?(T(),M("img",{key:0,src:t.icon,class:"w-5 h-5 p-0 m-0 shadow-lg bold"},null,8,alt)):t.icon&&t.icon.includes("feather")?(T(),M("i",{key:1,"data-feather":t.icon.split(":")[1],class:"w-5 h-5"},null,8,llt)):t.icon&&t.icon.includes("#")?(T(),M("p",clt,X(t.icon.split("#")[1]),1)):(T(),M("i",dlt))],10,olt),W(Cs,{name:"slide"},{default:Ge(()=>[i.isMenuOpen?(T(),M("div",{key:0,class:"menu-list flex-grow",style:on(i.menuPosition),ref:"menu"},[c("ul",ult,[(T(!0),M(je,null,at(t.commands,(o,a)=>(T(),M("li",{key:a,onClick:J(l=>s.executeCommand(o),["prevent"]),class:"menu-command menu-li flex-grow hover:bg-blue-400"},[t.selected_entry==o.name?(T(),M("i",hlt)):o.icon&&!o.icon.includes("feather")&&!o.is_file?(T(),M("img",{key:1,src:o.icon,alt:o.name,class:"menu-icon"},null,8,mlt)):Y("",!0),o.icon&&o.icon.includes("feather")&&!o.is_file?(T(),M("i",{key:2,"data-feather":o.icon.split(":")[1],class:"mr-2"},null,8,flt)):(T(),M("span",glt)),c("span",null,X(o.name),1)],8,plt))),128))])],4)):Y("",!0)]),_:1})])}const My=bt(ilt,[["render",_lt]]),blt={components:{InteractiveMenu:My},props:{isInstalled:Boolean,onInstall:Function,onCancelInstall:Function,onUninstall:Function,onSelected:Function,onCopy:Function,onCopyLink:Function,selected:Boolean,model:Object,model_type:String},data(){return{progress:0,speed:0,total_size:0,downloaded_size:0,start_time:"",installing:!1,uninstalling:!1,failedToLoad:!1,linkNotValid:!1,selected_variant:""}},async mounted(){We(()=>{Ze.replace()})},methods:{formatFileSize(n){return n<1024?n+" bytes":n<1024*1024?(n/1024).toFixed(2)+" KB":n<1024*1024*1024?(n/(1024*1024)).toFixed(2)+" MB":(n/(1024*1024*1024)).toFixed(2)+" GB"},computedFileSize(n){return Wi(n)},getImgUrl(){return this.model.icon==null||this.model.icon==="/images/default_model.png"?wr:this.model.icon},defaultImg(n){n.target.src=wr},install(){this.onInstall(this)},uninstall(){this.isInstalled&&this.onUninstall(this)},toggleInstall(){this.isInstalled?(this.uninstalling=!0,this.onUninstall(this)):this.onInstall(this)},toggleSelected(n){if(console.log("event.target.tagName.toLowerCase()"),console.log(n.target.tagName.toLowerCase()),n.target.tagName.toLowerCase()==="button"||n.target.tagName.toLowerCase()==="svg"){n.stopPropagation();return}this.onSelected(this),this.model.selected=!0,We(()=>{Ze.replace()})},toggleCopy(){this.onCopy(this)},toggleCopyLink(){this.onCopyLink(this)},toggleCancelInstall(){this.onCancelInstall(this),this.installing=!1},handleSelection(){this.isInstalled&&!this.selected&&this.onSelected(this)},copyContentToClipboard(){this.$emit("copy","this.message.content")}},computed:{computed_classes(){return this.model.isInstalled?this.selected?"border-4 border-gray-200 bg-primary cursor-pointer":"border-0 border-primary bg-primary cursor-pointer":"border-transparent"},commandsList(){let n=[{name:this.model.isInstalled?"Install Extra":"Install",icon:"feather:settings",is_file:!1,value:this.install},{name:"Copy model info to clipboard",icon:"feather:settings",is_file:!1,value:this.toggleCopy}];return this.model.isInstalled&&n.push({name:"UnInstall",icon:"feather:settings",is_file:!1,value:this.uninstall}),this.selected&&n.push({name:"Reload",icon:"feather:refresh-ccw",is_file:!1,value:this.toggleSelected}),n},selected_computed(){return this.selected},fileSize:{get(){if(this.model&&this.model.variants&&this.model.variants.length>0){const n=this.model.variants[0].size;return this.formatFileSize(n)}return null}},speed_computed(){return Wi(this.speed)},total_size_computed(){return Wi(this.total_size)},downloaded_size_computed(){return Wi(this.downloaded_size)}},watch:{linkNotValid(){We(()=>{Ze.replace()})}}},vlt=["title"],ylt={key:0,class:"flex flex-row"},Elt={class:"max-w-[300px] overflow-x-auto"},Slt={class:"flex gap-3 items-center grow"},xlt=["href"],Tlt=["src"],wlt={class:"flex-1 overflow-hidden"},Clt={class:"font-bold font-large text-lg truncate"},Alt={key:1,class:"flex items-center flex-row gap-2 my-1"},Rlt={class:"flex grow items-center"},Mlt={key:2,class:"absolute z-10 -m-4 p-5 shadow-md text-center rounded-lg w-full h-full bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel bg-opacity-70 dark:bg-opacity-70 flex justify-center items-center"},Nlt={class:"relative flex flex-col items-center justify-center flex-grow h-full"},klt={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},Ilt={class:"w-full bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel rounded-lg p-2"},Olt={class:"flex justify-between mb-1"},Dlt={class:"text-sm font-medium text-blue-700 dark:text-white"},Llt={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},Plt={class:"flex justify-between mb-1"},Flt={class:"text-base font-medium text-blue-700 dark:text-white"},Ult={class:"text-sm font-medium text-blue-700 dark:text-white"},Blt={class:"flex flex-grow"},Glt={class:"flex flex-row flex-grow gap-3"},zlt={class:"p-2 text-center grow"},Vlt={key:3},Hlt={class:"flex flex-row items-center gap-3"},qlt=["src"],Ylt={class:"font-bold font-large text-lg truncate"},$lt={class:"flex items-center flex-row-reverse gap-2 my-1"},Wlt={class:"flex flex-row items-center"},Klt={key:0,class:"text-base text-red-600 flex items-center mt-1"},jlt=["title"],Qlt={class:""},Xlt={class:"flex flex-row items-center"},Zlt=["href","title"],Jlt={class:"flex items-center"},ect={class:"flex items-center"},tct={key:0,class:"flex items-center"},nct=["href"],rct={class:"flex items-center"},ict=["href"],sct={class:"flex items-center"},oct={class:"flex items-center"},act=["href"];function lct(n,e,t,r,i,s){const o=ht("InteractiveMenu");return T(),M("div",{class:qe(["relative items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 select-none",s.computed_classes]),title:t.model.name,onClick:e[10]||(e[10]=J(a=>s.toggleSelected(a),["prevent"]))},[t.model.isCustomModel?(T(),M("div",ylt,[c("div",Elt,[c("div",Slt,[c("a",{href:t.model.model_creator_link,target:"_blank"},[c("img",{src:s.getImgUrl(),onError:e[0]||(e[0]=a=>s.defaultImg(a)),class:"w-10 h-10 rounded-lg object-fill"},null,40,Tlt)],8,xlt),c("div",wlt,[c("h3",Clt,X(t.model.name),1)])])])])):Y("",!0),t.model.isCustomModel?(T(),M("div",Alt,[c("div",Rlt,[c("button",{type:"button",title:"Custom model / local model",class:"font-medium rounded-lg text-sm p-2 text-center inline-flex items-center",onClick:e[1]||(e[1]=J(()=>{},["stop"]))},e[11]||(e[11]=[c("i",{"data-feather":"box",class:"w-5"},null,-1),c("span",{class:"sr-only"},"Custom model / local model",-1)])),e[12]||(e[12]=pt(" Custom model "))]),c("div",null,[t.model.isInstalled?(T(),M("button",{key:0,title:"Delete file from disk",type:"button",onClick:e[2]||(e[2]=J((...a)=>s.uninstall&&s.uninstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300 rounded-lg dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900"},e[13]||(e[13]=[pt(" Uninstall "),c("span",{class:"sr-only"},"Remove",-1)]))):Y("",!0)])])):Y("",!0),i.installing?(T(),M("div",Mlt,[c("div",Nlt,[e[15]||(e[15]=c("div",{role:"status",class:"justify-center"},[c("svg",{"aria-hidden":"true",class:"w-24 h-24 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),c("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),c("span",{class:"sr-only"},"Loading...")],-1)),c("div",klt,[c("div",Ilt,[c("div",Olt,[e[14]||(e[14]=c("span",{class:"text-base font-medium text-blue-700 dark:text-white"},"Downloading",-1)),c("span",Dlt,X(Math.floor(i.progress))+"%",1)]),c("div",Llt,[c("div",{class:"bg-blue-600 h-2.5 rounded-full",style:on({width:i.progress+"%"})},null,4)]),c("div",Plt,[c("span",Flt,"Download speed: "+X(s.speed_computed)+"/s",1),c("span",Ult,X(s.downloaded_size_computed)+"/"+X(s.total_size_computed),1)])])]),c("div",Blt,[c("div",Glt,[c("div",zlt,[c("button",{onClick:e[3]||(e[3]=J((...a)=>s.toggleCancelInstall&&s.toggleCancelInstall(...a),["stop"])),type:"button",title:"Cancel download",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"}," Cancel ")])])])])])):Y("",!0),t.model.isCustomModel?Y("",!0):(T(),M("div",Vlt,[c("div",Hlt,[c("img",{ref:"imgElement",src:s.getImgUrl(),onError:e[4]||(e[4]=a=>s.defaultImg(a)),class:qe(["w-10 h-10 rounded-lg object-fill",i.linkNotValid?"grayscale":""])},null,42,qlt),c("h3",Ylt,X(t.model.name),1),e[16]||(e[16]=c("div",{class:"grow"},null,-1)),W(o,{commands:s.commandsList,force_position:2,title:"Menu"},null,8,["commands"])]),c("div",$lt,[c("div",Wlt,[i.linkNotValid?(T(),M("div",Klt,e[17]||(e[17]=[c("i",{"data-feather":"alert-triangle",class:"flex-shrink-0 mx-1"},null,-1),pt(" Link is not valid ")]))):Y("",!0)])]),c("div",{class:"",title:t.model.isInstalled?t.model.name:"Not installed"},[c("div",Qlt,[c("div",Xlt,[e[19]||(e[19]=c("i",{"data-feather":"download",class:"w-5 m-1 flex-shrink-0"},null,-1)),e[20]||(e[20]=c("b",null,"Card: ",-1)),c("a",{href:"https://huggingface.co/"+t.model.quantizer+"/"+t.model.name,target:"_blank",onClick:e[5]||(e[5]=J(()=>{},["stop"])),class:"m-1 flex items-center hover:text-secondary duration-75 active:scale-90 truncate",title:i.linkNotValid?"Link is not valid":"Download this manually (faster) and put it in the models/ folder then refresh"}," View full model card ",8,Zlt),e[21]||(e[21]=c("div",{class:"grow"},null,-1)),c("button",{class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center",title:"Copy link to clipboard",onClick:e[6]||(e[6]=J(a=>s.toggleCopyLink(),["stop"]))},e[18]||(e[18]=[c("i",{"data-feather":"clipboard",class:"w-5"},null,-1)]))]),c("div",Jlt,[c("div",{class:qe(["flex flex-shrink-0 items-center",i.linkNotValid?"text-red-600":""])},[e[22]||(e[22]=c("i",{"data-feather":"file",class:"w-5 m-1"},null,-1)),e[23]||(e[23]=c("b",null,"File size: ",-1)),pt(" "+X(s.fileSize),1)],2)]),c("div",ect,[e[24]||(e[24]=c("i",{"data-feather":"key",class:"w-5 m-1"},null,-1)),e[25]||(e[25]=c("b",null,"License: ",-1)),pt(" "+X(t.model.license),1)]),t.model.quantizer!="None"&&t.model.type!="transformers"?(T(),M("div",tct,[e[26]||(e[26]=c("i",{"data-feather":"user",class:"w-5 m-1"},null,-1)),e[27]||(e[27]=c("b",null,"quantizer: ",-1)),c("a",{href:"https://huggingface.co/"+t.model.quantizer,target:"_blank",rel:"noopener noreferrer",onClick:e[7]||(e[7]=J(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},X(t.model.quantizer),9,nct)])):Y("",!0),c("div",rct,[e[28]||(e[28]=c("i",{"data-feather":"user",class:"w-5 m-1"},null,-1)),e[29]||(e[29]=c("b",null,"Model creator: ",-1)),c("a",{href:t.model.model_creator_link,target:"_blank",rel:"noopener noreferrer",onClick:e[8]||(e[8]=J(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},X(t.model.model_creator),9,ict)]),c("div",sct,[e[30]||(e[30]=c("i",{"data-feather":"clock",class:"w-5 m-1"},null,-1)),e[31]||(e[31]=c("b",null,"Release date: ",-1)),pt(" "+X(t.model.last_commit_time),1)]),c("div",oct,[e[32]||(e[32]=c("i",{"data-feather":"grid",class:"w-5 m-1"},null,-1)),e[33]||(e[33]=c("b",null,"Category: ",-1)),c("a",{href:"https://huggingface.co/"+t.model.model_creator,target:"_blank",rel:"noopener noreferrer",onClick:e[9]||(e[9]=J(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},X(t.model.category),9,act)])])],8,jlt)]))],10,vlt)}const cct=bt(blt,[["render",lct]]),dct={data(){return{editMode:!1,avatar:"path/to/avatar.jpg",personalityName:"Personality Name",personalityAuthor:"Author Name",personalityDescription:"Personality Description",personalityCategory:"Category",disclaimer:"Disclaimer text",conditioningText:"Conditioning Text",aiPrefix:"AI Prefix",userPrefix:"User Prefix",antipromptsList:[{id:1,text:"Antiprompt 1"},{id:2,text:"Antiprompt 2"},{id:3,text:"Antiprompt 3"}]}},methods:{commitChanges(){console.log("Personality changes committed"),this.editMode=!1}}},uct={class:"p-4"},pct={class:"flex items-center mb-4"},hct=["src"],mct={class:"text-lg font-semibold"},fct={key:0};function gct(n,e,t,r,i,s){return T(),M("div",uct,[c("div",pct,[c("img",{src:i.avatar,class:"w-12 h-12 rounded-full mr-2",alt:"Avatar"},null,8,hct),c("h2",mct,X(i.personalityName),1)]),c("p",null,[e[2]||(e[2]=c("strong",null,"Author:",-1)),pt(" "+X(i.personalityAuthor),1)]),c("p",null,[e[3]||(e[3]=c("strong",null,"Description:",-1)),pt(" "+X(i.personalityDescription),1)]),c("p",null,[e[4]||(e[4]=c("strong",null,"Category:",-1)),pt(" "+X(i.personalityCategory),1)]),i.disclaimer?(T(),M("p",fct,[e[5]||(e[5]=c("strong",null,"Disclaimer:",-1)),pt(" "+X(i.disclaimer),1)])):Y("",!0),c("p",null,[e[6]||(e[6]=c("strong",null,"Conditioning Text:",-1)),pt(" "+X(i.conditioningText),1)]),c("p",null,[e[7]||(e[7]=c("strong",null,"AI Prefix:",-1)),pt(" "+X(i.aiPrefix),1)]),c("p",null,[e[8]||(e[8]=c("strong",null,"User Prefix:",-1)),pt(" "+X(i.userPrefix),1)]),c("div",null,[e[9]||(e[9]=c("strong",null,"Antiprompts:",-1)),c("ul",null,[(T(!0),M(je,null,at(i.antipromptsList,o=>(T(),M("li",{key:o.id},X(o.text),1))),128))])]),c("button",{onClick:e[0]||(e[0]=o=>i.editMode=!0),class:"mt-4 bg-blue-500 text-white px-4 py-2 rounded"}," Edit "),i.editMode?(T(),M("button",{key:1,onClick:e[1]||(e[1]=(...o)=>s.commitChanges&&s.commitChanges(...o)),class:"mt-4 bg-green-500 text-white px-4 py-2 rounded"}," Commit ")):Y("",!0)])}const _ct=bt(dct,[["render",gct]]),Ny="/assets/logo-CQZwS0X1.svg",bct="/",vct={props:{personality:{},select_language:Boolean,selected:Boolean,full_path:String,onTalk:Function,onOpenFolder:Function,onSelected:Function,onMount:Function,onUnMount:Function,onRemount:Function,onCopyToCustom:Function,onEdit:Function,onReinstall:Function,onSettings:Function,onCopyPersonalityName:Function,onToggleFavorite:Function},components:{InteractiveMenu:My},data(){return{isMounted:!1,name:this.personality.name,thumbnailVisible:!1,thumbnailPosition:{x:0,y:0}}},computed:{commandsList(){let n=[{name:this.isMounted?"unmount":"mount",icon:"feather:settings",is_file:!1,value:this.isMounted?this.unmount:this.mount},{name:"reinstall",icon:"feather:terminal",is_file:!1,value:this.toggleReinstall}];return console.log("this.category",this.personality.category),this.personality.category=="custom_personalities"?n.push({name:"edit",icon:"feather:settings",is_file:!1,value:this.edit}):n.push({name:"Copy to custom personas folder for editing",icon:"feather:copy",is_file:!1,value:this.copyToCustom}),this.isMounted&&n.push({name:"remount",icon:"feather:refresh-ccw",is_file:!1,value:this.reMount}),this.selected&&this.personality.has_scripts&&n.push({name:"settings",icon:"feather:settings",is_file:!1,value:this.toggleSettings}),n},selected_computed(){return this.selected}},mounted(){this.isMounted=this.personality.isMounted,We(()=>{Ze.replace()})},methods:{formatDate(n){const e={year:"numeric",month:"short",day:"numeric"};return new Date(n).toLocaleDateString(void 0,e)},showThumbnail(){this.thumbnailVisible=!0},hideThumbnail(){this.thumbnailVisible=!1},updateThumbnailPosition(n){this.thumbnailPosition={x:n.clientX+10,y:n.clientY+10}},getImgUrl(){return bct+this.personality.avatar},defaultImg(n){n.target.src=Ny},toggleFavorite(){this.onToggleFavorite(this)},showFolder(){this.onOpenFolder(this)},toggleTalk(){this.onTalk(this)},toggleCopyLink(){this.onCopyPersonalityName(this)},toggleSelected(){this.isMounted&&this.onSelected(this)},edit(){this.onEdit(this)},copyToCustom(){this.onCopyToCustom(this)},reMount(){this.onRemount(this)},mount(){console.log("Mounting"),this.onMount(this)},unmount(){console.log("Unmounting"),console.log(this.onUnMount),this.onUnMount(this),this.isMounted=!1},toggleSettings(){this.onSettings(this)},toggleReinstall(){this.onReinstall(this)}},watch:{selected(){We(()=>{Ze.replace()})}}},yct=["title"],Ect={class:"flex-grow"},Sct={class:"flex items-center mb-4"},xct=["src"],Tct={class:"text-sm text-gray-600"},wct={class:"text-sm text-gray-600"},Cct={class:"text-sm text-gray-600"},Act={key:0,class:"text-sm text-gray-600"},Rct={key:1,class:"text-sm text-gray-600"},Mct={class:"mb-4"},Nct=["innerHTML"],kct={class:"mt-auto pt-4 border-t"},Ict={class:"flex justify-between items-center flex-wrap"},Oct=["title"],Dct=["fill"],Lct=["src"];function Pct(n,e,t,r,i,s){const o=ht("InteractiveMenu");return T(),M("div",{class:qe(["personality-card bg-white border rounded-xl shadow-lg p-6 hover:shadow-xl transition duration-300 ease-in-out flex flex-col h-full",s.selected_computed?"border-primary-light":"border-transparent",i.isMounted?"bg-blue-200 dark:bg-blue-700":""]),title:t.personality.installed?"":"Not installed"},[c("div",Ect,[c("div",Sct,[c("img",{src:s.getImgUrl(),onError:e[0]||(e[0]=a=>s.defaultImg(a)),alt:"Personality Icon",class:"w-16 h-16 rounded-full border border-gray-300 mr-4 cursor-pointer",onClick:e[1]||(e[1]=(...a)=>s.toggleSelected&&s.toggleSelected(...a)),onMouseover:e[2]||(e[2]=(...a)=>s.showThumbnail&&s.showThumbnail(...a)),onMousemove:e[3]||(e[3]=(...a)=>s.updateThumbnailPosition&&s.updateThumbnailPosition(...a)),onMouseleave:e[4]||(e[4]=(...a)=>s.hideThumbnail&&s.hideThumbnail(...a))},null,40,xct),c("div",null,[c("h3",{class:"font-bold text-xl text-gray-800 cursor-pointer",onClick:e[5]||(e[5]=(...a)=>s.toggleSelected&&s.toggleSelected(...a))},X(t.personality.name),1),c("p",Tct,"Author: "+X(t.personality.author),1),c("p",wct,"Version: "+X(t.personality.version),1),c("p",Cct,"Category: "+X(t.personality.category),1),t.personality.creation_date?(T(),M("p",Act,"Creation Date: "+X(s.formatDate(t.personality.creation_date)),1)):Y("",!0),t.personality.last_update_date?(T(),M("p",Rct,"Last update Date: "+X(s.formatDate(t.personality.last_update_date)),1)):Y("",!0)])]),c("div",Mct,[e[10]||(e[10]=c("h4",{class:"font-semibold mb-1 text-gray-700"},"Description:",-1)),c("p",{class:"text-sm text-gray-600 h-20 overflow-y-auto",innerHTML:t.personality.description},null,8,Nct)])]),c("div",kct,[c("div",Ict,[c("button",{onClick:e[6]||(e[6]=(...a)=>s.toggleFavorite&&s.toggleFavorite(...a)),class:"text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out",title:n.isFavorite?"Remove from favorites":"Add to favorites"},[(T(),M("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:n.isFavorite?"currentColor":"none",viewBox:"0 0 24 24",stroke:"currentColor"},e[11]||(e[11]=[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"},null,-1)]),8,Dct))],8,Oct),i.isMounted?(T(),M("button",{key:0,onClick:e[7]||(e[7]=(...a)=>s.toggleSelected&&s.toggleSelected(...a)),class:"text-blue-500 hover:text-blue-600 transition duration-300 ease-in-out",title:"Select"},e[12]||(e[12]=[c("i",{"data-feather":"check",class:"h-6 w-6"},null,-1)]))):Y("",!0),i.isMounted?(T(),M("button",{key:1,onClick:e[8]||(e[8]=(...a)=>s.toggleTalk&&s.toggleTalk(...a)),class:"text-green-500 hover:text-green-600 transition duration-300 ease-in-out",title:"Talk"},e[13]||(e[13]=[c("i",{"data-feather":"send",class:"h-6 w-6"},null,-1)]))):Y("",!0),c("button",{onClick:e[9]||(e[9]=(...a)=>s.showFolder&&s.showFolder(...a)),class:"text-purple-500 hover:text-purple-600 transition duration-300 ease-in-out",title:"Show Folder"},e[14]||(e[14]=[c("i",{"data-feather":"folder",class:"h-6 w-6"},null,-1)])),W(o,{commands:s.commandsList,force_position:2,title:"Menu",class:"text-gray-500 hover:text-gray-600 transition duration-300 ease-in-out"},null,8,["commands"])])]),i.thumbnailVisible?(T(),M("div",{key:0,style:on({top:i.thumbnailPosition.y+"px",left:i.thumbnailPosition.x+"px"}),class:"fixed z-50 w-20 h-20 rounded-full overflow-hidden"},[c("img",{src:s.getImgUrl(),class:"w-full h-full object-fill"},null,8,Lct)],4)):Y("",!0)],10,yct)}const EI=bt(vct,[["render",Pct]]),Fct={name:"DynamicUIRenderer",props:{ui:{type:String,required:!0},instanceId:{type:String,required:!0}},data(){return{containerId:`dynamic-ui-${this.instanceId}`}},watch:{ui:{immediate:!0,handler(n){console.log(`UI prop changed for instance ${this.instanceId}:`,n),this.$nextTick(()=>{this.renderContent()})}}},methods:{renderContent(){console.log(`Rendering content for instance ${this.instanceId}...`);const n=this.$refs.container,t=new DOMParser().parseFromString(this.ui,"text/html"),r=t.getElementsByTagName("style");Array.from(r).forEach(s=>{const o=document.createElement("style");o.textContent=this.scopeCSS(s.textContent),document.head.appendChild(o)}),n.innerHTML=t.body.innerHTML;const i=t.getElementsByTagName("script");Array.from(i).forEach(s=>{const o=document.createElement("script");o.textContent=s.textContent,n.appendChild(o)})},scopeCSS(n){return n.replace(/([^\r\n,{}]+)(,(?=[^}]*{)|\s*{)/g,`#${this.containerId} $1$2`)}}},Uct=["id"];function Bct(n,e,t,r,i,s){return T(),M("div",{id:i.containerId,ref:"container"},null,8,Uct)}const SI=bt(Fct,[["render",Bct]]),Gct="/",zct={components:{DynamicUIRenderer:SI},props:{binding:{},onSelected:Function,onReinstall:Function,onInstall:Function,onUnInstall:Function,onSettings:Function,onReloadBinding:Function,selected:Boolean},data(){return{isTemplate:!1}},mounted(){We(()=>{Ze.replace()})},methods:{copyToClipBoard(n){console.log("Copying to clipboard :",n),navigator.clipboard.writeText(n)},getImgUrl(){return Gct+this.binding.icon},defaultImg(n){n.target.src=Ny},toggleSelected(){this.onSelected(this)},toggleInstall(){this.onInstall(this)},toggleUnInstall(){this.onUnInstall(this)},toggleReinstall(){this.onReinstall(this)},toggleReloadBinding(){this.onReloadBinding(this)},toggleSettings(){this.onSettings(this)},getStatus(){(this.binding.folder==="backend_template"||this.binding.folder==="binding_template")&&(this.isTemplate=!0)}},watch:{selected(){We(()=>{Ze.replace()})}}},Vct=["title"],Hct={class:"flex flex-row items-center gap-3"},qct=["src"],Yct={class:"font-bold font-large text-lg truncate"},$ct={class:"flex-none gap-1"},Wct={class:"flex items-center flex-row-reverse gap-2 my-1"},Kct={class:""},jct={class:""},Qct={class:"flex items-center"},Xct={class:"flex items-center"},Zct={class:"flex items-center"},Jct={class:"flex items-center"},edt=["href"],tdt=["title","innerHTML"];function ndt(n,e,t,r,i,s){const o=ht("DynamicUIRenderer");return T(),M("div",{class:qe(["items-start p-4 hover:bg-primary-light hover:border-primary-light rounded-lg mb-2 shadow-lg border-2 cursor-pointer select-none",t.selected?" border-primary bg-primary":"border-transparent"]),onClick:e[8]||(e[8]=J((...a)=>s.toggleSelected&&s.toggleSelected(...a),["stop"])),title:t.binding.installed?t.binding.name:"Not installed"},[c("div",null,[c("div",Hct,[c("img",{ref:"imgElement",src:s.getImgUrl(),onError:e[0]||(e[0]=a=>s.defaultImg(a)),class:"w-10 h-10 rounded-full object-fill text-blue-700"},null,40,qct),c("h3",Yct,X(t.binding.name),1),e[10]||(e[10]=c("div",{class:"grow"},null,-1)),c("div",$ct,[t.selected?(T(),M("button",{key:0,type:"button",title:"Reload binding",onClick:[e[1]||(e[1]=(...a)=>s.toggleReloadBinding&&s.toggleReloadBinding(...a)),e[2]||(e[2]=J(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},e[9]||(e[9]=[c("i",{"data-feather":"refresh-cw",class:"w-5"},null,-1),c("span",{class:"sr-only"},"Help",-1)]))):Y("",!0)])]),c("div",Wct,[t.binding.installed?Y("",!0):(T(),M("button",{key:0,title:"Click to install",type:"button",onClick:e[3]||(e[3]=J((...a)=>s.toggleInstall&&s.toggleInstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},e[11]||(e[11]=[pt(" Install "),c("span",{class:"sr-only"},"Click to install",-1)]))),t.binding.installed?(T(),M("button",{key:1,title:"Click to Reinstall binding",type:"button",onClick:e[4]||(e[4]=J((...a)=>s.toggleReinstall&&s.toggleReinstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-green-700 hover:bg-red-800 focus:ring-4 focus:ring-green-300 rounded-lg dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-red-900"},e[12]||(e[12]=[pt(" Reinstall "),c("span",{class:"sr-only"},"Reinstall",-1)]))):Y("",!0),t.binding.installed?(T(),M("button",{key:2,title:"Click to Reinstall binding",type:"button",onClick:e[5]||(e[5]=J((...a)=>s.toggleUnInstall&&s.toggleUnInstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300 rounded-lg dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900"},e[13]||(e[13]=[pt(" Uninstall "),c("span",{class:"sr-only"},"UnInstall",-1)]))):Y("",!0),t.selected?(T(),M("button",{key:3,title:"Click to open Settings",type:"button",onClick:e[6]||(e[6]=J((...a)=>s.toggleSettings&&s.toggleSettings(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},e[14]||(e[14]=[pt(" Settings "),c("span",{class:"sr-only"},"Settings",-1)]))):Y("",!0)]),t.binding.ui?(T(),Tt(o,{key:0,class:"w-full h-full",code:t.binding.ui},null,8,["code"])):Y("",!0),c("div",Kct,[c("div",jct,[c("div",Qct,[e[15]||(e[15]=c("i",{"data-feather":"user",class:"w-5 m-1"},null,-1)),e[16]||(e[16]=c("b",null,"Author: ",-1)),pt(" "+X(t.binding.author),1)]),c("div",Xct,[e[18]||(e[18]=c("i",{"data-feather":"folder",class:"w-5 m-1"},null,-1)),e[19]||(e[19]=c("b",null,"Folder: ",-1)),pt(" "+X(t.binding.folder)+" ",1),e[20]||(e[20]=c("div",{class:"grow"},null,-1)),c("button",{class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center",title:"Copy link to clipboard",onClick:e[7]||(e[7]=J(a=>s.copyToClipBoard(this.binding.folder),["stop"]))},e[17]||(e[17]=[c("i",{"data-feather":"clipboard",class:"w-5"},null,-1)]))]),c("div",Zct,[e[21]||(e[21]=c("i",{"data-feather":"git-merge",class:"w-5 m-1"},null,-1)),e[22]||(e[22]=c("b",null,"Version: ",-1)),pt(" "+X(t.binding.version),1)]),c("div",Jct,[e[23]||(e[23]=c("i",{"data-feather":"github",class:"w-5 m-1"},null,-1)),e[24]||(e[24]=c("b",null,"Link: ",-1)),c("a",{href:t.binding.link,target:"_blank",class:"flex items-center hover:text-secondary duration-75 active:scale-90"},X(t.binding.link),9,edt)])]),e[25]||(e[25]=c("div",{class:"flex items-center"},[c("i",{"data-feather":"info",class:"w-5 m-1"}),c("b",null,"Description: "),c("br")],-1)),c("p",{class:"mx-1 opacity-80 line-clamp-3",title:t.binding.description,innerHTML:t.binding.description},null,8,tdt)])])],10,Vct)}const rdt=bt(zct,[["render",ndt]]),Ai="/assets/logo-B22RoIQ8.png",idt={data(){return{show:!1,model_path:"",resolve:null}},methods:{cancel(){this.resolve(null)},openInputBox(){return new Promise(n=>{this.resolve=n})},hide(n){this.show=!1,this.resolve&&(this.resolve(n),this.resolve=null)},showDialog(n){return new Promise(e=>{this.model_path=n,this.show=!0,this.resolve=e})}}},sdt={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},odt={class:"relative w-full max-w-md max-h-full"},adt={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},ldt={class:"p-4 text-center"},cdt={class:"p-4 text-center mx-auto mb-4"};function ddt(n,e,t,r,i,s){return i.show?(T(),M("div",sdt,[c("div",odt,[c("div",adt,[c("button",{type:"button",onClick:e[0]||(e[0]=o=>s.hide(!1)),class:"absolute top-3 right-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-800 dark:hover:text-white"},e[4]||(e[4]=[c("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),c("span",{class:"sr-only"},"Close modal",-1)])),c("div",ldt,[e[6]||(e[6]=c("svg",{"aria-hidden":"true",class:"mx-auto mb-4 text-gray-400 w-14 h-14 dark:text-gray-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)),c("div",cdt,[e[5]||(e[5]=c("label",{class:"mr-2"},"Model path",-1)),F(c("input",{"onUpdate:modelValue":e[1]||(e[1]=o=>i.model_path=o),class:"px-4 py-2 border border-gray-300 rounded-lg",type:"text"},null,512),[[_e,i.model_path]])]),c("button",{onClick:e[2]||(e[2]=o=>s.hide(!0)),type:"button",class:"text-white bg-green-600 hover:bg-green-800 focus:ring-4 focus:outline-none focus:ring-red-300 dark:focus:ring-red-800 font-medium rounded-lg text-sm inline-flex items-center px-5 py-2.5 text-center mr-2"}," Add "),c("button",{onClick:e[3]||(e[3]=o=>s.hide(!1)),type:"button",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"},"No, cancel")])])])])):Y("",!0)}const udt=bt(idt,[["render",ddt]]),pdt={props:{show:{type:Boolean,default:!1},can_remove:{type:Boolean,default:!1},title:{type:String,default:"Select an option"},choices:{type:Array,required:!0}},data(){return{selectedChoice:null,showInput:!1,newFilename:""}},methods:{displayName(n){return typeof n=="string"?n:n&&n.name?n.name:""},selectChoice(n){this.selectedChoice=n,this.$emit("choice-selected",n)},closeDialog(){this.$emit("close-dialog")},validateChoice(){this.$emit("choice-validated",this.selectedChoice)},formatSize(n){const e=["bytes","KB","MB","GB"];let t=0;for(;n>=1024&&t[t.show?(T(),M("div",hdt,[c("div",mdt,[c("h2",fdt,[e[5]||(e[5]=c("svg",{class:"w-6 h-6 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"})],-1)),pt(" "+X(t.title),1)]),c("div",gdt,[c("ul",null,[(T(!0),M(je,null,at(t.choices,(o,a)=>(T(),M("li",{key:a,class:"py-2 px-4 hover:bg-gray-200 dark:hover:bg-gray-600 transition duration-150 ease-in-out"},[c("div",_dt,[c("div",bdt,[o.isEditing?F((T(),M("input",{key:1,"onUpdate:modelValue":l=>o.editName=l,onBlur:l=>s.finishEditing(o),onKeyup:ui(l=>s.finishEditing(o),["enter"]),class:"bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded px-2 py-1 text-sm",autofocus:""},null,40,ydt)),[[_e,o.editName]]):(T(),M("span",{key:0,onClick:l=>s.selectChoice(o),class:qe([{"font-semibold":o===i.selectedChoice},"text-gray-800 dark:text-white cursor-pointer"])},X(s.displayName(o)),11,vdt)),o.size?(T(),M("span",Edt,X(s.formatSize(o.size)),1)):Y("",!0)]),c("div",Sdt,[c("button",{onClick:l=>s.editChoice(o),class:"text-blue-500 hover:text-blue-600 mr-2"},e[6]||(e[6]=[c("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"})],-1)]),8,xdt),t.can_remove?(T(),M("button",{key:0,onClick:l=>s.removeChoice(o,a),class:"text-red-500 hover:text-red-600"},e[7]||(e[7]=[c("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1)]),8,Tdt)):Y("",!0)])])]))),128))])]),i.showInput?(T(),M("div",wdt,[F(c("input",{"onUpdate:modelValue":e[0]||(e[0]=o=>i.newFilename=o),placeholder:"Enter a filename",class:"border border-gray-300 dark:border-gray-600 p-2 rounded-lg w-full mb-2 bg-white dark:bg-gray-700 text-gray-800 dark:text-white"},null,512),[[_e,i.newFilename]]),c("button",{onClick:e[1]||(e[1]=(...o)=>s.addNewFilename&&s.addNewFilename(...o)),class:"bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 px-4 rounded-lg transition duration-300"}," Add ")])):Y("",!0),c("div",Cdt,[c("button",{onClick:e[2]||(e[2]=(...o)=>s.closeDialog&&s.closeDialog(...o)),class:"bg-gray-300 hover:bg-gray-400 text-gray-800 font-bold py-2 px-4 rounded-lg transition duration-300"}," Cancel "),c("button",{onClick:e[3]||(e[3]=(...o)=>s.validateChoice&&s.validateChoice(...o)),disabled:!i.selectedChoice,class:qe([{"bg-blue-500 hover:bg-blue-600":i.selectedChoice,"bg-gray-400 cursor-not-allowed":!i.selectedChoice},"text-white font-bold py-2 px-4 rounded-lg transition duration-300"])}," Validate ",10,Adt),c("button",{onClick:e[4]||(e[4]=(...o)=>s.toggleInput&&s.toggleInput(...o)),class:"bg-green-500 hover:bg-green-600 text-white font-bold py-2 px-4 rounded-lg transition duration-300"}," Add New ")])])])):Y("",!0)]),_:1})}const ky=bt(pdt,[["render",Rdt],["__scopeId","data-v-f43216be"]]),Mdt={props:{radioOptions:{type:Array,required:!0},defaultValue:{type:String,default:"0"}},data(){return{selectedValue:this.defaultValue}},computed:{selectedLabel(){const n=this.radioOptions.find(e=>e.value===this.selectedValue);return n?n.label:""}},watch:{selectedValue(n,e){this.$emit("radio-selected",n)}},methods:{handleRadioChange(){}}},Ndt={class:"flex space-x-4"},kdt=["value","aria-checked"],Idt={class:"text-gray-700"};function Odt(n,e,t,r,i,s){return T(),M("div",Ndt,[(T(!0),M(je,null,at(t.radioOptions,(o,a)=>(T(),M("label",{key:o.value,class:"flex items-center space-x-2"},[F(c("input",{type:"radio",value:o.value,"onUpdate:modelValue":e[0]||(e[0]=l=>i.selectedValue=l),onChange:e[1]||(e[1]=(...l)=>s.handleRadioChange&&s.handleRadioChange(...l)),class:"text-blue-500 focus:ring-2 focus:ring-blue-200","aria-checked":i.selectedValue===o.value.toString(),role:"radio"},null,40,kdt),[[zL,i.selectedValue]]),c("span",Idt,X(o.label),1)]))),128))])}const Ddt=bt(Mdt,[["render",Odt]]),Ldt="/assets/gpu-BWVOYg-D.svg",Pdt={name:"StringListManager",props:{modelValue:{type:Array,default:()=>[]},placeholder:{type:String,default:"Enter an item"}},emits:["update:modelValue","change"],data(){return{newItem:"",draggingIndex:null}},methods:{addItem(){if(this.newItem.trim()){const n=[...this.modelValue,this.newItem.trim()];this.$emit("update:modelValue",n),this.$emit("change"),this.newItem=""}},removeItem(n){const e=this.modelValue.filter((t,r)=>r!==n);this.$emit("update:modelValue",e),this.$emit("change")},removeAll(){this.$emit("update:modelValue",[]),this.$emit("change")},startDragging(n){this.draggingIndex=n},dragItem(n){if(this.draggingIndex!==null){const e=[...this.modelValue],t=e.splice(this.draggingIndex,1)[0];e.splice(n,0,t),this.$emit("update:modelValue",e),this.$emit("change")}},stopDragging(){this.draggingIndex=null},moveUp(n){if(n>0){const e=[...this.modelValue],t=e.splice(n,1)[0];e.splice(n-1,0,t),this.$emit("update:modelValue",e),this.$emit("change")}},moveDown(n){if(ni.newItem=o),placeholder:t.placeholder,onKeyup:e[1]||(e[1]=ui((...o)=>s.addItem&&s.addItem(...o),["enter"])),class:"flex-grow mr-4 px-4 py-2 border border-gray-300 rounded dark:bg-gray-600 text-lg"},null,40,Udt),[[_e,i.newItem]]),c("button",{onClick:e[2]||(e[2]=(...o)=>s.addItem&&s.addItem(...o)),class:"bg-blue-500 text-white px-6 py-2 rounded hover:bg-blue-600 text-lg"},"Add")]),t.modelValue.length>0?(T(),M("ul",Bdt,[(T(!0),M(je,null,at(t.modelValue,(o,a)=>(T(),M("li",{key:a,class:qe(["flex items-center mb-2 relative",{"bg-gray-200":i.draggingIndex===a}])},[c("span",Gdt,X(o),1),c("div",zdt,[c("button",{onClick:l=>s.removeItem(a),class:"text-red-500 hover:text-red-700 p-2"},e[5]||(e[5]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[c("path",{"fill-rule":"evenodd",d:"M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2v10a2 2 0 002 2h8a2 2 0 002-2V6a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM7 8a1 1 0 012 0v6a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v6a1 1 0 102 0V8a1 1 0 00-1-1z","clip-rule":"evenodd"})],-1)]),8,Vdt),a>0?(T(),M("button",{key:0,onClick:l=>s.moveUp(a),class:"bg-gray-300 hover:bg-gray-400 p-2 rounded mr-2"},e[6]||(e[6]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[c("path",{"fill-rule":"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z","clip-rule":"evenodd"})],-1)]),8,Hdt)):Y("",!0),as.moveDown(a),class:"bg-gray-300 hover:bg-gray-400 p-2 rounded"},e[7]||(e[7]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[c("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)]),8,qdt)):Y("",!0)]),i.draggingIndex===a?(T(),M("div",{key:0,class:"absolute top-0 left-0 w-full h-full bg-gray-200 opacity-50 cursor-move",onMousedown:l=>s.startDragging(a),onMousemove:l=>s.dragItem(a),onMouseup:e[3]||(e[3]=(...l)=>s.stopDragging&&s.stopDragging(...l))},null,40,Ydt)):Y("",!0)],2))),128))])):Y("",!0),t.modelValue.length>0?(T(),M("div",$dt,[c("button",{onClick:e[4]||(e[4]=(...o)=>s.removeAll&&s.removeAll(...o)),class:"bg-red-500 text-white px-6 py-2 rounded hover:bg-red-600 text-lg"},"Remove All")])):Y("",!0)])}const Kdt=bt(Pdt,[["render",Wdt]]),jdt="/";de.defaults.baseURL="/";const Qdt={components:{AddModelDialog:udt,ModelEntry:cct,PersonalityViewer:_ct,PersonalityEntry:EI,BindingEntry:rdt,ChoiceDialog:ky,Card:tm,StringListManager:Kdt,RadioOptions:Ddt},data(){return{posts_headers:{accept:"application/json","Content-Type":"application/json"},defaultModelImgPlaceholder:wr,snd_input_devices:[],snd_input_devices_indexes:[],snd_output_devices:[],snd_output_devices_indexes:[],voices:[],voice_languages:{Arabic:"ar","Brazilian Portuguese":"pt",Chinese:"zh-cn",Czech:"cs",Dutch:"nl",English:"en",French:"fr",German:"de",Italian:"it",Polish:"pl",Russian:"ru",Spanish:"es",Turkish:"tr",Japanese:"ja",Korean:"ko",Hungarian:"hu",Hindi:"hi"},storeLogo:Ai,binding_changed:!1,SVGGPU:Ldt,models_zoo:[],models_zoo_initialLoadCount:10,models_zoo_loadMoreCount:5,models_zoo_loadedEntries:[],models_zoo_scrollThreshold:200,sortOptions:[{label:"Sort by Date",value:0},{label:"Sort by Rank",value:1},{label:"Sort by Name",value:2},{label:"Sort by Maker",value:3},{label:"Sort by Quantizer",value:4}],comfyui_models:[],show_only_installed_models:!1,reference_path:"",audioVoices:[],has_updates:!1,variant_choices:[],variantSelectionDialogVisible:!1,currenModelToInstall:null,loading_text:"",personality_category:null,addModelDialogVisibility:!1,modelPath:"",personalitiesFiltered:[],modelsFiltered:[],collapsedArr:[],all_collapsed:!0,data_conf_collapsed:!0,internet_conf_collapsed:!0,servers_conf_collapsed:!0,mainconf_collapsed:!0,smartrouterconf_collapsed:!0,bec_collapsed:!0,sort_type:0,is_loading_zoo:!1,mzc_collapsed:!0,mzdc_collapsed:!0,pzc_collapsed:!0,bzc_collapsed:!0,pc_collapsed:!0,mc_collapsed:!0,sc_collapsed:!0,mzl_collapsed:!1,pzl_collapsed:!1,ezl_collapsed:!1,bzl_collapsed:!1,extCatgArr:[],persCatgArr:[],persArr:[],showConfirmation:!1,showToast:!1,isLoading:!1,settingsChanged:!1,isModelSelected:!1,isMounted:!1,bUrl:jdt,searchPersonality:"",searchModel:"",searchPersonalityTimer:{},searchPersonalityTimerInterval:1500,searchModelTimerInterval:1500,searchPersonalityInProgress:!1,searchModelInProgress:!1,addModel:{},modelDownlaodInProgress:!1,uploadData:[]}},async created(){try{this.$store.state.loading_infos="Getting Hardware usage",await this.refreshHardwareUsage(this.$store)}catch(n){console.log("Error cought:",n)}rt.on("loading_text",this.on_loading_text),this.updateHasUpdates()},methods:{fetchElevenLabsVoices(){fetch("https://api.elevenlabs.io/v1/voices").then(n=>n.json()).then(n=>{this.voices=n.voices}).catch(n=>console.error("Error fetching voices:",n))},async refreshHardwareUsage(n){await n.dispatch("refreshDiskUsage"),await n.dispatch("refreshRamUsage"),await n.dispatch("refreshVramUsage")},addDataSource(){this.$store.state.config.rag_databases.push(""),this.settingsChanged=!0},removeDataSource(n){this.$store.state.config.rag_databases.splice(n,1),this.settingsChanged=!0},async vectorize_folder(n){await de.post("/vectorize_folder",{client_id:this.$store.state.client_id,db_path:this.$store.state.config.rag_databases[n]},this.posts_headers)},async select_folder(n){try{rt.on("rag_db_added",e=>{console.log(e),e?(this.$store.state.config.rag_databases[n]=`${e.database_name}::${e.database_path}`,this.settingsChanged=!0):this.$store.state.toast.showToast("Failed to select a folder",4,!1)}),await de.post("/add_rag_database",{client_id:this.$store.state.client_id},this.posts_headers)}catch{this.$store.state.toast.showToast("Failed to select a folder",4,!1)}},handleTemplateSelection(n){console.log("handleTemplateSelection");const e=n.target.value;console.log("handleTemplateSelection: ",e),e==="lollms"?(console.log("Using lollms template"),this.configFile.start_header_id_template="!@>",this.configFile.system_message_template="system",this.configFile.end_header_id_template=": ",this.configFile.separator_template=` +Please report this to https://github.com/markedjs/marked.`,e){const i="

An error occurred:

"+Ur(r.message+"",!0)+"
";return t?Promise.resolve(i):i}if(t)return Promise.reject(r);throw r}}}const Sa=new $at;function nn(n,e){return Sa.parse(n,e)}nn.options=nn.setOptions=function(n){return Sa.setOptions(n),nn.defaults=Sa.defaults,uI(nn.defaults),nn};nn.getDefaults=Sy;nn.defaults=ka;nn.use=function(...n){return Sa.use(...n),nn.defaults=Sa.defaults,uI(nn.defaults),nn};nn.walkTokens=function(n,e){return Sa.walkTokens(n,e)};nn.parseInline=Sa.parseInline;nn.Parser=si;nn.parser=si.parse;nn.Renderer=Yp;nn.TextRenderer=Ry;nn.Lexer=ii;nn.lexer=ii.lex;nn.Tokenizer=Hp;nn.Hooks=Kc;nn.parse=nn;nn.options;nn.setOptions;nn.use;nn.walkTokens;nn.parseInline;si.parse;ii.lex;const Wat={name:"HelpView",data(){return{helpSections:[]}},methods:{toggleSection(n){this.helpSections[n].isOpen=!this.helpSections[n].isOpen},async loadMarkdownFile(n){try{const t=await(await fetch(`/help/${n}`)).text();return nn(t)}catch(e){return console.error("Error loading markdown file:",e),"Error loading help content."}},async loadHelpSections(){const n=[{title:"About LoLLMs",file:"lollms-context.md"},{title:"Getting Started",file:"getting-started.md"},{title:"Uploading Files",file:"uploading-files.md"},{title:"Sending Images",file:"sending-images.md"},{title:"Using Code Interpreter",file:"code-interpreter.md"},{title:"Internet Search",file:"internet-search.md"}];for(const e of n){const t=await this.loadMarkdownFile(e.file);this.helpSections.push({title:e.title,content:t,isOpen:!1})}}},mounted(){this.loadHelpSections()}},Kat={class:"help-view background-color p-6 w-full"},jat={class:"big-card w-full"},Qat={class:"help-sections-container"},Xat={class:"help-sections space-y-4"},Zat=["onClick"],Jat={class:"toggle-icon"},elt={key:0,class:"help-content mt-4"},tlt=["innerHTML"];function nlt(n,e,t,r,i,s){return T(),M("div",Kat,[c("div",jat,[e[0]||(e[0]=c("h1",{class:"text-4xl md:text-5xl font-bold text-gray-800 dark:text-gray-100 mb-6"},"LoLLMs Help",-1)),c("div",Qat,[c("div",Xat,[(T(!0),M(je,null,at(i.helpSections,(o,a)=>(T(),M("div",{key:a,class:"help-section message"},[c("h2",{onClick:l=>s.toggleSection(a),class:"menu-item cursor-pointer flex justify-between items-center"},[pt(X(o.title)+" ",1),c("span",Jat,X(o.isOpen?"▼":"▶"),1)],8,Zat),o.isOpen?(T(),M("div",elt,[c("div",{innerHTML:o.content,class:"prose dark:prose-invert"},null,8,tlt)])):Y("",!0)]))),128))])])])])}const rlt=bt(Wat,[["render",nlt],["__scopeId","data-v-8c1798f3"]]);function Wi(n,e=!0,t=1){const r=e?1e3:1024;if(Math.abs(n)=r&&s{Ze.replace()})},executeCommand(n){this.isMenuOpen=!1,console.log("Selected"),console.log(n.value),typeof n.value=="function"&&(console.log("Command detected",n),n.value()),this.execute_cmd&&(console.log("executing generic command"),this.execute_cmd(n))},positionMenu(){var n;if(this.$refs.menuButton!=null){if(this.force_position==0||this.force_position==null){const e=this.$refs.menuButton.getBoundingClientRect(),t=window.innerHeight;n=e.bottom>t/2}else this.force_position==1?n=!0:n=!1;this.menuPosition.top=n?"auto":"calc(100% + 10px)",this.menuPosition.bottom=n?"100%":"auto"}}},mounted(){window.addEventListener("resize",this.positionMenu),this.positionMenu(),We(()=>{Ze.replace()})},beforeDestroy(){window.removeEventListener("resize",this.positionMenu)},watch:{isMenuOpen:"positionMenu"}},slt={class:"menu-container"},olt=["title"],alt=["src"],llt=["data-feather"],clt={key:2,class:"w-5 h-5"},dlt={key:3,"data-feather":"menu"},ult={class:"flex-grow menu-ul"},plt=["onClick"],hlt={key:0,"data-feather":"check"},mlt=["src","alt"],flt=["data-feather"],glt={key:3,class:"menu-icon"};function _lt(n,e,t,r,i,s){return T(),M("div",slt,[c("button",{onClick:e[0]||(e[0]=J((...o)=>s.toggleMenu&&s.toggleMenu(...o),["prevent"])),title:t.title,class:qe([t.menuIconClass,"menu-button m-0 p-0 bg-blue-500 text-white dark:bg-blue-200 dark:text-gray-800 rounded flex items-center justify-center w-6 h-6 border-none cursor-pointer hover:bg-blue-400 w-8 h-8 object-fill text-red-700 border-2 active:scale-90 hover:z-20 hover:-translate-y-2 duration-150 border-gray-300 border-secondary cursor-pointer"]),ref:"menuButton"},[t.icon&&!t.icon.includes("#")&&!t.icon.includes("feather")?(T(),M("img",{key:0,src:t.icon,class:"w-5 h-5 p-0 m-0 shadow-lg bold"},null,8,alt)):t.icon&&t.icon.includes("feather")?(T(),M("i",{key:1,"data-feather":t.icon.split(":")[1],class:"w-5 h-5"},null,8,llt)):t.icon&&t.icon.includes("#")?(T(),M("p",clt,X(t.icon.split("#")[1]),1)):(T(),M("i",dlt))],10,olt),W(ji,{name:"slide"},{default:Ge(()=>[i.isMenuOpen?(T(),M("div",{key:0,class:"menu-list flex-grow",style:on(i.menuPosition),ref:"menu"},[c("ul",ult,[(T(!0),M(je,null,at(t.commands,(o,a)=>(T(),M("li",{key:a,onClick:J(l=>s.executeCommand(o),["prevent"]),class:"menu-command menu-li flex-grow hover:bg-blue-400"},[t.selected_entry==o.name?(T(),M("i",hlt)):o.icon&&!o.icon.includes("feather")&&!o.is_file?(T(),M("img",{key:1,src:o.icon,alt:o.name,class:"menu-icon"},null,8,mlt)):Y("",!0),o.icon&&o.icon.includes("feather")&&!o.is_file?(T(),M("i",{key:2,"data-feather":o.icon.split(":")[1],class:"mr-2"},null,8,flt)):(T(),M("span",glt)),c("span",null,X(o.name),1)],8,plt))),128))])],4)):Y("",!0)]),_:1})])}const My=bt(ilt,[["render",_lt]]),blt={components:{InteractiveMenu:My},props:{isInstalled:Boolean,onInstall:Function,onCancelInstall:Function,onUninstall:Function,onSelected:Function,onCopy:Function,onCopyLink:Function,selected:Boolean,model:Object,model_type:String},data(){return{progress:0,speed:0,total_size:0,downloaded_size:0,start_time:"",installing:!1,uninstalling:!1,failedToLoad:!1,linkNotValid:!1,selected_variant:""}},async mounted(){We(()=>{Ze.replace()})},methods:{formatFileSize(n){return n<1024?n+" bytes":n<1024*1024?(n/1024).toFixed(2)+" KB":n<1024*1024*1024?(n/(1024*1024)).toFixed(2)+" MB":(n/(1024*1024*1024)).toFixed(2)+" GB"},computedFileSize(n){return Wi(n)},getImgUrl(){return this.model.icon==null||this.model.icon==="/images/default_model.png"?wr:this.model.icon},defaultImg(n){n.target.src=wr},install(){this.onInstall(this)},uninstall(){this.isInstalled&&this.onUninstall(this)},toggleInstall(){this.isInstalled?(this.uninstalling=!0,this.onUninstall(this)):this.onInstall(this)},toggleSelected(n){if(console.log("event.target.tagName.toLowerCase()"),console.log(n.target.tagName.toLowerCase()),n.target.tagName.toLowerCase()==="button"||n.target.tagName.toLowerCase()==="svg"){n.stopPropagation();return}this.onSelected(this),this.model.selected=!0,We(()=>{Ze.replace()})},toggleCopy(){this.onCopy(this)},toggleCopyLink(){this.onCopyLink(this)},toggleCancelInstall(){this.onCancelInstall(this),this.installing=!1},handleSelection(){this.isInstalled&&!this.selected&&this.onSelected(this)},copyContentToClipboard(){this.$emit("copy","this.message.content")}},computed:{computed_classes(){return this.model.isInstalled?this.selected?"border-4 border-gray-200 bg-primary cursor-pointer":"border-0 border-primary bg-primary cursor-pointer":"border-transparent"},commandsList(){let n=[{name:this.model.isInstalled?"Install Extra":"Install",icon:"feather:settings",is_file:!1,value:this.install},{name:"Copy model info to clipboard",icon:"feather:settings",is_file:!1,value:this.toggleCopy}];return this.model.isInstalled&&n.push({name:"UnInstall",icon:"feather:settings",is_file:!1,value:this.uninstall}),this.selected&&n.push({name:"Reload",icon:"feather:refresh-ccw",is_file:!1,value:this.toggleSelected}),n},selected_computed(){return this.selected},fileSize:{get(){if(this.model&&this.model.variants&&this.model.variants.length>0){const n=this.model.variants[0].size;return this.formatFileSize(n)}return null}},speed_computed(){return Wi(this.speed)},total_size_computed(){return Wi(this.total_size)},downloaded_size_computed(){return Wi(this.downloaded_size)}},watch:{linkNotValid(){We(()=>{Ze.replace()})}}},vlt=["title"],ylt={key:0,class:"flex flex-row"},Elt={class:"max-w-[300px] overflow-x-auto"},Slt={class:"flex gap-3 items-center grow"},xlt=["href"],Tlt=["src"],wlt={class:"flex-1 overflow-hidden"},Clt={class:"font-bold font-large text-lg truncate"},Alt={key:1,class:"flex items-center flex-row gap-2 my-1"},Rlt={class:"flex grow items-center"},Mlt={key:2,class:"absolute z-10 -m-4 p-5 shadow-md text-center rounded-lg w-full h-full bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel bg-opacity-70 dark:bg-opacity-70 flex justify-center items-center"},Nlt={class:"relative flex flex-col items-center justify-center flex-grow h-full"},klt={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},Ilt={class:"w-full bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel rounded-lg p-2"},Olt={class:"flex justify-between mb-1"},Dlt={class:"text-sm font-medium text-blue-700 dark:text-white"},Llt={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},Plt={class:"flex justify-between mb-1"},Flt={class:"text-base font-medium text-blue-700 dark:text-white"},Ult={class:"text-sm font-medium text-blue-700 dark:text-white"},Blt={class:"flex flex-grow"},Glt={class:"flex flex-row flex-grow gap-3"},zlt={class:"p-2 text-center grow"},Vlt={key:3},Hlt={class:"flex flex-row items-center gap-3"},qlt=["src"],Ylt={class:"font-bold font-large text-lg truncate"},$lt={class:"flex items-center flex-row-reverse gap-2 my-1"},Wlt={class:"flex flex-row items-center"},Klt={key:0,class:"text-base text-red-600 flex items-center mt-1"},jlt=["title"],Qlt={class:""},Xlt={class:"flex flex-row items-center"},Zlt=["href","title"],Jlt={class:"flex items-center"},ect={class:"flex items-center"},tct={key:0,class:"flex items-center"},nct=["href"],rct={class:"flex items-center"},ict=["href"],sct={class:"flex items-center"},oct={class:"flex items-center"},act=["href"];function lct(n,e,t,r,i,s){const o=ht("InteractiveMenu");return T(),M("div",{class:qe(["relative items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 select-none",s.computed_classes]),title:t.model.name,onClick:e[10]||(e[10]=J(a=>s.toggleSelected(a),["prevent"]))},[t.model.isCustomModel?(T(),M("div",ylt,[c("div",Elt,[c("div",Slt,[c("a",{href:t.model.model_creator_link,target:"_blank"},[c("img",{src:s.getImgUrl(),onError:e[0]||(e[0]=a=>s.defaultImg(a)),class:"w-10 h-10 rounded-lg object-fill"},null,40,Tlt)],8,xlt),c("div",wlt,[c("h3",Clt,X(t.model.name),1)])])])])):Y("",!0),t.model.isCustomModel?(T(),M("div",Alt,[c("div",Rlt,[c("button",{type:"button",title:"Custom model / local model",class:"font-medium rounded-lg text-sm p-2 text-center inline-flex items-center",onClick:e[1]||(e[1]=J(()=>{},["stop"]))},e[11]||(e[11]=[c("i",{"data-feather":"box",class:"w-5"},null,-1),c("span",{class:"sr-only"},"Custom model / local model",-1)])),e[12]||(e[12]=pt(" Custom model "))]),c("div",null,[t.model.isInstalled?(T(),M("button",{key:0,title:"Delete file from disk",type:"button",onClick:e[2]||(e[2]=J((...a)=>s.uninstall&&s.uninstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300 rounded-lg dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900"},e[13]||(e[13]=[pt(" Uninstall "),c("span",{class:"sr-only"},"Remove",-1)]))):Y("",!0)])])):Y("",!0),i.installing?(T(),M("div",Mlt,[c("div",Nlt,[e[15]||(e[15]=c("div",{role:"status",class:"justify-center"},[c("svg",{"aria-hidden":"true",class:"w-24 h-24 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),c("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),c("span",{class:"sr-only"},"Loading...")],-1)),c("div",klt,[c("div",Ilt,[c("div",Olt,[e[14]||(e[14]=c("span",{class:"text-base font-medium text-blue-700 dark:text-white"},"Downloading",-1)),c("span",Dlt,X(Math.floor(i.progress))+"%",1)]),c("div",Llt,[c("div",{class:"bg-blue-600 h-2.5 rounded-full",style:on({width:i.progress+"%"})},null,4)]),c("div",Plt,[c("span",Flt,"Download speed: "+X(s.speed_computed)+"/s",1),c("span",Ult,X(s.downloaded_size_computed)+"/"+X(s.total_size_computed),1)])])]),c("div",Blt,[c("div",Glt,[c("div",zlt,[c("button",{onClick:e[3]||(e[3]=J((...a)=>s.toggleCancelInstall&&s.toggleCancelInstall(...a),["stop"])),type:"button",title:"Cancel download",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"}," Cancel ")])])])])])):Y("",!0),t.model.isCustomModel?Y("",!0):(T(),M("div",Vlt,[c("div",Hlt,[c("img",{ref:"imgElement",src:s.getImgUrl(),onError:e[4]||(e[4]=a=>s.defaultImg(a)),class:qe(["w-10 h-10 rounded-lg object-fill",i.linkNotValid?"grayscale":""])},null,42,qlt),c("h3",Ylt,X(t.model.name),1),e[16]||(e[16]=c("div",{class:"grow"},null,-1)),W(o,{commands:s.commandsList,force_position:2,title:"Menu"},null,8,["commands"])]),c("div",$lt,[c("div",Wlt,[i.linkNotValid?(T(),M("div",Klt,e[17]||(e[17]=[c("i",{"data-feather":"alert-triangle",class:"flex-shrink-0 mx-1"},null,-1),pt(" Link is not valid ")]))):Y("",!0)])]),c("div",{class:"",title:t.model.isInstalled?t.model.name:"Not installed"},[c("div",Qlt,[c("div",Xlt,[e[19]||(e[19]=c("i",{"data-feather":"download",class:"w-5 m-1 flex-shrink-0"},null,-1)),e[20]||(e[20]=c("b",null,"Card: ",-1)),c("a",{href:"https://huggingface.co/"+t.model.quantizer+"/"+t.model.name,target:"_blank",onClick:e[5]||(e[5]=J(()=>{},["stop"])),class:"m-1 flex items-center hover:text-secondary duration-75 active:scale-90 truncate",title:i.linkNotValid?"Link is not valid":"Download this manually (faster) and put it in the models/ folder then refresh"}," View full model card ",8,Zlt),e[21]||(e[21]=c("div",{class:"grow"},null,-1)),c("button",{class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center",title:"Copy link to clipboard",onClick:e[6]||(e[6]=J(a=>s.toggleCopyLink(),["stop"]))},e[18]||(e[18]=[c("i",{"data-feather":"clipboard",class:"w-5"},null,-1)]))]),c("div",Jlt,[c("div",{class:qe(["flex flex-shrink-0 items-center",i.linkNotValid?"text-red-600":""])},[e[22]||(e[22]=c("i",{"data-feather":"file",class:"w-5 m-1"},null,-1)),e[23]||(e[23]=c("b",null,"File size: ",-1)),pt(" "+X(s.fileSize),1)],2)]),c("div",ect,[e[24]||(e[24]=c("i",{"data-feather":"key",class:"w-5 m-1"},null,-1)),e[25]||(e[25]=c("b",null,"License: ",-1)),pt(" "+X(t.model.license),1)]),t.model.quantizer!="None"&&t.model.type!="transformers"?(T(),M("div",tct,[e[26]||(e[26]=c("i",{"data-feather":"user",class:"w-5 m-1"},null,-1)),e[27]||(e[27]=c("b",null,"quantizer: ",-1)),c("a",{href:"https://huggingface.co/"+t.model.quantizer,target:"_blank",rel:"noopener noreferrer",onClick:e[7]||(e[7]=J(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},X(t.model.quantizer),9,nct)])):Y("",!0),c("div",rct,[e[28]||(e[28]=c("i",{"data-feather":"user",class:"w-5 m-1"},null,-1)),e[29]||(e[29]=c("b",null,"Model creator: ",-1)),c("a",{href:t.model.model_creator_link,target:"_blank",rel:"noopener noreferrer",onClick:e[8]||(e[8]=J(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},X(t.model.model_creator),9,ict)]),c("div",sct,[e[30]||(e[30]=c("i",{"data-feather":"clock",class:"w-5 m-1"},null,-1)),e[31]||(e[31]=c("b",null,"Release date: ",-1)),pt(" "+X(t.model.last_commit_time),1)]),c("div",oct,[e[32]||(e[32]=c("i",{"data-feather":"grid",class:"w-5 m-1"},null,-1)),e[33]||(e[33]=c("b",null,"Category: ",-1)),c("a",{href:"https://huggingface.co/"+t.model.model_creator,target:"_blank",rel:"noopener noreferrer",onClick:e[9]||(e[9]=J(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},X(t.model.category),9,act)])])],8,jlt)]))],10,vlt)}const cct=bt(blt,[["render",lct]]),dct={data(){return{editMode:!1,avatar:"path/to/avatar.jpg",personalityName:"Personality Name",personalityAuthor:"Author Name",personalityDescription:"Personality Description",personalityCategory:"Category",disclaimer:"Disclaimer text",conditioningText:"Conditioning Text",aiPrefix:"AI Prefix",userPrefix:"User Prefix",antipromptsList:[{id:1,text:"Antiprompt 1"},{id:2,text:"Antiprompt 2"},{id:3,text:"Antiprompt 3"}]}},methods:{commitChanges(){console.log("Personality changes committed"),this.editMode=!1}}},uct={class:"p-4"},pct={class:"flex items-center mb-4"},hct=["src"],mct={class:"text-lg font-semibold"},fct={key:0};function gct(n,e,t,r,i,s){return T(),M("div",uct,[c("div",pct,[c("img",{src:i.avatar,class:"w-12 h-12 rounded-full mr-2",alt:"Avatar"},null,8,hct),c("h2",mct,X(i.personalityName),1)]),c("p",null,[e[2]||(e[2]=c("strong",null,"Author:",-1)),pt(" "+X(i.personalityAuthor),1)]),c("p",null,[e[3]||(e[3]=c("strong",null,"Description:",-1)),pt(" "+X(i.personalityDescription),1)]),c("p",null,[e[4]||(e[4]=c("strong",null,"Category:",-1)),pt(" "+X(i.personalityCategory),1)]),i.disclaimer?(T(),M("p",fct,[e[5]||(e[5]=c("strong",null,"Disclaimer:",-1)),pt(" "+X(i.disclaimer),1)])):Y("",!0),c("p",null,[e[6]||(e[6]=c("strong",null,"Conditioning Text:",-1)),pt(" "+X(i.conditioningText),1)]),c("p",null,[e[7]||(e[7]=c("strong",null,"AI Prefix:",-1)),pt(" "+X(i.aiPrefix),1)]),c("p",null,[e[8]||(e[8]=c("strong",null,"User Prefix:",-1)),pt(" "+X(i.userPrefix),1)]),c("div",null,[e[9]||(e[9]=c("strong",null,"Antiprompts:",-1)),c("ul",null,[(T(!0),M(je,null,at(i.antipromptsList,o=>(T(),M("li",{key:o.id},X(o.text),1))),128))])]),c("button",{onClick:e[0]||(e[0]=o=>i.editMode=!0),class:"mt-4 bg-blue-500 text-white px-4 py-2 rounded"}," Edit "),i.editMode?(T(),M("button",{key:1,onClick:e[1]||(e[1]=(...o)=>s.commitChanges&&s.commitChanges(...o)),class:"mt-4 bg-green-500 text-white px-4 py-2 rounded"}," Commit ")):Y("",!0)])}const _ct=bt(dct,[["render",gct]]),Ny="/assets/logo-CQZwS0X1.svg",bct="/",vct={props:{personality:{},select_language:Boolean,selected:Boolean,full_path:String,onTalk:Function,onOpenFolder:Function,onSelected:Function,onMount:Function,onUnMount:Function,onRemount:Function,onCopyToCustom:Function,onEdit:Function,onReinstall:Function,onSettings:Function,onCopyPersonalityName:Function,onToggleFavorite:Function},components:{InteractiveMenu:My},data(){return{isMounted:!1,name:this.personality.name,thumbnailVisible:!1,thumbnailPosition:{x:0,y:0}}},computed:{commandsList(){let n=[{name:this.isMounted?"unmount":"mount",icon:"feather:settings",is_file:!1,value:this.isMounted?this.unmount:this.mount},{name:"reinstall",icon:"feather:terminal",is_file:!1,value:this.toggleReinstall}];return console.log("this.category",this.personality.category),this.personality.category=="custom_personalities"?n.push({name:"edit",icon:"feather:settings",is_file:!1,value:this.edit}):n.push({name:"Copy to custom personas folder for editing",icon:"feather:copy",is_file:!1,value:this.copyToCustom}),this.isMounted&&n.push({name:"remount",icon:"feather:refresh-ccw",is_file:!1,value:this.reMount}),this.selected&&this.personality.has_scripts&&n.push({name:"settings",icon:"feather:settings",is_file:!1,value:this.toggleSettings}),n},selected_computed(){return this.selected}},mounted(){this.isMounted=this.personality.isMounted,We(()=>{Ze.replace()})},methods:{formatDate(n){const e={year:"numeric",month:"short",day:"numeric"};return new Date(n).toLocaleDateString(void 0,e)},showThumbnail(){this.thumbnailVisible=!0},hideThumbnail(){this.thumbnailVisible=!1},updateThumbnailPosition(n){this.thumbnailPosition={x:n.clientX+10,y:n.clientY+10}},getImgUrl(){return bct+this.personality.avatar},defaultImg(n){n.target.src=Ny},toggleFavorite(){this.onToggleFavorite(this)},showFolder(){this.onOpenFolder(this)},toggleTalk(){this.onTalk(this)},toggleCopyLink(){this.onCopyPersonalityName(this)},toggleSelected(){this.isMounted&&this.onSelected(this)},edit(){this.onEdit(this)},copyToCustom(){this.onCopyToCustom(this)},reMount(){this.onRemount(this)},mount(){console.log("Mounting"),this.onMount(this)},unmount(){console.log("Unmounting"),console.log(this.onUnMount),this.onUnMount(this),this.isMounted=!1},toggleSettings(){this.onSettings(this)},toggleReinstall(){this.onReinstall(this)}},watch:{selected(){We(()=>{Ze.replace()})}}},yct=["title"],Ect={class:"flex-grow"},Sct={class:"flex items-center mb-4"},xct=["src"],Tct={class:"text-sm text-gray-600"},wct={class:"text-sm text-gray-600"},Cct={class:"text-sm text-gray-600"},Act={key:0,class:"text-sm text-gray-600"},Rct={key:1,class:"text-sm text-gray-600"},Mct={class:"mb-4"},Nct=["innerHTML"],kct={class:"mt-auto pt-4 border-t"},Ict={class:"flex justify-between items-center flex-wrap"},Oct=["title"],Dct=["fill"],Lct=["src"];function Pct(n,e,t,r,i,s){const o=ht("InteractiveMenu");return T(),M("div",{class:qe(["app-card flex flex-col h-full",s.selected_computed?"border-primary-light":"border-transparent",i.isMounted?"bg-blue-200 dark:bg-blue-700":""]),title:t.personality.installed?"":"Not installed"},[c("div",Ect,[c("div",Sct,[c("img",{src:s.getImgUrl(),onError:e[0]||(e[0]=a=>s.defaultImg(a)),alt:"Personality Icon",class:"w-16 h-16 rounded-full border border-gray-300 mr-4 cursor-pointer",onClick:e[1]||(e[1]=(...a)=>s.toggleSelected&&s.toggleSelected(...a)),onMouseover:e[2]||(e[2]=(...a)=>s.showThumbnail&&s.showThumbnail(...a)),onMousemove:e[3]||(e[3]=(...a)=>s.updateThumbnailPosition&&s.updateThumbnailPosition(...a)),onMouseleave:e[4]||(e[4]=(...a)=>s.hideThumbnail&&s.hideThumbnail(...a))},null,40,xct),c("div",null,[c("h3",{class:"font-bold text-xl text-gray-800 cursor-pointer",onClick:e[5]||(e[5]=(...a)=>s.toggleSelected&&s.toggleSelected(...a))},X(t.personality.name),1),c("p",Tct,"Author: "+X(t.personality.author),1),c("p",wct,"Version: "+X(t.personality.version),1),c("p",Cct,"Category: "+X(t.personality.category),1),t.personality.creation_date?(T(),M("p",Act,"Creation Date: "+X(s.formatDate(t.personality.creation_date)),1)):Y("",!0),t.personality.last_update_date?(T(),M("p",Rct,"Last update Date: "+X(s.formatDate(t.personality.last_update_date)),1)):Y("",!0)])]),c("div",Mct,[e[10]||(e[10]=c("h4",{class:"font-semibold mb-1 text-gray-700"},"Description:",-1)),c("p",{class:"text-sm text-gray-600 h-20 overflow-y-auto",innerHTML:t.personality.description},null,8,Nct)])]),c("div",kct,[c("div",Ict,[c("button",{onClick:e[6]||(e[6]=(...a)=>s.toggleFavorite&&s.toggleFavorite(...a)),class:"text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out",title:n.isFavorite?"Remove from favorites":"Add to favorites"},[(T(),M("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:n.isFavorite?"currentColor":"none",viewBox:"0 0 24 24",stroke:"currentColor"},e[11]||(e[11]=[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"},null,-1)]),8,Dct))],8,Oct),i.isMounted?(T(),M("button",{key:0,onClick:e[7]||(e[7]=(...a)=>s.toggleSelected&&s.toggleSelected(...a)),class:"text-blue-500 hover:text-blue-600 transition duration-300 ease-in-out",title:"Select"},e[12]||(e[12]=[c("i",{"data-feather":"check",class:"h-6 w-6"},null,-1)]))):Y("",!0),i.isMounted?(T(),M("button",{key:1,onClick:e[8]||(e[8]=(...a)=>s.toggleTalk&&s.toggleTalk(...a)),class:"text-green-500 hover:text-green-600 transition duration-300 ease-in-out",title:"Talk"},e[13]||(e[13]=[c("i",{"data-feather":"send",class:"h-6 w-6"},null,-1)]))):Y("",!0),c("button",{onClick:e[9]||(e[9]=(...a)=>s.showFolder&&s.showFolder(...a)),class:"text-purple-500 hover:text-purple-600 transition duration-300 ease-in-out",title:"Show Folder"},e[14]||(e[14]=[c("i",{"data-feather":"folder",class:"h-6 w-6"},null,-1)])),W(o,{commands:s.commandsList,force_position:2,title:"Menu",class:"text-gray-500 hover:text-gray-600 transition duration-300 ease-in-out"},null,8,["commands"])])]),i.thumbnailVisible?(T(),M("div",{key:0,style:on({top:i.thumbnailPosition.y+"px",left:i.thumbnailPosition.x+"px"}),class:"fixed z-50 w-20 h-20 rounded-full overflow-hidden"},[c("img",{src:s.getImgUrl(),class:"w-full h-full object-fill"},null,8,Lct)],4)):Y("",!0)],10,yct)}const EI=bt(vct,[["render",Pct]]),Fct={name:"DynamicUIRenderer",props:{ui:{type:String,required:!0},instanceId:{type:String,required:!0}},data(){return{containerId:`dynamic-ui-${this.instanceId}`}},watch:{ui:{immediate:!0,handler(n){console.log(`UI prop changed for instance ${this.instanceId}:`,n),this.$nextTick(()=>{this.renderContent()})}}},methods:{renderContent(){console.log(`Rendering content for instance ${this.instanceId}...`);const n=this.$refs.container,t=new DOMParser().parseFromString(this.ui,"text/html"),r=t.getElementsByTagName("style");Array.from(r).forEach(s=>{const o=document.createElement("style");o.textContent=this.scopeCSS(s.textContent),document.head.appendChild(o)}),n.innerHTML=t.body.innerHTML;const i=t.getElementsByTagName("script");Array.from(i).forEach(s=>{const o=document.createElement("script");o.textContent=s.textContent,n.appendChild(o)})},scopeCSS(n){return n.replace(/([^\r\n,{}]+)(,(?=[^}]*{)|\s*{)/g,`#${this.containerId} $1$2`)}}},Uct=["id"];function Bct(n,e,t,r,i,s){return T(),M("div",{id:i.containerId,ref:"container"},null,8,Uct)}const SI=bt(Fct,[["render",Bct]]),Gct="/",zct={components:{DynamicUIRenderer:SI},props:{binding:{},onSelected:Function,onReinstall:Function,onInstall:Function,onUnInstall:Function,onSettings:Function,onReloadBinding:Function,selected:Boolean},data(){return{isTemplate:!1}},mounted(){We(()=>{Ze.replace()})},methods:{copyToClipBoard(n){console.log("Copying to clipboard :",n),navigator.clipboard.writeText(n)},getImgUrl(){return Gct+this.binding.icon},defaultImg(n){n.target.src=Ny},toggleSelected(){this.onSelected(this)},toggleInstall(){this.onInstall(this)},toggleUnInstall(){this.onUnInstall(this)},toggleReinstall(){this.onReinstall(this)},toggleReloadBinding(){this.onReloadBinding(this)},toggleSettings(){this.onSettings(this)},getStatus(){(this.binding.folder==="backend_template"||this.binding.folder==="binding_template")&&(this.isTemplate=!0)}},watch:{selected(){We(()=>{Ze.replace()})}}},Vct=["title"],Hct={class:"flex flex-row items-center gap-3"},qct=["src"],Yct={class:"font-bold font-large text-lg truncate"},$ct={class:"flex-none gap-1"},Wct={class:"flex items-center flex-row-reverse gap-2 my-1"},Kct={class:""},jct={class:""},Qct={class:"flex items-center"},Xct={class:"flex items-center"},Zct={class:"flex items-center"},Jct={class:"flex items-center"},edt=["href"],tdt=["title","innerHTML"];function ndt(n,e,t,r,i,s){const o=ht("DynamicUIRenderer");return T(),M("div",{class:qe(["items-start p-4 hover:bg-primary-light hover:border-primary-light rounded-lg mb-2 shadow-lg border-2 cursor-pointer select-none",t.selected?" border-primary bg-primary":"border-transparent"]),onClick:e[8]||(e[8]=J((...a)=>s.toggleSelected&&s.toggleSelected(...a),["stop"])),title:t.binding.installed?t.binding.name:"Not installed"},[c("div",null,[c("div",Hct,[c("img",{ref:"imgElement",src:s.getImgUrl(),onError:e[0]||(e[0]=a=>s.defaultImg(a)),class:"w-10 h-10 rounded-full object-fill text-blue-700"},null,40,qct),c("h3",Yct,X(t.binding.name),1),e[10]||(e[10]=c("div",{class:"grow"},null,-1)),c("div",$ct,[t.selected?(T(),M("button",{key:0,type:"button",title:"Reload binding",onClick:[e[1]||(e[1]=(...a)=>s.toggleReloadBinding&&s.toggleReloadBinding(...a)),e[2]||(e[2]=J(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},e[9]||(e[9]=[c("i",{"data-feather":"refresh-cw",class:"w-5"},null,-1),c("span",{class:"sr-only"},"Help",-1)]))):Y("",!0)])]),c("div",Wct,[t.binding.installed?Y("",!0):(T(),M("button",{key:0,title:"Click to install",type:"button",onClick:e[3]||(e[3]=J((...a)=>s.toggleInstall&&s.toggleInstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},e[11]||(e[11]=[pt(" Install "),c("span",{class:"sr-only"},"Click to install",-1)]))),t.binding.installed?(T(),M("button",{key:1,title:"Click to Reinstall binding",type:"button",onClick:e[4]||(e[4]=J((...a)=>s.toggleReinstall&&s.toggleReinstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-green-700 hover:bg-red-800 focus:ring-4 focus:ring-green-300 rounded-lg dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-red-900"},e[12]||(e[12]=[pt(" Reinstall "),c("span",{class:"sr-only"},"Reinstall",-1)]))):Y("",!0),t.binding.installed?(T(),M("button",{key:2,title:"Click to Reinstall binding",type:"button",onClick:e[5]||(e[5]=J((...a)=>s.toggleUnInstall&&s.toggleUnInstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300 rounded-lg dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900"},e[13]||(e[13]=[pt(" Uninstall "),c("span",{class:"sr-only"},"UnInstall",-1)]))):Y("",!0),t.selected?(T(),M("button",{key:3,title:"Click to open Settings",type:"button",onClick:e[6]||(e[6]=J((...a)=>s.toggleSettings&&s.toggleSettings(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},e[14]||(e[14]=[pt(" Settings "),c("span",{class:"sr-only"},"Settings",-1)]))):Y("",!0)]),t.binding.ui?(T(),Tt(o,{key:0,class:"w-full h-full",code:t.binding.ui},null,8,["code"])):Y("",!0),c("div",Kct,[c("div",jct,[c("div",Qct,[e[15]||(e[15]=c("i",{"data-feather":"user",class:"w-5 m-1"},null,-1)),e[16]||(e[16]=c("b",null,"Author: ",-1)),pt(" "+X(t.binding.author),1)]),c("div",Xct,[e[18]||(e[18]=c("i",{"data-feather":"folder",class:"w-5 m-1"},null,-1)),e[19]||(e[19]=c("b",null,"Folder: ",-1)),pt(" "+X(t.binding.folder)+" ",1),e[20]||(e[20]=c("div",{class:"grow"},null,-1)),c("button",{class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center",title:"Copy link to clipboard",onClick:e[7]||(e[7]=J(a=>s.copyToClipBoard(this.binding.folder),["stop"]))},e[17]||(e[17]=[c("i",{"data-feather":"clipboard",class:"w-5"},null,-1)]))]),c("div",Zct,[e[21]||(e[21]=c("i",{"data-feather":"git-merge",class:"w-5 m-1"},null,-1)),e[22]||(e[22]=c("b",null,"Version: ",-1)),pt(" "+X(t.binding.version),1)]),c("div",Jct,[e[23]||(e[23]=c("i",{"data-feather":"github",class:"w-5 m-1"},null,-1)),e[24]||(e[24]=c("b",null,"Link: ",-1)),c("a",{href:t.binding.link,target:"_blank",class:"flex items-center hover:text-secondary duration-75 active:scale-90"},X(t.binding.link),9,edt)])]),e[25]||(e[25]=c("div",{class:"flex items-center"},[c("i",{"data-feather":"info",class:"w-5 m-1"}),c("b",null,"Description: "),c("br")],-1)),c("p",{class:"mx-1 opacity-80 line-clamp-3",title:t.binding.description,innerHTML:t.binding.description},null,8,tdt)])])],10,Vct)}const rdt=bt(zct,[["render",ndt]]),Ai="/assets/logo-B22RoIQ8.png",idt={data(){return{show:!1,model_path:"",resolve:null}},methods:{cancel(){this.resolve(null)},openInputBox(){return new Promise(n=>{this.resolve=n})},hide(n){this.show=!1,this.resolve&&(this.resolve(n),this.resolve=null)},showDialog(n){return new Promise(e=>{this.model_path=n,this.show=!0,this.resolve=e})}}},sdt={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},odt={class:"relative w-full max-w-md max-h-full"},adt={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},ldt={class:"p-4 text-center"},cdt={class:"p-4 text-center mx-auto mb-4"};function ddt(n,e,t,r,i,s){return i.show?(T(),M("div",sdt,[c("div",odt,[c("div",adt,[c("button",{type:"button",onClick:e[0]||(e[0]=o=>s.hide(!1)),class:"absolute top-3 right-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-800 dark:hover:text-white"},e[4]||(e[4]=[c("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),c("span",{class:"sr-only"},"Close modal",-1)])),c("div",ldt,[e[6]||(e[6]=c("svg",{"aria-hidden":"true",class:"mx-auto mb-4 text-gray-400 w-14 h-14 dark:text-gray-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)),c("div",cdt,[e[5]||(e[5]=c("label",{class:"mr-2"},"Model path",-1)),F(c("input",{"onUpdate:modelValue":e[1]||(e[1]=o=>i.model_path=o),class:"px-4 py-2 border border-gray-300 rounded-lg",type:"text"},null,512),[[_e,i.model_path]])]),c("button",{onClick:e[2]||(e[2]=o=>s.hide(!0)),type:"button",class:"text-white bg-green-600 hover:bg-green-800 focus:ring-4 focus:outline-none focus:ring-red-300 dark:focus:ring-red-800 font-medium rounded-lg text-sm inline-flex items-center px-5 py-2.5 text-center mr-2"}," Add "),c("button",{onClick:e[3]||(e[3]=o=>s.hide(!1)),type:"button",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"},"No, cancel")])])])])):Y("",!0)}const udt=bt(idt,[["render",ddt]]),pdt={props:{show:{type:Boolean,default:!1},can_remove:{type:Boolean,default:!1},title:{type:String,default:"Select an option"},choices:{type:Array,required:!0}},data(){return{selectedChoice:null,showInput:!1,newFilename:""}},methods:{displayName(n){return typeof n=="string"?n:n&&n.name?n.name:""},selectChoice(n){this.selectedChoice=n,this.$emit("choice-selected",n)},closeDialog(){this.$emit("close-dialog")},validateChoice(){this.$emit("choice-validated",this.selectedChoice)},formatSize(n){const e=["bytes","KB","MB","GB"];let t=0;for(;n>=1024&&t[t.show?(T(),M("div",hdt,[c("div",mdt,[c("h2",fdt,[e[5]||(e[5]=c("svg",{class:"w-6 h-6 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"})],-1)),pt(" "+X(t.title),1)]),c("div",gdt,[c("ul",null,[(T(!0),M(je,null,at(t.choices,(o,a)=>(T(),M("li",{key:a,class:"py-2 px-4 hover:bg-gray-200 dark:hover:bg-gray-600 transition duration-150 ease-in-out"},[c("div",_dt,[c("div",bdt,[o.isEditing?F((T(),M("input",{key:1,"onUpdate:modelValue":l=>o.editName=l,onBlur:l=>s.finishEditing(o),onKeyup:ui(l=>s.finishEditing(o),["enter"]),class:"bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded px-2 py-1 text-sm",autofocus:""},null,40,ydt)),[[_e,o.editName]]):(T(),M("span",{key:0,onClick:l=>s.selectChoice(o),class:qe([{"font-semibold":o===i.selectedChoice},"text-gray-800 dark:text-white cursor-pointer"])},X(s.displayName(o)),11,vdt)),o.size?(T(),M("span",Edt,X(s.formatSize(o.size)),1)):Y("",!0)]),c("div",Sdt,[c("button",{onClick:l=>s.editChoice(o),class:"text-blue-500 hover:text-blue-600 mr-2"},e[6]||(e[6]=[c("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"})],-1)]),8,xdt),t.can_remove?(T(),M("button",{key:0,onClick:l=>s.removeChoice(o,a),class:"text-red-500 hover:text-red-600"},e[7]||(e[7]=[c("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1)]),8,Tdt)):Y("",!0)])])]))),128))])]),i.showInput?(T(),M("div",wdt,[F(c("input",{"onUpdate:modelValue":e[0]||(e[0]=o=>i.newFilename=o),placeholder:"Enter a filename",class:"border border-gray-300 dark:border-gray-600 p-2 rounded-lg w-full mb-2 bg-white dark:bg-gray-700 text-gray-800 dark:text-white"},null,512),[[_e,i.newFilename]]),c("button",{onClick:e[1]||(e[1]=(...o)=>s.addNewFilename&&s.addNewFilename(...o)),class:"bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 px-4 rounded-lg transition duration-300"}," Add ")])):Y("",!0),c("div",Cdt,[c("button",{onClick:e[2]||(e[2]=(...o)=>s.closeDialog&&s.closeDialog(...o)),class:"bg-gray-300 hover:bg-gray-400 text-gray-800 font-bold py-2 px-4 rounded-lg transition duration-300"}," Cancel "),c("button",{onClick:e[3]||(e[3]=(...o)=>s.validateChoice&&s.validateChoice(...o)),disabled:!i.selectedChoice,class:qe([{"bg-blue-500 hover:bg-blue-600":i.selectedChoice,"bg-gray-400 cursor-not-allowed":!i.selectedChoice},"text-white font-bold py-2 px-4 rounded-lg transition duration-300"])}," Validate ",10,Adt),c("button",{onClick:e[4]||(e[4]=(...o)=>s.toggleInput&&s.toggleInput(...o)),class:"bg-green-500 hover:bg-green-600 text-white font-bold py-2 px-4 rounded-lg transition duration-300"}," Add New ")])])])):Y("",!0)]),_:1})}const ky=bt(pdt,[["render",Rdt],["__scopeId","data-v-f43216be"]]),Mdt={props:{radioOptions:{type:Array,required:!0},defaultValue:{type:String,default:"0"}},data(){return{selectedValue:this.defaultValue}},computed:{selectedLabel(){const n=this.radioOptions.find(e=>e.value===this.selectedValue);return n?n.label:""}},watch:{selectedValue(n,e){this.$emit("radio-selected",n)}},methods:{handleRadioChange(){}}},Ndt={class:"flex space-x-4"},kdt=["value","aria-checked"],Idt={class:"text-gray-700"};function Odt(n,e,t,r,i,s){return T(),M("div",Ndt,[(T(!0),M(je,null,at(t.radioOptions,(o,a)=>(T(),M("label",{key:o.value,class:"flex items-center space-x-2"},[F(c("input",{type:"radio",value:o.value,"onUpdate:modelValue":e[0]||(e[0]=l=>i.selectedValue=l),onChange:e[1]||(e[1]=(...l)=>s.handleRadioChange&&s.handleRadioChange(...l)),class:"text-blue-500 focus:ring-2 focus:ring-blue-200","aria-checked":i.selectedValue===o.value.toString(),role:"radio"},null,40,kdt),[[zL,i.selectedValue]]),c("span",Idt,X(o.label),1)]))),128))])}const Ddt=bt(Mdt,[["render",Odt]]),Ldt="/assets/gpu-BWVOYg-D.svg",Pdt={name:"StringListManager",props:{modelValue:{type:Array,default:()=>[]},placeholder:{type:String,default:"Enter an item"}},emits:["update:modelValue","change"],data(){return{newItem:"",draggingIndex:null}},methods:{addItem(){if(this.newItem.trim()){const n=[...this.modelValue,this.newItem.trim()];this.$emit("update:modelValue",n),this.$emit("change"),this.newItem=""}},removeItem(n){const e=this.modelValue.filter((t,r)=>r!==n);this.$emit("update:modelValue",e),this.$emit("change")},removeAll(){this.$emit("update:modelValue",[]),this.$emit("change")},startDragging(n){this.draggingIndex=n},dragItem(n){if(this.draggingIndex!==null){const e=[...this.modelValue],t=e.splice(this.draggingIndex,1)[0];e.splice(n,0,t),this.$emit("update:modelValue",e),this.$emit("change")}},stopDragging(){this.draggingIndex=null},moveUp(n){if(n>0){const e=[...this.modelValue],t=e.splice(n,1)[0];e.splice(n-1,0,t),this.$emit("update:modelValue",e),this.$emit("change")}},moveDown(n){if(ni.newItem=o),placeholder:t.placeholder,onKeyup:e[1]||(e[1]=ui((...o)=>s.addItem&&s.addItem(...o),["enter"])),class:"flex-grow mr-4 px-4 py-2 border border-gray-300 rounded dark:bg-gray-600 text-lg"},null,40,Udt),[[_e,i.newItem]]),c("button",{onClick:e[2]||(e[2]=(...o)=>s.addItem&&s.addItem(...o)),class:"bg-blue-500 text-white px-6 py-2 rounded hover:bg-blue-600 text-lg"},"Add")]),t.modelValue.length>0?(T(),M("ul",Bdt,[(T(!0),M(je,null,at(t.modelValue,(o,a)=>(T(),M("li",{key:a,class:qe(["flex items-center mb-2 relative",{"bg-gray-200":i.draggingIndex===a}])},[c("span",Gdt,X(o),1),c("div",zdt,[c("button",{onClick:l=>s.removeItem(a),class:"text-red-500 hover:text-red-700 p-2"},e[5]||(e[5]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[c("path",{"fill-rule":"evenodd",d:"M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2v10a2 2 0 002 2h8a2 2 0 002-2V6a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM7 8a1 1 0 012 0v6a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v6a1 1 0 102 0V8a1 1 0 00-1-1z","clip-rule":"evenodd"})],-1)]),8,Vdt),a>0?(T(),M("button",{key:0,onClick:l=>s.moveUp(a),class:"bg-gray-300 hover:bg-gray-400 p-2 rounded mr-2"},e[6]||(e[6]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[c("path",{"fill-rule":"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z","clip-rule":"evenodd"})],-1)]),8,Hdt)):Y("",!0),as.moveDown(a),class:"bg-gray-300 hover:bg-gray-400 p-2 rounded"},e[7]||(e[7]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[c("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)]),8,qdt)):Y("",!0)]),i.draggingIndex===a?(T(),M("div",{key:0,class:"absolute top-0 left-0 w-full h-full bg-gray-200 opacity-50 cursor-move",onMousedown:l=>s.startDragging(a),onMousemove:l=>s.dragItem(a),onMouseup:e[3]||(e[3]=(...l)=>s.stopDragging&&s.stopDragging(...l))},null,40,Ydt)):Y("",!0)],2))),128))])):Y("",!0),t.modelValue.length>0?(T(),M("div",$dt,[c("button",{onClick:e[4]||(e[4]=(...o)=>s.removeAll&&s.removeAll(...o)),class:"bg-red-500 text-white px-6 py-2 rounded hover:bg-red-600 text-lg"},"Remove All")])):Y("",!0)])}const Kdt=bt(Pdt,[["render",Wdt]]),jdt="/";de.defaults.baseURL="/";const Qdt={components:{AddModelDialog:udt,ModelEntry:cct,PersonalityViewer:_ct,PersonalityEntry:EI,BindingEntry:rdt,ChoiceDialog:ky,Card:tm,StringListManager:Kdt,RadioOptions:Ddt},data(){return{posts_headers:{accept:"application/json","Content-Type":"application/json"},defaultModelImgPlaceholder:wr,snd_input_devices:[],snd_input_devices_indexes:[],snd_output_devices:[],snd_output_devices_indexes:[],voices:[],voice_languages:{Arabic:"ar","Brazilian Portuguese":"pt",Chinese:"zh-cn",Czech:"cs",Dutch:"nl",English:"en",French:"fr",German:"de",Italian:"it",Polish:"pl",Russian:"ru",Spanish:"es",Turkish:"tr",Japanese:"ja",Korean:"ko",Hungarian:"hu",Hindi:"hi"},storeLogo:Ai,binding_changed:!1,SVGGPU:Ldt,models_zoo:[],models_zoo_initialLoadCount:10,models_zoo_loadMoreCount:5,models_zoo_loadedEntries:[],models_zoo_scrollThreshold:200,sortOptions:[{label:"Sort by Date",value:0},{label:"Sort by Rank",value:1},{label:"Sort by Name",value:2},{label:"Sort by Maker",value:3},{label:"Sort by Quantizer",value:4}],comfyui_models:[],show_only_installed_models:!1,reference_path:"",audioVoices:[],has_updates:!1,variant_choices:[],variantSelectionDialogVisible:!1,currenModelToInstall:null,loading_text:"",personality_category:null,addModelDialogVisibility:!1,modelPath:"",personalitiesFiltered:[],modelsFiltered:[],collapsedArr:[],all_collapsed:!0,data_conf_collapsed:!0,internet_conf_collapsed:!0,servers_conf_collapsed:!0,mainconf_collapsed:!0,smartrouterconf_collapsed:!0,bec_collapsed:!0,sort_type:0,is_loading_zoo:!1,mzc_collapsed:!0,mzdc_collapsed:!0,pzc_collapsed:!0,bzc_collapsed:!0,pc_collapsed:!0,mc_collapsed:!0,sc_collapsed:!0,mzl_collapsed:!1,pzl_collapsed:!1,ezl_collapsed:!1,bzl_collapsed:!1,extCatgArr:[],persCatgArr:[],persArr:[],showConfirmation:!1,showToast:!1,isLoading:!1,settingsChanged:!1,isModelSelected:!1,isMounted:!1,bUrl:jdt,searchPersonality:"",searchModel:"",searchPersonalityTimer:{},searchPersonalityTimerInterval:1500,searchModelTimerInterval:1500,searchPersonalityInProgress:!1,searchModelInProgress:!1,addModel:{},modelDownlaodInProgress:!1,uploadData:[]}},async created(){try{this.$store.state.loading_infos="Getting Hardware usage",await this.refreshHardwareUsage(this.$store)}catch(n){console.log("Error cought:",n)}rt.on("loading_text",this.on_loading_text),this.updateHasUpdates()},methods:{fetchElevenLabsVoices(){fetch("https://api.elevenlabs.io/v1/voices").then(n=>n.json()).then(n=>{this.voices=n.voices}).catch(n=>console.error("Error fetching voices:",n))},async refreshHardwareUsage(n){await n.dispatch("refreshDiskUsage"),await n.dispatch("refreshRamUsage"),await n.dispatch("refreshVramUsage")},addDataSource(){this.$store.state.config.rag_databases.push(""),this.settingsChanged=!0},removeDataSource(n){this.$store.state.config.rag_databases.splice(n,1),this.settingsChanged=!0},async vectorize_folder(n){await de.post("/vectorize_folder",{client_id:this.$store.state.client_id,db_path:this.$store.state.config.rag_databases[n]},this.posts_headers)},async select_folder(n){try{rt.on("rag_db_added",e=>{console.log(e),e?(this.$store.state.config.rag_databases[n]=`${e.database_name}::${e.database_path}`,this.settingsChanged=!0):this.$store.state.toast.showToast("Failed to select a folder",4,!1)}),await de.post("/add_rag_database",{client_id:this.$store.state.client_id},this.posts_headers)}catch{this.$store.state.toast.showToast("Failed to select a folder",4,!1)}},handleTemplateSelection(n){console.log("handleTemplateSelection");const e=n.target.value;console.log("handleTemplateSelection: ",e),e==="lollms"?(console.log("Using lollms template"),this.configFile.start_header_id_template="!@>",this.configFile.system_message_template="system",this.configFile.end_header_id_template=": ",this.configFile.separator_template=` `,this.configFile.start_user_header_id_template="!@>",this.configFile.end_user_header_id_template=": ",this.configFile.end_user_message_id_template="",this.configFile.start_ai_header_id_template="!@>",this.configFile.end_ai_header_id_template=": ",this.configFile.end_ai_message_id_template="",this.settingsChanged=!0):e==="lollms_simplified"?(console.log("Using lollms template"),this.configFile.start_header_id_template="@>",this.configFile.system_message_template="system",this.configFile.end_header_id_template=": ",this.configFile.separator_template=` `,this.configFile.start_user_header_id_template="@>",this.configFile.end_user_header_id_template=": ",this.configFile.end_user_message_id_template="",this.configFile.start_ai_header_id_template="@>",this.configFile.end_ai_header_id_template=": ",this.configFile.end_ai_message_id_template="",this.settingsChanged=!0):e==="bare"?(console.log("Using lollms template"),this.configFile.start_header_id_template="",this.configFile.system_message_template="system",this.configFile.end_header_id_template=": ",this.configFile.separator_template=` `,this.configFile.start_user_header_id_template="",this.configFile.end_user_header_id_template=": ",this.configFile.end_user_message_id_template="",this.configFile.start_ai_header_id_template="",this.configFile.end_ai_header_id_template=": ",this.configFile.end_ai_message_id_template="",this.settingsChanged=!0):e==="llama3"?(console.log("Using llama3 template"),this.configFile.start_header_id_template="<|start_header_id|>",this.configFile.system_message_template="system",this.configFile.end_header_id_template="<|end_header_id|>",this.configFile.separator_template="<|eot_id|>",this.configFile.start_user_header_id_template="<|start_header_id|>",this.configFile.end_user_header_id_template="<|end_header_id|>",this.configFile.end_user_message_id_template="",this.configFile.start_ai_header_id_template="<|start_header_id|>",this.configFile.end_ai_header_id_template="<|end_header_id|>",this.configFile.end_ai_message_id_template="",this.settingsChanged=!0):e==="mistral"?(console.log("Using mistral template"),this.configFile.start_header_id_template="[INST]",this.configFile.system_message_template=" Using this information",this.configFile.end_header_id_template=": ",this.configFile.separator_template=` @@ -499,7 +499,7 @@ If You are using windows, this will install wsl so you need to activate it. `?(this.message.content=this.message.content.slice(0,e)+"```"+n+` `+this.message.content.slice(e,t)+"\n```\n"+this.message.content.slice(t),e=e+4+n.length):(this.message.content=this.message.content.slice(0,e)+"\n```"+n+` `+this.message.content.slice(e,t)+"\n```\n"+this.message.content.slice(t),p=p+3+n.length),this.$refs.mdTextarea.focus(),this.$refs.mdTextarea.selectionStart=this.$refs.mdTextarea.selectionEnd=p},copyContentToClipboard(){this.$emit("copy",this)},deleteMsg(){this.$emit("delete",this.message.id),this.deleteMsgMode=!1},rankUp(){this.$emit("rankUp",this.message.id)},rankDown(){this.$emit("rankDown",this.message.id)},updateMessage(){this.$emit("updateMessage",this.message.id,this.message.content,this.audio_url),this.editMsgMode=!1},resendMessage(n){this.$emit("resendMessage",this.message.id,this.message.content,n)},continueMessage(){this.$emit("continueMessage",this.message.id,this.message.content)},getImgUrl(){return this.avatar?ybt+this.avatar:(console.log("No avatar found"),Ai)},defaultImg(n){n.target.src=Ai},parseDate(n){let e=new Date(Date.parse(n)),r=Math.floor((new Date-e)/1e3);return r<=1?"just now":r<20?r+" seconds ago":r<40?"half a minute ago":r<60?"less than a minute ago":r<=90?"one minute ago":r<=3540?Math.round(r/60)+" minutes ago":r<=5400?"1 hour ago":r<=86400?Math.round(r/3600)+" hours ago":r<=129600?"1 day ago":r<604800?Math.round(r/86400)+" days ago":r<=777600?"1 week ago":n},prettyDate(n){let e=new Date((n||"").replace(/-/g,"/").replace(/[TZ]/g," ")),t=(new Date().getTime()-e.getTime())/1e3,r=Math.floor(t/86400);if(!(isNaN(r)||r<0||r>=31))return r==0&&(t<60&&"just now"||t<120&&"1 minute ago"||t<3600&&Math.floor(t/60)+" minutes ago"||t<7200&&"1 hour ago"||t<86400&&Math.floor(t/3600)+" hours ago")||r==1&&"Yesterday"||r<7&&r+" days ago"||r<31&&Math.ceil(r/7)+" weeks ago"},checkForFullSentence(){if(this.message.content.trim().split(" ").length>3){this.speak();return}}},watch:{audio_url(n){n&&(this.$refs.audio_player.src=n)},"message.content":function(n){this.$store.state.config.auto_speak&&(this.$store.state.config.xtts_enable&&this.$store.state.config.xtts_use_streaming_mode||this.isSpeaking||this.checkForFullSentence())},"message.ui":function(n){console.log("ui changed to",n),this.ui_componentKey++},showConfirmation(){We(()=>{Ze.replace()})},deleteMsgMode(){We(()=>{Ze.replace()})}},computed:{editMsgMode:{get(){return this.message.hasOwnProperty("open")?this.editMsgMode_||this.message.open:this.editMsgMode_},set(n){this.message.open=n,this.editMsgMode_=n,We(()=>{Ze.replace()})}},isTalking:{get(){return this.isSpeaking}},created_at(){return this.prettyDate(this.message.created_at)},created_at_parsed(){return new Date(Date.parse(this.message.created_at)).toLocaleString()},finished_generating_at_parsed(){return new Date(Date.parse(this.message.finished_generating_at)).toLocaleString()},time_spent(){const n=new Date(Date.parse(this.message.started_generating_at)),e=new Date(Date.parse(this.message.finished_generating_at));if(e.getTime()===n.getTime()||!n.getTime()||!e.getTime())return;let[r,i,s]=this.computeTimeDiff(n,e);function o(l){return l<10&&(l="0"+l),l}return o(r)+"h:"+o(i)+"m:"+o(s)+"s"},warmup_duration(){const n=new Date(Date.parse(this.message.created_at)),e=new Date(Date.parse(this.message.started_generating_at));if(console.log("Computing the warmup duration, ",n," -> ",e),e.getTime()===n.getTime())return 0;if(!n.getTime()||!e.getTime())return;let r,i,s;[r,i,s]=this.computeTimeDiff(n,e);function o(l){return l<10&&(l="0"+l),l}return o(r)+"h:"+o(i)+"m:"+o(s)+"s"},generation_rate(){const n=new Date(Date.parse(this.message.started_generating_at)),e=new Date(Date.parse(this.message.finished_generating_at)),t=this.message.nb_tokens;if(e.getTime()===n.getTime()||!t||!n.getTime()||!e.getTime())return;let i=e.getTime()-n.getTime();const s=Math.floor(i/1e3),o=t/s;return Math.round(o)+" t/s"}}},Sbt={class:"relative message w-full group rounded-lg m-2 shadow-lg hover:border-primary dark:hover:border-primary hover:border-solid hover:border-2 border-2 border-transparent flex flex-col flex-grow flex-wrap overflow-visible p-4 pb-2"},xbt={class:"flex flex-row gap-2"},Tbt={class:"flex-shrink-0"},wbt={class:"group/avatar"},Cbt=["src","data-popover-target"],Abt={class:"flex flex-col w-full flex-grow-0"},Rbt={class:"flex flex-row flex-grow items-start"},Mbt={class:"flex flex-col mb-2"},Nbt={class:"drop-shadow-sm text-lg text-opacity-95 font-bold grow"},kbt=["title"],Ibt={class:"overflow-x-auto w-full overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},Obt={key:1},Dbt=["src"],Lbt={class:"message-details"},Pbt={key:0,class:"flex w-full cursor-pointer rounded-xl border border-gray-200 bg-white shadow-sm dark:border-gray-800 dark:bg-gray-900 mb-3.5 max-w-full transition-all duration-300 ease-in-out"},Fbt={class:"grid min-w-80 select-none grid-cols-[50px,1fr] items-center gap-3 p-3 bg-gray-50 dark:bg-gray-800 rounded-lg shadow-sm hover:shadow-md transition-all duration-300"},Ubt={class:"relative grid aspect-square place-content-center overflow-hidden rounded-full bg-gradient-to-br from-blue-400 to-purple-500 transform transition-transform duration-300 hover:scale-105"},Bbt={class:"leading-5"},Gbt={class:"flex items-center gap-1 truncate whitespace-nowrap text-sm text-gray-500 dark:text-gray-400"},zbt={class:"px-5 pb-5 pt-4 transition-all duration-300 ease-in-out"},Vbt={class:"list-none"},Hbt={class:"flex flex-col items-start w-full overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},qbt={class:"flex-row justify-end mx-2"},Ybt={class:"invisible group-hover:visible flex flex-row"},$bt={key:0},Wbt={key:1},Kbt={key:2},jbt={key:3},Qbt={key:4,class:"flex items-center duration-75"},Xbt={class:"flex flex-row items-center"},Zbt={class:"flex flex-row items-center"},Jbt={key:6,class:"flex flex-row items-center"},e1t=["src"],t1t={class:"text-sm text-gray-400 mt-2"},n1t={class:"flex flex-row items-center gap-2"},r1t={key:0},i1t={class:"font-thin"},s1t={key:1},o1t={class:"font-thin"},a1t={key:2},l1t={class:"font-thin"},c1t={key:3},d1t=["title"],u1t={key:4},p1t=["title"],h1t={key:5},m1t=["title"],f1t={key:6},g1t=["title"];function _1t(n,e,t,r,i,s){var b;const o=ht("MarkdownRenderer"),a=ht("JsonViewer"),l=ht("DynamicUIRenderer"),d=ht("StatusIcon"),u=ht("StatusIndicator"),m=ht("Step"),f=ht("RenderHTMLJS"),g=ht("ToolbarButton"),h=ht("DropdownSubmenu"),v=ht("DropdownMenu");return T(),M("div",Sbt,[c("div",xbt,[c("div",Tbt,[c("div",wbt,[c("img",{src:s.getImgUrl(),onError:e[0]||(e[0]=_=>s.defaultImg(_)),"data-popover-target":"avatar"+t.message.id,"data-popover-placement":"bottom",class:"w-10 h-10 rounded-full object-fill text-red-700"},null,40,Cbt)])]),c("div",Abt,[c("div",Rbt,[c("div",Mbt,[c("div",Nbt,X(t.message.sender),1),t.message.created_at?(T(),M("div",{key:0,class:"text-sm text-gray-400 font-thin",title:"Created at: "+s.created_at_parsed},X(s.created_at),9,kbt)):Y("",!0)]),e[45]||(e[45]=c("div",{class:"flex-grow"},null,-1))]),c("div",Ibt,[s.editMsgMode?Y("",!0):(T(),Tt(o,{key:0,ref:"mdRender",host:t.host,"markdown-text":t.message.content,message_id:t.message.id,discussion_id:t.message.discussion_id,client_id:this.$store.state.client_id},null,8,["host","markdown-text","message_id","discussion_id","client_id"])),c("div",null,[t.message.open?F((T(),M("textarea",{key:0,ref:"mdTextarea",onKeydown:e[1]||(e[1]=ui(J((..._)=>s.insertTab&&s.insertTab(..._),["prevent"]),["tab"])),class:"block min-h-[500px] p-2.5 w-full text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 overflow-y-scroll flex flex-col shadow-lg p-10 pt-0 overflow-y-scroll dark:bg-bg-dark scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",rows:4,placeholder:"Enter message here...","onUpdate:modelValue":e[2]||(e[2]=_=>t.message.content=_)}," ",544)),[[_e,t.message.content]]):Y("",!0)]),t.message.metadata!==null?(T(),M("div",Obt,[(T(!0),M(je,null,at(((b=t.message.metadata)==null?void 0:b.filter(_=>_!=null&&_.hasOwnProperty("title")&&_.hasOwnProperty("content")))||[],(_,y)=>(T(),M("div",{key:"json-"+t.message.id+"-"+y,class:"json font-bold"},[(T(),Tt(a,{jsonFormText:_.title,jsonData:_.content,key:"msgjson-"+t.message.id},null,8,["jsonFormText","jsonData"]))]))),128))])):Y("",!0),t.message.ui?(T(),Tt(l,{ref:"ui",class:"w-full",ui:t.message.ui,key:"msgui-"+t.message.id},null,8,["ui"])):Y("",!0),i.audio_url!=null?(T(),M("audio",{controls:"",key:i.audio_url},[c("source",{src:i.audio_url,type:"audio/wav",ref:"audio_player"},null,8,Dbt),e[46]||(e[46]=pt(" Your browser does not support the audio element. "))])):Y("",!0),c("div",Lbt,[t.message&&t.message.steps&&t.message.steps.length>0?(T(),M("details",Pbt,[c("summary",Fbt,[c("div",Ubt,[W(d,{status:t.message.status_message},null,8,["status"])]),c("dl",Bbt,[e[47]||(e[47]=c("dd",{class:"text-lg font-semibold text-gray-800 dark:text-gray-200"},"Processing Info",-1)),c("dt",Gbt,[W(u,{status:t.message.status_message},null,8,["status"]),pt(" "+X(t.message.status_message),1)])])]),c("div",zbt,[c("ol",Vbt,[(T(!0),M(je,null,at(t.message.steps,(_,y)=>(T(),M("li",{key:`step-${t.message.id}-${y}`,class:qe(["group border-l pb-6 last:!border-transparent last:pb-0 dark:border-gray-800 transition-all duration-300 ease-in-out",{"bg-transparent":_.done}]),style:on({animationDelay:`${y*100}ms`})},[W(m,{done:_.done,text:_.text,status:_.status,step_type:_.step_type},null,8,["done","text","status","step_type"])],6))),128))])])])):Y("",!0),c("div",Hbt,[(T(!0),M(je,null,at(t.message.html_js_s,(_,y)=>(T(),M("div",{key:`htmljs-${t.message.id}-${y}`,class:"font-bold animate-fadeIn",style:on({animationDelay:`${y*200}ms`})},[W(f,{htmlContent:_},null,8,["htmlContent"])],4))),128))])])]),c("div",qbt,[c("div",Ybt,[s.editMsgMode?(T(),M("div",$bt,[W(g,{onClick:e[3]||(e[3]=J(_=>s.editMsgMode=!1,["stop"])),title:"Cancel edit",icon:"x"}),W(g,{onClick:J(s.updateMessage,["stop"]),title:"Update message",icon:"check"},null,8,["onClick"]),W(v,{title:"Add Block"},{default:Ge(()=>[W(h,{title:"Programming Languages",icon:"code"},{default:Ge(()=>[W(g,{onClick:e[4]||(e[4]=J(_=>s.addBlock("python"),["stop"])),title:"Python",icon:"python"}),W(g,{onClick:e[5]||(e[5]=J(_=>s.addBlock("javascript"),["stop"])),title:"JavaScript",icon:"js"}),W(g,{onClick:e[6]||(e[6]=J(_=>s.addBlock("typescript"),["stop"])),title:"TypeScript",icon:"typescript"}),W(g,{onClick:e[7]||(e[7]=J(_=>s.addBlock("java"),["stop"])),title:"Java",icon:"java"}),W(g,{onClick:e[8]||(e[8]=J(_=>s.addBlock("c++"),["stop"])),title:"C++",icon:"cplusplus"}),W(g,{onClick:e[9]||(e[9]=J(_=>s.addBlock("csharp"),["stop"])),title:"C#",icon:"csharp"}),W(g,{onClick:e[10]||(e[10]=J(_=>s.addBlock("go"),["stop"])),title:"Go",icon:"go"}),W(g,{onClick:e[11]||(e[11]=J(_=>s.addBlock("rust"),["stop"])),title:"Rust",icon:"rust"}),W(g,{onClick:e[12]||(e[12]=J(_=>s.addBlock("swift"),["stop"])),title:"Swift",icon:"swift"}),W(g,{onClick:e[13]||(e[13]=J(_=>s.addBlock("kotlin"),["stop"])),title:"Kotlin",icon:"kotlin"}),W(g,{onClick:e[14]||(e[14]=J(_=>s.addBlock("r"),["stop"])),title:"R",icon:"r-project"})]),_:1}),W(h,{title:"Web Technologies",icon:"web"},{default:Ge(()=>[W(g,{onClick:e[15]||(e[15]=J(_=>s.addBlock("html"),["stop"])),title:"HTML",icon:"html5"}),W(g,{onClick:e[16]||(e[16]=J(_=>s.addBlock("css"),["stop"])),title:"CSS",icon:"css3"}),W(g,{onClick:e[17]||(e[17]=J(_=>s.addBlock("vue"),["stop"])),title:"Vue.js",icon:"vuejs"}),W(g,{onClick:e[18]||(e[18]=J(_=>s.addBlock("react"),["stop"])),title:"React",icon:"react"}),W(g,{onClick:e[19]||(e[19]=J(_=>s.addBlock("angular"),["stop"])),title:"Angular",icon:"angular"})]),_:1}),W(h,{title:"Markup and Data",icon:"file-code"},{default:Ge(()=>[W(g,{onClick:e[20]||(e[20]=J(_=>s.addBlock("xml"),["stop"])),title:"XML",icon:"xml"}),W(g,{onClick:e[21]||(e[21]=J(_=>s.addBlock("json"),["stop"])),title:"JSON",icon:"json"}),W(g,{onClick:e[22]||(e[22]=J(_=>s.addBlock("yaml"),["stop"])),title:"YAML",icon:"yaml"}),W(g,{onClick:e[23]||(e[23]=J(_=>s.addBlock("markdown"),["stop"])),title:"Markdown",icon:"markdown"}),W(g,{onClick:e[24]||(e[24]=J(_=>s.addBlock("latex"),["stop"])),title:"LaTeX",icon:"latex"})]),_:1}),W(h,{title:"Scripting and Shell",icon:"terminal"},{default:Ge(()=>[W(g,{onClick:e[25]||(e[25]=J(_=>s.addBlock("bash"),["stop"])),title:"Bash",icon:"bash"}),W(g,{onClick:e[26]||(e[26]=J(_=>s.addBlock("powershell"),["stop"])),title:"PowerShell",icon:"powershell"}),W(g,{onClick:e[27]||(e[27]=J(_=>s.addBlock("perl"),["stop"])),title:"Perl",icon:"perl"})]),_:1}),W(h,{title:"Diagramming",icon:"sitemap"},{default:Ge(()=>[W(g,{onClick:e[28]||(e[28]=J(_=>s.addBlock("mermaid"),["stop"])),title:"Mermaid",icon:"mermaid"}),W(g,{onClick:e[29]||(e[29]=J(_=>s.addBlock("graphviz"),["stop"])),title:"Graphviz",icon:"graphviz"}),W(g,{onClick:e[30]||(e[30]=J(_=>s.addBlock("plantuml"),["stop"])),title:"PlantUML",icon:"plantuml"})]),_:1}),W(h,{title:"Database",icon:"database"},{default:Ge(()=>[W(g,{onClick:e[31]||(e[31]=J(_=>s.addBlock("sql"),["stop"])),title:"SQL",icon:"sql"}),W(g,{onClick:e[32]||(e[32]=J(_=>s.addBlock("mongodb"),["stop"])),title:"MongoDB",icon:"mongodb"})]),_:1}),W(g,{onClick:e[33]||(e[33]=J(_=>s.addBlock(""),["stop"])),title:"Generic Block",icon:"code"})]),_:1})])):(T(),M("div",Wbt,[W(g,{onClick:e[34]||(e[34]=J(_=>s.editMsgMode=!0,["stop"])),title:"Edit message",icon:"edit"})])),W(g,{onClick:s.copyContentToClipboard,title:"Copy message to clipboard",icon:"copy"},null,8,["onClick"]),!s.editMsgMode&&t.message.sender!==n.$store.state.mountedPers.name?(T(),M("div",Kbt,[W(g,{onClick:e[35]||(e[35]=J(_=>s.resendMessage("full_context"),["stop"])),title:"Resend message with full context",icon:"send"}),W(g,{onClick:e[36]||(e[36]=J(_=>s.resendMessage("full_context_with_internet"),["stop"])),title:"Resend message with internet search",icon:"globe"}),W(g,{onClick:e[37]||(e[37]=J(_=>s.resendMessage("simple_question"),["stop"])),title:"Resend message without context",icon:"sendSimple"})])):Y("",!0),!s.editMsgMode&&t.message.sender===n.$store.state.mountedPers.name?(T(),M("div",jbt,[W(g,{onClick:s.continueMessage,title:"Continue message",icon:"fastForward"},null,8,["onClick"])])):Y("",!0),i.deleteMsgMode?(T(),M("div",Qbt,[c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"Cancel removal",type:"button",onClick:e[38]||(e[38]=J(_=>i.deleteMsgMode=!1,["stop"]))},e[48]||(e[48]=[c("i",{"data-feather":"x"},null,-1)])),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Confirm removal",type:"button",onClick:e[39]||(e[39]=J(_=>s.deleteMsg(),["stop"]))},e[49]||(e[49]=[c("i",{"data-feather":"check"},null,-1)]))])):Y("",!0),!s.editMsgMode&&!i.deleteMsgMode?(T(),M("div",{key:5,class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"Remove message",onClick:e[40]||(e[40]=_=>i.deleteMsgMode=!0)},e[50]||(e[50]=[c("i",{"data-feather":"trash"},null,-1)]))):Y("",!0),c("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Upvote",onClick:e[41]||(e[41]=J(_=>s.rankUp(),["stop"]))},e[51]||(e[51]=[c("i",{"data-feather":"thumbs-up"},null,-1)])),c("div",Xbt,[c("div",{class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"Downvote",onClick:e[42]||(e[42]=J(_=>s.rankDown(),["stop"]))},e[52]||(e[52]=[c("i",{"data-feather":"thumbs-down"},null,-1)])),t.message.rank!=0?(T(),M("div",{key:0,class:qe(["rounded-full px-2 text-sm flex items-center justify-center font-bold cursor-pointer",t.message.rank>0?"bg-secondary":"bg-red-600"]),title:"Rank"},X(t.message.rank),3)):Y("",!0)]),c("div",Zbt,[this.$store.state.config.active_tts_service!="None"?(T(),M("div",{key:0,class:qe(["text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",{"text-red-500":s.isTalking}]),title:"speak",onClick:e[43]||(e[43]=J(_=>s.speak(),["stop"]))},e[53]||(e[53]=[c("i",{"data-feather":"volume-2"},null,-1)]),2)):Y("",!0)]),this.$store.state.config.xtts_enable&&!this.$store.state.config.xtts_use_streaming_mode?(T(),M("div",Jbt,[i.isSynthesizingVoice?(T(),M("img",{key:1,src:i.loading_svg},null,8,e1t)):(T(),M("div",{key:0,class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"generate_audio",onClick:e[44]||(e[44]=J(_=>s.read(),["stop"]))},e[54]||(e[54]=[c("i",{"data-feather":"voicemail"},null,-1)])))])):Y("",!0)])]),c("div",t1t,[c("div",n1t,[t.message.binding?(T(),M("p",r1t,[e[55]||(e[55]=pt("Binding: ")),c("span",i1t,X(t.message.binding),1)])):Y("",!0),t.message.model?(T(),M("p",s1t,[e[56]||(e[56]=pt("Model: ")),c("span",o1t,X(t.message.model),1)])):Y("",!0),t.message.seed?(T(),M("p",a1t,[e[57]||(e[57]=pt("Seed: ")),c("span",l1t,X(t.message.seed),1)])):Y("",!0),t.message.nb_tokens?(T(),M("p",c1t,[e[58]||(e[58]=pt("Number of tokens: ")),c("span",{class:"font-thin",title:"Number of Tokens: "+t.message.nb_tokens},X(t.message.nb_tokens),9,d1t)])):Y("",!0),s.warmup_duration?(T(),M("p",u1t,[e[59]||(e[59]=pt("Warmup duration: ")),c("span",{class:"font-thin",title:"Warmup duration: "+s.warmup_duration},X(s.warmup_duration),9,p1t)])):Y("",!0),s.time_spent?(T(),M("p",h1t,[e[60]||(e[60]=pt("Generation duration: ")),c("span",{class:"font-thin",title:"Finished generating: "+s.time_spent},X(s.time_spent),9,m1t)])):Y("",!0),s.generation_rate?(T(),M("p",f1t,[e[61]||(e[61]=pt("Rate: ")),c("span",{class:"font-thin",title:"Generation rate: "+s.generation_rate},X(s.generation_rate),9,g1t)])):Y("",!0)])])])])])}const TI=bt(Ebt,[["render",_1t]]);de.defaults.baseURL="/";const b1t={components:{InteractiveMenu:My},props:{commandsList:{type:Array,required:!0},sendCommand:Function,onShowToastMessage:Function},data(){return{loading:!1,selectedFile:null,showMenu:!1,showHelpText:!1,helpText:"",commands:[]}},async mounted(){this.commands=this.commandsList,console.log("Commands",this.commands),document.addEventListener("click",this.handleClickOutside),We(()=>{Ze.replace()})},methods:{isHTML(n){const t=new DOMParser().parseFromString(n,"text/html");return Array.from(t.body.childNodes).some(r=>r.nodeType===Node.ELEMENT_NODE)},selectFile(n,e){const t=document.createElement("input");t.type="file",t.accept=n,t.onchange=r=>{this.selectedFile=r.target.files[0],console.log("File selected"),e()},t.click()},uploadFile(){new FormData().append("file",this.selectedFile),console.log("Uploading file"),this.loading=!0;const e=new FileReader;e.onload=()=>{const t={filename:this.selectedFile.name,fileData:e.result};rt.on("file_received",r=>{r.status?this.onShowToastMessage("File uploaded successfully",4,!0):this.onShowToastMessage(`Couldn't upload file -`+r.error,4,!1),this.loading=!1,rt.off("file_received")}),rt.emit("send_file",t)},e.readAsDataURL(this.selectedFile)},async constructor(){We(()=>{Ze.replace()})},toggleMenu(){this.showMenu=!this.showMenu},execute_cmd(n){this.showMenu=!this.showMenu,n.hasOwnProperty("is_file")?(console.log("Need to send a file."),this.selectFile(n.hasOwnProperty("file_types")?n.file_types:"*",()=>{this.selectedFile!=null&&this.uploadFile()})):this.sendCommand(n.value)},handleClickOutside(n){const e=this.$el.querySelector(".commands-menu-items-wrapper");e&&!e.contains(n.target)&&(this.showMenu=!1)}},beforeUnmount(){document.removeEventListener("click",this.handleClickOutside)}},v1t={key:0,title:"Loading..",class:"flex flex-row flex-grow justify-end"};function y1t(n,e,t,r,i,s){const o=ht("InteractiveMenu");return i.loading?(T(),M("div",v1t,e[0]||(e[0]=[c("div",{role:"status"},[c("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),c("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),c("span",{class:"sr-only"},"Loading...")],-1)]))):(T(),Tt(o,{key:1,commands:t.commandsList,execute_cmd:s.execute_cmd},null,8,["commands","execute_cmd"]))}const E1t=bt(b1t,[["render",y1t],["__scopeId","data-v-1a32c141"]]),S1t="data:image/svg+xml,%3csvg%20aria-hidden='true'%20class='w-6%20h-6%20animate-spin%20fill-secondary'%20viewBox='0%200%20100%20101'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M100%2050.5908C100%2078.2051%2077.6142%20100.591%2050%20100.591C22.3858%20100.591%200%2078.2051%200%2050.5908C0%2022.9766%2022.3858%200.59082%2050%200.59082C77.6142%200.59082%20100%2022.9766%20100%2050.5908ZM9.08144%2050.5908C9.08144%2073.1895%2027.4013%2091.5094%2050%2091.5094C72.5987%2091.5094%2090.9186%2073.1895%2090.9186%2050.5908C90.9186%2027.9921%2072.5987%209.67226%2050%209.67226C27.4013%209.67226%209.08144%2027.9921%209.08144%2050.5908Z'%20fill='currentColor'%20/%3e%3cpath%20d='M93.9676%2039.0409C96.393%2038.4038%2097.8624%2035.9116%2097.0079%2033.5539C95.2932%2028.8227%2092.871%2024.3692%2089.8167%2020.348C85.8452%2015.1192%2080.8826%2010.7238%2075.2124%207.41289C69.5422%204.10194%2063.2754%201.94025%2056.7698%201.05124C51.7666%200.367541%2046.6976%200.446843%2041.7345%201.27873C39.2613%201.69328%2037.813%204.19778%2038.4501%206.62326C39.0873%209.04874%2041.5694%2010.4717%2044.0505%2010.1071C47.8511%209.54855%2051.7191%209.52689%2055.5402%2010.0491C60.8642%2010.7766%2065.9928%2012.5457%2070.6331%2015.2552C75.2735%2017.9648%2079.3347%2021.5619%2082.5849%2025.841C84.9175%2028.9121%2086.7997%2032.2913%2088.1811%2035.8758C89.083%2038.2158%2091.5421%2039.6781%2093.9676%2039.0409Z'%20fill='currentFill'%20/%3e%3c/svg%3e",x1t="/",T1t={name:"ChatBox",emits:["messageSentEvent","sendCMDEvent","stopGenerating","loaded","createEmptyUserMessage","createEmptyAIMessage","personalitySelected","addWebLink"],props:{onTalk:Function,discussionList:Array,loading:{default:!1},onShowToastMessage:Function},components:{PersonalitiesCommands:E1t,ChatBarButton:Yk},setup(){},data(){return{isSendMenuVisible:!1,is_rt:!1,bindingHoveredIndex:null,modelHoveredIndex:null,personalityHoveredIndex:null,loader_v0:S1t,sendGlobe:xI,bUrl:x1t,message:"",selecting_binding:!1,selecting_model:!1,selectedModel:"",isListeningToVoice:!1,filesList:[],isFileSentList:[],totalSize:0,showfilesList:!0,models_menu_icon:"",posts_headers:{accept:"application/json","Content-Type":"application/json"}}},computed:{leftPanelCollapsed(){return this.$store.state.leftPanelCollapsed},rightPanelCollapsed(){return this.$store.state.rightPanelCollapsed},isCompactMode(){return this.$store.state.view_mode==="compact"},isDataSourceNamesValid(){return console.log("dataSourceNames:",this.dataSourceNames),console.log("Type of dataSourceNames:",typeof this.dataSourceNames),Array.isArray(this.dataSourceNames)&&this.dataSourceNames.length>0},dataSourceNames(){console.log("dataSourceNames",this.$store.state.config.rag_databases);const n=this.$store.state.config.rag_databases.map(e=>{console.log("entry",e);const t=e.split("::");console.log("extracted",t[0]);const i=e.endsWith("mounted")?"feather:check":"";return console.log("icon decision",i),{name:t[0],value:t[0]||"default_value",icon:i,help:"mounts the database"}});return console.log("formatted data sources",n),n}},methods:{showSendMenu(){clearTimeout(this.hideSendMenuTimeout),this.isSendMenuVisible=!0},hideSendMenu(){this.hideSendMenuTimeout=setTimeout(()=>{this.isSendMenuVisible=!1},300)},toggleLeftPanel(){console.log(this.leftPanelCollapsed),this.$store.commit("setLeftPanelCollapsed",!this.leftPanelCollapsed)},async toggleRightPanel(){console.log(this.rightPanelCollapsed),this.$store.commit("setRightPanelCollapsed",!this.rightPanelCollapsed),this.rightPanelCollapsed&&(this.$store.commit("setleftPanelCollapsed",!0),this.$nextTick(()=>{this.extractHtml()})),console.log(this.rightPanelCollapsed)},handlePaste(n){const e=(n.clipboardData||n.originalEvent.clipboardData).items;let t=[];for(let r of e)if(r.type.indexOf("image")!==-1){const i=r.getAsFile(),o=`image_${Date.now()+"_"+Math.random().toString(36).substr(2,9)}.png`;console.log("newFileName",o);const a=new File([i],o,{type:i.type});this.addFiles([a])}else if(r.kind==="file"){const i=r.getAsFile();t.push(i)}t.length>0&&this.addFiles(t)},emitloaded(){this.$emit("loaded")},download_files(){de.get("/download_files")},remove_file(n){de.get("/remove_discussion_file",{client_id:this.$store.state.client_id,name:n}).then(e=>{console.log(e)})},clear_files(){de.post("/clear_discussion_files_list",{client_id:this.$store.state.client_id}).then(n=>{console.log(n),n.data.state?(this.$store.state.toast.showToast("File removed successfully",4,!0),this.filesList.length=0,this.isFileSentList.length=0,this.totalSize=0):this.$store.state.toast.showToast("Files couldn't be removed",4,!1)})},send_file(n,e){console.log("Send file triggered");const t=new FileReader,r=24*1024;let i=0,s=0;t.onloadend=()=>{if(t.error){console.error("Error reading file:",t.error);return}const a=t.result,l=i+a.byteLength>=n.size;rt.emit("send_file_chunk",{filename:n.name,chunk:a,offset:i,isLastChunk:l,chunkIndex:s}),i+=a.byteLength,s++,l?(console.log("File sent successfully"),this.isFileSentList[this.filesList.length-1]=!0,console.log(this.isFileSentList),this.$store.state.toast.showToast("File uploaded successfully",4,!0),e()):o()};function o(){const a=n.slice(i,i+r);t.readAsArrayBuffer(a)}console.log("Uploading file"),o()},makeAnEmptyUserMessage(){this.$emit("createEmptyUserMessage",this.message),this.message=""},makeAnEmptyAIMessage(){this.$emit("createEmptyAIMessage")},startRTCom(){this.is_rt=!0,console.log("is_rt:",this.is_rt),rt.emit("start_bidirectional_audio_stream"),We(()=>{Ze.replace()})},stopRTCom(){this.is_rt=!1,console.log("is_rt:",this.is_rt),rt.emit("stop_bidirectional_audio_stream"),We(()=>{Ze.replace()})},startSpeechRecognition(){"SpeechRecognition"in window||"webkitSpeechRecognition"in window?(this.recognition=new(window.SpeechRecognition||window.webkitSpeechRecognition),this.recognition.lang=this.$store.state.config.audio_in_language,this.recognition.interimResults=!0,this.recognition.onstart=()=>{this.isListeningToVoice=!0,this.silenceTimer=setTimeout(()=>{this.recognition.stop()},this.silenceTimeout)},this.recognition.onresult=n=>{let e="";for(let t=n.resultIndex;t{this.recognition.stop()},this.silenceTimeout)},this.recognition.onerror=n=>{console.error("Speech recognition error:",n.error),this.isListeningToVoice=!1,clearTimeout(this.silenceTimer)},this.recognition.onend=()=>{console.log("Speech recognition ended."),this.isListeningToVoice=!1,clearTimeout(this.silenceTimer),this.submit()},this.recognition.start()):console.error("Speech recognition is not supported in this browser.")},computedFileSize(n){return We(()=>{Ze.replace()}),Wi(n)},removeItem(n){console.log("Removing ",n.name),de.post("/remove_discussion_file",{client_id:this.$store.state.client_id,name:n.name},{headers:this.posts_headers}).then(()=>{this.filesList=this.filesList.filter(e=>e!=n)}),console.log(this.filesList)},sendMessageEvent(n,e="no_internet"){this.$emit("messageSentEvent",n,e)},sendCMDEvent(n){this.$emit("sendCMDEvent",n)},async mountDB(n){await de.post("/toggle_mount_rag_database",{client_id:this.$store.state.client_id,database_name:n}),await this.$store.dispatch("refreshConfig"),console.log("Refreshed")},addWebLink(){console.log("Emitting addWebLink"),this.$emit("addWebLink")},add_file(){const n=document.createElement("input");n.type="file",n.style.display="none",n.multiple=!0,document.body.appendChild(n),n.addEventListener("change",()=>{console.log("Calling Add file..."),this.addFiles(n.files),document.body.removeChild(n)}),n.click()},takePicture(){rt.emit("take_picture"),rt.on("picture_taken",()=>{de.post("/get_discussion_files_list",{client_id:this.$store.state.client_id}).then(n=>{this.filesList=n.data.files,this.isFileSentList=n.data.files.map(e=>!0),console.log(`Files recovered: ${this.filesList}`)})})},submitOnEnter(n){this.loading||n.which===13&&(n.preventDefault(),n.repeat||(this.sendMessageEvent(this.message),this.message=""))},submit(){this.message&&(this.sendMessageEvent(this.message),this.message="")},submitWithInternetSearch(){this.message&&(this.sendMessageEvent(this.message,"internet"),this.message="")},stopGenerating(){this.$emit("stopGenerating")},addFiles(n){console.log("Adding files");const e=[...n];let t=0;const r=()=>{if(t>=e.length){console.log(`Files_list: ${this.filesList}`);return}const i=e[t];this.filesList.push(i),this.isFileSentList.push(!1),this.send_file(i,()=>{t++,r()})};r()}},watch:{installedModels:{immediate:!0,handler(n){this.$nextTick(()=>{this.installedModels=n})}},model_name:{immediate:!0,handler(n){this.$nextTick(()=>{this.model_name=n})}},showfilesList(){We(()=>{Ze.replace()})},loading(n,e){We(()=>{Ze.replace()})},filesList:{handler(n,e){let t=0;if(n.length>0)for(let r=0;r{Ze.replace()}),console.log("Chatbar mounted"),rt.on("rtcom_status_changed",n=>{this.$store.dispatch("fetchisRTOn"),console.log("rtcom_status_changed: ",n.status),console.log("active_tts_service: ",this.$store.state.config.active_tts_service),console.log("is_rt_on: ",this.$store.state.is_rt_on)}),this.$store.dispatch("fetchisRTOn")},activated(){We(()=>{Ze.replace()})}},w1t={class:"absolute bottom-0 left-0 w-fit min-w-96 w-full justify-center text-center"},C1t={key:0,class:"items-center gap-2 panels-color shadow-sm hover:shadow-none dark:border-gray-800 w-fit"},A1t={class:"flex"},R1t=["title"],M1t={key:0},N1t={class:"flex flex-col max-h-64"},k1t=["title"],I1t={class:"flex flex-row items-center gap-1 text-left p-2 text-sm font-medium items-center gap-2 rounded-lg border bg-gray-100 p-1.5 shadow-sm hover:shadow-none dark:border-gray-800 dark:bg-gray-700 hover:bg-primary dark:hover:bg-primary"},O1t={key:0,filesList:"",role:"status"},D1t={class:"flex flex-row items-center"},L1t={class:"whitespace-nowrap"},P1t=["onClick"],F1t={key:1,class:"flex mx-1 w-500"},U1t={class:"whitespace-nowrap flex flex-row gap-2"},B1t={key:1,title:"Selecting model",class:"flex flex-row flex-grow justify-end panels-color"},G1t={role:"status"},z1t=["src"],V1t={class:"flex w-fit relative grow w-full"},H1t={class:"relative text-light-text-panel dark:text-dark-text-panel grow flex h-12.5 cursor-pointer select-none items-center gap-2 chatbox-color p-1 shadow-sm hover:shadow-none dark:border-gray-800",tabindex:"0"},q1t={key:0,title:"Waiting for reply"},Y1t=["src"],$1t={class:"w-fit"},W1t={class:"w-fit"},K1t={class:"relative grow m-0 p-0"},j1t={class:"m-0 p-0"},Q1t={class:"flex items-center space-x-3"},X1t={class:"relative inline-block"},Z1t={class:"p-4 m-0 flex flex-col gap-4 max-h-96 overflow-y-auto custom-scrollbar"},J1t={class:"flex flex-col gap-2"};function evt(n,e,t,r,i,s){const o=ht("ChatBarButton"),a=ht("PersonalitiesCommands");return T(),M("div",w1t,[i.filesList.length>0?(T(),M("div",C1t,[c("div",A1t,[c("button",{class:"mx-1 w-full text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:i.showfilesList?"Hide file list":"Show file list",type:"button",onClick:e[0]||(e[0]=J(l=>i.showfilesList=!i.showfilesList,["stop"]))},e[12]||(e[12]=[c("i",{"data-feather":"list"},null,-1)]),8,R1t)]),i.filesList.length>0&&i.showfilesList==!0?(T(),M("div",M1t,[c("div",N1t,[W(As,{name:"list",tag:"div",class:"flex flex-col flex-grow overflow-y-auto scrollbar-thin scrollbar-track-bg-light scrollbar-thumb-bg-light-tone hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark dark:scrollbar-thumb-bg-dark-tone dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},{default:Ge(()=>[(T(!0),M(je,null,at(i.filesList,(l,d)=>(T(),M("div",{key:d+"-"+l.name},[c("div",{class:"m-1",title:l.name},[c("div",I1t,[i.isFileSentList[d]?Y("",!0):(T(),M("div",O1t,e[13]||(e[13]=[c("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),c("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1),c("span",{class:"sr-only"},"Loading...",-1)]))),e[15]||(e[15]=c("div",null,[c("i",{"data-feather":"file",class:"w-5 h-5"})],-1)),c("div",{class:qe(["line-clamp-1 w-3/5",i.isFileSentList[d]?"text-green-500":"text-red-200"])},X(l.name),3),e[16]||(e[16]=c("div",{class:"grow"},null,-1)),c("div",D1t,[c("p",L1t,X(s.computedFileSize(l.size)),1),c("button",{type:"button",title:"Remove item",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:u=>s.removeItem(l)},e[14]||(e[14]=[c("i",{"data-feather":"x",class:"w-5 h-5"},null,-1)]),8,P1t)])])],8,k1t)]))),128))]),_:1})])])):Y("",!0),i.filesList.length>0?(T(),M("div",F1t,[c("div",U1t,[e[17]||(e[17]=c("p",{class:"font-bold"}," Total size: ",-1)),pt(" "+X(i.totalSize)+" ("+X(i.filesList.length)+") ",1)]),e[20]||(e[20]=c("div",{class:"grow"},null,-1)),c("button",{type:"button",title:"Clear all",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:e[1]||(e[1]=(...l)=>s.clear_files&&s.clear_files(...l))},e[18]||(e[18]=[c("i",{"data-feather":"trash",class:"w-5 h-5"},null,-1)])),c("button",{type:"button",title:"Download database",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:e[2]||(e[2]=(...l)=>s.download_files&&s.download_files(...l))},e[19]||(e[19]=[c("i",{"data-feather":"download-cloud",class:"w-5 h-5"},null,-1)]))])):Y("",!0)])):Y("",!0),i.selecting_model||i.selecting_binding?(T(),M("div",B1t,[c("div",G1t,[c("img",{src:i.loader_v0,class:"w-50 h-50"},null,8,z1t),e[21]||(e[21]=c("span",{class:"sr-only"},"Selecting model...",-1))])])):Y("",!0),c("div",V1t,[c("div",H1t,[t.loading?(T(),M("div",q1t,[c("img",{src:i.loader_v0},null,8,Y1t),e[22]||(e[22]=c("div",{role:"status"},[c("span",{class:"sr-only"},"Loading...")],-1))])):Y("",!0),W(o,{onClick:s.toggleLeftPanel,class:qe({"text-red-500":s.leftPanelCollapsed}),title:"Toggle View Mode"},{default:Ge(()=>[F(c("div",null,e[23]||(e[23]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[c("polyline",{points:"9 18 15 12 9 6"})],-1)]),512),[[Dt,s.leftPanelCollapsed]]),F(c("div",null,e[24]||(e[24]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[c("polyline",{points:"15 18 9 12 15 6"})],-1)]),512),[[Dt,!s.leftPanelCollapsed]])]),_:1},8,["onClick","class"]),c("div",$1t,[this.$store.state.personalities_ready&&this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands!=""?(T(),Tt(a,{key:0,commandsList:this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands,sendCommand:s.sendCMDEvent,"on-show-toast-message":t.onShowToastMessage,ref:"personalityCMD"},null,8,["commandsList","sendCommand","on-show-toast-message"])):Y("",!0)]),c("div",W1t,[s.isDataSourceNamesValid?(T(),Tt(a,{key:0,icon:"feather:book",commandsList:s.dataSourceNames,sendCommand:s.mountDB,"on-show-toast-message":t.onShowToastMessage,ref:"databasesList"},null,8,["commandsList","sendCommand","on-show-toast-message"])):Y("",!0)]),c("div",K1t,[c("form",j1t,[F(c("textarea",{id:"chat",rows:"1","onUpdate:modelValue":e[3]||(e[3]=l=>i.message=l),onPaste:e[4]||(e[4]=(...l)=>s.handlePaste&&s.handlePaste(...l)),onKeydown:e[5]||(e[5]=ui(J(l=>s.submitOnEnter(l),["exact"]),["enter"])),class:"w-full p-2 text-sm text-gray-900 dark:text-white bg-gray-100 dark:bg-gray-700 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent resize-none",placeholder:"Send message..."},null,544),[[_e,i.message]])])]),c("div",Q1t,[t.loading?(T(),Tt(o,{key:0,onClick:s.stopGenerating,class:"bg-red-500 dark:bg-red-600 hover:bg-red-600 dark:hover:bg-red-700"},{icon:Ge(()=>e[25]||(e[25]=[c("svg",{class:"animate-spin h-5 w-5",viewBox:"0 0 24 24"},[c("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),c("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)])),default:Ge(()=>[e[26]||(e[26]=c("span",null,"Stop",-1))]),_:1},8,["onClick"])):(T(),Tt(o,{key:1,onClick:s.submit,title:"Send"},{icon:Ge(()=>e[27]||(e[27]=[c("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 19l9 2-9-18-9 18 9-2zm0 0v-8"})],-1)])),_:1},8,["onClick"])),W(o,{onClick:s.submitWithInternetSearch,title:"Send with internet search"},{icon:Ge(()=>e[28]||(e[28]=[c("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"})],-1)])),_:1},8,["onClick"]),W(o,{onClick:s.startSpeechRecognition,class:qe({"text-red-500":i.isListeningToVoice}),title:"Voice input"},{icon:Ge(()=>e[29]||(e[29]=[c("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z"})],-1)])),_:1},8,["onClick","class"]),n.$store.state.config.active_tts_service!="None"&&n.$store.state.config.active_tts_service!=null&&this.$store.state.config.active_stt_service!="None"&&this.$store.state.config.active_stt_service!=null?(T(),Tt(o,{key:2,onClick:e[6]||(e[6]=l=>i.is_rt?s.stopRTCom:s.startRTCom),class:qe(i.is_rt?"bg-red-500 dark:bg-red-600":"bg-green-500 dark:bg-green-600"),title:"Real-time audio mode"},{icon:Ge(()=>e[30]||(e[30]=[pt(" 🌟 ")])),_:1},8,["class"])):Y("",!0),t.loading?Y("",!0):(T(),M("div",{key:3,class:"relative",onMouseleave:e[10]||(e[10]=(...l)=>s.hideSendMenu&&s.hideSendMenu(...l))},[c("div",X1t,[F(c("div",{onMouseenter:e[7]||(e[7]=(...l)=>s.showSendMenu&&s.showSendMenu(...l)),class:"absolute m-0 p-0 z-10 bottom-full left-1/2 transform -translate-x-1/2 w-25 bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[c("div",Z1t,[c("div",J1t,[W(o,{onClick:s.add_file,title:"Send file"},{icon:Ge(()=>e[31]||(e[31]=[c("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 13h6m-3-3v6m5 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})],-1)])),_:1},8,["onClick"]),W(o,{onClick:s.takePicture,title:"Take picture"},{icon:Ge(()=>e[32]||(e[32]=[c("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 9a2 2 0 012-2h.93a2 2 0 001.664-.89l.812-1.22A2 2 0 0110.07 4h3.86a2 2 0 011.664.89l.812 1.22A2 2 0 0018.07 7H19a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V9z"}),c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 13a3 3 0 11-6 0 3 3 0 016 0z"})],-1)])),_:1},8,["onClick"]),W(o,{onClick:s.addWebLink,title:"Add web link"},{icon:Ge(()=>e[33]||(e[33]=[c("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"})],-1)])),_:1},8,["onClick"])])])],544),[[Dt,i.isSendMenuVisible]]),c("div",{onMouseenter:e[9]||(e[9]=(...l)=>s.showSendMenu&&s.showSendMenu(...l))},[c("button",{onClick:e[8]||(e[8]=J((...l)=>n.toggleSendMenu&&n.toggleSendMenu(...l),["prevent"])),class:"p-2 rounded-full transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"},e[34]||(e[34]=[c("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"black"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v3m0 0v3m0-3h3m-3 0H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)]))],32)])],32)),W(o,{onClick:s.makeAnEmptyUserMessage,title:"New user message",class:"text-gray-600 dark:text-gray-300"},{icon:Ge(()=>e[35]||(e[35]=[c("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"})],-1)])),_:1},8,["onClick"]),W(o,{onClick:s.makeAnEmptyAIMessage,title:"New AI message",class:"text-red-400 dark:text-red-300"},{icon:Ge(()=>e[36]||(e[36]=[c("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})],-1)])),_:1},8,["onClick"]),W(o,{onClick:s.toggleRightPanel,class:qe({"text-red-500":!s.rightPanelCollapsed}),title:"Toggle right Panel"},{default:Ge(()=>[F(c("div",null,e[37]||(e[37]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[c("polyline",{points:"15 18 9 12 15 6"})],-1)]),512),[[Dt,s.rightPanelCollapsed]]),F(c("div",null,e[38]||(e[38]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[c("polyline",{points:"9 18 15 12 9 6"})],-1)]),512),[[Dt,!s.rightPanelCollapsed]])]),_:1},8,["onClick","class"])]),c("input",{type:"file",ref:"fileDialog",onChange:e[11]||(e[11]=(...l)=>s.addFiles&&s.addFiles(...l)),multiple:"",style:{display:"none"}},null,544)]),e[39]||(e[39]=c("div",{class:"ml-auto gap-2"},null,-1))])])}const wI=bt(T1t,[["render",evt],["__scopeId","data-v-e3d676fa"]]),tvt={name:"WelcomeComponent",setup(){const n=i6();return{logoSrc:mt(()=>n.state.config&&n.state.config.app_custom_logo?`/user_infos/${n.state.config.app_custom_logo}`:Ai)}}},nvt={class:"flex flex-col items-center justify-center w-full h-full min-h-screen p-8"},rvt={class:"text-center max-w-4xl"},ivt={class:"flex items-center justify-center gap-8 mb-12"},svt={class:"relative w-24 h-24"},ovt=["src"];function avt(n,e,t,r,i,s){return T(),M("div",nvt,[c("div",rvt,[c("div",ivt,[c("div",svt,[c("img",{src:r.logoSrc,alt:"LoLLMS Logo",class:"w-24 h-24 rounded-full absolute animate-rolling-ball"},null,8,ovt)]),e[0]||(e[0]=c("div",{class:"flex flex-col items-start"},[c("h1",{class:"text-6xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-indigo-600 to-purple-600 dark:from-indigo-400 dark:to-purple-400"}," L🌟LLMS "),c("p",{class:"text-2xl text-gray-600 dark:text-gray-300 italic mt-2"}," Lord of Large Language And Multimodal Systems ")],-1))]),e[1]||(e[1]=yo('

Welcome to L🌟LLMS WebUI

Embark on a journey through the realm of advanced AI with L🌟LLMS, your ultimate companion for intelligent conversations and multimodal interactions. Unleash the power of large language models and explore new frontiers in artificial intelligence.

Discover the capabilities of L🌟LLMS:

  • Engage in natural language conversations
  • Generate creative content and ideas
  • Analyze complex data and provide insights
  • Assist with coding and technical tasks
  • Process and understand multimodal inputs
',1))])])}const CI=bt(tvt,[["render",avt],["__scopeId","data-v-1756add6"]]);var lvt=function(){function n(e,t){t===void 0&&(t=[]),this._eventType=e,this._eventFunctions=t}return n.prototype.init=function(){var e=this;this._eventFunctions.forEach(function(t){typeof window<"u"&&window.addEventListener(e._eventType,t)})},n}(),$p=function(){return $p=Object.assign||function(n){for(var e,t=1,r=arguments.length;t{const e=n.data;console.log("Done"),e.status?(this.currentPersonConfig=e.config,this.showPersonalityEditor=!0):console.error(e.error)}).catch(n=>{console.error(n)})}}},uvt={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 z-20"},pvt={class:"relative w-full max-h-full bg-bg-light dark:bg-bg-dark"},hvt={class:"w-full h-full relative items-center gap-2 rounded-lg border bg-bg-light dark:bg-bg-dark p-1.5 shadow-sm hover:shadow-none dark:border-gray-800 dark:bg-gray-900"},mvt={class:"justify-center text-center items-center w-full bg-bg-light dark:bg-bg-dark"},fvt={class:"w-full flex flex-row mt-4 text-center justify-center"},gvt={class:"w-full max-h-full container bg-bg-light dark:bg-bg-dark"},_vt={class:"mb-4 w-full"},bvt={class:"w-full bg-bg-light dark:bg-bg-dark"};function vvt(n,e,t,r,i,s){return i.show?(T(),M("div",uvt,[c("div",pvt,[c("div",hvt,[c("button",{type:"button",onClick:e[0]||(e[0]=o=>s.hide()),class:"absolute top-1 right-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-800 dark:hover:text-white"},e[17]||(e[17]=[c("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),c("span",{class:"sr-only"},"Close modal",-1)])),c("div",mvt,[c("div",fvt,[c("button",{type:"submit",onClick:e[1]||(e[1]=J((...o)=>s.submitForm&&s.submitForm(...o),["prevent"])),class:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"}," Commit AI to Server "),c("button",{onClick:e[2]||(e[2]=J(o=>s.hide(),["prevent"])),class:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"}," Close ")]),c("div",gvt,[c("form",_vt,[c("table",bvt,[c("tr",null,[e[18]||(e[18]=c("td",null,[c("label",{for:"personalityConditioning"},"Personality Conditioning:")],-1)),c("td",null,[F(c("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"personalityConditioning","onUpdate:modelValue":e[3]||(e[3]=o=>t.config.personality_conditioning=o)},null,512),[[_e,t.config.personality_conditioning]])])]),c("tr",null,[e[19]||(e[19]=c("td",null,[c("label",{for:"userMessagePrefix"},"User Message Prefix:")],-1)),c("td",null,[F(c("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"userMessagePrefix","onUpdate:modelValue":e[4]||(e[4]=o=>t.config.user_message_prefix=o)},null,512),[[_e,t.config.user_message_prefix]])])]),c("tr",null,[e[20]||(e[20]=c("td",null,[c("label",{for:"aiMessagePrefix"},"AI Message Prefix:")],-1)),c("td",null,[F(c("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"aiMessagePrefix","onUpdate:modelValue":e[5]||(e[5]=o=>t.config.ai_message_prefix=o)},null,512),[[_e,t.config.ai_message_prefix]])])]),c("tr",null,[e[21]||(e[21]=c("td",null,[c("label",{for:"linkText"},"Link Text:")],-1)),c("td",null,[F(c("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"linkText","onUpdate:modelValue":e[6]||(e[6]=o=>t.config.link_text=o)},null,512),[[_e,t.config.link_text]])])]),c("tr",null,[e[22]||(e[22]=c("td",null,[c("label",{for:"welcomeMessage"},"Welcome Message:")],-1)),c("td",null,[F(c("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"welcomeMessage","onUpdate:modelValue":e[7]||(e[7]=o=>t.config.welcome_message=o)},null,512),[[_e,t.config.welcome_message]])])]),c("tr",null,[e[23]||(e[23]=c("td",null,[c("label",{for:"modelTemperature"},"Model Temperature:")],-1)),c("td",null,[F(c("input",{type:"number",id:"modelTemperature","onUpdate:modelValue":e[8]||(e[8]=o=>t.config.model_temperature=o)},null,512),[[_e,t.config.model_temperature]])])]),c("tr",null,[e[24]||(e[24]=c("td",null,[c("label",{for:"modelTopK"},"Model Top K:")],-1)),c("td",null,[F(c("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelTopK","onUpdate:modelValue":e[9]||(e[9]=o=>t.config.model_top_k=o)},null,512),[[_e,t.config.model_top_k]])])]),c("tr",null,[e[25]||(e[25]=c("td",null,[c("label",{for:"modelTopP"},"Model Top P:")],-1)),c("td",null,[F(c("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelTopP","onUpdate:modelValue":e[10]||(e[10]=o=>t.config.model_top_p=o)},null,512),[[_e,t.config.model_top_p]])])]),c("tr",null,[e[26]||(e[26]=c("td",null,[c("label",{for:"modelRepeatPenalty"},"Model Repeat Penalty:")],-1)),c("td",null,[F(c("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelRepeatPenalty","onUpdate:modelValue":e[11]||(e[11]=o=>t.config.model_repeat_penalty=o)},null,512),[[_e,t.config.model_repeat_penalty]])])]),c("tr",null,[e[27]||(e[27]=c("td",null,[c("label",{for:"modelRepeatLastN"},"Model Repeat Last N:")],-1)),c("td",null,[F(c("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelRepeatLastN","onUpdate:modelValue":e[12]||(e[12]=o=>t.config.model_repeat_last_n=o)},null,512),[[_e,t.config.model_repeat_last_n]])])]),c("tr",null,[e[28]||(e[28]=c("td",null,[c("label",{for:"recommendedBinding"},"Recommended Binding:")],-1)),c("td",null,[F(c("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"recommendedBinding","onUpdate:modelValue":e[13]||(e[13]=o=>t.config.recommended_binding=o)},null,512),[[_e,t.config.recommended_binding]])])]),c("tr",null,[e[29]||(e[29]=c("td",null,[c("label",{for:"recommendedModel"},"Recommended Model:")],-1)),c("td",null,[F(c("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"recommendedModel","onUpdate:modelValue":e[14]||(e[14]=o=>t.config.recommended_model=o)},null,512),[[_e,t.config.recommended_model]])])]),c("tr",null,[e[30]||(e[30]=c("td",null,[c("label",{class:"dark:bg-black dark:text-primary w-full",for:"dependencies"},"Dependencies:")],-1)),c("td",null,[F(c("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"dependencies","onUpdate:modelValue":e[15]||(e[15]=o=>t.config.dependencies=o)},null,512),[[_e,t.config.dependencies]])])]),c("tr",null,[e[31]||(e[31]=c("td",null,[c("label",{for:"antiPrompts"},"Anti Prompts:")],-1)),c("td",null,[F(c("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"antiPrompts","onUpdate:modelValue":e[16]||(e[16]=o=>t.config.anti_prompts=o)},null,512),[[_e,t.config.anti_prompts]])])])])])])])])])])):Y("",!0)}const UI=bt(dvt,[["render",vvt]]),yvt={data(){return{showPopup:!1,webpageUrl:"https://lollms.com/"}},methods:{show(){this.showPopup=!0},hide(){this.showPopup=!1},save_configuration(){de.post("/apply_settings",{client_id:this.$store.state.client_id,config:this.$store.state.config}).then(n=>{this.isLoading=!1,n.data.status?(this.$store.state.toast.showToast("Configuration changed successfully.",4,!0),this.settingsChanged=!1):this.$store.state.toast.showToast("Configuration change failed.",4,!1)})}}},Evt={key:0,class:"fixed inset-0 flex items-center justify-center z-50"},Svt={class:"popup-container"},xvt=["src"],Tvt={class:"checkbox-container"};function wvt(n,e,t,r,i,s){return T(),Tt(Cs,{name:"fade"},{default:Ge(()=>[i.showPopup?(T(),M("div",Evt,[c("div",Svt,[c("button",{onClick:e[0]||(e[0]=(...o)=>s.hide&&s.hide(...o)),class:"close-button"}," X "),c("iframe",{src:i.webpageUrl,class:"iframe-content"},null,8,xvt),c("div",Tvt,[F(c("input",{type:"checkbox",id:"startup",class:"styled-checkbox","onUpdate:modelValue":e[1]||(e[1]=o=>this.$store.state.config.show_news_panel=o),onChange:e[2]||(e[2]=(...o)=>s.save_configuration&&s.save_configuration(...o))},null,544),[[tt,this.$store.state.config.show_news_panel]]),e[3]||(e[3]=c("label",{for:"startup",class:"checkbox-label"},"Show at startup",-1))])])])):Y("",!0)]),_:1})}const BI=bt(yvt,[["render",wvt],["__scopeId","data-v-d504dfc9"]]),Cvt="/assets/fastapi-BQj-rjUJ.png",Avt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20127.14%2096.36'%3e%3cg%20id='图层_2'%20data-name='图层%202'%3e%3cg%20id='Discord_Logos'%20data-name='Discord%20Logos'%3e%3cg%20id='Discord_Logo_-_Large_-_White'%20data-name='Discord%20Logo%20-%20Large%20-%20White'%3e%3cpath%20d='M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Rvt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='50'%20height='50'%3e%3ccircle%20cx='25'%20cy='25'%20r='20'%20fill='none'%20stroke='black'%20stroke-width='3'%3e%3c/circle%3e%3cline%20x1='25'%20y1='30'%20x2='25'%20y2='15'%20style='stroke:black;stroke-width:3'%3e%3c/line%3e%3ccircle%20cx='25'%20cy='35'%20r='3'%20fill='black'%3e%3c/circle%3e%3c/svg%3e",Mvt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='50'%20height='50'%3e%3ccircle%20cx='25'%20cy='25'%20r='20'%20fill='none'%20stroke='black'%20stroke-width='3'%3e%3c/circle%3e%3cline%20x1='25'%20y1='30'%20x2='25'%20y2='15'%20style='stroke:black;stroke-width:3'%3e%3canimate%20attributeName='y1'%20values='30;25;30'%20dur='1s'%20repeatCount='indefinite'%3e%3c/animate%3e%3canimate%20attributeName='y2'%20values='15;20;15'%20dur='1s'%20repeatCount='indefinite'%3e%3c/animate%3e%3c/line%3e%3ccircle%20cx='25'%20cy='35'%20r='3'%20fill='black'%3e%3canimate%20attributeName='cy'%20values='35;30;35'%20dur='1s'%20repeatCount='indefinite'%3e%3c/animate%3e%3c/circle%3e%3c/svg%3e",Nvt="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20width='800px'%20height='800px'%20viewBox='0%200%2064%2064'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20data-name='Layer%205'%20id='Layer_5'%3e%3cpath%20d='M47,33H17a1,1,0,0,0-1,1c0,9.93,7.18,18,16,18s16-8.07,16-18A1,1,0,0,0,47,33ZM18,35H46a18,18,0,0,1-.67,4H18.71A18,18,0,0,1,18,35ZM26.7,48.8a6.42,6.42,0,0,1,10.6,0,12.3,12.3,0,0,1-10.6,0Zm12.34-1A8.81,8.81,0,0,0,32,44a8.81,8.81,0,0,0-7,3.81A15.56,15.56,0,0,1,19.43,41H44.57A15.56,15.56,0,0,1,39,47.81ZM36,22a1.1,1.1,0,0,1,0-.18,1.17,1.17,0,0,1,.06-.2s0-.05,0-.07a.28.28,0,0,1,.07-.09.71.71,0,0,1,.28-.28s.06-.06.09-.07l10-5a1,1,0,1,1,.9,1.78L39.24,22l8.21,4.11a1,1,0,0,1,.44,1.34A1,1,0,0,1,47,28a.93.93,0,0,1-.45-.11l-10-5h0a1.18,1.18,0,0,1-.28-.22l0-.06a.65.65,0,0,1-.1-.15s0-.05,0-.07a1.17,1.17,0,0,1-.06-.2A1.1,1.1,0,0,1,36,22ZM16.55,26.11,24.76,22l-8.21-4.11a1,1,0,1,1,.9-1.78l10,5s.06.05.09.07a.71.71,0,0,1,.28.28.28.28,0,0,1,.07.09s0,.05,0,.07a1.17,1.17,0,0,1,.06.2.82.82,0,0,1,0,.36,1.17,1.17,0,0,1-.06.2s0,.05,0,.07a.65.65,0,0,1-.1.15.21.21,0,0,0,0,.06,1.18,1.18,0,0,1-.28.22h0l-10,5A.93.93,0,0,1,17,28a1,1,0,0,1-.89-.55A1,1,0,0,1,16.55,26.11ZM60.66,36.45A29.69,29.69,0,0,0,61,32,29,29,0,0,0,3,32a29.69,29.69,0,0,0,.34,4.45,4.65,4.65,0,0,0,2.39,7.82,29,29,0,0,0,52.54,0,4.65,4.65,0,0,0,2.39-7.82ZM4.78,41.58a2.91,2.91,0,0,1-.24-.27A2.62,2.62,0,0,1,4,39.71a.61.61,0,0,1,0-.14,2.58,2.58,0,0,1,.77-1.73,4.38,4.38,0,0,1,.74-.55C7,36.38,10,34.9,12.69,33.67c-1.52,3.3-3.42,7.17-4.17,7.91a2.59,2.59,0,0,1-1.47.72A2.66,2.66,0,0,1,4.78,41.58ZM32,59A27,27,0,0,1,7.92,44.18a4.56,4.56,0,0,0,2-1.18c1.48-1.49,5-9.36,5.66-10.92a1,1,0,0,0-1.32-1.32c-.78.34-3.14,1.39-5.49,2.53-1.29.63-2.58,1.29-3.6,1.88A25.58,25.58,0,0,1,5,32a27,27,0,0,1,54,0,25.58,25.58,0,0,1-.19,3.17c-2.88-1.66-7.88-3.88-9.09-4.41a1,1,0,0,0-1.32,1.32c.69,1.56,4.18,9.43,5.66,10.92a4.56,4.56,0,0,0,2,1.18A27,27,0,0,1,32,59ZM59.46,41.31a2.91,2.91,0,0,1-.24.27A2.66,2.66,0,0,1,57,42.3a2.59,2.59,0,0,1-1.47-.72c-.75-.74-2.65-4.61-4.17-7.91,1.65.76,3.44,1.61,4.91,2.37.91.47,1.7.9,2.26,1.25a4.38,4.38,0,0,1,.74.55A2.58,2.58,0,0,1,60,39.57a.61.61,0,0,1,0,.14A2.62,2.62,0,0,1,59.46,41.31Z'/%3e%3c/g%3e%3c/svg%3e",kvt="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20height='800px'%20width='800px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20512.001%20512.001'%20xml:space='preserve'%3e%3cg%3e%3cg%3e%3cpath%20d='M256.001,0C114.841,0,0,114.841,0,256.001s114.841,256.001,256.001,256.001S512.001,397.16,512.001,256.001%20S397.16,0,256.001,0z%20M256.001,493.701c-131.069,0-237.702-106.631-237.702-237.7S124.932,18.299,256.001,18.299%20s237.702,106.632,237.702,237.702S387.068,493.701,256.001,493.701z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cpath%20d='M371.284,296.658H138.275c-5.054,0-9.15,4.097-9.15,9.15s4.095,9.15,9.15,9.15h233.008c5.054,0,9.15-4.097,9.15-9.15%20C380.433,300.754,376.337,296.658,371.284,296.658z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cpath%20d='M297.481,330.816h-85.403c-5.054,0-9.15,4.097-9.15,9.15s4.095,9.15,9.15,9.15h85.403c5.054,0,9.15-4.097,9.15-9.15%20S302.534,330.816,297.481,330.816z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cpath%20d='M146.725,192.982c-18.666,0-33.852,15.186-33.852,33.852c0,18.666,15.186,33.852,33.852,33.852%20c18.666,0,33.852-15.186,33.852-33.852C180.577,208.168,165.391,192.982,146.725,192.982z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cpath%20d='M365.275,192.982c-18.666,0-33.852,15.186-33.852,33.852c0,18.666,15.186,33.852,33.852,33.852%20s33.852-15.186,33.852-33.852C399.128,208.168,383.942,192.982,365.275,192.982z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cg%3e%3ccircle%20cx='155.969'%20cy='219.735'%20r='9.15'/%3e%3ccircle%20cx='374.338'%20cy='219.735'%20r='9.15'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Ivt="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20height='800px'%20width='800px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20299.92%20299.92'%20xml:space='preserve'%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20d='M293.4,65.2H6.52C2.914,65.2,0,68.114,0,71.72v117.36c0,3.606,2.914,6.52,6.52,6.52h6.52v32.6%20c0,3.606,2.914,6.52,6.52,6.52h260.8c3.606,0,6.52-2.914,6.52-6.52v-32.6h6.52c3.606,0,6.52-2.914,6.52-6.52V71.72%20C299.92,68.114,297.006,65.2,293.4,65.2z%20M273.84,221.68h-19.56H228.2h-26.08h-26.08h-26.08h-26.08H97.8H71.72H45.64H26.08V195.6%20h19.56h26.08H97.8h26.08h26.08h26.08h26.08h26.08h26.08h19.56V221.68z%20M286.88,182.56h-6.52H19.56h-6.52V78.24h273.84V182.56z'/%3e%3cpath%20d='M32.6,169.52h39.12c3.606,0,6.52-2.914,6.52-6.52V97.8c0-3.606-2.914-6.52-6.52-6.52H32.6c-3.606,0-6.52,2.914-6.52,6.52%20V163C26.08,166.606,28.994,169.52,32.6,169.52z%20M39.12,104.32H65.2v52.16H39.12V104.32z'/%3e%3cpath%20d='M97.8,169.52h39.12c3.606,0,6.52-2.914,6.52-6.52V97.8c0-3.606-2.914-6.52-6.52-6.52H97.8c-3.606,0-6.52,2.914-6.52,6.52%20V163C91.28,166.606,94.194,169.52,97.8,169.52z%20M104.32,104.32h26.08v52.16h-26.08V104.32z'/%3e%3cpath%20d='M163,169.52h39.12c3.606,0,6.52-2.914,6.52-6.52V97.8c0-3.606-2.914-6.52-6.52-6.52H163c-3.606,0-6.52,2.914-6.52,6.52%20V163C156.48,166.606,159.394,169.52,163,169.52z%20M169.52,104.32h26.08v52.16h-26.08V104.32z'/%3e%3cpath%20d='M228.2,169.52h39.12c3.606,0,6.52-2.914,6.52-6.52V97.8c0-3.606-2.914-6.52-6.52-6.52H228.2%20c-3.606,0-6.52,2.914-6.52,6.52V163C221.68,166.606,224.594,169.52,228.2,169.52z%20M234.72,104.32h26.08v52.16h-26.08V104.32z'/%3e%3cpath%20d='M52.16,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C49.246,221.68,52.16,218.766,52.16,215.16z'/%3e%3cpath%20d='M78.24,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C75.326,221.68,78.24,218.766,78.24,215.16z'/%3e%3cpath%20d='M104.32,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C101.406,221.68,104.32,218.766,104.32,215.16z'/%3e%3cpath%20d='M130.4,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C127.486,221.68,130.4,218.766,130.4,215.16z'/%3e%3cpath%20d='M156.48,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52s-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20S156.48,218.766,156.48,215.16z'/%3e%3cpath%20d='M182.56,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C179.646,221.68,182.56,218.766,182.56,215.16z'/%3e%3cpath%20d='M208.64,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C205.726,221.68,208.64,218.766,208.64,215.16z'/%3e%3cpath%20d='M234.72,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C231.806,221.68,234.72,218.766,234.72,215.16z'/%3e%3cpath%20d='M260.8,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C257.886,221.68,260.8,218.766,260.8,215.16z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Ovt="data:image/svg+xml,%3csvg%20width='100'%20height='100'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='50'%20cy='50'%20r='40'%20stroke='green'%20stroke-width='4'%20fill='green'%20/%3e%3cpath%20stroke='white'%20stroke-width='4'%20d='M40%2050%20l10%2010%2020%20-20'%20fill='none'%20/%3e%3c/svg%3e",Dvt="data:image/svg+xml,%3csvg%20width='100'%20height='100'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='50'%20cy='50'%20r='40'%20stroke='red'%20stroke-width='4'%20fill='red'%20/%3e%3cline%20x1='35'%20y1='35'%20x2='65'%20y2='65'%20stroke='white'%20stroke-width='4'%20/%3e%3cline%20x1='65'%20y1='35'%20x2='35'%20y2='65'%20stroke='white'%20stroke-width='4'%20/%3e%3c/svg%3e",Lvt="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20fill='%23000000'%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='800px'%20height='800px'%20viewBox='0%200%20461.759%20461.759'%20xml:space='preserve'%3e%3cg%3e%3cpath%20d='M0,301.058h147.916v147.919H0V301.058z%20M194.432,448.977H342.35V301.058H194.432V448.977z%20M2.802,257.347h147.916V109.434%20H2.802V257.347z%20M325.476,92.219l-51.603-79.437l-79.441,51.601l51.604,79.437L325.476,92.219z%20M219.337,213.733l71.045,62.663%20l62.66-71.039l-71.044-62.669L219.337,213.733z%20M412.107,57.967l-80.668,49.656l49.652,80.666l80.668-49.65L412.107,57.967z'/%3e%3c/g%3e%3c/svg%3e",Pvt="/assets/robot-CQPaMbxU.svg",Fvt="/";de.defaults.baseURL="/";const Uvt={name:"MountedPersonalities",props:{onShowPersList:Function,onReady:Function},components:{Toast:ay,UniversalForm:Nk},data(){return{bUrl:Fvt,isMounted:!1,show:!1}},async mounted(){await this.constructor(),this.isMounted=!0},async activated(){this.isMounted&&await this.constructor()},computed:{configFile:{get(){return this.$store.state.config},set(n){this.$store.commit("setConfig",n)}},mountedPers:{get(){return this.$store.state.mountedPers},set(n){this.$store.commit("setMountedPers",n)}},personalities:{get(){return this.$store.state.personalities},set(n){this.$store.commit("setPersonalities",n)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(n){this.$store.commit("setMountedPers",n)}}},methods:{async handleOnTalk(){const n=this.mountedPers;console.log("pers:",n),this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating);let e=await de.get("/get_generation_status",{});if(e)if(e.data.status)console.log("Already generating");else{const t=this.$store.state.config.personalities.findIndex(i=>i===n.full_path),r={client_id:this.$store.state.client_id,id:t};e=await de.post("/select_personality",r),console.log("Generating message from ",e.data.status),rt.emit("generate_msg_from",{id:-1})}},async remount_personality(){const n=this.mountedPers;if(console.log("Remounting personality ",n),!n)return{status:!1,error:"no personality - mount_personality"};try{console.log("before");const e={client_id:this.$store.state.client_id,category:n.category,folder:n.folder,language:n.language};console.log("after");const t=await de.post("/remount_personality",e);if(console.log("Remounting personality executed:",t),t)return console.log("Remounting personality res"),this.$store.state.toast.showToast("Personality remounted",4,!0),t.data;console.log("failed remount_personality")}catch(e){console.log(e.message,"remount_personality - settings");return}},onSettingsPersonality(n){try{de.get("/get_active_personality_settings").then(e=>{e&&(console.log("pers sett",e),e.data&&Object.keys(e.data).length>0?this.$refs.universalForm.showForm(e.data,"Personality settings - "+n.name,"Save changes","Cancel").then(t=>{try{de.post("/set_active_personality_settings",t).then(r=>{r&&r.data?(console.log("personality set with new settings",r.data),this.$refs.toast.showToast("Personality settings updated successfully!",4,!0)):this.$refs.toast.showToast(`Did not get Personality settings responses. +`+r.error,4,!1),this.loading=!1,rt.off("file_received")}),rt.emit("send_file",t)},e.readAsDataURL(this.selectedFile)},async constructor(){We(()=>{Ze.replace()})},toggleMenu(){this.showMenu=!this.showMenu},execute_cmd(n){this.showMenu=!this.showMenu,n.hasOwnProperty("is_file")?(console.log("Need to send a file."),this.selectFile(n.hasOwnProperty("file_types")?n.file_types:"*",()=>{this.selectedFile!=null&&this.uploadFile()})):this.sendCommand(n.value)},handleClickOutside(n){const e=this.$el.querySelector(".commands-menu-items-wrapper");e&&!e.contains(n.target)&&(this.showMenu=!1)}},beforeUnmount(){document.removeEventListener("click",this.handleClickOutside)}},v1t={key:0,title:"Loading..",class:"flex flex-row flex-grow justify-end"};function y1t(n,e,t,r,i,s){const o=ht("InteractiveMenu");return i.loading?(T(),M("div",v1t,e[0]||(e[0]=[c("div",{role:"status"},[c("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),c("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),c("span",{class:"sr-only"},"Loading...")],-1)]))):(T(),Tt(o,{key:1,commands:t.commandsList,execute_cmd:s.execute_cmd},null,8,["commands","execute_cmd"]))}const E1t=bt(b1t,[["render",y1t],["__scopeId","data-v-1a32c141"]]),S1t="data:image/svg+xml,%3csvg%20aria-hidden='true'%20class='w-6%20h-6%20animate-spin%20fill-secondary'%20viewBox='0%200%20100%20101'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M100%2050.5908C100%2078.2051%2077.6142%20100.591%2050%20100.591C22.3858%20100.591%200%2078.2051%200%2050.5908C0%2022.9766%2022.3858%200.59082%2050%200.59082C77.6142%200.59082%20100%2022.9766%20100%2050.5908ZM9.08144%2050.5908C9.08144%2073.1895%2027.4013%2091.5094%2050%2091.5094C72.5987%2091.5094%2090.9186%2073.1895%2090.9186%2050.5908C90.9186%2027.9921%2072.5987%209.67226%2050%209.67226C27.4013%209.67226%209.08144%2027.9921%209.08144%2050.5908Z'%20fill='currentColor'%20/%3e%3cpath%20d='M93.9676%2039.0409C96.393%2038.4038%2097.8624%2035.9116%2097.0079%2033.5539C95.2932%2028.8227%2092.871%2024.3692%2089.8167%2020.348C85.8452%2015.1192%2080.8826%2010.7238%2075.2124%207.41289C69.5422%204.10194%2063.2754%201.94025%2056.7698%201.05124C51.7666%200.367541%2046.6976%200.446843%2041.7345%201.27873C39.2613%201.69328%2037.813%204.19778%2038.4501%206.62326C39.0873%209.04874%2041.5694%2010.4717%2044.0505%2010.1071C47.8511%209.54855%2051.7191%209.52689%2055.5402%2010.0491C60.8642%2010.7766%2065.9928%2012.5457%2070.6331%2015.2552C75.2735%2017.9648%2079.3347%2021.5619%2082.5849%2025.841C84.9175%2028.9121%2086.7997%2032.2913%2088.1811%2035.8758C89.083%2038.2158%2091.5421%2039.6781%2093.9676%2039.0409Z'%20fill='currentFill'%20/%3e%3c/svg%3e",x1t="/",T1t={name:"ChatBox",emits:["messageSentEvent","sendCMDEvent","stopGenerating","loaded","createEmptyUserMessage","createEmptyAIMessage","personalitySelected","addWebLink"],props:{onTalk:Function,discussionList:Array,loading:{default:!1},onShowToastMessage:Function},components:{PersonalitiesCommands:E1t,ChatBarButton:Yk},setup(){},data(){return{isSendMenuVisible:!1,is_rt:!1,bindingHoveredIndex:null,modelHoveredIndex:null,personalityHoveredIndex:null,loader_v0:S1t,sendGlobe:xI,bUrl:x1t,message:"",selecting_binding:!1,selecting_model:!1,selectedModel:"",isListeningToVoice:!1,filesList:[],isFileSentList:[],totalSize:0,showfilesList:!0,models_menu_icon:"",posts_headers:{accept:"application/json","Content-Type":"application/json"}}},computed:{leftPanelCollapsed(){return this.$store.state.leftPanelCollapsed},rightPanelCollapsed(){return this.$store.state.rightPanelCollapsed},isCompactMode(){return this.$store.state.view_mode==="compact"},isDataSourceNamesValid(){return console.log("dataSourceNames:",this.dataSourceNames),console.log("Type of dataSourceNames:",typeof this.dataSourceNames),Array.isArray(this.dataSourceNames)&&this.dataSourceNames.length>0},dataSourceNames(){console.log("dataSourceNames",this.$store.state.config.rag_databases);const n=this.$store.state.config.rag_databases.map(e=>{console.log("entry",e);const t=e.split("::");console.log("extracted",t[0]);const i=e.endsWith("mounted")?"feather:check":"";return console.log("icon decision",i),{name:t[0],value:t[0]||"default_value",icon:i,help:"mounts the database"}});return console.log("formatted data sources",n),n}},methods:{showSendMenu(){clearTimeout(this.hideSendMenuTimeout),this.isSendMenuVisible=!0},hideSendMenu(){this.hideSendMenuTimeout=setTimeout(()=>{this.isSendMenuVisible=!1},300)},toggleLeftPanel(){console.log(this.leftPanelCollapsed),this.$store.commit("setLeftPanelCollapsed",!this.leftPanelCollapsed)},async toggleRightPanel(){console.log(this.rightPanelCollapsed),this.$store.commit("setRightPanelCollapsed",!this.rightPanelCollapsed),this.rightPanelCollapsed&&(this.$store.commit("setleftPanelCollapsed",!0),this.$nextTick(()=>{this.extractHtml()})),console.log(this.rightPanelCollapsed)},handlePaste(n){const e=(n.clipboardData||n.originalEvent.clipboardData).items;let t=[];for(let r of e)if(r.type.indexOf("image")!==-1){const i=r.getAsFile(),o=`image_${Date.now()+"_"+Math.random().toString(36).substr(2,9)}.png`;console.log("newFileName",o);const a=new File([i],o,{type:i.type});this.addFiles([a])}else if(r.kind==="file"){const i=r.getAsFile();t.push(i)}t.length>0&&this.addFiles(t)},emitloaded(){this.$emit("loaded")},download_files(){de.get("/download_files")},remove_file(n){de.get("/remove_discussion_file",{client_id:this.$store.state.client_id,name:n}).then(e=>{console.log(e)})},clear_files(){de.post("/clear_discussion_files_list",{client_id:this.$store.state.client_id}).then(n=>{console.log(n),n.data.state?(this.$store.state.toast.showToast("File removed successfully",4,!0),this.filesList.length=0,this.isFileSentList.length=0,this.totalSize=0):this.$store.state.toast.showToast("Files couldn't be removed",4,!1)})},send_file(n,e){console.log("Send file triggered");const t=new FileReader,r=24*1024;let i=0,s=0;t.onloadend=()=>{if(t.error){console.error("Error reading file:",t.error);return}const a=t.result,l=i+a.byteLength>=n.size;rt.emit("send_file_chunk",{filename:n.name,chunk:a,offset:i,isLastChunk:l,chunkIndex:s}),i+=a.byteLength,s++,l?(console.log("File sent successfully"),this.isFileSentList[this.filesList.length-1]=!0,console.log(this.isFileSentList),this.$store.state.toast.showToast("File uploaded successfully",4,!0),e()):o()};function o(){const a=n.slice(i,i+r);t.readAsArrayBuffer(a)}console.log("Uploading file"),o()},makeAnEmptyUserMessage(){this.$emit("createEmptyUserMessage",this.message),this.message=""},makeAnEmptyAIMessage(){this.$emit("createEmptyAIMessage")},startRTCom(){this.is_rt=!0,console.log("is_rt:",this.is_rt),rt.emit("start_bidirectional_audio_stream"),We(()=>{Ze.replace()})},stopRTCom(){this.is_rt=!1,console.log("is_rt:",this.is_rt),rt.emit("stop_bidirectional_audio_stream"),We(()=>{Ze.replace()})},startSpeechRecognition(){"SpeechRecognition"in window||"webkitSpeechRecognition"in window?(this.recognition=new(window.SpeechRecognition||window.webkitSpeechRecognition),this.recognition.lang=this.$store.state.config.audio_in_language,this.recognition.interimResults=!0,this.recognition.onstart=()=>{this.isListeningToVoice=!0,this.silenceTimer=setTimeout(()=>{this.recognition.stop()},this.silenceTimeout)},this.recognition.onresult=n=>{let e="";for(let t=n.resultIndex;t{this.recognition.stop()},this.silenceTimeout)},this.recognition.onerror=n=>{console.error("Speech recognition error:",n.error),this.isListeningToVoice=!1,clearTimeout(this.silenceTimer)},this.recognition.onend=()=>{console.log("Speech recognition ended."),this.isListeningToVoice=!1,clearTimeout(this.silenceTimer),this.submit()},this.recognition.start()):console.error("Speech recognition is not supported in this browser.")},computedFileSize(n){return We(()=>{Ze.replace()}),Wi(n)},removeItem(n){console.log("Removing ",n.name),de.post("/remove_discussion_file",{client_id:this.$store.state.client_id,name:n.name},{headers:this.posts_headers}).then(()=>{this.filesList=this.filesList.filter(e=>e!=n)}),console.log(this.filesList)},sendMessageEvent(n,e="no_internet"){this.$emit("messageSentEvent",n,e)},sendCMDEvent(n){this.$emit("sendCMDEvent",n)},async mountDB(n){await de.post("/toggle_mount_rag_database",{client_id:this.$store.state.client_id,database_name:n}),await this.$store.dispatch("refreshConfig"),console.log("Refreshed")},addWebLink(){console.log("Emitting addWebLink"),this.$emit("addWebLink")},add_file(){const n=document.createElement("input");n.type="file",n.style.display="none",n.multiple=!0,document.body.appendChild(n),n.addEventListener("change",()=>{console.log("Calling Add file..."),this.addFiles(n.files),document.body.removeChild(n)}),n.click()},takePicture(){rt.emit("take_picture"),rt.on("picture_taken",()=>{de.post("/get_discussion_files_list",{client_id:this.$store.state.client_id}).then(n=>{this.filesList=n.data.files,this.isFileSentList=n.data.files.map(e=>!0),console.log(`Files recovered: ${this.filesList}`)})})},submitOnEnter(n){this.loading||n.which===13&&(n.preventDefault(),n.repeat||(this.sendMessageEvent(this.message),this.message=""))},submit(){this.message&&(this.sendMessageEvent(this.message),this.message="")},submitWithInternetSearch(){this.message&&(this.sendMessageEvent(this.message,"internet"),this.message="")},stopGenerating(){this.$emit("stopGenerating")},addFiles(n){console.log("Adding files");const e=[...n];let t=0;const r=()=>{if(t>=e.length){console.log(`Files_list: ${this.filesList}`);return}const i=e[t];this.filesList.push(i),this.isFileSentList.push(!1),this.send_file(i,()=>{t++,r()})};r()}},watch:{installedModels:{immediate:!0,handler(n){this.$nextTick(()=>{this.installedModels=n})}},model_name:{immediate:!0,handler(n){this.$nextTick(()=>{this.model_name=n})}},showfilesList(){We(()=>{Ze.replace()})},loading(n,e){We(()=>{Ze.replace()})},filesList:{handler(n,e){let t=0;if(n.length>0)for(let r=0;r{Ze.replace()}),console.log("Chatbar mounted"),rt.on("rtcom_status_changed",n=>{this.$store.dispatch("fetchisRTOn"),console.log("rtcom_status_changed: ",n.status),console.log("active_tts_service: ",this.$store.state.config.active_tts_service),console.log("is_rt_on: ",this.$store.state.is_rt_on)}),this.$store.dispatch("fetchisRTOn")},activated(){We(()=>{Ze.replace()})}},w1t={class:"absolute bottom-0 left-0 w-fit min-w-96 w-full justify-center text-center"},C1t={key:0,class:"items-center gap-2 panels-color shadow-sm hover:shadow-none dark:border-gray-800 w-fit"},A1t={class:"flex"},R1t=["title"],M1t={key:0},N1t={class:"flex flex-col max-h-64"},k1t=["title"],I1t={class:"flex flex-row items-center gap-1 text-left p-2 text-sm font-medium items-center gap-2 rounded-lg border bg-gray-100 p-1.5 shadow-sm hover:shadow-none dark:border-gray-800 dark:bg-gray-700 hover:bg-primary dark:hover:bg-primary"},O1t={key:0,filesList:"",role:"status"},D1t={class:"flex flex-row items-center"},L1t={class:"whitespace-nowrap"},P1t=["onClick"],F1t={key:1,class:"flex mx-1 w-500"},U1t={class:"whitespace-nowrap flex flex-row gap-2"},B1t={key:1,title:"Selecting model",class:"flex flex-row flex-grow justify-end panels-color"},G1t={role:"status"},z1t=["src"],V1t={class:"flex w-fit relative grow w-full"},H1t={class:"relative text-light-text-panel dark:text-dark-text-panel grow flex h-12.5 cursor-pointer select-none items-center gap-2 chatbox-color p-1 shadow-sm hover:shadow-none dark:border-gray-800",tabindex:"0"},q1t={key:0,title:"Waiting for reply"},Y1t=["src"],$1t={class:"w-fit"},W1t={class:"w-fit"},K1t={class:"relative grow m-0 p-0"},j1t={class:"m-0 p-0"},Q1t={class:"flex items-center space-x-3"},X1t={class:"relative inline-block"},Z1t={class:"p-4 m-0 flex flex-col gap-4 max-h-96 overflow-y-auto custom-scrollbar"},J1t={class:"flex flex-col gap-2"};function evt(n,e,t,r,i,s){const o=ht("ChatBarButton"),a=ht("PersonalitiesCommands");return T(),M("div",w1t,[i.filesList.length>0?(T(),M("div",C1t,[c("div",A1t,[c("button",{class:"mx-1 w-full text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:i.showfilesList?"Hide file list":"Show file list",type:"button",onClick:e[0]||(e[0]=J(l=>i.showfilesList=!i.showfilesList,["stop"]))},e[12]||(e[12]=[c("i",{"data-feather":"list"},null,-1)]),8,R1t)]),i.filesList.length>0&&i.showfilesList==!0?(T(),M("div",M1t,[c("div",N1t,[W(As,{name:"list",tag:"div",class:"flex flex-col flex-grow overflow-y-auto scrollbar-thin scrollbar-track-bg-light scrollbar-thumb-bg-light-tone hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark dark:scrollbar-thumb-bg-dark-tone dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},{default:Ge(()=>[(T(!0),M(je,null,at(i.filesList,(l,d)=>(T(),M("div",{key:d+"-"+l.name},[c("div",{class:"m-1",title:l.name},[c("div",I1t,[i.isFileSentList[d]?Y("",!0):(T(),M("div",O1t,e[13]||(e[13]=[c("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),c("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1),c("span",{class:"sr-only"},"Loading...",-1)]))),e[15]||(e[15]=c("div",null,[c("i",{"data-feather":"file",class:"w-5 h-5"})],-1)),c("div",{class:qe(["line-clamp-1 w-3/5",i.isFileSentList[d]?"text-green-500":"text-red-200"])},X(l.name),3),e[16]||(e[16]=c("div",{class:"grow"},null,-1)),c("div",D1t,[c("p",L1t,X(s.computedFileSize(l.size)),1),c("button",{type:"button",title:"Remove item",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:u=>s.removeItem(l)},e[14]||(e[14]=[c("i",{"data-feather":"x",class:"w-5 h-5"},null,-1)]),8,P1t)])])],8,k1t)]))),128))]),_:1})])])):Y("",!0),i.filesList.length>0?(T(),M("div",F1t,[c("div",U1t,[e[17]||(e[17]=c("p",{class:"font-bold"}," Total size: ",-1)),pt(" "+X(i.totalSize)+" ("+X(i.filesList.length)+") ",1)]),e[20]||(e[20]=c("div",{class:"grow"},null,-1)),c("button",{type:"button",title:"Clear all",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:e[1]||(e[1]=(...l)=>s.clear_files&&s.clear_files(...l))},e[18]||(e[18]=[c("i",{"data-feather":"trash",class:"w-5 h-5"},null,-1)])),c("button",{type:"button",title:"Download database",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:e[2]||(e[2]=(...l)=>s.download_files&&s.download_files(...l))},e[19]||(e[19]=[c("i",{"data-feather":"download-cloud",class:"w-5 h-5"},null,-1)]))])):Y("",!0)])):Y("",!0),i.selecting_model||i.selecting_binding?(T(),M("div",B1t,[c("div",G1t,[c("img",{src:i.loader_v0,class:"w-50 h-50"},null,8,z1t),e[21]||(e[21]=c("span",{class:"sr-only"},"Selecting model...",-1))])])):Y("",!0),c("div",V1t,[c("div",H1t,[t.loading?(T(),M("div",q1t,[c("img",{src:i.loader_v0},null,8,Y1t),e[22]||(e[22]=c("div",{role:"status"},[c("span",{class:"sr-only"},"Loading...")],-1))])):Y("",!0),W(o,{onClick:s.toggleLeftPanel,class:qe({"text-red-500":s.leftPanelCollapsed}),title:"Toggle View Mode"},{default:Ge(()=>[F(c("div",null,e[23]||(e[23]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[c("polyline",{points:"9 18 15 12 9 6"})],-1)]),512),[[Dt,s.leftPanelCollapsed]]),F(c("div",null,e[24]||(e[24]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[c("polyline",{points:"15 18 9 12 15 6"})],-1)]),512),[[Dt,!s.leftPanelCollapsed]])]),_:1},8,["onClick","class"]),c("div",$1t,[this.$store.state.personalities_ready&&this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands!=""?(T(),Tt(a,{key:0,commandsList:this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands,sendCommand:s.sendCMDEvent,"on-show-toast-message":t.onShowToastMessage,ref:"personalityCMD"},null,8,["commandsList","sendCommand","on-show-toast-message"])):Y("",!0)]),c("div",W1t,[s.isDataSourceNamesValid?(T(),Tt(a,{key:0,icon:"feather:book",commandsList:s.dataSourceNames,sendCommand:s.mountDB,"on-show-toast-message":t.onShowToastMessage,ref:"databasesList"},null,8,["commandsList","sendCommand","on-show-toast-message"])):Y("",!0)]),c("div",K1t,[c("form",j1t,[F(c("textarea",{id:"chat",rows:"1","onUpdate:modelValue":e[3]||(e[3]=l=>i.message=l),onPaste:e[4]||(e[4]=(...l)=>s.handlePaste&&s.handlePaste(...l)),onKeydown:e[5]||(e[5]=ui(J(l=>s.submitOnEnter(l),["exact"]),["enter"])),class:"w-full p-2 text-sm text-gray-900 dark:text-white bg-gray-100 dark:bg-gray-700 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent resize-none",placeholder:"Send message..."},null,544),[[_e,i.message]])])]),c("div",Q1t,[t.loading?(T(),Tt(o,{key:0,onClick:s.stopGenerating,class:"bg-red-500 dark:bg-red-600 hover:bg-red-600 dark:hover:bg-red-700"},{icon:Ge(()=>e[25]||(e[25]=[c("svg",{class:"animate-spin h-5 w-5",viewBox:"0 0 24 24"},[c("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),c("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)])),default:Ge(()=>[e[26]||(e[26]=c("span",null,"Stop",-1))]),_:1},8,["onClick"])):(T(),Tt(o,{key:1,onClick:s.submit,title:"Send"},{icon:Ge(()=>e[27]||(e[27]=[c("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 19l9 2-9-18-9 18 9-2zm0 0v-8"})],-1)])),_:1},8,["onClick"])),W(o,{onClick:s.submitWithInternetSearch,title:"Send with internet search"},{icon:Ge(()=>e[28]||(e[28]=[c("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"})],-1)])),_:1},8,["onClick"]),W(o,{onClick:s.startSpeechRecognition,class:qe({"text-red-500":i.isListeningToVoice}),title:"Voice input"},{icon:Ge(()=>e[29]||(e[29]=[c("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z"})],-1)])),_:1},8,["onClick","class"]),n.$store.state.config.active_tts_service!="None"&&n.$store.state.config.active_tts_service!=null&&this.$store.state.config.active_stt_service!="None"&&this.$store.state.config.active_stt_service!=null?(T(),Tt(o,{key:2,onClick:e[6]||(e[6]=l=>i.is_rt?s.stopRTCom:s.startRTCom),class:qe(i.is_rt?"bg-red-500 dark:bg-red-600":"bg-green-500 dark:bg-green-600"),title:"Real-time audio mode"},{icon:Ge(()=>e[30]||(e[30]=[pt(" 🌟 ")])),_:1},8,["class"])):Y("",!0),t.loading?Y("",!0):(T(),M("div",{key:3,class:"relative",onMouseleave:e[10]||(e[10]=(...l)=>s.hideSendMenu&&s.hideSendMenu(...l))},[c("div",X1t,[F(c("div",{onMouseenter:e[7]||(e[7]=(...l)=>s.showSendMenu&&s.showSendMenu(...l)),class:"absolute m-0 p-0 z-10 bottom-full left-1/2 transform -translate-x-1/2 w-25 bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[c("div",Z1t,[c("div",J1t,[W(o,{onClick:s.add_file,title:"Send file"},{icon:Ge(()=>e[31]||(e[31]=[c("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 13h6m-3-3v6m5 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})],-1)])),_:1},8,["onClick"]),W(o,{onClick:s.takePicture,title:"Take picture"},{icon:Ge(()=>e[32]||(e[32]=[c("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 9a2 2 0 012-2h.93a2 2 0 001.664-.89l.812-1.22A2 2 0 0110.07 4h3.86a2 2 0 011.664.89l.812 1.22A2 2 0 0018.07 7H19a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V9z"}),c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 13a3 3 0 11-6 0 3 3 0 016 0z"})],-1)])),_:1},8,["onClick"]),W(o,{onClick:s.addWebLink,title:"Add web link"},{icon:Ge(()=>e[33]||(e[33]=[c("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"})],-1)])),_:1},8,["onClick"])])])],544),[[Dt,i.isSendMenuVisible]]),c("div",{onMouseenter:e[9]||(e[9]=(...l)=>s.showSendMenu&&s.showSendMenu(...l))},[c("button",{onClick:e[8]||(e[8]=J((...l)=>n.toggleSendMenu&&n.toggleSendMenu(...l),["prevent"])),class:"p-2 rounded-full transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"},e[34]||(e[34]=[c("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"black"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v3m0 0v3m0-3h3m-3 0H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)]))],32)])],32)),W(o,{onClick:s.makeAnEmptyUserMessage,title:"New user message",class:"text-gray-600 dark:text-gray-300"},{icon:Ge(()=>e[35]||(e[35]=[c("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"})],-1)])),_:1},8,["onClick"]),W(o,{onClick:s.makeAnEmptyAIMessage,title:"New AI message",class:"text-red-400 dark:text-red-300"},{icon:Ge(()=>e[36]||(e[36]=[c("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})],-1)])),_:1},8,["onClick"]),W(o,{onClick:s.toggleRightPanel,class:qe({"text-red-500":!s.rightPanelCollapsed}),title:"Toggle right Panel"},{default:Ge(()=>[F(c("div",null,e[37]||(e[37]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[c("polyline",{points:"15 18 9 12 15 6"})],-1)]),512),[[Dt,s.rightPanelCollapsed]]),F(c("div",null,e[38]||(e[38]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[c("polyline",{points:"9 18 15 12 9 6"})],-1)]),512),[[Dt,!s.rightPanelCollapsed]])]),_:1},8,["onClick","class"])]),c("input",{type:"file",ref:"fileDialog",onChange:e[11]||(e[11]=(...l)=>s.addFiles&&s.addFiles(...l)),multiple:"",style:{display:"none"}},null,544)]),e[39]||(e[39]=c("div",{class:"ml-auto gap-2"},null,-1))])])}const wI=bt(T1t,[["render",evt],["__scopeId","data-v-e3d676fa"]]),tvt={name:"WelcomeComponent",setup(){const n=i6();return{logoSrc:mt(()=>n.state.config&&n.state.config.app_custom_logo?`/user_infos/${n.state.config.app_custom_logo}`:Ai)}}},nvt={class:"flex flex-col items-center justify-center w-full h-full min-h-screen p-8"},rvt={class:"text-center max-w-4xl"},ivt={class:"flex items-center justify-center gap-8 mb-12"},svt={class:"relative w-24 h-24"},ovt=["src"];function avt(n,e,t,r,i,s){return T(),M("div",nvt,[c("div",rvt,[c("div",ivt,[c("div",svt,[c("img",{src:r.logoSrc,alt:"LoLLMS Logo",class:"w-24 h-24 rounded-full absolute animate-rolling-ball"},null,8,ovt)]),e[0]||(e[0]=c("div",{class:"flex flex-col items-start"},[c("h1",{class:"text-6xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-indigo-600 to-purple-600 dark:from-indigo-400 dark:to-purple-400"}," L🌟LLMS "),c("p",{class:"text-2xl text-gray-600 dark:text-gray-300 italic mt-2"}," Lord of Large Language And Multimodal Systems ")],-1))]),e[1]||(e[1]=yo('

Welcome to L🌟LLMS WebUI

Embark on a journey through the realm of advanced AI with L🌟LLMS, your ultimate companion for intelligent conversations and multimodal interactions. Unleash the power of large language models and explore new frontiers in artificial intelligence.

Discover the capabilities of L🌟LLMS:

  • Engage in natural language conversations
  • Generate creative content and ideas
  • Analyze complex data and provide insights
  • Assist with coding and technical tasks
  • Process and understand multimodal inputs
',1))])])}const CI=bt(tvt,[["render",avt],["__scopeId","data-v-1756add6"]]);var lvt=function(){function n(e,t){t===void 0&&(t=[]),this._eventType=e,this._eventFunctions=t}return n.prototype.init=function(){var e=this;this._eventFunctions.forEach(function(t){typeof window<"u"&&window.addEventListener(e._eventType,t)})},n}(),$p=function(){return $p=Object.assign||function(n){for(var e,t=1,r=arguments.length;t{const e=n.data;console.log("Done"),e.status?(this.currentPersonConfig=e.config,this.showPersonalityEditor=!0):console.error(e.error)}).catch(n=>{console.error(n)})}}},uvt={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 z-20"},pvt={class:"relative w-full max-h-full bg-bg-light dark:bg-bg-dark"},hvt={class:"w-full h-full relative items-center gap-2 rounded-lg border bg-bg-light dark:bg-bg-dark p-1.5 shadow-sm hover:shadow-none dark:border-gray-800 dark:bg-gray-900"},mvt={class:"justify-center text-center items-center w-full bg-bg-light dark:bg-bg-dark"},fvt={class:"w-full flex flex-row mt-4 text-center justify-center"},gvt={class:"w-full max-h-full container bg-bg-light dark:bg-bg-dark"},_vt={class:"mb-4 w-full"},bvt={class:"w-full bg-bg-light dark:bg-bg-dark"};function vvt(n,e,t,r,i,s){return i.show?(T(),M("div",uvt,[c("div",pvt,[c("div",hvt,[c("button",{type:"button",onClick:e[0]||(e[0]=o=>s.hide()),class:"absolute top-1 right-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-800 dark:hover:text-white"},e[17]||(e[17]=[c("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),c("span",{class:"sr-only"},"Close modal",-1)])),c("div",mvt,[c("div",fvt,[c("button",{type:"submit",onClick:e[1]||(e[1]=J((...o)=>s.submitForm&&s.submitForm(...o),["prevent"])),class:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"}," Commit AI to Server "),c("button",{onClick:e[2]||(e[2]=J(o=>s.hide(),["prevent"])),class:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"}," Close ")]),c("div",gvt,[c("form",_vt,[c("table",bvt,[c("tr",null,[e[18]||(e[18]=c("td",null,[c("label",{for:"personalityConditioning"},"Personality Conditioning:")],-1)),c("td",null,[F(c("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"personalityConditioning","onUpdate:modelValue":e[3]||(e[3]=o=>t.config.personality_conditioning=o)},null,512),[[_e,t.config.personality_conditioning]])])]),c("tr",null,[e[19]||(e[19]=c("td",null,[c("label",{for:"userMessagePrefix"},"User Message Prefix:")],-1)),c("td",null,[F(c("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"userMessagePrefix","onUpdate:modelValue":e[4]||(e[4]=o=>t.config.user_message_prefix=o)},null,512),[[_e,t.config.user_message_prefix]])])]),c("tr",null,[e[20]||(e[20]=c("td",null,[c("label",{for:"aiMessagePrefix"},"AI Message Prefix:")],-1)),c("td",null,[F(c("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"aiMessagePrefix","onUpdate:modelValue":e[5]||(e[5]=o=>t.config.ai_message_prefix=o)},null,512),[[_e,t.config.ai_message_prefix]])])]),c("tr",null,[e[21]||(e[21]=c("td",null,[c("label",{for:"linkText"},"Link Text:")],-1)),c("td",null,[F(c("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"linkText","onUpdate:modelValue":e[6]||(e[6]=o=>t.config.link_text=o)},null,512),[[_e,t.config.link_text]])])]),c("tr",null,[e[22]||(e[22]=c("td",null,[c("label",{for:"welcomeMessage"},"Welcome Message:")],-1)),c("td",null,[F(c("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"welcomeMessage","onUpdate:modelValue":e[7]||(e[7]=o=>t.config.welcome_message=o)},null,512),[[_e,t.config.welcome_message]])])]),c("tr",null,[e[23]||(e[23]=c("td",null,[c("label",{for:"modelTemperature"},"Model Temperature:")],-1)),c("td",null,[F(c("input",{type:"number",id:"modelTemperature","onUpdate:modelValue":e[8]||(e[8]=o=>t.config.model_temperature=o)},null,512),[[_e,t.config.model_temperature]])])]),c("tr",null,[e[24]||(e[24]=c("td",null,[c("label",{for:"modelTopK"},"Model Top K:")],-1)),c("td",null,[F(c("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelTopK","onUpdate:modelValue":e[9]||(e[9]=o=>t.config.model_top_k=o)},null,512),[[_e,t.config.model_top_k]])])]),c("tr",null,[e[25]||(e[25]=c("td",null,[c("label",{for:"modelTopP"},"Model Top P:")],-1)),c("td",null,[F(c("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelTopP","onUpdate:modelValue":e[10]||(e[10]=o=>t.config.model_top_p=o)},null,512),[[_e,t.config.model_top_p]])])]),c("tr",null,[e[26]||(e[26]=c("td",null,[c("label",{for:"modelRepeatPenalty"},"Model Repeat Penalty:")],-1)),c("td",null,[F(c("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelRepeatPenalty","onUpdate:modelValue":e[11]||(e[11]=o=>t.config.model_repeat_penalty=o)},null,512),[[_e,t.config.model_repeat_penalty]])])]),c("tr",null,[e[27]||(e[27]=c("td",null,[c("label",{for:"modelRepeatLastN"},"Model Repeat Last N:")],-1)),c("td",null,[F(c("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelRepeatLastN","onUpdate:modelValue":e[12]||(e[12]=o=>t.config.model_repeat_last_n=o)},null,512),[[_e,t.config.model_repeat_last_n]])])]),c("tr",null,[e[28]||(e[28]=c("td",null,[c("label",{for:"recommendedBinding"},"Recommended Binding:")],-1)),c("td",null,[F(c("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"recommendedBinding","onUpdate:modelValue":e[13]||(e[13]=o=>t.config.recommended_binding=o)},null,512),[[_e,t.config.recommended_binding]])])]),c("tr",null,[e[29]||(e[29]=c("td",null,[c("label",{for:"recommendedModel"},"Recommended Model:")],-1)),c("td",null,[F(c("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"recommendedModel","onUpdate:modelValue":e[14]||(e[14]=o=>t.config.recommended_model=o)},null,512),[[_e,t.config.recommended_model]])])]),c("tr",null,[e[30]||(e[30]=c("td",null,[c("label",{class:"dark:bg-black dark:text-primary w-full",for:"dependencies"},"Dependencies:")],-1)),c("td",null,[F(c("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"dependencies","onUpdate:modelValue":e[15]||(e[15]=o=>t.config.dependencies=o)},null,512),[[_e,t.config.dependencies]])])]),c("tr",null,[e[31]||(e[31]=c("td",null,[c("label",{for:"antiPrompts"},"Anti Prompts:")],-1)),c("td",null,[F(c("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"antiPrompts","onUpdate:modelValue":e[16]||(e[16]=o=>t.config.anti_prompts=o)},null,512),[[_e,t.config.anti_prompts]])])])])])])])])])])):Y("",!0)}const UI=bt(dvt,[["render",vvt]]),yvt={data(){return{showPopup:!1,webpageUrl:"https://lollms.com/"}},methods:{show(){this.showPopup=!0},hide(){this.showPopup=!1},save_configuration(){de.post("/apply_settings",{client_id:this.$store.state.client_id,config:this.$store.state.config}).then(n=>{this.isLoading=!1,n.data.status?(this.$store.state.toast.showToast("Configuration changed successfully.",4,!0),this.settingsChanged=!1):this.$store.state.toast.showToast("Configuration change failed.",4,!1)})}}},Evt={key:0,class:"fixed inset-0 flex items-center justify-center z-50"},Svt={class:"popup-container"},xvt=["src"],Tvt={class:"checkbox-container"};function wvt(n,e,t,r,i,s){return T(),Tt(ji,{name:"fade"},{default:Ge(()=>[i.showPopup?(T(),M("div",Evt,[c("div",Svt,[c("button",{onClick:e[0]||(e[0]=(...o)=>s.hide&&s.hide(...o)),class:"close-button"}," X "),c("iframe",{src:i.webpageUrl,class:"iframe-content"},null,8,xvt),c("div",Tvt,[F(c("input",{type:"checkbox",id:"startup",class:"styled-checkbox","onUpdate:modelValue":e[1]||(e[1]=o=>this.$store.state.config.show_news_panel=o),onChange:e[2]||(e[2]=(...o)=>s.save_configuration&&s.save_configuration(...o))},null,544),[[tt,this.$store.state.config.show_news_panel]]),e[3]||(e[3]=c("label",{for:"startup",class:"checkbox-label"},"Show at startup",-1))])])])):Y("",!0)]),_:1})}const BI=bt(yvt,[["render",wvt],["__scopeId","data-v-d504dfc9"]]),Cvt="/assets/fastapi-BQj-rjUJ.png",Avt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20127.14%2096.36'%3e%3cg%20id='图层_2'%20data-name='图层%202'%3e%3cg%20id='Discord_Logos'%20data-name='Discord%20Logos'%3e%3cg%20id='Discord_Logo_-_Large_-_White'%20data-name='Discord%20Logo%20-%20Large%20-%20White'%3e%3cpath%20d='M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Rvt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='50'%20height='50'%3e%3ccircle%20cx='25'%20cy='25'%20r='20'%20fill='none'%20stroke='black'%20stroke-width='3'%3e%3c/circle%3e%3cline%20x1='25'%20y1='30'%20x2='25'%20y2='15'%20style='stroke:black;stroke-width:3'%3e%3c/line%3e%3ccircle%20cx='25'%20cy='35'%20r='3'%20fill='black'%3e%3c/circle%3e%3c/svg%3e",Mvt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='50'%20height='50'%3e%3ccircle%20cx='25'%20cy='25'%20r='20'%20fill='none'%20stroke='black'%20stroke-width='3'%3e%3c/circle%3e%3cline%20x1='25'%20y1='30'%20x2='25'%20y2='15'%20style='stroke:black;stroke-width:3'%3e%3canimate%20attributeName='y1'%20values='30;25;30'%20dur='1s'%20repeatCount='indefinite'%3e%3c/animate%3e%3canimate%20attributeName='y2'%20values='15;20;15'%20dur='1s'%20repeatCount='indefinite'%3e%3c/animate%3e%3c/line%3e%3ccircle%20cx='25'%20cy='35'%20r='3'%20fill='black'%3e%3canimate%20attributeName='cy'%20values='35;30;35'%20dur='1s'%20repeatCount='indefinite'%3e%3c/animate%3e%3c/circle%3e%3c/svg%3e",Nvt="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20width='800px'%20height='800px'%20viewBox='0%200%2064%2064'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20data-name='Layer%205'%20id='Layer_5'%3e%3cpath%20d='M47,33H17a1,1,0,0,0-1,1c0,9.93,7.18,18,16,18s16-8.07,16-18A1,1,0,0,0,47,33ZM18,35H46a18,18,0,0,1-.67,4H18.71A18,18,0,0,1,18,35ZM26.7,48.8a6.42,6.42,0,0,1,10.6,0,12.3,12.3,0,0,1-10.6,0Zm12.34-1A8.81,8.81,0,0,0,32,44a8.81,8.81,0,0,0-7,3.81A15.56,15.56,0,0,1,19.43,41H44.57A15.56,15.56,0,0,1,39,47.81ZM36,22a1.1,1.1,0,0,1,0-.18,1.17,1.17,0,0,1,.06-.2s0-.05,0-.07a.28.28,0,0,1,.07-.09.71.71,0,0,1,.28-.28s.06-.06.09-.07l10-5a1,1,0,1,1,.9,1.78L39.24,22l8.21,4.11a1,1,0,0,1,.44,1.34A1,1,0,0,1,47,28a.93.93,0,0,1-.45-.11l-10-5h0a1.18,1.18,0,0,1-.28-.22l0-.06a.65.65,0,0,1-.1-.15s0-.05,0-.07a1.17,1.17,0,0,1-.06-.2A1.1,1.1,0,0,1,36,22ZM16.55,26.11,24.76,22l-8.21-4.11a1,1,0,1,1,.9-1.78l10,5s.06.05.09.07a.71.71,0,0,1,.28.28.28.28,0,0,1,.07.09s0,.05,0,.07a1.17,1.17,0,0,1,.06.2.82.82,0,0,1,0,.36,1.17,1.17,0,0,1-.06.2s0,.05,0,.07a.65.65,0,0,1-.1.15.21.21,0,0,0,0,.06,1.18,1.18,0,0,1-.28.22h0l-10,5A.93.93,0,0,1,17,28a1,1,0,0,1-.89-.55A1,1,0,0,1,16.55,26.11ZM60.66,36.45A29.69,29.69,0,0,0,61,32,29,29,0,0,0,3,32a29.69,29.69,0,0,0,.34,4.45,4.65,4.65,0,0,0,2.39,7.82,29,29,0,0,0,52.54,0,4.65,4.65,0,0,0,2.39-7.82ZM4.78,41.58a2.91,2.91,0,0,1-.24-.27A2.62,2.62,0,0,1,4,39.71a.61.61,0,0,1,0-.14,2.58,2.58,0,0,1,.77-1.73,4.38,4.38,0,0,1,.74-.55C7,36.38,10,34.9,12.69,33.67c-1.52,3.3-3.42,7.17-4.17,7.91a2.59,2.59,0,0,1-1.47.72A2.66,2.66,0,0,1,4.78,41.58ZM32,59A27,27,0,0,1,7.92,44.18a4.56,4.56,0,0,0,2-1.18c1.48-1.49,5-9.36,5.66-10.92a1,1,0,0,0-1.32-1.32c-.78.34-3.14,1.39-5.49,2.53-1.29.63-2.58,1.29-3.6,1.88A25.58,25.58,0,0,1,5,32a27,27,0,0,1,54,0,25.58,25.58,0,0,1-.19,3.17c-2.88-1.66-7.88-3.88-9.09-4.41a1,1,0,0,0-1.32,1.32c.69,1.56,4.18,9.43,5.66,10.92a4.56,4.56,0,0,0,2,1.18A27,27,0,0,1,32,59ZM59.46,41.31a2.91,2.91,0,0,1-.24.27A2.66,2.66,0,0,1,57,42.3a2.59,2.59,0,0,1-1.47-.72c-.75-.74-2.65-4.61-4.17-7.91,1.65.76,3.44,1.61,4.91,2.37.91.47,1.7.9,2.26,1.25a4.38,4.38,0,0,1,.74.55A2.58,2.58,0,0,1,60,39.57a.61.61,0,0,1,0,.14A2.62,2.62,0,0,1,59.46,41.31Z'/%3e%3c/g%3e%3c/svg%3e",kvt="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20height='800px'%20width='800px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20512.001%20512.001'%20xml:space='preserve'%3e%3cg%3e%3cg%3e%3cpath%20d='M256.001,0C114.841,0,0,114.841,0,256.001s114.841,256.001,256.001,256.001S512.001,397.16,512.001,256.001%20S397.16,0,256.001,0z%20M256.001,493.701c-131.069,0-237.702-106.631-237.702-237.7S124.932,18.299,256.001,18.299%20s237.702,106.632,237.702,237.702S387.068,493.701,256.001,493.701z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cpath%20d='M371.284,296.658H138.275c-5.054,0-9.15,4.097-9.15,9.15s4.095,9.15,9.15,9.15h233.008c5.054,0,9.15-4.097,9.15-9.15%20C380.433,300.754,376.337,296.658,371.284,296.658z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cpath%20d='M297.481,330.816h-85.403c-5.054,0-9.15,4.097-9.15,9.15s4.095,9.15,9.15,9.15h85.403c5.054,0,9.15-4.097,9.15-9.15%20S302.534,330.816,297.481,330.816z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cpath%20d='M146.725,192.982c-18.666,0-33.852,15.186-33.852,33.852c0,18.666,15.186,33.852,33.852,33.852%20c18.666,0,33.852-15.186,33.852-33.852C180.577,208.168,165.391,192.982,146.725,192.982z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cpath%20d='M365.275,192.982c-18.666,0-33.852,15.186-33.852,33.852c0,18.666,15.186,33.852,33.852,33.852%20s33.852-15.186,33.852-33.852C399.128,208.168,383.942,192.982,365.275,192.982z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cg%3e%3ccircle%20cx='155.969'%20cy='219.735'%20r='9.15'/%3e%3ccircle%20cx='374.338'%20cy='219.735'%20r='9.15'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Ivt="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20height='800px'%20width='800px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20299.92%20299.92'%20xml:space='preserve'%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20d='M293.4,65.2H6.52C2.914,65.2,0,68.114,0,71.72v117.36c0,3.606,2.914,6.52,6.52,6.52h6.52v32.6%20c0,3.606,2.914,6.52,6.52,6.52h260.8c3.606,0,6.52-2.914,6.52-6.52v-32.6h6.52c3.606,0,6.52-2.914,6.52-6.52V71.72%20C299.92,68.114,297.006,65.2,293.4,65.2z%20M273.84,221.68h-19.56H228.2h-26.08h-26.08h-26.08h-26.08H97.8H71.72H45.64H26.08V195.6%20h19.56h26.08H97.8h26.08h26.08h26.08h26.08h26.08h26.08h19.56V221.68z%20M286.88,182.56h-6.52H19.56h-6.52V78.24h273.84V182.56z'/%3e%3cpath%20d='M32.6,169.52h39.12c3.606,0,6.52-2.914,6.52-6.52V97.8c0-3.606-2.914-6.52-6.52-6.52H32.6c-3.606,0-6.52,2.914-6.52,6.52%20V163C26.08,166.606,28.994,169.52,32.6,169.52z%20M39.12,104.32H65.2v52.16H39.12V104.32z'/%3e%3cpath%20d='M97.8,169.52h39.12c3.606,0,6.52-2.914,6.52-6.52V97.8c0-3.606-2.914-6.52-6.52-6.52H97.8c-3.606,0-6.52,2.914-6.52,6.52%20V163C91.28,166.606,94.194,169.52,97.8,169.52z%20M104.32,104.32h26.08v52.16h-26.08V104.32z'/%3e%3cpath%20d='M163,169.52h39.12c3.606,0,6.52-2.914,6.52-6.52V97.8c0-3.606-2.914-6.52-6.52-6.52H163c-3.606,0-6.52,2.914-6.52,6.52%20V163C156.48,166.606,159.394,169.52,163,169.52z%20M169.52,104.32h26.08v52.16h-26.08V104.32z'/%3e%3cpath%20d='M228.2,169.52h39.12c3.606,0,6.52-2.914,6.52-6.52V97.8c0-3.606-2.914-6.52-6.52-6.52H228.2%20c-3.606,0-6.52,2.914-6.52,6.52V163C221.68,166.606,224.594,169.52,228.2,169.52z%20M234.72,104.32h26.08v52.16h-26.08V104.32z'/%3e%3cpath%20d='M52.16,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C49.246,221.68,52.16,218.766,52.16,215.16z'/%3e%3cpath%20d='M78.24,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C75.326,221.68,78.24,218.766,78.24,215.16z'/%3e%3cpath%20d='M104.32,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C101.406,221.68,104.32,218.766,104.32,215.16z'/%3e%3cpath%20d='M130.4,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C127.486,221.68,130.4,218.766,130.4,215.16z'/%3e%3cpath%20d='M156.48,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52s-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20S156.48,218.766,156.48,215.16z'/%3e%3cpath%20d='M182.56,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C179.646,221.68,182.56,218.766,182.56,215.16z'/%3e%3cpath%20d='M208.64,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C205.726,221.68,208.64,218.766,208.64,215.16z'/%3e%3cpath%20d='M234.72,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C231.806,221.68,234.72,218.766,234.72,215.16z'/%3e%3cpath%20d='M260.8,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C257.886,221.68,260.8,218.766,260.8,215.16z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Ovt="data:image/svg+xml,%3csvg%20width='100'%20height='100'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='50'%20cy='50'%20r='40'%20stroke='green'%20stroke-width='4'%20fill='green'%20/%3e%3cpath%20stroke='white'%20stroke-width='4'%20d='M40%2050%20l10%2010%2020%20-20'%20fill='none'%20/%3e%3c/svg%3e",Dvt="data:image/svg+xml,%3csvg%20width='100'%20height='100'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='50'%20cy='50'%20r='40'%20stroke='red'%20stroke-width='4'%20fill='red'%20/%3e%3cline%20x1='35'%20y1='35'%20x2='65'%20y2='65'%20stroke='white'%20stroke-width='4'%20/%3e%3cline%20x1='65'%20y1='35'%20x2='35'%20y2='65'%20stroke='white'%20stroke-width='4'%20/%3e%3c/svg%3e",Lvt="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20fill='%23000000'%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='800px'%20height='800px'%20viewBox='0%200%20461.759%20461.759'%20xml:space='preserve'%3e%3cg%3e%3cpath%20d='M0,301.058h147.916v147.919H0V301.058z%20M194.432,448.977H342.35V301.058H194.432V448.977z%20M2.802,257.347h147.916V109.434%20H2.802V257.347z%20M325.476,92.219l-51.603-79.437l-79.441,51.601l51.604,79.437L325.476,92.219z%20M219.337,213.733l71.045,62.663%20l62.66-71.039l-71.044-62.669L219.337,213.733z%20M412.107,57.967l-80.668,49.656l49.652,80.666l80.668-49.65L412.107,57.967z'/%3e%3c/g%3e%3c/svg%3e",Pvt="/assets/robot-CQPaMbxU.svg",Fvt="/";de.defaults.baseURL="/";const Uvt={name:"MountedPersonalities",props:{onShowPersList:Function,onReady:Function},components:{Toast:ay,UniversalForm:Nk},data(){return{bUrl:Fvt,isMounted:!1,show:!1}},async mounted(){await this.constructor(),this.isMounted=!0},async activated(){this.isMounted&&await this.constructor()},computed:{configFile:{get(){return this.$store.state.config},set(n){this.$store.commit("setConfig",n)}},mountedPers:{get(){return console.log("asked for:",this.$store.state.mountedPers),this.$store.state.mountedPers},set(n){this.$store.commit("setMountedPers",n)}},personalities:{get(){return this.$store.state.personalities},set(n){this.$store.commit("setPersonalities",n)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(n){this.$store.commit("setMountedPers",n)}}},methods:{async handleOnTalk(){const n=this.mountedPers;console.log("pers:",n),this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating);let e=await de.get("/get_generation_status",{});if(e)if(e.data.status)console.log("Already generating");else{const t=this.$store.state.config.personalities.findIndex(i=>i===n.full_path),r={client_id:this.$store.state.client_id,id:t};e=await de.post("/select_personality",r),console.log("Generating message from ",e.data.status),rt.emit("generate_msg_from",{id:-1})}},async remount_personality(){const n=this.mountedPers;if(console.log("Remounting personality ",n),!n)return{status:!1,error:"no personality - mount_personality"};try{console.log("before");const e={client_id:this.$store.state.client_id,category:n.category,folder:n.folder,language:n.language};console.log("after");const t=await de.post("/remount_personality",e);if(console.log("Remounting personality executed:",t),t)return console.log("Remounting personality res"),this.$store.state.toast.showToast("Personality remounted",4,!0),t.data;console.log("failed remount_personality")}catch(e){console.log(e.message,"remount_personality - settings");return}},onSettingsPersonality(n){try{de.get("/get_active_personality_settings").then(e=>{e&&(console.log("pers sett",e),e.data&&Object.keys(e.data).length>0?this.$refs.universalForm.showForm(e.data,"Personality settings - "+n.name,"Save changes","Cancel").then(t=>{try{de.post("/set_active_personality_settings",t).then(r=>{r&&r.data?(console.log("personality set with new settings",r.data),this.$refs.toast.showToast("Personality settings updated successfully!",4,!0)):this.$refs.toast.showToast(`Did not get Personality settings responses. `+r,4,!1)})}catch(r){this.$refs.toast.showToast(`Did not get Personality settings responses. Endpoint error: `+r.message,4,!1)}}):this.$refs.toast.showToast("Personality has no settings",4,!1))})}catch(e){this.$refs.toast.showToast("Could not open personality settings. Endpoint error: "+e.message,4,!1)}},async constructor(){for(We(()=>{Ze.replace()});this.$store.state.ready===!1;)await new Promise(n=>setTimeout(n,100));this.onReady()},async api_get_req(n){try{const e=await de.get("/"+n);if(e)return e.data}catch(e){console.log(e.message,"api_get_req - mountedPersonalities");return}},personalityImgPlacehodler(n){n.target.src=Ny}}},Bvt={class:"relative group/item"},Gvt=["src","alt"],zvt={class:"absolute bottom-6 left-0 w-full flex items-center justify-center opacity-0 group-hover/item:opacity-100 transition-opacity duration-200 p-1"},Vvt={class:"p-1 bg-gray-500 rounded-full text-white hover:bg-gray-600 focus:outline-none ml-1",title:"Show more"},Hvt={class:"text-xs font-bold"};function qvt(n,e,t,r,i,s){const o=ht("UniversalForm");return T(),M(je,null,[c("div",Bvt,[c("button",{onClick:e[1]||(e[1]=J((...a)=>s.onSettingsPersonality&&s.onSettingsPersonality(...a),["prevent"])),class:"w-6 h-6 rounded-full overflow-hidden transition-transform duration-200 transform group-hover/item:scale-110 focus:outline-none"},[c("img",{src:s.mountedPers.avatar,onError:e[0]||(e[0]=(...a)=>s.personalityImgPlacehodler&&s.personalityImgPlacehodler(...a)),alt:s.mountedPers.name,class:qe(["w-full h-full object-cover",{"border-2 border-secondary":n.isActive}])},null,42,Gvt)]),c("div",zvt,[c("button",{onClick:e[2]||(e[2]=J(a=>s.remount_personality(),["prevent"])),class:"p-1 bg-blue-500 rounded-full text-white hover:bg-blue-600 focus:outline-none",title:"Remount"},e[4]||(e[4]=[c("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1)])),c("button",{onClick:e[3]||(e[3]=J(a=>s.handleOnTalk(),["prevent"])),class:"p-1 bg-green-500 rounded-full text-white hover:bg-green-600 focus:outline-none ml-1",title:"Talk"},e[5]||(e[5]=[c("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z"})],-1)])),c("button",Vvt,[c("span",Hvt,"+"+X(s.mountedPersArr.length-1),1)])])]),W(o,{ref:"universalForm",class:"z-50"},null,512)],64)}const GI=bt(Uvt,[["render",qvt]]),Yvt={key:0,class:"fixed top-0 left-0 w-screen h-screen flex items-center justify-center overflow-hidden"},$vt={class:"absolute inset-0 pointer-events-none overflow-hidden"},Wvt={class:"flex flex-col items-center text-center max-w-4xl w-full px-4 relative z-10"},Kvt={class:"mb-8 w-full"},jvt={class:"bottom-0 text-2xl text-gray-600 dark:text-gray-300 italic"},Qvt={class:"text-lg text-gray-700 dark:text-gray-300"},Xvt=["innerHTML"],Zvt={class:"animated-progressbar-bg"},Jvt={class:"w-full max-w-2xl"},eyt={role:"status",class:"w-full"},tyt={class:"text-xl text-gray-700 dark:text-gray-300"},nyt={class:"text-2xl font-bold text-blue-600 dark:text-blue-400 mt-2"},ryt={key:0,class:"relative flex flex-col no-scrollbar shadow-lg min-w-[15rem] max-w-[15rem]"},iyt={class:"logo-container"},syt=["src"],oyt={class:"toolbar discussion"},ayt={class:"toolbar-container"},lyt={class:"p-4 flex flex-wrap gap-2 items-center"},cyt={class:"relative"},dyt={class:"relative"},uyt={key:4,title:"Loading..",class:"flex justify-center"},pyt={key:5,class:"flex justify-center space-x-4"},hyt={key:6,class:"flex flex-col space-y-2"},myt={class:"relative inline-block"},fyt={class:"p-2 border-b border-gray-200 dark:border-gray-700"},gyt={class:"p-4 grid grid-cols-3 gap-4 max-h-80 overflow-y-auto custom-scrollbar"},_yt={class:"flex flex-col items-center hover:bg-blue-100 dark:hover:bg-blue-900 p-2 rounded-md w-full cursor-pointer"},byt=["onClick","title"],vyt=["src","alt"],yyt=["title"],Eyt={class:"absolute top-0 left-0 w-full h-full opacity-0 group-hover/item:opacity-100 transition-opacity duration-200 bg-white dark:bg-gray-900 rounded-md shadow-md p-2 flex flex-col items-center justify-center"},Syt=["onClick"],xyt={class:"flex space-x-1"},Tyt=["onClick"],wyt=["src","title"],Cyt={class:"relative inline-block"},Ayt={class:"p-2 border-b border-gray-200 dark:border-gray-700"},Ryt={class:"p-4 grid grid-cols-3 gap-4 max-h-80 overflow-y-auto custom-scrollbar"},Myt={class:"flex flex-col items-center hover:bg-blue-100 dark:hover:bg-blue-900 p-2 rounded-md w-full cursor-pointer"},Nyt=["onClick","title"],kyt=["src","alt"],Iyt=["title"],Oyt={class:"absolute top-0 left-0 w-full h-full opacity-0 group-hover/item:opacity-100 transition-opacity duration-200 bg-white dark:bg-gray-900 rounded-md shadow-md p-2 flex flex-col items-center justify-center"},Dyt=["onClick"],Lyt={class:"flex space-x-1"},Pyt=["onClick"],Fyt=["src","title"],Uyt={class:"relative inline-block"},Byt={class:"p-2 border-b border-gray-200 dark:border-gray-700"},Gyt={class:"p-4 grid grid-cols-3 gap-4 max-h-80 overflow-y-auto custom-scrollbar"},zyt={class:"flex flex-col items-center hover:bg-blue-100 dark:hover:bg-blue-900 p-2 rounded-md w-full cursor-pointer"},Vyt=["onClick","title"],Hyt=["src","alt"],qyt=["title"],Yyt={class:"absolute top-0 left-0 w-full h-full opacity-0 group-hover/item:opacity-100 transition-opacity duration-200 bg-white dark:bg-gray-900 rounded-md shadow-md p-2 flex flex-col items-center justify-center"},$yt=["onClick"],Wyt={class:"flex space-x-1"},Kyt=["onClick"],jyt=["onClick"],Qyt=["onClick"],Xyt={class:"w-auto max-w-md mx-auto p-2"},Zyt={class:"flex items-center"},Jyt={class:"relative flex-grow"},eEt={key:0,class:"w-full p-4 bg-bg-light dark:bg-bg-dark"},tEt={class:"flex flex-col space-y-2"},nEt={key:0},rEt={key:1,class:"flex space-x-2"},iEt={key:1,class:"flex space-x-2"},sEt={class:"flex space-x-2"},oEt={class:"relative flex flex-row flex-grow mb-10 z-0 w-full"},aEt={key:1,class:"gap-2 py-2 my-2 hover:shadow-md hover:bg-primary-light dark:hover:bg-primary rounded-md p-2 duration-75 group cursor-pointer"},lEt={class:"flex flex-row panels-color"},cEt={class:"text-center font-large font-bold text-l drop-shadow-md align-middle"},dEt={key:0,class:"relative flex flex-col flex-grow"},uEt={class:"container pt-4 pb-50 mb-50 w-full"},pEt={key:0,class:"w-full rounded-lg m-2 shadow-lg hover:border-primary dark:hover:border-primary hover:border-solid hover:border-2 border-2 border-transparent even:bg-bg-light-discussion-odd dark:even:bg-bg-dark-discussion-odd flex flex-col overflow-hidden p-4 pb-2"},hEt={class:"overflow-x-auto flex-grow scrollbar-thin scrollbar-thumb-gray-400 dark:scrollbar-thumb-gray-600 scrollbar-track-gray-200 dark:scrollbar-track-gray-800 scrollbar-thumb-rounded-full scrollbar-track-rounded-full"},mEt={class:"flex flex-nowrap gap-6 p-4 min-w-full"},fEt=["title","onClick"],gEt={class:"space-y-3"},_Et=["title"],bEt=["title"],vEt={key:0,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"},yEt={class:"bg-white dark:bg-gray-800 p-6 rounded-lg shadow-xl max-w-4xl w-full max-h-[90vh] flex flex-col"},EEt={class:"flex-1 flex flex-col min-h-0"},SEt={class:"mb-4 p-4 bg-gray-100 dark:bg-gray-700 rounded-lg"},xEt={class:"flex-1 h-[200px] overflow-y-auto scrollbar scrollbar-thumb-gray-400 dark:scrollbar-thumb-gray-500 scrollbar-track-gray-200 dark:scrollbar-track-gray-700 scrollbar-thin rounded-md"},TEt={class:"text-base whitespace-pre-wrap"},wEt={class:"flex-1 overflow-y-auto"},CEt={class:"space-y-4"},AEt=["for"],REt=["id","onUpdate:modelValue","placeholder"],MEt=["id","onUpdate:modelValue"],NEt=["id","onUpdate:modelValue"],kEt=["id","onUpdate:modelValue"],IEt={key:4,class:"border rounded-md overflow-hidden"},OEt={class:"bg-gray-200 dark:bg-gray-900 p-2 text-sm"},DEt=["id","onUpdate:modelValue"],LEt=["id","onUpdate:modelValue"],PEt=["value"],FEt={class:"mt-6 flex justify-end space-x-4"},UEt={key:0,class:"flex flex-row items-center justify-center h-10"},BEt={key:0,class:"relative flex flex-col no-scrollbar shadow-lg w-1/2 bg-bg-light-tone dark:bg-bg-dark-tone h-full"},GEt={ref:"isolatedContent",class:"h-full"},zEt={role:"status",class:"fixed m-0 p-2 left-2 bottom-2 min-w-[24rem] max-w-[24rem] h-20 flex flex-col justify-center items-center pb-4 bg-blue-500 rounded-lg shadow-lg z-50 background-a"},VEt={class:"text-2xl animate-pulse mt-2 text-white"},HEt={id:"app"},qEt=n=>{const e=n.replace("[","").replace("]","").split("::"),t=e[0];if(e.length===1)return{label:t,type:"text",fullText:n};const r=e[1],i={label:t,type:r,fullText:n};switch(r){case"int":case"float":case"multiline":break;case"code":i.language=e[2]||"plaintext";break;case"options":i.options=e[2]?e[2].split(",").map(s=>s.trim()):[];break;default:i.type="text"}return i},YEt="/",$Et={setup(){},data(){return{interestingFacts:["Saïph, the new version of LoLLMs, is named after a star in Orion's constellation (Kappa Orionis), representing bright guidance in AI!","Did you know? The first computer programmer was a woman - Ada Lovelace!","Large Language Models (LLMs) have evolved from having millions of parameters to hundreds of billions in just a few years.","LoLLMs (Lord of Large Language Multimodal Systems) is an open-source AI assistant platform created by ParisNeo.","Saïph (κ Orionis) is a blue-white supergiant star approximately 650 light-years away from Earth.","Neural networks were first proposed in 1943 by Warren McCulloch and Walter Pitts.","Modern LLMs like GPT-4 can understand and generate multiple languages, code, and even analyze images.","LoLLMs supports multiple AI models and can perform tasks like code interpretation, image analysis, and internet searches.","The term 'transformer' in AI, which powers most modern LLMs, was introduced in the 'Attention is All You Need' paper in 2017.","LoLLMs can generate various types of diagrams, including SVG, Graphviz, and Mermaid diagrams.","The Python programming language was named after Monty Python.","LoLLMs features a built-in code interpreter that can execute multiple programming languages.","Quantum computers can perform calculations in minutes that would take classical computers thousands of years.","LoLLMs supports multimodal interactions, allowing users to work with both text and images.","The name Saïph in Arabic (سيف) means 'sword', symbolizing cutting-edge AI technology.",'
',"LoLLMs' version naming often contains clever easter eggs and references to AI advancements.","The 'Strawberry' version of LoLLMs was a playful nod to ChatGPT's internal codename for one of its versions.","The 'Saïph' version name was an intentional reference to Orion, anticipating OpenAI's rumored AGI-capable model codenamed 'Orion'.","LoLLMs' evolution can be traced through its version names: Warp, Starship, Robot, Brainwave, Strawberry, Feather and Saïph.","Each LoLLMs version name reflects either technological advancement or pays homage to significant developments in AI.","'Warp' and 'Starship' versions symbolized the quantum leap in AI capabilities and speed improvements.","'Robot' represented the system's growing autonomy and ability to perform complex tasks.","'Brainwave' highlighted the neural network aspects and cognitive capabilities of the system.","LoLLMs' version naming shows ParisNeo's keen awareness of industry trends and playful approach to development.","LoLLMs can generate and visualize mathematical equations using LaTeX, making it a powerful tool for scientific documentation.","The system's multimodel capabilities allow it to analyze medical images, architectural blueprints, and technical diagrams.","LoLLMs includes a unique feature called 'personality system' that allows it to adapt its communication style and expertise.","Did you know? LoLLMs can process and generate music notation using ABC notation or LilyPond formats.","LoLLMs supports over 40 different AI models, making it one of the most versatile open-source AI platforms.","The system can generate realistic 3D scenes descriptions that can be rendered using tools like Blender.","LoLLMs features a unique 'model fusion' capability, combining strengths of different AI models for better results.","The platform includes specialized modules for scientific computing, allowing it to solve complex mathematical problems.","LoLLMs can analyze and generate code in over 20 programming languages, including rare ones like COBOL and Fortran.","The system includes advanced prompt engineering tools, helping users get better results from AI models.","LoLLMs can generate and interpret QR codes, making it useful for creating interactive marketing materials.","The platform supports real-time voice interaction through its advanced speech-to-text and text-to-speech capabilities.","LoLLMs can analyze satellite imagery for environmental monitoring and urban planning applications.","The system includes specialized modules for protein folding prediction and molecular visualization.","LoLLMs features a built-in 'ethical AI' framework that ensures responsible and bias-aware AI interactions.","The platform can generate realistic synthetic data while preserving privacy and maintaining statistical properties.","LoLLMs includes advanced natural language processing capabilities in over 100 languages.","The system can perform sentiment analysis on social media trends and customer feedback in real-time.","LoLLMs features a unique 'time-aware' context system that understands and reasons about temporal relationships.","The platform includes specialized tools for quantum computing simulation and algorithm development."],randomFact:"",showPlaceholderModal:!1,selectedPrompt:"",placeholders:[],placeholderValues:{},previewPrompt:"",uniquePlaceholders:new Map,bindingSearchQuery:"",modelSearchQuery:"",personalitySearchQuery:"",isSearching:!1,isPersonalitiesMenuVisible:!1,isModelsMenuVisible:!1,isBindingsMenuVisible:!1,isMenuVisible:!1,isNavMenuVisible:!1,static_info:Rvt,animated_info:Mvt,normal_mode:kvt,fun_mode:Nvt,is_first_connection:!0,discord:Avt,FastAPI:Cvt,modelImgPlaceholder:wr,customLanguage:"",rebooting_audio:new Audio("rebooting.wav"),connection_lost_audio:new Audio("connection_lost.wav"),connection_recovered_audio:new Audio("connection_recovered.wav"),database_selectorDialogVisible:!1,progress_visibility:!1,progress_value:0,codeBlockStylesheet:"",lastMessageHtml:"",defaultMessageHtml:` @@ -581,19 +581,19 @@ ${e} ${l}`;navigator.clipboard.writeText(d)}else navigator.clipboard.writeText(e);this.$store.state.toast.showToast("Copied to clipboard successfully",4,!0),We(()=>{Ze.replace()})},closeToast(){this.showToast=!1},saveJSONtoFile(n,e){e=e||"data.json";const t=document.createElement("a");t.href=URL.createObjectURL(new Blob([JSON.stringify(n,null,2)],{type:"text/plain"})),t.setAttribute("download",e),document.body.appendChild(t),t.click(),document.body.removeChild(t)},saveMarkdowntoFile(n,e){e=e||"data.md";const t=document.createElement("a");t.href=URL.createObjectURL(new Blob([n],{type:"text/plain"})),t.setAttribute("download",e),document.body.appendChild(t),t.click(),document.body.removeChild(t)},parseJsonObj(n){try{return JSON.parse(n)}catch(e){return this.$store.state.toast.showToast(`Could not parse JSON. `+e.message,4,!1),null}},async parseJsonFile(n){return new Promise((e,t)=>{const r=new FileReader;r.onload=i=>e(this.parseJsonObj(i.target.result)),r.onerror=i=>t(i),r.readAsText(n)})},async exportDiscussionsAsMarkdown(){const n=this.list.filter(e=>e.checkBoxValue==!0).map(e=>e.id);if(n.length>0){console.log("export",n);let e=new Date;const t=e.getFullYear(),r=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0"),s=e.getHours().toString().padStart(2,"0"),o=e.getMinutes().toString().padStart(2,"0"),a=e.getSeconds().toString().padStart(2,"0"),d="discussions_export_"+(t+"."+r+"."+i+"."+s+o+a)+".md";this.loading=!0;const u=await this.export_multiple_discussions(n,"markdown");u?(this.saveMarkdowntoFile(u,d),this.$store.state.toast.showToast("Successfully exported",4,!0),this.isCheckbox=!1):this.$store.state.toast.showToast("Failed to export discussions",4,!1),this.loading=!1}},async exportDiscussions(){},async exportDiscussionsAsJson(){const n=this.list.filter(e=>e.checkBoxValue==!0).map(e=>e.id);if(n.length>0){console.log("export",n);let e=new Date;const t=e.getFullYear(),r=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0"),s=e.getHours().toString().padStart(2,"0"),o=e.getMinutes().toString().padStart(2,"0"),a=e.getSeconds().toString().padStart(2,"0"),d="discussions_export_"+(t+"."+r+"."+i+"."+s+o+a)+".json";this.loading=!0;const u=await this.export_multiple_discussions(n,"json");u?(this.saveJSONtoFile(u,d),this.$store.state.toast.showToast("Successfully exported",4,!0),this.isCheckbox=!1):this.$store.state.toast.showToast("Failed to export discussions",4,!1),this.loading=!1}},async importDiscussionsBundle(n){},async importDiscussions(n){const e=await this.parseJsonFile(n.target.files[0]);await this.import_multiple_discussions(e)?(this.$store.state.toast.showToast("Successfully imported ("+e.length+")",4,!0),await this.list_discussions()):this.$store.state.toast.showToast("Failed to import discussions",4,!1)},async getPersonalityAvatars(){for(;this.$store.state.personalities===null;)await new Promise(e=>setTimeout(e,100));let n=this.$store.state.personalities;this.personalityAvatars=n.map(e=>({name:e.name,avatar:e.avatar}))},getAvatar(n){if(n.toLowerCase().trim()==this.$store.state.config.user_name.toLowerCase().trim())return"user_infos/"+this.$store.state.config.user_avatar;const e=this.personalityAvatars.findIndex(r=>r.name===n),t=this.personalityAvatars[e];if(t)return console.log("Avatar",t.avatar),t.avatar},setFileListChat(n){try{this.$refs.chatBox.fileList=this.$refs.chatBox.fileList.concat(n)}catch(e){this.$store.state.toast.showToast(`Failed to set filelist in chatbox -`+e.message,4,!1)}this.isDragOverChat=!1},async setFileListDiscussion(n){if(n.length>1){this.$store.state.toast.showToast("Failed to import discussions. Too many files",4,!1);return}const e=await this.parseJsonFile(n[0]);await this.import_multiple_discussions(e)?(this.$store.state.toast.showToast("Successfully imported ("+e.length+")",4,!0),await this.list_discussions()):this.$store.state.toast.showToast("Failed to import discussions",4,!1),this.isDragOverDiscussion=!1}},async created(){this.randomFact=this.interestingFacts[Math.floor(Math.random()*this.interestingFacts.length)],console.log("Created discussions view");const e=(await de.get("/get_versionID")).data.versionId;rt.onopen=()=>{console.log("WebSocket connection established."),this.currentDiscussion!=null&&(this.setPageTitle(item),localStorage.setItem("selected_discussion",this.currentDiscussion.id),console.log(`Saved discussion to : ${this.currentDiscussion.id}`),this.load_discussion(item.id,()=>{this.discussionArr.length>1&&(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,this.discussionArr[1].content)}))},this.versionId!==e&&(this.$store.commit("updateVersionId",e),window.location.reload(!0)),this.$nextTick(()=>{Ze.replace()}),console.log("Connected to socket io");try{this.$store.state.loading_infos="Getting version",this.$store.state.loading_progress=30,await this.$store.dispatch("getVersion")}catch(t){console.log("Error cought:",t)}try{for(this.$store.state.loading_infos="Loading Configuration";rt.id===void 0;)await new Promise(t=>setTimeout(t,100));this.$store.state.client_id=rt.id,console.log(this.$store.state.client_id),await this.$store.dispatch("refreshConfig"),console.log("Config ready")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Loading Database",this.$store.state.loading_progress=20,await this.$store.dispatch("refreshDatabase")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting Bindings list",this.$store.state.loading_progress=40,await this.$store.dispatch("refreshBindings")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting personalities zoo",this.$store.state.loading_progress=70,await this.$store.dispatch("refreshPersonalitiesZoo")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting mounted personalities",this.$store.state.loading_progress=80,await this.$store.dispatch("refreshMountedPersonalities")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting models zoo",this.$store.state.loading_progress=90,await this.$store.dispatch("refreshModelsZoo")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting active models",this.$store.state.loading_progress=100,await this.$store.dispatch("refreshModels"),await this.$store.dispatch("refreshModelStatus")}catch(t){console.log("Error cought:",t)}try{await this.$store.dispatch("fetchLanguages"),await this.$store.dispatch("fetchLanguage")}catch(t){console.log("Error cought:",t)}try{await this.$store.dispatch("fetchisRTOn")}catch(t){console.log("Error cought:",t)}this.$store.state.isConnected=!0,this.$store.state.client_id=rt.id,console.log("Ready"),this.setPageTitle(),await this.list_discussions(),this.loadLastUsedDiscussion(),this.isCreated=!0,this.$store.state.ready=!0,rt.on("connected",this.socketIOConnected),rt.on("disconnected",this.socketIODisconnected),console.log("Added events"),rt.on("show_progress",this.show_progress),rt.on("hide_progress",this.hide_progress),rt.on("update_progress",this.update_progress),rt.on("notification",this.notify),rt.on("new_message",this.new_message),rt.on("update_message",this.update_message),rt.on("close_message",this.finalMsgEvent),rt.on("disucssion_renamed",t=>{console.log("Received new title",t.discussion_id,t.title);const r=this.list.findIndex(s=>s.id==t.discussion_id),i=this.list[r];i.title=t.title}),rt.onclose=t=>{console.log("WebSocket connection closed:",t.code,t.reason),this.socketIODisconnected()},rt.on("connect_error",t=>{t.message==="ERR_CONNECTION_REFUSED"?console.error("Connection refused. The server is not available."):console.error("Connection error:",t),this.$store.state.isConnected=!1}),rt.onerror=t=>{console.log("WebSocket connection error:",t.code,t.reason),this.socketIODisconnected(),rt.disconnect()}},beforeUnmount(){window.removeEventListener("resize",this.adjustMenuPosition)},async mounted(){window.addEventListener("keydown",this.handleShortcut),this.$store.state.news=this.$refs.news,this.$store.state.personality_editor=this.$refs.personality_editor,window.addEventListener("resize",this.adjustMenuPosition),rt.on("refresh_files",()=>{this.recoverFiles()})},async activated(){for(;this.isReady===!1;)await new Promise(n=>setTimeout(n,100));await this.getPersonalityAvatars(),console.log("Avatars found:",this.personalityAvatars),this.isCreated&&We(()=>{const n=document.getElementById("messages-list");this.scrollBottom(n)}),this.$store.state.config.show_news_panel&&this.$store.state.news.show()},components:{Discussion:Iy,Message:TI,ChatBox:wI,WelcomeComponent:CI,ChoiceDialog:ky,ProgressBar:oy,InputBox:I0t,SkillsLibraryViewer:G0t,PersonalityEditor:UI,PopupViewer:BI,ActionButton:K3,SocialIcon:j3,MountedPersonalities:GI},watch:{installedModels:{immediate:!0,handler(n){this.$nextTick(()=>{this.installedModels=n})}},"$store.state.config.fun_mode":function(n,e){console.log(`Fun mode changed from ${e} to ${n}! 🎉`)},"$store.state.isConnected":function(n,e){this.isConnected?(console.log("this.is_first_connection"),console.log(this.is_first_connection),this.is_first_connection||(this.$store.state.messageBox.hideMessage(),this.$store.state.messageBox.showMessage("Server connected."),this.$store.state.config.activate_audio_infos&&this.connection_recovered_audio.play())):(this.$store.state.messageBox.showBlockingMessage("Server suddenly disconnected. Please reboot the server to recover the connection"),this.is_first_connection=!1,console.log("this.is_first_connection set to false"),console.log(this.is_first_connection),this.$store.state.config.activate_audio_infos&&this.connection_lost_audio.play()),We(()=>{Ze.replace()})},messages:{handler:"extractHtml",deep:!0},progress_visibility_val(n){console.log("progress_visibility changed to "+n)},filterTitle(n){n==""&&(this.filterInProgress=!0,this.list=this.tempList,this.filterInProgress=!1)},isCheckbox(n){We(()=>{Ze.replace()}),n||(this.isSelectAll=!1)},socketConnected(n){console.log("Websocket connected (watch)",n)},showConfirmation(){We(()=>{Ze.replace()})}},computed:{parsedPlaceholders(){const n=new Map;return this.placeholders.forEach(e=>{const t=qEt(e);n.set(t.fullText,t)}),Array.from(n.values())},filteredBindings(){return this.installedBindings.filter(n=>n.name.toLowerCase().includes(this.bindingSearchQuery.toLowerCase()))},filteredModels(){return this.installedModels.filter(n=>n.name.toLowerCase().includes(this.modelSearchQuery.toLowerCase()))},filteredPersonalities(){return this.mountedPersonalities.filter(n=>n.name.toLowerCase().includes(this.personalitySearchQuery.toLowerCase()))},currentModel(){return this.$store.state.currentModel||{}},currentModelIcon(){return this.currentModel.icon||this.modelImgPlaceholder},binding_name(){return this.$store.state.config.binding_name},installedModels(){return this.$store.state.installedModels},model_name(){return this.$store.state.config.model_name},mountedPersonalities(){return this.$store.state.mountedPersArr},personality_name(){return this.$store.state.config.active_personality_id},config(){return this.$store.state.config},mountedPers(){return this.$store.state.mountedPers},installedBindings(){return this.$store.state.installedBindings},currentBindingIcon(){return this.currentBinding.icon||this.modelImgPlaceholder},currentBinding(){return this.$store.state.currentBinding||{}},isFullMode(){return this.$store.state.view_mode==="full"},storeLogo(){return this.$store.state.config?Ai:this.$store.state.config.app_custom_logo!=""?"/user_infos/"+this.$store.state.config.app_custom_logo:Ai},currentPersonConfig(){try{return this.$store.state.currentPersonConfig}catch{console.log("Error finding current personality configuration");return}},selectedPersonality(){try{return this.$store.state.selectedPersonality}catch{console.log("Error finding current personality configuration");return}},loading_infos(){return this.$store.state.loading_infos},is_fun_mode(){try{return this.$store.state.config?this.$store.state.config.fun_mode:!1}catch(n){return console.error("Oopsie! Looks like we hit a snag: ",n),!1}},isModelOK(){return this.$store.state.isModelOk},isGenerating(){return this.$store.state.isGenerating},isConnected(){return this.$store.state.isConnected},...E6({versionId:n=>n.versionId}),progress_visibility:{get(){return self.progress_visibility_val}},version_info:{get(){return this.$store.state.version!=null&&this.$store.state.version!="unknown"?this.$store.state.version:"..."}},loading_infos:{get(){return this.$store.state.loading_infos}},loading_progress:{get(){return this.$store.state.loading_progress}},isModelOk:{get(){return this.$store.state.isModelOk},set(n){this.$store.state.isModelOk=n}},isGenerating:{get(){return this.$store.state.isGenerating},set(n){this.$store.state.isGenerating=n}},personality(){const n=this.$store.state.config.personalities[this.$store.state.config.active_personality_id].split(":")[0];return this.$store.state.personalities.find(t=>t.full_path===n)},prompts_list(){return this.personality.prompts_list},formatted_database_name(){return this.$store.state.config.discussion_db_name},UseDiscussionHistory(){return this.$store.state.config.activate_skills_lib},isReady(){return this.$store.state.ready},databases(){return this.$store.state.databases},client_id(){return rt.id},showLeftPanel(){return console.log("showLeftPanel"),console.log(this.$store.state.leftPanelCollapsed),this.$store.state.ready&&!this.$store.state.leftPanelCollapsed},showRightPanel(){return console.log("showRightPanel"),console.log(this.$store.state.rightPanelCollapsed),this.$store.state.ready&&!this.$store.state.rightPanelCollapsed},socketConnected(){return console.log(" --- > Websocket connected"),this.$store.commit("setIsConnected",!0),!0},socketDisconnected(){return this.$store.commit("setIsConnected",!1),console.log(" --- > Websocket disconnected"),!0},selectedDiscussions(){return We(()=>{Ze.replace()}),this.list.filter(n=>n.checkBoxValue==!0)}}},WEt=Object.assign($Et,{__name:"DiscussionsView",setup(n){return Ji(()=>{FI()}),de.defaults.baseURL="/",(e,t)=>(T(),M(je,null,[W(Cs,{name:"fade-and-fly"},{default:Ge(()=>[e.isReady?Y("",!0):(T(),M("div",Yvt,[c("div",$vt,[(T(),M(je,null,at(50,r=>c("div",{key:r,class:"absolute animate-fall animate-giggle",style:on({left:`${Math.random()*100}%`,top:"-20px",animationDuration:`${3+Math.random()*7}s`,animationDelay:`${Math.random()*5}s`})}," 🌟 ",4)),64))]),c("div",Wvt,[c("div",Kvt,[t[59]||(t[59]=c("div",{class:"text-5xl md:text-6xl font-bold text-amber-500 mb-2 hover:scale-105 transition-transform",style:{"text-shadow":`2px 2px 4px rgba(0,0,0,0.2), \r +`+e.message,4,!1)}this.isDragOverChat=!1},async setFileListDiscussion(n){if(n.length>1){this.$store.state.toast.showToast("Failed to import discussions. Too many files",4,!1);return}const e=await this.parseJsonFile(n[0]);await this.import_multiple_discussions(e)?(this.$store.state.toast.showToast("Successfully imported ("+e.length+")",4,!0),await this.list_discussions()):this.$store.state.toast.showToast("Failed to import discussions",4,!1),this.isDragOverDiscussion=!1}},async created(){this.randomFact=this.interestingFacts[Math.floor(Math.random()*this.interestingFacts.length)],console.log("Created discussions view");const e=(await de.get("/get_versionID")).data.versionId;rt.onopen=()=>{console.log("WebSocket connection established."),this.currentDiscussion!=null&&(this.setPageTitle(item),localStorage.setItem("selected_discussion",this.currentDiscussion.id),console.log(`Saved discussion to : ${this.currentDiscussion.id}`),this.load_discussion(item.id,()=>{this.discussionArr.length>1&&(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,this.discussionArr[1].content)}))},this.versionId!==e&&(this.$store.commit("updateVersionId",e),window.location.reload(!0)),this.$nextTick(()=>{Ze.replace()}),console.log("Connected to socket io");try{this.$store.state.loading_infos="Getting version",this.$store.state.loading_progress=30,await this.$store.dispatch("getVersion")}catch(t){console.log("Error cought:",t)}try{for(this.$store.state.loading_infos="Loading Configuration";rt.id===void 0;)await new Promise(t=>setTimeout(t,100));this.$store.state.client_id=rt.id,console.log(this.$store.state.client_id),await this.$store.dispatch("refreshConfig"),console.log("Config ready")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Loading Database",this.$store.state.loading_progress=20,await this.$store.dispatch("refreshDatabase")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting Bindings list",this.$store.state.loading_progress=40,await this.$store.dispatch("refreshBindings")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting personalities zoo",this.$store.state.loading_progress=70,await this.$store.dispatch("refreshPersonalitiesZoo")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting mounted personalities",this.$store.state.loading_progress=80,await this.$store.dispatch("refreshMountedPersonalities")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting models zoo",this.$store.state.loading_progress=90,await this.$store.dispatch("refreshModelsZoo")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting active models",this.$store.state.loading_progress=100,await this.$store.dispatch("refreshModels"),await this.$store.dispatch("refreshModelStatus")}catch(t){console.log("Error cought:",t)}try{await this.$store.dispatch("fetchLanguages"),await this.$store.dispatch("fetchLanguage")}catch(t){console.log("Error cought:",t)}try{await this.$store.dispatch("fetchisRTOn")}catch(t){console.log("Error cought:",t)}this.$store.state.isConnected=!0,this.$store.state.client_id=rt.id,console.log("Ready"),this.setPageTitle(),await this.list_discussions(),this.loadLastUsedDiscussion(),this.isCreated=!0,this.$store.state.ready=!0,rt.on("connected",this.socketIOConnected),rt.on("disconnected",this.socketIODisconnected),console.log("Added events"),rt.on("show_progress",this.show_progress),rt.on("hide_progress",this.hide_progress),rt.on("update_progress",this.update_progress),rt.on("notification",this.notify),rt.on("new_message",this.new_message),rt.on("update_message",this.update_message),rt.on("close_message",this.finalMsgEvent),rt.on("disucssion_renamed",t=>{console.log("Received new title",t.discussion_id,t.title);const r=this.list.findIndex(s=>s.id==t.discussion_id),i=this.list[r];i.title=t.title}),rt.onclose=t=>{console.log("WebSocket connection closed:",t.code,t.reason),this.socketIODisconnected()},rt.on("connect_error",t=>{t.message==="ERR_CONNECTION_REFUSED"?console.error("Connection refused. The server is not available."):console.error("Connection error:",t),this.$store.state.isConnected=!1}),rt.onerror=t=>{console.log("WebSocket connection error:",t.code,t.reason),this.socketIODisconnected(),rt.disconnect()}},beforeUnmount(){window.removeEventListener("resize",this.adjustMenuPosition)},async mounted(){window.addEventListener("keydown",this.handleShortcut),this.$store.state.news=this.$refs.news,this.$store.state.personality_editor=this.$refs.personality_editor,window.addEventListener("resize",this.adjustMenuPosition),rt.on("refresh_files",()=>{this.recoverFiles()})},async activated(){for(;this.isReady===!1;)await new Promise(n=>setTimeout(n,100));await this.getPersonalityAvatars(),console.log("Avatars found:",this.personalityAvatars),this.isCreated&&We(()=>{const n=document.getElementById("messages-list");this.scrollBottom(n)}),this.$store.state.config.show_news_panel&&this.$store.state.news.show()},components:{Discussion:Iy,Message:TI,ChatBox:wI,WelcomeComponent:CI,ChoiceDialog:ky,ProgressBar:oy,InputBox:I0t,SkillsLibraryViewer:G0t,PersonalityEditor:UI,PopupViewer:BI,ActionButton:K3,SocialIcon:j3,MountedPersonalities:GI},watch:{installedModels:{immediate:!0,handler(n){this.$nextTick(()=>{this.installedModels=n})}},"$store.state.config.fun_mode":function(n,e){console.log(`Fun mode changed from ${e} to ${n}! 🎉`)},"$store.state.isConnected":function(n,e){this.isConnected?(console.log("this.is_first_connection"),console.log(this.is_first_connection),this.is_first_connection||(this.$store.state.messageBox.hideMessage(),this.$store.state.messageBox.showMessage("Server connected."),this.$store.state.config.activate_audio_infos&&this.connection_recovered_audio.play())):(this.$store.state.messageBox.showBlockingMessage("Server suddenly disconnected. Please reboot the server to recover the connection"),this.is_first_connection=!1,console.log("this.is_first_connection set to false"),console.log(this.is_first_connection),this.$store.state.config.activate_audio_infos&&this.connection_lost_audio.play()),We(()=>{Ze.replace()})},messages:{handler:"extractHtml",deep:!0},progress_visibility_val(n){console.log("progress_visibility changed to "+n)},filterTitle(n){n==""&&(this.filterInProgress=!0,this.list=this.tempList,this.filterInProgress=!1)},isCheckbox(n){We(()=>{Ze.replace()}),n||(this.isSelectAll=!1)},socketConnected(n){console.log("Websocket connected (watch)",n)},showConfirmation(){We(()=>{Ze.replace()})}},computed:{parsedPlaceholders(){const n=new Map;return this.placeholders.forEach(e=>{const t=qEt(e);n.set(t.fullText,t)}),Array.from(n.values())},filteredBindings(){return this.installedBindings.filter(n=>n.name.toLowerCase().includes(this.bindingSearchQuery.toLowerCase()))},filteredModels(){return this.installedModels.filter(n=>n.name.toLowerCase().includes(this.modelSearchQuery.toLowerCase()))},filteredPersonalities(){return this.mountedPersonalities.filter(n=>n.name.toLowerCase().includes(this.personalitySearchQuery.toLowerCase()))},currentModel(){return this.$store.state.currentModel||{}},currentModelIcon(){return this.currentModel.icon||this.modelImgPlaceholder},binding_name(){return this.$store.state.config.binding_name},installedModels(){return this.$store.state.installedModels},model_name(){return this.$store.state.config.model_name},mountedPersonalities(){return this.$store.state.mountedPersArr},personality_name(){return this.$store.state.config.active_personality_id},config(){return this.$store.state.config},mountedPers(){return this.$store.state.mountedPers},installedBindings(){return this.$store.state.installedBindings},currentBindingIcon(){return this.currentBinding.icon||this.modelImgPlaceholder},currentBinding(){return this.$store.state.currentBinding||{}},isFullMode(){return this.$store.state.view_mode==="full"},storeLogo(){return this.$store.state.config?Ai:this.$store.state.config.app_custom_logo!=""?"/user_infos/"+this.$store.state.config.app_custom_logo:Ai},currentPersonConfig(){try{return this.$store.state.currentPersonConfig}catch{console.log("Error finding current personality configuration");return}},selectedPersonality(){try{return this.$store.state.selectedPersonality}catch{console.log("Error finding current personality configuration");return}},loading_infos(){return this.$store.state.loading_infos},is_fun_mode(){try{return this.$store.state.config?this.$store.state.config.fun_mode:!1}catch(n){return console.error("Oopsie! Looks like we hit a snag: ",n),!1}},isModelOK(){return this.$store.state.isModelOk},isGenerating(){return this.$store.state.isGenerating},isConnected(){return this.$store.state.isConnected},...E6({versionId:n=>n.versionId}),progress_visibility:{get(){return self.progress_visibility_val}},version_info:{get(){return this.$store.state.version!=null&&this.$store.state.version!="unknown"?this.$store.state.version:"..."}},loading_infos:{get(){return this.$store.state.loading_infos}},loading_progress:{get(){return this.$store.state.loading_progress}},isModelOk:{get(){return this.$store.state.isModelOk},set(n){this.$store.state.isModelOk=n}},isGenerating:{get(){return this.$store.state.isGenerating},set(n){this.$store.state.isGenerating=n}},personality(){const n=this.$store.state.config.personalities[this.$store.state.config.active_personality_id].split(":")[0];return this.$store.state.personalities.find(t=>t.full_path===n)},prompts_list(){return this.personality.prompts_list},formatted_database_name(){return this.$store.state.config.discussion_db_name},UseDiscussionHistory(){return this.$store.state.config.activate_skills_lib},isReady(){return this.$store.state.ready},databases(){return this.$store.state.databases},client_id(){return rt.id},showLeftPanel(){return console.log("showLeftPanel"),console.log(this.$store.state.leftPanelCollapsed),this.$store.state.ready&&!this.$store.state.leftPanelCollapsed},showRightPanel(){return console.log("showRightPanel"),console.log(this.$store.state.rightPanelCollapsed),this.$store.state.ready&&!this.$store.state.rightPanelCollapsed},socketConnected(){return console.log(" --- > Websocket connected"),this.$store.commit("setIsConnected",!0),!0},socketDisconnected(){return this.$store.commit("setIsConnected",!1),console.log(" --- > Websocket disconnected"),!0},selectedDiscussions(){return We(()=>{Ze.replace()}),this.list.filter(n=>n.checkBoxValue==!0)}}},WEt=Object.assign($Et,{__name:"DiscussionsView",setup(n){return es(()=>{FI()}),de.defaults.baseURL="/",(e,t)=>(T(),M(je,null,[W(ji,{name:"fade-and-fly"},{default:Ge(()=>[e.isReady?Y("",!0):(T(),M("div",Yvt,[c("div",$vt,[(T(),M(je,null,at(50,r=>c("div",{key:r,class:"absolute animate-fall animate-giggle",style:on({left:`${Math.random()*100}%`,top:"-20px",animationDuration:`${3+Math.random()*7}s`,animationDelay:`${Math.random()*5}s`})}," 🌟 ",4)),64))]),c("div",Wvt,[c("div",Kvt,[t[59]||(t[59]=c("div",{class:"text-5xl md:text-6xl font-bold text-amber-500 mb-2 hover:scale-105 transition-transform",style:{"text-shadow":`2px 2px 4px rgba(0,0,0,0.2), \r 2px 2px 0px white, \r -2px -2px 0px white, \r 2px -2px 0px white, \r - -2px 2px 0px white`,background:"linear-gradient(45deg, #f59e0b, #fbbf24)","-webkit-background-clip":"text","background-clip":"text"}},[pt(" L"),c("span",{class:"animate-pulse"},"⭐"),pt("LLMS ")],-1)),t[60]||(t[60]=c("p",{class:"text-2xl text-gray-600 dark:text-gray-300 italic"}," One tool to rule them all ",-1)),t[61]||(t[61]=c("p",{class:"text-xl text-gray-500 dark:text-gray-400 mb-6"}," by ParisNeo ",-1)),c("p",jvt,X(e.version_info),1),c("div",{class:"interesting-facts transition-transform duration-300 cursor-pointer",onClick:t[0]||(t[0]=(...r)=>e.updateRandomFact&&e.updateRandomFact(...r))},[c("p",Qvt,[t[57]||(t[57]=c("span",{class:"font-semibold text-blue-600 dark:text-blue-400"},"🤔 Fun Fact: ",-1)),c("span",{innerHTML:e.randomFact},null,8,Xvt)])]),c("div",Zvt,[c("div",{class:"animated-progressbar-fg",style:on({width:`${e.loading_progress}%`})},null,4),c("div",{class:"absolute top-0 h-full flex items-center transition-all duration-300",style:on({left:`${e.loading_progress}%`,transform:"translateX(-50%)"})},t[58]||(t[58]=[c("p",{style:{"font-size":"48px","line-height":"1"}},"🌟",-1)]),4)])]),c("div",Jvt,[c("div",eyt,[c("p",tyt,X(e.loading_infos)+"... ",1),c("p",nyt,X(Math.round(e.loading_progress))+"% ",1)])])])]))]),_:1}),W(Cs,{name:"slide-right"},{default:Ge(()=>[e.showLeftPanel?(T(),M("div",ryt,[W(Pt(Ip),{to:{name:"discussions"},class:"flex items-center space-x-2"},{default:Ge(()=>[c("div",iyt,[c("img",{class:"w-12 h-12 rounded-full object-cover logo-image",src:e.$store.state.config==null?Pt(Ai):e.$store.state.config.app_custom_logo!=""?"/user_infos/"+e.$store.state.config.app_custom_logo:Pt(Ai),alt:"Logo",title:"LoLLMS WebUI"},null,8,syt)]),t[62]||(t[62]=c("div",{class:"flex flex-col justify-center"},[c("div",{class:"text-center p-2"},[c("div",{class:"text-md relative inline-block"},[c("span",{class:"relative inline-block font-bold tracking-wide text-black dark:text-white"}," LoLLMS "),c("div",{class:"absolute -bottom-0.5 left-0 w-full h-0.5 bg-black dark:bg-white transform origin-left transition-transform duration-300 hover:scale-x-100 scale-x-0"})])]),c("p",{class:"text-gray-400 text-sm"},"One tool to rule them all")],-1))]),_:1}),c("div",oyt,[c("div",ayt,[c("button",{class:"toolbar-button",title:"Create new discussion",onClick:t[1]||(t[1]=(...r)=>e.createNewDiscussion&&e.createNewDiscussion(...r))},t[63]||(t[63]=[c("i",{"data-feather":"plus"},null,-1)])),e.loading?Y("",!0):(T(),M("div",{key:0,class:"toolbar-button",onMouseleave:t[19]||(t[19]=(...r)=>e.hideMenu&&e.hideMenu(...r))},[F(c("div",{onMouseenter:t[17]||(t[17]=(...r)=>e.showMenu&&e.showMenu(...r)),class:"absolute m-0 p-0 z-50 top-full left-0 transform bg-white dark:bg-bg-dark rounded-lg shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[c("div",lyt,[c("button",{class:qe(["text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95",e.isCheckbox?"text-secondary dark:text-secondary-light":"text-gray-700 dark:text-gray-300"]),title:"Edit discussion list",type:"button",onClick:t[2]||(t[2]=r=>e.isCheckbox=!e.isCheckbox)},t[64]||(t[64]=[c("i",{"data-feather":"check-square"},null,-1)]),2),c("button",{class:"text-3xl hover:text-red-500 dark:hover:text-red-400 duration-150 active:scale-95",title:"Reset database, remove all discussions",onClick:t[3]||(t[3]=J(()=>{},["stop"]))},t[65]||(t[65]=[c("i",{"data-feather":"trash-2"},null,-1)])),c("button",{class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95",title:"Export database",type:"button",onClick:t[4]||(t[4]=J(r=>e.database_selectorDialogVisible=!0,["stop"]))},t[66]||(t[66]=[c("i",{"data-feather":"database"},null,-1)])),c("div",cyt,[c("input",{type:"file",ref:"fileDialog",class:"hidden",onChange:t[5]||(t[5]=(...r)=>e.importDiscussions&&e.importDiscussions(...r))},null,544),c("button",{class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95 rotate-90",title:"Import discussions",type:"button",onClick:t[6]||(t[6]=J(r=>e.$refs.fileDialog.click(),["stop"]))},t[67]||(t[67]=[c("i",{"data-feather":"log-in"},null,-1)]))]),c("div",dyt,[c("input",{type:"file",ref:"bundleLoadingDialog",class:"hidden",onChange:t[7]||(t[7]=(...r)=>e.importDiscussionsBundle&&e.importDiscussionsBundle(...r))},null,544),e.showSaveConfirmation?Y("",!0):(T(),M("button",{key:0,title:"Import discussion bundle",onClick:t[8]||(t[8]=J(r=>e.$refs.bundleLoadingDialog.click(),["stop"])),class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[68]||(t[68]=[c("i",{"data-feather":"folder"},null,-1)])))]),e.loading?Y("",!0):(T(),M("button",{key:0,type:"button",onClick:t[9]||(t[9]=J((...r)=>e.addDiscussion2SkillsLibrary&&e.addDiscussion2SkillsLibrary(...r),["stop"])),title:"Add this discussion content to skills database",class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[69]||(t[69]=[c("i",{"data-feather":"hard-drive"},null,-1)]))),!e.loading&&e.$store.state.config.activate_skills_lib?(T(),M("button",{key:1,type:"button",onClick:t[10]||(t[10]=J((...r)=>e.toggleSkillsLib&&e.toggleSkillsLib(...r),["stop"])),title:"Skills database is activated",class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[70]||(t[70]=[c("i",{"data-feather":"check-circle"},null,-1)]))):Y("",!0),!e.loading&&!e.$store.state.config.activate_skills_lib?(T(),M("button",{key:2,type:"button",onClick:t[11]||(t[11]=J((...r)=>e.toggleSkillsLib&&e.toggleSkillsLib(...r),["stop"])),title:"Skills database is deactivated",class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[71]||(t[71]=[c("i",{"data-feather":"x-octagon"},null,-1)]))):Y("",!0),e.loading?Y("",!0):(T(),M("button",{key:3,type:"button",onClick:t[12]||(t[12]=J((...r)=>e.showSkillsLib&&e.showSkillsLib(...r),["stop"])),title:"Show Skills database",class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[72]||(t[72]=[c("i",{"data-feather":"book"},null,-1)]))),e.loading?(T(),M("div",uyt,t[73]||(t[73]=[c("div",{role:"status"},[c("svg",{"aria-hidden":"true",class:"w-8 h-8 animate-spin fill-secondary dark:fill-secondary-light",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),c("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),c("span",{class:"sr-only"},"Loading...")],-1)]))):Y("",!0),e.showSaveConfirmation?(T(),M("div",pyt,[c("button",{class:"text-3xl hover:text-red-500 dark:hover:text-red-400 duration-150 active:scale-95",title:"Cancel",type:"button",onClick:t[13]||(t[13]=J(r=>e.showSaveConfirmation=!1,["stop"]))},t[74]||(t[74]=[c("i",{"data-feather":"x"},null,-1)])),c("button",{class:"text-3xl hover:text-green-500 dark:hover:text-green-400 duration-150 active:scale-95",title:"Confirm save changes",type:"button",onClick:t[14]||(t[14]=J(r=>e.save_configuration(),["stop"]))},t[75]||(t[75]=[c("i",{"data-feather":"check"},null,-1)]))])):Y("",!0),e.isOpen?(T(),M("div",hyt,[c("button",{onClick:t[15]||(t[15]=(...r)=>e.importDiscussions&&e.importDiscussions(...r)),class:"text-sm hover:text-secondary dark:hover:text-secondary-light"},"LOLLMS"),c("button",{onClick:t[16]||(t[16]=(...r)=>e.importChatGPT&&e.importChatGPT(...r)),class:"text-sm hover:text-secondary dark:hover:text-secondary-light"},"ChatGPT")])):Y("",!0)])],544),[[Dt,e.isMenuVisible]]),c("div",{onMouseenter:t[18]||(t[18]=(...r)=>e.showMenu&&e.showMenu(...r)),class:"menu-hover-area"},t[76]||(t[76]=[c("button",{class:"w-8 h-8",title:"Toggle menu"},[c("i",{"data-feather":"menu"})],-1)]),32)],32)),e.loading?Y("",!0):(T(),M("div",{key:1,class:"toolbar-button",onMouseleave:t[25]||(t[25]=(...r)=>e.hideBindingsMenu&&e.hideBindingsMenu(...r))},[c("div",myt,[F(c("div",{onMouseenter:t[22]||(t[22]=(...r)=>e.showBindingsMenu&&e.showBindingsMenu(...r)),class:"absolute m-0 p-0 z-10 top-full left-0 transform w-80 bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[c("div",fyt,[F(c("input",{type:"text","onUpdate:modelValue":t[20]||(t[20]=r=>e.bindingSearchQuery=r),placeholder:"Search bindings...",class:"w-full px-3 py-2 rounded-md border border-gray-300 dark:border-gray-600 dark:bg-gray-800 dark:text-white focus:outline-none focus:ring-2 focus:ring-blue-500"},null,512),[[_e,e.bindingSearchQuery]])]),c("div",gyt,[(T(!0),M(je,null,at(e.filteredBindings,(r,i)=>(T(),M("div",{key:i,class:"relative group/item flex flex-col items-center"},[c("div",_yt,[c("button",{onClick:J(s=>e.setBinding(r),["prevent"]),title:r.name,class:"w-12 h-12 rounded-md overflow-hidden transition-transform duration-200 transform group-hover/item:scale-105 focus:outline-none"},[c("img",{src:r.icon?r.icon:Pt(wr),onError:t[21]||(t[21]=(...s)=>Pt(wr)&&Pt(wr)(...s)),alt:r.name,class:qe(["w-full h-full object-cover",{"border-2 border-secondary":r.name==e.binding_name}])},null,42,vyt)],8,byt),c("span",{class:"mt-1 text-xs text-center w-full truncate",title:r.name},X(r.name),9,yyt)]),c("div",Eyt,[c("span",{class:"text-xs font-medium mb-2 text-center",onClick:J(s=>e.setBinding(r),["prevent"])},X(r.name),9,Syt),c("div",xyt,[c("button",{onClick:J(s=>e.showModelConfig(r),["prevent"]),class:"p-1 bg-blue-500 rounded-full text-white hover:bg-blue-600 focus:outline-none",title:"Configure Binding"},t[77]||(t[77]=[c("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})],-1)]),8,Tyt)])])]))),128))])],544),[[Dt,e.isBindingsMenuVisible]]),c("div",{onMouseenter:t[24]||(t[24]=(...r)=>e.showBindingsMenu&&e.showBindingsMenu(...r)),class:"bindings-hover-area"},[c("button",{onClick:t[23]||(t[23]=J(r=>e.showModelConfig(),["prevent"])),class:"w-6 h-6"},[c("img",{src:e.currentBindingIcon,class:"w-6 h-6 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary hover:scale-110 hover:-translate-y-1 duration-200",title:e.currentBinding?e.currentBinding.name:"unknown"},null,8,wyt)])],32)])],32)),e.loading?Y("",!0):(T(),M("div",{key:2,class:"toolbar-button",onMouseleave:t[31]||(t[31]=(...r)=>e.hideModelsMenu&&e.hideModelsMenu(...r))},[c("div",Cyt,[F(c("div",{onMouseenter:t[28]||(t[28]=(...r)=>e.showModelsMenu&&e.showModelsMenu(...r)),class:"absolute m-0 p-0 z-10 top-full left-0 transform w-80 bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[c("div",Ayt,[F(c("input",{type:"text","onUpdate:modelValue":t[26]||(t[26]=r=>e.modelSearchQuery=r),placeholder:"Search models...",class:"w-full px-3 py-2 rounded-md border border-gray-300 dark:border-gray-600 dark:bg-gray-800 dark:text-white focus:outline-none focus:ring-2 focus:ring-blue-500"},null,512),[[_e,e.modelSearchQuery]])]),c("div",Ryt,[(T(!0),M(je,null,at(e.filteredModels,(r,i)=>(T(),M("div",{key:i,class:"relative group/item flex flex-col items-center"},[c("div",Myt,[c("button",{onClick:J(s=>e.setModel(r),["prevent"]),title:r.name,class:"w-12 h-12 rounded-md overflow-hidden transition-transform duration-200 transform group-hover/item:scale-105 focus:outline-none"},[c("img",{src:r.icon?r.icon:Pt(wr),onError:t[27]||(t[27]=(...s)=>e.personalityImgPlacehodler&&e.personalityImgPlacehodler(...s)),alt:r.name,class:qe(["w-full h-full object-cover",{"border-2 border-secondary":r.name==e.model_name}])},null,42,kyt)],8,Nyt),c("span",{class:"mt-1 text-xs text-center w-full truncate",title:r.name},X(r.name),9,Iyt)]),c("div",Oyt,[c("span",{class:"text-xs font-medium mb-2 text-center",onClick:J(s=>e.setModel(r),["prevent"])},X(r.name),9,Dyt),c("div",Lyt,[c("button",{onClick:J(s=>e.copyModelNameFrom(r.name),["prevent"]),class:"p-1 bg-blue-500 rounded-full text-white hover:bg-blue-600 focus:outline-none",title:"Copy Model Name"},t[78]||(t[78]=[c("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})],-1)]),8,Pyt)])])]))),128))])],544),[[Dt,e.isModelsMenuVisible]]),c("div",{onMouseenter:t[30]||(t[30]=(...r)=>e.showModelsMenu&&e.showModelsMenu(...r)),class:"models-hover-area"},[c("button",{onClick:t[29]||(t[29]=J(r=>e.copyModelName(),["prevent"])),class:"w-6 h-6"},[c("img",{src:e.currentModelIcon,class:"w-6 h-6 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary hover:scale-110 hover:-translate-y-1 duration-400",title:e.currentModel?e.currentModel.name:"unknown"},null,8,Fyt)])],32)])],32)),e.loading?Y("",!0):(T(),M("div",{key:3,class:"toolbar-button",onMouseleave:t[36]||(t[36]=(...r)=>e.hidePersonalitiesMenu&&e.hidePersonalitiesMenu(...r))},[c("div",Uyt,[F(c("div",{onMouseenter:t[34]||(t[34]=(...r)=>e.showPersonalitiesMenu&&e.showPersonalitiesMenu(...r)),class:"absolute m-0 p-0 z-10 top-full left-0 transform w-80 bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[c("div",Byt,[F(c("input",{type:"text","onUpdate:modelValue":t[32]||(t[32]=r=>e.personalitySearchQuery=r),placeholder:"Search personalities...",class:"w-full px-3 py-2 rounded-md border border-gray-300 dark:border-gray-600 dark:bg-gray-800 dark:text-white focus:outline-none focus:ring-2 focus:ring-blue-500"},null,512),[[_e,e.personalitySearchQuery]])]),c("div",Gyt,[(T(!0),M(je,null,at(e.filteredPersonalities,(r,i)=>(T(),M("div",{key:i,class:"relative group/item flex flex-col items-center"},[c("div",zyt,[c("button",{onClick:J(s=>e.onPersonalitySelected(r),["prevent"]),title:r.name,class:"w-12 h-12 rounded-md overflow-hidden transition-transform duration-200 transform group-hover/item:scale-105 focus:outline-none"},[c("img",{src:Pt(YEt)+r.avatar,onError:t[33]||(t[33]=(...s)=>e.personalityImgPlacehodler&&e.personalityImgPlacehodler(...s)),alt:r.name,class:qe(["w-full h-full object-cover",{"border-2 border-secondary":e.$store.state.active_personality_id==e.$store.state.personalities.indexOf(r.full_path)}])},null,42,Hyt)],8,Vyt),c("span",{class:"mt-1 text-xs text-center w-full truncate",title:r.name},X(r.name),9,qyt)]),c("div",Yyt,[c("span",{class:"text-xs font-medium mb-2 text-center",onClick:J(s=>e.onPersonalitySelected(r),["prevent"])},X(r.name),9,$yt),c("div",Wyt,[c("button",{onClick:J(s=>e.unmountPersonality(r),["prevent"]),class:"p-1 bg-red-500 rounded-full text-white hover:bg-red-600 focus:outline-none",title:"Unmount"},t[79]||(t[79]=[c("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)]),8,Kyt),c("button",{onClick:J(s=>e.remount_personality(r),["prevent"]),class:"p-1 bg-blue-500 rounded-full text-white hover:bg-blue-600 focus:outline-none",title:"Remount"},t[80]||(t[80]=[c("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1)]),8,jyt),c("button",{onClick:J(s=>e.handleOnTalk(r),["prevent"]),class:"p-1 bg-green-500 rounded-full text-white hover:bg-green-600 focus:outline-none",title:"Talk"},t[81]||(t[81]=[c("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z"})],-1)]),8,Qyt)])])]))),128))])],544),[[Dt,e.isPersonalitiesMenuVisible]]),c("div",{onMouseenter:t[35]||(t[35]=(...r)=>e.showPersonalitiesMenu&&e.showPersonalitiesMenu(...r)),class:"personalities-hover-area"},[W(GI,{ref:"mountedPers",onShowPersList:e.onShowPersListFun,onReady:e.onPersonalitiesReadyFun},null,8,["onShowPersList","onReady"])],32)])],32))])]),c("div",Xyt,[c("form",{onSubmit:t[39]||(t[39]=J((...r)=>e.handleSearch&&e.handleSearch(...r),["prevent"])),class:"relative"},[c("div",Zyt,[c("div",Jyt,[F(c("input",{type:"search",id:"default-search",class:"block w-full h-8 px-8 text-sm border border-gray-300 rounded-md bg-bg-light focus:ring-1 focus:ring-secondary focus:border-secondary dark:bg-bg-dark dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-secondary dark:focus:border-secondary transition-all duration-200",placeholder:"Search discussions...",title:"Filter discussions by title","onUpdate:modelValue":t[37]||(t[37]=r=>e.filterTitle=r),onKeyup:t[38]||(t[38]=ui((...r)=>e.handleSearch&&e.handleSearch(...r),["enter"]))},null,544),[[_e,e.filterTitle]]),t[82]||(t[82]=c("div",{class:"absolute left-2 top-1/2 -translate-y-1/2"},[c("i",{"data-feather":"search",class:"w-4 h-4 text-gray-400"})],-1)),t[83]||(t[83]=c("button",{type:"submit",class:"absolute right-2 top-1/2 -translate-y-1/2 text-gray-600 hover:text-secondary rounded-full hover:bg-gray-100 dark:hover:bg-gray-700 focus:ring-1 focus:ring-secondary transition-all duration-150 active:scale-98",title:"Search"},[c("i",{"data-feather":"arrow-right",class:"w-4 h-4"})],-1))])])],32)]),e.isCheckbox?(T(),M("div",eEt,[c("div",tEt,[e.selectedDiscussions.length>0?(T(),M("p",nEt,"Selected: "+X(e.selectedDiscussions.length),1)):Y("",!0),e.selectedDiscussions.length>0?(T(),M("div",rEt,[e.showConfirmation?Y("",!0):(T(),M("button",{key:0,class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove selected",type:"button",onClick:t[40]||(t[40]=J(r=>e.showConfirmation=!0,["stop"]))},t[84]||(t[84]=[c("i",{"data-feather":"trash"},null,-1)]))),e.showConfirmation?(T(),M("div",iEt,[c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm removal",type:"button",onClick:t[41]||(t[41]=J((...r)=>e.deleteDiscussionMulti&&e.deleteDiscussionMulti(...r),["stop"]))},t[85]||(t[85]=[c("i",{"data-feather":"check"},null,-1)])),c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel removal",type:"button",onClick:t[42]||(t[42]=J(r=>e.showConfirmation=!1,["stop"]))},t[86]||(t[86]=[c("i",{"data-feather":"x"},null,-1)]))])):Y("",!0)])):Y("",!0),c("div",sEt,[c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a json file",type:"button",onClick:t[43]||(t[43]=J((...r)=>e.exportDiscussionsAsJson&&e.exportDiscussionsAsJson(...r),["stop"]))},t[87]||(t[87]=[c("i",{"data-feather":"codepen"},null,-1)])),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a markdown file",type:"button",onClick:t[44]||(t[44]=J((...r)=>e.exportDiscussions&&e.exportDiscussions(...r),["stop"]))},t[88]||(t[88]=[c("i",{"data-feather":"folder"},null,-1)])),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a markdown file",type:"button",onClick:t[45]||(t[45]=J((...r)=>e.exportDiscussionsAsMarkdown&&e.exportDiscussionsAsMarkdown(...r),["stop"]))},t[89]||(t[89]=[c("i",{"data-feather":"bookmark"},null,-1)])),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Select All",type:"button",onClick:t[46]||(t[46]=J((...r)=>e.selectAllDiscussions&&e.selectAllDiscussions(...r),["stop"]))},t[90]||(t[90]=[c("i",{"data-feather":"list"},null,-1)]))])])])):Y("",!0),c("div",{id:"leftPanel",class:"flex flex-col flex-grow overflow-y-scroll overflow-x-hidden custom-scrollbar",onDragover:t[47]||(t[47]=J(r=>e.setDropZoneDiscussion(),["stop","prevent"]))},[c("div",oEt,[c("div",{class:qe(["mx-0 flex flex-col flex-grow w-full",e.isDragOverDiscussion?"pointer-events-none":""])},[c("div",{id:"dis-list",class:qe([e.filterInProgress?"opacity-20 pointer-events-none":"","flex flex-col flex-grow w-full pb-80"])},[e.list.length>0?(T(),Tt(As,{key:0,name:"list"},{default:Ge(()=>[(T(!0),M(je,null,at(e.list,(r,i)=>(T(),Tt(Iy,{key:r.id,id:r.id,title:r.title,selected:e.currentDiscussion.id==r.id,loading:r.loading,isCheckbox:e.isCheckbox,checkBoxValue:r.checkBoxValue,onSelect:s=>e.selectDiscussion(r),onDelete:s=>e.deleteDiscussion(r.id),onOpenFolder:e.openFolder,onEditTitle:e.editTitle,onMakeTitle:e.makeTitle,onChecked:e.checkUncheckDiscussion},null,8,["id","title","selected","loading","isCheckbox","checkBoxValue","onSelect","onDelete","onOpenFolder","onEditTitle","onMakeTitle","onChecked"]))),128))]),_:1})):Y("",!0),e.list.length<1?(T(),M("div",aEt,t[91]||(t[91]=[c("p",{class:"px-3"},"No discussions are found",-1)]))):Y("",!0),t[92]||(t[92]=c("div",{class:"sticky bottom-0 bg-gradient-to-t pointer-events-none from-bg-light-tone dark:from-bg-dark-tone flex flex-grow"},null,-1))],2)],2)])],32),c("div",lEt,[c("div",{class:"h-15 w-full py-4 cursor-pointer text-light-text-panel dark:text-dark-text-panel hover:text-secondary",onClick:t[48]||(t[48]=(...r)=>e.showDatabaseSelector&&e.showDatabaseSelector(...r))},[c("p",cEt,X(e.formatted_database_name.replace("_"," ")),1)])])])):Y("",!0)]),_:1}),e.isReady?(T(),M("div",dEt,[c("div",{id:"messages-list",class:qe(["w-full z-0 flex flex-col flex-grow overflow-y-auto scrollbar",e.isDragOverChat?"pointer-events-none":""])},[c("div",uEt,[e.discussionArr.length>0?(T(),Tt(As,{key:0,name:"list"},{default:Ge(()=>[(T(!0),M(je,null,at(e.discussionArr,(r,i)=>(T(),Tt(TI,{key:r.id,message:r,id:"msg-"+r.id,ref_for:!0,ref:"msg-"+r.id,host:e.host,onCopy:e.copyToClipBoard,onDelete:e.deleteMessage,onRankUp:e.rankUpMessage,onRankDown:e.rankDownMessage,onUpdateMessage:e.updateMessage,onResendMessage:e.resendMessage,onContinueMessage:e.continueMessage,avatar:e.getAvatar(r.sender)},null,8,["message","id","host","onCopy","onDelete","onRankUp","onRankDown","onUpdateMessage","onResendMessage","onContinueMessage","avatar"]))),128)),e.discussionArr.length<2&&e.personality.prompts_list.length>0?(T(),M("div",pEt,[t[97]||(t[97]=c("h2",{class:"text-2xl font-bold mb-6 text-gray-800 dark:text-gray-200"},"Prompt Examples",-1)),c("div",hEt,[c("div",mEt,[(T(!0),M(je,null,at(e.personality.prompts_list,(r,i)=>(T(),M("div",{title:e.extractTitle(r),key:i,onClick:s=>e.handlePromptSelection(r),class:"flex-shrink-0 w-[300px] bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 rounded-lg p-6 cursor-pointer hover:shadow-xl transition-all duration-300 ease-in-out transform hover:scale-105 flex flex-col justify-between min-h-[220px] group"},[c("div",gEt,[c("h3",{class:"font-bold text-lg text-gray-900 dark:text-gray-100 mb-2 truncate",title:e.extractTitle(r)},X(e.extractTitle(r)),9,_Et),c("div",{title:r,class:"text-base text-gray-700 dark:text-gray-300 overflow-hidden line-clamp-4"},X(e.getPromptContent(r)),9,bEt)]),t[93]||(t[93]=c("div",{class:"mt-4 text-sm font-medium text-blue-600 dark:text-blue-400 opacity-0 group-hover:opacity-100 transition-opacity duration-300"}," Click to select ",-1))],8,fEt))),128))])]),e.showPlaceholderModal?(T(),M("div",vEt,[c("div",yEt,[t[96]||(t[96]=c("h3",{class:"text-lg font-semibold mb-4"},"Fill in the placeholders",-1)),c("div",EEt,[c("div",SEt,[t[94]||(t[94]=c("h4",{class:"text-sm font-medium mb-2 text-gray-600 dark:text-gray-400"},"Live Preview:",-1)),c("div",xEt,[c("span",TEt,X(e.getPromptContent(e.previewPrompt)),1)])]),c("div",wEt,[c("div",CEt,[(T(!0),M(je,null,at(e.parsedPlaceholders,(r,i)=>(T(),M("div",{key:r.fullText,class:"flex flex-col"},[c("label",{for:"placeholder-"+i,class:"text-sm font-medium mb-1"},X(r.label),9,AEt),r.type==="text"?F((T(),M("input",{key:0,id:"placeholder-"+i,"onUpdate:modelValue":s=>e.placeholderValues[i]=s,type:"text",class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",placeholder:r.label,onInput:t[49]||(t[49]=(...s)=>e.updatePreview&&e.updatePreview(...s))},null,40,REt)),[[_e,e.placeholderValues[i]]]):Y("",!0),r.type==="int"?F((T(),M("input",{key:1,id:"placeholder-"+i,"onUpdate:modelValue":s=>e.placeholderValues[i]=s,type:"number",step:"1",class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",onInput:t[50]||(t[50]=(...s)=>e.updatePreview&&e.updatePreview(...s))},null,40,MEt)),[[_e,e.placeholderValues[i],void 0,{number:!0}]]):Y("",!0),r.type==="float"?F((T(),M("input",{key:2,id:"placeholder-"+i,"onUpdate:modelValue":s=>e.placeholderValues[i]=s,type:"number",step:"0.01",class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",onInput:t[51]||(t[51]=(...s)=>e.updatePreview&&e.updatePreview(...s))},null,40,NEt)),[[_e,e.placeholderValues[i],void 0,{number:!0}]]):Y("",!0),r.type==="multiline"?F((T(),M("textarea",{key:3,id:"placeholder-"+i,"onUpdate:modelValue":s=>e.placeholderValues[i]=s,rows:"4",class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",onInput:t[52]||(t[52]=(...s)=>e.updatePreview&&e.updatePreview(...s))},null,40,kEt)),[[_e,e.placeholderValues[i]]]):Y("",!0),r.type==="code"?(T(),M("div",IEt,[c("div",OEt,X(r.language||"Plain text"),1),F(c("textarea",{id:"placeholder-"+i,"onUpdate:modelValue":s=>e.placeholderValues[i]=s,rows:"8",class:"w-full p-2 font-mono bg-gray-100 dark:bg-gray-900 border-t",onInput:t[53]||(t[53]=(...s)=>e.updatePreview&&e.updatePreview(...s))},null,40,DEt),[[_e,e.placeholderValues[i]]])])):Y("",!0),r.type==="options"?F((T(),M("select",{key:5,id:"placeholder-"+i,"onUpdate:modelValue":s=>e.placeholderValues[i]=s,class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",onChange:t[54]||(t[54]=(...s)=>e.updatePreview&&e.updatePreview(...s))},[t[95]||(t[95]=c("option",{value:"",disabled:""},"Select an option",-1)),(T(!0),M(je,null,at(r.options,s=>(T(),M("option",{key:s,value:s},X(s),9,PEt))),128))],40,LEt)),[[Qt,e.placeholderValues[i]]]):Y("",!0)]))),128))])])]),c("div",FEt,[c("button",{onClick:t[55]||(t[55]=(...r)=>e.cancelPlaceholders&&e.cancelPlaceholders(...r)),class:"px-4 py-2 text-gray-600 hover:text-gray-800 dark:text-gray-400 dark:hover:text-gray-200"}," Cancel "),c("button",{onClick:t[56]||(t[56]=(...r)=>e.applyPlaceholders&&e.applyPlaceholders(...r)),class:"px-4 py-2 bg-blue-500 text-white rounded-md hover:bg-blue-600"}," Apply ")])])])):Y("",!0)])):Y("",!0)]),_:1})):Y("",!0),e.currentDiscussion.id?Y("",!0):(T(),Tt(CI,{key:1})),t[98]||(t[98]=c("div",null,[c("br"),c("br"),c("br"),c("br"),c("br"),c("br"),c("br")],-1))]),t[99]||(t[99]=c("div",{class:"absolute w-full bottom-0 bg-transparent p-10 pt-16 bg-gradient-to-t from-bg-light dark:from-bg-dark from-5% via-bg-light dark:via-bg-dark via-10% to-transparent to-100%"},null,-1))],2),e.currentDiscussion.id?(T(),M("div",UEt,[W(wI,{ref:"chatBox",loading:e.isGenerating,discussionList:e.discussionArr,"on-show-toast-message":e.showToastMessage,"on-talk":e.talk,onPersonalitySelected:e.recoverFiles,onMessageSentEvent:e.sendMsg,onSendCMDEvent:e.sendCmd,onAddWebLink:e.add_webpage,onCreateEmptyUserMessage:e.createEmptyUserMessage,onCreateEmptyAIMessage:e.createEmptyAIMessage,onStopGenerating:e.stopGenerating,onLoaded:e.recoverFiles},null,8,["loading","discussionList","on-show-toast-message","on-talk","onPersonalitySelected","onMessageSentEvent","onSendCMDEvent","onAddWebLink","onCreateEmptyUserMessage","onCreateEmptyAIMessage","onStopGenerating","onLoaded"])])):Y("",!0)])):Y("",!0),W(Cs,{name:"slide-left"},{default:Ge(()=>[e.showRightPanel?(T(),M("div",BEt,[c("div",GEt,null,512)])):Y("",!0)]),_:1}),W(ky,{reference:"database_selector",class:"z-20",show:e.database_selectorDialogVisible,choices:e.databases,"can-remove":!0,onChoiceRemoved:e.ondatabase_selectorDialogRemoved,onChoiceSelected:e.ondatabase_selectorDialogSelected,onCloseDialog:e.onclosedatabase_selectorDialog,onChoiceValidated:e.onvalidatedatabase_selectorChoice},null,8,["show","choices","onChoiceRemoved","onChoiceSelected","onCloseDialog","onChoiceValidated"]),F(c("div",zEt,[W(oy,{ref:"progress",progress:e.progress_value,class:"w-full h-4"},null,8,["progress"]),c("p",VEt,X(e.loading_infos)+" ...",1)],512),[[Dt,e.progress_visibility]]),W(UI,{ref:"personality_editor",config:e.currentPersonConfig,personality:e.selectedPersonality},null,8,["config","personality"]),c("div",HEt,[W(BI,{ref:"news"},null,512)])],64))}}),KEt=bt(WEt,[["__scopeId","data-v-dcd0e4ad"]]);/** + -2px 2px 0px white`,background:"linear-gradient(45deg, #f59e0b, #fbbf24)","-webkit-background-clip":"text","background-clip":"text"}},[pt(" L"),c("span",{class:"animate-pulse"},"⭐"),pt("LLMS ")],-1)),t[60]||(t[60]=c("p",{class:"text-2xl text-gray-600 dark:text-gray-300 italic"}," One tool to rule them all ",-1)),t[61]||(t[61]=c("p",{class:"text-xl text-gray-500 dark:text-gray-400 mb-6"}," by ParisNeo ",-1)),c("p",jvt,X(e.version_info),1),c("div",{class:"interesting-facts transition-transform duration-300 cursor-pointer",onClick:t[0]||(t[0]=(...r)=>e.updateRandomFact&&e.updateRandomFact(...r))},[c("p",Qvt,[t[57]||(t[57]=c("span",{class:"font-semibold text-blue-600 dark:text-blue-400"},"🤔 Fun Fact: ",-1)),c("span",{innerHTML:e.randomFact},null,8,Xvt)])]),c("div",Zvt,[c("div",{class:"animated-progressbar-fg",style:on({width:`${e.loading_progress}%`})},null,4),c("div",{class:"absolute top-0 h-full flex items-center transition-all duration-300",style:on({left:`${e.loading_progress}%`,transform:"translateX(-50%)"})},t[58]||(t[58]=[c("p",{style:{"font-size":"48px","line-height":"1"}},"🌟",-1)]),4)])]),c("div",Jvt,[c("div",eyt,[c("p",tyt,X(e.loading_infos)+"... ",1),c("p",nyt,X(Math.round(e.loading_progress))+"% ",1)])])])]))]),_:1}),W(ji,{name:"slide-right"},{default:Ge(()=>[e.showLeftPanel?(T(),M("div",ryt,[W(Pt(Ip),{to:{name:"discussions"},class:"flex items-center space-x-2"},{default:Ge(()=>[c("div",iyt,[c("img",{class:"w-12 h-12 rounded-full object-cover logo-image",src:e.$store.state.config==null?Pt(Ai):e.$store.state.config.app_custom_logo!=""?"/user_infos/"+e.$store.state.config.app_custom_logo:Pt(Ai),alt:"Logo",title:"LoLLMS WebUI"},null,8,syt)]),t[62]||(t[62]=c("div",{class:"flex flex-col justify-center"},[c("div",{class:"text-center p-2"},[c("div",{class:"text-md relative inline-block"},[c("span",{class:"relative inline-block font-bold tracking-wide text-black dark:text-white"}," LoLLMS "),c("div",{class:"absolute -bottom-0.5 left-0 w-full h-0.5 bg-black dark:bg-white transform origin-left transition-transform duration-300 hover:scale-x-100 scale-x-0"})])]),c("p",{class:"text-gray-400 text-sm"},"One tool to rule them all")],-1))]),_:1}),c("div",oyt,[c("div",ayt,[c("button",{class:"toolbar-button",title:"Create new discussion",onClick:t[1]||(t[1]=(...r)=>e.createNewDiscussion&&e.createNewDiscussion(...r))},t[63]||(t[63]=[c("i",{"data-feather":"plus"},null,-1)])),e.loading?Y("",!0):(T(),M("div",{key:0,class:"toolbar-button",onMouseleave:t[19]||(t[19]=(...r)=>e.hideMenu&&e.hideMenu(...r))},[F(c("div",{onMouseenter:t[17]||(t[17]=(...r)=>e.showMenu&&e.showMenu(...r)),class:"absolute m-0 p-0 z-50 top-full left-0 transform bg-white dark:bg-bg-dark rounded-lg shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[c("div",lyt,[c("button",{class:qe(["text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95",e.isCheckbox?"text-secondary dark:text-secondary-light":"text-gray-700 dark:text-gray-300"]),title:"Edit discussion list",type:"button",onClick:t[2]||(t[2]=r=>e.isCheckbox=!e.isCheckbox)},t[64]||(t[64]=[c("i",{"data-feather":"check-square"},null,-1)]),2),c("button",{class:"text-3xl hover:text-red-500 dark:hover:text-red-400 duration-150 active:scale-95",title:"Reset database, remove all discussions",onClick:t[3]||(t[3]=J(()=>{},["stop"]))},t[65]||(t[65]=[c("i",{"data-feather":"trash-2"},null,-1)])),c("button",{class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95",title:"Export database",type:"button",onClick:t[4]||(t[4]=J(r=>e.database_selectorDialogVisible=!0,["stop"]))},t[66]||(t[66]=[c("i",{"data-feather":"database"},null,-1)])),c("div",cyt,[c("input",{type:"file",ref:"fileDialog",class:"hidden",onChange:t[5]||(t[5]=(...r)=>e.importDiscussions&&e.importDiscussions(...r))},null,544),c("button",{class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95 rotate-90",title:"Import discussions",type:"button",onClick:t[6]||(t[6]=J(r=>e.$refs.fileDialog.click(),["stop"]))},t[67]||(t[67]=[c("i",{"data-feather":"log-in"},null,-1)]))]),c("div",dyt,[c("input",{type:"file",ref:"bundleLoadingDialog",class:"hidden",onChange:t[7]||(t[7]=(...r)=>e.importDiscussionsBundle&&e.importDiscussionsBundle(...r))},null,544),e.showSaveConfirmation?Y("",!0):(T(),M("button",{key:0,title:"Import discussion bundle",onClick:t[8]||(t[8]=J(r=>e.$refs.bundleLoadingDialog.click(),["stop"])),class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[68]||(t[68]=[c("i",{"data-feather":"folder"},null,-1)])))]),e.loading?Y("",!0):(T(),M("button",{key:0,type:"button",onClick:t[9]||(t[9]=J((...r)=>e.addDiscussion2SkillsLibrary&&e.addDiscussion2SkillsLibrary(...r),["stop"])),title:"Add this discussion content to skills database",class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[69]||(t[69]=[c("i",{"data-feather":"hard-drive"},null,-1)]))),!e.loading&&e.$store.state.config.activate_skills_lib?(T(),M("button",{key:1,type:"button",onClick:t[10]||(t[10]=J((...r)=>e.toggleSkillsLib&&e.toggleSkillsLib(...r),["stop"])),title:"Skills database is activated",class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[70]||(t[70]=[c("i",{"data-feather":"check-circle"},null,-1)]))):Y("",!0),!e.loading&&!e.$store.state.config.activate_skills_lib?(T(),M("button",{key:2,type:"button",onClick:t[11]||(t[11]=J((...r)=>e.toggleSkillsLib&&e.toggleSkillsLib(...r),["stop"])),title:"Skills database is deactivated",class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[71]||(t[71]=[c("i",{"data-feather":"x-octagon"},null,-1)]))):Y("",!0),e.loading?Y("",!0):(T(),M("button",{key:3,type:"button",onClick:t[12]||(t[12]=J((...r)=>e.showSkillsLib&&e.showSkillsLib(...r),["stop"])),title:"Show Skills database",class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[72]||(t[72]=[c("i",{"data-feather":"book"},null,-1)]))),e.loading?(T(),M("div",uyt,t[73]||(t[73]=[c("div",{role:"status"},[c("svg",{"aria-hidden":"true",class:"w-8 h-8 animate-spin fill-secondary dark:fill-secondary-light",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),c("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),c("span",{class:"sr-only"},"Loading...")],-1)]))):Y("",!0),e.showSaveConfirmation?(T(),M("div",pyt,[c("button",{class:"text-3xl hover:text-red-500 dark:hover:text-red-400 duration-150 active:scale-95",title:"Cancel",type:"button",onClick:t[13]||(t[13]=J(r=>e.showSaveConfirmation=!1,["stop"]))},t[74]||(t[74]=[c("i",{"data-feather":"x"},null,-1)])),c("button",{class:"text-3xl hover:text-green-500 dark:hover:text-green-400 duration-150 active:scale-95",title:"Confirm save changes",type:"button",onClick:t[14]||(t[14]=J(r=>e.save_configuration(),["stop"]))},t[75]||(t[75]=[c("i",{"data-feather":"check"},null,-1)]))])):Y("",!0),e.isOpen?(T(),M("div",hyt,[c("button",{onClick:t[15]||(t[15]=(...r)=>e.importDiscussions&&e.importDiscussions(...r)),class:"text-sm hover:text-secondary dark:hover:text-secondary-light"},"LOLLMS"),c("button",{onClick:t[16]||(t[16]=(...r)=>e.importChatGPT&&e.importChatGPT(...r)),class:"text-sm hover:text-secondary dark:hover:text-secondary-light"},"ChatGPT")])):Y("",!0)])],544),[[Dt,e.isMenuVisible]]),c("div",{onMouseenter:t[18]||(t[18]=(...r)=>e.showMenu&&e.showMenu(...r)),class:"menu-hover-area"},t[76]||(t[76]=[c("button",{class:"w-8 h-8",title:"Toggle menu"},[c("i",{"data-feather":"menu"})],-1)]),32)],32)),e.loading?Y("",!0):(T(),M("div",{key:1,class:"toolbar-button",onMouseleave:t[25]||(t[25]=(...r)=>e.hideBindingsMenu&&e.hideBindingsMenu(...r))},[c("div",myt,[F(c("div",{onMouseenter:t[22]||(t[22]=(...r)=>e.showBindingsMenu&&e.showBindingsMenu(...r)),class:"absolute m-0 p-0 z-10 top-full left-0 transform w-80 bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[c("div",fyt,[F(c("input",{type:"text","onUpdate:modelValue":t[20]||(t[20]=r=>e.bindingSearchQuery=r),placeholder:"Search bindings...",class:"w-full px-3 py-2 rounded-md border border-gray-300 dark:border-gray-600 dark:bg-gray-800 dark:text-white focus:outline-none focus:ring-2 focus:ring-blue-500"},null,512),[[_e,e.bindingSearchQuery]])]),c("div",gyt,[(T(!0),M(je,null,at(e.filteredBindings,(r,i)=>(T(),M("div",{key:i,class:"relative group/item flex flex-col items-center"},[c("div",_yt,[c("button",{onClick:J(s=>e.setBinding(r),["prevent"]),title:r.name,class:"w-12 h-12 rounded-md overflow-hidden transition-transform duration-200 transform group-hover/item:scale-105 focus:outline-none"},[c("img",{src:r.icon?r.icon:Pt(wr),onError:t[21]||(t[21]=(...s)=>Pt(wr)&&Pt(wr)(...s)),alt:r.name,class:qe(["w-full h-full object-cover",{"border-2 border-secondary":r.name==e.binding_name}])},null,42,vyt)],8,byt),c("span",{class:"mt-1 text-xs text-center w-full truncate",title:r.name},X(r.name),9,yyt)]),c("div",Eyt,[c("span",{class:"text-xs font-medium mb-2 text-center",onClick:J(s=>e.setBinding(r),["prevent"])},X(r.name),9,Syt),c("div",xyt,[c("button",{onClick:J(s=>e.showModelConfig(r),["prevent"]),class:"p-1 bg-blue-500 rounded-full text-white hover:bg-blue-600 focus:outline-none",title:"Configure Binding"},t[77]||(t[77]=[c("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})],-1)]),8,Tyt)])])]))),128))])],544),[[Dt,e.isBindingsMenuVisible]]),c("div",{onMouseenter:t[24]||(t[24]=(...r)=>e.showBindingsMenu&&e.showBindingsMenu(...r)),class:"bindings-hover-area"},[c("button",{onClick:t[23]||(t[23]=J(r=>e.showModelConfig(),["prevent"])),class:"w-6 h-6"},[c("img",{src:e.currentBindingIcon,class:"w-6 h-6 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary hover:scale-110 hover:-translate-y-1 duration-200",title:e.currentBinding?e.currentBinding.name:"unknown"},null,8,wyt)])],32)])],32)),e.loading?Y("",!0):(T(),M("div",{key:2,class:"toolbar-button",onMouseleave:t[31]||(t[31]=(...r)=>e.hideModelsMenu&&e.hideModelsMenu(...r))},[c("div",Cyt,[F(c("div",{onMouseenter:t[28]||(t[28]=(...r)=>e.showModelsMenu&&e.showModelsMenu(...r)),class:"absolute m-0 p-0 z-10 top-full left-0 transform w-80 bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[c("div",Ayt,[F(c("input",{type:"text","onUpdate:modelValue":t[26]||(t[26]=r=>e.modelSearchQuery=r),placeholder:"Search models...",class:"w-full px-3 py-2 rounded-md border border-gray-300 dark:border-gray-600 dark:bg-gray-800 dark:text-white focus:outline-none focus:ring-2 focus:ring-blue-500"},null,512),[[_e,e.modelSearchQuery]])]),c("div",Ryt,[(T(!0),M(je,null,at(e.filteredModels,(r,i)=>(T(),M("div",{key:i,class:"relative group/item flex flex-col items-center"},[c("div",Myt,[c("button",{onClick:J(s=>e.setModel(r),["prevent"]),title:r.name,class:"w-12 h-12 rounded-md overflow-hidden transition-transform duration-200 transform group-hover/item:scale-105 focus:outline-none"},[c("img",{src:r.icon?r.icon:Pt(wr),onError:t[27]||(t[27]=(...s)=>e.personalityImgPlacehodler&&e.personalityImgPlacehodler(...s)),alt:r.name,class:qe(["w-full h-full object-cover",{"border-2 border-secondary":r.name==e.model_name}])},null,42,kyt)],8,Nyt),c("span",{class:"mt-1 text-xs text-center w-full truncate",title:r.name},X(r.name),9,Iyt)]),c("div",Oyt,[c("span",{class:"text-xs font-medium mb-2 text-center",onClick:J(s=>e.setModel(r),["prevent"])},X(r.name),9,Dyt),c("div",Lyt,[c("button",{onClick:J(s=>e.copyModelNameFrom(r.name),["prevent"]),class:"p-1 bg-blue-500 rounded-full text-white hover:bg-blue-600 focus:outline-none",title:"Copy Model Name"},t[78]||(t[78]=[c("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})],-1)]),8,Pyt)])])]))),128))])],544),[[Dt,e.isModelsMenuVisible]]),c("div",{onMouseenter:t[30]||(t[30]=(...r)=>e.showModelsMenu&&e.showModelsMenu(...r)),class:"models-hover-area"},[c("button",{onClick:t[29]||(t[29]=J(r=>e.copyModelName(),["prevent"])),class:"w-6 h-6"},[c("img",{src:e.currentModelIcon,class:"w-6 h-6 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary hover:scale-110 hover:-translate-y-1 duration-400",title:e.currentModel?e.currentModel.name:"unknown"},null,8,Fyt)])],32)])],32)),e.loading?Y("",!0):(T(),M("div",{key:3,class:"toolbar-button",onMouseleave:t[36]||(t[36]=(...r)=>e.hidePersonalitiesMenu&&e.hidePersonalitiesMenu(...r))},[c("div",Uyt,[F(c("div",{onMouseenter:t[34]||(t[34]=(...r)=>e.showPersonalitiesMenu&&e.showPersonalitiesMenu(...r)),class:"absolute m-0 p-0 z-10 top-full left-0 transform w-80 bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[c("div",Byt,[F(c("input",{type:"text","onUpdate:modelValue":t[32]||(t[32]=r=>e.personalitySearchQuery=r),placeholder:"Search personalities...",class:"w-full px-3 py-2 rounded-md border border-gray-300 dark:border-gray-600 dark:bg-gray-800 dark:text-white focus:outline-none focus:ring-2 focus:ring-blue-500"},null,512),[[_e,e.personalitySearchQuery]])]),c("div",Gyt,[(T(!0),M(je,null,at(e.filteredPersonalities,(r,i)=>(T(),M("div",{key:i,class:"relative group/item flex flex-col items-center"},[c("div",zyt,[c("button",{onClick:J(s=>e.onPersonalitySelected(r),["prevent"]),title:r.name,class:"w-12 h-12 rounded-md overflow-hidden transition-transform duration-200 transform group-hover/item:scale-105 focus:outline-none"},[c("img",{src:Pt(YEt)+r.avatar,onError:t[33]||(t[33]=(...s)=>e.personalityImgPlacehodler&&e.personalityImgPlacehodler(...s)),alt:r.name,class:qe(["w-full h-full object-cover",{"border-2 border-secondary":e.$store.state.active_personality_id==e.$store.state.personalities.indexOf(r.full_path)}])},null,42,Hyt)],8,Vyt),c("span",{class:"mt-1 text-xs text-center w-full truncate",title:r.name},X(r.name),9,qyt)]),c("div",Yyt,[c("span",{class:"text-xs font-medium mb-2 text-center",onClick:J(s=>e.onPersonalitySelected(r),["prevent"])},X(r.name),9,$yt),c("div",Wyt,[c("button",{onClick:J(s=>e.unmountPersonality(r),["prevent"]),class:"p-1 bg-red-500 rounded-full text-white hover:bg-red-600 focus:outline-none",title:"Unmount"},t[79]||(t[79]=[c("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)]),8,Kyt),c("button",{onClick:J(s=>e.remount_personality(r),["prevent"]),class:"p-1 bg-blue-500 rounded-full text-white hover:bg-blue-600 focus:outline-none",title:"Remount"},t[80]||(t[80]=[c("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1)]),8,jyt),c("button",{onClick:J(s=>e.handleOnTalk(r),["prevent"]),class:"p-1 bg-green-500 rounded-full text-white hover:bg-green-600 focus:outline-none",title:"Talk"},t[81]||(t[81]=[c("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z"})],-1)]),8,Qyt)])])]))),128))])],544),[[Dt,e.isPersonalitiesMenuVisible]]),c("div",{onMouseenter:t[35]||(t[35]=(...r)=>e.showPersonalitiesMenu&&e.showPersonalitiesMenu(...r)),class:"personalities-hover-area"},[W(GI,{ref:"mountedPers",onShowPersList:e.onShowPersListFun,onReady:e.onPersonalitiesReadyFun},null,8,["onShowPersList","onReady"])],32)])],32))])]),c("div",Xyt,[c("form",{onSubmit:t[39]||(t[39]=J((...r)=>e.handleSearch&&e.handleSearch(...r),["prevent"])),class:"relative"},[c("div",Zyt,[c("div",Jyt,[F(c("input",{type:"search",id:"default-search",class:"block w-full h-8 px-8 text-sm border border-gray-300 rounded-md bg-bg-light focus:ring-1 focus:ring-secondary focus:border-secondary dark:bg-bg-dark dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-secondary dark:focus:border-secondary transition-all duration-200",placeholder:"Search discussions...",title:"Filter discussions by title","onUpdate:modelValue":t[37]||(t[37]=r=>e.filterTitle=r),onKeyup:t[38]||(t[38]=ui((...r)=>e.handleSearch&&e.handleSearch(...r),["enter"]))},null,544),[[_e,e.filterTitle]]),t[82]||(t[82]=c("div",{class:"absolute left-2 top-1/2 -translate-y-1/2"},[c("i",{"data-feather":"search",class:"w-4 h-4 text-gray-400"})],-1)),t[83]||(t[83]=c("button",{type:"submit",class:"absolute right-2 top-1/2 -translate-y-1/2 text-gray-600 hover:text-secondary rounded-full hover:bg-gray-100 dark:hover:bg-gray-700 focus:ring-1 focus:ring-secondary transition-all duration-150 active:scale-98",title:"Search"},[c("i",{"data-feather":"arrow-right",class:"w-4 h-4"})],-1))])])],32)]),e.isCheckbox?(T(),M("div",eEt,[c("div",tEt,[e.selectedDiscussions.length>0?(T(),M("p",nEt,"Selected: "+X(e.selectedDiscussions.length),1)):Y("",!0),e.selectedDiscussions.length>0?(T(),M("div",rEt,[e.showConfirmation?Y("",!0):(T(),M("button",{key:0,class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove selected",type:"button",onClick:t[40]||(t[40]=J(r=>e.showConfirmation=!0,["stop"]))},t[84]||(t[84]=[c("i",{"data-feather":"trash"},null,-1)]))),e.showConfirmation?(T(),M("div",iEt,[c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm removal",type:"button",onClick:t[41]||(t[41]=J((...r)=>e.deleteDiscussionMulti&&e.deleteDiscussionMulti(...r),["stop"]))},t[85]||(t[85]=[c("i",{"data-feather":"check"},null,-1)])),c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel removal",type:"button",onClick:t[42]||(t[42]=J(r=>e.showConfirmation=!1,["stop"]))},t[86]||(t[86]=[c("i",{"data-feather":"x"},null,-1)]))])):Y("",!0)])):Y("",!0),c("div",sEt,[c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a json file",type:"button",onClick:t[43]||(t[43]=J((...r)=>e.exportDiscussionsAsJson&&e.exportDiscussionsAsJson(...r),["stop"]))},t[87]||(t[87]=[c("i",{"data-feather":"codepen"},null,-1)])),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a markdown file",type:"button",onClick:t[44]||(t[44]=J((...r)=>e.exportDiscussions&&e.exportDiscussions(...r),["stop"]))},t[88]||(t[88]=[c("i",{"data-feather":"folder"},null,-1)])),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a markdown file",type:"button",onClick:t[45]||(t[45]=J((...r)=>e.exportDiscussionsAsMarkdown&&e.exportDiscussionsAsMarkdown(...r),["stop"]))},t[89]||(t[89]=[c("i",{"data-feather":"bookmark"},null,-1)])),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Select All",type:"button",onClick:t[46]||(t[46]=J((...r)=>e.selectAllDiscussions&&e.selectAllDiscussions(...r),["stop"]))},t[90]||(t[90]=[c("i",{"data-feather":"list"},null,-1)]))])])])):Y("",!0),c("div",{id:"leftPanel",class:"flex flex-col flex-grow overflow-y-scroll overflow-x-hidden custom-scrollbar",onDragover:t[47]||(t[47]=J(r=>e.setDropZoneDiscussion(),["stop","prevent"]))},[c("div",oEt,[c("div",{class:qe(["mx-0 flex flex-col flex-grow w-full",e.isDragOverDiscussion?"pointer-events-none":""])},[c("div",{id:"dis-list",class:qe([e.filterInProgress?"opacity-20 pointer-events-none":"","flex flex-col flex-grow w-full pb-80"])},[e.list.length>0?(T(),Tt(As,{key:0,name:"list"},{default:Ge(()=>[(T(!0),M(je,null,at(e.list,(r,i)=>(T(),Tt(Iy,{key:r.id,id:r.id,title:r.title,selected:e.currentDiscussion.id==r.id,loading:r.loading,isCheckbox:e.isCheckbox,checkBoxValue:r.checkBoxValue,onSelect:s=>e.selectDiscussion(r),onDelete:s=>e.deleteDiscussion(r.id),onOpenFolder:e.openFolder,onEditTitle:e.editTitle,onMakeTitle:e.makeTitle,onChecked:e.checkUncheckDiscussion},null,8,["id","title","selected","loading","isCheckbox","checkBoxValue","onSelect","onDelete","onOpenFolder","onEditTitle","onMakeTitle","onChecked"]))),128))]),_:1})):Y("",!0),e.list.length<1?(T(),M("div",aEt,t[91]||(t[91]=[c("p",{class:"px-3"},"No discussions are found",-1)]))):Y("",!0),t[92]||(t[92]=c("div",{class:"sticky bottom-0 bg-gradient-to-t pointer-events-none from-bg-light-tone dark:from-bg-dark-tone flex flex-grow"},null,-1))],2)],2)])],32),c("div",lEt,[c("div",{class:"h-15 w-full py-4 cursor-pointer text-light-text-panel dark:text-dark-text-panel hover:text-secondary",onClick:t[48]||(t[48]=(...r)=>e.showDatabaseSelector&&e.showDatabaseSelector(...r))},[c("p",cEt,X(e.formatted_database_name.replace("_"," ")),1)])])])):Y("",!0)]),_:1}),e.isReady?(T(),M("div",dEt,[c("div",{id:"messages-list",class:qe(["w-full z-0 flex flex-col flex-grow overflow-y-auto scrollbar",e.isDragOverChat?"pointer-events-none":""])},[c("div",uEt,[e.discussionArr.length>0?(T(),Tt(As,{key:0,name:"list"},{default:Ge(()=>[(T(!0),M(je,null,at(e.discussionArr,(r,i)=>(T(),Tt(TI,{key:r.id,message:r,id:"msg-"+r.id,ref_for:!0,ref:"msg-"+r.id,host:e.host,onCopy:e.copyToClipBoard,onDelete:e.deleteMessage,onRankUp:e.rankUpMessage,onRankDown:e.rankDownMessage,onUpdateMessage:e.updateMessage,onResendMessage:e.resendMessage,onContinueMessage:e.continueMessage,avatar:e.getAvatar(r.sender)},null,8,["message","id","host","onCopy","onDelete","onRankUp","onRankDown","onUpdateMessage","onResendMessage","onContinueMessage","avatar"]))),128)),e.discussionArr.length<2&&e.personality.prompts_list.length>0?(T(),M("div",pEt,[t[97]||(t[97]=c("h2",{class:"text-2xl font-bold mb-6 text-gray-800 dark:text-gray-200"},"Prompt Examples",-1)),c("div",hEt,[c("div",mEt,[(T(!0),M(je,null,at(e.personality.prompts_list,(r,i)=>(T(),M("div",{title:e.extractTitle(r),key:i,onClick:s=>e.handlePromptSelection(r),class:"flex-shrink-0 w-[300px] bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 rounded-lg p-6 cursor-pointer hover:shadow-xl transition-all duration-300 ease-in-out transform hover:scale-105 flex flex-col justify-between min-h-[220px] group"},[c("div",gEt,[c("h3",{class:"font-bold text-lg text-gray-900 dark:text-gray-100 mb-2 truncate",title:e.extractTitle(r)},X(e.extractTitle(r)),9,_Et),c("div",{title:r,class:"text-base text-gray-700 dark:text-gray-300 overflow-hidden line-clamp-4"},X(e.getPromptContent(r)),9,bEt)]),t[93]||(t[93]=c("div",{class:"mt-4 text-sm font-medium text-blue-600 dark:text-blue-400 opacity-0 group-hover:opacity-100 transition-opacity duration-300"}," Click to select ",-1))],8,fEt))),128))])]),e.showPlaceholderModal?(T(),M("div",vEt,[c("div",yEt,[t[96]||(t[96]=c("h3",{class:"text-lg font-semibold mb-4"},"Fill in the placeholders",-1)),c("div",EEt,[c("div",SEt,[t[94]||(t[94]=c("h4",{class:"text-sm font-medium mb-2 text-gray-600 dark:text-gray-400"},"Live Preview:",-1)),c("div",xEt,[c("span",TEt,X(e.getPromptContent(e.previewPrompt)),1)])]),c("div",wEt,[c("div",CEt,[(T(!0),M(je,null,at(e.parsedPlaceholders,(r,i)=>(T(),M("div",{key:r.fullText,class:"flex flex-col"},[c("label",{for:"placeholder-"+i,class:"text-sm font-medium mb-1"},X(r.label),9,AEt),r.type==="text"?F((T(),M("input",{key:0,id:"placeholder-"+i,"onUpdate:modelValue":s=>e.placeholderValues[i]=s,type:"text",class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",placeholder:r.label,onInput:t[49]||(t[49]=(...s)=>e.updatePreview&&e.updatePreview(...s))},null,40,REt)),[[_e,e.placeholderValues[i]]]):Y("",!0),r.type==="int"?F((T(),M("input",{key:1,id:"placeholder-"+i,"onUpdate:modelValue":s=>e.placeholderValues[i]=s,type:"number",step:"1",class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",onInput:t[50]||(t[50]=(...s)=>e.updatePreview&&e.updatePreview(...s))},null,40,MEt)),[[_e,e.placeholderValues[i],void 0,{number:!0}]]):Y("",!0),r.type==="float"?F((T(),M("input",{key:2,id:"placeholder-"+i,"onUpdate:modelValue":s=>e.placeholderValues[i]=s,type:"number",step:"0.01",class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",onInput:t[51]||(t[51]=(...s)=>e.updatePreview&&e.updatePreview(...s))},null,40,NEt)),[[_e,e.placeholderValues[i],void 0,{number:!0}]]):Y("",!0),r.type==="multiline"?F((T(),M("textarea",{key:3,id:"placeholder-"+i,"onUpdate:modelValue":s=>e.placeholderValues[i]=s,rows:"4",class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",onInput:t[52]||(t[52]=(...s)=>e.updatePreview&&e.updatePreview(...s))},null,40,kEt)),[[_e,e.placeholderValues[i]]]):Y("",!0),r.type==="code"?(T(),M("div",IEt,[c("div",OEt,X(r.language||"Plain text"),1),F(c("textarea",{id:"placeholder-"+i,"onUpdate:modelValue":s=>e.placeholderValues[i]=s,rows:"8",class:"w-full p-2 font-mono bg-gray-100 dark:bg-gray-900 border-t",onInput:t[53]||(t[53]=(...s)=>e.updatePreview&&e.updatePreview(...s))},null,40,DEt),[[_e,e.placeholderValues[i]]])])):Y("",!0),r.type==="options"?F((T(),M("select",{key:5,id:"placeholder-"+i,"onUpdate:modelValue":s=>e.placeholderValues[i]=s,class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",onChange:t[54]||(t[54]=(...s)=>e.updatePreview&&e.updatePreview(...s))},[t[95]||(t[95]=c("option",{value:"",disabled:""},"Select an option",-1)),(T(!0),M(je,null,at(r.options,s=>(T(),M("option",{key:s,value:s},X(s),9,PEt))),128))],40,LEt)),[[Qt,e.placeholderValues[i]]]):Y("",!0)]))),128))])])]),c("div",FEt,[c("button",{onClick:t[55]||(t[55]=(...r)=>e.cancelPlaceholders&&e.cancelPlaceholders(...r)),class:"px-4 py-2 text-gray-600 hover:text-gray-800 dark:text-gray-400 dark:hover:text-gray-200"}," Cancel "),c("button",{onClick:t[56]||(t[56]=(...r)=>e.applyPlaceholders&&e.applyPlaceholders(...r)),class:"px-4 py-2 bg-blue-500 text-white rounded-md hover:bg-blue-600"}," Apply ")])])])):Y("",!0)])):Y("",!0)]),_:1})):Y("",!0),e.currentDiscussion.id?Y("",!0):(T(),Tt(CI,{key:1})),t[98]||(t[98]=c("div",null,[c("br"),c("br"),c("br"),c("br"),c("br"),c("br"),c("br")],-1))]),t[99]||(t[99]=c("div",{class:"absolute w-full bottom-0 bg-transparent p-10 pt-16 bg-gradient-to-t from-bg-light dark:from-bg-dark from-5% via-bg-light dark:via-bg-dark via-10% to-transparent to-100%"},null,-1))],2),e.currentDiscussion.id?(T(),M("div",UEt,[W(wI,{ref:"chatBox",loading:e.isGenerating,discussionList:e.discussionArr,"on-show-toast-message":e.showToastMessage,"on-talk":e.talk,onPersonalitySelected:e.recoverFiles,onMessageSentEvent:e.sendMsg,onSendCMDEvent:e.sendCmd,onAddWebLink:e.add_webpage,onCreateEmptyUserMessage:e.createEmptyUserMessage,onCreateEmptyAIMessage:e.createEmptyAIMessage,onStopGenerating:e.stopGenerating,onLoaded:e.recoverFiles},null,8,["loading","discussionList","on-show-toast-message","on-talk","onPersonalitySelected","onMessageSentEvent","onSendCMDEvent","onAddWebLink","onCreateEmptyUserMessage","onCreateEmptyAIMessage","onStopGenerating","onLoaded"])])):Y("",!0)])):Y("",!0),W(ji,{name:"slide-left"},{default:Ge(()=>[e.showRightPanel?(T(),M("div",BEt,[c("div",GEt,null,512)])):Y("",!0)]),_:1}),W(ky,{reference:"database_selector",class:"z-20",show:e.database_selectorDialogVisible,choices:e.databases,"can-remove":!0,onChoiceRemoved:e.ondatabase_selectorDialogRemoved,onChoiceSelected:e.ondatabase_selectorDialogSelected,onCloseDialog:e.onclosedatabase_selectorDialog,onChoiceValidated:e.onvalidatedatabase_selectorChoice},null,8,["show","choices","onChoiceRemoved","onChoiceSelected","onCloseDialog","onChoiceValidated"]),F(c("div",zEt,[W(oy,{ref:"progress",progress:e.progress_value,class:"w-full h-4"},null,8,["progress"]),c("p",VEt,X(e.loading_infos)+" ...",1)],512),[[Dt,e.progress_visibility]]),W(UI,{ref:"personality_editor",config:e.currentPersonConfig,personality:e.selectedPersonality},null,8,["config","personality"]),c("div",HEt,[W(BI,{ref:"news"},null,512)])],64))}}),KEt=bt(WEt,[["__scopeId","data-v-dcd0e4ad"]]);/** * @license * Copyright 2010-2023 Three.js Authors * SPDX-License-Identifier: MIT - */const qy="159",jEt=0,EA=1,QEt=2,zI=1,XEt=2,bs=3,Fs=0,kr=1,Vi=2,So=0,bl=1,SA=2,xA=3,TA=4,ZEt=5,na=100,JEt=101,eSt=102,wA=103,CA=104,tSt=200,nSt=201,rSt=202,iSt=203,R1=204,M1=205,sSt=206,oSt=207,aSt=208,lSt=209,cSt=210,dSt=211,uSt=212,pSt=213,hSt=214,mSt=0,fSt=1,gSt=2,th=3,_St=4,bSt=5,vSt=6,ySt=7,Yy=0,ESt=1,SSt=2,xo=0,xSt=1,TSt=2,wSt=3,CSt=4,ASt=5,AA="attached",RSt="detached",VI=300,Ol=301,Dl=302,N1=303,k1=304,sm=306,Ll=1e3,Jr=1001,nh=1002,$n=1003,I1=1004,mp=1005,Cr=1006,HI=1007,xa=1008,To=1009,MSt=1010,NSt=1011,$y=1012,qI=1013,bo=1014,xs=1015,_d=1016,YI=1017,$I=1018,pa=1020,kSt=1021,ei=1023,ISt=1024,OSt=1025,ha=1026,Pl=1027,DSt=1028,WI=1029,LSt=1030,KI=1031,jI=1033,Q0=33776,X0=33777,Z0=33778,J0=33779,RA=35840,MA=35841,NA=35842,kA=35843,QI=36196,IA=37492,OA=37496,DA=37808,LA=37809,PA=37810,FA=37811,UA=37812,BA=37813,GA=37814,zA=37815,VA=37816,HA=37817,qA=37818,YA=37819,$A=37820,WA=37821,eb=36492,KA=36494,jA=36495,PSt=36283,QA=36284,XA=36285,ZA=36286,bd=2300,Fl=2301,tb=2302,JA=2400,eR=2401,tR=2402,FSt=2500,USt=0,XI=1,O1=2,ZI=3e3,ma=3001,BSt=3200,GSt=3201,Wy=0,zSt=1,ti="",Mn="srgb",er="srgb-linear",Ky="display-p3",om="display-p3-linear",rh="linear",bn="srgb",ih="rec709",sh="p3",Ba=7680,nR=519,VSt=512,HSt=513,qSt=514,JI=515,YSt=516,$St=517,WSt=518,KSt=519,D1=35044,rR="300 es",L1=1035,Ts=2e3,oh=2001;class sc{addEventListener(e,t){this._listeners===void 0&&(this._listeners={});const r=this._listeners;r[e]===void 0&&(r[e]=[]),r[e].indexOf(t)===-1&&r[e].push(t)}hasEventListener(e,t){if(this._listeners===void 0)return!1;const r=this._listeners;return r[e]!==void 0&&r[e].indexOf(t)!==-1}removeEventListener(e,t){if(this._listeners===void 0)return;const i=this._listeners[e];if(i!==void 0){const s=i.indexOf(t);s!==-1&&i.splice(s,1)}}dispatchEvent(e){if(this._listeners===void 0)return;const r=this._listeners[e.type];if(r!==void 0){e.target=this;const i=r.slice(0);for(let s=0,o=i.length;s>8&255]+rr[n>>16&255]+rr[n>>24&255]+"-"+rr[e&255]+rr[e>>8&255]+"-"+rr[e>>16&15|64]+rr[e>>24&255]+"-"+rr[t&63|128]+rr[t>>8&255]+"-"+rr[t>>16&255]+rr[t>>24&255]+rr[r&255]+rr[r>>8&255]+rr[r>>16&255]+rr[r>>24&255]).toLowerCase()}function or(n,e,t){return Math.max(e,Math.min(t,n))}function jy(n,e){return(n%e+e)%e}function jSt(n,e,t,r,i){return r+(n-e)*(i-r)/(t-e)}function QSt(n,e,t){return n!==e?(t-n)/(e-n):0}function Xc(n,e,t){return(1-t)*n+t*e}function XSt(n,e,t,r){return Xc(n,e,1-Math.exp(-t*r))}function ZSt(n,e=1){return e-Math.abs(jy(n,e*2)-e)}function JSt(n,e,t){return n<=e?0:n>=t?1:(n=(n-e)/(t-e),n*n*(3-2*n))}function e2t(n,e,t){return n<=e?0:n>=t?1:(n=(n-e)/(t-e),n*n*n*(n*(n*6-15)+10))}function t2t(n,e){return n+Math.floor(Math.random()*(e-n+1))}function n2t(n,e){return n+Math.random()*(e-n)}function r2t(n){return n*(.5-Math.random())}function i2t(n){n!==void 0&&(iR=n);let e=iR+=1831565813;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}function s2t(n){return n*Qc}function o2t(n){return n*Ul}function P1(n){return(n&n-1)===0&&n!==0}function a2t(n){return Math.pow(2,Math.ceil(Math.log(n)/Math.LN2))}function ah(n){return Math.pow(2,Math.floor(Math.log(n)/Math.LN2))}function l2t(n,e,t,r,i){const s=Math.cos,o=Math.sin,a=s(t/2),l=o(t/2),d=s((e+r)/2),u=o((e+r)/2),m=s((e-r)/2),f=o((e-r)/2),g=s((r-e)/2),h=o((r-e)/2);switch(i){case"XYX":n.set(a*u,l*m,l*f,a*d);break;case"YZY":n.set(l*f,a*u,l*m,a*d);break;case"ZXZ":n.set(l*m,l*f,a*u,a*d);break;case"XZX":n.set(a*u,l*h,l*g,a*d);break;case"YXY":n.set(l*g,a*u,l*h,a*d);break;case"ZYZ":n.set(l*h,l*g,a*u,a*d);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+i)}}function Hi(n,e){switch(e.constructor){case Float32Array:return n;case Uint32Array:return n/4294967295;case Uint16Array:return n/65535;case Uint8Array:return n/255;case Int32Array:return Math.max(n/2147483647,-1);case Int16Array:return Math.max(n/32767,-1);case Int8Array:return Math.max(n/127,-1);default:throw new Error("Invalid component type.")}}function an(n,e){switch(e.constructor){case Float32Array:return n;case Uint32Array:return Math.round(n*4294967295);case Uint16Array:return Math.round(n*65535);case Uint8Array:return Math.round(n*255);case Int32Array:return Math.round(n*2147483647);case Int16Array:return Math.round(n*32767);case Int8Array:return Math.round(n*127);default:throw new Error("Invalid component type.")}}const c2t={DEG2RAD:Qc,RAD2DEG:Ul,generateUUID:Ri,clamp:or,euclideanModulo:jy,mapLinear:jSt,inverseLerp:QSt,lerp:Xc,damp:XSt,pingpong:ZSt,smoothstep:JSt,smootherstep:e2t,randInt:t2t,randFloat:n2t,randFloatSpread:r2t,seededRandom:i2t,degToRad:s2t,radToDeg:o2t,isPowerOfTwo:P1,ceilPowerOfTwo:a2t,floorPowerOfTwo:ah,setQuaternionFromProperEuler:l2t,normalize:an,denormalize:Hi};class $t{constructor(e=0,t=0){$t.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const t=this.x,r=this.y,i=e.elements;return this.x=i[0]*t+i[3]*r+i[6],this.y=i[1]*t+i[4]*r+i[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}clampLength(e,t){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Math.max(e,Math.min(t,r)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const r=this.dot(e)/t;return Math.acos(or(r,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,r=this.y-e.y;return t*t+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,r){return this.x=e.x+(t.x-e.x)*r,this.y=e.y+(t.y-e.y)*r,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){const r=Math.cos(t),i=Math.sin(t),s=this.x-e.x,o=this.y-e.y;return this.x=s*r-o*i+e.x,this.y=s*i+o*r+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class Vt{constructor(e,t,r,i,s,o,a,l,d){Vt.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,r,i,s,o,a,l,d)}set(e,t,r,i,s,o,a,l,d){const u=this.elements;return u[0]=e,u[1]=i,u[2]=a,u[3]=t,u[4]=s,u[5]=l,u[6]=r,u[7]=o,u[8]=d,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const t=this.elements,r=e.elements;return t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=r[3],t[4]=r[4],t[5]=r[5],t[6]=r[6],t[7]=r[7],t[8]=r[8],this}extractBasis(e,t,r){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),r.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const r=e.elements,i=t.elements,s=this.elements,o=r[0],a=r[3],l=r[6],d=r[1],u=r[4],m=r[7],f=r[2],g=r[5],h=r[8],v=i[0],b=i[3],_=i[6],y=i[1],E=i[4],x=i[7],A=i[2],w=i[5],N=i[8];return s[0]=o*v+a*y+l*A,s[3]=o*b+a*E+l*w,s[6]=o*_+a*x+l*N,s[1]=d*v+u*y+m*A,s[4]=d*b+u*E+m*w,s[7]=d*_+u*x+m*N,s[2]=f*v+g*y+h*A,s[5]=f*b+g*E+h*w,s[8]=f*_+g*x+h*N,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){const e=this.elements,t=e[0],r=e[1],i=e[2],s=e[3],o=e[4],a=e[5],l=e[6],d=e[7],u=e[8];return t*o*u-t*a*d-r*s*u+r*a*l+i*s*d-i*o*l}invert(){const e=this.elements,t=e[0],r=e[1],i=e[2],s=e[3],o=e[4],a=e[5],l=e[6],d=e[7],u=e[8],m=u*o-a*d,f=a*l-u*s,g=d*s-o*l,h=t*m+r*f+i*g;if(h===0)return this.set(0,0,0,0,0,0,0,0,0);const v=1/h;return e[0]=m*v,e[1]=(i*d-u*r)*v,e[2]=(a*r-i*o)*v,e[3]=f*v,e[4]=(u*t-i*l)*v,e[5]=(i*s-a*t)*v,e[6]=g*v,e[7]=(r*l-d*t)*v,e[8]=(o*t-r*s)*v,this}transpose(){let e;const t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,r,i,s,o,a){const l=Math.cos(s),d=Math.sin(s);return this.set(r*l,r*d,-r*(l*o+d*a)+o+e,-i*d,i*l,-i*(-d*o+l*a)+a+t,0,0,1),this}scale(e,t){return this.premultiply(nb.makeScale(e,t)),this}rotate(e){return this.premultiply(nb.makeRotation(-e)),this}translate(e,t){return this.premultiply(nb.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){const t=Math.cos(e),r=Math.sin(e);return this.set(t,-r,0,r,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){const t=this.elements,r=e.elements;for(let i=0;i<9;i++)if(t[i]!==r[i])return!1;return!0}fromArray(e,t=0){for(let r=0;r<9;r++)this.elements[r]=e[r+t];return this}toArray(e=[],t=0){const r=this.elements;return e[t]=r[0],e[t+1]=r[1],e[t+2]=r[2],e[t+3]=r[3],e[t+4]=r[4],e[t+5]=r[5],e[t+6]=r[6],e[t+7]=r[7],e[t+8]=r[8],e}clone(){return new this.constructor().fromArray(this.elements)}}const nb=new Vt;function eO(n){for(let e=n.length-1;e>=0;--e)if(n[e]>=65535)return!0;return!1}function vd(n){return document.createElementNS("http://www.w3.org/1999/xhtml",n)}function d2t(){const n=vd("canvas");return n.style.display="block",n}const sR={};function Zc(n){n in sR||(sR[n]=!0,console.warn(n))}const oR=new Vt().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),aR=new Vt().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),Su={[er]:{transfer:rh,primaries:ih,toReference:n=>n,fromReference:n=>n},[Mn]:{transfer:bn,primaries:ih,toReference:n=>n.convertSRGBToLinear(),fromReference:n=>n.convertLinearToSRGB()},[om]:{transfer:rh,primaries:sh,toReference:n=>n.applyMatrix3(aR),fromReference:n=>n.applyMatrix3(oR)},[Ky]:{transfer:bn,primaries:sh,toReference:n=>n.convertSRGBToLinear().applyMatrix3(aR),fromReference:n=>n.applyMatrix3(oR).convertLinearToSRGB()}},u2t=new Set([er,om]),tn={enabled:!0,_workingColorSpace:er,get legacyMode(){return console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),!this.enabled},set legacyMode(n){console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),this.enabled=!n},get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(n){if(!u2t.has(n))throw new Error(`Unsupported working color space, "${n}".`);this._workingColorSpace=n},convert:function(n,e,t){if(this.enabled===!1||e===t||!e||!t)return n;const r=Su[e].toReference,i=Su[t].fromReference;return i(r(n))},fromWorkingColorSpace:function(n,e){return this.convert(n,this._workingColorSpace,e)},toWorkingColorSpace:function(n,e){return this.convert(n,e,this._workingColorSpace)},getPrimaries:function(n){return Su[n].primaries},getTransfer:function(n){return n===ti?rh:Su[n].transfer}};function vl(n){return n<.04045?n*.0773993808:Math.pow(n*.9478672986+.0521327014,2.4)}function rb(n){return n<.0031308?n*12.92:1.055*Math.pow(n,.41666)-.055}let Ga;class tO{static getDataURL(e){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>"u")return e.src;let t;if(e instanceof HTMLCanvasElement)t=e;else{Ga===void 0&&(Ga=vd("canvas")),Ga.width=e.width,Ga.height=e.height;const r=Ga.getContext("2d");e instanceof ImageData?r.putImageData(e,0,0):r.drawImage(e,0,0,e.width,e.height),t=Ga}return t.width>2048||t.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),t.toDataURL("image/jpeg",.6)):t.toDataURL("image/png")}static sRGBToLinear(e){if(typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&e instanceof ImageBitmap){const t=vd("canvas");t.width=e.width,t.height=e.height;const r=t.getContext("2d");r.drawImage(e,0,0,e.width,e.height);const i=r.getImageData(0,0,e.width,e.height),s=i.data;for(let o=0;o0&&(r.userData=this.userData),t||(e.textures[this.uuid]=r),r}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==VI)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case Ll:e.x=e.x-Math.floor(e.x);break;case Jr:e.x=e.x<0?0:1;break;case nh:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case Ll:e.y=e.y-Math.floor(e.y);break;case Jr:e.y=e.y<0?0:1;break;case nh:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}get encoding(){return Zc("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace===Mn?ma:ZI}set encoding(e){Zc("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace=e===ma?Mn:ti}}Jn.DEFAULT_IMAGE=null;Jn.DEFAULT_MAPPING=VI;Jn.DEFAULT_ANISOTROPY=1;class mn{constructor(e=0,t=0,r=0,i=1){mn.prototype.isVector4=!0,this.x=e,this.y=t,this.z=r,this.w=i}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,r,i){return this.x=e,this.y=t,this.z=r,this.w=i,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w!==void 0?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const t=this.x,r=this.y,i=this.z,s=this.w,o=e.elements;return this.x=o[0]*t+o[4]*r+o[8]*i+o[12]*s,this.y=o[1]*t+o[5]*r+o[9]*i+o[13]*s,this.z=o[2]*t+o[6]*r+o[10]*i+o[14]*s,this.w=o[3]*t+o[7]*r+o[11]*i+o[15]*s,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,r,i,s;const l=e.elements,d=l[0],u=l[4],m=l[8],f=l[1],g=l[5],h=l[9],v=l[2],b=l[6],_=l[10];if(Math.abs(u-f)<.01&&Math.abs(m-v)<.01&&Math.abs(h-b)<.01){if(Math.abs(u+f)<.1&&Math.abs(m+v)<.1&&Math.abs(h+b)<.1&&Math.abs(d+g+_-3)<.1)return this.set(1,0,0,0),this;t=Math.PI;const E=(d+1)/2,x=(g+1)/2,A=(_+1)/2,w=(u+f)/4,N=(m+v)/4,L=(h+b)/4;return E>x&&E>A?E<.01?(r=0,i=.707106781,s=.707106781):(r=Math.sqrt(E),i=w/r,s=N/r):x>A?x<.01?(r=.707106781,i=0,s=.707106781):(i=Math.sqrt(x),r=w/i,s=L/i):A<.01?(r=.707106781,i=.707106781,s=0):(s=Math.sqrt(A),r=N/s,i=L/s),this.set(r,i,s,t),this}let y=Math.sqrt((b-h)*(b-h)+(m-v)*(m-v)+(f-u)*(f-u));return Math.abs(y)<.001&&(y=1),this.x=(b-h)/y,this.y=(m-v)/y,this.z=(f-u)/y,this.w=Math.acos((d+g+_-1)/2),this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this.w=Math.max(e.w,Math.min(t.w,this.w)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this.w=Math.max(e,Math.min(t,this.w)),this}clampLength(e,t){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Math.max(e,Math.min(t,r)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}lerpVectors(e,t,r){return this.x=e.x+(t.x-e.x)*r,this.y=e.y+(t.y-e.y)*r,this.z=e.z+(t.z-e.z)*r,this.w=e.w+(t.w-e.w)*r,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class m2t extends sc{constructor(e=1,t=1,r={}){super(),this.isRenderTarget=!0,this.width=e,this.height=t,this.depth=1,this.scissor=new mn(0,0,e,t),this.scissorTest=!1,this.viewport=new mn(0,0,e,t);const i={width:e,height:t,depth:1};r.encoding!==void 0&&(Zc("THREE.WebGLRenderTarget: option.encoding has been replaced by option.colorSpace."),r.colorSpace=r.encoding===ma?Mn:ti),r=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:Cr,depthBuffer:!0,stencilBuffer:!1,depthTexture:null,samples:0},r),this.texture=new Jn(i,r.mapping,r.wrapS,r.wrapT,r.magFilter,r.minFilter,r.format,r.type,r.anisotropy,r.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.flipY=!1,this.texture.generateMipmaps=r.generateMipmaps,this.texture.internalFormat=r.internalFormat,this.depthBuffer=r.depthBuffer,this.stencilBuffer=r.stencilBuffer,this.depthTexture=r.depthTexture,this.samples=r.samples}setSize(e,t,r=1){(this.width!==e||this.height!==t||this.depth!==r)&&(this.width=e,this.height=t,this.depth=r,this.texture.image.width=e,this.texture.image.height=t,this.texture.image.depth=r,this.dispose()),this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return new this.constructor().copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.texture=e.texture.clone(),this.texture.isRenderTargetTexture=!0;const t=Object.assign({},e.texture.image);return this.texture.source=new nO(t),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,e.depthTexture!==null&&(this.depthTexture=e.depthTexture.clone()),this.samples=e.samples,this}dispose(){this.dispatchEvent({type:"dispose"})}}class Ta extends m2t{constructor(e=1,t=1,r={}){super(e,t,r),this.isWebGLRenderTarget=!0}}class rO extends Jn{constructor(e=null,t=1,r=1,i=1){super(null),this.isDataArrayTexture=!0,this.image={data:e,width:t,height:r,depth:i},this.magFilter=$n,this.minFilter=$n,this.wrapR=Jr,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class f2t extends Jn{constructor(e=null,t=1,r=1,i=1){super(null),this.isData3DTexture=!0,this.image={data:e,width:t,height:r,depth:i},this.magFilter=$n,this.minFilter=$n,this.wrapR=Jr,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class Uo{constructor(e=0,t=0,r=0,i=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=r,this._w=i}static slerpFlat(e,t,r,i,s,o,a){let l=r[i+0],d=r[i+1],u=r[i+2],m=r[i+3];const f=s[o+0],g=s[o+1],h=s[o+2],v=s[o+3];if(a===0){e[t+0]=l,e[t+1]=d,e[t+2]=u,e[t+3]=m;return}if(a===1){e[t+0]=f,e[t+1]=g,e[t+2]=h,e[t+3]=v;return}if(m!==v||l!==f||d!==g||u!==h){let b=1-a;const _=l*f+d*g+u*h+m*v,y=_>=0?1:-1,E=1-_*_;if(E>Number.EPSILON){const A=Math.sqrt(E),w=Math.atan2(A,_*y);b=Math.sin(b*w)/A,a=Math.sin(a*w)/A}const x=a*y;if(l=l*b+f*x,d=d*b+g*x,u=u*b+h*x,m=m*b+v*x,b===1-a){const A=1/Math.sqrt(l*l+d*d+u*u+m*m);l*=A,d*=A,u*=A,m*=A}}e[t]=l,e[t+1]=d,e[t+2]=u,e[t+3]=m}static multiplyQuaternionsFlat(e,t,r,i,s,o){const a=r[i],l=r[i+1],d=r[i+2],u=r[i+3],m=s[o],f=s[o+1],g=s[o+2],h=s[o+3];return e[t]=a*h+u*m+l*g-d*f,e[t+1]=l*h+u*f+d*m-a*g,e[t+2]=d*h+u*g+a*f-l*m,e[t+3]=u*h-a*m-l*f-d*g,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,r,i){return this._x=e,this._y=t,this._z=r,this._w=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t){const r=e._x,i=e._y,s=e._z,o=e._order,a=Math.cos,l=Math.sin,d=a(r/2),u=a(i/2),m=a(s/2),f=l(r/2),g=l(i/2),h=l(s/2);switch(o){case"XYZ":this._x=f*u*m+d*g*h,this._y=d*g*m-f*u*h,this._z=d*u*h+f*g*m,this._w=d*u*m-f*g*h;break;case"YXZ":this._x=f*u*m+d*g*h,this._y=d*g*m-f*u*h,this._z=d*u*h-f*g*m,this._w=d*u*m+f*g*h;break;case"ZXY":this._x=f*u*m-d*g*h,this._y=d*g*m+f*u*h,this._z=d*u*h+f*g*m,this._w=d*u*m-f*g*h;break;case"ZYX":this._x=f*u*m-d*g*h,this._y=d*g*m+f*u*h,this._z=d*u*h-f*g*m,this._w=d*u*m+f*g*h;break;case"YZX":this._x=f*u*m+d*g*h,this._y=d*g*m+f*u*h,this._z=d*u*h-f*g*m,this._w=d*u*m-f*g*h;break;case"XZY":this._x=f*u*m-d*g*h,this._y=d*g*m-f*u*h,this._z=d*u*h+f*g*m,this._w=d*u*m+f*g*h;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return t!==!1&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const r=t/2,i=Math.sin(r);return this._x=e.x*i,this._y=e.y*i,this._z=e.z*i,this._w=Math.cos(r),this._onChangeCallback(),this}setFromRotationMatrix(e){const t=e.elements,r=t[0],i=t[4],s=t[8],o=t[1],a=t[5],l=t[9],d=t[2],u=t[6],m=t[10],f=r+a+m;if(f>0){const g=.5/Math.sqrt(f+1);this._w=.25/g,this._x=(u-l)*g,this._y=(s-d)*g,this._z=(o-i)*g}else if(r>a&&r>m){const g=2*Math.sqrt(1+r-a-m);this._w=(u-l)/g,this._x=.25*g,this._y=(i+o)/g,this._z=(s+d)/g}else if(a>m){const g=2*Math.sqrt(1+a-r-m);this._w=(s-d)/g,this._x=(i+o)/g,this._y=.25*g,this._z=(l+u)/g}else{const g=2*Math.sqrt(1+m-r-a);this._w=(o-i)/g,this._x=(s+d)/g,this._y=(l+u)/g,this._z=.25*g}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let r=e.dot(t)+1;return rMath.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=r):(this._x=0,this._y=-e.z,this._z=e.y,this._w=r)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=r),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(or(this.dot(e),-1,1)))}rotateTowards(e,t){const r=this.angleTo(e);if(r===0)return this;const i=Math.min(1,t/r);return this.slerp(e,i),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){const r=e._x,i=e._y,s=e._z,o=e._w,a=t._x,l=t._y,d=t._z,u=t._w;return this._x=r*u+o*a+i*d-s*l,this._y=i*u+o*l+s*a-r*d,this._z=s*u+o*d+r*l-i*a,this._w=o*u-r*a-i*l-s*d,this._onChangeCallback(),this}slerp(e,t){if(t===0)return this;if(t===1)return this.copy(e);const r=this._x,i=this._y,s=this._z,o=this._w;let a=o*e._w+r*e._x+i*e._y+s*e._z;if(a<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,a=-a):this.copy(e),a>=1)return this._w=o,this._x=r,this._y=i,this._z=s,this;const l=1-a*a;if(l<=Number.EPSILON){const g=1-t;return this._w=g*o+t*this._w,this._x=g*r+t*this._x,this._y=g*i+t*this._y,this._z=g*s+t*this._z,this.normalize(),this._onChangeCallback(),this}const d=Math.sqrt(l),u=Math.atan2(d,a),m=Math.sin((1-t)*u)/d,f=Math.sin(t*u)/d;return this._w=o*m+this._w*f,this._x=r*m+this._x*f,this._y=i*m+this._y*f,this._z=s*m+this._z*f,this._onChangeCallback(),this}slerpQuaternions(e,t,r){return this.copy(e).slerp(t,r)}random(){const e=Math.random(),t=Math.sqrt(1-e),r=Math.sqrt(e),i=2*Math.PI*Math.random(),s=2*Math.PI*Math.random();return this.set(t*Math.cos(i),r*Math.sin(s),r*Math.cos(s),t*Math.sin(i))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class he{constructor(e=0,t=0,r=0){he.prototype.isVector3=!0,this.x=e,this.y=t,this.z=r}set(e,t,r){return r===void 0&&(r=this.z),this.x=e,this.y=t,this.z=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(lR.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(lR.setFromAxisAngle(e,t))}applyMatrix3(e){const t=this.x,r=this.y,i=this.z,s=e.elements;return this.x=s[0]*t+s[3]*r+s[6]*i,this.y=s[1]*t+s[4]*r+s[7]*i,this.z=s[2]*t+s[5]*r+s[8]*i,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,r=this.y,i=this.z,s=e.elements,o=1/(s[3]*t+s[7]*r+s[11]*i+s[15]);return this.x=(s[0]*t+s[4]*r+s[8]*i+s[12])*o,this.y=(s[1]*t+s[5]*r+s[9]*i+s[13])*o,this.z=(s[2]*t+s[6]*r+s[10]*i+s[14])*o,this}applyQuaternion(e){const t=this.x,r=this.y,i=this.z,s=e.x,o=e.y,a=e.z,l=e.w,d=2*(o*i-a*r),u=2*(a*t-s*i),m=2*(s*r-o*t);return this.x=t+l*d+o*m-a*u,this.y=r+l*u+a*d-s*m,this.z=i+l*m+s*u-o*d,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const t=this.x,r=this.y,i=this.z,s=e.elements;return this.x=s[0]*t+s[4]*r+s[8]*i,this.y=s[1]*t+s[5]*r+s[9]*i,this.z=s[2]*t+s[6]*r+s[10]*i,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this}clampLength(e,t){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Math.max(e,Math.min(t,r)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,r){return this.x=e.x+(t.x-e.x)*r,this.y=e.y+(t.y-e.y)*r,this.z=e.z+(t.z-e.z)*r,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){const r=e.x,i=e.y,s=e.z,o=t.x,a=t.y,l=t.z;return this.x=i*l-s*a,this.y=s*o-r*l,this.z=r*a-i*o,this}projectOnVector(e){const t=e.lengthSq();if(t===0)return this.set(0,0,0);const r=e.dot(this)/t;return this.copy(e).multiplyScalar(r)}projectOnPlane(e){return sb.copy(this).projectOnVector(e),this.sub(sb)}reflect(e){return this.sub(sb.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const r=this.dot(e)/t;return Math.acos(or(r,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,r=this.y-e.y,i=this.z-e.z;return t*t+r*r+i*i}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,r){const i=Math.sin(t)*e;return this.x=i*Math.sin(r),this.y=Math.cos(t)*e,this.z=i*Math.cos(r),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,r){return this.x=e*Math.sin(t),this.y=r,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const t=this.setFromMatrixColumn(e,0).length(),r=this.setFromMatrixColumn(e,1).length(),i=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=r,this.z=i,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=(Math.random()-.5)*2,t=Math.random()*Math.PI*2,r=Math.sqrt(1-e**2);return this.x=r*Math.cos(t),this.y=r*Math.sin(t),this.z=e,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const sb=new he,lR=new Uo;class zs{constructor(e=new he(1/0,1/0,1/0),t=new he(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,r=e.length;tthis.max.x||e.ythis.max.y||e.zthis.max.z)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return!(e.max.xthis.max.x||e.max.ythis.max.y||e.max.zthis.max.z)}intersectsSphere(e){return this.clampPoint(e.center,vi),vi.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,r;return e.normal.x>0?(t=e.normal.x*this.min.x,r=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,r=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,r+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,r+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,r+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,r+=e.normal.z*this.min.z),t<=-e.constant&&r>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(Sc),Tu.subVectors(this.max,Sc),za.subVectors(e.a,Sc),Va.subVectors(e.b,Sc),Ha.subVectors(e.c,Sc),Xs.subVectors(Va,za),Zs.subVectors(Ha,Va),Yo.subVectors(za,Ha);let t=[0,-Xs.z,Xs.y,0,-Zs.z,Zs.y,0,-Yo.z,Yo.y,Xs.z,0,-Xs.x,Zs.z,0,-Zs.x,Yo.z,0,-Yo.x,-Xs.y,Xs.x,0,-Zs.y,Zs.x,0,-Yo.y,Yo.x,0];return!ob(t,za,Va,Ha,Tu)||(t=[1,0,0,0,1,0,0,0,1],!ob(t,za,Va,Ha,Tu))?!1:(wu.crossVectors(Xs,Zs),t=[wu.x,wu.y,wu.z],ob(t,za,Va,Ha,Tu))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,vi).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(vi).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()?this:(us[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),us[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),us[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),us[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),us[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),us[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),us[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),us[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(us),this)}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const us=[new he,new he,new he,new he,new he,new he,new he,new he],vi=new he,xu=new zs,za=new he,Va=new he,Ha=new he,Xs=new he,Zs=new he,Yo=new he,Sc=new he,Tu=new he,wu=new he,$o=new he;function ob(n,e,t,r,i){for(let s=0,o=n.length-3;s<=o;s+=3){$o.fromArray(n,s);const a=i.x*Math.abs($o.x)+i.y*Math.abs($o.y)+i.z*Math.abs($o.z),l=e.dot($o),d=t.dot($o),u=r.dot($o);if(Math.max(-Math.max(l,d,u),Math.min(l,d,u))>a)return!1}return!0}const g2t=new zs,xc=new he,ab=new he;class ss{constructor(e=new he,t=-1){this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const r=this.center;t!==void 0?r.copy(t):g2t.setFromPoints(e).getCenter(r);let i=0;for(let s=0,o=e.length;sthis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;xc.subVectors(e,this.center);const t=xc.lengthSq();if(t>this.radius*this.radius){const r=Math.sqrt(t),i=(r-this.radius)*.5;this.center.addScaledVector(xc,i/r),this.radius+=i}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(ab.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(xc.copy(e.center).add(ab)),this.expandByPoint(xc.copy(e.center).sub(ab))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}}const ps=new he,lb=new he,Cu=new he,Js=new he,cb=new he,Au=new he,db=new he;class am{constructor(e=new he,t=new he(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,ps)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const r=t.dot(this.direction);return r<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,r)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=ps.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(ps.copy(this.origin).addScaledVector(this.direction,t),ps.distanceToSquared(e))}distanceSqToSegment(e,t,r,i){lb.copy(e).add(t).multiplyScalar(.5),Cu.copy(t).sub(e).normalize(),Js.copy(this.origin).sub(lb);const s=e.distanceTo(t)*.5,o=-this.direction.dot(Cu),a=Js.dot(this.direction),l=-Js.dot(Cu),d=Js.lengthSq(),u=Math.abs(1-o*o);let m,f,g,h;if(u>0)if(m=o*l-a,f=o*a-l,h=s*u,m>=0)if(f>=-h)if(f<=h){const v=1/u;m*=v,f*=v,g=m*(m+o*f+2*a)+f*(o*m+f+2*l)+d}else f=s,m=Math.max(0,-(o*f+a)),g=-m*m+f*(f+2*l)+d;else f=-s,m=Math.max(0,-(o*f+a)),g=-m*m+f*(f+2*l)+d;else f<=-h?(m=Math.max(0,-(-o*s+a)),f=m>0?-s:Math.min(Math.max(-s,-l),s),g=-m*m+f*(f+2*l)+d):f<=h?(m=0,f=Math.min(Math.max(-s,-l),s),g=f*(f+2*l)+d):(m=Math.max(0,-(o*s+a)),f=m>0?s:Math.min(Math.max(-s,-l),s),g=-m*m+f*(f+2*l)+d);else f=o>0?-s:s,m=Math.max(0,-(o*f+a)),g=-m*m+f*(f+2*l)+d;return r&&r.copy(this.origin).addScaledVector(this.direction,m),i&&i.copy(lb).addScaledVector(Cu,f),g}intersectSphere(e,t){ps.subVectors(e.center,this.origin);const r=ps.dot(this.direction),i=ps.dot(ps)-r*r,s=e.radius*e.radius;if(i>s)return null;const o=Math.sqrt(s-i),a=r-o,l=r+o;return l<0?null:a<0?this.at(l,t):this.at(a,t)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const t=e.normal.dot(this.direction);if(t===0)return e.distanceToPoint(this.origin)===0?0:null;const r=-(this.origin.dot(e.normal)+e.constant)/t;return r>=0?r:null}intersectPlane(e,t){const r=this.distanceToPlane(e);return r===null?null:this.at(r,t)}intersectsPlane(e){const t=e.distanceToPoint(this.origin);return t===0||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let r,i,s,o,a,l;const d=1/this.direction.x,u=1/this.direction.y,m=1/this.direction.z,f=this.origin;return d>=0?(r=(e.min.x-f.x)*d,i=(e.max.x-f.x)*d):(r=(e.max.x-f.x)*d,i=(e.min.x-f.x)*d),u>=0?(s=(e.min.y-f.y)*u,o=(e.max.y-f.y)*u):(s=(e.max.y-f.y)*u,o=(e.min.y-f.y)*u),r>o||s>i||((s>r||isNaN(r))&&(r=s),(o=0?(a=(e.min.z-f.z)*m,l=(e.max.z-f.z)*m):(a=(e.max.z-f.z)*m,l=(e.min.z-f.z)*m),r>l||a>i)||((a>r||r!==r)&&(r=a),(l=0?r:i,t)}intersectsBox(e){return this.intersectBox(e,ps)!==null}intersectTriangle(e,t,r,i,s){cb.subVectors(t,e),Au.subVectors(r,e),db.crossVectors(cb,Au);let o=this.direction.dot(db),a;if(o>0){if(i)return null;a=1}else if(o<0)a=-1,o=-o;else return null;Js.subVectors(this.origin,e);const l=a*this.direction.dot(Au.crossVectors(Js,Au));if(l<0)return null;const d=a*this.direction.dot(cb.cross(Js));if(d<0||l+d>o)return null;const u=-a*Js.dot(db);return u<0?null:this.at(u/o,s)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}}class Ht{constructor(e,t,r,i,s,o,a,l,d,u,m,f,g,h,v,b){Ht.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],e!==void 0&&this.set(e,t,r,i,s,o,a,l,d,u,m,f,g,h,v,b)}set(e,t,r,i,s,o,a,l,d,u,m,f,g,h,v,b){const _=this.elements;return _[0]=e,_[4]=t,_[8]=r,_[12]=i,_[1]=s,_[5]=o,_[9]=a,_[13]=l,_[2]=d,_[6]=u,_[10]=m,_[14]=f,_[3]=g,_[7]=h,_[11]=v,_[15]=b,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new Ht().fromArray(this.elements)}copy(e){const t=this.elements,r=e.elements;return t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=r[3],t[4]=r[4],t[5]=r[5],t[6]=r[6],t[7]=r[7],t[8]=r[8],t[9]=r[9],t[10]=r[10],t[11]=r[11],t[12]=r[12],t[13]=r[13],t[14]=r[14],t[15]=r[15],this}copyPosition(e){const t=this.elements,r=e.elements;return t[12]=r[12],t[13]=r[13],t[14]=r[14],this}setFromMatrix3(e){const t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,r){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),r.setFromMatrixColumn(this,2),this}makeBasis(e,t,r){return this.set(e.x,t.x,r.x,0,e.y,t.y,r.y,0,e.z,t.z,r.z,0,0,0,0,1),this}extractRotation(e){const t=this.elements,r=e.elements,i=1/qa.setFromMatrixColumn(e,0).length(),s=1/qa.setFromMatrixColumn(e,1).length(),o=1/qa.setFromMatrixColumn(e,2).length();return t[0]=r[0]*i,t[1]=r[1]*i,t[2]=r[2]*i,t[3]=0,t[4]=r[4]*s,t[5]=r[5]*s,t[6]=r[6]*s,t[7]=0,t[8]=r[8]*o,t[9]=r[9]*o,t[10]=r[10]*o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){const t=this.elements,r=e.x,i=e.y,s=e.z,o=Math.cos(r),a=Math.sin(r),l=Math.cos(i),d=Math.sin(i),u=Math.cos(s),m=Math.sin(s);if(e.order==="XYZ"){const f=o*u,g=o*m,h=a*u,v=a*m;t[0]=l*u,t[4]=-l*m,t[8]=d,t[1]=g+h*d,t[5]=f-v*d,t[9]=-a*l,t[2]=v-f*d,t[6]=h+g*d,t[10]=o*l}else if(e.order==="YXZ"){const f=l*u,g=l*m,h=d*u,v=d*m;t[0]=f+v*a,t[4]=h*a-g,t[8]=o*d,t[1]=o*m,t[5]=o*u,t[9]=-a,t[2]=g*a-h,t[6]=v+f*a,t[10]=o*l}else if(e.order==="ZXY"){const f=l*u,g=l*m,h=d*u,v=d*m;t[0]=f-v*a,t[4]=-o*m,t[8]=h+g*a,t[1]=g+h*a,t[5]=o*u,t[9]=v-f*a,t[2]=-o*d,t[6]=a,t[10]=o*l}else if(e.order==="ZYX"){const f=o*u,g=o*m,h=a*u,v=a*m;t[0]=l*u,t[4]=h*d-g,t[8]=f*d+v,t[1]=l*m,t[5]=v*d+f,t[9]=g*d-h,t[2]=-d,t[6]=a*l,t[10]=o*l}else if(e.order==="YZX"){const f=o*l,g=o*d,h=a*l,v=a*d;t[0]=l*u,t[4]=v-f*m,t[8]=h*m+g,t[1]=m,t[5]=o*u,t[9]=-a*u,t[2]=-d*u,t[6]=g*m+h,t[10]=f-v*m}else if(e.order==="XZY"){const f=o*l,g=o*d,h=a*l,v=a*d;t[0]=l*u,t[4]=-m,t[8]=d*u,t[1]=f*m+v,t[5]=o*u,t[9]=g*m-h,t[2]=h*m-g,t[6]=a*u,t[10]=v*m+f}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(_2t,e,b2t)}lookAt(e,t,r){const i=this.elements;return Lr.subVectors(e,t),Lr.lengthSq()===0&&(Lr.z=1),Lr.normalize(),eo.crossVectors(r,Lr),eo.lengthSq()===0&&(Math.abs(r.z)===1?Lr.x+=1e-4:Lr.z+=1e-4,Lr.normalize(),eo.crossVectors(r,Lr)),eo.normalize(),Ru.crossVectors(Lr,eo),i[0]=eo.x,i[4]=Ru.x,i[8]=Lr.x,i[1]=eo.y,i[5]=Ru.y,i[9]=Lr.y,i[2]=eo.z,i[6]=Ru.z,i[10]=Lr.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const r=e.elements,i=t.elements,s=this.elements,o=r[0],a=r[4],l=r[8],d=r[12],u=r[1],m=r[5],f=r[9],g=r[13],h=r[2],v=r[6],b=r[10],_=r[14],y=r[3],E=r[7],x=r[11],A=r[15],w=i[0],N=i[4],L=i[8],C=i[12],k=i[1],H=i[5],q=i[9],ie=i[13],D=i[2],$=i[6],K=i[10],B=i[14],Z=i[3],ce=i[7],ue=i[11],xe=i[15];return s[0]=o*w+a*k+l*D+d*Z,s[4]=o*N+a*H+l*$+d*ce,s[8]=o*L+a*q+l*K+d*ue,s[12]=o*C+a*ie+l*B+d*xe,s[1]=u*w+m*k+f*D+g*Z,s[5]=u*N+m*H+f*$+g*ce,s[9]=u*L+m*q+f*K+g*ue,s[13]=u*C+m*ie+f*B+g*xe,s[2]=h*w+v*k+b*D+_*Z,s[6]=h*N+v*H+b*$+_*ce,s[10]=h*L+v*q+b*K+_*ue,s[14]=h*C+v*ie+b*B+_*xe,s[3]=y*w+E*k+x*D+A*Z,s[7]=y*N+E*H+x*$+A*ce,s[11]=y*L+E*q+x*K+A*ue,s[15]=y*C+E*ie+x*B+A*xe,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){const e=this.elements,t=e[0],r=e[4],i=e[8],s=e[12],o=e[1],a=e[5],l=e[9],d=e[13],u=e[2],m=e[6],f=e[10],g=e[14],h=e[3],v=e[7],b=e[11],_=e[15];return h*(+s*l*m-i*d*m-s*a*f+r*d*f+i*a*g-r*l*g)+v*(+t*l*g-t*d*f+s*o*f-i*o*g+i*d*u-s*l*u)+b*(+t*d*m-t*a*g-s*o*m+r*o*g+s*a*u-r*d*u)+_*(-i*a*u-t*l*m+t*a*f+i*o*m-r*o*f+r*l*u)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,r){const i=this.elements;return e.isVector3?(i[12]=e.x,i[13]=e.y,i[14]=e.z):(i[12]=e,i[13]=t,i[14]=r),this}invert(){const e=this.elements,t=e[0],r=e[1],i=e[2],s=e[3],o=e[4],a=e[5],l=e[6],d=e[7],u=e[8],m=e[9],f=e[10],g=e[11],h=e[12],v=e[13],b=e[14],_=e[15],y=m*b*d-v*f*d+v*l*g-a*b*g-m*l*_+a*f*_,E=h*f*d-u*b*d-h*l*g+o*b*g+u*l*_-o*f*_,x=u*v*d-h*m*d+h*a*g-o*v*g-u*a*_+o*m*_,A=h*m*l-u*v*l-h*a*f+o*v*f+u*a*b-o*m*b,w=t*y+r*E+i*x+s*A;if(w===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const N=1/w;return e[0]=y*N,e[1]=(v*f*s-m*b*s-v*i*g+r*b*g+m*i*_-r*f*_)*N,e[2]=(a*b*s-v*l*s+v*i*d-r*b*d-a*i*_+r*l*_)*N,e[3]=(m*l*s-a*f*s-m*i*d+r*f*d+a*i*g-r*l*g)*N,e[4]=E*N,e[5]=(u*b*s-h*f*s+h*i*g-t*b*g-u*i*_+t*f*_)*N,e[6]=(h*l*s-o*b*s-h*i*d+t*b*d+o*i*_-t*l*_)*N,e[7]=(o*f*s-u*l*s+u*i*d-t*f*d-o*i*g+t*l*g)*N,e[8]=x*N,e[9]=(h*m*s-u*v*s-h*r*g+t*v*g+u*r*_-t*m*_)*N,e[10]=(o*v*s-h*a*s+h*r*d-t*v*d-o*r*_+t*a*_)*N,e[11]=(u*a*s-o*m*s-u*r*d+t*m*d+o*r*g-t*a*g)*N,e[12]=A*N,e[13]=(u*v*i-h*m*i+h*r*f-t*v*f-u*r*b+t*m*b)*N,e[14]=(h*a*i-o*v*i-h*r*l+t*v*l+o*r*b-t*a*b)*N,e[15]=(o*m*i-u*a*i+u*r*l-t*m*l-o*r*f+t*a*f)*N,this}scale(e){const t=this.elements,r=e.x,i=e.y,s=e.z;return t[0]*=r,t[4]*=i,t[8]*=s,t[1]*=r,t[5]*=i,t[9]*=s,t[2]*=r,t[6]*=i,t[10]*=s,t[3]*=r,t[7]*=i,t[11]*=s,this}getMaxScaleOnAxis(){const e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],r=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],i=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,r,i))}makeTranslation(e,t,r){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,r,0,0,0,1),this}makeRotationX(e){const t=Math.cos(e),r=Math.sin(e);return this.set(1,0,0,0,0,t,-r,0,0,r,t,0,0,0,0,1),this}makeRotationY(e){const t=Math.cos(e),r=Math.sin(e);return this.set(t,0,r,0,0,1,0,0,-r,0,t,0,0,0,0,1),this}makeRotationZ(e){const t=Math.cos(e),r=Math.sin(e);return this.set(t,-r,0,0,r,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){const r=Math.cos(t),i=Math.sin(t),s=1-r,o=e.x,a=e.y,l=e.z,d=s*o,u=s*a;return this.set(d*o+r,d*a-i*l,d*l+i*a,0,d*a+i*l,u*a+r,u*l-i*o,0,d*l-i*a,u*l+i*o,s*l*l+r,0,0,0,0,1),this}makeScale(e,t,r){return this.set(e,0,0,0,0,t,0,0,0,0,r,0,0,0,0,1),this}makeShear(e,t,r,i,s,o){return this.set(1,r,s,0,e,1,o,0,t,i,1,0,0,0,0,1),this}compose(e,t,r){const i=this.elements,s=t._x,o=t._y,a=t._z,l=t._w,d=s+s,u=o+o,m=a+a,f=s*d,g=s*u,h=s*m,v=o*u,b=o*m,_=a*m,y=l*d,E=l*u,x=l*m,A=r.x,w=r.y,N=r.z;return i[0]=(1-(v+_))*A,i[1]=(g+x)*A,i[2]=(h-E)*A,i[3]=0,i[4]=(g-x)*w,i[5]=(1-(f+_))*w,i[6]=(b+y)*w,i[7]=0,i[8]=(h+E)*N,i[9]=(b-y)*N,i[10]=(1-(f+v))*N,i[11]=0,i[12]=e.x,i[13]=e.y,i[14]=e.z,i[15]=1,this}decompose(e,t,r){const i=this.elements;let s=qa.set(i[0],i[1],i[2]).length();const o=qa.set(i[4],i[5],i[6]).length(),a=qa.set(i[8],i[9],i[10]).length();this.determinant()<0&&(s=-s),e.x=i[12],e.y=i[13],e.z=i[14],yi.copy(this);const d=1/s,u=1/o,m=1/a;return yi.elements[0]*=d,yi.elements[1]*=d,yi.elements[2]*=d,yi.elements[4]*=u,yi.elements[5]*=u,yi.elements[6]*=u,yi.elements[8]*=m,yi.elements[9]*=m,yi.elements[10]*=m,t.setFromRotationMatrix(yi),r.x=s,r.y=o,r.z=a,this}makePerspective(e,t,r,i,s,o,a=Ts){const l=this.elements,d=2*s/(t-e),u=2*s/(r-i),m=(t+e)/(t-e),f=(r+i)/(r-i);let g,h;if(a===Ts)g=-(o+s)/(o-s),h=-2*o*s/(o-s);else if(a===oh)g=-o/(o-s),h=-o*s/(o-s);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+a);return l[0]=d,l[4]=0,l[8]=m,l[12]=0,l[1]=0,l[5]=u,l[9]=f,l[13]=0,l[2]=0,l[6]=0,l[10]=g,l[14]=h,l[3]=0,l[7]=0,l[11]=-1,l[15]=0,this}makeOrthographic(e,t,r,i,s,o,a=Ts){const l=this.elements,d=1/(t-e),u=1/(r-i),m=1/(o-s),f=(t+e)*d,g=(r+i)*u;let h,v;if(a===Ts)h=(o+s)*m,v=-2*m;else if(a===oh)h=s*m,v=-1*m;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+a);return l[0]=2*d,l[4]=0,l[8]=0,l[12]=-f,l[1]=0,l[5]=2*u,l[9]=0,l[13]=-g,l[2]=0,l[6]=0,l[10]=v,l[14]=-h,l[3]=0,l[7]=0,l[11]=0,l[15]=1,this}equals(e){const t=this.elements,r=e.elements;for(let i=0;i<16;i++)if(t[i]!==r[i])return!1;return!0}fromArray(e,t=0){for(let r=0;r<16;r++)this.elements[r]=e[r+t];return this}toArray(e=[],t=0){const r=this.elements;return e[t]=r[0],e[t+1]=r[1],e[t+2]=r[2],e[t+3]=r[3],e[t+4]=r[4],e[t+5]=r[5],e[t+6]=r[6],e[t+7]=r[7],e[t+8]=r[8],e[t+9]=r[9],e[t+10]=r[10],e[t+11]=r[11],e[t+12]=r[12],e[t+13]=r[13],e[t+14]=r[14],e[t+15]=r[15],e}}const qa=new he,yi=new Ht,_2t=new he(0,0,0),b2t=new he(1,1,1),eo=new he,Ru=new he,Lr=new he,cR=new Ht,dR=new Uo;class lm{constructor(e=0,t=0,r=0,i=lm.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=t,this._z=r,this._order=i}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,r,i=this._order){return this._x=e,this._y=t,this._z=r,this._order=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,r=!0){const i=e.elements,s=i[0],o=i[4],a=i[8],l=i[1],d=i[5],u=i[9],m=i[2],f=i[6],g=i[10];switch(t){case"XYZ":this._y=Math.asin(or(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-u,g),this._z=Math.atan2(-o,s)):(this._x=Math.atan2(f,d),this._z=0);break;case"YXZ":this._x=Math.asin(-or(u,-1,1)),Math.abs(u)<.9999999?(this._y=Math.atan2(a,g),this._z=Math.atan2(l,d)):(this._y=Math.atan2(-m,s),this._z=0);break;case"ZXY":this._x=Math.asin(or(f,-1,1)),Math.abs(f)<.9999999?(this._y=Math.atan2(-m,g),this._z=Math.atan2(-o,d)):(this._y=0,this._z=Math.atan2(l,s));break;case"ZYX":this._y=Math.asin(-or(m,-1,1)),Math.abs(m)<.9999999?(this._x=Math.atan2(f,g),this._z=Math.atan2(l,s)):(this._x=0,this._z=Math.atan2(-o,d));break;case"YZX":this._z=Math.asin(or(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-u,d),this._y=Math.atan2(-m,s)):(this._x=0,this._y=Math.atan2(a,g));break;case"XZY":this._z=Math.asin(-or(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(f,d),this._y=Math.atan2(a,s)):(this._x=Math.atan2(-u,g),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,r===!0&&this._onChangeCallback(),this}setFromQuaternion(e,t,r){return cR.makeRotationFromQuaternion(e),this.setFromRotationMatrix(cR,t,r)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return dR.setFromEuler(this),this.setFromQuaternion(dR,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],e[3]!==void 0&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}lm.DEFAULT_ORDER="XYZ";class iO{constructor(){this.mask=1}set(e){this.mask=(1<>>0}enable(e){this.mask|=1<1){for(let t=0;t1){for(let r=0;r0&&(i.userData=this.userData),i.layers=this.layers.mask,i.matrix=this.matrix.toArray(),i.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(i.matrixAutoUpdate=!1),this.isInstancedMesh&&(i.type="InstancedMesh",i.count=this.count,i.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(i.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(i.type="BatchedMesh",i.perObjectFrustumCulled=this.perObjectFrustumCulled,i.sortObjects=this.sortObjects,i.drawRanges=this._drawRanges,i.reservedRanges=this._reservedRanges,i.visibility=this._visibility,i.active=this._active,i.bounds=this._bounds.map(a=>({boxInitialized:a.boxInitialized,boxMin:a.box.min.toArray(),boxMax:a.box.max.toArray(),sphereInitialized:a.sphereInitialized,sphereRadius:a.sphere.radius,sphereCenter:a.sphere.center.toArray()})),i.maxGeometryCount=this._maxGeometryCount,i.maxVertexCount=this._maxVertexCount,i.maxIndexCount=this._maxIndexCount,i.geometryInitialized=this._geometryInitialized,i.geometryCount=this._geometryCount,i.matricesTexture=this._matricesTexture.toJSON(e),this.boundingSphere!==null&&(i.boundingSphere={center:i.boundingSphere.center.toArray(),radius:i.boundingSphere.radius}),this.boundingBox!==null&&(i.boundingBox={min:i.boundingBox.min.toArray(),max:i.boundingBox.max.toArray()}));function s(a,l){return a[l.uuid]===void 0&&(a[l.uuid]=l.toJSON(e)),l.uuid}if(this.isScene)this.background&&(this.background.isColor?i.background=this.background.toJSON():this.background.isTexture&&(i.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(i.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){i.geometry=s(e.geometries,this.geometry);const a=this.geometry.parameters;if(a!==void 0&&a.shapes!==void 0){const l=a.shapes;if(Array.isArray(l))for(let d=0,u=l.length;d0){i.children=[];for(let a=0;a0){i.animations=[];for(let a=0;a0&&(r.geometries=a),l.length>0&&(r.materials=l),d.length>0&&(r.textures=d),u.length>0&&(r.images=u),m.length>0&&(r.shapes=m),f.length>0&&(r.skeletons=f),g.length>0&&(r.animations=g),h.length>0&&(r.nodes=h)}return r.object=i,r;function o(a){const l=[];for(const d in a){const u=a[d];delete u.metadata,l.push(u)}return l}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),t===!0)for(let r=0;r0?i.multiplyScalar(1/Math.sqrt(s)):i.set(0,0,0)}static getBarycoord(e,t,r,i,s){Ei.subVectors(i,t),ms.subVectors(r,t),ub.subVectors(e,t);const o=Ei.dot(Ei),a=Ei.dot(ms),l=Ei.dot(ub),d=ms.dot(ms),u=ms.dot(ub),m=o*d-a*a;if(m===0)return s.set(-2,-1,-1);const f=1/m,g=(d*l-a*u)*f,h=(o*u-a*l)*f;return s.set(1-g-h,h,g)}static containsPoint(e,t,r,i){return this.getBarycoord(e,t,r,i,fs),fs.x>=0&&fs.y>=0&&fs.x+fs.y<=1}static getUV(e,t,r,i,s,o,a,l){return Nu===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),Nu=!0),this.getInterpolation(e,t,r,i,s,o,a,l)}static getInterpolation(e,t,r,i,s,o,a,l){return this.getBarycoord(e,t,r,i,fs),l.setScalar(0),l.addScaledVector(s,fs.x),l.addScaledVector(o,fs.y),l.addScaledVector(a,fs.z),l}static isFrontFacing(e,t,r,i){return Ei.subVectors(r,t),ms.subVectors(e,t),Ei.cross(ms).dot(i)<0}set(e,t,r){return this.a.copy(e),this.b.copy(t),this.c.copy(r),this}setFromPointsAndIndices(e,t,r,i){return this.a.copy(e[t]),this.b.copy(e[r]),this.c.copy(e[i]),this}setFromAttributeAndIndices(e,t,r,i){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,r),this.c.fromBufferAttribute(e,i),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return Ei.subVectors(this.c,this.b),ms.subVectors(this.a,this.b),Ei.cross(ms).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return wi.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return wi.getBarycoord(e,this.a,this.b,this.c,t)}getUV(e,t,r,i,s){return Nu===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),Nu=!0),wi.getInterpolation(e,this.a,this.b,this.c,t,r,i,s)}getInterpolation(e,t,r,i,s){return wi.getInterpolation(e,this.a,this.b,this.c,t,r,i,s)}containsPoint(e){return wi.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return wi.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const r=this.a,i=this.b,s=this.c;let o,a;$a.subVectors(i,r),Wa.subVectors(s,r),pb.subVectors(e,r);const l=$a.dot(pb),d=Wa.dot(pb);if(l<=0&&d<=0)return t.copy(r);hb.subVectors(e,i);const u=$a.dot(hb),m=Wa.dot(hb);if(u>=0&&m<=u)return t.copy(i);const f=l*m-u*d;if(f<=0&&l>=0&&u<=0)return o=l/(l-u),t.copy(r).addScaledVector($a,o);mb.subVectors(e,s);const g=$a.dot(mb),h=Wa.dot(mb);if(h>=0&&g<=h)return t.copy(s);const v=g*d-l*h;if(v<=0&&d>=0&&h<=0)return a=d/(d-h),t.copy(r).addScaledVector(Wa,a);const b=u*h-g*m;if(b<=0&&m-u>=0&&g-h>=0)return fR.subVectors(s,i),a=(m-u)/(m-u+(g-h)),t.copy(i).addScaledVector(fR,a);const _=1/(b+v+f);return o=v*_,a=f*_,t.copy(r).addScaledVector($a,o).addScaledVector(Wa,a)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const sO={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},to={h:0,s:0,l:0},ku={h:0,s:0,l:0};function fb(n,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?n+(e-n)*6*t:t<1/2?e:t<2/3?n+(e-n)*6*(2/3-t):n}class Nt{constructor(e,t,r){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,r)}set(e,t,r){if(t===void 0&&r===void 0){const i=e;i&&i.isColor?this.copy(i):typeof i=="number"?this.setHex(i):typeof i=="string"&&this.setStyle(i)}else this.setRGB(e,t,r);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=Mn){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,tn.toWorkingColorSpace(this,t),this}setRGB(e,t,r,i=tn.workingColorSpace){return this.r=e,this.g=t,this.b=r,tn.toWorkingColorSpace(this,i),this}setHSL(e,t,r,i=tn.workingColorSpace){if(e=jy(e,1),t=or(t,0,1),r=or(r,0,1),t===0)this.r=this.g=this.b=r;else{const s=r<=.5?r*(1+t):r+t-r*t,o=2*r-s;this.r=fb(o,s,e+1/3),this.g=fb(o,s,e),this.b=fb(o,s,e-1/3)}return tn.toWorkingColorSpace(this,i),this}setStyle(e,t=Mn){function r(s){s!==void 0&&parseFloat(s)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let i;if(i=/^(\w+)\(([^\)]*)\)/.exec(e)){let s;const o=i[1],a=i[2];switch(o){case"rgb":case"rgba":if(s=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return r(s[4]),this.setRGB(Math.min(255,parseInt(s[1],10))/255,Math.min(255,parseInt(s[2],10))/255,Math.min(255,parseInt(s[3],10))/255,t);if(s=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return r(s[4]),this.setRGB(Math.min(100,parseInt(s[1],10))/100,Math.min(100,parseInt(s[2],10))/100,Math.min(100,parseInt(s[3],10))/100,t);break;case"hsl":case"hsla":if(s=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return r(s[4]),this.setHSL(parseFloat(s[1])/360,parseFloat(s[2])/100,parseFloat(s[3])/100,t);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(i=/^\#([A-Fa-f\d]+)$/.exec(e)){const s=i[1],o=s.length;if(o===3)return this.setRGB(parseInt(s.charAt(0),16)/15,parseInt(s.charAt(1),16)/15,parseInt(s.charAt(2),16)/15,t);if(o===6)return this.setHex(parseInt(s,16),t);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=Mn){const r=sO[e.toLowerCase()];return r!==void 0?this.setHex(r,t):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=vl(e.r),this.g=vl(e.g),this.b=vl(e.b),this}copyLinearToSRGB(e){return this.r=rb(e.r),this.g=rb(e.g),this.b=rb(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=Mn){return tn.fromWorkingColorSpace(ir.copy(this),e),Math.round(or(ir.r*255,0,255))*65536+Math.round(or(ir.g*255,0,255))*256+Math.round(or(ir.b*255,0,255))}getHexString(e=Mn){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=tn.workingColorSpace){tn.fromWorkingColorSpace(ir.copy(this),t);const r=ir.r,i=ir.g,s=ir.b,o=Math.max(r,i,s),a=Math.min(r,i,s);let l,d;const u=(a+o)/2;if(a===o)l=0,d=0;else{const m=o-a;switch(d=u<=.5?m/(o+a):m/(2-o-a),o){case r:l=(i-s)/m+(i0!=e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(const t in e){const r=e[t];if(r===void 0){console.warn(`THREE.Material: parameter '${t}' has value of undefined.`);continue}const i=this[t];if(i===void 0){console.warn(`THREE.Material: '${t}' is not a property of THREE.${this.type}.`);continue}i&&i.isColor?i.set(r):i&&i.isVector3&&r&&r.isVector3?i.copy(r):this[t]=r}}toJSON(e){const t=e===void 0||typeof e=="string";t&&(e={textures:{},images:{}});const r={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};r.uuid=this.uuid,r.type=this.type,this.name!==""&&(r.name=this.name),this.color&&this.color.isColor&&(r.color=this.color.getHex()),this.roughness!==void 0&&(r.roughness=this.roughness),this.metalness!==void 0&&(r.metalness=this.metalness),this.sheen!==void 0&&(r.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(r.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(r.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(r.emissive=this.emissive.getHex()),this.emissiveIntensity&&this.emissiveIntensity!==1&&(r.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(r.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(r.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(r.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(r.shininess=this.shininess),this.clearcoat!==void 0&&(r.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(r.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(r.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(r.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(r.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,r.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.iridescence!==void 0&&(r.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(r.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(r.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(r.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(r.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(r.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(r.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(r.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(r.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(r.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(r.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(r.lightMap=this.lightMap.toJSON(e).uuid,r.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(r.aoMap=this.aoMap.toJSON(e).uuid,r.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(r.bumpMap=this.bumpMap.toJSON(e).uuid,r.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(r.normalMap=this.normalMap.toJSON(e).uuid,r.normalMapType=this.normalMapType,r.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(r.displacementMap=this.displacementMap.toJSON(e).uuid,r.displacementScale=this.displacementScale,r.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(r.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(r.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(r.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(r.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(r.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(r.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(r.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(r.combine=this.combine)),this.envMapIntensity!==void 0&&(r.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(r.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(r.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(r.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(r.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(r.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(r.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(r.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(r.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(r.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(r.size=this.size),this.shadowSide!==null&&(r.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(r.sizeAttenuation=this.sizeAttenuation),this.blending!==bl&&(r.blending=this.blending),this.side!==Fs&&(r.side=this.side),this.vertexColors===!0&&(r.vertexColors=!0),this.opacity<1&&(r.opacity=this.opacity),this.transparent===!0&&(r.transparent=!0),this.blendSrc!==R1&&(r.blendSrc=this.blendSrc),this.blendDst!==M1&&(r.blendDst=this.blendDst),this.blendEquation!==na&&(r.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(r.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(r.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(r.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(r.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(r.blendAlpha=this.blendAlpha),this.depthFunc!==th&&(r.depthFunc=this.depthFunc),this.depthTest===!1&&(r.depthTest=this.depthTest),this.depthWrite===!1&&(r.depthWrite=this.depthWrite),this.colorWrite===!1&&(r.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(r.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==nR&&(r.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(r.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(r.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==Ba&&(r.stencilFail=this.stencilFail),this.stencilZFail!==Ba&&(r.stencilZFail=this.stencilZFail),this.stencilZPass!==Ba&&(r.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(r.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(r.rotation=this.rotation),this.polygonOffset===!0&&(r.polygonOffset=!0),this.polygonOffsetFactor!==0&&(r.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(r.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(r.linewidth=this.linewidth),this.dashSize!==void 0&&(r.dashSize=this.dashSize),this.gapSize!==void 0&&(r.gapSize=this.gapSize),this.scale!==void 0&&(r.scale=this.scale),this.dithering===!0&&(r.dithering=!0),this.alphaTest>0&&(r.alphaTest=this.alphaTest),this.alphaHash===!0&&(r.alphaHash=!0),this.alphaToCoverage===!0&&(r.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(r.premultipliedAlpha=!0),this.forceSinglePass===!0&&(r.forceSinglePass=!0),this.wireframe===!0&&(r.wireframe=!0),this.wireframeLinewidth>1&&(r.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(r.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(r.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(r.flatShading=!0),this.visible===!1&&(r.visible=!1),this.toneMapped===!1&&(r.toneMapped=!1),this.fog===!1&&(r.fog=!1),Object.keys(this.userData).length>0&&(r.userData=this.userData);function i(s){const o=[];for(const a in s){const l=s[a];delete l.metadata,o.push(l)}return o}if(t){const s=i(e.textures),o=i(e.images);s.length>0&&(r.textures=s),o.length>0&&(r.images=o)}return r}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const t=e.clippingPlanes;let r=null;if(t!==null){const i=t.length;r=new Array(i);for(let s=0;s!==i;++s)r[s]=t[s].clone()}return this.clippingPlanes=r,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){e===!0&&this.version++}}class vo extends Mi{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new Nt(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Yy,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}const In=new he,Iu=new $t;class vr{constructor(e,t,r=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=t,this.count=e!==void 0?e.length/t:0,this.normalized=r,this.usage=D1,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=xs,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return console.warn('THREE.BufferAttribute: "updateRange" is deprecated and removed in r169. Use "addUpdateRange()" instead.'),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,r){e*=this.itemSize,r*=t.itemSize;for(let i=0,s=this.itemSize;i0&&(e.userData=this.userData),this.parameters!==void 0){const l=this.parameters;for(const d in l)l[d]!==void 0&&(e[d]=l[d]);return e}e.data={attributes:{}};const t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const r=this.attributes;for(const l in r){const d=r[l];e.data.attributes[l]=d.toJSON(e.data)}const i={};let s=!1;for(const l in this.morphAttributes){const d=this.morphAttributes[l],u=[];for(let m=0,f=d.length;m0&&(i[l]=u,s=!0)}s&&(e.data.morphAttributes=i,e.data.morphTargetsRelative=this.morphTargetsRelative);const o=this.groups;o.length>0&&(e.data.groups=JSON.parse(JSON.stringify(o)));const a=this.boundingSphere;return a!==null&&(e.data.boundingSphere={center:a.center.toArray(),radius:a.radius}),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const t={};this.name=e.name;const r=e.index;r!==null&&this.setIndex(r.clone(t));const i=e.attributes;for(const d in i){const u=i[d];this.setAttribute(d,u.clone(t))}const s=e.morphAttributes;for(const d in s){const u=[],m=s[d];for(let f=0,g=m.length;f0){const i=t[r[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let s=0,o=i.length;s(e.far-e.near)**2))&&(gR.copy(s).invert(),Wo.copy(e.ray).applyMatrix4(gR),!(r.boundingBox!==null&&Wo.intersectsBox(r.boundingBox)===!1)&&this._computeIntersections(e,t,Wo)))}_computeIntersections(e,t,r){let i;const s=this.geometry,o=this.material,a=s.index,l=s.attributes.position,d=s.attributes.uv,u=s.attributes.uv1,m=s.attributes.normal,f=s.groups,g=s.drawRange;if(a!==null)if(Array.isArray(o))for(let h=0,v=f.length;ht.far?null:{distance:d,point:Bu.clone(),object:n}}function Gu(n,e,t,r,i,s,o,a,l,d){n.getVertexPosition(a,ja),n.getVertexPosition(l,Qa),n.getVertexPosition(d,Xa);const u=C2t(n,e,t,r,ja,Qa,Xa,Uu);if(u){i&&(Lu.fromBufferAttribute(i,a),Pu.fromBufferAttribute(i,l),Fu.fromBufferAttribute(i,d),u.uv=wi.getInterpolation(Uu,ja,Qa,Xa,Lu,Pu,Fu,new $t)),s&&(Lu.fromBufferAttribute(s,a),Pu.fromBufferAttribute(s,l),Fu.fromBufferAttribute(s,d),u.uv1=wi.getInterpolation(Uu,ja,Qa,Xa,Lu,Pu,Fu,new $t),u.uv2=u.uv1),o&&(bR.fromBufferAttribute(o,a),vR.fromBufferAttribute(o,l),yR.fromBufferAttribute(o,d),u.normal=wi.getInterpolation(Uu,ja,Qa,Xa,bR,vR,yR,new he),u.normal.dot(r.direction)>0&&u.normal.multiplyScalar(-1));const m={a,b:l,c:d,normal:new he,materialIndex:0};wi.getNormal(ja,Qa,Xa,m.normal),u.face=m}return u}class wo extends os{constructor(e=1,t=1,r=1,i=1,s=1,o=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:r,widthSegments:i,heightSegments:s,depthSegments:o};const a=this;i=Math.floor(i),s=Math.floor(s),o=Math.floor(o);const l=[],d=[],u=[],m=[];let f=0,g=0;h("z","y","x",-1,-1,r,t,e,o,s,0),h("z","y","x",1,-1,r,t,-e,o,s,1),h("x","z","y",1,1,e,r,t,i,o,2),h("x","z","y",1,-1,e,r,-t,i,o,3),h("x","y","z",1,-1,e,t,r,i,s,4),h("x","y","z",-1,-1,e,t,-r,i,s,5),this.setIndex(l),this.setAttribute("position",new Ns(d,3)),this.setAttribute("normal",new Ns(u,3)),this.setAttribute("uv",new Ns(m,2));function h(v,b,_,y,E,x,A,w,N,L,C){const k=x/N,H=A/L,q=x/2,ie=A/2,D=w/2,$=N+1,K=L+1;let B=0,Z=0;const ce=new he;for(let ue=0;ue0?1:-1,u.push(ce.x,ce.y,ce.z),m.push(Ce/N),m.push(1-ue/L),B+=1}}for(let ue=0;ue>8&255]+rr[n>>16&255]+rr[n>>24&255]+"-"+rr[e&255]+rr[e>>8&255]+"-"+rr[e>>16&15|64]+rr[e>>24&255]+"-"+rr[t&63|128]+rr[t>>8&255]+"-"+rr[t>>16&255]+rr[t>>24&255]+rr[r&255]+rr[r>>8&255]+rr[r>>16&255]+rr[r>>24&255]).toLowerCase()}function or(n,e,t){return Math.max(e,Math.min(t,n))}function jy(n,e){return(n%e+e)%e}function jSt(n,e,t,r,i){return r+(n-e)*(i-r)/(t-e)}function QSt(n,e,t){return n!==e?(t-n)/(e-n):0}function Xc(n,e,t){return(1-t)*n+t*e}function XSt(n,e,t,r){return Xc(n,e,1-Math.exp(-t*r))}function ZSt(n,e=1){return e-Math.abs(jy(n,e*2)-e)}function JSt(n,e,t){return n<=e?0:n>=t?1:(n=(n-e)/(t-e),n*n*(3-2*n))}function e2t(n,e,t){return n<=e?0:n>=t?1:(n=(n-e)/(t-e),n*n*n*(n*(n*6-15)+10))}function t2t(n,e){return n+Math.floor(Math.random()*(e-n+1))}function n2t(n,e){return n+Math.random()*(e-n)}function r2t(n){return n*(.5-Math.random())}function i2t(n){n!==void 0&&(iR=n);let e=iR+=1831565813;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}function s2t(n){return n*Qc}function o2t(n){return n*Ul}function P1(n){return(n&n-1)===0&&n!==0}function a2t(n){return Math.pow(2,Math.ceil(Math.log(n)/Math.LN2))}function ah(n){return Math.pow(2,Math.floor(Math.log(n)/Math.LN2))}function l2t(n,e,t,r,i){const s=Math.cos,o=Math.sin,a=s(t/2),l=o(t/2),d=s((e+r)/2),u=o((e+r)/2),m=s((e-r)/2),f=o((e-r)/2),g=s((r-e)/2),h=o((r-e)/2);switch(i){case"XYX":n.set(a*u,l*m,l*f,a*d);break;case"YZY":n.set(l*f,a*u,l*m,a*d);break;case"ZXZ":n.set(l*m,l*f,a*u,a*d);break;case"XZX":n.set(a*u,l*h,l*g,a*d);break;case"YXY":n.set(l*g,a*u,l*h,a*d);break;case"ZYZ":n.set(l*h,l*g,a*u,a*d);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+i)}}function Hi(n,e){switch(e.constructor){case Float32Array:return n;case Uint32Array:return n/4294967295;case Uint16Array:return n/65535;case Uint8Array:return n/255;case Int32Array:return Math.max(n/2147483647,-1);case Int16Array:return Math.max(n/32767,-1);case Int8Array:return Math.max(n/127,-1);default:throw new Error("Invalid component type.")}}function an(n,e){switch(e.constructor){case Float32Array:return n;case Uint32Array:return Math.round(n*4294967295);case Uint16Array:return Math.round(n*65535);case Uint8Array:return Math.round(n*255);case Int32Array:return Math.round(n*2147483647);case Int16Array:return Math.round(n*32767);case Int8Array:return Math.round(n*127);default:throw new Error("Invalid component type.")}}const c2t={DEG2RAD:Qc,RAD2DEG:Ul,generateUUID:Ri,clamp:or,euclideanModulo:jy,mapLinear:jSt,inverseLerp:QSt,lerp:Xc,damp:XSt,pingpong:ZSt,smoothstep:JSt,smootherstep:e2t,randInt:t2t,randFloat:n2t,randFloatSpread:r2t,seededRandom:i2t,degToRad:s2t,radToDeg:o2t,isPowerOfTwo:P1,ceilPowerOfTwo:a2t,floorPowerOfTwo:ah,setQuaternionFromProperEuler:l2t,normalize:an,denormalize:Hi};class $t{constructor(e=0,t=0){$t.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const t=this.x,r=this.y,i=e.elements;return this.x=i[0]*t+i[3]*r+i[6],this.y=i[1]*t+i[4]*r+i[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}clampLength(e,t){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Math.max(e,Math.min(t,r)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const r=this.dot(e)/t;return Math.acos(or(r,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,r=this.y-e.y;return t*t+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,r){return this.x=e.x+(t.x-e.x)*r,this.y=e.y+(t.y-e.y)*r,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){const r=Math.cos(t),i=Math.sin(t),s=this.x-e.x,o=this.y-e.y;return this.x=s*r-o*i+e.x,this.y=s*i+o*r+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class Vt{constructor(e,t,r,i,s,o,a,l,d){Vt.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,r,i,s,o,a,l,d)}set(e,t,r,i,s,o,a,l,d){const u=this.elements;return u[0]=e,u[1]=i,u[2]=a,u[3]=t,u[4]=s,u[5]=l,u[6]=r,u[7]=o,u[8]=d,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const t=this.elements,r=e.elements;return t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=r[3],t[4]=r[4],t[5]=r[5],t[6]=r[6],t[7]=r[7],t[8]=r[8],this}extractBasis(e,t,r){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),r.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const r=e.elements,i=t.elements,s=this.elements,o=r[0],a=r[3],l=r[6],d=r[1],u=r[4],m=r[7],f=r[2],g=r[5],h=r[8],v=i[0],b=i[3],_=i[6],y=i[1],E=i[4],x=i[7],A=i[2],w=i[5],N=i[8];return s[0]=o*v+a*y+l*A,s[3]=o*b+a*E+l*w,s[6]=o*_+a*x+l*N,s[1]=d*v+u*y+m*A,s[4]=d*b+u*E+m*w,s[7]=d*_+u*x+m*N,s[2]=f*v+g*y+h*A,s[5]=f*b+g*E+h*w,s[8]=f*_+g*x+h*N,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){const e=this.elements,t=e[0],r=e[1],i=e[2],s=e[3],o=e[4],a=e[5],l=e[6],d=e[7],u=e[8];return t*o*u-t*a*d-r*s*u+r*a*l+i*s*d-i*o*l}invert(){const e=this.elements,t=e[0],r=e[1],i=e[2],s=e[3],o=e[4],a=e[5],l=e[6],d=e[7],u=e[8],m=u*o-a*d,f=a*l-u*s,g=d*s-o*l,h=t*m+r*f+i*g;if(h===0)return this.set(0,0,0,0,0,0,0,0,0);const v=1/h;return e[0]=m*v,e[1]=(i*d-u*r)*v,e[2]=(a*r-i*o)*v,e[3]=f*v,e[4]=(u*t-i*l)*v,e[5]=(i*s-a*t)*v,e[6]=g*v,e[7]=(r*l-d*t)*v,e[8]=(o*t-r*s)*v,this}transpose(){let e;const t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,r,i,s,o,a){const l=Math.cos(s),d=Math.sin(s);return this.set(r*l,r*d,-r*(l*o+d*a)+o+e,-i*d,i*l,-i*(-d*o+l*a)+a+t,0,0,1),this}scale(e,t){return this.premultiply(nb.makeScale(e,t)),this}rotate(e){return this.premultiply(nb.makeRotation(-e)),this}translate(e,t){return this.premultiply(nb.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){const t=Math.cos(e),r=Math.sin(e);return this.set(t,-r,0,r,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){const t=this.elements,r=e.elements;for(let i=0;i<9;i++)if(t[i]!==r[i])return!1;return!0}fromArray(e,t=0){for(let r=0;r<9;r++)this.elements[r]=e[r+t];return this}toArray(e=[],t=0){const r=this.elements;return e[t]=r[0],e[t+1]=r[1],e[t+2]=r[2],e[t+3]=r[3],e[t+4]=r[4],e[t+5]=r[5],e[t+6]=r[6],e[t+7]=r[7],e[t+8]=r[8],e}clone(){return new this.constructor().fromArray(this.elements)}}const nb=new Vt;function eO(n){for(let e=n.length-1;e>=0;--e)if(n[e]>=65535)return!0;return!1}function vd(n){return document.createElementNS("http://www.w3.org/1999/xhtml",n)}function d2t(){const n=vd("canvas");return n.style.display="block",n}const sR={};function Zc(n){n in sR||(sR[n]=!0,console.warn(n))}const oR=new Vt().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),aR=new Vt().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),Su={[er]:{transfer:rh,primaries:ih,toReference:n=>n,fromReference:n=>n},[Mn]:{transfer:bn,primaries:ih,toReference:n=>n.convertSRGBToLinear(),fromReference:n=>n.convertLinearToSRGB()},[om]:{transfer:rh,primaries:sh,toReference:n=>n.applyMatrix3(aR),fromReference:n=>n.applyMatrix3(oR)},[Ky]:{transfer:bn,primaries:sh,toReference:n=>n.convertSRGBToLinear().applyMatrix3(aR),fromReference:n=>n.applyMatrix3(oR).convertLinearToSRGB()}},u2t=new Set([er,om]),tn={enabled:!0,_workingColorSpace:er,get legacyMode(){return console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),!this.enabled},set legacyMode(n){console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),this.enabled=!n},get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(n){if(!u2t.has(n))throw new Error(`Unsupported working color space, "${n}".`);this._workingColorSpace=n},convert:function(n,e,t){if(this.enabled===!1||e===t||!e||!t)return n;const r=Su[e].toReference,i=Su[t].fromReference;return i(r(n))},fromWorkingColorSpace:function(n,e){return this.convert(n,this._workingColorSpace,e)},toWorkingColorSpace:function(n,e){return this.convert(n,e,this._workingColorSpace)},getPrimaries:function(n){return Su[n].primaries},getTransfer:function(n){return n===ti?rh:Su[n].transfer}};function vl(n){return n<.04045?n*.0773993808:Math.pow(n*.9478672986+.0521327014,2.4)}function rb(n){return n<.0031308?n*12.92:1.055*Math.pow(n,.41666)-.055}let Ga;class tO{static getDataURL(e){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>"u")return e.src;let t;if(e instanceof HTMLCanvasElement)t=e;else{Ga===void 0&&(Ga=vd("canvas")),Ga.width=e.width,Ga.height=e.height;const r=Ga.getContext("2d");e instanceof ImageData?r.putImageData(e,0,0):r.drawImage(e,0,0,e.width,e.height),t=Ga}return t.width>2048||t.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),t.toDataURL("image/jpeg",.6)):t.toDataURL("image/png")}static sRGBToLinear(e){if(typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&e instanceof ImageBitmap){const t=vd("canvas");t.width=e.width,t.height=e.height;const r=t.getContext("2d");r.drawImage(e,0,0,e.width,e.height);const i=r.getImageData(0,0,e.width,e.height),s=i.data;for(let o=0;o0&&(r.userData=this.userData),t||(e.textures[this.uuid]=r),r}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==VI)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case Ll:e.x=e.x-Math.floor(e.x);break;case Jr:e.x=e.x<0?0:1;break;case nh:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case Ll:e.y=e.y-Math.floor(e.y);break;case Jr:e.y=e.y<0?0:1;break;case nh:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}get encoding(){return Zc("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace===Mn?ma:ZI}set encoding(e){Zc("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace=e===ma?Mn:ti}}Jn.DEFAULT_IMAGE=null;Jn.DEFAULT_MAPPING=VI;Jn.DEFAULT_ANISOTROPY=1;class mn{constructor(e=0,t=0,r=0,i=1){mn.prototype.isVector4=!0,this.x=e,this.y=t,this.z=r,this.w=i}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,r,i){return this.x=e,this.y=t,this.z=r,this.w=i,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w!==void 0?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const t=this.x,r=this.y,i=this.z,s=this.w,o=e.elements;return this.x=o[0]*t+o[4]*r+o[8]*i+o[12]*s,this.y=o[1]*t+o[5]*r+o[9]*i+o[13]*s,this.z=o[2]*t+o[6]*r+o[10]*i+o[14]*s,this.w=o[3]*t+o[7]*r+o[11]*i+o[15]*s,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,r,i,s;const l=e.elements,d=l[0],u=l[4],m=l[8],f=l[1],g=l[5],h=l[9],v=l[2],b=l[6],_=l[10];if(Math.abs(u-f)<.01&&Math.abs(m-v)<.01&&Math.abs(h-b)<.01){if(Math.abs(u+f)<.1&&Math.abs(m+v)<.1&&Math.abs(h+b)<.1&&Math.abs(d+g+_-3)<.1)return this.set(1,0,0,0),this;t=Math.PI;const E=(d+1)/2,x=(g+1)/2,A=(_+1)/2,w=(u+f)/4,N=(m+v)/4,L=(h+b)/4;return E>x&&E>A?E<.01?(r=0,i=.707106781,s=.707106781):(r=Math.sqrt(E),i=w/r,s=N/r):x>A?x<.01?(r=.707106781,i=0,s=.707106781):(i=Math.sqrt(x),r=w/i,s=L/i):A<.01?(r=.707106781,i=.707106781,s=0):(s=Math.sqrt(A),r=N/s,i=L/s),this.set(r,i,s,t),this}let y=Math.sqrt((b-h)*(b-h)+(m-v)*(m-v)+(f-u)*(f-u));return Math.abs(y)<.001&&(y=1),this.x=(b-h)/y,this.y=(m-v)/y,this.z=(f-u)/y,this.w=Math.acos((d+g+_-1)/2),this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this.w=Math.max(e.w,Math.min(t.w,this.w)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this.w=Math.max(e,Math.min(t,this.w)),this}clampLength(e,t){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Math.max(e,Math.min(t,r)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}lerpVectors(e,t,r){return this.x=e.x+(t.x-e.x)*r,this.y=e.y+(t.y-e.y)*r,this.z=e.z+(t.z-e.z)*r,this.w=e.w+(t.w-e.w)*r,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class m2t extends sc{constructor(e=1,t=1,r={}){super(),this.isRenderTarget=!0,this.width=e,this.height=t,this.depth=1,this.scissor=new mn(0,0,e,t),this.scissorTest=!1,this.viewport=new mn(0,0,e,t);const i={width:e,height:t,depth:1};r.encoding!==void 0&&(Zc("THREE.WebGLRenderTarget: option.encoding has been replaced by option.colorSpace."),r.colorSpace=r.encoding===ma?Mn:ti),r=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:Cr,depthBuffer:!0,stencilBuffer:!1,depthTexture:null,samples:0},r),this.texture=new Jn(i,r.mapping,r.wrapS,r.wrapT,r.magFilter,r.minFilter,r.format,r.type,r.anisotropy,r.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.flipY=!1,this.texture.generateMipmaps=r.generateMipmaps,this.texture.internalFormat=r.internalFormat,this.depthBuffer=r.depthBuffer,this.stencilBuffer=r.stencilBuffer,this.depthTexture=r.depthTexture,this.samples=r.samples}setSize(e,t,r=1){(this.width!==e||this.height!==t||this.depth!==r)&&(this.width=e,this.height=t,this.depth=r,this.texture.image.width=e,this.texture.image.height=t,this.texture.image.depth=r,this.dispose()),this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return new this.constructor().copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.texture=e.texture.clone(),this.texture.isRenderTargetTexture=!0;const t=Object.assign({},e.texture.image);return this.texture.source=new nO(t),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,e.depthTexture!==null&&(this.depthTexture=e.depthTexture.clone()),this.samples=e.samples,this}dispose(){this.dispatchEvent({type:"dispose"})}}class Ta extends m2t{constructor(e=1,t=1,r={}){super(e,t,r),this.isWebGLRenderTarget=!0}}class rO extends Jn{constructor(e=null,t=1,r=1,i=1){super(null),this.isDataArrayTexture=!0,this.image={data:e,width:t,height:r,depth:i},this.magFilter=$n,this.minFilter=$n,this.wrapR=Jr,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class f2t extends Jn{constructor(e=null,t=1,r=1,i=1){super(null),this.isData3DTexture=!0,this.image={data:e,width:t,height:r,depth:i},this.magFilter=$n,this.minFilter=$n,this.wrapR=Jr,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class Uo{constructor(e=0,t=0,r=0,i=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=r,this._w=i}static slerpFlat(e,t,r,i,s,o,a){let l=r[i+0],d=r[i+1],u=r[i+2],m=r[i+3];const f=s[o+0],g=s[o+1],h=s[o+2],v=s[o+3];if(a===0){e[t+0]=l,e[t+1]=d,e[t+2]=u,e[t+3]=m;return}if(a===1){e[t+0]=f,e[t+1]=g,e[t+2]=h,e[t+3]=v;return}if(m!==v||l!==f||d!==g||u!==h){let b=1-a;const _=l*f+d*g+u*h+m*v,y=_>=0?1:-1,E=1-_*_;if(E>Number.EPSILON){const A=Math.sqrt(E),w=Math.atan2(A,_*y);b=Math.sin(b*w)/A,a=Math.sin(a*w)/A}const x=a*y;if(l=l*b+f*x,d=d*b+g*x,u=u*b+h*x,m=m*b+v*x,b===1-a){const A=1/Math.sqrt(l*l+d*d+u*u+m*m);l*=A,d*=A,u*=A,m*=A}}e[t]=l,e[t+1]=d,e[t+2]=u,e[t+3]=m}static multiplyQuaternionsFlat(e,t,r,i,s,o){const a=r[i],l=r[i+1],d=r[i+2],u=r[i+3],m=s[o],f=s[o+1],g=s[o+2],h=s[o+3];return e[t]=a*h+u*m+l*g-d*f,e[t+1]=l*h+u*f+d*m-a*g,e[t+2]=d*h+u*g+a*f-l*m,e[t+3]=u*h-a*m-l*f-d*g,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,r,i){return this._x=e,this._y=t,this._z=r,this._w=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t){const r=e._x,i=e._y,s=e._z,o=e._order,a=Math.cos,l=Math.sin,d=a(r/2),u=a(i/2),m=a(s/2),f=l(r/2),g=l(i/2),h=l(s/2);switch(o){case"XYZ":this._x=f*u*m+d*g*h,this._y=d*g*m-f*u*h,this._z=d*u*h+f*g*m,this._w=d*u*m-f*g*h;break;case"YXZ":this._x=f*u*m+d*g*h,this._y=d*g*m-f*u*h,this._z=d*u*h-f*g*m,this._w=d*u*m+f*g*h;break;case"ZXY":this._x=f*u*m-d*g*h,this._y=d*g*m+f*u*h,this._z=d*u*h+f*g*m,this._w=d*u*m-f*g*h;break;case"ZYX":this._x=f*u*m-d*g*h,this._y=d*g*m+f*u*h,this._z=d*u*h-f*g*m,this._w=d*u*m+f*g*h;break;case"YZX":this._x=f*u*m+d*g*h,this._y=d*g*m+f*u*h,this._z=d*u*h-f*g*m,this._w=d*u*m-f*g*h;break;case"XZY":this._x=f*u*m-d*g*h,this._y=d*g*m-f*u*h,this._z=d*u*h+f*g*m,this._w=d*u*m+f*g*h;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return t!==!1&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const r=t/2,i=Math.sin(r);return this._x=e.x*i,this._y=e.y*i,this._z=e.z*i,this._w=Math.cos(r),this._onChangeCallback(),this}setFromRotationMatrix(e){const t=e.elements,r=t[0],i=t[4],s=t[8],o=t[1],a=t[5],l=t[9],d=t[2],u=t[6],m=t[10],f=r+a+m;if(f>0){const g=.5/Math.sqrt(f+1);this._w=.25/g,this._x=(u-l)*g,this._y=(s-d)*g,this._z=(o-i)*g}else if(r>a&&r>m){const g=2*Math.sqrt(1+r-a-m);this._w=(u-l)/g,this._x=.25*g,this._y=(i+o)/g,this._z=(s+d)/g}else if(a>m){const g=2*Math.sqrt(1+a-r-m);this._w=(s-d)/g,this._x=(i+o)/g,this._y=.25*g,this._z=(l+u)/g}else{const g=2*Math.sqrt(1+m-r-a);this._w=(o-i)/g,this._x=(s+d)/g,this._y=(l+u)/g,this._z=.25*g}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let r=e.dot(t)+1;return rMath.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=r):(this._x=0,this._y=-e.z,this._z=e.y,this._w=r)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=r),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(or(this.dot(e),-1,1)))}rotateTowards(e,t){const r=this.angleTo(e);if(r===0)return this;const i=Math.min(1,t/r);return this.slerp(e,i),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){const r=e._x,i=e._y,s=e._z,o=e._w,a=t._x,l=t._y,d=t._z,u=t._w;return this._x=r*u+o*a+i*d-s*l,this._y=i*u+o*l+s*a-r*d,this._z=s*u+o*d+r*l-i*a,this._w=o*u-r*a-i*l-s*d,this._onChangeCallback(),this}slerp(e,t){if(t===0)return this;if(t===1)return this.copy(e);const r=this._x,i=this._y,s=this._z,o=this._w;let a=o*e._w+r*e._x+i*e._y+s*e._z;if(a<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,a=-a):this.copy(e),a>=1)return this._w=o,this._x=r,this._y=i,this._z=s,this;const l=1-a*a;if(l<=Number.EPSILON){const g=1-t;return this._w=g*o+t*this._w,this._x=g*r+t*this._x,this._y=g*i+t*this._y,this._z=g*s+t*this._z,this.normalize(),this._onChangeCallback(),this}const d=Math.sqrt(l),u=Math.atan2(d,a),m=Math.sin((1-t)*u)/d,f=Math.sin(t*u)/d;return this._w=o*m+this._w*f,this._x=r*m+this._x*f,this._y=i*m+this._y*f,this._z=s*m+this._z*f,this._onChangeCallback(),this}slerpQuaternions(e,t,r){return this.copy(e).slerp(t,r)}random(){const e=Math.random(),t=Math.sqrt(1-e),r=Math.sqrt(e),i=2*Math.PI*Math.random(),s=2*Math.PI*Math.random();return this.set(t*Math.cos(i),r*Math.sin(s),r*Math.cos(s),t*Math.sin(i))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class he{constructor(e=0,t=0,r=0){he.prototype.isVector3=!0,this.x=e,this.y=t,this.z=r}set(e,t,r){return r===void 0&&(r=this.z),this.x=e,this.y=t,this.z=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(lR.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(lR.setFromAxisAngle(e,t))}applyMatrix3(e){const t=this.x,r=this.y,i=this.z,s=e.elements;return this.x=s[0]*t+s[3]*r+s[6]*i,this.y=s[1]*t+s[4]*r+s[7]*i,this.z=s[2]*t+s[5]*r+s[8]*i,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,r=this.y,i=this.z,s=e.elements,o=1/(s[3]*t+s[7]*r+s[11]*i+s[15]);return this.x=(s[0]*t+s[4]*r+s[8]*i+s[12])*o,this.y=(s[1]*t+s[5]*r+s[9]*i+s[13])*o,this.z=(s[2]*t+s[6]*r+s[10]*i+s[14])*o,this}applyQuaternion(e){const t=this.x,r=this.y,i=this.z,s=e.x,o=e.y,a=e.z,l=e.w,d=2*(o*i-a*r),u=2*(a*t-s*i),m=2*(s*r-o*t);return this.x=t+l*d+o*m-a*u,this.y=r+l*u+a*d-s*m,this.z=i+l*m+s*u-o*d,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const t=this.x,r=this.y,i=this.z,s=e.elements;return this.x=s[0]*t+s[4]*r+s[8]*i,this.y=s[1]*t+s[5]*r+s[9]*i,this.z=s[2]*t+s[6]*r+s[10]*i,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this}clampLength(e,t){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Math.max(e,Math.min(t,r)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,r){return this.x=e.x+(t.x-e.x)*r,this.y=e.y+(t.y-e.y)*r,this.z=e.z+(t.z-e.z)*r,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){const r=e.x,i=e.y,s=e.z,o=t.x,a=t.y,l=t.z;return this.x=i*l-s*a,this.y=s*o-r*l,this.z=r*a-i*o,this}projectOnVector(e){const t=e.lengthSq();if(t===0)return this.set(0,0,0);const r=e.dot(this)/t;return this.copy(e).multiplyScalar(r)}projectOnPlane(e){return sb.copy(this).projectOnVector(e),this.sub(sb)}reflect(e){return this.sub(sb.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const r=this.dot(e)/t;return Math.acos(or(r,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,r=this.y-e.y,i=this.z-e.z;return t*t+r*r+i*i}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,r){const i=Math.sin(t)*e;return this.x=i*Math.sin(r),this.y=Math.cos(t)*e,this.z=i*Math.cos(r),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,r){return this.x=e*Math.sin(t),this.y=r,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const t=this.setFromMatrixColumn(e,0).length(),r=this.setFromMatrixColumn(e,1).length(),i=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=r,this.z=i,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=(Math.random()-.5)*2,t=Math.random()*Math.PI*2,r=Math.sqrt(1-e**2);return this.x=r*Math.cos(t),this.y=r*Math.sin(t),this.z=e,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const sb=new he,lR=new Uo;class zs{constructor(e=new he(1/0,1/0,1/0),t=new he(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,r=e.length;tthis.max.x||e.ythis.max.y||e.zthis.max.z)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return!(e.max.xthis.max.x||e.max.ythis.max.y||e.max.zthis.max.z)}intersectsSphere(e){return this.clampPoint(e.center,vi),vi.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,r;return e.normal.x>0?(t=e.normal.x*this.min.x,r=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,r=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,r+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,r+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,r+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,r+=e.normal.z*this.min.z),t<=-e.constant&&r>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(Sc),Tu.subVectors(this.max,Sc),za.subVectors(e.a,Sc),Va.subVectors(e.b,Sc),Ha.subVectors(e.c,Sc),Xs.subVectors(Va,za),Zs.subVectors(Ha,Va),Yo.subVectors(za,Ha);let t=[0,-Xs.z,Xs.y,0,-Zs.z,Zs.y,0,-Yo.z,Yo.y,Xs.z,0,-Xs.x,Zs.z,0,-Zs.x,Yo.z,0,-Yo.x,-Xs.y,Xs.x,0,-Zs.y,Zs.x,0,-Yo.y,Yo.x,0];return!ob(t,za,Va,Ha,Tu)||(t=[1,0,0,0,1,0,0,0,1],!ob(t,za,Va,Ha,Tu))?!1:(wu.crossVectors(Xs,Zs),t=[wu.x,wu.y,wu.z],ob(t,za,Va,Ha,Tu))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,vi).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(vi).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()?this:(ps[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),ps[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),ps[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),ps[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),ps[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),ps[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),ps[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),ps[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(ps),this)}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const ps=[new he,new he,new he,new he,new he,new he,new he,new he],vi=new he,xu=new zs,za=new he,Va=new he,Ha=new he,Xs=new he,Zs=new he,Yo=new he,Sc=new he,Tu=new he,wu=new he,$o=new he;function ob(n,e,t,r,i){for(let s=0,o=n.length-3;s<=o;s+=3){$o.fromArray(n,s);const a=i.x*Math.abs($o.x)+i.y*Math.abs($o.y)+i.z*Math.abs($o.z),l=e.dot($o),d=t.dot($o),u=r.dot($o);if(Math.max(-Math.max(l,d,u),Math.min(l,d,u))>a)return!1}return!0}const g2t=new zs,xc=new he,ab=new he;class os{constructor(e=new he,t=-1){this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const r=this.center;t!==void 0?r.copy(t):g2t.setFromPoints(e).getCenter(r);let i=0;for(let s=0,o=e.length;sthis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;xc.subVectors(e,this.center);const t=xc.lengthSq();if(t>this.radius*this.radius){const r=Math.sqrt(t),i=(r-this.radius)*.5;this.center.addScaledVector(xc,i/r),this.radius+=i}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(ab.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(xc.copy(e.center).add(ab)),this.expandByPoint(xc.copy(e.center).sub(ab))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}}const hs=new he,lb=new he,Cu=new he,Js=new he,cb=new he,Au=new he,db=new he;class am{constructor(e=new he,t=new he(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,hs)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const r=t.dot(this.direction);return r<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,r)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=hs.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(hs.copy(this.origin).addScaledVector(this.direction,t),hs.distanceToSquared(e))}distanceSqToSegment(e,t,r,i){lb.copy(e).add(t).multiplyScalar(.5),Cu.copy(t).sub(e).normalize(),Js.copy(this.origin).sub(lb);const s=e.distanceTo(t)*.5,o=-this.direction.dot(Cu),a=Js.dot(this.direction),l=-Js.dot(Cu),d=Js.lengthSq(),u=Math.abs(1-o*o);let m,f,g,h;if(u>0)if(m=o*l-a,f=o*a-l,h=s*u,m>=0)if(f>=-h)if(f<=h){const v=1/u;m*=v,f*=v,g=m*(m+o*f+2*a)+f*(o*m+f+2*l)+d}else f=s,m=Math.max(0,-(o*f+a)),g=-m*m+f*(f+2*l)+d;else f=-s,m=Math.max(0,-(o*f+a)),g=-m*m+f*(f+2*l)+d;else f<=-h?(m=Math.max(0,-(-o*s+a)),f=m>0?-s:Math.min(Math.max(-s,-l),s),g=-m*m+f*(f+2*l)+d):f<=h?(m=0,f=Math.min(Math.max(-s,-l),s),g=f*(f+2*l)+d):(m=Math.max(0,-(o*s+a)),f=m>0?s:Math.min(Math.max(-s,-l),s),g=-m*m+f*(f+2*l)+d);else f=o>0?-s:s,m=Math.max(0,-(o*f+a)),g=-m*m+f*(f+2*l)+d;return r&&r.copy(this.origin).addScaledVector(this.direction,m),i&&i.copy(lb).addScaledVector(Cu,f),g}intersectSphere(e,t){hs.subVectors(e.center,this.origin);const r=hs.dot(this.direction),i=hs.dot(hs)-r*r,s=e.radius*e.radius;if(i>s)return null;const o=Math.sqrt(s-i),a=r-o,l=r+o;return l<0?null:a<0?this.at(l,t):this.at(a,t)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const t=e.normal.dot(this.direction);if(t===0)return e.distanceToPoint(this.origin)===0?0:null;const r=-(this.origin.dot(e.normal)+e.constant)/t;return r>=0?r:null}intersectPlane(e,t){const r=this.distanceToPlane(e);return r===null?null:this.at(r,t)}intersectsPlane(e){const t=e.distanceToPoint(this.origin);return t===0||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let r,i,s,o,a,l;const d=1/this.direction.x,u=1/this.direction.y,m=1/this.direction.z,f=this.origin;return d>=0?(r=(e.min.x-f.x)*d,i=(e.max.x-f.x)*d):(r=(e.max.x-f.x)*d,i=(e.min.x-f.x)*d),u>=0?(s=(e.min.y-f.y)*u,o=(e.max.y-f.y)*u):(s=(e.max.y-f.y)*u,o=(e.min.y-f.y)*u),r>o||s>i||((s>r||isNaN(r))&&(r=s),(o=0?(a=(e.min.z-f.z)*m,l=(e.max.z-f.z)*m):(a=(e.max.z-f.z)*m,l=(e.min.z-f.z)*m),r>l||a>i)||((a>r||r!==r)&&(r=a),(l=0?r:i,t)}intersectsBox(e){return this.intersectBox(e,hs)!==null}intersectTriangle(e,t,r,i,s){cb.subVectors(t,e),Au.subVectors(r,e),db.crossVectors(cb,Au);let o=this.direction.dot(db),a;if(o>0){if(i)return null;a=1}else if(o<0)a=-1,o=-o;else return null;Js.subVectors(this.origin,e);const l=a*this.direction.dot(Au.crossVectors(Js,Au));if(l<0)return null;const d=a*this.direction.dot(cb.cross(Js));if(d<0||l+d>o)return null;const u=-a*Js.dot(db);return u<0?null:this.at(u/o,s)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}}class Ht{constructor(e,t,r,i,s,o,a,l,d,u,m,f,g,h,v,b){Ht.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],e!==void 0&&this.set(e,t,r,i,s,o,a,l,d,u,m,f,g,h,v,b)}set(e,t,r,i,s,o,a,l,d,u,m,f,g,h,v,b){const _=this.elements;return _[0]=e,_[4]=t,_[8]=r,_[12]=i,_[1]=s,_[5]=o,_[9]=a,_[13]=l,_[2]=d,_[6]=u,_[10]=m,_[14]=f,_[3]=g,_[7]=h,_[11]=v,_[15]=b,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new Ht().fromArray(this.elements)}copy(e){const t=this.elements,r=e.elements;return t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=r[3],t[4]=r[4],t[5]=r[5],t[6]=r[6],t[7]=r[7],t[8]=r[8],t[9]=r[9],t[10]=r[10],t[11]=r[11],t[12]=r[12],t[13]=r[13],t[14]=r[14],t[15]=r[15],this}copyPosition(e){const t=this.elements,r=e.elements;return t[12]=r[12],t[13]=r[13],t[14]=r[14],this}setFromMatrix3(e){const t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,r){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),r.setFromMatrixColumn(this,2),this}makeBasis(e,t,r){return this.set(e.x,t.x,r.x,0,e.y,t.y,r.y,0,e.z,t.z,r.z,0,0,0,0,1),this}extractRotation(e){const t=this.elements,r=e.elements,i=1/qa.setFromMatrixColumn(e,0).length(),s=1/qa.setFromMatrixColumn(e,1).length(),o=1/qa.setFromMatrixColumn(e,2).length();return t[0]=r[0]*i,t[1]=r[1]*i,t[2]=r[2]*i,t[3]=0,t[4]=r[4]*s,t[5]=r[5]*s,t[6]=r[6]*s,t[7]=0,t[8]=r[8]*o,t[9]=r[9]*o,t[10]=r[10]*o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){const t=this.elements,r=e.x,i=e.y,s=e.z,o=Math.cos(r),a=Math.sin(r),l=Math.cos(i),d=Math.sin(i),u=Math.cos(s),m=Math.sin(s);if(e.order==="XYZ"){const f=o*u,g=o*m,h=a*u,v=a*m;t[0]=l*u,t[4]=-l*m,t[8]=d,t[1]=g+h*d,t[5]=f-v*d,t[9]=-a*l,t[2]=v-f*d,t[6]=h+g*d,t[10]=o*l}else if(e.order==="YXZ"){const f=l*u,g=l*m,h=d*u,v=d*m;t[0]=f+v*a,t[4]=h*a-g,t[8]=o*d,t[1]=o*m,t[5]=o*u,t[9]=-a,t[2]=g*a-h,t[6]=v+f*a,t[10]=o*l}else if(e.order==="ZXY"){const f=l*u,g=l*m,h=d*u,v=d*m;t[0]=f-v*a,t[4]=-o*m,t[8]=h+g*a,t[1]=g+h*a,t[5]=o*u,t[9]=v-f*a,t[2]=-o*d,t[6]=a,t[10]=o*l}else if(e.order==="ZYX"){const f=o*u,g=o*m,h=a*u,v=a*m;t[0]=l*u,t[4]=h*d-g,t[8]=f*d+v,t[1]=l*m,t[5]=v*d+f,t[9]=g*d-h,t[2]=-d,t[6]=a*l,t[10]=o*l}else if(e.order==="YZX"){const f=o*l,g=o*d,h=a*l,v=a*d;t[0]=l*u,t[4]=v-f*m,t[8]=h*m+g,t[1]=m,t[5]=o*u,t[9]=-a*u,t[2]=-d*u,t[6]=g*m+h,t[10]=f-v*m}else if(e.order==="XZY"){const f=o*l,g=o*d,h=a*l,v=a*d;t[0]=l*u,t[4]=-m,t[8]=d*u,t[1]=f*m+v,t[5]=o*u,t[9]=g*m-h,t[2]=h*m-g,t[6]=a*u,t[10]=v*m+f}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(_2t,e,b2t)}lookAt(e,t,r){const i=this.elements;return Lr.subVectors(e,t),Lr.lengthSq()===0&&(Lr.z=1),Lr.normalize(),eo.crossVectors(r,Lr),eo.lengthSq()===0&&(Math.abs(r.z)===1?Lr.x+=1e-4:Lr.z+=1e-4,Lr.normalize(),eo.crossVectors(r,Lr)),eo.normalize(),Ru.crossVectors(Lr,eo),i[0]=eo.x,i[4]=Ru.x,i[8]=Lr.x,i[1]=eo.y,i[5]=Ru.y,i[9]=Lr.y,i[2]=eo.z,i[6]=Ru.z,i[10]=Lr.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const r=e.elements,i=t.elements,s=this.elements,o=r[0],a=r[4],l=r[8],d=r[12],u=r[1],m=r[5],f=r[9],g=r[13],h=r[2],v=r[6],b=r[10],_=r[14],y=r[3],E=r[7],x=r[11],A=r[15],w=i[0],N=i[4],L=i[8],C=i[12],k=i[1],H=i[5],q=i[9],ie=i[13],D=i[2],$=i[6],K=i[10],B=i[14],Z=i[3],ce=i[7],ue=i[11],xe=i[15];return s[0]=o*w+a*k+l*D+d*Z,s[4]=o*N+a*H+l*$+d*ce,s[8]=o*L+a*q+l*K+d*ue,s[12]=o*C+a*ie+l*B+d*xe,s[1]=u*w+m*k+f*D+g*Z,s[5]=u*N+m*H+f*$+g*ce,s[9]=u*L+m*q+f*K+g*ue,s[13]=u*C+m*ie+f*B+g*xe,s[2]=h*w+v*k+b*D+_*Z,s[6]=h*N+v*H+b*$+_*ce,s[10]=h*L+v*q+b*K+_*ue,s[14]=h*C+v*ie+b*B+_*xe,s[3]=y*w+E*k+x*D+A*Z,s[7]=y*N+E*H+x*$+A*ce,s[11]=y*L+E*q+x*K+A*ue,s[15]=y*C+E*ie+x*B+A*xe,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){const e=this.elements,t=e[0],r=e[4],i=e[8],s=e[12],o=e[1],a=e[5],l=e[9],d=e[13],u=e[2],m=e[6],f=e[10],g=e[14],h=e[3],v=e[7],b=e[11],_=e[15];return h*(+s*l*m-i*d*m-s*a*f+r*d*f+i*a*g-r*l*g)+v*(+t*l*g-t*d*f+s*o*f-i*o*g+i*d*u-s*l*u)+b*(+t*d*m-t*a*g-s*o*m+r*o*g+s*a*u-r*d*u)+_*(-i*a*u-t*l*m+t*a*f+i*o*m-r*o*f+r*l*u)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,r){const i=this.elements;return e.isVector3?(i[12]=e.x,i[13]=e.y,i[14]=e.z):(i[12]=e,i[13]=t,i[14]=r),this}invert(){const e=this.elements,t=e[0],r=e[1],i=e[2],s=e[3],o=e[4],a=e[5],l=e[6],d=e[7],u=e[8],m=e[9],f=e[10],g=e[11],h=e[12],v=e[13],b=e[14],_=e[15],y=m*b*d-v*f*d+v*l*g-a*b*g-m*l*_+a*f*_,E=h*f*d-u*b*d-h*l*g+o*b*g+u*l*_-o*f*_,x=u*v*d-h*m*d+h*a*g-o*v*g-u*a*_+o*m*_,A=h*m*l-u*v*l-h*a*f+o*v*f+u*a*b-o*m*b,w=t*y+r*E+i*x+s*A;if(w===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const N=1/w;return e[0]=y*N,e[1]=(v*f*s-m*b*s-v*i*g+r*b*g+m*i*_-r*f*_)*N,e[2]=(a*b*s-v*l*s+v*i*d-r*b*d-a*i*_+r*l*_)*N,e[3]=(m*l*s-a*f*s-m*i*d+r*f*d+a*i*g-r*l*g)*N,e[4]=E*N,e[5]=(u*b*s-h*f*s+h*i*g-t*b*g-u*i*_+t*f*_)*N,e[6]=(h*l*s-o*b*s-h*i*d+t*b*d+o*i*_-t*l*_)*N,e[7]=(o*f*s-u*l*s+u*i*d-t*f*d-o*i*g+t*l*g)*N,e[8]=x*N,e[9]=(h*m*s-u*v*s-h*r*g+t*v*g+u*r*_-t*m*_)*N,e[10]=(o*v*s-h*a*s+h*r*d-t*v*d-o*r*_+t*a*_)*N,e[11]=(u*a*s-o*m*s-u*r*d+t*m*d+o*r*g-t*a*g)*N,e[12]=A*N,e[13]=(u*v*i-h*m*i+h*r*f-t*v*f-u*r*b+t*m*b)*N,e[14]=(h*a*i-o*v*i-h*r*l+t*v*l+o*r*b-t*a*b)*N,e[15]=(o*m*i-u*a*i+u*r*l-t*m*l-o*r*f+t*a*f)*N,this}scale(e){const t=this.elements,r=e.x,i=e.y,s=e.z;return t[0]*=r,t[4]*=i,t[8]*=s,t[1]*=r,t[5]*=i,t[9]*=s,t[2]*=r,t[6]*=i,t[10]*=s,t[3]*=r,t[7]*=i,t[11]*=s,this}getMaxScaleOnAxis(){const e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],r=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],i=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,r,i))}makeTranslation(e,t,r){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,r,0,0,0,1),this}makeRotationX(e){const t=Math.cos(e),r=Math.sin(e);return this.set(1,0,0,0,0,t,-r,0,0,r,t,0,0,0,0,1),this}makeRotationY(e){const t=Math.cos(e),r=Math.sin(e);return this.set(t,0,r,0,0,1,0,0,-r,0,t,0,0,0,0,1),this}makeRotationZ(e){const t=Math.cos(e),r=Math.sin(e);return this.set(t,-r,0,0,r,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){const r=Math.cos(t),i=Math.sin(t),s=1-r,o=e.x,a=e.y,l=e.z,d=s*o,u=s*a;return this.set(d*o+r,d*a-i*l,d*l+i*a,0,d*a+i*l,u*a+r,u*l-i*o,0,d*l-i*a,u*l+i*o,s*l*l+r,0,0,0,0,1),this}makeScale(e,t,r){return this.set(e,0,0,0,0,t,0,0,0,0,r,0,0,0,0,1),this}makeShear(e,t,r,i,s,o){return this.set(1,r,s,0,e,1,o,0,t,i,1,0,0,0,0,1),this}compose(e,t,r){const i=this.elements,s=t._x,o=t._y,a=t._z,l=t._w,d=s+s,u=o+o,m=a+a,f=s*d,g=s*u,h=s*m,v=o*u,b=o*m,_=a*m,y=l*d,E=l*u,x=l*m,A=r.x,w=r.y,N=r.z;return i[0]=(1-(v+_))*A,i[1]=(g+x)*A,i[2]=(h-E)*A,i[3]=0,i[4]=(g-x)*w,i[5]=(1-(f+_))*w,i[6]=(b+y)*w,i[7]=0,i[8]=(h+E)*N,i[9]=(b-y)*N,i[10]=(1-(f+v))*N,i[11]=0,i[12]=e.x,i[13]=e.y,i[14]=e.z,i[15]=1,this}decompose(e,t,r){const i=this.elements;let s=qa.set(i[0],i[1],i[2]).length();const o=qa.set(i[4],i[5],i[6]).length(),a=qa.set(i[8],i[9],i[10]).length();this.determinant()<0&&(s=-s),e.x=i[12],e.y=i[13],e.z=i[14],yi.copy(this);const d=1/s,u=1/o,m=1/a;return yi.elements[0]*=d,yi.elements[1]*=d,yi.elements[2]*=d,yi.elements[4]*=u,yi.elements[5]*=u,yi.elements[6]*=u,yi.elements[8]*=m,yi.elements[9]*=m,yi.elements[10]*=m,t.setFromRotationMatrix(yi),r.x=s,r.y=o,r.z=a,this}makePerspective(e,t,r,i,s,o,a=ws){const l=this.elements,d=2*s/(t-e),u=2*s/(r-i),m=(t+e)/(t-e),f=(r+i)/(r-i);let g,h;if(a===ws)g=-(o+s)/(o-s),h=-2*o*s/(o-s);else if(a===oh)g=-o/(o-s),h=-o*s/(o-s);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+a);return l[0]=d,l[4]=0,l[8]=m,l[12]=0,l[1]=0,l[5]=u,l[9]=f,l[13]=0,l[2]=0,l[6]=0,l[10]=g,l[14]=h,l[3]=0,l[7]=0,l[11]=-1,l[15]=0,this}makeOrthographic(e,t,r,i,s,o,a=ws){const l=this.elements,d=1/(t-e),u=1/(r-i),m=1/(o-s),f=(t+e)*d,g=(r+i)*u;let h,v;if(a===ws)h=(o+s)*m,v=-2*m;else if(a===oh)h=s*m,v=-1*m;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+a);return l[0]=2*d,l[4]=0,l[8]=0,l[12]=-f,l[1]=0,l[5]=2*u,l[9]=0,l[13]=-g,l[2]=0,l[6]=0,l[10]=v,l[14]=-h,l[3]=0,l[7]=0,l[11]=0,l[15]=1,this}equals(e){const t=this.elements,r=e.elements;for(let i=0;i<16;i++)if(t[i]!==r[i])return!1;return!0}fromArray(e,t=0){for(let r=0;r<16;r++)this.elements[r]=e[r+t];return this}toArray(e=[],t=0){const r=this.elements;return e[t]=r[0],e[t+1]=r[1],e[t+2]=r[2],e[t+3]=r[3],e[t+4]=r[4],e[t+5]=r[5],e[t+6]=r[6],e[t+7]=r[7],e[t+8]=r[8],e[t+9]=r[9],e[t+10]=r[10],e[t+11]=r[11],e[t+12]=r[12],e[t+13]=r[13],e[t+14]=r[14],e[t+15]=r[15],e}}const qa=new he,yi=new Ht,_2t=new he(0,0,0),b2t=new he(1,1,1),eo=new he,Ru=new he,Lr=new he,cR=new Ht,dR=new Uo;class lm{constructor(e=0,t=0,r=0,i=lm.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=t,this._z=r,this._order=i}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,r,i=this._order){return this._x=e,this._y=t,this._z=r,this._order=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,r=!0){const i=e.elements,s=i[0],o=i[4],a=i[8],l=i[1],d=i[5],u=i[9],m=i[2],f=i[6],g=i[10];switch(t){case"XYZ":this._y=Math.asin(or(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-u,g),this._z=Math.atan2(-o,s)):(this._x=Math.atan2(f,d),this._z=0);break;case"YXZ":this._x=Math.asin(-or(u,-1,1)),Math.abs(u)<.9999999?(this._y=Math.atan2(a,g),this._z=Math.atan2(l,d)):(this._y=Math.atan2(-m,s),this._z=0);break;case"ZXY":this._x=Math.asin(or(f,-1,1)),Math.abs(f)<.9999999?(this._y=Math.atan2(-m,g),this._z=Math.atan2(-o,d)):(this._y=0,this._z=Math.atan2(l,s));break;case"ZYX":this._y=Math.asin(-or(m,-1,1)),Math.abs(m)<.9999999?(this._x=Math.atan2(f,g),this._z=Math.atan2(l,s)):(this._x=0,this._z=Math.atan2(-o,d));break;case"YZX":this._z=Math.asin(or(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-u,d),this._y=Math.atan2(-m,s)):(this._x=0,this._y=Math.atan2(a,g));break;case"XZY":this._z=Math.asin(-or(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(f,d),this._y=Math.atan2(a,s)):(this._x=Math.atan2(-u,g),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,r===!0&&this._onChangeCallback(),this}setFromQuaternion(e,t,r){return cR.makeRotationFromQuaternion(e),this.setFromRotationMatrix(cR,t,r)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return dR.setFromEuler(this),this.setFromQuaternion(dR,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],e[3]!==void 0&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}lm.DEFAULT_ORDER="XYZ";class iO{constructor(){this.mask=1}set(e){this.mask=(1<>>0}enable(e){this.mask|=1<1){for(let t=0;t1){for(let r=0;r0&&(i.userData=this.userData),i.layers=this.layers.mask,i.matrix=this.matrix.toArray(),i.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(i.matrixAutoUpdate=!1),this.isInstancedMesh&&(i.type="InstancedMesh",i.count=this.count,i.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(i.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(i.type="BatchedMesh",i.perObjectFrustumCulled=this.perObjectFrustumCulled,i.sortObjects=this.sortObjects,i.drawRanges=this._drawRanges,i.reservedRanges=this._reservedRanges,i.visibility=this._visibility,i.active=this._active,i.bounds=this._bounds.map(a=>({boxInitialized:a.boxInitialized,boxMin:a.box.min.toArray(),boxMax:a.box.max.toArray(),sphereInitialized:a.sphereInitialized,sphereRadius:a.sphere.radius,sphereCenter:a.sphere.center.toArray()})),i.maxGeometryCount=this._maxGeometryCount,i.maxVertexCount=this._maxVertexCount,i.maxIndexCount=this._maxIndexCount,i.geometryInitialized=this._geometryInitialized,i.geometryCount=this._geometryCount,i.matricesTexture=this._matricesTexture.toJSON(e),this.boundingSphere!==null&&(i.boundingSphere={center:i.boundingSphere.center.toArray(),radius:i.boundingSphere.radius}),this.boundingBox!==null&&(i.boundingBox={min:i.boundingBox.min.toArray(),max:i.boundingBox.max.toArray()}));function s(a,l){return a[l.uuid]===void 0&&(a[l.uuid]=l.toJSON(e)),l.uuid}if(this.isScene)this.background&&(this.background.isColor?i.background=this.background.toJSON():this.background.isTexture&&(i.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(i.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){i.geometry=s(e.geometries,this.geometry);const a=this.geometry.parameters;if(a!==void 0&&a.shapes!==void 0){const l=a.shapes;if(Array.isArray(l))for(let d=0,u=l.length;d0){i.children=[];for(let a=0;a0){i.animations=[];for(let a=0;a0&&(r.geometries=a),l.length>0&&(r.materials=l),d.length>0&&(r.textures=d),u.length>0&&(r.images=u),m.length>0&&(r.shapes=m),f.length>0&&(r.skeletons=f),g.length>0&&(r.animations=g),h.length>0&&(r.nodes=h)}return r.object=i,r;function o(a){const l=[];for(const d in a){const u=a[d];delete u.metadata,l.push(u)}return l}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),t===!0)for(let r=0;r0?i.multiplyScalar(1/Math.sqrt(s)):i.set(0,0,0)}static getBarycoord(e,t,r,i,s){Ei.subVectors(i,t),fs.subVectors(r,t),ub.subVectors(e,t);const o=Ei.dot(Ei),a=Ei.dot(fs),l=Ei.dot(ub),d=fs.dot(fs),u=fs.dot(ub),m=o*d-a*a;if(m===0)return s.set(-2,-1,-1);const f=1/m,g=(d*l-a*u)*f,h=(o*u-a*l)*f;return s.set(1-g-h,h,g)}static containsPoint(e,t,r,i){return this.getBarycoord(e,t,r,i,gs),gs.x>=0&&gs.y>=0&&gs.x+gs.y<=1}static getUV(e,t,r,i,s,o,a,l){return Nu===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),Nu=!0),this.getInterpolation(e,t,r,i,s,o,a,l)}static getInterpolation(e,t,r,i,s,o,a,l){return this.getBarycoord(e,t,r,i,gs),l.setScalar(0),l.addScaledVector(s,gs.x),l.addScaledVector(o,gs.y),l.addScaledVector(a,gs.z),l}static isFrontFacing(e,t,r,i){return Ei.subVectors(r,t),fs.subVectors(e,t),Ei.cross(fs).dot(i)<0}set(e,t,r){return this.a.copy(e),this.b.copy(t),this.c.copy(r),this}setFromPointsAndIndices(e,t,r,i){return this.a.copy(e[t]),this.b.copy(e[r]),this.c.copy(e[i]),this}setFromAttributeAndIndices(e,t,r,i){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,r),this.c.fromBufferAttribute(e,i),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return Ei.subVectors(this.c,this.b),fs.subVectors(this.a,this.b),Ei.cross(fs).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return wi.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return wi.getBarycoord(e,this.a,this.b,this.c,t)}getUV(e,t,r,i,s){return Nu===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),Nu=!0),wi.getInterpolation(e,this.a,this.b,this.c,t,r,i,s)}getInterpolation(e,t,r,i,s){return wi.getInterpolation(e,this.a,this.b,this.c,t,r,i,s)}containsPoint(e){return wi.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return wi.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const r=this.a,i=this.b,s=this.c;let o,a;$a.subVectors(i,r),Wa.subVectors(s,r),pb.subVectors(e,r);const l=$a.dot(pb),d=Wa.dot(pb);if(l<=0&&d<=0)return t.copy(r);hb.subVectors(e,i);const u=$a.dot(hb),m=Wa.dot(hb);if(u>=0&&m<=u)return t.copy(i);const f=l*m-u*d;if(f<=0&&l>=0&&u<=0)return o=l/(l-u),t.copy(r).addScaledVector($a,o);mb.subVectors(e,s);const g=$a.dot(mb),h=Wa.dot(mb);if(h>=0&&g<=h)return t.copy(s);const v=g*d-l*h;if(v<=0&&d>=0&&h<=0)return a=d/(d-h),t.copy(r).addScaledVector(Wa,a);const b=u*h-g*m;if(b<=0&&m-u>=0&&g-h>=0)return fR.subVectors(s,i),a=(m-u)/(m-u+(g-h)),t.copy(i).addScaledVector(fR,a);const _=1/(b+v+f);return o=v*_,a=f*_,t.copy(r).addScaledVector($a,o).addScaledVector(Wa,a)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const sO={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},to={h:0,s:0,l:0},ku={h:0,s:0,l:0};function fb(n,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?n+(e-n)*6*t:t<1/2?e:t<2/3?n+(e-n)*6*(2/3-t):n}class Nt{constructor(e,t,r){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,r)}set(e,t,r){if(t===void 0&&r===void 0){const i=e;i&&i.isColor?this.copy(i):typeof i=="number"?this.setHex(i):typeof i=="string"&&this.setStyle(i)}else this.setRGB(e,t,r);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=Mn){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,tn.toWorkingColorSpace(this,t),this}setRGB(e,t,r,i=tn.workingColorSpace){return this.r=e,this.g=t,this.b=r,tn.toWorkingColorSpace(this,i),this}setHSL(e,t,r,i=tn.workingColorSpace){if(e=jy(e,1),t=or(t,0,1),r=or(r,0,1),t===0)this.r=this.g=this.b=r;else{const s=r<=.5?r*(1+t):r+t-r*t,o=2*r-s;this.r=fb(o,s,e+1/3),this.g=fb(o,s,e),this.b=fb(o,s,e-1/3)}return tn.toWorkingColorSpace(this,i),this}setStyle(e,t=Mn){function r(s){s!==void 0&&parseFloat(s)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let i;if(i=/^(\w+)\(([^\)]*)\)/.exec(e)){let s;const o=i[1],a=i[2];switch(o){case"rgb":case"rgba":if(s=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return r(s[4]),this.setRGB(Math.min(255,parseInt(s[1],10))/255,Math.min(255,parseInt(s[2],10))/255,Math.min(255,parseInt(s[3],10))/255,t);if(s=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return r(s[4]),this.setRGB(Math.min(100,parseInt(s[1],10))/100,Math.min(100,parseInt(s[2],10))/100,Math.min(100,parseInt(s[3],10))/100,t);break;case"hsl":case"hsla":if(s=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return r(s[4]),this.setHSL(parseFloat(s[1])/360,parseFloat(s[2])/100,parseFloat(s[3])/100,t);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(i=/^\#([A-Fa-f\d]+)$/.exec(e)){const s=i[1],o=s.length;if(o===3)return this.setRGB(parseInt(s.charAt(0),16)/15,parseInt(s.charAt(1),16)/15,parseInt(s.charAt(2),16)/15,t);if(o===6)return this.setHex(parseInt(s,16),t);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=Mn){const r=sO[e.toLowerCase()];return r!==void 0?this.setHex(r,t):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=vl(e.r),this.g=vl(e.g),this.b=vl(e.b),this}copyLinearToSRGB(e){return this.r=rb(e.r),this.g=rb(e.g),this.b=rb(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=Mn){return tn.fromWorkingColorSpace(ir.copy(this),e),Math.round(or(ir.r*255,0,255))*65536+Math.round(or(ir.g*255,0,255))*256+Math.round(or(ir.b*255,0,255))}getHexString(e=Mn){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=tn.workingColorSpace){tn.fromWorkingColorSpace(ir.copy(this),t);const r=ir.r,i=ir.g,s=ir.b,o=Math.max(r,i,s),a=Math.min(r,i,s);let l,d;const u=(a+o)/2;if(a===o)l=0,d=0;else{const m=o-a;switch(d=u<=.5?m/(o+a):m/(2-o-a),o){case r:l=(i-s)/m+(i0!=e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(const t in e){const r=e[t];if(r===void 0){console.warn(`THREE.Material: parameter '${t}' has value of undefined.`);continue}const i=this[t];if(i===void 0){console.warn(`THREE.Material: '${t}' is not a property of THREE.${this.type}.`);continue}i&&i.isColor?i.set(r):i&&i.isVector3&&r&&r.isVector3?i.copy(r):this[t]=r}}toJSON(e){const t=e===void 0||typeof e=="string";t&&(e={textures:{},images:{}});const r={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};r.uuid=this.uuid,r.type=this.type,this.name!==""&&(r.name=this.name),this.color&&this.color.isColor&&(r.color=this.color.getHex()),this.roughness!==void 0&&(r.roughness=this.roughness),this.metalness!==void 0&&(r.metalness=this.metalness),this.sheen!==void 0&&(r.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(r.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(r.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(r.emissive=this.emissive.getHex()),this.emissiveIntensity&&this.emissiveIntensity!==1&&(r.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(r.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(r.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(r.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(r.shininess=this.shininess),this.clearcoat!==void 0&&(r.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(r.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(r.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(r.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(r.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,r.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.iridescence!==void 0&&(r.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(r.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(r.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(r.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(r.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(r.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(r.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(r.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(r.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(r.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(r.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(r.lightMap=this.lightMap.toJSON(e).uuid,r.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(r.aoMap=this.aoMap.toJSON(e).uuid,r.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(r.bumpMap=this.bumpMap.toJSON(e).uuid,r.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(r.normalMap=this.normalMap.toJSON(e).uuid,r.normalMapType=this.normalMapType,r.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(r.displacementMap=this.displacementMap.toJSON(e).uuid,r.displacementScale=this.displacementScale,r.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(r.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(r.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(r.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(r.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(r.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(r.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(r.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(r.combine=this.combine)),this.envMapIntensity!==void 0&&(r.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(r.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(r.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(r.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(r.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(r.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(r.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(r.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(r.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(r.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(r.size=this.size),this.shadowSide!==null&&(r.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(r.sizeAttenuation=this.sizeAttenuation),this.blending!==bl&&(r.blending=this.blending),this.side!==Fs&&(r.side=this.side),this.vertexColors===!0&&(r.vertexColors=!0),this.opacity<1&&(r.opacity=this.opacity),this.transparent===!0&&(r.transparent=!0),this.blendSrc!==R1&&(r.blendSrc=this.blendSrc),this.blendDst!==M1&&(r.blendDst=this.blendDst),this.blendEquation!==na&&(r.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(r.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(r.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(r.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(r.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(r.blendAlpha=this.blendAlpha),this.depthFunc!==th&&(r.depthFunc=this.depthFunc),this.depthTest===!1&&(r.depthTest=this.depthTest),this.depthWrite===!1&&(r.depthWrite=this.depthWrite),this.colorWrite===!1&&(r.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(r.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==nR&&(r.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(r.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(r.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==Ba&&(r.stencilFail=this.stencilFail),this.stencilZFail!==Ba&&(r.stencilZFail=this.stencilZFail),this.stencilZPass!==Ba&&(r.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(r.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(r.rotation=this.rotation),this.polygonOffset===!0&&(r.polygonOffset=!0),this.polygonOffsetFactor!==0&&(r.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(r.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(r.linewidth=this.linewidth),this.dashSize!==void 0&&(r.dashSize=this.dashSize),this.gapSize!==void 0&&(r.gapSize=this.gapSize),this.scale!==void 0&&(r.scale=this.scale),this.dithering===!0&&(r.dithering=!0),this.alphaTest>0&&(r.alphaTest=this.alphaTest),this.alphaHash===!0&&(r.alphaHash=!0),this.alphaToCoverage===!0&&(r.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(r.premultipliedAlpha=!0),this.forceSinglePass===!0&&(r.forceSinglePass=!0),this.wireframe===!0&&(r.wireframe=!0),this.wireframeLinewidth>1&&(r.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(r.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(r.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(r.flatShading=!0),this.visible===!1&&(r.visible=!1),this.toneMapped===!1&&(r.toneMapped=!1),this.fog===!1&&(r.fog=!1),Object.keys(this.userData).length>0&&(r.userData=this.userData);function i(s){const o=[];for(const a in s){const l=s[a];delete l.metadata,o.push(l)}return o}if(t){const s=i(e.textures),o=i(e.images);s.length>0&&(r.textures=s),o.length>0&&(r.images=o)}return r}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const t=e.clippingPlanes;let r=null;if(t!==null){const i=t.length;r=new Array(i);for(let s=0;s!==i;++s)r[s]=t[s].clone()}return this.clippingPlanes=r,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){e===!0&&this.version++}}class vo extends Mi{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new Nt(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Yy,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}const In=new he,Iu=new $t;class vr{constructor(e,t,r=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=t,this.count=e!==void 0?e.length/t:0,this.normalized=r,this.usage=D1,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=Ts,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return console.warn('THREE.BufferAttribute: "updateRange" is deprecated and removed in r169. Use "addUpdateRange()" instead.'),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,r){e*=this.itemSize,r*=t.itemSize;for(let i=0,s=this.itemSize;i0&&(e.userData=this.userData),this.parameters!==void 0){const l=this.parameters;for(const d in l)l[d]!==void 0&&(e[d]=l[d]);return e}e.data={attributes:{}};const t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const r=this.attributes;for(const l in r){const d=r[l];e.data.attributes[l]=d.toJSON(e.data)}const i={};let s=!1;for(const l in this.morphAttributes){const d=this.morphAttributes[l],u=[];for(let m=0,f=d.length;m0&&(i[l]=u,s=!0)}s&&(e.data.morphAttributes=i,e.data.morphTargetsRelative=this.morphTargetsRelative);const o=this.groups;o.length>0&&(e.data.groups=JSON.parse(JSON.stringify(o)));const a=this.boundingSphere;return a!==null&&(e.data.boundingSphere={center:a.center.toArray(),radius:a.radius}),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const t={};this.name=e.name;const r=e.index;r!==null&&this.setIndex(r.clone(t));const i=e.attributes;for(const d in i){const u=i[d];this.setAttribute(d,u.clone(t))}const s=e.morphAttributes;for(const d in s){const u=[],m=s[d];for(let f=0,g=m.length;f0){const i=t[r[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let s=0,o=i.length;s(e.far-e.near)**2))&&(gR.copy(s).invert(),Wo.copy(e.ray).applyMatrix4(gR),!(r.boundingBox!==null&&Wo.intersectsBox(r.boundingBox)===!1)&&this._computeIntersections(e,t,Wo)))}_computeIntersections(e,t,r){let i;const s=this.geometry,o=this.material,a=s.index,l=s.attributes.position,d=s.attributes.uv,u=s.attributes.uv1,m=s.attributes.normal,f=s.groups,g=s.drawRange;if(a!==null)if(Array.isArray(o))for(let h=0,v=f.length;ht.far?null:{distance:d,point:Bu.clone(),object:n}}function Gu(n,e,t,r,i,s,o,a,l,d){n.getVertexPosition(a,ja),n.getVertexPosition(l,Qa),n.getVertexPosition(d,Xa);const u=C2t(n,e,t,r,ja,Qa,Xa,Uu);if(u){i&&(Lu.fromBufferAttribute(i,a),Pu.fromBufferAttribute(i,l),Fu.fromBufferAttribute(i,d),u.uv=wi.getInterpolation(Uu,ja,Qa,Xa,Lu,Pu,Fu,new $t)),s&&(Lu.fromBufferAttribute(s,a),Pu.fromBufferAttribute(s,l),Fu.fromBufferAttribute(s,d),u.uv1=wi.getInterpolation(Uu,ja,Qa,Xa,Lu,Pu,Fu,new $t),u.uv2=u.uv1),o&&(bR.fromBufferAttribute(o,a),vR.fromBufferAttribute(o,l),yR.fromBufferAttribute(o,d),u.normal=wi.getInterpolation(Uu,ja,Qa,Xa,bR,vR,yR,new he),u.normal.dot(r.direction)>0&&u.normal.multiplyScalar(-1));const m={a,b:l,c:d,normal:new he,materialIndex:0};wi.getNormal(ja,Qa,Xa,m.normal),u.face=m}return u}class wo extends as{constructor(e=1,t=1,r=1,i=1,s=1,o=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:r,widthSegments:i,heightSegments:s,depthSegments:o};const a=this;i=Math.floor(i),s=Math.floor(s),o=Math.floor(o);const l=[],d=[],u=[],m=[];let f=0,g=0;h("z","y","x",-1,-1,r,t,e,o,s,0),h("z","y","x",1,-1,r,t,-e,o,s,1),h("x","z","y",1,1,e,r,t,i,o,2),h("x","z","y",1,-1,e,r,-t,i,o,3),h("x","y","z",1,-1,e,t,r,i,s,4),h("x","y","z",-1,-1,e,t,-r,i,s,5),this.setIndex(l),this.setAttribute("position",new Ns(d,3)),this.setAttribute("normal",new Ns(u,3)),this.setAttribute("uv",new Ns(m,2));function h(v,b,_,y,E,x,A,w,N,L,C){const k=x/N,H=A/L,q=x/2,ie=A/2,D=w/2,$=N+1,K=L+1;let B=0,Z=0;const ce=new he;for(let ue=0;ue0?1:-1,u.push(ce.x,ce.y,ce.z),m.push(Ce/N),m.push(1-ue/L),B+=1}}for(let ue=0;ue0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;const r={};for(const i in this.extensions)this.extensions[i]===!0&&(r[i]=!0);return Object.keys(r).length>0&&(t.extensions=r),t}}class cO extends wn{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new Ht,this.projectionMatrix=new Ht,this.projectionMatrixInverse=new Ht,this.coordinateSystem=Ts}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}}class gr extends cO{constructor(e=50,t=1,r=.1,i=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=r,this.far=i,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=e.view===null?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){const t=.5*this.getFilmHeight()/e;this.fov=Ul*2*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(Qc*.5*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return Ul*2*Math.atan(Math.tan(Qc*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}setViewOffset(e,t,r,i,s,o){this.aspect=e/t,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=r,this.view.offsetY=i,this.view.width=s,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let t=e*Math.tan(Qc*.5*this.fov)/this.zoom,r=2*t,i=this.aspect*r,s=-.5*i;const o=this.view;if(this.view!==null&&this.view.enabled){const l=o.fullWidth,d=o.fullHeight;s+=o.offsetX*i/l,t-=o.offsetY*r/d,i*=o.width/l,r*=o.height/d}const a=this.filmOffset;a!==0&&(s+=e*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(s,s+i,t,t-r,e,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,this.view!==null&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}const Za=-90,Ja=1;class k2t extends wn{constructor(e,t,r){super(),this.type="CubeCamera",this.renderTarget=r,this.coordinateSystem=null,this.activeMipmapLevel=0;const i=new gr(Za,Ja,e,t);i.layers=this.layers,this.add(i);const s=new gr(Za,Ja,e,t);s.layers=this.layers,this.add(s);const o=new gr(Za,Ja,e,t);o.layers=this.layers,this.add(o);const a=new gr(Za,Ja,e,t);a.layers=this.layers,this.add(a);const l=new gr(Za,Ja,e,t);l.layers=this.layers,this.add(l);const d=new gr(Za,Ja,e,t);d.layers=this.layers,this.add(d)}updateCoordinateSystem(){const e=this.coordinateSystem,t=this.children.concat(),[r,i,s,o,a,l]=t;for(const d of t)this.remove(d);if(e===Ts)r.up.set(0,1,0),r.lookAt(1,0,0),i.up.set(0,1,0),i.lookAt(-1,0,0),s.up.set(0,0,-1),s.lookAt(0,1,0),o.up.set(0,0,1),o.lookAt(0,-1,0),a.up.set(0,1,0),a.lookAt(0,0,1),l.up.set(0,1,0),l.lookAt(0,0,-1);else if(e===oh)r.up.set(0,-1,0),r.lookAt(-1,0,0),i.up.set(0,-1,0),i.lookAt(1,0,0),s.up.set(0,0,1),s.lookAt(0,1,0),o.up.set(0,0,-1),o.lookAt(0,-1,0),a.up.set(0,-1,0),a.lookAt(0,0,1),l.up.set(0,-1,0),l.lookAt(0,0,-1);else throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);for(const d of t)this.add(d),d.updateMatrixWorld()}update(e,t){this.parent===null&&this.updateMatrixWorld();const{renderTarget:r,activeMipmapLevel:i}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[s,o,a,l,d,u]=this.children,m=e.getRenderTarget(),f=e.getActiveCubeFace(),g=e.getActiveMipmapLevel(),h=e.xr.enabled;e.xr.enabled=!1;const v=r.texture.generateMipmaps;r.texture.generateMipmaps=!1,e.setRenderTarget(r,0,i),e.render(t,s),e.setRenderTarget(r,1,i),e.render(t,o),e.setRenderTarget(r,2,i),e.render(t,a),e.setRenderTarget(r,3,i),e.render(t,l),e.setRenderTarget(r,4,i),e.render(t,d),r.texture.generateMipmaps=v,e.setRenderTarget(r,5,i),e.render(t,u),e.setRenderTarget(m,f,g),e.xr.enabled=h,r.texture.needsPMREMUpdate=!0}}class dO extends Jn{constructor(e,t,r,i,s,o,a,l,d,u){e=e!==void 0?e:[],t=t!==void 0?t:Ol,super(e,t,r,i,s,o,a,l,d,u),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class I2t extends Ta{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;const r={width:e,height:e,depth:1},i=[r,r,r,r,r,r];t.encoding!==void 0&&(Zc("THREE.WebGLCubeRenderTarget: option.encoding has been replaced by option.colorSpace."),t.colorSpace=t.encoding===ma?Mn:ti),this.texture=new dO(i,t.mapping,t.wrapS,t.wrapT,t.magFilter,t.minFilter,t.format,t.type,t.anisotropy,t.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=t.generateMipmaps!==void 0?t.generateMipmaps:!1,this.texture.minFilter=t.minFilter!==void 0?t.minFilter:Cr}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;const r={uniforms:{tEquirect:{value:null}},vertexShader:` +}`;class wa extends Mi{constructor(e){super(),this.isShaderMaterial=!0,this.type="ShaderMaterial",this.defines={},this.uniforms={},this.uniformsGroups=[],this.vertexShader=M2t,this.fragmentShader=N2t,this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.forceSinglePass=!0,this.extensions={derivatives:!1,fragDepth:!1,drawBuffers:!1,shaderTextureLOD:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv1:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,this.glslVersion=null,e!==void 0&&this.setValues(e)}copy(e){return super.copy(e),this.fragmentShader=e.fragmentShader,this.vertexShader=e.vertexShader,this.uniforms=Bl(e.uniforms),this.uniformsGroups=A2t(e.uniformsGroups),this.defines=Object.assign({},e.defines),this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.fog=e.fog,this.lights=e.lights,this.clipping=e.clipping,this.extensions=Object.assign({},e.extensions),this.glslVersion=e.glslVersion,this}toJSON(e){const t=super.toJSON(e);t.glslVersion=this.glslVersion,t.uniforms={};for(const i in this.uniforms){const o=this.uniforms[i].value;o&&o.isTexture?t.uniforms[i]={type:"t",value:o.toJSON(e).uuid}:o&&o.isColor?t.uniforms[i]={type:"c",value:o.getHex()}:o&&o.isVector2?t.uniforms[i]={type:"v2",value:o.toArray()}:o&&o.isVector3?t.uniforms[i]={type:"v3",value:o.toArray()}:o&&o.isVector4?t.uniforms[i]={type:"v4",value:o.toArray()}:o&&o.isMatrix3?t.uniforms[i]={type:"m3",value:o.toArray()}:o&&o.isMatrix4?t.uniforms[i]={type:"m4",value:o.toArray()}:t.uniforms[i]={value:o}}Object.keys(this.defines).length>0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;const r={};for(const i in this.extensions)this.extensions[i]===!0&&(r[i]=!0);return Object.keys(r).length>0&&(t.extensions=r),t}}class cO extends wn{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new Ht,this.projectionMatrix=new Ht,this.projectionMatrixInverse=new Ht,this.coordinateSystem=ws}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}}class gr extends cO{constructor(e=50,t=1,r=.1,i=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=r,this.far=i,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=e.view===null?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){const t=.5*this.getFilmHeight()/e;this.fov=Ul*2*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(Qc*.5*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return Ul*2*Math.atan(Math.tan(Qc*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}setViewOffset(e,t,r,i,s,o){this.aspect=e/t,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=r,this.view.offsetY=i,this.view.width=s,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let t=e*Math.tan(Qc*.5*this.fov)/this.zoom,r=2*t,i=this.aspect*r,s=-.5*i;const o=this.view;if(this.view!==null&&this.view.enabled){const l=o.fullWidth,d=o.fullHeight;s+=o.offsetX*i/l,t-=o.offsetY*r/d,i*=o.width/l,r*=o.height/d}const a=this.filmOffset;a!==0&&(s+=e*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(s,s+i,t,t-r,e,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,this.view!==null&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}const Za=-90,Ja=1;class k2t extends wn{constructor(e,t,r){super(),this.type="CubeCamera",this.renderTarget=r,this.coordinateSystem=null,this.activeMipmapLevel=0;const i=new gr(Za,Ja,e,t);i.layers=this.layers,this.add(i);const s=new gr(Za,Ja,e,t);s.layers=this.layers,this.add(s);const o=new gr(Za,Ja,e,t);o.layers=this.layers,this.add(o);const a=new gr(Za,Ja,e,t);a.layers=this.layers,this.add(a);const l=new gr(Za,Ja,e,t);l.layers=this.layers,this.add(l);const d=new gr(Za,Ja,e,t);d.layers=this.layers,this.add(d)}updateCoordinateSystem(){const e=this.coordinateSystem,t=this.children.concat(),[r,i,s,o,a,l]=t;for(const d of t)this.remove(d);if(e===ws)r.up.set(0,1,0),r.lookAt(1,0,0),i.up.set(0,1,0),i.lookAt(-1,0,0),s.up.set(0,0,-1),s.lookAt(0,1,0),o.up.set(0,0,1),o.lookAt(0,-1,0),a.up.set(0,1,0),a.lookAt(0,0,1),l.up.set(0,1,0),l.lookAt(0,0,-1);else if(e===oh)r.up.set(0,-1,0),r.lookAt(-1,0,0),i.up.set(0,-1,0),i.lookAt(1,0,0),s.up.set(0,0,1),s.lookAt(0,1,0),o.up.set(0,0,-1),o.lookAt(0,-1,0),a.up.set(0,-1,0),a.lookAt(0,0,1),l.up.set(0,-1,0),l.lookAt(0,0,-1);else throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);for(const d of t)this.add(d),d.updateMatrixWorld()}update(e,t){this.parent===null&&this.updateMatrixWorld();const{renderTarget:r,activeMipmapLevel:i}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[s,o,a,l,d,u]=this.children,m=e.getRenderTarget(),f=e.getActiveCubeFace(),g=e.getActiveMipmapLevel(),h=e.xr.enabled;e.xr.enabled=!1;const v=r.texture.generateMipmaps;r.texture.generateMipmaps=!1,e.setRenderTarget(r,0,i),e.render(t,s),e.setRenderTarget(r,1,i),e.render(t,o),e.setRenderTarget(r,2,i),e.render(t,a),e.setRenderTarget(r,3,i),e.render(t,l),e.setRenderTarget(r,4,i),e.render(t,d),r.texture.generateMipmaps=v,e.setRenderTarget(r,5,i),e.render(t,u),e.setRenderTarget(m,f,g),e.xr.enabled=h,r.texture.needsPMREMUpdate=!0}}class dO extends Jn{constructor(e,t,r,i,s,o,a,l,d,u){e=e!==void 0?e:[],t=t!==void 0?t:Ol,super(e,t,r,i,s,o,a,l,d,u),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class I2t extends Ta{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;const r={width:e,height:e,depth:1},i=[r,r,r,r,r,r];t.encoding!==void 0&&(Zc("THREE.WebGLCubeRenderTarget: option.encoding has been replaced by option.colorSpace."),t.colorSpace=t.encoding===ma?Mn:ti),this.texture=new dO(i,t.mapping,t.wrapS,t.wrapT,t.magFilter,t.minFilter,t.format,t.type,t.anisotropy,t.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=t.generateMipmaps!==void 0?t.generateMipmaps:!1,this.texture.minFilter=t.minFilter!==void 0?t.minFilter:Cr}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;const r={uniforms:{tEquirect:{value:null}},vertexShader:` varying vec3 vWorldDirection; @@ -628,7 +628,7 @@ ${l}`;navigator.clipboard.writeText(d)}else navigator.clipboard.writeText(e);thi gl_FragColor = texture2D( tEquirect, sampleUV ); } - `},i=new wo(5,5,5),s=new wa({name:"CubemapFromEquirect",uniforms:Bl(r.uniforms),vertexShader:r.vertexShader,fragmentShader:r.fragmentShader,side:kr,blending:So});s.uniforms.tEquirect.value=t;const o=new br(i,s),a=t.minFilter;return t.minFilter===xa&&(t.minFilter=Cr),new k2t(1,10,this).update(e,o),t.minFilter=a,o.geometry.dispose(),o.material.dispose(),this}clear(e,t,r,i){const s=e.getRenderTarget();for(let o=0;o<6;o++)e.setRenderTarget(this,o),e.clear(t,r,i);e.setRenderTarget(s)}}const bb=new he,O2t=new he,D2t=new Vt;class Zo{constructor(e=new he(1,0,0),t=0){this.isPlane=!0,this.normal=e,this.constant=t}set(e,t){return this.normal.copy(e),this.constant=t,this}setComponents(e,t,r,i){return this.normal.set(e,t,r),this.constant=i,this}setFromNormalAndCoplanarPoint(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}setFromCoplanarPoints(e,t,r){const i=bb.subVectors(r,t).cross(O2t.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(i,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){const e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,t){return t.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,t){const r=e.delta(bb),i=this.normal.dot(r);if(i===0)return this.distanceToPoint(e.start)===0?t.copy(e.start):null;const s=-(e.start.dot(this.normal)+this.constant)/i;return s<0||s>1?null:t.copy(e.start).addScaledVector(r,s)}intersectsLine(e){const t=this.distanceToPoint(e.start),r=this.distanceToPoint(e.end);return t<0&&r>0||r<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){const r=t||D2t.getNormalMatrix(e),i=this.coplanarPoint(bb).applyMatrix4(e),s=this.normal.applyMatrix3(r).normalize();return this.constant=-i.dot(s),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}}const Ko=new ss,zu=new he;class Qy{constructor(e=new Zo,t=new Zo,r=new Zo,i=new Zo,s=new Zo,o=new Zo){this.planes=[e,t,r,i,s,o]}set(e,t,r,i,s,o){const a=this.planes;return a[0].copy(e),a[1].copy(t),a[2].copy(r),a[3].copy(i),a[4].copy(s),a[5].copy(o),this}copy(e){const t=this.planes;for(let r=0;r<6;r++)t[r].copy(e.planes[r]);return this}setFromProjectionMatrix(e,t=Ts){const r=this.planes,i=e.elements,s=i[0],o=i[1],a=i[2],l=i[3],d=i[4],u=i[5],m=i[6],f=i[7],g=i[8],h=i[9],v=i[10],b=i[11],_=i[12],y=i[13],E=i[14],x=i[15];if(r[0].setComponents(l-s,f-d,b-g,x-_).normalize(),r[1].setComponents(l+s,f+d,b+g,x+_).normalize(),r[2].setComponents(l+o,f+u,b+h,x+y).normalize(),r[3].setComponents(l-o,f-u,b-h,x-y).normalize(),r[4].setComponents(l-a,f-m,b-v,x-E).normalize(),t===Ts)r[5].setComponents(l+a,f+m,b+v,x+E).normalize();else if(t===oh)r[5].setComponents(a,m,v,E).normalize();else throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+t);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),Ko.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const t=e.geometry;t.boundingSphere===null&&t.computeBoundingSphere(),Ko.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(Ko)}intersectsSprite(e){return Ko.center.set(0,0,0),Ko.radius=.7071067811865476,Ko.applyMatrix4(e.matrixWorld),this.intersectsSphere(Ko)}intersectsSphere(e){const t=this.planes,r=e.center,i=-e.radius;for(let s=0;s<6;s++)if(t[s].distanceToPoint(r)0?e.max.x:e.min.x,zu.y=i.normal.y>0?e.max.y:e.min.y,zu.z=i.normal.z>0?e.max.z:e.min.z,i.distanceToPoint(zu)<0)return!1}return!0}containsPoint(e){const t=this.planes;for(let r=0;r<6;r++)if(t[r].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}function uO(){let n=null,e=!1,t=null,r=null;function i(s,o){t(s,o),r=n.requestAnimationFrame(i)}return{start:function(){e!==!0&&t!==null&&(r=n.requestAnimationFrame(i),e=!0)},stop:function(){n.cancelAnimationFrame(r),e=!1},setAnimationLoop:function(s){t=s},setContext:function(s){n=s}}}function L2t(n,e){const t=e.isWebGL2,r=new WeakMap;function i(d,u){const m=d.array,f=d.usage,g=m.byteLength,h=n.createBuffer();n.bindBuffer(u,h),n.bufferData(u,m,f),d.onUploadCallback();let v;if(m instanceof Float32Array)v=n.FLOAT;else if(m instanceof Uint16Array)if(d.isFloat16BufferAttribute)if(t)v=n.HALF_FLOAT;else throw new Error("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2.");else v=n.UNSIGNED_SHORT;else if(m instanceof Int16Array)v=n.SHORT;else if(m instanceof Uint32Array)v=n.UNSIGNED_INT;else if(m instanceof Int32Array)v=n.INT;else if(m instanceof Int8Array)v=n.BYTE;else if(m instanceof Uint8Array)v=n.UNSIGNED_BYTE;else if(m instanceof Uint8ClampedArray)v=n.UNSIGNED_BYTE;else throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+m);return{buffer:h,type:v,bytesPerElement:m.BYTES_PER_ELEMENT,version:d.version,size:g}}function s(d,u,m){const f=u.array,g=u._updateRange,h=u.updateRanges;if(n.bindBuffer(m,d),g.count===-1&&h.length===0&&n.bufferSubData(m,0,f),h.length!==0){for(let v=0,b=h.length;v1?null:t.copy(e.start).addScaledVector(r,s)}intersectsLine(e){const t=this.distanceToPoint(e.start),r=this.distanceToPoint(e.end);return t<0&&r>0||r<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){const r=t||D2t.getNormalMatrix(e),i=this.coplanarPoint(bb).applyMatrix4(e),s=this.normal.applyMatrix3(r).normalize();return this.constant=-i.dot(s),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}}const Ko=new os,zu=new he;class Qy{constructor(e=new Zo,t=new Zo,r=new Zo,i=new Zo,s=new Zo,o=new Zo){this.planes=[e,t,r,i,s,o]}set(e,t,r,i,s,o){const a=this.planes;return a[0].copy(e),a[1].copy(t),a[2].copy(r),a[3].copy(i),a[4].copy(s),a[5].copy(o),this}copy(e){const t=this.planes;for(let r=0;r<6;r++)t[r].copy(e.planes[r]);return this}setFromProjectionMatrix(e,t=ws){const r=this.planes,i=e.elements,s=i[0],o=i[1],a=i[2],l=i[3],d=i[4],u=i[5],m=i[6],f=i[7],g=i[8],h=i[9],v=i[10],b=i[11],_=i[12],y=i[13],E=i[14],x=i[15];if(r[0].setComponents(l-s,f-d,b-g,x-_).normalize(),r[1].setComponents(l+s,f+d,b+g,x+_).normalize(),r[2].setComponents(l+o,f+u,b+h,x+y).normalize(),r[3].setComponents(l-o,f-u,b-h,x-y).normalize(),r[4].setComponents(l-a,f-m,b-v,x-E).normalize(),t===ws)r[5].setComponents(l+a,f+m,b+v,x+E).normalize();else if(t===oh)r[5].setComponents(a,m,v,E).normalize();else throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+t);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),Ko.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const t=e.geometry;t.boundingSphere===null&&t.computeBoundingSphere(),Ko.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(Ko)}intersectsSprite(e){return Ko.center.set(0,0,0),Ko.radius=.7071067811865476,Ko.applyMatrix4(e.matrixWorld),this.intersectsSphere(Ko)}intersectsSphere(e){const t=this.planes,r=e.center,i=-e.radius;for(let s=0;s<6;s++)if(t[s].distanceToPoint(r)0?e.max.x:e.min.x,zu.y=i.normal.y>0?e.max.y:e.min.y,zu.z=i.normal.z>0?e.max.z:e.min.z,i.distanceToPoint(zu)<0)return!1}return!0}containsPoint(e){const t=this.planes;for(let r=0;r<6;r++)if(t[r].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}function uO(){let n=null,e=!1,t=null,r=null;function i(s,o){t(s,o),r=n.requestAnimationFrame(i)}return{start:function(){e!==!0&&t!==null&&(r=n.requestAnimationFrame(i),e=!0)},stop:function(){n.cancelAnimationFrame(r),e=!1},setAnimationLoop:function(s){t=s},setContext:function(s){n=s}}}function L2t(n,e){const t=e.isWebGL2,r=new WeakMap;function i(d,u){const m=d.array,f=d.usage,g=m.byteLength,h=n.createBuffer();n.bindBuffer(u,h),n.bufferData(u,m,f),d.onUploadCallback();let v;if(m instanceof Float32Array)v=n.FLOAT;else if(m instanceof Uint16Array)if(d.isFloat16BufferAttribute)if(t)v=n.HALF_FLOAT;else throw new Error("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2.");else v=n.UNSIGNED_SHORT;else if(m instanceof Int16Array)v=n.SHORT;else if(m instanceof Uint32Array)v=n.UNSIGNED_INT;else if(m instanceof Int32Array)v=n.INT;else if(m instanceof Int8Array)v=n.BYTE;else if(m instanceof Uint8Array)v=n.UNSIGNED_BYTE;else if(m instanceof Uint8ClampedArray)v=n.UNSIGNED_BYTE;else throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+m);return{buffer:h,type:v,bytesPerElement:m.BYTES_PER_ELEMENT,version:d.version,size:g}}function s(d,u,m){const f=u.array,g=u._updateRange,h=u.updateRanges;if(n.bindBuffer(m,d),g.count===-1&&h.length===0&&n.bufferSubData(m,0,f),h.length!==0){for(let v=0,b=h.length;v #include #include -}`,Gt={alphahash_fragment:P2t,alphahash_pars_fragment:F2t,alphamap_fragment:U2t,alphamap_pars_fragment:B2t,alphatest_fragment:G2t,alphatest_pars_fragment:z2t,aomap_fragment:V2t,aomap_pars_fragment:H2t,batching_pars_vertex:q2t,batching_vertex:Y2t,begin_vertex:$2t,beginnormal_vertex:W2t,bsdfs:K2t,iridescence_fragment:j2t,bumpmap_pars_fragment:Q2t,clipping_planes_fragment:X2t,clipping_planes_pars_fragment:Z2t,clipping_planes_pars_vertex:J2t,clipping_planes_vertex:ext,color_fragment:txt,color_pars_fragment:nxt,color_pars_vertex:rxt,color_vertex:ixt,common:sxt,cube_uv_reflection_fragment:oxt,defaultnormal_vertex:axt,displacementmap_pars_vertex:lxt,displacementmap_vertex:cxt,emissivemap_fragment:dxt,emissivemap_pars_fragment:uxt,colorspace_fragment:pxt,colorspace_pars_fragment:hxt,envmap_fragment:mxt,envmap_common_pars_fragment:fxt,envmap_pars_fragment:gxt,envmap_pars_vertex:_xt,envmap_physical_pars_fragment:Mxt,envmap_vertex:bxt,fog_vertex:vxt,fog_pars_vertex:yxt,fog_fragment:Ext,fog_pars_fragment:Sxt,gradientmap_pars_fragment:xxt,lightmap_fragment:Txt,lightmap_pars_fragment:wxt,lights_lambert_fragment:Cxt,lights_lambert_pars_fragment:Axt,lights_pars_begin:Rxt,lights_toon_fragment:Nxt,lights_toon_pars_fragment:kxt,lights_phong_fragment:Ixt,lights_phong_pars_fragment:Oxt,lights_physical_fragment:Dxt,lights_physical_pars_fragment:Lxt,lights_fragment_begin:Pxt,lights_fragment_maps:Fxt,lights_fragment_end:Uxt,logdepthbuf_fragment:Bxt,logdepthbuf_pars_fragment:Gxt,logdepthbuf_pars_vertex:zxt,logdepthbuf_vertex:Vxt,map_fragment:Hxt,map_pars_fragment:qxt,map_particle_fragment:Yxt,map_particle_pars_fragment:$xt,metalnessmap_fragment:Wxt,metalnessmap_pars_fragment:Kxt,morphcolor_vertex:jxt,morphnormal_vertex:Qxt,morphtarget_pars_vertex:Xxt,morphtarget_vertex:Zxt,normal_fragment_begin:Jxt,normal_fragment_maps:eTt,normal_pars_fragment:tTt,normal_pars_vertex:nTt,normal_vertex:rTt,normalmap_pars_fragment:iTt,clearcoat_normal_fragment_begin:sTt,clearcoat_normal_fragment_maps:oTt,clearcoat_pars_fragment:aTt,iridescence_pars_fragment:lTt,opaque_fragment:cTt,packing:dTt,premultiplied_alpha_fragment:uTt,project_vertex:pTt,dithering_fragment:hTt,dithering_pars_fragment:mTt,roughnessmap_fragment:fTt,roughnessmap_pars_fragment:gTt,shadowmap_pars_fragment:_Tt,shadowmap_pars_vertex:bTt,shadowmap_vertex:vTt,shadowmask_pars_fragment:yTt,skinbase_vertex:ETt,skinning_pars_vertex:STt,skinning_vertex:xTt,skinnormal_vertex:TTt,specularmap_fragment:wTt,specularmap_pars_fragment:CTt,tonemapping_fragment:ATt,tonemapping_pars_fragment:RTt,transmission_fragment:MTt,transmission_pars_fragment:NTt,uv_pars_fragment:kTt,uv_pars_vertex:ITt,uv_vertex:OTt,worldpos_vertex:DTt,background_vert:LTt,background_frag:PTt,backgroundCube_vert:FTt,backgroundCube_frag:UTt,cube_vert:BTt,cube_frag:GTt,depth_vert:zTt,depth_frag:VTt,distanceRGBA_vert:HTt,distanceRGBA_frag:qTt,equirect_vert:YTt,equirect_frag:$Tt,linedashed_vert:WTt,linedashed_frag:KTt,meshbasic_vert:jTt,meshbasic_frag:QTt,meshlambert_vert:XTt,meshlambert_frag:ZTt,meshmatcap_vert:JTt,meshmatcap_frag:ewt,meshnormal_vert:twt,meshnormal_frag:nwt,meshphong_vert:rwt,meshphong_frag:iwt,meshphysical_vert:swt,meshphysical_frag:owt,meshtoon_vert:awt,meshtoon_frag:lwt,points_vert:cwt,points_frag:dwt,shadow_vert:uwt,shadow_frag:pwt,sprite_vert:hwt,sprite_frag:mwt},it={common:{diffuse:{value:new Nt(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new Vt},alphaMap:{value:null},alphaMapTransform:{value:new Vt},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new Vt}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new Vt}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new Vt}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new Vt},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new Vt},normalScale:{value:new $t(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new Vt},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new Vt}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new Vt}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new Vt}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new Nt(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new Nt(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new Vt},alphaTest:{value:0},uvTransform:{value:new Vt}},sprite:{diffuse:{value:new Nt(16777215)},opacity:{value:1},center:{value:new $t(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new Vt},alphaMap:{value:null},alphaMapTransform:{value:new Vt},alphaTest:{value:0}}},zi={basic:{uniforms:hr([it.common,it.specularmap,it.envmap,it.aomap,it.lightmap,it.fog]),vertexShader:Gt.meshbasic_vert,fragmentShader:Gt.meshbasic_frag},lambert:{uniforms:hr([it.common,it.specularmap,it.envmap,it.aomap,it.lightmap,it.emissivemap,it.bumpmap,it.normalmap,it.displacementmap,it.fog,it.lights,{emissive:{value:new Nt(0)}}]),vertexShader:Gt.meshlambert_vert,fragmentShader:Gt.meshlambert_frag},phong:{uniforms:hr([it.common,it.specularmap,it.envmap,it.aomap,it.lightmap,it.emissivemap,it.bumpmap,it.normalmap,it.displacementmap,it.fog,it.lights,{emissive:{value:new Nt(0)},specular:{value:new Nt(1118481)},shininess:{value:30}}]),vertexShader:Gt.meshphong_vert,fragmentShader:Gt.meshphong_frag},standard:{uniforms:hr([it.common,it.envmap,it.aomap,it.lightmap,it.emissivemap,it.bumpmap,it.normalmap,it.displacementmap,it.roughnessmap,it.metalnessmap,it.fog,it.lights,{emissive:{value:new Nt(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Gt.meshphysical_vert,fragmentShader:Gt.meshphysical_frag},toon:{uniforms:hr([it.common,it.aomap,it.lightmap,it.emissivemap,it.bumpmap,it.normalmap,it.displacementmap,it.gradientmap,it.fog,it.lights,{emissive:{value:new Nt(0)}}]),vertexShader:Gt.meshtoon_vert,fragmentShader:Gt.meshtoon_frag},matcap:{uniforms:hr([it.common,it.bumpmap,it.normalmap,it.displacementmap,it.fog,{matcap:{value:null}}]),vertexShader:Gt.meshmatcap_vert,fragmentShader:Gt.meshmatcap_frag},points:{uniforms:hr([it.points,it.fog]),vertexShader:Gt.points_vert,fragmentShader:Gt.points_frag},dashed:{uniforms:hr([it.common,it.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Gt.linedashed_vert,fragmentShader:Gt.linedashed_frag},depth:{uniforms:hr([it.common,it.displacementmap]),vertexShader:Gt.depth_vert,fragmentShader:Gt.depth_frag},normal:{uniforms:hr([it.common,it.bumpmap,it.normalmap,it.displacementmap,{opacity:{value:1}}]),vertexShader:Gt.meshnormal_vert,fragmentShader:Gt.meshnormal_frag},sprite:{uniforms:hr([it.sprite,it.fog]),vertexShader:Gt.sprite_vert,fragmentShader:Gt.sprite_frag},background:{uniforms:{uvTransform:{value:new Vt},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:Gt.background_vert,fragmentShader:Gt.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1}},vertexShader:Gt.backgroundCube_vert,fragmentShader:Gt.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:Gt.cube_vert,fragmentShader:Gt.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Gt.equirect_vert,fragmentShader:Gt.equirect_frag},distanceRGBA:{uniforms:hr([it.common,it.displacementmap,{referencePosition:{value:new he},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Gt.distanceRGBA_vert,fragmentShader:Gt.distanceRGBA_frag},shadow:{uniforms:hr([it.lights,it.fog,{color:{value:new Nt(0)},opacity:{value:1}}]),vertexShader:Gt.shadow_vert,fragmentShader:Gt.shadow_frag}};zi.physical={uniforms:hr([zi.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new Vt},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new Vt},clearcoatNormalScale:{value:new $t(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new Vt},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new Vt},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new Vt},sheen:{value:0},sheenColor:{value:new Nt(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new Vt},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new Vt},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new Vt},transmissionSamplerSize:{value:new $t},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new Vt},attenuationDistance:{value:0},attenuationColor:{value:new Nt(0)},specularColor:{value:new Nt(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new Vt},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new Vt},anisotropyVector:{value:new $t},anisotropyMap:{value:null},anisotropyMapTransform:{value:new Vt}}]),vertexShader:Gt.meshphysical_vert,fragmentShader:Gt.meshphysical_frag};const Vu={r:0,b:0,g:0};function fwt(n,e,t,r,i,s,o){const a=new Nt(0);let l=s===!0?0:1,d,u,m=null,f=0,g=null;function h(b,_){let y=!1,E=_.isScene===!0?_.background:null;E&&E.isTexture&&(E=(_.backgroundBlurriness>0?t:e).get(E)),E===null?v(a,l):E&&E.isColor&&(v(E,1),y=!0);const x=n.xr.getEnvironmentBlendMode();x==="additive"?r.buffers.color.setClear(0,0,0,1,o):x==="alpha-blend"&&r.buffers.color.setClear(0,0,0,0,o),(n.autoClear||y)&&n.clear(n.autoClearColor,n.autoClearDepth,n.autoClearStencil),E&&(E.isCubeTexture||E.mapping===sm)?(u===void 0&&(u=new br(new wo(1,1,1),new wa({name:"BackgroundCubeMaterial",uniforms:Bl(zi.backgroundCube.uniforms),vertexShader:zi.backgroundCube.vertexShader,fragmentShader:zi.backgroundCube.fragmentShader,side:kr,depthTest:!1,depthWrite:!1,fog:!1})),u.geometry.deleteAttribute("normal"),u.geometry.deleteAttribute("uv"),u.onBeforeRender=function(A,w,N){this.matrixWorld.copyPosition(N.matrixWorld)},Object.defineProperty(u.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),i.update(u)),u.material.uniforms.envMap.value=E,u.material.uniforms.flipEnvMap.value=E.isCubeTexture&&E.isRenderTargetTexture===!1?-1:1,u.material.uniforms.backgroundBlurriness.value=_.backgroundBlurriness,u.material.uniforms.backgroundIntensity.value=_.backgroundIntensity,u.material.toneMapped=tn.getTransfer(E.colorSpace)!==bn,(m!==E||f!==E.version||g!==n.toneMapping)&&(u.material.needsUpdate=!0,m=E,f=E.version,g=n.toneMapping),u.layers.enableAll(),b.unshift(u,u.geometry,u.material,0,0,null)):E&&E.isTexture&&(d===void 0&&(d=new br(new Xy(2,2),new wa({name:"BackgroundMaterial",uniforms:Bl(zi.background.uniforms),vertexShader:zi.background.vertexShader,fragmentShader:zi.background.fragmentShader,side:Fs,depthTest:!1,depthWrite:!1,fog:!1})),d.geometry.deleteAttribute("normal"),Object.defineProperty(d.material,"map",{get:function(){return this.uniforms.t2D.value}}),i.update(d)),d.material.uniforms.t2D.value=E,d.material.uniforms.backgroundIntensity.value=_.backgroundIntensity,d.material.toneMapped=tn.getTransfer(E.colorSpace)!==bn,E.matrixAutoUpdate===!0&&E.updateMatrix(),d.material.uniforms.uvTransform.value.copy(E.matrix),(m!==E||f!==E.version||g!==n.toneMapping)&&(d.material.needsUpdate=!0,m=E,f=E.version,g=n.toneMapping),d.layers.enableAll(),b.unshift(d,d.geometry,d.material,0,0,null))}function v(b,_){b.getRGB(Vu,lO(n)),r.buffers.color.setClear(Vu.r,Vu.g,Vu.b,_,o)}return{getClearColor:function(){return a},setClearColor:function(b,_=1){a.set(b),l=_,v(a,l)},getClearAlpha:function(){return l},setClearAlpha:function(b){l=b,v(a,l)},render:h}}function gwt(n,e,t,r){const i=n.getParameter(n.MAX_VERTEX_ATTRIBS),s=r.isWebGL2?null:e.get("OES_vertex_array_object"),o=r.isWebGL2||s!==null,a={},l=b(null);let d=l,u=!1;function m(D,$,K,B,Z){let ce=!1;if(o){const ue=v(B,K,$);d!==ue&&(d=ue,g(d.object)),ce=_(D,B,K,Z),ce&&y(D,B,K,Z)}else{const ue=$.wireframe===!0;(d.geometry!==B.id||d.program!==K.id||d.wireframe!==ue)&&(d.geometry=B.id,d.program=K.id,d.wireframe=ue,ce=!0)}Z!==null&&t.update(Z,n.ELEMENT_ARRAY_BUFFER),(ce||u)&&(u=!1,L(D,$,K,B),Z!==null&&n.bindBuffer(n.ELEMENT_ARRAY_BUFFER,t.get(Z).buffer))}function f(){return r.isWebGL2?n.createVertexArray():s.createVertexArrayOES()}function g(D){return r.isWebGL2?n.bindVertexArray(D):s.bindVertexArrayOES(D)}function h(D){return r.isWebGL2?n.deleteVertexArray(D):s.deleteVertexArrayOES(D)}function v(D,$,K){const B=K.wireframe===!0;let Z=a[D.id];Z===void 0&&(Z={},a[D.id]=Z);let ce=Z[$.id];ce===void 0&&(ce={},Z[$.id]=ce);let ue=ce[B];return ue===void 0&&(ue=b(f()),ce[B]=ue),ue}function b(D){const $=[],K=[],B=[];for(let Z=0;Z=0){const Ae=Z[Ce];let Fe=ce[Ce];if(Fe===void 0&&(Ce==="instanceMatrix"&&D.instanceMatrix&&(Fe=D.instanceMatrix),Ce==="instanceColor"&&D.instanceColor&&(Fe=D.instanceColor)),Ae===void 0||Ae.attribute!==Fe||Fe&&Ae.data!==Fe.data)return!0;ue++}return d.attributesNum!==ue||d.index!==B}function y(D,$,K,B){const Z={},ce=$.attributes;let ue=0;const xe=K.getAttributes();for(const Ce in xe)if(xe[Ce].location>=0){let Ae=ce[Ce];Ae===void 0&&(Ce==="instanceMatrix"&&D.instanceMatrix&&(Ae=D.instanceMatrix),Ce==="instanceColor"&&D.instanceColor&&(Ae=D.instanceColor));const Fe={};Fe.attribute=Ae,Ae&&Ae.data&&(Fe.data=Ae.data),Z[Ce]=Fe,ue++}d.attributes=Z,d.attributesNum=ue,d.index=B}function E(){const D=d.newAttributes;for(let $=0,K=D.length;$=0){let me=Z[xe];if(me===void 0&&(xe==="instanceMatrix"&&D.instanceMatrix&&(me=D.instanceMatrix),xe==="instanceColor"&&D.instanceColor&&(me=D.instanceColor)),me!==void 0){const Ae=me.normalized,Fe=me.itemSize,ze=t.get(me);if(ze===void 0)continue;const te=ze.buffer,ye=ze.type,Se=ze.bytesPerElement,Oe=r.isWebGL2===!0&&(ye===n.INT||ye===n.UNSIGNED_INT||me.gpuType===qI);if(me.isInterleavedBufferAttribute){const Ye=me.data,le=Ye.stride,V=me.offset;if(Ye.isInstancedInterleavedBuffer){for(let G=0;G0&&n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.HIGH_FLOAT).precision>0)return"highp";N="mediump"}return N==="mediump"&&n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.MEDIUM_FLOAT).precision>0&&n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}const o=typeof WebGL2RenderingContext<"u"&&n.constructor.name==="WebGL2RenderingContext";let a=t.precision!==void 0?t.precision:"highp";const l=s(a);l!==a&&(console.warn("THREE.WebGLRenderer:",a,"not supported, using",l,"instead."),a=l);const d=o||e.has("WEBGL_draw_buffers"),u=t.logarithmicDepthBuffer===!0,m=n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS),f=n.getParameter(n.MAX_VERTEX_TEXTURE_IMAGE_UNITS),g=n.getParameter(n.MAX_TEXTURE_SIZE),h=n.getParameter(n.MAX_CUBE_MAP_TEXTURE_SIZE),v=n.getParameter(n.MAX_VERTEX_ATTRIBS),b=n.getParameter(n.MAX_VERTEX_UNIFORM_VECTORS),_=n.getParameter(n.MAX_VARYING_VECTORS),y=n.getParameter(n.MAX_FRAGMENT_UNIFORM_VECTORS),E=f>0,x=o||e.has("OES_texture_float"),A=E&&x,w=o?n.getParameter(n.MAX_SAMPLES):0;return{isWebGL2:o,drawBuffers:d,getMaxAnisotropy:i,getMaxPrecision:s,precision:a,logarithmicDepthBuffer:u,maxTextures:m,maxVertexTextures:f,maxTextureSize:g,maxCubemapSize:h,maxAttributes:v,maxVertexUniforms:b,maxVaryings:_,maxFragmentUniforms:y,vertexTextures:E,floatFragmentTextures:x,floatVertexTextures:A,maxSamples:w}}function vwt(n){const e=this;let t=null,r=0,i=!1,s=!1;const o=new Zo,a=new Vt,l={value:null,needsUpdate:!1};this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(m,f){const g=m.length!==0||f||r!==0||i;return i=f,r=m.length,g},this.beginShadows=function(){s=!0,u(null)},this.endShadows=function(){s=!1},this.setGlobalState=function(m,f){t=u(m,f,0)},this.setState=function(m,f,g){const h=m.clippingPlanes,v=m.clipIntersection,b=m.clipShadows,_=n.get(m);if(!i||h===null||h.length===0||s&&!b)s?u(null):d();else{const y=s?0:r,E=y*4;let x=_.clippingState||null;l.value=x,x=u(h,f,E,g);for(let A=0;A!==E;++A)x[A]=t[A];_.clippingState=x,this.numIntersection=v?this.numPlanes:0,this.numPlanes+=y}};function d(){l.value!==t&&(l.value=t,l.needsUpdate=r>0),e.numPlanes=r,e.numIntersection=0}function u(m,f,g,h){const v=m!==null?m.length:0;let b=null;if(v!==0){if(b=l.value,h!==!0||b===null){const _=g+v*4,y=f.matrixWorldInverse;a.getNormalMatrix(y),(b===null||b.length<_)&&(b=new Float32Array(_));for(let E=0,x=g;E!==v;++E,x+=4)o.copy(m[E]).applyMatrix4(y,a),o.normal.toArray(b,x),b[x+3]=o.constant}l.value=b,l.needsUpdate=!0}return e.numPlanes=v,e.numIntersection=0,b}}function ywt(n){let e=new WeakMap;function t(o,a){return a===N1?o.mapping=Ol:a===k1&&(o.mapping=Dl),o}function r(o){if(o&&o.isTexture){const a=o.mapping;if(a===N1||a===k1)if(e.has(o)){const l=e.get(o).texture;return t(l,o.mapping)}else{const l=o.image;if(l&&l.height>0){const d=new I2t(l.height/2);return d.fromEquirectangularTexture(n,o),e.set(o,d),o.addEventListener("dispose",i),t(d.texture,o.mapping)}else return null}}return o}function i(o){const a=o.target;a.removeEventListener("dispose",i);const l=e.get(a);l!==void 0&&(e.delete(a),l.dispose())}function s(){e=new WeakMap}return{get:r,dispose:s}}class Zy extends cO{constructor(e=-1,t=1,r=1,i=-1,s=.1,o=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=r,this.bottom=i,this.near=s,this.far=o,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=e.view===null?null:Object.assign({},e.view),this}setViewOffset(e,t,r,i,s,o){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=r,this.view.offsetY=i,this.view.width=s,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),r=(this.right+this.left)/2,i=(this.top+this.bottom)/2;let s=r-e,o=r+e,a=i+t,l=i-t;if(this.view!==null&&this.view.enabled){const d=(this.right-this.left)/this.view.fullWidth/this.zoom,u=(this.top-this.bottom)/this.view.fullHeight/this.zoom;s+=d*this.view.offsetX,o=s+d*this.view.width,a-=u*this.view.offsetY,l=a-u*this.view.height}this.projectionMatrix.makeOrthographic(s,o,a,l,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,this.view!==null&&(t.object.view=Object.assign({},this.view)),t}}const al=4,ER=[.125,.215,.35,.446,.526,.582],ra=20,vb=new Zy,SR=new Nt;let yb=null,Eb=0,Sb=0;const Jo=(1+Math.sqrt(5))/2,el=1/Jo,xR=[new he(1,1,1),new he(-1,1,1),new he(1,1,-1),new he(-1,1,-1),new he(0,Jo,el),new he(0,Jo,-el),new he(el,0,Jo),new he(-el,0,Jo),new he(Jo,el,0),new he(-Jo,el,0)];class TR{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,t=0,r=.1,i=100){yb=this._renderer.getRenderTarget(),Eb=this._renderer.getActiveCubeFace(),Sb=this._renderer.getActiveMipmapLevel(),this._setSize(256);const s=this._allocateTargets();return s.depthBuffer=!0,this._sceneToCubeUV(e,r,i,s),t>0&&this._blur(s,0,0,t),this._applyPMREM(s),this._cleanup(s),s}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=AR(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=CR(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e2?E:0,E,E),u.setRenderTarget(i),v&&u.render(h,a),u.render(e,a)}h.geometry.dispose(),h.material.dispose(),u.toneMapping=f,u.autoClear=m,e.background=b}_textureToCubeUV(e,t){const r=this._renderer,i=e.mapping===Ol||e.mapping===Dl;i?(this._cubemapMaterial===null&&(this._cubemapMaterial=AR()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=CR());const s=i?this._cubemapMaterial:this._equirectMaterial,o=new br(this._lodPlanes[0],s),a=s.uniforms;a.envMap.value=e;const l=this._cubeSize;Hu(t,0,0,3*l,2*l),r.setRenderTarget(t),r.render(o,vb)}_applyPMREM(e){const t=this._renderer,r=t.autoClear;t.autoClear=!1;for(let i=1;ira&&console.warn(`sigmaRadians, ${s}, is too large and will clip, as it requested ${b} samples when the maximum is set to ${ra}`);const _=[];let y=0;for(let N=0;NE-al?i-E+al:0),w=4*(this._cubeSize-x);Hu(t,A,w,3*x,2*x),l.setRenderTarget(t),l.render(m,vb)}}function Ewt(n){const e=[],t=[],r=[];let i=n;const s=n-al+1+ER.length;for(let o=0;on-al?l=ER[o-n+al-1]:o===0&&(l=0),r.push(l);const d=1/(a-2),u=-d,m=1+d,f=[u,u,m,u,m,m,u,u,m,m,u,m],g=6,h=6,v=3,b=2,_=1,y=new Float32Array(v*h*g),E=new Float32Array(b*h*g),x=new Float32Array(_*h*g);for(let w=0;w2?0:-1,C=[N,L,0,N+2/3,L,0,N+2/3,L+1,0,N,L,0,N+2/3,L+1,0,N,L+1,0];y.set(C,v*h*w),E.set(f,b*h*w);const k=[w,w,w,w,w,w];x.set(k,_*h*w)}const A=new os;A.setAttribute("position",new vr(y,v)),A.setAttribute("uv",new vr(E,b)),A.setAttribute("faceIndex",new vr(x,_)),e.push(A),i>al&&i--}return{lodPlanes:e,sizeLods:t,sigmas:r}}function wR(n,e,t){const r=new Ta(n,e,t);return r.texture.mapping=sm,r.texture.name="PMREM.cubeUv",r.scissorTest=!0,r}function Hu(n,e,t,r,i){n.viewport.set(e,t,r,i),n.scissor.set(e,t,r,i)}function Swt(n,e,t){const r=new Float32Array(ra),i=new he(0,1,0);return new wa({name:"SphericalGaussianBlur",defines:{n:ra,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/t,CUBEUV_MAX_MIP:`${n}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:r},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:i}},vertexShader:Jy(),fragmentShader:` +}`,Gt={alphahash_fragment:P2t,alphahash_pars_fragment:F2t,alphamap_fragment:U2t,alphamap_pars_fragment:B2t,alphatest_fragment:G2t,alphatest_pars_fragment:z2t,aomap_fragment:V2t,aomap_pars_fragment:H2t,batching_pars_vertex:q2t,batching_vertex:Y2t,begin_vertex:$2t,beginnormal_vertex:W2t,bsdfs:K2t,iridescence_fragment:j2t,bumpmap_pars_fragment:Q2t,clipping_planes_fragment:X2t,clipping_planes_pars_fragment:Z2t,clipping_planes_pars_vertex:J2t,clipping_planes_vertex:ext,color_fragment:txt,color_pars_fragment:nxt,color_pars_vertex:rxt,color_vertex:ixt,common:sxt,cube_uv_reflection_fragment:oxt,defaultnormal_vertex:axt,displacementmap_pars_vertex:lxt,displacementmap_vertex:cxt,emissivemap_fragment:dxt,emissivemap_pars_fragment:uxt,colorspace_fragment:pxt,colorspace_pars_fragment:hxt,envmap_fragment:mxt,envmap_common_pars_fragment:fxt,envmap_pars_fragment:gxt,envmap_pars_vertex:_xt,envmap_physical_pars_fragment:Mxt,envmap_vertex:bxt,fog_vertex:vxt,fog_pars_vertex:yxt,fog_fragment:Ext,fog_pars_fragment:Sxt,gradientmap_pars_fragment:xxt,lightmap_fragment:Txt,lightmap_pars_fragment:wxt,lights_lambert_fragment:Cxt,lights_lambert_pars_fragment:Axt,lights_pars_begin:Rxt,lights_toon_fragment:Nxt,lights_toon_pars_fragment:kxt,lights_phong_fragment:Ixt,lights_phong_pars_fragment:Oxt,lights_physical_fragment:Dxt,lights_physical_pars_fragment:Lxt,lights_fragment_begin:Pxt,lights_fragment_maps:Fxt,lights_fragment_end:Uxt,logdepthbuf_fragment:Bxt,logdepthbuf_pars_fragment:Gxt,logdepthbuf_pars_vertex:zxt,logdepthbuf_vertex:Vxt,map_fragment:Hxt,map_pars_fragment:qxt,map_particle_fragment:Yxt,map_particle_pars_fragment:$xt,metalnessmap_fragment:Wxt,metalnessmap_pars_fragment:Kxt,morphcolor_vertex:jxt,morphnormal_vertex:Qxt,morphtarget_pars_vertex:Xxt,morphtarget_vertex:Zxt,normal_fragment_begin:Jxt,normal_fragment_maps:eTt,normal_pars_fragment:tTt,normal_pars_vertex:nTt,normal_vertex:rTt,normalmap_pars_fragment:iTt,clearcoat_normal_fragment_begin:sTt,clearcoat_normal_fragment_maps:oTt,clearcoat_pars_fragment:aTt,iridescence_pars_fragment:lTt,opaque_fragment:cTt,packing:dTt,premultiplied_alpha_fragment:uTt,project_vertex:pTt,dithering_fragment:hTt,dithering_pars_fragment:mTt,roughnessmap_fragment:fTt,roughnessmap_pars_fragment:gTt,shadowmap_pars_fragment:_Tt,shadowmap_pars_vertex:bTt,shadowmap_vertex:vTt,shadowmask_pars_fragment:yTt,skinbase_vertex:ETt,skinning_pars_vertex:STt,skinning_vertex:xTt,skinnormal_vertex:TTt,specularmap_fragment:wTt,specularmap_pars_fragment:CTt,tonemapping_fragment:ATt,tonemapping_pars_fragment:RTt,transmission_fragment:MTt,transmission_pars_fragment:NTt,uv_pars_fragment:kTt,uv_pars_vertex:ITt,uv_vertex:OTt,worldpos_vertex:DTt,background_vert:LTt,background_frag:PTt,backgroundCube_vert:FTt,backgroundCube_frag:UTt,cube_vert:BTt,cube_frag:GTt,depth_vert:zTt,depth_frag:VTt,distanceRGBA_vert:HTt,distanceRGBA_frag:qTt,equirect_vert:YTt,equirect_frag:$Tt,linedashed_vert:WTt,linedashed_frag:KTt,meshbasic_vert:jTt,meshbasic_frag:QTt,meshlambert_vert:XTt,meshlambert_frag:ZTt,meshmatcap_vert:JTt,meshmatcap_frag:ewt,meshnormal_vert:twt,meshnormal_frag:nwt,meshphong_vert:rwt,meshphong_frag:iwt,meshphysical_vert:swt,meshphysical_frag:owt,meshtoon_vert:awt,meshtoon_frag:lwt,points_vert:cwt,points_frag:dwt,shadow_vert:uwt,shadow_frag:pwt,sprite_vert:hwt,sprite_frag:mwt},it={common:{diffuse:{value:new Nt(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new Vt},alphaMap:{value:null},alphaMapTransform:{value:new Vt},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new Vt}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new Vt}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new Vt}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new Vt},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new Vt},normalScale:{value:new $t(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new Vt},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new Vt}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new Vt}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new Vt}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new Nt(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new Nt(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new Vt},alphaTest:{value:0},uvTransform:{value:new Vt}},sprite:{diffuse:{value:new Nt(16777215)},opacity:{value:1},center:{value:new $t(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new Vt},alphaMap:{value:null},alphaMapTransform:{value:new Vt},alphaTest:{value:0}}},zi={basic:{uniforms:hr([it.common,it.specularmap,it.envmap,it.aomap,it.lightmap,it.fog]),vertexShader:Gt.meshbasic_vert,fragmentShader:Gt.meshbasic_frag},lambert:{uniforms:hr([it.common,it.specularmap,it.envmap,it.aomap,it.lightmap,it.emissivemap,it.bumpmap,it.normalmap,it.displacementmap,it.fog,it.lights,{emissive:{value:new Nt(0)}}]),vertexShader:Gt.meshlambert_vert,fragmentShader:Gt.meshlambert_frag},phong:{uniforms:hr([it.common,it.specularmap,it.envmap,it.aomap,it.lightmap,it.emissivemap,it.bumpmap,it.normalmap,it.displacementmap,it.fog,it.lights,{emissive:{value:new Nt(0)},specular:{value:new Nt(1118481)},shininess:{value:30}}]),vertexShader:Gt.meshphong_vert,fragmentShader:Gt.meshphong_frag},standard:{uniforms:hr([it.common,it.envmap,it.aomap,it.lightmap,it.emissivemap,it.bumpmap,it.normalmap,it.displacementmap,it.roughnessmap,it.metalnessmap,it.fog,it.lights,{emissive:{value:new Nt(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Gt.meshphysical_vert,fragmentShader:Gt.meshphysical_frag},toon:{uniforms:hr([it.common,it.aomap,it.lightmap,it.emissivemap,it.bumpmap,it.normalmap,it.displacementmap,it.gradientmap,it.fog,it.lights,{emissive:{value:new Nt(0)}}]),vertexShader:Gt.meshtoon_vert,fragmentShader:Gt.meshtoon_frag},matcap:{uniforms:hr([it.common,it.bumpmap,it.normalmap,it.displacementmap,it.fog,{matcap:{value:null}}]),vertexShader:Gt.meshmatcap_vert,fragmentShader:Gt.meshmatcap_frag},points:{uniforms:hr([it.points,it.fog]),vertexShader:Gt.points_vert,fragmentShader:Gt.points_frag},dashed:{uniforms:hr([it.common,it.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Gt.linedashed_vert,fragmentShader:Gt.linedashed_frag},depth:{uniforms:hr([it.common,it.displacementmap]),vertexShader:Gt.depth_vert,fragmentShader:Gt.depth_frag},normal:{uniforms:hr([it.common,it.bumpmap,it.normalmap,it.displacementmap,{opacity:{value:1}}]),vertexShader:Gt.meshnormal_vert,fragmentShader:Gt.meshnormal_frag},sprite:{uniforms:hr([it.sprite,it.fog]),vertexShader:Gt.sprite_vert,fragmentShader:Gt.sprite_frag},background:{uniforms:{uvTransform:{value:new Vt},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:Gt.background_vert,fragmentShader:Gt.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1}},vertexShader:Gt.backgroundCube_vert,fragmentShader:Gt.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:Gt.cube_vert,fragmentShader:Gt.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Gt.equirect_vert,fragmentShader:Gt.equirect_frag},distanceRGBA:{uniforms:hr([it.common,it.displacementmap,{referencePosition:{value:new he},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Gt.distanceRGBA_vert,fragmentShader:Gt.distanceRGBA_frag},shadow:{uniforms:hr([it.lights,it.fog,{color:{value:new Nt(0)},opacity:{value:1}}]),vertexShader:Gt.shadow_vert,fragmentShader:Gt.shadow_frag}};zi.physical={uniforms:hr([zi.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new Vt},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new Vt},clearcoatNormalScale:{value:new $t(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new Vt},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new Vt},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new Vt},sheen:{value:0},sheenColor:{value:new Nt(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new Vt},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new Vt},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new Vt},transmissionSamplerSize:{value:new $t},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new Vt},attenuationDistance:{value:0},attenuationColor:{value:new Nt(0)},specularColor:{value:new Nt(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new Vt},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new Vt},anisotropyVector:{value:new $t},anisotropyMap:{value:null},anisotropyMapTransform:{value:new Vt}}]),vertexShader:Gt.meshphysical_vert,fragmentShader:Gt.meshphysical_frag};const Vu={r:0,b:0,g:0};function fwt(n,e,t,r,i,s,o){const a=new Nt(0);let l=s===!0?0:1,d,u,m=null,f=0,g=null;function h(b,_){let y=!1,E=_.isScene===!0?_.background:null;E&&E.isTexture&&(E=(_.backgroundBlurriness>0?t:e).get(E)),E===null?v(a,l):E&&E.isColor&&(v(E,1),y=!0);const x=n.xr.getEnvironmentBlendMode();x==="additive"?r.buffers.color.setClear(0,0,0,1,o):x==="alpha-blend"&&r.buffers.color.setClear(0,0,0,0,o),(n.autoClear||y)&&n.clear(n.autoClearColor,n.autoClearDepth,n.autoClearStencil),E&&(E.isCubeTexture||E.mapping===sm)?(u===void 0&&(u=new br(new wo(1,1,1),new wa({name:"BackgroundCubeMaterial",uniforms:Bl(zi.backgroundCube.uniforms),vertexShader:zi.backgroundCube.vertexShader,fragmentShader:zi.backgroundCube.fragmentShader,side:kr,depthTest:!1,depthWrite:!1,fog:!1})),u.geometry.deleteAttribute("normal"),u.geometry.deleteAttribute("uv"),u.onBeforeRender=function(A,w,N){this.matrixWorld.copyPosition(N.matrixWorld)},Object.defineProperty(u.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),i.update(u)),u.material.uniforms.envMap.value=E,u.material.uniforms.flipEnvMap.value=E.isCubeTexture&&E.isRenderTargetTexture===!1?-1:1,u.material.uniforms.backgroundBlurriness.value=_.backgroundBlurriness,u.material.uniforms.backgroundIntensity.value=_.backgroundIntensity,u.material.toneMapped=tn.getTransfer(E.colorSpace)!==bn,(m!==E||f!==E.version||g!==n.toneMapping)&&(u.material.needsUpdate=!0,m=E,f=E.version,g=n.toneMapping),u.layers.enableAll(),b.unshift(u,u.geometry,u.material,0,0,null)):E&&E.isTexture&&(d===void 0&&(d=new br(new Xy(2,2),new wa({name:"BackgroundMaterial",uniforms:Bl(zi.background.uniforms),vertexShader:zi.background.vertexShader,fragmentShader:zi.background.fragmentShader,side:Fs,depthTest:!1,depthWrite:!1,fog:!1})),d.geometry.deleteAttribute("normal"),Object.defineProperty(d.material,"map",{get:function(){return this.uniforms.t2D.value}}),i.update(d)),d.material.uniforms.t2D.value=E,d.material.uniforms.backgroundIntensity.value=_.backgroundIntensity,d.material.toneMapped=tn.getTransfer(E.colorSpace)!==bn,E.matrixAutoUpdate===!0&&E.updateMatrix(),d.material.uniforms.uvTransform.value.copy(E.matrix),(m!==E||f!==E.version||g!==n.toneMapping)&&(d.material.needsUpdate=!0,m=E,f=E.version,g=n.toneMapping),d.layers.enableAll(),b.unshift(d,d.geometry,d.material,0,0,null))}function v(b,_){b.getRGB(Vu,lO(n)),r.buffers.color.setClear(Vu.r,Vu.g,Vu.b,_,o)}return{getClearColor:function(){return a},setClearColor:function(b,_=1){a.set(b),l=_,v(a,l)},getClearAlpha:function(){return l},setClearAlpha:function(b){l=b,v(a,l)},render:h}}function gwt(n,e,t,r){const i=n.getParameter(n.MAX_VERTEX_ATTRIBS),s=r.isWebGL2?null:e.get("OES_vertex_array_object"),o=r.isWebGL2||s!==null,a={},l=b(null);let d=l,u=!1;function m(D,$,K,B,Z){let ce=!1;if(o){const ue=v(B,K,$);d!==ue&&(d=ue,g(d.object)),ce=_(D,B,K,Z),ce&&y(D,B,K,Z)}else{const ue=$.wireframe===!0;(d.geometry!==B.id||d.program!==K.id||d.wireframe!==ue)&&(d.geometry=B.id,d.program=K.id,d.wireframe=ue,ce=!0)}Z!==null&&t.update(Z,n.ELEMENT_ARRAY_BUFFER),(ce||u)&&(u=!1,L(D,$,K,B),Z!==null&&n.bindBuffer(n.ELEMENT_ARRAY_BUFFER,t.get(Z).buffer))}function f(){return r.isWebGL2?n.createVertexArray():s.createVertexArrayOES()}function g(D){return r.isWebGL2?n.bindVertexArray(D):s.bindVertexArrayOES(D)}function h(D){return r.isWebGL2?n.deleteVertexArray(D):s.deleteVertexArrayOES(D)}function v(D,$,K){const B=K.wireframe===!0;let Z=a[D.id];Z===void 0&&(Z={},a[D.id]=Z);let ce=Z[$.id];ce===void 0&&(ce={},Z[$.id]=ce);let ue=ce[B];return ue===void 0&&(ue=b(f()),ce[B]=ue),ue}function b(D){const $=[],K=[],B=[];for(let Z=0;Z=0){const Ae=Z[Ce];let Fe=ce[Ce];if(Fe===void 0&&(Ce==="instanceMatrix"&&D.instanceMatrix&&(Fe=D.instanceMatrix),Ce==="instanceColor"&&D.instanceColor&&(Fe=D.instanceColor)),Ae===void 0||Ae.attribute!==Fe||Fe&&Ae.data!==Fe.data)return!0;ue++}return d.attributesNum!==ue||d.index!==B}function y(D,$,K,B){const Z={},ce=$.attributes;let ue=0;const xe=K.getAttributes();for(const Ce in xe)if(xe[Ce].location>=0){let Ae=ce[Ce];Ae===void 0&&(Ce==="instanceMatrix"&&D.instanceMatrix&&(Ae=D.instanceMatrix),Ce==="instanceColor"&&D.instanceColor&&(Ae=D.instanceColor));const Fe={};Fe.attribute=Ae,Ae&&Ae.data&&(Fe.data=Ae.data),Z[Ce]=Fe,ue++}d.attributes=Z,d.attributesNum=ue,d.index=B}function E(){const D=d.newAttributes;for(let $=0,K=D.length;$=0){let me=Z[xe];if(me===void 0&&(xe==="instanceMatrix"&&D.instanceMatrix&&(me=D.instanceMatrix),xe==="instanceColor"&&D.instanceColor&&(me=D.instanceColor)),me!==void 0){const Ae=me.normalized,Fe=me.itemSize,ze=t.get(me);if(ze===void 0)continue;const te=ze.buffer,ye=ze.type,Se=ze.bytesPerElement,Oe=r.isWebGL2===!0&&(ye===n.INT||ye===n.UNSIGNED_INT||me.gpuType===qI);if(me.isInterleavedBufferAttribute){const Ye=me.data,le=Ye.stride,V=me.offset;if(Ye.isInstancedInterleavedBuffer){for(let G=0;G0&&n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.HIGH_FLOAT).precision>0)return"highp";N="mediump"}return N==="mediump"&&n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.MEDIUM_FLOAT).precision>0&&n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}const o=typeof WebGL2RenderingContext<"u"&&n.constructor.name==="WebGL2RenderingContext";let a=t.precision!==void 0?t.precision:"highp";const l=s(a);l!==a&&(console.warn("THREE.WebGLRenderer:",a,"not supported, using",l,"instead."),a=l);const d=o||e.has("WEBGL_draw_buffers"),u=t.logarithmicDepthBuffer===!0,m=n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS),f=n.getParameter(n.MAX_VERTEX_TEXTURE_IMAGE_UNITS),g=n.getParameter(n.MAX_TEXTURE_SIZE),h=n.getParameter(n.MAX_CUBE_MAP_TEXTURE_SIZE),v=n.getParameter(n.MAX_VERTEX_ATTRIBS),b=n.getParameter(n.MAX_VERTEX_UNIFORM_VECTORS),_=n.getParameter(n.MAX_VARYING_VECTORS),y=n.getParameter(n.MAX_FRAGMENT_UNIFORM_VECTORS),E=f>0,x=o||e.has("OES_texture_float"),A=E&&x,w=o?n.getParameter(n.MAX_SAMPLES):0;return{isWebGL2:o,drawBuffers:d,getMaxAnisotropy:i,getMaxPrecision:s,precision:a,logarithmicDepthBuffer:u,maxTextures:m,maxVertexTextures:f,maxTextureSize:g,maxCubemapSize:h,maxAttributes:v,maxVertexUniforms:b,maxVaryings:_,maxFragmentUniforms:y,vertexTextures:E,floatFragmentTextures:x,floatVertexTextures:A,maxSamples:w}}function vwt(n){const e=this;let t=null,r=0,i=!1,s=!1;const o=new Zo,a=new Vt,l={value:null,needsUpdate:!1};this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(m,f){const g=m.length!==0||f||r!==0||i;return i=f,r=m.length,g},this.beginShadows=function(){s=!0,u(null)},this.endShadows=function(){s=!1},this.setGlobalState=function(m,f){t=u(m,f,0)},this.setState=function(m,f,g){const h=m.clippingPlanes,v=m.clipIntersection,b=m.clipShadows,_=n.get(m);if(!i||h===null||h.length===0||s&&!b)s?u(null):d();else{const y=s?0:r,E=y*4;let x=_.clippingState||null;l.value=x,x=u(h,f,E,g);for(let A=0;A!==E;++A)x[A]=t[A];_.clippingState=x,this.numIntersection=v?this.numPlanes:0,this.numPlanes+=y}};function d(){l.value!==t&&(l.value=t,l.needsUpdate=r>0),e.numPlanes=r,e.numIntersection=0}function u(m,f,g,h){const v=m!==null?m.length:0;let b=null;if(v!==0){if(b=l.value,h!==!0||b===null){const _=g+v*4,y=f.matrixWorldInverse;a.getNormalMatrix(y),(b===null||b.length<_)&&(b=new Float32Array(_));for(let E=0,x=g;E!==v;++E,x+=4)o.copy(m[E]).applyMatrix4(y,a),o.normal.toArray(b,x),b[x+3]=o.constant}l.value=b,l.needsUpdate=!0}return e.numPlanes=v,e.numIntersection=0,b}}function ywt(n){let e=new WeakMap;function t(o,a){return a===N1?o.mapping=Ol:a===k1&&(o.mapping=Dl),o}function r(o){if(o&&o.isTexture){const a=o.mapping;if(a===N1||a===k1)if(e.has(o)){const l=e.get(o).texture;return t(l,o.mapping)}else{const l=o.image;if(l&&l.height>0){const d=new I2t(l.height/2);return d.fromEquirectangularTexture(n,o),e.set(o,d),o.addEventListener("dispose",i),t(d.texture,o.mapping)}else return null}}return o}function i(o){const a=o.target;a.removeEventListener("dispose",i);const l=e.get(a);l!==void 0&&(e.delete(a),l.dispose())}function s(){e=new WeakMap}return{get:r,dispose:s}}class Zy extends cO{constructor(e=-1,t=1,r=1,i=-1,s=.1,o=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=r,this.bottom=i,this.near=s,this.far=o,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=e.view===null?null:Object.assign({},e.view),this}setViewOffset(e,t,r,i,s,o){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=r,this.view.offsetY=i,this.view.width=s,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),r=(this.right+this.left)/2,i=(this.top+this.bottom)/2;let s=r-e,o=r+e,a=i+t,l=i-t;if(this.view!==null&&this.view.enabled){const d=(this.right-this.left)/this.view.fullWidth/this.zoom,u=(this.top-this.bottom)/this.view.fullHeight/this.zoom;s+=d*this.view.offsetX,o=s+d*this.view.width,a-=u*this.view.offsetY,l=a-u*this.view.height}this.projectionMatrix.makeOrthographic(s,o,a,l,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,this.view!==null&&(t.object.view=Object.assign({},this.view)),t}}const al=4,ER=[.125,.215,.35,.446,.526,.582],ra=20,vb=new Zy,SR=new Nt;let yb=null,Eb=0,Sb=0;const Jo=(1+Math.sqrt(5))/2,el=1/Jo,xR=[new he(1,1,1),new he(-1,1,1),new he(1,1,-1),new he(-1,1,-1),new he(0,Jo,el),new he(0,Jo,-el),new he(el,0,Jo),new he(-el,0,Jo),new he(Jo,el,0),new he(-Jo,el,0)];class TR{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,t=0,r=.1,i=100){yb=this._renderer.getRenderTarget(),Eb=this._renderer.getActiveCubeFace(),Sb=this._renderer.getActiveMipmapLevel(),this._setSize(256);const s=this._allocateTargets();return s.depthBuffer=!0,this._sceneToCubeUV(e,r,i,s),t>0&&this._blur(s,0,0,t),this._applyPMREM(s),this._cleanup(s),s}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=AR(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=CR(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e2?E:0,E,E),u.setRenderTarget(i),v&&u.render(h,a),u.render(e,a)}h.geometry.dispose(),h.material.dispose(),u.toneMapping=f,u.autoClear=m,e.background=b}_textureToCubeUV(e,t){const r=this._renderer,i=e.mapping===Ol||e.mapping===Dl;i?(this._cubemapMaterial===null&&(this._cubemapMaterial=AR()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=CR());const s=i?this._cubemapMaterial:this._equirectMaterial,o=new br(this._lodPlanes[0],s),a=s.uniforms;a.envMap.value=e;const l=this._cubeSize;Hu(t,0,0,3*l,2*l),r.setRenderTarget(t),r.render(o,vb)}_applyPMREM(e){const t=this._renderer,r=t.autoClear;t.autoClear=!1;for(let i=1;ira&&console.warn(`sigmaRadians, ${s}, is too large and will clip, as it requested ${b} samples when the maximum is set to ${ra}`);const _=[];let y=0;for(let N=0;NE-al?i-E+al:0),w=4*(this._cubeSize-x);Hu(t,A,w,3*x,2*x),l.setRenderTarget(t),l.render(m,vb)}}function Ewt(n){const e=[],t=[],r=[];let i=n;const s=n-al+1+ER.length;for(let o=0;on-al?l=ER[o-n+al-1]:o===0&&(l=0),r.push(l);const d=1/(a-2),u=-d,m=1+d,f=[u,u,m,u,m,m,u,u,m,m,u,m],g=6,h=6,v=3,b=2,_=1,y=new Float32Array(v*h*g),E=new Float32Array(b*h*g),x=new Float32Array(_*h*g);for(let w=0;w2?0:-1,C=[N,L,0,N+2/3,L,0,N+2/3,L+1,0,N,L,0,N+2/3,L+1,0,N,L+1,0];y.set(C,v*h*w),E.set(f,b*h*w);const k=[w,w,w,w,w,w];x.set(k,_*h*w)}const A=new as;A.setAttribute("position",new vr(y,v)),A.setAttribute("uv",new vr(E,b)),A.setAttribute("faceIndex",new vr(x,_)),e.push(A),i>al&&i--}return{lodPlanes:e,sizeLods:t,sigmas:r}}function wR(n,e,t){const r=new Ta(n,e,t);return r.texture.mapping=sm,r.texture.name="PMREM.cubeUv",r.scissorTest=!0,r}function Hu(n,e,t,r,i){n.viewport.set(e,t,r,i),n.scissor.set(e,t,r,i)}function Swt(n,e,t){const r=new Float32Array(ra),i=new he(0,1,0);return new wa({name:"SphericalGaussianBlur",defines:{n:ra,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/t,CUBEUV_MAX_MIP:`${n}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:r},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:i}},vertexShader:Jy(),fragmentShader:` precision mediump float; precision mediump int; @@ -4171,7 +4171,7 @@ void main() { gl_Position = vec4( position, 1.0 ); } - `}function xwt(n){let e=new WeakMap,t=null;function r(a){if(a&&a.isTexture){const l=a.mapping,d=l===N1||l===k1,u=l===Ol||l===Dl;if(d||u)if(a.isRenderTargetTexture&&a.needsPMREMUpdate===!0){a.needsPMREMUpdate=!1;let m=e.get(a);return t===null&&(t=new TR(n)),m=d?t.fromEquirectangular(a,m):t.fromCubemap(a,m),e.set(a,m),m.texture}else{if(e.has(a))return e.get(a).texture;{const m=a.image;if(d&&m&&m.height>0||u&&m&&i(m)){t===null&&(t=new TR(n));const f=d?t.fromEquirectangular(a):t.fromCubemap(a);return e.set(a,f),a.addEventListener("dispose",s),f.texture}else return null}}}return a}function i(a){let l=0;const d=6;for(let u=0;ue.maxTextureSize&&(H=Math.ceil(k/e.maxTextureSize),k=e.maxTextureSize);const q=new Float32Array(k*H*4*v),ie=new rO(q,k,H,v);ie.type=xs,ie.needsUpdate=!0;const D=C*4;for(let K=0;K0)return n;const i=e*t;let s=RR[i];if(s===void 0&&(s=new Float32Array(i),RR[i]=s),e!==0){r.toArray(s,0);for(let o=1,a=0;o!==e;++o)a+=t,n[o].toArray(s,a)}return s}function Vn(n,e){if(n.length!==e.length)return!1;for(let t=0,r=n.length;t0||u&&m&&i(m)){t===null&&(t=new TR(n));const f=d?t.fromEquirectangular(a):t.fromCubemap(a);return e.set(a,f),a.addEventListener("dispose",s),f.texture}else return null}}}return a}function i(a){let l=0;const d=6;for(let u=0;ue.maxTextureSize&&(H=Math.ceil(k/e.maxTextureSize),k=e.maxTextureSize);const q=new Float32Array(k*H*4*v),ie=new rO(q,k,H,v);ie.type=Ts,ie.needsUpdate=!0;const D=C*4;for(let K=0;K0)return n;const i=e*t;let s=RR[i];if(s===void 0&&(s=new Float32Array(i),RR[i]=s),e!==0){r.toArray(s,0);for(let o=1,a=0;o!==e;++o)a+=t,n[o].toArray(s,a)}return s}function Vn(n,e){if(n.length!==e.length)return!1;for(let t=0,r=n.length;t":" "} ${a}: ${t[o]}`)}return r.join(` `)}function wCt(n){const e=tn.getPrimaries(tn.workingColorSpace),t=tn.getPrimaries(n);let r;switch(e===t?r="":e===sh&&t===ih?r="LinearDisplayP3ToLinearSRGB":e===ih&&t===sh&&(r="LinearSRGBToLinearDisplayP3"),n){case er:case om:return[r,"LinearTransferOETF"];case Mn:case Ky:return[r,"sRGBTransferOETF"];default:return console.warn("THREE.WebGLProgram: Unsupported color space:",n),[r,"LinearTransferOETF"]}}function LR(n,e,t){const r=n.getShaderParameter(e,n.COMPILE_STATUS),i=n.getShaderInfoLog(e).trim();if(r&&i==="")return"";const s=/ERROR: 0:(\d+)/.exec(i);if(s){const o=parseInt(s[1]);return t.toUpperCase()+` @@ -4183,7 +4183,7 @@ void main() { precision `+n.precision+" int;";return n.precision==="highp"?e+=` #define HIGH_PRECISION`:n.precision==="mediump"?e+=` #define MEDIUM_PRECISION`:n.precision==="lowp"&&(e+=` -#define LOW_PRECISION`),e}function PCt(n){let e="SHADOWMAP_TYPE_BASIC";return n.shadowMapType===zI?e="SHADOWMAP_TYPE_PCF":n.shadowMapType===XEt?e="SHADOWMAP_TYPE_PCF_SOFT":n.shadowMapType===bs&&(e="SHADOWMAP_TYPE_VSM"),e}function FCt(n){let e="ENVMAP_TYPE_CUBE";if(n.envMap)switch(n.envMapMode){case Ol:case Dl:e="ENVMAP_TYPE_CUBE";break;case sm:e="ENVMAP_TYPE_CUBE_UV";break}return e}function UCt(n){let e="ENVMAP_MODE_REFLECTION";if(n.envMap)switch(n.envMapMode){case Dl:e="ENVMAP_MODE_REFRACTION";break}return e}function BCt(n){let e="ENVMAP_BLENDING_NONE";if(n.envMap)switch(n.combine){case Yy:e="ENVMAP_BLENDING_MULTIPLY";break;case ESt:e="ENVMAP_BLENDING_MIX";break;case SSt:e="ENVMAP_BLENDING_ADD";break}return e}function GCt(n){const e=n.envMapCubeUVHeight;if(e===null)return null;const t=Math.log2(e)-2,r=1/e;return{texelWidth:1/(3*Math.max(Math.pow(2,t),7*16)),texelHeight:r,maxMip:t}}function zCt(n,e,t,r){const i=n.getContext(),s=t.defines;let o=t.vertexShader,a=t.fragmentShader;const l=PCt(t),d=FCt(t),u=UCt(t),m=BCt(t),f=GCt(t),g=t.isWebGL2?"":RCt(t),h=MCt(s),v=i.createProgram();let b,_,y=t.glslVersion?"#version "+t.glslVersion+` +#define LOW_PRECISION`),e}function PCt(n){let e="SHADOWMAP_TYPE_BASIC";return n.shadowMapType===zI?e="SHADOWMAP_TYPE_PCF":n.shadowMapType===XEt?e="SHADOWMAP_TYPE_PCF_SOFT":n.shadowMapType===vs&&(e="SHADOWMAP_TYPE_VSM"),e}function FCt(n){let e="ENVMAP_TYPE_CUBE";if(n.envMap)switch(n.envMapMode){case Ol:case Dl:e="ENVMAP_TYPE_CUBE";break;case sm:e="ENVMAP_TYPE_CUBE_UV";break}return e}function UCt(n){let e="ENVMAP_MODE_REFLECTION";if(n.envMap)switch(n.envMapMode){case Dl:e="ENVMAP_MODE_REFRACTION";break}return e}function BCt(n){let e="ENVMAP_BLENDING_NONE";if(n.envMap)switch(n.combine){case Yy:e="ENVMAP_BLENDING_MULTIPLY";break;case ESt:e="ENVMAP_BLENDING_MIX";break;case SSt:e="ENVMAP_BLENDING_ADD";break}return e}function GCt(n){const e=n.envMapCubeUVHeight;if(e===null)return null;const t=Math.log2(e)-2,r=1/e;return{texelWidth:1/(3*Math.max(Math.pow(2,t),7*16)),texelHeight:r,maxMip:t}}function zCt(n,e,t,r){const i=n.getContext(),s=t.defines;let o=t.vertexShader,a=t.fragmentShader;const l=PCt(t),d=FCt(t),u=UCt(t),m=BCt(t),f=GCt(t),g=t.isWebGL2?"":RCt(t),h=MCt(s),v=i.createProgram();let b,_,y=t.glslVersion?"#version "+t.glslVersion+` `:"";t.isRawShaderMaterial?(b=["#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,h].filter(Dc).join(` `),b.length>0&&(b+=` `),_=[g,"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,h].filter(Dc).join(` @@ -4229,12 +4229,12 @@ void main() { squared_mean = squared_mean / samples; float std_dev = sqrt( squared_mean - mean * mean ); gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) ); -}`;function sAt(n,e,t){let r=new Qy;const i=new $t,s=new $t,o=new mn,a=new tAt({depthPacking:GSt}),l=new nAt,d={},u=t.maxTextureSize,m={[Fs]:kr,[kr]:Fs,[Vi]:Vi},f=new wa({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new $t},radius:{value:4}},vertexShader:rAt,fragmentShader:iAt}),g=f.clone();g.defines.HORIZONTAL_PASS=1;const h=new os;h.setAttribute("position",new vr(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const v=new br(h,f),b=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=zI;let _=this.type;this.render=function(A,w,N){if(b.enabled===!1||b.autoUpdate===!1&&b.needsUpdate===!1||A.length===0)return;const L=n.getRenderTarget(),C=n.getActiveCubeFace(),k=n.getActiveMipmapLevel(),H=n.state;H.setBlending(So),H.buffers.color.setClear(1,1,1,1),H.buffers.depth.setTest(!0),H.setScissorTest(!1);const q=_!==bs&&this.type===bs,ie=_===bs&&this.type!==bs;for(let D=0,$=A.length;D<$;D++){const K=A[D],B=K.shadow;if(B===void 0){console.warn("THREE.WebGLShadowMap:",K,"has no shadow.");continue}if(B.autoUpdate===!1&&B.needsUpdate===!1)continue;i.copy(B.mapSize);const Z=B.getFrameExtents();if(i.multiply(Z),s.copy(B.mapSize),(i.x>u||i.y>u)&&(i.x>u&&(s.x=Math.floor(u/Z.x),i.x=s.x*Z.x,B.mapSize.x=s.x),i.y>u&&(s.y=Math.floor(u/Z.y),i.y=s.y*Z.y,B.mapSize.y=s.y)),B.map===null||q===!0||ie===!0){const ue=this.type!==bs?{minFilter:$n,magFilter:$n}:{};B.map!==null&&B.map.dispose(),B.map=new Ta(i.x,i.y,ue),B.map.texture.name=K.name+".shadowMap",B.camera.updateProjectionMatrix()}n.setRenderTarget(B.map),n.clear();const ce=B.getViewportCount();for(let ue=0;ue0||w.map&&w.alphaTest>0){const H=C.uuid,q=w.uuid;let ie=d[H];ie===void 0&&(ie={},d[H]=ie);let D=ie[q];D===void 0&&(D=C.clone(),ie[q]=D),C=D}if(C.visible=w.visible,C.wireframe=w.wireframe,L===bs?C.side=w.shadowSide!==null?w.shadowSide:w.side:C.side=w.shadowSide!==null?w.shadowSide:m[w.side],C.alphaMap=w.alphaMap,C.alphaTest=w.alphaTest,C.map=w.map,C.clipShadows=w.clipShadows,C.clippingPlanes=w.clippingPlanes,C.clipIntersection=w.clipIntersection,C.displacementMap=w.displacementMap,C.displacementScale=w.displacementScale,C.displacementBias=w.displacementBias,C.wireframeLinewidth=w.wireframeLinewidth,C.linewidth=w.linewidth,N.isPointLight===!0&&C.isMeshDistanceMaterial===!0){const H=n.properties.get(C);H.light=N}return C}function x(A,w,N,L,C){if(A.visible===!1)return;if(A.layers.test(w.layers)&&(A.isMesh||A.isLine||A.isPoints)&&(A.castShadow||A.receiveShadow&&C===bs)&&(!A.frustumCulled||r.intersectsObject(A))){A.modelViewMatrix.multiplyMatrices(N.matrixWorldInverse,A.matrixWorld);const q=e.update(A),ie=A.material;if(Array.isArray(ie)){const D=q.groups;for(let $=0,K=D.length;$=1):ue.indexOf("OpenGL ES")!==-1&&(ce=parseFloat(/^OpenGL ES (\d)/.exec(ue)[1]),Z=ce>=2);let xe=null,Ce={};const me=n.getParameter(n.SCISSOR_BOX),Ae=n.getParameter(n.VIEWPORT),Fe=new mn().fromArray(me),ze=new mn().fromArray(Ae);function te(ae,dt,Xe,Be){const nt=new Uint8Array(4),At=n.createTexture();n.bindTexture(ae,At),n.texParameteri(ae,n.TEXTURE_MIN_FILTER,n.NEAREST),n.texParameteri(ae,n.TEXTURE_MAG_FILTER,n.NEAREST);for(let jt=0;jt"u"?!1:/OculusBrowser/g.test(navigator.userAgent),h=new WeakMap;let v;const b=new WeakMap;let _=!1;try{_=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function y(U,I){return _?new OffscreenCanvas(U,I):vd("canvas")}function E(U,I,ee,we){let ne=1;if((U.width>we||U.height>we)&&(ne=we/Math.max(U.width,U.height)),ne<1||I===!0)if(typeof HTMLImageElement<"u"&&U instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&U instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&U instanceof ImageBitmap){const pe=I?ah:Math.floor,De=pe(ne*U.width),Le=pe(ne*U.height);v===void 0&&(v=y(De,Le));const Ve=ee?y(De,Le):v;return Ve.width=De,Ve.height=Le,Ve.getContext("2d").drawImage(U,0,0,De,Le),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+U.width+"x"+U.height+") to ("+De+"x"+Le+")."),Ve}else return"data"in U&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+U.width+"x"+U.height+")."),U;return U}function x(U){return P1(U.width)&&P1(U.height)}function A(U){return a?!1:U.wrapS!==Jr||U.wrapT!==Jr||U.minFilter!==$n&&U.minFilter!==Cr}function w(U,I){return U.generateMipmaps&&I&&U.minFilter!==$n&&U.minFilter!==Cr}function N(U){n.generateMipmap(U)}function L(U,I,ee,we,ne=!1){if(a===!1)return I;if(U!==null){if(n[U]!==void 0)return n[U];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+U+"'")}let pe=I;if(I===n.RED&&(ee===n.FLOAT&&(pe=n.R32F),ee===n.HALF_FLOAT&&(pe=n.R16F),ee===n.UNSIGNED_BYTE&&(pe=n.R8)),I===n.RED_INTEGER&&(ee===n.UNSIGNED_BYTE&&(pe=n.R8UI),ee===n.UNSIGNED_SHORT&&(pe=n.R16UI),ee===n.UNSIGNED_INT&&(pe=n.R32UI),ee===n.BYTE&&(pe=n.R8I),ee===n.SHORT&&(pe=n.R16I),ee===n.INT&&(pe=n.R32I)),I===n.RG&&(ee===n.FLOAT&&(pe=n.RG32F),ee===n.HALF_FLOAT&&(pe=n.RG16F),ee===n.UNSIGNED_BYTE&&(pe=n.RG8)),I===n.RGBA){const De=ne?rh:tn.getTransfer(we);ee===n.FLOAT&&(pe=n.RGBA32F),ee===n.HALF_FLOAT&&(pe=n.RGBA16F),ee===n.UNSIGNED_BYTE&&(pe=De===bn?n.SRGB8_ALPHA8:n.RGBA8),ee===n.UNSIGNED_SHORT_4_4_4_4&&(pe=n.RGBA4),ee===n.UNSIGNED_SHORT_5_5_5_1&&(pe=n.RGB5_A1)}return(pe===n.R16F||pe===n.R32F||pe===n.RG16F||pe===n.RG32F||pe===n.RGBA16F||pe===n.RGBA32F)&&e.get("EXT_color_buffer_float"),pe}function C(U,I,ee){return w(U,ee)===!0||U.isFramebufferTexture&&U.minFilter!==$n&&U.minFilter!==Cr?Math.log2(Math.max(I.width,I.height))+1:U.mipmaps!==void 0&&U.mipmaps.length>0?U.mipmaps.length:U.isCompressedTexture&&Array.isArray(U.image)?I.mipmaps.length:1}function k(U){return U===$n||U===I1||U===mp?n.NEAREST:n.LINEAR}function H(U){const I=U.target;I.removeEventListener("dispose",H),ie(I),I.isVideoTexture&&h.delete(I)}function q(U){const I=U.target;I.removeEventListener("dispose",q),$(I)}function ie(U){const I=r.get(U);if(I.__webglInit===void 0)return;const ee=U.source,we=b.get(ee);if(we){const ne=we[I.__cacheKey];ne.usedTimes--,ne.usedTimes===0&&D(U),Object.keys(we).length===0&&b.delete(ee)}r.remove(U)}function D(U){const I=r.get(U);n.deleteTexture(I.__webglTexture);const ee=U.source,we=b.get(ee);delete we[I.__cacheKey],o.memory.textures--}function $(U){const I=U.texture,ee=r.get(U),we=r.get(I);if(we.__webglTexture!==void 0&&(n.deleteTexture(we.__webglTexture),o.memory.textures--),U.depthTexture&&U.depthTexture.dispose(),U.isWebGLCubeRenderTarget)for(let ne=0;ne<6;ne++){if(Array.isArray(ee.__webglFramebuffer[ne]))for(let pe=0;pe=l&&console.warn("THREE.WebGLTextures: Trying to use "+U+" texture units while this GPU supports only "+l),K+=1,U}function ce(U){const I=[];return I.push(U.wrapS),I.push(U.wrapT),I.push(U.wrapR||0),I.push(U.magFilter),I.push(U.minFilter),I.push(U.anisotropy),I.push(U.internalFormat),I.push(U.format),I.push(U.type),I.push(U.generateMipmaps),I.push(U.premultiplyAlpha),I.push(U.flipY),I.push(U.unpackAlignment),I.push(U.colorSpace),I.join()}function ue(U,I){const ee=r.get(U);if(U.isVideoTexture&&Pe(U),U.isRenderTargetTexture===!1&&U.version>0&&ee.__version!==U.version){const we=U.image;if(we===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(we.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{Se(ee,U,I);return}}t.bindTexture(n.TEXTURE_2D,ee.__webglTexture,n.TEXTURE0+I)}function xe(U,I){const ee=r.get(U);if(U.version>0&&ee.__version!==U.version){Se(ee,U,I);return}t.bindTexture(n.TEXTURE_2D_ARRAY,ee.__webglTexture,n.TEXTURE0+I)}function Ce(U,I){const ee=r.get(U);if(U.version>0&&ee.__version!==U.version){Se(ee,U,I);return}t.bindTexture(n.TEXTURE_3D,ee.__webglTexture,n.TEXTURE0+I)}function me(U,I){const ee=r.get(U);if(U.version>0&&ee.__version!==U.version){Oe(ee,U,I);return}t.bindTexture(n.TEXTURE_CUBE_MAP,ee.__webglTexture,n.TEXTURE0+I)}const Ae={[Ll]:n.REPEAT,[Jr]:n.CLAMP_TO_EDGE,[nh]:n.MIRRORED_REPEAT},Fe={[$n]:n.NEAREST,[I1]:n.NEAREST_MIPMAP_NEAREST,[mp]:n.NEAREST_MIPMAP_LINEAR,[Cr]:n.LINEAR,[HI]:n.LINEAR_MIPMAP_NEAREST,[xa]:n.LINEAR_MIPMAP_LINEAR},ze={[VSt]:n.NEVER,[KSt]:n.ALWAYS,[HSt]:n.LESS,[JI]:n.LEQUAL,[qSt]:n.EQUAL,[WSt]:n.GEQUAL,[YSt]:n.GREATER,[$St]:n.NOTEQUAL};function te(U,I,ee){if(ee?(n.texParameteri(U,n.TEXTURE_WRAP_S,Ae[I.wrapS]),n.texParameteri(U,n.TEXTURE_WRAP_T,Ae[I.wrapT]),(U===n.TEXTURE_3D||U===n.TEXTURE_2D_ARRAY)&&n.texParameteri(U,n.TEXTURE_WRAP_R,Ae[I.wrapR]),n.texParameteri(U,n.TEXTURE_MAG_FILTER,Fe[I.magFilter]),n.texParameteri(U,n.TEXTURE_MIN_FILTER,Fe[I.minFilter])):(n.texParameteri(U,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(U,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),(U===n.TEXTURE_3D||U===n.TEXTURE_2D_ARRAY)&&n.texParameteri(U,n.TEXTURE_WRAP_R,n.CLAMP_TO_EDGE),(I.wrapS!==Jr||I.wrapT!==Jr)&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),n.texParameteri(U,n.TEXTURE_MAG_FILTER,k(I.magFilter)),n.texParameteri(U,n.TEXTURE_MIN_FILTER,k(I.minFilter)),I.minFilter!==$n&&I.minFilter!==Cr&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),I.compareFunction&&(n.texParameteri(U,n.TEXTURE_COMPARE_MODE,n.COMPARE_REF_TO_TEXTURE),n.texParameteri(U,n.TEXTURE_COMPARE_FUNC,ze[I.compareFunction])),e.has("EXT_texture_filter_anisotropic")===!0){const we=e.get("EXT_texture_filter_anisotropic");if(I.magFilter===$n||I.minFilter!==mp&&I.minFilter!==xa||I.type===xs&&e.has("OES_texture_float_linear")===!1||a===!1&&I.type===_d&&e.has("OES_texture_half_float_linear")===!1)return;(I.anisotropy>1||r.get(I).__currentAnisotropy)&&(n.texParameterf(U,we.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(I.anisotropy,i.getMaxAnisotropy())),r.get(I).__currentAnisotropy=I.anisotropy)}}function ye(U,I){let ee=!1;U.__webglInit===void 0&&(U.__webglInit=!0,I.addEventListener("dispose",H));const we=I.source;let ne=b.get(we);ne===void 0&&(ne={},b.set(we,ne));const pe=ce(I);if(pe!==U.__cacheKey){ne[pe]===void 0&&(ne[pe]={texture:n.createTexture(),usedTimes:0},o.memory.textures++,ee=!0),ne[pe].usedTimes++;const De=ne[U.__cacheKey];De!==void 0&&(ne[U.__cacheKey].usedTimes--,De.usedTimes===0&&D(I)),U.__cacheKey=pe,U.__webglTexture=ne[pe].texture}return ee}function Se(U,I,ee){let we=n.TEXTURE_2D;(I.isDataArrayTexture||I.isCompressedArrayTexture)&&(we=n.TEXTURE_2D_ARRAY),I.isData3DTexture&&(we=n.TEXTURE_3D);const ne=ye(U,I),pe=I.source;t.bindTexture(we,U.__webglTexture,n.TEXTURE0+ee);const De=r.get(pe);if(pe.version!==De.__version||ne===!0){t.activeTexture(n.TEXTURE0+ee);const Le=tn.getPrimaries(tn.workingColorSpace),Ve=I.colorSpace===ti?null:tn.getPrimaries(I.colorSpace),ot=I.colorSpace===ti||Le===Ve?n.NONE:n.BROWSER_DEFAULT_WEBGL;n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,I.flipY),n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,I.premultiplyAlpha),n.pixelStorei(n.UNPACK_ALIGNMENT,I.unpackAlignment),n.pixelStorei(n.UNPACK_COLORSPACE_CONVERSION_WEBGL,ot);const wt=A(I)&&x(I.image)===!1;let $e=E(I.image,wt,!1,u);$e=Re(I,$e);const Kt=x($e)||a,ft=s.convert(I.format,I.colorSpace);let gt=s.convert(I.type),et=L(I.internalFormat,ft,gt,I.colorSpace,I.isVideoTexture);te(we,I,Kt);let lt;const It=I.mipmaps,ae=a&&I.isVideoTexture!==!0&&et!==QI,dt=De.__version===void 0||ne===!0,Xe=C(I,$e,Kt);if(I.isDepthTexture)et=n.DEPTH_COMPONENT,a?I.type===xs?et=n.DEPTH_COMPONENT32F:I.type===bo?et=n.DEPTH_COMPONENT24:I.type===pa?et=n.DEPTH24_STENCIL8:et=n.DEPTH_COMPONENT16:I.type===xs&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),I.format===ha&&et===n.DEPTH_COMPONENT&&I.type!==$y&&I.type!==bo&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),I.type=bo,gt=s.convert(I.type)),I.format===Pl&&et===n.DEPTH_COMPONENT&&(et=n.DEPTH_STENCIL,I.type!==pa&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),I.type=pa,gt=s.convert(I.type))),dt&&(ae?t.texStorage2D(n.TEXTURE_2D,1,et,$e.width,$e.height):t.texImage2D(n.TEXTURE_2D,0,et,$e.width,$e.height,0,ft,gt,null));else if(I.isDataTexture)if(It.length>0&&Kt){ae&&dt&&t.texStorage2D(n.TEXTURE_2D,Xe,et,It[0].width,It[0].height);for(let Be=0,nt=It.length;Be>=1,nt>>=1}}else if(It.length>0&&Kt){ae&&dt&&t.texStorage2D(n.TEXTURE_2D,Xe,et,It[0].width,It[0].height);for(let Be=0,nt=It.length;Be0&&dt++,t.texStorage2D(n.TEXTURE_CUBE_MAP,dt,lt,$e[0].width,$e[0].height));for(let Be=0;Be<6;Be++)if(wt){It?t.texSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Be,0,0,0,$e[Be].width,$e[Be].height,gt,et,$e[Be].data):t.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Be,0,lt,$e[Be].width,$e[Be].height,0,gt,et,$e[Be].data);for(let nt=0;nt>pe),$e=Math.max(1,I.height>>pe);ne===n.TEXTURE_3D||ne===n.TEXTURE_2D_ARRAY?t.texImage3D(ne,pe,Ve,wt,$e,I.depth,0,De,Le,null):t.texImage2D(ne,pe,Ve,wt,$e,0,De,Le,null)}t.bindFramebuffer(n.FRAMEBUFFER,U),Ue(I)?f.framebufferTexture2DMultisampleEXT(n.FRAMEBUFFER,we,ne,r.get(ee).__webglTexture,0,fe(I)):(ne===n.TEXTURE_2D||ne>=n.TEXTURE_CUBE_MAP_POSITIVE_X&&ne<=n.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&n.framebufferTexture2D(n.FRAMEBUFFER,we,ne,r.get(ee).__webglTexture,pe),t.bindFramebuffer(n.FRAMEBUFFER,null)}function le(U,I,ee){if(n.bindRenderbuffer(n.RENDERBUFFER,U),I.depthBuffer&&!I.stencilBuffer){let we=a===!0?n.DEPTH_COMPONENT24:n.DEPTH_COMPONENT16;if(ee||Ue(I)){const ne=I.depthTexture;ne&&ne.isDepthTexture&&(ne.type===xs?we=n.DEPTH_COMPONENT32F:ne.type===bo&&(we=n.DEPTH_COMPONENT24));const pe=fe(I);Ue(I)?f.renderbufferStorageMultisampleEXT(n.RENDERBUFFER,pe,we,I.width,I.height):n.renderbufferStorageMultisample(n.RENDERBUFFER,pe,we,I.width,I.height)}else n.renderbufferStorage(n.RENDERBUFFER,we,I.width,I.height);n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.RENDERBUFFER,U)}else if(I.depthBuffer&&I.stencilBuffer){const we=fe(I);ee&&Ue(I)===!1?n.renderbufferStorageMultisample(n.RENDERBUFFER,we,n.DEPTH24_STENCIL8,I.width,I.height):Ue(I)?f.renderbufferStorageMultisampleEXT(n.RENDERBUFFER,we,n.DEPTH24_STENCIL8,I.width,I.height):n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,I.width,I.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_STENCIL_ATTACHMENT,n.RENDERBUFFER,U)}else{const we=I.isWebGLMultipleRenderTargets===!0?I.texture:[I.texture];for(let ne=0;ne0){ee.__webglFramebuffer[Le]=[];for(let Ve=0;Ve0){ee.__webglFramebuffer=[];for(let Le=0;Le0&&Ue(U)===!1){const Le=pe?I:[I];ee.__webglMultisampledFramebuffer=n.createFramebuffer(),ee.__webglColorRenderbuffer=[],t.bindFramebuffer(n.FRAMEBUFFER,ee.__webglMultisampledFramebuffer);for(let Ve=0;Ve0)for(let Ve=0;Ve0)for(let Ve=0;Ve0&&Ue(U)===!1){const I=U.isWebGLMultipleRenderTargets?U.texture:[U.texture],ee=U.width,we=U.height;let ne=n.COLOR_BUFFER_BIT;const pe=[],De=U.stencilBuffer?n.DEPTH_STENCIL_ATTACHMENT:n.DEPTH_ATTACHMENT,Le=r.get(U),Ve=U.isWebGLMultipleRenderTargets===!0;if(Ve)for(let ot=0;ot0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&I.__useRenderToTexture!==!1}function Pe(U){const I=o.render.frame;h.get(U)!==I&&(h.set(U,I),U.update())}function Re(U,I){const ee=U.colorSpace,we=U.format,ne=U.type;return U.isCompressedTexture===!0||U.isVideoTexture===!0||U.format===L1||ee!==er&&ee!==ti&&(tn.getTransfer(ee)===bn?a===!1?e.has("EXT_sRGB")===!0&&we===ei?(U.format=L1,U.minFilter=Cr,U.generateMipmaps=!1):I=tO.sRGBToLinear(I):(we!==ei||ne!==To)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",ee)),I}this.allocateTextureUnit=Z,this.resetTextureUnits=B,this.setTexture2D=ue,this.setTexture2DArray=xe,this.setTexture3D=Ce,this.setTextureCube=me,this.rebindTextures=oe,this.setupRenderTarget=ge,this.updateRenderTargetMipmap=Ee,this.updateMultisampleRenderTarget=Te,this.setupDepthRenderbuffer=G,this.setupFrameBufferTexture=Ye,this.useMultisampledRTT=Ue}function lAt(n,e,t){const r=t.isWebGL2;function i(s,o=ti){let a;const l=tn.getTransfer(o);if(s===To)return n.UNSIGNED_BYTE;if(s===YI)return n.UNSIGNED_SHORT_4_4_4_4;if(s===$I)return n.UNSIGNED_SHORT_5_5_5_1;if(s===MSt)return n.BYTE;if(s===NSt)return n.SHORT;if(s===$y)return n.UNSIGNED_SHORT;if(s===qI)return n.INT;if(s===bo)return n.UNSIGNED_INT;if(s===xs)return n.FLOAT;if(s===_d)return r?n.HALF_FLOAT:(a=e.get("OES_texture_half_float"),a!==null?a.HALF_FLOAT_OES:null);if(s===kSt)return n.ALPHA;if(s===ei)return n.RGBA;if(s===ISt)return n.LUMINANCE;if(s===OSt)return n.LUMINANCE_ALPHA;if(s===ha)return n.DEPTH_COMPONENT;if(s===Pl)return n.DEPTH_STENCIL;if(s===L1)return a=e.get("EXT_sRGB"),a!==null?a.SRGB_ALPHA_EXT:null;if(s===DSt)return n.RED;if(s===WI)return n.RED_INTEGER;if(s===LSt)return n.RG;if(s===KI)return n.RG_INTEGER;if(s===jI)return n.RGBA_INTEGER;if(s===Q0||s===X0||s===Z0||s===J0)if(l===bn)if(a=e.get("WEBGL_compressed_texture_s3tc_srgb"),a!==null){if(s===Q0)return a.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(s===X0)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(s===Z0)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(s===J0)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(a=e.get("WEBGL_compressed_texture_s3tc"),a!==null){if(s===Q0)return a.COMPRESSED_RGB_S3TC_DXT1_EXT;if(s===X0)return a.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(s===Z0)return a.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(s===J0)return a.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(s===RA||s===MA||s===NA||s===kA)if(a=e.get("WEBGL_compressed_texture_pvrtc"),a!==null){if(s===RA)return a.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(s===MA)return a.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(s===NA)return a.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(s===kA)return a.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(s===QI)return a=e.get("WEBGL_compressed_texture_etc1"),a!==null?a.COMPRESSED_RGB_ETC1_WEBGL:null;if(s===IA||s===OA)if(a=e.get("WEBGL_compressed_texture_etc"),a!==null){if(s===IA)return l===bn?a.COMPRESSED_SRGB8_ETC2:a.COMPRESSED_RGB8_ETC2;if(s===OA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:a.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(s===DA||s===LA||s===PA||s===FA||s===UA||s===BA||s===GA||s===zA||s===VA||s===HA||s===qA||s===YA||s===$A||s===WA)if(a=e.get("WEBGL_compressed_texture_astc"),a!==null){if(s===DA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:a.COMPRESSED_RGBA_ASTC_4x4_KHR;if(s===LA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:a.COMPRESSED_RGBA_ASTC_5x4_KHR;if(s===PA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:a.COMPRESSED_RGBA_ASTC_5x5_KHR;if(s===FA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:a.COMPRESSED_RGBA_ASTC_6x5_KHR;if(s===UA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:a.COMPRESSED_RGBA_ASTC_6x6_KHR;if(s===BA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:a.COMPRESSED_RGBA_ASTC_8x5_KHR;if(s===GA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:a.COMPRESSED_RGBA_ASTC_8x6_KHR;if(s===zA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:a.COMPRESSED_RGBA_ASTC_8x8_KHR;if(s===VA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:a.COMPRESSED_RGBA_ASTC_10x5_KHR;if(s===HA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:a.COMPRESSED_RGBA_ASTC_10x6_KHR;if(s===qA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:a.COMPRESSED_RGBA_ASTC_10x8_KHR;if(s===YA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:a.COMPRESSED_RGBA_ASTC_10x10_KHR;if(s===$A)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:a.COMPRESSED_RGBA_ASTC_12x10_KHR;if(s===WA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:a.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(s===eb||s===KA||s===jA)if(a=e.get("EXT_texture_compression_bptc"),a!==null){if(s===eb)return l===bn?a.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:a.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(s===KA)return a.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(s===jA)return a.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(s===PSt||s===QA||s===XA||s===ZA)if(a=e.get("EXT_texture_compression_rgtc"),a!==null){if(s===eb)return a.COMPRESSED_RED_RGTC1_EXT;if(s===QA)return a.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(s===XA)return a.COMPRESSED_RED_GREEN_RGTC2_EXT;if(s===ZA)return a.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return s===pa?r?n.UNSIGNED_INT_24_8:(a=e.get("WEBGL_depth_texture"),a!==null?a.UNSIGNED_INT_24_8_WEBGL:null):n[s]!==void 0?n[s]:null}return{convert:i}}class cAt extends gr{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}class oa extends wn{constructor(){super(),this.isGroup=!0,this.type="Group"}}const dAt={type:"move"};class Tb{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new oa,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return this._targetRay===null&&(this._targetRay=new oa,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new he,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new he),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new oa,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new he,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new he),this._grip}dispatchEvent(e){return this._targetRay!==null&&this._targetRay.dispatchEvent(e),this._grip!==null&&this._grip.dispatchEvent(e),this._hand!==null&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const t=this._hand;if(t)for(const r of e.hand.values())this._getHandJoint(t,r)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(e,t,r){let i=null,s=null,o=null;const a=this._targetRay,l=this._grip,d=this._hand;if(e&&t.session.visibilityState!=="visible-blurred"){if(d&&e.hand){o=!0;for(const v of e.hand.values()){const b=t.getJointPose(v,r),_=this._getHandJoint(d,v);b!==null&&(_.matrix.fromArray(b.transform.matrix),_.matrix.decompose(_.position,_.rotation,_.scale),_.matrixWorldNeedsUpdate=!0,_.jointRadius=b.radius),_.visible=b!==null}const u=d.joints["index-finger-tip"],m=d.joints["thumb-tip"],f=u.position.distanceTo(m.position),g=.02,h=.005;d.inputState.pinching&&f>g+h?(d.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!d.inputState.pinching&&f<=g-h&&(d.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else l!==null&&e.gripSpace&&(s=t.getPose(e.gripSpace,r),s!==null&&(l.matrix.fromArray(s.transform.matrix),l.matrix.decompose(l.position,l.rotation,l.scale),l.matrixWorldNeedsUpdate=!0,s.linearVelocity?(l.hasLinearVelocity=!0,l.linearVelocity.copy(s.linearVelocity)):l.hasLinearVelocity=!1,s.angularVelocity?(l.hasAngularVelocity=!0,l.angularVelocity.copy(s.angularVelocity)):l.hasAngularVelocity=!1));a!==null&&(i=t.getPose(e.targetRaySpace,r),i===null&&s!==null&&(i=s),i!==null&&(a.matrix.fromArray(i.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),a.matrixWorldNeedsUpdate=!0,i.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(i.linearVelocity)):a.hasLinearVelocity=!1,i.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(i.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(dAt)))}return a!==null&&(a.visible=i!==null),l!==null&&(l.visible=s!==null),d!==null&&(d.visible=o!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){const r=new oa;r.matrixAutoUpdate=!1,r.visible=!1,e.joints[t.jointName]=r,e.add(r)}return e.joints[t.jointName]}}class uAt extends sc{constructor(e,t){super();const r=this;let i=null,s=1,o=null,a="local-floor",l=1,d=null,u=null,m=null,f=null,g=null,h=null;const v=t.getContextAttributes();let b=null,_=null;const y=[],E=[],x=new $t;let A=null;const w=new gr;w.layers.enable(1),w.viewport=new mn;const N=new gr;N.layers.enable(2),N.viewport=new mn;const L=[w,N],C=new cAt;C.layers.enable(1),C.layers.enable(2);let k=null,H=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(me){let Ae=y[me];return Ae===void 0&&(Ae=new Tb,y[me]=Ae),Ae.getTargetRaySpace()},this.getControllerGrip=function(me){let Ae=y[me];return Ae===void 0&&(Ae=new Tb,y[me]=Ae),Ae.getGripSpace()},this.getHand=function(me){let Ae=y[me];return Ae===void 0&&(Ae=new Tb,y[me]=Ae),Ae.getHandSpace()};function q(me){const Ae=E.indexOf(me.inputSource);if(Ae===-1)return;const Fe=y[Ae];Fe!==void 0&&(Fe.update(me.inputSource,me.frame,d||o),Fe.dispatchEvent({type:me.type,data:me.inputSource}))}function ie(){i.removeEventListener("select",q),i.removeEventListener("selectstart",q),i.removeEventListener("selectend",q),i.removeEventListener("squeeze",q),i.removeEventListener("squeezestart",q),i.removeEventListener("squeezeend",q),i.removeEventListener("end",ie),i.removeEventListener("inputsourceschange",D);for(let me=0;me=0&&(E[ze]=null,y[ze].disconnect(Fe))}for(let Ae=0;Ae=E.length){E.push(Fe),ze=ye;break}else if(E[ye]===null){E[ye]=Fe,ze=ye;break}if(ze===-1)break}const te=y[ze];te&&te.connect(Fe)}}const $=new he,K=new he;function B(me,Ae,Fe){$.setFromMatrixPosition(Ae.matrixWorld),K.setFromMatrixPosition(Fe.matrixWorld);const ze=$.distanceTo(K),te=Ae.projectionMatrix.elements,ye=Fe.projectionMatrix.elements,Se=te[14]/(te[10]-1),Oe=te[14]/(te[10]+1),Ye=(te[9]+1)/te[5],le=(te[9]-1)/te[5],V=(te[8]-1)/te[0],G=(ye[8]+1)/ye[0],oe=Se*V,ge=Se*G,Ee=ze/(-V+G),Te=Ee*-V;Ae.matrixWorld.decompose(me.position,me.quaternion,me.scale),me.translateX(Te),me.translateZ(Ee),me.matrixWorld.compose(me.position,me.quaternion,me.scale),me.matrixWorldInverse.copy(me.matrixWorld).invert();const fe=Se+Ee,Ue=Oe+Ee,Pe=oe-Te,Re=ge+(ze-Te),U=Ye*Oe/Ue*fe,I=le*Oe/Ue*fe;me.projectionMatrix.makePerspective(Pe,Re,U,I,fe,Ue),me.projectionMatrixInverse.copy(me.projectionMatrix).invert()}function Z(me,Ae){Ae===null?me.matrixWorld.copy(me.matrix):me.matrixWorld.multiplyMatrices(Ae.matrixWorld,me.matrix),me.matrixWorldInverse.copy(me.matrixWorld).invert()}this.updateCamera=function(me){if(i===null)return;C.near=N.near=w.near=me.near,C.far=N.far=w.far=me.far,(k!==C.near||H!==C.far)&&(i.updateRenderState({depthNear:C.near,depthFar:C.far}),k=C.near,H=C.far);const Ae=me.parent,Fe=C.cameras;Z(C,Ae);for(let ze=0;ze0&&(b.alphaTest.value=_.alphaTest);const y=e.get(_).envMap;if(y&&(b.envMap.value=y,b.flipEnvMap.value=y.isCubeTexture&&y.isRenderTargetTexture===!1?-1:1,b.reflectivity.value=_.reflectivity,b.ior.value=_.ior,b.refractionRatio.value=_.refractionRatio),_.lightMap){b.lightMap.value=_.lightMap;const E=n._useLegacyLights===!0?Math.PI:1;b.lightMapIntensity.value=_.lightMapIntensity*E,t(_.lightMap,b.lightMapTransform)}_.aoMap&&(b.aoMap.value=_.aoMap,b.aoMapIntensity.value=_.aoMapIntensity,t(_.aoMap,b.aoMapTransform))}function o(b,_){b.diffuse.value.copy(_.color),b.opacity.value=_.opacity,_.map&&(b.map.value=_.map,t(_.map,b.mapTransform))}function a(b,_){b.dashSize.value=_.dashSize,b.totalSize.value=_.dashSize+_.gapSize,b.scale.value=_.scale}function l(b,_,y,E){b.diffuse.value.copy(_.color),b.opacity.value=_.opacity,b.size.value=_.size*y,b.scale.value=E*.5,_.map&&(b.map.value=_.map,t(_.map,b.uvTransform)),_.alphaMap&&(b.alphaMap.value=_.alphaMap,t(_.alphaMap,b.alphaMapTransform)),_.alphaTest>0&&(b.alphaTest.value=_.alphaTest)}function d(b,_){b.diffuse.value.copy(_.color),b.opacity.value=_.opacity,b.rotation.value=_.rotation,_.map&&(b.map.value=_.map,t(_.map,b.mapTransform)),_.alphaMap&&(b.alphaMap.value=_.alphaMap,t(_.alphaMap,b.alphaMapTransform)),_.alphaTest>0&&(b.alphaTest.value=_.alphaTest)}function u(b,_){b.specular.value.copy(_.specular),b.shininess.value=Math.max(_.shininess,1e-4)}function m(b,_){_.gradientMap&&(b.gradientMap.value=_.gradientMap)}function f(b,_){b.metalness.value=_.metalness,_.metalnessMap&&(b.metalnessMap.value=_.metalnessMap,t(_.metalnessMap,b.metalnessMapTransform)),b.roughness.value=_.roughness,_.roughnessMap&&(b.roughnessMap.value=_.roughnessMap,t(_.roughnessMap,b.roughnessMapTransform)),e.get(_).envMap&&(b.envMapIntensity.value=_.envMapIntensity)}function g(b,_,y){b.ior.value=_.ior,_.sheen>0&&(b.sheenColor.value.copy(_.sheenColor).multiplyScalar(_.sheen),b.sheenRoughness.value=_.sheenRoughness,_.sheenColorMap&&(b.sheenColorMap.value=_.sheenColorMap,t(_.sheenColorMap,b.sheenColorMapTransform)),_.sheenRoughnessMap&&(b.sheenRoughnessMap.value=_.sheenRoughnessMap,t(_.sheenRoughnessMap,b.sheenRoughnessMapTransform))),_.clearcoat>0&&(b.clearcoat.value=_.clearcoat,b.clearcoatRoughness.value=_.clearcoatRoughness,_.clearcoatMap&&(b.clearcoatMap.value=_.clearcoatMap,t(_.clearcoatMap,b.clearcoatMapTransform)),_.clearcoatRoughnessMap&&(b.clearcoatRoughnessMap.value=_.clearcoatRoughnessMap,t(_.clearcoatRoughnessMap,b.clearcoatRoughnessMapTransform)),_.clearcoatNormalMap&&(b.clearcoatNormalMap.value=_.clearcoatNormalMap,t(_.clearcoatNormalMap,b.clearcoatNormalMapTransform),b.clearcoatNormalScale.value.copy(_.clearcoatNormalScale),_.side===kr&&b.clearcoatNormalScale.value.negate())),_.iridescence>0&&(b.iridescence.value=_.iridescence,b.iridescenceIOR.value=_.iridescenceIOR,b.iridescenceThicknessMinimum.value=_.iridescenceThicknessRange[0],b.iridescenceThicknessMaximum.value=_.iridescenceThicknessRange[1],_.iridescenceMap&&(b.iridescenceMap.value=_.iridescenceMap,t(_.iridescenceMap,b.iridescenceMapTransform)),_.iridescenceThicknessMap&&(b.iridescenceThicknessMap.value=_.iridescenceThicknessMap,t(_.iridescenceThicknessMap,b.iridescenceThicknessMapTransform))),_.transmission>0&&(b.transmission.value=_.transmission,b.transmissionSamplerMap.value=y.texture,b.transmissionSamplerSize.value.set(y.width,y.height),_.transmissionMap&&(b.transmissionMap.value=_.transmissionMap,t(_.transmissionMap,b.transmissionMapTransform)),b.thickness.value=_.thickness,_.thicknessMap&&(b.thicknessMap.value=_.thicknessMap,t(_.thicknessMap,b.thicknessMapTransform)),b.attenuationDistance.value=_.attenuationDistance,b.attenuationColor.value.copy(_.attenuationColor)),_.anisotropy>0&&(b.anisotropyVector.value.set(_.anisotropy*Math.cos(_.anisotropyRotation),_.anisotropy*Math.sin(_.anisotropyRotation)),_.anisotropyMap&&(b.anisotropyMap.value=_.anisotropyMap,t(_.anisotropyMap,b.anisotropyMapTransform))),b.specularIntensity.value=_.specularIntensity,b.specularColor.value.copy(_.specularColor),_.specularColorMap&&(b.specularColorMap.value=_.specularColorMap,t(_.specularColorMap,b.specularColorMapTransform)),_.specularIntensityMap&&(b.specularIntensityMap.value=_.specularIntensityMap,t(_.specularIntensityMap,b.specularIntensityMapTransform))}function h(b,_){_.matcap&&(b.matcap.value=_.matcap)}function v(b,_){const y=e.get(_).light;b.referencePosition.value.setFromMatrixPosition(y.matrixWorld),b.nearDistance.value=y.shadow.camera.near,b.farDistance.value=y.shadow.camera.far}return{refreshFogUniforms:r,refreshMaterialUniforms:i}}function hAt(n,e,t,r){let i={},s={},o=[];const a=t.isWebGL2?n.getParameter(n.MAX_UNIFORM_BUFFER_BINDINGS):0;function l(y,E){const x=E.program;r.uniformBlockBinding(y,x)}function d(y,E){let x=i[y.id];x===void 0&&(h(y),x=u(y),i[y.id]=x,y.addEventListener("dispose",b));const A=E.program;r.updateUBOMapping(y,A);const w=e.render.frame;s[y.id]!==w&&(f(y),s[y.id]=w)}function u(y){const E=m();y.__bindingPointIndex=E;const x=n.createBuffer(),A=y.__size,w=y.usage;return n.bindBuffer(n.UNIFORM_BUFFER,x),n.bufferData(n.UNIFORM_BUFFER,A,w),n.bindBuffer(n.UNIFORM_BUFFER,null),n.bindBufferBase(n.UNIFORM_BUFFER,E,x),x}function m(){for(let y=0;y0){w=x%A;const q=A-w;w!==0&&q-k.boundary<0&&(x+=A-w,C.__offset=x)}x+=k.storage}return w=x%A,w>0&&(x+=A-w),y.__size=x,y.__cache={},this}function v(y){const E={boundary:0,storage:0};return typeof y=="number"?(E.boundary=4,E.storage=4):y.isVector2?(E.boundary=8,E.storage=8):y.isVector3||y.isColor?(E.boundary=16,E.storage=12):y.isVector4?(E.boundary=16,E.storage=16):y.isMatrix3?(E.boundary=48,E.storage=48):y.isMatrix4?(E.boundary=64,E.storage=64):y.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",y),E}function b(y){const E=y.target;E.removeEventListener("dispose",b);const x=o.indexOf(E.__bindingPointIndex);o.splice(x,1),n.deleteBuffer(i[E.id]),delete i[E.id],delete s[E.id]}function _(){for(const y in i)n.deleteBuffer(i[y]);o=[],i={},s={}}return{bind:l,update:d,dispose:_}}class bO{constructor(e={}){const{canvas:t=d2t(),context:r=null,depth:i=!0,stencil:s=!0,alpha:o=!1,antialias:a=!1,premultipliedAlpha:l=!0,preserveDrawingBuffer:d=!1,powerPreference:u="default",failIfMajorPerformanceCaveat:m=!1}=e;this.isWebGLRenderer=!0;let f;r!==null?f=r.getContextAttributes().alpha:f=o;const g=new Uint32Array(4),h=new Int32Array(4);let v=null,b=null;const _=[],y=[];this.domElement=t,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=Mn,this._useLegacyLights=!1,this.toneMapping=xo,this.toneMappingExposure=1;const E=this;let x=!1,A=0,w=0,N=null,L=-1,C=null;const k=new mn,H=new mn;let q=null;const ie=new Nt(0);let D=0,$=t.width,K=t.height,B=1,Z=null,ce=null;const ue=new mn(0,0,$,K),xe=new mn(0,0,$,K);let Ce=!1;const me=new Qy;let Ae=!1,Fe=!1,ze=null;const te=new Ht,ye=new $t,Se=new he,Oe={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function Ye(){return N===null?B:1}let le=r;function V(z,be){for(let Ne=0;Ne{function ut(){if(ke.forEach(function(_t){Te.get(_t).currentProgram.isReady()&&ke.delete(_t)}),ke.size===0){Me(z);return}setTimeout(ut,10)}G.get("KHR_parallel_shader_compile")!==null?ut():setTimeout(ut,10)})};let jt=null;function Un(z){jt&&jt(z)}function tr(){nr.stop()}function un(){nr.start()}const nr=new uO;nr.setAnimationLoop(Un),typeof self<"u"&&nr.setContext(self),this.setAnimationLoop=function(z){jt=z,lt.setAnimationLoop(z),z===null?nr.stop():nr.start()},lt.addEventListener("sessionstart",tr),lt.addEventListener("sessionend",un),this.render=function(z,be){if(be!==void 0&&be.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(x===!0)return;z.matrixWorldAutoUpdate===!0&&z.updateMatrixWorld(),be.parent===null&&be.matrixWorldAutoUpdate===!0&&be.updateMatrixWorld(),lt.enabled===!0&<.isPresenting===!0&&(lt.cameraAutoUpdate===!0&<.updateCamera(be),be=lt.getCamera()),z.isScene===!0&&z.onBeforeRender(E,z,be,N),b=pe.get(z,y.length),b.init(),y.push(b),te.multiplyMatrices(be.projectionMatrix,be.matrixWorldInverse),me.setFromProjectionMatrix(te),Fe=this.localClippingEnabled,Ae=De.init(this.clippingPlanes,Fe),v=ne.get(z,_.length),v.init(),_.push(v),bi(z,be,0,E.sortObjects),v.finish(),E.sortObjects===!0&&v.sort(Z,ce),this.info.render.frame++,Ae===!0&&De.beginShadows();const Ne=b.state.shadowsArray;if(Le.render(Ne,z,be),Ae===!0&&De.endShadows(),this.info.autoReset===!0&&this.info.reset(),Ve.render(v,z),b.setupLights(E._useLegacyLights),be.isArrayCamera){const ke=be.cameras;for(let Me=0,ut=ke.length;Me0?b=y[y.length-1]:b=null,_.pop(),_.length>0?v=_[_.length-1]:v=null};function bi(z,be,Ne,ke){if(z.visible===!1)return;if(z.layers.test(be.layers)){if(z.isGroup)Ne=z.renderOrder;else if(z.isLOD)z.autoUpdate===!0&&z.update(be);else if(z.isLight)b.pushLight(z),z.castShadow&&b.pushShadow(z);else if(z.isSprite){if(!z.frustumCulled||me.intersectsSprite(z)){ke&&Se.setFromMatrixPosition(z.matrixWorld).applyMatrix4(te);const _t=I.update(z),Ct=z.material;Ct.visible&&v.push(z,_t,Ct,Ne,Se.z,null)}}else if((z.isMesh||z.isLine||z.isPoints)&&(!z.frustumCulled||me.intersectsObject(z))){const _t=I.update(z),Ct=z.material;if(ke&&(z.boundingSphere!==void 0?(z.boundingSphere===null&&z.computeBoundingSphere(),Se.copy(z.boundingSphere.center)):(_t.boundingSphere===null&&_t.computeBoundingSphere(),Se.copy(_t.boundingSphere.center)),Se.applyMatrix4(z.matrixWorld).applyMatrix4(te)),Array.isArray(Ct)){const Mt=_t.groups;for(let Bt=0,Ot=Mt.length;Bt0&&mE(Me,ut,be,Ne),ke&&ge.viewport(k.copy(ke)),Me.length>0&&uc(Me,be,Ne),ut.length>0&&uc(ut,be,Ne),_t.length>0&&uc(_t,be,Ne),ge.buffers.depth.setTest(!0),ge.buffers.depth.setMask(!0),ge.buffers.color.setMask(!0),ge.setPolygonOffset(!1)}function mE(z,be,Ne,ke){if((Ne.isScene===!0?Ne.overrideMaterial:null)!==null)return;const ut=oe.isWebGL2;ze===null&&(ze=new Ta(1,1,{generateMipmaps:!0,type:G.has("EXT_color_buffer_half_float")?_d:To,minFilter:xa,samples:ut?4:0})),E.getDrawingBufferSize(ye),ut?ze.setSize(ye.x,ye.y):ze.setSize(ah(ye.x),ah(ye.y));const _t=E.getRenderTarget();E.setRenderTarget(ze),E.getClearColor(ie),D=E.getClearAlpha(),D<1&&E.setClearColor(16777215,.5),E.clear();const Ct=E.toneMapping;E.toneMapping=xo,uc(z,Ne,ke),fe.updateMultisampleRenderTarget(ze),fe.updateRenderTargetMipmap(ze);let Mt=!1;for(let Bt=0,Ot=be.length;Bt0),Lt=!!Ne.morphAttributes.position,An=!!Ne.morphAttributes.normal,Sr=!!Ne.morphAttributes.color;let Bn=xo;ke.toneMapped&&(N===null||N.isXRRenderTarget===!0)&&(Bn=E.toneMapping);const Li=Ne.morphAttributes.position||Ne.morphAttributes.normal||Ne.morphAttributes.color,vn=Li!==void 0?Li.length:0,zt=Te.get(ke),Gd=b.state.lights;if(Ae===!0&&(Fe===!0||z!==C)){const Dr=z===C&&ke.id===L;De.setState(ke,z,Dr)}let Sn=!1;ke.version===zt.__version?(zt.needsLights&&zt.lightsStateVersion!==Gd.state.version||zt.outputColorSpace!==Ct||Me.isBatchedMesh&&zt.batching===!1||!Me.isBatchedMesh&&zt.batching===!0||Me.isInstancedMesh&&zt.instancing===!1||!Me.isInstancedMesh&&zt.instancing===!0||Me.isSkinnedMesh&&zt.skinning===!1||!Me.isSkinnedMesh&&zt.skinning===!0||Me.isInstancedMesh&&zt.instancingColor===!0&&Me.instanceColor===null||Me.isInstancedMesh&&zt.instancingColor===!1&&Me.instanceColor!==null||zt.envMap!==Mt||ke.fog===!0&&zt.fog!==ut||zt.numClippingPlanes!==void 0&&(zt.numClippingPlanes!==De.numPlanes||zt.numIntersection!==De.numIntersection)||zt.vertexAlphas!==Bt||zt.vertexTangents!==Ot||zt.morphTargets!==Lt||zt.morphNormals!==An||zt.morphColors!==Sr||zt.toneMapping!==Bn||oe.isWebGL2===!0&&zt.morphTargetsCount!==vn)&&(Sn=!0):(Sn=!0,zt.__version=ke.version);let Hs=zt.currentProgram;Sn===!0&&(Hs=pc(ke,be,Me));let _m=!1,Ia=!1,zd=!1;const Kn=Hs.getUniforms(),qs=zt.uniforms;if(ge.useProgram(Hs.program)&&(_m=!0,Ia=!0,zd=!0),ke.id!==L&&(L=ke.id,Ia=!0),_m||C!==z){Kn.setValue(le,"projectionMatrix",z.projectionMatrix),Kn.setValue(le,"viewMatrix",z.matrixWorldInverse);const Dr=Kn.map.cameraPosition;Dr!==void 0&&Dr.setValue(le,Se.setFromMatrixPosition(z.matrixWorld)),oe.logarithmicDepthBuffer&&Kn.setValue(le,"logDepthBufFC",2/(Math.log(z.far+1)/Math.LN2)),(ke.isMeshPhongMaterial||ke.isMeshToonMaterial||ke.isMeshLambertMaterial||ke.isMeshBasicMaterial||ke.isMeshStandardMaterial||ke.isShaderMaterial)&&Kn.setValue(le,"isOrthographic",z.isOrthographicCamera===!0),C!==z&&(C=z,Ia=!0,zd=!0)}if(Me.isSkinnedMesh){Kn.setOptional(le,Me,"bindMatrix"),Kn.setOptional(le,Me,"bindMatrixInverse");const Dr=Me.skeleton;Dr&&(oe.floatVertexTextures?(Dr.boneTexture===null&&Dr.computeBoneTexture(),Kn.setValue(le,"boneTexture",Dr.boneTexture,fe)):console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."))}Me.isBatchedMesh&&(Kn.setOptional(le,Me,"batchingTexture"),Kn.setValue(le,"batchingTexture",Me._matricesTexture,fe));const Vd=Ne.morphAttributes;if((Vd.position!==void 0||Vd.normal!==void 0||Vd.color!==void 0&&oe.isWebGL2===!0)&&ot.update(Me,Ne,Hs),(Ia||zt.receiveShadow!==Me.receiveShadow)&&(zt.receiveShadow=Me.receiveShadow,Kn.setValue(le,"receiveShadow",Me.receiveShadow)),ke.isMeshGouraudMaterial&&ke.envMap!==null&&(qs.envMap.value=Mt,qs.flipEnvMap.value=Mt.isCubeTexture&&Mt.isRenderTargetTexture===!1?-1:1),Ia&&(Kn.setValue(le,"toneMappingExposure",E.toneMappingExposure),zt.needsLights&&gE(qs,zd),ut&&ke.fog===!0&&we.refreshFogUniforms(qs,ut),we.refreshMaterialUniforms(qs,ke,B,K,ze),fp.upload(le,fm(zt),qs,fe)),ke.isShaderMaterial&&ke.uniformsNeedUpdate===!0&&(fp.upload(le,fm(zt),qs,fe),ke.uniformsNeedUpdate=!1),ke.isSpriteMaterial&&Kn.setValue(le,"center",Me.center),Kn.setValue(le,"modelViewMatrix",Me.modelViewMatrix),Kn.setValue(le,"normalMatrix",Me.normalMatrix),Kn.setValue(le,"modelMatrix",Me.matrixWorld),ke.isShaderMaterial||ke.isRawShaderMaterial){const Dr=ke.uniformsGroups;for(let Hd=0,bE=Dr.length;Hd0&&fe.useMultisampledRTT(z)===!1?Me=Te.get(z).__webglMultisampledFramebuffer:Array.isArray(Ot)?Me=Ot[Ne]:Me=Ot,k.copy(z.viewport),H.copy(z.scissor),q=z.scissorTest}else k.copy(ue).multiplyScalar(B).floor(),H.copy(xe).multiplyScalar(B).floor(),q=Ce;if(ge.bindFramebuffer(le.FRAMEBUFFER,Me)&&oe.drawBuffers&&ke&&ge.drawBuffers(z,Me),ge.viewport(k),ge.scissor(H),ge.setScissorTest(q),ut){const Mt=Te.get(z.texture);le.framebufferTexture2D(le.FRAMEBUFFER,le.COLOR_ATTACHMENT0,le.TEXTURE_CUBE_MAP_POSITIVE_X+be,Mt.__webglTexture,Ne)}else if(_t){const Mt=Te.get(z.texture),Bt=be||0;le.framebufferTextureLayer(le.FRAMEBUFFER,le.COLOR_ATTACHMENT0,Mt.__webglTexture,Ne||0,Bt)}L=-1},this.readRenderTargetPixels=function(z,be,Ne,ke,Me,ut,_t){if(!(z&&z.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let Ct=Te.get(z).__webglFramebuffer;if(z.isWebGLCubeRenderTarget&&_t!==void 0&&(Ct=Ct[_t]),Ct){ge.bindFramebuffer(le.FRAMEBUFFER,Ct);try{const Mt=z.texture,Bt=Mt.format,Ot=Mt.type;if(Bt!==ei&&Kt.convert(Bt)!==le.getParameter(le.IMPLEMENTATION_COLOR_READ_FORMAT)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}const Lt=Ot===_d&&(G.has("EXT_color_buffer_half_float")||oe.isWebGL2&&G.has("EXT_color_buffer_float"));if(Ot!==To&&Kt.convert(Ot)!==le.getParameter(le.IMPLEMENTATION_COLOR_READ_TYPE)&&!(Ot===xs&&(oe.isWebGL2||G.has("OES_texture_float")||G.has("WEBGL_color_buffer_float")))&&!Lt){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}be>=0&&be<=z.width-ke&&Ne>=0&&Ne<=z.height-Me&&le.readPixels(be,Ne,ke,Me,Kt.convert(Bt),Kt.convert(Ot),ut)}finally{const Mt=N!==null?Te.get(N).__webglFramebuffer:null;ge.bindFramebuffer(le.FRAMEBUFFER,Mt)}}},this.copyFramebufferToTexture=function(z,be,Ne=0){const ke=Math.pow(2,-Ne),Me=Math.floor(be.image.width*ke),ut=Math.floor(be.image.height*ke);fe.setTexture2D(be,0),le.copyTexSubImage2D(le.TEXTURE_2D,Ne,0,0,z.x,z.y,Me,ut),ge.unbindTexture()},this.copyTextureToTexture=function(z,be,Ne,ke=0){const Me=be.image.width,ut=be.image.height,_t=Kt.convert(Ne.format),Ct=Kt.convert(Ne.type);fe.setTexture2D(Ne,0),le.pixelStorei(le.UNPACK_FLIP_Y_WEBGL,Ne.flipY),le.pixelStorei(le.UNPACK_PREMULTIPLY_ALPHA_WEBGL,Ne.premultiplyAlpha),le.pixelStorei(le.UNPACK_ALIGNMENT,Ne.unpackAlignment),be.isDataTexture?le.texSubImage2D(le.TEXTURE_2D,ke,z.x,z.y,Me,ut,_t,Ct,be.image.data):be.isCompressedTexture?le.compressedTexSubImage2D(le.TEXTURE_2D,ke,z.x,z.y,be.mipmaps[0].width,be.mipmaps[0].height,_t,be.mipmaps[0].data):le.texSubImage2D(le.TEXTURE_2D,ke,z.x,z.y,_t,Ct,be.image),ke===0&&Ne.generateMipmaps&&le.generateMipmap(le.TEXTURE_2D),ge.unbindTexture()},this.copyTextureToTexture3D=function(z,be,Ne,ke,Me=0){if(E.isWebGL1Renderer){console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");return}const ut=z.max.x-z.min.x+1,_t=z.max.y-z.min.y+1,Ct=z.max.z-z.min.z+1,Mt=Kt.convert(ke.format),Bt=Kt.convert(ke.type);let Ot;if(ke.isData3DTexture)fe.setTexture3D(ke,0),Ot=le.TEXTURE_3D;else if(ke.isDataArrayTexture)fe.setTexture2DArray(ke,0),Ot=le.TEXTURE_2D_ARRAY;else{console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");return}le.pixelStorei(le.UNPACK_FLIP_Y_WEBGL,ke.flipY),le.pixelStorei(le.UNPACK_PREMULTIPLY_ALPHA_WEBGL,ke.premultiplyAlpha),le.pixelStorei(le.UNPACK_ALIGNMENT,ke.unpackAlignment);const Lt=le.getParameter(le.UNPACK_ROW_LENGTH),An=le.getParameter(le.UNPACK_IMAGE_HEIGHT),Sr=le.getParameter(le.UNPACK_SKIP_PIXELS),Bn=le.getParameter(le.UNPACK_SKIP_ROWS),Li=le.getParameter(le.UNPACK_SKIP_IMAGES),vn=Ne.isCompressedTexture?Ne.mipmaps[0]:Ne.image;le.pixelStorei(le.UNPACK_ROW_LENGTH,vn.width),le.pixelStorei(le.UNPACK_IMAGE_HEIGHT,vn.height),le.pixelStorei(le.UNPACK_SKIP_PIXELS,z.min.x),le.pixelStorei(le.UNPACK_SKIP_ROWS,z.min.y),le.pixelStorei(le.UNPACK_SKIP_IMAGES,z.min.z),Ne.isDataTexture||Ne.isData3DTexture?le.texSubImage3D(Ot,Me,be.x,be.y,be.z,ut,_t,Ct,Mt,Bt,vn.data):Ne.isCompressedArrayTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),le.compressedTexSubImage3D(Ot,Me,be.x,be.y,be.z,ut,_t,Ct,Mt,vn.data)):le.texSubImage3D(Ot,Me,be.x,be.y,be.z,ut,_t,Ct,Mt,Bt,vn),le.pixelStorei(le.UNPACK_ROW_LENGTH,Lt),le.pixelStorei(le.UNPACK_IMAGE_HEIGHT,An),le.pixelStorei(le.UNPACK_SKIP_PIXELS,Sr),le.pixelStorei(le.UNPACK_SKIP_ROWS,Bn),le.pixelStorei(le.UNPACK_SKIP_IMAGES,Li),Me===0&&ke.generateMipmaps&&le.generateMipmap(Ot),ge.unbindTexture()},this.initTexture=function(z){z.isCubeTexture?fe.setTextureCube(z,0):z.isData3DTexture?fe.setTexture3D(z,0):z.isDataArrayTexture||z.isCompressedArrayTexture?fe.setTexture2DArray(z,0):fe.setTexture2D(z,0),ge.unbindTexture()},this.resetState=function(){A=0,w=0,N=null,ge.reset(),ft.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return Ts}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const t=this.getContext();t.drawingBufferColorSpace=e===Ky?"display-p3":"srgb",t.unpackColorSpace=tn.workingColorSpace===om?"display-p3":"srgb"}get physicallyCorrectLights(){return console.warn("THREE.WebGLRenderer: The property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead."),!this.useLegacyLights}set physicallyCorrectLights(e){console.warn("THREE.WebGLRenderer: The property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead."),this.useLegacyLights=!e}get outputEncoding(){return console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace===Mn?ma:ZI}set outputEncoding(e){console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace=e===ma?Mn:er}get useLegacyLights(){return console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights}set useLegacyLights(e){console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights=e}}class mAt extends bO{}mAt.prototype.isWebGL1Renderer=!0;class fAt extends wn{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(e,t),e.background!==null&&(this.background=e.background.clone()),e.environment!==null&&(this.environment=e.environment.clone()),e.fog!==null&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,e.overrideMaterial!==null&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const t=super.toJSON(e);return this.fog!==null&&(t.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(t.object.backgroundIntensity=this.backgroundIntensity),t}}class gAt{constructor(e,t){this.isInterleavedBuffer=!0,this.array=e,this.stride=t,this.count=e!==void 0?e.length/t:0,this.usage=D1,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.version=0,this.uuid=Ri()}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return console.warn('THREE.InterleavedBuffer: "updateRange" is deprecated and removed in r169. Use "addUpdateRange()" instead.'),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,t,r){e*=this.stride,r*=t.stride;for(let i=0,s=this.stride;il)continue;f.applyMatrix4(this.matrixWorld);const L=e.ray.origin.distanceTo(f);Le.far||t.push({distance:L,point:m.clone().applyMatrix4(this.matrixWorld),index:E,face:null,faceIndex:null,object:this})}}else{const _=Math.max(0,o.start),y=Math.min(b.count,o.start+o.count);for(let E=_,x=y-1;El)continue;f.applyMatrix4(this.matrixWorld);const w=e.ray.origin.distanceTo(f);we.far||t.push({distance:w,point:m.clone().applyMatrix4(this.matrixWorld),index:E,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const t=this.geometry.morphAttributes,r=Object.keys(t);if(r.length>0){const i=t[r[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let s=0,o=i.length;s0){const i=t[r[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let s=0,o=i.length;si.far)return;s.push({distance:d,distanceToRay:Math.sqrt(a),point:l,index:e,face:null,object:o})}}class rE extends Mi{constructor(e){super(),this.isMeshStandardMaterial=!0,this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new Nt(16777215),this.roughness=1,this.metalness=0,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Nt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Wy,this.normalScale=new $t(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapIntensity=1,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.defines={STANDARD:""},this.color.copy(e.color),this.roughness=e.roughness,this.metalness=e.metalness,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.roughnessMap=e.roughnessMap,this.metalnessMap=e.metalnessMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapIntensity=e.envMapIntensity,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class Vs extends rE{constructor(e){super(),this.isMeshPhysicalMaterial=!0,this.defines={STANDARD:"",PHYSICAL:""},this.type="MeshPhysicalMaterial",this.anisotropyRotation=0,this.anisotropyMap=null,this.clearcoatMap=null,this.clearcoatRoughness=0,this.clearcoatRoughnessMap=null,this.clearcoatNormalScale=new $t(1,1),this.clearcoatNormalMap=null,this.ior=1.5,Object.defineProperty(this,"reflectivity",{get:function(){return or(2.5*(this.ior-1)/(this.ior+1),0,1)},set:function(t){this.ior=(1+.4*t)/(1-.4*t)}}),this.iridescenceMap=null,this.iridescenceIOR=1.3,this.iridescenceThicknessRange=[100,400],this.iridescenceThicknessMap=null,this.sheenColor=new Nt(0),this.sheenColorMap=null,this.sheenRoughness=1,this.sheenRoughnessMap=null,this.transmissionMap=null,this.thickness=0,this.thicknessMap=null,this.attenuationDistance=1/0,this.attenuationColor=new Nt(1,1,1),this.specularIntensity=1,this.specularIntensityMap=null,this.specularColor=new Nt(1,1,1),this.specularColorMap=null,this._anisotropy=0,this._clearcoat=0,this._iridescence=0,this._sheen=0,this._transmission=0,this.setValues(e)}get anisotropy(){return this._anisotropy}set anisotropy(e){this._anisotropy>0!=e>0&&this.version++,this._anisotropy=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!=e>0&&this.version++,this._iridescence=e}get sheen(){return this._sheen}set sheen(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:"",PHYSICAL:""},this.anisotropy=e.anisotropy,this.anisotropyRotation=e.anisotropyRotation,this.anisotropyMap=e.anisotropyMap,this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}}class iM extends Mi{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new Nt(16777215),this.specular=new Nt(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Nt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Wy,this.normalScale=new $t(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Yy,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}function ju(n,e,t){return!n||!t&&n.constructor===e?n:typeof e.BYTES_PER_ELEMENT=="number"?new e(n):Array.prototype.slice.call(n)}function CAt(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function AAt(n){function e(i,s){return n[i]-n[s]}const t=n.length,r=new Array(t);for(let i=0;i!==t;++i)r[i]=i;return r.sort(e),r}function sM(n,e,t){const r=n.length,i=new n.constructor(r);for(let s=0,o=0;o!==r;++s){const a=t[s]*e;for(let l=0;l!==e;++l)i[o++]=n[a+l]}return i}function SO(n,e,t,r){let i=1,s=n[0];for(;s!==void 0&&s[r]===void 0;)s=n[i++];if(s===void 0)return;let o=s[r];if(o!==void 0)if(Array.isArray(o))do o=s[r],o!==void 0&&(e.push(s.time),t.push.apply(t,o)),s=n[i++];while(s!==void 0);else if(o.toArray!==void 0)do o=s[r],o!==void 0&&(e.push(s.time),o.toArray(t,t.length)),s=n[i++];while(s!==void 0);else do o=s[r],o!==void 0&&(e.push(s.time),t.push(o)),s=n[i++];while(s!==void 0)}class Fd{constructor(e,t,r,i){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=i!==void 0?i:new t.constructor(r),this.sampleValues=t,this.valueSize=r,this.settings=null,this.DefaultSettings_={}}evaluate(e){const t=this.parameterPositions;let r=this._cachedIndex,i=t[r],s=t[r-1];e:{t:{let o;n:{r:if(!(e=s)){const a=t[1];e=s)break t}o=r,r=0;break n}break e}for(;r>>1;et;)--o;if(++o,s!==0||o!==i){s>=o&&(o=Math.max(o,1),s=o-1);const a=this.getValueSize();this.times=r.slice(s,o),this.values=this.values.slice(s*a,o*a)}return this}validate(){let e=!0;const t=this.getValueSize();t-Math.floor(t)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);const r=this.times,i=this.values,s=r.length;s===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let o=null;for(let a=0;a!==s;a++){const l=r[a];if(typeof l=="number"&&isNaN(l)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,a,l),e=!1;break}if(o!==null&&o>l){console.error("THREE.KeyframeTrack: Out of order keys.",this,a,l,o),e=!1;break}o=l}if(i!==void 0&&CAt(i))for(let a=0,l=i.length;a!==l;++a){const d=i[a];if(isNaN(d)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,a,d),e=!1;break}}return e}optimize(){const e=this.times.slice(),t=this.values.slice(),r=this.getValueSize(),i=this.getInterpolation()===tb,s=e.length-1;let o=1;for(let a=1;a0){e[o]=e[s];for(let a=s*r,l=o*r,d=0;d!==r;++d)t[l+d]=t[a+d];++o}return o!==e.length?(this.times=e.slice(0,o),this.values=t.slice(0,o*r)):(this.times=e,this.values=t),this}clone(){const e=this.times.slice(),t=this.values.slice(),r=this.constructor,i=new r(this.name,e,t);return i.createInterpolant=this.createInterpolant,i}}as.prototype.TimeBufferType=Float32Array;as.prototype.ValueBufferType=Float32Array;as.prototype.DefaultInterpolation=Fl;class ac extends as{}ac.prototype.ValueTypeName="bool";ac.prototype.ValueBufferType=Array;ac.prototype.DefaultInterpolation=bd;ac.prototype.InterpolantFactoryMethodLinear=void 0;ac.prototype.InterpolantFactoryMethodSmooth=void 0;class xO extends as{}xO.prototype.ValueTypeName="color";class Gl extends as{}Gl.prototype.ValueTypeName="number";class kAt extends Fd{constructor(e,t,r,i){super(e,t,r,i)}interpolate_(e,t,r,i){const s=this.resultBuffer,o=this.sampleValues,a=this.valueSize,l=(r-t)/(i-t);let d=e*a;for(let u=d+a;d!==u;d+=4)Uo.slerpFlat(s,0,o,d-a,o,d,l);return s}}class Ca extends as{InterpolantFactoryMethodLinear(e){return new kAt(this.times,this.values,this.getValueSize(),e)}}Ca.prototype.ValueTypeName="quaternion";Ca.prototype.DefaultInterpolation=Fl;Ca.prototype.InterpolantFactoryMethodSmooth=void 0;class lc extends as{}lc.prototype.ValueTypeName="string";lc.prototype.ValueBufferType=Array;lc.prototype.DefaultInterpolation=bd;lc.prototype.InterpolantFactoryMethodLinear=void 0;lc.prototype.InterpolantFactoryMethodSmooth=void 0;class zl extends as{}zl.prototype.ValueTypeName="vector";class IAt{constructor(e,t=-1,r,i=FSt){this.name=e,this.tracks=r,this.duration=t,this.blendMode=i,this.uuid=Ri(),this.duration<0&&this.resetDuration()}static parse(e){const t=[],r=e.tracks,i=1/(e.fps||1);for(let o=0,a=r.length;o!==a;++o)t.push(DAt(r[o]).scale(i));const s=new this(e.name,e.duration,t,e.blendMode);return s.uuid=e.uuid,s}static toJSON(e){const t=[],r=e.tracks,i={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode};for(let s=0,o=r.length;s!==o;++s)t.push(as.toJSON(r[s]));return i}static CreateFromMorphTargetSequence(e,t,r,i){const s=t.length,o=[];for(let a=0;a1){const m=u[1];let f=i[m];f||(i[m]=f=[]),f.push(d)}}const o=[];for(const a in i)o.push(this.CreateFromMorphTargetSequence(a,i[a],t,r));return o}static parseAnimation(e,t){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const r=function(m,f,g,h,v){if(g.length!==0){const b=[],_=[];SO(g,b,_,h),b.length!==0&&v.push(new m(f,b,_))}},i=[],s=e.name||"default",o=e.fps||30,a=e.blendMode;let l=e.length||-1;const d=e.hierarchy||[];for(let m=0;m{t&&t(s),this.manager.itemEnd(e)},0),s;if(gs[e]!==void 0){gs[e].push({onLoad:t,onProgress:r,onError:i});return}gs[e]=[],gs[e].push({onLoad:t,onProgress:r,onError:i});const o=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),a=this.mimeType,l=this.responseType;fetch(o).then(d=>{if(d.status===200||d.status===0){if(d.status===0&&console.warn("THREE.FileLoader: HTTP Status 0 received."),typeof ReadableStream>"u"||d.body===void 0||d.body.getReader===void 0)return d;const u=gs[e],m=d.body.getReader(),f=d.headers.get("Content-Length")||d.headers.get("X-File-Size"),g=f?parseInt(f):0,h=g!==0;let v=0;const b=new ReadableStream({start(_){y();function y(){m.read().then(({done:E,value:x})=>{if(E)_.close();else{v+=x.byteLength;const A=new ProgressEvent("progress",{lengthComputable:h,loaded:v,total:g});for(let w=0,N=u.length;w{switch(l){case"arraybuffer":return d.arrayBuffer();case"blob":return d.blob();case"document":return d.text().then(u=>new DOMParser().parseFromString(u,a));case"json":return d.json();default:if(a===void 0)return d.text();{const m=/charset="?([^;"\s]*)"?/i.exec(a),f=m&&m[1]?m[1].toLowerCase():void 0,g=new TextDecoder(f);return d.arrayBuffer().then(h=>g.decode(h))}}}).then(d=>{Vl.add(e,d);const u=gs[e];delete gs[e];for(let m=0,f=u.length;m{const u=gs[e];if(u===void 0)throw this.manager.itemError(e),d;delete gs[e];for(let m=0,f=u.length;m{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class UAt extends cc{constructor(e){super(e)}load(e,t,r,i){this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const s=this,o=Vl.get(e);if(o!==void 0)return s.manager.itemStart(e),setTimeout(function(){t&&t(o),s.manager.itemEnd(e)},0),o;const a=vd("img");function l(){u(),Vl.add(e,this),t&&t(this),s.manager.itemEnd(e)}function d(m){u(),i&&i(m),s.manager.itemError(e),s.manager.itemEnd(e)}function u(){a.removeEventListener("load",l,!1),a.removeEventListener("error",d,!1)}return a.addEventListener("load",l,!1),a.addEventListener("error",d,!1),e.slice(0,5)!=="data:"&&this.crossOrigin!==void 0&&(a.crossOrigin=this.crossOrigin),s.manager.itemStart(e),a.src=e,a}}class wO extends cc{constructor(e){super(e)}load(e,t,r,i){const s=new Jn,o=new UAt(this.manager);return o.setCrossOrigin(this.crossOrigin),o.setPath(this.path),o.load(e,function(a){s.image=a,s.needsUpdate=!0,t!==void 0&&t(s)},r,i),s}}class dm extends wn{constructor(e,t=1){super(),this.isLight=!0,this.type="Light",this.color=new Nt(e),this.intensity=t}dispose(){}copy(e,t){return super.copy(e,t),this.color.copy(e.color),this.intensity=e.intensity,this}toJSON(e){const t=super.toJSON(e);return t.object.color=this.color.getHex(),t.object.intensity=this.intensity,this.groundColor!==void 0&&(t.object.groundColor=this.groundColor.getHex()),this.distance!==void 0&&(t.object.distance=this.distance),this.angle!==void 0&&(t.object.angle=this.angle),this.decay!==void 0&&(t.object.decay=this.decay),this.penumbra!==void 0&&(t.object.penumbra=this.penumbra),this.shadow!==void 0&&(t.object.shadow=this.shadow.toJSON()),t}}const Rb=new Ht,oM=new he,aM=new he;class iE{constructor(e){this.camera=e,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new $t(512,512),this.map=null,this.mapPass=null,this.matrix=new Ht,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new Qy,this._frameExtents=new $t(1,1),this._viewportCount=1,this._viewports=[new mn(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(e){const t=this.camera,r=this.matrix;oM.setFromMatrixPosition(e.matrixWorld),t.position.copy(oM),aM.setFromMatrixPosition(e.target.matrixWorld),t.lookAt(aM),t.updateMatrixWorld(),Rb.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Rb),r.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),r.multiply(Rb)}getViewport(e){return this._viewports[e]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(e){return this.camera=e.camera.clone(),this.bias=e.bias,this.radius=e.radius,this.mapSize.copy(e.mapSize),this}clone(){return new this.constructor().copy(this)}toJSON(){const e={};return this.bias!==0&&(e.bias=this.bias),this.normalBias!==0&&(e.normalBias=this.normalBias),this.radius!==1&&(e.radius=this.radius),(this.mapSize.x!==512||this.mapSize.y!==512)&&(e.mapSize=this.mapSize.toArray()),e.camera=this.camera.toJSON(!1).object,delete e.camera.matrix,e}}class BAt extends iE{constructor(){super(new gr(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1}updateMatrices(e){const t=this.camera,r=Ul*2*e.angle*this.focus,i=this.mapSize.width/this.mapSize.height,s=e.distance||t.far;(r!==t.fov||i!==t.aspect||s!==t.far)&&(t.fov=r,t.aspect=i,t.far=s,t.updateProjectionMatrix()),super.updateMatrices(e)}copy(e){return super.copy(e),this.focus=e.focus,this}}class GAt extends dm{constructor(e,t,r=0,i=Math.PI/3,s=0,o=2){super(e,t),this.isSpotLight=!0,this.type="SpotLight",this.position.copy(wn.DEFAULT_UP),this.updateMatrix(),this.target=new wn,this.distance=r,this.angle=i,this.penumbra=s,this.decay=o,this.map=null,this.shadow=new BAt}get power(){return this.intensity*Math.PI}set power(e){this.intensity=e/Math.PI}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.angle=e.angle,this.penumbra=e.penumbra,this.decay=e.decay,this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}const lM=new Ht,Rc=new he,Mb=new he;class zAt extends iE{constructor(){super(new gr(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new $t(4,2),this._viewportCount=6,this._viewports=[new mn(2,1,1,1),new mn(0,1,1,1),new mn(3,1,1,1),new mn(1,1,1,1),new mn(3,0,1,1),new mn(1,0,1,1)],this._cubeDirections=[new he(1,0,0),new he(-1,0,0),new he(0,0,1),new he(0,0,-1),new he(0,1,0),new he(0,-1,0)],this._cubeUps=[new he(0,1,0),new he(0,1,0),new he(0,1,0),new he(0,1,0),new he(0,0,1),new he(0,0,-1)]}updateMatrices(e,t=0){const r=this.camera,i=this.matrix,s=e.distance||r.far;s!==r.far&&(r.far=s,r.updateProjectionMatrix()),Rc.setFromMatrixPosition(e.matrixWorld),r.position.copy(Rc),Mb.copy(r.position),Mb.add(this._cubeDirections[t]),r.up.copy(this._cubeUps[t]),r.lookAt(Mb),r.updateMatrixWorld(),i.makeTranslation(-Rc.x,-Rc.y,-Rc.z),lM.multiplyMatrices(r.projectionMatrix,r.matrixWorldInverse),this._frustum.setFromProjectionMatrix(lM)}}class VAt extends dm{constructor(e,t,r=0,i=2){super(e,t),this.isPointLight=!0,this.type="PointLight",this.distance=r,this.decay=i,this.shadow=new zAt}get power(){return this.intensity*4*Math.PI}set power(e){this.intensity=e/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}}class HAt extends iE{constructor(){super(new Zy(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}}class CO extends dm{constructor(e,t){super(e,t),this.isDirectionalLight=!0,this.type="DirectionalLight",this.position.copy(wn.DEFAULT_UP),this.updateMatrix(),this.target=new wn,this.shadow=new HAt}dispose(){this.shadow.dispose()}copy(e){return super.copy(e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}class qAt extends dm{constructor(e,t){super(e,t),this.isAmbientLight=!0,this.type="AmbientLight"}}class Jc{static decodeText(e){if(typeof TextDecoder<"u")return new TextDecoder().decode(e);let t="";for(let r=0,i=e.length;r"u"&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),typeof fetch>"u"&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),this.options={premultiplyAlpha:"none"}}setOptions(e){return this.options=e,this}load(e,t,r,i){e===void 0&&(e=""),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const s=this,o=Vl.get(e);if(o!==void 0)return s.manager.itemStart(e),setTimeout(function(){t&&t(o),s.manager.itemEnd(e)},0),o;const a={};a.credentials=this.crossOrigin==="anonymous"?"same-origin":"include",a.headers=this.requestHeader,fetch(e,a).then(function(l){return l.blob()}).then(function(l){return createImageBitmap(l,Object.assign(s.options,{colorSpaceConversion:"none"}))}).then(function(l){Vl.add(e,l),t&&t(l),s.manager.itemEnd(e)}).catch(function(l){i&&i(l),s.manager.itemError(e),s.manager.itemEnd(e)}),s.manager.itemStart(e)}}const sE="\\[\\]\\.:\\/",$At=new RegExp("["+sE+"]","g"),oE="[^"+sE+"]",WAt="[^"+sE.replace("\\.","")+"]",KAt=/((?:WC+[\/:])*)/.source.replace("WC",oE),jAt=/(WCOD+)?/.source.replace("WCOD",WAt),QAt=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",oE),XAt=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",oE),ZAt=new RegExp("^"+KAt+jAt+QAt+XAt+"$"),JAt=["material","materials","bones","map"];class eRt{constructor(e,t,r){const i=r||sn.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,i)}getValue(e,t){this.bind();const r=this._targetGroup.nCachedObjects_,i=this._bindings[r];i!==void 0&&i.getValue(e,t)}setValue(e,t){const r=this._bindings;for(let i=this._targetGroup.nCachedObjects_,s=r.length;i!==s;++i)r[i].setValue(e,t)}bind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,r=e.length;t!==r;++t)e[t].bind()}unbind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,r=e.length;t!==r;++t)e[t].unbind()}}class sn{constructor(e,t,r){this.path=t,this.parsedPath=r||sn.parseTrackName(t),this.node=sn.findNode(e,this.parsedPath.nodeName),this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,t,r){return e&&e.isAnimationObjectGroup?new sn.Composite(e,t,r):new sn(e,t,r)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace($At,"")}static parseTrackName(e){const t=ZAt.exec(e);if(t===null)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const r={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},i=r.nodeName&&r.nodeName.lastIndexOf(".");if(i!==void 0&&i!==-1){const s=r.nodeName.substring(i+1);JAt.indexOf(s)!==-1&&(r.nodeName=r.nodeName.substring(0,i),r.objectName=s)}if(r.propertyName===null||r.propertyName.length===0)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return r}static findNode(e,t){if(t===void 0||t===""||t==="."||t===-1||t===e.name||t===e.uuid)return e;if(e.skeleton){const r=e.skeleton.getBoneByName(t);if(r!==void 0)return r}if(e.children){const r=function(s){for(let o=0;o=2.0 are supported."));return}const d=new ORt(s,{path:t||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});d.fileLoader.setRequestHeader(this.requestHeader);for(let u=0;u=0&&a[m]===void 0&&console.warn('THREE.GLTFLoader: Unknown extension "'+m+'".')}}d.setExtensions(o),d.setPlugins(a),d.parse(r,i)}parseAsync(e,t){const r=this;return new Promise(function(i,s){r.parse(e,t,i,s)})}}function nRt(){let n={};return{get:function(e){return n[e]},add:function(e,t){n[e]=t},remove:function(e){delete n[e]},removeAll:function(){n={}}}}const Yt={KHR_BINARY_GLTF:"KHR_binary_glTF",KHR_DRACO_MESH_COMPRESSION:"KHR_draco_mesh_compression",KHR_LIGHTS_PUNCTUAL:"KHR_lights_punctual",KHR_MATERIALS_CLEARCOAT:"KHR_materials_clearcoat",KHR_MATERIALS_IOR:"KHR_materials_ior",KHR_MATERIALS_SHEEN:"KHR_materials_sheen",KHR_MATERIALS_SPECULAR:"KHR_materials_specular",KHR_MATERIALS_TRANSMISSION:"KHR_materials_transmission",KHR_MATERIALS_IRIDESCENCE:"KHR_materials_iridescence",KHR_MATERIALS_ANISOTROPY:"KHR_materials_anisotropy",KHR_MATERIALS_UNLIT:"KHR_materials_unlit",KHR_MATERIALS_VOLUME:"KHR_materials_volume",KHR_TEXTURE_BASISU:"KHR_texture_basisu",KHR_TEXTURE_TRANSFORM:"KHR_texture_transform",KHR_MESH_QUANTIZATION:"KHR_mesh_quantization",KHR_MATERIALS_EMISSIVE_STRENGTH:"KHR_materials_emissive_strength",EXT_MATERIALS_BUMP:"EXT_materials_bump",EXT_TEXTURE_WEBP:"EXT_texture_webp",EXT_TEXTURE_AVIF:"EXT_texture_avif",EXT_MESHOPT_COMPRESSION:"EXT_meshopt_compression",EXT_MESH_GPU_INSTANCING:"EXT_mesh_gpu_instancing"};class rRt{constructor(e){this.parser=e,this.name=Yt.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){const e=this.parser,t=this.parser.json.nodes||[];for(let r=0,i=t.length;r=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return t.loadTextureImage(e,s.source,o)}}class gRt{constructor(e){this.parser=e,this.name=Yt.EXT_TEXTURE_WEBP,this.isSupported=null}loadTexture(e){const t=this.name,r=this.parser,i=r.json,s=i.textures[e];if(!s.extensions||!s.extensions[t])return null;const o=s.extensions[t],a=i.images[o.source];let l=r.textureLoader;if(a.uri){const d=r.options.manager.getHandler(a.uri);d!==null&&(l=d)}return this.detectSupport().then(function(d){if(d)return r.loadTextureImage(e,o.source,l);if(i.extensionsRequired&&i.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: WebP required by asset but unsupported.");return r.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",t.onload=t.onerror=function(){e(t.height===1)}})),this.isSupported}}class _Rt{constructor(e){this.parser=e,this.name=Yt.EXT_TEXTURE_AVIF,this.isSupported=null}loadTexture(e){const t=this.name,r=this.parser,i=r.json,s=i.textures[e];if(!s.extensions||!s.extensions[t])return null;const o=s.extensions[t],a=i.images[o.source];let l=r.textureLoader;if(a.uri){const d=r.options.manager.getHandler(a.uri);d!==null&&(l=d)}return this.detectSupport().then(function(d){if(d)return r.loadTextureImage(e,o.source,l);if(i.extensionsRequired&&i.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: AVIF required by asset but unsupported.");return r.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAABcAAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAEAAAABAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQAMAAAAABNjb2xybmNseAACAAIABoAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAAB9tZGF0EgAKCBgABogQEDQgMgkQAAAAB8dSLfI=",t.onload=t.onerror=function(){e(t.height===1)}})),this.isSupported}}class bRt{constructor(e){this.name=Yt.EXT_MESHOPT_COMPRESSION,this.parser=e}loadBufferView(e){const t=this.parser.json,r=t.bufferViews[e];if(r.extensions&&r.extensions[this.name]){const i=r.extensions[this.name],s=this.parser.getDependency("buffer",i.buffer),o=this.parser.options.meshoptDecoder;if(!o||!o.supported){if(t.extensionsRequired&&t.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");return null}return s.then(function(a){const l=i.byteOffset||0,d=i.byteLength||0,u=i.count,m=i.byteStride,f=new Uint8Array(a,l,d);return o.decodeGltfBufferAsync?o.decodeGltfBufferAsync(u,m,f,i.mode,i.filter).then(function(g){return g.buffer}):o.ready.then(function(){const g=new ArrayBuffer(u*m);return o.decodeGltfBuffer(new Uint8Array(g),u,m,f,i.mode,i.filter),g})})}else return null}}class vRt{constructor(e){this.name=Yt.EXT_MESH_GPU_INSTANCING,this.parser=e}createNodeMesh(e){const t=this.parser.json,r=t.nodes[e];if(!r.extensions||!r.extensions[this.name]||r.mesh===void 0)return null;const i=t.meshes[r.mesh];for(const d of i.primitives)if(d.mode!==Qr.TRIANGLES&&d.mode!==Qr.TRIANGLE_STRIP&&d.mode!==Qr.TRIANGLE_FAN&&d.mode!==void 0)return null;const o=r.extensions[this.name].attributes,a=[],l={};for(const d in o)a.push(this.parser.getDependency("accessor",o[d]).then(u=>(l[d]=u,l[d])));return a.length<1?null:(a.push(this.parser.createNodeMesh(e)),Promise.all(a).then(d=>{const u=d.pop(),m=u.isGroup?u.children:[u],f=d[0].count,g=[];for(const h of m){const v=new Ht,b=new he,_=new Uo,y=new he(1,1,1),E=new SAt(h.geometry,h.material,f);for(let x=0;x0||n.search(/^data\:image\/jpeg/)===0?"image/jpeg":n.search(/\.webp($|\?)/i)>0||n.search(/^data\:image\/webp/)===0?"image/webp":"image/png"}const IRt=new Ht;class ORt{constructor(e={},t={}){this.json=e,this.extensions={},this.plugins={},this.options=t,this.cache=new nRt,this.associations=new Map,this.primitiveCache={},this.nodeCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.sourceCache={},this.textureCache={},this.nodeNamesUsed={};let r=!1,i=!1,s=-1;typeof navigator<"u"&&(r=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)===!0,i=navigator.userAgent.indexOf("Firefox")>-1,s=i?navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1]:-1),typeof createImageBitmap>"u"||r||i&&s<98?this.textureLoader=new wO(this.options.manager):this.textureLoader=new YAt(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new TO(this.options.manager),this.fileLoader.setResponseType("arraybuffer"),this.options.crossOrigin==="use-credentials"&&this.fileLoader.setWithCredentials(!0)}setExtensions(e){this.extensions=e}setPlugins(e){this.plugins=e}parse(e,t){const r=this,i=this.json,s=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll(function(o){return o._markDefs&&o._markDefs()}),Promise.all(this._invokeAll(function(o){return o.beforeRoot&&o.beforeRoot()})).then(function(){return Promise.all([r.getDependencies("scene"),r.getDependencies("animation"),r.getDependencies("camera")])}).then(function(o){const a={scene:o[0][i.scene||0],scenes:o[0],animations:o[1],cameras:o[2],asset:i.asset,parser:r,userData:{}};return jo(s,a,i),mo(a,i),Promise.all(r._invokeAll(function(l){return l.afterRoot&&l.afterRoot(a)})).then(function(){e(a)})}).catch(t)}_markDefs(){const e=this.json.nodes||[],t=this.json.skins||[],r=this.json.meshes||[];for(let i=0,s=t.length;i{const l=this.associations.get(o);l!=null&&this.associations.set(a,l);for(const[d,u]of o.children.entries())s(u,a.children[d])};return s(r,i),i.name+="_instance_"+e.uses[t]++,i}_invokeOne(e){const t=Object.values(this.plugins);t.push(this);for(let r=0;r=2&&b.setY(C,w[N*l+1]),l>=3&&b.setZ(C,w[N*l+2]),l>=4&&b.setW(C,w[N*l+3]),l>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}}return b})}loadTexture(e){const t=this.json,r=this.options,s=t.textures[e].source,o=t.images[s];let a=this.textureLoader;if(o.uri){const l=r.manager.getHandler(o.uri);l!==null&&(a=l)}return this.loadTextureImage(e,s,a)}loadTextureImage(e,t,r){const i=this,s=this.json,o=s.textures[e],a=s.images[t],l=(a.uri||a.bufferView)+":"+o.sampler;if(this.textureCache[l])return this.textureCache[l];const d=this.loadImageSource(t,r).then(function(u){u.flipY=!1,u.name=o.name||a.name||"",u.name===""&&typeof a.uri=="string"&&a.uri.startsWith("data:image/")===!1&&(u.name=a.uri);const f=(s.samplers||{})[o.sampler]||{};return u.magFilter=uM[f.magFilter]||Cr,u.minFilter=uM[f.minFilter]||xa,u.wrapS=pM[f.wrapS]||Ll,u.wrapT=pM[f.wrapT]||Ll,i.associations.set(u,{textures:e}),u}).catch(function(){return null});return this.textureCache[l]=d,d}loadImageSource(e,t){const r=this,i=this.json,s=this.options;if(this.sourceCache[e]!==void 0)return this.sourceCache[e].then(m=>m.clone());const o=i.images[e],a=self.URL||self.webkitURL;let l=o.uri||"",d=!1;if(o.bufferView!==void 0)l=r.getDependency("bufferView",o.bufferView).then(function(m){d=!0;const f=new Blob([m],{type:o.mimeType});return l=a.createObjectURL(f),l});else if(o.uri===void 0)throw new Error("THREE.GLTFLoader: Image "+e+" is missing URI and bufferView");const u=Promise.resolve(l).then(function(m){return new Promise(function(f,g){let h=f;t.isImageBitmapLoader===!0&&(h=function(v){const b=new Jn(v);b.needsUpdate=!0,f(b)}),t.load(Jc.resolveURL(m,s.path),h,void 0,g)})}).then(function(m){return d===!0&&a.revokeObjectURL(l),m.userData.mimeType=o.mimeType||kRt(o.uri),m}).catch(function(m){throw console.error("THREE.GLTFLoader: Couldn't load texture",l),m});return this.sourceCache[e]=u,u}assignTexture(e,t,r,i){const s=this;return this.getDependency("texture",r.index).then(function(o){if(!o)return null;if(r.texCoord!==void 0&&r.texCoord>0&&(o=o.clone(),o.channel=r.texCoord),s.extensions[Yt.KHR_TEXTURE_TRANSFORM]){const a=r.extensions!==void 0?r.extensions[Yt.KHR_TEXTURE_TRANSFORM]:void 0;if(a){const l=s.associations.get(o);o=s.extensions[Yt.KHR_TEXTURE_TRANSFORM].extendTexture(o,a),s.associations.set(o,l)}}return i!==void 0&&(o.colorSpace=i),e[t]=o,o})}assignFinalMaterial(e){const t=e.geometry;let r=e.material;const i=t.attributes.tangent===void 0,s=t.attributes.color!==void 0,o=t.attributes.normal===void 0;if(e.isPoints){const a="PointsMaterial:"+r.uuid;let l=this.cache.get(a);l||(l=new EO,Mi.prototype.copy.call(l,r),l.color.copy(r.color),l.map=r.map,l.sizeAttenuation=!1,this.cache.add(a,l)),r=l}else if(e.isLine){const a="LineBasicMaterial:"+r.uuid;let l=this.cache.get(a);l||(l=new yO,Mi.prototype.copy.call(l,r),l.color.copy(r.color),l.map=r.map,this.cache.add(a,l)),r=l}if(i||s||o){let a="ClonedMaterial:"+r.uuid+":";i&&(a+="derivative-tangents:"),s&&(a+="vertex-colors:"),o&&(a+="flat-shading:");let l=this.cache.get(a);l||(l=r.clone(),s&&(l.vertexColors=!0),o&&(l.flatShading=!0),i&&(l.normalScale&&(l.normalScale.y*=-1),l.clearcoatNormalScale&&(l.clearcoatNormalScale.y*=-1)),this.cache.add(a,l),this.associations.set(l,this.associations.get(r))),r=l}e.material=r}getMaterialType(){return rE}loadMaterial(e){const t=this,r=this.json,i=this.extensions,s=r.materials[e];let o;const a={},l=s.extensions||{},d=[];if(l[Yt.KHR_MATERIALS_UNLIT]){const m=i[Yt.KHR_MATERIALS_UNLIT];o=m.getMaterialType(),d.push(m.extendParams(a,s,t))}else{const m=s.pbrMetallicRoughness||{};if(a.color=new Nt(1,1,1),a.opacity=1,Array.isArray(m.baseColorFactor)){const f=m.baseColorFactor;a.color.setRGB(f[0],f[1],f[2],er),a.opacity=f[3]}m.baseColorTexture!==void 0&&d.push(t.assignTexture(a,"map",m.baseColorTexture,Mn)),a.metalness=m.metallicFactor!==void 0?m.metallicFactor:1,a.roughness=m.roughnessFactor!==void 0?m.roughnessFactor:1,m.metallicRoughnessTexture!==void 0&&(d.push(t.assignTexture(a,"metalnessMap",m.metallicRoughnessTexture)),d.push(t.assignTexture(a,"roughnessMap",m.metallicRoughnessTexture))),o=this._invokeOne(function(f){return f.getMaterialType&&f.getMaterialType(e)}),d.push(Promise.all(this._invokeAll(function(f){return f.extendMaterialParams&&f.extendMaterialParams(e,a)})))}s.doubleSided===!0&&(a.side=Vi);const u=s.alphaMode||kb.OPAQUE;if(u===kb.BLEND?(a.transparent=!0,a.depthWrite=!1):(a.transparent=!1,u===kb.MASK&&(a.alphaTest=s.alphaCutoff!==void 0?s.alphaCutoff:.5)),s.normalTexture!==void 0&&o!==vo&&(d.push(t.assignTexture(a,"normalMap",s.normalTexture)),a.normalScale=new $t(1,1),s.normalTexture.scale!==void 0)){const m=s.normalTexture.scale;a.normalScale.set(m,m)}if(s.occlusionTexture!==void 0&&o!==vo&&(d.push(t.assignTexture(a,"aoMap",s.occlusionTexture)),s.occlusionTexture.strength!==void 0&&(a.aoMapIntensity=s.occlusionTexture.strength)),s.emissiveFactor!==void 0&&o!==vo){const m=s.emissiveFactor;a.emissive=new Nt().setRGB(m[0],m[1],m[2],er)}return s.emissiveTexture!==void 0&&o!==vo&&d.push(t.assignTexture(a,"emissiveMap",s.emissiveTexture,Mn)),Promise.all(d).then(function(){const m=new o(a);return s.name&&(m.name=s.name),mo(m,s),t.associations.set(m,{materials:e}),s.extensions&&jo(i,m,s),m})}createUniqueName(e){const t=sn.sanitizeNodeName(e||"");return t in this.nodeNamesUsed?t+"_"+ ++this.nodeNamesUsed[t]:(this.nodeNamesUsed[t]=0,t)}loadGeometries(e){const t=this,r=this.extensions,i=this.primitiveCache;function s(a){return r[Yt.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(a,t).then(function(l){return hM(l,a,t)})}const o=[];for(let a=0,l=e.length;a0&&MRt(_,s),_.name=t.createUniqueName(s.name||"mesh_"+e),mo(_,s),b.extensions&&jo(i,_,b),t.assignFinalMaterial(_),m.push(_)}for(let g=0,h=m.length;g1?u=new oa:d.length===1?u=d[0]:u=new wn,u!==d[0])for(let m=0,f=d.length;m{const m=new Map;for(const[f,g]of i.associations)(f instanceof Mi||f instanceof Jn)&&m.set(f,g);return u.traverse(f=>{const g=i.associations.get(f);g!=null&&m.set(f,g)}),m};return i.associations=d(s),s})}_createAnimationTracks(e,t,r,i,s){const o=[],a=e.name?e.name:e.uuid,l=[];no[s.path]===no.weights?e.traverse(function(f){f.morphTargetInfluences&&l.push(f.name?f.name:f.uuid)}):l.push(a);let d;switch(no[s.path]){case no.weights:d=Gl;break;case no.rotation:d=Ca;break;case no.position:case no.scale:d=zl;break;default:switch(r.itemSize){case 1:d=Gl;break;case 2:case 3:default:d=zl;break}break}const u=i.interpolation!==void 0?CRt[i.interpolation]:Fl,m=this._getArrayFromAccessor(r);for(let f=0,g=l.length;f{Ze.replace()})},stopVideoStream(){this.isVideoActive=!1,this.imageData=null,rt.emit("stop_webcam_video_stream"),We(()=>{Ze.replace()})},startDrag(n){this.isDragging=!0,this.zIndex=5001,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY,document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.stopDrag)},drag(n){if(this.isDragging){const e=n.clientX-this.dragStart.x,t=n.clientY-this.dragStart.y;this.position.bottom-=t,this.position.right-=e,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY}},stopDrag(){this.isDragging=!1,this.zIndex=0,document.removeEventListener("mousemove",this.drag),document.removeEventListener("mouseup",this.stopDrag)}},mounted(){Ze.replace(),rt.on("video_stream_image",n=>{if(this.isVideoActive){this.imageDataUrl="data:image/jpeg;base64,"+n,this.frameCount++;const e=Date.now();e-this.lastFrameTime>=1e3&&(this.frameRate=this.frameCount,this.frameCount=0,this.lastFrameTime=e)}})}},PRt=["src"],FRt=["src"],URt={class:"controls"},BRt={key:2};function GRt(n,e,t,r,i,s){return T(),M("div",{class:"floating-frame bg-white",style:on({bottom:i.position.bottom+"px",right:i.position.right+"px","z-index":i.zIndex}),onMousedown:e[4]||(e[4]=J((...o)=>s.startDrag&&s.startDrag(...o),["stop"])),onMouseup:e[5]||(e[5]=J((...o)=>s.stopDrag&&s.stopDrag(...o),["stop"]))},[c("div",{class:"handle",onMousedown:e[0]||(e[0]=J((...o)=>s.startDrag&&s.startDrag(...o),["stop"])),onMouseup:e[1]||(e[1]=J((...o)=>s.stopDrag&&s.stopDrag(...o),["stop"]))},"Drag Me",32),i.isVideoActive&&i.imageDataUrl!=null?(T(),M("img",{key:0,src:i.imageDataUrl,alt:"Webcam Frame",width:"300",height:"300"},null,8,PRt)):Y("",!0),i.isVideoActive&&i.imageDataUrl==null?(T(),M("p",{key:1,src:i.imageDataUrl,alt:"Webcam Frame",width:"300",height:"300"},"Loading. Please wait...",8,FRt)):Y("",!0),c("div",URt,[i.isVideoActive?Y("",!0):(T(),M("button",{key:0,class:"bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded",onClick:e[2]||(e[2]=(...o)=>s.startVideoStream&&s.startVideoStream(...o))},e[6]||(e[6]=[c("i",{"data-feather":"video"},null,-1)]))),i.isVideoActive?(T(),M("button",{key:1,class:"bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded",onClick:e[3]||(e[3]=(...o)=>s.stopVideoStream&&s.stopVideoStream(...o))},e[7]||(e[7]=[c("i",{"data-feather":"video"},null,-1)]))):Y("",!0),i.isVideoActive?(T(),M("span",BRt,"FPS: "+X(i.frameRate),1)):Y("",!0)])],36)}const zRt=bt(LRt,[["render",GRt]]),VRt={data(){return{isAudioActive:!1,imageDataUrl:null,isDragging:!1,position:{bottom:0,right:0},dragStart:{x:0,y:0},zIndex:0,frameRate:0,frameCount:0,lastFrameTime:Date.now()}},methods:{startAudioStream(){rt.emit("start_audio_stream",()=>{this.isAudioActive=!0}),We(()=>{Ze.replace()})},stopAudioStream(){rt.emit("stop_audio_stream",()=>{this.isAudioActive=!1,this.imageDataUrl=null}),We(()=>{Ze.replace()})},startDrag(n){this.isDragging=!0,this.zIndex=5001,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY,document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.stopDrag)},drag(n){if(this.isDragging){const e=n.clientX-this.dragStart.x,t=n.clientY-this.dragStart.y;this.position.bottom-=t,this.position.right-=e,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY}},stopDrag(){this.isDragging=!1,this.zIndex=0,document.removeEventListener("mousemove",this.drag),document.removeEventListener("mouseup",this.stopDrag)}},mounted(){Ze.replace(),rt.on("update_spectrogram",n=>{if(this.isAudioActive){this.imageDataUrl="data:image/jpeg;base64,"+n,this.frameCount++;const e=Date.now();e-this.lastFrameTime>=1e3&&(this.frameRate=this.frameCount,this.frameCount=0,this.lastFrameTime=e)}})}},HRt=["src"],qRt={class:"controls"};function YRt(n,e,t,r,i,s){return T(),M("div",{class:"floating-frame bg-white",style:on({bottom:i.position.bottom+"px",right:i.position.right+"px","z-index":i.zIndex}),onMousedown:e[4]||(e[4]=J((...o)=>s.startDrag&&s.startDrag(...o),["stop"])),onMouseup:e[5]||(e[5]=J((...o)=>s.stopDrag&&s.stopDrag(...o),["stop"]))},[c("div",{class:"handle",onMousedown:e[0]||(e[0]=J((...o)=>s.startDrag&&s.startDrag(...o),["stop"])),onMouseup:e[1]||(e[1]=J((...o)=>s.stopDrag&&s.stopDrag(...o),["stop"]))},"Drag Me",32),i.isAudioActive&&i.imageDataUrl!=null?(T(),M("img",{key:0,src:i.imageDataUrl,alt:"Spectrogram",width:"300",height:"300"},null,8,HRt)):Y("",!0),c("div",qRt,[i.isAudioActive?Y("",!0):(T(),M("button",{key:0,class:"bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded",onClick:e[2]||(e[2]=(...o)=>s.startAudioStream&&s.startAudioStream(...o))},e[6]||(e[6]=[c("i",{"data-feather":"mic"},null,-1)]))),i.isAudioActive?(T(),M("button",{key:1,class:"bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded",onClick:e[3]||(e[3]=(...o)=>s.stopAudioStream&&s.stopAudioStream(...o))},e[7]||(e[7]=[c("i",{"data-feather":"mic"},null,-1)]))):Y("",!0)])],36)}const $Rt=bt(VRt,[["render",YRt]]),WRt={data(){return{activePersonality:null}},props:{personality:{type:Object,default:()=>({})}},components:{VideoFrame:zRt,AudioFrame:$Rt},computed:{isReady:{get(){return this.$store.state.ready}}},watch:{"$store.state.mountedPersArr":"updatePersonality","$store.state.config.active_personality_id":"updatePersonality"},async mounted(){for(;this.isReady===!1;)await new Promise(n=>setTimeout(n,100));console.log("Personality:",this.personality),this.initWebGLScene(),this.updatePersonality(),We(()=>{Ze.replace()}),this.$refs.video_frame.position={bottom:0,right:0},this.$refs.audio_frame.position={bottom:0,right:100}},beforeDestroy(){},methods:{initWebGLScene(){this.scene=new fAt,this.camera=new gr(75,window.innerWidth/window.innerHeight,.1,1e3),this.renderer=new bO,this.renderer.setSize(window.innerWidth,window.innerHeight),this.$refs.webglContainer.appendChild(this.renderer.domElement);const n=new wo,e=new iM({color:65280});this.cube=new br(n,e),this.scene.add(this.cube);const t=new qAt(4210752),r=new CO(16777215,.5);r.position.set(0,1,0),this.scene.add(t),this.scene.add(r),this.camera.position.z=5,this.animate()},updatePersonality(){const{mountedPersArr:n,config:e}=this.$store.state;this.activePersonality=n[e.active_personality_id],this.activePersonality.avatar?this.showBoxWithAvatar(this.activePersonality.avatar):this.showDefaultCube(),this.$emit("update:personality",this.activePersonality)},loadScene(n){new tRt().load(n,t=>{this.scene.remove(this.cube),this.cube=t.scene,this.scene.add(this.cube)})},showBoxWithAvatar(n){this.cube&&this.scene.remove(this.cube);const e=new wo,t=new wO().load(n),r=new vo({map:t});this.cube=new br(e,r),this.scene.add(this.cube)},showDefaultCube(){this.scene.remove(this.cube);const n=new wo,e=new iM({color:65280});this.cube=new br(n,e),this.scene.add(this.cube)},animate(){requestAnimationFrame(this.animate),this.cube&&(this.cube.rotation.x+=.01,this.cube.rotation.y+=.01),this.renderer.render(this.scene,this.camera)}}},KRt={ref:"webglContainer"},jRt={class:"flex-col y-overflow scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},QRt={key:0,class:"text-center"},XRt={key:1,class:"text-center"},ZRt={class:"floating-frame2"},JRt=["innerHTML"];function eMt(n,e,t,r,i,s){const o=ht("VideoFrame"),a=ht("AudioFrame");return T(),M(je,null,[c("div",KRt,null,512),c("div",jRt,[!i.activePersonality||!i.activePersonality.scene_path?(T(),M("div",QRt," Personality does not have a 3d avatar. ")):Y("",!0),!i.activePersonality||!i.activePersonality.avatar||i.activePersonality.avatar===""?(T(),M("div",XRt," Personality does not have an avatar. ")):Y("",!0),c("div",ZRt,[c("div",{innerHTML:n.htmlContent},null,8,JRt)])]),W(o,{ref:"video_frame"},null,512),W(a,{ref:"audio_frame"},null,512)],64)}const tMt=bt(WRt,[["render",eMt]]);let Qu;const nMt=new Uint8Array(16);function rMt(){if(!Qu&&(Qu=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Qu))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Qu(nMt)}const jn=[];for(let n=0;n<256;++n)jn.push((n+256).toString(16).slice(1));function iMt(n,e=0){return jn[n[e+0]]+jn[n[e+1]]+jn[n[e+2]]+jn[n[e+3]]+"-"+jn[n[e+4]]+jn[n[e+5]]+"-"+jn[n[e+6]]+jn[n[e+7]]+"-"+jn[n[e+8]]+jn[n[e+9]]+"-"+jn[n[e+10]]+jn[n[e+11]]+jn[n[e+12]]+jn[n[e+13]]+jn[n[e+14]]+jn[n[e+15]]}const sMt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),mM={randomUUID:sMt};function ks(n,e,t){if(mM.randomUUID&&!e&&!n)return mM.randomUUID();n=n||{};const r=n.random||(n.rng||rMt)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,iMt(r)}class fa{constructor(){this.listenerMap=new Map,this._listeners=[],this.proxyMap=new Map,this.proxies=[]}get listeners(){return this._listeners.concat(this.proxies.flatMap(e=>e()))}subscribe(e,t){this.listenerMap.has(e)&&(console.warn(`Already subscribed. Unsubscribing for you. +}`;function sAt(n,e,t){let r=new Qy;const i=new $t,s=new $t,o=new mn,a=new tAt({depthPacking:GSt}),l=new nAt,d={},u=t.maxTextureSize,m={[Fs]:kr,[kr]:Fs,[Vi]:Vi},f=new wa({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new $t},radius:{value:4}},vertexShader:rAt,fragmentShader:iAt}),g=f.clone();g.defines.HORIZONTAL_PASS=1;const h=new as;h.setAttribute("position",new vr(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const v=new br(h,f),b=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=zI;let _=this.type;this.render=function(A,w,N){if(b.enabled===!1||b.autoUpdate===!1&&b.needsUpdate===!1||A.length===0)return;const L=n.getRenderTarget(),C=n.getActiveCubeFace(),k=n.getActiveMipmapLevel(),H=n.state;H.setBlending(So),H.buffers.color.setClear(1,1,1,1),H.buffers.depth.setTest(!0),H.setScissorTest(!1);const q=_!==vs&&this.type===vs,ie=_===vs&&this.type!==vs;for(let D=0,$=A.length;D<$;D++){const K=A[D],B=K.shadow;if(B===void 0){console.warn("THREE.WebGLShadowMap:",K,"has no shadow.");continue}if(B.autoUpdate===!1&&B.needsUpdate===!1)continue;i.copy(B.mapSize);const Z=B.getFrameExtents();if(i.multiply(Z),s.copy(B.mapSize),(i.x>u||i.y>u)&&(i.x>u&&(s.x=Math.floor(u/Z.x),i.x=s.x*Z.x,B.mapSize.x=s.x),i.y>u&&(s.y=Math.floor(u/Z.y),i.y=s.y*Z.y,B.mapSize.y=s.y)),B.map===null||q===!0||ie===!0){const ue=this.type!==vs?{minFilter:$n,magFilter:$n}:{};B.map!==null&&B.map.dispose(),B.map=new Ta(i.x,i.y,ue),B.map.texture.name=K.name+".shadowMap",B.camera.updateProjectionMatrix()}n.setRenderTarget(B.map),n.clear();const ce=B.getViewportCount();for(let ue=0;ue0||w.map&&w.alphaTest>0){const H=C.uuid,q=w.uuid;let ie=d[H];ie===void 0&&(ie={},d[H]=ie);let D=ie[q];D===void 0&&(D=C.clone(),ie[q]=D),C=D}if(C.visible=w.visible,C.wireframe=w.wireframe,L===vs?C.side=w.shadowSide!==null?w.shadowSide:w.side:C.side=w.shadowSide!==null?w.shadowSide:m[w.side],C.alphaMap=w.alphaMap,C.alphaTest=w.alphaTest,C.map=w.map,C.clipShadows=w.clipShadows,C.clippingPlanes=w.clippingPlanes,C.clipIntersection=w.clipIntersection,C.displacementMap=w.displacementMap,C.displacementScale=w.displacementScale,C.displacementBias=w.displacementBias,C.wireframeLinewidth=w.wireframeLinewidth,C.linewidth=w.linewidth,N.isPointLight===!0&&C.isMeshDistanceMaterial===!0){const H=n.properties.get(C);H.light=N}return C}function x(A,w,N,L,C){if(A.visible===!1)return;if(A.layers.test(w.layers)&&(A.isMesh||A.isLine||A.isPoints)&&(A.castShadow||A.receiveShadow&&C===vs)&&(!A.frustumCulled||r.intersectsObject(A))){A.modelViewMatrix.multiplyMatrices(N.matrixWorldInverse,A.matrixWorld);const q=e.update(A),ie=A.material;if(Array.isArray(ie)){const D=q.groups;for(let $=0,K=D.length;$=1):ue.indexOf("OpenGL ES")!==-1&&(ce=parseFloat(/^OpenGL ES (\d)/.exec(ue)[1]),Z=ce>=2);let xe=null,Ce={};const me=n.getParameter(n.SCISSOR_BOX),Ae=n.getParameter(n.VIEWPORT),Fe=new mn().fromArray(me),ze=new mn().fromArray(Ae);function te(ae,dt,Xe,Be){const nt=new Uint8Array(4),At=n.createTexture();n.bindTexture(ae,At),n.texParameteri(ae,n.TEXTURE_MIN_FILTER,n.NEAREST),n.texParameteri(ae,n.TEXTURE_MAG_FILTER,n.NEAREST);for(let jt=0;jt"u"?!1:/OculusBrowser/g.test(navigator.userAgent),h=new WeakMap;let v;const b=new WeakMap;let _=!1;try{_=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function y(U,I){return _?new OffscreenCanvas(U,I):vd("canvas")}function E(U,I,ee,we){let ne=1;if((U.width>we||U.height>we)&&(ne=we/Math.max(U.width,U.height)),ne<1||I===!0)if(typeof HTMLImageElement<"u"&&U instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&U instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&U instanceof ImageBitmap){const pe=I?ah:Math.floor,De=pe(ne*U.width),Le=pe(ne*U.height);v===void 0&&(v=y(De,Le));const Ve=ee?y(De,Le):v;return Ve.width=De,Ve.height=Le,Ve.getContext("2d").drawImage(U,0,0,De,Le),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+U.width+"x"+U.height+") to ("+De+"x"+Le+")."),Ve}else return"data"in U&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+U.width+"x"+U.height+")."),U;return U}function x(U){return P1(U.width)&&P1(U.height)}function A(U){return a?!1:U.wrapS!==Jr||U.wrapT!==Jr||U.minFilter!==$n&&U.minFilter!==Cr}function w(U,I){return U.generateMipmaps&&I&&U.minFilter!==$n&&U.minFilter!==Cr}function N(U){n.generateMipmap(U)}function L(U,I,ee,we,ne=!1){if(a===!1)return I;if(U!==null){if(n[U]!==void 0)return n[U];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+U+"'")}let pe=I;if(I===n.RED&&(ee===n.FLOAT&&(pe=n.R32F),ee===n.HALF_FLOAT&&(pe=n.R16F),ee===n.UNSIGNED_BYTE&&(pe=n.R8)),I===n.RED_INTEGER&&(ee===n.UNSIGNED_BYTE&&(pe=n.R8UI),ee===n.UNSIGNED_SHORT&&(pe=n.R16UI),ee===n.UNSIGNED_INT&&(pe=n.R32UI),ee===n.BYTE&&(pe=n.R8I),ee===n.SHORT&&(pe=n.R16I),ee===n.INT&&(pe=n.R32I)),I===n.RG&&(ee===n.FLOAT&&(pe=n.RG32F),ee===n.HALF_FLOAT&&(pe=n.RG16F),ee===n.UNSIGNED_BYTE&&(pe=n.RG8)),I===n.RGBA){const De=ne?rh:tn.getTransfer(we);ee===n.FLOAT&&(pe=n.RGBA32F),ee===n.HALF_FLOAT&&(pe=n.RGBA16F),ee===n.UNSIGNED_BYTE&&(pe=De===bn?n.SRGB8_ALPHA8:n.RGBA8),ee===n.UNSIGNED_SHORT_4_4_4_4&&(pe=n.RGBA4),ee===n.UNSIGNED_SHORT_5_5_5_1&&(pe=n.RGB5_A1)}return(pe===n.R16F||pe===n.R32F||pe===n.RG16F||pe===n.RG32F||pe===n.RGBA16F||pe===n.RGBA32F)&&e.get("EXT_color_buffer_float"),pe}function C(U,I,ee){return w(U,ee)===!0||U.isFramebufferTexture&&U.minFilter!==$n&&U.minFilter!==Cr?Math.log2(Math.max(I.width,I.height))+1:U.mipmaps!==void 0&&U.mipmaps.length>0?U.mipmaps.length:U.isCompressedTexture&&Array.isArray(U.image)?I.mipmaps.length:1}function k(U){return U===$n||U===I1||U===mp?n.NEAREST:n.LINEAR}function H(U){const I=U.target;I.removeEventListener("dispose",H),ie(I),I.isVideoTexture&&h.delete(I)}function q(U){const I=U.target;I.removeEventListener("dispose",q),$(I)}function ie(U){const I=r.get(U);if(I.__webglInit===void 0)return;const ee=U.source,we=b.get(ee);if(we){const ne=we[I.__cacheKey];ne.usedTimes--,ne.usedTimes===0&&D(U),Object.keys(we).length===0&&b.delete(ee)}r.remove(U)}function D(U){const I=r.get(U);n.deleteTexture(I.__webglTexture);const ee=U.source,we=b.get(ee);delete we[I.__cacheKey],o.memory.textures--}function $(U){const I=U.texture,ee=r.get(U),we=r.get(I);if(we.__webglTexture!==void 0&&(n.deleteTexture(we.__webglTexture),o.memory.textures--),U.depthTexture&&U.depthTexture.dispose(),U.isWebGLCubeRenderTarget)for(let ne=0;ne<6;ne++){if(Array.isArray(ee.__webglFramebuffer[ne]))for(let pe=0;pe=l&&console.warn("THREE.WebGLTextures: Trying to use "+U+" texture units while this GPU supports only "+l),K+=1,U}function ce(U){const I=[];return I.push(U.wrapS),I.push(U.wrapT),I.push(U.wrapR||0),I.push(U.magFilter),I.push(U.minFilter),I.push(U.anisotropy),I.push(U.internalFormat),I.push(U.format),I.push(U.type),I.push(U.generateMipmaps),I.push(U.premultiplyAlpha),I.push(U.flipY),I.push(U.unpackAlignment),I.push(U.colorSpace),I.join()}function ue(U,I){const ee=r.get(U);if(U.isVideoTexture&&Pe(U),U.isRenderTargetTexture===!1&&U.version>0&&ee.__version!==U.version){const we=U.image;if(we===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(we.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{Se(ee,U,I);return}}t.bindTexture(n.TEXTURE_2D,ee.__webglTexture,n.TEXTURE0+I)}function xe(U,I){const ee=r.get(U);if(U.version>0&&ee.__version!==U.version){Se(ee,U,I);return}t.bindTexture(n.TEXTURE_2D_ARRAY,ee.__webglTexture,n.TEXTURE0+I)}function Ce(U,I){const ee=r.get(U);if(U.version>0&&ee.__version!==U.version){Se(ee,U,I);return}t.bindTexture(n.TEXTURE_3D,ee.__webglTexture,n.TEXTURE0+I)}function me(U,I){const ee=r.get(U);if(U.version>0&&ee.__version!==U.version){Oe(ee,U,I);return}t.bindTexture(n.TEXTURE_CUBE_MAP,ee.__webglTexture,n.TEXTURE0+I)}const Ae={[Ll]:n.REPEAT,[Jr]:n.CLAMP_TO_EDGE,[nh]:n.MIRRORED_REPEAT},Fe={[$n]:n.NEAREST,[I1]:n.NEAREST_MIPMAP_NEAREST,[mp]:n.NEAREST_MIPMAP_LINEAR,[Cr]:n.LINEAR,[HI]:n.LINEAR_MIPMAP_NEAREST,[xa]:n.LINEAR_MIPMAP_LINEAR},ze={[VSt]:n.NEVER,[KSt]:n.ALWAYS,[HSt]:n.LESS,[JI]:n.LEQUAL,[qSt]:n.EQUAL,[WSt]:n.GEQUAL,[YSt]:n.GREATER,[$St]:n.NOTEQUAL};function te(U,I,ee){if(ee?(n.texParameteri(U,n.TEXTURE_WRAP_S,Ae[I.wrapS]),n.texParameteri(U,n.TEXTURE_WRAP_T,Ae[I.wrapT]),(U===n.TEXTURE_3D||U===n.TEXTURE_2D_ARRAY)&&n.texParameteri(U,n.TEXTURE_WRAP_R,Ae[I.wrapR]),n.texParameteri(U,n.TEXTURE_MAG_FILTER,Fe[I.magFilter]),n.texParameteri(U,n.TEXTURE_MIN_FILTER,Fe[I.minFilter])):(n.texParameteri(U,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(U,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),(U===n.TEXTURE_3D||U===n.TEXTURE_2D_ARRAY)&&n.texParameteri(U,n.TEXTURE_WRAP_R,n.CLAMP_TO_EDGE),(I.wrapS!==Jr||I.wrapT!==Jr)&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),n.texParameteri(U,n.TEXTURE_MAG_FILTER,k(I.magFilter)),n.texParameteri(U,n.TEXTURE_MIN_FILTER,k(I.minFilter)),I.minFilter!==$n&&I.minFilter!==Cr&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),I.compareFunction&&(n.texParameteri(U,n.TEXTURE_COMPARE_MODE,n.COMPARE_REF_TO_TEXTURE),n.texParameteri(U,n.TEXTURE_COMPARE_FUNC,ze[I.compareFunction])),e.has("EXT_texture_filter_anisotropic")===!0){const we=e.get("EXT_texture_filter_anisotropic");if(I.magFilter===$n||I.minFilter!==mp&&I.minFilter!==xa||I.type===Ts&&e.has("OES_texture_float_linear")===!1||a===!1&&I.type===_d&&e.has("OES_texture_half_float_linear")===!1)return;(I.anisotropy>1||r.get(I).__currentAnisotropy)&&(n.texParameterf(U,we.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(I.anisotropy,i.getMaxAnisotropy())),r.get(I).__currentAnisotropy=I.anisotropy)}}function ye(U,I){let ee=!1;U.__webglInit===void 0&&(U.__webglInit=!0,I.addEventListener("dispose",H));const we=I.source;let ne=b.get(we);ne===void 0&&(ne={},b.set(we,ne));const pe=ce(I);if(pe!==U.__cacheKey){ne[pe]===void 0&&(ne[pe]={texture:n.createTexture(),usedTimes:0},o.memory.textures++,ee=!0),ne[pe].usedTimes++;const De=ne[U.__cacheKey];De!==void 0&&(ne[U.__cacheKey].usedTimes--,De.usedTimes===0&&D(I)),U.__cacheKey=pe,U.__webglTexture=ne[pe].texture}return ee}function Se(U,I,ee){let we=n.TEXTURE_2D;(I.isDataArrayTexture||I.isCompressedArrayTexture)&&(we=n.TEXTURE_2D_ARRAY),I.isData3DTexture&&(we=n.TEXTURE_3D);const ne=ye(U,I),pe=I.source;t.bindTexture(we,U.__webglTexture,n.TEXTURE0+ee);const De=r.get(pe);if(pe.version!==De.__version||ne===!0){t.activeTexture(n.TEXTURE0+ee);const Le=tn.getPrimaries(tn.workingColorSpace),Ve=I.colorSpace===ti?null:tn.getPrimaries(I.colorSpace),ot=I.colorSpace===ti||Le===Ve?n.NONE:n.BROWSER_DEFAULT_WEBGL;n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,I.flipY),n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,I.premultiplyAlpha),n.pixelStorei(n.UNPACK_ALIGNMENT,I.unpackAlignment),n.pixelStorei(n.UNPACK_COLORSPACE_CONVERSION_WEBGL,ot);const wt=A(I)&&x(I.image)===!1;let $e=E(I.image,wt,!1,u);$e=Re(I,$e);const Kt=x($e)||a,ft=s.convert(I.format,I.colorSpace);let gt=s.convert(I.type),et=L(I.internalFormat,ft,gt,I.colorSpace,I.isVideoTexture);te(we,I,Kt);let lt;const It=I.mipmaps,ae=a&&I.isVideoTexture!==!0&&et!==QI,dt=De.__version===void 0||ne===!0,Xe=C(I,$e,Kt);if(I.isDepthTexture)et=n.DEPTH_COMPONENT,a?I.type===Ts?et=n.DEPTH_COMPONENT32F:I.type===bo?et=n.DEPTH_COMPONENT24:I.type===pa?et=n.DEPTH24_STENCIL8:et=n.DEPTH_COMPONENT16:I.type===Ts&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),I.format===ha&&et===n.DEPTH_COMPONENT&&I.type!==$y&&I.type!==bo&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),I.type=bo,gt=s.convert(I.type)),I.format===Pl&&et===n.DEPTH_COMPONENT&&(et=n.DEPTH_STENCIL,I.type!==pa&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),I.type=pa,gt=s.convert(I.type))),dt&&(ae?t.texStorage2D(n.TEXTURE_2D,1,et,$e.width,$e.height):t.texImage2D(n.TEXTURE_2D,0,et,$e.width,$e.height,0,ft,gt,null));else if(I.isDataTexture)if(It.length>0&&Kt){ae&&dt&&t.texStorage2D(n.TEXTURE_2D,Xe,et,It[0].width,It[0].height);for(let Be=0,nt=It.length;Be>=1,nt>>=1}}else if(It.length>0&&Kt){ae&&dt&&t.texStorage2D(n.TEXTURE_2D,Xe,et,It[0].width,It[0].height);for(let Be=0,nt=It.length;Be0&&dt++,t.texStorage2D(n.TEXTURE_CUBE_MAP,dt,lt,$e[0].width,$e[0].height));for(let Be=0;Be<6;Be++)if(wt){It?t.texSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Be,0,0,0,$e[Be].width,$e[Be].height,gt,et,$e[Be].data):t.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Be,0,lt,$e[Be].width,$e[Be].height,0,gt,et,$e[Be].data);for(let nt=0;nt>pe),$e=Math.max(1,I.height>>pe);ne===n.TEXTURE_3D||ne===n.TEXTURE_2D_ARRAY?t.texImage3D(ne,pe,Ve,wt,$e,I.depth,0,De,Le,null):t.texImage2D(ne,pe,Ve,wt,$e,0,De,Le,null)}t.bindFramebuffer(n.FRAMEBUFFER,U),Ue(I)?f.framebufferTexture2DMultisampleEXT(n.FRAMEBUFFER,we,ne,r.get(ee).__webglTexture,0,fe(I)):(ne===n.TEXTURE_2D||ne>=n.TEXTURE_CUBE_MAP_POSITIVE_X&&ne<=n.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&n.framebufferTexture2D(n.FRAMEBUFFER,we,ne,r.get(ee).__webglTexture,pe),t.bindFramebuffer(n.FRAMEBUFFER,null)}function le(U,I,ee){if(n.bindRenderbuffer(n.RENDERBUFFER,U),I.depthBuffer&&!I.stencilBuffer){let we=a===!0?n.DEPTH_COMPONENT24:n.DEPTH_COMPONENT16;if(ee||Ue(I)){const ne=I.depthTexture;ne&&ne.isDepthTexture&&(ne.type===Ts?we=n.DEPTH_COMPONENT32F:ne.type===bo&&(we=n.DEPTH_COMPONENT24));const pe=fe(I);Ue(I)?f.renderbufferStorageMultisampleEXT(n.RENDERBUFFER,pe,we,I.width,I.height):n.renderbufferStorageMultisample(n.RENDERBUFFER,pe,we,I.width,I.height)}else n.renderbufferStorage(n.RENDERBUFFER,we,I.width,I.height);n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.RENDERBUFFER,U)}else if(I.depthBuffer&&I.stencilBuffer){const we=fe(I);ee&&Ue(I)===!1?n.renderbufferStorageMultisample(n.RENDERBUFFER,we,n.DEPTH24_STENCIL8,I.width,I.height):Ue(I)?f.renderbufferStorageMultisampleEXT(n.RENDERBUFFER,we,n.DEPTH24_STENCIL8,I.width,I.height):n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,I.width,I.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_STENCIL_ATTACHMENT,n.RENDERBUFFER,U)}else{const we=I.isWebGLMultipleRenderTargets===!0?I.texture:[I.texture];for(let ne=0;ne0){ee.__webglFramebuffer[Le]=[];for(let Ve=0;Ve0){ee.__webglFramebuffer=[];for(let Le=0;Le0&&Ue(U)===!1){const Le=pe?I:[I];ee.__webglMultisampledFramebuffer=n.createFramebuffer(),ee.__webglColorRenderbuffer=[],t.bindFramebuffer(n.FRAMEBUFFER,ee.__webglMultisampledFramebuffer);for(let Ve=0;Ve0)for(let Ve=0;Ve0)for(let Ve=0;Ve0&&Ue(U)===!1){const I=U.isWebGLMultipleRenderTargets?U.texture:[U.texture],ee=U.width,we=U.height;let ne=n.COLOR_BUFFER_BIT;const pe=[],De=U.stencilBuffer?n.DEPTH_STENCIL_ATTACHMENT:n.DEPTH_ATTACHMENT,Le=r.get(U),Ve=U.isWebGLMultipleRenderTargets===!0;if(Ve)for(let ot=0;ot0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&I.__useRenderToTexture!==!1}function Pe(U){const I=o.render.frame;h.get(U)!==I&&(h.set(U,I),U.update())}function Re(U,I){const ee=U.colorSpace,we=U.format,ne=U.type;return U.isCompressedTexture===!0||U.isVideoTexture===!0||U.format===L1||ee!==er&&ee!==ti&&(tn.getTransfer(ee)===bn?a===!1?e.has("EXT_sRGB")===!0&&we===ei?(U.format=L1,U.minFilter=Cr,U.generateMipmaps=!1):I=tO.sRGBToLinear(I):(we!==ei||ne!==To)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",ee)),I}this.allocateTextureUnit=Z,this.resetTextureUnits=B,this.setTexture2D=ue,this.setTexture2DArray=xe,this.setTexture3D=Ce,this.setTextureCube=me,this.rebindTextures=oe,this.setupRenderTarget=ge,this.updateRenderTargetMipmap=Ee,this.updateMultisampleRenderTarget=Te,this.setupDepthRenderbuffer=G,this.setupFrameBufferTexture=Ye,this.useMultisampledRTT=Ue}function lAt(n,e,t){const r=t.isWebGL2;function i(s,o=ti){let a;const l=tn.getTransfer(o);if(s===To)return n.UNSIGNED_BYTE;if(s===YI)return n.UNSIGNED_SHORT_4_4_4_4;if(s===$I)return n.UNSIGNED_SHORT_5_5_5_1;if(s===MSt)return n.BYTE;if(s===NSt)return n.SHORT;if(s===$y)return n.UNSIGNED_SHORT;if(s===qI)return n.INT;if(s===bo)return n.UNSIGNED_INT;if(s===Ts)return n.FLOAT;if(s===_d)return r?n.HALF_FLOAT:(a=e.get("OES_texture_half_float"),a!==null?a.HALF_FLOAT_OES:null);if(s===kSt)return n.ALPHA;if(s===ei)return n.RGBA;if(s===ISt)return n.LUMINANCE;if(s===OSt)return n.LUMINANCE_ALPHA;if(s===ha)return n.DEPTH_COMPONENT;if(s===Pl)return n.DEPTH_STENCIL;if(s===L1)return a=e.get("EXT_sRGB"),a!==null?a.SRGB_ALPHA_EXT:null;if(s===DSt)return n.RED;if(s===WI)return n.RED_INTEGER;if(s===LSt)return n.RG;if(s===KI)return n.RG_INTEGER;if(s===jI)return n.RGBA_INTEGER;if(s===Q0||s===X0||s===Z0||s===J0)if(l===bn)if(a=e.get("WEBGL_compressed_texture_s3tc_srgb"),a!==null){if(s===Q0)return a.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(s===X0)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(s===Z0)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(s===J0)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(a=e.get("WEBGL_compressed_texture_s3tc"),a!==null){if(s===Q0)return a.COMPRESSED_RGB_S3TC_DXT1_EXT;if(s===X0)return a.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(s===Z0)return a.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(s===J0)return a.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(s===RA||s===MA||s===NA||s===kA)if(a=e.get("WEBGL_compressed_texture_pvrtc"),a!==null){if(s===RA)return a.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(s===MA)return a.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(s===NA)return a.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(s===kA)return a.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(s===QI)return a=e.get("WEBGL_compressed_texture_etc1"),a!==null?a.COMPRESSED_RGB_ETC1_WEBGL:null;if(s===IA||s===OA)if(a=e.get("WEBGL_compressed_texture_etc"),a!==null){if(s===IA)return l===bn?a.COMPRESSED_SRGB8_ETC2:a.COMPRESSED_RGB8_ETC2;if(s===OA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:a.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(s===DA||s===LA||s===PA||s===FA||s===UA||s===BA||s===GA||s===zA||s===VA||s===HA||s===qA||s===YA||s===$A||s===WA)if(a=e.get("WEBGL_compressed_texture_astc"),a!==null){if(s===DA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:a.COMPRESSED_RGBA_ASTC_4x4_KHR;if(s===LA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:a.COMPRESSED_RGBA_ASTC_5x4_KHR;if(s===PA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:a.COMPRESSED_RGBA_ASTC_5x5_KHR;if(s===FA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:a.COMPRESSED_RGBA_ASTC_6x5_KHR;if(s===UA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:a.COMPRESSED_RGBA_ASTC_6x6_KHR;if(s===BA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:a.COMPRESSED_RGBA_ASTC_8x5_KHR;if(s===GA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:a.COMPRESSED_RGBA_ASTC_8x6_KHR;if(s===zA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:a.COMPRESSED_RGBA_ASTC_8x8_KHR;if(s===VA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:a.COMPRESSED_RGBA_ASTC_10x5_KHR;if(s===HA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:a.COMPRESSED_RGBA_ASTC_10x6_KHR;if(s===qA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:a.COMPRESSED_RGBA_ASTC_10x8_KHR;if(s===YA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:a.COMPRESSED_RGBA_ASTC_10x10_KHR;if(s===$A)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:a.COMPRESSED_RGBA_ASTC_12x10_KHR;if(s===WA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:a.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(s===eb||s===KA||s===jA)if(a=e.get("EXT_texture_compression_bptc"),a!==null){if(s===eb)return l===bn?a.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:a.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(s===KA)return a.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(s===jA)return a.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(s===PSt||s===QA||s===XA||s===ZA)if(a=e.get("EXT_texture_compression_rgtc"),a!==null){if(s===eb)return a.COMPRESSED_RED_RGTC1_EXT;if(s===QA)return a.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(s===XA)return a.COMPRESSED_RED_GREEN_RGTC2_EXT;if(s===ZA)return a.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return s===pa?r?n.UNSIGNED_INT_24_8:(a=e.get("WEBGL_depth_texture"),a!==null?a.UNSIGNED_INT_24_8_WEBGL:null):n[s]!==void 0?n[s]:null}return{convert:i}}class cAt extends gr{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}class oa extends wn{constructor(){super(),this.isGroup=!0,this.type="Group"}}const dAt={type:"move"};class Tb{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new oa,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return this._targetRay===null&&(this._targetRay=new oa,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new he,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new he),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new oa,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new he,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new he),this._grip}dispatchEvent(e){return this._targetRay!==null&&this._targetRay.dispatchEvent(e),this._grip!==null&&this._grip.dispatchEvent(e),this._hand!==null&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const t=this._hand;if(t)for(const r of e.hand.values())this._getHandJoint(t,r)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(e,t,r){let i=null,s=null,o=null;const a=this._targetRay,l=this._grip,d=this._hand;if(e&&t.session.visibilityState!=="visible-blurred"){if(d&&e.hand){o=!0;for(const v of e.hand.values()){const b=t.getJointPose(v,r),_=this._getHandJoint(d,v);b!==null&&(_.matrix.fromArray(b.transform.matrix),_.matrix.decompose(_.position,_.rotation,_.scale),_.matrixWorldNeedsUpdate=!0,_.jointRadius=b.radius),_.visible=b!==null}const u=d.joints["index-finger-tip"],m=d.joints["thumb-tip"],f=u.position.distanceTo(m.position),g=.02,h=.005;d.inputState.pinching&&f>g+h?(d.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!d.inputState.pinching&&f<=g-h&&(d.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else l!==null&&e.gripSpace&&(s=t.getPose(e.gripSpace,r),s!==null&&(l.matrix.fromArray(s.transform.matrix),l.matrix.decompose(l.position,l.rotation,l.scale),l.matrixWorldNeedsUpdate=!0,s.linearVelocity?(l.hasLinearVelocity=!0,l.linearVelocity.copy(s.linearVelocity)):l.hasLinearVelocity=!1,s.angularVelocity?(l.hasAngularVelocity=!0,l.angularVelocity.copy(s.angularVelocity)):l.hasAngularVelocity=!1));a!==null&&(i=t.getPose(e.targetRaySpace,r),i===null&&s!==null&&(i=s),i!==null&&(a.matrix.fromArray(i.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),a.matrixWorldNeedsUpdate=!0,i.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(i.linearVelocity)):a.hasLinearVelocity=!1,i.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(i.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(dAt)))}return a!==null&&(a.visible=i!==null),l!==null&&(l.visible=s!==null),d!==null&&(d.visible=o!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){const r=new oa;r.matrixAutoUpdate=!1,r.visible=!1,e.joints[t.jointName]=r,e.add(r)}return e.joints[t.jointName]}}class uAt extends sc{constructor(e,t){super();const r=this;let i=null,s=1,o=null,a="local-floor",l=1,d=null,u=null,m=null,f=null,g=null,h=null;const v=t.getContextAttributes();let b=null,_=null;const y=[],E=[],x=new $t;let A=null;const w=new gr;w.layers.enable(1),w.viewport=new mn;const N=new gr;N.layers.enable(2),N.viewport=new mn;const L=[w,N],C=new cAt;C.layers.enable(1),C.layers.enable(2);let k=null,H=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(me){let Ae=y[me];return Ae===void 0&&(Ae=new Tb,y[me]=Ae),Ae.getTargetRaySpace()},this.getControllerGrip=function(me){let Ae=y[me];return Ae===void 0&&(Ae=new Tb,y[me]=Ae),Ae.getGripSpace()},this.getHand=function(me){let Ae=y[me];return Ae===void 0&&(Ae=new Tb,y[me]=Ae),Ae.getHandSpace()};function q(me){const Ae=E.indexOf(me.inputSource);if(Ae===-1)return;const Fe=y[Ae];Fe!==void 0&&(Fe.update(me.inputSource,me.frame,d||o),Fe.dispatchEvent({type:me.type,data:me.inputSource}))}function ie(){i.removeEventListener("select",q),i.removeEventListener("selectstart",q),i.removeEventListener("selectend",q),i.removeEventListener("squeeze",q),i.removeEventListener("squeezestart",q),i.removeEventListener("squeezeend",q),i.removeEventListener("end",ie),i.removeEventListener("inputsourceschange",D);for(let me=0;me=0&&(E[ze]=null,y[ze].disconnect(Fe))}for(let Ae=0;Ae=E.length){E.push(Fe),ze=ye;break}else if(E[ye]===null){E[ye]=Fe,ze=ye;break}if(ze===-1)break}const te=y[ze];te&&te.connect(Fe)}}const $=new he,K=new he;function B(me,Ae,Fe){$.setFromMatrixPosition(Ae.matrixWorld),K.setFromMatrixPosition(Fe.matrixWorld);const ze=$.distanceTo(K),te=Ae.projectionMatrix.elements,ye=Fe.projectionMatrix.elements,Se=te[14]/(te[10]-1),Oe=te[14]/(te[10]+1),Ye=(te[9]+1)/te[5],le=(te[9]-1)/te[5],V=(te[8]-1)/te[0],G=(ye[8]+1)/ye[0],oe=Se*V,ge=Se*G,Ee=ze/(-V+G),Te=Ee*-V;Ae.matrixWorld.decompose(me.position,me.quaternion,me.scale),me.translateX(Te),me.translateZ(Ee),me.matrixWorld.compose(me.position,me.quaternion,me.scale),me.matrixWorldInverse.copy(me.matrixWorld).invert();const fe=Se+Ee,Ue=Oe+Ee,Pe=oe-Te,Re=ge+(ze-Te),U=Ye*Oe/Ue*fe,I=le*Oe/Ue*fe;me.projectionMatrix.makePerspective(Pe,Re,U,I,fe,Ue),me.projectionMatrixInverse.copy(me.projectionMatrix).invert()}function Z(me,Ae){Ae===null?me.matrixWorld.copy(me.matrix):me.matrixWorld.multiplyMatrices(Ae.matrixWorld,me.matrix),me.matrixWorldInverse.copy(me.matrixWorld).invert()}this.updateCamera=function(me){if(i===null)return;C.near=N.near=w.near=me.near,C.far=N.far=w.far=me.far,(k!==C.near||H!==C.far)&&(i.updateRenderState({depthNear:C.near,depthFar:C.far}),k=C.near,H=C.far);const Ae=me.parent,Fe=C.cameras;Z(C,Ae);for(let ze=0;ze0&&(b.alphaTest.value=_.alphaTest);const y=e.get(_).envMap;if(y&&(b.envMap.value=y,b.flipEnvMap.value=y.isCubeTexture&&y.isRenderTargetTexture===!1?-1:1,b.reflectivity.value=_.reflectivity,b.ior.value=_.ior,b.refractionRatio.value=_.refractionRatio),_.lightMap){b.lightMap.value=_.lightMap;const E=n._useLegacyLights===!0?Math.PI:1;b.lightMapIntensity.value=_.lightMapIntensity*E,t(_.lightMap,b.lightMapTransform)}_.aoMap&&(b.aoMap.value=_.aoMap,b.aoMapIntensity.value=_.aoMapIntensity,t(_.aoMap,b.aoMapTransform))}function o(b,_){b.diffuse.value.copy(_.color),b.opacity.value=_.opacity,_.map&&(b.map.value=_.map,t(_.map,b.mapTransform))}function a(b,_){b.dashSize.value=_.dashSize,b.totalSize.value=_.dashSize+_.gapSize,b.scale.value=_.scale}function l(b,_,y,E){b.diffuse.value.copy(_.color),b.opacity.value=_.opacity,b.size.value=_.size*y,b.scale.value=E*.5,_.map&&(b.map.value=_.map,t(_.map,b.uvTransform)),_.alphaMap&&(b.alphaMap.value=_.alphaMap,t(_.alphaMap,b.alphaMapTransform)),_.alphaTest>0&&(b.alphaTest.value=_.alphaTest)}function d(b,_){b.diffuse.value.copy(_.color),b.opacity.value=_.opacity,b.rotation.value=_.rotation,_.map&&(b.map.value=_.map,t(_.map,b.mapTransform)),_.alphaMap&&(b.alphaMap.value=_.alphaMap,t(_.alphaMap,b.alphaMapTransform)),_.alphaTest>0&&(b.alphaTest.value=_.alphaTest)}function u(b,_){b.specular.value.copy(_.specular),b.shininess.value=Math.max(_.shininess,1e-4)}function m(b,_){_.gradientMap&&(b.gradientMap.value=_.gradientMap)}function f(b,_){b.metalness.value=_.metalness,_.metalnessMap&&(b.metalnessMap.value=_.metalnessMap,t(_.metalnessMap,b.metalnessMapTransform)),b.roughness.value=_.roughness,_.roughnessMap&&(b.roughnessMap.value=_.roughnessMap,t(_.roughnessMap,b.roughnessMapTransform)),e.get(_).envMap&&(b.envMapIntensity.value=_.envMapIntensity)}function g(b,_,y){b.ior.value=_.ior,_.sheen>0&&(b.sheenColor.value.copy(_.sheenColor).multiplyScalar(_.sheen),b.sheenRoughness.value=_.sheenRoughness,_.sheenColorMap&&(b.sheenColorMap.value=_.sheenColorMap,t(_.sheenColorMap,b.sheenColorMapTransform)),_.sheenRoughnessMap&&(b.sheenRoughnessMap.value=_.sheenRoughnessMap,t(_.sheenRoughnessMap,b.sheenRoughnessMapTransform))),_.clearcoat>0&&(b.clearcoat.value=_.clearcoat,b.clearcoatRoughness.value=_.clearcoatRoughness,_.clearcoatMap&&(b.clearcoatMap.value=_.clearcoatMap,t(_.clearcoatMap,b.clearcoatMapTransform)),_.clearcoatRoughnessMap&&(b.clearcoatRoughnessMap.value=_.clearcoatRoughnessMap,t(_.clearcoatRoughnessMap,b.clearcoatRoughnessMapTransform)),_.clearcoatNormalMap&&(b.clearcoatNormalMap.value=_.clearcoatNormalMap,t(_.clearcoatNormalMap,b.clearcoatNormalMapTransform),b.clearcoatNormalScale.value.copy(_.clearcoatNormalScale),_.side===kr&&b.clearcoatNormalScale.value.negate())),_.iridescence>0&&(b.iridescence.value=_.iridescence,b.iridescenceIOR.value=_.iridescenceIOR,b.iridescenceThicknessMinimum.value=_.iridescenceThicknessRange[0],b.iridescenceThicknessMaximum.value=_.iridescenceThicknessRange[1],_.iridescenceMap&&(b.iridescenceMap.value=_.iridescenceMap,t(_.iridescenceMap,b.iridescenceMapTransform)),_.iridescenceThicknessMap&&(b.iridescenceThicknessMap.value=_.iridescenceThicknessMap,t(_.iridescenceThicknessMap,b.iridescenceThicknessMapTransform))),_.transmission>0&&(b.transmission.value=_.transmission,b.transmissionSamplerMap.value=y.texture,b.transmissionSamplerSize.value.set(y.width,y.height),_.transmissionMap&&(b.transmissionMap.value=_.transmissionMap,t(_.transmissionMap,b.transmissionMapTransform)),b.thickness.value=_.thickness,_.thicknessMap&&(b.thicknessMap.value=_.thicknessMap,t(_.thicknessMap,b.thicknessMapTransform)),b.attenuationDistance.value=_.attenuationDistance,b.attenuationColor.value.copy(_.attenuationColor)),_.anisotropy>0&&(b.anisotropyVector.value.set(_.anisotropy*Math.cos(_.anisotropyRotation),_.anisotropy*Math.sin(_.anisotropyRotation)),_.anisotropyMap&&(b.anisotropyMap.value=_.anisotropyMap,t(_.anisotropyMap,b.anisotropyMapTransform))),b.specularIntensity.value=_.specularIntensity,b.specularColor.value.copy(_.specularColor),_.specularColorMap&&(b.specularColorMap.value=_.specularColorMap,t(_.specularColorMap,b.specularColorMapTransform)),_.specularIntensityMap&&(b.specularIntensityMap.value=_.specularIntensityMap,t(_.specularIntensityMap,b.specularIntensityMapTransform))}function h(b,_){_.matcap&&(b.matcap.value=_.matcap)}function v(b,_){const y=e.get(_).light;b.referencePosition.value.setFromMatrixPosition(y.matrixWorld),b.nearDistance.value=y.shadow.camera.near,b.farDistance.value=y.shadow.camera.far}return{refreshFogUniforms:r,refreshMaterialUniforms:i}}function hAt(n,e,t,r){let i={},s={},o=[];const a=t.isWebGL2?n.getParameter(n.MAX_UNIFORM_BUFFER_BINDINGS):0;function l(y,E){const x=E.program;r.uniformBlockBinding(y,x)}function d(y,E){let x=i[y.id];x===void 0&&(h(y),x=u(y),i[y.id]=x,y.addEventListener("dispose",b));const A=E.program;r.updateUBOMapping(y,A);const w=e.render.frame;s[y.id]!==w&&(f(y),s[y.id]=w)}function u(y){const E=m();y.__bindingPointIndex=E;const x=n.createBuffer(),A=y.__size,w=y.usage;return n.bindBuffer(n.UNIFORM_BUFFER,x),n.bufferData(n.UNIFORM_BUFFER,A,w),n.bindBuffer(n.UNIFORM_BUFFER,null),n.bindBufferBase(n.UNIFORM_BUFFER,E,x),x}function m(){for(let y=0;y0){w=x%A;const q=A-w;w!==0&&q-k.boundary<0&&(x+=A-w,C.__offset=x)}x+=k.storage}return w=x%A,w>0&&(x+=A-w),y.__size=x,y.__cache={},this}function v(y){const E={boundary:0,storage:0};return typeof y=="number"?(E.boundary=4,E.storage=4):y.isVector2?(E.boundary=8,E.storage=8):y.isVector3||y.isColor?(E.boundary=16,E.storage=12):y.isVector4?(E.boundary=16,E.storage=16):y.isMatrix3?(E.boundary=48,E.storage=48):y.isMatrix4?(E.boundary=64,E.storage=64):y.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",y),E}function b(y){const E=y.target;E.removeEventListener("dispose",b);const x=o.indexOf(E.__bindingPointIndex);o.splice(x,1),n.deleteBuffer(i[E.id]),delete i[E.id],delete s[E.id]}function _(){for(const y in i)n.deleteBuffer(i[y]);o=[],i={},s={}}return{bind:l,update:d,dispose:_}}class bO{constructor(e={}){const{canvas:t=d2t(),context:r=null,depth:i=!0,stencil:s=!0,alpha:o=!1,antialias:a=!1,premultipliedAlpha:l=!0,preserveDrawingBuffer:d=!1,powerPreference:u="default",failIfMajorPerformanceCaveat:m=!1}=e;this.isWebGLRenderer=!0;let f;r!==null?f=r.getContextAttributes().alpha:f=o;const g=new Uint32Array(4),h=new Int32Array(4);let v=null,b=null;const _=[],y=[];this.domElement=t,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=Mn,this._useLegacyLights=!1,this.toneMapping=xo,this.toneMappingExposure=1;const E=this;let x=!1,A=0,w=0,N=null,L=-1,C=null;const k=new mn,H=new mn;let q=null;const ie=new Nt(0);let D=0,$=t.width,K=t.height,B=1,Z=null,ce=null;const ue=new mn(0,0,$,K),xe=new mn(0,0,$,K);let Ce=!1;const me=new Qy;let Ae=!1,Fe=!1,ze=null;const te=new Ht,ye=new $t,Se=new he,Oe={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function Ye(){return N===null?B:1}let le=r;function V(z,be){for(let Ne=0;Ne{function ut(){if(ke.forEach(function(_t){Te.get(_t).currentProgram.isReady()&&ke.delete(_t)}),ke.size===0){Me(z);return}setTimeout(ut,10)}G.get("KHR_parallel_shader_compile")!==null?ut():setTimeout(ut,10)})};let jt=null;function Un(z){jt&&jt(z)}function tr(){nr.stop()}function un(){nr.start()}const nr=new uO;nr.setAnimationLoop(Un),typeof self<"u"&&nr.setContext(self),this.setAnimationLoop=function(z){jt=z,lt.setAnimationLoop(z),z===null?nr.stop():nr.start()},lt.addEventListener("sessionstart",tr),lt.addEventListener("sessionend",un),this.render=function(z,be){if(be!==void 0&&be.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(x===!0)return;z.matrixWorldAutoUpdate===!0&&z.updateMatrixWorld(),be.parent===null&&be.matrixWorldAutoUpdate===!0&&be.updateMatrixWorld(),lt.enabled===!0&<.isPresenting===!0&&(lt.cameraAutoUpdate===!0&<.updateCamera(be),be=lt.getCamera()),z.isScene===!0&&z.onBeforeRender(E,z,be,N),b=pe.get(z,y.length),b.init(),y.push(b),te.multiplyMatrices(be.projectionMatrix,be.matrixWorldInverse),me.setFromProjectionMatrix(te),Fe=this.localClippingEnabled,Ae=De.init(this.clippingPlanes,Fe),v=ne.get(z,_.length),v.init(),_.push(v),bi(z,be,0,E.sortObjects),v.finish(),E.sortObjects===!0&&v.sort(Z,ce),this.info.render.frame++,Ae===!0&&De.beginShadows();const Ne=b.state.shadowsArray;if(Le.render(Ne,z,be),Ae===!0&&De.endShadows(),this.info.autoReset===!0&&this.info.reset(),Ve.render(v,z),b.setupLights(E._useLegacyLights),be.isArrayCamera){const ke=be.cameras;for(let Me=0,ut=ke.length;Me0?b=y[y.length-1]:b=null,_.pop(),_.length>0?v=_[_.length-1]:v=null};function bi(z,be,Ne,ke){if(z.visible===!1)return;if(z.layers.test(be.layers)){if(z.isGroup)Ne=z.renderOrder;else if(z.isLOD)z.autoUpdate===!0&&z.update(be);else if(z.isLight)b.pushLight(z),z.castShadow&&b.pushShadow(z);else if(z.isSprite){if(!z.frustumCulled||me.intersectsSprite(z)){ke&&Se.setFromMatrixPosition(z.matrixWorld).applyMatrix4(te);const _t=I.update(z),Ct=z.material;Ct.visible&&v.push(z,_t,Ct,Ne,Se.z,null)}}else if((z.isMesh||z.isLine||z.isPoints)&&(!z.frustumCulled||me.intersectsObject(z))){const _t=I.update(z),Ct=z.material;if(ke&&(z.boundingSphere!==void 0?(z.boundingSphere===null&&z.computeBoundingSphere(),Se.copy(z.boundingSphere.center)):(_t.boundingSphere===null&&_t.computeBoundingSphere(),Se.copy(_t.boundingSphere.center)),Se.applyMatrix4(z.matrixWorld).applyMatrix4(te)),Array.isArray(Ct)){const Mt=_t.groups;for(let Bt=0,Ot=Mt.length;Bt0&&mE(Me,ut,be,Ne),ke&&ge.viewport(k.copy(ke)),Me.length>0&&uc(Me,be,Ne),ut.length>0&&uc(ut,be,Ne),_t.length>0&&uc(_t,be,Ne),ge.buffers.depth.setTest(!0),ge.buffers.depth.setMask(!0),ge.buffers.color.setMask(!0),ge.setPolygonOffset(!1)}function mE(z,be,Ne,ke){if((Ne.isScene===!0?Ne.overrideMaterial:null)!==null)return;const ut=oe.isWebGL2;ze===null&&(ze=new Ta(1,1,{generateMipmaps:!0,type:G.has("EXT_color_buffer_half_float")?_d:To,minFilter:xa,samples:ut?4:0})),E.getDrawingBufferSize(ye),ut?ze.setSize(ye.x,ye.y):ze.setSize(ah(ye.x),ah(ye.y));const _t=E.getRenderTarget();E.setRenderTarget(ze),E.getClearColor(ie),D=E.getClearAlpha(),D<1&&E.setClearColor(16777215,.5),E.clear();const Ct=E.toneMapping;E.toneMapping=xo,uc(z,Ne,ke),fe.updateMultisampleRenderTarget(ze),fe.updateRenderTargetMipmap(ze);let Mt=!1;for(let Bt=0,Ot=be.length;Bt0),Lt=!!Ne.morphAttributes.position,An=!!Ne.morphAttributes.normal,Sr=!!Ne.morphAttributes.color;let Bn=xo;ke.toneMapped&&(N===null||N.isXRRenderTarget===!0)&&(Bn=E.toneMapping);const Li=Ne.morphAttributes.position||Ne.morphAttributes.normal||Ne.morphAttributes.color,vn=Li!==void 0?Li.length:0,zt=Te.get(ke),Gd=b.state.lights;if(Ae===!0&&(Fe===!0||z!==C)){const Dr=z===C&&ke.id===L;De.setState(ke,z,Dr)}let Sn=!1;ke.version===zt.__version?(zt.needsLights&&zt.lightsStateVersion!==Gd.state.version||zt.outputColorSpace!==Ct||Me.isBatchedMesh&&zt.batching===!1||!Me.isBatchedMesh&&zt.batching===!0||Me.isInstancedMesh&&zt.instancing===!1||!Me.isInstancedMesh&&zt.instancing===!0||Me.isSkinnedMesh&&zt.skinning===!1||!Me.isSkinnedMesh&&zt.skinning===!0||Me.isInstancedMesh&&zt.instancingColor===!0&&Me.instanceColor===null||Me.isInstancedMesh&&zt.instancingColor===!1&&Me.instanceColor!==null||zt.envMap!==Mt||ke.fog===!0&&zt.fog!==ut||zt.numClippingPlanes!==void 0&&(zt.numClippingPlanes!==De.numPlanes||zt.numIntersection!==De.numIntersection)||zt.vertexAlphas!==Bt||zt.vertexTangents!==Ot||zt.morphTargets!==Lt||zt.morphNormals!==An||zt.morphColors!==Sr||zt.toneMapping!==Bn||oe.isWebGL2===!0&&zt.morphTargetsCount!==vn)&&(Sn=!0):(Sn=!0,zt.__version=ke.version);let Hs=zt.currentProgram;Sn===!0&&(Hs=pc(ke,be,Me));let _m=!1,Ia=!1,zd=!1;const Kn=Hs.getUniforms(),qs=zt.uniforms;if(ge.useProgram(Hs.program)&&(_m=!0,Ia=!0,zd=!0),ke.id!==L&&(L=ke.id,Ia=!0),_m||C!==z){Kn.setValue(le,"projectionMatrix",z.projectionMatrix),Kn.setValue(le,"viewMatrix",z.matrixWorldInverse);const Dr=Kn.map.cameraPosition;Dr!==void 0&&Dr.setValue(le,Se.setFromMatrixPosition(z.matrixWorld)),oe.logarithmicDepthBuffer&&Kn.setValue(le,"logDepthBufFC",2/(Math.log(z.far+1)/Math.LN2)),(ke.isMeshPhongMaterial||ke.isMeshToonMaterial||ke.isMeshLambertMaterial||ke.isMeshBasicMaterial||ke.isMeshStandardMaterial||ke.isShaderMaterial)&&Kn.setValue(le,"isOrthographic",z.isOrthographicCamera===!0),C!==z&&(C=z,Ia=!0,zd=!0)}if(Me.isSkinnedMesh){Kn.setOptional(le,Me,"bindMatrix"),Kn.setOptional(le,Me,"bindMatrixInverse");const Dr=Me.skeleton;Dr&&(oe.floatVertexTextures?(Dr.boneTexture===null&&Dr.computeBoneTexture(),Kn.setValue(le,"boneTexture",Dr.boneTexture,fe)):console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."))}Me.isBatchedMesh&&(Kn.setOptional(le,Me,"batchingTexture"),Kn.setValue(le,"batchingTexture",Me._matricesTexture,fe));const Vd=Ne.morphAttributes;if((Vd.position!==void 0||Vd.normal!==void 0||Vd.color!==void 0&&oe.isWebGL2===!0)&&ot.update(Me,Ne,Hs),(Ia||zt.receiveShadow!==Me.receiveShadow)&&(zt.receiveShadow=Me.receiveShadow,Kn.setValue(le,"receiveShadow",Me.receiveShadow)),ke.isMeshGouraudMaterial&&ke.envMap!==null&&(qs.envMap.value=Mt,qs.flipEnvMap.value=Mt.isCubeTexture&&Mt.isRenderTargetTexture===!1?-1:1),Ia&&(Kn.setValue(le,"toneMappingExposure",E.toneMappingExposure),zt.needsLights&&gE(qs,zd),ut&&ke.fog===!0&&we.refreshFogUniforms(qs,ut),we.refreshMaterialUniforms(qs,ke,B,K,ze),fp.upload(le,fm(zt),qs,fe)),ke.isShaderMaterial&&ke.uniformsNeedUpdate===!0&&(fp.upload(le,fm(zt),qs,fe),ke.uniformsNeedUpdate=!1),ke.isSpriteMaterial&&Kn.setValue(le,"center",Me.center),Kn.setValue(le,"modelViewMatrix",Me.modelViewMatrix),Kn.setValue(le,"normalMatrix",Me.normalMatrix),Kn.setValue(le,"modelMatrix",Me.matrixWorld),ke.isShaderMaterial||ke.isRawShaderMaterial){const Dr=ke.uniformsGroups;for(let Hd=0,bE=Dr.length;Hd0&&fe.useMultisampledRTT(z)===!1?Me=Te.get(z).__webglMultisampledFramebuffer:Array.isArray(Ot)?Me=Ot[Ne]:Me=Ot,k.copy(z.viewport),H.copy(z.scissor),q=z.scissorTest}else k.copy(ue).multiplyScalar(B).floor(),H.copy(xe).multiplyScalar(B).floor(),q=Ce;if(ge.bindFramebuffer(le.FRAMEBUFFER,Me)&&oe.drawBuffers&&ke&&ge.drawBuffers(z,Me),ge.viewport(k),ge.scissor(H),ge.setScissorTest(q),ut){const Mt=Te.get(z.texture);le.framebufferTexture2D(le.FRAMEBUFFER,le.COLOR_ATTACHMENT0,le.TEXTURE_CUBE_MAP_POSITIVE_X+be,Mt.__webglTexture,Ne)}else if(_t){const Mt=Te.get(z.texture),Bt=be||0;le.framebufferTextureLayer(le.FRAMEBUFFER,le.COLOR_ATTACHMENT0,Mt.__webglTexture,Ne||0,Bt)}L=-1},this.readRenderTargetPixels=function(z,be,Ne,ke,Me,ut,_t){if(!(z&&z.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let Ct=Te.get(z).__webglFramebuffer;if(z.isWebGLCubeRenderTarget&&_t!==void 0&&(Ct=Ct[_t]),Ct){ge.bindFramebuffer(le.FRAMEBUFFER,Ct);try{const Mt=z.texture,Bt=Mt.format,Ot=Mt.type;if(Bt!==ei&&Kt.convert(Bt)!==le.getParameter(le.IMPLEMENTATION_COLOR_READ_FORMAT)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}const Lt=Ot===_d&&(G.has("EXT_color_buffer_half_float")||oe.isWebGL2&&G.has("EXT_color_buffer_float"));if(Ot!==To&&Kt.convert(Ot)!==le.getParameter(le.IMPLEMENTATION_COLOR_READ_TYPE)&&!(Ot===Ts&&(oe.isWebGL2||G.has("OES_texture_float")||G.has("WEBGL_color_buffer_float")))&&!Lt){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}be>=0&&be<=z.width-ke&&Ne>=0&&Ne<=z.height-Me&&le.readPixels(be,Ne,ke,Me,Kt.convert(Bt),Kt.convert(Ot),ut)}finally{const Mt=N!==null?Te.get(N).__webglFramebuffer:null;ge.bindFramebuffer(le.FRAMEBUFFER,Mt)}}},this.copyFramebufferToTexture=function(z,be,Ne=0){const ke=Math.pow(2,-Ne),Me=Math.floor(be.image.width*ke),ut=Math.floor(be.image.height*ke);fe.setTexture2D(be,0),le.copyTexSubImage2D(le.TEXTURE_2D,Ne,0,0,z.x,z.y,Me,ut),ge.unbindTexture()},this.copyTextureToTexture=function(z,be,Ne,ke=0){const Me=be.image.width,ut=be.image.height,_t=Kt.convert(Ne.format),Ct=Kt.convert(Ne.type);fe.setTexture2D(Ne,0),le.pixelStorei(le.UNPACK_FLIP_Y_WEBGL,Ne.flipY),le.pixelStorei(le.UNPACK_PREMULTIPLY_ALPHA_WEBGL,Ne.premultiplyAlpha),le.pixelStorei(le.UNPACK_ALIGNMENT,Ne.unpackAlignment),be.isDataTexture?le.texSubImage2D(le.TEXTURE_2D,ke,z.x,z.y,Me,ut,_t,Ct,be.image.data):be.isCompressedTexture?le.compressedTexSubImage2D(le.TEXTURE_2D,ke,z.x,z.y,be.mipmaps[0].width,be.mipmaps[0].height,_t,be.mipmaps[0].data):le.texSubImage2D(le.TEXTURE_2D,ke,z.x,z.y,_t,Ct,be.image),ke===0&&Ne.generateMipmaps&&le.generateMipmap(le.TEXTURE_2D),ge.unbindTexture()},this.copyTextureToTexture3D=function(z,be,Ne,ke,Me=0){if(E.isWebGL1Renderer){console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");return}const ut=z.max.x-z.min.x+1,_t=z.max.y-z.min.y+1,Ct=z.max.z-z.min.z+1,Mt=Kt.convert(ke.format),Bt=Kt.convert(ke.type);let Ot;if(ke.isData3DTexture)fe.setTexture3D(ke,0),Ot=le.TEXTURE_3D;else if(ke.isDataArrayTexture)fe.setTexture2DArray(ke,0),Ot=le.TEXTURE_2D_ARRAY;else{console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");return}le.pixelStorei(le.UNPACK_FLIP_Y_WEBGL,ke.flipY),le.pixelStorei(le.UNPACK_PREMULTIPLY_ALPHA_WEBGL,ke.premultiplyAlpha),le.pixelStorei(le.UNPACK_ALIGNMENT,ke.unpackAlignment);const Lt=le.getParameter(le.UNPACK_ROW_LENGTH),An=le.getParameter(le.UNPACK_IMAGE_HEIGHT),Sr=le.getParameter(le.UNPACK_SKIP_PIXELS),Bn=le.getParameter(le.UNPACK_SKIP_ROWS),Li=le.getParameter(le.UNPACK_SKIP_IMAGES),vn=Ne.isCompressedTexture?Ne.mipmaps[0]:Ne.image;le.pixelStorei(le.UNPACK_ROW_LENGTH,vn.width),le.pixelStorei(le.UNPACK_IMAGE_HEIGHT,vn.height),le.pixelStorei(le.UNPACK_SKIP_PIXELS,z.min.x),le.pixelStorei(le.UNPACK_SKIP_ROWS,z.min.y),le.pixelStorei(le.UNPACK_SKIP_IMAGES,z.min.z),Ne.isDataTexture||Ne.isData3DTexture?le.texSubImage3D(Ot,Me,be.x,be.y,be.z,ut,_t,Ct,Mt,Bt,vn.data):Ne.isCompressedArrayTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),le.compressedTexSubImage3D(Ot,Me,be.x,be.y,be.z,ut,_t,Ct,Mt,vn.data)):le.texSubImage3D(Ot,Me,be.x,be.y,be.z,ut,_t,Ct,Mt,Bt,vn),le.pixelStorei(le.UNPACK_ROW_LENGTH,Lt),le.pixelStorei(le.UNPACK_IMAGE_HEIGHT,An),le.pixelStorei(le.UNPACK_SKIP_PIXELS,Sr),le.pixelStorei(le.UNPACK_SKIP_ROWS,Bn),le.pixelStorei(le.UNPACK_SKIP_IMAGES,Li),Me===0&&ke.generateMipmaps&&le.generateMipmap(Ot),ge.unbindTexture()},this.initTexture=function(z){z.isCubeTexture?fe.setTextureCube(z,0):z.isData3DTexture?fe.setTexture3D(z,0):z.isDataArrayTexture||z.isCompressedArrayTexture?fe.setTexture2DArray(z,0):fe.setTexture2D(z,0),ge.unbindTexture()},this.resetState=function(){A=0,w=0,N=null,ge.reset(),ft.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return ws}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const t=this.getContext();t.drawingBufferColorSpace=e===Ky?"display-p3":"srgb",t.unpackColorSpace=tn.workingColorSpace===om?"display-p3":"srgb"}get physicallyCorrectLights(){return console.warn("THREE.WebGLRenderer: The property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead."),!this.useLegacyLights}set physicallyCorrectLights(e){console.warn("THREE.WebGLRenderer: The property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead."),this.useLegacyLights=!e}get outputEncoding(){return console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace===Mn?ma:ZI}set outputEncoding(e){console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace=e===ma?Mn:er}get useLegacyLights(){return console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights}set useLegacyLights(e){console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights=e}}class mAt extends bO{}mAt.prototype.isWebGL1Renderer=!0;class fAt extends wn{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(e,t),e.background!==null&&(this.background=e.background.clone()),e.environment!==null&&(this.environment=e.environment.clone()),e.fog!==null&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,e.overrideMaterial!==null&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const t=super.toJSON(e);return this.fog!==null&&(t.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(t.object.backgroundIntensity=this.backgroundIntensity),t}}class gAt{constructor(e,t){this.isInterleavedBuffer=!0,this.array=e,this.stride=t,this.count=e!==void 0?e.length/t:0,this.usage=D1,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.version=0,this.uuid=Ri()}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return console.warn('THREE.InterleavedBuffer: "updateRange" is deprecated and removed in r169. Use "addUpdateRange()" instead.'),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,t,r){e*=this.stride,r*=t.stride;for(let i=0,s=this.stride;il)continue;f.applyMatrix4(this.matrixWorld);const L=e.ray.origin.distanceTo(f);Le.far||t.push({distance:L,point:m.clone().applyMatrix4(this.matrixWorld),index:E,face:null,faceIndex:null,object:this})}}else{const _=Math.max(0,o.start),y=Math.min(b.count,o.start+o.count);for(let E=_,x=y-1;El)continue;f.applyMatrix4(this.matrixWorld);const w=e.ray.origin.distanceTo(f);we.far||t.push({distance:w,point:m.clone().applyMatrix4(this.matrixWorld),index:E,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const t=this.geometry.morphAttributes,r=Object.keys(t);if(r.length>0){const i=t[r[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let s=0,o=i.length;s0){const i=t[r[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let s=0,o=i.length;si.far)return;s.push({distance:d,distanceToRay:Math.sqrt(a),point:l,index:e,face:null,object:o})}}class rE extends Mi{constructor(e){super(),this.isMeshStandardMaterial=!0,this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new Nt(16777215),this.roughness=1,this.metalness=0,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Nt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Wy,this.normalScale=new $t(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapIntensity=1,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.defines={STANDARD:""},this.color.copy(e.color),this.roughness=e.roughness,this.metalness=e.metalness,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.roughnessMap=e.roughnessMap,this.metalnessMap=e.metalnessMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapIntensity=e.envMapIntensity,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class Vs extends rE{constructor(e){super(),this.isMeshPhysicalMaterial=!0,this.defines={STANDARD:"",PHYSICAL:""},this.type="MeshPhysicalMaterial",this.anisotropyRotation=0,this.anisotropyMap=null,this.clearcoatMap=null,this.clearcoatRoughness=0,this.clearcoatRoughnessMap=null,this.clearcoatNormalScale=new $t(1,1),this.clearcoatNormalMap=null,this.ior=1.5,Object.defineProperty(this,"reflectivity",{get:function(){return or(2.5*(this.ior-1)/(this.ior+1),0,1)},set:function(t){this.ior=(1+.4*t)/(1-.4*t)}}),this.iridescenceMap=null,this.iridescenceIOR=1.3,this.iridescenceThicknessRange=[100,400],this.iridescenceThicknessMap=null,this.sheenColor=new Nt(0),this.sheenColorMap=null,this.sheenRoughness=1,this.sheenRoughnessMap=null,this.transmissionMap=null,this.thickness=0,this.thicknessMap=null,this.attenuationDistance=1/0,this.attenuationColor=new Nt(1,1,1),this.specularIntensity=1,this.specularIntensityMap=null,this.specularColor=new Nt(1,1,1),this.specularColorMap=null,this._anisotropy=0,this._clearcoat=0,this._iridescence=0,this._sheen=0,this._transmission=0,this.setValues(e)}get anisotropy(){return this._anisotropy}set anisotropy(e){this._anisotropy>0!=e>0&&this.version++,this._anisotropy=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!=e>0&&this.version++,this._iridescence=e}get sheen(){return this._sheen}set sheen(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:"",PHYSICAL:""},this.anisotropy=e.anisotropy,this.anisotropyRotation=e.anisotropyRotation,this.anisotropyMap=e.anisotropyMap,this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}}class iM extends Mi{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new Nt(16777215),this.specular=new Nt(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Nt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Wy,this.normalScale=new $t(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Yy,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}function ju(n,e,t){return!n||!t&&n.constructor===e?n:typeof e.BYTES_PER_ELEMENT=="number"?new e(n):Array.prototype.slice.call(n)}function CAt(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function AAt(n){function e(i,s){return n[i]-n[s]}const t=n.length,r=new Array(t);for(let i=0;i!==t;++i)r[i]=i;return r.sort(e),r}function sM(n,e,t){const r=n.length,i=new n.constructor(r);for(let s=0,o=0;o!==r;++s){const a=t[s]*e;for(let l=0;l!==e;++l)i[o++]=n[a+l]}return i}function SO(n,e,t,r){let i=1,s=n[0];for(;s!==void 0&&s[r]===void 0;)s=n[i++];if(s===void 0)return;let o=s[r];if(o!==void 0)if(Array.isArray(o))do o=s[r],o!==void 0&&(e.push(s.time),t.push.apply(t,o)),s=n[i++];while(s!==void 0);else if(o.toArray!==void 0)do o=s[r],o!==void 0&&(e.push(s.time),o.toArray(t,t.length)),s=n[i++];while(s!==void 0);else do o=s[r],o!==void 0&&(e.push(s.time),t.push(o)),s=n[i++];while(s!==void 0)}class Fd{constructor(e,t,r,i){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=i!==void 0?i:new t.constructor(r),this.sampleValues=t,this.valueSize=r,this.settings=null,this.DefaultSettings_={}}evaluate(e){const t=this.parameterPositions;let r=this._cachedIndex,i=t[r],s=t[r-1];e:{t:{let o;n:{r:if(!(e=s)){const a=t[1];e=s)break t}o=r,r=0;break n}break e}for(;r>>1;et;)--o;if(++o,s!==0||o!==i){s>=o&&(o=Math.max(o,1),s=o-1);const a=this.getValueSize();this.times=r.slice(s,o),this.values=this.values.slice(s*a,o*a)}return this}validate(){let e=!0;const t=this.getValueSize();t-Math.floor(t)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);const r=this.times,i=this.values,s=r.length;s===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let o=null;for(let a=0;a!==s;a++){const l=r[a];if(typeof l=="number"&&isNaN(l)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,a,l),e=!1;break}if(o!==null&&o>l){console.error("THREE.KeyframeTrack: Out of order keys.",this,a,l,o),e=!1;break}o=l}if(i!==void 0&&CAt(i))for(let a=0,l=i.length;a!==l;++a){const d=i[a];if(isNaN(d)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,a,d),e=!1;break}}return e}optimize(){const e=this.times.slice(),t=this.values.slice(),r=this.getValueSize(),i=this.getInterpolation()===tb,s=e.length-1;let o=1;for(let a=1;a0){e[o]=e[s];for(let a=s*r,l=o*r,d=0;d!==r;++d)t[l+d]=t[a+d];++o}return o!==e.length?(this.times=e.slice(0,o),this.values=t.slice(0,o*r)):(this.times=e,this.values=t),this}clone(){const e=this.times.slice(),t=this.values.slice(),r=this.constructor,i=new r(this.name,e,t);return i.createInterpolant=this.createInterpolant,i}}ls.prototype.TimeBufferType=Float32Array;ls.prototype.ValueBufferType=Float32Array;ls.prototype.DefaultInterpolation=Fl;class ac extends ls{}ac.prototype.ValueTypeName="bool";ac.prototype.ValueBufferType=Array;ac.prototype.DefaultInterpolation=bd;ac.prototype.InterpolantFactoryMethodLinear=void 0;ac.prototype.InterpolantFactoryMethodSmooth=void 0;class xO extends ls{}xO.prototype.ValueTypeName="color";class Gl extends ls{}Gl.prototype.ValueTypeName="number";class kAt extends Fd{constructor(e,t,r,i){super(e,t,r,i)}interpolate_(e,t,r,i){const s=this.resultBuffer,o=this.sampleValues,a=this.valueSize,l=(r-t)/(i-t);let d=e*a;for(let u=d+a;d!==u;d+=4)Uo.slerpFlat(s,0,o,d-a,o,d,l);return s}}class Ca extends ls{InterpolantFactoryMethodLinear(e){return new kAt(this.times,this.values,this.getValueSize(),e)}}Ca.prototype.ValueTypeName="quaternion";Ca.prototype.DefaultInterpolation=Fl;Ca.prototype.InterpolantFactoryMethodSmooth=void 0;class lc extends ls{}lc.prototype.ValueTypeName="string";lc.prototype.ValueBufferType=Array;lc.prototype.DefaultInterpolation=bd;lc.prototype.InterpolantFactoryMethodLinear=void 0;lc.prototype.InterpolantFactoryMethodSmooth=void 0;class zl extends ls{}zl.prototype.ValueTypeName="vector";class IAt{constructor(e,t=-1,r,i=FSt){this.name=e,this.tracks=r,this.duration=t,this.blendMode=i,this.uuid=Ri(),this.duration<0&&this.resetDuration()}static parse(e){const t=[],r=e.tracks,i=1/(e.fps||1);for(let o=0,a=r.length;o!==a;++o)t.push(DAt(r[o]).scale(i));const s=new this(e.name,e.duration,t,e.blendMode);return s.uuid=e.uuid,s}static toJSON(e){const t=[],r=e.tracks,i={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode};for(let s=0,o=r.length;s!==o;++s)t.push(ls.toJSON(r[s]));return i}static CreateFromMorphTargetSequence(e,t,r,i){const s=t.length,o=[];for(let a=0;a1){const m=u[1];let f=i[m];f||(i[m]=f=[]),f.push(d)}}const o=[];for(const a in i)o.push(this.CreateFromMorphTargetSequence(a,i[a],t,r));return o}static parseAnimation(e,t){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const r=function(m,f,g,h,v){if(g.length!==0){const b=[],_=[];SO(g,b,_,h),b.length!==0&&v.push(new m(f,b,_))}},i=[],s=e.name||"default",o=e.fps||30,a=e.blendMode;let l=e.length||-1;const d=e.hierarchy||[];for(let m=0;m{t&&t(s),this.manager.itemEnd(e)},0),s;if(_s[e]!==void 0){_s[e].push({onLoad:t,onProgress:r,onError:i});return}_s[e]=[],_s[e].push({onLoad:t,onProgress:r,onError:i});const o=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),a=this.mimeType,l=this.responseType;fetch(o).then(d=>{if(d.status===200||d.status===0){if(d.status===0&&console.warn("THREE.FileLoader: HTTP Status 0 received."),typeof ReadableStream>"u"||d.body===void 0||d.body.getReader===void 0)return d;const u=_s[e],m=d.body.getReader(),f=d.headers.get("Content-Length")||d.headers.get("X-File-Size"),g=f?parseInt(f):0,h=g!==0;let v=0;const b=new ReadableStream({start(_){y();function y(){m.read().then(({done:E,value:x})=>{if(E)_.close();else{v+=x.byteLength;const A=new ProgressEvent("progress",{lengthComputable:h,loaded:v,total:g});for(let w=0,N=u.length;w{switch(l){case"arraybuffer":return d.arrayBuffer();case"blob":return d.blob();case"document":return d.text().then(u=>new DOMParser().parseFromString(u,a));case"json":return d.json();default:if(a===void 0)return d.text();{const m=/charset="?([^;"\s]*)"?/i.exec(a),f=m&&m[1]?m[1].toLowerCase():void 0,g=new TextDecoder(f);return d.arrayBuffer().then(h=>g.decode(h))}}}).then(d=>{Vl.add(e,d);const u=_s[e];delete _s[e];for(let m=0,f=u.length;m{const u=_s[e];if(u===void 0)throw this.manager.itemError(e),d;delete _s[e];for(let m=0,f=u.length;m{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class UAt extends cc{constructor(e){super(e)}load(e,t,r,i){this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const s=this,o=Vl.get(e);if(o!==void 0)return s.manager.itemStart(e),setTimeout(function(){t&&t(o),s.manager.itemEnd(e)},0),o;const a=vd("img");function l(){u(),Vl.add(e,this),t&&t(this),s.manager.itemEnd(e)}function d(m){u(),i&&i(m),s.manager.itemError(e),s.manager.itemEnd(e)}function u(){a.removeEventListener("load",l,!1),a.removeEventListener("error",d,!1)}return a.addEventListener("load",l,!1),a.addEventListener("error",d,!1),e.slice(0,5)!=="data:"&&this.crossOrigin!==void 0&&(a.crossOrigin=this.crossOrigin),s.manager.itemStart(e),a.src=e,a}}class wO extends cc{constructor(e){super(e)}load(e,t,r,i){const s=new Jn,o=new UAt(this.manager);return o.setCrossOrigin(this.crossOrigin),o.setPath(this.path),o.load(e,function(a){s.image=a,s.needsUpdate=!0,t!==void 0&&t(s)},r,i),s}}class dm extends wn{constructor(e,t=1){super(),this.isLight=!0,this.type="Light",this.color=new Nt(e),this.intensity=t}dispose(){}copy(e,t){return super.copy(e,t),this.color.copy(e.color),this.intensity=e.intensity,this}toJSON(e){const t=super.toJSON(e);return t.object.color=this.color.getHex(),t.object.intensity=this.intensity,this.groundColor!==void 0&&(t.object.groundColor=this.groundColor.getHex()),this.distance!==void 0&&(t.object.distance=this.distance),this.angle!==void 0&&(t.object.angle=this.angle),this.decay!==void 0&&(t.object.decay=this.decay),this.penumbra!==void 0&&(t.object.penumbra=this.penumbra),this.shadow!==void 0&&(t.object.shadow=this.shadow.toJSON()),t}}const Rb=new Ht,oM=new he,aM=new he;class iE{constructor(e){this.camera=e,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new $t(512,512),this.map=null,this.mapPass=null,this.matrix=new Ht,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new Qy,this._frameExtents=new $t(1,1),this._viewportCount=1,this._viewports=[new mn(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(e){const t=this.camera,r=this.matrix;oM.setFromMatrixPosition(e.matrixWorld),t.position.copy(oM),aM.setFromMatrixPosition(e.target.matrixWorld),t.lookAt(aM),t.updateMatrixWorld(),Rb.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Rb),r.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),r.multiply(Rb)}getViewport(e){return this._viewports[e]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(e){return this.camera=e.camera.clone(),this.bias=e.bias,this.radius=e.radius,this.mapSize.copy(e.mapSize),this}clone(){return new this.constructor().copy(this)}toJSON(){const e={};return this.bias!==0&&(e.bias=this.bias),this.normalBias!==0&&(e.normalBias=this.normalBias),this.radius!==1&&(e.radius=this.radius),(this.mapSize.x!==512||this.mapSize.y!==512)&&(e.mapSize=this.mapSize.toArray()),e.camera=this.camera.toJSON(!1).object,delete e.camera.matrix,e}}class BAt extends iE{constructor(){super(new gr(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1}updateMatrices(e){const t=this.camera,r=Ul*2*e.angle*this.focus,i=this.mapSize.width/this.mapSize.height,s=e.distance||t.far;(r!==t.fov||i!==t.aspect||s!==t.far)&&(t.fov=r,t.aspect=i,t.far=s,t.updateProjectionMatrix()),super.updateMatrices(e)}copy(e){return super.copy(e),this.focus=e.focus,this}}class GAt extends dm{constructor(e,t,r=0,i=Math.PI/3,s=0,o=2){super(e,t),this.isSpotLight=!0,this.type="SpotLight",this.position.copy(wn.DEFAULT_UP),this.updateMatrix(),this.target=new wn,this.distance=r,this.angle=i,this.penumbra=s,this.decay=o,this.map=null,this.shadow=new BAt}get power(){return this.intensity*Math.PI}set power(e){this.intensity=e/Math.PI}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.angle=e.angle,this.penumbra=e.penumbra,this.decay=e.decay,this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}const lM=new Ht,Rc=new he,Mb=new he;class zAt extends iE{constructor(){super(new gr(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new $t(4,2),this._viewportCount=6,this._viewports=[new mn(2,1,1,1),new mn(0,1,1,1),new mn(3,1,1,1),new mn(1,1,1,1),new mn(3,0,1,1),new mn(1,0,1,1)],this._cubeDirections=[new he(1,0,0),new he(-1,0,0),new he(0,0,1),new he(0,0,-1),new he(0,1,0),new he(0,-1,0)],this._cubeUps=[new he(0,1,0),new he(0,1,0),new he(0,1,0),new he(0,1,0),new he(0,0,1),new he(0,0,-1)]}updateMatrices(e,t=0){const r=this.camera,i=this.matrix,s=e.distance||r.far;s!==r.far&&(r.far=s,r.updateProjectionMatrix()),Rc.setFromMatrixPosition(e.matrixWorld),r.position.copy(Rc),Mb.copy(r.position),Mb.add(this._cubeDirections[t]),r.up.copy(this._cubeUps[t]),r.lookAt(Mb),r.updateMatrixWorld(),i.makeTranslation(-Rc.x,-Rc.y,-Rc.z),lM.multiplyMatrices(r.projectionMatrix,r.matrixWorldInverse),this._frustum.setFromProjectionMatrix(lM)}}class VAt extends dm{constructor(e,t,r=0,i=2){super(e,t),this.isPointLight=!0,this.type="PointLight",this.distance=r,this.decay=i,this.shadow=new zAt}get power(){return this.intensity*4*Math.PI}set power(e){this.intensity=e/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}}class HAt extends iE{constructor(){super(new Zy(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}}class CO extends dm{constructor(e,t){super(e,t),this.isDirectionalLight=!0,this.type="DirectionalLight",this.position.copy(wn.DEFAULT_UP),this.updateMatrix(),this.target=new wn,this.shadow=new HAt}dispose(){this.shadow.dispose()}copy(e){return super.copy(e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}class qAt extends dm{constructor(e,t){super(e,t),this.isAmbientLight=!0,this.type="AmbientLight"}}class Jc{static decodeText(e){if(typeof TextDecoder<"u")return new TextDecoder().decode(e);let t="";for(let r=0,i=e.length;r"u"&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),typeof fetch>"u"&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),this.options={premultiplyAlpha:"none"}}setOptions(e){return this.options=e,this}load(e,t,r,i){e===void 0&&(e=""),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const s=this,o=Vl.get(e);if(o!==void 0)return s.manager.itemStart(e),setTimeout(function(){t&&t(o),s.manager.itemEnd(e)},0),o;const a={};a.credentials=this.crossOrigin==="anonymous"?"same-origin":"include",a.headers=this.requestHeader,fetch(e,a).then(function(l){return l.blob()}).then(function(l){return createImageBitmap(l,Object.assign(s.options,{colorSpaceConversion:"none"}))}).then(function(l){Vl.add(e,l),t&&t(l),s.manager.itemEnd(e)}).catch(function(l){i&&i(l),s.manager.itemError(e),s.manager.itemEnd(e)}),s.manager.itemStart(e)}}const sE="\\[\\]\\.:\\/",$At=new RegExp("["+sE+"]","g"),oE="[^"+sE+"]",WAt="[^"+sE.replace("\\.","")+"]",KAt=/((?:WC+[\/:])*)/.source.replace("WC",oE),jAt=/(WCOD+)?/.source.replace("WCOD",WAt),QAt=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",oE),XAt=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",oE),ZAt=new RegExp("^"+KAt+jAt+QAt+XAt+"$"),JAt=["material","materials","bones","map"];class eRt{constructor(e,t,r){const i=r||sn.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,i)}getValue(e,t){this.bind();const r=this._targetGroup.nCachedObjects_,i=this._bindings[r];i!==void 0&&i.getValue(e,t)}setValue(e,t){const r=this._bindings;for(let i=this._targetGroup.nCachedObjects_,s=r.length;i!==s;++i)r[i].setValue(e,t)}bind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,r=e.length;t!==r;++t)e[t].bind()}unbind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,r=e.length;t!==r;++t)e[t].unbind()}}class sn{constructor(e,t,r){this.path=t,this.parsedPath=r||sn.parseTrackName(t),this.node=sn.findNode(e,this.parsedPath.nodeName),this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,t,r){return e&&e.isAnimationObjectGroup?new sn.Composite(e,t,r):new sn(e,t,r)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace($At,"")}static parseTrackName(e){const t=ZAt.exec(e);if(t===null)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const r={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},i=r.nodeName&&r.nodeName.lastIndexOf(".");if(i!==void 0&&i!==-1){const s=r.nodeName.substring(i+1);JAt.indexOf(s)!==-1&&(r.nodeName=r.nodeName.substring(0,i),r.objectName=s)}if(r.propertyName===null||r.propertyName.length===0)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return r}static findNode(e,t){if(t===void 0||t===""||t==="."||t===-1||t===e.name||t===e.uuid)return e;if(e.skeleton){const r=e.skeleton.getBoneByName(t);if(r!==void 0)return r}if(e.children){const r=function(s){for(let o=0;o=2.0 are supported."));return}const d=new ORt(s,{path:t||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});d.fileLoader.setRequestHeader(this.requestHeader);for(let u=0;u=0&&a[m]===void 0&&console.warn('THREE.GLTFLoader: Unknown extension "'+m+'".')}}d.setExtensions(o),d.setPlugins(a),d.parse(r,i)}parseAsync(e,t){const r=this;return new Promise(function(i,s){r.parse(e,t,i,s)})}}function nRt(){let n={};return{get:function(e){return n[e]},add:function(e,t){n[e]=t},remove:function(e){delete n[e]},removeAll:function(){n={}}}}const Yt={KHR_BINARY_GLTF:"KHR_binary_glTF",KHR_DRACO_MESH_COMPRESSION:"KHR_draco_mesh_compression",KHR_LIGHTS_PUNCTUAL:"KHR_lights_punctual",KHR_MATERIALS_CLEARCOAT:"KHR_materials_clearcoat",KHR_MATERIALS_IOR:"KHR_materials_ior",KHR_MATERIALS_SHEEN:"KHR_materials_sheen",KHR_MATERIALS_SPECULAR:"KHR_materials_specular",KHR_MATERIALS_TRANSMISSION:"KHR_materials_transmission",KHR_MATERIALS_IRIDESCENCE:"KHR_materials_iridescence",KHR_MATERIALS_ANISOTROPY:"KHR_materials_anisotropy",KHR_MATERIALS_UNLIT:"KHR_materials_unlit",KHR_MATERIALS_VOLUME:"KHR_materials_volume",KHR_TEXTURE_BASISU:"KHR_texture_basisu",KHR_TEXTURE_TRANSFORM:"KHR_texture_transform",KHR_MESH_QUANTIZATION:"KHR_mesh_quantization",KHR_MATERIALS_EMISSIVE_STRENGTH:"KHR_materials_emissive_strength",EXT_MATERIALS_BUMP:"EXT_materials_bump",EXT_TEXTURE_WEBP:"EXT_texture_webp",EXT_TEXTURE_AVIF:"EXT_texture_avif",EXT_MESHOPT_COMPRESSION:"EXT_meshopt_compression",EXT_MESH_GPU_INSTANCING:"EXT_mesh_gpu_instancing"};class rRt{constructor(e){this.parser=e,this.name=Yt.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){const e=this.parser,t=this.parser.json.nodes||[];for(let r=0,i=t.length;r=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return t.loadTextureImage(e,s.source,o)}}class gRt{constructor(e){this.parser=e,this.name=Yt.EXT_TEXTURE_WEBP,this.isSupported=null}loadTexture(e){const t=this.name,r=this.parser,i=r.json,s=i.textures[e];if(!s.extensions||!s.extensions[t])return null;const o=s.extensions[t],a=i.images[o.source];let l=r.textureLoader;if(a.uri){const d=r.options.manager.getHandler(a.uri);d!==null&&(l=d)}return this.detectSupport().then(function(d){if(d)return r.loadTextureImage(e,o.source,l);if(i.extensionsRequired&&i.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: WebP required by asset but unsupported.");return r.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",t.onload=t.onerror=function(){e(t.height===1)}})),this.isSupported}}class _Rt{constructor(e){this.parser=e,this.name=Yt.EXT_TEXTURE_AVIF,this.isSupported=null}loadTexture(e){const t=this.name,r=this.parser,i=r.json,s=i.textures[e];if(!s.extensions||!s.extensions[t])return null;const o=s.extensions[t],a=i.images[o.source];let l=r.textureLoader;if(a.uri){const d=r.options.manager.getHandler(a.uri);d!==null&&(l=d)}return this.detectSupport().then(function(d){if(d)return r.loadTextureImage(e,o.source,l);if(i.extensionsRequired&&i.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: AVIF required by asset but unsupported.");return r.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAABcAAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAEAAAABAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQAMAAAAABNjb2xybmNseAACAAIABoAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAAB9tZGF0EgAKCBgABogQEDQgMgkQAAAAB8dSLfI=",t.onload=t.onerror=function(){e(t.height===1)}})),this.isSupported}}class bRt{constructor(e){this.name=Yt.EXT_MESHOPT_COMPRESSION,this.parser=e}loadBufferView(e){const t=this.parser.json,r=t.bufferViews[e];if(r.extensions&&r.extensions[this.name]){const i=r.extensions[this.name],s=this.parser.getDependency("buffer",i.buffer),o=this.parser.options.meshoptDecoder;if(!o||!o.supported){if(t.extensionsRequired&&t.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");return null}return s.then(function(a){const l=i.byteOffset||0,d=i.byteLength||0,u=i.count,m=i.byteStride,f=new Uint8Array(a,l,d);return o.decodeGltfBufferAsync?o.decodeGltfBufferAsync(u,m,f,i.mode,i.filter).then(function(g){return g.buffer}):o.ready.then(function(){const g=new ArrayBuffer(u*m);return o.decodeGltfBuffer(new Uint8Array(g),u,m,f,i.mode,i.filter),g})})}else return null}}class vRt{constructor(e){this.name=Yt.EXT_MESH_GPU_INSTANCING,this.parser=e}createNodeMesh(e){const t=this.parser.json,r=t.nodes[e];if(!r.extensions||!r.extensions[this.name]||r.mesh===void 0)return null;const i=t.meshes[r.mesh];for(const d of i.primitives)if(d.mode!==Qr.TRIANGLES&&d.mode!==Qr.TRIANGLE_STRIP&&d.mode!==Qr.TRIANGLE_FAN&&d.mode!==void 0)return null;const o=r.extensions[this.name].attributes,a=[],l={};for(const d in o)a.push(this.parser.getDependency("accessor",o[d]).then(u=>(l[d]=u,l[d])));return a.length<1?null:(a.push(this.parser.createNodeMesh(e)),Promise.all(a).then(d=>{const u=d.pop(),m=u.isGroup?u.children:[u],f=d[0].count,g=[];for(const h of m){const v=new Ht,b=new he,_=new Uo,y=new he(1,1,1),E=new SAt(h.geometry,h.material,f);for(let x=0;x0||n.search(/^data\:image\/jpeg/)===0?"image/jpeg":n.search(/\.webp($|\?)/i)>0||n.search(/^data\:image\/webp/)===0?"image/webp":"image/png"}const IRt=new Ht;class ORt{constructor(e={},t={}){this.json=e,this.extensions={},this.plugins={},this.options=t,this.cache=new nRt,this.associations=new Map,this.primitiveCache={},this.nodeCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.sourceCache={},this.textureCache={},this.nodeNamesUsed={};let r=!1,i=!1,s=-1;typeof navigator<"u"&&(r=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)===!0,i=navigator.userAgent.indexOf("Firefox")>-1,s=i?navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1]:-1),typeof createImageBitmap>"u"||r||i&&s<98?this.textureLoader=new wO(this.options.manager):this.textureLoader=new YAt(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new TO(this.options.manager),this.fileLoader.setResponseType("arraybuffer"),this.options.crossOrigin==="use-credentials"&&this.fileLoader.setWithCredentials(!0)}setExtensions(e){this.extensions=e}setPlugins(e){this.plugins=e}parse(e,t){const r=this,i=this.json,s=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll(function(o){return o._markDefs&&o._markDefs()}),Promise.all(this._invokeAll(function(o){return o.beforeRoot&&o.beforeRoot()})).then(function(){return Promise.all([r.getDependencies("scene"),r.getDependencies("animation"),r.getDependencies("camera")])}).then(function(o){const a={scene:o[0][i.scene||0],scenes:o[0],animations:o[1],cameras:o[2],asset:i.asset,parser:r,userData:{}};return jo(s,a,i),mo(a,i),Promise.all(r._invokeAll(function(l){return l.afterRoot&&l.afterRoot(a)})).then(function(){e(a)})}).catch(t)}_markDefs(){const e=this.json.nodes||[],t=this.json.skins||[],r=this.json.meshes||[];for(let i=0,s=t.length;i{const l=this.associations.get(o);l!=null&&this.associations.set(a,l);for(const[d,u]of o.children.entries())s(u,a.children[d])};return s(r,i),i.name+="_instance_"+e.uses[t]++,i}_invokeOne(e){const t=Object.values(this.plugins);t.push(this);for(let r=0;r=2&&b.setY(C,w[N*l+1]),l>=3&&b.setZ(C,w[N*l+2]),l>=4&&b.setW(C,w[N*l+3]),l>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}}return b})}loadTexture(e){const t=this.json,r=this.options,s=t.textures[e].source,o=t.images[s];let a=this.textureLoader;if(o.uri){const l=r.manager.getHandler(o.uri);l!==null&&(a=l)}return this.loadTextureImage(e,s,a)}loadTextureImage(e,t,r){const i=this,s=this.json,o=s.textures[e],a=s.images[t],l=(a.uri||a.bufferView)+":"+o.sampler;if(this.textureCache[l])return this.textureCache[l];const d=this.loadImageSource(t,r).then(function(u){u.flipY=!1,u.name=o.name||a.name||"",u.name===""&&typeof a.uri=="string"&&a.uri.startsWith("data:image/")===!1&&(u.name=a.uri);const f=(s.samplers||{})[o.sampler]||{};return u.magFilter=uM[f.magFilter]||Cr,u.minFilter=uM[f.minFilter]||xa,u.wrapS=pM[f.wrapS]||Ll,u.wrapT=pM[f.wrapT]||Ll,i.associations.set(u,{textures:e}),u}).catch(function(){return null});return this.textureCache[l]=d,d}loadImageSource(e,t){const r=this,i=this.json,s=this.options;if(this.sourceCache[e]!==void 0)return this.sourceCache[e].then(m=>m.clone());const o=i.images[e],a=self.URL||self.webkitURL;let l=o.uri||"",d=!1;if(o.bufferView!==void 0)l=r.getDependency("bufferView",o.bufferView).then(function(m){d=!0;const f=new Blob([m],{type:o.mimeType});return l=a.createObjectURL(f),l});else if(o.uri===void 0)throw new Error("THREE.GLTFLoader: Image "+e+" is missing URI and bufferView");const u=Promise.resolve(l).then(function(m){return new Promise(function(f,g){let h=f;t.isImageBitmapLoader===!0&&(h=function(v){const b=new Jn(v);b.needsUpdate=!0,f(b)}),t.load(Jc.resolveURL(m,s.path),h,void 0,g)})}).then(function(m){return d===!0&&a.revokeObjectURL(l),m.userData.mimeType=o.mimeType||kRt(o.uri),m}).catch(function(m){throw console.error("THREE.GLTFLoader: Couldn't load texture",l),m});return this.sourceCache[e]=u,u}assignTexture(e,t,r,i){const s=this;return this.getDependency("texture",r.index).then(function(o){if(!o)return null;if(r.texCoord!==void 0&&r.texCoord>0&&(o=o.clone(),o.channel=r.texCoord),s.extensions[Yt.KHR_TEXTURE_TRANSFORM]){const a=r.extensions!==void 0?r.extensions[Yt.KHR_TEXTURE_TRANSFORM]:void 0;if(a){const l=s.associations.get(o);o=s.extensions[Yt.KHR_TEXTURE_TRANSFORM].extendTexture(o,a),s.associations.set(o,l)}}return i!==void 0&&(o.colorSpace=i),e[t]=o,o})}assignFinalMaterial(e){const t=e.geometry;let r=e.material;const i=t.attributes.tangent===void 0,s=t.attributes.color!==void 0,o=t.attributes.normal===void 0;if(e.isPoints){const a="PointsMaterial:"+r.uuid;let l=this.cache.get(a);l||(l=new EO,Mi.prototype.copy.call(l,r),l.color.copy(r.color),l.map=r.map,l.sizeAttenuation=!1,this.cache.add(a,l)),r=l}else if(e.isLine){const a="LineBasicMaterial:"+r.uuid;let l=this.cache.get(a);l||(l=new yO,Mi.prototype.copy.call(l,r),l.color.copy(r.color),l.map=r.map,this.cache.add(a,l)),r=l}if(i||s||o){let a="ClonedMaterial:"+r.uuid+":";i&&(a+="derivative-tangents:"),s&&(a+="vertex-colors:"),o&&(a+="flat-shading:");let l=this.cache.get(a);l||(l=r.clone(),s&&(l.vertexColors=!0),o&&(l.flatShading=!0),i&&(l.normalScale&&(l.normalScale.y*=-1),l.clearcoatNormalScale&&(l.clearcoatNormalScale.y*=-1)),this.cache.add(a,l),this.associations.set(l,this.associations.get(r))),r=l}e.material=r}getMaterialType(){return rE}loadMaterial(e){const t=this,r=this.json,i=this.extensions,s=r.materials[e];let o;const a={},l=s.extensions||{},d=[];if(l[Yt.KHR_MATERIALS_UNLIT]){const m=i[Yt.KHR_MATERIALS_UNLIT];o=m.getMaterialType(),d.push(m.extendParams(a,s,t))}else{const m=s.pbrMetallicRoughness||{};if(a.color=new Nt(1,1,1),a.opacity=1,Array.isArray(m.baseColorFactor)){const f=m.baseColorFactor;a.color.setRGB(f[0],f[1],f[2],er),a.opacity=f[3]}m.baseColorTexture!==void 0&&d.push(t.assignTexture(a,"map",m.baseColorTexture,Mn)),a.metalness=m.metallicFactor!==void 0?m.metallicFactor:1,a.roughness=m.roughnessFactor!==void 0?m.roughnessFactor:1,m.metallicRoughnessTexture!==void 0&&(d.push(t.assignTexture(a,"metalnessMap",m.metallicRoughnessTexture)),d.push(t.assignTexture(a,"roughnessMap",m.metallicRoughnessTexture))),o=this._invokeOne(function(f){return f.getMaterialType&&f.getMaterialType(e)}),d.push(Promise.all(this._invokeAll(function(f){return f.extendMaterialParams&&f.extendMaterialParams(e,a)})))}s.doubleSided===!0&&(a.side=Vi);const u=s.alphaMode||kb.OPAQUE;if(u===kb.BLEND?(a.transparent=!0,a.depthWrite=!1):(a.transparent=!1,u===kb.MASK&&(a.alphaTest=s.alphaCutoff!==void 0?s.alphaCutoff:.5)),s.normalTexture!==void 0&&o!==vo&&(d.push(t.assignTexture(a,"normalMap",s.normalTexture)),a.normalScale=new $t(1,1),s.normalTexture.scale!==void 0)){const m=s.normalTexture.scale;a.normalScale.set(m,m)}if(s.occlusionTexture!==void 0&&o!==vo&&(d.push(t.assignTexture(a,"aoMap",s.occlusionTexture)),s.occlusionTexture.strength!==void 0&&(a.aoMapIntensity=s.occlusionTexture.strength)),s.emissiveFactor!==void 0&&o!==vo){const m=s.emissiveFactor;a.emissive=new Nt().setRGB(m[0],m[1],m[2],er)}return s.emissiveTexture!==void 0&&o!==vo&&d.push(t.assignTexture(a,"emissiveMap",s.emissiveTexture,Mn)),Promise.all(d).then(function(){const m=new o(a);return s.name&&(m.name=s.name),mo(m,s),t.associations.set(m,{materials:e}),s.extensions&&jo(i,m,s),m})}createUniqueName(e){const t=sn.sanitizeNodeName(e||"");return t in this.nodeNamesUsed?t+"_"+ ++this.nodeNamesUsed[t]:(this.nodeNamesUsed[t]=0,t)}loadGeometries(e){const t=this,r=this.extensions,i=this.primitiveCache;function s(a){return r[Yt.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(a,t).then(function(l){return hM(l,a,t)})}const o=[];for(let a=0,l=e.length;a0&&MRt(_,s),_.name=t.createUniqueName(s.name||"mesh_"+e),mo(_,s),b.extensions&&jo(i,_,b),t.assignFinalMaterial(_),m.push(_)}for(let g=0,h=m.length;g1?u=new oa:d.length===1?u=d[0]:u=new wn,u!==d[0])for(let m=0,f=d.length;m{const m=new Map;for(const[f,g]of i.associations)(f instanceof Mi||f instanceof Jn)&&m.set(f,g);return u.traverse(f=>{const g=i.associations.get(f);g!=null&&m.set(f,g)}),m};return i.associations=d(s),s})}_createAnimationTracks(e,t,r,i,s){const o=[],a=e.name?e.name:e.uuid,l=[];no[s.path]===no.weights?e.traverse(function(f){f.morphTargetInfluences&&l.push(f.name?f.name:f.uuid)}):l.push(a);let d;switch(no[s.path]){case no.weights:d=Gl;break;case no.rotation:d=Ca;break;case no.position:case no.scale:d=zl;break;default:switch(r.itemSize){case 1:d=Gl;break;case 2:case 3:default:d=zl;break}break}const u=i.interpolation!==void 0?CRt[i.interpolation]:Fl,m=this._getArrayFromAccessor(r);for(let f=0,g=l.length;f{Ze.replace()})},stopVideoStream(){this.isVideoActive=!1,this.imageData=null,rt.emit("stop_webcam_video_stream"),We(()=>{Ze.replace()})},startDrag(n){this.isDragging=!0,this.zIndex=5001,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY,document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.stopDrag)},drag(n){if(this.isDragging){const e=n.clientX-this.dragStart.x,t=n.clientY-this.dragStart.y;this.position.bottom-=t,this.position.right-=e,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY}},stopDrag(){this.isDragging=!1,this.zIndex=0,document.removeEventListener("mousemove",this.drag),document.removeEventListener("mouseup",this.stopDrag)}},mounted(){Ze.replace(),rt.on("video_stream_image",n=>{if(this.isVideoActive){this.imageDataUrl="data:image/jpeg;base64,"+n,this.frameCount++;const e=Date.now();e-this.lastFrameTime>=1e3&&(this.frameRate=this.frameCount,this.frameCount=0,this.lastFrameTime=e)}})}},PRt=["src"],FRt=["src"],URt={class:"controls"},BRt={key:2};function GRt(n,e,t,r,i,s){return T(),M("div",{class:"floating-frame bg-white",style:on({bottom:i.position.bottom+"px",right:i.position.right+"px","z-index":i.zIndex}),onMousedown:e[4]||(e[4]=J((...o)=>s.startDrag&&s.startDrag(...o),["stop"])),onMouseup:e[5]||(e[5]=J((...o)=>s.stopDrag&&s.stopDrag(...o),["stop"]))},[c("div",{class:"handle",onMousedown:e[0]||(e[0]=J((...o)=>s.startDrag&&s.startDrag(...o),["stop"])),onMouseup:e[1]||(e[1]=J((...o)=>s.stopDrag&&s.stopDrag(...o),["stop"]))},"Drag Me",32),i.isVideoActive&&i.imageDataUrl!=null?(T(),M("img",{key:0,src:i.imageDataUrl,alt:"Webcam Frame",width:"300",height:"300"},null,8,PRt)):Y("",!0),i.isVideoActive&&i.imageDataUrl==null?(T(),M("p",{key:1,src:i.imageDataUrl,alt:"Webcam Frame",width:"300",height:"300"},"Loading. Please wait...",8,FRt)):Y("",!0),c("div",URt,[i.isVideoActive?Y("",!0):(T(),M("button",{key:0,class:"bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded",onClick:e[2]||(e[2]=(...o)=>s.startVideoStream&&s.startVideoStream(...o))},e[6]||(e[6]=[c("i",{"data-feather":"video"},null,-1)]))),i.isVideoActive?(T(),M("button",{key:1,class:"bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded",onClick:e[3]||(e[3]=(...o)=>s.stopVideoStream&&s.stopVideoStream(...o))},e[7]||(e[7]=[c("i",{"data-feather":"video"},null,-1)]))):Y("",!0),i.isVideoActive?(T(),M("span",BRt,"FPS: "+X(i.frameRate),1)):Y("",!0)])],36)}const zRt=bt(LRt,[["render",GRt]]),VRt={data(){return{isAudioActive:!1,imageDataUrl:null,isDragging:!1,position:{bottom:0,right:0},dragStart:{x:0,y:0},zIndex:0,frameRate:0,frameCount:0,lastFrameTime:Date.now()}},methods:{startAudioStream(){rt.emit("start_audio_stream",()=>{this.isAudioActive=!0}),We(()=>{Ze.replace()})},stopAudioStream(){rt.emit("stop_audio_stream",()=>{this.isAudioActive=!1,this.imageDataUrl=null}),We(()=>{Ze.replace()})},startDrag(n){this.isDragging=!0,this.zIndex=5001,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY,document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.stopDrag)},drag(n){if(this.isDragging){const e=n.clientX-this.dragStart.x,t=n.clientY-this.dragStart.y;this.position.bottom-=t,this.position.right-=e,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY}},stopDrag(){this.isDragging=!1,this.zIndex=0,document.removeEventListener("mousemove",this.drag),document.removeEventListener("mouseup",this.stopDrag)}},mounted(){Ze.replace(),rt.on("update_spectrogram",n=>{if(this.isAudioActive){this.imageDataUrl="data:image/jpeg;base64,"+n,this.frameCount++;const e=Date.now();e-this.lastFrameTime>=1e3&&(this.frameRate=this.frameCount,this.frameCount=0,this.lastFrameTime=e)}})}},HRt=["src"],qRt={class:"controls"};function YRt(n,e,t,r,i,s){return T(),M("div",{class:"floating-frame bg-white",style:on({bottom:i.position.bottom+"px",right:i.position.right+"px","z-index":i.zIndex}),onMousedown:e[4]||(e[4]=J((...o)=>s.startDrag&&s.startDrag(...o),["stop"])),onMouseup:e[5]||(e[5]=J((...o)=>s.stopDrag&&s.stopDrag(...o),["stop"]))},[c("div",{class:"handle",onMousedown:e[0]||(e[0]=J((...o)=>s.startDrag&&s.startDrag(...o),["stop"])),onMouseup:e[1]||(e[1]=J((...o)=>s.stopDrag&&s.stopDrag(...o),["stop"]))},"Drag Me",32),i.isAudioActive&&i.imageDataUrl!=null?(T(),M("img",{key:0,src:i.imageDataUrl,alt:"Spectrogram",width:"300",height:"300"},null,8,HRt)):Y("",!0),c("div",qRt,[i.isAudioActive?Y("",!0):(T(),M("button",{key:0,class:"bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded",onClick:e[2]||(e[2]=(...o)=>s.startAudioStream&&s.startAudioStream(...o))},e[6]||(e[6]=[c("i",{"data-feather":"mic"},null,-1)]))),i.isAudioActive?(T(),M("button",{key:1,class:"bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded",onClick:e[3]||(e[3]=(...o)=>s.stopAudioStream&&s.stopAudioStream(...o))},e[7]||(e[7]=[c("i",{"data-feather":"mic"},null,-1)]))):Y("",!0)])],36)}const $Rt=bt(VRt,[["render",YRt]]),WRt={data(){return{activePersonality:null}},props:{personality:{type:Object,default:()=>({})}},components:{VideoFrame:zRt,AudioFrame:$Rt},computed:{isReady:{get(){return this.$store.state.ready}}},watch:{"$store.state.mountedPersArr":"updatePersonality","$store.state.config.active_personality_id":"updatePersonality"},async mounted(){for(;this.isReady===!1;)await new Promise(n=>setTimeout(n,100));console.log("Personality:",this.personality),this.initWebGLScene(),this.updatePersonality(),We(()=>{Ze.replace()}),this.$refs.video_frame.position={bottom:0,right:0},this.$refs.audio_frame.position={bottom:0,right:100}},beforeDestroy(){},methods:{initWebGLScene(){this.scene=new fAt,this.camera=new gr(75,window.innerWidth/window.innerHeight,.1,1e3),this.renderer=new bO,this.renderer.setSize(window.innerWidth,window.innerHeight),this.$refs.webglContainer.appendChild(this.renderer.domElement);const n=new wo,e=new iM({color:65280});this.cube=new br(n,e),this.scene.add(this.cube);const t=new qAt(4210752),r=new CO(16777215,.5);r.position.set(0,1,0),this.scene.add(t),this.scene.add(r),this.camera.position.z=5,this.animate()},updatePersonality(){const{mountedPersArr:n,config:e}=this.$store.state;this.activePersonality=n[e.active_personality_id],this.activePersonality.avatar?this.showBoxWithAvatar(this.activePersonality.avatar):this.showDefaultCube(),this.$emit("update:personality",this.activePersonality)},loadScene(n){new tRt().load(n,t=>{this.scene.remove(this.cube),this.cube=t.scene,this.scene.add(this.cube)})},showBoxWithAvatar(n){this.cube&&this.scene.remove(this.cube);const e=new wo,t=new wO().load(n),r=new vo({map:t});this.cube=new br(e,r),this.scene.add(this.cube)},showDefaultCube(){this.scene.remove(this.cube);const n=new wo,e=new iM({color:65280});this.cube=new br(n,e),this.scene.add(this.cube)},animate(){requestAnimationFrame(this.animate),this.cube&&(this.cube.rotation.x+=.01,this.cube.rotation.y+=.01),this.renderer.render(this.scene,this.camera)}}},KRt={ref:"webglContainer"},jRt={class:"flex-col y-overflow scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},QRt={key:0,class:"text-center"},XRt={key:1,class:"text-center"},ZRt={class:"floating-frame2"},JRt=["innerHTML"];function eMt(n,e,t,r,i,s){const o=ht("VideoFrame"),a=ht("AudioFrame");return T(),M(je,null,[c("div",KRt,null,512),c("div",jRt,[!i.activePersonality||!i.activePersonality.scene_path?(T(),M("div",QRt," Personality does not have a 3d avatar. ")):Y("",!0),!i.activePersonality||!i.activePersonality.avatar||i.activePersonality.avatar===""?(T(),M("div",XRt," Personality does not have an avatar. ")):Y("",!0),c("div",ZRt,[c("div",{innerHTML:n.htmlContent},null,8,JRt)])]),W(o,{ref:"video_frame"},null,512),W(a,{ref:"audio_frame"},null,512)],64)}const tMt=bt(WRt,[["render",eMt]]);let Qu;const nMt=new Uint8Array(16);function rMt(){if(!Qu&&(Qu=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Qu))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Qu(nMt)}const jn=[];for(let n=0;n<256;++n)jn.push((n+256).toString(16).slice(1));function iMt(n,e=0){return jn[n[e+0]]+jn[n[e+1]]+jn[n[e+2]]+jn[n[e+3]]+"-"+jn[n[e+4]]+jn[n[e+5]]+"-"+jn[n[e+6]]+jn[n[e+7]]+"-"+jn[n[e+8]]+jn[n[e+9]]+"-"+jn[n[e+10]]+jn[n[e+11]]+jn[n[e+12]]+jn[n[e+13]]+jn[n[e+14]]+jn[n[e+15]]}const sMt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),mM={randomUUID:sMt};function ks(n,e,t){if(mM.randomUUID&&!e&&!n)return mM.randomUUID();n=n||{};const r=n.random||(n.rng||rMt)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,iMt(r)}class fa{constructor(){this.listenerMap=new Map,this._listeners=[],this.proxyMap=new Map,this.proxies=[]}get listeners(){return this._listeners.concat(this.proxies.flatMap(e=>e()))}subscribe(e,t){this.listenerMap.has(e)&&(console.warn(`Already subscribed. Unsubscribing for you. Please check that you don't accidentally use the same token twice to register two different handlers for the same event/hook.`),this.unsubscribe(e)),this.listenerMap.set(e,t),this._listeners.push(t)}unsubscribe(e){if(this.listenerMap.has(e)){const t=this.listenerMap.get(e);this.listenerMap.delete(e);const r=this._listeners.indexOf(t);r>=0&&this._listeners.splice(r,1)}}registerProxy(e,t){this.proxyMap.has(e)&&(console.warn(`Already subscribed. Unsubscribing for you. Please check that you don't accidentally use the same token twice to register two different proxies for the same event/hook.`),this.unregisterProxy(e)),this.proxyMap.set(e,t),this.proxies.push(t)}unregisterProxy(e){if(!this.proxyMap.has(e))return;const t=this.proxyMap.get(e);this.proxyMap.delete(e);const r=this.proxies.indexOf(t);r>=0&&this.proxies.splice(r,1)}}class ln extends fa{constructor(e){super(),this.entity=e}emit(e){this.listeners.forEach(t=>t(e,this.entity))}}class lr extends fa{constructor(e){super(),this.entity=e}emit(e){let t=!1;const r=()=>[t=!0];for(const i of Array.from(this.listeners.values()))if(i(e,r,this.entity),t)return{prevented:!0};return{prevented:!1}}}class MO extends fa{execute(e,t){let r=e;for(const i of this.listeners)r=i(r,t);return r}}class qr extends MO{constructor(e){super(),this.entity=e}execute(e){return super.execute(e,this.entity)}}class oMt extends fa{constructor(e){super(),this.entity=e}execute(e){const t=[];for(const r of this.listeners)t.push(r(e,this.entity));return t}}function Ui(){const n=Symbol(),e=new Map,t=new Set,r=(l,d)=>{d instanceof fa&&d.registerProxy(n,()=>{var u,m;return(m=(u=e.get(l))===null||u===void 0?void 0:u.listeners)!==null&&m!==void 0?m:[]})},i=l=>{const d=new fa;e.set(l,d),t.forEach(u=>r(l,u[l]))},s=l=>{t.add(l);for(const d of e.keys())r(d,l[d])},o=l=>{for(const d of e.keys())l[d]instanceof fa&&l[d].unregisterProxy(n);t.delete(l)},a=()=>{t.forEach(l=>o(l)),e.clear()};return new Proxy({},{get(l,d){return d==="addTarget"?s:d==="removeTarget"?o:d==="destroy"?a:typeof d!="string"||d.startsWith("_")?l[d]:(e.has(d)||i(d),e.get(d))}})}class fM{constructor(e,t){if(this.destructed=!1,this.events={destruct:new ln(this)},!e||!t)throw new Error("Cannot initialize connection with null/undefined for 'from' or 'to' values");this.id=ks(),this.from=e,this.to=t,this.from.connectionCount++,this.to.connectionCount++}destruct(){this.events.destruct.emit(),this.from.connectionCount--,this.to.connectionCount--,this.destructed=!0}}class NO{constructor(e,t){if(!e||!t)throw new Error("Cannot initialize connection with null/undefined for 'from' or 'to' values");this.id=ks(),this.from=e,this.to=t}}function V1(n,e){return Object.fromEntries(Object.entries(n).map(([t,r])=>[t,e(r)]))}class kO{constructor(){this._title="",this.id=ks(),this.events={loaded:new ln(this),beforeAddInput:new lr(this),addInput:new ln(this),beforeRemoveInput:new lr(this),removeInput:new ln(this),beforeAddOutput:new lr(this),addOutput:new ln(this),beforeRemoveOutput:new lr(this),removeOutput:new ln(this),beforeTitleChanged:new lr(this),titleChanged:new ln(this),update:new ln(this)},this.hooks={beforeLoad:new qr(this),afterSave:new qr(this)}}get graph(){return this.graphInstance}get title(){return this._title}set title(e){this.events.beforeTitleChanged.emit(e).prevented||(this._title=e,this.events.titleChanged.emit(e))}addInput(e,t){return this.addInterface("input",e,t)}addOutput(e,t){return this.addInterface("output",e,t)}removeInput(e){return this.removeInterface("input",e)}removeOutput(e){return this.removeInterface("output",e)}registerGraph(e){this.graphInstance=e}load(e){this.hooks.beforeLoad.execute(e),this.id=e.id,this._title=e.title,Object.entries(e.inputs).forEach(([t,r])=>{this.inputs[t]&&(this.inputs[t].load(r),this.inputs[t].nodeId=this.id)}),Object.entries(e.outputs).forEach(([t,r])=>{this.outputs[t]&&(this.outputs[t].load(r),this.outputs[t].nodeId=this.id)}),this.events.loaded.emit(this)}save(){const e=V1(this.inputs,i=>i.save()),t=V1(this.outputs,i=>i.save()),r={type:this.type,id:this.id,title:this.title,inputs:e,outputs:t};return this.hooks.afterSave.execute(r)}onPlaced(){}onDestroy(){}initializeIo(){Object.entries(this.inputs).forEach(([e,t])=>this.initializeIntf("input",e,t)),Object.entries(this.outputs).forEach(([e,t])=>this.initializeIntf("output",e,t))}initializeIntf(e,t,r){r.isInput=e==="input",r.nodeId=this.id,r.events.setValue.subscribe(this,()=>this.events.update.emit({type:e,name:t,intf:r}))}addInterface(e,t,r){const i=e==="input"?this.events.beforeAddInput:this.events.beforeAddOutput,s=e==="input"?this.events.addInput:this.events.addOutput,o=e==="input"?this.inputs:this.outputs;return i.emit(r).prevented?!1:(o[t]=r,this.initializeIntf(e,t,r),s.emit(r),!0)}removeInterface(e,t){const r=e==="input"?this.events.beforeRemoveInput:this.events.beforeRemoveOutput,i=e==="input"?this.events.removeInput:this.events.removeOutput,s=e==="input"?this.inputs[t]:this.outputs[t];if(!s||r.emit(s).prevented)return!1;if(s.connectionCount>0)if(this.graphInstance)this.graphInstance.connections.filter(a=>a.from===s||a.to===s).forEach(a=>{this.graphInstance.removeConnection(a)});else throw new Error("Interface is connected, but no graph instance is specified. Unable to delete interface");return s.events.setValue.unsubscribe(this),e==="input"?delete this.inputs[t]:delete this.outputs[t],i.emit(s),!0}}let IO=class extends kO{load(e){super.load(e)}save(){return super.save()}};function dc(n){return class extends IO{constructor(){var e,t;super(),this.type=n.type,this.inputs={},this.outputs={},this.calculate=n.calculate?(r,i)=>n.calculate.call(this,r,i):void 0,this._title=(e=n.title)!==null&&e!==void 0?e:n.type,this.executeFactory("input",n.inputs),this.executeFactory("output",n.outputs),(t=n.onCreate)===null||t===void 0||t.call(this)}onPlaced(){var e;(e=n.onPlaced)===null||e===void 0||e.call(this)}onDestroy(){var e;(e=n.onDestroy)===null||e===void 0||e.call(this)}executeFactory(e,t){Object.keys(t||{}).forEach(r=>{const i=t[r]();e==="input"?this.addInput(r,i):this.addOutput(r,i)})}}}class Cn{set connectionCount(e){this._connectionCount=e,this.events.setConnectionCount.emit(e)}get connectionCount(){return this._connectionCount}set value(e){this.events.beforeSetValue.emit(e).prevented||(this._value=e,this.events.setValue.emit(e))}get value(){return this._value}constructor(e,t){this.id=ks(),this.nodeId="",this.port=!0,this.hidden=!1,this.events={setConnectionCount:new ln(this),beforeSetValue:new lr(this),setValue:new ln(this),updated:new ln(this)},this.hooks={load:new qr(this),save:new qr(this)},this._connectionCount=0,this.name=e,this._value=t}load(e){this.id=e.id,this.templateId=e.templateId,this.value=e.value,this.hooks.load.execute(e)}save(){const e={id:this.id,templateId:this.templateId,value:this.value};return this.hooks.save.execute(e)}setComponent(e){return this.component=e,this}setPort(e){return this.port=e,this}setHidden(e){return this.hidden=e,this}use(e,...t){return e(this,...t),this}}const Hl="__baklava_SubgraphInputNode",ql="__baklava_SubgraphOutputNode";class OO extends IO{constructor(){super(),this.graphInterfaceId=ks()}onPlaced(){super.onPlaced(),this.initializeIo()}save(){return{...super.save(),graphInterfaceId:this.graphInterfaceId}}load(e){super.load(e),this.graphInterfaceId=e.graphInterfaceId}}class aE extends OO{constructor(){super(...arguments),this.type=Hl,this.inputs={name:new Cn("Name","Input")},this.outputs={placeholder:new Cn("Value",void 0)}}static isGraphInputNode(e){return e.type===Hl}}class lE extends OO{constructor(){super(...arguments),this.type=ql,this.inputs={name:new Cn("Name","Output"),placeholder:new Cn("Value",void 0)},this.outputs={output:new Cn("Output",void 0).setHidden(!0)},this.calculate=({placeholder:e})=>({output:e})}static isGraphOutputNode(e){return e.type===ql}}class Ud{get nodes(){return this._nodes}get connections(){return this._connections}get loading(){return this._loading}get destroying(){return this._destroying}get inputs(){return this.nodes.filter(t=>t.type===Hl).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.placeholder.id}))}get outputs(){return this.nodes.filter(t=>t.type===ql).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.output.id}))}constructor(e,t){this.id=ks(),this.activeTransactions=0,this._nodes=[],this._connections=[],this._loading=!1,this._destroying=!1,this.events={beforeAddNode:new lr(this),addNode:new ln(this),beforeRemoveNode:new lr(this),removeNode:new ln(this),beforeAddConnection:new lr(this),addConnection:new ln(this),checkConnection:new lr(this),beforeRemoveConnection:new lr(this),removeConnection:new ln(this)},this.hooks={save:new qr(this),load:new qr(this),checkConnection:new oMt(this)},this.nodeEvents=Ui(),this.nodeHooks=Ui(),this.connectionEvents=Ui(),this.editor=e,this.template=t,e.registerGraph(this)}addNode(e){if(!this.events.beforeAddNode.emit(e).prevented)return this.nodeEvents.addTarget(e.events),this.nodeHooks.addTarget(e.hooks),e.registerGraph(this),this._nodes.push(e),e=this.nodes.find(t=>t.id===e.id),e.onPlaced(),this.events.addNode.emit(e),e}removeNode(e){if(this.nodes.includes(e)){if(this.events.beforeRemoveNode.emit(e).prevented)return;const t=[...Object.values(e.inputs),...Object.values(e.outputs)];this.connections.filter(r=>t.includes(r.from)||t.includes(r.to)).forEach(r=>this.removeConnection(r)),this._nodes.splice(this.nodes.indexOf(e),1),this.events.removeNode.emit(e),e.onDestroy(),this.nodeEvents.removeTarget(e.events),this.nodeHooks.removeTarget(e.hooks)}}addConnection(e,t){const r=this.checkConnection(e,t);if(!r.connectionAllowed||this.events.beforeAddConnection.emit({from:e,to:t}).prevented)return;for(const s of r.connectionsInDanger){const o=this.connections.find(a=>a.id===s.id);o&&this.removeConnection(o)}const i=new fM(r.dummyConnection.from,r.dummyConnection.to);return this.internalAddConnection(i),i}removeConnection(e){if(this.connections.includes(e)){if(this.events.beforeRemoveConnection.emit(e).prevented)return;e.destruct(),this._connections.splice(this.connections.indexOf(e),1),this.events.removeConnection.emit(e),this.connectionEvents.removeTarget(e.events)}}checkConnection(e,t){if(!e||!t)return{connectionAllowed:!1};const r=this.findNodeById(e.nodeId),i=this.findNodeById(t.nodeId);if(r&&i&&r===i)return{connectionAllowed:!1};if(e.isInput&&!t.isInput){const a=e;e=t,t=a}if(e.isInput||!t.isInput)return{connectionAllowed:!1};if(this.connections.some(a=>a.from===e&&a.to===t))return{connectionAllowed:!1};if(this.events.checkConnection.emit({from:e,to:t}).prevented)return{connectionAllowed:!1};const s=this.hooks.checkConnection.execute({from:e,to:t});if(s.some(a=>!a.connectionAllowed))return{connectionAllowed:!1};const o=Array.from(new Set(s.flatMap(a=>a.connectionsInDanger)));return{connectionAllowed:!0,dummyConnection:new NO(e,t),connectionsInDanger:o}}findNodeInterface(e){for(const t of this.nodes){for(const r in t.inputs){const i=t.inputs[r];if(i.id===e)return i}for(const r in t.outputs){const i=t.outputs[r];if(i.id===e)return i}}}findNodeById(e){return this.nodes.find(t=>t.id===e)}load(e){try{this._loading=!0;const t=[];for(let r=this.connections.length-1;r>=0;r--)this.removeConnection(this.connections[r]);for(let r=this.nodes.length-1;r>=0;r--)this.removeNode(this.nodes[r]);this.id=e.id;for(const r of e.nodes){const i=this.editor.nodeTypes.get(r.type);if(!i){t.push(`Node type ${r.type} is not registered`);continue}const s=new i.type;this.addNode(s),s.load(r)}for(const r of e.connections){const i=this.findNodeInterface(r.from),s=this.findNodeInterface(r.to);if(i)if(s){const o=new fM(i,s);o.id=r.id,this.internalAddConnection(o)}else{t.push(`Could not find interface with id ${r.to}`);continue}else{t.push(`Could not find interface with id ${r.from}`);continue}}return this.hooks.load.execute(e),t}finally{this._loading=!1}}save(){const e={id:this.id,nodes:this.nodes.map(t=>t.save()),connections:this.connections.map(t=>({id:t.id,from:t.from.id,to:t.to.id})),inputs:this.inputs,outputs:this.outputs};return this.hooks.save.execute(e)}destroy(){this._destroying=!0;for(const e of this.nodes)this.removeNode(e);this.editor.unregisterGraph(this)}internalAddConnection(e){this.connectionEvents.addTarget(e.events),this._connections.push(e),this.events.addConnection.emit(e)}}const yd="__baklava_GraphNode-";function Yl(n){return yd+n.id}const aMt=["component","connectionCount","events","hidden","hooks","id","isInput","name","nodeId","port","templateId","value"];function lMt(n){return class extends kO{constructor(){super(...arguments),this.type=Yl(n),this.inputs={},this.outputs={},this.template=n,this.calculate=async(t,r)=>{var i;if(!this.subgraph)throw new Error(`GraphNode ${this.id}: calculate called without subgraph being initialized`);if(!r.engine||typeof r.engine!="object")throw new Error(`GraphNode ${this.id}: calculate called but no engine provided in context`);const s=r.engine.getInputValues(this.subgraph);for(const l of this.subgraph.inputs)s.set(l.nodeInterfaceId,t[l.id]);const o=await r.engine.runGraph(this.subgraph,s,r.globalValues),a={};for(const l of this.subgraph.outputs)a[l.id]=(i=o.get(l.nodeId))===null||i===void 0?void 0:i.get("output");return a._calculationResults=o,a}}get title(){return this._title}set title(t){this.template.name=t}load(t){if(!this.subgraph)throw new Error("Cannot load a graph node without a graph");if(!this.template)throw new Error("Unable to load graph node without graph template");this.subgraph.load(t.graphState),super.load(t)}save(){if(!this.subgraph)throw new Error("Cannot save a graph node without a graph");return{...super.save(),graphState:this.subgraph.save()}}onPlaced(){this.template.events.updated.subscribe(this,()=>this.initialize()),this.template.events.nameChanged.subscribe(this,t=>{this._title=t}),this.initialize()}onDestroy(){var t;this.template.events.updated.unsubscribe(this),this.template.events.nameChanged.unsubscribe(this),(t=this.subgraph)===null||t===void 0||t.destroy()}initialize(){this.subgraph&&this.subgraph.destroy(),this.subgraph=this.template.createGraph(),this._title=this.template.name,this.updateInterfaces(),this.events.update.emit(null)}updateInterfaces(){if(!this.subgraph)throw new Error("Trying to update interfaces without graph instance");for(const t of this.subgraph.inputs)t.id in this.inputs?this.inputs[t.id].name=t.name:this.addInput(t.id,this.createProxyInterface(t,!0));for(const t of Object.keys(this.inputs))this.subgraph.inputs.some(r=>r.id===t)||this.removeInput(t);for(const t of this.subgraph.outputs)t.id in this.outputs?this.outputs[t.id].name=t.name:this.addOutput(t.id,this.createProxyInterface(t,!1));for(const t of Object.keys(this.outputs))this.subgraph.outputs.some(r=>r.id===t)||this.removeOutput(t);this.addOutput("_calculationResults",new Cn("_calculationResults",void 0).setHidden(!0))}createProxyInterface(t,r){const i=new Cn(t.name,void 0);return new Proxy(i,{get:(s,o)=>{var a,l,d;if(aMt.includes(o)||o in s||typeof o=="string"&&o.startsWith("__v_"))return Reflect.get(s,o);let u;if(r){const g=(a=this.subgraph)===null||a===void 0?void 0:a.nodes.find(h=>aE.isGraphInputNode(h)&&h.graphInterfaceId===t.id);u=g==null?void 0:g.outputs.placeholder.id}else{const g=(l=this.subgraph)===null||l===void 0?void 0:l.nodes.find(h=>lE.isGraphOutputNode(h)&&h.graphInterfaceId===t.id);u=g==null?void 0:g.inputs.placeholder.id}const m=(d=this.subgraph)===null||d===void 0?void 0:d.connections.find(g=>{var h;return u===((h=r?g.from:g.to)===null||h===void 0?void 0:h.id)}),f=r?m==null?void 0:m.to:m==null?void 0:m.from;if(f)return Reflect.get(f,o)}})}}}class um{static fromGraph(e,t){return new um(e.save(),t)}get name(){return this._name}set name(e){this._name=e,this.events.nameChanged.emit(e);const t=this.editor.nodeTypes.get(Yl(this));t&&(t.title=e)}get inputs(){return this.nodes.filter(t=>t.type===Hl).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.placeholder.id}))}get outputs(){return this.nodes.filter(t=>t.type===ql).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.output.id}))}constructor(e,t){this.id=ks(),this._name="Subgraph",this.events={nameChanged:new ln(this),updated:new ln(this)},this.hooks={beforeLoad:new qr(this),afterSave:new qr(this)},this.editor=t,e.id&&(this.id=e.id),e.name&&(this._name=e.name),this.update(e)}update(e){this.nodes=e.nodes,this.connections=e.connections,this.events.updated.emit()}save(){return{id:this.id,name:this.name,nodes:this.nodes,connections:this.connections,inputs:this.inputs,outputs:this.outputs}}createGraph(e){const t=new Map,r=f=>{const g=ks();return t.set(f,g),g},i=f=>{const g=t.get(f);if(!g)throw new Error(`Unable to create graph from template: Could not map old id ${f} to new id`);return g},s=f=>V1(f,g=>({id:r(g.id),templateId:g.id,value:g.value})),o=this.nodes.map(f=>({...f,id:r(f.id),inputs:s(f.inputs),outputs:s(f.outputs)})),a=this.connections.map(f=>({id:r(f.id),from:i(f.from),to:i(f.to)})),l=this.inputs.map(f=>({id:f.id,name:f.name,nodeId:i(f.nodeId),nodeInterfaceId:i(f.nodeInterfaceId)})),d=this.outputs.map(f=>({id:f.id,name:f.name,nodeId:i(f.nodeId),nodeInterfaceId:i(f.nodeInterfaceId)})),u={id:ks(),nodes:o,connections:a,inputs:l,outputs:d};return e||(e=new Ud(this.editor)),e.load(u).forEach(f=>console.warn(f)),e.template=this,e}}class cMt{get nodeTypes(){return this._nodeTypes}get graph(){return this._graph}get graphTemplates(){return this._graphTemplates}get graphs(){return this._graphs}get loading(){return this._loading}constructor(){this.events={loaded:new ln(this),beforeRegisterNodeType:new lr(this),registerNodeType:new ln(this),beforeUnregisterNodeType:new lr(this),unregisterNodeType:new ln(this),beforeAddGraphTemplate:new lr(this),addGraphTemplate:new ln(this),beforeRemoveGraphTemplate:new lr(this),removeGraphTemplate:new ln(this),registerGraph:new ln(this),unregisterGraph:new ln(this)},this.hooks={save:new qr(this),load:new qr(this)},this.graphTemplateEvents=Ui(),this.graphTemplateHooks=Ui(),this.graphEvents=Ui(),this.graphHooks=Ui(),this.nodeEvents=Ui(),this.nodeHooks=Ui(),this.connectionEvents=Ui(),this._graphs=new Set,this._nodeTypes=new Map,this._graph=new Ud(this),this._graphTemplates=[],this._loading=!1,this.registerNodeType(aE),this.registerNodeType(lE)}registerNodeType(e,t){var r,i;if(this.events.beforeRegisterNodeType.emit({type:e,options:t}).prevented)return;const s=new e;this._nodeTypes.set(s.type,{type:e,category:(r=t==null?void 0:t.category)!==null&&r!==void 0?r:"default",title:(i=t==null?void 0:t.title)!==null&&i!==void 0?i:s.title}),this.events.registerNodeType.emit({type:e,options:t})}unregisterNodeType(e){const t=typeof e=="string"?e:new e().type;if(this.nodeTypes.has(t)){if(this.events.beforeUnregisterNodeType.emit(t).prevented)return;this._nodeTypes.delete(t),this.events.unregisterNodeType.emit(t)}}addGraphTemplate(e){if(this.events.beforeAddGraphTemplate.emit(e).prevented)return;this._graphTemplates.push(e),this.graphTemplateEvents.addTarget(e.events),this.graphTemplateHooks.addTarget(e.hooks);const t=lMt(e);this.registerNodeType(t,{category:"Subgraphs",title:e.name}),this.events.addGraphTemplate.emit(e)}removeGraphTemplate(e){if(this.graphTemplates.includes(e)){if(this.events.beforeRemoveGraphTemplate.emit(e).prevented)return;const t=Yl(e);for(const r of[this.graph,...this.graphs.values()]){const i=r.nodes.filter(s=>s.type===t);for(const s of i)r.removeNode(s)}this.unregisterNodeType(t),this._graphTemplates.splice(this._graphTemplates.indexOf(e),1),this.graphTemplateEvents.removeTarget(e.events),this.graphTemplateHooks.removeTarget(e.hooks),this.events.removeGraphTemplate.emit(e)}}registerGraph(e){this.graphEvents.addTarget(e.events),this.graphHooks.addTarget(e.hooks),this.nodeEvents.addTarget(e.nodeEvents),this.nodeHooks.addTarget(e.nodeHooks),this.connectionEvents.addTarget(e.connectionEvents),this.events.registerGraph.emit(e),this._graphs.add(e)}unregisterGraph(e){this.graphEvents.removeTarget(e.events),this.graphHooks.removeTarget(e.hooks),this.nodeEvents.removeTarget(e.nodeEvents),this.nodeHooks.removeTarget(e.nodeHooks),this.connectionEvents.removeTarget(e.connectionEvents),this.events.unregisterGraph.emit(e),this._graphs.delete(e)}load(e){try{for(this._loading=!0,e=this.hooks.load.execute(e);this.graphTemplates.length>0;)this.removeGraphTemplate(this.graphTemplates[0]);e.graphTemplates.forEach(r=>{const i=new um(r,this);this.addGraphTemplate(i)});const t=this._graph.load(e.graph);return this.events.loaded.emit(),t.forEach(r=>console.warn(r)),t}finally{this._loading=!1}}save(){const e={graph:this.graph.save(),graphTemplates:this.graphTemplates.map(t=>t.save())};return this.hooks.save.execute(e)}}function dMt(n,e){const t=new Map;e.graphs.forEach(r=>{r.nodes.forEach(i=>t.set(i.id,i))}),n.forEach((r,i)=>{const s=t.get(i);s&&r.forEach((o,a)=>{const l=s.outputs[a];l&&(l.value=o)})})}class DO extends Error{constructor(){super("Cycle detected")}}function uMt(n){return typeof n=="string"}function LO(n,e){const t=new Map,r=new Map,i=new Map;let s,o;if(n instanceof Ud)s=n.nodes,o=n.connections;else{if(!e)throw new Error("Invalid argument value: expected array of connections");s=n,o=e}s.forEach(d=>{Object.values(d.inputs).forEach(u=>t.set(u.id,d.id)),Object.values(d.outputs).forEach(u=>t.set(u.id,d.id))}),s.forEach(d=>{const u=o.filter(f=>f.from&&t.get(f.from.id)===d.id),m=new Set(u.map(f=>t.get(f.to.id)).filter(uMt));r.set(d.id,m),i.set(d,u)});const a=s.slice();o.forEach(d=>{const u=a.findIndex(m=>t.get(d.to.id)===m.id);u>=0&&a.splice(u,1)});const l=[];for(;a.length>0;){const d=a.pop();l.push(d);const u=r.get(d.id);for(;u.size>0;){const m=u.values().next().value;if(u.delete(m),Array.from(r.values()).every(f=>!f.has(m))){const f=s.find(g=>g.id===m);a.push(f)}}}if(Array.from(r.values()).some(d=>d.size>0))throw new DO;return{calculationOrder:l,connectionsFromNode:i,interfaceIdToNodeId:t}}function pMt(n,e){try{return LO(n,e),!1}catch(t){if(t instanceof DO)return!0;throw t}}var xr;(function(n){n.Running="Running",n.Idle="Idle",n.Paused="Paused",n.Stopped="Stopped"})(xr||(xr={}));class hMt{get status(){return this.isRunning?xr.Running:this.internalStatus}constructor(e){this.editor=e,this.events={beforeRun:new lr(this),afterRun:new ln(this),statusChange:new ln(this),beforeNodeCalculation:new ln(this),afterNodeCalculation:new ln(this)},this.hooks={gatherCalculationData:new qr(this),transferData:new MO},this.recalculateOrder=!0,this.internalStatus=xr.Stopped,this.isRunning=!1,this.editor.nodeEvents.update.subscribe(this,(t,r)=>{r.graph&&!r.graph.loading&&r.graph.activeTransactions===0&&this.internalOnChange(r,t??void 0)}),this.editor.graphEvents.addNode.subscribe(this,(t,r)=>{this.recalculateOrder=!0,!r.loading&&r.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.removeNode.subscribe(this,(t,r)=>{this.recalculateOrder=!0,!r.loading&&r.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.addConnection.subscribe(this,(t,r)=>{this.recalculateOrder=!0,!r.loading&&r.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.removeConnection.subscribe(this,(t,r)=>{this.recalculateOrder=!0,!r.loading&&r.activeTransactions===0&&this.internalOnChange()}),this.editor.graphHooks.checkConnection.subscribe(this,t=>this.checkConnection(t.from,t.to))}start(){this.internalStatus===xr.Stopped&&(this.internalStatus=xr.Idle,this.events.statusChange.emit(this.status))}pause(){this.internalStatus===xr.Idle&&(this.internalStatus=xr.Paused,this.events.statusChange.emit(this.status))}resume(){this.internalStatus===xr.Paused&&(this.internalStatus=xr.Idle,this.events.statusChange.emit(this.status))}stop(){(this.internalStatus===xr.Idle||this.internalStatus===xr.Paused)&&(this.internalStatus=xr.Stopped,this.events.statusChange.emit(this.status))}async runOnce(e,...t){if(this.events.beforeRun.emit(e).prevented)return null;try{this.isRunning=!0,this.events.statusChange.emit(this.status),this.recalculateOrder&&this.calculateOrder();const r=await this.execute(e,...t);return this.events.afterRun.emit(r),r}finally{this.isRunning=!1,this.events.statusChange.emit(this.status)}}checkConnection(e,t){if(e.templateId){const s=this.findInterfaceByTemplateId(this.editor.graph.nodes,e.templateId);if(!s)return{connectionAllowed:!0,connectionsInDanger:[]};e=s}if(t.templateId){const s=this.findInterfaceByTemplateId(this.editor.graph.nodes,t.templateId);if(!s)return{connectionAllowed:!0,connectionsInDanger:[]};t=s}const r=new NO(e,t);let i=this.editor.graph.connections.slice();return t.allowMultipleConnections||(i=i.filter(s=>s.to!==t)),i.push(r),pMt(this.editor.graph.nodes,i)?{connectionAllowed:!1,connectionsInDanger:[]}:{connectionAllowed:!0,connectionsInDanger:t.allowMultipleConnections?[]:this.editor.graph.connections.filter(s=>s.to===t)}}calculateOrder(){this.recalculateOrder=!0}async calculateWithoutData(...e){const t=this.hooks.gatherCalculationData.execute(void 0);return await this.runOnce(t,...e)}validateNodeCalculationOutput(e,t){if(typeof t!="object")throw new Error(`Invalid calculation return value from node ${e.id} (type ${e.type})`);Object.keys(e.outputs).forEach(r=>{if(!(r in t))throw new Error(`Calculation return value from node ${e.id} (type ${e.type}) is missing key "${r}"`)})}internalOnChange(e,t){this.internalStatus===xr.Idle&&this.onChange(this.recalculateOrder,e,t)}findInterfaceByTemplateId(e,t){for(const r of e)for(const i of[...Object.values(r.inputs),...Object.values(r.outputs)])if(i.templateId===t)return i;return null}}class mMt extends hMt{constructor(e){super(e),this.order=new Map}start(){super.start(),this.recalculateOrder=!0,this.calculateWithoutData()}async runGraph(e,t,r){this.order.has(e.id)||this.order.set(e.id,LO(e));const{calculationOrder:i,connectionsFromNode:s}=this.order.get(e.id),o=new Map;for(const a of i){const l={};Object.entries(a.inputs).forEach(([u,m])=>{l[u]=this.getInterfaceValue(t,m.id)}),this.events.beforeNodeCalculation.emit({inputValues:l,node:a});let d;if(a.calculate)d=await a.calculate(l,{globalValues:r,engine:this});else{d={};for(const[u,m]of Object.entries(a.outputs))d[u]=this.getInterfaceValue(t,m.id)}this.validateNodeCalculationOutput(a,d),this.events.afterNodeCalculation.emit({outputValues:d,node:a}),o.set(a.id,new Map(Object.entries(d))),s.has(a)&&s.get(a).forEach(u=>{var m;const f=(m=Object.entries(a.outputs).find(([,h])=>h.id===u.from.id))===null||m===void 0?void 0:m[0];if(!f)throw new Error(`Could not find key for interface ${u.from.id} This is likely a Baklava internal issue. Please report it on GitHub.`);const g=this.hooks.transferData.execute(d[f],u);u.to.allowMultipleConnections?t.has(u.to.id)?t.get(u.to.id).push(g):t.set(u.to.id,[g]):t.set(u.to.id,g)})}return o}async execute(e){this.recalculateOrder&&(this.order.clear(),this.recalculateOrder=!1);const t=this.getInputValues(this.editor.graph);return await this.runGraph(this.editor.graph,t,e)}getInputValues(e){const t=new Map;for(const r of e.nodes)Object.values(r.inputs).forEach(i=>{i.connectionCount===0&&t.set(i.id,i.value)}),r.calculate||Object.values(r.outputs).forEach(i=>{t.set(i.id,i.value)});return t}onChange(e){this.recalculateOrder=e||this.recalculateOrder,this.calculateWithoutData()}getInterfaceValue(e,t){if(!e.has(t))throw new Error(`Could not find value for interface ${t} -This is likely a Baklava internal issue. Please report it on GitHub.`);return e.get(t)}}const fMt=["INPUT","TEXTAREA","SELECT"];function PO(n){return fMt.includes(n.tagName)}let H1=null;function gMt(n){H1=n}function $r(){if(!H1)throw new Error("providePlugin() must be called before usePlugin()");return{viewModel:H1}}function _i(){const{viewModel:n}=$r();return{graph:yp(n.value,"displayedGraph"),switchGraph:n.value.switchGraph}}function FO(n){const{graph:e}=_i(),t=yt(null),r=yt(null);return{dragging:mt(()=>!!t.value),onPointerDown:l=>{t.value={x:l.pageX,y:l.pageY},r.value={x:n.value.x,y:n.value.y}},onPointerMove:l=>{if(t.value){const d=l.pageX-t.value.x,u=l.pageY-t.value.y;n.value.x=r.value.x+d/e.value.scaling,n.value.y=r.value.y+u/e.value.scaling}},onPointerUp:()=>{t.value=null,r.value=null}}}function UO(n,e,t){if(!e.template)return!1;if(Yl(e.template)===t)return!0;const r=n.graphTemplates.find(s=>Yl(s)===t);return r?r.nodes.filter(s=>s.type.startsWith(yd)).some(s=>UO(n,e,s.type)):!1}function BO(n){return mt(()=>{const e=Array.from(n.value.editor.nodeTypes.entries()),t=new Set(e.map(([,i])=>i.category)),r=[];for(const i of t.values()){let s=e.filter(([,o])=>o.category===i);n.value.displayedGraph.template?s=s.filter(([o])=>!UO(n.value.editor,n.value.displayedGraph,o)):s=s.filter(([o])=>![Hl,ql].includes(o)),s.length>0&&r.push({name:i,nodeTypes:Object.fromEntries(s)})}return r.sort((i,s)=>i.name==="default"?-1:s.name==="default"||i.name>s.name?1:-1),r})}function GO(){const{graph:n}=_i();return{transform:(t,r)=>{const i=t/n.value.scaling-n.value.panning.x,s=r/n.value.scaling-n.value.panning.y;return[i,s]}}}function _Mt(){const{graph:n}=_i();let e=[],t=-1,r={x:0,y:0};const i=mt(()=>n.value.panning),s=FO(i),o=mt(()=>({"transform-origin":"0 0",transform:`scale(${n.value.scaling}) translate(${n.value.panning.x}px, ${n.value.panning.y}px)`})),a=(g,h,v)=>{const b=[g/n.value.scaling-n.value.panning.x,h/n.value.scaling-n.value.panning.y],_=[g/v-n.value.panning.x,h/v-n.value.panning.y],y=[_[0]-b[0],_[1]-b[1]];n.value.panning.x+=y[0],n.value.panning.y+=y[1],n.value.scaling=v},l=g=>{g.preventDefault();let h=g.deltaY;g.deltaMode===1&&(h*=32);const v=n.value.scaling*(1-h/3e3);a(g.offsetX,g.offsetY,v)},d=()=>({ax:e[0].clientX,ay:e[0].clientY,bx:e[1].clientX,by:e[1].clientY});return{styles:o,...s,onPointerDown:g=>{if(e.push(g),s.onPointerDown(g),e.length===2){const{ax:h,ay:v,bx:b,by:_}=d();r={x:h+(b-h)/2,y:v+(_-v)/2}}},onPointerMove:g=>{for(let h=0;h0){const A=n.value.scaling*(1+(x-t)/500);a(r.x,r.y,A)}t=x}else s.onPointerMove(g)},onPointerUp:g=>{e=e.filter(h=>h.pointerId!==g.pointerId),t=-1,s.onPointerUp()},onMouseWheel:l}}var ni=(n=>(n[n.NONE=0]="NONE",n[n.ALLOWED=1]="ALLOWED",n[n.FORBIDDEN=2]="FORBIDDEN",n))(ni||{});const zO=Symbol();function bMt(){const{graph:n}=_i(),e=yt(null),t=yt(null),r=a=>{e.value&&(e.value.mx=a.offsetX/n.value.scaling-n.value.panning.x,e.value.my=a.offsetY/n.value.scaling-n.value.panning.y)},i=()=>{if(t.value){if(e.value)return;const a=n.value.connections.find(l=>l.to===t.value);t.value.isInput&&a?(e.value={status:ni.NONE,from:a.from},n.value.removeConnection(a)):e.value={status:ni.NONE,from:t.value},e.value.mx=void 0,e.value.my=void 0}},s=()=>{if(e.value&&t.value){if(e.value.from===t.value)return;n.value.addConnection(e.value.from,e.value.to)}e.value=null},o=a=>{if(t.value=a??null,a&&e.value){e.value.to=a;const l=n.value.checkConnection(e.value.from,e.value.to);if(e.value.status=l.connectionAllowed?ni.ALLOWED:ni.FORBIDDEN,l.connectionAllowed){const d=l.connectionsInDanger.map(u=>u.id);n.value.connections.forEach(u=>{d.includes(u.id)&&(u.isInDanger=!0)})}}else!a&&e.value&&(e.value.to=void 0,e.value.status=ni.NONE,n.value.connections.forEach(l=>{l.isInDanger=!1}))};return ml(zO,{temporaryConnection:e,hoveredOver:o}),{temporaryConnection:e,onMouseMove:r,onMouseDown:i,onMouseUp:s,hoveredOver:o}}function vMt(n){const e=yt(!1),t=yt(0),r=yt(0),i=BO(n),{transform:s}=GO(),o=mt(()=>{let u=[];const m={};for(const g of i.value){const h=Object.entries(g.nodeTypes).map(([v,b])=>({label:b.title,value:"addNode:"+v}));g.name==="default"?u=h:m[g.name]=h}const f=[...Object.entries(m).map(([g,h])=>({label:g,submenu:h}))];return f.length>0&&u.length>0&&f.push({isDivider:!0}),f.push(...u),f}),a=mt(()=>n.value.settings.contextMenu.additionalItems.length===0?o.value:[{label:"Add node",submenu:o.value},...n.value.settings.contextMenu.additionalItems.map(u=>"isDivider"in u||"submenu"in u?u:{label:u.label,value:"command:"+u.command,disabled:!n.value.commandHandler.canExecuteCommand(u.command)})]);function l(u){const m=u.target;if(!(m instanceof Element)||PO(m))return;u.preventDefault(),e.value=!0;const f=m.getBoundingClientRect(),h=m.closest(".baklava-editor").getBoundingClientRect();t.value=f.x+u.offsetX-h.x,r.value=f.y+u.offsetY-h.y}function d(u){if(u.startsWith("addNode:")){const m=u.substring(8),f=n.value.editor.nodeTypes.get(m);if(!f)return;const g=yr(new f.type);n.value.displayedGraph.addNode(g);const[h,v]=s(t.value,r.value);g.position.x=h,g.position.y=v}else if(u.startsWith("command:")){const m=u.substring(8);n.value.commandHandler.canExecuteCommand(m)&&n.value.commandHandler.executeCommand(m)}}return{show:e,x:t,y:r,items:a,open:l,onClick:d}}const gp="START_SELECTION_BOX";function yMt(n){const{viewModel:e}=$r(),{graph:t}=_i(),r=mt(()=>t.value.nodes),i=yt(!1),s=yt(!1),o=yt([0,0]),a=yt([0,0]);Zn(e,()=>{e.value.commandHandler.hasCommand(gp)||(e.value.commandHandler.registerCommand(gp,{canExecute:()=>!0,execute(){i.value=!0}}),e.value.commandHandler.registerHotkey(["b"],gp))},{immediate:!0});function l(_){return[_.clientX-n.value.getBoundingClientRect().left,_.clientY-n.value.getBoundingClientRect().top]}function d(_){return i.value?(s.value=!0,i.value=!1,o.value=l(_),a.value=l(_),document.addEventListener("pointermove",u),document.addEventListener("pointerup",m),!0):!1}function u(_){o.value=l(_)}function m(_){document.removeEventListener("pointermove",u),document.removeEventListener("pointerup",m),o.value=l(_),s.value=!1;const y=f();for(const E of y)e.value.displayedGraph.selectedNodes.push(E)}function f(){const _=g(),E=document.querySelector(".baklava-editor").getBoundingClientRect();return r.value.filter(x=>{const A=h(x,E);return v(_,A)})}function g(){return{left:Math.min(o.value[0],a.value[0]),top:Math.min(o.value[1],a.value[1]),right:Math.max(o.value[0],a.value[0]),bottom:Math.max(o.value[1],a.value[1])}}function h(_,y){const E=document.getElementById(_.id),x=E?E.getBoundingClientRect():{x:0,y:0,width:0,height:0},A=x.x-y.left,w=x.y-y.top;return{left:A,top:w,right:A+x.width,bottom:w+x.height}}function v(_,y){return _.lefty.left&&_.topy.top}function b(){return{width:Math.abs(a.value[0]-o.value[0])+"px",height:Math.abs(a.value[1]-o.value[1])+"px",left:(a.value[0]>o.value[0]?o.value[0]:a.value[0])+"px",top:(a.value[1]>o.value[1]?o.value[1]:a.value[1])+"px"}}return yr({startSelection:i,isSelecting:s,start:o,end:a,onPointerDown:d,getStyles:b})}const EMt=Pn({setup(){const{viewModel:n}=$r(),{graph:e}=_i();return{styles:mt(()=>{const r=n.value.settings.background,i=e.value.panning.x*e.value.scaling,s=e.value.panning.y*e.value.scaling,o=e.value.scaling*r.gridSize,a=o/r.gridDivision,l=`${o}px ${o}px, ${o}px ${o}px`,d=e.value.scaling>r.subGridVisibleThreshold?`, ${a}px ${a}px, ${a}px ${a}px`:"";return{backgroundPosition:`left ${i}px top ${s}px`,backgroundSize:`${l} ${d}`}})}}}),Nn=(n,e)=>{const t=n.__vccOpts||n;for(const[r,i]of e)t[r]=i;return t};function SMt(n,e,t,r,i,s){return T(),M("div",{class:"background",style:on(n.styles)},null,4)}const xMt=Nn(EMt,[["render",SMt]]);function TMt(n){return LM()?(w5(n),!0):!1}function cE(n){return typeof n=="function"?n():Pt(n)}const VO=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const wMt=Object.prototype.toString,CMt=n=>wMt.call(n)==="[object Object]",_p=()=>{},AMt=RMt();function RMt(){var n,e;return VO&&((n=window==null?void 0:window.navigator)==null?void 0:n.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function MMt(n,e,t=!1){return e.reduce((r,i)=>(i in n&&(!t||n[i]!==void 0)&&(r[i]=n[i]),r),{})}function NMt(n,e={}){if(!Gn(n))return eD(n);const t=Array.isArray(n.value)?Array.from({length:n.value.length}):{};for(const r in n.value)t[r]=J5(()=>({get(){return n.value[r]},set(i){var s;if((s=cE(e.replaceRef))!=null?s:!0)if(Array.isArray(n.value)){const a=[...n.value];a[r]=i,n.value=a}else{const a={...n.value,[r]:i};Object.setPrototypeOf(a,Object.getPrototypeOf(n.value)),n.value=a}else n.value[r]=i}}));return t}function Lc(n){var e;const t=cE(n);return(e=t==null?void 0:t.$el)!=null?e:t}const dE=VO?window:void 0;function ed(...n){let e,t,r,i;if(typeof n[0]=="string"||Array.isArray(n[0])?([t,r,i]=n,e=dE):[e,t,r,i]=n,!e)return _p;Array.isArray(t)||(t=[t]),Array.isArray(r)||(r=[r]);const s=[],o=()=>{s.forEach(u=>u()),s.length=0},a=(u,m,f,g)=>(u.addEventListener(m,f,g),()=>u.removeEventListener(m,f,g)),l=Zn(()=>[Lc(e),cE(i)],([u,m])=>{if(o(),!u)return;const f=CMt(m)?{...m}:m;s.push(...t.flatMap(g=>r.map(h=>a(u,g,h,f))))},{immediate:!0,flush:"post"}),d=()=>{l(),o()};return TMt(d),d}let gM=!1;function HO(n,e,t={}){const{window:r=dE,ignore:i=[],capture:s=!0,detectIframe:o=!1}=t;if(!r)return _p;AMt&&!gM&&(gM=!0,Array.from(r.document.body.children).forEach(f=>f.addEventListener("click",_p)),r.document.documentElement.addEventListener("click",_p));let a=!0;const l=f=>i.some(g=>{if(typeof g=="string")return Array.from(r.document.querySelectorAll(g)).some(h=>h===f.target||f.composedPath().includes(h));{const h=Lc(g);return h&&(f.target===h||f.composedPath().includes(h))}}),u=[ed(r,"click",f=>{const g=Lc(n);if(!(!g||g===f.target||f.composedPath().includes(g))){if(f.detail===0&&(a=!l(f)),!a){a=!0;return}e(f)}},{passive:!0,capture:s}),ed(r,"pointerdown",f=>{const g=Lc(n);a=!l(f)&&!!(g&&!f.composedPath().includes(g))},{passive:!0}),o&&ed(r,"blur",f=>{setTimeout(()=>{var g;const h=Lc(n);((g=r.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(h!=null&&h.contains(r.document.activeElement))&&e(f)},0)})].filter(Boolean);return()=>u.forEach(f=>f())}const qO={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},kMt=Object.keys(qO);function IMt(n={}){const{target:e=dE}=n,t=yt(!1),r=yt(n.initialValue||{});Object.assign(r.value,qO,r.value);const i=s=>{t.value=!0,!(n.pointerTypes&&!n.pointerTypes.includes(s.pointerType))&&(r.value=MMt(s,kMt,!1))};if(e){const s={passive:!0};ed(e,["pointerdown","pointermove","pointerup"],i,s),ed(e,"pointerleave",()=>t.value=!1,s)}return{...NMt(r),isInside:t}}const OMt=["onMouseenter","onMouseleave","onClick"],DMt={class:"flex-fill"},LMt={key:0,class:"__submenu-icon",style:{"line-height":"1em"}},PMt=c("svg",{width:"13",height:"13",viewBox:"-60 120 250 250"},[c("path",{d:"M160.875 279.5625 L70.875 369.5625 L70.875 189.5625 L160.875 279.5625 Z",stroke:"none",fill:"white"})],-1),FMt=[PMt],uE=Pn({__name:"ContextMenu",props:{modelValue:{type:Boolean},items:{},x:{default:0},y:{default:0},isNested:{type:Boolean,default:!1},isFlipped:{default:()=>({x:!1,y:!1})},flippable:{type:Boolean,default:!1}},emits:["update:modelValue","click"],setup(n,{emit:e}){const t=n,r=e;let i=null;const s=yt(null),o=yt(-1),a=yt(0),l=yt({x:!1,y:!1}),d=mt(()=>t.flippable&&(l.value.x||t.isFlipped.x)),u=mt(()=>t.flippable&&(l.value.y||t.isFlipped.y)),m=mt(()=>{const y={};return t.isNested||(y.top=(u.value?t.y-a.value:t.y)+"px",y.left=t.x+"px"),y}),f=mt(()=>({"--flipped-x":d.value,"--flipped-y":u.value,"--nested":t.isNested})),g=mt(()=>t.items.map(y=>({...y,hover:!1})));Zn([()=>t.y,()=>t.items],()=>{var y,E,x,A;a.value=t.items.length*30;const w=((E=(y=s.value)==null?void 0:y.parentElement)==null?void 0:E.offsetWidth)??0,N=((A=(x=s.value)==null?void 0:x.parentElement)==null?void 0:A.offsetHeight)??0;l.value.x=!t.isNested&&t.x>w*.75,l.value.y=!t.isNested&&t.y+a.value>N-20}),HO(s,()=>{t.modelValue&&r("update:modelValue",!1)});const h=y=>{!y.submenu&&y.value&&(r("click",y.value),r("update:modelValue",!1))},v=y=>{r("click",y),o.value=-1,t.isNested||r("update:modelValue",!1)},b=(y,E)=>{t.items[E].submenu&&(o.value=E,i!==null&&(clearTimeout(i),i=null))},_=(y,E)=>{t.items[E].submenu&&(i=window.setTimeout(()=>{o.value=-1,i=null},200))};return(y,E)=>{const x=ht("ContextMenu",!0);return T(),Tt(Cs,{name:"slide-fade"},{default:Ge(()=>[F(c("div",{ref_key:"el",ref:s,class:qe(["baklava-context-menu",f.value]),style:on(m.value)},[(T(!0),M(je,null,at(g.value,(A,w)=>(T(),M(je,null,[A.isDivider?(T(),M("div",{key:`d-${w}`,class:"divider"})):(T(),M("div",{key:`i-${w}`,class:qe(["item",{submenu:!!A.submenu,"--disabled":!!A.disabled}]),onMouseenter:N=>b(N,w),onMouseleave:N=>_(N,w),onClick:J(N=>h(A),["stop","prevent"])},[c("div",DMt,X(A.label),1),A.submenu?(T(),M("div",LMt,FMt)):Y("",!0),A.submenu?(T(),Tt(x,{key:1,"model-value":o.value===w,items:A.submenu,"is-nested":!0,"is-flipped":{x:d.value,y:u.value},flippable:y.flippable,onClick:v},null,8,["model-value","items","is-flipped","flippable"])):Y("",!0)],42,OMt))],64))),256))],6),[[Dt,y.modelValue]])]),_:1})}}}),UMt={},BMt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"16",height:"16",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},GMt=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),zMt=c("circle",{cx:"12",cy:"12",r:"1"},null,-1),VMt=c("circle",{cx:"12",cy:"19",r:"1"},null,-1),HMt=c("circle",{cx:"12",cy:"5",r:"1"},null,-1),qMt=[GMt,zMt,VMt,HMt];function YMt(n,e){return T(),M("svg",BMt,qMt)}const YO=Nn(UMt,[["render",YMt]]),$Mt=["id"],WMt={key:0,class:"__tooltip"},KMt={key:2,class:"align-middle"},_M=Pn({__name:"NodeInterface",props:{node:{},intf:{}},setup(n){const e=(b,_=100)=>{const y=typeof(b==null?void 0:b.toString)=="function"?String(b):"";return y.length>_?y.slice(0,_)+"...":y},t=n,{viewModel:r}=$r(),{hoveredOver:i,temporaryConnection:s}=Gr(zO),o=yt(null),a=mt(()=>t.intf.connectionCount>0),l=yt(!1),d=mt(()=>r.value.settings.displayValueOnHover&&l.value),u=mt(()=>({"--input":t.intf.isInput,"--output":!t.intf.isInput,"--connected":a.value})),m=mt(()=>t.intf.component&&(!t.intf.isInput||!t.intf.port||t.intf.connectionCount===0)),f=()=>{l.value=!0,i(t.intf)},g=()=>{l.value=!1,i(void 0)},h=()=>{o.value&&r.value.hooks.renderInterface.execute({intf:t.intf,el:o.value})},v=()=>{const b=r.value.displayedGraph.sidebar;b.nodeId=t.node.id,b.optionName=t.intf.name,b.visible=!0};return Ji(h),xd(h),(b,_)=>{var y;return T(),M("div",{id:b.intf.id,ref_key:"el",ref:o,class:qe(["baklava-node-interface",u.value])},[b.intf.port?(T(),M("div",{key:0,class:qe(["__port",{"--selected":((y=Pt(s))==null?void 0:y.from)===b.intf}]),onPointerover:f,onPointerout:g},[On(b.$slots,"portTooltip",{showTooltip:d.value},()=>[d.value===!0?(T(),M("span",WMt,X(e(b.intf.value)),1)):Y("",!0)])],34)):Y("",!0),m.value?(T(),Tt(Sh(b.intf.component),{key:1,modelValue:b.intf.value,"onUpdate:modelValue":_[0]||(_[0]=E=>b.intf.value=E),node:b.node,intf:b.intf,onOpenSidebar:v},null,40,["modelValue","node","intf"])):(T(),M("span",KMt,X(b.intf.name),1))],10,$Mt)}}}),jMt=["id","data-node-type"],QMt={class:"__title-label"},XMt={class:"__menu"},ZMt={class:"__outputs"},JMt={class:"__inputs"},e4t=Pn({__name:"Node",props:{node:{},selected:{type:Boolean,default:!1},dragging:{type:Boolean}},emits:["select","start-drag"],setup(n,{emit:e}){const t=n,r=e,{viewModel:i}=$r(),{graph:s,switchGraph:o}=_i(),a=yt(null),l=yt(!1),d=yt(""),u=yt(null),m=yt(!1),f=yt(!1),g=mt(()=>{const q=[{value:"rename",label:"Rename"},{value:"delete",label:"Delete"}];return t.node.type.startsWith(yd)&&q.push({value:"editSubgraph",label:"Edit Subgraph"}),q}),h=mt(()=>({"--selected":t.selected,"--dragging":t.dragging,"--two-column":!!t.node.twoColumn})),v=mt(()=>({"--reverse-y":t.node.reverseY??i.value.settings.nodes.reverseY})),b=mt(()=>{var q,ie;return{top:`${((q=t.node.position)==null?void 0:q.y)??0}px`,left:`${((ie=t.node.position)==null?void 0:ie.x)??0}px`,"--width":`${t.node.width??i.value.settings.nodes.defaultWidth}px`}}),_=mt(()=>Object.values(t.node.inputs).filter(q=>!q.hidden)),y=mt(()=>Object.values(t.node.outputs).filter(q=>!q.hidden)),E=()=>{r("select")},x=q=>{t.selected||E(),r("start-drag",q)},A=()=>{f.value=!0},w=async q=>{var ie;switch(q){case"delete":s.value.removeNode(t.node);break;case"rename":d.value=t.node.title,l.value=!0,await We(),(ie=u.value)==null||ie.focus();break;case"editSubgraph":o(t.node.template);break}},N=()=>{t.node.title=d.value,l.value=!1},L=()=>{a.value&&i.value.hooks.renderNode.execute({node:t.node,el:a.value})},C=q=>{m.value=!0,q.preventDefault()},k=q=>{if(!m.value)return;const ie=t.node.width+q.movementX/s.value.scaling,D=i.value.settings.nodes.minWidth,$=i.value.settings.nodes.maxWidth;t.node.width=Math.max(D,Math.min($,ie))},H=()=>{m.value=!1};return Ji(()=>{L(),window.addEventListener("mousemove",k),window.addEventListener("mouseup",H)}),xd(L),jl(()=>{window.removeEventListener("mousemove",k),window.removeEventListener("mouseup",H)}),(q,ie)=>(T(),M("div",{id:q.node.id,ref_key:"el",ref:a,class:qe(["baklava-node",h.value]),style:on(b.value),"data-node-type":q.node.type,onPointerdown:E},[Pt(i).settings.nodes.resizable?(T(),M("div",{key:0,class:"__resize-handle",onMousedown:C},null,32)):Y("",!0),On(q.$slots,"title",{},()=>[c("div",{class:"__title",onPointerdown:J(x,["self","stop"])},[l.value?F((T(),M("input",{key:1,ref_key:"renameInputEl",ref:u,"onUpdate:modelValue":ie[1]||(ie[1]=D=>d.value=D),type:"text",class:"baklava-input",placeholder:"Node Name",onBlur:N,onKeydown:ui(N,["enter"])},null,544)),[[_e,d.value]]):(T(),M(je,{key:0},[c("div",QMt,X(q.node.title),1),c("div",XMt,[W(YO,{class:"--clickable",onClick:A}),W(Pt(uE),{modelValue:f.value,"onUpdate:modelValue":ie[0]||(ie[0]=D=>f.value=D),x:0,y:0,items:g.value,onClick:w},null,8,["modelValue","items"])])],64))],32)]),On(q.$slots,"content",{},()=>[c("div",{class:qe(["__content",v.value]),onKeydown:ie[2]||(ie[2]=ui(J(()=>{},["stop"]),["delete"]))},[c("div",ZMt,[(T(!0),M(je,null,at(y.value,D=>On(q.$slots,"nodeInterface",{key:D.id,type:"output",node:q.node,intf:D},()=>[W(_M,{node:q.node,intf:D},null,8,["node","intf"])])),128))]),c("div",JMt,[(T(!0),M(je,null,at(_.value,D=>On(q.$slots,"nodeInterface",{key:D.id,type:"input",node:q.node,intf:D},()=>[W(_M,{node:q.node,intf:D},null,8,["node","intf"])])),128))])],34)])],46,jMt))}}),t4t=Pn({props:{x1:{type:Number,required:!0},y1:{type:Number,required:!0},x2:{type:Number,required:!0},y2:{type:Number,required:!0},state:{type:Number,default:ni.NONE},isTemporary:{type:Boolean,default:!1}},setup(n){const{viewModel:e}=$r(),{graph:t}=_i(),r=(o,a)=>{const l=(o+t.value.panning.x)*t.value.scaling,d=(a+t.value.panning.y)*t.value.scaling;return[l,d]},i=mt(()=>{const[o,a]=r(n.x1,n.y1),[l,d]=r(n.x2,n.y2);if(e.value.settings.useStraightConnections)return`M ${o} ${a} L ${l} ${d}`;{const u=.3*Math.abs(o-l);return`M ${o} ${a} C ${o+u} ${a}, ${l-u} ${d}, ${l} ${d}`}}),s=mt(()=>({"--temporary":n.isTemporary,"--allowed":n.state===ni.ALLOWED,"--forbidden":n.state===ni.FORBIDDEN}));return{d:i,classes:s}}}),n4t=["d"];function r4t(n,e,t,r,i,s){return T(),M("path",{class:qe(["baklava-connection",n.classes]),d:n.d},null,10,n4t)}const $O=Nn(t4t,[["render",r4t]]);function i4t(n){return document.getElementById(n.id)}function $l(n){const e=document.getElementById(n.id),t=e==null?void 0:e.getElementsByClassName("__port");return{node:(e==null?void 0:e.closest(".baklava-node"))??null,interface:e,port:t&&t.length>0?t[0]:null}}const s4t=Pn({components:{"connection-view":$O},props:{connection:{type:Object,required:!0}},setup(n){const{graph:e}=_i();let t;const r=yt({x1:0,y1:0,x2:0,y2:0}),i=mt(()=>n.connection.isInDanger?ni.FORBIDDEN:ni.NONE),s=mt(()=>{var d;return(d=e.value.findNodeById(n.connection.from.nodeId))==null?void 0:d.position}),o=mt(()=>{var d;return(d=e.value.findNodeById(n.connection.to.nodeId))==null?void 0:d.position}),a=d=>d.node&&d.interface&&d.port?[d.node.offsetLeft+d.interface.offsetLeft+d.port.offsetLeft+d.port.clientWidth/2,d.node.offsetTop+d.interface.offsetTop+d.port.offsetTop+d.port.clientHeight/2]:[0,0],l=()=>{const d=$l(n.connection.from),u=$l(n.connection.to);d.node&&u.node&&(t||(t=new ResizeObserver(()=>{l()}),t.observe(d.node),t.observe(u.node)));const[m,f]=a(d),[g,h]=a(u);r.value={x1:m,y1:f,x2:g,y2:h}};return Ji(async()=>{await We(),l()}),jl(()=>{t&&t.disconnect()}),Zn([s,o],()=>l(),{deep:!0}),{d:r,state:i}}});function o4t(n,e,t,r,i,s){const o=ht("connection-view");return T(),Tt(o,{x1:n.d.x1,y1:n.d.y1,x2:n.d.x2,y2:n.d.y2,state:n.state},null,8,["x1","y1","x2","y2","state"])}const a4t=Nn(s4t,[["render",o4t]]);function lh(n){return n.node&&n.interface&&n.port?[n.node.offsetLeft+n.interface.offsetLeft+n.port.offsetLeft+n.port.clientWidth/2,n.node.offsetTop+n.interface.offsetTop+n.port.offsetTop+n.port.clientHeight/2]:[0,0]}const l4t=Pn({components:{"connection-view":$O},props:{connection:{type:Object,required:!0}},setup(n){const e=mt(()=>n.connection?n.connection.status:ni.NONE);return{d:mt(()=>{if(!n.connection)return{input:[0,0],output:[0,0]};const r=lh($l(n.connection.from)),i=n.connection.to?lh($l(n.connection.to)):[n.connection.mx||r[0],n.connection.my||r[1]];return n.connection.from.isInput?{input:i,output:r}:{input:r,output:i}}),status:e}}});function c4t(n,e,t,r,i,s){const o=ht("connection-view");return T(),Tt(o,{x1:n.d.input[0],y1:n.d.input[1],x2:n.d.output[0],y2:n.d.output[1],state:n.status,"is-temporary":""},null,8,["x1","y1","x2","y2","state"])}const d4t=Nn(l4t,[["render",c4t]]),u4t=Pn({setup(){const{viewModel:n}=$r(),{graph:e}=_i(),t=yt(null),r=yp(n.value.settings.sidebar,"width"),i=mt(()=>n.value.settings.sidebar.resizable),s=mt(()=>{const m=e.value.sidebar.nodeId;return e.value.nodes.find(f=>f.id===m)}),o=mt(()=>({width:`${r.value}px`})),a=mt(()=>s.value?[...Object.values(s.value.inputs),...Object.values(s.value.outputs)].filter(f=>f.displayInSidebar&&f.component):[]),l=()=>{e.value.sidebar.visible=!1},d=()=>{window.addEventListener("mousemove",u),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",u)},{once:!0})},u=m=>{var f,g;const h=((g=(f=t.value)==null?void 0:f.parentElement)==null?void 0:g.getBoundingClientRect().width)??500;let v=r.value-m.movementX;v<300?v=300:v>.9*h&&(v=.9*h),r.value=v};return{el:t,graph:e,resizable:i,node:s,styles:o,displayedInterfaces:a,startResize:d,close:l}}}),p4t={class:"__header"},h4t={class:"__node-name"};function m4t(n,e,t,r,i,s){return T(),M("div",{ref:"el",class:qe(["baklava-sidebar",{"--open":n.graph.sidebar.visible}]),style:on(n.styles)},[n.resizable?(T(),M("div",{key:0,class:"__resizer",onMousedown:e[0]||(e[0]=(...o)=>n.startResize&&n.startResize(...o))},null,32)):Y("",!0),c("div",p4t,[c("button",{tabindex:"-1",class:"__close",onClick:e[1]||(e[1]=(...o)=>n.close&&n.close(...o))},"×"),c("div",h4t,[c("b",null,X(n.node?n.node.title:""),1)])]),(T(!0),M(je,null,at(n.displayedInterfaces,o=>(T(),M("div",{key:o.id,class:"__interface"},[(T(),Tt(Sh(o.component),{modelValue:o.value,"onUpdate:modelValue":a=>o.value=a,node:n.node,intf:o},null,8,["modelValue","onUpdate:modelValue","node","intf"]))]))),128))],6)}const f4t=Nn(u4t,[["render",m4t]]),g4t=Pn({__name:"Minimap",setup(n){const{viewModel:e}=$r(),{graph:t}=_i(),r=yt(null),i=yt(!1);let s,o=!1,a={x1:0,y1:0,x2:0,y2:0},l;const d=()=>{var w,N;if(!s)return;s.canvas.width=r.value.offsetWidth,s.canvas.height=r.value.offsetHeight;const L=new Map,C=new Map;for(const D of t.value.nodes){const $=i4t(D),K=($==null?void 0:$.offsetWidth)??0,B=($==null?void 0:$.offsetHeight)??0,Z=((w=D.position)==null?void 0:w.x)??0,ce=((N=D.position)==null?void 0:N.y)??0;L.set(D,{x1:Z,y1:ce,x2:Z+K,y2:ce+B}),C.set(D,$)}const k={x1:Number.MAX_SAFE_INTEGER,y1:Number.MAX_SAFE_INTEGER,x2:Number.MIN_SAFE_INTEGER,y2:Number.MIN_SAFE_INTEGER};for(const D of L.values())D.x1k.x2&&(k.x2=D.x2),D.y2>k.y2&&(k.y2=D.y2);const H=50;k.x1-=H,k.y1-=H,k.x2+=H,k.y2+=H,a=k;const q=s.canvas.width/s.canvas.height,ie=(a.x2-a.x1)/(a.y2-a.y1);if(q>ie){const D=(q-ie)*(a.y2-a.y1)*.5;a.x1-=D,a.x2+=D}else{const D=a.x2-a.x1,$=a.y2-a.y1,K=(D-q*$)/q*.5;a.y1-=K,a.y2+=K}s.clearRect(0,0,s.canvas.width,s.canvas.height),s.strokeStyle="white";for(const D of t.value.connections){const[$,K]=lh($l(D.from)),[B,Z]=lh($l(D.to)),[ce,ue]=u($,K),[xe,Ce]=u(B,Z);if(s.beginPath(),s.moveTo(ce,ue),e.value.settings.useStraightConnections)s.lineTo(xe,Ce);else{const me=.3*Math.abs(ce-xe);s.bezierCurveTo(ce+me,ue,xe-me,Ce,xe,Ce)}s.stroke()}s.strokeStyle="lightgray";for(const[D,$]of L.entries()){const[K,B]=u($.x1,$.y1),[Z,ce]=u($.x2,$.y2);s.fillStyle=f(C.get(D)),s.beginPath(),s.rect(K,B,Z-K,ce-B),s.fill(),s.stroke()}if(i.value){const D=h(),[$,K]=u(D.x1,D.y1),[B,Z]=u(D.x2,D.y2);s.fillStyle="rgba(255, 255, 255, 0.2)",s.fillRect($,K,B-$,Z-K)}},u=(w,N)=>[(w-a.x1)/(a.x2-a.x1)*s.canvas.width,(N-a.y1)/(a.y2-a.y1)*s.canvas.height],m=(w,N)=>[w*(a.x2-a.x1)/s.canvas.width+a.x1,N*(a.y2-a.y1)/s.canvas.height+a.y1],f=w=>{if(w){const N=w.querySelector(".__content");if(N){const C=g(N);if(C)return C}const L=g(w);if(L)return L}return"gray"},g=w=>{const N=getComputedStyle(w).backgroundColor;if(N&&N!=="rgba(0, 0, 0, 0)")return N},h=()=>{const w=r.value.parentElement.offsetWidth,N=r.value.parentElement.offsetHeight,L=w/t.value.scaling-t.value.panning.x,C=N/t.value.scaling-t.value.panning.y;return{x1:-t.value.panning.x,y1:-t.value.panning.y,x2:L,y2:C}},v=w=>{w.button===0&&(o=!0,b(w))},b=w=>{if(o){const[N,L]=m(w.offsetX,w.offsetY),C=h(),k=(C.x2-C.x1)/2,H=(C.y2-C.y1)/2;t.value.panning.x=-(N-k),t.value.panning.y=-(L-H)}},_=()=>{o=!1},y=()=>{i.value=!0},E=()=>{i.value=!1,_()};Zn([i,t.value.panning,()=>t.value.scaling,()=>t.value.connections.length],()=>{d()});const x=mt(()=>t.value.nodes.map(w=>w.position)),A=mt(()=>t.value.nodes.map(w=>w.width));return Zn([x,A],()=>{d()},{deep:!0}),Ji(()=>{s=r.value.getContext("2d"),s.imageSmoothingQuality="high",d(),l=setInterval(d,500)}),jl(()=>{clearInterval(l)}),(w,N)=>(T(),M("canvas",{ref_key:"canvas",ref:r,class:"baklava-minimap",onMouseenter:y,onMouseleave:E,onMousedown:J(v,["self"]),onMousemove:J(b,["self"]),onMouseup:_,onContextmenu:N[0]||(N[0]=J(()=>{},["stop","prevent"]))},null,544))}}),_4t=Pn({components:{ContextMenu:uE,VerticalDots:YO},props:{type:{type:String,required:!0},title:{type:String,required:!0}},setup(n){const{viewModel:e}=$r(),{switchGraph:t}=_i(),r=yt(!1),i=mt(()=>n.type.startsWith(yd));return{showContextMenu:r,hasContextMenu:i,contextMenuItems:[{label:"Edit Subgraph",value:"editSubgraph"},{label:"Delete Subgraph",value:"deleteSubgraph"}],openContextMenu:()=>{r.value=!0},onContextMenuClick:l=>{const d=n.type.substring(yd.length),u=e.value.editor.graphTemplates.find(m=>m.id===d);if(u)switch(l){case"editSubgraph":t(u);break;case"deleteSubgraph":e.value.editor.removeGraphTemplate(u);break}}}}}),b4t=["data-node-type"],v4t={class:"__title"},y4t={class:"__title-label"},E4t={key:0,class:"__menu"};function S4t(n,e,t,r,i,s){const o=ht("vertical-dots"),a=ht("context-menu");return T(),M("div",{class:"baklava-node --palette","data-node-type":n.type},[c("div",v4t,[c("div",y4t,X(n.title),1),n.hasContextMenu?(T(),M("div",E4t,[W(o,{class:"--clickable",onPointerdown:e[0]||(e[0]=J(()=>{},["stop","prevent"])),onClick:J(n.openContextMenu,["stop","prevent"])},null,8,["onClick"]),W(a,{modelValue:n.showContextMenu,"onUpdate:modelValue":e[1]||(e[1]=l=>n.showContextMenu=l),x:-100,y:0,items:n.contextMenuItems,onClick:n.onContextMenuClick,onPointerdown:e[2]||(e[2]=J(()=>{},["stop","prevent"]))},null,8,["modelValue","items","onClick"])])):Y("",!0)])],8,b4t)}const bM=Nn(_4t,[["render",S4t]]),x4t={key:0},T4t=Pn({__name:"NodePalette",setup(n){const{viewModel:e}=$r(),{x:t,y:r}=IMt(),{transform:i}=GO(),s=BO(e),o=Gr("editorEl"),a=yt(null),l=mt(()=>{if(!a.value||!(o!=null&&o.value))return{};const{left:u,top:m}=o.value.getBoundingClientRect();return{top:`${r.value-m}px`,left:`${t.value-u}px`}}),d=(u,m)=>{a.value={type:u,nodeInformation:m};const f=()=>{const g=yr(new m.type);e.value.displayedGraph.addNode(g);const h=o.value.getBoundingClientRect(),[v,b]=i(t.value-h.left,r.value-h.top);g.position.x=v,g.position.y=b,a.value=null,document.removeEventListener("pointerup",f)};document.addEventListener("pointerup",f)};return(u,m)=>(T(),M(je,null,[c("div",{class:"baklava-node-palette",onContextmenu:m[0]||(m[0]=J(()=>{},["stop","prevent"]))},[(T(!0),M(je,null,at(Pt(s),f=>(T(),M("section",{key:f.name},[f.name!=="default"?(T(),M("h1",x4t,X(f.name),1)):Y("",!0),(T(!0),M(je,null,at(f.nodeTypes,(g,h)=>(T(),Tt(bM,{key:h,type:h,title:g.title,onPointerdown:v=>d(h,g)},null,8,["type","title","onPointerdown"]))),128))]))),128))],32),W(Cs,{name:"fade"},{default:Ge(()=>[a.value?(T(),M("div",{key:0,class:"baklava-dragged-node",style:on(l.value)},[W(bM,{type:a.value.type,title:a.value.nodeInformation.title},null,8,["type","title"])],4)):Y("",!0)]),_:1})],64))}});let Xu;const w4t=new Uint8Array(16);function C4t(){if(!Xu&&(Xu=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Xu))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Xu(w4t)}const Qn=[];for(let n=0;n<256;++n)Qn.push((n+256).toString(16).slice(1));function A4t(n,e=0){return Qn[n[e+0]]+Qn[n[e+1]]+Qn[n[e+2]]+Qn[n[e+3]]+"-"+Qn[n[e+4]]+Qn[n[e+5]]+"-"+Qn[n[e+6]]+Qn[n[e+7]]+"-"+Qn[n[e+8]]+Qn[n[e+9]]+"-"+Qn[n[e+10]]+Qn[n[e+11]]+Qn[n[e+12]]+Qn[n[e+13]]+Qn[n[e+14]]+Qn[n[e+15]]}const R4t=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),vM={randomUUID:R4t};function ch(n,e,t){if(vM.randomUUID&&!e&&!n)return vM.randomUUID();n=n||{};const r=n.random||(n.rng||C4t)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,A4t(r)}const Ed="SAVE_SUBGRAPH";function M4t(n,e){const t=()=>{const r=n.value;if(!r.template)throw new Error("Graph template property not set");r.template.update(r.save()),r.template.panning=r.panning,r.template.scaling=r.scaling};e.registerCommand(Ed,{canExecute:()=>{var r;return n.value!==((r=n.value.editor)==null?void 0:r.graph)},execute:t})}const N4t={},k4t={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},I4t=c("polyline",{points:"6 9 12 15 18 9"},null,-1),O4t=[I4t];function D4t(n,e){return T(),M("svg",k4t,O4t)}const L4t=Nn(N4t,[["render",D4t]]),P4t=Pn({components:{"i-arrow":L4t},props:{intf:{type:Object,required:!0}},setup(n){const e=yt(null),t=yt(!1),r=mt(()=>n.intf.items.find(o=>typeof o=="string"?o===n.intf.value:o.value===n.intf.value)),i=mt(()=>r.value?typeof r.value=="string"?r.value:r.value.text:""),s=o=>{n.intf.value=typeof o=="string"?o:o.value};return HO(e,()=>{t.value=!1}),{el:e,open:t,selectedItem:r,selectedText:i,setSelected:s}}}),F4t=["title"],U4t={class:"__selected"},B4t={class:"__text"},G4t={class:"__icon"},z4t={class:"__dropdown"},V4t={class:"item --header"},H4t=["onClick"];function q4t(n,e,t,r,i,s){const o=ht("i-arrow");return T(),M("div",{ref:"el",class:qe(["baklava-select",{"--open":n.open}]),title:n.intf.name,onClick:e[0]||(e[0]=a=>n.open=!n.open)},[c("div",U4t,[c("div",B4t,X(n.selectedText),1),c("div",G4t,[W(o)])]),W(Cs,{name:"slide-fade"},{default:Ge(()=>[F(c("div",z4t,[c("div",V4t,X(n.intf.name),1),(T(!0),M(je,null,at(n.intf.items,(a,l)=>(T(),M("div",{key:l,class:qe(["item",{"--active":a===n.selectedItem}]),onClick:d=>n.setSelected(a)},X(typeof a=="string"?a:a.text),11,H4t))),128))],512),[[Dt,n.open]])]),_:1})],10,F4t)}const Y4t=Nn(P4t,[["render",q4t]]);class $4t extends Cn{constructor(e,t,r){super(e,t),this.component=bh(Y4t),this.items=r}}const W4t=Pn({props:{intf:{type:Object,required:!0}}});function K4t(n,e,t,r,i,s){return T(),M("div",null,X(n.intf.value),1)}const j4t=Nn(W4t,[["render",K4t]]);class Q4t extends Cn{constructor(e,t){super(e,t),this.component=bh(j4t),this.setPort(!1)}}const X4t=Pn({props:{intf:{type:Object,required:!0},modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(n,{emit:e}){return{v:mt({get:()=>n.modelValue,set:r=>{e("update:modelValue",r)}})}}}),Z4t=["placeholder","title"];function J4t(n,e,t,r,i,s){return T(),M("div",null,[F(c("input",{"onUpdate:modelValue":e[0]||(e[0]=o=>n.v=o),type:"text",class:"baklava-input",placeholder:n.intf.name,title:n.intf.name},null,8,Z4t),[[_e,n.v]])])}const e3t=Nn(X4t,[["render",J4t]]);class Bd extends Cn{constructor(){super(...arguments),this.component=bh(e3t)}}class WO extends aE{constructor(){super(...arguments),this._title="Subgraph Input",this.inputs={name:new Bd("Name","Input").setPort(!1)},this.outputs={placeholder:new Cn("Connection",void 0)}}}class KO extends lE{constructor(){super(...arguments),this._title="Subgraph Output",this.inputs={name:new Bd("Name","Output").setPort(!1),placeholder:new Cn("Connection",void 0)},this.outputs={output:new Cn("Output",void 0).setHidden(!0)}}}const jO="CREATE_SUBGRAPH",yM=[Hl,ql];function t3t(n,e,t){const r=()=>n.value.selectedNodes.filter(s=>!yM.includes(s.type)).length>0,i=()=>{const{viewModel:s}=$r(),o=n.value,a=n.value.editor;if(o.selectedNodes.length===0)return;const l=o.selectedNodes.filter(C=>!yM.includes(C.type)),d=l.flatMap(C=>Object.values(C.inputs)),u=l.flatMap(C=>Object.values(C.outputs)),m=o.connections.filter(C=>!u.includes(C.from)&&d.includes(C.to)),f=o.connections.filter(C=>u.includes(C.from)&&!d.includes(C.to)),g=o.connections.filter(C=>u.includes(C.from)&&d.includes(C.to)),h=l.map(C=>C.save()),v=g.map(C=>({id:C.id,from:C.from.id,to:C.to.id})),b=new Map,{xLeft:_,xRight:y,yTop:E}=n3t(l);for(const[C,k]of m.entries()){const H=new WO;H.inputs.name.value=k.to.name,h.push({...H.save(),position:{x:y-s.value.settings.nodes.defaultWidth-100,y:E+C*200}}),v.push({id:ch(),from:H.outputs.placeholder.id,to:k.to.id}),b.set(k.to.id,H.graphInterfaceId)}for(const[C,k]of f.entries()){const H=new KO;H.inputs.name.value=k.from.name,h.push({...H.save(),position:{x:_+100,y:E+C*200}}),v.push({id:ch(),from:k.from.id,to:H.inputs.placeholder.id}),b.set(k.from.id,H.graphInterfaceId)}const x=yr(new um({connections:v,nodes:h,inputs:[],outputs:[]},a));a.addGraphTemplate(x);const A=a.nodeTypes.get(Yl(x));if(!A)throw new Error("Unable to create subgraph: Could not find corresponding graph node type");o.activeTransactions++;const w=yr(new A.type);o.addNode(w);const N=Math.round(l.map(C=>C.position.x).reduce((C,k)=>C+k,0)/l.length),L=Math.round(l.map(C=>C.position.y).reduce((C,k)=>C+k,0)/l.length);w.position.x=N,w.position.y=L,m.forEach(C=>{o.removeConnection(C),o.addConnection(C.from,w.inputs[b.get(C.to.id)])}),f.forEach(C=>{o.removeConnection(C),o.addConnection(w.outputs[b.get(C.from.id)],C.to)}),l.forEach(C=>o.removeNode(C)),o.activeTransactions--,e.canExecuteCommand(Ed)&&e.executeCommand(Ed),t(x),n.value.panning={...o.panning},n.value.scaling=o.scaling};e.registerCommand(jO,{canExecute:r,execute:i})}function n3t(n){const e=n.reduce((i,s)=>{const o=s.position.x;return o{const o=s.position.y;return o{const o=s.position.x+s.width;return o>i?o:i},-1/0),xRight:e,yTop:t}}class EM{constructor(e,t){this.type=e,e==="addNode"?this.nodeId=t:this.nodeState=t}undo(e){this.type==="addNode"?this.removeNode(e):this.addNode(e)}redo(e){this.type==="addNode"&&this.nodeState?this.addNode(e):this.type==="removeNode"&&this.nodeId&&this.removeNode(e)}addNode(e){const t=e.editor.nodeTypes.get(this.nodeState.type);if(!t)return;const r=new t.type;e.addNode(r),r.load(this.nodeState),this.nodeId=r.id}removeNode(e){const t=e.nodes.find(r=>r.id===this.nodeId);t&&(this.nodeState=t.save(),e.removeNode(t))}}class SM{constructor(e,t){if(this.type=e,e==="addConnection")this.connectionId=t;else{const r=t;this.connectionState={id:r.id,from:r.from.id,to:r.to.id}}}undo(e){this.type==="addConnection"?this.removeConnection(e):this.addConnection(e)}redo(e){this.type==="addConnection"&&this.connectionState?this.addConnection(e):this.type==="removeConnection"&&this.connectionId&&this.removeConnection(e)}addConnection(e){const t=e.findNodeInterface(this.connectionState.from),r=e.findNodeInterface(this.connectionState.to);if(!t||!r)return;const i=e.addConnection(t,r);i&&(i.id=this.connectionState.id),this.connectionId=i==null?void 0:i.id}removeConnection(e){const t=e.connections.find(r=>r.id===this.connectionId);t&&(this.connectionState={id:t.id,from:t.from.id,to:t.to.id},e.removeConnection(t))}}class r3t{constructor(e){if(this.type="transaction",e.length===0)throw new Error("Can't create a transaction with no steps");this.steps=e}undo(e){for(let t=this.steps.length-1;t>=0;t--)this.steps[t].undo(e)}redo(e){for(let t=0;t{if(!s.value)if(a.value)l.value.push(b);else for(o.value!==i.value.length-1&&(i.value=i.value.slice(0,o.value+1)),i.value.push(b),o.value++;i.value.length>r.value;)i.value.shift()},u=()=>{a.value=!0},m=()=>{a.value=!1,l.value.length>0&&(d(new r3t(l.value)),l.value=[])},f=()=>i.value.length!==0&&o.value!==-1,g=()=>{f()&&(s.value=!0,i.value[o.value--].undo(n.value),s.value=!1)},h=()=>i.value.length!==0&&o.value{h()&&(s.value=!0,i.value[++o.value].redo(n.value),s.value=!1)};return Zn(n,(b,_)=>{_&&(_.events.addNode.unsubscribe(t),_.events.removeNode.unsubscribe(t),_.events.addConnection.unsubscribe(t),_.events.removeConnection.unsubscribe(t)),b&&(b.events.addNode.subscribe(t,y=>{d(new EM("addNode",y.id))}),b.events.removeNode.subscribe(t,y=>{d(new EM("removeNode",y.save()))}),b.events.addConnection.subscribe(t,y=>{d(new SM("addConnection",y.id))}),b.events.removeConnection.subscribe(t,y=>{d(new SM("removeConnection",y))}))},{immediate:!0}),e.registerCommand(q1,{canExecute:f,execute:g}),e.registerCommand(Y1,{canExecute:h,execute:v}),e.registerCommand(pE,{canExecute:()=>!a.value,execute:u}),e.registerCommand(hE,{canExecute:()=>a.value,execute:m}),e.registerHotkey(["Control","z"],q1),e.registerHotkey(["Control","y"],Y1),yr({maxSteps:r})}const $1="DELETE_NODES";function s3t(n,e){e.registerCommand($1,{canExecute:()=>n.value.selectedNodes.length>0,execute(){e.executeCommand(pE);for(let t=n.value.selectedNodes.length-1;t>=0;t--){const r=n.value.selectedNodes[t];n.value.removeNode(r)}e.executeCommand(hE)}}),e.registerHotkey(["Delete"],$1)}const QO="SWITCH_TO_MAIN_GRAPH";function o3t(n,e,t){e.registerCommand(QO,{canExecute:()=>n.value!==n.value.editor.graph,execute:()=>{e.executeCommand(Ed),t(n.value.editor.graph)}})}function a3t(n,e,t){s3t(n,e),t3t(n,e,t),M4t(n,e),o3t(n,e,t)}const W1="COPY",K1="PASTE",l3t="CLEAR_CLIPBOARD";function c3t(n,e,t){const r=Symbol("ClipboardToken"),i=yt(""),s=yt(""),o=mt(()=>!i.value),a=()=>{i.value="",s.value=""},l=()=>{const m=n.value.selectedNodes.flatMap(g=>[...Object.values(g.inputs),...Object.values(g.outputs)]),f=n.value.connections.filter(g=>m.includes(g.from)||m.includes(g.to)).map(g=>({from:g.from.id,to:g.to.id}));s.value=JSON.stringify(f),i.value=JSON.stringify(n.value.selectedNodes.map(g=>g.save()))},d=(m,f,g)=>{for(const h of m){let v;if((!g||g==="input")&&(v=Object.values(h.inputs).find(b=>b.id===f)),!v&&(!g||g==="output")&&(v=Object.values(h.outputs).find(b=>b.id===f)),v)return v}},u=()=>{if(o.value)return;const m=new Map,f=JSON.parse(i.value),g=JSON.parse(s.value),h=[],v=[],b=n.value;t.executeCommand(pE);for(const _ of f){const y=e.value.nodeTypes.get(_.type);if(!y){console.warn(`Node type ${_.type} not registered`);return}const E=new y.type,x=E.id;h.push(E),E.hooks.beforeLoad.subscribe(r,A=>{const w=A;return w.position&&(w.position.x+=100,w.position.y+=100),E.hooks.beforeLoad.unsubscribe(r),w}),b.addNode(E),E.load({..._,id:x}),E.id=x,m.set(_.id,x);for(const A of Object.values(E.inputs)){const w=ch();m.set(A.id,w),A.id=w}for(const A of Object.values(E.outputs)){const w=ch();m.set(A.id,w),A.id=w}}for(const _ of g){const y=d(h,m.get(_.from),"output"),E=d(h,m.get(_.to),"input");if(!y||!E)continue;const x=b.addConnection(y,E);x&&v.push(x)}return n.value.selectedNodes=h,t.executeCommand(hE),{newNodes:h,newConnections:v}};return t.registerCommand(W1,{canExecute:()=>n.value.selectedNodes.length>0,execute:l}),t.registerHotkey(["Control","c"],W1),t.registerCommand(K1,{canExecute:()=>!o.value,execute:u}),t.registerHotkey(["Control","v"],K1),t.registerCommand(l3t,{canExecute:()=>!0,execute:a}),yr({isEmpty:o})}const d3t="OPEN_SIDEBAR";function u3t(n,e){e.registerCommand(d3t,{execute:t=>{n.value.sidebar.nodeId=t,n.value.sidebar.visible=!0},canExecute:()=>!0})}function p3t(n,e){u3t(n,e)}const h3t={},m3t={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},f3t=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),g3t=c("path",{d:"M9 13l-4 -4l4 -4m-4 4h11a4 4 0 0 1 0 8h-1"},null,-1),_3t=[f3t,g3t];function b3t(n,e){return T(),M("svg",m3t,_3t)}const v3t=Nn(h3t,[["render",b3t]]),y3t={},E3t={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},S3t=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),x3t=c("path",{d:"M15 13l4 -4l-4 -4m4 4h-11a4 4 0 0 0 0 8h1"},null,-1),T3t=[S3t,x3t];function w3t(n,e){return T(),M("svg",E3t,T3t)}const C3t=Nn(y3t,[["render",w3t]]),A3t={},R3t={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},M3t=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),N3t=c("line",{x1:"5",y1:"12",x2:"19",y2:"12"},null,-1),k3t=c("line",{x1:"5",y1:"12",x2:"11",y2:"18"},null,-1),I3t=c("line",{x1:"5",y1:"12",x2:"11",y2:"6"},null,-1),O3t=[M3t,N3t,k3t,I3t];function D3t(n,e){return T(),M("svg",R3t,O3t)}const L3t=Nn(A3t,[["render",D3t]]),P3t={},F3t={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},U3t=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),B3t=c("path",{d:"M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2"},null,-1),G3t=c("rect",{x:"9",y:"3",width:"6",height:"4",rx:"2"},null,-1),z3t=[U3t,B3t,G3t];function V3t(n,e){return T(),M("svg",F3t,z3t)}const H3t=Nn(P3t,[["render",V3t]]),q3t={},Y3t={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},$3t=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),W3t=c("rect",{x:"8",y:"8",width:"12",height:"12",rx:"2"},null,-1),K3t=c("path",{d:"M16 8v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2"},null,-1),j3t=[$3t,W3t,K3t];function Q3t(n,e){return T(),M("svg",Y3t,j3t)}const X3t=Nn(q3t,[["render",Q3t]]),Z3t={},J3t={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},eNt=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),tNt=c("path",{d:"M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2"},null,-1),nNt=c("circle",{cx:"12",cy:"14",r:"2"},null,-1),rNt=c("polyline",{points:"14 4 14 8 8 8 8 4"},null,-1),iNt=[eNt,tNt,nNt,rNt];function sNt(n,e){return T(),M("svg",J3t,iNt)}const oNt=Nn(Z3t,[["render",sNt]]),aNt={},lNt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},cNt=yo('',6),dNt=[cNt];function uNt(n,e){return T(),M("svg",lNt,dNt)}const pNt=Nn(aNt,[["render",uNt]]),hNt={},mNt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},fNt=yo('',18),gNt=[fNt];function _Nt(n,e){return T(),M("svg",mNt,gNt)}const bNt=Nn(hNt,[["render",_Nt]]),vNt={},yNt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},ENt=yo('',6),SNt=[ENt];function xNt(n,e){return T(),M("svg",yNt,SNt)}const TNt=Nn(vNt,[["render",xNt]]),wNt=Pn({props:{command:{type:String,required:!0},title:{type:String,required:!0},icon:{type:Object,required:!1,default:void 0}},setup(){const{viewModel:n}=$r();return{viewModel:n}}}),CNt=["disabled","title"];function ANt(n,e,t,r,i,s){return T(),M("button",{class:"baklava-toolbar-entry baklava-toolbar-button",disabled:!n.viewModel.commandHandler.canExecuteCommand(n.command),title:n.title,onClick:e[0]||(e[0]=o=>n.viewModel.commandHandler.executeCommand(n.command))},[n.icon?(T(),Tt(Sh(n.icon),{key:0})):(T(),M(je,{key:1},[pt(X(n.title),1)],64))],8,CNt)}const RNt=Nn(wNt,[["render",ANt]]),MNt=Pn({components:{ToolbarButton:RNt},setup(){const{viewModel:n}=$r();return{isSubgraph:mt(()=>n.value.displayedGraph!==n.value.editor.graph),commands:[{command:W1,title:"Copy",icon:X3t},{command:K1,title:"Paste",icon:H3t},{command:$1,title:"Delete selected nodes",icon:TNt},{command:q1,title:"Undo",icon:v3t},{command:Y1,title:"Redo",icon:C3t},{command:gp,title:"Box Select",icon:bNt},{command:jO,title:"Create Subgraph",icon:pNt}],subgraphCommands:[{command:Ed,title:"Save Subgraph",icon:oNt},{command:QO,title:"Back to Main Graph",icon:L3t}]}}});function NNt(n,e,t,r,i,s){const o=ht("toolbar-button");return T(),M("div",{class:"baklava-toolbar",onContextmenu:e[0]||(e[0]=J(()=>{},["stop","prevent"]))},[(T(!0),M(je,null,at(n.commands,a=>(T(),Tt(o,{key:a.command,command:a.command,title:a.title,icon:a.icon},null,8,["command","title","icon"]))),128)),n.isSubgraph?(T(!0),M(je,{key:0},at(n.subgraphCommands,a=>(T(),Tt(o,{key:a.command,command:a.command,title:a.title,icon:a.icon},null,8,["command","title","icon"]))),128)):Y("",!0)],32)}const kNt=Nn(MNt,[["render",NNt]]),INt={class:"connections-container"},ONt=Pn({__name:"Editor",props:{viewModel:{}},setup(n){const e=n,t=Symbol("EditorToken"),r=yp(e,"viewModel");gMt(r);const i=yt(null);ml("editorEl",i);const s=mt(()=>e.viewModel.displayedGraph.nodes),o=mt(()=>e.viewModel.displayedGraph.nodes.map(L=>FO(yp(L,"position")))),a=mt(()=>e.viewModel.displayedGraph.connections),l=mt(()=>e.viewModel.displayedGraph.selectedNodes),d=_Mt(),u=bMt(),m=vMt(r),f=yMt(i),g=mt(()=>({...d.styles.value})),h=yt(0);e.viewModel.editor.hooks.load.subscribe(t,L=>(h.value++,L));const v=L=>{d.onPointerMove(L),u.onMouseMove(L)},b=L=>{if(L.button===0){if(f.onPointerDown(L))return;L.target===i.value&&(A(),d.onPointerDown(L)),u.onMouseDown()}},_=L=>{d.onPointerUp(L),u.onMouseUp()},y=L=>{L.key==="Tab"&&L.preventDefault(),e.viewModel.commandHandler.handleKeyDown(L)},E=L=>{e.viewModel.commandHandler.handleKeyUp(L)},x=L=>{["Control","Shift"].some(C=>e.viewModel.commandHandler.pressedKeys.includes(C))||A(),e.viewModel.displayedGraph.selectedNodes.push(L)},A=()=>{e.viewModel.displayedGraph.selectedNodes=[]},w=L=>{for(const C of e.viewModel.displayedGraph.selectedNodes){const k=s.value.indexOf(C),H=o.value[k];H.onPointerDown(L),document.addEventListener("pointermove",H.onPointerMove)}document.addEventListener("pointerup",N)},N=()=>{for(const L of e.viewModel.displayedGraph.selectedNodes){const C=s.value.indexOf(L),k=o.value[C];k.onPointerUp(),document.removeEventListener("pointermove",k.onPointerMove)}document.removeEventListener("pointerup",N)};return(L,C)=>(T(),M("div",{ref_key:"el",ref:i,tabindex:"-1",class:qe(["baklava-editor",{"baklava-ignore-mouse":!!Pt(u).temporaryConnection.value||Pt(d).dragging.value,"--temporary-connection":!!Pt(u).temporaryConnection.value,"--start-selection-box":Pt(f).startSelection}]),onPointermove:J(v,["self"]),onPointerdown:b,onPointerup:_,onWheel:C[1]||(C[1]=J((...k)=>Pt(d).onMouseWheel&&Pt(d).onMouseWheel(...k),["self"])),onKeydown:y,onKeyup:E,onContextmenu:C[2]||(C[2]=(...k)=>Pt(m).open&&Pt(m).open(...k))},[On(L.$slots,"background",{},()=>[W(xMt)]),On(L.$slots,"toolbar",{},()=>[L.viewModel.settings.toolbar.enabled?(T(),Tt(kNt,{key:0})):Y("",!0)]),On(L.$slots,"palette",{},()=>[L.viewModel.settings.palette.enabled?(T(),Tt(T4t,{key:0})):Y("",!0)]),(T(),M("svg",INt,[(T(!0),M(je,null,at(a.value,k=>(T(),M("g",{key:k.id+h.value.toString()},[On(L.$slots,"connection",{connection:k},()=>[W(a4t,{connection:k},null,8,["connection"])])]))),128)),On(L.$slots,"temporaryConnection",{temporaryConnection:Pt(u).temporaryConnection.value},()=>[Pt(u).temporaryConnection.value?(T(),Tt(d4t,{key:0,connection:Pt(u).temporaryConnection.value},null,8,["connection"])):Y("",!0)])])),c("div",{class:"node-container",style:on(g.value)},[W(As,{name:"fade"},{default:Ge(()=>[(T(!0),M(je,null,at(s.value,(k,H)=>On(L.$slots,"node",{key:k.id+h.value.toString(),node:k,selected:l.value.includes(k),dragging:o.value[H].dragging.value,onSelect:q=>x(k),onStartDrag:w},()=>[W(e4t,{node:k,selected:l.value.includes(k),dragging:o.value[H].dragging.value,onSelect:q=>x(k),onStartDrag:w},null,8,["node","selected","dragging","onSelect"])])),128))]),_:3})],4),On(L.$slots,"sidebar",{},()=>[L.viewModel.settings.sidebar.enabled?(T(),Tt(f4t,{key:0})):Y("",!0)]),On(L.$slots,"minimap",{},()=>[L.viewModel.settings.enableMinimap?(T(),Tt(g4t,{key:0})):Y("",!0)]),On(L.$slots,"contextMenu",{contextMenu:Pt(m)},()=>[L.viewModel.settings.contextMenu.enabled?(T(),Tt(uE,{key:0,modelValue:Pt(m).show.value,"onUpdate:modelValue":C[0]||(C[0]=k=>Pt(m).show.value=k),items:Pt(m).items.value,x:Pt(m).x.value,y:Pt(m).y.value,onClick:Pt(m).onClick},null,8,["modelValue","items","x","y","onClick"])):Y("",!0)]),Pt(f).isSelecting?(T(),M("div",{key:0,class:"selection-box",style:on(Pt(f).getStyles())},null,4)):Y("",!0)],34))}});function DNt(n){const e=yt([]),t=yt([]);return{pressedKeys:e,handleKeyDown:o=>{e.value.includes(o.key)||e.value.push(o.key),!(document.activeElement&&PO(document.activeElement))&&t.value.forEach(a=>{var l,d;a.keys.every(u=>e.value.includes(u))&&((l=a.options)!=null&&l.preventDefault&&o.preventDefault(),(d=a.options)!=null&&d.stopPropagation&&o.stopPropagation(),n(a.commandName))})},handleKeyUp:o=>{const a=e.value.indexOf(o.key);a>=0&&e.value.splice(a,1)},registerHotkey:(o,a,l)=>{t.value.push({keys:o,commandName:a,options:l})}}}const LNt=()=>{const n=yt(new Map),e=o=>n.value.has(o),t=(o,a)=>{if(n.value.has(o))throw new Error(`Command "${o}" already exists`);n.value.set(o,a)},r=(o,a=!1,...l)=>{if(!n.value.has(o)){if(a)throw new Error(`[CommandHandler] Command ${o} not registered`);return}return n.value.get(o).execute(...l)},i=(o,a=!1,...l)=>{if(!n.value.has(o)){if(a)throw new Error(`[CommandHandler] Command ${o} not registered`);return!1}return n.value.get(o).canExecute(l)},s=DNt(r);return yr({hasCommand:e,registerCommand:t,executeCommand:r,canExecuteCommand:i,...s})},PNt=n=>!(n instanceof Ud);function FNt(n,e){return{switchGraph:r=>{let i;if(PNt(r))i=new Ud(n.value),r.createGraph(i);else{if(r!==n.value.graph)throw new Error("Can only switch using 'Graph' instance when it is the root graph. Otherwise a 'GraphTemplate' must be used.");i=r}e.value&&e.value!==n.value.graph&&e.value.destroy(),i.panning=i.panning??r.panning??{x:0,y:0},i.scaling=i.scaling??r.scaling??1,i.selectedNodes=i.selectedNodes??[],i.sidebar=i.sidebar??{visible:!1,nodeId:"",optionName:""},e.value=i}}}function UNt(n,e){n.position=n.position??{x:0,y:0},n.disablePointerEvents=!1,n.twoColumn=n.twoColumn??!1,n.width=n.width??e.defaultWidth}const BNt=()=>({useStraightConnections:!1,enableMinimap:!1,toolbar:{enabled:!0},palette:{enabled:!0},background:{gridSize:100,gridDivision:5,subGridVisibleThreshold:.6},sidebar:{enabled:!0,width:300,resizable:!0},displayValueOnHover:!1,nodes:{defaultWidth:200,maxWidth:320,minWidth:150,resizable:!1,reverseY:!1},contextMenu:{enabled:!0,additionalItems:[]}});function GNt(n){const e=yt(new cMt),t=Symbol("ViewModelToken"),r=yt(null),i=K5(r),{switchGraph:s}=FNt(e,r),o=mt(()=>i.value&&i.value!==e.value.graph),a=yr(BNt()),l=LNt(),d=i3t(i,l),u=c3t(i,e,l),m={renderNode:new qr(null),renderInterface:new qr(null)};return a3t(i,l,s),p3t(i,l),Zn(e,(f,g)=>{g&&(g.events.registerGraph.unsubscribe(t),g.graphEvents.beforeAddNode.unsubscribe(t),f.nodeHooks.beforeLoad.unsubscribe(t),f.nodeHooks.afterSave.unsubscribe(t),f.graphTemplateHooks.beforeLoad.unsubscribe(t),f.graphTemplateHooks.afterSave.unsubscribe(t),f.graph.hooks.load.unsubscribe(t),f.graph.hooks.save.unsubscribe(t)),f&&(f.nodeHooks.beforeLoad.subscribe(t,(h,v)=>(v.position=h.position??{x:0,y:0},v.width=h.width??a.nodes.defaultWidth,v.twoColumn=h.twoColumn??!1,h)),f.nodeHooks.afterSave.subscribe(t,(h,v)=>(h.position=v.position,h.width=v.width,h.twoColumn=v.twoColumn,h)),f.graphTemplateHooks.beforeLoad.subscribe(t,(h,v)=>(v.panning=h.panning,v.scaling=h.scaling,h)),f.graphTemplateHooks.afterSave.subscribe(t,(h,v)=>(h.panning=v.panning,h.scaling=v.scaling,h)),f.graph.hooks.load.subscribe(t,(h,v)=>(v.panning=h.panning,v.scaling=h.scaling,h)),f.graph.hooks.save.subscribe(t,(h,v)=>(h.panning=v.panning,h.scaling=v.scaling,h)),f.graphEvents.beforeAddNode.subscribe(t,h=>UNt(h,{defaultWidth:a.nodes.defaultWidth})),e.value.registerNodeType(WO,{category:"Subgraphs"}),e.value.registerNodeType(KO,{category:"Subgraphs"}),s(f.graph))},{immediate:!0}),yr({editor:e,displayedGraph:i,isSubgraph:o,settings:a,commandHandler:l,history:d,clipboard:u,hooks:m,switchGraph:s})}const zNt=dc({type:"PersonalityNode",title:"Personality",inputs:{request:()=>new Cn("Request",""),agent_name:()=>new $4t("Personality","",Ti.state.config.personalities).setPort(!1)},outputs:{response:()=>new Cn("Response","")},async calculate({request:n}){console.log(Ti.state.config.personalities);let e="";try{e=(await de.post("/generate",{params:{text:n}})).data}catch(t){console.error(t)}return{display:e,response:e}}}),VNt=dc({type:"RAGNode",title:"RAG",inputs:{request:()=>new Cn("Prompt",""),document_path:()=>new Bd("Document path","").setPort(!1)},outputs:{prompt:()=>new Cn("Prompt with Data","")},async calculate({request:n,document_path:e}){let t="";try{t=(await de.get("/rag",{params:{text:n,doc_path:e}})).data}catch(r){console.error(r)}return{response:t}}}),xM=dc({type:"Task",title:"Task",inputs:{description:()=>new Bd("Task description","").setPort(!1)},outputs:{prompt:()=>new Cn("Prompt")},calculate({description:n}){return{prompt:n}}}),TM=dc({type:"TextDisplayNode",title:"TextDisplay",inputs:{text2display:()=>new Cn("Input","")},outputs:{response:()=>new Q4t("Text","")},async calculate({request:n}){}}),wM=dc({type:"LLMNode",title:"LLM",inputs:{request:()=>new Cn("Request","")},outputs:{response:()=>new Cn("Response","")},async calculate({request:n}){console.log(Ti.state.config.personalities);let e="";try{e=(await de.post("/generate",{params:{text:n}})).data}catch(t){console.error(t)}return{display:e,response:e}}}),HNt=dc({type:"MultichoiceNode",title:"Multichoice",inputs:{question:()=>new Cn("Question",""),outputs:()=>new Bd("choices, one per line","","").setPort(!1)},outputs:{response:()=>new Cn("Response","")}}),qNt=Pn({components:{"baklava-editor":ONt},setup(){const n=GNt(),e=new mMt(n.editor);n.editor.registerNodeType(zNt),n.editor.registerNodeType(xM),n.editor.registerNodeType(VNt),n.editor.registerNodeType(TM),n.editor.registerNodeType(wM),n.editor.registerNodeType(HNt);const t=Symbol();e.events.afterRun.subscribe(t,a=>{e.pause(),dMt(a,n.editor),e.resume()}),e.start();function r(a,l,d){const u=new a;return n.displayedGraph.addNode(u),u.position.x=l,u.position.y=d,u}const i=r(xM,300,140),s=r(wM,550,140),o=r(TM,850,140);return n.displayedGraph.addConnection(i.outputs.prompt,s.inputs.request),n.displayedGraph.addConnection(s.outputs.response,o.inputs.text2display),{baklava:n,saveGraph:()=>{const a=e.export();localStorage.setItem("myGraph",JSON.stringify(a))},loadGraph:()=>{const a=JSON.parse(localStorage.getItem("myGraph"));e.import(a)}}}}),YNt={style:{width:"100vw",height:"100vh"}};function $Nt(n,e,t,r,i,s){const o=ht("baklava-editor");return T(),M("div",YNt,[W(o,{"view-model":n.baklava},null,8,["view-model"]),c("button",{onClick:e[0]||(e[0]=(...a)=>n.saveGraph&&n.saveGraph(...a))},"Save Graph"),c("button",{onClick:e[1]||(e[1]=(...a)=>n.loadGraph&&n.loadGraph(...a))},"Load Graph")])}const WNt=bt(qNt,[["render",$Nt]]),KNt={},jNt={style:{width:"100vw",height:"100vh"}},QNt=["src"];function XNt(n,e,t,r,i,s){return T(),M("div",jNt,[c("iframe",{src:n.$store.state.config.comfyui_base_url,class:"m-0 p-0 w-full h-full"},null,8,QNt)])}const ZNt=bt(KNt,[["render",XNt]]),JNt={},ekt={style:{width:"100vw",height:"100vh"}},tkt=["src"];function nkt(n,e,t,r,i,s){return T(),M("div",ekt,[c("iframe",{src:n.$store.state.config.sd_base_url,class:"m-0 p-0 w-full h-full"},null,8,tkt)])}const rkt=bt(JNt,[["render",nkt]]),ikt={name:"AppCard",props:{app:{type:Object,required:!0},isFavorite:{type:Boolean,default:!1}},methods:{formatDate(n){const e={year:"numeric",month:"short",day:"numeric"};return new Date(n).toLocaleDateString(void 0,e)}}},skt={class:"app-card bg-white border rounded-xl shadow-lg p-6 hover:shadow-xl transition duration-300 ease-in-out flex flex-col h-full"},okt={class:"flex-grow"},akt={class:"flex items-center mb-4"},lkt=["src"],ckt={class:"font-bold text-xl text-gray-800"},dkt={class:"text-sm text-gray-600"},ukt={class:"text-sm text-gray-600"},pkt={class:"text-sm text-gray-600"},hkt={class:"text-sm text-gray-600"},mkt={class:"text-sm text-gray-600"},fkt={class:"mb-4"},gkt={class:"text-sm text-gray-600 h-20 overflow-y-auto"},_kt={class:"text-sm text-gray-600 mb-2"},bkt={key:0,class:"mb-4"},vkt={class:"text-xs text-gray-500 italic h-16 overflow-y-auto"},ykt={class:"mt-auto pt-4 border-t"},Ekt={class:"flex justify-between items-center flex-wrap"},Skt=["title"],xkt=["fill"];function Tkt(n,e,t,r,i,s){return T(),M("div",skt,[c("div",okt,[c("div",akt,[c("img",{src:t.app.icon,alt:"App Icon",class:"w-16 h-16 rounded-full border border-gray-300 mr-4"},null,8,lkt),c("div",null,[c("h3",ckt,X(t.app.name),1),c("p",dkt,"Author: "+X(t.app.author),1),c("p",ukt,"Version: "+X(t.app.version),1),c("p",pkt,"Category: "+X(t.app.category),1),c("p",hkt,"Creation date: "+X(s.formatDate(t.app.creation_date)),1),c("p",mkt,"Last update: "+X(s.formatDate(t.app.last_update_date)),1),c("p",{class:qe(["text-sm",t.app.is_public?"text-green-600":"text-orange-600"])},X(t.app.is_public?"Public App":"Local App"),3)])]),c("div",fkt,[e[10]||(e[10]=c("h4",{class:"font-semibold mb-1 text-gray-700"},"Description:",-1)),c("p",gkt,X(t.app.description),1)]),c("p",_kt,"AI Model: "+X(t.app.model_name),1),t.app.disclaimer&&t.app.disclaimer.trim()!==""?(T(),M("div",bkt,[e[11]||(e[11]=c("h4",{class:"font-semibold mb-1 text-gray-700"},"Disclaimer:",-1)),c("p",vkt,X(t.app.disclaimer),1)])):Y("",!0)]),c("div",ykt,[c("div",Ekt,[c("button",{onClick:e[0]||(e[0]=J(o=>n.$emit("toggle-favorite",t.app.name),["stop"])),class:"text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out",title:t.isFavorite?"Remove from favorites":"Add to favorites"},[(T(),M("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:t.isFavorite?"currentColor":"none",viewBox:"0 0 24 24",stroke:"currentColor"},e[12]||(e[12]=[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"},null,-1)]),8,xkt))],8,Skt),t.app.installed?(T(),M("button",{key:0,onClick:e[1]||(e[1]=J(o=>n.$emit("uninstall",t.app.folder_name),["stop"])),class:"text-red-500 hover:text-red-600 transition duration-300 ease-in-out",title:"Uninstall"},e[13]||(e[13]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1)]))):t.app.existsInFolder?(T(),M("button",{key:1,onClick:e[2]||(e[2]=J(o=>n.$emit("delete",t.app.name),["stop"])),class:"text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out",title:"Delete"},e[14]||(e[14]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1)]))):(T(),M("button",{key:2,onClick:e[3]||(e[3]=J(o=>n.$emit("install",t.app.folder_name),["stop"])),class:"text-blue-500 hover:text-blue-600 transition duration-300 ease-in-out",title:"Install"},e[15]||(e[15]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})],-1)]))),t.app.installed?(T(),M("button",{key:3,onClick:e[4]||(e[4]=J(o=>n.$emit("edit",t.app),["stop"])),class:"text-purple-500 hover:text-purple-600 transition duration-300 ease-in-out",title:"Edit"},e[16]||(e[16]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})],-1)]))):Y("",!0),c("button",{onClick:e[5]||(e[5]=J(o=>n.$emit("download",t.app.folder_name),["stop"])),class:"text-green-500 hover:text-green-600 transition duration-300 ease-in-out",title:"Download"},e[17]||(e[17]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})],-1)])),t.app.has_readme?(T(),M("button",{key:4,onClick:e[6]||(e[6]=J(o=>n.$emit("help",t.app),["stop"])),class:"text-gray-500 hover:text-gray-600 transition duration-300 ease-in-out",title:"Help"},e[18]||(e[18]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M12 21a9 9 0 100-18 9 9 0 000 18z"})],-1)]))):Y("",!0),t.app.installed?(T(),M("button",{key:5,onClick:e[7]||(e[7]=J(o=>n.$emit("open",t.app),["stop"])),class:"text-indigo-500 hover:text-indigo-600 transition duration-300 ease-in-out",title:"Open"},e[19]||(e[19]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})],-1)]))):Y("",!0),t.app.has_server&&t.app.installed?(T(),M("button",{key:6,onClick:e[8]||(e[8]=J(o=>n.$emit("start-server",t.app.folder_name),["stop"])),class:"text-teal-500 hover:text-teal-600 transition duration-300 ease-in-out",title:"Start Server"},e[20]||(e[20]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14M12 5l7 7-7 7"})],-1)]))):Y("",!0),t.app.has_update?(T(),M("button",{key:7,onClick:e[9]||(e[9]=J(o=>n.$emit("install",t.app.folder_name),["stop"])),class:"relative text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out animate-pulse",title:"Update Available"},e[21]||(e[21]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1),c("span",{class:"absolute top-0 right-0 inline-flex items-center justify-center px-2 py-1 text-xs font-bold leading-none text-red-100 transform translate-x-1/2 -translate-y-1/2 bg-red-600 rounded-full"},"!",-1)]))):Y("",!0)])])])}const wkt=bt(ikt,[["render",Tkt],["__scopeId","data-v-a946557e"]]),Ckt={components:{AppCard:wkt},data(){return{apps:[],githubApps:[],favorites:[],selectedCategory:"all",selectedApp:null,appCode:"",loading:!1,message:"",successMessage:!0,searchQuery:"",selectedFile:null,isUploading:!1,error:"",sortBy:"update",sortOrder:"desc",showOnlyInstalled:!1,showOnlyUnInstalled:!1}},computed:{currentCategoryName(){return this.selectedCategory==="all"?"All Apps":this.selectedCategory},combinedApps(){this.apps.map(e=>e.name);const n=new Map(this.apps.map(e=>[e.name,{...e,installed:!0,existsInFolder:!0}]));return this.githubApps.forEach(e=>{n.has(e.name)||n.set(e.name,{...e,installed:!1,existsInFolder:!1})}),Array.from(n.values())},categories(){return[...new Set(this.combinedApps.map(n=>n.category))]},filteredApps(){return this.combinedApps.filter(n=>{const e=n.name.toLowerCase().includes(this.searchQuery.toLowerCase())||n.description.toLowerCase().includes(this.searchQuery.toLowerCase())||n.author.toLowerCase().includes(this.searchQuery.toLowerCase()),t=this.selectedCategory==="all"||n.category===this.selectedCategory,r=this.showOnlyInstalled&&n.installed||this.showOnlyUnInstalled&&!n.installed||!this.showOnlyInstalled&&!this.showOnlyUnInstalled;return e&&t&&r})},sortedAndFilteredApps(){return this.filteredApps.sort((n,e)=>{let t=0;switch(this.sortBy){case"name":t=n.name.localeCompare(e.name);break;case"author":t=n.author.localeCompare(e.author);break;case"date":t=new Date(n.creation_date)-new Date(e.creation_date);break;case"update":t=new Date(n.last_update_date)-new Date(e.last_update_date);break}return this.sortOrder==="asc"?t:-t})},favoriteApps(){return this.combinedApps.filter(n=>this.favorites.includes(n.appName))}},methods:{toggleSortOrder(){this.sortOrder=this.sortOrder==="asc"?"desc":"asc"},toggleFavorite(n){console.log("Toggling favorite"),console.log(n);const e=this.favorites.indexOf(n);e===-1?this.favorites.push(n):this.favorites.splice(e,1),this.saveFavoritesToLocalStorage()},saveFavoritesToLocalStorage(){localStorage.setItem("appZooFavorites",JSON.stringify(this.favorites))},loadFavoritesFromLocalStorage(){const n=localStorage.getItem("appZooFavorites");console.log("savedFavorites",n),n&&(this.favorites=JSON.parse(n))},startServer(n){const e={client_id:this.$store.state.client_id,app_name:n};this.$store.state.messageBox.showBlockingMessage(`Loading server. -This may take some time the first time as some libraries need to be installed.`),de.post("/apps/start_server",e).then(t=>{this.$store.state.messageBox.hideMessage(),console.log("Server start initiated:",t.data.message),this.$notify({type:"success",title:"Server Starting",text:t.data.message})}).catch(t=>{var r,i;this.$store.state.messageBox.hideMessage(),console.error("Error starting server:",t),this.$notify({type:"error",title:"Server Start Failed",text:((i=(r=t.response)==null?void 0:r.data)==null?void 0:i.detail)||"An error occurred while starting the server"})})},triggerFileInput(){this.$refs.fileInput.click()},onFileSelected(n){this.selectedFile=n.target.files[0],this.message="",this.error="",this.uploadApp()},async uploadApp(){var e,t;if(!this.selectedFile){this.error="Please select a file to upload.";return}this.isUploading=!0,this.message="",this.error="";const n=new FormData;n.append("file",this.selectedFile),n.append("client_id",this.$store.state.client_id);try{const r=await de.post("/upload_app",n,{headers:{"Content-Type":"multipart/form-data"}});this.message=r.data.message,this.$refs.fileInput.value="",this.selectedFile=null}catch(r){console.error("Error uploading app:",r),this.error=((t=(e=r.response)==null?void 0:e.data)==null?void 0:t.detail)||"Failed to upload the app. Please try again."}finally{this.isUploading=!1}},async fetchApps(){this.loading=!0;try{const n=await de.get("/apps");this.apps=n.data,this.showMessage("Refresh successful!",!0)}catch{this.showMessage("Failed to refresh apps.",!1)}finally{this.loading=!1}},async openAppsFolder(){this.loading=!0;try{console.log("opening apps folder");const n=await de.post("/show_apps_folder",{client_id:this.$store.state.client_id})}catch{this.showMessage("Failed to open apps folder.",!1)}finally{this.loading=!1}},async fetchGithubApps(){this.loading=!0;try{const n=await de.get("/github/apps");this.githubApps=n.data.apps,await this.fetchApps()}catch{this.showMessage("Failed to refresh GitHub apps.",!1)}finally{this.loading=!1}},async handleAppClick(n){if(n.installed){this.selectedApp=n;const e=await de.get(`/apps/${n.folder_name}/README.md`);this.appCode=nn(e.data)}else this.showMessage(`Please install ${n.folder_name} to view its code.`,!1)},backToZoo(){this.selectedApp=null,this.appCode=""},async installApp(n){this.loading=!0,this.$store.state.messageBox.showBlockingMessage(`Installing app ${n}`);try{await de.post(`/install/${n}`,{client_id:this.$store.state.client_id}),this.showMessage("Installation succeeded!",!0)}catch{this.showMessage("Installation failed.",!1)}finally{this.loading=!1,this.fetchApps(),this.fetchGithubApps(),this.$store.state.messageBox.hideMessage()}},async uninstallApp(n){this.loading=!0;try{await de.post(`/uninstall/${n}`,{client_id:this.$store.state.client_id}),this.showMessage("Uninstallation succeeded!",!0)}catch{this.showMessage("Uninstallation failed.",!1)}finally{this.loading=!1,this.fetchApps()}},async deleteApp(n){this.loading=!0;try{await de.post(`/delete/${n}`,{client_id:this.$store.state.client_id}),this.showMessage("Deletion succeeded!",!0)}catch{this.showMessage("Deletion failed.",!1)}finally{this.loading=!1,this.fetchApps()}},async editApp(n){this.loading=!0;try{const e=await de.post("/open_app_in_vscode",{client_id:this.$store.state.client_id,app_name:n.folder_name});this.showMessage(e.data.message,!0)}catch{this.showMessage("Failed to open folder in VSCode.",!1)}finally{this.loading=!1}},async downloadApp(n){this.isLoading=!0,this.error=null;try{const e=await de.post("/download_app",{client_id:this.$store.state.client_id,app_name:n},{responseType:"arraybuffer"}),t=e.headers["content-disposition"],r=t&&t.match(/filename="?(.+)"?/i),i=r?r[1]:"app.zip",s=new Blob([e.data],{type:"application/zip"}),o=window.URL.createObjectURL(s),a=document.createElement("a");a.style.display="none",a.href=o,a.download=i,document.body.appendChild(a),a.click(),window.URL.revokeObjectURL(o),document.body.removeChild(a)}catch(e){console.error("Error downloading app:",e),this.error="Failed to download the app. Please try again."}finally{this.isLoading=!1}},openApp(n){n.installed?window.open(`/apps/${n.folder_name}/index.html?client_id=${this.$store.state.client_id}`,"_blank"):this.showMessage(`Please install ${n.name} before opening.`,!1)},showMessage(n,e){this.message=n,this.successMessage=e,setTimeout(()=>{this.message=""},3e3)}},mounted(){this.fetchGithubApps(),this.loadFavoritesFromLocalStorage()}},Akt={class:"app-zoo background-color w-full p-6 pt-12 min-h-screen overflow-y-auto"},Rkt={class:"panels-color shadow-lg rounded-lg p-4 max-w-4xl mx-auto mb-8"},Mkt={class:"flex flex-wrap items-center justify-between gap-4"},Nkt={class:"flex items-center space-x-4"},kkt=["disabled"],Ikt={key:0},Okt={key:1,class:"error"},Dkt={class:"relative flex-grow max-w-md"},Lkt={class:"flex items-center space-x-4"},Pkt=["value"],Fkt={class:"flex items-center space-x-4"},Ukt={for:"installed-only",class:"font-semibold"},Bkt={for:"installed-only",class:"font-semibold"},Gkt={class:"flex items-center space-x-4"},zkt={key:0,class:"flex justify-center items-center space-x-2 my-8","aria-live":"polite"},Vkt={key:1,class:"pb-20"},Hkt={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mb-8"},qkt={class:"text-2xl font-bold mb-4"},Ykt={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8"},$kt={key:2,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"},Wkt={class:"bg-white rounded-lg p-6 w-11/12 h-5/6 flex flex-col"},Kkt={class:"flex justify-between items-center mb-4"},jkt={class:"text-2xl font-bold"},Qkt=["srcdoc"],Xkt={key:1,class:"text-center text-red-500"};function Zkt(n,e,t,r,i,s){const o=ht("app-card");return T(),M("div",Akt,[c("nav",Rkt,[c("div",Mkt,[c("div",Nkt,[c("button",{onClick:e[0]||(e[0]=(...a)=>s.fetchGithubApps&&s.fetchGithubApps(...a)),class:"btn btn-primary","aria-label":"Refresh apps from GitHub"},e[11]||(e[11]=[c("svg",{class:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1),pt(" Refresh ")])),c("button",{onClick:e[1]||(e[1]=(...a)=>s.openAppsFolder&&s.openAppsFolder(...a)),class:"btn btn-secondary","aria-label":"Open apps folder"},e[12]||(e[12]=[c("svg",{class:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 19a2 2 0 01-2-2V7a2 2 0 012-2h4l2 2h4a2 2 0 012 2v1M5 19h14a2 2 0 002-2v-5a2 2 0 00-2-2H9a2 2 0 00-2 2v5a2 2 0 01-2 2z"})],-1),pt(" Open Folder ")])),c("input",{type:"file",onChange:e[2]||(e[2]=(...a)=>s.onFileSelected&&s.onFileSelected(...a)),accept:".zip",ref:"fileInput",style:{display:"none"}},null,544),c("button",{onClick:e[3]||(e[3]=(...a)=>s.triggerFileInput&&s.triggerFileInput(...a)),disabled:i.isUploading,class:"btn-secondary text-green-500 hover:text-green-600 transition duration-300 ease-in-out",title:"Upload App"},X(i.isUploading?"Uploading...":"Upload App"),9,kkt)]),i.message?(T(),M("p",Ikt,X(i.message),1)):Y("",!0),i.error?(T(),M("p",Okt,X(i.error),1)):Y("",!0),c("div",Dkt,[F(c("input",{"onUpdate:modelValue":e[4]||(e[4]=a=>i.searchQuery=a),placeholder:"Search apps...",class:"w-full border-b-2 border-gray-300 px-4 py-2 pl-10 focus:outline-none focus:border-blue-500 transition duration-300 ease-in-out","aria-label":"Search apps"},null,512),[[_e,i.searchQuery]]),e[13]||(e[13]=c("svg",{class:"w-5 h-5 text-gray-400 absolute left-3 top-1/2 transform -translate-y-1/2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})],-1))]),c("div",Lkt,[e[15]||(e[15]=c("label",{for:"category-select",class:"font-semibold"},"Category:",-1)),F(c("select",{id:"category-select","onUpdate:modelValue":e[5]||(e[5]=a=>i.selectedCategory=a),class:"border-2 border-gray-300 rounded-md px-2 py-1"},[e[14]||(e[14]=c("option",{value:"all"},"All Categories",-1)),(T(!0),M(je,null,at(s.categories,a=>(T(),M("option",{key:a,value:a},X(a),9,Pkt))),128))],512),[[Qt,i.selectedCategory]])]),c("div",Fkt,[c("label",Ukt,[F(c("input",{id:"installed-only",type:"checkbox","onUpdate:modelValue":e[6]||(e[6]=a=>i.showOnlyInstalled=a),class:"mr-2"},null,512),[[tt,i.showOnlyInstalled]]),e[16]||(e[16]=pt(" Show only installed apps "))]),c("label",Bkt,[F(c("input",{id:"uninstalled-only",type:"checkbox","onUpdate:modelValue":e[7]||(e[7]=a=>i.showOnlyUnInstalled=a),class:"mr-2"},null,512),[[tt,i.showOnlyUnInstalled]]),e[17]||(e[17]=pt(" Show only non installed apps "))])]),c("div",Gkt,[e[19]||(e[19]=c("label",{for:"sort-select",class:"font-semibold"},"Sort by:",-1)),F(c("select",{id:"sort-select","onUpdate:modelValue":e[8]||(e[8]=a=>i.sortBy=a),class:"border-2 border-gray-300 rounded-md px-2 py-1"},e[18]||(e[18]=[c("option",{value:"name"},"Name",-1),c("option",{value:"author"},"Author",-1),c("option",{value:"date"},"Creation Date",-1),c("option",{value:"update"},"Last Update",-1)]),512),[[Qt,i.sortBy]]),c("button",{onClick:e[9]||(e[9]=(...a)=>s.toggleSortOrder&&s.toggleSortOrder(...a)),class:"btn btn-secondary"},X(i.sortOrder==="asc"?"↑":"↓"),1)])])]),i.loading?(T(),M("div",zkt,e[20]||(e[20]=[c("div",{class:"animate-spin rounded-full h-10 w-10 border-t-2 border-b-2 border-blue-500"},null,-1),c("span",{class:"text-xl text-gray-700 font-semibold"},"Loading...",-1)]))):(T(),M("div",Vkt,[e[21]||(e[21]=c("h2",{class:"text-2xl font-bold mb-4"},"Favorite Apps",-1)),c("div",Hkt,[(T(!0),M(je,null,at(s.favoriteApps,a=>(T(),Tt(o,{key:a.appName,app:a,onToggleFavorite:s.toggleFavorite,onInstall:s.installApp,onUninstall:s.uninstallApp,onDelete:s.deleteApp,onEdit:s.editApp,onDownload:s.downloadApp,onHelp:s.handleAppClick,onOpen:s.openApp,onStartServer:s.startServer},null,8,["app","onToggleFavorite","onInstall","onUninstall","onDelete","onEdit","onDownload","onHelp","onOpen","onStartServer"]))),128))]),c("h2",qkt,X(s.currentCategoryName)+" ("+X(s.sortedAndFilteredApps.length)+")",1),c("div",Ykt,[(T(!0),M(je,null,at(s.sortedAndFilteredApps,a=>(T(),Tt(o,{key:a.name,app:a,onToggleFavorite:s.toggleFavorite,onInstall:s.installApp,onUninstall:s.uninstallApp,onDelete:s.deleteApp,onEdit:s.editApp,onDownload:s.downloadApp,onHelp:s.handleAppClick,onOpen:s.openApp,onStartServer:s.startServer},null,8,["app","onToggleFavorite","onInstall","onUninstall","onDelete","onEdit","onDownload","onHelp","onOpen","onStartServer"]))),128))])])),i.selectedApp?(T(),M("div",$kt,[c("div",Wkt,[c("div",Kkt,[c("h2",jkt,X(i.selectedApp.name),1),c("button",{onClick:e[10]||(e[10]=(...a)=>s.backToZoo&&s.backToZoo(...a)),class:"bg-gray-300 hover:bg-gray-400 px-4 py-2 rounded-lg transition duration-300 ease-in-out"},"Close")]),i.appCode?(T(),M("iframe",{key:0,srcdoc:i.appCode,class:"flex-grow border-none"},null,8,Qkt)):(T(),M("p",Xkt,"Please install this app to view its code."))])])):Y("",!0),i.message?(T(),M("div",{key:3,class:qe(["fixed bottom-4 right-4 px-6 py-3 rounded-lg shadow-md",{"bg-green-100 text-green-800":i.successMessage,"bg-red-100 text-red-800":!i.successMessage}])},X(i.message),3)):Y("",!0)])}const Jkt=bt(Ckt,[["render",Zkt]]),eIt={components:{PersonalityEntry:EI},data(){return{personalities:[],githubApps:[],favorites:[],selectedCategory:"all",selectedApp:null,appCode:"",loading:!1,message:"",successMessage:!0,searchQuery:"",selectedFile:null,isUploading:!1,error:"",sortBy:"name",sortOrder:"asc"}},computed:{currentCategoryName(){return this.selectedCategory=="all"?"All Personalities":this.selectedCategory},configFile:{get(){return this.$store.state.config},set(n){this.$store.commit("setConfig",n)}},combinedApps(){this.personalities.map(e=>e.name);const n=new Map(this.personalities.map(e=>[e.name,{...e,installed:!0,existsInFolder:!0}]));return this.githubApps.forEach(e=>{n.has(e.name)||n.set(e.name,{...e,installed:!1,existsInFolder:!1})}),Array.from(n.values())},categories(){return[...new Set(this.combinedApps.map(n=>n.category))].sort((n,e)=>n.localeCompare(e))},filteredApps(){return this.combinedApps.filter(n=>{const e=n.name.toLowerCase().includes(this.searchQuery.toLowerCase())||n.author.toLowerCase().includes(this.searchQuery.toLowerCase())||n.description.toLowerCase().includes(this.searchQuery.toLowerCase()),t=this.selectedCategory==="all"||n.category===this.selectedCategory;return e&&t})},sortedAndFilteredApps(){return this.filteredApps.sort((n,e)=>{let t=0;switch(this.sortBy){case"name":t=n.name.localeCompare(e.name);break;case"author":t=n.author.localeCompare(e.author);break;case"date":t=new Date(n.creation_date)-new Date(e.creation_date);break;case"update":t=new Date(n.last_update_date)-new Date(e.last_update_date);break}return this.sortOrder==="asc"?t:-t})},favoriteApps(){return this.combinedApps.filter(n=>this.favorites.includes(n.uid))}},methods:{async onPersonalitySelected(n){if(console.log("on pers",n),this.isLoading&&this.$store.state.toast.showToast("Loading... please wait",4,!1),this.isLoading=!0,console.log("selecting ",n),n){if(n.selected){this.$store.state.toast.showToast("Personality already selected",4,!0),this.isLoading=!1;return}let e=n.language==null?n.full_path:n.full_path+":"+n.language;if(console.log("pth",e),n.isMounted&&this.configFile.personalities.includes(e)){const t=await this.select_personality(n);console.log("pers is mounted",t),t&&t.status&&t.active_personality_id>-1?this.$store.state.toast.showToast(`Selected personality: +This is likely a Baklava internal issue. Please report it on GitHub.`);return e.get(t)}}const fMt=["INPUT","TEXTAREA","SELECT"];function PO(n){return fMt.includes(n.tagName)}let H1=null;function gMt(n){H1=n}function $r(){if(!H1)throw new Error("providePlugin() must be called before usePlugin()");return{viewModel:H1}}function _i(){const{viewModel:n}=$r();return{graph:yp(n.value,"displayedGraph"),switchGraph:n.value.switchGraph}}function FO(n){const{graph:e}=_i(),t=yt(null),r=yt(null);return{dragging:mt(()=>!!t.value),onPointerDown:l=>{t.value={x:l.pageX,y:l.pageY},r.value={x:n.value.x,y:n.value.y}},onPointerMove:l=>{if(t.value){const d=l.pageX-t.value.x,u=l.pageY-t.value.y;n.value.x=r.value.x+d/e.value.scaling,n.value.y=r.value.y+u/e.value.scaling}},onPointerUp:()=>{t.value=null,r.value=null}}}function UO(n,e,t){if(!e.template)return!1;if(Yl(e.template)===t)return!0;const r=n.graphTemplates.find(s=>Yl(s)===t);return r?r.nodes.filter(s=>s.type.startsWith(yd)).some(s=>UO(n,e,s.type)):!1}function BO(n){return mt(()=>{const e=Array.from(n.value.editor.nodeTypes.entries()),t=new Set(e.map(([,i])=>i.category)),r=[];for(const i of t.values()){let s=e.filter(([,o])=>o.category===i);n.value.displayedGraph.template?s=s.filter(([o])=>!UO(n.value.editor,n.value.displayedGraph,o)):s=s.filter(([o])=>![Hl,ql].includes(o)),s.length>0&&r.push({name:i,nodeTypes:Object.fromEntries(s)})}return r.sort((i,s)=>i.name==="default"?-1:s.name==="default"||i.name>s.name?1:-1),r})}function GO(){const{graph:n}=_i();return{transform:(t,r)=>{const i=t/n.value.scaling-n.value.panning.x,s=r/n.value.scaling-n.value.panning.y;return[i,s]}}}function _Mt(){const{graph:n}=_i();let e=[],t=-1,r={x:0,y:0};const i=mt(()=>n.value.panning),s=FO(i),o=mt(()=>({"transform-origin":"0 0",transform:`scale(${n.value.scaling}) translate(${n.value.panning.x}px, ${n.value.panning.y}px)`})),a=(g,h,v)=>{const b=[g/n.value.scaling-n.value.panning.x,h/n.value.scaling-n.value.panning.y],_=[g/v-n.value.panning.x,h/v-n.value.panning.y],y=[_[0]-b[0],_[1]-b[1]];n.value.panning.x+=y[0],n.value.panning.y+=y[1],n.value.scaling=v},l=g=>{g.preventDefault();let h=g.deltaY;g.deltaMode===1&&(h*=32);const v=n.value.scaling*(1-h/3e3);a(g.offsetX,g.offsetY,v)},d=()=>({ax:e[0].clientX,ay:e[0].clientY,bx:e[1].clientX,by:e[1].clientY});return{styles:o,...s,onPointerDown:g=>{if(e.push(g),s.onPointerDown(g),e.length===2){const{ax:h,ay:v,bx:b,by:_}=d();r={x:h+(b-h)/2,y:v+(_-v)/2}}},onPointerMove:g=>{for(let h=0;h0){const A=n.value.scaling*(1+(x-t)/500);a(r.x,r.y,A)}t=x}else s.onPointerMove(g)},onPointerUp:g=>{e=e.filter(h=>h.pointerId!==g.pointerId),t=-1,s.onPointerUp()},onMouseWheel:l}}var ni=(n=>(n[n.NONE=0]="NONE",n[n.ALLOWED=1]="ALLOWED",n[n.FORBIDDEN=2]="FORBIDDEN",n))(ni||{});const zO=Symbol();function bMt(){const{graph:n}=_i(),e=yt(null),t=yt(null),r=a=>{e.value&&(e.value.mx=a.offsetX/n.value.scaling-n.value.panning.x,e.value.my=a.offsetY/n.value.scaling-n.value.panning.y)},i=()=>{if(t.value){if(e.value)return;const a=n.value.connections.find(l=>l.to===t.value);t.value.isInput&&a?(e.value={status:ni.NONE,from:a.from},n.value.removeConnection(a)):e.value={status:ni.NONE,from:t.value},e.value.mx=void 0,e.value.my=void 0}},s=()=>{if(e.value&&t.value){if(e.value.from===t.value)return;n.value.addConnection(e.value.from,e.value.to)}e.value=null},o=a=>{if(t.value=a??null,a&&e.value){e.value.to=a;const l=n.value.checkConnection(e.value.from,e.value.to);if(e.value.status=l.connectionAllowed?ni.ALLOWED:ni.FORBIDDEN,l.connectionAllowed){const d=l.connectionsInDanger.map(u=>u.id);n.value.connections.forEach(u=>{d.includes(u.id)&&(u.isInDanger=!0)})}}else!a&&e.value&&(e.value.to=void 0,e.value.status=ni.NONE,n.value.connections.forEach(l=>{l.isInDanger=!1}))};return ml(zO,{temporaryConnection:e,hoveredOver:o}),{temporaryConnection:e,onMouseMove:r,onMouseDown:i,onMouseUp:s,hoveredOver:o}}function vMt(n){const e=yt(!1),t=yt(0),r=yt(0),i=BO(n),{transform:s}=GO(),o=mt(()=>{let u=[];const m={};for(const g of i.value){const h=Object.entries(g.nodeTypes).map(([v,b])=>({label:b.title,value:"addNode:"+v}));g.name==="default"?u=h:m[g.name]=h}const f=[...Object.entries(m).map(([g,h])=>({label:g,submenu:h}))];return f.length>0&&u.length>0&&f.push({isDivider:!0}),f.push(...u),f}),a=mt(()=>n.value.settings.contextMenu.additionalItems.length===0?o.value:[{label:"Add node",submenu:o.value},...n.value.settings.contextMenu.additionalItems.map(u=>"isDivider"in u||"submenu"in u?u:{label:u.label,value:"command:"+u.command,disabled:!n.value.commandHandler.canExecuteCommand(u.command)})]);function l(u){const m=u.target;if(!(m instanceof Element)||PO(m))return;u.preventDefault(),e.value=!0;const f=m.getBoundingClientRect(),h=m.closest(".baklava-editor").getBoundingClientRect();t.value=f.x+u.offsetX-h.x,r.value=f.y+u.offsetY-h.y}function d(u){if(u.startsWith("addNode:")){const m=u.substring(8),f=n.value.editor.nodeTypes.get(m);if(!f)return;const g=yr(new f.type);n.value.displayedGraph.addNode(g);const[h,v]=s(t.value,r.value);g.position.x=h,g.position.y=v}else if(u.startsWith("command:")){const m=u.substring(8);n.value.commandHandler.canExecuteCommand(m)&&n.value.commandHandler.executeCommand(m)}}return{show:e,x:t,y:r,items:a,open:l,onClick:d}}const gp="START_SELECTION_BOX";function yMt(n){const{viewModel:e}=$r(),{graph:t}=_i(),r=mt(()=>t.value.nodes),i=yt(!1),s=yt(!1),o=yt([0,0]),a=yt([0,0]);Zn(e,()=>{e.value.commandHandler.hasCommand(gp)||(e.value.commandHandler.registerCommand(gp,{canExecute:()=>!0,execute(){i.value=!0}}),e.value.commandHandler.registerHotkey(["b"],gp))},{immediate:!0});function l(_){return[_.clientX-n.value.getBoundingClientRect().left,_.clientY-n.value.getBoundingClientRect().top]}function d(_){return i.value?(s.value=!0,i.value=!1,o.value=l(_),a.value=l(_),document.addEventListener("pointermove",u),document.addEventListener("pointerup",m),!0):!1}function u(_){o.value=l(_)}function m(_){document.removeEventListener("pointermove",u),document.removeEventListener("pointerup",m),o.value=l(_),s.value=!1;const y=f();for(const E of y)e.value.displayedGraph.selectedNodes.push(E)}function f(){const _=g(),E=document.querySelector(".baklava-editor").getBoundingClientRect();return r.value.filter(x=>{const A=h(x,E);return v(_,A)})}function g(){return{left:Math.min(o.value[0],a.value[0]),top:Math.min(o.value[1],a.value[1]),right:Math.max(o.value[0],a.value[0]),bottom:Math.max(o.value[1],a.value[1])}}function h(_,y){const E=document.getElementById(_.id),x=E?E.getBoundingClientRect():{x:0,y:0,width:0,height:0},A=x.x-y.left,w=x.y-y.top;return{left:A,top:w,right:A+x.width,bottom:w+x.height}}function v(_,y){return _.lefty.left&&_.topy.top}function b(){return{width:Math.abs(a.value[0]-o.value[0])+"px",height:Math.abs(a.value[1]-o.value[1])+"px",left:(a.value[0]>o.value[0]?o.value[0]:a.value[0])+"px",top:(a.value[1]>o.value[1]?o.value[1]:a.value[1])+"px"}}return yr({startSelection:i,isSelecting:s,start:o,end:a,onPointerDown:d,getStyles:b})}const EMt=Pn({setup(){const{viewModel:n}=$r(),{graph:e}=_i();return{styles:mt(()=>{const r=n.value.settings.background,i=e.value.panning.x*e.value.scaling,s=e.value.panning.y*e.value.scaling,o=e.value.scaling*r.gridSize,a=o/r.gridDivision,l=`${o}px ${o}px, ${o}px ${o}px`,d=e.value.scaling>r.subGridVisibleThreshold?`, ${a}px ${a}px, ${a}px ${a}px`:"";return{backgroundPosition:`left ${i}px top ${s}px`,backgroundSize:`${l} ${d}`}})}}}),Nn=(n,e)=>{const t=n.__vccOpts||n;for(const[r,i]of e)t[r]=i;return t};function SMt(n,e,t,r,i,s){return T(),M("div",{class:"background",style:on(n.styles)},null,4)}const xMt=Nn(EMt,[["render",SMt]]);function TMt(n){return LM()?(w5(n),!0):!1}function cE(n){return typeof n=="function"?n():Pt(n)}const VO=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const wMt=Object.prototype.toString,CMt=n=>wMt.call(n)==="[object Object]",_p=()=>{},AMt=RMt();function RMt(){var n,e;return VO&&((n=window==null?void 0:window.navigator)==null?void 0:n.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function MMt(n,e,t=!1){return e.reduce((r,i)=>(i in n&&(!t||n[i]!==void 0)&&(r[i]=n[i]),r),{})}function NMt(n,e={}){if(!Gn(n))return eD(n);const t=Array.isArray(n.value)?Array.from({length:n.value.length}):{};for(const r in n.value)t[r]=J5(()=>({get(){return n.value[r]},set(i){var s;if((s=cE(e.replaceRef))!=null?s:!0)if(Array.isArray(n.value)){const a=[...n.value];a[r]=i,n.value=a}else{const a={...n.value,[r]:i};Object.setPrototypeOf(a,Object.getPrototypeOf(n.value)),n.value=a}else n.value[r]=i}}));return t}function Lc(n){var e;const t=cE(n);return(e=t==null?void 0:t.$el)!=null?e:t}const dE=VO?window:void 0;function ed(...n){let e,t,r,i;if(typeof n[0]=="string"||Array.isArray(n[0])?([t,r,i]=n,e=dE):[e,t,r,i]=n,!e)return _p;Array.isArray(t)||(t=[t]),Array.isArray(r)||(r=[r]);const s=[],o=()=>{s.forEach(u=>u()),s.length=0},a=(u,m,f,g)=>(u.addEventListener(m,f,g),()=>u.removeEventListener(m,f,g)),l=Zn(()=>[Lc(e),cE(i)],([u,m])=>{if(o(),!u)return;const f=CMt(m)?{...m}:m;s.push(...t.flatMap(g=>r.map(h=>a(u,g,h,f))))},{immediate:!0,flush:"post"}),d=()=>{l(),o()};return TMt(d),d}let gM=!1;function HO(n,e,t={}){const{window:r=dE,ignore:i=[],capture:s=!0,detectIframe:o=!1}=t;if(!r)return _p;AMt&&!gM&&(gM=!0,Array.from(r.document.body.children).forEach(f=>f.addEventListener("click",_p)),r.document.documentElement.addEventListener("click",_p));let a=!0;const l=f=>i.some(g=>{if(typeof g=="string")return Array.from(r.document.querySelectorAll(g)).some(h=>h===f.target||f.composedPath().includes(h));{const h=Lc(g);return h&&(f.target===h||f.composedPath().includes(h))}}),u=[ed(r,"click",f=>{const g=Lc(n);if(!(!g||g===f.target||f.composedPath().includes(g))){if(f.detail===0&&(a=!l(f)),!a){a=!0;return}e(f)}},{passive:!0,capture:s}),ed(r,"pointerdown",f=>{const g=Lc(n);a=!l(f)&&!!(g&&!f.composedPath().includes(g))},{passive:!0}),o&&ed(r,"blur",f=>{setTimeout(()=>{var g;const h=Lc(n);((g=r.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(h!=null&&h.contains(r.document.activeElement))&&e(f)},0)})].filter(Boolean);return()=>u.forEach(f=>f())}const qO={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},kMt=Object.keys(qO);function IMt(n={}){const{target:e=dE}=n,t=yt(!1),r=yt(n.initialValue||{});Object.assign(r.value,qO,r.value);const i=s=>{t.value=!0,!(n.pointerTypes&&!n.pointerTypes.includes(s.pointerType))&&(r.value=MMt(s,kMt,!1))};if(e){const s={passive:!0};ed(e,["pointerdown","pointermove","pointerup"],i,s),ed(e,"pointerleave",()=>t.value=!1,s)}return{...NMt(r),isInside:t}}const OMt=["onMouseenter","onMouseleave","onClick"],DMt={class:"flex-fill"},LMt={key:0,class:"__submenu-icon",style:{"line-height":"1em"}},PMt=c("svg",{width:"13",height:"13",viewBox:"-60 120 250 250"},[c("path",{d:"M160.875 279.5625 L70.875 369.5625 L70.875 189.5625 L160.875 279.5625 Z",stroke:"none",fill:"white"})],-1),FMt=[PMt],uE=Pn({__name:"ContextMenu",props:{modelValue:{type:Boolean},items:{},x:{default:0},y:{default:0},isNested:{type:Boolean,default:!1},isFlipped:{default:()=>({x:!1,y:!1})},flippable:{type:Boolean,default:!1}},emits:["update:modelValue","click"],setup(n,{emit:e}){const t=n,r=e;let i=null;const s=yt(null),o=yt(-1),a=yt(0),l=yt({x:!1,y:!1}),d=mt(()=>t.flippable&&(l.value.x||t.isFlipped.x)),u=mt(()=>t.flippable&&(l.value.y||t.isFlipped.y)),m=mt(()=>{const y={};return t.isNested||(y.top=(u.value?t.y-a.value:t.y)+"px",y.left=t.x+"px"),y}),f=mt(()=>({"--flipped-x":d.value,"--flipped-y":u.value,"--nested":t.isNested})),g=mt(()=>t.items.map(y=>({...y,hover:!1})));Zn([()=>t.y,()=>t.items],()=>{var y,E,x,A;a.value=t.items.length*30;const w=((E=(y=s.value)==null?void 0:y.parentElement)==null?void 0:E.offsetWidth)??0,N=((A=(x=s.value)==null?void 0:x.parentElement)==null?void 0:A.offsetHeight)??0;l.value.x=!t.isNested&&t.x>w*.75,l.value.y=!t.isNested&&t.y+a.value>N-20}),HO(s,()=>{t.modelValue&&r("update:modelValue",!1)});const h=y=>{!y.submenu&&y.value&&(r("click",y.value),r("update:modelValue",!1))},v=y=>{r("click",y),o.value=-1,t.isNested||r("update:modelValue",!1)},b=(y,E)=>{t.items[E].submenu&&(o.value=E,i!==null&&(clearTimeout(i),i=null))},_=(y,E)=>{t.items[E].submenu&&(i=window.setTimeout(()=>{o.value=-1,i=null},200))};return(y,E)=>{const x=ht("ContextMenu",!0);return T(),Tt(ji,{name:"slide-fade"},{default:Ge(()=>[F(c("div",{ref_key:"el",ref:s,class:qe(["baklava-context-menu",f.value]),style:on(m.value)},[(T(!0),M(je,null,at(g.value,(A,w)=>(T(),M(je,null,[A.isDivider?(T(),M("div",{key:`d-${w}`,class:"divider"})):(T(),M("div",{key:`i-${w}`,class:qe(["item",{submenu:!!A.submenu,"--disabled":!!A.disabled}]),onMouseenter:N=>b(N,w),onMouseleave:N=>_(N,w),onClick:J(N=>h(A),["stop","prevent"])},[c("div",DMt,X(A.label),1),A.submenu?(T(),M("div",LMt,FMt)):Y("",!0),A.submenu?(T(),Tt(x,{key:1,"model-value":o.value===w,items:A.submenu,"is-nested":!0,"is-flipped":{x:d.value,y:u.value},flippable:y.flippable,onClick:v},null,8,["model-value","items","is-flipped","flippable"])):Y("",!0)],42,OMt))],64))),256))],6),[[Dt,y.modelValue]])]),_:1})}}}),UMt={},BMt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"16",height:"16",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},GMt=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),zMt=c("circle",{cx:"12",cy:"12",r:"1"},null,-1),VMt=c("circle",{cx:"12",cy:"19",r:"1"},null,-1),HMt=c("circle",{cx:"12",cy:"5",r:"1"},null,-1),qMt=[GMt,zMt,VMt,HMt];function YMt(n,e){return T(),M("svg",BMt,qMt)}const YO=Nn(UMt,[["render",YMt]]),$Mt=["id"],WMt={key:0,class:"__tooltip"},KMt={key:2,class:"align-middle"},_M=Pn({__name:"NodeInterface",props:{node:{},intf:{}},setup(n){const e=(b,_=100)=>{const y=typeof(b==null?void 0:b.toString)=="function"?String(b):"";return y.length>_?y.slice(0,_)+"...":y},t=n,{viewModel:r}=$r(),{hoveredOver:i,temporaryConnection:s}=Gr(zO),o=yt(null),a=mt(()=>t.intf.connectionCount>0),l=yt(!1),d=mt(()=>r.value.settings.displayValueOnHover&&l.value),u=mt(()=>({"--input":t.intf.isInput,"--output":!t.intf.isInput,"--connected":a.value})),m=mt(()=>t.intf.component&&(!t.intf.isInput||!t.intf.port||t.intf.connectionCount===0)),f=()=>{l.value=!0,i(t.intf)},g=()=>{l.value=!1,i(void 0)},h=()=>{o.value&&r.value.hooks.renderInterface.execute({intf:t.intf,el:o.value})},v=()=>{const b=r.value.displayedGraph.sidebar;b.nodeId=t.node.id,b.optionName=t.intf.name,b.visible=!0};return es(h),xd(h),(b,_)=>{var y;return T(),M("div",{id:b.intf.id,ref_key:"el",ref:o,class:qe(["baklava-node-interface",u.value])},[b.intf.port?(T(),M("div",{key:0,class:qe(["__port",{"--selected":((y=Pt(s))==null?void 0:y.from)===b.intf}]),onPointerover:f,onPointerout:g},[On(b.$slots,"portTooltip",{showTooltip:d.value},()=>[d.value===!0?(T(),M("span",WMt,X(e(b.intf.value)),1)):Y("",!0)])],34)):Y("",!0),m.value?(T(),Tt(Sh(b.intf.component),{key:1,modelValue:b.intf.value,"onUpdate:modelValue":_[0]||(_[0]=E=>b.intf.value=E),node:b.node,intf:b.intf,onOpenSidebar:v},null,40,["modelValue","node","intf"])):(T(),M("span",KMt,X(b.intf.name),1))],10,$Mt)}}}),jMt=["id","data-node-type"],QMt={class:"__title-label"},XMt={class:"__menu"},ZMt={class:"__outputs"},JMt={class:"__inputs"},e4t=Pn({__name:"Node",props:{node:{},selected:{type:Boolean,default:!1},dragging:{type:Boolean}},emits:["select","start-drag"],setup(n,{emit:e}){const t=n,r=e,{viewModel:i}=$r(),{graph:s,switchGraph:o}=_i(),a=yt(null),l=yt(!1),d=yt(""),u=yt(null),m=yt(!1),f=yt(!1),g=mt(()=>{const q=[{value:"rename",label:"Rename"},{value:"delete",label:"Delete"}];return t.node.type.startsWith(yd)&&q.push({value:"editSubgraph",label:"Edit Subgraph"}),q}),h=mt(()=>({"--selected":t.selected,"--dragging":t.dragging,"--two-column":!!t.node.twoColumn})),v=mt(()=>({"--reverse-y":t.node.reverseY??i.value.settings.nodes.reverseY})),b=mt(()=>{var q,ie;return{top:`${((q=t.node.position)==null?void 0:q.y)??0}px`,left:`${((ie=t.node.position)==null?void 0:ie.x)??0}px`,"--width":`${t.node.width??i.value.settings.nodes.defaultWidth}px`}}),_=mt(()=>Object.values(t.node.inputs).filter(q=>!q.hidden)),y=mt(()=>Object.values(t.node.outputs).filter(q=>!q.hidden)),E=()=>{r("select")},x=q=>{t.selected||E(),r("start-drag",q)},A=()=>{f.value=!0},w=async q=>{var ie;switch(q){case"delete":s.value.removeNode(t.node);break;case"rename":d.value=t.node.title,l.value=!0,await We(),(ie=u.value)==null||ie.focus();break;case"editSubgraph":o(t.node.template);break}},N=()=>{t.node.title=d.value,l.value=!1},L=()=>{a.value&&i.value.hooks.renderNode.execute({node:t.node,el:a.value})},C=q=>{m.value=!0,q.preventDefault()},k=q=>{if(!m.value)return;const ie=t.node.width+q.movementX/s.value.scaling,D=i.value.settings.nodes.minWidth,$=i.value.settings.nodes.maxWidth;t.node.width=Math.max(D,Math.min($,ie))},H=()=>{m.value=!1};return es(()=>{L(),window.addEventListener("mousemove",k),window.addEventListener("mouseup",H)}),xd(L),jl(()=>{window.removeEventListener("mousemove",k),window.removeEventListener("mouseup",H)}),(q,ie)=>(T(),M("div",{id:q.node.id,ref_key:"el",ref:a,class:qe(["baklava-node",h.value]),style:on(b.value),"data-node-type":q.node.type,onPointerdown:E},[Pt(i).settings.nodes.resizable?(T(),M("div",{key:0,class:"__resize-handle",onMousedown:C},null,32)):Y("",!0),On(q.$slots,"title",{},()=>[c("div",{class:"__title",onPointerdown:J(x,["self","stop"])},[l.value?F((T(),M("input",{key:1,ref_key:"renameInputEl",ref:u,"onUpdate:modelValue":ie[1]||(ie[1]=D=>d.value=D),type:"text",class:"baklava-input",placeholder:"Node Name",onBlur:N,onKeydown:ui(N,["enter"])},null,544)),[[_e,d.value]]):(T(),M(je,{key:0},[c("div",QMt,X(q.node.title),1),c("div",XMt,[W(YO,{class:"--clickable",onClick:A}),W(Pt(uE),{modelValue:f.value,"onUpdate:modelValue":ie[0]||(ie[0]=D=>f.value=D),x:0,y:0,items:g.value,onClick:w},null,8,["modelValue","items"])])],64))],32)]),On(q.$slots,"content",{},()=>[c("div",{class:qe(["__content",v.value]),onKeydown:ie[2]||(ie[2]=ui(J(()=>{},["stop"]),["delete"]))},[c("div",ZMt,[(T(!0),M(je,null,at(y.value,D=>On(q.$slots,"nodeInterface",{key:D.id,type:"output",node:q.node,intf:D},()=>[W(_M,{node:q.node,intf:D},null,8,["node","intf"])])),128))]),c("div",JMt,[(T(!0),M(je,null,at(_.value,D=>On(q.$slots,"nodeInterface",{key:D.id,type:"input",node:q.node,intf:D},()=>[W(_M,{node:q.node,intf:D},null,8,["node","intf"])])),128))])],34)])],46,jMt))}}),t4t=Pn({props:{x1:{type:Number,required:!0},y1:{type:Number,required:!0},x2:{type:Number,required:!0},y2:{type:Number,required:!0},state:{type:Number,default:ni.NONE},isTemporary:{type:Boolean,default:!1}},setup(n){const{viewModel:e}=$r(),{graph:t}=_i(),r=(o,a)=>{const l=(o+t.value.panning.x)*t.value.scaling,d=(a+t.value.panning.y)*t.value.scaling;return[l,d]},i=mt(()=>{const[o,a]=r(n.x1,n.y1),[l,d]=r(n.x2,n.y2);if(e.value.settings.useStraightConnections)return`M ${o} ${a} L ${l} ${d}`;{const u=.3*Math.abs(o-l);return`M ${o} ${a} C ${o+u} ${a}, ${l-u} ${d}, ${l} ${d}`}}),s=mt(()=>({"--temporary":n.isTemporary,"--allowed":n.state===ni.ALLOWED,"--forbidden":n.state===ni.FORBIDDEN}));return{d:i,classes:s}}}),n4t=["d"];function r4t(n,e,t,r,i,s){return T(),M("path",{class:qe(["baklava-connection",n.classes]),d:n.d},null,10,n4t)}const $O=Nn(t4t,[["render",r4t]]);function i4t(n){return document.getElementById(n.id)}function $l(n){const e=document.getElementById(n.id),t=e==null?void 0:e.getElementsByClassName("__port");return{node:(e==null?void 0:e.closest(".baklava-node"))??null,interface:e,port:t&&t.length>0?t[0]:null}}const s4t=Pn({components:{"connection-view":$O},props:{connection:{type:Object,required:!0}},setup(n){const{graph:e}=_i();let t;const r=yt({x1:0,y1:0,x2:0,y2:0}),i=mt(()=>n.connection.isInDanger?ni.FORBIDDEN:ni.NONE),s=mt(()=>{var d;return(d=e.value.findNodeById(n.connection.from.nodeId))==null?void 0:d.position}),o=mt(()=>{var d;return(d=e.value.findNodeById(n.connection.to.nodeId))==null?void 0:d.position}),a=d=>d.node&&d.interface&&d.port?[d.node.offsetLeft+d.interface.offsetLeft+d.port.offsetLeft+d.port.clientWidth/2,d.node.offsetTop+d.interface.offsetTop+d.port.offsetTop+d.port.clientHeight/2]:[0,0],l=()=>{const d=$l(n.connection.from),u=$l(n.connection.to);d.node&&u.node&&(t||(t=new ResizeObserver(()=>{l()}),t.observe(d.node),t.observe(u.node)));const[m,f]=a(d),[g,h]=a(u);r.value={x1:m,y1:f,x2:g,y2:h}};return es(async()=>{await We(),l()}),jl(()=>{t&&t.disconnect()}),Zn([s,o],()=>l(),{deep:!0}),{d:r,state:i}}});function o4t(n,e,t,r,i,s){const o=ht("connection-view");return T(),Tt(o,{x1:n.d.x1,y1:n.d.y1,x2:n.d.x2,y2:n.d.y2,state:n.state},null,8,["x1","y1","x2","y2","state"])}const a4t=Nn(s4t,[["render",o4t]]);function lh(n){return n.node&&n.interface&&n.port?[n.node.offsetLeft+n.interface.offsetLeft+n.port.offsetLeft+n.port.clientWidth/2,n.node.offsetTop+n.interface.offsetTop+n.port.offsetTop+n.port.clientHeight/2]:[0,0]}const l4t=Pn({components:{"connection-view":$O},props:{connection:{type:Object,required:!0}},setup(n){const e=mt(()=>n.connection?n.connection.status:ni.NONE);return{d:mt(()=>{if(!n.connection)return{input:[0,0],output:[0,0]};const r=lh($l(n.connection.from)),i=n.connection.to?lh($l(n.connection.to)):[n.connection.mx||r[0],n.connection.my||r[1]];return n.connection.from.isInput?{input:i,output:r}:{input:r,output:i}}),status:e}}});function c4t(n,e,t,r,i,s){const o=ht("connection-view");return T(),Tt(o,{x1:n.d.input[0],y1:n.d.input[1],x2:n.d.output[0],y2:n.d.output[1],state:n.status,"is-temporary":""},null,8,["x1","y1","x2","y2","state"])}const d4t=Nn(l4t,[["render",c4t]]),u4t=Pn({setup(){const{viewModel:n}=$r(),{graph:e}=_i(),t=yt(null),r=yp(n.value.settings.sidebar,"width"),i=mt(()=>n.value.settings.sidebar.resizable),s=mt(()=>{const m=e.value.sidebar.nodeId;return e.value.nodes.find(f=>f.id===m)}),o=mt(()=>({width:`${r.value}px`})),a=mt(()=>s.value?[...Object.values(s.value.inputs),...Object.values(s.value.outputs)].filter(f=>f.displayInSidebar&&f.component):[]),l=()=>{e.value.sidebar.visible=!1},d=()=>{window.addEventListener("mousemove",u),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",u)},{once:!0})},u=m=>{var f,g;const h=((g=(f=t.value)==null?void 0:f.parentElement)==null?void 0:g.getBoundingClientRect().width)??500;let v=r.value-m.movementX;v<300?v=300:v>.9*h&&(v=.9*h),r.value=v};return{el:t,graph:e,resizable:i,node:s,styles:o,displayedInterfaces:a,startResize:d,close:l}}}),p4t={class:"__header"},h4t={class:"__node-name"};function m4t(n,e,t,r,i,s){return T(),M("div",{ref:"el",class:qe(["baklava-sidebar",{"--open":n.graph.sidebar.visible}]),style:on(n.styles)},[n.resizable?(T(),M("div",{key:0,class:"__resizer",onMousedown:e[0]||(e[0]=(...o)=>n.startResize&&n.startResize(...o))},null,32)):Y("",!0),c("div",p4t,[c("button",{tabindex:"-1",class:"__close",onClick:e[1]||(e[1]=(...o)=>n.close&&n.close(...o))},"×"),c("div",h4t,[c("b",null,X(n.node?n.node.title:""),1)])]),(T(!0),M(je,null,at(n.displayedInterfaces,o=>(T(),M("div",{key:o.id,class:"__interface"},[(T(),Tt(Sh(o.component),{modelValue:o.value,"onUpdate:modelValue":a=>o.value=a,node:n.node,intf:o},null,8,["modelValue","onUpdate:modelValue","node","intf"]))]))),128))],6)}const f4t=Nn(u4t,[["render",m4t]]),g4t=Pn({__name:"Minimap",setup(n){const{viewModel:e}=$r(),{graph:t}=_i(),r=yt(null),i=yt(!1);let s,o=!1,a={x1:0,y1:0,x2:0,y2:0},l;const d=()=>{var w,N;if(!s)return;s.canvas.width=r.value.offsetWidth,s.canvas.height=r.value.offsetHeight;const L=new Map,C=new Map;for(const D of t.value.nodes){const $=i4t(D),K=($==null?void 0:$.offsetWidth)??0,B=($==null?void 0:$.offsetHeight)??0,Z=((w=D.position)==null?void 0:w.x)??0,ce=((N=D.position)==null?void 0:N.y)??0;L.set(D,{x1:Z,y1:ce,x2:Z+K,y2:ce+B}),C.set(D,$)}const k={x1:Number.MAX_SAFE_INTEGER,y1:Number.MAX_SAFE_INTEGER,x2:Number.MIN_SAFE_INTEGER,y2:Number.MIN_SAFE_INTEGER};for(const D of L.values())D.x1k.x2&&(k.x2=D.x2),D.y2>k.y2&&(k.y2=D.y2);const H=50;k.x1-=H,k.y1-=H,k.x2+=H,k.y2+=H,a=k;const q=s.canvas.width/s.canvas.height,ie=(a.x2-a.x1)/(a.y2-a.y1);if(q>ie){const D=(q-ie)*(a.y2-a.y1)*.5;a.x1-=D,a.x2+=D}else{const D=a.x2-a.x1,$=a.y2-a.y1,K=(D-q*$)/q*.5;a.y1-=K,a.y2+=K}s.clearRect(0,0,s.canvas.width,s.canvas.height),s.strokeStyle="white";for(const D of t.value.connections){const[$,K]=lh($l(D.from)),[B,Z]=lh($l(D.to)),[ce,ue]=u($,K),[xe,Ce]=u(B,Z);if(s.beginPath(),s.moveTo(ce,ue),e.value.settings.useStraightConnections)s.lineTo(xe,Ce);else{const me=.3*Math.abs(ce-xe);s.bezierCurveTo(ce+me,ue,xe-me,Ce,xe,Ce)}s.stroke()}s.strokeStyle="lightgray";for(const[D,$]of L.entries()){const[K,B]=u($.x1,$.y1),[Z,ce]=u($.x2,$.y2);s.fillStyle=f(C.get(D)),s.beginPath(),s.rect(K,B,Z-K,ce-B),s.fill(),s.stroke()}if(i.value){const D=h(),[$,K]=u(D.x1,D.y1),[B,Z]=u(D.x2,D.y2);s.fillStyle="rgba(255, 255, 255, 0.2)",s.fillRect($,K,B-$,Z-K)}},u=(w,N)=>[(w-a.x1)/(a.x2-a.x1)*s.canvas.width,(N-a.y1)/(a.y2-a.y1)*s.canvas.height],m=(w,N)=>[w*(a.x2-a.x1)/s.canvas.width+a.x1,N*(a.y2-a.y1)/s.canvas.height+a.y1],f=w=>{if(w){const N=w.querySelector(".__content");if(N){const C=g(N);if(C)return C}const L=g(w);if(L)return L}return"gray"},g=w=>{const N=getComputedStyle(w).backgroundColor;if(N&&N!=="rgba(0, 0, 0, 0)")return N},h=()=>{const w=r.value.parentElement.offsetWidth,N=r.value.parentElement.offsetHeight,L=w/t.value.scaling-t.value.panning.x,C=N/t.value.scaling-t.value.panning.y;return{x1:-t.value.panning.x,y1:-t.value.panning.y,x2:L,y2:C}},v=w=>{w.button===0&&(o=!0,b(w))},b=w=>{if(o){const[N,L]=m(w.offsetX,w.offsetY),C=h(),k=(C.x2-C.x1)/2,H=(C.y2-C.y1)/2;t.value.panning.x=-(N-k),t.value.panning.y=-(L-H)}},_=()=>{o=!1},y=()=>{i.value=!0},E=()=>{i.value=!1,_()};Zn([i,t.value.panning,()=>t.value.scaling,()=>t.value.connections.length],()=>{d()});const x=mt(()=>t.value.nodes.map(w=>w.position)),A=mt(()=>t.value.nodes.map(w=>w.width));return Zn([x,A],()=>{d()},{deep:!0}),es(()=>{s=r.value.getContext("2d"),s.imageSmoothingQuality="high",d(),l=setInterval(d,500)}),jl(()=>{clearInterval(l)}),(w,N)=>(T(),M("canvas",{ref_key:"canvas",ref:r,class:"baklava-minimap",onMouseenter:y,onMouseleave:E,onMousedown:J(v,["self"]),onMousemove:J(b,["self"]),onMouseup:_,onContextmenu:N[0]||(N[0]=J(()=>{},["stop","prevent"]))},null,544))}}),_4t=Pn({components:{ContextMenu:uE,VerticalDots:YO},props:{type:{type:String,required:!0},title:{type:String,required:!0}},setup(n){const{viewModel:e}=$r(),{switchGraph:t}=_i(),r=yt(!1),i=mt(()=>n.type.startsWith(yd));return{showContextMenu:r,hasContextMenu:i,contextMenuItems:[{label:"Edit Subgraph",value:"editSubgraph"},{label:"Delete Subgraph",value:"deleteSubgraph"}],openContextMenu:()=>{r.value=!0},onContextMenuClick:l=>{const d=n.type.substring(yd.length),u=e.value.editor.graphTemplates.find(m=>m.id===d);if(u)switch(l){case"editSubgraph":t(u);break;case"deleteSubgraph":e.value.editor.removeGraphTemplate(u);break}}}}}),b4t=["data-node-type"],v4t={class:"__title"},y4t={class:"__title-label"},E4t={key:0,class:"__menu"};function S4t(n,e,t,r,i,s){const o=ht("vertical-dots"),a=ht("context-menu");return T(),M("div",{class:"baklava-node --palette","data-node-type":n.type},[c("div",v4t,[c("div",y4t,X(n.title),1),n.hasContextMenu?(T(),M("div",E4t,[W(o,{class:"--clickable",onPointerdown:e[0]||(e[0]=J(()=>{},["stop","prevent"])),onClick:J(n.openContextMenu,["stop","prevent"])},null,8,["onClick"]),W(a,{modelValue:n.showContextMenu,"onUpdate:modelValue":e[1]||(e[1]=l=>n.showContextMenu=l),x:-100,y:0,items:n.contextMenuItems,onClick:n.onContextMenuClick,onPointerdown:e[2]||(e[2]=J(()=>{},["stop","prevent"]))},null,8,["modelValue","items","onClick"])])):Y("",!0)])],8,b4t)}const bM=Nn(_4t,[["render",S4t]]),x4t={key:0},T4t=Pn({__name:"NodePalette",setup(n){const{viewModel:e}=$r(),{x:t,y:r}=IMt(),{transform:i}=GO(),s=BO(e),o=Gr("editorEl"),a=yt(null),l=mt(()=>{if(!a.value||!(o!=null&&o.value))return{};const{left:u,top:m}=o.value.getBoundingClientRect();return{top:`${r.value-m}px`,left:`${t.value-u}px`}}),d=(u,m)=>{a.value={type:u,nodeInformation:m};const f=()=>{const g=yr(new m.type);e.value.displayedGraph.addNode(g);const h=o.value.getBoundingClientRect(),[v,b]=i(t.value-h.left,r.value-h.top);g.position.x=v,g.position.y=b,a.value=null,document.removeEventListener("pointerup",f)};document.addEventListener("pointerup",f)};return(u,m)=>(T(),M(je,null,[c("div",{class:"baklava-node-palette",onContextmenu:m[0]||(m[0]=J(()=>{},["stop","prevent"]))},[(T(!0),M(je,null,at(Pt(s),f=>(T(),M("section",{key:f.name},[f.name!=="default"?(T(),M("h1",x4t,X(f.name),1)):Y("",!0),(T(!0),M(je,null,at(f.nodeTypes,(g,h)=>(T(),Tt(bM,{key:h,type:h,title:g.title,onPointerdown:v=>d(h,g)},null,8,["type","title","onPointerdown"]))),128))]))),128))],32),W(ji,{name:"fade"},{default:Ge(()=>[a.value?(T(),M("div",{key:0,class:"baklava-dragged-node",style:on(l.value)},[W(bM,{type:a.value.type,title:a.value.nodeInformation.title},null,8,["type","title"])],4)):Y("",!0)]),_:1})],64))}});let Xu;const w4t=new Uint8Array(16);function C4t(){if(!Xu&&(Xu=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Xu))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Xu(w4t)}const Qn=[];for(let n=0;n<256;++n)Qn.push((n+256).toString(16).slice(1));function A4t(n,e=0){return Qn[n[e+0]]+Qn[n[e+1]]+Qn[n[e+2]]+Qn[n[e+3]]+"-"+Qn[n[e+4]]+Qn[n[e+5]]+"-"+Qn[n[e+6]]+Qn[n[e+7]]+"-"+Qn[n[e+8]]+Qn[n[e+9]]+"-"+Qn[n[e+10]]+Qn[n[e+11]]+Qn[n[e+12]]+Qn[n[e+13]]+Qn[n[e+14]]+Qn[n[e+15]]}const R4t=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),vM={randomUUID:R4t};function ch(n,e,t){if(vM.randomUUID&&!e&&!n)return vM.randomUUID();n=n||{};const r=n.random||(n.rng||C4t)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,A4t(r)}const Ed="SAVE_SUBGRAPH";function M4t(n,e){const t=()=>{const r=n.value;if(!r.template)throw new Error("Graph template property not set");r.template.update(r.save()),r.template.panning=r.panning,r.template.scaling=r.scaling};e.registerCommand(Ed,{canExecute:()=>{var r;return n.value!==((r=n.value.editor)==null?void 0:r.graph)},execute:t})}const N4t={},k4t={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},I4t=c("polyline",{points:"6 9 12 15 18 9"},null,-1),O4t=[I4t];function D4t(n,e){return T(),M("svg",k4t,O4t)}const L4t=Nn(N4t,[["render",D4t]]),P4t=Pn({components:{"i-arrow":L4t},props:{intf:{type:Object,required:!0}},setup(n){const e=yt(null),t=yt(!1),r=mt(()=>n.intf.items.find(o=>typeof o=="string"?o===n.intf.value:o.value===n.intf.value)),i=mt(()=>r.value?typeof r.value=="string"?r.value:r.value.text:""),s=o=>{n.intf.value=typeof o=="string"?o:o.value};return HO(e,()=>{t.value=!1}),{el:e,open:t,selectedItem:r,selectedText:i,setSelected:s}}}),F4t=["title"],U4t={class:"__selected"},B4t={class:"__text"},G4t={class:"__icon"},z4t={class:"__dropdown"},V4t={class:"item --header"},H4t=["onClick"];function q4t(n,e,t,r,i,s){const o=ht("i-arrow");return T(),M("div",{ref:"el",class:qe(["baklava-select",{"--open":n.open}]),title:n.intf.name,onClick:e[0]||(e[0]=a=>n.open=!n.open)},[c("div",U4t,[c("div",B4t,X(n.selectedText),1),c("div",G4t,[W(o)])]),W(ji,{name:"slide-fade"},{default:Ge(()=>[F(c("div",z4t,[c("div",V4t,X(n.intf.name),1),(T(!0),M(je,null,at(n.intf.items,(a,l)=>(T(),M("div",{key:l,class:qe(["item",{"--active":a===n.selectedItem}]),onClick:d=>n.setSelected(a)},X(typeof a=="string"?a:a.text),11,H4t))),128))],512),[[Dt,n.open]])]),_:1})],10,F4t)}const Y4t=Nn(P4t,[["render",q4t]]);class $4t extends Cn{constructor(e,t,r){super(e,t),this.component=bh(Y4t),this.items=r}}const W4t=Pn({props:{intf:{type:Object,required:!0}}});function K4t(n,e,t,r,i,s){return T(),M("div",null,X(n.intf.value),1)}const j4t=Nn(W4t,[["render",K4t]]);class Q4t extends Cn{constructor(e,t){super(e,t),this.component=bh(j4t),this.setPort(!1)}}const X4t=Pn({props:{intf:{type:Object,required:!0},modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(n,{emit:e}){return{v:mt({get:()=>n.modelValue,set:r=>{e("update:modelValue",r)}})}}}),Z4t=["placeholder","title"];function J4t(n,e,t,r,i,s){return T(),M("div",null,[F(c("input",{"onUpdate:modelValue":e[0]||(e[0]=o=>n.v=o),type:"text",class:"baklava-input",placeholder:n.intf.name,title:n.intf.name},null,8,Z4t),[[_e,n.v]])])}const e3t=Nn(X4t,[["render",J4t]]);class Bd extends Cn{constructor(){super(...arguments),this.component=bh(e3t)}}class WO extends aE{constructor(){super(...arguments),this._title="Subgraph Input",this.inputs={name:new Bd("Name","Input").setPort(!1)},this.outputs={placeholder:new Cn("Connection",void 0)}}}class KO extends lE{constructor(){super(...arguments),this._title="Subgraph Output",this.inputs={name:new Bd("Name","Output").setPort(!1),placeholder:new Cn("Connection",void 0)},this.outputs={output:new Cn("Output",void 0).setHidden(!0)}}}const jO="CREATE_SUBGRAPH",yM=[Hl,ql];function t3t(n,e,t){const r=()=>n.value.selectedNodes.filter(s=>!yM.includes(s.type)).length>0,i=()=>{const{viewModel:s}=$r(),o=n.value,a=n.value.editor;if(o.selectedNodes.length===0)return;const l=o.selectedNodes.filter(C=>!yM.includes(C.type)),d=l.flatMap(C=>Object.values(C.inputs)),u=l.flatMap(C=>Object.values(C.outputs)),m=o.connections.filter(C=>!u.includes(C.from)&&d.includes(C.to)),f=o.connections.filter(C=>u.includes(C.from)&&!d.includes(C.to)),g=o.connections.filter(C=>u.includes(C.from)&&d.includes(C.to)),h=l.map(C=>C.save()),v=g.map(C=>({id:C.id,from:C.from.id,to:C.to.id})),b=new Map,{xLeft:_,xRight:y,yTop:E}=n3t(l);for(const[C,k]of m.entries()){const H=new WO;H.inputs.name.value=k.to.name,h.push({...H.save(),position:{x:y-s.value.settings.nodes.defaultWidth-100,y:E+C*200}}),v.push({id:ch(),from:H.outputs.placeholder.id,to:k.to.id}),b.set(k.to.id,H.graphInterfaceId)}for(const[C,k]of f.entries()){const H=new KO;H.inputs.name.value=k.from.name,h.push({...H.save(),position:{x:_+100,y:E+C*200}}),v.push({id:ch(),from:k.from.id,to:H.inputs.placeholder.id}),b.set(k.from.id,H.graphInterfaceId)}const x=yr(new um({connections:v,nodes:h,inputs:[],outputs:[]},a));a.addGraphTemplate(x);const A=a.nodeTypes.get(Yl(x));if(!A)throw new Error("Unable to create subgraph: Could not find corresponding graph node type");o.activeTransactions++;const w=yr(new A.type);o.addNode(w);const N=Math.round(l.map(C=>C.position.x).reduce((C,k)=>C+k,0)/l.length),L=Math.round(l.map(C=>C.position.y).reduce((C,k)=>C+k,0)/l.length);w.position.x=N,w.position.y=L,m.forEach(C=>{o.removeConnection(C),o.addConnection(C.from,w.inputs[b.get(C.to.id)])}),f.forEach(C=>{o.removeConnection(C),o.addConnection(w.outputs[b.get(C.from.id)],C.to)}),l.forEach(C=>o.removeNode(C)),o.activeTransactions--,e.canExecuteCommand(Ed)&&e.executeCommand(Ed),t(x),n.value.panning={...o.panning},n.value.scaling=o.scaling};e.registerCommand(jO,{canExecute:r,execute:i})}function n3t(n){const e=n.reduce((i,s)=>{const o=s.position.x;return o{const o=s.position.y;return o{const o=s.position.x+s.width;return o>i?o:i},-1/0),xRight:e,yTop:t}}class EM{constructor(e,t){this.type=e,e==="addNode"?this.nodeId=t:this.nodeState=t}undo(e){this.type==="addNode"?this.removeNode(e):this.addNode(e)}redo(e){this.type==="addNode"&&this.nodeState?this.addNode(e):this.type==="removeNode"&&this.nodeId&&this.removeNode(e)}addNode(e){const t=e.editor.nodeTypes.get(this.nodeState.type);if(!t)return;const r=new t.type;e.addNode(r),r.load(this.nodeState),this.nodeId=r.id}removeNode(e){const t=e.nodes.find(r=>r.id===this.nodeId);t&&(this.nodeState=t.save(),e.removeNode(t))}}class SM{constructor(e,t){if(this.type=e,e==="addConnection")this.connectionId=t;else{const r=t;this.connectionState={id:r.id,from:r.from.id,to:r.to.id}}}undo(e){this.type==="addConnection"?this.removeConnection(e):this.addConnection(e)}redo(e){this.type==="addConnection"&&this.connectionState?this.addConnection(e):this.type==="removeConnection"&&this.connectionId&&this.removeConnection(e)}addConnection(e){const t=e.findNodeInterface(this.connectionState.from),r=e.findNodeInterface(this.connectionState.to);if(!t||!r)return;const i=e.addConnection(t,r);i&&(i.id=this.connectionState.id),this.connectionId=i==null?void 0:i.id}removeConnection(e){const t=e.connections.find(r=>r.id===this.connectionId);t&&(this.connectionState={id:t.id,from:t.from.id,to:t.to.id},e.removeConnection(t))}}class r3t{constructor(e){if(this.type="transaction",e.length===0)throw new Error("Can't create a transaction with no steps");this.steps=e}undo(e){for(let t=this.steps.length-1;t>=0;t--)this.steps[t].undo(e)}redo(e){for(let t=0;t{if(!s.value)if(a.value)l.value.push(b);else for(o.value!==i.value.length-1&&(i.value=i.value.slice(0,o.value+1)),i.value.push(b),o.value++;i.value.length>r.value;)i.value.shift()},u=()=>{a.value=!0},m=()=>{a.value=!1,l.value.length>0&&(d(new r3t(l.value)),l.value=[])},f=()=>i.value.length!==0&&o.value!==-1,g=()=>{f()&&(s.value=!0,i.value[o.value--].undo(n.value),s.value=!1)},h=()=>i.value.length!==0&&o.value{h()&&(s.value=!0,i.value[++o.value].redo(n.value),s.value=!1)};return Zn(n,(b,_)=>{_&&(_.events.addNode.unsubscribe(t),_.events.removeNode.unsubscribe(t),_.events.addConnection.unsubscribe(t),_.events.removeConnection.unsubscribe(t)),b&&(b.events.addNode.subscribe(t,y=>{d(new EM("addNode",y.id))}),b.events.removeNode.subscribe(t,y=>{d(new EM("removeNode",y.save()))}),b.events.addConnection.subscribe(t,y=>{d(new SM("addConnection",y.id))}),b.events.removeConnection.subscribe(t,y=>{d(new SM("removeConnection",y))}))},{immediate:!0}),e.registerCommand(q1,{canExecute:f,execute:g}),e.registerCommand(Y1,{canExecute:h,execute:v}),e.registerCommand(pE,{canExecute:()=>!a.value,execute:u}),e.registerCommand(hE,{canExecute:()=>a.value,execute:m}),e.registerHotkey(["Control","z"],q1),e.registerHotkey(["Control","y"],Y1),yr({maxSteps:r})}const $1="DELETE_NODES";function s3t(n,e){e.registerCommand($1,{canExecute:()=>n.value.selectedNodes.length>0,execute(){e.executeCommand(pE);for(let t=n.value.selectedNodes.length-1;t>=0;t--){const r=n.value.selectedNodes[t];n.value.removeNode(r)}e.executeCommand(hE)}}),e.registerHotkey(["Delete"],$1)}const QO="SWITCH_TO_MAIN_GRAPH";function o3t(n,e,t){e.registerCommand(QO,{canExecute:()=>n.value!==n.value.editor.graph,execute:()=>{e.executeCommand(Ed),t(n.value.editor.graph)}})}function a3t(n,e,t){s3t(n,e),t3t(n,e,t),M4t(n,e),o3t(n,e,t)}const W1="COPY",K1="PASTE",l3t="CLEAR_CLIPBOARD";function c3t(n,e,t){const r=Symbol("ClipboardToken"),i=yt(""),s=yt(""),o=mt(()=>!i.value),a=()=>{i.value="",s.value=""},l=()=>{const m=n.value.selectedNodes.flatMap(g=>[...Object.values(g.inputs),...Object.values(g.outputs)]),f=n.value.connections.filter(g=>m.includes(g.from)||m.includes(g.to)).map(g=>({from:g.from.id,to:g.to.id}));s.value=JSON.stringify(f),i.value=JSON.stringify(n.value.selectedNodes.map(g=>g.save()))},d=(m,f,g)=>{for(const h of m){let v;if((!g||g==="input")&&(v=Object.values(h.inputs).find(b=>b.id===f)),!v&&(!g||g==="output")&&(v=Object.values(h.outputs).find(b=>b.id===f)),v)return v}},u=()=>{if(o.value)return;const m=new Map,f=JSON.parse(i.value),g=JSON.parse(s.value),h=[],v=[],b=n.value;t.executeCommand(pE);for(const _ of f){const y=e.value.nodeTypes.get(_.type);if(!y){console.warn(`Node type ${_.type} not registered`);return}const E=new y.type,x=E.id;h.push(E),E.hooks.beforeLoad.subscribe(r,A=>{const w=A;return w.position&&(w.position.x+=100,w.position.y+=100),E.hooks.beforeLoad.unsubscribe(r),w}),b.addNode(E),E.load({..._,id:x}),E.id=x,m.set(_.id,x);for(const A of Object.values(E.inputs)){const w=ch();m.set(A.id,w),A.id=w}for(const A of Object.values(E.outputs)){const w=ch();m.set(A.id,w),A.id=w}}for(const _ of g){const y=d(h,m.get(_.from),"output"),E=d(h,m.get(_.to),"input");if(!y||!E)continue;const x=b.addConnection(y,E);x&&v.push(x)}return n.value.selectedNodes=h,t.executeCommand(hE),{newNodes:h,newConnections:v}};return t.registerCommand(W1,{canExecute:()=>n.value.selectedNodes.length>0,execute:l}),t.registerHotkey(["Control","c"],W1),t.registerCommand(K1,{canExecute:()=>!o.value,execute:u}),t.registerHotkey(["Control","v"],K1),t.registerCommand(l3t,{canExecute:()=>!0,execute:a}),yr({isEmpty:o})}const d3t="OPEN_SIDEBAR";function u3t(n,e){e.registerCommand(d3t,{execute:t=>{n.value.sidebar.nodeId=t,n.value.sidebar.visible=!0},canExecute:()=>!0})}function p3t(n,e){u3t(n,e)}const h3t={},m3t={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},f3t=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),g3t=c("path",{d:"M9 13l-4 -4l4 -4m-4 4h11a4 4 0 0 1 0 8h-1"},null,-1),_3t=[f3t,g3t];function b3t(n,e){return T(),M("svg",m3t,_3t)}const v3t=Nn(h3t,[["render",b3t]]),y3t={},E3t={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},S3t=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),x3t=c("path",{d:"M15 13l4 -4l-4 -4m4 4h-11a4 4 0 0 0 0 8h1"},null,-1),T3t=[S3t,x3t];function w3t(n,e){return T(),M("svg",E3t,T3t)}const C3t=Nn(y3t,[["render",w3t]]),A3t={},R3t={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},M3t=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),N3t=c("line",{x1:"5",y1:"12",x2:"19",y2:"12"},null,-1),k3t=c("line",{x1:"5",y1:"12",x2:"11",y2:"18"},null,-1),I3t=c("line",{x1:"5",y1:"12",x2:"11",y2:"6"},null,-1),O3t=[M3t,N3t,k3t,I3t];function D3t(n,e){return T(),M("svg",R3t,O3t)}const L3t=Nn(A3t,[["render",D3t]]),P3t={},F3t={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},U3t=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),B3t=c("path",{d:"M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2"},null,-1),G3t=c("rect",{x:"9",y:"3",width:"6",height:"4",rx:"2"},null,-1),z3t=[U3t,B3t,G3t];function V3t(n,e){return T(),M("svg",F3t,z3t)}const H3t=Nn(P3t,[["render",V3t]]),q3t={},Y3t={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},$3t=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),W3t=c("rect",{x:"8",y:"8",width:"12",height:"12",rx:"2"},null,-1),K3t=c("path",{d:"M16 8v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2"},null,-1),j3t=[$3t,W3t,K3t];function Q3t(n,e){return T(),M("svg",Y3t,j3t)}const X3t=Nn(q3t,[["render",Q3t]]),Z3t={},J3t={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},eNt=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),tNt=c("path",{d:"M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2"},null,-1),nNt=c("circle",{cx:"12",cy:"14",r:"2"},null,-1),rNt=c("polyline",{points:"14 4 14 8 8 8 8 4"},null,-1),iNt=[eNt,tNt,nNt,rNt];function sNt(n,e){return T(),M("svg",J3t,iNt)}const oNt=Nn(Z3t,[["render",sNt]]),aNt={},lNt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},cNt=yo('',6),dNt=[cNt];function uNt(n,e){return T(),M("svg",lNt,dNt)}const pNt=Nn(aNt,[["render",uNt]]),hNt={},mNt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},fNt=yo('',18),gNt=[fNt];function _Nt(n,e){return T(),M("svg",mNt,gNt)}const bNt=Nn(hNt,[["render",_Nt]]),vNt={},yNt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},ENt=yo('',6),SNt=[ENt];function xNt(n,e){return T(),M("svg",yNt,SNt)}const TNt=Nn(vNt,[["render",xNt]]),wNt=Pn({props:{command:{type:String,required:!0},title:{type:String,required:!0},icon:{type:Object,required:!1,default:void 0}},setup(){const{viewModel:n}=$r();return{viewModel:n}}}),CNt=["disabled","title"];function ANt(n,e,t,r,i,s){return T(),M("button",{class:"baklava-toolbar-entry baklava-toolbar-button",disabled:!n.viewModel.commandHandler.canExecuteCommand(n.command),title:n.title,onClick:e[0]||(e[0]=o=>n.viewModel.commandHandler.executeCommand(n.command))},[n.icon?(T(),Tt(Sh(n.icon),{key:0})):(T(),M(je,{key:1},[pt(X(n.title),1)],64))],8,CNt)}const RNt=Nn(wNt,[["render",ANt]]),MNt=Pn({components:{ToolbarButton:RNt},setup(){const{viewModel:n}=$r();return{isSubgraph:mt(()=>n.value.displayedGraph!==n.value.editor.graph),commands:[{command:W1,title:"Copy",icon:X3t},{command:K1,title:"Paste",icon:H3t},{command:$1,title:"Delete selected nodes",icon:TNt},{command:q1,title:"Undo",icon:v3t},{command:Y1,title:"Redo",icon:C3t},{command:gp,title:"Box Select",icon:bNt},{command:jO,title:"Create Subgraph",icon:pNt}],subgraphCommands:[{command:Ed,title:"Save Subgraph",icon:oNt},{command:QO,title:"Back to Main Graph",icon:L3t}]}}});function NNt(n,e,t,r,i,s){const o=ht("toolbar-button");return T(),M("div",{class:"baklava-toolbar",onContextmenu:e[0]||(e[0]=J(()=>{},["stop","prevent"]))},[(T(!0),M(je,null,at(n.commands,a=>(T(),Tt(o,{key:a.command,command:a.command,title:a.title,icon:a.icon},null,8,["command","title","icon"]))),128)),n.isSubgraph?(T(!0),M(je,{key:0},at(n.subgraphCommands,a=>(T(),Tt(o,{key:a.command,command:a.command,title:a.title,icon:a.icon},null,8,["command","title","icon"]))),128)):Y("",!0)],32)}const kNt=Nn(MNt,[["render",NNt]]),INt={class:"connections-container"},ONt=Pn({__name:"Editor",props:{viewModel:{}},setup(n){const e=n,t=Symbol("EditorToken"),r=yp(e,"viewModel");gMt(r);const i=yt(null);ml("editorEl",i);const s=mt(()=>e.viewModel.displayedGraph.nodes),o=mt(()=>e.viewModel.displayedGraph.nodes.map(L=>FO(yp(L,"position")))),a=mt(()=>e.viewModel.displayedGraph.connections),l=mt(()=>e.viewModel.displayedGraph.selectedNodes),d=_Mt(),u=bMt(),m=vMt(r),f=yMt(i),g=mt(()=>({...d.styles.value})),h=yt(0);e.viewModel.editor.hooks.load.subscribe(t,L=>(h.value++,L));const v=L=>{d.onPointerMove(L),u.onMouseMove(L)},b=L=>{if(L.button===0){if(f.onPointerDown(L))return;L.target===i.value&&(A(),d.onPointerDown(L)),u.onMouseDown()}},_=L=>{d.onPointerUp(L),u.onMouseUp()},y=L=>{L.key==="Tab"&&L.preventDefault(),e.viewModel.commandHandler.handleKeyDown(L)},E=L=>{e.viewModel.commandHandler.handleKeyUp(L)},x=L=>{["Control","Shift"].some(C=>e.viewModel.commandHandler.pressedKeys.includes(C))||A(),e.viewModel.displayedGraph.selectedNodes.push(L)},A=()=>{e.viewModel.displayedGraph.selectedNodes=[]},w=L=>{for(const C of e.viewModel.displayedGraph.selectedNodes){const k=s.value.indexOf(C),H=o.value[k];H.onPointerDown(L),document.addEventListener("pointermove",H.onPointerMove)}document.addEventListener("pointerup",N)},N=()=>{for(const L of e.viewModel.displayedGraph.selectedNodes){const C=s.value.indexOf(L),k=o.value[C];k.onPointerUp(),document.removeEventListener("pointermove",k.onPointerMove)}document.removeEventListener("pointerup",N)};return(L,C)=>(T(),M("div",{ref_key:"el",ref:i,tabindex:"-1",class:qe(["baklava-editor",{"baklava-ignore-mouse":!!Pt(u).temporaryConnection.value||Pt(d).dragging.value,"--temporary-connection":!!Pt(u).temporaryConnection.value,"--start-selection-box":Pt(f).startSelection}]),onPointermove:J(v,["self"]),onPointerdown:b,onPointerup:_,onWheel:C[1]||(C[1]=J((...k)=>Pt(d).onMouseWheel&&Pt(d).onMouseWheel(...k),["self"])),onKeydown:y,onKeyup:E,onContextmenu:C[2]||(C[2]=(...k)=>Pt(m).open&&Pt(m).open(...k))},[On(L.$slots,"background",{},()=>[W(xMt)]),On(L.$slots,"toolbar",{},()=>[L.viewModel.settings.toolbar.enabled?(T(),Tt(kNt,{key:0})):Y("",!0)]),On(L.$slots,"palette",{},()=>[L.viewModel.settings.palette.enabled?(T(),Tt(T4t,{key:0})):Y("",!0)]),(T(),M("svg",INt,[(T(!0),M(je,null,at(a.value,k=>(T(),M("g",{key:k.id+h.value.toString()},[On(L.$slots,"connection",{connection:k},()=>[W(a4t,{connection:k},null,8,["connection"])])]))),128)),On(L.$slots,"temporaryConnection",{temporaryConnection:Pt(u).temporaryConnection.value},()=>[Pt(u).temporaryConnection.value?(T(),Tt(d4t,{key:0,connection:Pt(u).temporaryConnection.value},null,8,["connection"])):Y("",!0)])])),c("div",{class:"node-container",style:on(g.value)},[W(As,{name:"fade"},{default:Ge(()=>[(T(!0),M(je,null,at(s.value,(k,H)=>On(L.$slots,"node",{key:k.id+h.value.toString(),node:k,selected:l.value.includes(k),dragging:o.value[H].dragging.value,onSelect:q=>x(k),onStartDrag:w},()=>[W(e4t,{node:k,selected:l.value.includes(k),dragging:o.value[H].dragging.value,onSelect:q=>x(k),onStartDrag:w},null,8,["node","selected","dragging","onSelect"])])),128))]),_:3})],4),On(L.$slots,"sidebar",{},()=>[L.viewModel.settings.sidebar.enabled?(T(),Tt(f4t,{key:0})):Y("",!0)]),On(L.$slots,"minimap",{},()=>[L.viewModel.settings.enableMinimap?(T(),Tt(g4t,{key:0})):Y("",!0)]),On(L.$slots,"contextMenu",{contextMenu:Pt(m)},()=>[L.viewModel.settings.contextMenu.enabled?(T(),Tt(uE,{key:0,modelValue:Pt(m).show.value,"onUpdate:modelValue":C[0]||(C[0]=k=>Pt(m).show.value=k),items:Pt(m).items.value,x:Pt(m).x.value,y:Pt(m).y.value,onClick:Pt(m).onClick},null,8,["modelValue","items","x","y","onClick"])):Y("",!0)]),Pt(f).isSelecting?(T(),M("div",{key:0,class:"selection-box",style:on(Pt(f).getStyles())},null,4)):Y("",!0)],34))}});function DNt(n){const e=yt([]),t=yt([]);return{pressedKeys:e,handleKeyDown:o=>{e.value.includes(o.key)||e.value.push(o.key),!(document.activeElement&&PO(document.activeElement))&&t.value.forEach(a=>{var l,d;a.keys.every(u=>e.value.includes(u))&&((l=a.options)!=null&&l.preventDefault&&o.preventDefault(),(d=a.options)!=null&&d.stopPropagation&&o.stopPropagation(),n(a.commandName))})},handleKeyUp:o=>{const a=e.value.indexOf(o.key);a>=0&&e.value.splice(a,1)},registerHotkey:(o,a,l)=>{t.value.push({keys:o,commandName:a,options:l})}}}const LNt=()=>{const n=yt(new Map),e=o=>n.value.has(o),t=(o,a)=>{if(n.value.has(o))throw new Error(`Command "${o}" already exists`);n.value.set(o,a)},r=(o,a=!1,...l)=>{if(!n.value.has(o)){if(a)throw new Error(`[CommandHandler] Command ${o} not registered`);return}return n.value.get(o).execute(...l)},i=(o,a=!1,...l)=>{if(!n.value.has(o)){if(a)throw new Error(`[CommandHandler] Command ${o} not registered`);return!1}return n.value.get(o).canExecute(l)},s=DNt(r);return yr({hasCommand:e,registerCommand:t,executeCommand:r,canExecuteCommand:i,...s})},PNt=n=>!(n instanceof Ud);function FNt(n,e){return{switchGraph:r=>{let i;if(PNt(r))i=new Ud(n.value),r.createGraph(i);else{if(r!==n.value.graph)throw new Error("Can only switch using 'Graph' instance when it is the root graph. Otherwise a 'GraphTemplate' must be used.");i=r}e.value&&e.value!==n.value.graph&&e.value.destroy(),i.panning=i.panning??r.panning??{x:0,y:0},i.scaling=i.scaling??r.scaling??1,i.selectedNodes=i.selectedNodes??[],i.sidebar=i.sidebar??{visible:!1,nodeId:"",optionName:""},e.value=i}}}function UNt(n,e){n.position=n.position??{x:0,y:0},n.disablePointerEvents=!1,n.twoColumn=n.twoColumn??!1,n.width=n.width??e.defaultWidth}const BNt=()=>({useStraightConnections:!1,enableMinimap:!1,toolbar:{enabled:!0},palette:{enabled:!0},background:{gridSize:100,gridDivision:5,subGridVisibleThreshold:.6},sidebar:{enabled:!0,width:300,resizable:!0},displayValueOnHover:!1,nodes:{defaultWidth:200,maxWidth:320,minWidth:150,resizable:!1,reverseY:!1},contextMenu:{enabled:!0,additionalItems:[]}});function GNt(n){const e=yt(new cMt),t=Symbol("ViewModelToken"),r=yt(null),i=K5(r),{switchGraph:s}=FNt(e,r),o=mt(()=>i.value&&i.value!==e.value.graph),a=yr(BNt()),l=LNt(),d=i3t(i,l),u=c3t(i,e,l),m={renderNode:new qr(null),renderInterface:new qr(null)};return a3t(i,l,s),p3t(i,l),Zn(e,(f,g)=>{g&&(g.events.registerGraph.unsubscribe(t),g.graphEvents.beforeAddNode.unsubscribe(t),f.nodeHooks.beforeLoad.unsubscribe(t),f.nodeHooks.afterSave.unsubscribe(t),f.graphTemplateHooks.beforeLoad.unsubscribe(t),f.graphTemplateHooks.afterSave.unsubscribe(t),f.graph.hooks.load.unsubscribe(t),f.graph.hooks.save.unsubscribe(t)),f&&(f.nodeHooks.beforeLoad.subscribe(t,(h,v)=>(v.position=h.position??{x:0,y:0},v.width=h.width??a.nodes.defaultWidth,v.twoColumn=h.twoColumn??!1,h)),f.nodeHooks.afterSave.subscribe(t,(h,v)=>(h.position=v.position,h.width=v.width,h.twoColumn=v.twoColumn,h)),f.graphTemplateHooks.beforeLoad.subscribe(t,(h,v)=>(v.panning=h.panning,v.scaling=h.scaling,h)),f.graphTemplateHooks.afterSave.subscribe(t,(h,v)=>(h.panning=v.panning,h.scaling=v.scaling,h)),f.graph.hooks.load.subscribe(t,(h,v)=>(v.panning=h.panning,v.scaling=h.scaling,h)),f.graph.hooks.save.subscribe(t,(h,v)=>(h.panning=v.panning,h.scaling=v.scaling,h)),f.graphEvents.beforeAddNode.subscribe(t,h=>UNt(h,{defaultWidth:a.nodes.defaultWidth})),e.value.registerNodeType(WO,{category:"Subgraphs"}),e.value.registerNodeType(KO,{category:"Subgraphs"}),s(f.graph))},{immediate:!0}),yr({editor:e,displayedGraph:i,isSubgraph:o,settings:a,commandHandler:l,history:d,clipboard:u,hooks:m,switchGraph:s})}const zNt=dc({type:"PersonalityNode",title:"Personality",inputs:{request:()=>new Cn("Request",""),agent_name:()=>new $4t("Personality","",Ti.state.config.personalities).setPort(!1)},outputs:{response:()=>new Cn("Response","")},async calculate({request:n}){console.log(Ti.state.config.personalities);let e="";try{e=(await de.post("/generate",{params:{text:n}})).data}catch(t){console.error(t)}return{display:e,response:e}}}),VNt=dc({type:"RAGNode",title:"RAG",inputs:{request:()=>new Cn("Prompt",""),document_path:()=>new Bd("Document path","").setPort(!1)},outputs:{prompt:()=>new Cn("Prompt with Data","")},async calculate({request:n,document_path:e}){let t="";try{t=(await de.get("/rag",{params:{text:n,doc_path:e}})).data}catch(r){console.error(r)}return{response:t}}}),xM=dc({type:"Task",title:"Task",inputs:{description:()=>new Bd("Task description","").setPort(!1)},outputs:{prompt:()=>new Cn("Prompt")},calculate({description:n}){return{prompt:n}}}),TM=dc({type:"TextDisplayNode",title:"TextDisplay",inputs:{text2display:()=>new Cn("Input","")},outputs:{response:()=>new Q4t("Text","")},async calculate({request:n}){}}),wM=dc({type:"LLMNode",title:"LLM",inputs:{request:()=>new Cn("Request","")},outputs:{response:()=>new Cn("Response","")},async calculate({request:n}){console.log(Ti.state.config.personalities);let e="";try{e=(await de.post("/generate",{params:{text:n}})).data}catch(t){console.error(t)}return{display:e,response:e}}}),HNt=dc({type:"MultichoiceNode",title:"Multichoice",inputs:{question:()=>new Cn("Question",""),outputs:()=>new Bd("choices, one per line","","").setPort(!1)},outputs:{response:()=>new Cn("Response","")}}),qNt=Pn({components:{"baklava-editor":ONt},setup(){const n=GNt(),e=new mMt(n.editor);n.editor.registerNodeType(zNt),n.editor.registerNodeType(xM),n.editor.registerNodeType(VNt),n.editor.registerNodeType(TM),n.editor.registerNodeType(wM),n.editor.registerNodeType(HNt);const t=Symbol();e.events.afterRun.subscribe(t,a=>{e.pause(),dMt(a,n.editor),e.resume()}),e.start();function r(a,l,d){const u=new a;return n.displayedGraph.addNode(u),u.position.x=l,u.position.y=d,u}const i=r(xM,300,140),s=r(wM,550,140),o=r(TM,850,140);return n.displayedGraph.addConnection(i.outputs.prompt,s.inputs.request),n.displayedGraph.addConnection(s.outputs.response,o.inputs.text2display),{baklava:n,saveGraph:()=>{const a=e.export();localStorage.setItem("myGraph",JSON.stringify(a))},loadGraph:()=>{const a=JSON.parse(localStorage.getItem("myGraph"));e.import(a)}}}}),YNt={style:{width:"100vw",height:"100vh"}};function $Nt(n,e,t,r,i,s){const o=ht("baklava-editor");return T(),M("div",YNt,[W(o,{"view-model":n.baklava},null,8,["view-model"]),c("button",{onClick:e[0]||(e[0]=(...a)=>n.saveGraph&&n.saveGraph(...a))},"Save Graph"),c("button",{onClick:e[1]||(e[1]=(...a)=>n.loadGraph&&n.loadGraph(...a))},"Load Graph")])}const WNt=bt(qNt,[["render",$Nt]]),KNt={},jNt={style:{width:"100vw",height:"100vh"}},QNt=["src"];function XNt(n,e,t,r,i,s){return T(),M("div",jNt,[c("iframe",{src:n.$store.state.config.comfyui_base_url,class:"m-0 p-0 w-full h-full"},null,8,QNt)])}const ZNt=bt(KNt,[["render",XNt]]),JNt={},ekt={style:{width:"100vw",height:"100vh"}},tkt=["src"];function nkt(n,e,t,r,i,s){return T(),M("div",ekt,[c("iframe",{src:n.$store.state.config.sd_base_url,class:"m-0 p-0 w-full h-full"},null,8,tkt)])}const rkt=bt(JNt,[["render",nkt]]),ikt={name:"AppCard",props:{app:{type:Object,required:!0},isFavorite:{type:Boolean,default:!1}},methods:{formatDate(n){const e={year:"numeric",month:"short",day:"numeric"};return new Date(n).toLocaleDateString(void 0,e)}}},skt={class:"app-card flex flex-col h-full"},okt={class:"flex-grow"},akt={class:"flex items-center mb-4"},lkt=["src"],ckt={class:"font-bold text-xl text-gray-800"},dkt={class:"text-sm text-gray-600"},ukt={class:"text-sm text-gray-600"},pkt={class:"text-sm text-gray-600"},hkt={class:"text-sm text-gray-600"},mkt={class:"text-sm text-gray-600"},fkt={class:"mb-4"},gkt={class:"text-sm text-gray-600 h-20 overflow-y-auto"},_kt={class:"text-sm text-gray-600 mb-2"},bkt={key:0,class:"mb-4"},vkt={class:"text-xs text-gray-500 italic h-16 overflow-y-auto"},ykt={class:"mt-auto pt-4 border-t"},Ekt={class:"flex justify-between items-center flex-wrap"},Skt=["title"],xkt=["fill"];function Tkt(n,e,t,r,i,s){return T(),M("div",skt,[c("div",okt,[c("div",akt,[c("img",{src:t.app.icon,alt:"App Icon",class:"w-16 h-16 rounded-full border border-gray-300 mr-4"},null,8,lkt),c("div",null,[c("h3",ckt,X(t.app.name),1),c("p",dkt,"Author: "+X(t.app.author),1),c("p",ukt,"Version: "+X(t.app.version),1),c("p",pkt,"Category: "+X(t.app.category),1),c("p",hkt,"Creation date: "+X(s.formatDate(t.app.creation_date)),1),c("p",mkt,"Last update: "+X(s.formatDate(t.app.last_update_date)),1),c("p",{class:qe(["text-sm",t.app.is_public?"text-green-600":"text-orange-600"])},X(t.app.is_public?"Public App":"Local App"),3)])]),c("div",fkt,[e[10]||(e[10]=c("h4",{class:"font-semibold mb-1 text-gray-700"},"Description:",-1)),c("p",gkt,X(t.app.description),1)]),c("p",_kt,"AI Model: "+X(t.app.model_name),1),t.app.disclaimer&&t.app.disclaimer.trim()!==""?(T(),M("div",bkt,[e[11]||(e[11]=c("h4",{class:"font-semibold mb-1 text-gray-700"},"Disclaimer:",-1)),c("p",vkt,X(t.app.disclaimer),1)])):Y("",!0)]),c("div",ykt,[c("div",Ekt,[c("button",{onClick:e[0]||(e[0]=J(o=>n.$emit("toggle-favorite",t.app.name),["stop"])),class:"text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out",title:t.isFavorite?"Remove from favorites":"Add to favorites"},[(T(),M("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:t.isFavorite?"currentColor":"none",viewBox:"0 0 24 24",stroke:"currentColor"},e[12]||(e[12]=[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"},null,-1)]),8,xkt))],8,Skt),t.app.installed?(T(),M("button",{key:0,onClick:e[1]||(e[1]=J(o=>n.$emit("uninstall",t.app.folder_name),["stop"])),class:"text-red-500 hover:text-red-600 transition duration-300 ease-in-out",title:"Uninstall"},e[13]||(e[13]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1)]))):t.app.existsInFolder?(T(),M("button",{key:1,onClick:e[2]||(e[2]=J(o=>n.$emit("delete",t.app.name),["stop"])),class:"text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out",title:"Delete"},e[14]||(e[14]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1)]))):(T(),M("button",{key:2,onClick:e[3]||(e[3]=J(o=>n.$emit("install",t.app.folder_name),["stop"])),class:"text-blue-500 hover:text-blue-600 transition duration-300 ease-in-out",title:"Install"},e[15]||(e[15]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})],-1)]))),t.app.installed?(T(),M("button",{key:3,onClick:e[4]||(e[4]=J(o=>n.$emit("edit",t.app),["stop"])),class:"text-purple-500 hover:text-purple-600 transition duration-300 ease-in-out",title:"Edit"},e[16]||(e[16]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})],-1)]))):Y("",!0),c("button",{onClick:e[5]||(e[5]=J(o=>n.$emit("download",t.app.folder_name),["stop"])),class:"text-green-500 hover:text-green-600 transition duration-300 ease-in-out",title:"Download"},e[17]||(e[17]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})],-1)])),t.app.has_readme?(T(),M("button",{key:4,onClick:e[6]||(e[6]=J(o=>n.$emit("help",t.app),["stop"])),class:"text-gray-500 hover:text-gray-600 transition duration-300 ease-in-out",title:"Help"},e[18]||(e[18]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M12 21a9 9 0 100-18 9 9 0 000 18z"})],-1)]))):Y("",!0),t.app.installed?(T(),M("button",{key:5,onClick:e[7]||(e[7]=J(o=>n.$emit("open",t.app),["stop"])),class:"text-indigo-500 hover:text-indigo-600 transition duration-300 ease-in-out",title:"Open"},e[19]||(e[19]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})],-1)]))):Y("",!0),t.app.has_server&&t.app.installed?(T(),M("button",{key:6,onClick:e[8]||(e[8]=J(o=>n.$emit("start-server",t.app.folder_name),["stop"])),class:"text-teal-500 hover:text-teal-600 transition duration-300 ease-in-out",title:"Start Server"},e[20]||(e[20]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14M12 5l7 7-7 7"})],-1)]))):Y("",!0),t.app.has_update?(T(),M("button",{key:7,onClick:e[9]||(e[9]=J(o=>n.$emit("install",t.app.folder_name),["stop"])),class:"relative text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out animate-pulse",title:"Update Available"},e[21]||(e[21]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1),c("span",{class:"absolute top-0 right-0 inline-flex items-center justify-center px-2 py-1 text-xs font-bold leading-none text-red-100 transform translate-x-1/2 -translate-y-1/2 bg-red-600 rounded-full"},"!",-1)]))):Y("",!0)])])])}const wkt=bt(ikt,[["render",Tkt],["__scopeId","data-v-ae134649"]]),Ckt={components:{AppCard:wkt},data(){return{apps:[],githubApps:[],favorites:[],selectedCategory:"all",selectedApp:null,appCode:"",loading:!1,message:"",successMessage:!0,searchQuery:"",selectedFile:null,isUploading:!1,error:"",sortBy:"update",sortOrder:"desc",showOnlyInstalled:!1,showOnlyUnInstalled:!1}},computed:{currentCategoryName(){return this.selectedCategory==="all"?"All Apps":this.selectedCategory},combinedApps(){this.apps.map(e=>e.name);const n=new Map(this.apps.map(e=>[e.name,{...e,installed:!0,existsInFolder:!0}]));return this.githubApps.forEach(e=>{n.has(e.name)||n.set(e.name,{...e,installed:!1,existsInFolder:!1})}),Array.from(n.values())},categories(){return[...new Set(this.combinedApps.map(n=>n.category))]},filteredApps(){return this.combinedApps.filter(n=>{const e=n.name.toLowerCase().includes(this.searchQuery.toLowerCase())||n.description.toLowerCase().includes(this.searchQuery.toLowerCase())||n.author.toLowerCase().includes(this.searchQuery.toLowerCase()),t=this.selectedCategory==="all"||n.category===this.selectedCategory,r=this.showOnlyInstalled&&n.installed||this.showOnlyUnInstalled&&!n.installed||!this.showOnlyInstalled&&!this.showOnlyUnInstalled;return e&&t&&r})},sortedAndFilteredApps(){return[...this.filteredApps].sort((n,e)=>{let t=0;switch(this.sortBy){case"name":t=n.name.localeCompare(e.name);break;case"author":t=n.author.localeCompare(e.author);break;case"date":t=this.getDateValue(n.creation_date)-this.getDateValue(e.creation_date);break;case"update":t=this.getDateValue(n.last_update_date)-this.getDateValue(e.last_update_date);break}return this.sortOrder==="asc"?t:-t})},favoriteApps(){return this.combinedApps.filter(n=>this.favorites.includes(n.appName))}},methods:{getDateValue(n){if(!n)return 0;const e=new Date(n);return isNaN(e.getTime())?0:e.getTime()},toggleSortOrder(){this.sortOrder=this.sortOrder==="asc"?"desc":"asc"},toggleFavorite(n){console.log("Toggling favorite"),console.log(n);const e=this.favorites.indexOf(n);e===-1?this.favorites.push(n):this.favorites.splice(e,1),this.saveFavoritesToLocalStorage()},saveFavoritesToLocalStorage(){localStorage.setItem("appZooFavorites",JSON.stringify(this.favorites))},loadFavoritesFromLocalStorage(){const n=localStorage.getItem("appZooFavorites");console.log("savedFavorites",n),n&&(this.favorites=JSON.parse(n))},startServer(n){const e={client_id:this.$store.state.client_id,app_name:n};this.$store.state.messageBox.showBlockingMessage(`Loading server. +This may take some time the first time as some libraries need to be installed.`),de.post("/apps/start_server",e).then(t=>{this.$store.state.messageBox.hideMessage(),console.log("Server start initiated:",t.data.message),this.$notify({type:"success",title:"Server Starting",text:t.data.message})}).catch(t=>{var r,i;this.$store.state.messageBox.hideMessage(),console.error("Error starting server:",t),this.$notify({type:"error",title:"Server Start Failed",text:((i=(r=t.response)==null?void 0:r.data)==null?void 0:i.detail)||"An error occurred while starting the server"})})},triggerFileInput(){this.$refs.fileInput.click()},onFileSelected(n){this.selectedFile=n.target.files[0],this.message="",this.error="",this.uploadApp()},async uploadApp(){var e,t;if(!this.selectedFile){this.error="Please select a file to upload.";return}this.isUploading=!0,this.message="",this.error="";const n=new FormData;n.append("file",this.selectedFile),n.append("client_id",this.$store.state.client_id);try{const r=await de.post("/upload_app",n,{headers:{"Content-Type":"multipart/form-data"}});this.message=r.data.message,this.$refs.fileInput.value="",this.selectedFile=null}catch(r){console.error("Error uploading app:",r),this.error=((t=(e=r.response)==null?void 0:e.data)==null?void 0:t.detail)||"Failed to upload the app. Please try again."}finally{this.isUploading=!1}},async fetchApps(){this.loading=!0;try{const n=await de.get("/apps");this.apps=n.data,this.showMessage("Refresh successful!",!0)}catch{this.showMessage("Failed to refresh apps.",!1)}finally{this.loading=!1}},async openAppsFolder(){this.loading=!0;try{console.log("opening apps folder");const n=await de.post("/show_apps_folder",{client_id:this.$store.state.client_id})}catch{this.showMessage("Failed to open apps folder.",!1)}finally{this.loading=!1}},async fetchGithubApps(){this.loading=!0;try{const n=await de.get("/github/apps");this.githubApps=n.data.apps,await this.fetchApps()}catch{this.showMessage("Failed to refresh GitHub apps.",!1)}finally{this.loading=!1}},async handleAppClick(n){if(n.installed){this.selectedApp=n;const e=await de.get(`/apps/${n.folder_name}/README.md`);this.appCode=nn(e.data)}else this.showMessage(`Please install ${n.folder_name} to view its code.`,!1)},backToZoo(){this.selectedApp=null,this.appCode=""},async installApp(n){this.loading=!0,this.$store.state.messageBox.showBlockingMessage(`Installing app ${n}`);try{await de.post(`/install/${n}`,{client_id:this.$store.state.client_id}),this.showMessage("Installation succeeded!",!0)}catch{this.showMessage("Installation failed.",!1)}finally{this.loading=!1,this.fetchApps(),this.fetchGithubApps(),this.$store.state.messageBox.hideMessage()}},async uninstallApp(n){this.loading=!0;try{await de.post(`/uninstall/${n}`,{client_id:this.$store.state.client_id}),this.showMessage("Uninstallation succeeded!",!0)}catch{this.showMessage("Uninstallation failed.",!1)}finally{this.loading=!1,this.fetchApps()}},async deleteApp(n){this.loading=!0;try{await de.post(`/delete/${n}`,{client_id:this.$store.state.client_id}),this.showMessage("Deletion succeeded!",!0)}catch{this.showMessage("Deletion failed.",!1)}finally{this.loading=!1,this.fetchApps()}},async editApp(n){this.loading=!0;try{const e=await de.post("/open_app_in_vscode",{client_id:this.$store.state.client_id,app_name:n.folder_name});this.showMessage(e.data.message,!0)}catch{this.showMessage("Failed to open folder in VSCode.",!1)}finally{this.loading=!1}},async downloadApp(n){this.isLoading=!0,this.error=null;try{const e=await de.post("/download_app",{client_id:this.$store.state.client_id,app_name:n},{responseType:"arraybuffer"}),t=e.headers["content-disposition"],r=t&&t.match(/filename="?(.+)"?/i),i=r?r[1]:"app.zip",s=new Blob([e.data],{type:"application/zip"}),o=window.URL.createObjectURL(s),a=document.createElement("a");a.style.display="none",a.href=o,a.download=i,document.body.appendChild(a),a.click(),window.URL.revokeObjectURL(o),document.body.removeChild(a)}catch(e){console.error("Error downloading app:",e),this.error="Failed to download the app. Please try again."}finally{this.isLoading=!1}},openApp(n){n.installed?window.open(`/apps/${n.folder_name}/index.html?client_id=${this.$store.state.client_id}`,"_blank"):this.showMessage(`Please install ${n.name} before opening.`,!1)},showMessage(n,e){this.message=n,this.successMessage=e,setTimeout(()=>{this.message=""},3e3)}},mounted(){this.fetchGithubApps(),this.loadFavoritesFromLocalStorage()}},Akt={class:"app-zoo background-color w-full p-6 pt-12 min-h-screen overflow-y-auto"},Rkt={class:"panels-color shadow-lg rounded-lg p-4 max-w-4xl mx-auto mb-8"},Mkt={class:"flex flex-wrap items-center justify-between gap-4"},Nkt={class:"flex items-center space-x-4"},kkt=["disabled"],Ikt={key:0},Okt={key:1,class:"error"},Dkt={class:"relative flex-grow max-w-md"},Lkt={class:"flex items-center space-x-4"},Pkt=["value"],Fkt={class:"flex items-center space-x-4"},Ukt={for:"installed-only",class:"font-semibold"},Bkt={for:"installed-only",class:"font-semibold"},Gkt={class:"flex items-center space-x-4"},zkt={key:0,class:"flex justify-center items-center space-x-2 my-8","aria-live":"polite"},Vkt={key:1,class:"pb-20"},Hkt={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mb-8"},qkt={class:"text-2xl font-bold mb-4"},Ykt={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8"},$kt={key:2,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"},Wkt={class:"bg-white rounded-lg p-6 w-11/12 h-5/6 flex flex-col"},Kkt={class:"flex justify-between items-center mb-4"},jkt={class:"text-2xl font-bold"},Qkt=["srcdoc"],Xkt={key:1,class:"text-center text-red-500"};function Zkt(n,e,t,r,i,s){const o=ht("app-card");return T(),M("div",Akt,[c("nav",Rkt,[c("div",Mkt,[c("div",Nkt,[c("button",{onClick:e[0]||(e[0]=(...a)=>s.fetchGithubApps&&s.fetchGithubApps(...a)),class:"btn btn-primary","aria-label":"Refresh apps from GitHub"},e[11]||(e[11]=[c("svg",{class:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1),pt(" Refresh ")])),c("button",{onClick:e[1]||(e[1]=(...a)=>s.openAppsFolder&&s.openAppsFolder(...a)),class:"btn btn-secondary","aria-label":"Open apps folder"},e[12]||(e[12]=[c("svg",{class:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 19a2 2 0 01-2-2V7a2 2 0 012-2h4l2 2h4a2 2 0 012 2v1M5 19h14a2 2 0 002-2v-5a2 2 0 00-2-2H9a2 2 0 00-2 2v5a2 2 0 01-2 2z"})],-1),pt(" Open Folder ")])),c("input",{type:"file",onChange:e[2]||(e[2]=(...a)=>s.onFileSelected&&s.onFileSelected(...a)),accept:".zip",ref:"fileInput",style:{display:"none"}},null,544),c("button",{onClick:e[3]||(e[3]=(...a)=>s.triggerFileInput&&s.triggerFileInput(...a)),disabled:i.isUploading,class:"btn-secondary text-green-500 hover:text-green-600 transition duration-300 ease-in-out",title:"Upload App"},X(i.isUploading?"Uploading...":"Upload App"),9,kkt)]),i.message?(T(),M("p",Ikt,X(i.message),1)):Y("",!0),i.error?(T(),M("p",Okt,X(i.error),1)):Y("",!0),c("div",Dkt,[F(c("input",{"onUpdate:modelValue":e[4]||(e[4]=a=>i.searchQuery=a),placeholder:"Search apps...",class:"w-full border-b-2 border-gray-300 px-4 py-2 pl-10 focus:outline-none focus:border-blue-500 transition duration-300 ease-in-out","aria-label":"Search apps"},null,512),[[_e,i.searchQuery]]),e[13]||(e[13]=c("svg",{class:"w-5 h-5 text-gray-400 absolute left-3 top-1/2 transform -translate-y-1/2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})],-1))]),c("div",Lkt,[e[15]||(e[15]=c("label",{for:"category-select",class:"font-semibold"},"Category:",-1)),F(c("select",{id:"category-select","onUpdate:modelValue":e[5]||(e[5]=a=>i.selectedCategory=a),class:"border-2 border-gray-300 rounded-md px-2 py-1"},[e[14]||(e[14]=c("option",{value:"all"},"All Categories",-1)),(T(!0),M(je,null,at(s.categories,a=>(T(),M("option",{key:a,value:a},X(a),9,Pkt))),128))],512),[[Qt,i.selectedCategory]])]),c("div",Fkt,[c("label",Ukt,[F(c("input",{id:"installed-only",type:"checkbox","onUpdate:modelValue":e[6]||(e[6]=a=>i.showOnlyInstalled=a),class:"mr-2"},null,512),[[tt,i.showOnlyInstalled]]),e[16]||(e[16]=pt(" Show only installed apps "))]),c("label",Bkt,[F(c("input",{id:"uninstalled-only",type:"checkbox","onUpdate:modelValue":e[7]||(e[7]=a=>i.showOnlyUnInstalled=a),class:"mr-2"},null,512),[[tt,i.showOnlyUnInstalled]]),e[17]||(e[17]=pt(" Show only non installed apps "))])]),c("div",Gkt,[e[19]||(e[19]=c("label",{for:"sort-select",class:"font-semibold"},"Sort by:",-1)),F(c("select",{id:"sort-select","onUpdate:modelValue":e[8]||(e[8]=a=>i.sortBy=a),class:"border-2 border-gray-300 rounded-md px-2 py-1"},e[18]||(e[18]=[c("option",{value:"name"},"Name",-1),c("option",{value:"author"},"Author",-1),c("option",{value:"date"},"Creation Date",-1),c("option",{value:"update"},"Last Update",-1)]),512),[[Qt,i.sortBy]]),c("button",{onClick:e[9]||(e[9]=(...a)=>s.toggleSortOrder&&s.toggleSortOrder(...a)),class:"btn btn-secondary"},X(i.sortOrder==="asc"?"↑":"↓"),1)])])]),i.loading?(T(),M("div",zkt,e[20]||(e[20]=[c("div",{class:"animate-spin rounded-full h-10 w-10 border-t-2 border-b-2 border-blue-500"},null,-1),c("span",{class:"text-xl text-gray-700 font-semibold"},"Loading...",-1)]))):(T(),M("div",Vkt,[e[21]||(e[21]=c("h2",{class:"text-2xl font-bold mb-4"},"Favorite Apps",-1)),c("div",Hkt,[(T(!0),M(je,null,at(s.favoriteApps,a=>(T(),Tt(o,{key:a.appName,app:a,onToggleFavorite:s.toggleFavorite,onInstall:s.installApp,onUninstall:s.uninstallApp,onDelete:s.deleteApp,onEdit:s.editApp,onDownload:s.downloadApp,onHelp:s.handleAppClick,onOpen:s.openApp,onStartServer:s.startServer},null,8,["app","onToggleFavorite","onInstall","onUninstall","onDelete","onEdit","onDownload","onHelp","onOpen","onStartServer"]))),128))]),c("h2",qkt,X(s.currentCategoryName)+" ("+X(s.sortedAndFilteredApps.length)+")",1),c("div",Ykt,[(T(!0),M(je,null,at(s.sortedAndFilteredApps,a=>(T(),Tt(o,{key:a.name,app:a,onToggleFavorite:s.toggleFavorite,onInstall:s.installApp,onUninstall:s.uninstallApp,onDelete:s.deleteApp,onEdit:s.editApp,onDownload:s.downloadApp,onHelp:s.handleAppClick,onOpen:s.openApp,onStartServer:s.startServer},null,8,["app","onToggleFavorite","onInstall","onUninstall","onDelete","onEdit","onDownload","onHelp","onOpen","onStartServer"]))),128))])])),i.selectedApp?(T(),M("div",$kt,[c("div",Wkt,[c("div",Kkt,[c("h2",jkt,X(i.selectedApp.name),1),c("button",{onClick:e[10]||(e[10]=(...a)=>s.backToZoo&&s.backToZoo(...a)),class:"bg-gray-300 hover:bg-gray-400 px-4 py-2 rounded-lg transition duration-300 ease-in-out"},"Close")]),i.appCode?(T(),M("iframe",{key:0,srcdoc:i.appCode,class:"flex-grow border-none"},null,8,Qkt)):(T(),M("p",Xkt,"Please install this app to view its code."))])])):Y("",!0),i.message?(T(),M("div",{key:3,class:qe(["fixed bottom-4 right-4 px-6 py-3 rounded-lg shadow-md",{"bg-green-100 text-green-800":i.successMessage,"bg-red-100 text-red-800":!i.successMessage}])},X(i.message),3)):Y("",!0)])}const Jkt=bt(Ckt,[["render",Zkt]]),eIt={components:{PersonalityEntry:EI},data(){return{personalities:[],githubApps:[],favorites:[],selectedCategory:"all",selectedApp:null,appCode:"",loading:!1,message:"",successMessage:!0,searchQuery:"",selectedFile:null,isUploading:!1,error:"",sortBy:"name",sortOrder:"asc"}},computed:{currentCategoryName(){return this.selectedCategory=="all"?"All Personalities":this.selectedCategory},configFile:{get(){return this.$store.state.config},set(n){this.$store.commit("setConfig",n)}},combinedApps(){this.personalities.map(e=>e.name);const n=new Map(this.personalities.map(e=>[e.name,{...e,installed:!0,existsInFolder:!0}]));return this.githubApps.forEach(e=>{n.has(e.name)||n.set(e.name,{...e,installed:!1,existsInFolder:!1})}),Array.from(n.values())},categories(){return[...new Set(this.combinedApps.map(n=>n.category))].sort((n,e)=>n.localeCompare(e))},filteredApps(){return this.combinedApps.filter(n=>{const e=n.name.toLowerCase().includes(this.searchQuery.toLowerCase())||n.author.toLowerCase().includes(this.searchQuery.toLowerCase())||n.description.toLowerCase().includes(this.searchQuery.toLowerCase()),t=this.selectedCategory==="all"||n.category===this.selectedCategory;return e&&t})},sortedAndFilteredPersonalities(){return[...this.filteredApps].sort((n,e)=>{let t=0;switch(this.sortBy){case"name":t=n.name.localeCompare(e.name);break;case"author":t=n.author.localeCompare(e.author);break;case"date":t=this.getDateValue(n.creation_date)-this.getDateValue(e.creation_date);break;case"update":t=this.getDateValue(n.last_update_date)-this.getDateValue(e.last_update_date);break}return this.sortOrder==="asc"?t:-t})},favoriteApps(){return this.combinedApps.filter(n=>this.favorites.includes(n.uid))}},methods:{getDateValue(n){if(!n)return 0;const e=new Date(n);return isNaN(e.getTime())?0:e.getTime()},async onPersonalitySelected(n){if(console.log("on pers",n),this.isLoading&&this.$store.state.toast.showToast("Loading... please wait",4,!1),this.isLoading=!0,console.log("selecting ",n),n){if(n.selected){this.$store.state.toast.showToast("Personality already selected",4,!0),this.isLoading=!1;return}let e=n.language==null?n.full_path:n.full_path+":"+n.language;if(console.log("pth",e),n.isMounted&&this.configFile.personalities.includes(e)){const t=await this.select_personality(n);console.log("pers is mounted",t),t&&t.status&&t.active_personality_id>-1?this.$store.state.toast.showToast(`Selected personality: `+n.name,4,!0):this.$store.state.toast.showToast(`Error on select personality: `+n.name,4,!1),this.isLoading=!1}else console.log("mounting pers"),this.mountPersonality(n);We(()=>{feather.replace()})}},onModelSelected(n){if(this.isLoading){this.$store.state.toast.showToast("Loading... please wait",4,!1);return}n&&(n.isInstalled?this.update_model(n.model.name).then(e=>{console.log("update_model",e),this.configFile.model_name=n.model.name,e.status?(this.$store.state.toast.showToast(`Selected model: `+n.name,4,!0),We(()=>{feather.replace(),this.is_loading_zoo=!1}),this.updateModelsZoo(),this.api_get_req("get_model_status").then(t=>{this.$store.commit("setIsModelOk",t)})):(this.$store.state.toast.showToast(`Couldn't select model: @@ -4254,4 +4254,4 @@ You have the freedom to give, sell, or keep the personas you create for yourself The possibilities are endless, they are now yours to mold and customize as you see fit.`),this.$store.dispatch("refreshPersonalitiesZoo")):this.$store.state.toast.showToast(`Personality couldn't be copied to the custom personalities folder: Verify that the personality is not already copied there.`,4,!1)}).catch(e=>{this.$store.state.toast.showToast(`Personality couldn't be copied to the custom personalities folder: `,4,!1),console.error(e)})},async remountPersonality(n){await this.unmountPersonality(n),await this.mountPersonality(n)},onPersonalityReinstall(n){console.log("on reinstall ",n),this.isLoading=!0,console.log("Personality path:",n.personality.path),de.post("/reinstall_personality",{client_id:this.$store.state.client_id,name:n.personality.path},{headers:this.posts_headers}).then(e=>{if(e)return this.isLoading=!1,console.log("reinstall_personality",e),e.data.status?this.$store.state.toast.showToast("Personality reinstalled successfully!",4,!0):this.$store.state.toast.showToast("Could not reinstall personality",4,!1),e.data;this.isLoading=!1}).catch(e=>(this.isLoading=!1,this.$store.state.toast.showToast(`Could not reinstall personality -`+e.message,4,!1),{status:!1}))},async handleOpenFolder(n){await de.post("/open_personality_folder",{client_id:this.$store.state.client_id,personality_folder:n.personality.folder})},showMessage(n,e){this.message=n,this.successMessage=e,setTimeout(()=>{this.message=""},3e3)},loadPersonalities(){this.loading=!0,setTimeout(()=>{this.personalities=this.$store.state.personalities,this.loading=!1},500)}},mounted(){this.loadFavoritesFromLocalStorage(),this.loading=!0,setTimeout(()=>{this.personalities=this.$store.state.personalities,this.loading=!1},500)}},tIt={class:"app-zoo mb-100 pb-100 pt-12 background-color w-full p-6 overflow-y-auto h-screen scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},nIt={class:"panels-color shadow-lg rounded-lg p-4 max-w-4xl mx-auto mb-8"},rIt={class:"flex flex-wrap items-center justify-between gap-4"},iIt={key:0},sIt={key:1,class:"error"},oIt={class:"relative flex-grow max-w-md"},aIt={class:"flex items-center space-x-4"},lIt=["value"],cIt={class:"flex items-center space-x-4"},dIt={key:0,class:"flex justify-center items-center space-x-2 my-8","aria-live":"polite"},uIt={key:1},pIt={class:"container mx-auto px-4 flex flex-column pb-20"},hIt={key:0},mIt={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8 mb-12"},fIt={class:"container mx-auto px-4 flex flex-column pb-20"},gIt={class:"text-2xl font-bold my-8"},_It={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8 mb-12"},bIt={key:2,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 overflow-y-auto"},vIt={class:"bg-white rounded-lg p-6 w-11/12 h-5/6 flex flex-col"},yIt={class:"flex justify-between items-center mb-4"},EIt={class:"text-2xl font-bold"},SIt=["srcdoc"],xIt={key:1,class:"text-center text-red-500"};function TIt(n,e,t,r,i,s){const o=ht("personality-entry");return T(),M("div",tIt,[c("nav",nIt,[c("div",rIt,[i.message?(T(),M("p",iIt,X(i.message),1)):Y("",!0),i.error?(T(),M("p",sIt,X(i.error),1)):Y("",!0),c("div",oIt,[F(c("input",{"onUpdate:modelValue":e[0]||(e[0]=a=>i.searchQuery=a),placeholder:"Search personalities...",class:"w-full border-b-2 border-gray-300 px-4 py-2 pl-10 focus:outline-none focus:border-blue-500 transition duration-300 ease-in-out","aria-label":"Search personalities"},null,512),[[_e,i.searchQuery]]),e[5]||(e[5]=c("svg",{class:"w-5 h-5 text-gray-400 absolute left-3 top-1/2 transform -translate-y-1/2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})],-1))]),c("div",aIt,[e[7]||(e[7]=c("label",{for:"category-select",class:"font-semibold"},"Category:",-1)),F(c("select",{id:"category-select","onUpdate:modelValue":e[1]||(e[1]=a=>i.selectedCategory=a),class:"border-2 border-gray-300 rounded-md px-2 py-1"},[e[6]||(e[6]=c("option",{value:"all"},"All Categories",-1)),(T(!0),M(je,null,at(s.categories,a=>(T(),M("option",{key:a,value:a},X(a),9,lIt))),128))],512),[[Qt,i.selectedCategory]])]),c("div",cIt,[e[9]||(e[9]=c("label",{for:"sort-select",class:"font-semibold"},"Sort by:",-1)),F(c("select",{id:"sort-select","onUpdate:modelValue":e[2]||(e[2]=a=>i.sortBy=a),class:"border-2 border-gray-300 rounded-md px-2 py-1"},e[8]||(e[8]=[c("option",{value:"name"},"Name",-1),c("option",{value:"author"},"Author",-1),c("option",{value:"date"},"Creation Date",-1),c("option",{value:"update"},"Last Update",-1)]),512),[[Qt,i.sortBy]]),c("button",{onClick:e[3]||(e[3]=(...a)=>s.toggleSortOrder&&s.toggleSortOrder(...a)),class:"btn btn-secondary"},X(i.sortOrder==="asc"?"↑":"↓"),1)])])]),i.loading?(T(),M("div",dIt,e[10]||(e[10]=[c("div",{class:"animate-spin rounded-full h-10 w-10 border-t-2 border-b-2 border-blue-500"},null,-1),c("span",{class:"text-xl text-gray-700 font-semibold"},"Loading...",-1)]))):(T(),M("div",uIt,[c("div",pIt,[s.favoriteApps.length>0&&!i.searchQuery?(T(),M("div",hIt,[e[11]||(e[11]=c("h2",{class:"text-2xl font-bold my-8"},"Favorite Apps",-1)),c("div",mIt,[(T(!0),M(je,null,at(s.favoriteApps,a=>(T(),Tt(o,{ref_for:!0,ref:"personalitiesZoo",key:a.uid,personality:a,select_language:!0,full_path:a.full_path,selected:s.configFile.active_personality_id==s.configFile.personalities.findIndex(l=>l===a.full_path||l===a.full_path+":"+a.language),"on-selected":s.onPersonalitySelected,"on-mount":s.mountPersonality,"on-un-mount":s.unmountPersonality,"on-remount":s.remountPersonality,"on-edit":s.editPersonality,"on-copy-to-custom":s.copyToCustom,"on-reinstall":s.onPersonalityReinstall,"on-settings":n.onSettingsPersonality,"on-copy-personality-name":n.onCopyPersonalityName,"on-copy-to_custom":n.onCopyToCustom,"on-open-folder":s.handleOpenFolder,"on-toggle-favorite":s.toggleFavorite},null,8,["personality","full_path","selected","on-selected","on-mount","on-un-mount","on-remount","on-edit","on-copy-to-custom","on-reinstall","on-settings","on-copy-personality-name","on-copy-to_custom","on-open-folder","on-toggle-favorite"]))),128))])])):Y("",!0)]),c("div",fIt,[c("h2",gIt,X(s.currentCategoryName)+" ("+X(s.sortedAndFilteredApps.length)+")",1),c("div",_It,[(T(!0),M(je,null,at(s.sortedAndFilteredApps,a=>(T(),Tt(o,{ref_for:!0,ref:"personalitiesZoo",key:a.uid,personality:a,select_language:!0,full_path:a.full_path,selected:s.configFile.active_personality_id==s.configFile.personalities.findIndex(l=>l===a.full_path||l===a.full_path+":"+a.language),"on-selected":s.onPersonalitySelected,"on-mount":s.mountPersonality,"on-un-mount":s.unmountPersonality,"on-remount":s.remountPersonality,"on-edit":s.editPersonality,"on-copy-to-custom":s.copyToCustom,"on-reinstall":s.onPersonalityReinstall,"on-settings":n.onSettingsPersonality,"on-copy-personality-name":n.onCopyPersonalityName,"on-copy-to_custom":n.onCopyToCustom,"on-open-folder":s.handleOpenFolder,"toggle-favorite":s.toggleFavorite},null,8,["personality","full_path","selected","on-selected","on-mount","on-un-mount","on-remount","on-edit","on-copy-to-custom","on-reinstall","on-settings","on-copy-personality-name","on-copy-to_custom","on-open-folder","toggle-favorite"]))),128))])])])),i.selectedApp?(T(),M("div",bIt,[c("div",vIt,[c("div",yIt,[c("h2",EIt,X(i.selectedApp.name),1),c("button",{onClick:e[4]||(e[4]=(...a)=>n.backToZoo&&n.backToZoo(...a)),class:"bg-gray-300 hover:bg-gray-400 px-4 py-2 rounded-lg transition duration-300 ease-in-out"},"Close")]),i.appCode?(T(),M("iframe",{key:0,srcdoc:i.appCode,class:"flex-grow border-none"},null,8,SIt)):(T(),M("p",xIt,"Please install this app to view its code."))])])):Y("",!0),i.message?(T(),M("div",{key:3,class:qe(["fixed bottom-4 right-4 px-6 py-3 rounded-lg shadow-md",{"bg-green-100 text-green-800":i.successMessage,"bg-red-100 text-red-800":!i.successMessage}])},X(i.message),3)):Y("",!0),e[12]||(e[12]=c("div",{class:"h-20"},null,-1))])}const wIt=bt(eIt,[["render",TIt],["__scopeId","data-v-fcb6b036"]]),CIt=J7({history:k7("/"),routes:[{path:"/apps_view/",name:"AppsZoo",component:Jkt},{path:"/personalities_view/",name:"PersonalitiesZoo",component:wIt},{path:"/auto_sd_view/",name:"AutoSD",component:rkt},{path:"/comfyui_view/",name:"ComfyUI",component:ZNt},{path:"/playground/",name:"playground",component:iat},{path:"/extensions/",name:"extensions",component:hat},{path:"/help_view/",name:"help_view",component:rlt},{path:"/settings/",name:"settings",component:j_t},{path:"/training/",name:"training",component:l0t},{path:"/quantizing/",name:"quantizing",component:m0t},{path:"/",name:"discussions",component:KEt},{path:"/interactive/",name:"interactive",component:tMt},{path:"/nodes/",name:"nodes",component:WNt}]}),pm=WL(zrt);function AIt(n){const e={};for(const t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}const Ti=y6({state(){return{personalities_ready:!1,is_rt_on:!1,language:"english",languages:[],currentTheme:"",personality_editor:null,showPersonalityEditor:!1,selectedPersonality:null,currentPersonConfig:{ai_name:"",ai_author:"",ai_category:"",ai_language:"",ai_description:"",ai_conditionning:"",ai_disclaimer:"",ai_icon:null},posts_headers:{accept:"application/json","Content-Type":"application/json"},client_id:"",leftPanelCollapsed:!1,rightPanelCollapsed:!0,view_mode:localStorage.getItem("lollms_webui_view_mode")||"compact",yesNoDialog:null,universalForm:null,toast:null,news:null,messageBox:null,api_get_req:null,api_post_req:null,startSpeechRecognition:null,ready:!1,loading_infos:"",loading_progress:0,version:"unknown",settingsChanged:!1,isConnected:!1,isModelOk:!1,isGenerating:!1,config:null,mountedPers:null,mountedPersArr:[],bindingsZoo:[],modelsArr:[],selectedModel:null,personalities:[],diskUsage:null,ramUsage:null,vramUsage:null,modelsZoo:[],installedModels:[],installedBindings:[],currentModel:null,currentBinding:null,databases:[]}},mutations:{updatePersonality(n,e){const t=n.personalities.findIndex(r=>r.full_path===e.full_path);t!==-1?n.personalities[t]=e:console.log("Can't uipdate personality beceause it was Not found:",e.full_path)},setLeftPanelCollapsed(n,e){n.leftPanelCollapsed=e,console.log(`Saving the status of left panel to ${e}`),localStorage.setItem("lollms_webui_left_panel_collapsed",e)},setRightPanelCollapsed(n,e){n.rightPanelCollapsed=e,console.log(`Saving the status of right panel to ${e}`),localStorage.setItem("lollms_webui_right_panel_collapsed",e)},setViewMode(n,e){n.view_mode=e,localStorage.setItem("lollms_webui_view_mode",e)},setpersonalitiesReady(n,e){n.personalities_ready=e},setisRTOn(n,e){n.is_rt_on=e},setLanguages(n,e){n.languages=e},setLanguage(n,e){n.language=e},setIsReady(n,e){n.ready=e},setIsConnected(n,e){n.isConnected=e},setIsModelOk(n,e){n.isModelOk=e},setIsGenerating(n,e){n.isGenerating=e},setConfig(n,e){n.config=e},setPersonalities(n,e){n.personalities=e},setMountedPers(n,e){n.mountedPers=e},setMountedPersArr(n,e){n.mountedPersArr=e},setbindingsZoo(n,e){n.bindingsZoo=e},setModelsArr(n,e){n.modelsArr=e},setselectedModel(n,e){n.selectedModel=e},setDiskUsage(n,e){n.diskUsage=e},setRamUsage(n,e){n.ramUsage=e},setVramUsage(n,e){n.vramUsage=e},setModelsZoo(n,e){n.modelsZoo=e},setCurrentBinding(n,e){n.currentBinding=e},setCurrentModel(n,e){n.currentModel=e},setDatabases(n,e){n.databases=e},setTheme(n){this.currentTheme=n}},getters:{getLeftPanelCollapsed(n){return n.leftPanelCollapsed},getRightPanelCollapsed(n){return n.rightPanelCollapsed},getViewMode(n){return n.view_mode},getpersonalitiesReady(n){return n.personalities_ready},getisRTOn(n){return n.is_rt_on},getLanguages(n){return n.languages},getLanguage(n){return n.language},getIsConnected(n){return n.isConnected},getIsModelOk(n){return n.isModelOk},getIsGenerating(n){return n.isGenerating},getConfig(n){return n.config},getPersonalities(n){return n.personalities},getMountedPersArr(n){return n.mountedPersArr},getMountedPers(n){return n.mountedPers},getbindingsZoo(n){return n.bindingsZoo},getModelsArr(n){return n.modelsArr},getDiskUsage(n){return n.diskUsage},getRamUsage(n){return n.ramUsage},getVramUsage(n){return n.vramUsage},getDatabasesList(n){return n.databases},getModelsZoo(n){return n.modelsZoo},getCyrrentBinding(n){return n.currentBinding},getCurrentModel(n){return n.currentModel}},actions:{async getVersion(){try{let n=await de.get("/get_lollms_webui_version",{});n&&(this.state.version=n.data)}catch{console.error("Coudln't get version")}},async refreshConfig({commit:n}){console.log("Fetching configuration");try{console.log("Fetching configuration with client id: ",this.state.client_id);const e=await XO("get_config",this.state.client_id);e.active_personality_id<0&&(e.active_personality_id=0);let t=e.personalities[e.active_personality_id].split("/");e.personality_category=t[0],e.personality_folder=t[1],console.log("Recovered config"),console.log(e),console.log("Committing config"),console.log(e),console.log(this.state.config),n("setConfig",e)}catch(e){console.log(e.message,"refreshConfig")}},async refreshDatabase({commit:n}){let e=await Pi("list_databases");console.log("databases:",e),n("setDatabases",e)},async fetchisRTOn({commit:n}){const t=(await de.get("/is_rt_on")).data.status;n("setisRTOn",t)},async fetchLanguages({commit:n}){console.log("get_personality_languages_list",this.state.client_id);const e=await de.post("/get_personality_languages_list",{client_id:this.state.client_id});console.log("response",e);const t=e.data;console.log("languages",t),n("setLanguages",t)},async fetchLanguage({commit:n}){console.log("get_personality_language",this.state.client_id);const e=await de.post("/get_personality_language",{client_id:this.state.client_id});console.log("response",e);const t=e.data;console.log("language",t),n("setLanguage",t)},async changeLanguage({commit:n},e){console.log("Changing language to ",e);let t=await de.post("/set_personality_language",{client_id:this.state.client_id,language:e});console.log("get_personality_languages_list",this.state.client_id),t=await de.post("/get_personality_languages_list",{client_id:this.state.client_id}),console.log("response",t);const r=t.data;console.log("languages",r),n("setLanguages",r),t=await de.post("/get_personality_language",{client_id:this.state.client_id}),console.log("response",t);const i=t.data;console.log("language",i),n("setLanguage",i),await this.dispatch("refreshMountedPersonalities"),console.log("Language changed successfully:",i)},async deleteLanguage({commit:n},e){console.log("Deleting ",e);let t=await de.post("/del_personality_language",{client_id:this.state.client_id,language:e});console.log("get_personality_languages_list",this.state.client_id),t=await de.post("/get_personality_languages_list",{client_id:this.state.client_id});const r=t.data;n("setLanguages",r),t=await de.post("/get_personality_language",{client_id:this.state.client_id});const i=t.data;n("setLanguage",i)},async refreshPersonalitiesZoo({commit:n}){let e=[];const t=await Pi("get_all_personalities"),r=Object.keys(t);for(let i=0;i{let d=!1;for(const m of this.state.config.personalities)m.includes(s+"/"+l.folder)&&(d=!0);let u={};return u=l,u.category=s,u.full_path=s+"/"+l.folder,u.isMounted=d,u});e.length==0?e=a:e=e.concat(a)}e.sort((i,s)=>i.name.localeCompare(s.name)),n("setPersonalities",e),console.log("Done loading personalities")},refreshMountedPersonalities({commit:n}){this.state.config.active_personality_id<0&&(this.state.config.active_personality_id=0);let e=[];const t=[];for(let i=0;ia.full_path==s);if(o>=0){let a=AIt(this.state.personalities[o]);a?e.push(a):e.push(this.state.personalities[this.state.personalities.findIndex(l=>l.full_path=="generic/lollms")])}else t.push(i),console.log("Couldn't load personality : ",s)}for(let i=t.length-1;i>=0;i--)this.state.config.personalities.splice(t[i],1),this.state.config.active_personality_id>t[i]&&(this.state.config.active_personality_id-=1);n("setMountedPersArr",e);const r=this.state.personalities[this.state.personalities.findIndex(i=>i.full_path==this.state.config.personalities[this.state.config.active_personality_id])];console.log("Setting current mounted personality: ",r),this.state.mountedPers=r},async refreshBindings({commit:n}){let e=await Pi("list_bindings");console.log("Loaded bindings zoo :",e),this.state.installedBindings=e.filter(r=>r.installed),console.log("Loaded bindings zoo ",this.state.installedBindings),n("setbindingsZoo",e);const t=e.findIndex(r=>r.name==this.state.config.binding_name);t!=-1&&n("setCurrentBinding",e[t])},async refreshModelsZoo({commit:n}){const t=(await de.get("/get_available_models")).data.filter(r=>r.variants&&r.variants.length>0);n("setModelsZoo",t)},async refreshModelStatus({commit:n}){let e=await Pi("get_model_status");n("setIsModelOk",e.status)},async refreshModels({commit:n}){let e=await Pi("list_models"),t=await Pi("get_active_model");t!=null&&n("setselectedModel",t.model),n("setModelsArr",e),this.state.modelsZoo.map(i=>{i.isInstalled=e.includes(i.name)}),this.state.installedModels=this.state.modelsZoo.filter(i=>i.isInstalled);const r=this.state.modelsZoo.findIndex(i=>i.name==this.state.config.model_name);r!=-1&&n("setCurrentModel",this.state.modelsZoo[r])},async refreshDiskUsage({commit:n}){this.state.diskUsage=await Pi("disk_usage")},async refreshRamUsage({commit:n}){this.state.ramUsage=await Pi("ram_usage")},async refreshVramUsage({commit:n}){const e=await Pi("vram_usage"),t=[];if(e.nb_gpus>0){for(let i=0;i{this.message=""},3e3)},loadPersonalities(){this.loading=!0,setTimeout(()=>{this.personalities=this.$store.state.personalities,this.loading=!1},500)}},mounted(){this.loadFavoritesFromLocalStorage(),this.loading=!0,setTimeout(()=>{this.personalities=this.$store.state.personalities,this.loading=!1},500)}},tIt={class:"app-zoo mb-100 pb-100 pt-12 background-color w-full p-6 overflow-y-auto h-screen scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},nIt={class:"panels-color shadow-lg rounded-lg p-4 max-w-4xl mx-auto mb-8"},rIt={class:"flex flex-wrap items-center justify-between gap-4"},iIt={key:0},sIt={key:1,class:"error"},oIt={class:"relative flex-grow max-w-md"},aIt={class:"flex items-center space-x-4"},lIt=["value"],cIt={class:"flex items-center space-x-4"},dIt={key:0,class:"flex justify-center items-center space-x-2 my-8","aria-live":"polite"},uIt={key:1},pIt={class:"container mx-auto px-4 flex flex-column pb-20"},hIt={key:0},mIt={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8 mb-12"},fIt={class:"container mx-auto px-4 flex flex-column pb-20"},gIt={class:"text-2xl font-bold my-8"},_It={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8 mb-12"},bIt={key:2,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 overflow-y-auto"},vIt={class:"bg-white rounded-lg p-6 w-11/12 h-5/6 flex flex-col"},yIt={class:"flex justify-between items-center mb-4"},EIt={class:"text-2xl font-bold"},SIt=["srcdoc"],xIt={key:1,class:"text-center text-red-500"};function TIt(n,e,t,r,i,s){const o=ht("personality-entry");return T(),M("div",tIt,[c("nav",nIt,[c("div",rIt,[i.message?(T(),M("p",iIt,X(i.message),1)):Y("",!0),i.error?(T(),M("p",sIt,X(i.error),1)):Y("",!0),c("div",oIt,[F(c("input",{"onUpdate:modelValue":e[0]||(e[0]=a=>i.searchQuery=a),placeholder:"Search personalities...",class:"w-full border-b-2 border-gray-300 px-4 py-2 pl-10 focus:outline-none focus:border-blue-500 transition duration-300 ease-in-out","aria-label":"Search personalities"},null,512),[[_e,i.searchQuery]]),e[5]||(e[5]=c("svg",{class:"w-5 h-5 text-gray-400 absolute left-3 top-1/2 transform -translate-y-1/2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})],-1))]),c("div",aIt,[e[7]||(e[7]=c("label",{for:"category-select",class:"font-semibold"},"Category:",-1)),F(c("select",{id:"category-select","onUpdate:modelValue":e[1]||(e[1]=a=>i.selectedCategory=a),class:"border-2 border-gray-300 rounded-md px-2 py-1"},[e[6]||(e[6]=c("option",{value:"all"},"All Categories",-1)),(T(!0),M(je,null,at(s.categories,a=>(T(),M("option",{key:a,value:a},X(a),9,lIt))),128))],512),[[Qt,i.selectedCategory]])]),c("div",cIt,[e[9]||(e[9]=c("label",{for:"sort-select",class:"font-semibold"},"Sort by:",-1)),F(c("select",{id:"sort-select","onUpdate:modelValue":e[2]||(e[2]=a=>i.sortBy=a),class:"border-2 border-gray-300 rounded-md px-2 py-1"},e[8]||(e[8]=[c("option",{value:"name"},"Name",-1),c("option",{value:"author"},"Author",-1),c("option",{value:"date"},"Creation Date",-1),c("option",{value:"update"},"Last Update",-1)]),512),[[Qt,i.sortBy]]),c("button",{onClick:e[3]||(e[3]=(...a)=>s.toggleSortOrder&&s.toggleSortOrder(...a)),class:"btn btn-secondary"},X(i.sortOrder==="asc"?"↑":"↓"),1)])])]),i.loading?(T(),M("div",dIt,e[10]||(e[10]=[c("div",{class:"animate-spin rounded-full h-10 w-10 border-t-2 border-b-2 border-blue-500"},null,-1),c("span",{class:"text-xl text-gray-700 font-semibold"},"Loading...",-1)]))):(T(),M("div",uIt,[c("div",pIt,[s.favoriteApps.length>0&&!i.searchQuery?(T(),M("div",hIt,[e[11]||(e[11]=c("h2",{class:"text-2xl font-bold my-8"},"Favorite Apps",-1)),c("div",mIt,[(T(!0),M(je,null,at(s.favoriteApps,a=>(T(),Tt(o,{ref_for:!0,ref:"personalitiesZoo",key:a.uid,personality:a,select_language:!0,full_path:a.full_path,selected:s.configFile.active_personality_id==s.configFile.personalities.findIndex(l=>l===a.full_path||l===a.full_path+":"+a.language),"on-selected":s.onPersonalitySelected,"on-mount":s.mountPersonality,"on-un-mount":s.unmountPersonality,"on-remount":s.remountPersonality,"on-edit":s.editPersonality,"on-copy-to-custom":s.copyToCustom,"on-reinstall":s.onPersonalityReinstall,"on-settings":n.onSettingsPersonality,"on-copy-personality-name":n.onCopyPersonalityName,"on-copy-to_custom":n.onCopyToCustom,"on-open-folder":s.handleOpenFolder,"on-toggle-favorite":s.toggleFavorite},null,8,["personality","full_path","selected","on-selected","on-mount","on-un-mount","on-remount","on-edit","on-copy-to-custom","on-reinstall","on-settings","on-copy-personality-name","on-copy-to_custom","on-open-folder","on-toggle-favorite"]))),128))])])):Y("",!0)]),c("div",fIt,[c("h2",gIt,X(s.currentCategoryName)+" ("+X(s.sortedAndFilteredPersonalities.length)+")",1),c("div",_It,[(T(!0),M(je,null,at(s.sortedAndFilteredPersonalities,a=>(T(),Tt(o,{ref_for:!0,ref:"personalitiesZoo",key:a.uid,personality:a,select_language:!0,full_path:a.full_path,selected:s.configFile.active_personality_id==s.configFile.personalities.findIndex(l=>l===a.full_path||l===a.full_path+":"+a.language),"on-selected":s.onPersonalitySelected,"on-mount":s.mountPersonality,"on-un-mount":s.unmountPersonality,"on-remount":s.remountPersonality,"on-edit":s.editPersonality,"on-copy-to-custom":s.copyToCustom,"on-reinstall":s.onPersonalityReinstall,"on-settings":n.onSettingsPersonality,"on-copy-personality-name":n.onCopyPersonalityName,"on-copy-to_custom":n.onCopyToCustom,"on-open-folder":s.handleOpenFolder,"toggle-favorite":s.toggleFavorite},null,8,["personality","full_path","selected","on-selected","on-mount","on-un-mount","on-remount","on-edit","on-copy-to-custom","on-reinstall","on-settings","on-copy-personality-name","on-copy-to_custom","on-open-folder","toggle-favorite"]))),128))])])])),i.selectedApp?(T(),M("div",bIt,[c("div",vIt,[c("div",yIt,[c("h2",EIt,X(i.selectedApp.name),1),c("button",{onClick:e[4]||(e[4]=(...a)=>n.backToZoo&&n.backToZoo(...a)),class:"bg-gray-300 hover:bg-gray-400 px-4 py-2 rounded-lg transition duration-300 ease-in-out"},"Close")]),i.appCode?(T(),M("iframe",{key:0,srcdoc:i.appCode,class:"flex-grow border-none"},null,8,SIt)):(T(),M("p",xIt,"Please install this app to view its code."))])])):Y("",!0),i.message?(T(),M("div",{key:3,class:qe(["fixed bottom-4 right-4 px-6 py-3 rounded-lg shadow-md",{"bg-green-100 text-green-800":i.successMessage,"bg-red-100 text-red-800":!i.successMessage}])},X(i.message),3)):Y("",!0),e[12]||(e[12]=c("div",{class:"h-20"},null,-1))])}const wIt=bt(eIt,[["render",TIt],["__scopeId","data-v-f8c39e0b"]]),CIt=J7({history:k7("/"),routes:[{path:"/apps_view/",name:"AppsZoo",component:Jkt},{path:"/personalities_view/",name:"PersonalitiesZoo",component:wIt},{path:"/auto_sd_view/",name:"AutoSD",component:rkt},{path:"/comfyui_view/",name:"ComfyUI",component:ZNt},{path:"/playground/",name:"playground",component:iat},{path:"/extensions/",name:"extensions",component:hat},{path:"/help_view/",name:"help_view",component:rlt},{path:"/settings/",name:"settings",component:j_t},{path:"/training/",name:"training",component:l0t},{path:"/quantizing/",name:"quantizing",component:m0t},{path:"/",name:"discussions",component:KEt},{path:"/interactive/",name:"interactive",component:tMt},{path:"/nodes/",name:"nodes",component:WNt}]}),pm=WL(zrt);function AIt(n){const e={};for(const t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}const Ti=y6({state(){return{personalities_ready:!1,is_rt_on:!1,language:"english",languages:[],currentTheme:"",personality_editor:null,showPersonalityEditor:!1,selectedPersonality:null,currentPersonConfig:{ai_name:"",ai_author:"",ai_category:"",ai_language:"",ai_description:"",ai_conditionning:"",ai_disclaimer:"",ai_icon:null},posts_headers:{accept:"application/json","Content-Type":"application/json"},client_id:"",leftPanelCollapsed:!1,rightPanelCollapsed:!0,view_mode:localStorage.getItem("lollms_webui_view_mode")||"compact",yesNoDialog:null,universalForm:null,toast:null,news:null,messageBox:null,api_get_req:null,api_post_req:null,startSpeechRecognition:null,ready:!1,loading_infos:"",loading_progress:0,version:"unknown",settingsChanged:!1,isConnected:!1,isModelOk:!1,isGenerating:!1,config:null,mountedPers:null,mountedPersArr:[],bindingsZoo:[],modelsArr:[],selectedModel:null,personalities:[],diskUsage:null,ramUsage:null,vramUsage:null,modelsZoo:[],installedModels:[],installedBindings:[],currentModel:null,currentBinding:null,databases:[]}},mutations:{updatePersonality(n,e){const t=n.personalities.findIndex(r=>r.full_path===e.full_path);t!==-1?n.personalities[t]=e:console.log("Can't uipdate personality beceause it was Not found:",e.full_path)},setLeftPanelCollapsed(n,e){n.leftPanelCollapsed=e,console.log(`Saving the status of left panel to ${e}`),localStorage.setItem("lollms_webui_left_panel_collapsed",e)},setRightPanelCollapsed(n,e){n.rightPanelCollapsed=e,console.log(`Saving the status of right panel to ${e}`),localStorage.setItem("lollms_webui_right_panel_collapsed",e)},setViewMode(n,e){n.view_mode=e,localStorage.setItem("lollms_webui_view_mode",e)},setpersonalitiesReady(n,e){n.personalities_ready=e},setisRTOn(n,e){n.is_rt_on=e},setLanguages(n,e){n.languages=e},setLanguage(n,e){n.language=e},setIsReady(n,e){n.ready=e},setIsConnected(n,e){n.isConnected=e},setIsModelOk(n,e){n.isModelOk=e},setIsGenerating(n,e){n.isGenerating=e},setConfig(n,e){n.config=e},setPersonalities(n,e){n.personalities=e},setMountedPers(n,e){n.mountedPers=e},setMountedPersArr(n,e){n.mountedPersArr=e},setbindingsZoo(n,e){n.bindingsZoo=e},setModelsArr(n,e){n.modelsArr=e},setselectedModel(n,e){n.selectedModel=e},setDiskUsage(n,e){n.diskUsage=e},setRamUsage(n,e){n.ramUsage=e},setVramUsage(n,e){n.vramUsage=e},setModelsZoo(n,e){n.modelsZoo=e},setCurrentBinding(n,e){n.currentBinding=e},setCurrentModel(n,e){n.currentModel=e},setDatabases(n,e){n.databases=e},setTheme(n){this.currentTheme=n}},getters:{getLeftPanelCollapsed(n){return n.leftPanelCollapsed},getRightPanelCollapsed(n){return n.rightPanelCollapsed},getViewMode(n){return n.view_mode},getpersonalitiesReady(n){return n.personalities_ready},getisRTOn(n){return n.is_rt_on},getLanguages(n){return n.languages},getLanguage(n){return n.language},getIsConnected(n){return n.isConnected},getIsModelOk(n){return n.isModelOk},getIsGenerating(n){return n.isGenerating},getConfig(n){return n.config},getPersonalities(n){return n.personalities},getMountedPersArr(n){return n.mountedPersArr},getMountedPers(n){return n.mountedPers},getbindingsZoo(n){return n.bindingsZoo},getModelsArr(n){return n.modelsArr},getDiskUsage(n){return n.diskUsage},getRamUsage(n){return n.ramUsage},getVramUsage(n){return n.vramUsage},getDatabasesList(n){return n.databases},getModelsZoo(n){return n.modelsZoo},getCyrrentBinding(n){return n.currentBinding},getCurrentModel(n){return n.currentModel}},actions:{async getVersion(){try{let n=await de.get("/get_lollms_webui_version",{});n&&(this.state.version=n.data)}catch{console.error("Coudln't get version")}},async refreshConfig({commit:n}){console.log("Fetching configuration");try{console.log("Fetching configuration with client id: ",this.state.client_id);const e=await XO("get_config",this.state.client_id);e.active_personality_id<0&&(e.active_personality_id=0);let t=e.personalities[e.active_personality_id].split("/");e.personality_category=t[0],e.personality_folder=t[1],console.log("Recovered config"),console.log(e),console.log("Committing config"),console.log(e),console.log(this.state.config),n("setConfig",e)}catch(e){console.log(e.message,"refreshConfig")}},async refreshDatabase({commit:n}){let e=await Pi("list_databases");console.log("databases:",e),n("setDatabases",e)},async fetchisRTOn({commit:n}){const t=(await de.get("/is_rt_on")).data.status;n("setisRTOn",t)},async fetchLanguages({commit:n}){console.log("get_personality_languages_list",this.state.client_id);const e=await de.post("/get_personality_languages_list",{client_id:this.state.client_id});console.log("response",e);const t=e.data;console.log("languages",t),n("setLanguages",t)},async fetchLanguage({commit:n}){console.log("get_personality_language",this.state.client_id);const e=await de.post("/get_personality_language",{client_id:this.state.client_id});console.log("response",e);const t=e.data;console.log("language",t),n("setLanguage",t)},async changeLanguage({commit:n},e){console.log("Changing language to ",e);let t=await de.post("/set_personality_language",{client_id:this.state.client_id,language:e});console.log("get_personality_languages_list",this.state.client_id),t=await de.post("/get_personality_languages_list",{client_id:this.state.client_id}),console.log("response",t);const r=t.data;console.log("languages",r),n("setLanguages",r),t=await de.post("/get_personality_language",{client_id:this.state.client_id}),console.log("response",t);const i=t.data;console.log("language",i),n("setLanguage",i),await this.dispatch("refreshMountedPersonalities"),console.log("Language changed successfully:",i)},async deleteLanguage({commit:n},e){console.log("Deleting ",e);let t=await de.post("/del_personality_language",{client_id:this.state.client_id,language:e});console.log("get_personality_languages_list",this.state.client_id),t=await de.post("/get_personality_languages_list",{client_id:this.state.client_id});const r=t.data;n("setLanguages",r),t=await de.post("/get_personality_language",{client_id:this.state.client_id});const i=t.data;n("setLanguage",i)},async refreshPersonalitiesZoo({commit:n}){let e=[];const t=await Pi("get_all_personalities"),r=Object.keys(t);for(let i=0;i{let d=!1;for(const m of this.state.config.personalities)m.includes(s+"/"+l.folder)&&(d=!0);let u={};return u=l,u.category=s,u.full_path=s+"/"+l.folder,u.isMounted=d,u});e.length==0?e=a:e=e.concat(a)}e.sort((i,s)=>i.name.localeCompare(s.name)),n("setPersonalities",e),console.log("Done loading personalities")},refreshMountedPersonalities({commit:n}){this.state.config.active_personality_id<0&&(this.state.config.active_personality_id=0);let e=[];const t=[];for(let i=0;ia.full_path==s);if(o>=0){let a=AIt(this.state.personalities[o]);a?e.push(a):e.push(this.state.personalities[this.state.personalities.findIndex(l=>l.full_path=="generic/lollms")])}else t.push(i),console.log("Couldn't load personality : ",s)}for(let i=t.length-1;i>=0;i--)this.state.config.personalities.splice(t[i],1),this.state.config.active_personality_id>t[i]&&(this.state.config.active_personality_id-=1);n("setMountedPersArr",e);const r=this.state.personalities[this.state.personalities.findIndex(i=>i.full_path==this.state.config.personalities[this.state.config.active_personality_id])];console.log("Setting current mounted personality: ",r),this.state.mountedPers=r},async refreshBindings({commit:n}){let e=await Pi("list_bindings");console.log("Loaded bindings zoo :",e),this.state.installedBindings=e.filter(r=>r.installed),console.log("Loaded bindings zoo ",this.state.installedBindings),n("setbindingsZoo",e);const t=e.findIndex(r=>r.name==this.state.config.binding_name);t!=-1&&n("setCurrentBinding",e[t])},async refreshModelsZoo({commit:n}){const t=(await de.get("/get_available_models")).data.filter(r=>r.variants&&r.variants.length>0);n("setModelsZoo",t)},async refreshModelStatus({commit:n}){let e=await Pi("get_model_status");n("setIsModelOk",e.status)},async refreshModels({commit:n}){let e=await Pi("list_models"),t=await Pi("get_active_model");t!=null&&n("setselectedModel",t.model),n("setModelsArr",e),this.state.modelsZoo.map(i=>{i.isInstalled=e.includes(i.name)}),this.state.installedModels=this.state.modelsZoo.filter(i=>i.isInstalled);const r=this.state.modelsZoo.findIndex(i=>i.name==this.state.config.model_name);r!=-1&&n("setCurrentModel",this.state.modelsZoo[r])},async refreshDiskUsage({commit:n}){this.state.diskUsage=await Pi("disk_usage")},async refreshRamUsage({commit:n}){this.state.ramUsage=await Pi("ram_usage")},async refreshVramUsage({commit:n}){const e=await Pi("vram_usage"),t=[];if(e.nb_gpus>0){for(let i=0;i - License: see project LICENSE - Touched: 2022 -*/.hljs-meta,.hljs-comment{color:#565f89}.hljs-tag,.hljs-doctag,.hljs-selector-id,.hljs-selector-class,.hljs-regexp,.hljs-template-tag,.hljs-selector-pseudo,.hljs-selector-attr,.hljs-variable.language_,.hljs-deletion{color:#f7768e}.hljs-variable,.hljs-template-variable,.hljs-number,.hljs-literal,.hljs-type,.hljs-params,.hljs-link{color:#ff9e64}.hljs-built_in,.hljs-attribute{color:#e0af68}.hljs-selector-tag{color:#2ac3de}.hljs-keyword,.hljs-title.function_,.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-subst,.hljs-property{color:#7dcfff}.hljs-selector-tag{color:#73daca}.hljs-quote,.hljs-string,.hljs-symbol,.hljs-bullet,.hljs-addition{color:#9ece6a}.hljs-code,.hljs-formula,.hljs-section{color:#7aa2f7}.hljs-name,.hljs-keyword,.hljs-operator,.hljs-char.escape_,.hljs-attr{color:#bb9af7}.hljs-punctuation{color:#c0caf5}.hljs{background:#1a1b26;color:#9aa5ce}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.code-container{display:flex;margin:0}.line-numbers{flex-shrink:0;padding-right:5px;color:#999;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap;margin:0}.code-content{flex-grow:1;margin:0;outline:none}.katex-display{display:inline-block;margin:0}.katex{display:inline-block;white-space:nowrap}.inline-latex{display:inline!important}.progress-bar-container{background-color:#f0f0f0;border-radius:4px;height:8px;overflow:hidden}.progress-bar{background-color:#3498db;height:100%;transition:width .3s ease}.custom-scrollbar[data-v-8a34bb65]{scrollbar-width:thin;scrollbar-color:rgba(156,163,175,.5) transparent}.custom-scrollbar[data-v-8a34bb65]::-webkit-scrollbar{width:6px}.custom-scrollbar[data-v-8a34bb65]::-webkit-scrollbar-track{background:transparent}.custom-scrollbar[data-v-8a34bb65]::-webkit-scrollbar-thumb{background-color:#9ca3af80;border-radius:3px}.custom-scrollbar[data-v-8a34bb65]::-webkit-scrollbar-thumb:hover{background-color:#9ca3afb3}.toastItem-enter-active[data-v-46f379e5],.toastItem-leave-active[data-v-46f379e5]{transition:all .5s ease}.toastItem-enter-from[data-v-46f379e5],.toastItem-leave-to[data-v-46f379e5]{opacity:0;transform:translate(-30px)}.topbar-container[data-v-7584c3bf]{position:fixed;top:0;left:0;right:0;z-index:1000}.topbar[data-v-7584c3bf]{background-color:#ffffff1a;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);transition:transform .3s ease-in-out;display:flex;justify-content:center}.topbar-hidden[data-v-7584c3bf]{transform:translateY(-100%)}.topbar-content[data-v-7584c3bf]{display:flex;justify-content:space-between;align-items:center;max-width:1200px;width:100%}.pin-button[data-v-7584c3bf]{background-color:transparent;border:none;cursor:pointer;padding:5px;display:flex;align-items:center;justify-content:center}.pin-button svg[data-v-7584c3bf]{width:24px;height:24px;transition:transform .3s ease}.pin-button:hover svg[data-v-7584c3bf]{transform:scale(1.2)}.placeholder[data-v-7584c3bf]{height:10px}.toolbar-button[data-v-7584c3bf]{cursor:pointer;border-style:none;background-color:transparent;padding:.5rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.toolbar-button[data-v-7584c3bf]:hover{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.topbar-container[data-v-7584c3bf]{position:relative;width:100%}.hover-zone[data-v-7584c3bf]{opacity:0}.error[data-v-7584c3bf]{color:red;margin-left:1rem}.overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;z-index:1000}.hovered{transform:scale(1.05);transition:transform .2s ease-in-out}.active{transform:scale(1.1);transition:transform .2s ease-in-out}.dropdown-shadow[data-v-6c3ea3a5]{box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}:root.dark .dropdown-shadow[data-v-6c3ea3a5]{box-shadow:0 4px 6px -1px #ffffff1a,0 2px 4px -1px #ffffff0f}select{width:200px}body{background-color:#fafafa;font-family:sans-serif}.container{margin:4px auto;width:800px}.settings{position:fixed;top:0;right:0;width:500px;background-color:#fff;z-index:1000;overflow-y:auto;height:100%}.slider-container{margin-top:20px}.slider-value{display:inline-block;margin-left:10px;color:#6b7280;font-size:14px}.small-button{padding:.5rem .75rem;font-size:.875rem}.active-tab{font-weight:700}.help-view[data-v-8c1798f3]{min-height:100vh}.big-card[data-v-8c1798f3]{margin-left:auto;margin-right:auto;border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding:2rem;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.big-card[data-v-8c1798f3]:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.help-sections-container[data-v-8c1798f3]{max-height:70vh;overflow-y:auto;padding-right:1rem}.help-section[data-v-8c1798f3]{transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.help-content[data-v-8c1798f3]{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.help-content[data-v-8c1798f3]:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.help-sections-container[data-v-8c1798f3]::-webkit-scrollbar{width:12px}.help-sections-container[data-v-8c1798f3]::-webkit-scrollbar-track{background:#f1f1f1;border-radius:10px}.help-sections-container[data-v-8c1798f3]::-webkit-scrollbar-thumb{background:#888;border-radius:10px;border:3px solid #f1f1f1}.help-sections-container[data-v-8c1798f3]::-webkit-scrollbar-thumb:hover{background:#555}.help-sections-container[data-v-8c1798f3]{scrollbar-width:thin;scrollbar-color:#888 #f1f1f1}.menu-container{position:relative;display:inline-block}.menu-button{background-color:#007bff;color:#fff;padding:10px;border:none;cursor:pointer;border-radius:4px}.menu-list{position:absolute;background-color:#fff;color:#000;border:1px solid #ccc;border-radius:4px;box-shadow:0 2px 4px #0003;padding:10px;max-width:500px;z-index:1000}.slide-enter-active,.slide-leave-active{transition:transform .2s}.slide-enter-to,.slide-leave-from{transform:translateY(-10px)}.menu-ul{list-style:none;padding:0;margin:0}.menu-li{cursor:pointer;display:flex;align-items:center;padding:5px}.menu-icon{width:20px;height:20px;margin-right:8px}.menu-command{min-width:200px;text-align:left}.fade-enter-active[data-v-f43216be],.fade-leave-active[data-v-f43216be]{transition:opacity .3s}.fade-enter[data-v-f43216be],.fade-leave-to[data-v-f43216be]{opacity:0}.heartbeat-text[data-v-f29485cf]{font-size:24px;animation:pulsate-f29485cf 1.5s infinite}@keyframes pulsate-f29485cf{0%{transform:scale(1);opacity:1}50%{transform:scale(1.1);opacity:.7}to{transform:scale(1);opacity:1}}.list-move[data-v-f29485cf],.list-enter-active[data-v-f29485cf],.list-leave-active[data-v-f29485cf]{transition:all .5s ease}.list-enter-from[data-v-f29485cf]{transform:translatey(-30px)}.list-leave-to[data-v-f29485cf]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-f29485cf]{position:absolute}.bounce-enter-active[data-v-f29485cf]{animation:bounce-in-f29485cf .5s}.bounce-leave-active[data-v-f29485cf]{animation:bounce-in-f29485cf .5s reverse}@keyframes bounce-in-f29485cf{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.bg-primary-light[data-v-f29485cf]{background-color:#0ff}.hover[data-v-f29485cf]:bg-primary-light:hover{background-color:#7fffd4}.font-bold[data-v-f29485cf]{font-weight:700}.control-buttons[data-v-5bb76742]{position:absolute;top:0;right:0;height:100%;display:flex;align-items:center;transform:translate(100%);transition:transform .3s}.group:hover .control-buttons[data-v-5bb76742]{transform:translate(0)}.control-buttons-inner[data-v-5bb76742]{display:flex;gap:10px;align-items:center;background-color:#fff;padding:8px;border-radius:0 0 0 8px;box-shadow:0 2px 8px #0000001a}.json-tree-view[data-v-40406ec6]{margin-left:16px}.json-item[data-v-40406ec6]{margin-bottom:4px}.json-key[data-v-40406ec6]{cursor:pointer;display:flex;align-items:center}.toggle-icon[data-v-40406ec6]{margin-right:4px;width:12px}.key[data-v-40406ec6]{font-weight:700;margin-right:4px}.value[data-v-40406ec6]{margin-left:4px}.string[data-v-40406ec6]{color:#0b7285}.number[data-v-40406ec6]{color:#d9480f}.boolean[data-v-40406ec6]{color:#5c940d}.null[data-v-40406ec6]{color:#868e96}.json-nested[data-v-40406ec6]{margin-left:16px;border-left:1px dashed #ccc;padding-left:8px}.json-viewer[data-v-83fc9727]{font-family:Monaco,Menlo,Ubuntu Mono,Consolas,source-code-pro,monospace;font-size:14px;line-height:1.5;color:#333}.collapsible-section[data-v-83fc9727]{cursor:pointer;padding:8px;background-color:#f0f0f0;border-radius:4px;display:flex;align-items:center;transition:background-color .2s}.collapsible-section[data-v-83fc9727]:hover{background-color:#e0e0e0}.toggle-icon[data-v-83fc9727]{margin-right:8px;transition:transform .2s}.json-content[data-v-83fc9727]{margin-top:8px;padding-left:16px}.step-container[data-v-78f415f6]{margin-bottom:1rem}.step-wrapper[data-v-78f415f6]{display:flex;align-items:flex-start;border-radius:.5rem;padding:1rem;--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.step-icon[data-v-78f415f6]{margin-right:1rem;display:flex;height:1.5rem;width:1.5rem;flex-shrink:0;align-items:center;justify-content:center}.feather-icon[data-v-78f415f6]{height:1.5rem;width:1.5rem;stroke:currentColor;stroke-width:2}.spinner[data-v-78f415f6]{height:1.5rem;width:1.5rem}@keyframes spin-78f415f6{to{transform:rotate(360deg)}}.spinner[data-v-78f415f6]{animation:spin-78f415f6 1s linear infinite;border-radius:9999px;border-width:2px;border-top-width:2px;border-color:rgb(75 85 99 / var(--tw-border-opacity));--tw-border-opacity: 1;border-top-color:rgb(28 100 242 / var(--tw-border-opacity))}.step-content[data-v-78f415f6]{flex-grow:1}.step-text[data-v-78f415f6]{margin-bottom:.25rem;font-size:1.125rem;line-height:1.75rem;font-weight:600}.step-description[data-v-78f415f6]{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.step-description[data-v-78f415f6]:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.expand-button{margin-left:10px;margin-right:10px;background:none;border:none;padding:0;cursor:pointer}.htmljs{background:none}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.animate-fadeIn{animation:fadeIn .5s ease-out forwards}details[open] summary~*{animation:slideDown .3s ease-in-out}details summary::marker{display:none}details summary::-webkit-details-marker{display:none}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.bounce-enter-active[data-v-f44002af]{animation:bounce-in-f44002af .5s}.bounce-leave-active[data-v-f44002af]{animation:bounce-in-f44002af .5s reverse}@keyframes bounce-in-f44002af{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.custom-scrollbar[data-v-1a32c141]::-webkit-scrollbar{width:8px}.custom-scrollbar[data-v-1a32c141]::-webkit-scrollbar-track{background-color:#f1f1f1}.custom-scrollbar[data-v-1a32c141]::-webkit-scrollbar-thumb{background-color:#888;border-radius:4px}.custom-scrollbar[data-v-1a32c141]::-webkit-scrollbar-thumb:hover{background-color:#555}.menu[data-v-1a32c141]{display:flex;flex-direction:column;align-items:center}.commands-menu-items-wrapper[data-v-1a32c141]{position:relative;display:flex;flex-direction:column;align-items:center}.commands-menu-items-wrapper>#commands-menu-items[data-v-1a32c141]{top:calc(-100% - 2rem)}.personalities-hover-area[data-v-e3d676fa]{position:relative;padding-top:10px}.custom-scrollbar[data-v-e3d676fa]{scrollbar-width:thin;scrollbar-color:rgba(155,155,155,.5) transparent}.custom-scrollbar[data-v-e3d676fa]::-webkit-scrollbar{width:6px}.custom-scrollbar[data-v-e3d676fa]::-webkit-scrollbar-track{background:transparent}.custom-scrollbar[data-v-e3d676fa]::-webkit-scrollbar-thumb{background-color:#9b9b9b80;border-radius:20px;border:transparent}.chat-bar[data-v-e3d676fa]{transition:all .3s ease}.chat-bar[data-v-e3d676fa]:hover{box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.list-move[data-v-e3d676fa],.list-enter-active[data-v-e3d676fa],.list-leave-active[data-v-e3d676fa]{transition:all .5s ease}.list-enter-from[data-v-e3d676fa]{transform:translatey(-30px)}.list-leave-to[data-v-e3d676fa]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-e3d676fa]{position:absolute}@keyframes rolling-ball-1756add6{0%{transform:translate(-50px) rotate(0)}25%{transform:translate(0) rotate(90deg)}50%{transform:translate(50px) rotate(180deg)}75%{transform:translate(0) rotate(270deg)}to{transform:translate(-50px) rotate(360deg)}}@keyframes bounce-1756add6{0%,to{transform:translateY(0)}50%{transform:translateY(-20px)}}@keyframes fade-in-up-1756add6{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.animate-rolling-ball[data-v-1756add6]{animation:rolling-ball-1756add6 4s infinite ease-in-out,bounce-1756add6 1s infinite ease-in-out}.animate-fade-in-up[data-v-1756add6]{animation:fade-in-up-1756add6 1.5s ease-out}.popup-container[data-v-d504dfc9]{background-color:#fff;color:#333;border-radius:8px;box-shadow:0 4px 6px #0000001a;padding:24px;width:100%;height:100%;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center}.close-button[data-v-d504dfc9]{position:absolute;top:16px;right:16px;background-color:#3490dc;color:#fff;font-weight:700;padding:8px 16px;border-radius:8px;cursor:pointer;transition:background-color .3s ease}.close-button[data-v-d504dfc9]:hover{background-color:#2779bd}.iframe-content[data-v-d504dfc9]{width:100%;height:80%;border:none;margin-bottom:16px}.checkbox-container[data-v-d504dfc9]{display:flex;align-items:center;justify-content:center}.styled-checkbox[data-v-d504dfc9]{width:24px;height:24px;accent-color:#3490dc;cursor:pointer}.checkbox-label[data-v-d504dfc9]{margin-left:8px;font-size:16px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.fade-enter-active[data-v-d504dfc9],.fade-leave-active[data-v-d504dfc9]{transition:opacity .5s}.fade-enter[data-v-d504dfc9],.fade-leave-to[data-v-d504dfc9]{opacity:0}@keyframes giggle-dcd0e4ad{0%,to{transform:translate(0) rotate(0) scale(1)}25%{transform:translate(-5px) rotate(-10deg) scale(1.05)}50%{transform:translate(5px) rotate(10deg) scale(.95)}75%{transform:translate(-5px) rotate(-10deg) scale(1.05)}}.animate-giggle[data-v-dcd0e4ad]{animation:giggle-dcd0e4ad 1.5s infinite ease-in-out}.custom-scrollbar[data-v-dcd0e4ad]{scrollbar-width:thin;scrollbar-color:rgba(155,155,155,.5) transparent}.custom-scrollbar[data-v-dcd0e4ad]::-webkit-scrollbar{width:8px}.custom-scrollbar[data-v-dcd0e4ad]::-webkit-scrollbar-track{background:transparent}.custom-scrollbar[data-v-dcd0e4ad]::-webkit-scrollbar-thumb{background-color:#9b9b9b80;border-radius:20px;border:transparent}@keyframes custom-pulse-dcd0e4ad{0%,to{box-shadow:0 0 #3b82f680}50%{box-shadow:0 0 0 15px #3b82f600}}.animate-pulse[data-v-dcd0e4ad]{animation:custom-pulse-dcd0e4ad 2s infinite}.slide-right-enter-active[data-v-dcd0e4ad],.slide-right-leave-active[data-v-dcd0e4ad]{transition:transform .3s ease}.slide-right-enter[data-v-dcd0e4ad],.slide-right-leave-to[data-v-dcd0e4ad]{transform:translate(-100%)}.slide-left-enter-active[data-v-dcd0e4ad],.slide-left-leave-active[data-v-dcd0e4ad]{transition:transform .3s ease}.slide-left-enter[data-v-dcd0e4ad],.slide-left-leave-to[data-v-dcd0e4ad]{transform:translate(100%)}.fade-and-fly-enter-active[data-v-dcd0e4ad]{animation:fade-and-fly-enter-dcd0e4ad .5s ease}.fade-and-fly-leave-active[data-v-dcd0e4ad]{animation:fade-and-fly-leave-dcd0e4ad .5s ease}@keyframes fade-and-fly-enter-dcd0e4ad{0%{opacity:0;transform:translateY(20px) scale(.8)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes fade-and-fly-leave-dcd0e4ad{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-20px) scale(1.2)}}.list-move[data-v-dcd0e4ad],.list-enter-active[data-v-dcd0e4ad],.list-leave-active[data-v-dcd0e4ad]{transition:all .5s ease}.list-enter-from[data-v-dcd0e4ad]{transform:translatey(-30px)}.list-leave-to[data-v-dcd0e4ad]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-dcd0e4ad]{position:absolute}@keyframes float-dcd0e4ad{0%,to{transform:translateY(0)}50%{transform:translateY(-20px)}}.animate-float[data-v-dcd0e4ad]{animation:float-dcd0e4ad linear infinite}@keyframes star-move-dcd0e4ad{0%{transform:translate(0) rotate(0)}50%{transform:translate(20px,20px) rotate(180deg)}to{transform:translate(0) rotate(360deg)}}.animate-star[data-v-dcd0e4ad]{animation:star-move-dcd0e4ad linear infinite}@keyframes fall-dcd0e4ad{0%{transform:translateY(-20px) rotate(0);opacity:1}to{transform:translateY(calc(100vh + 20px)) rotate(360deg);opacity:0}}.animate-fall[data-v-dcd0e4ad]{animation:fall-dcd0e4ad linear infinite}@keyframes glow-dcd0e4ad{0%,to{text-shadow:0 0 5px rgba(66,153,225,.5),0 0 10px rgba(66,153,225,.5)}50%{text-shadow:0 0 20px rgba(66,153,225,.8),0 0 30px rgba(66,153,225,.8)}}.animate-glow[data-v-dcd0e4ad]{animation:glow-dcd0e4ad 2s ease-in-out infinite}@media (prefers-color-scheme: dark){@keyframes glow-dcd0e4ad{0%,to{text-shadow:0 0 5px rgba(147,197,253,.5),0 0 10px rgba(147,197,253,.5)}50%{text-shadow:0 0 20px rgba(147,197,253,.8),0 0 30px rgba(147,197,253,.8)}0%,to{text-shadow:0 0 5px rgba(147,197,253,.5),0 0 10px rgba(147,197,253,.5)}50%{text-shadow:0 0 20px rgba(147,197,253,.8),0 0 30px rgba(147,197,253,.8)}}}@keyframes roll-dcd0e4ad{0%{transform:translate(-50%) rotate(0)}to{transform:translate(50%) rotate(360deg)}}.animate-roll[data-v-dcd0e4ad]{animation:roll-dcd0e4ad 4s linear infinite}.toolbar[data-v-dcd0e4ad]{position:relative;width:100%}.toolbar-container[data-v-dcd0e4ad]{display:flex;height:2.5rem;align-items:center}.toolbar-button[data-v-dcd0e4ad]{cursor:pointer;border-style:none;background-color:transparent;padding:.5rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.toolbar-button[data-v-dcd0e4ad]:hover{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.menu-container[data-v-dcd0e4ad]{position:relative}.expandable-menu[data-v-dcd0e4ad]{position:absolute;top:100%;left:.625rem;flex-direction:column;border-radius:.25rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity));--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.menu-container:hover .expandable-menu[data-v-dcd0e4ad],.menu-visible[data-v-dcd0e4ad]{display:flex}.menu-item[data-v-dcd0e4ad]{background:none;border:none;cursor:pointer;padding:8px;color:#333;transition:background-color .3s}.menu-item[data-v-dcd0e4ad]:hover{background-color:#f0f0f0}.dot[data-v-dcd0e4ad]{width:10px;height:10px;border-radius:50%}.dot-green[data-v-dcd0e4ad]{background-color:green}.dot-red[data-v-dcd0e4ad]{background-color:red}.animate-pulse[data-v-dcd0e4ad]{animation:pulse-dcd0e4ad 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes pulse-dcd0e4ad{0%,to{opacity:1}50%{opacity:.7}}.logo-container[data-v-dcd0e4ad]{position:relative;width:48px;height:48px}.logo-image[data-v-dcd0e4ad]{width:100%;height:100%;border-radius:50%;-o-object-fit:cover;object-fit:cover}@keyframes bounce-dcd0e4ad{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:translateY(0);animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce[data-v-dcd0e4ad]{animation:bounce-dcd0e4ad 1s infinite}@keyframes roll-and-bounce-dcd0e4ad{0%,to{transform:translate(0) rotate(0)}45%{transform:translate(100px) rotate(360deg)}50%{transform:translate(90px) rotate(390deg)}55%{transform:translate(100px) rotate(360deg)}95%{transform:translate(0) rotate(0)}}@keyframes spin-dcd0e4ad{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.container{display:flex;justify-content:flex-start;align-items:flex-start;flex-wrap:wrap}.floating-frame{margin:15px;float:left;height:auto;border:1px solid #000;border-radius:4px;overflow:hidden;z-index:5000;position:fixed;cursor:move;bottom:0;right:0}.handle{width:100%;height:20px;background:#ccc;cursor:move;text-align:center}.floating-frame img{width:100%;height:auto}.controls{margin-top:10px}#webglContainer{top:0;left:0}.floating-frame2{margin:15px;width:800px;height:auto;border:1px solid #000;border-radius:4px;overflow:hidden;min-height:200px;z-index:5000}:root{--baklava-control-color-primary: #e28b46;--baklava-control-color-error: #d00000;--baklava-control-color-background: #2c3748;--baklava-control-color-foreground: white;--baklava-control-color-hover: #455670;--baklava-control-color-active: #556986;--baklava-control-color-disabled-foreground: #666c75;--baklava-control-border-radius: 3px;--baklava-sidebar-color-background: #1b202c;--baklava-sidebar-color-foreground: white;--baklava-node-color-background: #1b202c;--baklava-node-color-foreground: white;--baklava-node-color-hover: #e28c4677;--baklava-node-color-selected: var(--baklava-control-color-primary);--baklava-node-color-resize-handle: var(--baklava-control-color-background);--baklava-node-title-color-background: #151a24;--baklava-node-title-color-foreground: white;--baklava-group-node-title-color-background: #215636;--baklava-group-node-title-color-foreground: white;--baklava-node-interface-port-tooltip-color-foreground: var(--baklava-control-color-primary);--baklava-node-interface-port-tooltip-color-background: var(--baklava-editor-background-pattern-black);--baklava-node-border-radius: 6px;--baklava-color-connection-default: #737f96;--baklava-color-connection-allowed: #48bc79;--baklava-color-connection-forbidden: #bc4848;--baklava-editor-background-pattern-default: #202b3c;--baklava-editor-background-pattern-line: #263140;--baklava-editor-background-pattern-black: #263140;--baklava-context-menu-background: #1b202c;--baklava-context-menu-shadow: 0 0 8px rgba(0, 0, 0, .65);--baklava-toolbar-background: #1b202caa;--baklava-toolbar-foreground: white;--baklava-node-palette-background: #1b202caa;--baklava-node-palette-foreground: white;--baklava-selectionbox-color-border: var(--baklava-node-color-background);--baklava-selectionbox-color-background: var(--baklava-node-color-hover);--baklava-visual-transition: .1s linear}.baklava-button{background-color:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);transition:background-color var(--baklava-visual-transition);border:none;padding:.45em .35em;border-radius:var(--baklava-control-border-radius);font-size:inherit;cursor:pointer;overflow-x:hidden}.baklava-button:hover{background-color:var(--baklava-control-color-hover)}.baklava-button:active{background-color:var(--baklava-control-color-primary)}.baklava-button.--block{width:100%}.baklava-checkbox{display:flex;padding:.35em 0;cursor:pointer;overflow-x:hidden;align-items:center}.baklava-checkbox .__checkmark-container{display:flex;background-color:var(--baklava-control-color-background);border-radius:var(--baklava-control-border-radius);transition:background-color var(--baklava-visual-transition);width:18px;height:18px}.baklava-checkbox:hover .__checkmark-container{background-color:var(--baklava-control-color-hover)}.baklava-checkbox:active .__checkmark-container{background-color:var(--baklava-control-color-active)}.baklava-checkbox .__checkmark{stroke-dasharray:15;stroke-dashoffset:15;stroke:var(--baklava-control-color-foreground);stroke-width:2px;fill:none;transition:stroke-dashoffset var(--baklava-visual-transition)}.baklava-checkbox.--checked .__checkmark{stroke-dashoffset:0}.baklava-checkbox.--checked .__checkmark-container{background-color:var(--baklava-control-color-primary)}.baklava-checkbox .__label{margin-left:.5rem}.baklava-context-menu{color:var(--baklava-control-color-foreground);position:absolute;display:inline-block;z-index:100;background-color:var(--baklava-context-menu-background);box-shadow:var(--baklava-context-menu-shadow);border-radius:0 0 var(--baklava-control-border-radius) var(--baklava-control-border-radius);min-width:6rem;width:-moz-max-content;width:max-content}.baklava-context-menu>.item{display:flex;align-items:center;padding:.35em 1em;transition:background .05s linear;position:relative}.baklava-context-menu>.item>.__label{flex:1 1 auto}.baklava-context-menu>.item>.__submenu-icon{margin-left:.75rem}.baklava-context-menu>.item.--disabled{color:var(--baklava-control-color-hover)}.baklava-context-menu>.item:not(.--header):not(.--active):not(.--disabled):hover{background:var(--baklava-control-color-primary)}.baklava-context-menu>.item.--active{background:var(--baklava-control-color-primary)}.baklava-context-menu.--nested{left:100%;top:0}.baklava-context-menu.--flipped-x.--nested{left:unset;right:100%}.baklava-context-menu.--flipped-y.--nested{top:unset;bottom:0}.baklava-context-menu>.divider{margin:.35em 0;height:1px;background-color:var(--baklava-control-color-hover)}.baklava-icon{display:block;height:100%}.baklava-icon.--clickable{cursor:pointer;transition:color var(--baklava-visual-transition)}.baklava-icon.--clickable:hover{color:var(--baklava-control-color-primary)}.baklava-input{background-color:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);caret-color:var(--baklava-control-color-primary);border:none;border-radius:var(--baklava-control-border-radius);padding:.45em .75em;width:100%;transition:background-color var(--baklava-visual-transition);font-size:inherit;font:inherit}.baklava-input:hover{background-color:var(--baklava-control-color-hover)}.baklava-input:active{background-color:var(--baklava-control-color-active)}.baklava-input:focus-visible{outline:1px solid var(--baklava-control-color-primary)}.baklava-input[type=number]::-webkit-inner-spin-button,.baklava-input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.baklava-input.--invalid{box-shadow:0 0 2px 2px var(--baklava-control-color-error)}.baklava-num-input{background:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);border-radius:var(--baklava-control-border-radius);width:100%;display:grid;grid-template-columns:20px 1fr 20px}.baklava-num-input>.__button{display:flex;flex:0 0 auto;width:20px;justify-content:center;align-items:center;transition:background var(--baklava-visual-transition);cursor:pointer}.baklava-num-input>.__button:hover{background-color:var(--baklava-control-color-hover)}.baklava-num-input>.__button:active{background-color:var(--baklava-control-color-active)}.baklava-num-input>.__button.--dec{grid-area:1/1/span 1/span 1}.baklava-num-input>.__button.--dec>svg{transform:rotate(90deg)}.baklava-num-input>.__button.--inc{grid-area:1/3/span 1/span 1}.baklava-num-input>.__button.--inc>svg{transform:rotate(-90deg)}.baklava-num-input>.__button path{stroke:var(--baklava-control-color-foreground);fill:var(--baklava-control-color-foreground)}.baklava-num-input>.__content{grid-area:1/2/span 1/span 1;display:inline-flex;cursor:pointer;max-width:100%;min-width:0;align-items:center;transition:background-color var(--baklava-visual-transition)}.baklava-num-input>.__content:hover{background-color:var(--baklava-control-color-hover)}.baklava-num-input>.__content:active{background-color:var(--baklava-control-color-active)}.baklava-num-input>.__content>.__label,.baklava-num-input>.__content>.__value{margin:.35em 0;padding:0 .5em}.baklava-num-input>.__content>.__label{flex:1;min-width:0;overflow:hidden}.baklava-num-input>.__content>.__value{text-align:right}.baklava-num-input>.__content>input{background-color:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);caret-color:var(--baklava-control-color-primary);padding:.35em;width:100%}.baklava-select{width:100%;position:relative;color:var(--baklava-control-color-foreground)}.baklava-select.--open>.__selected{border-bottom-left-radius:0;border-bottom-right-radius:0}.baklava-select.--open>.__selected>.__icon{transform:rotate(180deg)}.baklava-select>.__selected{background-color:var(--baklava-control-color-background);padding:.35em .75em;border-radius:var(--baklava-control-border-radius);transition:background var(--baklava-visual-transition);min-height:1.7em;display:flex;align-items:center;cursor:pointer}.baklava-select>.__selected:hover{background:var(--baklava-control-color-hover)}.baklava-select>.__selected:active{background:var(--baklava-control-color-active)}.baklava-select>.__selected>.__text{flex:1 0 auto;flex-basis:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.baklava-select>.__selected>.__icon{flex:0 0 auto;display:flex;justify-content:center;align-items:center;transition:transform .25s ease;width:18px;height:18px}.baklava-select>.__selected>.__icon path{stroke:var(--baklava-control-color-foreground);fill:var(--baklava-control-color-foreground)}.baklava-select>.__dropdown{position:absolute;top:100%;left:0;right:0;z-index:10;background-color:var(--baklava-context-menu-background);filter:drop-shadow(0 0 4px black);border-radius:0 0 var(--baklava-control-border-radius) var(--baklava-control-border-radius);max-height:15em;overflow-y:scroll}.baklava-select>.__dropdown::-webkit-scrollbar{width:0px;background:transparent}.baklava-select>.__dropdown>.item{padding:.35em .35em .35em 1em;transition:background .05s linear}.baklava-select>.__dropdown>.item:not(.--header):not(.--active){cursor:pointer}.baklava-select>.__dropdown>.item:not(.--header):not(.--active):hover{background:var(--baklava-control-color-hover)}.baklava-select>.__dropdown>.item.--active{background:var(--baklava-control-color-primary)}.baklava-select>.__dropdown>.item.--header{color:var(--baklava-control-color-disabled-foreground);border-bottom:1px solid var(--baklava-control-color-disabled-foreground);padding:.5em .35em .5em 1em}.baklava-slider{background:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);border-radius:var(--baklava-control-border-radius);position:relative;cursor:pointer}.baklava-slider>.__content{display:flex;position:relative}.baklava-slider>.__content>.__label,.baklava-slider>.__content>.__value{flex:1 1 auto;margin:.35em 0;padding:0 .5em;text-overflow:ellipsis}.baklava-slider>.__content>.__value{text-align:right}.baklava-slider>.__content>input{background-color:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);caret-color:var(--baklava-control-color-primary);padding:.35em;width:100%}.baklava-slider>.__slider{position:absolute;top:0;bottom:0;left:0;background-color:var(--baklava-control-color-primary);border-radius:var(--baklava-control-border-radius)}.baklava-connection{stroke:var(--baklava-color-connection-default);stroke-width:2px;fill:none}.baklava-connection.--temporary{stroke-width:4px;stroke-dasharray:5 5;stroke-dashoffset:0;animation:dash 1s linear infinite;transform:translateY(-1px)}@keyframes dash{to{stroke-dashoffset:20}}.baklava-connection.--allowed{stroke:var(--baklava-color-connection-allowed)}.baklava-connection.--forbidden{stroke:var(--baklava-color-connection-forbidden)}.baklava-minimap{position:absolute;height:15%;width:15%;min-width:150px;max-width:90%;top:20px;right:20px;z-index:900}.baklava-editor{width:100%;height:100%;position:relative;overflow:hidden;outline:none!important;font-family:Lato,Segoe UI,Tahoma,Geneva,Verdana,sans-serif;font-size:15px;touch-action:none}.baklava-editor .background{background-color:var(--baklava-editor-background-pattern-default);background-image:linear-gradient(var(--baklava-editor-background-pattern-black) 2px,transparent 2px),linear-gradient(90deg,var(--baklava-editor-background-pattern-black) 2px,transparent 2px),linear-gradient(var(--baklava-editor-background-pattern-line) 1px,transparent 1px),linear-gradient(90deg,var(--baklava-editor-background-pattern-line) 1px,transparent 1px);background-repeat:repeat;width:100%;height:100%;pointer-events:none!important}.baklava-editor .selection-box{position:absolute;border:1px solid var(--baklava-selectionbox-color-border);background-color:var(--baklava-selectionbox-color-background);pointer-events:none;opacity:.5}.baklava-editor.--start-selection-box{cursor:crosshair}.baklava-editor *:not(input):not(textarea){user-select:none;-moz-user-select:none;-webkit-user-select:none;touch-action:none}.baklava-editor .input-user-select{user-select:auto;-moz-user-select:auto;-webkit-user-select:auto}.baklava-editor *,.baklava-editor *:after,.baklava-editor *:before{box-sizing:border-box}.baklava-editor.--temporary-connection{cursor:crosshair}.baklava-editor .connections-container{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none!important}.baklava-editor .node-container{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.baklava-editor .node-container *{pointer-events:all}.baklava-ignore-mouse *{pointer-events:none!important}.baklava-ignore-mouse .__port{pointer-events:all!important}.baklava-node-interface{padding:.25em 0;position:relative}.baklava-node-interface .__port{position:absolute;width:10px;height:10px;background:#fff;border-radius:50%;top:calc(50% - 5px);cursor:crosshair}.baklava-node-interface .__port.--selected{outline:2px var(--baklava-color-connection-default) solid;outline-offset:4px}.baklava-node-interface.--input{text-align:left;padding-left:.5em}.baklava-node-interface.--input .__port{left:-1.1em}.baklava-node-interface.--output{text-align:right;padding-right:.5em}.baklava-node-interface.--output .__port{right:-1.1em}.baklava-node-interface .__tooltip{position:absolute;left:5px;top:15px;transform:translate(-50%);background:var(--baklava-node-interface-port-tooltip-color-background);color:var(--baklava-node-interface-port-tooltip-color-foreground);padding:.25em .5em;text-align:center;z-index:2}.baklava-node-palette{position:absolute;left:0;top:60px;width:250px;height:calc(100% - 60px);z-index:3;padding:2rem;overflow-y:auto;background:var(--baklava-node-palette-background);color:var(--baklava-node-palette-foreground)}.baklava-node-palette h1{margin-top:2rem}.baklava-node.--palette{position:unset;margin:1rem 0;cursor:grab}.baklava-node.--palette:first-child{margin-top:0}.baklava-node.--palette .__title{padding:.5rem;border-radius:var(--baklava-node-border-radius)}.baklava-dragged-node{position:absolute;width:calc(250px - 4rem);height:40px;z-index:4;pointer-events:none}.baklava-node{background:var(--baklava-node-color-background);color:var(--baklava-node-color-foreground);border:1px solid transparent;border-radius:var(--baklava-node-border-radius);position:absolute;box-shadow:0 0 4px #000c;transition:border-color var(--baklava-visual-transition),box-shadow var(--baklava-visual-transition);width:var(--width)}.baklava-node:hover{border-color:var(--baklava-node-color-hover)}.baklava-node:hover .__resize-handle:after{opacity:1}.baklava-node.--selected{z-index:5;border-color:var(--baklava-node-color-selected)}.baklava-node.--dragging{box-shadow:0 0 12px #000c}.baklava-node.--dragging>.__title{cursor:grabbing}.baklava-node>.__title{display:flex;background:var(--baklava-node-title-color-background);color:var(--baklava-node-title-color-foreground);padding:.4em .75em;border-radius:var(--baklava-node-border-radius) var(--baklava-node-border-radius) 0 0;cursor:grab}.baklava-node>.__title>*:first-child{flex-grow:1}.baklava-node>.__title>.__title-label{pointer-events:none}.baklava-node>.__title>.__menu{position:relative;cursor:initial}.baklava-node[data-node-type^=__baklava_]>.__title{background:var(--baklava-group-node-title-color-background);color:var(--baklava-group-node-title-color-foreground)}.baklava-node>.__content{padding:.75em}.baklava-node>.__content.--reverse-y{display:flex;flex-direction:column-reverse}.baklava-node>.__content>div>div{margin:.5em 0}.baklava-node.--two-column>.__content{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto;grid-template-areas:". ." ". ."}.baklava-node.--two-column>.__content>.__inputs{grid-row:1;grid-column:1}.baklava-node.--two-column>.__content>.__outputs{grid-row:1;grid-column:2}.baklava-node .__resize-handle{position:absolute;right:0;bottom:0;width:1rem;height:1rem;transform:translate(50%);cursor:ew-resize}.baklava-node .__resize-handle:after{content:"";position:absolute;bottom:0;left:-.5rem;width:1rem;height:1rem;opacity:0;border-bottom-right-radius:var(--baklava-node-border-radius);transition:opacity var(--baklava-visual-transition);background:linear-gradient(-45deg,transparent 10%,var(--baklava-node-color-resize-handle) 10%,var(--baklava-node-color-resize-handle) 15%,transparent 15%,transparent 30%,var(--baklava-node-color-resize-handle) 30%,var(--baklava-node-color-resize-handle) 35%,transparent 35%,transparent 50%,var(--baklava-node-color-resize-handle) 50%,var(--baklava-node-color-resize-handle) 55%,transparent 55%)}.baklava-sidebar{position:absolute;height:100%;width:25%;min-width:300px;max-width:90%;top:0;right:0;z-index:1000;background-color:var(--baklava-sidebar-color-background);color:var(--baklava-sidebar-color-foreground);box-shadow:none;overflow-x:hidden;padding:1em;transform:translate(100%);transition:transform .5s;display:flex;flex-direction:column}.baklava-sidebar.--open{transform:translate(0);box-shadow:0 0 15px #000}.baklava-sidebar .__resizer{position:absolute;left:0;top:0;height:100%;width:4px;cursor:col-resize}.baklava-sidebar .__header{display:flex;align-items:center}.baklava-sidebar .__header .__node-name{margin-left:.5rem}.baklava-sidebar .__close{font-size:2em;border:none;background:none;color:inherit;cursor:pointer}.baklava-sidebar .__interface{margin:.5em 0}.baklava-toolbar{position:absolute;left:0;top:0;width:100%;height:60px;z-index:3;padding:.5rem 2rem;background:var(--baklava-toolbar-background);color:var(--baklava-toolbar-foreground);display:flex;align-items:center}.baklava-toolbar-entry{margin-left:.5rem;margin-right:.5rem}.baklava-toolbar-button{color:var(--baklava-toolbar-foreground);background:none;border:none;transition:color var(--baklava-visual-transition)}.baklava-toolbar-button:not([disabled]){cursor:pointer}.baklava-toolbar-button:hover:not([disabled]){color:var(--baklava-control-color-primary)}.baklava-toolbar-button[disabled]{color:var(--baklava-control-color-disabled-foreground)}.slide-fade-enter-active,.slide-fade-leave-active{transition:all .1s ease-out}.slide-fade-enter-from,.slide-fade-leave-to{transform:translateY(5px);opacity:0}.fade-enter-active,.fade-leave-active{transition:opacity .1s ease-out!important}.fade-enter-from,.fade-leave-to{opacity:0}.loading-indicator[data-v-fcb6b036]{display:flex;justify-content:center;align-items:center;height:100px;font-size:1.2em;color:#666}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(63 131 248 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(63 131 248 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:PTSans,Roboto,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.tooltip-arrow,.tooltip-arrow:before{position:absolute;width:8px;height:8px;background:inherit}.tooltip-arrow{visibility:hidden}.tooltip-arrow:before{content:"";visibility:visible;transform:rotate(45deg)}[data-tooltip-style^=light]+.tooltip>.tooltip-arrow:before{border-style:solid;border-color:#e5e7eb}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=top]>.tooltip-arrow:before{border-bottom-width:1px;border-right-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=right]>.tooltip-arrow:before{border-bottom-width:1px;border-left-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=bottom]>.tooltip-arrow:before{border-top-width:1px;border-left-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=left]>.tooltip-arrow:before{border-top-width:1px;border-right-width:1px}.tooltip[data-popper-placement^=top]>.tooltip-arrow{bottom:-4px}.tooltip[data-popper-placement^=bottom]>.tooltip-arrow{top:-4px}.tooltip[data-popper-placement^=left]>.tooltip-arrow{right:-4px}.tooltip[data-popper-placement^=right]>.tooltip-arrow{left:-4px}.tooltip.invisible>.tooltip-arrow:before{visibility:hidden}[data-popper-arrow],[data-popper-arrow]:before{position:absolute;width:8px;height:8px;background:inherit}[data-popper-arrow]{visibility:hidden}[data-popper-arrow]:before{content:"";visibility:visible;transform:rotate(45deg)}[data-popper-arrow]:after{content:"";visibility:visible;transform:rotate(45deg);position:absolute;width:9px;height:9px;background:inherit}[role=tooltip]>[data-popper-arrow]:before{border-style:solid;border-color:#e5e7eb}.dark [role=tooltip]>[data-popper-arrow]:before{border-style:solid;border-color:#4b5563}[role=tooltip]>[data-popper-arrow]:after{border-style:solid;border-color:#e5e7eb}.dark [role=tooltip]>[data-popper-arrow]:after{border-style:solid;border-color:#4b5563}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]:before{border-bottom-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]:after{border-bottom-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]:before{border-bottom-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]:after{border-bottom-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]:before{border-top-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]:after{border-top-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]:before{border-top-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]:after{border-top-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]{bottom:-5px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]{top:-5px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]{right:-5px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]{left:-5px}[role=tooltip].invisible>[data-popper-arrow]:before{visibility:hidden}[role=tooltip].invisible>[data-popper-arrow]:after{visibility:hidden}[type=text],[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #1C64F2;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#1c64f2}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}select:not([size]){background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 10 6'%3e %3cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 1 4 4 4-4'/%3e %3c/svg%3e");background-position:right .75rem center;background-repeat:no-repeat;background-size:.75em .75em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple]{background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#1c64f2;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #1C64F2;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked,.dark [type=checkbox]:checked,.dark [type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:.55em .55em;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 12'%3e %3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M1 5.917 5.724 10.5 15 1.5'/%3e %3c/svg%3e");background-repeat:no-repeat;background-size:.55em .55em;-webkit-print-color-adjust:exact;print-color-adjust:exact}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");background-size:1em 1em}.dark [type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");background-size:1em 1em}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 12'%3e %3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M1 5.917 5.724 10.5 15 1.5'/%3e %3c/svg%3e");background-color:currentColor;border-color:transparent;background-position:center;background-repeat:no-repeat;background-size:.55em .55em;-webkit-print-color-adjust:exact;print-color-adjust:exact}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px auto inherit}input[type=file]::file-selector-button{color:#fff;background:#1f2937;border:0;font-weight:500;font-size:.875rem;cursor:pointer;padding:.625rem 1rem .625rem 2rem;margin-inline-start:-1rem;margin-inline-end:1rem}input[type=file]::file-selector-button:hover{background:#374151}.dark input[type=file]::file-selector-button{color:#fff;background:#4b5563}.dark input[type=file]::file-selector-button:hover{background:#6b7280}input[type=range]::-webkit-slider-thumb{height:1.25rem;width:1.25rem;background:#1c64f2;border-radius:9999px;border:0;appearance:none;-moz-appearance:none;-webkit-appearance:none;cursor:pointer}input[type=range]:disabled::-webkit-slider-thumb{background:#9ca3af}.dark input[type=range]:disabled::-webkit-slider-thumb{background:#6b7280}input[type=range]:focus::-webkit-slider-thumb{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1px;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity))}input[type=range]::-moz-range-thumb{height:1.25rem;width:1.25rem;background:#1c64f2;border-radius:9999px;border:0;appearance:none;-moz-appearance:none;-webkit-appearance:none;cursor:pointer}input[type=range]:disabled::-moz-range-thumb{background:#9ca3af}.dark input[type=range]:disabled::-moz-range-thumb{background:#6b7280}input[type=range]::-moz-range-progress{background:#3f83f8}input[type=range]::-ms-fill-lower{background:#3f83f8}.toggle-bg:after{content:"";position:absolute;top:.125rem;left:.125rem;background:#fff;border-color:#d1d5db;border-width:1px;border-radius:9999px;height:1.25rem;width:1.25rem;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.15s;box-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color)}input:checked+.toggle-bg:after{transform:translate(100%);border-color:#fff}input:checked+.toggle-bg{background:#1c64f2;border-color:#1c64f2}*{scrollbar-color:initial;scrollbar-width:initial}body{min-height:100vh;background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #e0eaff var(--tw-gradient-from-position);--tw-gradient-to: rgb(224 234 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #f0e6ff var(--tw-gradient-to-position)}body:is(.dark *){background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #0f2647 var(--tw-gradient-from-position);--tw-gradient-to: rgb(15 38 71 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #1e1b4b var(--tw-gradient-to-position)}html{scroll-behavior:smooth}body{font-family:Roboto,sans-serif}.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-y-0{top:0;bottom:0}.-bottom-0\.5{bottom:-.125rem}.-bottom-1{bottom:-.25rem}.-bottom-1\.5{bottom:-.375rem}.-bottom-2{bottom:-.5rem}.-bottom-4{bottom:-1rem}.-left-1\.5{left:-.375rem}.-right-0\.5{right:-.125rem}.-right-1{right:-.25rem}.-right-1\.5{right:-.375rem}.-top-1\.5{top:-.375rem}.-top-2{top:-.5rem}.bottom-0{bottom:0}.bottom-16{bottom:4rem}.bottom-2{bottom:.5rem}.bottom-2\.5{bottom:.625rem}.bottom-20{bottom:5rem}.bottom-4{bottom:1rem}.bottom-5{bottom:1.25rem}.bottom-6{bottom:1.5rem}.bottom-\[60px\]{bottom:60px}.bottom-full{bottom:100%}.left-0{left:0}.left-1\/2{left:50%}.left-2{left:.5rem}.left-2\.5{left:.625rem}.left-20{left:5rem}.left-3{left:.75rem}.right-0{right:0}.right-2{right:.5rem}.right-2\.5{right:.625rem}.right-20{right:5rem}.right-3{right:.75rem}.right-4{right:1rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-2{top:.5rem}.top-20{top:5rem}.top-3{top:.75rem}.top-full{top:100%}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.-m-1{margin:-.25rem}.-m-2{margin:-.5rem}.-m-4{margin:-1rem}.m-0{margin:0}.m-1{margin:.25rem}.m-2{margin:.5rem}.m-4{margin:1rem}.-mx-1\.5{margin-left:-.375rem;margin-right:-.375rem}.-mx-5{margin-left:-1.25rem;margin-right:-1.25rem}.-my-1\.5{margin-top:-.375rem;margin-bottom:-.375rem}.mx-0{margin-left:0;margin-right:0}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-1\.5{margin-left:.375rem;margin-right:.375rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-8{margin-top:2rem;margin-bottom:2rem}.-mb-px{margin-bottom:-1px}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-3\.5{margin-bottom:.875rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-0{margin-left:0}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-5{margin-left:1.25rem}.ml-auto{margin-left:auto}.mr-0{margin-right:0}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-12{margin-top:3rem}.mt-14{margin-top:3.5rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-0{height:0px}.h-0\.5{height:.125rem}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-20{height:5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-32{height:8rem}.h-36{height:9rem}.h-4{height:1rem}.h-4\/5{height:80%}.h-48{height:12rem}.h-5{height:1.25rem}.h-5\/6{height:83.333333%}.h-56{height:14rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-\[200px\]{height:200px}.h-auto{height:auto}.h-full{height:100%}.h-modal{height:calc(100% - 2rem)}.h-px{height:1px}.h-screen{height:100vh}.max-h-60{max-height:15rem}.max-h-64{max-height:16rem}.max-h-80{max-height:20rem}.max-h-96{max-height:24rem}.max-h-\[400px\]{max-height:400px}.max-h-\[60vh\]{max-height:60vh}.max-h-\[70vh\]{max-height:70vh}.max-h-\[80vh\]{max-height:80vh}.max-h-\[90vh\]{max-height:90vh}.max-h-full{max-height:100%}.min-h-0{min-height:0px}.min-h-\[220px\]{min-height:220px}.min-h-\[500px\]{min-height:500px}.min-h-full{min-height:100%}.min-h-screen{min-height:100vh}.w-0{width:0px}.w-0\.5{width:.125rem}.w-1{width:.25rem}.w-1\.5{width:.375rem}.w-1\/2{width:50%}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-11\/12{width:91.666667%}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-20{width:5rem}.w-24{width:6rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-3\/5{width:60%}.w-36{width:9rem}.w-4{width:1rem}.w-4\/5{width:80%}.w-48{width:12rem}.w-5{width:1.25rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-96{width:24rem}.w-\[300px\]{width:300px}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-px{width:1px}.w-screen{width:100vw}.min-w-80{min-width:20rem}.min-w-96{min-width:24rem}.min-w-\[120px\]{min-width:120px}.min-w-\[14rem\]{min-width:14rem}.min-w-\[15rem\]{min-width:15rem}.min-w-\[23rem\]{min-width:23rem}.min-w-\[24rem\]{min-width:24rem}.min-w-\[300px\]{min-width:300px}.min-w-full{min-width:100%}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-5xl{max-width:64rem}.max-w-6xl{max-width:72rem}.max-w-7xl{max-width:80rem}.max-w-\[14rem\]{max-width:14rem}.max-w-\[15rem\]{max-width:15rem}.max-w-\[23rem\]{max-width:23rem}.max-w-\[24rem\]{max-width:24rem}.max-w-\[300px\]{max-width:300px}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.flex-grow-0{flex-grow:0}.grow{flex-grow:1}.origin-left{transform-origin:left}.origin-top{transform-origin:top}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-0{--tw-translate-y: -0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-full{--tw-translate-y: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-1\/2{--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1\/2{--tw-translate-y: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-x-0{--tw-scale-x: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform-none{transform:none}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-move{cursor:move}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.grid-cols-\[50px\,1fr\]{grid-template-columns:50px 1fr}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.flex-nowrap{flex-wrap:nowrap}.place-content-center{place-content:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.-space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-1rem * var(--tw-space-x-reverse));margin-left:calc(-1rem * calc(1 - var(--tw-space-x-reverse)))}.-space-x-px>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-1px * var(--tw-space-x-reverse));margin-left:calc(-1px * calc(1 - var(--tw-space-x-reverse)))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-100>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(243 244 246 / var(--tw-divide-opacity))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.self-center{align-self:center}.self-stretch{align-self:stretch}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-hidden{overflow-y:hidden}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.\!rounded-full{border-radius:9999px!important}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-4{border-width:4px}.border-x-0{border-left-width:0px;border-right-width:0px}.border-b{border-bottom-width:1px}.border-b-0{border-bottom-width:0px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-t{border-top-width:1px}.border-t-0{border-top-width:0px}.border-t-2{border-top-width:2px}.border-t-4{border-top-width:4px}.border-dashed{border-style:dashed}.border-none{border-style:none}.border-bg-dark{border-color:var(--color-bg-dark)}.border-blue-200{--tw-border-opacity: 1;border-color:rgb(195 221 253 / var(--tw-border-opacity))}.border-blue-300{--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.border-blue-600{--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity))}.border-blue-700{--tw-border-opacity: 1;border-color:rgb(26 86 219 / var(--tw-border-opacity))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-gray-500{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}.border-gray-600{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.border-gray-800{--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}.border-green-500{--tw-border-opacity: 1;border-color:rgb(14 159 110 / var(--tw-border-opacity))}.border-green-600{--tw-border-opacity: 1;border-color:rgb(5 122 85 / var(--tw-border-opacity))}.border-green-700{--tw-border-opacity: 1;border-color:rgb(4 108 78 / var(--tw-border-opacity))}.border-pink-600{--tw-border-opacity: 1;border-color:rgb(214 31 105 / var(--tw-border-opacity))}.border-pink-700{--tw-border-opacity: 1;border-color:rgb(191 18 93 / var(--tw-border-opacity))}.border-primary{border-color:var(--color-primary)}.border-primary-light{border-color:var(--color-primary-light)}.border-purple-600{--tw-border-opacity: 1;border-color:rgb(126 58 242 / var(--tw-border-opacity))}.border-purple-700{--tw-border-opacity: 1;border-color:rgb(108 43 217 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity))}.border-red-600{--tw-border-opacity: 1;border-color:rgb(224 36 36 / var(--tw-border-opacity))}.border-red-700{--tw-border-opacity: 1;border-color:rgb(200 30 30 / var(--tw-border-opacity))}.border-secondary{border-color:var(--color-secondary)}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.border-yellow-400{--tw-border-opacity: 1;border-color:rgb(227 160 8 / var(--tw-border-opacity))}.border-yellow-500{--tw-border-opacity: 1;border-color:rgb(194 120 3 / var(--tw-border-opacity))}.border-t-blue-600{--tw-border-opacity: 1;border-top-color:rgb(28 100 242 / var(--tw-border-opacity))}.bg-accent{background-color:var(--color-accent)}.bg-bg-dark-tone-panel{background-color:var(--color-bg-dark-tone-panel)}.bg-bg-light{background-color:var(--color-bg-light)}.bg-bg-light-tone{background-color:var(--color-bg-light-tone)}.bg-bg-light-tone-panel{background-color:var(--color-bg-light-tone-panel)}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}.bg-blue-200{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(235 245 255 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(222 247 236 / var(--tw-bg-opacity))}.bg-green-200{--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity))}.bg-green-400{--tw-bg-opacity: 1;background-color:rgb(49 196 141 / var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(14 159 110 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}.bg-green-700{--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}.bg-green-900{--tw-bg-opacity: 1;background-color:rgb(1 71 55 / var(--tw-bg-opacity))}.bg-indigo-100{--tw-bg-opacity: 1;background-color:rgb(229 237 255 / var(--tw-bg-opacity))}.bg-indigo-200{--tw-bg-opacity: 1;background-color:rgb(205 219 254 / var(--tw-bg-opacity))}.bg-indigo-500{--tw-bg-opacity: 1;background-color:rgb(104 117 245 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(88 80 236 / var(--tw-bg-opacity))}.bg-orange-100{--tw-bg-opacity: 1;background-color:rgb(254 236 220 / var(--tw-bg-opacity))}.bg-pink-100{--tw-bg-opacity: 1;background-color:rgb(252 232 243 / var(--tw-bg-opacity))}.bg-pink-200{--tw-bg-opacity: 1;background-color:rgb(250 209 232 / var(--tw-bg-opacity))}.bg-pink-700{--tw-bg-opacity: 1;background-color:rgb(191 18 93 / var(--tw-bg-opacity))}.bg-primary{background-color:var(--color-primary)}.bg-primary-light{background-color:var(--color-primary-light)}.bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(237 235 254 / var(--tw-bg-opacity))}.bg-purple-200{--tw-bg-opacity: 1;background-color:rgb(220 215 254 / var(--tw-bg-opacity))}.bg-purple-500{--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}.bg-purple-600{--tw-bg-opacity: 1;background-color:rgb(126 58 242 / var(--tw-bg-opacity))}.bg-purple-700{--tw-bg-opacity: 1;background-color:rgb(108 43 217 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(253 232 232 / var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(249 128 128 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(240 82 82 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.bg-red-700{--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}.bg-red-900{--tw-bg-opacity: 1;background-color:rgb(119 29 29 / var(--tw-bg-opacity))}.bg-secondary{background-color:var(--color-secondary)}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\/30{background-color:#ffffff4d}.bg-white\/50{background-color:#ffffff80}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(253 246 178 / var(--tw-bg-opacity))}.bg-yellow-200{--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}.bg-yellow-400{--tw-bg-opacity: 1;background-color:rgb(227 160 8 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.bg-opacity-70{--tw-bg-opacity: .7}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-bg-light{--tw-gradient-from: var(--color-bg-light) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-bg-light-tone{--tw-gradient-from: var(--color-bg-light-tone) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-blue-400{--tw-gradient-from: #76A9FA var(--tw-gradient-from-position);--tw-gradient-to: rgb(118 169 250 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-blue-500{--tw-gradient-from: #3F83F8 var(--tw-gradient-from-position);--tw-gradient-to: rgb(63 131 248 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-blue-500\/10{--tw-gradient-from: rgb(63 131 248 / .1) var(--tw-gradient-from-position);--tw-gradient-to: rgb(63 131 248 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-cyan-500{--tw-gradient-from: #06b6d4 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 182 212 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-green-400{--tw-gradient-from: #31C48D var(--tw-gradient-from-position);--tw-gradient-to: rgb(49 196 141 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-green-500{--tw-gradient-from: #0E9F6E var(--tw-gradient-from-position);--tw-gradient-to: rgb(14 159 110 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-indigo-600{--tw-gradient-from: #5850EC var(--tw-gradient-from-position);--tw-gradient-to: rgb(88 80 236 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-lime-500{--tw-gradient-from: #84cc16 var(--tw-gradient-from-position);--tw-gradient-to: rgb(132 204 22 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-pink-500{--tw-gradient-from: #E74694 var(--tw-gradient-from-position);--tw-gradient-to: rgb(231 70 148 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-500{--tw-gradient-from: #9061F9 var(--tw-gradient-from-position);--tw-gradient-to: rgb(144 97 249 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-600{--tw-gradient-from: #7E3AF2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-red-200{--tw-gradient-from: #FBD5D5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(251 213 213 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-red-500{--tw-gradient-from: #F05252 var(--tw-gradient-from-position);--tw-gradient-to: rgb(240 82 82 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-200{--tw-gradient-from: #AFECEF var(--tw-gradient-from-position);--tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-300{--tw-gradient-from: #7EDCE2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 220 226 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-500{--tw-gradient-from: #0694A2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 148 162 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-5\%{--tw-gradient-from-position: 5%}.via-bg-light{--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--color-bg-light) var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-blue-600{--tw-gradient-to: rgb(28 100 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #1C64F2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-cyan-600{--tw-gradient-to: rgb(8 145 178 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #0891b2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-green-600{--tw-gradient-to: rgb(5 122 85 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #057A55 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-lime-600{--tw-gradient-to: rgb(101 163 13 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #65a30d var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-pink-600{--tw-gradient-to: rgb(214 31 105 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #D61F69 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-purple-600{--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #7E3AF2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-red-300{--tw-gradient-to: rgb(248 180 180 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #F8B4B4 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-red-600{--tw-gradient-to: rgb(224 36 36 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #E02424 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-teal-600{--tw-gradient-to: rgb(4 116 129 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #047481 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-10\%{--tw-gradient-via-position: 10%}.to-blue-500{--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position)}.to-blue-600{--tw-gradient-to: #1C64F2 var(--tw-gradient-to-position)}.to-blue-700{--tw-gradient-to: #1A56DB var(--tw-gradient-to-position)}.to-cyan-700{--tw-gradient-to: #0e7490 var(--tw-gradient-to-position)}.to-green-700{--tw-gradient-to: #046C4E var(--tw-gradient-to-position)}.to-lime-200{--tw-gradient-to: #d9f99d var(--tw-gradient-to-position)}.to-lime-300{--tw-gradient-to: #bef264 var(--tw-gradient-to-position)}.to-lime-700{--tw-gradient-to: #4d7c0f var(--tw-gradient-to-position)}.to-orange-400{--tw-gradient-to: #FF8A4C var(--tw-gradient-to-position)}.to-pink-500{--tw-gradient-to: #E74694 var(--tw-gradient-to-position)}.to-pink-700{--tw-gradient-to: #BF125D var(--tw-gradient-to-position)}.to-purple-500{--tw-gradient-to: #9061F9 var(--tw-gradient-to-position)}.to-purple-500\/10{--tw-gradient-to: rgb(144 97 249 / .1) var(--tw-gradient-to-position)}.to-purple-600{--tw-gradient-to: #7E3AF2 var(--tw-gradient-to-position)}.to-purple-700{--tw-gradient-to: #6C2BD9 var(--tw-gradient-to-position)}.to-red-700{--tw-gradient-to: #C81E1E var(--tw-gradient-to-position)}.to-teal-700{--tw-gradient-to: #036672 var(--tw-gradient-to-position)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.to-yellow-200{--tw-gradient-to: #FCE96A var(--tw-gradient-to-position)}.to-100\%{--tw-gradient-to-position: 100%}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.fill-blue-600{fill:#1c64f2}.fill-current{fill:currentColor}.fill-gray-300{fill:#d1d5db}.fill-gray-600{fill:#4b5563}.fill-green-500{fill:#0e9f6e}.fill-pink-600{fill:#d61f69}.fill-purple-600{fill:#7e3af2}.fill-red-600{fill:#e02424}.fill-secondary{fill:var(--color-secondary)}.fill-white{fill:#fff}.fill-yellow-400{fill:#e3a008}.stroke-2{stroke-width:2}.object-cover{-o-object-fit:cover;object-fit:cover}.object-fill{-o-object-fit:fill;object-fit:fill}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-0{padding-bottom:0}.pb-2{padding-bottom:.5rem}.pb-20{padding-bottom:5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-5{padding-bottom:1.25rem}.pb-6{padding-bottom:1.5rem}.pb-80{padding-bottom:20rem}.pl-10{padding-left:2.5rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pt-0{padding-top:0}.pt-12{padding-top:3rem}.pt-16{padding-top:4rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.align-bottom{vertical-align:bottom}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:PTSans,Roboto,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-6xl{font-size:3.75rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.font-thin{font-weight:100}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-9{line-height:2.25rem}.leading-none{line-height:1}.leading-tight{line-height:1.25}.tracking-wide{letter-spacing:.025em}.text-amber-500{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-blue-100{--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-green-200{--tw-text-opacity: 1;color:rgb(188 240 218 / var(--tw-text-opacity))}.text-green-400{--tw-text-opacity: 1;color:rgb(49 196 141 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:rgb(5 122 85 / var(--tw-text-opacity))}.text-green-700{--tw-text-opacity: 1;color:rgb(4 108 78 / var(--tw-text-opacity))}.text-green-800{--tw-text-opacity: 1;color:rgb(3 84 63 / var(--tw-text-opacity))}.text-green-900{--tw-text-opacity: 1;color:rgb(1 71 55 / var(--tw-text-opacity))}.text-indigo-500{--tw-text-opacity: 1;color:rgb(104 117 245 / var(--tw-text-opacity))}.text-indigo-700{--tw-text-opacity: 1;color:rgb(81 69 205 / var(--tw-text-opacity))}.text-indigo-800{--tw-text-opacity: 1;color:rgb(66 56 157 / var(--tw-text-opacity))}.text-indigo-900{--tw-text-opacity: 1;color:rgb(54 47 120 / var(--tw-text-opacity))}.text-light-text-panel{color:var(--color-light-text-panel)}.text-orange-200{--tw-text-opacity: 1;color:rgb(252 217 189 / var(--tw-text-opacity))}.text-orange-500{--tw-text-opacity: 1;color:rgb(255 90 31 / var(--tw-text-opacity))}.text-orange-600{--tw-text-opacity: 1;color:rgb(208 56 1 / var(--tw-text-opacity))}.text-pink-500{--tw-text-opacity: 1;color:rgb(231 70 148 / var(--tw-text-opacity))}.text-pink-600{--tw-text-opacity: 1;color:rgb(214 31 105 / var(--tw-text-opacity))}.text-pink-700{--tw-text-opacity: 1;color:rgb(191 18 93 / var(--tw-text-opacity))}.text-pink-800{--tw-text-opacity: 1;color:rgb(153 21 75 / var(--tw-text-opacity))}.text-pink-900{--tw-text-opacity: 1;color:rgb(117 26 61 / var(--tw-text-opacity))}.text-purple-500{--tw-text-opacity: 1;color:rgb(144 97 249 / var(--tw-text-opacity))}.text-purple-600{--tw-text-opacity: 1;color:rgb(126 58 242 / var(--tw-text-opacity))}.text-purple-700{--tw-text-opacity: 1;color:rgb(108 43 217 / var(--tw-text-opacity))}.text-purple-800{--tw-text-opacity: 1;color:rgb(85 33 181 / var(--tw-text-opacity))}.text-purple-900{--tw-text-opacity: 1;color:rgb(74 29 150 / var(--tw-text-opacity))}.text-red-100{--tw-text-opacity: 1;color:rgb(253 232 232 / var(--tw-text-opacity))}.text-red-200{--tw-text-opacity: 1;color:rgb(251 213 213 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(249 128 128 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(224 36 36 / var(--tw-text-opacity))}.text-red-700{--tw-text-opacity: 1;color:rgb(200 30 30 / var(--tw-text-opacity))}.text-red-800{--tw-text-opacity: 1;color:rgb(155 28 28 / var(--tw-text-opacity))}.text-red-900{--tw-text-opacity: 1;color:rgb(119 29 29 / var(--tw-text-opacity))}.text-secondary{color:var(--color-secondary)}.text-slate-50{--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.text-slate-950{--tw-text-opacity: 1;color:rgb(2 6 23 / var(--tw-text-opacity))}.text-teal-500{--tw-text-opacity: 1;color:rgb(6 148 162 / var(--tw-text-opacity))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(227 160 8 / var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(194 120 3 / var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(142 75 16 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(114 59 19 / var(--tw-text-opacity))}.text-yellow-900{--tw-text-opacity: 1;color:rgb(99 49 18 / var(--tw-text-opacity))}.text-opacity-95{--tw-text-opacity: .95}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-20{opacity:.2}.opacity-25{opacity:.25}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-inner{--tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / .05);--tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-blue-500\/50{--tw-shadow-color: rgb(63 131 248 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-blue-800\/80{--tw-shadow-color: rgb(30 66 159 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-cyan-500\/50{--tw-shadow-color: rgb(6 182 212 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-cyan-800\/80{--tw-shadow-color: rgb(21 94 117 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-green-500\/50{--tw-shadow-color: rgb(14 159 110 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-green-800\/80{--tw-shadow-color: rgb(3 84 63 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-lime-500\/50{--tw-shadow-color: rgb(132 204 22 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-lime-800\/80{--tw-shadow-color: rgb(63 98 18 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-pink-500\/50{--tw-shadow-color: rgb(231 70 148 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-pink-800\/80{--tw-shadow-color: rgb(153 21 75 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-purple-500\/50{--tw-shadow-color: rgb(144 97 249 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-purple-800\/80{--tw-shadow-color: rgb(85 33 181 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-red-500\/50{--tw-shadow-color: rgb(240 82 82 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-red-800\/80{--tw-shadow-color: rgb(155 28 28 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-teal-500\/50{--tw-shadow-color: rgb(6 148 162 / .5);--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}.ring-blue-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(30 66 159 / var(--tw-ring-opacity))}.ring-cyan-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(21 94 117 / var(--tw-ring-opacity))}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.ring-gray-600{--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}.ring-gray-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(31 41 55 / var(--tw-ring-opacity))}.ring-green-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(3 84 63 / var(--tw-ring-opacity))}.ring-pink-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(153 21 75 / var(--tw-ring-opacity))}.ring-pink-900{--tw-ring-opacity: 1;--tw-ring-color: rgb(117 26 61 / var(--tw-ring-opacity))}.ring-purple-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(85 33 181 / var(--tw-ring-opacity))}.ring-purple-900{--tw-ring-opacity: 1;--tw-ring-color: rgb(74 29 150 / var(--tw-ring-opacity))}.ring-red-400{--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}.ring-red-900{--tw-ring-opacity: 1;--tw-ring-color: rgb(119 29 29 / var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity: .05}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-md{--tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / .07)) drop-shadow(0 2px 2px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-sm{--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-75{transition-duration:75ms}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.scrollbar{scrollbar-width:auto;scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.scrollbar::-webkit-scrollbar{display:block;width:var(--scrollbar-width, 16px);height:var(--scrollbar-height, 16px)}.scrollbar-thin::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}.scrollbar-thin::-webkit-scrollbar-track:hover{background-color:var(--scrollbar-track-hover, var(--scrollbar-track))}.scrollbar-thin::-webkit-scrollbar-track:active{background-color:var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)))}.scrollbar-thin::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}.scrollbar-thin::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover, var(--scrollbar-thumb))}.scrollbar-thin::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)))}.scrollbar-thin::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}.scrollbar-thin::-webkit-scrollbar-corner:hover{background-color:var(--scrollbar-corner-hover, var(--scrollbar-corner))}.scrollbar-thin::-webkit-scrollbar-corner:active{background-color:var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)))}.scrollbar-thin{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.scrollbar-thin::-webkit-scrollbar{display:block;width:8px;height:8px}.scrollbar-track-bg-light{--scrollbar-track: var(--color-bg-light) !important}.scrollbar-track-bg-light-tone{--scrollbar-track: var(--color-bg-light-tone) !important}.scrollbar-track-gray-200{--scrollbar-track: #E5E7EB !important}.scrollbar-thumb-bg-light-tone{--scrollbar-thumb: var(--color-bg-light-tone) !important}.scrollbar-thumb-bg-light-tone-panel{--scrollbar-thumb: var(--color-bg-light-tone-panel) !important}.scrollbar-thumb-gray-400{--scrollbar-thumb: #9CA3AF !important}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.display-none{display:none}h1{margin-bottom:1.5rem;font-size:2.25rem;line-height:2.5rem;font-weight:700;--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}h1:is(.dark *){--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}@media (min-width: 768px){h1{font-size:3rem;line-height:1}}h2{margin-bottom:1rem;font-size:1.875rem;line-height:2.25rem;font-weight:600;--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}h2:is(.dark *){--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}h3{margin-bottom:.75rem;font-size:1.5rem;line-height:2rem;font-weight:500;--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}h3:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}h4{margin-bottom:.5rem;font-size:1.25rem;line-height:1.75rem;font-weight:500;--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}h4:is(.dark *){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}h1,h2{border-bottom-width:1px;--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity));padding-bottom:.5rem}h1:is(.dark *),h2:is(.dark *){--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity))}p{overflow-wrap:break-word;font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}p:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}ul{margin-left:0;list-style-type:disc}li{margin-left:1.25rem;list-style-type:disc}ol{margin-left:1.25rem;list-style-type:decimal}:root{--color-primary: #4a90e2;--color-primary-light: #6ab7f1;--color-secondary: #8ab8e0;--color-accent: #3a7ca1;--color-light-text-panel: #ffffff;--color-dark-text-panel: #e0e0e0;--color-bg-light-panel: #f0faff;--color-bg-light: #ffffff;--color-bg-light-tone: #e0f0ff;--color-bg-light-code-block: #f5faff;--color-bg-light-tone-panel: #d0e0f0;--color-bg-light-discussion: #f8faff;--color-bg-light-discussion-odd: #f0faff;--color-bg-dark: #0a0a1a;--color-bg-dark-tone: #151521;--color-bg-dark-tone-panel: #1c1c2a;--color-bg-dark-code-block: #151521;--color-bg-dark-discussion: #0e0e1a;--color-bg-dark-discussion-odd: #0d0d1a}textarea,input,select{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}textarea:is(.dark *),input:is(.dark *),select:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}.background-color{min-height:100vh;background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #E1EFFE var(--tw-gradient-from-position);--tw-gradient-to: rgb(225 239 254 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #CABFFD var(--tw-gradient-to-position)}.background-color:is(.dark *){--tw-gradient-from: #1E429F var(--tw-gradient-from-position);--tw-gradient-to: rgb(30 66 159 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #4A1D96 var(--tw-gradient-to-position)}.toolbar-color{border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity));--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.toolbar-color:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.panels-color{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.panels-color:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.unicolor-panels-color{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.unicolor-panels-color:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.chatbox-color{--tw-bg-opacity: 1;background-color:rgb(235 245 255 / var(--tw-bg-opacity))}.chatbox-color:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.message{position:relative;margin:.5rem;display:flex;width:100%;flex-grow:1;flex-direction:column;flex-wrap:wrap;overflow:visible;border-radius:.5rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity));padding:1.25rem 1.25rem .75rem;font-size:1.125rem;line-height:1.75rem;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.message:is(.dark *){--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity))}.message{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(35 56 118 / var(--tw-text-opacity))}.message:is(.dark *){background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #233876 var(--tw-gradient-from-position);--tw-gradient-to: rgb(35 56 118 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #1E429F var(--tw-gradient-to-position);--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.message:hover{--tw-border-opacity: 1;border-color:rgb(118 169 250 / var(--tw-border-opacity))}.message:hover:is(.dark *){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.message:nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(235 245 255 / var(--tw-bg-opacity))}.message:nth-child(2n):is(.dark *){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}.message:nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}.message:nth-child(odd):is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.message-header{margin-bottom:.5rem;font-size:1.25rem;line-height:1.75rem;font-weight:600}.message-content{font-size:1.125rem;line-height:1.75rem;line-height:1.625}body{min-height:100vh;--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity));font-size:1rem;line-height:1.5rem}body:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}.discussion{margin-right:.5rem;font-size:.75rem;line-height:1rem}.discussion-hilighted{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity));font-size:.75rem;line-height:1rem}.discussion-hilighted:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.bg-gradient-welcome{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #E1EFFE var(--tw-gradient-from-position);--tw-gradient-to: rgb(225 239 254 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #CABFFD var(--tw-gradient-to-position)}.bg-gradient-welcome:is(.dark *){--tw-gradient-from: #1E429F var(--tw-gradient-from-position);--tw-gradient-to: rgb(30 66 159 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #4A1D96 var(--tw-gradient-to-position)}.bg-gradient-progress{background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: #C3DDFD var(--tw-gradient-from-position);--tw-gradient-to: rgb(195 221 253 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #A4CAFE var(--tw-gradient-to-position)}.bg-gradient-progress:is(.dark *){--tw-gradient-from: #1A56DB var(--tw-gradient-from-position);--tw-gradient-to: rgb(26 86 219 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #1C64F2 var(--tw-gradient-to-position)}.text-gradient-title{background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: #1A56DB var(--tw-gradient-from-position);--tw-gradient-to: rgb(26 86 219 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position);-webkit-background-clip:text;background-clip:text;color:transparent}.text-gradient-title:is(.dark *){--tw-gradient-from: #A4CAFE var(--tw-gradient-from-position);--tw-gradient-to: rgb(164 202 254 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position)}.text-subtitle{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.text-subtitle:is(.dark *){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.text-author{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.text-author:is(.dark *){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.text-loading{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.text-loading:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.text-progress{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.text-progress:is(.dark *){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.btn-primary{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity));padding:.5rem 1rem;font-weight:700;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.btn-secondary{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity));padding:.5rem 1rem;font-weight:700;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.btn-secondary:hover{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.card{border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding:1.5rem;--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.card:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.input{border-radius:.375rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity));padding:.5rem 1rem}.input:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity))}.input:is(.dark *){--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.input:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(118 169 250 / var(--tw-ring-opacity))}.label{margin-bottom:.25rem;display:block;font-size:.875rem;line-height:1.25rem;font-weight:500;--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.label:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.link{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.link:hover{--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.link:is(.dark *){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.link:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.navbar-container{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity));--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.navbar-container:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.game-menu{position:relative;display:flex;align-items:center;justify-content:center}.text-shadow-custom{text-shadow:1px 1px 0px #e0e0e0,-1px -1px 0px #e0e0e0,1px -1px 0px #e0e0e0,-1px 1px 0px #e0e0e0}.menu-item{margin-bottom:.5rem;padding:.5rem 1rem;font-size:1.125rem;line-height:1.75rem;font-weight:700;--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity));transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.menu-item:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.menu-item:hover{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.menu-item:is(.dark *):hover{--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.menu-item.active-link{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-top-left-radius:.375rem;border-top-right-radius:.375rem;--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity));font-size:1.125rem;line-height:1.75rem;font-weight:700;--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity));transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);text-shadow:1px 1px 0px #e0e0e0,-1px -1px 0px #e0e0e0,1px -1px 0px #e0e0e0,-1px 1px 0px #e0e0e0}.menu-item.active-link:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.menu-item.active-link:hover{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));--tw-text-opacity: 1;color:rgb(35 56 118 / var(--tw-text-opacity))}.menu-item.active-link:is(.dark *):hover{--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.menu-item.active-link{text-shadow:0 0 10px rgba(128,128,128,.5)}.menu-item.active-link:before{content:"";position:absolute;bottom:-5px;left:0;width:100%;height:5px;background:linear-gradient(to right,#4a90e2,#8ab8e0,#4a90e2);border-radius:10px;animation:shimmer 2s infinite}.dark .menu-item.active-link:before{background:linear-gradient(to right,#6ab7f1,#aaa,#6ab7f1)}@keyframes shimmer{0%{background-position:-100% 0}to{background-position:100% 0}}@keyframes bounce{0%,to{transform:translateY(0)}50%{transform:translateY(-5px)}}.feather-emoji{display:inline-block;margin-left:5px;animation:bounce 2s infinite}.app-card{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity));--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.app-card:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.app-card:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.app-card:hover{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}button{transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}button:hover{--tw-translate-y: -.125rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scrollbar-thin{scrollbar-width:thin;scrollbar-color:#76A9FA #C3DDFD}.dark .scrollbar-thin{scrollbar-color:#1C64F2 #1E429F}.scrollbar-thin::-webkit-scrollbar{width:.5rem}.scrollbar-thin::-webkit-scrollbar-track{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.scrollbar-thin:is(.dark *)::-webkit-scrollbar-track{--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.scrollbar-thin::-webkit-scrollbar-thumb{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity))}.scrollbar-thin:is(.dark *)::-webkit-scrollbar-thumb{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.scrollbar-thin::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.scrollbar-thin:is(.dark *)::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.btn{display:flex;align-items:center;border-radius:.5rem;padding:.5rem 1rem;font-weight:600;--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.btn-primary{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.btn-primary:hover{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.btn-primary:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity))}.btn-primary:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(28 100 242 / var(--tw-ring-opacity))}.btn-secondary{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.btn-secondary:hover{--tw-bg-opacity: 1;background-color:rgb(164 202 254 / var(--tw-bg-opacity))}.btn-secondary:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(195 221 253 / var(--tw-ring-opacity))}.btn-secondary:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.btn-secondary:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.btn-secondary:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(28 100 242 / var(--tw-ring-opacity))}.search-input{width:100%;border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity));background-color:transparent;padding:.5rem 1rem .5rem 2.5rem;--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.search-input:focus{--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity));outline:2px solid transparent;outline-offset:2px}.search-input:is(.dark *){--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity));--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.search-input:focus:is(.dark *){--tw-border-opacity: 1;border-color:rgb(118 169 250 / var(--tw-border-opacity))}.scrollbar::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}.scrollbar::-webkit-scrollbar-track:hover{background-color:var(--scrollbar-track-hover, var(--scrollbar-track))}.scrollbar::-webkit-scrollbar-track:active{background-color:var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)))}.scrollbar::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}.scrollbar::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover, var(--scrollbar-thumb))}.scrollbar::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)))}.scrollbar::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}.scrollbar::-webkit-scrollbar-corner:hover{background-color:var(--scrollbar-corner-hover, var(--scrollbar-corner))}.scrollbar::-webkit-scrollbar-corner:active{background-color:var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)))}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.scrollbar::-webkit-scrollbar{display:block;width:8px;height:8px}.scrollbar{--scrollbar-track: #C3DDFD;--scrollbar-thumb: #76A9FA;scrollbar-width:thin;scrollbar-color:#76A9FA #C3DDFD}.dark .scrollbar{scrollbar-color:#1C64F2 #1E429F}.scrollbar::-webkit-scrollbar{width:.5rem}.scrollbar::-webkit-scrollbar-track{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.scrollbar:is(.dark *)::-webkit-scrollbar-track{--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity))}.scrollbar:is(.dark *)::-webkit-scrollbar-thumb{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.scrollbar::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.scrollbar:is(.dark *)::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.scrollbar{--scrollbar-thumb-hover: #3F83F8}.scrollbar:is(.dark *){--scrollbar-track: #1A56DB;--scrollbar-thumb: #1C64F2;--scrollbar-thumb-hover: #3F83F8}.card-title{margin-bottom:.5rem;font-size:1.25rem;line-height:1.75rem;font-weight:700;--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.card-title:is(.dark *){--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.card-content{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.card-content:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.card-footer{margin-top:1rem;display:flex;align-items:center;justify-content:space-between}.card-footer-button{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity));padding:.5rem 1rem;font-weight:700;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.card-footer-button:hover{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.subcard{border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(235 245 255 / var(--tw-bg-opacity));padding:1rem;--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.subcard:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.subcard-title{margin-bottom:.5rem;font-size:1.125rem;line-height:1.75rem;font-weight:700;--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.subcard-title:is(.dark *){--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.subcard-content{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.subcard-content:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.subcard-footer{margin-top:1rem;display:flex;align-items:center;justify-content:space-between}.subcard-footer-button{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity));padding:.5rem 1rem;font-weight:700;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.subcard-footer-button:hover{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.last\:mb-0:last-child{margin-bottom:0}.last\:\!border-transparent:last-child{border-color:transparent!important}.last\:pb-0:last-child{padding-bottom:0}.even\:bg-bg-light-discussion-odd:nth-child(2n){background-color:var(--color-bg-light-discussion-odd)}.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:block{display:block}.group:hover .group-hover\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group\/item:hover .group-hover\/item\:scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group\/item:hover .group-hover\/item\:scale-110{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:border-secondary{border-color:var(--color-secondary)}.group:hover .group-hover\:bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.group:hover .group-hover\:bg-white\/50{background-color:#ffffff80}.group:hover .group-hover\:bg-opacity-0{--tw-bg-opacity: 0}.group:hover .group-hover\:from-cyan-500{--tw-gradient-from: #06b6d4 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 182 212 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-green-400{--tw-gradient-from: #31C48D var(--tw-gradient-from-position);--tw-gradient-to: rgb(49 196 141 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-pink-500{--tw-gradient-from: #E74694 var(--tw-gradient-from-position);--tw-gradient-to: rgb(231 70 148 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-purple-500{--tw-gradient-from: #9061F9 var(--tw-gradient-from-position);--tw-gradient-to: rgb(144 97 249 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-purple-600{--tw-gradient-from: #7E3AF2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-red-200{--tw-gradient-from: #FBD5D5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(251 213 213 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-teal-300{--tw-gradient-from: #7EDCE2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 220 226 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:via-red-300{--tw-gradient-to: rgb(248 180 180 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #F8B4B4 var(--tw-gradient-via-position), var(--tw-gradient-to)}.group:hover .group-hover\:to-blue-500{--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-blue-600{--tw-gradient-to: #1C64F2 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-lime-300{--tw-gradient-to: #bef264 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-orange-400{--tw-gradient-to: #FF8A4C var(--tw-gradient-to-position)}.group:hover .group-hover\:to-pink-500{--tw-gradient-to: #E74694 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-yellow-200{--tw-gradient-to: #FCE96A var(--tw-gradient-to-position)}.group:hover .group-hover\:text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.group\/item:hover .group-hover\/item\:opacity-100,.group:hover .group-hover\:opacity-100{opacity:1}.group:focus .group-focus\:outline-none{outline:2px solid transparent;outline-offset:2px}.group:focus .group-focus\:ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.group:focus .group-focus\:ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.peer:checked~.peer-checked\:text-primary{color:var(--color-primary)}.hover\:z-10:hover{z-index:10}.hover\:z-20:hover{z-index:20}.hover\:h-8:hover{height:2rem}.hover\:-translate-y-1:hover{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:-translate-y-2:hover{--tw-translate-y: -.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-110:hover{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-x-100:hover{--tw-scale-x: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-2:hover{border-width:2px}.hover\:border-solid:hover{border-style:solid}.hover\:border-blue-300:hover{--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity))}.hover\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\:border-gray-600:hover{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.hover\:border-green-200:hover{--tw-border-opacity: 1;border-color:rgb(188 240 218 / var(--tw-border-opacity))}.hover\:border-primary:hover{border-color:var(--color-primary)}.hover\:border-primary-light:hover{border-color:var(--color-primary-light)}.hover\:border-secondary:hover{border-color:var(--color-secondary)}.hover\:bg-bg-light-tone:hover{background-color:var(--color-bg-light-tone)}.hover\:bg-bg-light-tone-panel:hover{background-color:var(--color-bg-light-tone-panel)}.hover\:bg-blue-100:hover{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}.hover\:bg-blue-200:hover{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.hover\:bg-blue-300:hover{--tw-bg-opacity: 1;background-color:rgb(164 202 254 / var(--tw-bg-opacity))}.hover\:bg-blue-400:hover{--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity))}.hover\:bg-blue-500:hover{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.hover\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.hover\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.hover\:bg-blue-800:hover{--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\:bg-gray-400:hover{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\:bg-gray-600:hover{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.hover\:bg-gray-900:hover{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.hover\:bg-green-200:hover{--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity))}.hover\:bg-green-300:hover{--tw-bg-opacity: 1;background-color:rgb(132 225 188 / var(--tw-bg-opacity))}.hover\:bg-green-600:hover{--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}.hover\:bg-green-700:hover{--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}.hover\:bg-green-800:hover{--tw-bg-opacity: 1;background-color:rgb(3 84 63 / var(--tw-bg-opacity))}.hover\:bg-pink-800:hover{--tw-bg-opacity: 1;background-color:rgb(153 21 75 / var(--tw-bg-opacity))}.hover\:bg-primary:hover{background-color:var(--color-primary)}.hover\:bg-primary-light:hover{background-color:var(--color-primary-light)}.hover\:bg-purple-800:hover{--tw-bg-opacity: 1;background-color:rgb(85 33 181 / var(--tw-bg-opacity))}.hover\:bg-red-200:hover{--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}.hover\:bg-red-300:hover{--tw-bg-opacity: 1;background-color:rgb(248 180 180 / var(--tw-bg-opacity))}.hover\:bg-red-600:hover{--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.hover\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}.hover\:bg-red-800:hover{--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity))}.hover\:bg-white:hover{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.hover\:bg-yellow-200:hover{--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}.hover\:bg-yellow-500:hover{--tw-bg-opacity: 1;background-color:rgb(194 120 3 / var(--tw-bg-opacity))}.hover\:bg-gradient-to-bl:hover{background-image:linear-gradient(to bottom left,var(--tw-gradient-stops))}.hover\:bg-gradient-to-br:hover{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.hover\:bg-gradient-to-l:hover{background-image:linear-gradient(to left,var(--tw-gradient-stops))}.hover\:bg-gradient-to-r:hover{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.hover\:from-blue-50:hover{--tw-gradient-from: #EBF5FF var(--tw-gradient-from-position);--tw-gradient-to: rgb(235 245 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:from-teal-200:hover{--tw-gradient-from: #AFECEF var(--tw-gradient-from-position);--tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:to-lime-200:hover{--tw-gradient-to: #d9f99d var(--tw-gradient-to-position)}.hover\:to-purple-50:hover{--tw-gradient-to: #F6F5FF var(--tw-gradient-to-position)}.hover\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.hover\:text-blue-700:hover{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.hover\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.hover\:text-gray-800:hover{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.hover\:text-green-300:hover{--tw-text-opacity: 1;color:rgb(132 225 188 / var(--tw-text-opacity))}.hover\:text-green-500:hover{--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.hover\:text-green-600:hover{--tw-text-opacity: 1;color:rgb(5 122 85 / var(--tw-text-opacity))}.hover\:text-indigo-600:hover{--tw-text-opacity: 1;color:rgb(88 80 236 / var(--tw-text-opacity))}.hover\:text-primary:hover{color:var(--color-primary)}.hover\:text-purple-600:hover{--tw-text-opacity: 1;color:rgb(126 58 242 / var(--tw-text-opacity))}.hover\:text-red-300:hover{--tw-text-opacity: 1;color:rgb(248 180 180 / var(--tw-text-opacity))}.hover\:text-red-500:hover{--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}.hover\:text-red-600:hover{--tw-text-opacity: 1;color:rgb(224 36 36 / var(--tw-text-opacity))}.hover\:text-red-700:hover{--tw-text-opacity: 1;color:rgb(200 30 30 / var(--tw-text-opacity))}.hover\:text-secondary:hover{color:var(--color-secondary)}.hover\:text-teal-600:hover{--tw-text-opacity: 1;color:rgb(4 116 129 / var(--tw-text-opacity))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\:text-yellow-600:hover{--tw-text-opacity: 1;color:rgb(159 88 10 / var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:no-underline:hover{text-decoration-line:none}.hover\:shadow-md:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-none:hover{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-xl:hover{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:scrollbar-thumb-primary{--scrollbar-thumb-hover: var(--color-primary) !important}.focus\:z-10:focus{z-index:10}.focus\:border-blue-300:focus{--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity))}.focus\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.focus\:border-secondary:focus{border-color:var(--color-secondary)}.focus\:border-transparent:focus{border-color:transparent}.focus\:text-blue-700:focus{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-4:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-blue-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(195 221 253 / var(--tw-ring-opacity))}.focus\:ring-blue-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity))}.focus\:ring-blue-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(118 169 250 / var(--tw-ring-opacity))}.focus\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity))}.focus\:ring-blue-500\/50:focus{--tw-ring-color: rgb(63 131 248 / .5)}.focus\:ring-blue-700:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(26 86 219 / var(--tw-ring-opacity))}.focus\:ring-cyan-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(165 243 252 / var(--tw-ring-opacity))}.focus\:ring-cyan-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(103 232 249 / var(--tw-ring-opacity))}.focus\:ring-gray-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity))}.focus\:ring-gray-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.focus\:ring-gray-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity))}.focus\:ring-green-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(188 240 218 / var(--tw-ring-opacity))}.focus\:ring-green-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(132 225 188 / var(--tw-ring-opacity))}.focus\:ring-green-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(49 196 141 / var(--tw-ring-opacity))}.focus\:ring-lime-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(217 249 157 / var(--tw-ring-opacity))}.focus\:ring-lime-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(190 242 100 / var(--tw-ring-opacity))}.focus\:ring-pink-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 209 232 / var(--tw-ring-opacity))}.focus\:ring-pink-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 180 217 / var(--tw-ring-opacity))}.focus\:ring-purple-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(220 215 254 / var(--tw-ring-opacity))}.focus\:ring-purple-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(202 191 253 / var(--tw-ring-opacity))}.focus\:ring-red-100:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(253 232 232 / var(--tw-ring-opacity))}.focus\:ring-red-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 180 180 / var(--tw-ring-opacity))}.focus\:ring-red-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}.focus\:ring-red-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(240 82 82 / var(--tw-ring-opacity))}.focus\:ring-secondary:focus{--tw-ring-color: var(--color-secondary)}.focus\:ring-teal-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(126 220 226 / var(--tw-ring-opacity))}.focus\:ring-yellow-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 202 21 / var(--tw-ring-opacity))}.focus\:ring-yellow-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(227 160 8 / var(--tw-ring-opacity))}.focus\:ring-opacity-50:focus{--tw-ring-opacity: .5}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.active\:scale-75:active{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:scale-90:active{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:bg-gray-300:active{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.active\:scrollbar-thumb-secondary{--scrollbar-thumb-active: var(--color-secondary) !important}.dark\:divide-gray-700:is(.dark *)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(55 65 81 / var(--tw-divide-opacity))}.dark\:border-bg-light:is(.dark *){border-color:var(--color-bg-light)}.dark\:border-blue-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.dark\:border-blue-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(26 86 219 / var(--tw-border-opacity))}.dark\:border-gray-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}.dark\:border-gray-600:is(.dark *){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.dark\:border-gray-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.dark\:border-gray-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}.dark\:border-gray-900:is(.dark *){--tw-border-opacity: 1;border-color:rgb(17 24 39 / var(--tw-border-opacity))}.dark\:border-green-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(14 159 110 / var(--tw-border-opacity))}.dark\:border-pink-400:is(.dark *){--tw-border-opacity: 1;border-color:rgb(241 126 184 / var(--tw-border-opacity))}.dark\:border-pink-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(231 70 148 / var(--tw-border-opacity))}.dark\:border-purple-400:is(.dark *){--tw-border-opacity: 1;border-color:rgb(172 148 250 / var(--tw-border-opacity))}.dark\:border-purple-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(144 97 249 / var(--tw-border-opacity))}.dark\:border-red-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity))}.dark\:border-transparent:is(.dark *){border-color:transparent}.dark\:border-yellow-300:is(.dark *){--tw-border-opacity: 1;border-color:rgb(250 202 21 / var(--tw-border-opacity))}.dark\:bg-bg-dark:is(.dark *){background-color:var(--color-bg-dark)}.dark\:bg-bg-dark-tone:is(.dark *){background-color:var(--color-bg-dark-tone)}.dark\:bg-bg-dark-tone-panel:is(.dark *){background-color:var(--color-bg-dark-tone-panel)}.dark\:bg-black:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.dark\:bg-blue-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.dark\:bg-blue-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.dark\:bg-blue-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.dark\:bg-blue-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.dark\:bg-blue-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.dark\:bg-blue-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}.dark\:bg-gray-300:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.dark\:bg-gray-400:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.dark\:bg-gray-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.dark\:bg-gray-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.dark\:bg-gray-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.dark\:bg-gray-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.dark\:bg-gray-800\/30:is(.dark *){background-color:#1f29374d}.dark\:bg-gray-800\/50:is(.dark *){background-color:#1f293780}.dark\:bg-gray-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.dark\:bg-green-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity))}.dark\:bg-green-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(14 159 110 / var(--tw-bg-opacity))}.dark\:bg-green-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}.dark\:bg-green-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(3 84 63 / var(--tw-bg-opacity))}.dark\:bg-green-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(1 71 55 / var(--tw-bg-opacity))}.dark\:bg-indigo-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(205 219 254 / var(--tw-bg-opacity))}.dark\:bg-indigo-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(104 117 245 / var(--tw-bg-opacity))}.dark\:bg-orange-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(180 52 3 / var(--tw-bg-opacity))}.dark\:bg-orange-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(138 44 13 / var(--tw-bg-opacity))}.dark\:bg-pink-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(250 209 232 / var(--tw-bg-opacity))}.dark\:bg-pink-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(214 31 105 / var(--tw-bg-opacity))}.dark\:bg-purple-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(220 215 254 / var(--tw-bg-opacity))}.dark\:bg-purple-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}.dark\:bg-purple-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(126 58 242 / var(--tw-bg-opacity))}.dark\:bg-red-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}.dark\:bg-red-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(240 82 82 / var(--tw-bg-opacity))}.dark\:bg-red-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.dark\:bg-red-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity))}.dark\:bg-red-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(119 29 29 / var(--tw-bg-opacity))}.dark\:bg-white:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.dark\:bg-yellow-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}.dark\:bg-opacity-70:is(.dark *){--tw-bg-opacity: .7}.dark\:bg-opacity-80:is(.dark *){--tw-bg-opacity: .8}.dark\:from-bg-dark:is(.dark *){--tw-gradient-from: var(--color-bg-dark) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:from-bg-dark-tone:is(.dark *){--tw-gradient-from: var(--color-bg-dark-tone) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:from-blue-400\/20:is(.dark *){--tw-gradient-from: rgb(118 169 250 / .2) var(--tw-gradient-from-position);--tw-gradient-to: rgb(118 169 250 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:from-indigo-400:is(.dark *){--tw-gradient-from: #8DA2FB var(--tw-gradient-from-position);--tw-gradient-to: rgb(141 162 251 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:via-bg-dark:is(.dark *){--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--color-bg-dark) var(--tw-gradient-via-position), var(--tw-gradient-to)}.dark\:to-purple-400:is(.dark *){--tw-gradient-to: #AC94FA var(--tw-gradient-to-position)}.dark\:to-purple-400\/20:is(.dark *){--tw-gradient-to: rgb(172 148 250 / .2) var(--tw-gradient-to-position)}.dark\:fill-gray-300:is(.dark *){fill:#d1d5db}.dark\:text-blue-200:is(.dark *){--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.dark\:text-blue-400:is(.dark *){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.dark\:text-blue-500:is(.dark *){--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.dark\:text-blue-800:is(.dark *){--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.dark\:text-dark-text-panel:is(.dark *){color:var(--color-dark-text-panel)}.dark\:text-gray-100:is(.dark *){--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}.dark\:text-gray-200:is(.dark *){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.dark\:text-gray-300:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.dark\:text-gray-400:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.dark\:text-gray-500:is(.dark *){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.dark\:text-gray-600:is(.dark *){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.dark\:text-gray-800:is(.dark *){--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.dark\:text-green-200:is(.dark *){--tw-text-opacity: 1;color:rgb(188 240 218 / var(--tw-text-opacity))}.dark\:text-green-400:is(.dark *){--tw-text-opacity: 1;color:rgb(49 196 141 / var(--tw-text-opacity))}.dark\:text-green-500:is(.dark *){--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.dark\:text-green-800:is(.dark *){--tw-text-opacity: 1;color:rgb(3 84 63 / var(--tw-text-opacity))}.dark\:text-green-900:is(.dark *){--tw-text-opacity: 1;color:rgb(1 71 55 / var(--tw-text-opacity))}.dark\:text-indigo-500:is(.dark *){--tw-text-opacity: 1;color:rgb(104 117 245 / var(--tw-text-opacity))}.dark\:text-indigo-900:is(.dark *){--tw-text-opacity: 1;color:rgb(54 47 120 / var(--tw-text-opacity))}.dark\:text-orange-200:is(.dark *){--tw-text-opacity: 1;color:rgb(252 217 189 / var(--tw-text-opacity))}.dark\:text-pink-400:is(.dark *){--tw-text-opacity: 1;color:rgb(241 126 184 / var(--tw-text-opacity))}.dark\:text-pink-500:is(.dark *){--tw-text-opacity: 1;color:rgb(231 70 148 / var(--tw-text-opacity))}.dark\:text-pink-900:is(.dark *){--tw-text-opacity: 1;color:rgb(117 26 61 / var(--tw-text-opacity))}.dark\:text-primary:is(.dark *){color:var(--color-primary)}.dark\:text-purple-400:is(.dark *){--tw-text-opacity: 1;color:rgb(172 148 250 / var(--tw-text-opacity))}.dark\:text-purple-500:is(.dark *){--tw-text-opacity: 1;color:rgb(144 97 249 / var(--tw-text-opacity))}.dark\:text-purple-900:is(.dark *){--tw-text-opacity: 1;color:rgb(74 29 150 / var(--tw-text-opacity))}.dark\:text-red-200:is(.dark *){--tw-text-opacity: 1;color:rgb(251 213 213 / var(--tw-text-opacity))}.dark\:text-red-300:is(.dark *){--tw-text-opacity: 1;color:rgb(248 180 180 / var(--tw-text-opacity))}.dark\:text-red-400:is(.dark *){--tw-text-opacity: 1;color:rgb(249 128 128 / var(--tw-text-opacity))}.dark\:text-red-500:is(.dark *){--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}.dark\:text-red-800:is(.dark *){--tw-text-opacity: 1;color:rgb(155 28 28 / var(--tw-text-opacity))}.dark\:text-red-900:is(.dark *){--tw-text-opacity: 1;color:rgb(119 29 29 / var(--tw-text-opacity))}.dark\:text-slate-50:is(.dark *){--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.dark\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:text-yellow-300:is(.dark *){--tw-text-opacity: 1;color:rgb(250 202 21 / var(--tw-text-opacity))}.dark\:text-yellow-400:is(.dark *){--tw-text-opacity: 1;color:rgb(227 160 8 / var(--tw-text-opacity))}.dark\:text-yellow-500:is(.dark *){--tw-text-opacity: 1;color:rgb(194 120 3 / var(--tw-text-opacity))}.dark\:text-yellow-800:is(.dark *){--tw-text-opacity: 1;color:rgb(114 59 19 / var(--tw-text-opacity))}.dark\:text-yellow-900:is(.dark *){--tw-text-opacity: 1;color:rgb(99 49 18 / var(--tw-text-opacity))}.dark\:placeholder-gray-400:is(.dark *)::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}.dark\:placeholder-gray-400:is(.dark *)::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}.dark\:shadow-lg:is(.dark *){--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.dark\:shadow-blue-800\/80:is(.dark *){--tw-shadow-color: rgb(30 66 159 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-cyan-800\/80:is(.dark *){--tw-shadow-color: rgb(21 94 117 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-green-800\/80:is(.dark *){--tw-shadow-color: rgb(3 84 63 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-lime-800\/80:is(.dark *){--tw-shadow-color: rgb(63 98 18 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-pink-800\/80:is(.dark *){--tw-shadow-color: rgb(153 21 75 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-purple-800\/80:is(.dark *){--tw-shadow-color: rgb(85 33 181 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-red-800\/80:is(.dark *){--tw-shadow-color: rgb(155 28 28 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-teal-800\/80:is(.dark *){--tw-shadow-color: rgb(5 80 92 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:ring-gray-500:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity))}.dark\:ring-white:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.dark\:ring-opacity-20:is(.dark *){--tw-ring-opacity: .2}.dark\:ring-offset-gray-700:is(.dark *){--tw-ring-offset-color: #374151}.dark\:ring-offset-gray-800:is(.dark *){--tw-ring-offset-color: #1F2937}.dark\:scrollbar-track-bg-dark:is(.dark *){--scrollbar-track: var(--color-bg-dark) !important}.dark\:scrollbar-track-bg-dark-tone:is(.dark *){--scrollbar-track: var(--color-bg-dark-tone) !important}.dark\:scrollbar-track-gray-700:is(.dark *){--scrollbar-track: #374151 !important}.dark\:scrollbar-track-gray-800:is(.dark *){--scrollbar-track: #1F2937 !important}.dark\:scrollbar-thumb-bg-dark-tone:is(.dark *){--scrollbar-thumb: var(--color-bg-dark-tone) !important}.dark\:scrollbar-thumb-bg-dark-tone-panel:is(.dark *){--scrollbar-thumb: var(--color-bg-dark-tone-panel) !important}.dark\:scrollbar-thumb-gray-500:is(.dark *){--scrollbar-thumb: #6B7280 !important}.dark\:scrollbar-thumb-gray-600:is(.dark *){--scrollbar-thumb: #4B5563 !important}.dark\:even\:bg-bg-dark-discussion-odd:nth-child(2n):is(.dark *){background-color:var(--color-bg-dark-discussion-odd)}.group:hover .dark\:group-hover\:bg-gray-800\/60:is(.dark *){background-color:#1f293799}.group:hover .dark\:group-hover\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.group:focus .dark\:group-focus\:ring-gray-800\/70:is(.dark *){--tw-ring-color: rgb(31 41 55 / .7)}.dark\:hover\:border-blue-600:hover:is(.dark *){--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity))}.dark\:hover\:border-gray-600:hover:is(.dark *){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.dark\:hover\:border-primary:hover:is(.dark *){border-color:var(--color-primary)}.dark\:hover\:bg-blue-300:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(164 202 254 / var(--tw-bg-opacity))}.dark\:hover\:bg-blue-600:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.dark\:hover\:bg-blue-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.dark\:hover\:bg-blue-900:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}.dark\:hover\:bg-gray-600:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.dark\:hover\:bg-gray-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.dark\:hover\:bg-gray-800:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.dark\:hover\:bg-green-300:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(132 225 188 / var(--tw-bg-opacity))}.dark\:hover\:bg-green-600:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}.dark\:hover\:bg-green-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}.dark\:hover\:bg-pink-500:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(231 70 148 / var(--tw-bg-opacity))}.dark\:hover\:bg-pink-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(191 18 93 / var(--tw-bg-opacity))}.dark\:hover\:bg-primary:hover:is(.dark *){background-color:var(--color-primary)}.dark\:hover\:bg-purple-500:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}.dark\:hover\:bg-purple-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(108 43 217 / var(--tw-bg-opacity))}.dark\:hover\:bg-red-300:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(248 180 180 / var(--tw-bg-opacity))}.dark\:hover\:bg-red-600:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.dark\:hover\:bg-red-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}.dark\:hover\:bg-yellow-300:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(250 202 21 / var(--tw-bg-opacity))}.dark\:hover\:bg-yellow-400:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(227 160 8 / var(--tw-bg-opacity))}.hover\:dark\:bg-bg-dark-tone:is(.dark *):hover{background-color:var(--color-bg-dark-tone)}.hover\:dark\:bg-bg-dark-tone-panel:is(.dark *):hover{background-color:var(--color-bg-dark-tone-panel)}.dark\:hover\:from-blue-900\/30:hover:is(.dark *){--tw-gradient-from: rgb(35 56 118 / .3) var(--tw-gradient-from-position);--tw-gradient-to: rgb(35 56 118 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:hover\:to-purple-900\/30:hover:is(.dark *){--tw-gradient-to: rgb(74 29 150 / .3) var(--tw-gradient-to-position)}.dark\:hover\:text-blue-500:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.dark\:hover\:text-gray-200:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.dark\:hover\:text-gray-300:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.dark\:hover\:text-gray-900:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.dark\:hover\:text-green-300:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(132 225 188 / var(--tw-text-opacity))}.dark\:hover\:text-green-400:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(49 196 141 / var(--tw-text-opacity))}.dark\:hover\:text-primary:hover:is(.dark *){color:var(--color-primary)}.dark\:hover\:text-red-400:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(249 128 128 / var(--tw-text-opacity))}.dark\:hover\:text-white:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:hover\:scrollbar-thumb-primary:is(.dark *){--scrollbar-thumb-hover: var(--color-primary) !important}.dark\:focus\:border-blue-500:focus:is(.dark *){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.dark\:focus\:border-secondary:focus:is(.dark *){border-color:var(--color-secondary)}.dark\:focus\:text-white:focus:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:focus\:ring-blue-500:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity))}.dark\:focus\:ring-blue-600:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(28 100 242 / var(--tw-ring-opacity))}.dark\:focus\:ring-blue-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(30 66 159 / var(--tw-ring-opacity))}.dark\:focus\:ring-cyan-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(21 94 117 / var(--tw-ring-opacity))}.dark\:focus\:ring-gray-500:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity))}.dark\:focus\:ring-gray-600:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}.dark\:focus\:ring-gray-700:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(55 65 81 / var(--tw-ring-opacity))}.dark\:focus\:ring-gray-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(31 41 55 / var(--tw-ring-opacity))}.dark\:focus\:ring-green-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(3 84 63 / var(--tw-ring-opacity))}.dark\:focus\:ring-lime-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(63 98 18 / var(--tw-ring-opacity))}.dark\:focus\:ring-pink-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(153 21 75 / var(--tw-ring-opacity))}.dark\:focus\:ring-pink-900:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(117 26 61 / var(--tw-ring-opacity))}.dark\:focus\:ring-purple-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(85 33 181 / var(--tw-ring-opacity))}.dark\:focus\:ring-purple-900:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(74 29 150 / var(--tw-ring-opacity))}.dark\:focus\:ring-red-400:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}.dark\:focus\:ring-red-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(155 28 28 / var(--tw-ring-opacity))}.dark\:focus\:ring-red-900:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(119 29 29 / var(--tw-ring-opacity))}.dark\:focus\:ring-secondary:focus:is(.dark *){--tw-ring-color: var(--color-secondary)}.dark\:focus\:ring-teal-700:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(3 102 114 / var(--tw-ring-opacity))}.dark\:focus\:ring-teal-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(5 80 92 / var(--tw-ring-opacity))}.dark\:focus\:ring-yellow-900:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(99 49 18 / var(--tw-ring-opacity))}.dark\:focus\:ring-offset-gray-700:focus:is(.dark *){--tw-ring-offset-color: #374151}.dark\:active\:bg-gray-600:active:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}@media (min-width: 640px){.sm\:mt-0{margin-top:0}.sm\:h-10{height:2.5rem}.sm\:h-6{height:1.5rem}.sm\:h-64{height:16rem}.sm\:w-1\/4{width:25%}.sm\:w-10{width:2.5rem}.sm\:w-6{width:1.5rem}.sm\:w-auto{width:auto}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:rounded-lg{border-radius:.5rem}.sm\:px-4{padding-left:1rem;padding-right:1rem}.sm\:text-center{text-align:center}.sm\:text-xs{font-size:.75rem;line-height:1rem}}@media (min-width: 768px){.md\:inset-0{top:0;right:0;bottom:0;left:0}.md\:order-2{order:2}.md\:mr-6{margin-right:1.5rem}.md\:mt-0{margin-top:0}.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:h-auto{height:auto}.md\:h-full{height:100%}.md\:w-1\/4{width:25%}.md\:w-48{width:12rem}.md\:w-auto{width:auto}.md\:max-w-xl{max-width:36rem}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:justify-between{justify-content:space-between}.md\:space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.md\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.md\:rounded-none{border-radius:0}.md\:rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.md\:border-0{border-width:0px}.md\:bg-transparent{background-color:transparent}.md\:p-0{padding:0}.md\:p-6{padding:1.5rem}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-6xl{font-size:3.75rem;line-height:1}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:font-medium{font-weight:500}.md\:text-blue-700{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.md\:hover\:bg-transparent:hover{background-color:transparent}.md\:hover\:text-blue-700:hover{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.md\:dark\:bg-gray-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.md\:dark\:hover\:bg-transparent:hover:is(.dark *){background-color:transparent}.md\:dark\:hover\:text-white:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}}@media (min-width: 1024px){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}}@media (min-width: 1280px){.xl\:h-80{height:20rem}.xl\:w-1\/6{width:16.666667%}}@media (min-width: 1536px){.\32xl\:h-96{height:24rem}} diff --git a/web/dist/index.html b/web/dist/index.html index cf360c55a..38d25787c 100644 --- a/web/dist/index.html +++ b/web/dist/index.html @@ -6,8 +6,8 @@ LoLLMS WebUI - - + +
diff --git a/web/dist/themes/amber.css b/web/dist/themes/amber.css index 9aa05d6b8..0263a2916 100644 --- a/web/dist/themes/amber.css +++ b/web/dist/themes/amber.css @@ -1240,6 +1240,12 @@ html{ -webkit-box-orient: vertical; -webkit-line-clamp: 3; } +.line-clamp-4{ + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 4; +} .block{ display: block; } @@ -1357,9 +1363,6 @@ html{ .h-\[200px\]{ height: 200px; } -.h-\[220px\]{ - height: 220px; -} .h-auto{ height: auto; } @@ -1399,9 +1402,18 @@ html{ .max-h-\[80vh\]{ max-height: 80vh; } +.max-h-\[90vh\]{ + max-height: 90vh; +} .max-h-full{ max-height: 100%; } +.min-h-0{ + min-height: 0px; +} +.min-h-\[220px\]{ + min-height: 220px; +} .min-h-\[500px\]{ min-height: 500px; } @@ -1477,6 +1489,9 @@ html{ .w-4\/5{ width: 80%; } +.w-40{ + width: 10rem; +} .w-48{ width: 12rem; } @@ -1532,9 +1547,6 @@ html{ .min-w-96{ min-width: 24rem; } -.min-w-\[120px\]{ - min-width: 120px; -} .min-w-\[14rem\]{ min-width: 14rem; } @@ -1634,9 +1646,6 @@ html{ .origin-left{ transform-origin: left; } -.origin-top{ - transform-origin: top; -} .-translate-x-1\/2{ --tw-translate-x: -50%; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -1685,6 +1694,16 @@ html{ --tw-rotate: 90deg; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); } +.scale-100{ + --tw-scale-x: 1; + --tw-scale-y: 1; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} +.scale-95{ + --tw-scale-x: .95; + --tw-scale-y: .95; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} .scale-x-0{ --tw-scale-x: 0; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -1827,6 +1846,9 @@ html{ .gap-4{ gap: 1rem; } +.gap-6{ + gap: 1.5rem; +} .gap-8{ gap: 2rem; } @@ -1870,6 +1892,11 @@ html{ margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(0.5rem * var(--tw-space-y-reverse)); } +.space-y-3 > :not([hidden]) ~ :not([hidden]){ + --tw-space-y-reverse: 0; + margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse))); + margin-bottom: calc(0.75rem * var(--tw-space-y-reverse)); +} .space-y-4 > :not([hidden]) ~ :not([hidden]){ --tw-space-y-reverse: 0; margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse))); @@ -2403,9 +2430,6 @@ html{ .bg-opacity-70{ --tw-bg-opacity: 0.7; } -.bg-gradient-to-b{ - background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); -} .bg-gradient-to-br{ background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); } @@ -2505,11 +2529,6 @@ html{ --tw-gradient-to: rgb(6 148 162 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } -.from-transparent{ - --tw-gradient-from: transparent var(--tw-gradient-from-position); - --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position); - --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); -} .from-5\%{ --tw-gradient-from-position: 5%; } @@ -2553,10 +2572,6 @@ html{ --tw-gradient-to: rgb(4 116 129 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), #047481 var(--tw-gradient-via-position), var(--tw-gradient-to); } -.via-transparent{ - --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position); - --tw-gradient-stops: var(--tw-gradient-from), transparent var(--tw-gradient-via-position), var(--tw-gradient-to); -} .via-10\%{ --tw-gradient-via-position: 10%; } @@ -2614,9 +2629,6 @@ html{ .to-transparent{ --tw-gradient-to: transparent var(--tw-gradient-to-position); } -.to-white{ - --tw-gradient-to: #ffffff var(--tw-gradient-to-position); -} .to-yellow-200{ --tw-gradient-to: #FCE96A var(--tw-gradient-to-position); } @@ -3520,6 +3532,9 @@ html{ .scrollbar-track-bg-light-tone{ --scrollbar-track: var(--color-bg-light-tone) !important; } +.scrollbar-track-blue-100{ + --scrollbar-track: #E1EFFE !important; +} .scrollbar-track-gray-200{ --scrollbar-track: #E5E7EB !important; } @@ -3529,6 +3544,9 @@ html{ .scrollbar-thumb-bg-light-tone-panel{ --scrollbar-thumb: var(--color-bg-light-tone-panel) !important; } +.scrollbar-thumb-blue-500{ + --scrollbar-thumb: #3F83F8 !important; +} .scrollbar-thumb-gray-400{ --scrollbar-thumb: #9CA3AF !important; } @@ -4191,23 +4209,26 @@ body:is(.dark *){ } } .app-card{ + border-radius: 0.75rem; + border-width: 1px; background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); --tw-gradient-from: #fffbeb var(--tw-gradient-from-position); --tw-gradient-to: rgb(255 251 235 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); --tw-gradient-to: #fef3c7 var(--tw-gradient-to-position); + padding: 1.5rem; --tw-text-opacity: 1; color: rgb(31 41 55 / var(--tw-text-opacity)); - --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color); + --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); transition-property: all; transition-duration: 300ms; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); } .app-card:hover{ - --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); + --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); } .app-card:is(.dark *){ @@ -4721,9 +4742,6 @@ button:hover{ .group\/item:hover .group-hover\/item\:opacity-100{ opacity: 1; } -.group:hover .group-hover\:opacity-0{ - opacity: 0; -} .group:hover .group-hover\:opacity-100{ opacity: 1; } @@ -4950,6 +4968,11 @@ button:hover{ --tw-gradient-to: rgb(235 245 255 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } +.hover\:from-blue-500\/20:hover{ + --tw-gradient-from: rgb(63 131 248 / 0.2) var(--tw-gradient-from-position); + --tw-gradient-to: rgb(63 131 248 / 0) var(--tw-gradient-to-position); + --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); +} .hover\:from-teal-200:hover{ --tw-gradient-from: #AFECEF var(--tw-gradient-from-position); --tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position); @@ -4961,6 +4984,9 @@ button:hover{ .hover\:to-purple-50:hover{ --tw-gradient-to: #F6F5FF var(--tw-gradient-to-position); } +.hover\:to-purple-500\/20:hover{ + --tw-gradient-to: rgb(144 97 249 / 0.2) var(--tw-gradient-to-position); +} .hover\:text-blue-600:hover{ --tw-text-opacity: 1; color: rgb(28 100 242 / var(--tw-text-opacity)); @@ -5045,11 +5071,6 @@ button:hover{ .hover\:no-underline:hover{ text-decoration-line: none; } -.hover\:shadow-lg:hover{ - --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); - box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); -} .hover\:shadow-md:hover{ --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color); @@ -5502,9 +5523,6 @@ button:hover{ --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--color-bg-dark) var(--tw-gradient-via-position), var(--tw-gradient-to); } -.dark\:to-gray-800:is(.dark *){ - --tw-gradient-to: #1F2937 var(--tw-gradient-to-position); -} .dark\:to-purple-400:is(.dark *){ --tw-gradient-to: #AC94FA var(--tw-gradient-to-position); } @@ -5740,6 +5758,9 @@ button:hover{ .dark\:scrollbar-track-bg-dark-tone:is(.dark *){ --scrollbar-track: var(--color-bg-dark-tone) !important; } +.dark\:scrollbar-track-gray-700:is(.dark *){ + --scrollbar-track: #374151 !important; +} .dark\:scrollbar-track-gray-800:is(.dark *){ --scrollbar-track: #1F2937 !important; } @@ -5749,6 +5770,9 @@ button:hover{ .dark\:scrollbar-thumb-bg-dark-tone-panel:is(.dark *){ --scrollbar-thumb: var(--color-bg-dark-tone-panel) !important; } +.dark\:scrollbar-thumb-gray-500:is(.dark *){ + --scrollbar-thumb: #6B7280 !important; +} .dark\:scrollbar-thumb-gray-600:is(.dark *){ --scrollbar-thumb: #4B5563 !important; } @@ -5861,11 +5885,19 @@ button:hover{ .hover\:dark\:bg-bg-dark-tone-panel:is(.dark *):hover{ background-color: var(--color-bg-dark-tone-panel); } +.dark\:hover\:from-blue-400\/30:hover:is(.dark *){ + --tw-gradient-from: rgb(118 169 250 / 0.3) var(--tw-gradient-from-position); + --tw-gradient-to: rgb(118 169 250 / 0) var(--tw-gradient-to-position); + --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); +} .dark\:hover\:from-blue-900\/30:hover:is(.dark *){ --tw-gradient-from: rgb(35 56 118 / 0.3) var(--tw-gradient-from-position); --tw-gradient-to: rgb(35 56 118 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } +.dark\:hover\:to-purple-400\/30:hover:is(.dark *){ + --tw-gradient-to: rgb(172 148 250 / 0.3) var(--tw-gradient-to-position); +} .dark\:hover\:to-purple-900\/30:hover:is(.dark *){ --tw-gradient-to: rgb(74 29 150 / 0.3) var(--tw-gradient-to-position); } diff --git a/web/dist/themes/borg.css b/web/dist/themes/borg.css index d8793439f..6ed368ef3 100644 --- a/web/dist/themes/borg.css +++ b/web/dist/themes/borg.css @@ -1235,6 +1235,12 @@ body { -webkit-box-orient: vertical; -webkit-line-clamp: 3; } +.line-clamp-4{ + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 4; +} .block{ display: block; } @@ -1352,9 +1358,6 @@ body { .h-\[200px\]{ height: 200px; } -.h-\[220px\]{ - height: 220px; -} .h-auto{ height: auto; } @@ -1394,9 +1397,18 @@ body { .max-h-\[80vh\]{ max-height: 80vh; } +.max-h-\[90vh\]{ + max-height: 90vh; +} .max-h-full{ max-height: 100%; } +.min-h-0{ + min-height: 0px; +} +.min-h-\[220px\]{ + min-height: 220px; +} .min-h-\[500px\]{ min-height: 500px; } @@ -1472,6 +1484,9 @@ body { .w-4\/5{ width: 80%; } +.w-40{ + width: 10rem; +} .w-48{ width: 12rem; } @@ -1527,9 +1542,6 @@ body { .min-w-96{ min-width: 24rem; } -.min-w-\[120px\]{ - min-width: 120px; -} .min-w-\[14rem\]{ min-width: 14rem; } @@ -1629,9 +1641,6 @@ body { .origin-left{ transform-origin: left; } -.origin-top{ - transform-origin: top; -} .-translate-x-1\/2{ --tw-translate-x: -50%; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -1680,6 +1689,16 @@ body { --tw-rotate: 90deg; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); } +.scale-100{ + --tw-scale-x: 1; + --tw-scale-y: 1; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} +.scale-95{ + --tw-scale-x: .95; + --tw-scale-y: .95; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} .scale-x-0{ --tw-scale-x: 0; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -1822,6 +1841,9 @@ body { .gap-4{ gap: 1rem; } +.gap-6{ + gap: 1.5rem; +} .gap-8{ gap: 2rem; } @@ -1865,6 +1887,11 @@ body { margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(0.5rem * var(--tw-space-y-reverse)); } +.space-y-3 > :not([hidden]) ~ :not([hidden]){ + --tw-space-y-reverse: 0; + margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse))); + margin-bottom: calc(0.75rem * var(--tw-space-y-reverse)); +} .space-y-4 > :not([hidden]) ~ :not([hidden]){ --tw-space-y-reverse: 0; margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse))); @@ -2398,9 +2425,6 @@ body { .bg-opacity-70{ --tw-bg-opacity: 0.7; } -.bg-gradient-to-b{ - background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); -} .bg-gradient-to-br{ background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); } @@ -2500,11 +2524,6 @@ body { --tw-gradient-to: rgb(6 148 162 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } -.from-transparent{ - --tw-gradient-from: transparent var(--tw-gradient-from-position); - --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position); - --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); -} .from-5\%{ --tw-gradient-from-position: 5%; } @@ -2548,10 +2567,6 @@ body { --tw-gradient-to: rgb(4 116 129 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), #047481 var(--tw-gradient-via-position), var(--tw-gradient-to); } -.via-transparent{ - --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position); - --tw-gradient-stops: var(--tw-gradient-from), transparent var(--tw-gradient-via-position), var(--tw-gradient-to); -} .via-10\%{ --tw-gradient-via-position: 10%; } @@ -2609,9 +2624,6 @@ body { .to-transparent{ --tw-gradient-to: transparent var(--tw-gradient-to-position); } -.to-white{ - --tw-gradient-to: #ffffff var(--tw-gradient-to-position); -} .to-yellow-200{ --tw-gradient-to: #FCE96A var(--tw-gradient-to-position); } @@ -3515,6 +3527,9 @@ body { .scrollbar-track-bg-light-tone{ --scrollbar-track: var(--color-bg-light-tone) !important; } +.scrollbar-track-blue-100{ + --scrollbar-track: #E1EFFE !important; +} .scrollbar-track-gray-200{ --scrollbar-track: #E5E7EB !important; } @@ -3524,6 +3539,9 @@ body { .scrollbar-thumb-bg-light-tone-panel{ --scrollbar-thumb: var(--color-bg-light-tone-panel) !important; } +.scrollbar-thumb-blue-500{ + --scrollbar-thumb: #3F83F8 !important; +} .scrollbar-thumb-gray-400{ --scrollbar-thumb: #9CA3AF !important; } @@ -3954,6 +3972,45 @@ body{ 0% { background-position: -100% 0; } 100% { background-position: 100% 0; } } +.app-card{ + border-radius: 0.75rem; + border-width: 1px; + --tw-bg-opacity: 1; + background-color: rgb(225 239 254 / var(--tw-bg-opacity)); + padding: 1.5rem; + --tw-text-opacity: 1; + color: rgb(30 66 159 / var(--tw-text-opacity)); + --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); + box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); + transition-property: all; + transition-duration: 300ms; + transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); +} +.app-card:hover{ + --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color); + box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); +} +.app-card:is(.dark *){ + --tw-bg-opacity: 1; + background-color: rgb(30 66 159 / var(--tw-bg-opacity)); + --tw-text-opacity: 1; + color: rgb(225 239 254 / var(--tw-text-opacity)); +} +.app-card:hover{ + --tw-translate-y: -0.25rem; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} +button{ + transition-property: all; + transition-duration: 300ms; + transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); +} +button:hover{ + --tw-translate-y: -0.125rem; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} .scrollbar-thin { scrollbar-width: thin; scrollbar-color: #00ff00 #1a1a1a; @@ -4224,9 +4281,6 @@ body{ .group\/item:hover .group-hover\/item\:opacity-100{ opacity: 1; } -.group:hover .group-hover\:opacity-0{ - opacity: 0; -} .group:hover .group-hover\:opacity-100{ opacity: 1; } @@ -4453,6 +4507,11 @@ body{ --tw-gradient-to: rgb(235 245 255 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } +.hover\:from-blue-500\/20:hover{ + --tw-gradient-from: rgb(63 131 248 / 0.2) var(--tw-gradient-from-position); + --tw-gradient-to: rgb(63 131 248 / 0) var(--tw-gradient-to-position); + --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); +} .hover\:from-teal-200:hover{ --tw-gradient-from: #AFECEF var(--tw-gradient-from-position); --tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position); @@ -4464,6 +4523,9 @@ body{ .hover\:to-purple-50:hover{ --tw-gradient-to: #F6F5FF var(--tw-gradient-to-position); } +.hover\:to-purple-500\/20:hover{ + --tw-gradient-to: rgb(144 97 249 / 0.2) var(--tw-gradient-to-position); +} .hover\:text-blue-600:hover{ --tw-text-opacity: 1; color: rgb(28 100 242 / var(--tw-text-opacity)); @@ -4548,11 +4610,6 @@ body{ .hover\:no-underline:hover{ text-decoration-line: none; } -.hover\:shadow-lg:hover{ - --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); - box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); -} .hover\:shadow-md:hover{ --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color); @@ -5005,9 +5062,6 @@ body{ --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--color-bg-dark) var(--tw-gradient-via-position), var(--tw-gradient-to); } -.dark\:to-gray-800:is(.dark *){ - --tw-gradient-to: #1F2937 var(--tw-gradient-to-position); -} .dark\:to-purple-400:is(.dark *){ --tw-gradient-to: #AC94FA var(--tw-gradient-to-position); } @@ -5243,6 +5297,9 @@ body{ .dark\:scrollbar-track-bg-dark-tone:is(.dark *){ --scrollbar-track: var(--color-bg-dark-tone) !important; } +.dark\:scrollbar-track-gray-700:is(.dark *){ + --scrollbar-track: #374151 !important; +} .dark\:scrollbar-track-gray-800:is(.dark *){ --scrollbar-track: #1F2937 !important; } @@ -5252,6 +5309,9 @@ body{ .dark\:scrollbar-thumb-bg-dark-tone-panel:is(.dark *){ --scrollbar-thumb: var(--color-bg-dark-tone-panel) !important; } +.dark\:scrollbar-thumb-gray-500:is(.dark *){ + --scrollbar-thumb: #6B7280 !important; +} .dark\:scrollbar-thumb-gray-600:is(.dark *){ --scrollbar-thumb: #4B5563 !important; } @@ -5364,11 +5424,19 @@ body{ .hover\:dark\:bg-bg-dark-tone-panel:is(.dark *):hover{ background-color: var(--color-bg-dark-tone-panel); } +.dark\:hover\:from-blue-400\/30:hover:is(.dark *){ + --tw-gradient-from: rgb(118 169 250 / 0.3) var(--tw-gradient-from-position); + --tw-gradient-to: rgb(118 169 250 / 0) var(--tw-gradient-to-position); + --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); +} .dark\:hover\:from-blue-900\/30:hover:is(.dark *){ --tw-gradient-from: rgb(35 56 118 / 0.3) var(--tw-gradient-from-position); --tw-gradient-to: rgb(35 56 118 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } +.dark\:hover\:to-purple-400\/30:hover:is(.dark *){ + --tw-gradient-to: rgb(172 148 250 / 0.3) var(--tw-gradient-to-position); +} .dark\:hover\:to-purple-900\/30:hover:is(.dark *){ --tw-gradient-to: rgb(74 29 150 / 0.3) var(--tw-gradient-to-position); } @@ -5697,3 +5765,17 @@ body{ height: 24rem; } } + + + + + + + + + + + + + + diff --git a/web/dist/themes/default.css b/web/dist/themes/default.css index 4e20a0043..4c9a4ed73 100644 --- a/web/dist/themes/default.css +++ b/web/dist/themes/default.css @@ -1235,6 +1235,12 @@ body { -webkit-box-orient: vertical; -webkit-line-clamp: 3; } +.line-clamp-4{ + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 4; +} .block{ display: block; } @@ -1352,9 +1358,6 @@ body { .h-\[200px\]{ height: 200px; } -.h-\[220px\]{ - height: 220px; -} .h-auto{ height: auto; } @@ -1394,9 +1397,18 @@ body { .max-h-\[80vh\]{ max-height: 80vh; } +.max-h-\[90vh\]{ + max-height: 90vh; +} .max-h-full{ max-height: 100%; } +.min-h-0{ + min-height: 0px; +} +.min-h-\[220px\]{ + min-height: 220px; +} .min-h-\[500px\]{ min-height: 500px; } @@ -1472,6 +1484,9 @@ body { .w-4\/5{ width: 80%; } +.w-40{ + width: 10rem; +} .w-48{ width: 12rem; } @@ -1527,9 +1542,6 @@ body { .min-w-96{ min-width: 24rem; } -.min-w-\[120px\]{ - min-width: 120px; -} .min-w-\[14rem\]{ min-width: 14rem; } @@ -1629,9 +1641,6 @@ body { .origin-left{ transform-origin: left; } -.origin-top{ - transform-origin: top; -} .-translate-x-1\/2{ --tw-translate-x: -50%; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -1680,6 +1689,16 @@ body { --tw-rotate: 90deg; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); } +.scale-100{ + --tw-scale-x: 1; + --tw-scale-y: 1; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} +.scale-95{ + --tw-scale-x: .95; + --tw-scale-y: .95; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} .scale-x-0{ --tw-scale-x: 0; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -1822,6 +1841,9 @@ body { .gap-4{ gap: 1rem; } +.gap-6{ + gap: 1.5rem; +} .gap-8{ gap: 2rem; } @@ -1865,6 +1887,11 @@ body { margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(0.5rem * var(--tw-space-y-reverse)); } +.space-y-3 > :not([hidden]) ~ :not([hidden]){ + --tw-space-y-reverse: 0; + margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse))); + margin-bottom: calc(0.75rem * var(--tw-space-y-reverse)); +} .space-y-4 > :not([hidden]) ~ :not([hidden]){ --tw-space-y-reverse: 0; margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse))); @@ -2398,9 +2425,6 @@ body { .bg-opacity-70{ --tw-bg-opacity: 0.7; } -.bg-gradient-to-b{ - background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); -} .bg-gradient-to-br{ background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); } @@ -2500,11 +2524,6 @@ body { --tw-gradient-to: rgb(6 148 162 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } -.from-transparent{ - --tw-gradient-from: transparent var(--tw-gradient-from-position); - --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position); - --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); -} .from-5\%{ --tw-gradient-from-position: 5%; } @@ -2548,10 +2567,6 @@ body { --tw-gradient-to: rgb(4 116 129 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), #047481 var(--tw-gradient-via-position), var(--tw-gradient-to); } -.via-transparent{ - --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position); - --tw-gradient-stops: var(--tw-gradient-from), transparent var(--tw-gradient-via-position), var(--tw-gradient-to); -} .via-10\%{ --tw-gradient-via-position: 10%; } @@ -2609,9 +2624,6 @@ body { .to-transparent{ --tw-gradient-to: transparent var(--tw-gradient-to-position); } -.to-white{ - --tw-gradient-to: #ffffff var(--tw-gradient-to-position); -} .to-yellow-200{ --tw-gradient-to: #FCE96A var(--tw-gradient-to-position); } @@ -3515,6 +3527,9 @@ body { .scrollbar-track-bg-light-tone{ --scrollbar-track: var(--color-bg-light-tone) !important; } +.scrollbar-track-blue-100{ + --scrollbar-track: #E1EFFE !important; +} .scrollbar-track-gray-200{ --scrollbar-track: #E5E7EB !important; } @@ -3524,6 +3539,9 @@ body { .scrollbar-thumb-bg-light-tone-panel{ --scrollbar-thumb: var(--color-bg-light-tone-panel) !important; } +.scrollbar-thumb-blue-500{ + --scrollbar-thumb: #3F83F8 !important; +} .scrollbar-thumb-gray-400{ --scrollbar-thumb: #9CA3AF !important; } @@ -4114,20 +4132,23 @@ body:is(.dark *){ animation: bounce 2s infinite; } .app-card{ + border-radius: 0.75rem; + border-width: 1px; --tw-bg-opacity: 1; background-color: rgb(225 239 254 / var(--tw-bg-opacity)); + padding: 1.5rem; --tw-text-opacity: 1; color: rgb(30 66 159 / var(--tw-text-opacity)); - --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color); + --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); transition-property: all; transition-duration: 300ms; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); } .app-card:hover{ - --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); + --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); } .app-card:is(.dark *){ @@ -4636,9 +4657,6 @@ button:hover{ .group\/item:hover .group-hover\/item\:opacity-100{ opacity: 1; } -.group:hover .group-hover\:opacity-0{ - opacity: 0; -} .group:hover .group-hover\:opacity-100{ opacity: 1; } @@ -4865,6 +4883,11 @@ button:hover{ --tw-gradient-to: rgb(235 245 255 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } +.hover\:from-blue-500\/20:hover{ + --tw-gradient-from: rgb(63 131 248 / 0.2) var(--tw-gradient-from-position); + --tw-gradient-to: rgb(63 131 248 / 0) var(--tw-gradient-to-position); + --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); +} .hover\:from-teal-200:hover{ --tw-gradient-from: #AFECEF var(--tw-gradient-from-position); --tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position); @@ -4876,6 +4899,9 @@ button:hover{ .hover\:to-purple-50:hover{ --tw-gradient-to: #F6F5FF var(--tw-gradient-to-position); } +.hover\:to-purple-500\/20:hover{ + --tw-gradient-to: rgb(144 97 249 / 0.2) var(--tw-gradient-to-position); +} .hover\:text-blue-600:hover{ --tw-text-opacity: 1; color: rgb(28 100 242 / var(--tw-text-opacity)); @@ -4960,11 +4986,6 @@ button:hover{ .hover\:no-underline:hover{ text-decoration-line: none; } -.hover\:shadow-lg:hover{ - --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); - box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); -} .hover\:shadow-md:hover{ --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color); @@ -5417,9 +5438,6 @@ button:hover{ --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--color-bg-dark) var(--tw-gradient-via-position), var(--tw-gradient-to); } -.dark\:to-gray-800:is(.dark *){ - --tw-gradient-to: #1F2937 var(--tw-gradient-to-position); -} .dark\:to-purple-400:is(.dark *){ --tw-gradient-to: #AC94FA var(--tw-gradient-to-position); } @@ -5655,6 +5673,9 @@ button:hover{ .dark\:scrollbar-track-bg-dark-tone:is(.dark *){ --scrollbar-track: var(--color-bg-dark-tone) !important; } +.dark\:scrollbar-track-gray-700:is(.dark *){ + --scrollbar-track: #374151 !important; +} .dark\:scrollbar-track-gray-800:is(.dark *){ --scrollbar-track: #1F2937 !important; } @@ -5664,6 +5685,9 @@ button:hover{ .dark\:scrollbar-thumb-bg-dark-tone-panel:is(.dark *){ --scrollbar-thumb: var(--color-bg-dark-tone-panel) !important; } +.dark\:scrollbar-thumb-gray-500:is(.dark *){ + --scrollbar-thumb: #6B7280 !important; +} .dark\:scrollbar-thumb-gray-600:is(.dark *){ --scrollbar-thumb: #4B5563 !important; } @@ -5776,11 +5800,19 @@ button:hover{ .hover\:dark\:bg-bg-dark-tone-panel:is(.dark *):hover{ background-color: var(--color-bg-dark-tone-panel); } +.dark\:hover\:from-blue-400\/30:hover:is(.dark *){ + --tw-gradient-from: rgb(118 169 250 / 0.3) var(--tw-gradient-from-position); + --tw-gradient-to: rgb(118 169 250 / 0) var(--tw-gradient-to-position); + --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); +} .dark\:hover\:from-blue-900\/30:hover:is(.dark *){ --tw-gradient-from: rgb(35 56 118 / 0.3) var(--tw-gradient-from-position); --tw-gradient-to: rgb(35 56 118 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } +.dark\:hover\:to-purple-400\/30:hover:is(.dark *){ + --tw-gradient-to: rgb(172 148 250 / 0.3) var(--tw-gradient-to-position); +} .dark\:hover\:to-purple-900\/30:hover:is(.dark *){ --tw-gradient-to: rgb(74 29 150 / 0.3) var(--tw-gradient-to-position); } diff --git a/web/dist/themes/lollms_blue.css b/web/dist/themes/lollms_blue.css index baeb67535..74bf30df9 100644 --- a/web/dist/themes/lollms_blue.css +++ b/web/dist/themes/lollms_blue.css @@ -1240,6 +1240,12 @@ html{ -webkit-box-orient: vertical; -webkit-line-clamp: 3; } +.line-clamp-4{ + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 4; +} .block{ display: block; } @@ -1357,9 +1363,6 @@ html{ .h-\[200px\]{ height: 200px; } -.h-\[220px\]{ - height: 220px; -} .h-auto{ height: auto; } @@ -1399,9 +1402,18 @@ html{ .max-h-\[80vh\]{ max-height: 80vh; } +.max-h-\[90vh\]{ + max-height: 90vh; +} .max-h-full{ max-height: 100%; } +.min-h-0{ + min-height: 0px; +} +.min-h-\[220px\]{ + min-height: 220px; +} .min-h-\[500px\]{ min-height: 500px; } @@ -1477,6 +1489,9 @@ html{ .w-4\/5{ width: 80%; } +.w-40{ + width: 10rem; +} .w-48{ width: 12rem; } @@ -1532,9 +1547,6 @@ html{ .min-w-96{ min-width: 24rem; } -.min-w-\[120px\]{ - min-width: 120px; -} .min-w-\[14rem\]{ min-width: 14rem; } @@ -1634,9 +1646,6 @@ html{ .origin-left{ transform-origin: left; } -.origin-top{ - transform-origin: top; -} .-translate-x-1\/2{ --tw-translate-x: -50%; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -1685,6 +1694,16 @@ html{ --tw-rotate: 90deg; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); } +.scale-100{ + --tw-scale-x: 1; + --tw-scale-y: 1; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} +.scale-95{ + --tw-scale-x: .95; + --tw-scale-y: .95; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} .scale-x-0{ --tw-scale-x: 0; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -1827,6 +1846,9 @@ html{ .gap-4{ gap: 1rem; } +.gap-6{ + gap: 1.5rem; +} .gap-8{ gap: 2rem; } @@ -1870,6 +1892,11 @@ html{ margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(0.5rem * var(--tw-space-y-reverse)); } +.space-y-3 > :not([hidden]) ~ :not([hidden]){ + --tw-space-y-reverse: 0; + margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse))); + margin-bottom: calc(0.75rem * var(--tw-space-y-reverse)); +} .space-y-4 > :not([hidden]) ~ :not([hidden]){ --tw-space-y-reverse: 0; margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse))); @@ -2403,9 +2430,6 @@ html{ .bg-opacity-70{ --tw-bg-opacity: 0.7; } -.bg-gradient-to-b{ - background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); -} .bg-gradient-to-br{ background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); } @@ -2505,11 +2529,6 @@ html{ --tw-gradient-to: rgb(6 148 162 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } -.from-transparent{ - --tw-gradient-from: transparent var(--tw-gradient-from-position); - --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position); - --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); -} .from-5\%{ --tw-gradient-from-position: 5%; } @@ -2553,10 +2572,6 @@ html{ --tw-gradient-to: rgb(4 116 129 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), #047481 var(--tw-gradient-via-position), var(--tw-gradient-to); } -.via-transparent{ - --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position); - --tw-gradient-stops: var(--tw-gradient-from), transparent var(--tw-gradient-via-position), var(--tw-gradient-to); -} .via-10\%{ --tw-gradient-via-position: 10%; } @@ -2614,9 +2629,6 @@ html{ .to-transparent{ --tw-gradient-to: transparent var(--tw-gradient-to-position); } -.to-white{ - --tw-gradient-to: #ffffff var(--tw-gradient-to-position); -} .to-yellow-200{ --tw-gradient-to: #FCE96A var(--tw-gradient-to-position); } @@ -3520,6 +3532,9 @@ html{ .scrollbar-track-bg-light-tone{ --scrollbar-track: var(--color-bg-light-tone) !important; } +.scrollbar-track-blue-100{ + --scrollbar-track: #E1EFFE !important; +} .scrollbar-track-gray-200{ --scrollbar-track: #E5E7EB !important; } @@ -3529,6 +3544,9 @@ html{ .scrollbar-thumb-bg-light-tone-panel{ --scrollbar-thumb: var(--color-bg-light-tone-panel) !important; } +.scrollbar-thumb-blue-500{ + --scrollbar-thumb: #3F83F8 !important; +} .scrollbar-thumb-gray-400{ --scrollbar-thumb: #9CA3AF !important; } @@ -4174,23 +4192,26 @@ body { /* Added text-base for default body text */ } } .app-card{ + border-radius: 0.75rem; + border-width: 1px; background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); --tw-gradient-from: #C3DDFD var(--tw-gradient-from-position); --tw-gradient-to: rgb(195 221 253 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); --tw-gradient-to: #A4CAFE var(--tw-gradient-to-position); + padding: 1.5rem; --tw-text-opacity: 1; color: rgb(31 41 55 / var(--tw-text-opacity)); - --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color); + --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); transition-property: all; transition-duration: 300ms; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); } .app-card:hover{ - --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); + --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); } .app-card:is(.dark *){ @@ -4703,9 +4724,6 @@ button:hover{ .group\/item:hover .group-hover\/item\:opacity-100{ opacity: 1; } -.group:hover .group-hover\:opacity-0{ - opacity: 0; -} .group:hover .group-hover\:opacity-100{ opacity: 1; } @@ -4932,6 +4950,11 @@ button:hover{ --tw-gradient-to: rgb(235 245 255 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } +.hover\:from-blue-500\/20:hover{ + --tw-gradient-from: rgb(63 131 248 / 0.2) var(--tw-gradient-from-position); + --tw-gradient-to: rgb(63 131 248 / 0) var(--tw-gradient-to-position); + --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); +} .hover\:from-teal-200:hover{ --tw-gradient-from: #AFECEF var(--tw-gradient-from-position); --tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position); @@ -4943,6 +4966,9 @@ button:hover{ .hover\:to-purple-50:hover{ --tw-gradient-to: #F6F5FF var(--tw-gradient-to-position); } +.hover\:to-purple-500\/20:hover{ + --tw-gradient-to: rgb(144 97 249 / 0.2) var(--tw-gradient-to-position); +} .hover\:text-blue-600:hover{ --tw-text-opacity: 1; color: rgb(28 100 242 / var(--tw-text-opacity)); @@ -5027,11 +5053,6 @@ button:hover{ .hover\:no-underline:hover{ text-decoration-line: none; } -.hover\:shadow-lg:hover{ - --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); - box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); -} .hover\:shadow-md:hover{ --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color); @@ -5484,9 +5505,6 @@ button:hover{ --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--color-bg-dark) var(--tw-gradient-via-position), var(--tw-gradient-to); } -.dark\:to-gray-800:is(.dark *){ - --tw-gradient-to: #1F2937 var(--tw-gradient-to-position); -} .dark\:to-purple-400:is(.dark *){ --tw-gradient-to: #AC94FA var(--tw-gradient-to-position); } @@ -5722,6 +5740,9 @@ button:hover{ .dark\:scrollbar-track-bg-dark-tone:is(.dark *){ --scrollbar-track: var(--color-bg-dark-tone) !important; } +.dark\:scrollbar-track-gray-700:is(.dark *){ + --scrollbar-track: #374151 !important; +} .dark\:scrollbar-track-gray-800:is(.dark *){ --scrollbar-track: #1F2937 !important; } @@ -5731,6 +5752,9 @@ button:hover{ .dark\:scrollbar-thumb-bg-dark-tone-panel:is(.dark *){ --scrollbar-thumb: var(--color-bg-dark-tone-panel) !important; } +.dark\:scrollbar-thumb-gray-500:is(.dark *){ + --scrollbar-thumb: #6B7280 !important; +} .dark\:scrollbar-thumb-gray-600:is(.dark *){ --scrollbar-thumb: #4B5563 !important; } @@ -5843,11 +5867,19 @@ button:hover{ .hover\:dark\:bg-bg-dark-tone-panel:is(.dark *):hover{ background-color: var(--color-bg-dark-tone-panel); } +.dark\:hover\:from-blue-400\/30:hover:is(.dark *){ + --tw-gradient-from: rgb(118 169 250 / 0.3) var(--tw-gradient-from-position); + --tw-gradient-to: rgb(118 169 250 / 0) var(--tw-gradient-to-position); + --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); +} .dark\:hover\:from-blue-900\/30:hover:is(.dark *){ --tw-gradient-from: rgb(35 56 118 / 0.3) var(--tw-gradient-from-position); --tw-gradient-to: rgb(35 56 118 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } +.dark\:hover\:to-purple-400\/30:hover:is(.dark *){ + --tw-gradient-to: rgb(172 148 250 / 0.3) var(--tw-gradient-to-position); +} .dark\:hover\:to-purple-900\/30:hover:is(.dark *){ --tw-gradient-to: rgb(74 29 150 / 0.3) var(--tw-gradient-to-position); } diff --git a/web/dist/themes/matrix_reborn.css b/web/dist/themes/matrix_reborn.css index e42563827..7f252db0d 100644 --- a/web/dist/themes/matrix_reborn.css +++ b/web/dist/themes/matrix_reborn.css @@ -1509,6 +1509,13 @@ body { -webkit-line-clamp: 3; } +.line-clamp-4{ + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 4; +} + .block{ display: block; } @@ -1665,10 +1672,6 @@ body { height: 200px; } -.h-\[220px\]{ - height: 220px; -} - .h-auto{ height: auto; } @@ -1721,10 +1724,22 @@ body { max-height: 80vh; } +.max-h-\[90vh\]{ + max-height: 90vh; +} + .max-h-full{ max-height: 100%; } +.min-h-0{ + min-height: 0px; +} + +.min-h-\[220px\]{ + min-height: 220px; +} + .min-h-\[500px\]{ min-height: 500px; } @@ -1825,6 +1840,10 @@ body { width: 80%; } +.w-40{ + width: 10rem; +} + .w-48{ width: 12rem; } @@ -1898,10 +1917,6 @@ body { min-width: 24rem; } -.min-w-\[120px\]{ - min-width: 120px; -} - .min-w-\[14rem\]{ min-width: 14rem; } @@ -2034,10 +2049,6 @@ body { transform-origin: left; } -.origin-top{ - transform-origin: top; -} - .-translate-x-1\/2{ --tw-translate-x: -50%; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -2098,6 +2109,18 @@ body { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); } +.scale-100{ + --tw-scale-x: 1; + --tw-scale-y: 1; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} + +.scale-95{ + --tw-scale-x: .95; + --tw-scale-y: .95; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} + .scale-x-0{ --tw-scale-x: 0; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -2286,6 +2309,10 @@ body { gap: 1rem; } +.gap-6{ + gap: 1.5rem; +} + .gap-8{ gap: 2rem; } @@ -2338,6 +2365,12 @@ body { margin-bottom: calc(0.5rem * var(--tw-space-y-reverse)); } +.space-y-3 > :not([hidden]) ~ :not([hidden]){ + --tw-space-y-reverse: 0; + margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse))); + margin-bottom: calc(0.75rem * var(--tw-space-y-reverse)); +} + .space-y-4 > :not([hidden]) ~ :not([hidden]){ --tw-space-y-reverse: 0; margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse))); @@ -3016,10 +3049,6 @@ body { --tw-bg-opacity: 0.7; } -.bg-gradient-to-b{ - background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); -} - .bg-gradient-to-br{ background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); } @@ -3140,12 +3169,6 @@ body { --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } -.from-transparent{ - --tw-gradient-from: transparent var(--tw-gradient-from-position); - --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position); - --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); -} - .from-5\%{ --tw-gradient-from-position: 5%; } @@ -3200,11 +3223,6 @@ body { --tw-gradient-stops: var(--tw-gradient-from), #047481 var(--tw-gradient-via-position), var(--tw-gradient-to); } -.via-transparent{ - --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position); - --tw-gradient-stops: var(--tw-gradient-from), transparent var(--tw-gradient-via-position), var(--tw-gradient-to); -} - .via-10\%{ --tw-gradient-via-position: 10%; } @@ -3281,10 +3299,6 @@ body { --tw-gradient-to: transparent var(--tw-gradient-to-position); } -.to-white{ - --tw-gradient-to: #ffffff var(--tw-gradient-to-position); -} - .to-yellow-200{ --tw-gradient-to: #FCE96A var(--tw-gradient-to-position); } @@ -4435,6 +4449,10 @@ body { --scrollbar-track: var(--color-bg-light-tone) !important; } +.scrollbar-track-blue-100{ + --scrollbar-track: #E1EFFE !important; +} + .scrollbar-track-gray-200{ --scrollbar-track: #E5E7EB !important; } @@ -4447,6 +4465,10 @@ body { --scrollbar-thumb: var(--color-bg-light-tone-panel) !important; } +.scrollbar-thumb-blue-500{ + --scrollbar-thumb: #3F83F8 !important; +} + .scrollbar-thumb-gray-400{ --scrollbar-thumb: #9CA3AF !important; } @@ -5162,15 +5184,17 @@ body:is(.dark *){ } .app-card{ + border-radius: 0.75rem; border-width: 1px; --tw-border-opacity: 1; border-color: rgb(14 159 110 / var(--tw-border-opacity)); --tw-bg-opacity: 1; background-color: rgb(0 0 0 / var(--tw-bg-opacity)); + padding: 1.5rem; --tw-text-opacity: 1; color: rgb(49 196 141 / var(--tw-text-opacity)); - --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color); + --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); transition-property: all; transition-duration: 300ms; @@ -5178,8 +5202,8 @@ body:is(.dark *){ } .app-card:hover{ - --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); + --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); } @@ -5783,10 +5807,6 @@ button:hover{ opacity: 1; } -.group:hover .group-hover\:opacity-0{ - opacity: 0; -} - .group:hover .group-hover\:opacity-100{ opacity: 1; } @@ -6073,6 +6093,12 @@ button:hover{ --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } +.hover\:from-blue-500\/20:hover{ + --tw-gradient-from: rgb(63 131 248 / 0.2) var(--tw-gradient-from-position); + --tw-gradient-to: rgb(63 131 248 / 0) var(--tw-gradient-to-position); + --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); +} + .hover\:from-teal-200:hover{ --tw-gradient-from: #AFECEF var(--tw-gradient-from-position); --tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position); @@ -6087,6 +6113,10 @@ button:hover{ --tw-gradient-to: #F6F5FF var(--tw-gradient-to-position); } +.hover\:to-purple-500\/20:hover{ + --tw-gradient-to: rgb(144 97 249 / 0.2) var(--tw-gradient-to-position); +} + .hover\:text-blue-600:hover{ --tw-text-opacity: 1; color: rgb(28 100 242 / var(--tw-text-opacity)); @@ -6193,12 +6223,6 @@ button:hover{ text-decoration-line: none; } -.hover\:shadow-lg:hover{ - --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); - box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); -} - .hover\:shadow-md:hover{ --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color); @@ -6765,10 +6789,6 @@ button:hover{ --tw-gradient-stops: var(--tw-gradient-from), var(--color-bg-dark) var(--tw-gradient-via-position), var(--tw-gradient-to); } -.dark\:to-gray-800:is(.dark *){ - --tw-gradient-to: #1F2937 var(--tw-gradient-to-position); -} - .dark\:to-purple-400:is(.dark *){ --tw-gradient-to: #AC94FA var(--tw-gradient-to-position); } @@ -7065,6 +7085,10 @@ button:hover{ --scrollbar-track: var(--color-bg-dark-tone) !important; } +.dark\:scrollbar-track-gray-700:is(.dark *){ + --scrollbar-track: #374151 !important; +} + .dark\:scrollbar-track-gray-800:is(.dark *){ --scrollbar-track: #1F2937 !important; } @@ -7077,6 +7101,10 @@ button:hover{ --scrollbar-thumb: var(--color-bg-dark-tone-panel) !important; } +.dark\:scrollbar-thumb-gray-500:is(.dark *){ + --scrollbar-thumb: #6B7280 !important; +} + .dark\:scrollbar-thumb-gray-600:is(.dark *){ --scrollbar-thumb: #4B5563 !important; } @@ -7219,12 +7247,22 @@ button:hover{ background-color: var(--color-bg-dark-tone-panel); } +.dark\:hover\:from-blue-400\/30:hover:is(.dark *){ + --tw-gradient-from: rgb(118 169 250 / 0.3) var(--tw-gradient-from-position); + --tw-gradient-to: rgb(118 169 250 / 0) var(--tw-gradient-to-position); + --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); +} + .dark\:hover\:from-blue-900\/30:hover:is(.dark *){ --tw-gradient-from: rgb(35 56 118 / 0.3) var(--tw-gradient-from-position); --tw-gradient-to: rgb(35 56 118 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } +.dark\:hover\:to-purple-400\/30:hover:is(.dark *){ + --tw-gradient-to: rgb(172 148 250 / 0.3) var(--tw-gradient-to-position); +} + .dark\:hover\:to-purple-900\/30:hover:is(.dark *){ --tw-gradient-to: rgb(74 29 150 / 0.3) var(--tw-gradient-to-position); } diff --git a/web/dist/themes/red_dragon.css b/web/dist/themes/red_dragon.css index 082a5ff2d..7d2239657 100644 --- a/web/dist/themes/red_dragon.css +++ b/web/dist/themes/red_dragon.css @@ -1509,6 +1509,13 @@ body { -webkit-line-clamp: 3; } +.line-clamp-4{ + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 4; +} + .block{ display: block; } @@ -1665,10 +1672,6 @@ body { height: 200px; } -.h-\[220px\]{ - height: 220px; -} - .h-auto{ height: auto; } @@ -1721,10 +1724,22 @@ body { max-height: 80vh; } +.max-h-\[90vh\]{ + max-height: 90vh; +} + .max-h-full{ max-height: 100%; } +.min-h-0{ + min-height: 0px; +} + +.min-h-\[220px\]{ + min-height: 220px; +} + .min-h-\[500px\]{ min-height: 500px; } @@ -1825,6 +1840,10 @@ body { width: 80%; } +.w-40{ + width: 10rem; +} + .w-48{ width: 12rem; } @@ -1898,10 +1917,6 @@ body { min-width: 24rem; } -.min-w-\[120px\]{ - min-width: 120px; -} - .min-w-\[14rem\]{ min-width: 14rem; } @@ -2034,10 +2049,6 @@ body { transform-origin: left; } -.origin-top{ - transform-origin: top; -} - .-translate-x-1\/2{ --tw-translate-x: -50%; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -2098,6 +2109,18 @@ body { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); } +.scale-100{ + --tw-scale-x: 1; + --tw-scale-y: 1; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} + +.scale-95{ + --tw-scale-x: .95; + --tw-scale-y: .95; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} + .scale-x-0{ --tw-scale-x: 0; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -2286,6 +2309,10 @@ body { gap: 1rem; } +.gap-6{ + gap: 1.5rem; +} + .gap-8{ gap: 2rem; } @@ -2338,6 +2365,12 @@ body { margin-bottom: calc(0.5rem * var(--tw-space-y-reverse)); } +.space-y-3 > :not([hidden]) ~ :not([hidden]){ + --tw-space-y-reverse: 0; + margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse))); + margin-bottom: calc(0.75rem * var(--tw-space-y-reverse)); +} + .space-y-4 > :not([hidden]) ~ :not([hidden]){ --tw-space-y-reverse: 0; margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse))); @@ -3016,10 +3049,6 @@ body { --tw-bg-opacity: 0.7; } -.bg-gradient-to-b{ - background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); -} - .bg-gradient-to-br{ background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); } @@ -3140,12 +3169,6 @@ body { --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } -.from-transparent{ - --tw-gradient-from: transparent var(--tw-gradient-from-position); - --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position); - --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); -} - .from-5\%{ --tw-gradient-from-position: 5%; } @@ -3200,11 +3223,6 @@ body { --tw-gradient-stops: var(--tw-gradient-from), #047481 var(--tw-gradient-via-position), var(--tw-gradient-to); } -.via-transparent{ - --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position); - --tw-gradient-stops: var(--tw-gradient-from), transparent var(--tw-gradient-via-position), var(--tw-gradient-to); -} - .via-10\%{ --tw-gradient-via-position: 10%; } @@ -3281,10 +3299,6 @@ body { --tw-gradient-to: transparent var(--tw-gradient-to-position); } -.to-white{ - --tw-gradient-to: #ffffff var(--tw-gradient-to-position); -} - .to-yellow-200{ --tw-gradient-to: #FCE96A var(--tw-gradient-to-position); } @@ -4435,6 +4449,10 @@ body { --scrollbar-track: var(--color-bg-light-tone) !important; } +.scrollbar-track-blue-100{ + --scrollbar-track: #E1EFFE !important; +} + .scrollbar-track-gray-200{ --scrollbar-track: #E5E7EB !important; } @@ -4447,6 +4465,10 @@ body { --scrollbar-thumb: var(--color-bg-light-tone-panel) !important; } +.scrollbar-thumb-blue-500{ + --scrollbar-thumb: #3F83F8 !important; +} + .scrollbar-thumb-gray-400{ --scrollbar-thumb: #9CA3AF !important; } @@ -5126,12 +5148,15 @@ body:is(.dark *){ } .app-card{ + border-radius: 0.75rem; + border-width: 1px; --tw-bg-opacity: 1; background-color: rgb(253 232 232 / var(--tw-bg-opacity)); + padding: 1.5rem; --tw-text-opacity: 1; color: rgb(155 28 28 / var(--tw-text-opacity)); - --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color); + --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); transition-property: all; transition-duration: 300ms; @@ -5139,8 +5164,8 @@ body:is(.dark *){ } .app-card:hover{ - --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); + --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); } @@ -5752,10 +5777,6 @@ button:hover{ opacity: 1; } -.group:hover .group-hover\:opacity-0{ - opacity: 0; -} - .group:hover .group-hover\:opacity-100{ opacity: 1; } @@ -6042,6 +6063,12 @@ button:hover{ --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } +.hover\:from-blue-500\/20:hover{ + --tw-gradient-from: rgb(63 131 248 / 0.2) var(--tw-gradient-from-position); + --tw-gradient-to: rgb(63 131 248 / 0) var(--tw-gradient-to-position); + --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); +} + .hover\:from-teal-200:hover{ --tw-gradient-from: #AFECEF var(--tw-gradient-from-position); --tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position); @@ -6056,6 +6083,10 @@ button:hover{ --tw-gradient-to: #F6F5FF var(--tw-gradient-to-position); } +.hover\:to-purple-500\/20:hover{ + --tw-gradient-to: rgb(144 97 249 / 0.2) var(--tw-gradient-to-position); +} + .hover\:text-blue-600:hover{ --tw-text-opacity: 1; color: rgb(28 100 242 / var(--tw-text-opacity)); @@ -6162,12 +6193,6 @@ button:hover{ text-decoration-line: none; } -.hover\:shadow-lg:hover{ - --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); - box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); -} - .hover\:shadow-md:hover{ --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color); @@ -6734,10 +6759,6 @@ button:hover{ --tw-gradient-stops: var(--tw-gradient-from), var(--color-bg-dark) var(--tw-gradient-via-position), var(--tw-gradient-to); } -.dark\:to-gray-800:is(.dark *){ - --tw-gradient-to: #1F2937 var(--tw-gradient-to-position); -} - .dark\:to-purple-400:is(.dark *){ --tw-gradient-to: #AC94FA var(--tw-gradient-to-position); } @@ -7034,6 +7055,10 @@ button:hover{ --scrollbar-track: var(--color-bg-dark-tone) !important; } +.dark\:scrollbar-track-gray-700:is(.dark *){ + --scrollbar-track: #374151 !important; +} + .dark\:scrollbar-track-gray-800:is(.dark *){ --scrollbar-track: #1F2937 !important; } @@ -7046,6 +7071,10 @@ button:hover{ --scrollbar-thumb: var(--color-bg-dark-tone-panel) !important; } +.dark\:scrollbar-thumb-gray-500:is(.dark *){ + --scrollbar-thumb: #6B7280 !important; +} + .dark\:scrollbar-thumb-gray-600:is(.dark *){ --scrollbar-thumb: #4B5563 !important; } @@ -7188,12 +7217,22 @@ button:hover{ background-color: var(--color-bg-dark-tone-panel); } +.dark\:hover\:from-blue-400\/30:hover:is(.dark *){ + --tw-gradient-from: rgb(118 169 250 / 0.3) var(--tw-gradient-from-position); + --tw-gradient-to: rgb(118 169 250 / 0) var(--tw-gradient-to-position); + --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); +} + .dark\:hover\:from-blue-900\/30:hover:is(.dark *){ --tw-gradient-from: rgb(35 56 118 / 0.3) var(--tw-gradient-from-position); --tw-gradient-to: rgb(35 56 118 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } +.dark\:hover\:to-purple-400\/30:hover:is(.dark *){ + --tw-gradient-to: rgb(172 148 250 / 0.3) var(--tw-gradient-to-position); +} + .dark\:hover\:to-purple-900\/30:hover:is(.dark *){ --tw-gradient-to: rgb(74 29 150 / 0.3) var(--tw-gradient-to-position); } diff --git a/web/dist/themes/sober_gray.css b/web/dist/themes/sober_gray.css index b76625095..40b177ba5 100644 --- a/web/dist/themes/sober_gray.css +++ b/web/dist/themes/sober_gray.css @@ -1235,6 +1235,12 @@ body { -webkit-box-orient: vertical; -webkit-line-clamp: 3; } +.line-clamp-4{ + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 4; +} .block{ display: block; } @@ -1352,9 +1358,6 @@ body { .h-\[200px\]{ height: 200px; } -.h-\[220px\]{ - height: 220px; -} .h-auto{ height: auto; } @@ -1394,9 +1397,18 @@ body { .max-h-\[80vh\]{ max-height: 80vh; } +.max-h-\[90vh\]{ + max-height: 90vh; +} .max-h-full{ max-height: 100%; } +.min-h-0{ + min-height: 0px; +} +.min-h-\[220px\]{ + min-height: 220px; +} .min-h-\[500px\]{ min-height: 500px; } @@ -1472,6 +1484,9 @@ body { .w-4\/5{ width: 80%; } +.w-40{ + width: 10rem; +} .w-48{ width: 12rem; } @@ -1527,9 +1542,6 @@ body { .min-w-96{ min-width: 24rem; } -.min-w-\[120px\]{ - min-width: 120px; -} .min-w-\[14rem\]{ min-width: 14rem; } @@ -1629,9 +1641,6 @@ body { .origin-left{ transform-origin: left; } -.origin-top{ - transform-origin: top; -} .-translate-x-1\/2{ --tw-translate-x: -50%; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -1680,6 +1689,16 @@ body { --tw-rotate: 90deg; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); } +.scale-100{ + --tw-scale-x: 1; + --tw-scale-y: 1; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} +.scale-95{ + --tw-scale-x: .95; + --tw-scale-y: .95; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} .scale-x-0{ --tw-scale-x: 0; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -1822,6 +1841,9 @@ body { .gap-4{ gap: 1rem; } +.gap-6{ + gap: 1.5rem; +} .gap-8{ gap: 2rem; } @@ -1865,6 +1887,11 @@ body { margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(0.5rem * var(--tw-space-y-reverse)); } +.space-y-3 > :not([hidden]) ~ :not([hidden]){ + --tw-space-y-reverse: 0; + margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse))); + margin-bottom: calc(0.75rem * var(--tw-space-y-reverse)); +} .space-y-4 > :not([hidden]) ~ :not([hidden]){ --tw-space-y-reverse: 0; margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse))); @@ -2398,9 +2425,6 @@ body { .bg-opacity-70{ --tw-bg-opacity: 0.7; } -.bg-gradient-to-b{ - background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); -} .bg-gradient-to-br{ background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); } @@ -2500,11 +2524,6 @@ body { --tw-gradient-to: rgb(6 148 162 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } -.from-transparent{ - --tw-gradient-from: transparent var(--tw-gradient-from-position); - --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position); - --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); -} .from-5\%{ --tw-gradient-from-position: 5%; } @@ -2548,10 +2567,6 @@ body { --tw-gradient-to: rgb(4 116 129 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), #047481 var(--tw-gradient-via-position), var(--tw-gradient-to); } -.via-transparent{ - --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position); - --tw-gradient-stops: var(--tw-gradient-from), transparent var(--tw-gradient-via-position), var(--tw-gradient-to); -} .via-10\%{ --tw-gradient-via-position: 10%; } @@ -2609,9 +2624,6 @@ body { .to-transparent{ --tw-gradient-to: transparent var(--tw-gradient-to-position); } -.to-white{ - --tw-gradient-to: #ffffff var(--tw-gradient-to-position); -} .to-yellow-200{ --tw-gradient-to: #FCE96A var(--tw-gradient-to-position); } @@ -3515,6 +3527,9 @@ body { .scrollbar-track-bg-light-tone{ --scrollbar-track: var(--color-bg-light-tone) !important; } +.scrollbar-track-blue-100{ + --scrollbar-track: #E1EFFE !important; +} .scrollbar-track-gray-200{ --scrollbar-track: #E5E7EB !important; } @@ -3524,6 +3539,9 @@ body { .scrollbar-thumb-bg-light-tone-panel{ --scrollbar-thumb: var(--color-bg-light-tone-panel) !important; } +.scrollbar-thumb-blue-500{ + --scrollbar-thumb: #3F83F8 !important; +} .scrollbar-thumb-gray-400{ --scrollbar-thumb: #9CA3AF !important; } @@ -4106,20 +4124,23 @@ body:is(.dark *){ animation: bounce 2s infinite; } .app-card{ + border-radius: 0.75rem; + border-width: 1px; --tw-bg-opacity: 1; background-color: rgb(243 244 246 / var(--tw-bg-opacity)); + padding: 1.5rem; --tw-text-opacity: 1; color: rgb(31 41 55 / var(--tw-text-opacity)); - --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color); + --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); transition-property: all; transition-duration: 300ms; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); } .app-card:hover{ - --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); + --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); } .app-card:is(.dark *){ @@ -4629,9 +4650,6 @@ button:hover{ .group\/item:hover .group-hover\/item\:opacity-100{ opacity: 1; } -.group:hover .group-hover\:opacity-0{ - opacity: 0; -} .group:hover .group-hover\:opacity-100{ opacity: 1; } @@ -4858,6 +4876,11 @@ button:hover{ --tw-gradient-to: rgb(235 245 255 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } +.hover\:from-blue-500\/20:hover{ + --tw-gradient-from: rgb(63 131 248 / 0.2) var(--tw-gradient-from-position); + --tw-gradient-to: rgb(63 131 248 / 0) var(--tw-gradient-to-position); + --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); +} .hover\:from-teal-200:hover{ --tw-gradient-from: #AFECEF var(--tw-gradient-from-position); --tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position); @@ -4869,6 +4892,9 @@ button:hover{ .hover\:to-purple-50:hover{ --tw-gradient-to: #F6F5FF var(--tw-gradient-to-position); } +.hover\:to-purple-500\/20:hover{ + --tw-gradient-to: rgb(144 97 249 / 0.2) var(--tw-gradient-to-position); +} .hover\:text-blue-600:hover{ --tw-text-opacity: 1; color: rgb(28 100 242 / var(--tw-text-opacity)); @@ -4953,11 +4979,6 @@ button:hover{ .hover\:no-underline:hover{ text-decoration-line: none; } -.hover\:shadow-lg:hover{ - --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); - box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); -} .hover\:shadow-md:hover{ --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color); @@ -5410,9 +5431,6 @@ button:hover{ --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--color-bg-dark) var(--tw-gradient-via-position), var(--tw-gradient-to); } -.dark\:to-gray-800:is(.dark *){ - --tw-gradient-to: #1F2937 var(--tw-gradient-to-position); -} .dark\:to-purple-400:is(.dark *){ --tw-gradient-to: #AC94FA var(--tw-gradient-to-position); } @@ -5648,6 +5666,9 @@ button:hover{ .dark\:scrollbar-track-bg-dark-tone:is(.dark *){ --scrollbar-track: var(--color-bg-dark-tone) !important; } +.dark\:scrollbar-track-gray-700:is(.dark *){ + --scrollbar-track: #374151 !important; +} .dark\:scrollbar-track-gray-800:is(.dark *){ --scrollbar-track: #1F2937 !important; } @@ -5657,6 +5678,9 @@ button:hover{ .dark\:scrollbar-thumb-bg-dark-tone-panel:is(.dark *){ --scrollbar-thumb: var(--color-bg-dark-tone-panel) !important; } +.dark\:scrollbar-thumb-gray-500:is(.dark *){ + --scrollbar-thumb: #6B7280 !important; +} .dark\:scrollbar-thumb-gray-600:is(.dark *){ --scrollbar-thumb: #4B5563 !important; } @@ -5769,11 +5793,19 @@ button:hover{ .hover\:dark\:bg-bg-dark-tone-panel:is(.dark *):hover{ background-color: var(--color-bg-dark-tone-panel); } +.dark\:hover\:from-blue-400\/30:hover:is(.dark *){ + --tw-gradient-from: rgb(118 169 250 / 0.3) var(--tw-gradient-from-position); + --tw-gradient-to: rgb(118 169 250 / 0) var(--tw-gradient-to-position); + --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); +} .dark\:hover\:from-blue-900\/30:hover:is(.dark *){ --tw-gradient-from: rgb(35 56 118 / 0.3) var(--tw-gradient-from-position); --tw-gradient-to: rgb(35 56 118 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } +.dark\:hover\:to-purple-400\/30:hover:is(.dark *){ + --tw-gradient-to: rgb(172 148 250 / 0.3) var(--tw-gradient-to-position); +} .dark\:hover\:to-purple-900\/30:hover:is(.dark *){ --tw-gradient-to: rgb(74 29 150 / 0.3) var(--tw-gradient-to-position); } diff --git a/web/dist/themes/strawberry.css b/web/dist/themes/strawberry.css index 64b52b9bd..e641da164 100644 --- a/web/dist/themes/strawberry.css +++ b/web/dist/themes/strawberry.css @@ -1240,6 +1240,12 @@ html{ -webkit-box-orient: vertical; -webkit-line-clamp: 3; } +.line-clamp-4{ + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 4; +} .block{ display: block; } @@ -1357,9 +1363,6 @@ html{ .h-\[200px\]{ height: 200px; } -.h-\[220px\]{ - height: 220px; -} .h-auto{ height: auto; } @@ -1399,9 +1402,18 @@ html{ .max-h-\[80vh\]{ max-height: 80vh; } +.max-h-\[90vh\]{ + max-height: 90vh; +} .max-h-full{ max-height: 100%; } +.min-h-0{ + min-height: 0px; +} +.min-h-\[220px\]{ + min-height: 220px; +} .min-h-\[500px\]{ min-height: 500px; } @@ -1477,6 +1489,9 @@ html{ .w-4\/5{ width: 80%; } +.w-40{ + width: 10rem; +} .w-48{ width: 12rem; } @@ -1532,9 +1547,6 @@ html{ .min-w-96{ min-width: 24rem; } -.min-w-\[120px\]{ - min-width: 120px; -} .min-w-\[14rem\]{ min-width: 14rem; } @@ -1634,9 +1646,6 @@ html{ .origin-left{ transform-origin: left; } -.origin-top{ - transform-origin: top; -} .-translate-x-1\/2{ --tw-translate-x: -50%; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -1685,6 +1694,16 @@ html{ --tw-rotate: 90deg; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); } +.scale-100{ + --tw-scale-x: 1; + --tw-scale-y: 1; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} +.scale-95{ + --tw-scale-x: .95; + --tw-scale-y: .95; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} .scale-x-0{ --tw-scale-x: 0; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -1827,6 +1846,9 @@ html{ .gap-4{ gap: 1rem; } +.gap-6{ + gap: 1.5rem; +} .gap-8{ gap: 2rem; } @@ -1870,6 +1892,11 @@ html{ margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(0.5rem * var(--tw-space-y-reverse)); } +.space-y-3 > :not([hidden]) ~ :not([hidden]){ + --tw-space-y-reverse: 0; + margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse))); + margin-bottom: calc(0.75rem * var(--tw-space-y-reverse)); +} .space-y-4 > :not([hidden]) ~ :not([hidden]){ --tw-space-y-reverse: 0; margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse))); @@ -2403,9 +2430,6 @@ html{ .bg-opacity-70{ --tw-bg-opacity: 0.7; } -.bg-gradient-to-b{ - background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); -} .bg-gradient-to-br{ background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); } @@ -2505,11 +2529,6 @@ html{ --tw-gradient-to: rgb(6 148 162 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } -.from-transparent{ - --tw-gradient-from: transparent var(--tw-gradient-from-position); - --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position); - --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); -} .from-5\%{ --tw-gradient-from-position: 5%; } @@ -2553,10 +2572,6 @@ html{ --tw-gradient-to: rgb(4 116 129 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), #047481 var(--tw-gradient-via-position), var(--tw-gradient-to); } -.via-transparent{ - --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position); - --tw-gradient-stops: var(--tw-gradient-from), transparent var(--tw-gradient-via-position), var(--tw-gradient-to); -} .via-10\%{ --tw-gradient-via-position: 10%; } @@ -2614,9 +2629,6 @@ html{ .to-transparent{ --tw-gradient-to: transparent var(--tw-gradient-to-position); } -.to-white{ - --tw-gradient-to: #ffffff var(--tw-gradient-to-position); -} .to-yellow-200{ --tw-gradient-to: #FCE96A var(--tw-gradient-to-position); } @@ -3520,6 +3532,9 @@ html{ .scrollbar-track-bg-light-tone{ --scrollbar-track: var(--color-bg-light-tone) !important; } +.scrollbar-track-blue-100{ + --scrollbar-track: #E1EFFE !important; +} .scrollbar-track-gray-200{ --scrollbar-track: #E5E7EB !important; } @@ -3529,6 +3544,9 @@ html{ .scrollbar-thumb-bg-light-tone-panel{ --scrollbar-thumb: var(--color-bg-light-tone-panel) !important; } +.scrollbar-thumb-blue-500{ + --scrollbar-thumb: #3F83F8 !important; +} .scrollbar-thumb-gray-400{ --scrollbar-thumb: #9CA3AF !important; } @@ -4194,23 +4212,26 @@ body { /* Added text-base for default body text */ } } .app-card{ + border-radius: 0.75rem; + border-width: 1px; background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); --tw-gradient-from: #C3DDFD var(--tw-gradient-from-position); --tw-gradient-to: rgb(195 221 253 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); --tw-gradient-to: #A4CAFE var(--tw-gradient-to-position); + padding: 1.5rem; --tw-text-opacity: 1; color: rgb(31 41 55 / var(--tw-text-opacity)); - --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color); + --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); transition-property: all; transition-duration: 300ms; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); } .app-card:hover{ - --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); + --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); } .app-card:is(.dark *){ @@ -4724,9 +4745,6 @@ button:hover{ .group\/item:hover .group-hover\/item\:opacity-100{ opacity: 1; } -.group:hover .group-hover\:opacity-0{ - opacity: 0; -} .group:hover .group-hover\:opacity-100{ opacity: 1; } @@ -4953,6 +4971,11 @@ button:hover{ --tw-gradient-to: rgb(235 245 255 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } +.hover\:from-blue-500\/20:hover{ + --tw-gradient-from: rgb(63 131 248 / 0.2) var(--tw-gradient-from-position); + --tw-gradient-to: rgb(63 131 248 / 0) var(--tw-gradient-to-position); + --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); +} .hover\:from-teal-200:hover{ --tw-gradient-from: #AFECEF var(--tw-gradient-from-position); --tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position); @@ -4964,6 +4987,9 @@ button:hover{ .hover\:to-purple-50:hover{ --tw-gradient-to: #F6F5FF var(--tw-gradient-to-position); } +.hover\:to-purple-500\/20:hover{ + --tw-gradient-to: rgb(144 97 249 / 0.2) var(--tw-gradient-to-position); +} .hover\:text-blue-600:hover{ --tw-text-opacity: 1; color: rgb(28 100 242 / var(--tw-text-opacity)); @@ -5048,11 +5074,6 @@ button:hover{ .hover\:no-underline:hover{ text-decoration-line: none; } -.hover\:shadow-lg:hover{ - --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); - box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); -} .hover\:shadow-md:hover{ --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color); @@ -5505,9 +5526,6 @@ button:hover{ --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--color-bg-dark) var(--tw-gradient-via-position), var(--tw-gradient-to); } -.dark\:to-gray-800:is(.dark *){ - --tw-gradient-to: #1F2937 var(--tw-gradient-to-position); -} .dark\:to-purple-400:is(.dark *){ --tw-gradient-to: #AC94FA var(--tw-gradient-to-position); } @@ -5743,6 +5761,9 @@ button:hover{ .dark\:scrollbar-track-bg-dark-tone:is(.dark *){ --scrollbar-track: var(--color-bg-dark-tone) !important; } +.dark\:scrollbar-track-gray-700:is(.dark *){ + --scrollbar-track: #374151 !important; +} .dark\:scrollbar-track-gray-800:is(.dark *){ --scrollbar-track: #1F2937 !important; } @@ -5752,6 +5773,9 @@ button:hover{ .dark\:scrollbar-thumb-bg-dark-tone-panel:is(.dark *){ --scrollbar-thumb: var(--color-bg-dark-tone-panel) !important; } +.dark\:scrollbar-thumb-gray-500:is(.dark *){ + --scrollbar-thumb: #6B7280 !important; +} .dark\:scrollbar-thumb-gray-600:is(.dark *){ --scrollbar-thumb: #4B5563 !important; } @@ -5864,11 +5888,19 @@ button:hover{ .hover\:dark\:bg-bg-dark-tone-panel:is(.dark *):hover{ background-color: var(--color-bg-dark-tone-panel); } +.dark\:hover\:from-blue-400\/30:hover:is(.dark *){ + --tw-gradient-from: rgb(118 169 250 / 0.3) var(--tw-gradient-from-position); + --tw-gradient-to: rgb(118 169 250 / 0) var(--tw-gradient-to-position); + --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); +} .dark\:hover\:from-blue-900\/30:hover:is(.dark *){ --tw-gradient-from: rgb(35 56 118 / 0.3) var(--tw-gradient-from-position); --tw-gradient-to: rgb(35 56 118 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } +.dark\:hover\:to-purple-400\/30:hover:is(.dark *){ + --tw-gradient-to: rgb(172 148 250 / 0.3) var(--tw-gradient-to-position); +} .dark\:hover\:to-purple-900\/30:hover:is(.dark *){ --tw-gradient-to: rgb(74 29 150 / 0.3) var(--tw-gradient-to-position); } diff --git a/web/dist/themes/strawberry_milkshake.css b/web/dist/themes/strawberry_milkshake.css index 83ab7d823..c95ddcc66 100644 --- a/web/dist/themes/strawberry_milkshake.css +++ b/web/dist/themes/strawberry_milkshake.css @@ -1509,6 +1509,13 @@ body { -webkit-line-clamp: 3; } +.line-clamp-4{ + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 4; +} + .block{ display: block; } @@ -1665,10 +1672,6 @@ body { height: 200px; } -.h-\[220px\]{ - height: 220px; -} - .h-auto{ height: auto; } @@ -1721,10 +1724,22 @@ body { max-height: 80vh; } +.max-h-\[90vh\]{ + max-height: 90vh; +} + .max-h-full{ max-height: 100%; } +.min-h-0{ + min-height: 0px; +} + +.min-h-\[220px\]{ + min-height: 220px; +} + .min-h-\[500px\]{ min-height: 500px; } @@ -1825,6 +1840,10 @@ body { width: 80%; } +.w-40{ + width: 10rem; +} + .w-48{ width: 12rem; } @@ -1898,10 +1917,6 @@ body { min-width: 24rem; } -.min-w-\[120px\]{ - min-width: 120px; -} - .min-w-\[14rem\]{ min-width: 14rem; } @@ -2034,10 +2049,6 @@ body { transform-origin: left; } -.origin-top{ - transform-origin: top; -} - .-translate-x-1\/2{ --tw-translate-x: -50%; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -2098,6 +2109,18 @@ body { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); } +.scale-100{ + --tw-scale-x: 1; + --tw-scale-y: 1; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} + +.scale-95{ + --tw-scale-x: .95; + --tw-scale-y: .95; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} + .scale-x-0{ --tw-scale-x: 0; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -2286,6 +2309,10 @@ body { gap: 1rem; } +.gap-6{ + gap: 1.5rem; +} + .gap-8{ gap: 2rem; } @@ -2338,6 +2365,12 @@ body { margin-bottom: calc(0.5rem * var(--tw-space-y-reverse)); } +.space-y-3 > :not([hidden]) ~ :not([hidden]){ + --tw-space-y-reverse: 0; + margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse))); + margin-bottom: calc(0.75rem * var(--tw-space-y-reverse)); +} + .space-y-4 > :not([hidden]) ~ :not([hidden]){ --tw-space-y-reverse: 0; margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse))); @@ -3016,10 +3049,6 @@ body { --tw-bg-opacity: 0.7; } -.bg-gradient-to-b{ - background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); -} - .bg-gradient-to-br{ background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); } @@ -3140,12 +3169,6 @@ body { --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } -.from-transparent{ - --tw-gradient-from: transparent var(--tw-gradient-from-position); - --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position); - --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); -} - .from-5\%{ --tw-gradient-from-position: 5%; } @@ -3200,11 +3223,6 @@ body { --tw-gradient-stops: var(--tw-gradient-from), #047481 var(--tw-gradient-via-position), var(--tw-gradient-to); } -.via-transparent{ - --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position); - --tw-gradient-stops: var(--tw-gradient-from), transparent var(--tw-gradient-via-position), var(--tw-gradient-to); -} - .via-10\%{ --tw-gradient-via-position: 10%; } @@ -3281,10 +3299,6 @@ body { --tw-gradient-to: transparent var(--tw-gradient-to-position); } -.to-white{ - --tw-gradient-to: #ffffff var(--tw-gradient-to-position); -} - .to-yellow-200{ --tw-gradient-to: #FCE96A var(--tw-gradient-to-position); } @@ -4435,6 +4449,10 @@ body { --scrollbar-track: var(--color-bg-light-tone) !important; } +.scrollbar-track-blue-100{ + --scrollbar-track: #E1EFFE !important; +} + .scrollbar-track-gray-200{ --scrollbar-track: #E5E7EB !important; } @@ -4447,6 +4465,10 @@ body { --scrollbar-thumb: var(--color-bg-light-tone-panel) !important; } +.scrollbar-thumb-blue-500{ + --scrollbar-thumb: #3F83F8 !important; +} + .scrollbar-thumb-gray-400{ --scrollbar-thumb: #9CA3AF !important; } @@ -5126,12 +5148,15 @@ body:is(.dark *){ } .app-card{ + border-radius: 0.75rem; + border-width: 1px; --tw-bg-opacity: 1; background-color: rgb(252 232 243 / var(--tw-bg-opacity)); + padding: 1.5rem; --tw-text-opacity: 1; color: rgb(153 21 75 / var(--tw-text-opacity)); - --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color); + --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); transition-property: all; transition-duration: 300ms; @@ -5139,8 +5164,8 @@ body:is(.dark *){ } .app-card:hover{ - --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); + --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); } @@ -5753,10 +5778,6 @@ button:hover{ opacity: 1; } -.group:hover .group-hover\:opacity-0{ - opacity: 0; -} - .group:hover .group-hover\:opacity-100{ opacity: 1; } @@ -6043,6 +6064,12 @@ button:hover{ --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } +.hover\:from-blue-500\/20:hover{ + --tw-gradient-from: rgb(63 131 248 / 0.2) var(--tw-gradient-from-position); + --tw-gradient-to: rgb(63 131 248 / 0) var(--tw-gradient-to-position); + --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); +} + .hover\:from-teal-200:hover{ --tw-gradient-from: #AFECEF var(--tw-gradient-from-position); --tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position); @@ -6057,6 +6084,10 @@ button:hover{ --tw-gradient-to: #F6F5FF var(--tw-gradient-to-position); } +.hover\:to-purple-500\/20:hover{ + --tw-gradient-to: rgb(144 97 249 / 0.2) var(--tw-gradient-to-position); +} + .hover\:text-blue-600:hover{ --tw-text-opacity: 1; color: rgb(28 100 242 / var(--tw-text-opacity)); @@ -6163,12 +6194,6 @@ button:hover{ text-decoration-line: none; } -.hover\:shadow-lg:hover{ - --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); - box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); -} - .hover\:shadow-md:hover{ --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color); @@ -6735,10 +6760,6 @@ button:hover{ --tw-gradient-stops: var(--tw-gradient-from), var(--color-bg-dark) var(--tw-gradient-via-position), var(--tw-gradient-to); } -.dark\:to-gray-800:is(.dark *){ - --tw-gradient-to: #1F2937 var(--tw-gradient-to-position); -} - .dark\:to-purple-400:is(.dark *){ --tw-gradient-to: #AC94FA var(--tw-gradient-to-position); } @@ -7035,6 +7056,10 @@ button:hover{ --scrollbar-track: var(--color-bg-dark-tone) !important; } +.dark\:scrollbar-track-gray-700:is(.dark *){ + --scrollbar-track: #374151 !important; +} + .dark\:scrollbar-track-gray-800:is(.dark *){ --scrollbar-track: #1F2937 !important; } @@ -7047,6 +7072,10 @@ button:hover{ --scrollbar-thumb: var(--color-bg-dark-tone-panel) !important; } +.dark\:scrollbar-thumb-gray-500:is(.dark *){ + --scrollbar-thumb: #6B7280 !important; +} + .dark\:scrollbar-thumb-gray-600:is(.dark *){ --scrollbar-thumb: #4B5563 !important; } @@ -7189,12 +7218,22 @@ button:hover{ background-color: var(--color-bg-dark-tone-panel); } +.dark\:hover\:from-blue-400\/30:hover:is(.dark *){ + --tw-gradient-from: rgb(118 169 250 / 0.3) var(--tw-gradient-from-position); + --tw-gradient-to: rgb(118 169 250 / 0) var(--tw-gradient-to-position); + --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); +} + .dark\:hover\:from-blue-900\/30:hover:is(.dark *){ --tw-gradient-from: rgb(35 56 118 / 0.3) var(--tw-gradient-from-position); --tw-gradient-to: rgb(35 56 118 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } +.dark\:hover\:to-purple-400\/30:hover:is(.dark *){ + --tw-gradient-to: rgb(172 148 250 / 0.3) var(--tw-gradient-to-position); +} + .dark\:hover\:to-purple-900\/30:hover:is(.dark *){ --tw-gradient-to: rgb(74 29 150 / 0.3) var(--tw-gradient-to-position); } diff --git a/web/public/themes/amber.css b/web/public/themes/amber.css index 9aa05d6b8..0263a2916 100644 --- a/web/public/themes/amber.css +++ b/web/public/themes/amber.css @@ -1240,6 +1240,12 @@ html{ -webkit-box-orient: vertical; -webkit-line-clamp: 3; } +.line-clamp-4{ + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 4; +} .block{ display: block; } @@ -1357,9 +1363,6 @@ html{ .h-\[200px\]{ height: 200px; } -.h-\[220px\]{ - height: 220px; -} .h-auto{ height: auto; } @@ -1399,9 +1402,18 @@ html{ .max-h-\[80vh\]{ max-height: 80vh; } +.max-h-\[90vh\]{ + max-height: 90vh; +} .max-h-full{ max-height: 100%; } +.min-h-0{ + min-height: 0px; +} +.min-h-\[220px\]{ + min-height: 220px; +} .min-h-\[500px\]{ min-height: 500px; } @@ -1477,6 +1489,9 @@ html{ .w-4\/5{ width: 80%; } +.w-40{ + width: 10rem; +} .w-48{ width: 12rem; } @@ -1532,9 +1547,6 @@ html{ .min-w-96{ min-width: 24rem; } -.min-w-\[120px\]{ - min-width: 120px; -} .min-w-\[14rem\]{ min-width: 14rem; } @@ -1634,9 +1646,6 @@ html{ .origin-left{ transform-origin: left; } -.origin-top{ - transform-origin: top; -} .-translate-x-1\/2{ --tw-translate-x: -50%; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -1685,6 +1694,16 @@ html{ --tw-rotate: 90deg; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); } +.scale-100{ + --tw-scale-x: 1; + --tw-scale-y: 1; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} +.scale-95{ + --tw-scale-x: .95; + --tw-scale-y: .95; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} .scale-x-0{ --tw-scale-x: 0; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -1827,6 +1846,9 @@ html{ .gap-4{ gap: 1rem; } +.gap-6{ + gap: 1.5rem; +} .gap-8{ gap: 2rem; } @@ -1870,6 +1892,11 @@ html{ margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(0.5rem * var(--tw-space-y-reverse)); } +.space-y-3 > :not([hidden]) ~ :not([hidden]){ + --tw-space-y-reverse: 0; + margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse))); + margin-bottom: calc(0.75rem * var(--tw-space-y-reverse)); +} .space-y-4 > :not([hidden]) ~ :not([hidden]){ --tw-space-y-reverse: 0; margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse))); @@ -2403,9 +2430,6 @@ html{ .bg-opacity-70{ --tw-bg-opacity: 0.7; } -.bg-gradient-to-b{ - background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); -} .bg-gradient-to-br{ background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); } @@ -2505,11 +2529,6 @@ html{ --tw-gradient-to: rgb(6 148 162 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } -.from-transparent{ - --tw-gradient-from: transparent var(--tw-gradient-from-position); - --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position); - --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); -} .from-5\%{ --tw-gradient-from-position: 5%; } @@ -2553,10 +2572,6 @@ html{ --tw-gradient-to: rgb(4 116 129 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), #047481 var(--tw-gradient-via-position), var(--tw-gradient-to); } -.via-transparent{ - --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position); - --tw-gradient-stops: var(--tw-gradient-from), transparent var(--tw-gradient-via-position), var(--tw-gradient-to); -} .via-10\%{ --tw-gradient-via-position: 10%; } @@ -2614,9 +2629,6 @@ html{ .to-transparent{ --tw-gradient-to: transparent var(--tw-gradient-to-position); } -.to-white{ - --tw-gradient-to: #ffffff var(--tw-gradient-to-position); -} .to-yellow-200{ --tw-gradient-to: #FCE96A var(--tw-gradient-to-position); } @@ -3520,6 +3532,9 @@ html{ .scrollbar-track-bg-light-tone{ --scrollbar-track: var(--color-bg-light-tone) !important; } +.scrollbar-track-blue-100{ + --scrollbar-track: #E1EFFE !important; +} .scrollbar-track-gray-200{ --scrollbar-track: #E5E7EB !important; } @@ -3529,6 +3544,9 @@ html{ .scrollbar-thumb-bg-light-tone-panel{ --scrollbar-thumb: var(--color-bg-light-tone-panel) !important; } +.scrollbar-thumb-blue-500{ + --scrollbar-thumb: #3F83F8 !important; +} .scrollbar-thumb-gray-400{ --scrollbar-thumb: #9CA3AF !important; } @@ -4191,23 +4209,26 @@ body:is(.dark *){ } } .app-card{ + border-radius: 0.75rem; + border-width: 1px; background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); --tw-gradient-from: #fffbeb var(--tw-gradient-from-position); --tw-gradient-to: rgb(255 251 235 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); --tw-gradient-to: #fef3c7 var(--tw-gradient-to-position); + padding: 1.5rem; --tw-text-opacity: 1; color: rgb(31 41 55 / var(--tw-text-opacity)); - --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color); + --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); transition-property: all; transition-duration: 300ms; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); } .app-card:hover{ - --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); + --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); } .app-card:is(.dark *){ @@ -4721,9 +4742,6 @@ button:hover{ .group\/item:hover .group-hover\/item\:opacity-100{ opacity: 1; } -.group:hover .group-hover\:opacity-0{ - opacity: 0; -} .group:hover .group-hover\:opacity-100{ opacity: 1; } @@ -4950,6 +4968,11 @@ button:hover{ --tw-gradient-to: rgb(235 245 255 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } +.hover\:from-blue-500\/20:hover{ + --tw-gradient-from: rgb(63 131 248 / 0.2) var(--tw-gradient-from-position); + --tw-gradient-to: rgb(63 131 248 / 0) var(--tw-gradient-to-position); + --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); +} .hover\:from-teal-200:hover{ --tw-gradient-from: #AFECEF var(--tw-gradient-from-position); --tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position); @@ -4961,6 +4984,9 @@ button:hover{ .hover\:to-purple-50:hover{ --tw-gradient-to: #F6F5FF var(--tw-gradient-to-position); } +.hover\:to-purple-500\/20:hover{ + --tw-gradient-to: rgb(144 97 249 / 0.2) var(--tw-gradient-to-position); +} .hover\:text-blue-600:hover{ --tw-text-opacity: 1; color: rgb(28 100 242 / var(--tw-text-opacity)); @@ -5045,11 +5071,6 @@ button:hover{ .hover\:no-underline:hover{ text-decoration-line: none; } -.hover\:shadow-lg:hover{ - --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); - box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); -} .hover\:shadow-md:hover{ --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color); @@ -5502,9 +5523,6 @@ button:hover{ --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--color-bg-dark) var(--tw-gradient-via-position), var(--tw-gradient-to); } -.dark\:to-gray-800:is(.dark *){ - --tw-gradient-to: #1F2937 var(--tw-gradient-to-position); -} .dark\:to-purple-400:is(.dark *){ --tw-gradient-to: #AC94FA var(--tw-gradient-to-position); } @@ -5740,6 +5758,9 @@ button:hover{ .dark\:scrollbar-track-bg-dark-tone:is(.dark *){ --scrollbar-track: var(--color-bg-dark-tone) !important; } +.dark\:scrollbar-track-gray-700:is(.dark *){ + --scrollbar-track: #374151 !important; +} .dark\:scrollbar-track-gray-800:is(.dark *){ --scrollbar-track: #1F2937 !important; } @@ -5749,6 +5770,9 @@ button:hover{ .dark\:scrollbar-thumb-bg-dark-tone-panel:is(.dark *){ --scrollbar-thumb: var(--color-bg-dark-tone-panel) !important; } +.dark\:scrollbar-thumb-gray-500:is(.dark *){ + --scrollbar-thumb: #6B7280 !important; +} .dark\:scrollbar-thumb-gray-600:is(.dark *){ --scrollbar-thumb: #4B5563 !important; } @@ -5861,11 +5885,19 @@ button:hover{ .hover\:dark\:bg-bg-dark-tone-panel:is(.dark *):hover{ background-color: var(--color-bg-dark-tone-panel); } +.dark\:hover\:from-blue-400\/30:hover:is(.dark *){ + --tw-gradient-from: rgb(118 169 250 / 0.3) var(--tw-gradient-from-position); + --tw-gradient-to: rgb(118 169 250 / 0) var(--tw-gradient-to-position); + --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); +} .dark\:hover\:from-blue-900\/30:hover:is(.dark *){ --tw-gradient-from: rgb(35 56 118 / 0.3) var(--tw-gradient-from-position); --tw-gradient-to: rgb(35 56 118 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } +.dark\:hover\:to-purple-400\/30:hover:is(.dark *){ + --tw-gradient-to: rgb(172 148 250 / 0.3) var(--tw-gradient-to-position); +} .dark\:hover\:to-purple-900\/30:hover:is(.dark *){ --tw-gradient-to: rgb(74 29 150 / 0.3) var(--tw-gradient-to-position); } diff --git a/web/public/themes/borg.css b/web/public/themes/borg.css index d8793439f..6ed368ef3 100644 --- a/web/public/themes/borg.css +++ b/web/public/themes/borg.css @@ -1235,6 +1235,12 @@ body { -webkit-box-orient: vertical; -webkit-line-clamp: 3; } +.line-clamp-4{ + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 4; +} .block{ display: block; } @@ -1352,9 +1358,6 @@ body { .h-\[200px\]{ height: 200px; } -.h-\[220px\]{ - height: 220px; -} .h-auto{ height: auto; } @@ -1394,9 +1397,18 @@ body { .max-h-\[80vh\]{ max-height: 80vh; } +.max-h-\[90vh\]{ + max-height: 90vh; +} .max-h-full{ max-height: 100%; } +.min-h-0{ + min-height: 0px; +} +.min-h-\[220px\]{ + min-height: 220px; +} .min-h-\[500px\]{ min-height: 500px; } @@ -1472,6 +1484,9 @@ body { .w-4\/5{ width: 80%; } +.w-40{ + width: 10rem; +} .w-48{ width: 12rem; } @@ -1527,9 +1542,6 @@ body { .min-w-96{ min-width: 24rem; } -.min-w-\[120px\]{ - min-width: 120px; -} .min-w-\[14rem\]{ min-width: 14rem; } @@ -1629,9 +1641,6 @@ body { .origin-left{ transform-origin: left; } -.origin-top{ - transform-origin: top; -} .-translate-x-1\/2{ --tw-translate-x: -50%; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -1680,6 +1689,16 @@ body { --tw-rotate: 90deg; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); } +.scale-100{ + --tw-scale-x: 1; + --tw-scale-y: 1; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} +.scale-95{ + --tw-scale-x: .95; + --tw-scale-y: .95; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} .scale-x-0{ --tw-scale-x: 0; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -1822,6 +1841,9 @@ body { .gap-4{ gap: 1rem; } +.gap-6{ + gap: 1.5rem; +} .gap-8{ gap: 2rem; } @@ -1865,6 +1887,11 @@ body { margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(0.5rem * var(--tw-space-y-reverse)); } +.space-y-3 > :not([hidden]) ~ :not([hidden]){ + --tw-space-y-reverse: 0; + margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse))); + margin-bottom: calc(0.75rem * var(--tw-space-y-reverse)); +} .space-y-4 > :not([hidden]) ~ :not([hidden]){ --tw-space-y-reverse: 0; margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse))); @@ -2398,9 +2425,6 @@ body { .bg-opacity-70{ --tw-bg-opacity: 0.7; } -.bg-gradient-to-b{ - background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); -} .bg-gradient-to-br{ background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); } @@ -2500,11 +2524,6 @@ body { --tw-gradient-to: rgb(6 148 162 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } -.from-transparent{ - --tw-gradient-from: transparent var(--tw-gradient-from-position); - --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position); - --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); -} .from-5\%{ --tw-gradient-from-position: 5%; } @@ -2548,10 +2567,6 @@ body { --tw-gradient-to: rgb(4 116 129 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), #047481 var(--tw-gradient-via-position), var(--tw-gradient-to); } -.via-transparent{ - --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position); - --tw-gradient-stops: var(--tw-gradient-from), transparent var(--tw-gradient-via-position), var(--tw-gradient-to); -} .via-10\%{ --tw-gradient-via-position: 10%; } @@ -2609,9 +2624,6 @@ body { .to-transparent{ --tw-gradient-to: transparent var(--tw-gradient-to-position); } -.to-white{ - --tw-gradient-to: #ffffff var(--tw-gradient-to-position); -} .to-yellow-200{ --tw-gradient-to: #FCE96A var(--tw-gradient-to-position); } @@ -3515,6 +3527,9 @@ body { .scrollbar-track-bg-light-tone{ --scrollbar-track: var(--color-bg-light-tone) !important; } +.scrollbar-track-blue-100{ + --scrollbar-track: #E1EFFE !important; +} .scrollbar-track-gray-200{ --scrollbar-track: #E5E7EB !important; } @@ -3524,6 +3539,9 @@ body { .scrollbar-thumb-bg-light-tone-panel{ --scrollbar-thumb: var(--color-bg-light-tone-panel) !important; } +.scrollbar-thumb-blue-500{ + --scrollbar-thumb: #3F83F8 !important; +} .scrollbar-thumb-gray-400{ --scrollbar-thumb: #9CA3AF !important; } @@ -3954,6 +3972,45 @@ body{ 0% { background-position: -100% 0; } 100% { background-position: 100% 0; } } +.app-card{ + border-radius: 0.75rem; + border-width: 1px; + --tw-bg-opacity: 1; + background-color: rgb(225 239 254 / var(--tw-bg-opacity)); + padding: 1.5rem; + --tw-text-opacity: 1; + color: rgb(30 66 159 / var(--tw-text-opacity)); + --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); + box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); + transition-property: all; + transition-duration: 300ms; + transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); +} +.app-card:hover{ + --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color); + box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); +} +.app-card:is(.dark *){ + --tw-bg-opacity: 1; + background-color: rgb(30 66 159 / var(--tw-bg-opacity)); + --tw-text-opacity: 1; + color: rgb(225 239 254 / var(--tw-text-opacity)); +} +.app-card:hover{ + --tw-translate-y: -0.25rem; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} +button{ + transition-property: all; + transition-duration: 300ms; + transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); +} +button:hover{ + --tw-translate-y: -0.125rem; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} .scrollbar-thin { scrollbar-width: thin; scrollbar-color: #00ff00 #1a1a1a; @@ -4224,9 +4281,6 @@ body{ .group\/item:hover .group-hover\/item\:opacity-100{ opacity: 1; } -.group:hover .group-hover\:opacity-0{ - opacity: 0; -} .group:hover .group-hover\:opacity-100{ opacity: 1; } @@ -4453,6 +4507,11 @@ body{ --tw-gradient-to: rgb(235 245 255 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } +.hover\:from-blue-500\/20:hover{ + --tw-gradient-from: rgb(63 131 248 / 0.2) var(--tw-gradient-from-position); + --tw-gradient-to: rgb(63 131 248 / 0) var(--tw-gradient-to-position); + --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); +} .hover\:from-teal-200:hover{ --tw-gradient-from: #AFECEF var(--tw-gradient-from-position); --tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position); @@ -4464,6 +4523,9 @@ body{ .hover\:to-purple-50:hover{ --tw-gradient-to: #F6F5FF var(--tw-gradient-to-position); } +.hover\:to-purple-500\/20:hover{ + --tw-gradient-to: rgb(144 97 249 / 0.2) var(--tw-gradient-to-position); +} .hover\:text-blue-600:hover{ --tw-text-opacity: 1; color: rgb(28 100 242 / var(--tw-text-opacity)); @@ -4548,11 +4610,6 @@ body{ .hover\:no-underline:hover{ text-decoration-line: none; } -.hover\:shadow-lg:hover{ - --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); - box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); -} .hover\:shadow-md:hover{ --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color); @@ -5005,9 +5062,6 @@ body{ --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--color-bg-dark) var(--tw-gradient-via-position), var(--tw-gradient-to); } -.dark\:to-gray-800:is(.dark *){ - --tw-gradient-to: #1F2937 var(--tw-gradient-to-position); -} .dark\:to-purple-400:is(.dark *){ --tw-gradient-to: #AC94FA var(--tw-gradient-to-position); } @@ -5243,6 +5297,9 @@ body{ .dark\:scrollbar-track-bg-dark-tone:is(.dark *){ --scrollbar-track: var(--color-bg-dark-tone) !important; } +.dark\:scrollbar-track-gray-700:is(.dark *){ + --scrollbar-track: #374151 !important; +} .dark\:scrollbar-track-gray-800:is(.dark *){ --scrollbar-track: #1F2937 !important; } @@ -5252,6 +5309,9 @@ body{ .dark\:scrollbar-thumb-bg-dark-tone-panel:is(.dark *){ --scrollbar-thumb: var(--color-bg-dark-tone-panel) !important; } +.dark\:scrollbar-thumb-gray-500:is(.dark *){ + --scrollbar-thumb: #6B7280 !important; +} .dark\:scrollbar-thumb-gray-600:is(.dark *){ --scrollbar-thumb: #4B5563 !important; } @@ -5364,11 +5424,19 @@ body{ .hover\:dark\:bg-bg-dark-tone-panel:is(.dark *):hover{ background-color: var(--color-bg-dark-tone-panel); } +.dark\:hover\:from-blue-400\/30:hover:is(.dark *){ + --tw-gradient-from: rgb(118 169 250 / 0.3) var(--tw-gradient-from-position); + --tw-gradient-to: rgb(118 169 250 / 0) var(--tw-gradient-to-position); + --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); +} .dark\:hover\:from-blue-900\/30:hover:is(.dark *){ --tw-gradient-from: rgb(35 56 118 / 0.3) var(--tw-gradient-from-position); --tw-gradient-to: rgb(35 56 118 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } +.dark\:hover\:to-purple-400\/30:hover:is(.dark *){ + --tw-gradient-to: rgb(172 148 250 / 0.3) var(--tw-gradient-to-position); +} .dark\:hover\:to-purple-900\/30:hover:is(.dark *){ --tw-gradient-to: rgb(74 29 150 / 0.3) var(--tw-gradient-to-position); } @@ -5697,3 +5765,17 @@ body{ height: 24rem; } } + + + + + + + + + + + + + + diff --git a/web/public/themes/default.css b/web/public/themes/default.css index 4e20a0043..4c9a4ed73 100644 --- a/web/public/themes/default.css +++ b/web/public/themes/default.css @@ -1235,6 +1235,12 @@ body { -webkit-box-orient: vertical; -webkit-line-clamp: 3; } +.line-clamp-4{ + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 4; +} .block{ display: block; } @@ -1352,9 +1358,6 @@ body { .h-\[200px\]{ height: 200px; } -.h-\[220px\]{ - height: 220px; -} .h-auto{ height: auto; } @@ -1394,9 +1397,18 @@ body { .max-h-\[80vh\]{ max-height: 80vh; } +.max-h-\[90vh\]{ + max-height: 90vh; +} .max-h-full{ max-height: 100%; } +.min-h-0{ + min-height: 0px; +} +.min-h-\[220px\]{ + min-height: 220px; +} .min-h-\[500px\]{ min-height: 500px; } @@ -1472,6 +1484,9 @@ body { .w-4\/5{ width: 80%; } +.w-40{ + width: 10rem; +} .w-48{ width: 12rem; } @@ -1527,9 +1542,6 @@ body { .min-w-96{ min-width: 24rem; } -.min-w-\[120px\]{ - min-width: 120px; -} .min-w-\[14rem\]{ min-width: 14rem; } @@ -1629,9 +1641,6 @@ body { .origin-left{ transform-origin: left; } -.origin-top{ - transform-origin: top; -} .-translate-x-1\/2{ --tw-translate-x: -50%; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -1680,6 +1689,16 @@ body { --tw-rotate: 90deg; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); } +.scale-100{ + --tw-scale-x: 1; + --tw-scale-y: 1; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} +.scale-95{ + --tw-scale-x: .95; + --tw-scale-y: .95; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} .scale-x-0{ --tw-scale-x: 0; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -1822,6 +1841,9 @@ body { .gap-4{ gap: 1rem; } +.gap-6{ + gap: 1.5rem; +} .gap-8{ gap: 2rem; } @@ -1865,6 +1887,11 @@ body { margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(0.5rem * var(--tw-space-y-reverse)); } +.space-y-3 > :not([hidden]) ~ :not([hidden]){ + --tw-space-y-reverse: 0; + margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse))); + margin-bottom: calc(0.75rem * var(--tw-space-y-reverse)); +} .space-y-4 > :not([hidden]) ~ :not([hidden]){ --tw-space-y-reverse: 0; margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse))); @@ -2398,9 +2425,6 @@ body { .bg-opacity-70{ --tw-bg-opacity: 0.7; } -.bg-gradient-to-b{ - background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); -} .bg-gradient-to-br{ background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); } @@ -2500,11 +2524,6 @@ body { --tw-gradient-to: rgb(6 148 162 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } -.from-transparent{ - --tw-gradient-from: transparent var(--tw-gradient-from-position); - --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position); - --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); -} .from-5\%{ --tw-gradient-from-position: 5%; } @@ -2548,10 +2567,6 @@ body { --tw-gradient-to: rgb(4 116 129 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), #047481 var(--tw-gradient-via-position), var(--tw-gradient-to); } -.via-transparent{ - --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position); - --tw-gradient-stops: var(--tw-gradient-from), transparent var(--tw-gradient-via-position), var(--tw-gradient-to); -} .via-10\%{ --tw-gradient-via-position: 10%; } @@ -2609,9 +2624,6 @@ body { .to-transparent{ --tw-gradient-to: transparent var(--tw-gradient-to-position); } -.to-white{ - --tw-gradient-to: #ffffff var(--tw-gradient-to-position); -} .to-yellow-200{ --tw-gradient-to: #FCE96A var(--tw-gradient-to-position); } @@ -3515,6 +3527,9 @@ body { .scrollbar-track-bg-light-tone{ --scrollbar-track: var(--color-bg-light-tone) !important; } +.scrollbar-track-blue-100{ + --scrollbar-track: #E1EFFE !important; +} .scrollbar-track-gray-200{ --scrollbar-track: #E5E7EB !important; } @@ -3524,6 +3539,9 @@ body { .scrollbar-thumb-bg-light-tone-panel{ --scrollbar-thumb: var(--color-bg-light-tone-panel) !important; } +.scrollbar-thumb-blue-500{ + --scrollbar-thumb: #3F83F8 !important; +} .scrollbar-thumb-gray-400{ --scrollbar-thumb: #9CA3AF !important; } @@ -4114,20 +4132,23 @@ body:is(.dark *){ animation: bounce 2s infinite; } .app-card{ + border-radius: 0.75rem; + border-width: 1px; --tw-bg-opacity: 1; background-color: rgb(225 239 254 / var(--tw-bg-opacity)); + padding: 1.5rem; --tw-text-opacity: 1; color: rgb(30 66 159 / var(--tw-text-opacity)); - --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color); + --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); transition-property: all; transition-duration: 300ms; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); } .app-card:hover{ - --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); + --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); } .app-card:is(.dark *){ @@ -4636,9 +4657,6 @@ button:hover{ .group\/item:hover .group-hover\/item\:opacity-100{ opacity: 1; } -.group:hover .group-hover\:opacity-0{ - opacity: 0; -} .group:hover .group-hover\:opacity-100{ opacity: 1; } @@ -4865,6 +4883,11 @@ button:hover{ --tw-gradient-to: rgb(235 245 255 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } +.hover\:from-blue-500\/20:hover{ + --tw-gradient-from: rgb(63 131 248 / 0.2) var(--tw-gradient-from-position); + --tw-gradient-to: rgb(63 131 248 / 0) var(--tw-gradient-to-position); + --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); +} .hover\:from-teal-200:hover{ --tw-gradient-from: #AFECEF var(--tw-gradient-from-position); --tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position); @@ -4876,6 +4899,9 @@ button:hover{ .hover\:to-purple-50:hover{ --tw-gradient-to: #F6F5FF var(--tw-gradient-to-position); } +.hover\:to-purple-500\/20:hover{ + --tw-gradient-to: rgb(144 97 249 / 0.2) var(--tw-gradient-to-position); +} .hover\:text-blue-600:hover{ --tw-text-opacity: 1; color: rgb(28 100 242 / var(--tw-text-opacity)); @@ -4960,11 +4986,6 @@ button:hover{ .hover\:no-underline:hover{ text-decoration-line: none; } -.hover\:shadow-lg:hover{ - --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); - box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); -} .hover\:shadow-md:hover{ --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color); @@ -5417,9 +5438,6 @@ button:hover{ --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--color-bg-dark) var(--tw-gradient-via-position), var(--tw-gradient-to); } -.dark\:to-gray-800:is(.dark *){ - --tw-gradient-to: #1F2937 var(--tw-gradient-to-position); -} .dark\:to-purple-400:is(.dark *){ --tw-gradient-to: #AC94FA var(--tw-gradient-to-position); } @@ -5655,6 +5673,9 @@ button:hover{ .dark\:scrollbar-track-bg-dark-tone:is(.dark *){ --scrollbar-track: var(--color-bg-dark-tone) !important; } +.dark\:scrollbar-track-gray-700:is(.dark *){ + --scrollbar-track: #374151 !important; +} .dark\:scrollbar-track-gray-800:is(.dark *){ --scrollbar-track: #1F2937 !important; } @@ -5664,6 +5685,9 @@ button:hover{ .dark\:scrollbar-thumb-bg-dark-tone-panel:is(.dark *){ --scrollbar-thumb: var(--color-bg-dark-tone-panel) !important; } +.dark\:scrollbar-thumb-gray-500:is(.dark *){ + --scrollbar-thumb: #6B7280 !important; +} .dark\:scrollbar-thumb-gray-600:is(.dark *){ --scrollbar-thumb: #4B5563 !important; } @@ -5776,11 +5800,19 @@ button:hover{ .hover\:dark\:bg-bg-dark-tone-panel:is(.dark *):hover{ background-color: var(--color-bg-dark-tone-panel); } +.dark\:hover\:from-blue-400\/30:hover:is(.dark *){ + --tw-gradient-from: rgb(118 169 250 / 0.3) var(--tw-gradient-from-position); + --tw-gradient-to: rgb(118 169 250 / 0) var(--tw-gradient-to-position); + --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); +} .dark\:hover\:from-blue-900\/30:hover:is(.dark *){ --tw-gradient-from: rgb(35 56 118 / 0.3) var(--tw-gradient-from-position); --tw-gradient-to: rgb(35 56 118 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } +.dark\:hover\:to-purple-400\/30:hover:is(.dark *){ + --tw-gradient-to: rgb(172 148 250 / 0.3) var(--tw-gradient-to-position); +} .dark\:hover\:to-purple-900\/30:hover:is(.dark *){ --tw-gradient-to: rgb(74 29 150 / 0.3) var(--tw-gradient-to-position); } diff --git a/web/public/themes/lollms_blue.css b/web/public/themes/lollms_blue.css index baeb67535..74bf30df9 100644 --- a/web/public/themes/lollms_blue.css +++ b/web/public/themes/lollms_blue.css @@ -1240,6 +1240,12 @@ html{ -webkit-box-orient: vertical; -webkit-line-clamp: 3; } +.line-clamp-4{ + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 4; +} .block{ display: block; } @@ -1357,9 +1363,6 @@ html{ .h-\[200px\]{ height: 200px; } -.h-\[220px\]{ - height: 220px; -} .h-auto{ height: auto; } @@ -1399,9 +1402,18 @@ html{ .max-h-\[80vh\]{ max-height: 80vh; } +.max-h-\[90vh\]{ + max-height: 90vh; +} .max-h-full{ max-height: 100%; } +.min-h-0{ + min-height: 0px; +} +.min-h-\[220px\]{ + min-height: 220px; +} .min-h-\[500px\]{ min-height: 500px; } @@ -1477,6 +1489,9 @@ html{ .w-4\/5{ width: 80%; } +.w-40{ + width: 10rem; +} .w-48{ width: 12rem; } @@ -1532,9 +1547,6 @@ html{ .min-w-96{ min-width: 24rem; } -.min-w-\[120px\]{ - min-width: 120px; -} .min-w-\[14rem\]{ min-width: 14rem; } @@ -1634,9 +1646,6 @@ html{ .origin-left{ transform-origin: left; } -.origin-top{ - transform-origin: top; -} .-translate-x-1\/2{ --tw-translate-x: -50%; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -1685,6 +1694,16 @@ html{ --tw-rotate: 90deg; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); } +.scale-100{ + --tw-scale-x: 1; + --tw-scale-y: 1; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} +.scale-95{ + --tw-scale-x: .95; + --tw-scale-y: .95; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} .scale-x-0{ --tw-scale-x: 0; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -1827,6 +1846,9 @@ html{ .gap-4{ gap: 1rem; } +.gap-6{ + gap: 1.5rem; +} .gap-8{ gap: 2rem; } @@ -1870,6 +1892,11 @@ html{ margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(0.5rem * var(--tw-space-y-reverse)); } +.space-y-3 > :not([hidden]) ~ :not([hidden]){ + --tw-space-y-reverse: 0; + margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse))); + margin-bottom: calc(0.75rem * var(--tw-space-y-reverse)); +} .space-y-4 > :not([hidden]) ~ :not([hidden]){ --tw-space-y-reverse: 0; margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse))); @@ -2403,9 +2430,6 @@ html{ .bg-opacity-70{ --tw-bg-opacity: 0.7; } -.bg-gradient-to-b{ - background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); -} .bg-gradient-to-br{ background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); } @@ -2505,11 +2529,6 @@ html{ --tw-gradient-to: rgb(6 148 162 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } -.from-transparent{ - --tw-gradient-from: transparent var(--tw-gradient-from-position); - --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position); - --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); -} .from-5\%{ --tw-gradient-from-position: 5%; } @@ -2553,10 +2572,6 @@ html{ --tw-gradient-to: rgb(4 116 129 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), #047481 var(--tw-gradient-via-position), var(--tw-gradient-to); } -.via-transparent{ - --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position); - --tw-gradient-stops: var(--tw-gradient-from), transparent var(--tw-gradient-via-position), var(--tw-gradient-to); -} .via-10\%{ --tw-gradient-via-position: 10%; } @@ -2614,9 +2629,6 @@ html{ .to-transparent{ --tw-gradient-to: transparent var(--tw-gradient-to-position); } -.to-white{ - --tw-gradient-to: #ffffff var(--tw-gradient-to-position); -} .to-yellow-200{ --tw-gradient-to: #FCE96A var(--tw-gradient-to-position); } @@ -3520,6 +3532,9 @@ html{ .scrollbar-track-bg-light-tone{ --scrollbar-track: var(--color-bg-light-tone) !important; } +.scrollbar-track-blue-100{ + --scrollbar-track: #E1EFFE !important; +} .scrollbar-track-gray-200{ --scrollbar-track: #E5E7EB !important; } @@ -3529,6 +3544,9 @@ html{ .scrollbar-thumb-bg-light-tone-panel{ --scrollbar-thumb: var(--color-bg-light-tone-panel) !important; } +.scrollbar-thumb-blue-500{ + --scrollbar-thumb: #3F83F8 !important; +} .scrollbar-thumb-gray-400{ --scrollbar-thumb: #9CA3AF !important; } @@ -4174,23 +4192,26 @@ body { /* Added text-base for default body text */ } } .app-card{ + border-radius: 0.75rem; + border-width: 1px; background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); --tw-gradient-from: #C3DDFD var(--tw-gradient-from-position); --tw-gradient-to: rgb(195 221 253 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); --tw-gradient-to: #A4CAFE var(--tw-gradient-to-position); + padding: 1.5rem; --tw-text-opacity: 1; color: rgb(31 41 55 / var(--tw-text-opacity)); - --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color); + --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); transition-property: all; transition-duration: 300ms; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); } .app-card:hover{ - --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); + --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); } .app-card:is(.dark *){ @@ -4703,9 +4724,6 @@ button:hover{ .group\/item:hover .group-hover\/item\:opacity-100{ opacity: 1; } -.group:hover .group-hover\:opacity-0{ - opacity: 0; -} .group:hover .group-hover\:opacity-100{ opacity: 1; } @@ -4932,6 +4950,11 @@ button:hover{ --tw-gradient-to: rgb(235 245 255 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } +.hover\:from-blue-500\/20:hover{ + --tw-gradient-from: rgb(63 131 248 / 0.2) var(--tw-gradient-from-position); + --tw-gradient-to: rgb(63 131 248 / 0) var(--tw-gradient-to-position); + --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); +} .hover\:from-teal-200:hover{ --tw-gradient-from: #AFECEF var(--tw-gradient-from-position); --tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position); @@ -4943,6 +4966,9 @@ button:hover{ .hover\:to-purple-50:hover{ --tw-gradient-to: #F6F5FF var(--tw-gradient-to-position); } +.hover\:to-purple-500\/20:hover{ + --tw-gradient-to: rgb(144 97 249 / 0.2) var(--tw-gradient-to-position); +} .hover\:text-blue-600:hover{ --tw-text-opacity: 1; color: rgb(28 100 242 / var(--tw-text-opacity)); @@ -5027,11 +5053,6 @@ button:hover{ .hover\:no-underline:hover{ text-decoration-line: none; } -.hover\:shadow-lg:hover{ - --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); - box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); -} .hover\:shadow-md:hover{ --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color); @@ -5484,9 +5505,6 @@ button:hover{ --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--color-bg-dark) var(--tw-gradient-via-position), var(--tw-gradient-to); } -.dark\:to-gray-800:is(.dark *){ - --tw-gradient-to: #1F2937 var(--tw-gradient-to-position); -} .dark\:to-purple-400:is(.dark *){ --tw-gradient-to: #AC94FA var(--tw-gradient-to-position); } @@ -5722,6 +5740,9 @@ button:hover{ .dark\:scrollbar-track-bg-dark-tone:is(.dark *){ --scrollbar-track: var(--color-bg-dark-tone) !important; } +.dark\:scrollbar-track-gray-700:is(.dark *){ + --scrollbar-track: #374151 !important; +} .dark\:scrollbar-track-gray-800:is(.dark *){ --scrollbar-track: #1F2937 !important; } @@ -5731,6 +5752,9 @@ button:hover{ .dark\:scrollbar-thumb-bg-dark-tone-panel:is(.dark *){ --scrollbar-thumb: var(--color-bg-dark-tone-panel) !important; } +.dark\:scrollbar-thumb-gray-500:is(.dark *){ + --scrollbar-thumb: #6B7280 !important; +} .dark\:scrollbar-thumb-gray-600:is(.dark *){ --scrollbar-thumb: #4B5563 !important; } @@ -5843,11 +5867,19 @@ button:hover{ .hover\:dark\:bg-bg-dark-tone-panel:is(.dark *):hover{ background-color: var(--color-bg-dark-tone-panel); } +.dark\:hover\:from-blue-400\/30:hover:is(.dark *){ + --tw-gradient-from: rgb(118 169 250 / 0.3) var(--tw-gradient-from-position); + --tw-gradient-to: rgb(118 169 250 / 0) var(--tw-gradient-to-position); + --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); +} .dark\:hover\:from-blue-900\/30:hover:is(.dark *){ --tw-gradient-from: rgb(35 56 118 / 0.3) var(--tw-gradient-from-position); --tw-gradient-to: rgb(35 56 118 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } +.dark\:hover\:to-purple-400\/30:hover:is(.dark *){ + --tw-gradient-to: rgb(172 148 250 / 0.3) var(--tw-gradient-to-position); +} .dark\:hover\:to-purple-900\/30:hover:is(.dark *){ --tw-gradient-to: rgb(74 29 150 / 0.3) var(--tw-gradient-to-position); } diff --git a/web/public/themes/matrix_reborn.css b/web/public/themes/matrix_reborn.css index e42563827..7f252db0d 100644 --- a/web/public/themes/matrix_reborn.css +++ b/web/public/themes/matrix_reborn.css @@ -1509,6 +1509,13 @@ body { -webkit-line-clamp: 3; } +.line-clamp-4{ + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 4; +} + .block{ display: block; } @@ -1665,10 +1672,6 @@ body { height: 200px; } -.h-\[220px\]{ - height: 220px; -} - .h-auto{ height: auto; } @@ -1721,10 +1724,22 @@ body { max-height: 80vh; } +.max-h-\[90vh\]{ + max-height: 90vh; +} + .max-h-full{ max-height: 100%; } +.min-h-0{ + min-height: 0px; +} + +.min-h-\[220px\]{ + min-height: 220px; +} + .min-h-\[500px\]{ min-height: 500px; } @@ -1825,6 +1840,10 @@ body { width: 80%; } +.w-40{ + width: 10rem; +} + .w-48{ width: 12rem; } @@ -1898,10 +1917,6 @@ body { min-width: 24rem; } -.min-w-\[120px\]{ - min-width: 120px; -} - .min-w-\[14rem\]{ min-width: 14rem; } @@ -2034,10 +2049,6 @@ body { transform-origin: left; } -.origin-top{ - transform-origin: top; -} - .-translate-x-1\/2{ --tw-translate-x: -50%; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -2098,6 +2109,18 @@ body { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); } +.scale-100{ + --tw-scale-x: 1; + --tw-scale-y: 1; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} + +.scale-95{ + --tw-scale-x: .95; + --tw-scale-y: .95; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} + .scale-x-0{ --tw-scale-x: 0; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -2286,6 +2309,10 @@ body { gap: 1rem; } +.gap-6{ + gap: 1.5rem; +} + .gap-8{ gap: 2rem; } @@ -2338,6 +2365,12 @@ body { margin-bottom: calc(0.5rem * var(--tw-space-y-reverse)); } +.space-y-3 > :not([hidden]) ~ :not([hidden]){ + --tw-space-y-reverse: 0; + margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse))); + margin-bottom: calc(0.75rem * var(--tw-space-y-reverse)); +} + .space-y-4 > :not([hidden]) ~ :not([hidden]){ --tw-space-y-reverse: 0; margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse))); @@ -3016,10 +3049,6 @@ body { --tw-bg-opacity: 0.7; } -.bg-gradient-to-b{ - background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); -} - .bg-gradient-to-br{ background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); } @@ -3140,12 +3169,6 @@ body { --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } -.from-transparent{ - --tw-gradient-from: transparent var(--tw-gradient-from-position); - --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position); - --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); -} - .from-5\%{ --tw-gradient-from-position: 5%; } @@ -3200,11 +3223,6 @@ body { --tw-gradient-stops: var(--tw-gradient-from), #047481 var(--tw-gradient-via-position), var(--tw-gradient-to); } -.via-transparent{ - --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position); - --tw-gradient-stops: var(--tw-gradient-from), transparent var(--tw-gradient-via-position), var(--tw-gradient-to); -} - .via-10\%{ --tw-gradient-via-position: 10%; } @@ -3281,10 +3299,6 @@ body { --tw-gradient-to: transparent var(--tw-gradient-to-position); } -.to-white{ - --tw-gradient-to: #ffffff var(--tw-gradient-to-position); -} - .to-yellow-200{ --tw-gradient-to: #FCE96A var(--tw-gradient-to-position); } @@ -4435,6 +4449,10 @@ body { --scrollbar-track: var(--color-bg-light-tone) !important; } +.scrollbar-track-blue-100{ + --scrollbar-track: #E1EFFE !important; +} + .scrollbar-track-gray-200{ --scrollbar-track: #E5E7EB !important; } @@ -4447,6 +4465,10 @@ body { --scrollbar-thumb: var(--color-bg-light-tone-panel) !important; } +.scrollbar-thumb-blue-500{ + --scrollbar-thumb: #3F83F8 !important; +} + .scrollbar-thumb-gray-400{ --scrollbar-thumb: #9CA3AF !important; } @@ -5162,15 +5184,17 @@ body:is(.dark *){ } .app-card{ + border-radius: 0.75rem; border-width: 1px; --tw-border-opacity: 1; border-color: rgb(14 159 110 / var(--tw-border-opacity)); --tw-bg-opacity: 1; background-color: rgb(0 0 0 / var(--tw-bg-opacity)); + padding: 1.5rem; --tw-text-opacity: 1; color: rgb(49 196 141 / var(--tw-text-opacity)); - --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color); + --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); transition-property: all; transition-duration: 300ms; @@ -5178,8 +5202,8 @@ body:is(.dark *){ } .app-card:hover{ - --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); + --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); } @@ -5783,10 +5807,6 @@ button:hover{ opacity: 1; } -.group:hover .group-hover\:opacity-0{ - opacity: 0; -} - .group:hover .group-hover\:opacity-100{ opacity: 1; } @@ -6073,6 +6093,12 @@ button:hover{ --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } +.hover\:from-blue-500\/20:hover{ + --tw-gradient-from: rgb(63 131 248 / 0.2) var(--tw-gradient-from-position); + --tw-gradient-to: rgb(63 131 248 / 0) var(--tw-gradient-to-position); + --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); +} + .hover\:from-teal-200:hover{ --tw-gradient-from: #AFECEF var(--tw-gradient-from-position); --tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position); @@ -6087,6 +6113,10 @@ button:hover{ --tw-gradient-to: #F6F5FF var(--tw-gradient-to-position); } +.hover\:to-purple-500\/20:hover{ + --tw-gradient-to: rgb(144 97 249 / 0.2) var(--tw-gradient-to-position); +} + .hover\:text-blue-600:hover{ --tw-text-opacity: 1; color: rgb(28 100 242 / var(--tw-text-opacity)); @@ -6193,12 +6223,6 @@ button:hover{ text-decoration-line: none; } -.hover\:shadow-lg:hover{ - --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); - box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); -} - .hover\:shadow-md:hover{ --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color); @@ -6765,10 +6789,6 @@ button:hover{ --tw-gradient-stops: var(--tw-gradient-from), var(--color-bg-dark) var(--tw-gradient-via-position), var(--tw-gradient-to); } -.dark\:to-gray-800:is(.dark *){ - --tw-gradient-to: #1F2937 var(--tw-gradient-to-position); -} - .dark\:to-purple-400:is(.dark *){ --tw-gradient-to: #AC94FA var(--tw-gradient-to-position); } @@ -7065,6 +7085,10 @@ button:hover{ --scrollbar-track: var(--color-bg-dark-tone) !important; } +.dark\:scrollbar-track-gray-700:is(.dark *){ + --scrollbar-track: #374151 !important; +} + .dark\:scrollbar-track-gray-800:is(.dark *){ --scrollbar-track: #1F2937 !important; } @@ -7077,6 +7101,10 @@ button:hover{ --scrollbar-thumb: var(--color-bg-dark-tone-panel) !important; } +.dark\:scrollbar-thumb-gray-500:is(.dark *){ + --scrollbar-thumb: #6B7280 !important; +} + .dark\:scrollbar-thumb-gray-600:is(.dark *){ --scrollbar-thumb: #4B5563 !important; } @@ -7219,12 +7247,22 @@ button:hover{ background-color: var(--color-bg-dark-tone-panel); } +.dark\:hover\:from-blue-400\/30:hover:is(.dark *){ + --tw-gradient-from: rgb(118 169 250 / 0.3) var(--tw-gradient-from-position); + --tw-gradient-to: rgb(118 169 250 / 0) var(--tw-gradient-to-position); + --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); +} + .dark\:hover\:from-blue-900\/30:hover:is(.dark *){ --tw-gradient-from: rgb(35 56 118 / 0.3) var(--tw-gradient-from-position); --tw-gradient-to: rgb(35 56 118 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } +.dark\:hover\:to-purple-400\/30:hover:is(.dark *){ + --tw-gradient-to: rgb(172 148 250 / 0.3) var(--tw-gradient-to-position); +} + .dark\:hover\:to-purple-900\/30:hover:is(.dark *){ --tw-gradient-to: rgb(74 29 150 / 0.3) var(--tw-gradient-to-position); } diff --git a/web/public/themes/red_dragon.css b/web/public/themes/red_dragon.css index 082a5ff2d..7d2239657 100644 --- a/web/public/themes/red_dragon.css +++ b/web/public/themes/red_dragon.css @@ -1509,6 +1509,13 @@ body { -webkit-line-clamp: 3; } +.line-clamp-4{ + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 4; +} + .block{ display: block; } @@ -1665,10 +1672,6 @@ body { height: 200px; } -.h-\[220px\]{ - height: 220px; -} - .h-auto{ height: auto; } @@ -1721,10 +1724,22 @@ body { max-height: 80vh; } +.max-h-\[90vh\]{ + max-height: 90vh; +} + .max-h-full{ max-height: 100%; } +.min-h-0{ + min-height: 0px; +} + +.min-h-\[220px\]{ + min-height: 220px; +} + .min-h-\[500px\]{ min-height: 500px; } @@ -1825,6 +1840,10 @@ body { width: 80%; } +.w-40{ + width: 10rem; +} + .w-48{ width: 12rem; } @@ -1898,10 +1917,6 @@ body { min-width: 24rem; } -.min-w-\[120px\]{ - min-width: 120px; -} - .min-w-\[14rem\]{ min-width: 14rem; } @@ -2034,10 +2049,6 @@ body { transform-origin: left; } -.origin-top{ - transform-origin: top; -} - .-translate-x-1\/2{ --tw-translate-x: -50%; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -2098,6 +2109,18 @@ body { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); } +.scale-100{ + --tw-scale-x: 1; + --tw-scale-y: 1; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} + +.scale-95{ + --tw-scale-x: .95; + --tw-scale-y: .95; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} + .scale-x-0{ --tw-scale-x: 0; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -2286,6 +2309,10 @@ body { gap: 1rem; } +.gap-6{ + gap: 1.5rem; +} + .gap-8{ gap: 2rem; } @@ -2338,6 +2365,12 @@ body { margin-bottom: calc(0.5rem * var(--tw-space-y-reverse)); } +.space-y-3 > :not([hidden]) ~ :not([hidden]){ + --tw-space-y-reverse: 0; + margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse))); + margin-bottom: calc(0.75rem * var(--tw-space-y-reverse)); +} + .space-y-4 > :not([hidden]) ~ :not([hidden]){ --tw-space-y-reverse: 0; margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse))); @@ -3016,10 +3049,6 @@ body { --tw-bg-opacity: 0.7; } -.bg-gradient-to-b{ - background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); -} - .bg-gradient-to-br{ background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); } @@ -3140,12 +3169,6 @@ body { --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } -.from-transparent{ - --tw-gradient-from: transparent var(--tw-gradient-from-position); - --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position); - --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); -} - .from-5\%{ --tw-gradient-from-position: 5%; } @@ -3200,11 +3223,6 @@ body { --tw-gradient-stops: var(--tw-gradient-from), #047481 var(--tw-gradient-via-position), var(--tw-gradient-to); } -.via-transparent{ - --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position); - --tw-gradient-stops: var(--tw-gradient-from), transparent var(--tw-gradient-via-position), var(--tw-gradient-to); -} - .via-10\%{ --tw-gradient-via-position: 10%; } @@ -3281,10 +3299,6 @@ body { --tw-gradient-to: transparent var(--tw-gradient-to-position); } -.to-white{ - --tw-gradient-to: #ffffff var(--tw-gradient-to-position); -} - .to-yellow-200{ --tw-gradient-to: #FCE96A var(--tw-gradient-to-position); } @@ -4435,6 +4449,10 @@ body { --scrollbar-track: var(--color-bg-light-tone) !important; } +.scrollbar-track-blue-100{ + --scrollbar-track: #E1EFFE !important; +} + .scrollbar-track-gray-200{ --scrollbar-track: #E5E7EB !important; } @@ -4447,6 +4465,10 @@ body { --scrollbar-thumb: var(--color-bg-light-tone-panel) !important; } +.scrollbar-thumb-blue-500{ + --scrollbar-thumb: #3F83F8 !important; +} + .scrollbar-thumb-gray-400{ --scrollbar-thumb: #9CA3AF !important; } @@ -5126,12 +5148,15 @@ body:is(.dark *){ } .app-card{ + border-radius: 0.75rem; + border-width: 1px; --tw-bg-opacity: 1; background-color: rgb(253 232 232 / var(--tw-bg-opacity)); + padding: 1.5rem; --tw-text-opacity: 1; color: rgb(155 28 28 / var(--tw-text-opacity)); - --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color); + --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); transition-property: all; transition-duration: 300ms; @@ -5139,8 +5164,8 @@ body:is(.dark *){ } .app-card:hover{ - --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); + --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); } @@ -5752,10 +5777,6 @@ button:hover{ opacity: 1; } -.group:hover .group-hover\:opacity-0{ - opacity: 0; -} - .group:hover .group-hover\:opacity-100{ opacity: 1; } @@ -6042,6 +6063,12 @@ button:hover{ --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } +.hover\:from-blue-500\/20:hover{ + --tw-gradient-from: rgb(63 131 248 / 0.2) var(--tw-gradient-from-position); + --tw-gradient-to: rgb(63 131 248 / 0) var(--tw-gradient-to-position); + --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); +} + .hover\:from-teal-200:hover{ --tw-gradient-from: #AFECEF var(--tw-gradient-from-position); --tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position); @@ -6056,6 +6083,10 @@ button:hover{ --tw-gradient-to: #F6F5FF var(--tw-gradient-to-position); } +.hover\:to-purple-500\/20:hover{ + --tw-gradient-to: rgb(144 97 249 / 0.2) var(--tw-gradient-to-position); +} + .hover\:text-blue-600:hover{ --tw-text-opacity: 1; color: rgb(28 100 242 / var(--tw-text-opacity)); @@ -6162,12 +6193,6 @@ button:hover{ text-decoration-line: none; } -.hover\:shadow-lg:hover{ - --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); - box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); -} - .hover\:shadow-md:hover{ --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color); @@ -6734,10 +6759,6 @@ button:hover{ --tw-gradient-stops: var(--tw-gradient-from), var(--color-bg-dark) var(--tw-gradient-via-position), var(--tw-gradient-to); } -.dark\:to-gray-800:is(.dark *){ - --tw-gradient-to: #1F2937 var(--tw-gradient-to-position); -} - .dark\:to-purple-400:is(.dark *){ --tw-gradient-to: #AC94FA var(--tw-gradient-to-position); } @@ -7034,6 +7055,10 @@ button:hover{ --scrollbar-track: var(--color-bg-dark-tone) !important; } +.dark\:scrollbar-track-gray-700:is(.dark *){ + --scrollbar-track: #374151 !important; +} + .dark\:scrollbar-track-gray-800:is(.dark *){ --scrollbar-track: #1F2937 !important; } @@ -7046,6 +7071,10 @@ button:hover{ --scrollbar-thumb: var(--color-bg-dark-tone-panel) !important; } +.dark\:scrollbar-thumb-gray-500:is(.dark *){ + --scrollbar-thumb: #6B7280 !important; +} + .dark\:scrollbar-thumb-gray-600:is(.dark *){ --scrollbar-thumb: #4B5563 !important; } @@ -7188,12 +7217,22 @@ button:hover{ background-color: var(--color-bg-dark-tone-panel); } +.dark\:hover\:from-blue-400\/30:hover:is(.dark *){ + --tw-gradient-from: rgb(118 169 250 / 0.3) var(--tw-gradient-from-position); + --tw-gradient-to: rgb(118 169 250 / 0) var(--tw-gradient-to-position); + --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); +} + .dark\:hover\:from-blue-900\/30:hover:is(.dark *){ --tw-gradient-from: rgb(35 56 118 / 0.3) var(--tw-gradient-from-position); --tw-gradient-to: rgb(35 56 118 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } +.dark\:hover\:to-purple-400\/30:hover:is(.dark *){ + --tw-gradient-to: rgb(172 148 250 / 0.3) var(--tw-gradient-to-position); +} + .dark\:hover\:to-purple-900\/30:hover:is(.dark *){ --tw-gradient-to: rgb(74 29 150 / 0.3) var(--tw-gradient-to-position); } diff --git a/web/public/themes/sober_gray.css b/web/public/themes/sober_gray.css index b76625095..40b177ba5 100644 --- a/web/public/themes/sober_gray.css +++ b/web/public/themes/sober_gray.css @@ -1235,6 +1235,12 @@ body { -webkit-box-orient: vertical; -webkit-line-clamp: 3; } +.line-clamp-4{ + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 4; +} .block{ display: block; } @@ -1352,9 +1358,6 @@ body { .h-\[200px\]{ height: 200px; } -.h-\[220px\]{ - height: 220px; -} .h-auto{ height: auto; } @@ -1394,9 +1397,18 @@ body { .max-h-\[80vh\]{ max-height: 80vh; } +.max-h-\[90vh\]{ + max-height: 90vh; +} .max-h-full{ max-height: 100%; } +.min-h-0{ + min-height: 0px; +} +.min-h-\[220px\]{ + min-height: 220px; +} .min-h-\[500px\]{ min-height: 500px; } @@ -1472,6 +1484,9 @@ body { .w-4\/5{ width: 80%; } +.w-40{ + width: 10rem; +} .w-48{ width: 12rem; } @@ -1527,9 +1542,6 @@ body { .min-w-96{ min-width: 24rem; } -.min-w-\[120px\]{ - min-width: 120px; -} .min-w-\[14rem\]{ min-width: 14rem; } @@ -1629,9 +1641,6 @@ body { .origin-left{ transform-origin: left; } -.origin-top{ - transform-origin: top; -} .-translate-x-1\/2{ --tw-translate-x: -50%; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -1680,6 +1689,16 @@ body { --tw-rotate: 90deg; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); } +.scale-100{ + --tw-scale-x: 1; + --tw-scale-y: 1; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} +.scale-95{ + --tw-scale-x: .95; + --tw-scale-y: .95; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} .scale-x-0{ --tw-scale-x: 0; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -1822,6 +1841,9 @@ body { .gap-4{ gap: 1rem; } +.gap-6{ + gap: 1.5rem; +} .gap-8{ gap: 2rem; } @@ -1865,6 +1887,11 @@ body { margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(0.5rem * var(--tw-space-y-reverse)); } +.space-y-3 > :not([hidden]) ~ :not([hidden]){ + --tw-space-y-reverse: 0; + margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse))); + margin-bottom: calc(0.75rem * var(--tw-space-y-reverse)); +} .space-y-4 > :not([hidden]) ~ :not([hidden]){ --tw-space-y-reverse: 0; margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse))); @@ -2398,9 +2425,6 @@ body { .bg-opacity-70{ --tw-bg-opacity: 0.7; } -.bg-gradient-to-b{ - background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); -} .bg-gradient-to-br{ background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); } @@ -2500,11 +2524,6 @@ body { --tw-gradient-to: rgb(6 148 162 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } -.from-transparent{ - --tw-gradient-from: transparent var(--tw-gradient-from-position); - --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position); - --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); -} .from-5\%{ --tw-gradient-from-position: 5%; } @@ -2548,10 +2567,6 @@ body { --tw-gradient-to: rgb(4 116 129 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), #047481 var(--tw-gradient-via-position), var(--tw-gradient-to); } -.via-transparent{ - --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position); - --tw-gradient-stops: var(--tw-gradient-from), transparent var(--tw-gradient-via-position), var(--tw-gradient-to); -} .via-10\%{ --tw-gradient-via-position: 10%; } @@ -2609,9 +2624,6 @@ body { .to-transparent{ --tw-gradient-to: transparent var(--tw-gradient-to-position); } -.to-white{ - --tw-gradient-to: #ffffff var(--tw-gradient-to-position); -} .to-yellow-200{ --tw-gradient-to: #FCE96A var(--tw-gradient-to-position); } @@ -3515,6 +3527,9 @@ body { .scrollbar-track-bg-light-tone{ --scrollbar-track: var(--color-bg-light-tone) !important; } +.scrollbar-track-blue-100{ + --scrollbar-track: #E1EFFE !important; +} .scrollbar-track-gray-200{ --scrollbar-track: #E5E7EB !important; } @@ -3524,6 +3539,9 @@ body { .scrollbar-thumb-bg-light-tone-panel{ --scrollbar-thumb: var(--color-bg-light-tone-panel) !important; } +.scrollbar-thumb-blue-500{ + --scrollbar-thumb: #3F83F8 !important; +} .scrollbar-thumb-gray-400{ --scrollbar-thumb: #9CA3AF !important; } @@ -4106,20 +4124,23 @@ body:is(.dark *){ animation: bounce 2s infinite; } .app-card{ + border-radius: 0.75rem; + border-width: 1px; --tw-bg-opacity: 1; background-color: rgb(243 244 246 / var(--tw-bg-opacity)); + padding: 1.5rem; --tw-text-opacity: 1; color: rgb(31 41 55 / var(--tw-text-opacity)); - --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color); + --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); transition-property: all; transition-duration: 300ms; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); } .app-card:hover{ - --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); + --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); } .app-card:is(.dark *){ @@ -4629,9 +4650,6 @@ button:hover{ .group\/item:hover .group-hover\/item\:opacity-100{ opacity: 1; } -.group:hover .group-hover\:opacity-0{ - opacity: 0; -} .group:hover .group-hover\:opacity-100{ opacity: 1; } @@ -4858,6 +4876,11 @@ button:hover{ --tw-gradient-to: rgb(235 245 255 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } +.hover\:from-blue-500\/20:hover{ + --tw-gradient-from: rgb(63 131 248 / 0.2) var(--tw-gradient-from-position); + --tw-gradient-to: rgb(63 131 248 / 0) var(--tw-gradient-to-position); + --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); +} .hover\:from-teal-200:hover{ --tw-gradient-from: #AFECEF var(--tw-gradient-from-position); --tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position); @@ -4869,6 +4892,9 @@ button:hover{ .hover\:to-purple-50:hover{ --tw-gradient-to: #F6F5FF var(--tw-gradient-to-position); } +.hover\:to-purple-500\/20:hover{ + --tw-gradient-to: rgb(144 97 249 / 0.2) var(--tw-gradient-to-position); +} .hover\:text-blue-600:hover{ --tw-text-opacity: 1; color: rgb(28 100 242 / var(--tw-text-opacity)); @@ -4953,11 +4979,6 @@ button:hover{ .hover\:no-underline:hover{ text-decoration-line: none; } -.hover\:shadow-lg:hover{ - --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); - box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); -} .hover\:shadow-md:hover{ --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color); @@ -5410,9 +5431,6 @@ button:hover{ --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--color-bg-dark) var(--tw-gradient-via-position), var(--tw-gradient-to); } -.dark\:to-gray-800:is(.dark *){ - --tw-gradient-to: #1F2937 var(--tw-gradient-to-position); -} .dark\:to-purple-400:is(.dark *){ --tw-gradient-to: #AC94FA var(--tw-gradient-to-position); } @@ -5648,6 +5666,9 @@ button:hover{ .dark\:scrollbar-track-bg-dark-tone:is(.dark *){ --scrollbar-track: var(--color-bg-dark-tone) !important; } +.dark\:scrollbar-track-gray-700:is(.dark *){ + --scrollbar-track: #374151 !important; +} .dark\:scrollbar-track-gray-800:is(.dark *){ --scrollbar-track: #1F2937 !important; } @@ -5657,6 +5678,9 @@ button:hover{ .dark\:scrollbar-thumb-bg-dark-tone-panel:is(.dark *){ --scrollbar-thumb: var(--color-bg-dark-tone-panel) !important; } +.dark\:scrollbar-thumb-gray-500:is(.dark *){ + --scrollbar-thumb: #6B7280 !important; +} .dark\:scrollbar-thumb-gray-600:is(.dark *){ --scrollbar-thumb: #4B5563 !important; } @@ -5769,11 +5793,19 @@ button:hover{ .hover\:dark\:bg-bg-dark-tone-panel:is(.dark *):hover{ background-color: var(--color-bg-dark-tone-panel); } +.dark\:hover\:from-blue-400\/30:hover:is(.dark *){ + --tw-gradient-from: rgb(118 169 250 / 0.3) var(--tw-gradient-from-position); + --tw-gradient-to: rgb(118 169 250 / 0) var(--tw-gradient-to-position); + --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); +} .dark\:hover\:from-blue-900\/30:hover:is(.dark *){ --tw-gradient-from: rgb(35 56 118 / 0.3) var(--tw-gradient-from-position); --tw-gradient-to: rgb(35 56 118 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } +.dark\:hover\:to-purple-400\/30:hover:is(.dark *){ + --tw-gradient-to: rgb(172 148 250 / 0.3) var(--tw-gradient-to-position); +} .dark\:hover\:to-purple-900\/30:hover:is(.dark *){ --tw-gradient-to: rgb(74 29 150 / 0.3) var(--tw-gradient-to-position); } diff --git a/web/public/themes/strawberry.css b/web/public/themes/strawberry.css index 64b52b9bd..e641da164 100644 --- a/web/public/themes/strawberry.css +++ b/web/public/themes/strawberry.css @@ -1240,6 +1240,12 @@ html{ -webkit-box-orient: vertical; -webkit-line-clamp: 3; } +.line-clamp-4{ + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 4; +} .block{ display: block; } @@ -1357,9 +1363,6 @@ html{ .h-\[200px\]{ height: 200px; } -.h-\[220px\]{ - height: 220px; -} .h-auto{ height: auto; } @@ -1399,9 +1402,18 @@ html{ .max-h-\[80vh\]{ max-height: 80vh; } +.max-h-\[90vh\]{ + max-height: 90vh; +} .max-h-full{ max-height: 100%; } +.min-h-0{ + min-height: 0px; +} +.min-h-\[220px\]{ + min-height: 220px; +} .min-h-\[500px\]{ min-height: 500px; } @@ -1477,6 +1489,9 @@ html{ .w-4\/5{ width: 80%; } +.w-40{ + width: 10rem; +} .w-48{ width: 12rem; } @@ -1532,9 +1547,6 @@ html{ .min-w-96{ min-width: 24rem; } -.min-w-\[120px\]{ - min-width: 120px; -} .min-w-\[14rem\]{ min-width: 14rem; } @@ -1634,9 +1646,6 @@ html{ .origin-left{ transform-origin: left; } -.origin-top{ - transform-origin: top; -} .-translate-x-1\/2{ --tw-translate-x: -50%; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -1685,6 +1694,16 @@ html{ --tw-rotate: 90deg; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); } +.scale-100{ + --tw-scale-x: 1; + --tw-scale-y: 1; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} +.scale-95{ + --tw-scale-x: .95; + --tw-scale-y: .95; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} .scale-x-0{ --tw-scale-x: 0; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -1827,6 +1846,9 @@ html{ .gap-4{ gap: 1rem; } +.gap-6{ + gap: 1.5rem; +} .gap-8{ gap: 2rem; } @@ -1870,6 +1892,11 @@ html{ margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(0.5rem * var(--tw-space-y-reverse)); } +.space-y-3 > :not([hidden]) ~ :not([hidden]){ + --tw-space-y-reverse: 0; + margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse))); + margin-bottom: calc(0.75rem * var(--tw-space-y-reverse)); +} .space-y-4 > :not([hidden]) ~ :not([hidden]){ --tw-space-y-reverse: 0; margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse))); @@ -2403,9 +2430,6 @@ html{ .bg-opacity-70{ --tw-bg-opacity: 0.7; } -.bg-gradient-to-b{ - background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); -} .bg-gradient-to-br{ background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); } @@ -2505,11 +2529,6 @@ html{ --tw-gradient-to: rgb(6 148 162 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } -.from-transparent{ - --tw-gradient-from: transparent var(--tw-gradient-from-position); - --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position); - --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); -} .from-5\%{ --tw-gradient-from-position: 5%; } @@ -2553,10 +2572,6 @@ html{ --tw-gradient-to: rgb(4 116 129 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), #047481 var(--tw-gradient-via-position), var(--tw-gradient-to); } -.via-transparent{ - --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position); - --tw-gradient-stops: var(--tw-gradient-from), transparent var(--tw-gradient-via-position), var(--tw-gradient-to); -} .via-10\%{ --tw-gradient-via-position: 10%; } @@ -2614,9 +2629,6 @@ html{ .to-transparent{ --tw-gradient-to: transparent var(--tw-gradient-to-position); } -.to-white{ - --tw-gradient-to: #ffffff var(--tw-gradient-to-position); -} .to-yellow-200{ --tw-gradient-to: #FCE96A var(--tw-gradient-to-position); } @@ -3520,6 +3532,9 @@ html{ .scrollbar-track-bg-light-tone{ --scrollbar-track: var(--color-bg-light-tone) !important; } +.scrollbar-track-blue-100{ + --scrollbar-track: #E1EFFE !important; +} .scrollbar-track-gray-200{ --scrollbar-track: #E5E7EB !important; } @@ -3529,6 +3544,9 @@ html{ .scrollbar-thumb-bg-light-tone-panel{ --scrollbar-thumb: var(--color-bg-light-tone-panel) !important; } +.scrollbar-thumb-blue-500{ + --scrollbar-thumb: #3F83F8 !important; +} .scrollbar-thumb-gray-400{ --scrollbar-thumb: #9CA3AF !important; } @@ -4194,23 +4212,26 @@ body { /* Added text-base for default body text */ } } .app-card{ + border-radius: 0.75rem; + border-width: 1px; background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); --tw-gradient-from: #C3DDFD var(--tw-gradient-from-position); --tw-gradient-to: rgb(195 221 253 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); --tw-gradient-to: #A4CAFE var(--tw-gradient-to-position); + padding: 1.5rem; --tw-text-opacity: 1; color: rgb(31 41 55 / var(--tw-text-opacity)); - --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color); + --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); transition-property: all; transition-duration: 300ms; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); } .app-card:hover{ - --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); + --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); } .app-card:is(.dark *){ @@ -4724,9 +4745,6 @@ button:hover{ .group\/item:hover .group-hover\/item\:opacity-100{ opacity: 1; } -.group:hover .group-hover\:opacity-0{ - opacity: 0; -} .group:hover .group-hover\:opacity-100{ opacity: 1; } @@ -4953,6 +4971,11 @@ button:hover{ --tw-gradient-to: rgb(235 245 255 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } +.hover\:from-blue-500\/20:hover{ + --tw-gradient-from: rgb(63 131 248 / 0.2) var(--tw-gradient-from-position); + --tw-gradient-to: rgb(63 131 248 / 0) var(--tw-gradient-to-position); + --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); +} .hover\:from-teal-200:hover{ --tw-gradient-from: #AFECEF var(--tw-gradient-from-position); --tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position); @@ -4964,6 +4987,9 @@ button:hover{ .hover\:to-purple-50:hover{ --tw-gradient-to: #F6F5FF var(--tw-gradient-to-position); } +.hover\:to-purple-500\/20:hover{ + --tw-gradient-to: rgb(144 97 249 / 0.2) var(--tw-gradient-to-position); +} .hover\:text-blue-600:hover{ --tw-text-opacity: 1; color: rgb(28 100 242 / var(--tw-text-opacity)); @@ -5048,11 +5074,6 @@ button:hover{ .hover\:no-underline:hover{ text-decoration-line: none; } -.hover\:shadow-lg:hover{ - --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); - box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); -} .hover\:shadow-md:hover{ --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color); @@ -5505,9 +5526,6 @@ button:hover{ --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--color-bg-dark) var(--tw-gradient-via-position), var(--tw-gradient-to); } -.dark\:to-gray-800:is(.dark *){ - --tw-gradient-to: #1F2937 var(--tw-gradient-to-position); -} .dark\:to-purple-400:is(.dark *){ --tw-gradient-to: #AC94FA var(--tw-gradient-to-position); } @@ -5743,6 +5761,9 @@ button:hover{ .dark\:scrollbar-track-bg-dark-tone:is(.dark *){ --scrollbar-track: var(--color-bg-dark-tone) !important; } +.dark\:scrollbar-track-gray-700:is(.dark *){ + --scrollbar-track: #374151 !important; +} .dark\:scrollbar-track-gray-800:is(.dark *){ --scrollbar-track: #1F2937 !important; } @@ -5752,6 +5773,9 @@ button:hover{ .dark\:scrollbar-thumb-bg-dark-tone-panel:is(.dark *){ --scrollbar-thumb: var(--color-bg-dark-tone-panel) !important; } +.dark\:scrollbar-thumb-gray-500:is(.dark *){ + --scrollbar-thumb: #6B7280 !important; +} .dark\:scrollbar-thumb-gray-600:is(.dark *){ --scrollbar-thumb: #4B5563 !important; } @@ -5864,11 +5888,19 @@ button:hover{ .hover\:dark\:bg-bg-dark-tone-panel:is(.dark *):hover{ background-color: var(--color-bg-dark-tone-panel); } +.dark\:hover\:from-blue-400\/30:hover:is(.dark *){ + --tw-gradient-from: rgb(118 169 250 / 0.3) var(--tw-gradient-from-position); + --tw-gradient-to: rgb(118 169 250 / 0) var(--tw-gradient-to-position); + --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); +} .dark\:hover\:from-blue-900\/30:hover:is(.dark *){ --tw-gradient-from: rgb(35 56 118 / 0.3) var(--tw-gradient-from-position); --tw-gradient-to: rgb(35 56 118 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } +.dark\:hover\:to-purple-400\/30:hover:is(.dark *){ + --tw-gradient-to: rgb(172 148 250 / 0.3) var(--tw-gradient-to-position); +} .dark\:hover\:to-purple-900\/30:hover:is(.dark *){ --tw-gradient-to: rgb(74 29 150 / 0.3) var(--tw-gradient-to-position); } diff --git a/web/public/themes/strawberry_milkshake.css b/web/public/themes/strawberry_milkshake.css index 83ab7d823..c95ddcc66 100644 --- a/web/public/themes/strawberry_milkshake.css +++ b/web/public/themes/strawberry_milkshake.css @@ -1509,6 +1509,13 @@ body { -webkit-line-clamp: 3; } +.line-clamp-4{ + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 4; +} + .block{ display: block; } @@ -1665,10 +1672,6 @@ body { height: 200px; } -.h-\[220px\]{ - height: 220px; -} - .h-auto{ height: auto; } @@ -1721,10 +1724,22 @@ body { max-height: 80vh; } +.max-h-\[90vh\]{ + max-height: 90vh; +} + .max-h-full{ max-height: 100%; } +.min-h-0{ + min-height: 0px; +} + +.min-h-\[220px\]{ + min-height: 220px; +} + .min-h-\[500px\]{ min-height: 500px; } @@ -1825,6 +1840,10 @@ body { width: 80%; } +.w-40{ + width: 10rem; +} + .w-48{ width: 12rem; } @@ -1898,10 +1917,6 @@ body { min-width: 24rem; } -.min-w-\[120px\]{ - min-width: 120px; -} - .min-w-\[14rem\]{ min-width: 14rem; } @@ -2034,10 +2049,6 @@ body { transform-origin: left; } -.origin-top{ - transform-origin: top; -} - .-translate-x-1\/2{ --tw-translate-x: -50%; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -2098,6 +2109,18 @@ body { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); } +.scale-100{ + --tw-scale-x: 1; + --tw-scale-y: 1; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} + +.scale-95{ + --tw-scale-x: .95; + --tw-scale-y: .95; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} + .scale-x-0{ --tw-scale-x: 0; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -2286,6 +2309,10 @@ body { gap: 1rem; } +.gap-6{ + gap: 1.5rem; +} + .gap-8{ gap: 2rem; } @@ -2338,6 +2365,12 @@ body { margin-bottom: calc(0.5rem * var(--tw-space-y-reverse)); } +.space-y-3 > :not([hidden]) ~ :not([hidden]){ + --tw-space-y-reverse: 0; + margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse))); + margin-bottom: calc(0.75rem * var(--tw-space-y-reverse)); +} + .space-y-4 > :not([hidden]) ~ :not([hidden]){ --tw-space-y-reverse: 0; margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse))); @@ -3016,10 +3049,6 @@ body { --tw-bg-opacity: 0.7; } -.bg-gradient-to-b{ - background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); -} - .bg-gradient-to-br{ background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); } @@ -3140,12 +3169,6 @@ body { --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } -.from-transparent{ - --tw-gradient-from: transparent var(--tw-gradient-from-position); - --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position); - --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); -} - .from-5\%{ --tw-gradient-from-position: 5%; } @@ -3200,11 +3223,6 @@ body { --tw-gradient-stops: var(--tw-gradient-from), #047481 var(--tw-gradient-via-position), var(--tw-gradient-to); } -.via-transparent{ - --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position); - --tw-gradient-stops: var(--tw-gradient-from), transparent var(--tw-gradient-via-position), var(--tw-gradient-to); -} - .via-10\%{ --tw-gradient-via-position: 10%; } @@ -3281,10 +3299,6 @@ body { --tw-gradient-to: transparent var(--tw-gradient-to-position); } -.to-white{ - --tw-gradient-to: #ffffff var(--tw-gradient-to-position); -} - .to-yellow-200{ --tw-gradient-to: #FCE96A var(--tw-gradient-to-position); } @@ -4435,6 +4449,10 @@ body { --scrollbar-track: var(--color-bg-light-tone) !important; } +.scrollbar-track-blue-100{ + --scrollbar-track: #E1EFFE !important; +} + .scrollbar-track-gray-200{ --scrollbar-track: #E5E7EB !important; } @@ -4447,6 +4465,10 @@ body { --scrollbar-thumb: var(--color-bg-light-tone-panel) !important; } +.scrollbar-thumb-blue-500{ + --scrollbar-thumb: #3F83F8 !important; +} + .scrollbar-thumb-gray-400{ --scrollbar-thumb: #9CA3AF !important; } @@ -5126,12 +5148,15 @@ body:is(.dark *){ } .app-card{ + border-radius: 0.75rem; + border-width: 1px; --tw-bg-opacity: 1; background-color: rgb(252 232 243 / var(--tw-bg-opacity)); + padding: 1.5rem; --tw-text-opacity: 1; color: rgb(153 21 75 / var(--tw-text-opacity)); - --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color); + --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); transition-property: all; transition-duration: 300ms; @@ -5139,8 +5164,8 @@ body:is(.dark *){ } .app-card:hover{ - --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); + --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); } @@ -5753,10 +5778,6 @@ button:hover{ opacity: 1; } -.group:hover .group-hover\:opacity-0{ - opacity: 0; -} - .group:hover .group-hover\:opacity-100{ opacity: 1; } @@ -6043,6 +6064,12 @@ button:hover{ --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } +.hover\:from-blue-500\/20:hover{ + --tw-gradient-from: rgb(63 131 248 / 0.2) var(--tw-gradient-from-position); + --tw-gradient-to: rgb(63 131 248 / 0) var(--tw-gradient-to-position); + --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); +} + .hover\:from-teal-200:hover{ --tw-gradient-from: #AFECEF var(--tw-gradient-from-position); --tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position); @@ -6057,6 +6084,10 @@ button:hover{ --tw-gradient-to: #F6F5FF var(--tw-gradient-to-position); } +.hover\:to-purple-500\/20:hover{ + --tw-gradient-to: rgb(144 97 249 / 0.2) var(--tw-gradient-to-position); +} + .hover\:text-blue-600:hover{ --tw-text-opacity: 1; color: rgb(28 100 242 / var(--tw-text-opacity)); @@ -6163,12 +6194,6 @@ button:hover{ text-decoration-line: none; } -.hover\:shadow-lg:hover{ - --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); - box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); -} - .hover\:shadow-md:hover{ --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color); @@ -6735,10 +6760,6 @@ button:hover{ --tw-gradient-stops: var(--tw-gradient-from), var(--color-bg-dark) var(--tw-gradient-via-position), var(--tw-gradient-to); } -.dark\:to-gray-800:is(.dark *){ - --tw-gradient-to: #1F2937 var(--tw-gradient-to-position); -} - .dark\:to-purple-400:is(.dark *){ --tw-gradient-to: #AC94FA var(--tw-gradient-to-position); } @@ -7035,6 +7056,10 @@ button:hover{ --scrollbar-track: var(--color-bg-dark-tone) !important; } +.dark\:scrollbar-track-gray-700:is(.dark *){ + --scrollbar-track: #374151 !important; +} + .dark\:scrollbar-track-gray-800:is(.dark *){ --scrollbar-track: #1F2937 !important; } @@ -7047,6 +7072,10 @@ button:hover{ --scrollbar-thumb: var(--color-bg-dark-tone-panel) !important; } +.dark\:scrollbar-thumb-gray-500:is(.dark *){ + --scrollbar-thumb: #6B7280 !important; +} + .dark\:scrollbar-thumb-gray-600:is(.dark *){ --scrollbar-thumb: #4B5563 !important; } @@ -7189,12 +7218,22 @@ button:hover{ background-color: var(--color-bg-dark-tone-panel); } +.dark\:hover\:from-blue-400\/30:hover:is(.dark *){ + --tw-gradient-from: rgb(118 169 250 / 0.3) var(--tw-gradient-from-position); + --tw-gradient-to: rgb(118 169 250 / 0) var(--tw-gradient-to-position); + --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); +} + .dark\:hover\:from-blue-900\/30:hover:is(.dark *){ --tw-gradient-from: rgb(35 56 118 / 0.3) var(--tw-gradient-from-position); --tw-gradient-to: rgb(35 56 118 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } +.dark\:hover\:to-purple-400\/30:hover:is(.dark *){ + --tw-gradient-to: rgb(172 148 250 / 0.3) var(--tw-gradient-to-position); +} + .dark\:hover\:to-purple-900\/30:hover:is(.dark *){ --tw-gradient-to: rgb(74 29 150 / 0.3) var(--tw-gradient-to-position); } diff --git a/web/src/components/AppCard.vue b/web/src/components/AppCard.vue index 2f3078715..d778d3bbd 100644 --- a/web/src/components/AppCard.vue +++ b/web/src/components/AppCard.vue @@ -1,5 +1,5 @@